block.json
110 lines
| 1 | { |
| 2 | "name": "kubio/row", |
| 3 | "title": "Columns", |
| 4 | "category": "kubio-basic", |
| 5 | "attributes": { |
| 6 | "kubio": { |
| 7 | "type": "object" |
| 8 | }, |
| 9 | "templateLock": { |
| 10 | "type": "string" |
| 11 | } |
| 12 | }, |
| 13 | "supports": { |
| 14 | "anchor": true, |
| 15 | "disabledOnSimpleMode": true, |
| 16 | "kubio": { |
| 17 | "appearanceEffect": true, |
| 18 | "props": { |
| 19 | "fullBackground": { |
| 20 | "type": "boolean" |
| 21 | }, |
| 22 | "layout": { |
| 23 | "type": "object" |
| 24 | } |
| 25 | }, |
| 26 | "elementsEnum": { |
| 27 | "CONTAINER": "container", |
| 28 | "INNER": "inner", |
| 29 | "CENTER": "center", |
| 30 | "OUTER_GAPS": "outerGaps", |
| 31 | "INNER_GAPS": "innerGaps", |
| 32 | "TYPOGRAPHY_HOLDERS": "typographyHolders" |
| 33 | }, |
| 34 | "elementsByName": { |
| 35 | "container": { |
| 36 | "wrapper": true, |
| 37 | "default": true, |
| 38 | "supports": { |
| 39 | "separator": true, |
| 40 | "background": true |
| 41 | } |
| 42 | }, |
| 43 | "center": {}, |
| 44 | "inner": { |
| 45 | "props": { |
| 46 | "className": [ |
| 47 | "h-row" |
| 48 | ] |
| 49 | } |
| 50 | }, |
| 51 | "outerGaps": { |
| 52 | "selector": "> * > .h-row > [class*='h-col-'] > [class*='h-px-']" |
| 53 | }, |
| 54 | "innerGaps": { |
| 55 | "selector": " > * > .h-row > [class*='h-col-']" |
| 56 | } |
| 57 | }, |
| 58 | "template": { |
| 59 | "type": "element", |
| 60 | "props": { |
| 61 | "name": "container" |
| 62 | }, |
| 63 | "children": [ |
| 64 | { |
| 65 | "type": "background" |
| 66 | }, |
| 67 | { |
| 68 | "type": "separators" |
| 69 | }, |
| 70 | { |
| 71 | "type": "element", |
| 72 | "props": { |
| 73 | "name": "inner" |
| 74 | }, |
| 75 | "children": [ |
| 76 | { |
| 77 | "type": "wp:InnerBlocks" |
| 78 | } |
| 79 | ] |
| 80 | } |
| 81 | ] |
| 82 | }, |
| 83 | "default": { |
| 84 | "props": { |
| 85 | "fullBackground": false, |
| 86 | "layout": { |
| 87 | "equalWidth": false, |
| 88 | "equalHeight": true, |
| 89 | "itemsPerRow": 2, |
| 90 | "verticalAlign": "center", |
| 91 | "horizontalAlign": "center", |
| 92 | "horizontalGap": 2, |
| 93 | "verticalGap": 2, |
| 94 | "horizontalInnerGap": 2, |
| 95 | "verticalInnerGap": 2 |
| 96 | }, |
| 97 | "media": { |
| 98 | "mobile": { |
| 99 | "layout": { |
| 100 | "itemsPerRow": 1, |
| 101 | "horizontalGap": 0 |
| 102 | } |
| 103 | } |
| 104 | } |
| 105 | } |
| 106 | } |
| 107 | } |
| 108 | } |
| 109 | } |
| 110 |