| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/bmi-calculator", |
| 5 |
"title": "BMI Calculator", |
| 6 |
"category": "bkbg-calculators", |
| 7 |
"icon": "heart", |
| 8 |
"description": "Interactive Body Mass Index calculator with metric and imperial units, animated result gauge, weight category indicator, and fully customizable styling.", |
| 9 |
"keywords": [ |
| 10 |
"bmi", |
| 11 |
"body mass index", |
| 12 |
"calculator", |
| 13 |
"health", |
| 14 |
"fitness", |
| 15 |
"weight", |
| 16 |
"height" |
| 17 |
], |
| 18 |
"textdomain": "blockenberg", |
| 19 |
"editorScript": "bkbg-bmi-calculator-editor", |
| 20 |
"style": "bkbg-bmi-calculator-style", |
| 21 |
"viewScript": "bkbg-bmi-calculator-frontend", |
| 22 |
"supports": { |
| 23 |
"html": false, |
| 24 |
"anchor": true, |
| 25 |
"className": true, |
| 26 |
"align": [ |
| 27 |
"wide", |
| 28 |
"full" |
| 29 |
] |
| 30 |
}, |
| 31 |
"attributes": { |
| 32 |
"title": { |
| 33 |
"type": "string", |
| 34 |
"default": "BMI Calculator" |
| 35 |
}, |
| 36 |
"showTitle": { |
| 37 |
"type": "boolean", |
| 38 |
"default": true |
| 39 |
}, |
| 40 |
"subtitle": { |
| 41 |
"type": "string", |
| 42 |
"default": "Find out if you are at a healthy weight for your height." |
| 43 |
}, |
| 44 |
"showSubtitle": { |
| 45 |
"type": "boolean", |
| 46 |
"default": true |
| 47 |
}, |
| 48 |
"unitSystem": { |
| 49 |
"type": "string", |
| 50 |
"default": "metric" |
| 51 |
}, |
| 52 |
"showUnitToggle": { |
| 53 |
"type": "boolean", |
| 54 |
"default": true |
| 55 |
}, |
| 56 |
"weightDefaultKg": { |
| 57 |
"type": "number", |
| 58 |
"default": 70 |
| 59 |
}, |
| 60 |
"weightMinKg": { |
| 61 |
"type": "number", |
| 62 |
"default": 20 |
| 63 |
}, |
| 64 |
"weightMaxKg": { |
| 65 |
"type": "number", |
| 66 |
"default": 200 |
| 67 |
}, |
| 68 |
"heightDefaultCm": { |
| 69 |
"type": "number", |
| 70 |
"default": 170 |
| 71 |
}, |
| 72 |
"heightMinCm": { |
| 73 |
"type": "number", |
| 74 |
"default": 100 |
| 75 |
}, |
| 76 |
"heightMaxCm": { |
| 77 |
"type": "number", |
| 78 |
"default": 220 |
| 79 |
}, |
| 80 |
"weightDefaultLbs": { |
| 81 |
"type": "number", |
| 82 |
"default": 154 |
| 83 |
}, |
| 84 |
"weightMinLbs": { |
| 85 |
"type": "number", |
| 86 |
"default": 44 |
| 87 |
}, |
| 88 |
"weightMaxLbs": { |
| 89 |
"type": "number", |
| 90 |
"default": 440 |
| 91 |
}, |
| 92 |
"heightDefaultFt": { |
| 93 |
"type": "number", |
| 94 |
"default": 5 |
| 95 |
}, |
| 96 |
"heightDefaultIn": { |
| 97 |
"type": "number", |
| 98 |
"default": 7 |
| 99 |
}, |
| 100 |
"showGauge": { |
| 101 |
"type": "boolean", |
| 102 |
"default": true |
| 103 |
}, |
| 104 |
"showCategories": { |
| 105 |
"type": "boolean", |
| 106 |
"default": true |
| 107 |
}, |
| 108 |
"showInterpretation": { |
| 109 |
"type": "boolean", |
| 110 |
"default": true |
| 111 |
}, |
| 112 |
"showIdealWeight": { |
| 113 |
"type": "boolean", |
| 114 |
"default": true |
| 115 |
}, |
| 116 |
"disclaimer": { |
| 117 |
"type": "string", |
| 118 |
"default": "This calculator is for informational purposes only and not a substitute for medical advice." |
| 119 |
}, |
| 120 |
"showDisclaimer": { |
| 121 |
"type": "boolean", |
| 122 |
"default": true |
| 123 |
}, |
| 124 |
"accentColor": { |
| 125 |
"type": "string", |
| 126 |
"default": "#6c3fb5" |
| 127 |
}, |
| 128 |
"underweightColor": { |
| 129 |
"type": "string", |
| 130 |
"default": "#3b82f6" |
| 131 |
}, |
| 132 |
"normalColor": { |
| 133 |
"type": "string", |
| 134 |
"default": "#10b981" |
| 135 |
}, |
| 136 |
"overweightColor": { |
| 137 |
"type": "string", |
| 138 |
"default": "#f59e0b" |
| 139 |
}, |
| 140 |
"obeseColor": { |
| 141 |
"type": "string", |
| 142 |
"default": "#ef4444" |
| 143 |
}, |
| 144 |
"cardBg": { |
| 145 |
"type": "string", |
| 146 |
"default": "#ffffff" |
| 147 |
}, |
| 148 |
"resultBg": { |
| 149 |
"type": "string", |
| 150 |
"default": "#f5f3ff" |
| 151 |
}, |
| 152 |
"resultBorder": { |
| 153 |
"type": "string", |
| 154 |
"default": "#ede9fe" |
| 155 |
}, |
| 156 |
"titleColor": { |
| 157 |
"type": "string", |
| 158 |
"default": "#1e1b4b" |
| 159 |
}, |
| 160 |
"subtitleColor": { |
| 161 |
"type": "string", |
| 162 |
"default": "#6b7280" |
| 163 |
}, |
| 164 |
"labelColor": { |
| 165 |
"type": "string", |
| 166 |
"default": "#374151" |
| 167 |
}, |
| 168 |
"bgColor": { |
| 169 |
"type": "string", |
| 170 |
"default": "" |
| 171 |
}, |
| 172 |
"titleSize": { |
| 173 |
"type": "number", |
| 174 |
"default": 28 |
| 175 |
}, |
| 176 |
"bmiSize": { |
| 177 |
"type": "number", |
| 178 |
"default": 52 |
| 179 |
}, |
| 180 |
"cardRadius": { |
| 181 |
"type": "number", |
| 182 |
"default": 16 |
| 183 |
}, |
| 184 |
"btnRadius": { |
| 185 |
"type": "number", |
| 186 |
"default": 8 |
| 187 |
}, |
| 188 |
"maxWidth": { |
| 189 |
"type": "number", |
| 190 |
"default": 680 |
| 191 |
}, |
| 192 |
"paddingTop": { |
| 193 |
"type": "number", |
| 194 |
"default": 60 |
| 195 |
}, |
| 196 |
"paddingBottom": { |
| 197 |
"type": "number", |
| 198 |
"default": 60 |
| 199 |
}, |
| 200 |
"typoTitle": { |
| 201 |
"type": "object", |
| 202 |
"default": {} |
| 203 |
}, |
| 204 |
"typoBmi": { |
| 205 |
"type": "object", |
| 206 |
"default": {} |
| 207 |
} |
| 208 |
} |
| 209 |
} |
| 210 |
|