| @@ -1,0 +1,450 @@ | ||
| 1 | +{ | |
| 2 | + "$schema": "https://schemas.wp.org/trunk/block.json", | |
| 3 | + "apiVersion": 3, | |
| 4 | + "name": "ablocks/menu-child-sub", | |
| 5 | + "parent": [ | |
| 6 | + "ablocks/menu-item" | |
| 7 | + ], | |
| 8 | + "version": "0.1.0", | |
| 9 | + "title": "Sub Menu", | |
| 10 | + "category": "ablocks", | |
| 11 | + "icon": "smiley", | |
| 12 | + "description": "Show Submenu", | |
| 13 | + "example": [], | |
| 14 | + "supports": { | |
| 15 | + "html": false, | |
| 16 | + "anchor": true | |
| 17 | + }, | |
| 18 | + "textdomain": "ablocks", | |
| 19 | + "style": [], | |
| 20 | + "attributes": { | |
| 21 | + "block_id": { | |
| 22 | + "type": "string", | |
| 23 | + "default": "" | |
| 24 | + }, | |
| 25 | + "background": { | |
| 26 | + "type": "string", | |
| 27 | + "default": "white" | |
| 28 | + }, | |
| 29 | + "direction": { | |
| 30 | + "type": "string", | |
| 31 | + "default": "column" | |
| 32 | + }, | |
| 33 | + "directionTablet": { | |
| 34 | + "type": "string", | |
| 35 | + "default": "" | |
| 36 | + }, | |
| 37 | + "directionMobile": { | |
| 38 | + "type": "string", | |
| 39 | + "default": "" | |
| 40 | + }, | |
| 41 | + "justify": { | |
| 42 | + "type": "string", | |
| 43 | + "default": "" | |
| 44 | + }, | |
| 45 | + "justifyTablet": { | |
| 46 | + "type": "string", | |
| 47 | + "default": "" | |
| 48 | + }, | |
| 49 | + "justifyMobile": { | |
| 50 | + "type": "string", | |
| 51 | + "default": "" | |
| 52 | + }, | |
| 53 | + "align": { | |
| 54 | + "type": "string", | |
| 55 | + "default": "" | |
| 56 | + }, | |
| 57 | + "alignTablet": { | |
| 58 | + "type": "string", | |
| 59 | + "default": "" | |
| 60 | + }, | |
| 61 | + "alignMobile": { | |
| 62 | + "type": "string", | |
| 63 | + "default": "" | |
| 64 | + }, | |
| 65 | + "menuItemTextColor": { | |
| 66 | + "type": "string", | |
| 67 | + "default": "" | |
| 68 | + }, | |
| 69 | + "menuItemTextColorH": { | |
| 70 | + "type": "string", | |
| 71 | + "default": "" | |
| 72 | + }, | |
| 73 | + "menuItemBackground": { | |
| 74 | + "type": "string", | |
| 75 | + "default": "" | |
| 76 | + }, | |
| 77 | + "menuItemBackgroundH": { | |
| 78 | + "type": "string", | |
| 79 | + "default": "" | |
| 80 | + }, | |
| 81 | + "menuItemTransition": { | |
| 82 | + "type": "number", | |
| 83 | + "default": 0 | |
| 84 | + }, | |
| 85 | + "menuItemAlign": { | |
| 86 | + "type": "string", | |
| 87 | + "default": "", | |
| 88 | + "copyStyle": true | |
| 89 | + }, | |
| 90 | + "menuItemAlignTablet": { | |
| 91 | + "type": "string", | |
| 92 | + "default": "", | |
| 93 | + "copyStyle": true | |
| 94 | + }, | |
| 95 | + "menuItemAlignMobile": { | |
| 96 | + "type": "string", | |
| 97 | + "default": "", | |
| 98 | + "copyStyle": true | |
| 99 | + }, | |
| 100 | + "menuItemDirection": { | |
| 101 | + "type": "string", | |
| 102 | + "default": "row", | |
| 103 | + "copyStyle": true | |
| 104 | + }, | |
| 105 | + "menuItemDirectionTablet": { | |
| 106 | + "type": "string", | |
| 107 | + "default": "", | |
| 108 | + "copyStyle": true | |
| 109 | + }, | |
| 110 | + "menuItemDirectionMobile": { | |
| 111 | + "type": "string", | |
| 112 | + "default": "", | |
| 113 | + "copyStyle": true | |
| 114 | + }, | |
| 115 | + "menuItemJustify": { | |
| 116 | + "type": "string", | |
| 117 | + "default": "space-between", | |
| 118 | + "copyStyle": true | |
| 119 | + }, | |
| 120 | + "menuItemJustifyTablet": { | |
| 121 | + "type": "string", | |
| 122 | + "default": "space-between", | |
| 123 | + "copyStyle": true | |
| 124 | + }, | |
| 125 | + "menuItemJustifyMobile": { | |
| 126 | + "type": "string", | |
| 127 | + "default": "space-between", | |
| 128 | + "copyStyle": true | |
| 129 | + }, | |
| 130 | + "menuItemJustification": { | |
| 131 | + "type": "object", | |
| 132 | + "default": { | |
| 133 | + "value": "space-between", | |
| 134 | + "valueTablet": "", | |
| 135 | + "valueMobile": "" | |
| 136 | + } | |
| 137 | + }, | |
| 138 | + "boxShadow": { | |
| 139 | + "type": "object", | |
| 140 | + "default": { | |
| 141 | + "preset": "", | |
| 142 | + "shadowType": "default", | |
| 143 | + "shadow": "", | |
| 144 | + "horizontal": "", | |
| 145 | + "vertical": "", | |
| 146 | + "blur": "", | |
| 147 | + "spread": "", | |
| 148 | + "color": "", | |
| 149 | + "presetH": "", | |
| 150 | + "shadowTypeH": "default", | |
| 151 | + "shadowH": "", | |
| 152 | + "horizontalH": "", | |
| 153 | + "verticalH": "", | |
| 154 | + "blurH": "", | |
| 155 | + "spreadH": "", | |
| 156 | + "colorH": "", | |
| 157 | + "transitionDuration": "0" | |
| 158 | + } | |
| 159 | + }, | |
| 160 | + "padding": { | |
| 161 | + "type": "object", | |
| 162 | + "default": { | |
| 163 | + "isLinked": true, | |
| 164 | + "common": "", | |
| 165 | + "top": "", | |
| 166 | + "right": "", | |
| 167 | + "bottom": "", | |
| 168 | + "left": "", | |
| 169 | + "unit": "px" | |
| 170 | + } | |
| 171 | + }, | |
| 172 | + "menuItemPadding": { | |
| 173 | + "type": "object", | |
| 174 | + "default": { | |
| 175 | + "isLinked": true, | |
| 176 | + "common": "", | |
| 177 | + "top": "", | |
| 178 | + "right": "", | |
| 179 | + "bottom": "", | |
| 180 | + "left": "", | |
| 181 | + "unit": "px" | |
| 182 | + } | |
| 183 | + }, | |
| 184 | + "menuItemMargin": { | |
| 185 | + "type": "object", | |
| 186 | + "default": { | |
| 187 | + "isLinked": true, | |
| 188 | + "common": "", | |
| 189 | + "top": "", | |
| 190 | + "right": "", | |
| 191 | + "bottom": "", | |
| 192 | + "left": "", | |
| 193 | + "unit": "px" | |
| 194 | + } | |
| 195 | + }, | |
| 196 | + "menuItemBorder": { | |
| 197 | + "type": "object", | |
| 198 | + "default": { | |
| 199 | + "borderStyle": "default", | |
| 200 | + "borderStyleH": "default", | |
| 201 | + "borderColor": "", | |
| 202 | + "borderColorH": "", | |
| 203 | + "isLinkedWidth": true, | |
| 204 | + "isLinkedWidthTablet": true, | |
| 205 | + "isLinkedWidthMobile": true, | |
| 206 | + "commonWidth": "", | |
| 207 | + "commonWidthTablet": "", | |
| 208 | + "commonWidthMobile": "", | |
| 209 | + "topWidth": "", | |
| 210 | + "rightWidth": "", | |
| 211 | + "bottomWidth": "", | |
| 212 | + "leftWidth": "", | |
| 213 | + "topWidthTablet": "", | |
| 214 | + "rightWidthTablet": "", | |
| 215 | + "bottomWidthTablet": "", | |
| 216 | + "leftWidthTablet": "", | |
| 217 | + "topWidthMobile": "", | |
| 218 | + "rightWidthMobile": "", | |
| 219 | + "bottomWidthMobile": "", | |
| 220 | + "leftWidthMobile": "", | |
| 221 | + "unitWidth": "px", | |
| 222 | + "unitWidthTablet": "", | |
| 223 | + "unitWidthMobile": "", | |
| 224 | + "isLinkedWidthH": true, | |
| 225 | + "isLinkedWidthHTablet": true, | |
| 226 | + "isLinkedWidthHMobile": true, | |
| 227 | + "commonWidthH": "", | |
| 228 | + "commonWidthHTablet": "", | |
| 229 | + "commonWidthHMobile": "", | |
| 230 | + "topWidthH": "", | |
| 231 | + "rightWidthH": "", | |
| 232 | + "bottomWidthH": "", | |
| 233 | + "leftWidthH": "", | |
| 234 | + "topWidthHTablet": "", | |
| 235 | + "rightWidthHTablet": "", | |
| 236 | + "bottomWidthHTablet": "", | |
| 237 | + "leftWidthHTablet": "", | |
| 238 | + "topWidthHMobile": "", | |
| 239 | + "rightWidthHMobile": "", | |
| 240 | + "bottomWidthHMobile": "", | |
| 241 | + "leftWidthHMobile": "", | |
| 242 | + "unitWidthH": "px", | |
| 243 | + "unitWidthHTablet": "", | |
| 244 | + "unitWidthHMobile": "", | |
| 245 | + "isLinkedRadius": true, | |
| 246 | + "isLinkedRadiusTablet": true, | |
| 247 | + "isLinkedRadiusMobile": true, | |
| 248 | + "commonRadius": "", | |
| 249 | + "commonRadiusTablet": "", | |
| 250 | + "commonRadiusMobile": "", | |
| 251 | + "topRadius": "", | |
| 252 | + "rightRadius": "", | |
| 253 | + "bottomRadius": "", | |
| 254 | + "leftRadius": "", | |
| 255 | + "topRadiusTablet": "", | |
| 256 | + "rightRadiusTablet": "", | |
| 257 | + "bottomRadiusTablet": "", | |
| 258 | + "leftRadiusTablet": "", | |
| 259 | + "topRadiusMobile": "", | |
| 260 | + "rightRadiusMobile": "", | |
| 261 | + "bottomRadiusMobile": "", | |
| 262 | + "leftRadiusMobile": "", | |
| 263 | + "unitRadius": "px", | |
| 264 | + "unitRadiusTablet": "", | |
| 265 | + "unitRadiusMobile": "", | |
| 266 | + "isLinkedRadiusH": true, | |
| 267 | + "isLinkedRadiusHTablet": true, | |
| 268 | + "isLinkedRadiusHMobile": true, | |
| 269 | + "commonRadiusH": "", | |
| 270 | + "commonRadiusHTablet": "", | |
| 271 | + "commonRadiusHMobile": "", | |
| 272 | + "topRadiusH": "", | |
| 273 | + "rightRadiusH": "", | |
| 274 | + "bottomRadiusH": "", | |
| 275 | + "leftRadiusH": "", | |
| 276 | + "topRadiusHTablet": "", | |
| 277 | + "rightRadiusHTablet": "", | |
| 278 | + "bottomRadiusHTablet": "", | |
| 279 | + "leftRadiusHTablet": "", | |
| 280 | + "topRadiusHMobile": "", | |
| 281 | + "rightRadiusHMobile": "", | |
| 282 | + "bottomRadiusHMobile": "", | |
| 283 | + "leftRadiusHMobile": "", | |
| 284 | + "unitRadiusH": "px", | |
| 285 | + "unitRadiusHTablet": "", | |
| 286 | + "unitRadiusHMobile": "", | |
| 287 | + "transitionDuration": "" | |
| 288 | + } | |
| 289 | + }, | |
| 290 | + "border": { | |
| 291 | + "type": "object", | |
| 292 | + "default": { | |
| 293 | + "borderStyle": "default", | |
| 294 | + "borderStyleH": "default", | |
| 295 | + "borderColor": "", | |
| 296 | + "borderColorH": "", | |
| 297 | + "isLinkedWidth": true, | |
| 298 | + "isLinkedWidthTablet": true, | |
| 299 | + "isLinkedWidthMobile": true, | |
| 300 | + "commonWidth": "", | |
| 301 | + "commonWidthTablet": "", | |
| 302 | + "commonWidthMobile": "", | |
| 303 | + "topWidth": "", | |
| 304 | + "rightWidth": "", | |
| 305 | + "bottomWidth": "", | |
| 306 | + "leftWidth": "", | |
| 307 | + "topWidthTablet": "", | |
| 308 | + "rightWidthTablet": "", | |
| 309 | + "bottomWidthTablet": "", | |
| 310 | + "leftWidthTablet": "", | |
| 311 | + "topWidthMobile": "", | |
| 312 | + "rightWidthMobile": "", | |
| 313 | + "bottomWidthMobile": "", | |
| 314 | + "leftWidthMobile": "", | |
| 315 | + "unitWidth": "px", | |
| 316 | + "unitWidthTablet": "", | |
| 317 | + "unitWidthMobile": "", | |
| 318 | + "isLinkedWidthH": true, | |
| 319 | + "isLinkedWidthHTablet": true, | |
| 320 | + "isLinkedWidthHMobile": true, | |
| 321 | + "commonWidthH": "", | |
| 322 | + "commonWidthHTablet": "", | |
| 323 | + "commonWidthHMobile": "", | |
| 324 | + "topWidthH": "", | |
| 325 | + "rightWidthH": "", | |
| 326 | + "bottomWidthH": "", | |
| 327 | + "leftWidthH": "", | |
| 328 | + "topWidthHTablet": "", | |
| 329 | + "rightWidthHTablet": "", | |
| 330 | + "bottomWidthHTablet": "", | |
| 331 | + "leftWidthHTablet": "", | |
| 332 | + "topWidthHMobile": "", | |
| 333 | + "rightWidthHMobile": "", | |
| 334 | + "bottomWidthHMobile": "", | |
| 335 | + "leftWidthHMobile": "", | |
| 336 | + "unitWidthH": "px", | |
| 337 | + "unitWidthHTablet": "", | |
| 338 | + "unitWidthHMobile": "", | |
| 339 | + "isLinkedRadius": true, | |
| 340 | + "isLinkedRadiusTablet": true, | |
| 341 | + "isLinkedRadiusMobile": true, | |
| 342 | + "commonRadius": "", | |
| 343 | + "commonRadiusTablet": "", | |
| 344 | + "commonRadiusMobile": "", | |
| 345 | + "topRadius": "", | |
| 346 | + "rightRadius": "", | |
| 347 | + "bottomRadius": "", | |
| 348 | + "leftRadius": "", | |
| 349 | + "topRadiusTablet": "", | |
| 350 | + "rightRadiusTablet": "", | |
| 351 | + "bottomRadiusTablet": "", | |
| 352 | + "leftRadiusTablet": "", | |
| 353 | + "topRadiusMobile": "", | |
| 354 | + "rightRadiusMobile": "", | |
| 355 | + "bottomRadiusMobile": "", | |
| 356 | + "leftRadiusMobile": "", | |
| 357 | + "unitRadius": "px", | |
| 358 | + "unitRadiusTablet": "", | |
| 359 | + "unitRadiusMobile": "", | |
| 360 | + "isLinkedRadiusH": true, | |
| 361 | + "isLinkedRadiusHTablet": true, | |
| 362 | + "isLinkedRadiusHMobile": true, | |
| 363 | + "commonRadiusH": "", | |
| 364 | + "commonRadiusHTablet": "", | |
| 365 | + "commonRadiusHMobile": "", | |
| 366 | + "topRadiusH": "", | |
| 367 | + "rightRadiusH": "", | |
| 368 | + "bottomRadiusH": "", | |
| 369 | + "leftRadiusH": "", | |
| 370 | + "topRadiusHTablet": "", | |
| 371 | + "rightRadiusHTablet": "", | |
| 372 | + "bottomRadiusHTablet": "", | |
| 373 | + "leftRadiusHTablet": "", | |
| 374 | + "topRadiusHMobile": "", | |
| 375 | + "rightRadiusHMobile": "", | |
| 376 | + "bottomRadiusHMobile": "", | |
| 377 | + "leftRadiusHMobile": "", | |
| 378 | + "unitRadiusH": "px", | |
| 379 | + "unitRadiusHTablet": "", | |
| 380 | + "unitRadiusHMobile": "", | |
| 381 | + "transitionDuration": "" | |
| 382 | + } | |
| 383 | + }, | |
| 384 | + "menuItemTypographyGlobal": { | |
| 385 | + "type": "string", | |
| 386 | + "default": "" | |
| 387 | + }, | |
| 388 | + "menuItemTypography": { | |
| 389 | + "type": "object", | |
| 390 | + "default": { | |
| 391 | + "fontFamily": "", | |
| 392 | + "weight": "", | |
| 393 | + "transform": "", | |
| 394 | + "style": "", | |
| 395 | + "decoration": "", | |
| 396 | + "fontSize": "", | |
| 397 | + "fontSizeUnit": "px", | |
| 398 | + "lineHeight": "", | |
| 399 | + "lineHeightUnit": "px", | |
| 400 | + "letterSpacing": "", | |
| 401 | + "letterSpacingUnit": "px", | |
| 402 | + "wordSpacing": "", | |
| 403 | + "wordSpacingUnit": "px", | |
| 404 | + "fontSizeTablet": "", | |
| 405 | + "fontSizeMobile": "", | |
| 406 | + "fontSizeUnitTablet": "px", | |
| 407 | + "fontSizeUnitMobile": "px", | |
| 408 | + "lineHeightTablet": "", | |
| 409 | + "lineHeightMobile": "", | |
| 410 | + "lineHeightUnitTablet": "px", | |
| 411 | + "lineHeightUnitMobile": "px", | |
| 412 | + "letterSpacingTablet": "", | |
| 413 | + "letterSpacingMobile": "", | |
| 414 | + "letterSpacingUnitTablet": "px", | |
| 415 | + "letterSpacingUnitMobile": "px", | |
| 416 | + "wordSpacingTablet": "", | |
| 417 | + "wordSpacingMobile": "", | |
| 418 | + "wordSpacingUnitTablet": "px", | |
| 419 | + "wordSpacingUnitMobile": "px" | |
| 420 | + } | |
| 421 | + }, | |
| 422 | + "width": { | |
| 423 | + "type": "object", | |
| 424 | + "default": { | |
| 425 | + "value": "", | |
| 426 | + "valueTablet": "", | |
| 427 | + "valueMobile": "", | |
| 428 | + "valueUnit": "px", | |
| 429 | + "valueUnitTablet": "", | |
| 430 | + "valueUnitMobile": "" | |
| 431 | + } | |
| 432 | + }, | |
| 433 | + "positionX": { | |
| 434 | + "type": "object", | |
| 435 | + "default": { | |
| 436 | + "value": 0, | |
| 437 | + "valueTablet": "", | |
| 438 | + "valueMobile": "" | |
| 439 | + } | |
| 440 | + }, | |
| 441 | + "positionY": { | |
| 442 | + "type": "object", | |
| 443 | + "default": { | |
| 444 | + "value": 0, | |
| 445 | + "valueTablet": "", | |
| 446 | + "valueMobile": "" | |
| 447 | + } | |
| 448 | + } | |
| 449 | + } | |
| 450 | +} | |