@gem-sdk/components 2.0.0-dev.412 → 2.0.0-dev.414
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/article/setting/configs/ArticleDate/uiV2.js +1 -1
- package/dist/cjs/article/setting/configs/ArticleExcerpt/settings.js +4 -1
- package/dist/cjs/article/setting/configs/ArticleExcerpt/uiV2.js +1 -1
- package/dist/cjs/article/setting/configs/ArticleImage/uiV2.js +1 -1
- package/dist/cjs/article/setting/configs/ArticleReadMore/uiV2.js +1 -1
- package/dist/cjs/article/setting/configs/ArticleTitle/presets.js +1 -1
- package/dist/cjs/article/setting/configs/ArticleTitle/settings.js +2 -2
- package/dist/cjs/dialog/setting/configs/settings.js +25 -15
- package/dist/cjs/dialog/setting/configs/uiV2.js +11 -2
- package/dist/cjs/form/components/contact/common/composeStyles.js +3 -0
- package/dist/cjs/form/components/form-email/FormEmail.js +19 -18
- package/dist/cjs/form/components/form-email/FormEmail.liquid.js +6 -1
- package/dist/cjs/form/components/form-email/common/composeClasses.js +2 -2
- package/dist/cjs/form/components/textarea/TextArea.js +10 -18
- package/dist/cjs/form/components/textarea/TextArea.liquid.js +2 -2
- package/dist/cjs/form/components/textarea/common/composeStyles.js +8 -4
- package/dist/cjs/form/components/textfield/TextField.js +11 -19
- package/dist/cjs/form/components/textfield/TextField.liquid.js +2 -2
- package/dist/cjs/form/components/textfield/common/composeClasses.js +1 -1
- package/dist/cjs/form/components/textfield/common/composeStyles.js +11 -4
- package/dist/cjs/form/components/textinput/common/composeClasses.js +1 -1
- package/dist/cjs/form/setting/contact/ContactInitConfig.js +243 -12
- package/dist/cjs/form/setting/form-checkbox/configs/uiV2.js +56 -56
- package/dist/cjs/form/setting/form-dropdown/configs/uiV2.js +115 -121
- package/dist/cjs/form/setting/form-email/configs/settings.js +2 -1
- package/dist/cjs/form/setting/form-email/configs/uiV2.js +200 -205
- package/dist/cjs/form/setting/form-textarea/configs/settings.js +56 -0
- package/dist/cjs/form/setting/form-textarea/configs/uiV2.js +61 -5
- package/dist/cjs/form/setting/newsletter/NewsletterInitConfig.js +15 -0
- package/dist/cjs/form/setting/newsletter/configs/settings.js +77 -1
- package/dist/cjs/form/setting/newsletter/configs/uiV2.js +5 -8
- package/dist/cjs/form/setting/text-field/configs/settings.js +57 -0
- package/dist/cjs/form/setting/text-field/configs/uiV2.js +82 -5
- package/dist/esm/article/setting/configs/ArticleDate/uiV2.js +1 -1
- package/dist/esm/article/setting/configs/ArticleExcerpt/settings.js +4 -1
- package/dist/esm/article/setting/configs/ArticleExcerpt/uiV2.js +1 -1
- package/dist/esm/article/setting/configs/ArticleImage/uiV2.js +1 -1
- package/dist/esm/article/setting/configs/ArticleReadMore/uiV2.js +1 -1
- package/dist/esm/article/setting/configs/ArticleTitle/presets.js +1 -1
- package/dist/esm/article/setting/configs/ArticleTitle/settings.js +2 -2
- package/dist/esm/dialog/setting/configs/settings.js +25 -15
- package/dist/esm/dialog/setting/configs/uiV2.js +11 -2
- package/dist/esm/form/components/contact/common/composeStyles.js +4 -1
- package/dist/esm/form/components/form-email/FormEmail.js +19 -18
- package/dist/esm/form/components/form-email/FormEmail.liquid.js +6 -1
- package/dist/esm/form/components/form-email/common/composeClasses.js +2 -2
- package/dist/esm/form/components/textarea/TextArea.js +10 -18
- package/dist/esm/form/components/textarea/TextArea.liquid.js +2 -2
- package/dist/esm/form/components/textarea/common/composeStyles.js +9 -5
- package/dist/esm/form/components/textfield/TextField.js +11 -19
- package/dist/esm/form/components/textfield/TextField.liquid.js +2 -2
- package/dist/esm/form/components/textfield/common/composeClasses.js +1 -1
- package/dist/esm/form/components/textfield/common/composeStyles.js +12 -5
- package/dist/esm/form/components/textinput/common/composeClasses.js +1 -1
- package/dist/esm/form/setting/contact/ContactInitConfig.js +243 -12
- package/dist/esm/form/setting/form-checkbox/configs/uiV2.js +56 -56
- package/dist/esm/form/setting/form-dropdown/configs/uiV2.js +115 -121
- package/dist/esm/form/setting/form-email/configs/settings.js +2 -1
- package/dist/esm/form/setting/form-email/configs/uiV2.js +200 -205
- package/dist/esm/form/setting/form-textarea/configs/settings.js +56 -0
- package/dist/esm/form/setting/form-textarea/configs/uiV2.js +61 -5
- package/dist/esm/form/setting/newsletter/NewsletterInitConfig.js +15 -0
- package/dist/esm/form/setting/newsletter/configs/settings.js +77 -1
- package/dist/esm/form/setting/newsletter/configs/uiV2.js +5 -8
- package/dist/esm/form/setting/text-field/configs/settings.js +57 -0
- package/dist/esm/form/setting/text-field/configs/uiV2.js +82 -5
- package/dist/types/index.d.ts +17 -34
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { filterTruthy } from '../../../helpers/common.js';
|
|
2
|
-
import { composeAdvanceStyle, makeStyleResponsive,
|
|
2
|
+
import { composeAdvanceStyle, makeStyleResponsive, composeTypographyStyle, makeGlobalSize, getGlobalColorStyle, composeSize, makeStyle, getSingleColorVariable, getStyleShadow } from '@gem-sdk/core';
|
|
3
3
|
|
|
4
4
|
const composeStyles = (styles)=>filterTruthy(styles);
|
|
5
5
|
const composeContainerStyles = (advanced, setting)=>{
|
|
@@ -23,10 +23,10 @@ const composeContainerStyles = (advanced, setting)=>{
|
|
|
23
23
|
...makeStyleResponsive('ta', setting?.align)
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
|
-
const composeTextareaStyles = (advanced, setting)=>{
|
|
26
|
+
const composeTextareaStyles = (advanced, setting, styles)=>{
|
|
27
27
|
const { border, rounded, hasBoxShadow, boxShadow } = advanced ?? {};
|
|
28
|
-
const { typography
|
|
29
|
-
const
|
|
28
|
+
const { typography } = setting ?? {};
|
|
29
|
+
const { globalSize } = styles ?? {};
|
|
30
30
|
const appendTypoStyle = composeTypographyStyle(setting?.typo, typography);
|
|
31
31
|
const inputStyle = composeAdvanceStyle({
|
|
32
32
|
border,
|
|
@@ -34,14 +34,18 @@ const composeTextareaStyles = (advanced, setting)=>{
|
|
|
34
34
|
hasBoxShadow,
|
|
35
35
|
boxShadow
|
|
36
36
|
});
|
|
37
|
+
const composeGlobalSize = makeGlobalSize(globalSize);
|
|
37
38
|
return composeStyles({
|
|
39
|
+
...composeGlobalSize?.width?.['--w'] ? composeGlobalSize.width : {
|
|
40
|
+
'--w': '100%'
|
|
41
|
+
},
|
|
42
|
+
...composeGlobalSize.padding,
|
|
38
43
|
...getGlobalColorStyle(setting?.color),
|
|
39
44
|
...!setting?.size?.type ? composeSize(setting?.size?.custom) : {},
|
|
40
45
|
...makeStyle({
|
|
41
46
|
tt: setting?.transform
|
|
42
47
|
}),
|
|
43
48
|
...appendTypoStyle,
|
|
44
|
-
...textAreaWidth,
|
|
45
49
|
...inputStyle,
|
|
46
50
|
...makeStyle({
|
|
47
51
|
bc: getSingleColorVariable(border?.color)
|
|
@@ -4,37 +4,29 @@ import { createStyle, createClass } from '@gem-sdk/system';
|
|
|
4
4
|
import { composeContainerStyles, composeTextareaStyles } from './common/composeStyles.js';
|
|
5
5
|
import { composeContainerClasses, composeTextFieldClasses } from './common/composeClasses.js';
|
|
6
6
|
|
|
7
|
-
const TextField = ({ setting, builderProps, className, builderAttrs, advanced, children })=>{
|
|
7
|
+
const TextField = ({ setting, builderProps, className, builderAttrs, advanced, children, styles })=>{
|
|
8
8
|
const { text, name, placeholder, required } = setting ?? {};
|
|
9
9
|
const defaultName = name === '' || name === undefined ? 'contact[first_name]' : name;
|
|
10
10
|
const composedContainerStyles = createStyle(composeContainerStyles(advanced, setting));
|
|
11
11
|
const composedContainerClasses = createClass(composeContainerClasses(advanced, builderProps));
|
|
12
12
|
const composedTextFieldClasses = createClass(composeTextFieldClasses(setting, builderProps, className ?? ''));
|
|
13
|
-
const composedTextFieldStyles = createStyle(composeTextareaStyles(advanced, setting));
|
|
13
|
+
const composedTextFieldStyles = createStyle(composeTextareaStyles(advanced, setting, styles));
|
|
14
14
|
return /*#__PURE__*/ jsxs("div", {
|
|
15
15
|
...builderAttrs,
|
|
16
16
|
"data-id": builderProps?.uid,
|
|
17
17
|
className: composedContainerClasses,
|
|
18
18
|
style: composedContainerStyles,
|
|
19
19
|
children: [
|
|
20
|
-
/*#__PURE__*/ jsx("
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
/*#__PURE__*/ jsx("input", {
|
|
21
|
+
type: "text",
|
|
22
|
+
className: composedTextFieldClasses,
|
|
23
|
+
style: composedTextFieldStyles,
|
|
24
|
+
placeholder: placeholder,
|
|
25
|
+
required: required,
|
|
26
|
+
name: defaultName,
|
|
27
|
+
value: text
|
|
23
28
|
}),
|
|
24
|
-
|
|
25
|
-
children: [
|
|
26
|
-
/*#__PURE__*/ jsx("input", {
|
|
27
|
-
type: "text",
|
|
28
|
-
className: composedTextFieldClasses,
|
|
29
|
-
style: composedTextFieldStyles,
|
|
30
|
-
placeholder: placeholder,
|
|
31
|
-
required: required,
|
|
32
|
-
name: defaultName,
|
|
33
|
-
value: text
|
|
34
|
-
}),
|
|
35
|
-
children
|
|
36
|
-
]
|
|
37
|
-
})
|
|
29
|
+
children
|
|
38
30
|
]
|
|
39
31
|
});
|
|
40
32
|
};
|
|
@@ -4,7 +4,7 @@ import { createStyle, createClass, If } from '@gem-sdk/system';
|
|
|
4
4
|
import { composeContainerStyles, composeTextareaStyles } from './common/composeStyles.js';
|
|
5
5
|
import { composeContainerClasses, composeTextFieldClasses } from './common/composeClasses.js';
|
|
6
6
|
|
|
7
|
-
const TextField = ({ setting, builderProps, className, builderAttrs, advanced, pageContext })=>{
|
|
7
|
+
const TextField = ({ setting, builderProps, className, builderAttrs, advanced, pageContext, styles })=>{
|
|
8
8
|
const { text, name, placeholder, required, translate } = setting ?? {};
|
|
9
9
|
const defaultName = name === '' || name === undefined ? 'contact[first_name]' : name;
|
|
10
10
|
const placeholderVal = getDynamicSourceLocales({
|
|
@@ -17,7 +17,7 @@ const TextField = ({ setting, builderProps, className, builderAttrs, advanced, p
|
|
|
17
17
|
const composedContainerStyles = createStyle(composeContainerStyles(advanced, setting));
|
|
18
18
|
const composedContainerClasses = createClass(composeContainerClasses(advanced, builderProps));
|
|
19
19
|
const composedTextFieldClasses = createClass(composeTextFieldClasses(setting, builderProps, className ?? ''));
|
|
20
|
-
const composedTextFieldStyles = createStyle(composeTextareaStyles(advanced, setting));
|
|
20
|
+
const composedTextFieldStyles = createStyle(composeTextareaStyles(advanced, setting, styles));
|
|
21
21
|
return template`
|
|
22
22
|
<div
|
|
23
23
|
${builderAttrs}
|
|
@@ -18,7 +18,7 @@ const composeTextFieldClasses = (setting, builderProps, className)=>{
|
|
|
18
18
|
[appendTypoClass]: !!appendTypoClass,
|
|
19
19
|
[globalColorClass]: !!globalColorClass,
|
|
20
20
|
[`${genSizeClass(setting?.size?.type)}`]: !!setting?.size?.type,
|
|
21
|
-
'gp-form-item !gp-outline-none
|
|
21
|
+
'gp-form-item !gp-outline-none focus:!gp-shadow-none hover:!gp-shadow-none !gp-bg-none': true
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { filterTruthy } from '../../../helpers/common.js';
|
|
2
|
-
import { composeAdvanceStyle, makeStyleResponsive,
|
|
2
|
+
import { composeAdvanceStyle, makeStyleResponsive, composeTypographyStyle, makeGlobalSize, getGlobalColorStyle, composeSize, makeStyle, getSingleColorVariable, getStyleShadow } from '@gem-sdk/core';
|
|
3
3
|
|
|
4
4
|
const composeStyles = (styles)=>filterTruthy(styles);
|
|
5
5
|
const composeContainerStyles = (advanced, setting)=>{
|
|
@@ -23,10 +23,10 @@ const composeContainerStyles = (advanced, setting)=>{
|
|
|
23
23
|
...makeStyleResponsive('ta', setting?.align)
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
|
-
const composeTextareaStyles = (advanced, setting)=>{
|
|
26
|
+
const composeTextareaStyles = (advanced, setting, styles)=>{
|
|
27
27
|
const { border, rounded, hasBoxShadow, boxShadow } = advanced ?? {};
|
|
28
|
-
const { typography
|
|
29
|
-
const
|
|
28
|
+
const { typography } = setting ?? {};
|
|
29
|
+
const { globalSize } = styles ?? {};
|
|
30
30
|
const appendTypoStyle = composeTypographyStyle(setting?.typo, typography);
|
|
31
31
|
const inputStyle = composeAdvanceStyle({
|
|
32
32
|
border,
|
|
@@ -34,14 +34,21 @@ const composeTextareaStyles = (advanced, setting)=>{
|
|
|
34
34
|
hasBoxShadow,
|
|
35
35
|
boxShadow
|
|
36
36
|
});
|
|
37
|
+
const composeGlobalSize = makeGlobalSize(globalSize);
|
|
37
38
|
return composeStyles({
|
|
39
|
+
...composeGlobalSize?.width?.['--w'] ? composeGlobalSize.width : {
|
|
40
|
+
'--w': '100%'
|
|
41
|
+
},
|
|
42
|
+
...composeGlobalSize?.height?.['--h'] ? composeGlobalSize.height : {
|
|
43
|
+
'--h': 'auto'
|
|
44
|
+
},
|
|
45
|
+
...composeGlobalSize.padding,
|
|
38
46
|
...getGlobalColorStyle(setting?.color),
|
|
39
47
|
...!setting?.size?.type ? composeSize(setting?.size?.custom) : {},
|
|
40
48
|
...makeStyle({
|
|
41
49
|
tt: setting?.transform
|
|
42
50
|
}),
|
|
43
51
|
...appendTypoStyle,
|
|
44
|
-
...textAreaWidth,
|
|
45
52
|
...inputStyle,
|
|
46
53
|
...makeStyle({
|
|
47
54
|
bc: getSingleColorVariable(border?.color)
|
|
@@ -17,7 +17,7 @@ const composeTextFieldClasses = (setting, builderProps, className)=>{
|
|
|
17
17
|
[builderProps?.uid]: !!builderProps?.uid,
|
|
18
18
|
[appendTypoClass]: !!appendTypoClass,
|
|
19
19
|
[globalColorClass]: !!globalColorClass,
|
|
20
|
-
'gp-form-item !gp-outline-none focus:!gp-shadow-none hover:!gp-shadow-none !gp-bg-none !gp-border-box': true
|
|
20
|
+
'gp-form-item !gp-outline-none focus:!gp-shadow-none hover:!gp-shadow-none !gp-bg-none !gp-border-box text-input-custom': true
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -62,13 +62,71 @@ const contactInitConfig = [
|
|
|
62
62
|
{
|
|
63
63
|
tag: 'Col',
|
|
64
64
|
childrens: [
|
|
65
|
+
{
|
|
66
|
+
tag: 'Text',
|
|
67
|
+
label: 'Text Block',
|
|
68
|
+
settings: {
|
|
69
|
+
text: 'Name'
|
|
70
|
+
},
|
|
71
|
+
styles: {
|
|
72
|
+
typo: {
|
|
73
|
+
type: 'paragraph-1',
|
|
74
|
+
attrs: {
|
|
75
|
+
color: 'text-1'
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
textAlign: {
|
|
79
|
+
desktop: 'left'
|
|
80
|
+
},
|
|
81
|
+
align: {
|
|
82
|
+
desktop: 'left'
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
advanced: {
|
|
86
|
+
'spacing-setting': {
|
|
87
|
+
edited: [
|
|
88
|
+
'desktop'
|
|
89
|
+
],
|
|
90
|
+
desktop: {
|
|
91
|
+
margin: {
|
|
92
|
+
bottom: '0px'
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
tablet: {
|
|
96
|
+
margin: {
|
|
97
|
+
bottom: '0px'
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
mobile: {
|
|
101
|
+
margin: {
|
|
102
|
+
bottom: '0px'
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
op: {
|
|
107
|
+
desktop: '100%'
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
65
111
|
{
|
|
66
112
|
tag: 'TextField',
|
|
67
113
|
settings: {
|
|
68
114
|
name: 'contact[name]',
|
|
69
|
-
placeholder: 'Name'
|
|
70
|
-
|
|
71
|
-
|
|
115
|
+
placeholder: 'Name'
|
|
116
|
+
},
|
|
117
|
+
styles: {
|
|
118
|
+
globalSize: {
|
|
119
|
+
desktop: {
|
|
120
|
+
width: '100%',
|
|
121
|
+
height: 'Auto',
|
|
122
|
+
padding: {
|
|
123
|
+
type: 'medium',
|
|
124
|
+
top: '12px',
|
|
125
|
+
bottom: '12px',
|
|
126
|
+
left: '12px',
|
|
127
|
+
right: '12px'
|
|
128
|
+
}
|
|
129
|
+
}
|
|
72
130
|
}
|
|
73
131
|
},
|
|
74
132
|
advanced: {
|
|
@@ -109,12 +167,71 @@ const contactInitConfig = [
|
|
|
109
167
|
{
|
|
110
168
|
tag: 'Col',
|
|
111
169
|
childrens: [
|
|
170
|
+
{
|
|
171
|
+
tag: 'Text',
|
|
172
|
+
label: 'Text Block',
|
|
173
|
+
settings: {
|
|
174
|
+
text: 'Email'
|
|
175
|
+
},
|
|
176
|
+
styles: {
|
|
177
|
+
typo: {
|
|
178
|
+
type: 'paragraph-1',
|
|
179
|
+
attrs: {
|
|
180
|
+
color: 'text-1'
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
textAlign: {
|
|
184
|
+
desktop: 'left'
|
|
185
|
+
},
|
|
186
|
+
align: {
|
|
187
|
+
desktop: 'left'
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
advanced: {
|
|
191
|
+
'spacing-setting': {
|
|
192
|
+
edited: [
|
|
193
|
+
'desktop'
|
|
194
|
+
],
|
|
195
|
+
desktop: {
|
|
196
|
+
margin: {
|
|
197
|
+
bottom: '0px'
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
tablet: {
|
|
201
|
+
margin: {
|
|
202
|
+
bottom: '0px'
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
mobile: {
|
|
206
|
+
margin: {
|
|
207
|
+
bottom: '0px'
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
op: {
|
|
212
|
+
desktop: '100%'
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
},
|
|
112
216
|
{
|
|
113
217
|
tag: 'FormEmail',
|
|
114
218
|
settings: {
|
|
115
|
-
placeholder: 'Email'
|
|
116
|
-
|
|
117
|
-
|
|
219
|
+
placeholder: 'Email'
|
|
220
|
+
},
|
|
221
|
+
styles: {
|
|
222
|
+
globalSize: {
|
|
223
|
+
desktop: {
|
|
224
|
+
width: '100%',
|
|
225
|
+
height: 'Auto',
|
|
226
|
+
padding: {
|
|
227
|
+
type: 'medium',
|
|
228
|
+
top: '12px',
|
|
229
|
+
bottom: '12px',
|
|
230
|
+
left: '12px',
|
|
231
|
+
right: '12px'
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
118
235
|
},
|
|
119
236
|
advanced: {
|
|
120
237
|
'spacing-setting': {
|
|
@@ -153,13 +270,71 @@ const contactInitConfig = [
|
|
|
153
270
|
}
|
|
154
271
|
]
|
|
155
272
|
},
|
|
273
|
+
{
|
|
274
|
+
tag: 'Text',
|
|
275
|
+
label: 'Text Block',
|
|
276
|
+
settings: {
|
|
277
|
+
text: 'Phone Number'
|
|
278
|
+
},
|
|
279
|
+
styles: {
|
|
280
|
+
typo: {
|
|
281
|
+
type: 'paragraph-1',
|
|
282
|
+
attrs: {
|
|
283
|
+
color: 'text-1'
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
textAlign: {
|
|
287
|
+
desktop: 'left'
|
|
288
|
+
},
|
|
289
|
+
align: {
|
|
290
|
+
desktop: 'left'
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
advanced: {
|
|
294
|
+
'spacing-setting': {
|
|
295
|
+
edited: [
|
|
296
|
+
'desktop'
|
|
297
|
+
],
|
|
298
|
+
desktop: {
|
|
299
|
+
margin: {
|
|
300
|
+
bottom: '0px'
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
tablet: {
|
|
304
|
+
margin: {
|
|
305
|
+
bottom: '0px'
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
mobile: {
|
|
309
|
+
margin: {
|
|
310
|
+
bottom: '0px'
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
op: {
|
|
315
|
+
desktop: '100%'
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
},
|
|
156
319
|
{
|
|
157
320
|
tag: 'TextField',
|
|
158
321
|
settings: {
|
|
159
322
|
name: 'contact[phone]',
|
|
160
|
-
placeholder: 'Phone Number'
|
|
161
|
-
|
|
162
|
-
|
|
323
|
+
placeholder: 'Phone Number'
|
|
324
|
+
},
|
|
325
|
+
styles: {
|
|
326
|
+
globalSize: {
|
|
327
|
+
desktop: {
|
|
328
|
+
width: '100%',
|
|
329
|
+
height: 'Auto',
|
|
330
|
+
padding: {
|
|
331
|
+
type: 'medium',
|
|
332
|
+
top: '12px',
|
|
333
|
+
bottom: '12px',
|
|
334
|
+
left: '12px',
|
|
335
|
+
right: '12px'
|
|
336
|
+
}
|
|
337
|
+
}
|
|
163
338
|
}
|
|
164
339
|
},
|
|
165
340
|
advanced: {
|
|
@@ -195,13 +370,69 @@ const contactInitConfig = [
|
|
|
195
370
|
}
|
|
196
371
|
}
|
|
197
372
|
},
|
|
373
|
+
{
|
|
374
|
+
tag: 'Text',
|
|
375
|
+
label: 'Text Block',
|
|
376
|
+
settings: {
|
|
377
|
+
text: 'Message'
|
|
378
|
+
},
|
|
379
|
+
styles: {
|
|
380
|
+
typo: {
|
|
381
|
+
type: 'paragraph-1',
|
|
382
|
+
attrs: {
|
|
383
|
+
color: 'text-1'
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
textAlign: {
|
|
387
|
+
desktop: 'left'
|
|
388
|
+
},
|
|
389
|
+
align: {
|
|
390
|
+
desktop: 'left'
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
advanced: {
|
|
394
|
+
'spacing-setting': {
|
|
395
|
+
edited: [
|
|
396
|
+
'desktop'
|
|
397
|
+
],
|
|
398
|
+
desktop: {
|
|
399
|
+
margin: {
|
|
400
|
+
bottom: '0px'
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
tablet: {
|
|
404
|
+
margin: {
|
|
405
|
+
bottom: '0px'
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
mobile: {
|
|
409
|
+
margin: {
|
|
410
|
+
bottom: '0px'
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
op: {
|
|
415
|
+
desktop: '100%'
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
},
|
|
198
419
|
{
|
|
199
420
|
tag: 'FormTextarea',
|
|
200
421
|
name: 'contact[message]',
|
|
201
422
|
settings: {
|
|
202
|
-
placeholder: 'Message'
|
|
203
|
-
|
|
204
|
-
|
|
423
|
+
placeholder: 'Message'
|
|
424
|
+
},
|
|
425
|
+
globalSize: {
|
|
426
|
+
desktop: {
|
|
427
|
+
width: '100%',
|
|
428
|
+
height: 'Auto',
|
|
429
|
+
padding: {
|
|
430
|
+
type: 'medium',
|
|
431
|
+
top: '12px',
|
|
432
|
+
bottom: '12px',
|
|
433
|
+
left: '12px',
|
|
434
|
+
right: '12px'
|
|
435
|
+
}
|
|
205
436
|
}
|
|
206
437
|
},
|
|
207
438
|
advanced: {
|
|
@@ -125,62 +125,62 @@ const SettingUIV2 = [
|
|
|
125
125
|
}
|
|
126
126
|
]
|
|
127
127
|
},
|
|
128
|
-
{
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
},
|
|
128
|
+
// {
|
|
129
|
+
// label: {
|
|
130
|
+
// en: 'Background',
|
|
131
|
+
// },
|
|
132
|
+
// controls: [
|
|
133
|
+
// {
|
|
134
|
+
// setting: {
|
|
135
|
+
// id: 'background',
|
|
136
|
+
// },
|
|
137
|
+
// layout: 'vertical',
|
|
138
|
+
// },
|
|
139
|
+
// ],
|
|
140
|
+
// },
|
|
141
|
+
// {
|
|
142
|
+
// label: {
|
|
143
|
+
// en: 'Shape',
|
|
144
|
+
// },
|
|
145
|
+
// controls: [
|
|
146
|
+
// {
|
|
147
|
+
// label: {
|
|
148
|
+
// en: 'Border',
|
|
149
|
+
// },
|
|
150
|
+
// controlConfig: {
|
|
151
|
+
// id: 'border',
|
|
152
|
+
// type: 'border-v2',
|
|
153
|
+
// linkWithSetting: {
|
|
154
|
+
// name: 'wrapperBorder',
|
|
155
|
+
// },
|
|
156
|
+
// },
|
|
157
|
+
// },
|
|
158
|
+
// {
|
|
159
|
+
// label: {
|
|
160
|
+
// en: 'Corner',
|
|
161
|
+
// },
|
|
162
|
+
// controlConfig: {
|
|
163
|
+
// id: 'corner',
|
|
164
|
+
// type: 'corner-v2',
|
|
165
|
+
// linkWithSetting: {
|
|
166
|
+
// name: 'borderRadius',
|
|
167
|
+
// },
|
|
168
|
+
// },
|
|
169
|
+
// },
|
|
170
|
+
// {
|
|
171
|
+
// label: {
|
|
172
|
+
// en: 'Shadow',
|
|
173
|
+
// },
|
|
174
|
+
// controlConfig: {
|
|
175
|
+
// id: 'shadow',
|
|
176
|
+
// type: 'shadow-v2',
|
|
177
|
+
// linkWithSetting: {
|
|
178
|
+
// name: 'shadow',
|
|
179
|
+
// },
|
|
180
|
+
// },
|
|
181
|
+
// },
|
|
182
|
+
// ],
|
|
183
|
+
// },
|
|
184
184
|
{
|
|
185
185
|
label: {
|
|
186
186
|
en: 'Configuration'
|