| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/margin-calculator", |
| 5 |
"version": "1.0.0", |
| 6 |
"title": "Profit Margin Calculator", |
| 7 |
"category": "bkbg-calculators", |
| 8 |
"icon": "chart-line", |
| 9 |
"description": "Calculate profit margin, markup, selling price and gross profit for any product or service.", |
| 10 |
"keywords": [ |
| 11 |
"margin", |
| 12 |
"profit", |
| 13 |
"markup", |
| 14 |
"selling price", |
| 15 |
"revenue", |
| 16 |
"cost", |
| 17 |
"calculator", |
| 18 |
"ecommerce" |
| 19 |
], |
| 20 |
"textdomain": "blockenberg", |
| 21 |
"editorScript": "bkbg-margin-calculator-editor", |
| 22 |
"style": "bkbg-margin-calculator-style", |
| 23 |
"viewScript": "bkbg-margin-calculator-frontend", |
| 24 |
"supports": { |
| 25 |
"html": false, |
| 26 |
"anchor": true, |
| 27 |
"className": true, |
| 28 |
"align": [ |
| 29 |
"wide", |
| 30 |
"full" |
| 31 |
] |
| 32 |
}, |
| 33 |
"attributes": { |
| 34 |
"title": { |
| 35 |
"type": "string", |
| 36 |
"default": "Profit Margin Calculator" |
| 37 |
}, |
| 38 |
"subtitle": { |
| 39 |
"type": "string", |
| 40 |
"default": "Calculate selling price, markup and gross profit instantly" |
| 41 |
}, |
| 42 |
"currency": { |
| 43 |
"type": "string", |
| 44 |
"default": "$" |
| 45 |
}, |
| 46 |
"defaultMode": { |
| 47 |
"type": "string", |
| 48 |
"default": "margin" |
| 49 |
}, |
| 50 |
"defaultCost": { |
| 51 |
"type": "number", |
| 52 |
"default": 50 |
| 53 |
}, |
| 54 |
"defaultMargin": { |
| 55 |
"type": "number", |
| 56 |
"default": 40 |
| 57 |
}, |
| 58 |
"defaultRevenue": { |
| 59 |
"type": "number", |
| 60 |
"default": 100 |
| 61 |
}, |
| 62 |
"showMarkup": { |
| 63 |
"type": "boolean", |
| 64 |
"default": true |
| 65 |
}, |
| 66 |
"showBar": { |
| 67 |
"type": "boolean", |
| 68 |
"default": true |
| 69 |
}, |
| 70 |
"showMarginScale": { |
| 71 |
"type": "boolean", |
| 72 |
"default": true |
| 73 |
}, |
| 74 |
"accentColor": { |
| 75 |
"type": "string", |
| 76 |
"default": "#10b981" |
| 77 |
}, |
| 78 |
"profitColor": { |
| 79 |
"type": "string", |
| 80 |
"default": "#10b981" |
| 81 |
}, |
| 82 |
"costColor": { |
| 83 |
"type": "string", |
| 84 |
"default": "#f43f5e" |
| 85 |
}, |
| 86 |
"sectionBg": { |
| 87 |
"type": "string", |
| 88 |
"default": "#f0fdf4" |
| 89 |
}, |
| 90 |
"cardBg": { |
| 91 |
"type": "string", |
| 92 |
"default": "#ffffff" |
| 93 |
}, |
| 94 |
"inputBg": { |
| 95 |
"type": "string", |
| 96 |
"default": "#f9fafb" |
| 97 |
}, |
| 98 |
"resultBg": { |
| 99 |
"type": "string", |
| 100 |
"default": "#dcfce7" |
| 101 |
}, |
| 102 |
"titleColor": { |
| 103 |
"type": "string", |
| 104 |
"default": "#111827" |
| 105 |
}, |
| 106 |
"subtitleColor": { |
| 107 |
"type": "string", |
| 108 |
"default": "#6b7280" |
| 109 |
}, |
| 110 |
"labelColor": { |
| 111 |
"type": "string", |
| 112 |
"default": "#374151" |
| 113 |
}, |
| 114 |
"titleTypo": { |
| 115 |
"type": "object", |
| 116 |
"default": {} |
| 117 |
}, |
| 118 |
"subtitleTypo": { |
| 119 |
"type": "object", |
| 120 |
"default": {} |
| 121 |
}, |
| 122 |
"contentMaxWidth": { |
| 123 |
"type": "integer", |
| 124 |
"default": 680 |
| 125 |
} |
| 126 |
} |
| 127 |
} |
| 128 |
|