| 1 |
{ |
| 2 |
"apiVersion": 3, |
| 3 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 4 |
"name": "blockenberg/accordion", |
| 5 |
"title": "Accordion", |
| 6 |
"category": "bkbg-content", |
| 7 |
"icon": "list-view", |
| 8 |
"description": "Collapsible accordion panels for FAQ, features, and more.", |
| 9 |
"keywords": [ |
| 10 |
"accordion", |
| 11 |
"faq", |
| 12 |
"collapse", |
| 13 |
"toggle", |
| 14 |
"expand", |
| 15 |
"question", |
| 16 |
"answer" |
| 17 |
], |
| 18 |
"textdomain": "blockenberg", |
| 19 |
"editorScript": "bkbg-accordion-editor", |
| 20 |
"editorStyle": "bkbg-accordion-style", |
| 21 |
"style": "bkbg-accordion-style", |
| 22 |
"viewScript": "bkbg-accordion-frontend", |
| 23 |
"supports": { |
| 24 |
"html": false, |
| 25 |
"anchor": true, |
| 26 |
"className": true, |
| 27 |
"align": [ |
| 28 |
"wide", |
| 29 |
"full" |
| 30 |
] |
| 31 |
}, |
| 32 |
"attributes": { |
| 33 |
"items": { |
| 34 |
"type": "array", |
| 35 |
"default": [ |
| 36 |
{ |
| 37 |
"title": "What is this accordion block?", |
| 38 |
"content": "This is a fully customizable accordion block for WordPress. You can add unlimited items, style them any way you want, and they work great for FAQs, feature lists, and more." |
| 39 |
}, |
| 40 |
{ |
| 41 |
"title": "How do I add new items?", |
| 42 |
"content": "Simply click the \"+ Add Item\" button below the accordion, or use the sidebar panel to manage your items. You can also reorder items by dragging or using the arrow buttons." |
| 43 |
}, |
| 44 |
{ |
| 45 |
"title": "Can I customize the appearance?", |
| 46 |
"content": "Yes! Use the Inspector panel on the right to customize colors, typography, spacing, icons, animations, and more. All changes are reflected in real-time." |
| 47 |
} |
| 48 |
] |
| 49 |
}, |
| 50 |
"activeItems": { |
| 51 |
"type": "array", |
| 52 |
"default": [ |
| 53 |
0 |
| 54 |
] |
| 55 |
}, |
| 56 |
"allowMultiple": { |
| 57 |
"type": "boolean", |
| 58 |
"default": false |
| 59 |
}, |
| 60 |
"firstOpen": { |
| 61 |
"type": "boolean", |
| 62 |
"default": true |
| 63 |
}, |
| 64 |
"collapseAll": { |
| 65 |
"type": "boolean", |
| 66 |
"default": false |
| 67 |
}, |
| 68 |
"iconType": { |
| 69 |
"type": "string", |
| 70 |
"default": "chevron" |
| 71 |
}, |
| 72 |
"iconPosition": { |
| 73 |
"type": "string", |
| 74 |
"default": "right" |
| 75 |
}, |
| 76 |
"accordionStyle": { |
| 77 |
"type": "string", |
| 78 |
"default": "default" |
| 79 |
}, |
| 80 |
"gap": { |
| 81 |
"type": "number", |
| 82 |
"default": 12 |
| 83 |
}, |
| 84 |
"borderRadius": { |
| 85 |
"type": "number", |
| 86 |
"default": 8 |
| 87 |
}, |
| 88 |
"borderWidth": { |
| 89 |
"type": "number", |
| 90 |
"default": 1 |
| 91 |
}, |
| 92 |
"borderStyle": { |
| 93 |
"type": "string", |
| 94 |
"default": "solid" |
| 95 |
}, |
| 96 |
"headerPaddingTop": { |
| 97 |
"type": "number", |
| 98 |
"default": 16 |
| 99 |
}, |
| 100 |
"headerPaddingRight": { |
| 101 |
"type": "number", |
| 102 |
"default": 20 |
| 103 |
}, |
| 104 |
"headerPaddingBottom": { |
| 105 |
"type": "number", |
| 106 |
"default": 16 |
| 107 |
}, |
| 108 |
"headerPaddingLeft": { |
| 109 |
"type": "number", |
| 110 |
"default": 20 |
| 111 |
}, |
| 112 |
"contentPaddingTop": { |
| 113 |
"type": "number", |
| 114 |
"default": 16 |
| 115 |
}, |
| 116 |
"contentPaddingRight": { |
| 117 |
"type": "number", |
| 118 |
"default": 20 |
| 119 |
}, |
| 120 |
"contentPaddingBottom": { |
| 121 |
"type": "number", |
| 122 |
"default": 20 |
| 123 |
}, |
| 124 |
"contentPaddingLeft": { |
| 125 |
"type": "number", |
| 126 |
"default": 20 |
| 127 |
}, |
| 128 |
"headerBg": { |
| 129 |
"type": "string", |
| 130 |
"default": "#f8fafc" |
| 131 |
}, |
| 132 |
"headerBgHover": { |
| 133 |
"type": "string", |
| 134 |
"default": "#f1f5f9" |
| 135 |
}, |
| 136 |
"headerBgActive": { |
| 137 |
"type": "string", |
| 138 |
"default": "#e2e8f0" |
| 139 |
}, |
| 140 |
"headerColor": { |
| 141 |
"type": "string", |
| 142 |
"default": "#1e293b" |
| 143 |
}, |
| 144 |
"headerColorHover": { |
| 145 |
"type": "string", |
| 146 |
"default": "#0f172a" |
| 147 |
}, |
| 148 |
"headerColorActive": { |
| 149 |
"type": "string", |
| 150 |
"default": "#0f172a" |
| 151 |
}, |
| 152 |
"contentBg": { |
| 153 |
"type": "string", |
| 154 |
"default": "#ffffff" |
| 155 |
}, |
| 156 |
"contentColor": { |
| 157 |
"type": "string", |
| 158 |
"default": "#475569" |
| 159 |
}, |
| 160 |
"borderColor": { |
| 161 |
"type": "string", |
| 162 |
"default": "#e2e8f0" |
| 163 |
}, |
| 164 |
"borderColorActive": { |
| 165 |
"type": "string", |
| 166 |
"default": "#cbd5e1" |
| 167 |
}, |
| 168 |
"iconColor": { |
| 169 |
"type": "string", |
| 170 |
"default": "#64748b" |
| 171 |
}, |
| 172 |
"iconColorActive": { |
| 173 |
"type": "string", |
| 174 |
"default": "#3b82f6" |
| 175 |
}, |
| 176 |
"accentColor": { |
| 177 |
"type": "string", |
| 178 |
"default": "#3b82f6" |
| 179 |
}, |
| 180 |
"headerFontSize": { |
| 181 |
"type": "number", |
| 182 |
"default": 16 |
| 183 |
}, |
| 184 |
"headerFontWeight": { |
| 185 |
"type": "number", |
| 186 |
"default": 600 |
| 187 |
}, |
| 188 |
"headerLineHeight": { |
| 189 |
"type": "number", |
| 190 |
"default": 1.4 |
| 191 |
}, |
| 192 |
"contentFontSize": { |
| 193 |
"type": "number", |
| 194 |
"default": 15 |
| 195 |
}, |
| 196 |
"contentFontWeight": { |
| 197 |
"type": "number", |
| 198 |
"default": 400 |
| 199 |
}, |
| 200 |
"contentLineHeight": { |
| 201 |
"type": "number", |
| 202 |
"default": 1.7 |
| 203 |
}, |
| 204 |
"iconSize": { |
| 205 |
"type": "number", |
| 206 |
"default": 20 |
| 207 |
}, |
| 208 |
"enableShadow": { |
| 209 |
"type": "boolean", |
| 210 |
"default": true |
| 211 |
}, |
| 212 |
"shadowHorizontal": { |
| 213 |
"type": "number", |
| 214 |
"default": 0 |
| 215 |
}, |
| 216 |
"shadowVertical": { |
| 217 |
"type": "number", |
| 218 |
"default": 2 |
| 219 |
}, |
| 220 |
"shadowBlur": { |
| 221 |
"type": "number", |
| 222 |
"default": 8 |
| 223 |
}, |
| 224 |
"shadowSpread": { |
| 225 |
"type": "number", |
| 226 |
"default": 0 |
| 227 |
}, |
| 228 |
"shadowColor": { |
| 229 |
"type": "string", |
| 230 |
"default": "rgba(0, 0, 0, 0.06)" |
| 231 |
}, |
| 232 |
"enableHoverEffect": { |
| 233 |
"type": "boolean", |
| 234 |
"default": true |
| 235 |
}, |
| 236 |
"enableAnimation": { |
| 237 |
"type": "boolean", |
| 238 |
"default": true |
| 239 |
}, |
| 240 |
"animationDuration": { |
| 241 |
"type": "number", |
| 242 |
"default": 300 |
| 243 |
}, |
| 244 |
"animationType": { |
| 245 |
"type": "string", |
| 246 |
"default": "slide" |
| 247 |
}, |
| 248 |
"dividerEnabled": { |
| 249 |
"type": "boolean", |
| 250 |
"default": true |
| 251 |
}, |
| 252 |
"dividerColor": { |
| 253 |
"type": "string", |
| 254 |
"default": "#e2e8f0" |
| 255 |
}, |
| 256 |
"dividerWidth": { |
| 257 |
"type": "number", |
| 258 |
"default": 1 |
| 259 |
}, |
| 260 |
"schemaEnabled": { |
| 261 |
"type": "boolean", |
| 262 |
"default": false |
| 263 |
}, |
| 264 |
"headerTypo": { |
| 265 |
"type": "object", |
| 266 |
"default": {} |
| 267 |
}, |
| 268 |
"contentTypo": { |
| 269 |
"type": "object", |
| 270 |
"default": {} |
| 271 |
} |
| 272 |
} |
| 273 |
} |
| 274 |
|