@gem-sdk/components 2.0.0-dev.716 → 2.0.0-dev.718
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/button/components/common/styles.js +3 -3
- package/dist/cjs/button/setting/configs/settings.js +1 -37
- package/dist/cjs/button/setting/configs/uiV2.js +18 -18
- package/dist/cjs/code/common/classes.js +1 -1
- package/dist/cjs/coupon/common/styles.js +2 -2
- package/dist/cjs/coupon/setting/config/settings.js +1 -1
- package/dist/cjs/coupon/setting/config/uiV2.js +135 -3
- package/dist/cjs/form/setting/submit-button/configs/settings.js +1 -24
- package/dist/cjs/form/setting/submit-button/configs/uiV2.js +18 -18
- package/dist/cjs/form/setting/text-field/configs/uiV2.js +1 -1
- package/dist/cjs/product/components/DynamicCheckout/common/styles.js +4 -4
- package/dist/cjs/product/components/ProductButton/common/styles.js +1 -1
- package/dist/cjs/product/components/ProductImagesV2/components/feature-gallery/FeatureImageWithGallery.liquid.js +1 -1
- package/dist/cjs/product/setting/constant/bundle-layout/horizontalThree.js +17 -1
- package/dist/cjs/product/setting/constant/bundle-layout/horizontalTwo.js +17 -1
- package/dist/cjs/product/setting/constant/bundle-layout/verticalThree.js +17 -1
- package/dist/cjs/product/setting/constant/bundle-layout/verticalTwo.js +17 -1
- package/dist/cjs/product/setting/dynamic-checkout/configs/settings.js +0 -23
- package/dist/cjs/product/setting/dynamic-checkout/configs/uiV2.js +18 -18
- package/dist/cjs/product/setting/product-button/configs/settings.js +1 -24
- package/dist/cjs/product/setting/product-button/configs/uiV2.js +18 -18
- package/dist/cjs/product/setting/product-view-more/configs/settings.js +0 -23
- package/dist/cjs/product/setting/product-view-more/configs/uiV2.js +18 -18
- package/dist/cjs/text/setting/configs/settings.js +1 -0
- package/dist/esm/button/components/common/styles.js +3 -3
- package/dist/esm/button/setting/configs/settings.js +1 -37
- package/dist/esm/button/setting/configs/uiV2.js +18 -18
- package/dist/esm/code/common/classes.js +1 -1
- package/dist/esm/coupon/common/styles.js +2 -2
- package/dist/esm/coupon/setting/config/settings.js +1 -1
- package/dist/esm/coupon/setting/config/uiV2.js +135 -3
- package/dist/esm/form/setting/submit-button/configs/settings.js +1 -24
- package/dist/esm/form/setting/submit-button/configs/uiV2.js +18 -18
- package/dist/esm/form/setting/text-field/configs/uiV2.js +1 -1
- package/dist/esm/product/components/DynamicCheckout/common/styles.js +4 -4
- package/dist/esm/product/components/ProductButton/common/styles.js +1 -1
- package/dist/esm/product/components/ProductImagesV2/components/feature-gallery/FeatureImageWithGallery.liquid.js +1 -1
- package/dist/esm/product/setting/constant/bundle-layout/horizontalThree.js +17 -1
- package/dist/esm/product/setting/constant/bundle-layout/horizontalTwo.js +17 -1
- package/dist/esm/product/setting/constant/bundle-layout/verticalThree.js +17 -1
- package/dist/esm/product/setting/constant/bundle-layout/verticalTwo.js +17 -1
- package/dist/esm/product/setting/dynamic-checkout/configs/settings.js +0 -23
- package/dist/esm/product/setting/dynamic-checkout/configs/uiV2.js +18 -18
- package/dist/esm/product/setting/product-button/configs/settings.js +1 -24
- package/dist/esm/product/setting/product-button/configs/uiV2.js +18 -18
- package/dist/esm/product/setting/product-view-more/configs/settings.js +0 -23
- package/dist/esm/product/setting/product-view-more/configs/uiV2.js +18 -18
- package/dist/esm/text/setting/configs/settings.js +1 -0
- package/package.json +1 -1
|
@@ -217,8 +217,52 @@ const SettingUIV2 = [
|
|
|
217
217
|
en: 'Shadow'
|
|
218
218
|
},
|
|
219
219
|
setting: {
|
|
220
|
-
id: '
|
|
220
|
+
id: 'boxShadowBtn',
|
|
221
221
|
state: 'normal'
|
|
222
|
+
},
|
|
223
|
+
options: {
|
|
224
|
+
updateFields: [
|
|
225
|
+
{
|
|
226
|
+
field: 'enable',
|
|
227
|
+
settingId: 'hasBoxShadowBtn',
|
|
228
|
+
state: 'normal'
|
|
229
|
+
}
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
controlChangeTrigger: {
|
|
233
|
+
settings: [
|
|
234
|
+
{
|
|
235
|
+
condition: `boxShadowBtn.normal.enable === true`,
|
|
236
|
+
source: [
|
|
237
|
+
'boxShadowBtn',
|
|
238
|
+
'hasBoxShadowBtn'
|
|
239
|
+
],
|
|
240
|
+
action: {
|
|
241
|
+
controlId: 'hasBoxShadowBtn',
|
|
242
|
+
groupType: 'styles',
|
|
243
|
+
controlType: 'styles',
|
|
244
|
+
state: 'normal',
|
|
245
|
+
newValue: true
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
condition: `boxShadowBtn.normal.enable === false`,
|
|
250
|
+
source: [
|
|
251
|
+
'boxShadowBtn',
|
|
252
|
+
'hasBoxShadowBtn'
|
|
253
|
+
],
|
|
254
|
+
action: {
|
|
255
|
+
controlId: 'hasBoxShadowBtn',
|
|
256
|
+
groupType: 'styles',
|
|
257
|
+
controlType: 'styles',
|
|
258
|
+
state: 'normal',
|
|
259
|
+
newValue: false
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
],
|
|
263
|
+
options: {
|
|
264
|
+
noRecordHistory: true
|
|
265
|
+
}
|
|
222
266
|
}
|
|
223
267
|
}
|
|
224
268
|
]
|
|
@@ -434,8 +478,52 @@ const SettingUIV2 = [
|
|
|
434
478
|
en: 'Shadow'
|
|
435
479
|
},
|
|
436
480
|
setting: {
|
|
437
|
-
id: '
|
|
481
|
+
id: 'boxShadowBtn',
|
|
438
482
|
state: 'hover'
|
|
483
|
+
},
|
|
484
|
+
options: {
|
|
485
|
+
updateFields: [
|
|
486
|
+
{
|
|
487
|
+
field: 'enable',
|
|
488
|
+
settingId: 'hasBoxShadowBtn',
|
|
489
|
+
state: 'hover'
|
|
490
|
+
}
|
|
491
|
+
]
|
|
492
|
+
},
|
|
493
|
+
controlChangeTrigger: {
|
|
494
|
+
settings: [
|
|
495
|
+
{
|
|
496
|
+
condition: `boxShadowBtn.hover.enable === true`,
|
|
497
|
+
source: [
|
|
498
|
+
'boxShadowBtn',
|
|
499
|
+
'hasBoxShadowBtn'
|
|
500
|
+
],
|
|
501
|
+
action: {
|
|
502
|
+
controlId: 'hasBoxShadowBtn',
|
|
503
|
+
groupType: 'styles',
|
|
504
|
+
controlType: 'styles',
|
|
505
|
+
state: 'hover',
|
|
506
|
+
newValue: true
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
condition: `boxShadowBtn.hover.enable === false`,
|
|
511
|
+
source: [
|
|
512
|
+
'boxShadowBtn',
|
|
513
|
+
'hasBoxShadowBtn'
|
|
514
|
+
],
|
|
515
|
+
action: {
|
|
516
|
+
controlId: 'hasBoxShadowBtn',
|
|
517
|
+
groupType: 'styles',
|
|
518
|
+
controlType: 'styles',
|
|
519
|
+
state: 'hover',
|
|
520
|
+
newValue: false
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
],
|
|
524
|
+
options: {
|
|
525
|
+
noRecordHistory: true
|
|
526
|
+
}
|
|
439
527
|
}
|
|
440
528
|
}
|
|
441
529
|
]
|
|
@@ -533,8 +621,52 @@ const SettingUIV2 = [
|
|
|
533
621
|
en: 'Shadow'
|
|
534
622
|
},
|
|
535
623
|
setting: {
|
|
536
|
-
id: '
|
|
624
|
+
id: 'boxShadowBtn',
|
|
537
625
|
state: 'active'
|
|
626
|
+
},
|
|
627
|
+
options: {
|
|
628
|
+
updateFields: [
|
|
629
|
+
{
|
|
630
|
+
field: 'enable',
|
|
631
|
+
settingId: 'hasBoxShadowBtn',
|
|
632
|
+
state: 'active'
|
|
633
|
+
}
|
|
634
|
+
]
|
|
635
|
+
},
|
|
636
|
+
controlChangeTrigger: {
|
|
637
|
+
settings: [
|
|
638
|
+
{
|
|
639
|
+
condition: `boxShadowBtn.active.enable === true`,
|
|
640
|
+
source: [
|
|
641
|
+
'boxShadowBtn',
|
|
642
|
+
'hasBoxShadowBtn'
|
|
643
|
+
],
|
|
644
|
+
action: {
|
|
645
|
+
controlId: 'hasBoxShadowBtn',
|
|
646
|
+
groupType: 'styles',
|
|
647
|
+
controlType: 'styles',
|
|
648
|
+
state: 'active',
|
|
649
|
+
newValue: true
|
|
650
|
+
}
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
condition: `boxShadowBtn.active.enable === false`,
|
|
654
|
+
source: [
|
|
655
|
+
'boxShadowBtn',
|
|
656
|
+
'hasBoxShadowBtn'
|
|
657
|
+
],
|
|
658
|
+
action: {
|
|
659
|
+
controlId: 'hasBoxShadowBtn',
|
|
660
|
+
groupType: 'styles',
|
|
661
|
+
controlType: 'styles',
|
|
662
|
+
state: 'active',
|
|
663
|
+
newValue: false
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
],
|
|
667
|
+
options: {
|
|
668
|
+
noRecordHistory: true
|
|
669
|
+
}
|
|
538
670
|
}
|
|
539
671
|
}
|
|
540
672
|
]
|
|
@@ -170,7 +170,7 @@ const SubmitButtonSettings = [
|
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
|
-
id: '
|
|
173
|
+
id: 'boxShadowBtn',
|
|
174
174
|
type: 'shadow-v2',
|
|
175
175
|
default: {
|
|
176
176
|
normal: {
|
|
@@ -286,29 +286,6 @@ const SubmitButtonSettings = [
|
|
|
286
286
|
hover: true
|
|
287
287
|
}
|
|
288
288
|
},
|
|
289
|
-
{
|
|
290
|
-
id: 'boxShadowBtn',
|
|
291
|
-
type: 'shadow-v2',
|
|
292
|
-
label: 'Button Shadow',
|
|
293
|
-
hideOnState: {
|
|
294
|
-
normal: true,
|
|
295
|
-
hover: true
|
|
296
|
-
},
|
|
297
|
-
default: {
|
|
298
|
-
normal: {
|
|
299
|
-
type: 'none',
|
|
300
|
-
distance: '4px',
|
|
301
|
-
blur: '12px',
|
|
302
|
-
spread: '0px',
|
|
303
|
-
color: 'rgba(0, 0, 0, 0.20)',
|
|
304
|
-
angle: 90
|
|
305
|
-
}
|
|
306
|
-
},
|
|
307
|
-
state: {
|
|
308
|
-
normal: true,
|
|
309
|
-
hover: true
|
|
310
|
-
}
|
|
311
|
-
},
|
|
312
289
|
{
|
|
313
290
|
id: 'roundedBtn',
|
|
314
291
|
type: 'radius-preset',
|
|
@@ -127,7 +127,7 @@ const SettingUIV2 = [
|
|
|
127
127
|
en: 'Shadow'
|
|
128
128
|
},
|
|
129
129
|
setting: {
|
|
130
|
-
id: '
|
|
130
|
+
id: 'boxShadowBtn',
|
|
131
131
|
state: 'normal'
|
|
132
132
|
},
|
|
133
133
|
options: {
|
|
@@ -142,29 +142,29 @@ const SettingUIV2 = [
|
|
|
142
142
|
controlChangeTrigger: {
|
|
143
143
|
settings: [
|
|
144
144
|
{
|
|
145
|
-
condition: `
|
|
145
|
+
condition: `boxShadowBtn.normal.enable === true`,
|
|
146
146
|
source: [
|
|
147
|
-
'
|
|
147
|
+
'boxShadowBtn',
|
|
148
148
|
'hasBoxShadowBtn'
|
|
149
149
|
],
|
|
150
150
|
action: {
|
|
151
151
|
controlId: 'hasBoxShadowBtn',
|
|
152
|
-
groupType: '
|
|
153
|
-
controlType: '
|
|
152
|
+
groupType: 'styles',
|
|
153
|
+
controlType: 'styles',
|
|
154
154
|
state: 'normal',
|
|
155
155
|
newValue: true
|
|
156
156
|
}
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
|
-
condition: `
|
|
159
|
+
condition: `boxShadowBtn.normal.enable === false`,
|
|
160
160
|
source: [
|
|
161
|
-
'
|
|
161
|
+
'boxShadowBtn',
|
|
162
162
|
'hasBoxShadowBtn'
|
|
163
163
|
],
|
|
164
164
|
action: {
|
|
165
165
|
controlId: 'hasBoxShadowBtn',
|
|
166
|
-
groupType: '
|
|
167
|
-
controlType: '
|
|
166
|
+
groupType: 'styles',
|
|
167
|
+
controlType: 'styles',
|
|
168
168
|
state: 'normal',
|
|
169
169
|
newValue: false
|
|
170
170
|
}
|
|
@@ -312,7 +312,7 @@ const SettingUIV2 = [
|
|
|
312
312
|
en: 'Shadow'
|
|
313
313
|
},
|
|
314
314
|
setting: {
|
|
315
|
-
id: '
|
|
315
|
+
id: 'boxShadowBtn',
|
|
316
316
|
state: 'hover'
|
|
317
317
|
},
|
|
318
318
|
options: {
|
|
@@ -327,29 +327,29 @@ const SettingUIV2 = [
|
|
|
327
327
|
controlChangeTrigger: {
|
|
328
328
|
settings: [
|
|
329
329
|
{
|
|
330
|
-
condition: `
|
|
330
|
+
condition: `boxShadowBtn.hover.enable === true`,
|
|
331
331
|
source: [
|
|
332
|
-
'
|
|
332
|
+
'boxShadowBtn',
|
|
333
333
|
'hasBoxShadowBtn'
|
|
334
334
|
],
|
|
335
335
|
action: {
|
|
336
336
|
controlId: 'hasBoxShadowBtn',
|
|
337
|
-
groupType: '
|
|
338
|
-
controlType: '
|
|
337
|
+
groupType: 'styles',
|
|
338
|
+
controlType: 'styles',
|
|
339
339
|
state: 'hover',
|
|
340
340
|
newValue: true
|
|
341
341
|
}
|
|
342
342
|
},
|
|
343
343
|
{
|
|
344
|
-
condition: `
|
|
344
|
+
condition: `boxShadowBtn.hover.enable === false`,
|
|
345
345
|
source: [
|
|
346
|
-
'
|
|
346
|
+
'boxShadowBtn',
|
|
347
347
|
'hasBoxShadowBtn'
|
|
348
348
|
],
|
|
349
349
|
action: {
|
|
350
350
|
controlId: 'hasBoxShadowBtn',
|
|
351
|
-
groupType: '
|
|
352
|
-
controlType: '
|
|
351
|
+
groupType: 'styles',
|
|
352
|
+
controlType: 'styles',
|
|
353
353
|
state: 'hover',
|
|
354
354
|
newValue: false
|
|
355
355
|
}
|
|
@@ -168,7 +168,7 @@ const SettingUIV2 = [
|
|
|
168
168
|
options: {
|
|
169
169
|
labelVariant: 'primary',
|
|
170
170
|
fullWidth: true,
|
|
171
|
-
disableMessage: `
|
|
171
|
+
disableMessage: `Horizontal alignment is disabled when the width is set to 100% or greater`
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
]
|
|
@@ -49,8 +49,8 @@ const getDeviceStyles = ({ uid, device, styles, composeGlobalSize })=>{
|
|
|
49
49
|
${composeSpacing(device, composeGlobalSize.padding)}
|
|
50
50
|
${composeSize(composeGlobalSize.width[device] ?? 'auto', composeGlobalSize.height[device] ?? 'auto', false)}
|
|
51
51
|
${composeShadowCss({
|
|
52
|
-
boxShadowValue: styles?.
|
|
53
|
-
hasBoxShadow: styles?.
|
|
52
|
+
boxShadowValue: styles?.boxShadowBtn?.normal,
|
|
53
|
+
hasBoxShadow: styles?.boxShadowBtn?.normal?.type !== 'none'
|
|
54
54
|
}) || ''}
|
|
55
55
|
${composeCornerCss(styles?.roundedBtnV2?.normal, true)}
|
|
56
56
|
${device === 'desktop' ? composeTypographyV2Css(styles?.typo, true) : ''}
|
|
@@ -58,8 +58,8 @@ const getDeviceStyles = ({ uid, device, styles, composeGlobalSize })=>{
|
|
|
58
58
|
|
|
59
59
|
.wrap__button--unbranded__${uid} .shopify-payment-button .shopify-payment-button__button--unbranded:hover {
|
|
60
60
|
${composeShadowCss({
|
|
61
|
-
boxShadowValue: styles?.
|
|
62
|
-
hasBoxShadow: styles?.
|
|
61
|
+
boxShadowValue: styles?.boxShadowBtn?.hover,
|
|
62
|
+
hasBoxShadow: styles?.boxShadowBtn?.hover?.type !== 'none',
|
|
63
63
|
important: true
|
|
64
64
|
}) || ''}
|
|
65
65
|
${composeTextHoverColorCss(styles?.textColorHover, true)}
|
|
@@ -55,7 +55,7 @@ const getSoldOutButtonStyles = (styles)=>{
|
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
mapStylesByDevice(buttonSoldOutStyles, 'backgroundColorV2', oosBackgroundV2);
|
|
58
|
-
mapStylesByDevice(buttonSoldOutStyles, '
|
|
58
|
+
mapStylesByDevice(buttonSoldOutStyles, 'boxShadowBtn', oosShadowV2);
|
|
59
59
|
mapStylesByDevice(buttonSoldOutStyles, 'roundedBtnV2', oosRoundedV2);
|
|
60
60
|
mapStylesByDevice(buttonSoldOutStyles, 'borderBtnV2', oosBorderV2);
|
|
61
61
|
if (oosTextColorV2?.normal) {
|
|
@@ -95,7 +95,7 @@ const FeatureImageWithGallery = ({ builderPropUID, children, enableLazyLoadImage
|
|
|
95
95
|
{% assign other_image_index = media_length | minus: 1 %}
|
|
96
96
|
{% endif %}
|
|
97
97
|
{% assign otherImage = product.media[other_image_index] %}
|
|
98
|
-
${LiquidIf(`otherImage.media_type != 'image'`, `{% assign src = otherImage.preview_image.src %}`)}
|
|
98
|
+
${LiquidIf(`otherImage.media_type != 'image'`, `{% assign src = otherImage.preview_image.src %}`, `{% assign src = otherImage.src %}`)}
|
|
99
99
|
`)}
|
|
100
100
|
${NextImage({
|
|
101
101
|
srcIsLiquidCode: true,
|
|
@@ -147,10 +147,26 @@ const horizontalThree = [
|
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
149
|
type: 'paragraph-1'
|
|
150
|
+
},
|
|
151
|
+
textSizeV2: {
|
|
152
|
+
desktop: {
|
|
153
|
+
width: 'Auto',
|
|
154
|
+
height: 'auto',
|
|
155
|
+
shapeLinked: false,
|
|
156
|
+
disableShapeLinked: true,
|
|
157
|
+
hiddenShape: true,
|
|
158
|
+
shape: 'custom',
|
|
159
|
+
padding: {
|
|
160
|
+
top: '12px',
|
|
161
|
+
bottom: '12px',
|
|
162
|
+
left: '12px',
|
|
163
|
+
right: '12px'
|
|
164
|
+
}
|
|
165
|
+
}
|
|
150
166
|
}
|
|
151
167
|
},
|
|
152
168
|
tag: 'ProductBadge',
|
|
153
|
-
uid: '
|
|
169
|
+
uid: 'gXAaVIfN3P',
|
|
154
170
|
childrens: []
|
|
155
171
|
},
|
|
156
172
|
{
|
|
@@ -146,10 +146,26 @@ const horizontalTwo = [
|
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
148
|
type: 'paragraph-1'
|
|
149
|
+
},
|
|
150
|
+
textSizeV2: {
|
|
151
|
+
desktop: {
|
|
152
|
+
width: 'Auto',
|
|
153
|
+
height: 'auto',
|
|
154
|
+
shapeLinked: false,
|
|
155
|
+
disableShapeLinked: true,
|
|
156
|
+
hiddenShape: true,
|
|
157
|
+
shape: 'custom',
|
|
158
|
+
padding: {
|
|
159
|
+
top: '12px',
|
|
160
|
+
bottom: '12px',
|
|
161
|
+
left: '12px',
|
|
162
|
+
right: '12px'
|
|
163
|
+
}
|
|
164
|
+
}
|
|
149
165
|
}
|
|
150
166
|
},
|
|
151
167
|
tag: 'ProductBadge',
|
|
152
|
-
uid: '
|
|
168
|
+
uid: 'gXAaVIfN3P',
|
|
153
169
|
childrens: []
|
|
154
170
|
},
|
|
155
171
|
{
|
|
@@ -287,10 +287,26 @@ const verticalThree = [
|
|
|
287
287
|
}
|
|
288
288
|
},
|
|
289
289
|
type: 'paragraph-1'
|
|
290
|
+
},
|
|
291
|
+
textSizeV2: {
|
|
292
|
+
desktop: {
|
|
293
|
+
width: 'Auto',
|
|
294
|
+
height: 'auto',
|
|
295
|
+
shapeLinked: false,
|
|
296
|
+
disableShapeLinked: true,
|
|
297
|
+
hiddenShape: true,
|
|
298
|
+
shape: 'custom',
|
|
299
|
+
padding: {
|
|
300
|
+
top: '12px',
|
|
301
|
+
bottom: '12px',
|
|
302
|
+
left: '12px',
|
|
303
|
+
right: '12px'
|
|
304
|
+
}
|
|
305
|
+
}
|
|
290
306
|
}
|
|
291
307
|
},
|
|
292
308
|
tag: 'ProductBadge',
|
|
293
|
-
uid: '
|
|
309
|
+
uid: 'gXAaVIfN3P',
|
|
294
310
|
childrens: []
|
|
295
311
|
},
|
|
296
312
|
{
|
|
@@ -287,10 +287,26 @@ const verticalTwo = [
|
|
|
287
287
|
}
|
|
288
288
|
},
|
|
289
289
|
type: 'paragraph-1'
|
|
290
|
+
},
|
|
291
|
+
textSizeV2: {
|
|
292
|
+
desktop: {
|
|
293
|
+
width: 'Auto',
|
|
294
|
+
height: 'auto',
|
|
295
|
+
shapeLinked: false,
|
|
296
|
+
disableShapeLinked: true,
|
|
297
|
+
hiddenShape: true,
|
|
298
|
+
shape: 'custom',
|
|
299
|
+
padding: {
|
|
300
|
+
top: '12px',
|
|
301
|
+
bottom: '12px',
|
|
302
|
+
left: '12px',
|
|
303
|
+
right: '12px'
|
|
304
|
+
}
|
|
305
|
+
}
|
|
290
306
|
}
|
|
291
307
|
},
|
|
292
308
|
tag: 'ProductBadge',
|
|
293
|
-
uid: '
|
|
309
|
+
uid: 'gXAaVIfN3P',
|
|
294
310
|
childrens: []
|
|
295
311
|
},
|
|
296
312
|
{
|
|
@@ -197,29 +197,6 @@ const DynamicCheckoutSettings = [
|
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
199
|
id: 'boxShadowBtn',
|
|
200
|
-
type: 'boxShadow',
|
|
201
|
-
label: 'Shadow Style',
|
|
202
|
-
hideOnState: {
|
|
203
|
-
normal: true,
|
|
204
|
-
hover: true
|
|
205
|
-
},
|
|
206
|
-
default: {
|
|
207
|
-
normal: {
|
|
208
|
-
type: 'shadow-1',
|
|
209
|
-
distance: '4px',
|
|
210
|
-
blur: '12px',
|
|
211
|
-
spread: '0px',
|
|
212
|
-
color: 'rgba(0, 0, 0, 0.20)',
|
|
213
|
-
angle: 90
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
state: {
|
|
217
|
-
normal: true,
|
|
218
|
-
hover: true
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
id: 'boxShadowBtnV2',
|
|
223
200
|
type: 'shadow-v2',
|
|
224
201
|
default: {
|
|
225
202
|
normal: {}
|
|
@@ -177,7 +177,7 @@ const SettingUIV2 = [
|
|
|
177
177
|
en: 'Shadow'
|
|
178
178
|
},
|
|
179
179
|
setting: {
|
|
180
|
-
id: '
|
|
180
|
+
id: 'boxShadowBtn',
|
|
181
181
|
state: 'normal'
|
|
182
182
|
},
|
|
183
183
|
options: {
|
|
@@ -192,29 +192,29 @@ const SettingUIV2 = [
|
|
|
192
192
|
controlChangeTrigger: {
|
|
193
193
|
settings: [
|
|
194
194
|
{
|
|
195
|
-
condition: `
|
|
195
|
+
condition: `boxShadowBtn.normal.enable === true`,
|
|
196
196
|
source: [
|
|
197
|
-
'
|
|
197
|
+
'boxShadowBtn',
|
|
198
198
|
'hasBoxShadowBtn'
|
|
199
199
|
],
|
|
200
200
|
action: {
|
|
201
201
|
controlId: 'hasBoxShadowBtn',
|
|
202
|
-
groupType: '
|
|
203
|
-
controlType: '
|
|
202
|
+
groupType: 'styles',
|
|
203
|
+
controlType: 'styles',
|
|
204
204
|
state: 'normal',
|
|
205
205
|
newValue: true
|
|
206
206
|
}
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
|
-
condition: `
|
|
209
|
+
condition: `boxShadowBtn.normal.enable === false`,
|
|
210
210
|
source: [
|
|
211
|
-
'
|
|
211
|
+
'boxShadowBtn',
|
|
212
212
|
'hasBoxShadowBtn'
|
|
213
213
|
],
|
|
214
214
|
action: {
|
|
215
215
|
controlId: 'hasBoxShadowBtn',
|
|
216
|
-
groupType: '
|
|
217
|
-
controlType: '
|
|
216
|
+
groupType: 'styles',
|
|
217
|
+
controlType: 'styles',
|
|
218
218
|
state: 'normal',
|
|
219
219
|
newValue: false
|
|
220
220
|
}
|
|
@@ -371,7 +371,7 @@ const SettingUIV2 = [
|
|
|
371
371
|
en: 'Shadow'
|
|
372
372
|
},
|
|
373
373
|
setting: {
|
|
374
|
-
id: '
|
|
374
|
+
id: 'boxShadowBtn',
|
|
375
375
|
state: 'hover'
|
|
376
376
|
},
|
|
377
377
|
options: {
|
|
@@ -386,29 +386,29 @@ const SettingUIV2 = [
|
|
|
386
386
|
controlChangeTrigger: {
|
|
387
387
|
settings: [
|
|
388
388
|
{
|
|
389
|
-
condition: `
|
|
389
|
+
condition: `boxShadowBtn.hover.enable === true`,
|
|
390
390
|
source: [
|
|
391
|
-
'
|
|
391
|
+
'boxShadowBtn',
|
|
392
392
|
'hasBoxShadowBtn'
|
|
393
393
|
],
|
|
394
394
|
action: {
|
|
395
395
|
controlId: 'hasBoxShadowBtn',
|
|
396
|
-
groupType: '
|
|
397
|
-
controlType: '
|
|
396
|
+
groupType: 'styles',
|
|
397
|
+
controlType: 'styles',
|
|
398
398
|
state: 'hover',
|
|
399
399
|
newValue: true
|
|
400
400
|
}
|
|
401
401
|
},
|
|
402
402
|
{
|
|
403
|
-
condition: `
|
|
403
|
+
condition: `boxShadowBtn.hover.enable === false`,
|
|
404
404
|
source: [
|
|
405
|
-
'
|
|
405
|
+
'boxShadowBtn',
|
|
406
406
|
'hasBoxShadowBtn'
|
|
407
407
|
],
|
|
408
408
|
action: {
|
|
409
409
|
controlId: 'hasBoxShadowBtn',
|
|
410
|
-
groupType: '
|
|
411
|
-
controlType: '
|
|
410
|
+
groupType: 'styles',
|
|
411
|
+
controlType: 'styles',
|
|
412
412
|
state: 'hover',
|
|
413
413
|
newValue: false
|
|
414
414
|
}
|
|
@@ -376,29 +376,6 @@ const ProductButtonSettings = [
|
|
|
376
376
|
hover: true
|
|
377
377
|
}
|
|
378
378
|
},
|
|
379
|
-
{
|
|
380
|
-
id: 'boxShadowBtn',
|
|
381
|
-
type: 'boxShadow',
|
|
382
|
-
label: 'Shadow Style',
|
|
383
|
-
hideOnState: {
|
|
384
|
-
normal: true,
|
|
385
|
-
hover: true
|
|
386
|
-
},
|
|
387
|
-
default: {
|
|
388
|
-
normal: {
|
|
389
|
-
type: 'shadow-1',
|
|
390
|
-
distance: '4px',
|
|
391
|
-
blur: '12px',
|
|
392
|
-
spread: '0px',
|
|
393
|
-
color: 'rgba(0, 0, 0, 0.20)',
|
|
394
|
-
angle: 90
|
|
395
|
-
}
|
|
396
|
-
},
|
|
397
|
-
state: {
|
|
398
|
-
normal: true,
|
|
399
|
-
hover: true
|
|
400
|
-
}
|
|
401
|
-
},
|
|
402
379
|
{
|
|
403
380
|
id: 'roundedBtn',
|
|
404
381
|
type: 'radius-preset',
|
|
@@ -429,7 +406,7 @@ const ProductButtonSettings = [
|
|
|
429
406
|
enableGradient: true
|
|
430
407
|
},
|
|
431
408
|
{
|
|
432
|
-
id: '
|
|
409
|
+
id: 'boxShadowBtn',
|
|
433
410
|
type: 'shadow-v2',
|
|
434
411
|
default: {
|
|
435
412
|
normal: {}
|