| 1 |
{ |
| 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 |
"apiVersion": 3, |
| 4 |
"name": "blockenberg/side-menu", |
| 5 |
"title": "Side Menu", |
| 6 |
"description": "Hierarchical vertical navigation with collapsible sections for docs, wikis, and multi-section pages.", |
| 7 |
"category": "bkbg-layout", |
| 8 |
"icon": "list-view", |
| 9 |
"keywords": [ |
| 10 |
"navigation", |
| 11 |
"menu", |
| 12 |
"sidebar", |
| 13 |
"docs", |
| 14 |
"wiki", |
| 15 |
"toc" |
| 16 |
], |
| 17 |
"editorScript": "bkbg-side-menu-editor", |
| 18 |
"editorStyle": "bkbg-side-menu-style", |
| 19 |
"style": "bkbg-side-menu-style", |
| 20 |
"viewScript": "bkbg-side-menu-frontend", |
| 21 |
"supports": { |
| 22 |
"html": false, |
| 23 |
"anchor": true, |
| 24 |
"className": true, |
| 25 |
"align": [ |
| 26 |
"wide", |
| 27 |
"full" |
| 28 |
] |
| 29 |
}, |
| 30 |
"attributes": { |
| 31 |
"items": { |
| 32 |
"type": "array", |
| 33 |
"default": [ |
| 34 |
{ |
| 35 |
"label": "Getting Started", |
| 36 |
"url": "#", |
| 37 |
"icon": "📚", |
| 38 |
"iconType": "custom-char", |
| 39 |
"iconDashicon": "", |
| 40 |
"iconImageUrl": "", |
| 41 |
"level": 0, |
| 42 |
"badge": "", |
| 43 |
"badgeColor": "#6366f1", |
| 44 |
"dividerBefore": false |
| 45 |
}, |
| 46 |
{ |
| 47 |
"label": "Installation", |
| 48 |
"url": "#", |
| 49 |
"icon": "", |
| 50 |
"iconType": "custom-char", |
| 51 |
"iconDashicon": "", |
| 52 |
"iconImageUrl": "", |
| 53 |
"level": 1, |
| 54 |
"badge": "", |
| 55 |
"badgeColor": "#6366f1", |
| 56 |
"dividerBefore": false |
| 57 |
}, |
| 58 |
{ |
| 59 |
"label": "Quick Start", |
| 60 |
"url": "#", |
| 61 |
"icon": "", |
| 62 |
"iconType": "custom-char", |
| 63 |
"iconDashicon": "", |
| 64 |
"iconImageUrl": "", |
| 65 |
"level": 1, |
| 66 |
"badge": "New", |
| 67 |
"badgeColor": "#10b981", |
| 68 |
"dividerBefore": false |
| 69 |
}, |
| 70 |
{ |
| 71 |
"label": "Configuration", |
| 72 |
"url": "#", |
| 73 |
"icon": "", |
| 74 |
"iconType": "custom-char", |
| 75 |
"iconDashicon": "", |
| 76 |
"iconImageUrl": "", |
| 77 |
"level": 2, |
| 78 |
"badge": "", |
| 79 |
"badgeColor": "#6366f1", |
| 80 |
"dividerBefore": false |
| 81 |
}, |
| 82 |
{ |
| 83 |
"label": "Core Concepts", |
| 84 |
"url": "#", |
| 85 |
"icon": "🧩", |
| 86 |
"iconType": "custom-char", |
| 87 |
"iconDashicon": "", |
| 88 |
"iconImageUrl": "", |
| 89 |
"level": 0, |
| 90 |
"badge": "", |
| 91 |
"badgeColor": "#6366f1", |
| 92 |
"dividerBefore": true |
| 93 |
}, |
| 94 |
{ |
| 95 |
"label": "Architecture", |
| 96 |
"url": "#", |
| 97 |
"icon": "", |
| 98 |
"iconType": "custom-char", |
| 99 |
"iconDashicon": "", |
| 100 |
"iconImageUrl": "", |
| 101 |
"level": 1, |
| 102 |
"badge": "", |
| 103 |
"badgeColor": "#6366f1", |
| 104 |
"dividerBefore": false |
| 105 |
}, |
| 106 |
{ |
| 107 |
"label": "Components", |
| 108 |
"url": "#", |
| 109 |
"icon": "", |
| 110 |
"iconType": "custom-char", |
| 111 |
"iconDashicon": "", |
| 112 |
"iconImageUrl": "", |
| 113 |
"level": 1, |
| 114 |
"badge": "", |
| 115 |
"badgeColor": "#6366f1", |
| 116 |
"dividerBefore": false |
| 117 |
}, |
| 118 |
{ |
| 119 |
"label": "Hooks", |
| 120 |
"url": "#", |
| 121 |
"icon": "", |
| 122 |
"iconType": "custom-char", |
| 123 |
"iconDashicon": "", |
| 124 |
"iconImageUrl": "", |
| 125 |
"level": 2, |
| 126 |
"badge": "", |
| 127 |
"badgeColor": "#6366f1", |
| 128 |
"dividerBefore": false |
| 129 |
}, |
| 130 |
{ |
| 131 |
"label": "Context API", |
| 132 |
"url": "#", |
| 133 |
"icon": "", |
| 134 |
"iconType": "custom-char", |
| 135 |
"iconDashicon": "", |
| 136 |
"iconImageUrl": "", |
| 137 |
"level": 2, |
| 138 |
"badge": "", |
| 139 |
"badgeColor": "#6366f1", |
| 140 |
"dividerBefore": false |
| 141 |
}, |
| 142 |
{ |
| 143 |
"label": "API Reference", |
| 144 |
"url": "#", |
| 145 |
"icon": "📖", |
| 146 |
"iconType": "custom-char", |
| 147 |
"iconDashicon": "", |
| 148 |
"iconImageUrl": "", |
| 149 |
"level": 0, |
| 150 |
"badge": "", |
| 151 |
"badgeColor": "#6366f1", |
| 152 |
"dividerBefore": true |
| 153 |
}, |
| 154 |
{ |
| 155 |
"label": "REST API", |
| 156 |
"url": "#", |
| 157 |
"icon": "", |
| 158 |
"iconType": "custom-char", |
| 159 |
"iconDashicon": "", |
| 160 |
"iconImageUrl": "", |
| 161 |
"level": 1, |
| 162 |
"badge": "v2", |
| 163 |
"badgeColor": "#8b5cf6", |
| 164 |
"dividerBefore": false |
| 165 |
}, |
| 166 |
{ |
| 167 |
"label": "Changelog", |
| 168 |
"url": "#", |
| 169 |
"icon": "📝", |
| 170 |
"iconType": "custom-char", |
| 171 |
"iconDashicon": "", |
| 172 |
"iconImageUrl": "", |
| 173 |
"level": 0, |
| 174 |
"badge": "", |
| 175 |
"badgeColor": "#6366f1", |
| 176 |
"dividerBefore": true |
| 177 |
} |
| 178 |
] |
| 179 |
}, |
| 180 |
"headingText": { |
| 181 |
"type": "string", |
| 182 |
"default": "Documentation" |
| 183 |
}, |
| 184 |
"showHeading": { |
| 185 |
"type": "boolean", |
| 186 |
"default": true |
| 187 |
}, |
| 188 |
"menuStyle": { |
| 189 |
"type": "string", |
| 190 |
"default": "default" |
| 191 |
}, |
| 192 |
"collapsible": { |
| 193 |
"type": "boolean", |
| 194 |
"default": true |
| 195 |
}, |
| 196 |
"defaultExpanded": { |
| 197 |
"type": "boolean", |
| 198 |
"default": true |
| 199 |
}, |
| 200 |
"showIcons": { |
| 201 |
"type": "boolean", |
| 202 |
"default": true |
| 203 |
}, |
| 204 |
"showBadges": { |
| 205 |
"type": "boolean", |
| 206 |
"default": true |
| 207 |
}, |
| 208 |
"showDividers": { |
| 209 |
"type": "boolean", |
| 210 |
"default": true |
| 211 |
}, |
| 212 |
"activeIndex": { |
| 213 |
"type": "number", |
| 214 |
"default": 1 |
| 215 |
}, |
| 216 |
"width": { |
| 217 |
"type": "number", |
| 218 |
"default": 260 |
| 219 |
}, |
| 220 |
"itemPaddingV": { |
| 221 |
"type": "number", |
| 222 |
"default": 8 |
| 223 |
}, |
| 224 |
"itemPaddingH": { |
| 225 |
"type": "number", |
| 226 |
"default": 14 |
| 227 |
}, |
| 228 |
"fontSize": { |
| 229 |
"type": "number", |
| 230 |
"default": 14 |
| 231 |
}, |
| 232 |
"headingSize": { |
| 233 |
"type": "number", |
| 234 |
"default": 11 |
| 235 |
}, |
| 236 |
"borderRadius": { |
| 237 |
"type": "number", |
| 238 |
"default": 8 |
| 239 |
}, |
| 240 |
"paddingTop": { |
| 241 |
"type": "number", |
| 242 |
"default": 0 |
| 243 |
}, |
| 244 |
"paddingBottom": { |
| 245 |
"type": "number", |
| 246 |
"default": 0 |
| 247 |
}, |
| 248 |
"bgColor": { |
| 249 |
"type": "string", |
| 250 |
"default": "" |
| 251 |
}, |
| 252 |
"menuBg": { |
| 253 |
"type": "string", |
| 254 |
"default": "#ffffff" |
| 255 |
}, |
| 256 |
"menuBorder": { |
| 257 |
"type": "string", |
| 258 |
"default": "#e5e7eb" |
| 259 |
}, |
| 260 |
"headingColor": { |
| 261 |
"type": "string", |
| 262 |
"default": "#9ca3af" |
| 263 |
}, |
| 264 |
"itemColor": { |
| 265 |
"type": "string", |
| 266 |
"default": "#374151" |
| 267 |
}, |
| 268 |
"itemHoverBg": { |
| 269 |
"type": "string", |
| 270 |
"default": "#f3f4f6" |
| 271 |
}, |
| 272 |
"itemHoverColor": { |
| 273 |
"type": "string", |
| 274 |
"default": "#111827" |
| 275 |
}, |
| 276 |
"activeItemBg": { |
| 277 |
"type": "string", |
| 278 |
"default": "#ede9fe" |
| 279 |
}, |
| 280 |
"activeItemColor": { |
| 281 |
"type": "string", |
| 282 |
"default": "#6366f1" |
| 283 |
}, |
| 284 |
"activeIndicatorColor": { |
| 285 |
"type": "string", |
| 286 |
"default": "#6366f1" |
| 287 |
}, |
| 288 |
"sectionHeadingColor": { |
| 289 |
"type": "string", |
| 290 |
"default": "#111827" |
| 291 |
}, |
| 292 |
"dividerColor": { |
| 293 |
"type": "string", |
| 294 |
"default": "#e5e7eb" |
| 295 |
}, |
| 296 |
"badgeBg": { |
| 297 |
"type": "string", |
| 298 |
"default": "#6366f1" |
| 299 |
}, |
| 300 |
"badgeColor": { |
| 301 |
"type": "string", |
| 302 |
"default": "#ffffff" |
| 303 |
}, |
| 304 |
"arrowColor": { |
| 305 |
"type": "string", |
| 306 |
"default": "#9ca3af" |
| 307 |
}, |
| 308 |
"fontWeight": { |
| 309 |
"type": "number", |
| 310 |
"default": 600 |
| 311 |
}, |
| 312 |
"headingFontWeight": { |
| 313 |
"type": "number", |
| 314 |
"default": 700 |
| 315 |
}, |
| 316 |
"headingTypo": { |
| 317 |
"type": "object", |
| 318 |
"default": {} |
| 319 |
}, |
| 320 |
"itemTypo": { |
| 321 |
"type": "object", |
| 322 |
"default": {} |
| 323 |
} |
| 324 |
} |
| 325 |
} |