Skip to content

Commit

Permalink
Merge pull request #28 from eoxia-amandine/add_block_sticky
Browse files Browse the repository at this point in the history
#21 [Blocks] add: sticky block
  • Loading branch information
eoxia-amandine authored Nov 28, 2024
2 parents 4035a9d + dab74f8 commit c7f9e4b
Show file tree
Hide file tree
Showing 32 changed files with 2,981 additions and 10 deletions.
2 changes: 1 addition & 1 deletion blocks/build/digirisk-list-risk/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-i18n'), 'version' => '6b34f8db971c85c2b201');
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-i18n'), 'version' => 'ee590954c669386f8175');
2 changes: 1 addition & 1 deletion blocks/build/digirisk-list-risk/index.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blocks/build/digirisk-list-risk/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blocks/build/digirisk-list-risk/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion blocks/build/digirisk-list-risk/style-index.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blocks/build/digirisk-list-risk/view.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array(), 'version' => 'e0953515627577a981b4');
<?php return array('dependencies' => array(), 'version' => '0eeb955bbbb49f1fe943');
2 changes: 1 addition & 1 deletion blocks/build/digirisk-list-risk/view.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blocks/build/eo-accordion/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion blocks/build/eo-kpi-contentment/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => '651e08f52e5d6797b787');
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n'), 'version' => 'b1ee81b471320d6fe4b6');
2 changes: 1 addition & 1 deletion blocks/build/eo-kpi-contentment/index.js.map

Large diffs are not rendered by default.

50 changes: 50 additions & 0 deletions blocks/build/eo-sticky/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "eo/sticky",
"version": "1.0.0",
"title": "Sticky",
"category": "eo-blocks",
"icon": "smiley",
"description": "Display sticky block",
"example": {},
"attributes": {
"contentPosition": {
"type": "string",
"default": "top right"
},
"horizontalGapPercent": {
"type": "number",
"default": 0
},
"verticalGapPercent": {
"type": "number",
"default": 0
},
"displayMobile": {
"type": "boolean",
"default": true
},
"styleMobile": {
"type": "string",
"default": "standard"
}
},
"supports": {
"color": {
"background": "true",
"color": "true"
},
"spacing": {
"margin": false,
"padding": true,
"blockGap": true
}
},
"textdomain": "accordion",
"editorScript": "file:./index.js",
"editorStyle": "file:./index.css",
"style": "file:./style-index.css",
"render": "file:./render.php",
"viewScript": "file:./view.js"
}
11 changes: 11 additions & 0 deletions blocks/build/eo-sticky/index-rtl.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*!**************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].use[2]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].use[3]!./blocks/src/eo-sticky/scss/editor.scss ***!
\**************************************************************************************************************************************************************************************************************************************************************/
/**
* The following styles get applied inside the editor only.
*
* Replace them with your own styles or remove the file completely.
*/
.wp-block-eo-sticky {
position: static;
}
1 change: 1 addition & 0 deletions blocks/build/eo-sticky/index.asset.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '1ee234298f6e4a660bce');
Loading

0 comments on commit c7f9e4b

Please sign in to comment.