block.json
154 lines
| 1 | { |
| 2 | "name": "kubio/column", |
| 3 | "title": "Column", |
| 4 | "category": "kubio-basic", |
| 5 | "usesContext": [ |
| 6 | "kubio/parentKubio" |
| 7 | ], |
| 8 | "parent": [ |
| 9 | "kubio/row" |
| 10 | ], |
| 11 | "attributes": { |
| 12 | "kubio": { |
| 13 | "type": "object" |
| 14 | } |
| 15 | }, |
| 16 | "supports": { |
| 17 | "anchor": true, |
| 18 | "disabledOnSimpleMode": false, |
| 19 | "kubio": { |
| 20 | "appearanceEffect": true, |
| 21 | "default": { |
| 22 | "props": { |
| 23 | "internal": { |
| 24 | "type": "object", |
| 25 | "default": { |
| 26 | "heroSection": { |
| 27 | "type": "none" |
| 28 | } |
| 29 | } |
| 30 | }, |
| 31 | "overlapOptions": false, |
| 32 | "layout": { |
| 33 | "horizontalGap": 2, |
| 34 | "verticalGap": 2, |
| 35 | "horizontalInnerGap": "inherit", |
| 36 | "verticalInnerGap": "inherit", |
| 37 | "verticalAlign": "start" |
| 38 | } |
| 39 | }, |
| 40 | "style": { |
| 41 | "descendants": { |
| 42 | "container": { |
| 43 | "customHeight": { |
| 44 | "type": "fit-to-content", |
| 45 | "min-height": { |
| 46 | "value": "", |
| 47 | "unit": "px" |
| 48 | } |
| 49 | } |
| 50 | }, |
| 51 | "inner": { |
| 52 | "textAlign": "center" |
| 53 | } |
| 54 | } |
| 55 | }, |
| 56 | "_style": { |
| 57 | "descendants": { |
| 58 | "container": { |
| 59 | "columnWidth": { |
| 60 | "type": "custom" |
| 61 | }, |
| 62 | "media": { |
| 63 | "mobile": { |
| 64 | "columnWidth": { |
| 65 | "type": "custom", |
| 66 | "custom": { |
| 67 | "value": 100, |
| 68 | "unit": "%" |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 | } |
| 73 | } |
| 74 | } |
| 75 | } |
| 76 | }, |
| 77 | "elementsEnum": { |
| 78 | "INNER": "inner", |
| 79 | "CONTAINER": "container", |
| 80 | "VSPACE": "v-space", |
| 81 | "ALIGN": "align" |
| 82 | }, |
| 83 | "elementsByName": { |
| 84 | "inner": { |
| 85 | "default": true, |
| 86 | "props": { |
| 87 | "className": [ |
| 88 | "d-flex", |
| 89 | "h-flex-basis" |
| 90 | ] |
| 91 | }, |
| 92 | "supports": { |
| 93 | "background": true, |
| 94 | "separator": true |
| 95 | } |
| 96 | }, |
| 97 | "container": { |
| 98 | "wrapper": true, |
| 99 | "props": { |
| 100 | "className": [ |
| 101 | "d-flex" |
| 102 | ] |
| 103 | } |
| 104 | }, |
| 105 | "align": { |
| 106 | "props": { |
| 107 | "className": [ |
| 108 | "h-y-container", |
| 109 | "h-column__content", |
| 110 | "h-column__v-align" |
| 111 | ] |
| 112 | } |
| 113 | }, |
| 114 | "v-space": { |
| 115 | "selector": "> * > .h-y-container > *:not(:last-child)" |
| 116 | } |
| 117 | }, |
| 118 | "template": { |
| 119 | "type": "element", |
| 120 | "props": { |
| 121 | "name": "container" |
| 122 | }, |
| 123 | "children": [ |
| 124 | { |
| 125 | "type": "element", |
| 126 | "props": { |
| 127 | "name": "inner" |
| 128 | }, |
| 129 | "children": [ |
| 130 | { |
| 131 | "type": "background" |
| 132 | }, |
| 133 | { |
| 134 | "type": "separators" |
| 135 | }, |
| 136 | { |
| 137 | "type": "element", |
| 138 | "props": { |
| 139 | "name": "align" |
| 140 | }, |
| 141 | "children": [ |
| 142 | { |
| 143 | "type": "wp:InnerBlocks" |
| 144 | } |
| 145 | ] |
| 146 | } |
| 147 | ] |
| 148 | } |
| 149 | ] |
| 150 | } |
| 151 | } |
| 152 | } |
| 153 | } |
| 154 |