block.json
2 months ago
index-rtl.css
2 months ago
index.asset.php
2 months ago
index.css
2 months ago
index.js
2 months ago
style-index-rtl.css
2 months ago
style-index.css
2 months ago
block.json
88 lines
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "superb-addons/progress-bar", |
| 5 | "version": "0.1.0", |
| 6 | "title": "Superb Progress Bar", |
| 7 | "category": "superb-addons-blocks", |
| 8 | "icon": "chart-bar", |
| 9 | "description": "A customizable progress bar block with bar, circle, and semicircle styles.", |
| 10 | "keywords": [ |
| 11 | "progress", |
| 12 | "bar", |
| 13 | "circle", |
| 14 | "gauge", |
| 15 | "percentage", |
| 16 | "skill", |
| 17 | "stats" |
| 18 | ], |
| 19 | "styles": [ |
| 20 | { "name": "bar", "label": "Bar", "isDefault": true }, |
| 21 | { "name": "striped-bar", "label": "Striped Bar" }, |
| 22 | { "name": "circle", "label": "Circle" }, |
| 23 | { "name": "glow-circle", "label": "Glow Circle" }, |
| 24 | { "name": "semicircle", "label": "Semicircle" }, |
| 25 | { "name": "glow-semicircle", "label": "Glow Semicircle" } |
| 26 | ], |
| 27 | "supports": { |
| 28 | "html": false, |
| 29 | "align": ["wide", "full"], |
| 30 | "color": { |
| 31 | "background": true, |
| 32 | "text": true, |
| 33 | "gradients": true |
| 34 | }, |
| 35 | "spacing": { |
| 36 | "margin": true, |
| 37 | "padding": true, |
| 38 | "__experimentalDefaultControls": { |
| 39 | "padding": true |
| 40 | } |
| 41 | }, |
| 42 | "typography": { |
| 43 | "fontSize": false, |
| 44 | "lineHeight": false, |
| 45 | "__experimentalFontFamily": true, |
| 46 | "__experimentalFontWeight": false, |
| 47 | "__experimentalFontStyle": false, |
| 48 | "__experimentalTextTransform": false, |
| 49 | "__experimentalLetterSpacing": false |
| 50 | } |
| 51 | }, |
| 52 | "attributes": { |
| 53 | "progressValue": { "type": "number", "default": 75 }, |
| 54 | "goalValue": { "type": "number", "default": 100 }, |
| 55 | "label": { "type": "string", "default": "" }, |
| 56 | "showLabel": { "type": "boolean", "default": true }, |
| 57 | "showPercentage": { "type": "boolean", "default": true }, |
| 58 | "valueDisplay": { "type": "string", "default": "value" }, |
| 59 | "prefix": { "type": "string", "default": "" }, |
| 60 | "suffix": { "type": "string", "default": "%" }, |
| 61 | "barHeight": { "type": "number", "default": 20 }, |
| 62 | "circleSize": { "type": "number", "default": 320 }, |
| 63 | "strokeWidth": { "type": "number", "default": 12 }, |
| 64 | "rounded": { "type": "boolean", "default": true }, |
| 65 | |
| 66 | "animateOnScroll": { "type": "boolean", "default": true }, |
| 67 | "animationDuration": { "type": "number", "default": 1500 }, |
| 68 | "progressColor": { "type": "string" }, |
| 69 | "trackColor": { "type": "string" }, |
| 70 | "percentageColor": { "type": "string" }, |
| 71 | "milestones": { |
| 72 | "type": "array", |
| 73 | "default": [], |
| 74 | "items": { |
| 75 | "type": "object", |
| 76 | "properties": { |
| 77 | "value": { "type": "number" }, |
| 78 | "label": { "type": "string" } |
| 79 | } |
| 80 | } |
| 81 | } |
| 82 | }, |
| 83 | "textdomain": "superb-blocks", |
| 84 | "editorScript": "file:./index.js", |
| 85 | "editorStyle": "file:./index.css", |
| 86 | "style": "file:./style-index.css" |
| 87 | } |
| 88 |