block.json
5 months ago
controller.php
5 months ago
index-rtl.css
5 months ago
index.asset.php
1 month ago
index.css
5 months ago
index.js
1 month ago
style-index-rtl.css
5 months ago
style-index.css
5 months ago
view.php
5 months ago
block.json
78 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "surecart/icon", |
| 5 | "title": "Icon", |
| 6 | "description": "Display an icon from the SureCart icon library.", |
| 7 | "version": "1.0.0", |
| 8 | "category": "surecart", |
| 9 | "icon": "star-filled", |
| 10 | "keywords": [ |
| 11 | "icon", |
| 12 | "svg", |
| 13 | "graphic" |
| 14 | ], |
| 15 | "example": {}, |
| 16 | "attributes": { |
| 17 | "icon_name": { |
| 18 | "type": "string", |
| 19 | "default": "star" |
| 20 | }, |
| 21 | "size": { |
| 22 | "type": "number", |
| 23 | "default": 24 |
| 24 | }, |
| 25 | "stroke_width": { |
| 26 | "type": "number", |
| 27 | "default": 2 |
| 28 | }, |
| 29 | "link_url": { |
| 30 | "type": "string" |
| 31 | }, |
| 32 | "link_target": { |
| 33 | "type": "string", |
| 34 | "default": "_self" |
| 35 | }, |
| 36 | "link_rel": { |
| 37 | "type": "string" |
| 38 | }, |
| 39 | "nofollow": { |
| 40 | "type": "boolean", |
| 41 | "default": false |
| 42 | } |
| 43 | }, |
| 44 | "supports": { |
| 45 | "html": false, |
| 46 | "align": true, |
| 47 | "color": { |
| 48 | "gradients": true, |
| 49 | "link": false, |
| 50 | "__experimentalDefaultControls": { |
| 51 | "background": true, |
| 52 | "text": true |
| 53 | } |
| 54 | }, |
| 55 | "spacing": { |
| 56 | "margin": true, |
| 57 | "padding": true, |
| 58 | "__experimentalDefaultControls": { |
| 59 | "padding": true, |
| 60 | "margin": true |
| 61 | } |
| 62 | }, |
| 63 | "__experimentalBorder": { |
| 64 | "color": true, |
| 65 | "radius": true, |
| 66 | "style": true, |
| 67 | "width": true, |
| 68 | "__experimentalDefaultControls": { |
| 69 | "radius": true |
| 70 | } |
| 71 | } |
| 72 | }, |
| 73 | "textdomain": "surecart", |
| 74 | "render": "file:./controller.php", |
| 75 | "editorScript": "file:./index.js", |
| 76 | "editorStyle": "file:./index.css", |
| 77 | "style": "file:./style-index.css" |
| 78 | } |