button-container.js
2 years ago
button.js
2 years ago
container.js
2 years ago
default.js
2 years ago
grid.js
3 years ago
headline.js
2 years ago
image.js
2 years ago
index.js
2 years ago
container.js
124 lines
| 1 | import defaultContext from './default'; |
| 2 | import { __ } from '@wordpress/i18n'; |
| 3 | import { defaultsDeep } from 'lodash'; |
| 4 | |
| 5 | const containerContext = defaultsDeep( { |
| 6 | id: 'container', |
| 7 | supports: { |
| 8 | responsiveTabs: true, |
| 9 | settingsPanel: { |
| 10 | enabled: true, |
| 11 | icon: 'container-settings', |
| 12 | }, |
| 13 | layout: { |
| 14 | enabled: true, |
| 15 | display: true, |
| 16 | flexDirection: true, |
| 17 | flexWrap: true, |
| 18 | alignItems: true, |
| 19 | justifyContent: true, |
| 20 | columnGap: true, |
| 21 | rowGap: true, |
| 22 | zIndex: true, |
| 23 | position: true, |
| 24 | overflow: true, |
| 25 | themeWidth: true, |
| 26 | }, |
| 27 | flexChildPanel: { |
| 28 | enabled: true, |
| 29 | flex: true, |
| 30 | order: true, |
| 31 | }, |
| 32 | sizingPanel: { |
| 33 | enabled: true, |
| 34 | width: true, |
| 35 | height: true, |
| 36 | minWidth: true, |
| 37 | minHeight: true, |
| 38 | maxWidth: true, |
| 39 | maxHeight: true, |
| 40 | useGlobalMaxWidth: true, |
| 41 | }, |
| 42 | typography: { |
| 43 | enabled: true, |
| 44 | alignment: true, |
| 45 | fontWeight: true, |
| 46 | textTransform: true, |
| 47 | fontSize: true, |
| 48 | fontFamily: true, |
| 49 | }, |
| 50 | spacing: { |
| 51 | enabled: true, |
| 52 | padding: true, |
| 53 | margin: true, |
| 54 | }, |
| 55 | borders: { |
| 56 | enabled: true, |
| 57 | borderColors: [ |
| 58 | { |
| 59 | state: '', |
| 60 | tooltip: __( 'Border', 'generateblocks' ), |
| 61 | alpha: true, |
| 62 | }, |
| 63 | { |
| 64 | state: 'Hover', |
| 65 | tooltip: __( 'Border Hover', 'generateblocks' ), |
| 66 | alpha: true, |
| 67 | }, |
| 68 | ], |
| 69 | borderTop: true, |
| 70 | borderRight: true, |
| 71 | borderBottom: true, |
| 72 | borderLeft: true, |
| 73 | borderRadius: true, |
| 74 | }, |
| 75 | colors: { |
| 76 | enabled: true, |
| 77 | elements: [ |
| 78 | { |
| 79 | group: 'background', |
| 80 | label: __( 'Background', 'generateblocks' ), |
| 81 | items: [ |
| 82 | { |
| 83 | attribute: 'backgroundColor', |
| 84 | alpha: true, |
| 85 | }, |
| 86 | ], |
| 87 | }, |
| 88 | { |
| 89 | group: 'text', |
| 90 | label: __( 'Text', 'generateblocks' ), |
| 91 | items: [ |
| 92 | { |
| 93 | attribute: 'textColor', |
| 94 | }, |
| 95 | ], |
| 96 | }, |
| 97 | { |
| 98 | group: 'link', |
| 99 | label: __( 'Link', 'generateblocks' ), |
| 100 | items: [ |
| 101 | { |
| 102 | attribute: 'linkColor', |
| 103 | }, |
| 104 | { |
| 105 | tooltip: __( 'Hover', 'generateblocks' ), |
| 106 | attribute: 'linkColorHover', |
| 107 | }, |
| 108 | ], |
| 109 | }, |
| 110 | ], |
| 111 | }, |
| 112 | backgroundPanel: { |
| 113 | enabled: true, |
| 114 | backgroundImage: true, |
| 115 | backgroundGradient: true, |
| 116 | }, |
| 117 | shapesPanel: { |
| 118 | enabled: true, |
| 119 | }, |
| 120 | }, |
| 121 | }, defaultContext ); |
| 122 | |
| 123 | export default containerContext; |
| 124 |