@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
|
@@ -158,7 +158,7 @@ const NewsletterSettings = [
|
|
|
158
158
|
devices: {
|
|
159
159
|
desktop: {
|
|
160
160
|
default: {
|
|
161
|
-
width: '
|
|
161
|
+
width: '480px',
|
|
162
162
|
height: 'Auto',
|
|
163
163
|
padding: {
|
|
164
164
|
type: 'medium',
|
|
@@ -203,6 +203,82 @@ const NewsletterSettings = [
|
|
|
203
203
|
'shape',
|
|
204
204
|
'gap'
|
|
205
205
|
]
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
id: 'shapeBorder',
|
|
209
|
+
type: 'border-v2',
|
|
210
|
+
devices: {
|
|
211
|
+
desktop: {
|
|
212
|
+
default: {
|
|
213
|
+
borderType: 'none',
|
|
214
|
+
border: 'none',
|
|
215
|
+
borderWidth: '1px',
|
|
216
|
+
width: '1px 1px 1px 1px',
|
|
217
|
+
color: '#121212',
|
|
218
|
+
isCustom: true
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
compoDefaultValue: {
|
|
223
|
+
desktop: {
|
|
224
|
+
default: {
|
|
225
|
+
border: 'solid',
|
|
226
|
+
color: '#121212',
|
|
227
|
+
width: '1px',
|
|
228
|
+
borderWidth: '1px'
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
id: 'shapeRounded',
|
|
235
|
+
type: 'corner-v2',
|
|
236
|
+
devices: {
|
|
237
|
+
desktop: {
|
|
238
|
+
default: {
|
|
239
|
+
btrr: '0px',
|
|
240
|
+
bblr: '0px',
|
|
241
|
+
bbrr: '0px',
|
|
242
|
+
btlr: '0px',
|
|
243
|
+
radiusType: 'none'
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
compoDefaultValue: {
|
|
248
|
+
desktop: {
|
|
249
|
+
default: {
|
|
250
|
+
btrr: '8px',
|
|
251
|
+
bblr: '8px',
|
|
252
|
+
bbrr: '8px',
|
|
253
|
+
btlr: '8px',
|
|
254
|
+
radiusType: 'rounded'
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
id: 'shapeBoxShadow',
|
|
261
|
+
type: 'shadow-v2',
|
|
262
|
+
devices: {
|
|
263
|
+
desktop: {
|
|
264
|
+
default: {
|
|
265
|
+
enable: false
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
compoDefaultValue: {
|
|
270
|
+
desktop: {
|
|
271
|
+
default: {
|
|
272
|
+
type: 'shadow-2',
|
|
273
|
+
distance: '12px',
|
|
274
|
+
blur: '12px',
|
|
275
|
+
spread: '0px',
|
|
276
|
+
color: 'rgba(18, 18, 18, 0.2)',
|
|
277
|
+
angle: 45,
|
|
278
|
+
enable: true
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
206
282
|
}
|
|
207
283
|
]
|
|
208
284
|
}
|
|
@@ -98,8 +98,8 @@ const SettingUIV2 = [
|
|
|
98
98
|
},
|
|
99
99
|
displayOptions: [
|
|
100
100
|
{
|
|
101
|
-
label: '
|
|
102
|
-
value: '
|
|
101
|
+
label: 'Full',
|
|
102
|
+
value: '100%',
|
|
103
103
|
showValue: true
|
|
104
104
|
}
|
|
105
105
|
]
|
|
@@ -131,8 +131,7 @@ const SettingUIV2 = [
|
|
|
131
131
|
en: 'Border'
|
|
132
132
|
},
|
|
133
133
|
setting: {
|
|
134
|
-
id: '
|
|
135
|
-
state: 'normal'
|
|
134
|
+
id: 'shapeBorder'
|
|
136
135
|
}
|
|
137
136
|
},
|
|
138
137
|
{
|
|
@@ -140,8 +139,7 @@ const SettingUIV2 = [
|
|
|
140
139
|
en: 'Corner'
|
|
141
140
|
},
|
|
142
141
|
setting: {
|
|
143
|
-
id: '
|
|
144
|
-
state: 'normal'
|
|
142
|
+
id: 'shapeRounded'
|
|
145
143
|
}
|
|
146
144
|
},
|
|
147
145
|
{
|
|
@@ -149,8 +147,7 @@ const SettingUIV2 = [
|
|
|
149
147
|
en: 'Shadow'
|
|
150
148
|
},
|
|
151
149
|
setting: {
|
|
152
|
-
id: '
|
|
153
|
-
state: 'normal'
|
|
150
|
+
id: 'shapeBoxShadow'
|
|
154
151
|
}
|
|
155
152
|
}
|
|
156
153
|
]
|
|
@@ -146,6 +146,63 @@ const TextFieldSettings = [
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
]
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
id: 'style',
|
|
152
|
+
controls: [
|
|
153
|
+
{
|
|
154
|
+
id: 'globalSize',
|
|
155
|
+
type: 'size-setting',
|
|
156
|
+
devices: {
|
|
157
|
+
desktop: {
|
|
158
|
+
default: {
|
|
159
|
+
width: '100%',
|
|
160
|
+
height: 'Auto',
|
|
161
|
+
padding: {
|
|
162
|
+
type: 'medium',
|
|
163
|
+
top: '12px',
|
|
164
|
+
bottom: '12px',
|
|
165
|
+
left: '12px',
|
|
166
|
+
right: '12px'
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
settingConfig: {
|
|
172
|
+
width: {
|
|
173
|
+
displayOptions: [
|
|
174
|
+
'full',
|
|
175
|
+
'auto',
|
|
176
|
+
'small',
|
|
177
|
+
'large',
|
|
178
|
+
'medium'
|
|
179
|
+
],
|
|
180
|
+
sizeConfig: {
|
|
181
|
+
small: '100px',
|
|
182
|
+
medium: '116px',
|
|
183
|
+
large: '132px'
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
height: {
|
|
187
|
+
displayOptions: [
|
|
188
|
+
'auto',
|
|
189
|
+
'small',
|
|
190
|
+
'large',
|
|
191
|
+
'medium'
|
|
192
|
+
],
|
|
193
|
+
sizeConfig: {
|
|
194
|
+
small: '28px',
|
|
195
|
+
medium: '36px',
|
|
196
|
+
large: '44px'
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
hiddenSettings: [
|
|
201
|
+
'shape',
|
|
202
|
+
'gap'
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
]
|
|
149
206
|
}
|
|
150
207
|
];
|
|
151
208
|
|
|
@@ -40,16 +40,93 @@ const SettingUIV2 = [
|
|
|
40
40
|
label: {
|
|
41
41
|
en: 'Width'
|
|
42
42
|
},
|
|
43
|
-
|
|
44
|
-
id: 'width'
|
|
45
|
-
|
|
43
|
+
controlConfig: {
|
|
44
|
+
id: 'width',
|
|
45
|
+
type: 'dropdown:input',
|
|
46
|
+
label: 'Width',
|
|
47
|
+
inputType: 'number',
|
|
48
|
+
units: [
|
|
49
|
+
'px',
|
|
50
|
+
'%'
|
|
51
|
+
],
|
|
52
|
+
hideUnit: false,
|
|
53
|
+
linkWithSetting: {
|
|
54
|
+
name: 'globalSize',
|
|
55
|
+
field: 'width'
|
|
56
|
+
},
|
|
57
|
+
displayOptions: [
|
|
58
|
+
{
|
|
59
|
+
label: 'Fit content',
|
|
60
|
+
value: 'Auto',
|
|
61
|
+
showValue: true
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: 'Full',
|
|
65
|
+
value: '100%',
|
|
66
|
+
showValue: true
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
label: 'Small',
|
|
70
|
+
value: '100px',
|
|
71
|
+
showValue: true
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
label: 'Medium',
|
|
75
|
+
value: '116px',
|
|
76
|
+
showValue: true
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: 'Large',
|
|
80
|
+
value: '132px',
|
|
81
|
+
showValue: true
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
layout: 'horizontal'
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
label: {
|
|
89
|
+
en: 'Height'
|
|
90
|
+
},
|
|
91
|
+
controlConfig: {
|
|
92
|
+
id: 'height',
|
|
93
|
+
type: 'dropdown:input',
|
|
94
|
+
label: 'Height',
|
|
95
|
+
inputType: 'number',
|
|
96
|
+
units: [
|
|
97
|
+
'px',
|
|
98
|
+
'%'
|
|
99
|
+
],
|
|
100
|
+
hideUnit: false,
|
|
101
|
+
linkWithSetting: {
|
|
102
|
+
name: 'globalSize',
|
|
103
|
+
field: 'height'
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
layout: 'horizontal'
|
|
46
107
|
},
|
|
47
108
|
{
|
|
48
109
|
label: {
|
|
49
110
|
en: 'Padding'
|
|
50
111
|
},
|
|
51
|
-
|
|
52
|
-
id: '
|
|
112
|
+
controlConfig: {
|
|
113
|
+
id: 'padding',
|
|
114
|
+
type: 'padding-v2',
|
|
115
|
+
linkWithSetting: {
|
|
116
|
+
name: 'globalSize',
|
|
117
|
+
field: 'padding'
|
|
118
|
+
},
|
|
119
|
+
compoDefaultValue: {
|
|
120
|
+
desktop: {
|
|
121
|
+
default: {
|
|
122
|
+
type: 'medium',
|
|
123
|
+
top: '12px',
|
|
124
|
+
bottom: '12px',
|
|
125
|
+
left: '12px',
|
|
126
|
+
right: '12px'
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
53
130
|
}
|
|
54
131
|
}
|
|
55
132
|
]
|
|
@@ -539,7 +539,7 @@ const uiV2 = [
|
|
|
539
539
|
options: {
|
|
540
540
|
labelVariant: 'primary',
|
|
541
541
|
fullWidth: true,
|
|
542
|
-
disableMessage: `
|
|
542
|
+
disableMessage: `Horizontal alignment is disabled when the width is set to 100% or greater`
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
545
|
]
|
|
@@ -36,7 +36,7 @@ const ArticleTitleSettings = [
|
|
|
36
36
|
label: 'Div'
|
|
37
37
|
}
|
|
38
38
|
],
|
|
39
|
-
default: '
|
|
39
|
+
default: 'h2'
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
id: 'enableLink',
|
|
@@ -54,7 +54,7 @@ const ArticleTitleSettings = [
|
|
|
54
54
|
value: 'go-to-article'
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
|
-
label: '
|
|
57
|
+
label: 'Scroll to',
|
|
58
58
|
value: 'scroll-to'
|
|
59
59
|
}
|
|
60
60
|
],
|
|
@@ -128,18 +128,22 @@ const DialogSettings = [
|
|
|
128
128
|
units: [
|
|
129
129
|
'%'
|
|
130
130
|
],
|
|
131
|
-
useOnlyUnitInit: true
|
|
131
|
+
useOnlyUnitInit: true,
|
|
132
|
+
showDefaultUnit: true,
|
|
133
|
+
isNumber: true
|
|
132
134
|
},
|
|
133
135
|
{
|
|
134
136
|
id: 'triggerTime',
|
|
135
137
|
type: 'input:slider',
|
|
136
138
|
min: 0,
|
|
137
|
-
default:
|
|
139
|
+
default: 0,
|
|
138
140
|
max: 100,
|
|
139
141
|
units: [
|
|
140
142
|
's'
|
|
141
143
|
],
|
|
142
|
-
useOnlyUnitInit: true
|
|
144
|
+
useOnlyUnitInit: true,
|
|
145
|
+
showDefaultUnit: true,
|
|
146
|
+
isNumber: true
|
|
143
147
|
},
|
|
144
148
|
{
|
|
145
149
|
id: 'triggerPercentage',
|
|
@@ -150,7 +154,9 @@ const DialogSettings = [
|
|
|
150
154
|
min: 0,
|
|
151
155
|
max: 100,
|
|
152
156
|
default: 10,
|
|
153
|
-
useOnlyUnitInit: true
|
|
157
|
+
useOnlyUnitInit: true,
|
|
158
|
+
showDefaultUnit: true,
|
|
159
|
+
isNumber: true
|
|
154
160
|
},
|
|
155
161
|
{
|
|
156
162
|
id: 'frequency',
|
|
@@ -161,7 +167,9 @@ const DialogSettings = [
|
|
|
161
167
|
units: [
|
|
162
168
|
'days'
|
|
163
169
|
],
|
|
164
|
-
useOnlyUnitInit: true
|
|
170
|
+
useOnlyUnitInit: true,
|
|
171
|
+
showDefaultUnit: true,
|
|
172
|
+
isNumber: true
|
|
165
173
|
},
|
|
166
174
|
{
|
|
167
175
|
id: 'frequencyMode',
|
|
@@ -189,12 +197,16 @@ const DialogSettings = [
|
|
|
189
197
|
},
|
|
190
198
|
{
|
|
191
199
|
id: 'iconSize',
|
|
192
|
-
type: 'input:
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
],
|
|
196
|
-
default: '12px'
|
|
200
|
+
type: 'input:stepper',
|
|
201
|
+
default: '12px',
|
|
202
|
+
includeUnit: 'px'
|
|
197
203
|
},
|
|
204
|
+
// {
|
|
205
|
+
// id: 'iconSize',
|
|
206
|
+
// type: 'input:unit',
|
|
207
|
+
// units: ['px'],
|
|
208
|
+
// default: '12px',
|
|
209
|
+
// },
|
|
198
210
|
{
|
|
199
211
|
id: 'btnBg',
|
|
200
212
|
type: 'color-picker-v2',
|
|
@@ -217,10 +229,6 @@ const DialogSettings = [
|
|
|
217
229
|
label: 'After page loaded',
|
|
218
230
|
value: 'show-on-page-load'
|
|
219
231
|
},
|
|
220
|
-
{
|
|
221
|
-
label: 'After a time',
|
|
222
|
-
value: 'show-after-time'
|
|
223
|
-
},
|
|
224
232
|
{
|
|
225
233
|
label: 'Scroll partially',
|
|
226
234
|
value: 'show-after-scroll'
|
|
@@ -256,7 +264,9 @@ const DialogSettings = [
|
|
|
256
264
|
units: [
|
|
257
265
|
's'
|
|
258
266
|
],
|
|
259
|
-
useOnlyUnitInit: true
|
|
267
|
+
useOnlyUnitInit: true,
|
|
268
|
+
showDefaultUnit: true,
|
|
269
|
+
isNumber: true
|
|
260
270
|
},
|
|
261
271
|
{
|
|
262
272
|
id: 'btnRounded',
|
|
@@ -146,10 +146,19 @@ const SettingUIV2 = [
|
|
|
146
146
|
name: 'spacing-setting',
|
|
147
147
|
field: 'padding'
|
|
148
148
|
},
|
|
149
|
+
devices: {
|
|
150
|
+
desktop: {
|
|
151
|
+
default: {
|
|
152
|
+
top: '32px',
|
|
153
|
+
bottom: '32px',
|
|
154
|
+
left: '32px',
|
|
155
|
+
right: '32px'
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
149
159
|
compoDefaultValue: {
|
|
150
160
|
desktop: {
|
|
151
161
|
default: {
|
|
152
|
-
type: 'medium',
|
|
153
162
|
top: '32px',
|
|
154
163
|
bottom: '32px',
|
|
155
164
|
left: '32px',
|
|
@@ -300,7 +309,7 @@ const SettingUIV2 = [
|
|
|
300
309
|
{
|
|
301
310
|
conditionDisplay: `trigger === 'show-after-time' || trigger === 'show-on-page-load'`,
|
|
302
311
|
label: {
|
|
303
|
-
en: '
|
|
312
|
+
en: 'Delay'
|
|
304
313
|
},
|
|
305
314
|
setting: {
|
|
306
315
|
id: 'triggerTime'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { filterTruthy } from '../../../helpers/common.js';
|
|
2
|
-
import { makeGlobalSize, getStyleBackgroundByDevice, getGradientBgrStyleByDevice } from '@gem-sdk/core';
|
|
2
|
+
import { makeGlobalSize, composeBorderResponsive, composeRadiusResponsive, getResponsiveStyleShadowWithoutState, getStyleBackgroundByDevice, getGradientBgrStyleByDevice } from '@gem-sdk/core';
|
|
3
3
|
|
|
4
4
|
const composeStyles = (styles)=>filterTruthy(styles);
|
|
5
5
|
const composeContainerStyles = (setting, styles)=>{
|
|
@@ -12,6 +12,9 @@ const composeContainerStyles = (setting, styles)=>{
|
|
|
12
12
|
'--w': '100%'
|
|
13
13
|
},
|
|
14
14
|
...composeGlobalSize.padding,
|
|
15
|
+
...composeBorderResponsive(styles?.shapeBorder),
|
|
16
|
+
...composeRadiusResponsive(styles?.shapeRounded),
|
|
17
|
+
...getResponsiveStyleShadowWithoutState(styles?.shapeBoxShadow, 'box-shadow', styles?.shapeBoxShadow),
|
|
15
18
|
...getStyleBackgroundByDevice(background),
|
|
16
19
|
...getGradientBgrStyleByDevice(background)
|
|
17
20
|
});
|
|
@@ -9,7 +9,12 @@ const FormEmail = ({ builderProps, builderAttrs, setting, advanced, children, st
|
|
|
9
9
|
const name = 'contact[email]';
|
|
10
10
|
const containerStyles = createStyle(composeContainerStyles(setting, advanced));
|
|
11
11
|
const innerStyles = createStyle(composeInnerStyles(setting, advanced, styles));
|
|
12
|
-
const containerClasses = createClass(composeContainerClasses(
|
|
12
|
+
const containerClasses = createClass(composeContainerClasses({
|
|
13
|
+
setting,
|
|
14
|
+
advanced,
|
|
15
|
+
builderProps,
|
|
16
|
+
type: 'react'
|
|
17
|
+
}));
|
|
13
18
|
const innerClasses = createClass(composeInnerClasses(setting, builderProps));
|
|
14
19
|
const classTitle = createClass(getClassTitle());
|
|
15
20
|
return /*#__PURE__*/ jsxs("div", {
|
|
@@ -22,23 +27,19 @@ const FormEmail = ({ builderProps, builderAttrs, setting, advanced, children, st
|
|
|
22
27
|
className: classTitle,
|
|
23
28
|
children: title
|
|
24
29
|
})),
|
|
25
|
-
/*#__PURE__*/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}),
|
|
39
|
-
children
|
|
40
|
-
]
|
|
41
|
-
})
|
|
30
|
+
/*#__PURE__*/ jsx("input", {
|
|
31
|
+
type: "email",
|
|
32
|
+
className: innerClasses,
|
|
33
|
+
style: innerStyles,
|
|
34
|
+
placeholder: placeholder,
|
|
35
|
+
name: name,
|
|
36
|
+
required: required,
|
|
37
|
+
autoComplete: "email",
|
|
38
|
+
...hideOnClient && {
|
|
39
|
+
value: defaultEmail
|
|
40
|
+
}
|
|
41
|
+
}),
|
|
42
|
+
children
|
|
42
43
|
]
|
|
43
44
|
});
|
|
44
45
|
};
|
|
@@ -16,7 +16,12 @@ const FormEmail = ({ builderProps, builderAttrs, setting, advanced, pageContext,
|
|
|
16
16
|
});
|
|
17
17
|
const containerStyles = createStyle(composeContainerStyles(setting, advanced));
|
|
18
18
|
const innerStyles = createStyle(composeInnerStyles(setting, advanced, styles));
|
|
19
|
-
const containerClasses = createClass(composeContainerClasses(
|
|
19
|
+
const containerClasses = createClass(composeContainerClasses({
|
|
20
|
+
setting,
|
|
21
|
+
advanced,
|
|
22
|
+
builderProps,
|
|
23
|
+
type: 'liquid'
|
|
24
|
+
}));
|
|
20
25
|
const innerClasses = createClass(composeInnerClasses(setting, builderProps));
|
|
21
26
|
const classTitle = createClass(getClassTitle());
|
|
22
27
|
return template`
|
|
@@ -2,11 +2,11 @@ import { filterTruthy } from '../../../helpers/common.js';
|
|
|
2
2
|
import { composeTypographyClassName, genSizeClass } from '@gem-sdk/core';
|
|
3
3
|
|
|
4
4
|
const composeClasses = (styles)=>filterTruthy(styles);
|
|
5
|
-
const composeContainerClasses = (setting, advanced, builderProps)=>{
|
|
5
|
+
const composeContainerClasses = ({ setting, advanced, builderProps, type })=>{
|
|
6
6
|
const { hideOnClient } = setting ?? {};
|
|
7
7
|
return composeClasses({
|
|
8
8
|
[builderProps?.uid]: !!builderProps?.uid,
|
|
9
|
-
'!gp-hidden': hideOnClient,
|
|
9
|
+
'!gp-hidden': hideOnClient && type === 'liquid',
|
|
10
10
|
[advanced?.cssClass]: !!advanced?.cssClass,
|
|
11
11
|
'flex flex-col': true
|
|
12
12
|
});
|
|
@@ -4,11 +4,11 @@ import { composeContainerStyles, composeTextareaStyles } from './common/composeS
|
|
|
4
4
|
import { createStyle, createClass } from '@gem-sdk/system';
|
|
5
5
|
import { composeContainerClasses, composeTextareaClasses } from './common/composeClasses.js';
|
|
6
6
|
|
|
7
|
-
const FormTextArea = ({ setting, builderProps, className, builderAttrs, advanced, children })=>{
|
|
7
|
+
const FormTextArea = ({ setting, builderProps, className, builderAttrs, advanced, children, styles })=>{
|
|
8
8
|
const { text, name, placeholder, required } = setting ?? {};
|
|
9
9
|
const defaultName = name === '' || name === undefined ? 'contact[note]' : name;
|
|
10
10
|
const composedContainerStyles = createStyle(composeContainerStyles(advanced, setting));
|
|
11
|
-
const composedTextareaStyles = createStyle(composeTextareaStyles(advanced, setting));
|
|
11
|
+
const composedTextareaStyles = createStyle(composeTextareaStyles(advanced, setting, styles));
|
|
12
12
|
const composedContainerClasses = createClass(composeContainerClasses(advanced, builderProps));
|
|
13
13
|
const composedTextareaClasses = createClass(composeTextareaClasses(setting, builderProps, className ?? ''));
|
|
14
14
|
return /*#__PURE__*/ jsxs("div", {
|
|
@@ -17,23 +17,15 @@ const FormTextArea = ({ setting, builderProps, className, builderAttrs, advanced
|
|
|
17
17
|
className: composedContainerClasses,
|
|
18
18
|
style: composedContainerStyles,
|
|
19
19
|
children: [
|
|
20
|
-
/*#__PURE__*/ jsx("
|
|
21
|
-
className:
|
|
22
|
-
|
|
20
|
+
/*#__PURE__*/ jsx("textarea", {
|
|
21
|
+
className: composedTextareaClasses,
|
|
22
|
+
placeholder: placeholder,
|
|
23
|
+
style: composedTextareaStyles,
|
|
24
|
+
required: required,
|
|
25
|
+
name: defaultName,
|
|
26
|
+
value: text
|
|
23
27
|
}),
|
|
24
|
-
|
|
25
|
-
children: [
|
|
26
|
-
/*#__PURE__*/ jsx("textarea", {
|
|
27
|
-
className: composedTextareaClasses,
|
|
28
|
-
placeholder: placeholder,
|
|
29
|
-
style: composedTextareaStyles,
|
|
30
|
-
required: required,
|
|
31
|
-
name: defaultName,
|
|
32
|
-
value: text
|
|
33
|
-
}),
|
|
34
|
-
children
|
|
35
|
-
]
|
|
36
|
-
})
|
|
28
|
+
children
|
|
37
29
|
]
|
|
38
30
|
});
|
|
39
31
|
};
|
|
@@ -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, composeTextareaClasses } from './common/composeClasses.js';
|
|
6
6
|
|
|
7
|
-
const FormTextarea = ({ setting, builderProps, className, builderAttrs, advanced, pageContext })=>{
|
|
7
|
+
const FormTextarea = ({ setting, builderProps, className, builderAttrs, advanced, pageContext, styles })=>{
|
|
8
8
|
const { text, name, placeholder, required } = setting ?? {};
|
|
9
9
|
const defaultName = name === '' || name === undefined ? 'contact[note]' : name;
|
|
10
10
|
const { translate } = advanced ?? {};
|
|
@@ -16,7 +16,7 @@ const FormTextarea = ({ setting, builderProps, className, builderAttrs, advanced
|
|
|
16
16
|
translate
|
|
17
17
|
});
|
|
18
18
|
const composedContainerStyles = createStyle(composeContainerStyles(advanced, setting));
|
|
19
|
-
const composedTextareaStyles = createStyle(composeTextareaStyles(advanced, setting));
|
|
19
|
+
const composedTextareaStyles = createStyle(composeTextareaStyles(advanced, setting, styles));
|
|
20
20
|
const composedContainerClasses = createClass(composeContainerClasses(advanced, builderProps));
|
|
21
21
|
const composedTextareaClasses = createClass(composeTextareaClasses(setting, builderProps, className ?? ''));
|
|
22
22
|
return template`
|