css
4 years ago
attributes.js
4 years ago
block.js
4 years ago
deprecated.js
5 years ago
edit.js
4 years ago
editor.scss
5 years ago
attributes.js
116 lines
| 1 | /* eslint-disable no-undef */ |
| 2 | export default { |
| 3 | uniqueId: { |
| 4 | type: 'string', |
| 5 | default: '', |
| 6 | }, |
| 7 | anchor: { |
| 8 | type: 'string', |
| 9 | default: '', |
| 10 | }, |
| 11 | alignment: { |
| 12 | type: 'string', |
| 13 | default: generateBlocksDefaults.buttonContainer.alignment, |
| 14 | }, |
| 15 | alignmentTablet: { |
| 16 | type: 'string', |
| 17 | default: generateBlocksDefaults.buttonContainer.alignment, |
| 18 | }, |
| 19 | alignmentMobile: { |
| 20 | type: 'string', |
| 21 | default: generateBlocksDefaults.buttonContainer.alignment, |
| 22 | }, |
| 23 | marginTop: { |
| 24 | type: 'string', |
| 25 | default: generateBlocksDefaults.buttonContainer.marginTop, |
| 26 | }, |
| 27 | marginRight: { |
| 28 | type: 'string', |
| 29 | default: generateBlocksDefaults.buttonContainer.marginRight, |
| 30 | }, |
| 31 | marginBottom: { |
| 32 | type: 'string', |
| 33 | default: generateBlocksDefaults.buttonContainer.marginBottom, |
| 34 | }, |
| 35 | marginLeft: { |
| 36 | type: 'string', |
| 37 | default: generateBlocksDefaults.buttonContainer.marginLeft, |
| 38 | }, |
| 39 | marginUnit: { |
| 40 | type: 'string', |
| 41 | default: generateBlocksDefaults.buttonContainer.marginUnit, |
| 42 | }, |
| 43 | marginTopTablet: { |
| 44 | type: 'string', |
| 45 | default: generateBlocksDefaults.buttonContainer.marginTopTablet, |
| 46 | }, |
| 47 | marginRightTablet: { |
| 48 | type: 'string', |
| 49 | default: generateBlocksDefaults.buttonContainer.marginRightTablet, |
| 50 | }, |
| 51 | marginBottomTablet: { |
| 52 | type: 'string', |
| 53 | default: generateBlocksDefaults.buttonContainer.marginBottomTablet, |
| 54 | }, |
| 55 | marginLeftTablet: { |
| 56 | type: 'string', |
| 57 | default: generateBlocksDefaults.buttonContainer.marginLeftTablet, |
| 58 | }, |
| 59 | marginTopMobile: { |
| 60 | type: 'string', |
| 61 | default: generateBlocksDefaults.buttonContainer.marginTopMobile, |
| 62 | }, |
| 63 | marginRightMobile: { |
| 64 | type: 'string', |
| 65 | default: generateBlocksDefaults.buttonContainer.marginRightMobile, |
| 66 | }, |
| 67 | marginBottomMobile: { |
| 68 | type: 'string', |
| 69 | default: generateBlocksDefaults.buttonContainer.marginBottomMobile, |
| 70 | }, |
| 71 | marginLeftMobile: { |
| 72 | type: 'string', |
| 73 | default: generateBlocksDefaults.buttonContainer.marginLeftMobile, |
| 74 | }, |
| 75 | stack: { |
| 76 | type: 'boolean', |
| 77 | default: generateBlocksDefaults.buttonContainer.stack, |
| 78 | }, |
| 79 | stackTablet: { |
| 80 | type: 'boolean', |
| 81 | default: generateBlocksDefaults.buttonContainer.stackTablet, |
| 82 | }, |
| 83 | stackMobile: { |
| 84 | type: 'boolean', |
| 85 | default: generateBlocksDefaults.buttonContainer.stackMobile, |
| 86 | }, |
| 87 | fillHorizontalSpace: { |
| 88 | type: 'boolean', |
| 89 | default: generateBlocksDefaults.buttonContainer.fillHorizontalSpace, |
| 90 | }, |
| 91 | fillHorizontalSpaceTablet: { |
| 92 | type: 'boolean', |
| 93 | default: generateBlocksDefaults.buttonContainer.fillHorizontalSpaceTablet, |
| 94 | }, |
| 95 | fillHorizontalSpaceMobile: { |
| 96 | type: 'boolean', |
| 97 | default: generateBlocksDefaults.buttonContainer.fillHorizontalSpaceMobile, |
| 98 | }, |
| 99 | isDynamic: { |
| 100 | type: 'boolean', |
| 101 | }, |
| 102 | blockVersion: { |
| 103 | type: 'number', |
| 104 | }, |
| 105 | // deprecated since 1.2.0. |
| 106 | elementId: { |
| 107 | type: 'string', |
| 108 | default: '', |
| 109 | }, |
| 110 | cssClasses: { |
| 111 | type: 'string', |
| 112 | default: '', |
| 113 | }, |
| 114 | }; |
| 115 | /* eslint-enable no-undef */ |
| 116 |