@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
|
@@ -40,10 +40,10 @@ const ignoreStateNoneValue = (obj, condition)=>{
|
|
|
40
40
|
}, {});
|
|
41
41
|
};
|
|
42
42
|
const getShadowStyles = (styles1)=>{
|
|
43
|
-
const {
|
|
44
|
-
const ignoreNoneValueObjectShadow1 = ignoreStateNoneValue(
|
|
43
|
+
const { boxShadowBtn: boxShadowBtn1 } = styles1 || {};
|
|
44
|
+
const ignoreNoneValueObjectShadow1 = ignoreStateNoneValue(boxShadowBtn1 || {}, 'value?.enable !== false');
|
|
45
45
|
return {
|
|
46
|
-
...core.getStyleShadowState(ignoreNoneValueObjectShadow1, 'box-shadow', isEnableShadowStateForDevice(
|
|
46
|
+
...core.getStyleShadowState(ignoreNoneValueObjectShadow1, 'box-shadow', isEnableShadowStateForDevice(boxShadowBtn1))
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
49
|
const getRadiusStyles = (styles1)=>{
|
|
@@ -110,19 +110,6 @@ const ButtonSettings = [
|
|
|
110
110
|
{
|
|
111
111
|
id: 'style',
|
|
112
112
|
controls: [
|
|
113
|
-
{
|
|
114
|
-
id: 'hasBoxShadowBtn',
|
|
115
|
-
type: 'toggle',
|
|
116
|
-
label: 'Enable Button Shadow',
|
|
117
|
-
default: {
|
|
118
|
-
normal: false,
|
|
119
|
-
hover: false
|
|
120
|
-
},
|
|
121
|
-
state: {
|
|
122
|
-
normal: true,
|
|
123
|
-
hover: true
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
113
|
{
|
|
127
114
|
id: 'borderBtnV2',
|
|
128
115
|
type: 'border-v2',
|
|
@@ -213,29 +200,6 @@ const ButtonSettings = [
|
|
|
213
200
|
normal: true
|
|
214
201
|
}
|
|
215
202
|
},
|
|
216
|
-
{
|
|
217
|
-
id: 'boxShadowBtn',
|
|
218
|
-
type: 'boxShadow',
|
|
219
|
-
label: 'Button Shadow',
|
|
220
|
-
hideOnState: {
|
|
221
|
-
normal: true,
|
|
222
|
-
hover: true
|
|
223
|
-
},
|
|
224
|
-
default: {
|
|
225
|
-
normal: {
|
|
226
|
-
type: 'shadow-1',
|
|
227
|
-
distance: '4px',
|
|
228
|
-
blur: '12px',
|
|
229
|
-
spread: '0px',
|
|
230
|
-
color: 'rgba(0, 0, 0, 0.20)',
|
|
231
|
-
angle: 90
|
|
232
|
-
}
|
|
233
|
-
},
|
|
234
|
-
state: {
|
|
235
|
-
normal: true,
|
|
236
|
-
hover: true
|
|
237
|
-
}
|
|
238
|
-
},
|
|
239
203
|
{
|
|
240
204
|
id: 'hasBoxShadowBtn',
|
|
241
205
|
type: 'toggle',
|
|
@@ -250,7 +214,7 @@ const ButtonSettings = [
|
|
|
250
214
|
}
|
|
251
215
|
},
|
|
252
216
|
{
|
|
253
|
-
id: '
|
|
217
|
+
id: 'boxShadowBtn',
|
|
254
218
|
type: 'shadow-v2',
|
|
255
219
|
default: {
|
|
256
220
|
normal: {}
|
|
@@ -151,7 +151,7 @@ const SettingUIV2 = [
|
|
|
151
151
|
en: 'Shadow'
|
|
152
152
|
},
|
|
153
153
|
setting: {
|
|
154
|
-
id: '
|
|
154
|
+
id: 'boxShadowBtn',
|
|
155
155
|
state: 'normal'
|
|
156
156
|
},
|
|
157
157
|
options: {
|
|
@@ -166,29 +166,29 @@ const SettingUIV2 = [
|
|
|
166
166
|
controlChangeTrigger: {
|
|
167
167
|
settings: [
|
|
168
168
|
{
|
|
169
|
-
condition: `
|
|
169
|
+
condition: `boxShadowBtn.normal.enable === true`,
|
|
170
170
|
source: [
|
|
171
|
-
'
|
|
171
|
+
'boxShadowBtn',
|
|
172
172
|
'hasBoxShadowBtn'
|
|
173
173
|
],
|
|
174
174
|
action: {
|
|
175
175
|
controlId: 'hasBoxShadowBtn',
|
|
176
|
-
groupType: '
|
|
177
|
-
controlType: '
|
|
176
|
+
groupType: 'styles',
|
|
177
|
+
controlType: 'styles',
|
|
178
178
|
state: 'normal',
|
|
179
179
|
newValue: true
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
|
-
condition: `
|
|
183
|
+
condition: `boxShadowBtn.normal.enable === false`,
|
|
184
184
|
source: [
|
|
185
|
-
'
|
|
185
|
+
'boxShadowBtn',
|
|
186
186
|
'hasBoxShadowBtn'
|
|
187
187
|
],
|
|
188
188
|
action: {
|
|
189
189
|
controlId: 'hasBoxShadowBtn',
|
|
190
|
-
groupType: '
|
|
191
|
-
controlType: '
|
|
190
|
+
groupType: 'styles',
|
|
191
|
+
controlType: 'styles',
|
|
192
192
|
state: 'normal',
|
|
193
193
|
newValue: false
|
|
194
194
|
}
|
|
@@ -378,7 +378,7 @@ const SettingUIV2 = [
|
|
|
378
378
|
en: 'Shadow'
|
|
379
379
|
},
|
|
380
380
|
setting: {
|
|
381
|
-
id: '
|
|
381
|
+
id: 'boxShadowBtn',
|
|
382
382
|
state: 'hover'
|
|
383
383
|
},
|
|
384
384
|
options: {
|
|
@@ -393,29 +393,29 @@ const SettingUIV2 = [
|
|
|
393
393
|
controlChangeTrigger: {
|
|
394
394
|
settings: [
|
|
395
395
|
{
|
|
396
|
-
condition: `
|
|
396
|
+
condition: `boxShadowBtn.hover.enable === true`,
|
|
397
397
|
source: [
|
|
398
|
-
'
|
|
398
|
+
'boxShadowBtn',
|
|
399
399
|
'hasBoxShadowBtn'
|
|
400
400
|
],
|
|
401
401
|
action: {
|
|
402
402
|
controlId: 'hasBoxShadowBtn',
|
|
403
|
-
groupType: '
|
|
404
|
-
controlType: '
|
|
403
|
+
groupType: 'styles',
|
|
404
|
+
controlType: 'styles',
|
|
405
405
|
state: 'hover',
|
|
406
406
|
newValue: true
|
|
407
407
|
}
|
|
408
408
|
},
|
|
409
409
|
{
|
|
410
|
-
condition: `
|
|
410
|
+
condition: `boxShadowBtn.hover.enable === false`,
|
|
411
411
|
source: [
|
|
412
|
-
'
|
|
412
|
+
'boxShadowBtn',
|
|
413
413
|
'hasBoxShadowBtn'
|
|
414
414
|
],
|
|
415
415
|
action: {
|
|
416
416
|
controlId: 'hasBoxShadowBtn',
|
|
417
|
-
groupType: '
|
|
418
|
-
controlType: '
|
|
417
|
+
groupType: 'styles',
|
|
418
|
+
controlType: 'styles',
|
|
419
419
|
state: 'hover',
|
|
420
420
|
newValue: false
|
|
421
421
|
}
|
|
@@ -5,7 +5,7 @@ var core = require('@gem-sdk/core');
|
|
|
5
5
|
const getCodeClasses = (uid, condition, cssClass)=>{
|
|
6
6
|
return core.composeClasses(core.cls(uid, {
|
|
7
7
|
'gp-sr-only': condition
|
|
8
|
-
}, 'gp-cursor-pointer', cssClass));
|
|
8
|
+
}, 'gp-cursor-pointer', 'gp-custom-code', cssClass));
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
exports.getCodeClasses = getCodeClasses;
|
|
@@ -18,7 +18,7 @@ const getInnerBorderCornerCss = (data)=>{
|
|
|
18
18
|
const { uid, styles } = data;
|
|
19
19
|
const borderBtnV2 = styles?.borderBtnV2;
|
|
20
20
|
const roundedBtnV2 = styles?.roundedBtnV2;
|
|
21
|
-
const
|
|
21
|
+
const boxShadowBtn = styles?.boxShadowBtn;
|
|
22
22
|
const getShadowValue = (value)=>value ? core.getStyleShadow({
|
|
23
23
|
value,
|
|
24
24
|
state: 'active',
|
|
@@ -40,7 +40,7 @@ const getInnerBorderCornerCss = (data)=>{
|
|
|
40
40
|
important: true
|
|
41
41
|
})};
|
|
42
42
|
${core.composeCornerCss(roundedBtnV2?.active, true)};
|
|
43
|
-
box-shadow: ${getShadowValue(
|
|
43
|
+
box-shadow: ${getShadowValue(boxShadowBtn?.active ?? {})} !important;
|
|
44
44
|
}
|
|
45
45
|
.gp-coupon[data-active="true"] .${uid} {
|
|
46
46
|
${core.composeCornerCss(roundedBtnV2?.active, true)};
|
|
@@ -219,8 +219,52 @@ const SettingUIV2 = [
|
|
|
219
219
|
en: 'Shadow'
|
|
220
220
|
},
|
|
221
221
|
setting: {
|
|
222
|
-
id: '
|
|
222
|
+
id: 'boxShadowBtn',
|
|
223
223
|
state: 'normal'
|
|
224
|
+
},
|
|
225
|
+
options: {
|
|
226
|
+
updateFields: [
|
|
227
|
+
{
|
|
228
|
+
field: 'enable',
|
|
229
|
+
settingId: 'hasBoxShadowBtn',
|
|
230
|
+
state: 'normal'
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
},
|
|
234
|
+
controlChangeTrigger: {
|
|
235
|
+
settings: [
|
|
236
|
+
{
|
|
237
|
+
condition: `boxShadowBtn.normal.enable === true`,
|
|
238
|
+
source: [
|
|
239
|
+
'boxShadowBtn',
|
|
240
|
+
'hasBoxShadowBtn'
|
|
241
|
+
],
|
|
242
|
+
action: {
|
|
243
|
+
controlId: 'hasBoxShadowBtn',
|
|
244
|
+
groupType: 'styles',
|
|
245
|
+
controlType: 'styles',
|
|
246
|
+
state: 'normal',
|
|
247
|
+
newValue: true
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
condition: `boxShadowBtn.normal.enable === false`,
|
|
252
|
+
source: [
|
|
253
|
+
'boxShadowBtn',
|
|
254
|
+
'hasBoxShadowBtn'
|
|
255
|
+
],
|
|
256
|
+
action: {
|
|
257
|
+
controlId: 'hasBoxShadowBtn',
|
|
258
|
+
groupType: 'styles',
|
|
259
|
+
controlType: 'styles',
|
|
260
|
+
state: 'normal',
|
|
261
|
+
newValue: false
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
],
|
|
265
|
+
options: {
|
|
266
|
+
noRecordHistory: true
|
|
267
|
+
}
|
|
224
268
|
}
|
|
225
269
|
}
|
|
226
270
|
]
|
|
@@ -436,8 +480,52 @@ const SettingUIV2 = [
|
|
|
436
480
|
en: 'Shadow'
|
|
437
481
|
},
|
|
438
482
|
setting: {
|
|
439
|
-
id: '
|
|
483
|
+
id: 'boxShadowBtn',
|
|
440
484
|
state: 'hover'
|
|
485
|
+
},
|
|
486
|
+
options: {
|
|
487
|
+
updateFields: [
|
|
488
|
+
{
|
|
489
|
+
field: 'enable',
|
|
490
|
+
settingId: 'hasBoxShadowBtn',
|
|
491
|
+
state: 'hover'
|
|
492
|
+
}
|
|
493
|
+
]
|
|
494
|
+
},
|
|
495
|
+
controlChangeTrigger: {
|
|
496
|
+
settings: [
|
|
497
|
+
{
|
|
498
|
+
condition: `boxShadowBtn.hover.enable === true`,
|
|
499
|
+
source: [
|
|
500
|
+
'boxShadowBtn',
|
|
501
|
+
'hasBoxShadowBtn'
|
|
502
|
+
],
|
|
503
|
+
action: {
|
|
504
|
+
controlId: 'hasBoxShadowBtn',
|
|
505
|
+
groupType: 'styles',
|
|
506
|
+
controlType: 'styles',
|
|
507
|
+
state: 'hover',
|
|
508
|
+
newValue: true
|
|
509
|
+
}
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
condition: `boxShadowBtn.hover.enable === false`,
|
|
513
|
+
source: [
|
|
514
|
+
'boxShadowBtn',
|
|
515
|
+
'hasBoxShadowBtn'
|
|
516
|
+
],
|
|
517
|
+
action: {
|
|
518
|
+
controlId: 'hasBoxShadowBtn',
|
|
519
|
+
groupType: 'styles',
|
|
520
|
+
controlType: 'styles',
|
|
521
|
+
state: 'hover',
|
|
522
|
+
newValue: false
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
],
|
|
526
|
+
options: {
|
|
527
|
+
noRecordHistory: true
|
|
528
|
+
}
|
|
441
529
|
}
|
|
442
530
|
}
|
|
443
531
|
]
|
|
@@ -535,8 +623,52 @@ const SettingUIV2 = [
|
|
|
535
623
|
en: 'Shadow'
|
|
536
624
|
},
|
|
537
625
|
setting: {
|
|
538
|
-
id: '
|
|
626
|
+
id: 'boxShadowBtn',
|
|
539
627
|
state: 'active'
|
|
628
|
+
},
|
|
629
|
+
options: {
|
|
630
|
+
updateFields: [
|
|
631
|
+
{
|
|
632
|
+
field: 'enable',
|
|
633
|
+
settingId: 'hasBoxShadowBtn',
|
|
634
|
+
state: 'active'
|
|
635
|
+
}
|
|
636
|
+
]
|
|
637
|
+
},
|
|
638
|
+
controlChangeTrigger: {
|
|
639
|
+
settings: [
|
|
640
|
+
{
|
|
641
|
+
condition: `boxShadowBtn.active.enable === true`,
|
|
642
|
+
source: [
|
|
643
|
+
'boxShadowBtn',
|
|
644
|
+
'hasBoxShadowBtn'
|
|
645
|
+
],
|
|
646
|
+
action: {
|
|
647
|
+
controlId: 'hasBoxShadowBtn',
|
|
648
|
+
groupType: 'styles',
|
|
649
|
+
controlType: 'styles',
|
|
650
|
+
state: 'active',
|
|
651
|
+
newValue: true
|
|
652
|
+
}
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
condition: `boxShadowBtn.active.enable === false`,
|
|
656
|
+
source: [
|
|
657
|
+
'boxShadowBtn',
|
|
658
|
+
'hasBoxShadowBtn'
|
|
659
|
+
],
|
|
660
|
+
action: {
|
|
661
|
+
controlId: 'hasBoxShadowBtn',
|
|
662
|
+
groupType: 'styles',
|
|
663
|
+
controlType: 'styles',
|
|
664
|
+
state: 'active',
|
|
665
|
+
newValue: false
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
],
|
|
669
|
+
options: {
|
|
670
|
+
noRecordHistory: true
|
|
671
|
+
}
|
|
540
672
|
}
|
|
541
673
|
}
|
|
542
674
|
]
|
|
@@ -174,7 +174,7 @@ const SubmitButtonSettings = [
|
|
|
174
174
|
}
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
|
-
id: '
|
|
177
|
+
id: 'boxShadowBtn',
|
|
178
178
|
type: 'shadow-v2',
|
|
179
179
|
default: {
|
|
180
180
|
normal: {
|
|
@@ -290,29 +290,6 @@ const SubmitButtonSettings = [
|
|
|
290
290
|
hover: true
|
|
291
291
|
}
|
|
292
292
|
},
|
|
293
|
-
{
|
|
294
|
-
id: 'boxShadowBtn',
|
|
295
|
-
type: 'shadow-v2',
|
|
296
|
-
label: 'Button Shadow',
|
|
297
|
-
hideOnState: {
|
|
298
|
-
normal: true,
|
|
299
|
-
hover: true
|
|
300
|
-
},
|
|
301
|
-
default: {
|
|
302
|
-
normal: {
|
|
303
|
-
type: 'none',
|
|
304
|
-
distance: '4px',
|
|
305
|
-
blur: '12px',
|
|
306
|
-
spread: '0px',
|
|
307
|
-
color: 'rgba(0, 0, 0, 0.20)',
|
|
308
|
-
angle: 90
|
|
309
|
-
}
|
|
310
|
-
},
|
|
311
|
-
state: {
|
|
312
|
-
normal: true,
|
|
313
|
-
hover: true
|
|
314
|
-
}
|
|
315
|
-
},
|
|
316
293
|
{
|
|
317
294
|
id: 'roundedBtn',
|
|
318
295
|
type: 'radius-preset',
|
|
@@ -129,7 +129,7 @@ const SettingUIV2 = [
|
|
|
129
129
|
en: 'Shadow'
|
|
130
130
|
},
|
|
131
131
|
setting: {
|
|
132
|
-
id: '
|
|
132
|
+
id: 'boxShadowBtn',
|
|
133
133
|
state: 'normal'
|
|
134
134
|
},
|
|
135
135
|
options: {
|
|
@@ -144,29 +144,29 @@ const SettingUIV2 = [
|
|
|
144
144
|
controlChangeTrigger: {
|
|
145
145
|
settings: [
|
|
146
146
|
{
|
|
147
|
-
condition: `
|
|
147
|
+
condition: `boxShadowBtn.normal.enable === true`,
|
|
148
148
|
source: [
|
|
149
|
-
'
|
|
149
|
+
'boxShadowBtn',
|
|
150
150
|
'hasBoxShadowBtn'
|
|
151
151
|
],
|
|
152
152
|
action: {
|
|
153
153
|
controlId: 'hasBoxShadowBtn',
|
|
154
|
-
groupType: '
|
|
155
|
-
controlType: '
|
|
154
|
+
groupType: 'styles',
|
|
155
|
+
controlType: 'styles',
|
|
156
156
|
state: 'normal',
|
|
157
157
|
newValue: true
|
|
158
158
|
}
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
|
-
condition: `
|
|
161
|
+
condition: `boxShadowBtn.normal.enable === false`,
|
|
162
162
|
source: [
|
|
163
|
-
'
|
|
163
|
+
'boxShadowBtn',
|
|
164
164
|
'hasBoxShadowBtn'
|
|
165
165
|
],
|
|
166
166
|
action: {
|
|
167
167
|
controlId: 'hasBoxShadowBtn',
|
|
168
|
-
groupType: '
|
|
169
|
-
controlType: '
|
|
168
|
+
groupType: 'styles',
|
|
169
|
+
controlType: 'styles',
|
|
170
170
|
state: 'normal',
|
|
171
171
|
newValue: false
|
|
172
172
|
}
|
|
@@ -314,7 +314,7 @@ const SettingUIV2 = [
|
|
|
314
314
|
en: 'Shadow'
|
|
315
315
|
},
|
|
316
316
|
setting: {
|
|
317
|
-
id: '
|
|
317
|
+
id: 'boxShadowBtn',
|
|
318
318
|
state: 'hover'
|
|
319
319
|
},
|
|
320
320
|
options: {
|
|
@@ -329,29 +329,29 @@ const SettingUIV2 = [
|
|
|
329
329
|
controlChangeTrigger: {
|
|
330
330
|
settings: [
|
|
331
331
|
{
|
|
332
|
-
condition: `
|
|
332
|
+
condition: `boxShadowBtn.hover.enable === true`,
|
|
333
333
|
source: [
|
|
334
|
-
'
|
|
334
|
+
'boxShadowBtn',
|
|
335
335
|
'hasBoxShadowBtn'
|
|
336
336
|
],
|
|
337
337
|
action: {
|
|
338
338
|
controlId: 'hasBoxShadowBtn',
|
|
339
|
-
groupType: '
|
|
340
|
-
controlType: '
|
|
339
|
+
groupType: 'styles',
|
|
340
|
+
controlType: 'styles',
|
|
341
341
|
state: 'hover',
|
|
342
342
|
newValue: true
|
|
343
343
|
}
|
|
344
344
|
},
|
|
345
345
|
{
|
|
346
|
-
condition: `
|
|
346
|
+
condition: `boxShadowBtn.hover.enable === false`,
|
|
347
347
|
source: [
|
|
348
|
-
'
|
|
348
|
+
'boxShadowBtn',
|
|
349
349
|
'hasBoxShadowBtn'
|
|
350
350
|
],
|
|
351
351
|
action: {
|
|
352
352
|
controlId: 'hasBoxShadowBtn',
|
|
353
|
-
groupType: '
|
|
354
|
-
controlType: '
|
|
353
|
+
groupType: 'styles',
|
|
354
|
+
controlType: 'styles',
|
|
355
355
|
state: 'hover',
|
|
356
356
|
newValue: false
|
|
357
357
|
}
|
|
@@ -170,7 +170,7 @@ const SettingUIV2 = [
|
|
|
170
170
|
options: {
|
|
171
171
|
labelVariant: 'primary',
|
|
172
172
|
fullWidth: true,
|
|
173
|
-
disableMessage: `
|
|
173
|
+
disableMessage: `Horizontal alignment is disabled when the width is set to 100% or greater`
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
]
|
|
@@ -51,8 +51,8 @@ const getDeviceStyles = ({ uid, device, styles, composeGlobalSize })=>{
|
|
|
51
51
|
${composeSpacing(device, composeGlobalSize.padding)}
|
|
52
52
|
${composeSize(composeGlobalSize.width[device] ?? 'auto', composeGlobalSize.height[device] ?? 'auto', false)}
|
|
53
53
|
${core.composeShadowCss({
|
|
54
|
-
boxShadowValue: styles?.
|
|
55
|
-
hasBoxShadow: styles?.
|
|
54
|
+
boxShadowValue: styles?.boxShadowBtn?.normal,
|
|
55
|
+
hasBoxShadow: styles?.boxShadowBtn?.normal?.type !== 'none'
|
|
56
56
|
}) || ''}
|
|
57
57
|
${core.composeCornerCss(styles?.roundedBtnV2?.normal, true)}
|
|
58
58
|
${device === 'desktop' ? core.composeTypographyV2Css(styles?.typo, true) : ''}
|
|
@@ -60,8 +60,8 @@ const getDeviceStyles = ({ uid, device, styles, composeGlobalSize })=>{
|
|
|
60
60
|
|
|
61
61
|
.wrap__button--unbranded__${uid} .shopify-payment-button .shopify-payment-button__button--unbranded:hover {
|
|
62
62
|
${core.composeShadowCss({
|
|
63
|
-
boxShadowValue: styles?.
|
|
64
|
-
hasBoxShadow: styles?.
|
|
63
|
+
boxShadowValue: styles?.boxShadowBtn?.hover,
|
|
64
|
+
hasBoxShadow: styles?.boxShadowBtn?.hover?.type !== 'none',
|
|
65
65
|
important: true
|
|
66
66
|
}) || ''}
|
|
67
67
|
${core.composeTextHoverColorCss(styles?.textColorHover, true)}
|
|
@@ -57,7 +57,7 @@ const getSoldOutButtonStyles = (styles)=>{
|
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
mapStylesByDevice(buttonSoldOutStyles, 'backgroundColorV2', oosBackgroundV2);
|
|
60
|
-
mapStylesByDevice(buttonSoldOutStyles, '
|
|
60
|
+
mapStylesByDevice(buttonSoldOutStyles, 'boxShadowBtn', oosShadowV2);
|
|
61
61
|
mapStylesByDevice(buttonSoldOutStyles, 'roundedBtnV2', oosRoundedV2);
|
|
62
62
|
mapStylesByDevice(buttonSoldOutStyles, 'borderBtnV2', oosBorderV2);
|
|
63
63
|
if (oosTextColorV2?.normal) {
|
|
@@ -99,7 +99,7 @@ const FeatureImageWithGallery = ({ builderPropUID, children, enableLazyLoadImage
|
|
|
99
99
|
{% assign other_image_index = media_length | minus: 1 %}
|
|
100
100
|
{% endif %}
|
|
101
101
|
{% assign otherImage = product.media[other_image_index] %}
|
|
102
|
-
${system.LiquidIf(`otherImage.media_type != 'image'`, `{% assign src = otherImage.preview_image.src %}`)}
|
|
102
|
+
${system.LiquidIf(`otherImage.media_type != 'image'`, `{% assign src = otherImage.preview_image.src %}`, `{% assign src = otherImage.src %}`)}
|
|
103
103
|
`)}
|
|
104
104
|
${NextImage_liquid.default({
|
|
105
105
|
srcIsLiquidCode: true,
|
|
@@ -149,10 +149,26 @@ const horizontalThree = [
|
|
|
149
149
|
}
|
|
150
150
|
},
|
|
151
151
|
type: 'paragraph-1'
|
|
152
|
+
},
|
|
153
|
+
textSizeV2: {
|
|
154
|
+
desktop: {
|
|
155
|
+
width: 'Auto',
|
|
156
|
+
height: 'auto',
|
|
157
|
+
shapeLinked: false,
|
|
158
|
+
disableShapeLinked: true,
|
|
159
|
+
hiddenShape: true,
|
|
160
|
+
shape: 'custom',
|
|
161
|
+
padding: {
|
|
162
|
+
top: '12px',
|
|
163
|
+
bottom: '12px',
|
|
164
|
+
left: '12px',
|
|
165
|
+
right: '12px'
|
|
166
|
+
}
|
|
167
|
+
}
|
|
152
168
|
}
|
|
153
169
|
},
|
|
154
170
|
tag: 'ProductBadge',
|
|
155
|
-
uid: '
|
|
171
|
+
uid: 'gXAaVIfN3P',
|
|
156
172
|
childrens: []
|
|
157
173
|
},
|
|
158
174
|
{
|
|
@@ -148,10 +148,26 @@ const horizontalTwo = [
|
|
|
148
148
|
}
|
|
149
149
|
},
|
|
150
150
|
type: 'paragraph-1'
|
|
151
|
+
},
|
|
152
|
+
textSizeV2: {
|
|
153
|
+
desktop: {
|
|
154
|
+
width: 'Auto',
|
|
155
|
+
height: 'auto',
|
|
156
|
+
shapeLinked: false,
|
|
157
|
+
disableShapeLinked: true,
|
|
158
|
+
hiddenShape: true,
|
|
159
|
+
shape: 'custom',
|
|
160
|
+
padding: {
|
|
161
|
+
top: '12px',
|
|
162
|
+
bottom: '12px',
|
|
163
|
+
left: '12px',
|
|
164
|
+
right: '12px'
|
|
165
|
+
}
|
|
166
|
+
}
|
|
151
167
|
}
|
|
152
168
|
},
|
|
153
169
|
tag: 'ProductBadge',
|
|
154
|
-
uid: '
|
|
170
|
+
uid: 'gXAaVIfN3P',
|
|
155
171
|
childrens: []
|
|
156
172
|
},
|
|
157
173
|
{
|
|
@@ -289,10 +289,26 @@ const verticalThree = [
|
|
|
289
289
|
}
|
|
290
290
|
},
|
|
291
291
|
type: 'paragraph-1'
|
|
292
|
+
},
|
|
293
|
+
textSizeV2: {
|
|
294
|
+
desktop: {
|
|
295
|
+
width: 'Auto',
|
|
296
|
+
height: 'auto',
|
|
297
|
+
shapeLinked: false,
|
|
298
|
+
disableShapeLinked: true,
|
|
299
|
+
hiddenShape: true,
|
|
300
|
+
shape: 'custom',
|
|
301
|
+
padding: {
|
|
302
|
+
top: '12px',
|
|
303
|
+
bottom: '12px',
|
|
304
|
+
left: '12px',
|
|
305
|
+
right: '12px'
|
|
306
|
+
}
|
|
307
|
+
}
|
|
292
308
|
}
|
|
293
309
|
},
|
|
294
310
|
tag: 'ProductBadge',
|
|
295
|
-
uid: '
|
|
311
|
+
uid: 'gXAaVIfN3P',
|
|
296
312
|
childrens: []
|
|
297
313
|
},
|
|
298
314
|
{
|