Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#21 [Blocks] add: sticky block #28

Merged
merged 5 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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