PluginProbe ʕ •ᴥ•ʔ
GenerateBlocks / 2.2.0
GenerateBlocks v2.2.0
trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 2.0.0 2.0.1 2.0.2 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.3.0
generateblocks / src / block-context / headline.js
generateblocks / src / block-context Last commit date
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
headline.js
130 lines
1 import defaultContext from './default';
2 import { __ } from '@wordpress/i18n';
3 import { defaultsDeep } from 'lodash';
4
5 const headlineContext = defaultsDeep( {
6 id: 'headline',
7 supports: {
8 responsiveTabs: true,
9 layout: {
10 enabled: true,
11 display: true,
12 flexDirection: true,
13 flexWrap: true,
14 alignItems: true,
15 justifyContent: true,
16 columnGap: true,
17 rowGap: true,
18 zIndex: true,
19 position: true,
20 },
21 flexChildPanel: {
22 enabled: true,
23 flex: true,
24 order: true,
25 },
26 sizingPanel: {
27 enabled: true,
28 width: true,
29 height: true,
30 minWidth: true,
31 minHeight: true,
32 maxWidth: true,
33 maxHeight: true,
34 useGlobalMaxWidth: true,
35 },
36 typography: {
37 enabled: true,
38 alignment: true,
39 fontWeight: true,
40 textTransform: true,
41 fontSize: true,
42 lineHeight: true,
43 letterSpacing: true,
44 fontFamily: true,
45 },
46 spacing: {
47 enabled: true,
48 padding: true,
49 margin: true,
50 },
51 borders: {
52 enabled: true,
53 borderColors: [
54 {
55 state: '',
56 tooltip: __( 'Border', 'generateblocks' ),
57 alpha: true,
58 },
59 ],
60 borderTop: true,
61 borderRight: true,
62 borderBottom: true,
63 borderLeft: true,
64 borderRadius: true,
65 },
66 colors: {
67 enabled: true,
68 elements: [
69 {
70 group: 'background',
71 label: __( 'Background', 'generateblocks' ),
72 items: [
73 {
74 attribute: 'backgroundColor',
75 alpha: true,
76 },
77 ],
78 },
79 {
80 group: 'text',
81 label: __( 'Text', 'generateblocks' ),
82 items: [
83 {
84 attribute: 'textColor',
85 },
86 ],
87 },
88 {
89 group: 'link',
90 label: __( 'Link', 'generateblocks' ),
91 items: [
92 {
93 attribute: 'linkColor',
94 },
95 {
96 tooltip: __( 'Hover', 'generateblocks' ),
97 attribute: 'linkColorHover',
98 },
99 ],
100 },
101 {
102 group: 'icon',
103 label: __( 'Icon', 'generateblocks' ),
104 items: [
105 {
106 attribute: 'iconColor',
107 alpha: true,
108 },
109 ],
110 },
111 {
112 group: 'highlight',
113 label: __( 'Highlight', 'generateblocks' ),
114 items: [
115 {
116 attribute: 'highlightTextColor',
117 },
118 ],
119 },
120 ],
121 },
122 icon: {
123 enabled: true,
124 iconSize: true,
125 },
126 },
127 }, defaultContext );
128
129 export default headlineContext;
130