Changes to lcp-button
This commit is contained in:
101
includes/blocks/lcp-button/build/block.json
Normal file
101
includes/blocks/lcp-button/build/block.json
Normal file
@ -0,0 +1,101 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "lcp/button",
|
||||
"version": "0.1.0",
|
||||
"title": "Button",
|
||||
"category": "widgets",
|
||||
"icon": "smiley",
|
||||
"description": "A button for various functions or custom urls",
|
||||
"example": {},
|
||||
"supports": {
|
||||
"html": false
|
||||
},
|
||||
"attributes": {
|
||||
"buttonAction": {
|
||||
"type": "string",
|
||||
"default": "customUrl"
|
||||
},
|
||||
"customUrl": {
|
||||
"type": "string",
|
||||
"default": "#"
|
||||
},
|
||||
"buttonText": {
|
||||
"type": "string",
|
||||
"default": "Button Text"
|
||||
},
|
||||
"displayIcon": {
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"iconSource": {
|
||||
"type": "string",
|
||||
"default": "manualSvgPath"
|
||||
},
|
||||
"iconSvgPath": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"iconSvgId": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"iconSvgViewbox": {
|
||||
"type": "string",
|
||||
"default": "0 0 510 510"
|
||||
},
|
||||
"popUpId": {
|
||||
"type": "number"
|
||||
},
|
||||
"manualIconSvgPath": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"buttonHeight": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"buttonPadding": {
|
||||
"type": "object",
|
||||
"default": {
|
||||
"extraLarge": {
|
||||
"top": "10px",
|
||||
"right": "10px",
|
||||
"bottom": "10px",
|
||||
"left": "10px"
|
||||
},
|
||||
"large": {
|
||||
"top": "10px",
|
||||
"right": "10px",
|
||||
"bottom": "10px",
|
||||
"left": "10px"
|
||||
},
|
||||
"medium": {
|
||||
"top": "10px",
|
||||
"right": "10px",
|
||||
"bottom": "10px",
|
||||
"left": "10px"
|
||||
},
|
||||
"small": {
|
||||
"top": "10px",
|
||||
"right": "10px",
|
||||
"bottom": "10px",
|
||||
"left": "10px"
|
||||
}
|
||||
}
|
||||
},
|
||||
"iconHeight": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
},
|
||||
"iconWidth": {
|
||||
"type": "string",
|
||||
"default": ""
|
||||
}
|
||||
},
|
||||
"textdomain": "lcp",
|
||||
"editorScript": "file:./index.js",
|
||||
"editorStyle": "file:./index.css",
|
||||
"style": "file:./style-index.css",
|
||||
"viewScript": "file:./view.js"
|
||||
}
|
||||
1
includes/blocks/lcp-button/build/index-rtl.css
Normal file
1
includes/blocks/lcp-button/build/index-rtl.css
Normal file
@ -0,0 +1 @@
|
||||
.wp-block-create-block-button{border:1px dotted red}.lcp-button{background-color:var(--wp--preset--color--accent);border:none;color:#fff;cursor:pointer;display:inline-block;font-size:var(--wp--preset--font-size--small);font-weight:700;margin:auto 5px;padding:10px;text-decoration:none;white-space:nowrap}.lcp-button .lcp-icon{height:1.2em;margin-left:10px;max-height:100%;vertical-align:middle;width:auto;fill:#fff}
|
||||
1
includes/blocks/lcp-button/build/index.asset.php
Normal file
1
includes/blocks/lcp-button/build/index.asset.php
Normal file
@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array('react', 'react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n'), 'version' => '00e12da1bdf9e61c448a');
|
||||
1
includes/blocks/lcp-button/build/index.css
Normal file
1
includes/blocks/lcp-button/build/index.css
Normal file
@ -0,0 +1 @@
|
||||
.wp-block-create-block-button{border:1px dotted red}.lcp-button{background-color:var(--wp--preset--color--accent);border:none;color:#fff;cursor:pointer;display:inline-block;font-size:var(--wp--preset--font-size--small);font-weight:700;margin:auto 5px;padding:10px;text-decoration:none;white-space:nowrap}.lcp-button .lcp-icon{height:1.2em;margin-right:10px;max-height:100%;vertical-align:middle;width:auto;fill:#fff}
|
||||
1
includes/blocks/lcp-button/build/index.js
Normal file
1
includes/blocks/lcp-button/build/index.js
Normal file
File diff suppressed because one or more lines are too long
1
includes/blocks/lcp-button/build/style-index-rtl.css
Normal file
1
includes/blocks/lcp-button/build/style-index-rtl.css
Normal file
@ -0,0 +1 @@
|
||||
.wp-block-create-block-button{background-color:#21759b;color:#fff;padding:2px}
|
||||
1
includes/blocks/lcp-button/build/style-index.css
Normal file
1
includes/blocks/lcp-button/build/style-index.css
Normal file
@ -0,0 +1 @@
|
||||
.wp-block-create-block-button{background-color:#21759b;color:#fff;padding:2px}
|
||||
1
includes/blocks/lcp-button/build/view.asset.php
Normal file
1
includes/blocks/lcp-button/build/view.asset.php
Normal file
@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array(), 'version' => '39bd3d2fc52e7ff1ed91');
|
||||
1
includes/blocks/lcp-button/build/view.js
Normal file
1
includes/blocks/lcp-button/build/view.js
Normal file
@ -0,0 +1 @@
|
||||
console.log("Hello World! (from create-block-button block)");
|
||||
Reference in New Issue
Block a user