@gem-sdk/components 2.0.0-dev.390 → 2.0.0-dev.392
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/carousel/root/common/getData.js +4 -4
- package/dist/cjs/form/components/form-email/FormEmail.js +29 -20
- package/dist/cjs/form/components/form-email/FormEmail.liquid.js +7 -5
- package/dist/cjs/form/components/form-email/common/composeClasses.js +11 -2
- package/dist/cjs/form/components/form-email/common/composeStyles.js +62 -2
- package/dist/cjs/form/components/newsletter/Newsletter.liquid.js +1 -0
- package/dist/cjs/form/components/newsletter/common/composeAttrs.js +1 -2
- package/dist/cjs/form/setting/contact/ContactInitConfig.js +3 -1
- package/dist/cjs/form/setting/form-email/configs/settings.js +190 -28
- package/dist/cjs/form/setting/form-email/configs/uiV2.js +262 -18
- package/dist/cjs/form/setting/text-input/configs/settings.js +6 -3
- package/dist/cjs/form/setting/text-input/configs/uiV2.js +2 -2
- package/dist/cjs/product/components/ProductList/ProductListGridLayout.liquid.js +15 -12
- package/dist/cjs/product/setting/product/configs/settings.js +5 -33
- package/dist/cjs/product/setting/product/configs/uiV2.js +44 -0
- package/dist/cjs/product/setting/product-list/configs/settingsV2.js +4 -7
- package/dist/cjs/product/setting/product-list/configs/uiV2.js +5 -2
- package/dist/esm/carousel/root/common/getData.js +5 -5
- package/dist/esm/form/components/form-email/FormEmail.js +32 -23
- package/dist/esm/form/components/form-email/FormEmail.liquid.js +8 -6
- package/dist/esm/form/components/form-email/common/composeClasses.js +11 -3
- package/dist/esm/form/components/form-email/common/composeStyles.js +63 -4
- package/dist/esm/form/components/newsletter/Newsletter.liquid.js +1 -0
- package/dist/esm/form/components/newsletter/common/composeAttrs.js +1 -2
- package/dist/esm/form/setting/contact/ContactInitConfig.js +3 -1
- package/dist/esm/form/setting/form-email/configs/settings.js +190 -28
- package/dist/esm/form/setting/form-email/configs/uiV2.js +262 -18
- package/dist/esm/form/setting/text-input/configs/settings.js +6 -3
- package/dist/esm/form/setting/text-input/configs/uiV2.js +2 -2
- package/dist/esm/product/components/ProductList/ProductListGridLayout.liquid.js +15 -12
- package/dist/esm/product/setting/product/configs/settings.js +5 -33
- package/dist/esm/product/setting/product/configs/uiV2.js +44 -0
- package/dist/esm/product/setting/product-list/configs/settingsV2.js +4 -7
- package/dist/esm/product/setting/product-list/configs/uiV2.js +5 -2
- package/dist/types/index.d.ts +25 -4
- package/package.json +2 -2
|
@@ -14,10 +14,20 @@ const SettingUIV2 = [
|
|
|
14
14
|
isHideClear: true,
|
|
15
15
|
controls: [
|
|
16
16
|
{
|
|
17
|
-
|
|
17
|
+
label: {
|
|
18
|
+
en: 'Content'
|
|
19
|
+
},
|
|
18
20
|
setting: {
|
|
19
21
|
id: 'placeholder'
|
|
20
22
|
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
setting: {
|
|
26
|
+
id: 'placeholderColor'
|
|
27
|
+
},
|
|
28
|
+
label: {
|
|
29
|
+
en: 'Color'
|
|
30
|
+
}
|
|
21
31
|
}
|
|
22
32
|
]
|
|
23
33
|
},
|
|
@@ -38,65 +48,299 @@ const SettingUIV2 = [
|
|
|
38
48
|
label: {
|
|
39
49
|
en: 'Width'
|
|
40
50
|
},
|
|
51
|
+
controlConfig: {
|
|
52
|
+
id: 'width',
|
|
53
|
+
type: 'dropdown:input',
|
|
54
|
+
label: 'Width',
|
|
55
|
+
inputType: 'number',
|
|
56
|
+
units: [
|
|
57
|
+
'px',
|
|
58
|
+
'%'
|
|
59
|
+
],
|
|
60
|
+
hideUnit: false,
|
|
61
|
+
linkWithSetting: {
|
|
62
|
+
name: 'globalSize',
|
|
63
|
+
field: 'width'
|
|
64
|
+
},
|
|
65
|
+
displayOptions: [
|
|
66
|
+
{
|
|
67
|
+
label: 'Default',
|
|
68
|
+
value: '1200px',
|
|
69
|
+
showValue: true
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
label: 'Full',
|
|
73
|
+
value: '100%',
|
|
74
|
+
showValue: true
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
layout: 'horizontal'
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
label: {
|
|
82
|
+
en: 'Height'
|
|
83
|
+
},
|
|
84
|
+
controlConfig: {
|
|
85
|
+
id: 'height',
|
|
86
|
+
type: 'dropdown:input',
|
|
87
|
+
label: 'Height',
|
|
88
|
+
inputType: 'number',
|
|
89
|
+
units: [
|
|
90
|
+
'px',
|
|
91
|
+
'%'
|
|
92
|
+
],
|
|
93
|
+
hideUnit: false,
|
|
94
|
+
linkWithSetting: {
|
|
95
|
+
name: 'globalSize',
|
|
96
|
+
field: 'height'
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
layout: 'horizontal'
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
label: {
|
|
103
|
+
en: 'Padding'
|
|
104
|
+
},
|
|
105
|
+
controlConfig: {
|
|
106
|
+
id: 'padding',
|
|
107
|
+
type: 'padding-v2',
|
|
108
|
+
linkWithSetting: {
|
|
109
|
+
name: 'globalSize',
|
|
110
|
+
field: 'padding'
|
|
111
|
+
},
|
|
112
|
+
compoDefaultValue: {
|
|
113
|
+
desktop: {
|
|
114
|
+
default: {
|
|
115
|
+
type: 'medium',
|
|
116
|
+
top: '12px',
|
|
117
|
+
bottom: '12px',
|
|
118
|
+
left: '24px',
|
|
119
|
+
right: '24px'
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
label: {
|
|
129
|
+
en: 'Background'
|
|
130
|
+
},
|
|
131
|
+
controls: [
|
|
132
|
+
{
|
|
41
133
|
setting: {
|
|
42
|
-
id: '
|
|
134
|
+
id: 'background'
|
|
135
|
+
},
|
|
136
|
+
layout: 'vertical'
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
label: {
|
|
142
|
+
en: 'Shape'
|
|
143
|
+
},
|
|
144
|
+
controls: [
|
|
145
|
+
{
|
|
146
|
+
label: {
|
|
147
|
+
en: 'Border'
|
|
148
|
+
},
|
|
149
|
+
controlConfig: {
|
|
150
|
+
id: 'border',
|
|
151
|
+
type: 'border-v2',
|
|
152
|
+
linkWithSetting: {
|
|
153
|
+
name: 'wrapperBorder'
|
|
154
|
+
}
|
|
43
155
|
}
|
|
44
156
|
},
|
|
45
157
|
{
|
|
46
158
|
label: {
|
|
47
|
-
en: '
|
|
159
|
+
en: 'Corner'
|
|
48
160
|
},
|
|
49
161
|
setting: {
|
|
50
|
-
id: '
|
|
162
|
+
id: 'rounded',
|
|
163
|
+
state: 'normal'
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
label: {
|
|
168
|
+
en: 'Shadow'
|
|
169
|
+
},
|
|
170
|
+
setting: {
|
|
171
|
+
id: 'boxShadow',
|
|
172
|
+
state: 'normal'
|
|
173
|
+
},
|
|
174
|
+
options: {
|
|
175
|
+
updateFields: [
|
|
176
|
+
{
|
|
177
|
+
field: 'enable',
|
|
178
|
+
settingId: 'hasBoxShadow',
|
|
179
|
+
state: 'normal'
|
|
180
|
+
}
|
|
181
|
+
]
|
|
182
|
+
},
|
|
183
|
+
controlChangeTrigger: {
|
|
184
|
+
settings: [
|
|
185
|
+
{
|
|
186
|
+
condition: `boxShadow.normal.enable === true`,
|
|
187
|
+
source: [
|
|
188
|
+
'boxShadow',
|
|
189
|
+
'hasBoxShadow'
|
|
190
|
+
],
|
|
191
|
+
action: {
|
|
192
|
+
controlId: 'hasBoxShadow',
|
|
193
|
+
groupType: 'advanced',
|
|
194
|
+
controlType: 'advanced',
|
|
195
|
+
state: 'normal',
|
|
196
|
+
newValue: true
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
condition: `boxShadow.normal.enable === false`,
|
|
201
|
+
source: [
|
|
202
|
+
'boxShadow',
|
|
203
|
+
'hasBoxShadow'
|
|
204
|
+
],
|
|
205
|
+
action: {
|
|
206
|
+
controlId: 'hasBoxShadow',
|
|
207
|
+
groupType: 'advanced',
|
|
208
|
+
controlType: 'advanced',
|
|
209
|
+
state: 'normal',
|
|
210
|
+
newValue: false
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
options: {
|
|
215
|
+
noRecordHistory: true
|
|
216
|
+
}
|
|
51
217
|
}
|
|
52
218
|
}
|
|
53
219
|
]
|
|
54
220
|
},
|
|
55
221
|
{
|
|
56
222
|
label: {
|
|
57
|
-
en: '
|
|
223
|
+
en: 'Hover effect'
|
|
58
224
|
},
|
|
59
225
|
controls: [
|
|
60
226
|
{
|
|
61
227
|
label: {
|
|
62
|
-
en: '
|
|
228
|
+
en: 'Text color'
|
|
63
229
|
},
|
|
64
230
|
setting: {
|
|
65
|
-
id: '
|
|
231
|
+
id: 'textColorHover',
|
|
232
|
+
state: 'hover'
|
|
66
233
|
}
|
|
67
234
|
},
|
|
68
235
|
{
|
|
69
236
|
label: {
|
|
70
|
-
en: '
|
|
237
|
+
en: 'Background'
|
|
71
238
|
},
|
|
72
239
|
setting: {
|
|
73
|
-
id: '
|
|
240
|
+
id: 'backgroundColorV2Hover',
|
|
241
|
+
state: 'hover'
|
|
74
242
|
}
|
|
75
243
|
},
|
|
76
244
|
{
|
|
77
245
|
label: {
|
|
78
|
-
en: '
|
|
246
|
+
en: 'Border'
|
|
79
247
|
},
|
|
80
248
|
setting: {
|
|
81
|
-
id: '
|
|
249
|
+
id: 'borderEmailHover',
|
|
250
|
+
state: 'hover'
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
label: {
|
|
255
|
+
en: 'Corner'
|
|
256
|
+
},
|
|
257
|
+
setting: {
|
|
258
|
+
id: 'roundedEmailHover',
|
|
259
|
+
state: 'hover'
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
label: {
|
|
264
|
+
en: 'Shadow'
|
|
265
|
+
},
|
|
266
|
+
setting: {
|
|
267
|
+
id: 'boxShadowEmailHover',
|
|
268
|
+
state: 'hover'
|
|
82
269
|
}
|
|
83
270
|
}
|
|
84
271
|
]
|
|
85
272
|
},
|
|
86
273
|
{
|
|
274
|
+
label: {
|
|
275
|
+
en: 'Active state'
|
|
276
|
+
},
|
|
87
277
|
controls: [
|
|
88
278
|
{
|
|
89
279
|
label: {
|
|
90
|
-
en: '
|
|
280
|
+
en: 'Text color'
|
|
281
|
+
},
|
|
282
|
+
setting: {
|
|
283
|
+
id: 'textColorActive',
|
|
284
|
+
state: 'active'
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
label: {
|
|
289
|
+
en: 'Background'
|
|
91
290
|
},
|
|
92
|
-
conditionEnable: '!(parseInt(width) >= 100 && width?.includes("%"))',
|
|
93
291
|
setting: {
|
|
94
|
-
id: '
|
|
292
|
+
id: 'backgroundColorV2Active',
|
|
293
|
+
state: 'active'
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
label: {
|
|
298
|
+
en: 'Border'
|
|
95
299
|
},
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
300
|
+
setting: {
|
|
301
|
+
id: 'borderEmailActive',
|
|
302
|
+
state: 'active'
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
label: {
|
|
307
|
+
en: 'Corner'
|
|
308
|
+
},
|
|
309
|
+
setting: {
|
|
310
|
+
id: 'roundedEmailActive',
|
|
311
|
+
state: 'active'
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
label: {
|
|
316
|
+
en: 'Shadow'
|
|
317
|
+
},
|
|
318
|
+
setting: {
|
|
319
|
+
id: 'boxShadowEmailActive',
|
|
320
|
+
state: 'active'
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
label: {
|
|
327
|
+
en: 'Configuration'
|
|
328
|
+
},
|
|
329
|
+
controls: [
|
|
330
|
+
{
|
|
331
|
+
label: {
|
|
332
|
+
en: 'Required'
|
|
333
|
+
},
|
|
334
|
+
setting: {
|
|
335
|
+
id: 'required'
|
|
336
|
+
}
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
label: {
|
|
340
|
+
en: 'Hide on client'
|
|
341
|
+
},
|
|
342
|
+
setting: {
|
|
343
|
+
id: 'hideOnClient'
|
|
100
344
|
}
|
|
101
345
|
}
|
|
102
346
|
]
|
|
@@ -82,7 +82,10 @@ const TextInputSettings = [
|
|
|
82
82
|
label: 'Text styles',
|
|
83
83
|
type: 'typography-v2',
|
|
84
84
|
default: {
|
|
85
|
-
type: 'paragraph-1'
|
|
85
|
+
type: 'paragraph-1',
|
|
86
|
+
attrs: {
|
|
87
|
+
color: 'text-2'
|
|
88
|
+
}
|
|
86
89
|
},
|
|
87
90
|
hiddenSetting: {
|
|
88
91
|
textAlign: true,
|
|
@@ -199,8 +202,8 @@ const TextInputSettings = [
|
|
|
199
202
|
type: 'medium',
|
|
200
203
|
top: '12px',
|
|
201
204
|
bottom: '12px',
|
|
202
|
-
left: '
|
|
203
|
-
right: '
|
|
205
|
+
left: '12px',
|
|
206
|
+
right: '12px'
|
|
204
207
|
}
|
|
205
208
|
}
|
|
206
209
|
}
|
|
@@ -24,24 +24,17 @@ const ProductListGridLayout = (props)=>{
|
|
|
24
24
|
</gp-same-height-v2>
|
|
25
25
|
`;
|
|
26
26
|
};
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
${productListAttr}
|
|
30
|
-
style="${gridLayoutStyle}"
|
|
31
|
-
class="${gridLayoutClass}"
|
|
32
|
-
>
|
|
27
|
+
const renderProductList = ()=>{
|
|
28
|
+
return template /* liquid */ `
|
|
33
29
|
{%- assign count = 0 -%}
|
|
34
30
|
{%- for product in products limit: limit -%}
|
|
35
31
|
{%- if product.id != empty -%}
|
|
36
32
|
{%- assign count = count | plus: 1 -%}
|
|
37
33
|
{%- assign variant = product.selected_or_first_available_variant -%}
|
|
38
34
|
{%- assign product_form_id = 'product-form-' | append: "${builderProps?.uid}" | append: product.id -%}
|
|
39
|
-
${
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
${RenderIf(!setting?.sameHeight, template /* liquid */ `${ProductListItem({
|
|
43
|
-
...props
|
|
44
|
-
})}`)}
|
|
35
|
+
${ProductListItem({
|
|
36
|
+
...props
|
|
37
|
+
})}
|
|
45
38
|
{%- endif -%}
|
|
46
39
|
{% endfor %}
|
|
47
40
|
{%- if count == 0 and ${productListId?.length} == 0 -%}
|
|
@@ -51,6 +44,16 @@ const ProductListGridLayout = (props)=>{
|
|
|
51
44
|
<div>${getStaticLocale('ProductList', 'no_products_found')}</div>
|
|
52
45
|
{%- endif -%}
|
|
53
46
|
{%- endif -%}
|
|
47
|
+
`;
|
|
48
|
+
};
|
|
49
|
+
return template /* liquid */ `
|
|
50
|
+
<div
|
|
51
|
+
${productListAttr}
|
|
52
|
+
style="${gridLayoutStyle}"
|
|
53
|
+
class="${gridLayoutClass}"
|
|
54
|
+
>
|
|
55
|
+
${RenderIf(setting?.sameHeight, renderSameHeightGrid(`${renderProductList()}`))}
|
|
56
|
+
${RenderIf(!setting?.sameHeight, template /* liquid */ `${renderProductList()}`)}
|
|
54
57
|
</div>
|
|
55
58
|
`;
|
|
56
59
|
};
|
|
@@ -254,7 +254,7 @@ const ProductSettings = [
|
|
|
254
254
|
'px'
|
|
255
255
|
],
|
|
256
256
|
min: 0,
|
|
257
|
-
max:
|
|
257
|
+
max: 80,
|
|
258
258
|
devices: {
|
|
259
259
|
desktop: {
|
|
260
260
|
default: '32px'
|
|
@@ -268,7 +268,7 @@ const ProductSettings = [
|
|
|
268
268
|
'px'
|
|
269
269
|
],
|
|
270
270
|
min: 0,
|
|
271
|
-
max:
|
|
271
|
+
max: 80,
|
|
272
272
|
devices: {
|
|
273
273
|
desktop: {
|
|
274
274
|
default: '16px'
|
|
@@ -297,23 +297,12 @@ const ProductSettings = [
|
|
|
297
297
|
type: 'background-media',
|
|
298
298
|
ignoreReRender: true,
|
|
299
299
|
showVideo: false,
|
|
300
|
+
hideImage: true,
|
|
300
301
|
devices: {
|
|
301
302
|
desktop: {
|
|
302
303
|
default: {
|
|
303
304
|
type: 'color',
|
|
304
|
-
color: 'transparent'
|
|
305
|
-
image: {
|
|
306
|
-
src: '',
|
|
307
|
-
width: 0,
|
|
308
|
-
height: 0
|
|
309
|
-
},
|
|
310
|
-
size: 'cover',
|
|
311
|
-
position: {
|
|
312
|
-
x: 50,
|
|
313
|
-
y: 50
|
|
314
|
-
},
|
|
315
|
-
repeat: 'no-repeat',
|
|
316
|
-
attachment: 'scroll'
|
|
305
|
+
color: 'transparent'
|
|
317
306
|
}
|
|
318
307
|
}
|
|
319
308
|
},
|
|
@@ -321,24 +310,7 @@ const ProductSettings = [
|
|
|
321
310
|
desktop: {
|
|
322
311
|
default: {
|
|
323
312
|
type: 'color',
|
|
324
|
-
color: '#DDDDDD'
|
|
325
|
-
image: {
|
|
326
|
-
src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
|
|
327
|
-
width: 1200,
|
|
328
|
-
height: 480
|
|
329
|
-
},
|
|
330
|
-
size: 'cover',
|
|
331
|
-
position: {
|
|
332
|
-
x: 50,
|
|
333
|
-
y: 50
|
|
334
|
-
},
|
|
335
|
-
repeat: 'no-repeat',
|
|
336
|
-
attachment: 'scroll',
|
|
337
|
-
preload: false,
|
|
338
|
-
video: 'https://youtu.be/KOxfzBp72uk',
|
|
339
|
-
videoHtml5: 'https://media.w3.org/2010/05/sintel/trailer.mp4',
|
|
340
|
-
videoType: 'youtube',
|
|
341
|
-
loop: true
|
|
313
|
+
color: '#DDDDDD'
|
|
342
314
|
}
|
|
343
315
|
}
|
|
344
316
|
}
|
|
@@ -158,6 +158,50 @@ const SettingUIV2 = [
|
|
|
158
158
|
setting: {
|
|
159
159
|
id: 'boxShadow',
|
|
160
160
|
state: 'normal'
|
|
161
|
+
},
|
|
162
|
+
options: {
|
|
163
|
+
updateFields: [
|
|
164
|
+
{
|
|
165
|
+
field: 'enable',
|
|
166
|
+
settingId: 'advanced.hasBoxShadow',
|
|
167
|
+
state: 'normal'
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
},
|
|
171
|
+
controlChangeTrigger: {
|
|
172
|
+
settings: [
|
|
173
|
+
{
|
|
174
|
+
condition: `boxShadow.normal.enable === true`,
|
|
175
|
+
source: [
|
|
176
|
+
'boxShadow',
|
|
177
|
+
'hasBoxShadow'
|
|
178
|
+
],
|
|
179
|
+
action: {
|
|
180
|
+
controlId: 'hasBoxShadow',
|
|
181
|
+
groupType: 'advanced',
|
|
182
|
+
controlType: 'advanced',
|
|
183
|
+
state: 'normal',
|
|
184
|
+
newValue: true
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
condition: `boxShadow.normal.enable === false`,
|
|
189
|
+
source: [
|
|
190
|
+
'boxShadow',
|
|
191
|
+
'hasBoxShadow'
|
|
192
|
+
],
|
|
193
|
+
action: {
|
|
194
|
+
controlId: 'hasBoxShadow',
|
|
195
|
+
groupType: 'advanced',
|
|
196
|
+
controlType: 'advanced',
|
|
197
|
+
state: 'normal',
|
|
198
|
+
newValue: false
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
],
|
|
202
|
+
options: {
|
|
203
|
+
noRecordHistory: true
|
|
204
|
+
}
|
|
161
205
|
}
|
|
162
206
|
}
|
|
163
207
|
]
|
|
@@ -19,12 +19,11 @@ const ProductListSettingsV2 = [
|
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
id: 'slidesToShow',
|
|
22
|
-
type: '
|
|
22
|
+
type: 'input:slider',
|
|
23
23
|
min: 1,
|
|
24
24
|
max: 6,
|
|
25
|
+
isNumber: true,
|
|
25
26
|
label: 'Products per rows ',
|
|
26
|
-
hideUnit: true,
|
|
27
|
-
useOnlyUnitInit: true,
|
|
28
27
|
devices: {
|
|
29
28
|
desktop: {
|
|
30
29
|
default: 4
|
|
@@ -39,14 +38,12 @@ const ProductListSettingsV2 = [
|
|
|
39
38
|
},
|
|
40
39
|
{
|
|
41
40
|
id: 'numberOfProducts',
|
|
42
|
-
type: '
|
|
41
|
+
type: 'input:slider',
|
|
43
42
|
min: 1,
|
|
44
43
|
max: 50,
|
|
45
44
|
label: 'Number of products',
|
|
45
|
+
isNumber: true,
|
|
46
46
|
default: 4,
|
|
47
|
-
hide: true,
|
|
48
|
-
hideUnit: true,
|
|
49
|
-
useOnlyUnitInit: true,
|
|
50
47
|
ignoreMax: true
|
|
51
48
|
},
|
|
52
49
|
{
|
|
@@ -112,7 +112,8 @@ const SettingUIV2 = [
|
|
|
112
112
|
id: 'arrow'
|
|
113
113
|
},
|
|
114
114
|
options: {
|
|
115
|
-
labelVariant: 'primary'
|
|
115
|
+
labelVariant: 'primary',
|
|
116
|
+
toggleStyle: 'switch'
|
|
116
117
|
}
|
|
117
118
|
},
|
|
118
119
|
{
|
|
@@ -126,7 +127,9 @@ const SettingUIV2 = [
|
|
|
126
127
|
},
|
|
127
128
|
{
|
|
128
129
|
conditionDisplay: 'arrow === true',
|
|
129
|
-
|
|
130
|
+
label: {
|
|
131
|
+
en: 'Icon'
|
|
132
|
+
},
|
|
130
133
|
setting: {
|
|
131
134
|
id: 'arrowCustom'
|
|
132
135
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1545,8 +1545,29 @@ type FormEmailSetting = {
|
|
|
1545
1545
|
fullWidth?: ObjectDevices$1<boolean>;
|
|
1546
1546
|
width?: ObjectDevices$1<string | number | undefined>;
|
|
1547
1547
|
align?: ObjectDevices$1<AlignProp>;
|
|
1548
|
+
wrapperBorder?: Border;
|
|
1549
|
+
background?: ObjectDevices$1<BackgroundMedia>;
|
|
1550
|
+
placeholderColor?: ColorValueType$1;
|
|
1551
|
+
title?: string;
|
|
1552
|
+
showTitle?: boolean;
|
|
1548
1553
|
};
|
|
1549
|
-
type
|
|
1554
|
+
type FormEmailStyle = {
|
|
1555
|
+
globalSize?: ObjectDevices$1<SizeSettingGlobal>;
|
|
1556
|
+
horizontalSpacing?: ObjectDevices$1<Property.Padding>;
|
|
1557
|
+
borderRadius?: CornerRadius;
|
|
1558
|
+
wrapperBorder?: Border;
|
|
1559
|
+
borderEmailHover?: StateProp<Border>;
|
|
1560
|
+
textColorHover?: StateProp<ColorValueType$1>;
|
|
1561
|
+
backgroundColorV2Hover?: StateProp<ColorValueType$1>;
|
|
1562
|
+
roundedEmailHover?: StateProp<CornerRadius>;
|
|
1563
|
+
boxShadowEmailHover?: StateProp<ShadowProps$1>;
|
|
1564
|
+
borderEmailActive?: StateProp<Border>;
|
|
1565
|
+
textColorActive?: StateProp<ColorValueType$1>;
|
|
1566
|
+
backgroundColorV2Active?: StateProp<ColorValueType$1>;
|
|
1567
|
+
roundedEmailActive?: StateProp<CornerRadius>;
|
|
1568
|
+
boxShadowEmailActive?: StateProp<ShadowProps$1>;
|
|
1569
|
+
};
|
|
1570
|
+
type FormEmailProps = BasePropsWrap<FormEmailSetting, FormEmailStyle, Advanced> & {
|
|
1550
1571
|
children: React.ReactNode;
|
|
1551
1572
|
};
|
|
1552
1573
|
type NewsLetterSetting = {
|
|
@@ -1653,7 +1674,7 @@ declare const Newsletter$1: ({ children, setting, styles }: NewsletterProps) =>
|
|
|
1653
1674
|
|
|
1654
1675
|
declare const ContactForm$1: ({ children, styles, setting }: NewsletterProps) => React.JSX.Element;
|
|
1655
1676
|
|
|
1656
|
-
declare const FormEmail$1: ({ builderProps, builderAttrs, setting, advanced, children }: FormEmailProps) => React.JSX.Element;
|
|
1677
|
+
declare const FormEmail$1: ({ builderProps, builderAttrs, setting, advanced, children, styles, }: FormEmailProps) => React.JSX.Element;
|
|
1657
1678
|
|
|
1658
1679
|
declare const SubmitButton$1: ({ setting, builderProps, builderAttrs, style, styles, advanced, children, }: SubmitButtonProps) => React.JSX.Element;
|
|
1659
1680
|
|
|
@@ -6044,7 +6065,7 @@ declare const Newsletter: ({ builderProps, setting, children, style, formType, a
|
|
|
6044
6065
|
|
|
6045
6066
|
declare const ContactForm: ({ builderProps, setting, children, style, advanced, pageContext, styles, }: NewsletterProps) => string;
|
|
6046
6067
|
|
|
6047
|
-
declare const FormEmail: ({ builderProps, builderAttrs, setting, advanced, pageContext, }: _gem_sdk_core.BaseProps<FormEmailSetting,
|
|
6068
|
+
declare const FormEmail: ({ builderProps, builderAttrs, setting, advanced, pageContext, styles, }: _gem_sdk_core.BaseProps<FormEmailSetting, FormEmailStyle, any> & {
|
|
6048
6069
|
builderAttrs?: Record<string, any> | undefined;
|
|
6049
6070
|
style?: React.CSSProperties | undefined;
|
|
6050
6071
|
} & {
|
|
@@ -7220,7 +7241,7 @@ declare const _default$1: {
|
|
|
7220
7241
|
EstimateDate: React.FC<EstimateDateProps>;
|
|
7221
7242
|
Newsletter: ({ children, setting, styles }: NewsletterProps) => React.JSX.Element;
|
|
7222
7243
|
ContactForm: ({ children, styles, setting }: NewsletterProps) => React.JSX.Element;
|
|
7223
|
-
FormEmail: ({ builderProps, builderAttrs, setting, advanced, children }: FormEmailProps) => React.JSX.Element;
|
|
7244
|
+
FormEmail: ({ builderProps, builderAttrs, setting, advanced, children, styles, }: FormEmailProps) => React.JSX.Element;
|
|
7224
7245
|
SubmitButton: ({ setting, builderProps, builderAttrs, style, styles, advanced, children, }: SubmitButtonProps) => React.JSX.Element;
|
|
7225
7246
|
TextField: React.FC<TextFieldProps>;
|
|
7226
7247
|
TextInput: React.FC<TextInputProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gem-sdk/components",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.392",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"relationship": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/get-control-relationship.js && node ./scripts/get-element-relationship.js"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@gem-sdk/core": "2.0.0-dev.
|
|
25
|
+
"@gem-sdk/core": "2.0.0-dev.392",
|
|
26
26
|
"@gem-sdk/styles": "2.0.0-dev.381",
|
|
27
27
|
"@gem-sdk/system": "2.0.0-dev.371",
|
|
28
28
|
"@types/react-transition-group": "^4.4.5"
|