@gem-sdk/components 2.0.0-dev.724 → 2.0.0-dev.726

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.
Files changed (29) hide show
  1. package/dist/cjs/banner/components/HeroBannerItem.js +0 -5
  2. package/dist/cjs/banner/components/common/common.js +25 -9
  3. package/dist/cjs/banner/components/common/getClasses.js +3 -1
  4. package/dist/cjs/banner/components/common/getStyle.js +0 -1
  5. package/dist/cjs/button/components/common/styles.js +2 -6
  6. package/dist/cjs/button/setting/configs/settings.js +2 -4
  7. package/dist/cjs/button/setting/configs/uiV2.js +10 -10
  8. package/dist/cjs/coupon/setting/config/uiV2.js +15 -15
  9. package/dist/cjs/form/setting/submit-button/configs/uiV2.js +10 -10
  10. package/dist/cjs/product/components/ProductButton/common/styles.js +2 -1
  11. package/dist/cjs/product/setting/dynamic-checkout/configs/uiV2.js +10 -10
  12. package/dist/cjs/product/setting/product-button/configs/settings.js +5 -10
  13. package/dist/cjs/product/setting/product-button/configs/uiV2.js +12 -12
  14. package/dist/cjs/product/setting/product-view-more/configs/uiV2.js +12 -12
  15. package/dist/esm/banner/components/HeroBannerItem.js +1 -6
  16. package/dist/esm/banner/components/common/common.js +26 -10
  17. package/dist/esm/banner/components/common/getClasses.js +4 -2
  18. package/dist/esm/banner/components/common/getStyle.js +2 -3
  19. package/dist/esm/button/components/common/styles.js +2 -6
  20. package/dist/esm/button/setting/configs/settings.js +2 -4
  21. package/dist/esm/button/setting/configs/uiV2.js +10 -10
  22. package/dist/esm/coupon/setting/config/uiV2.js +15 -15
  23. package/dist/esm/form/setting/submit-button/configs/uiV2.js +10 -10
  24. package/dist/esm/product/components/ProductButton/common/styles.js +2 -1
  25. package/dist/esm/product/setting/dynamic-checkout/configs/uiV2.js +10 -10
  26. package/dist/esm/product/setting/product-button/configs/settings.js +5 -10
  27. package/dist/esm/product/setting/product-button/configs/uiV2.js +12 -12
  28. package/dist/esm/product/setting/product-view-more/configs/uiV2.js +12 -12
  29. package/package.json +2 -2
@@ -56,11 +56,6 @@ const HeroBannerItem = (props)=>{
56
56
  });
57
57
  const backgroundStyle = system.createStyle({
58
58
  ...common.getBackgroundImageHeroBanner(background, enableLazyImage, isNotLiquid),
59
- ...core.getGradientBgrStyleByDevice(background, {
60
- desktop: true,
61
- tablet: true,
62
- mobile: true
63
- }),
64
59
  ...getStyle.getBackgroundStyle(styles, enableParallax, transform)
65
60
  });
66
61
  const containBackgroundClasses = system.createClass({
@@ -68,14 +68,24 @@ const imagePlaceholder = (background)=>{
68
68
  mobile: helpers.createBlurDataURL(srcSet?.mobile?.width ?? srcSet?.tablet?.width ?? srcSet?.desktop?.width ?? 0, srcSet?.mobile?.height ?? srcSet?.tablet?.height ?? srcSet?.desktop?.width ?? 0)
69
69
  };
70
70
  };
71
- const getBackgroundImageHeroBanner = (background, enableLazyImage = false, isNotLiquid = false)=>{
71
+ const getBgImageByScreen = (background, device, enableLazyImage, isNotLiquid)=>{
72
+ if (!background) return '';
72
73
  const srcSet = getBgImage(background);
74
+ const backgroundByDevice = core.getResponsiveValueByScreen(background, device);
75
+ if (enableLazyImage && !isNotLiquid) return `url(${imagePlaceholder(background)[device]})`;
76
+ if (backgroundByDevice?.color?.includes(core.GRADIENT_BGR_KEY)) {
77
+ if (backgroundByDevice.type !== 'image') return `${backgroundByDevice.color}`;
78
+ return `url(${getSrcSet.getImageSrc(core.getResponsiveValueByScreen(srcSet, device), device, isNotLiquid)})${backgroundByDevice?.color ? `, ${backgroundByDevice.color}` : ''}`;
79
+ }
80
+ if (backgroundByDevice?.type === 'image') return `url(${getSrcSet.getImageSrc(core.getResponsiveValueByScreen(srcSet, device), device, isNotLiquid)})`;
81
+ };
82
+ const getBackgroundImageHeroBanner = (background, enableLazyImage = false, isNotLiquid = false)=>{
83
+ if (!background) return;
73
84
  let result = {};
74
85
  core.DEVICES.forEach((device)=>{
75
- const bg = core.getValueByDevice(background, device);
76
86
  result = {
77
87
  ...result,
78
- [device]: bg?.type === 'color' ? 'url()' : `url('${!enableLazyImage ? getSrcSet.getImageSrc(core.getResponsiveValueByScreen(srcSet, device), device, isNotLiquid) : imagePlaceholder(background)}')`
88
+ [device]: getBgImageByScreen(background, device, enableLazyImage, isNotLiquid)
79
89
  };
80
90
  });
81
91
  return core.makeStyleResponsive('bgi', result);
@@ -96,11 +106,6 @@ const getAttachmentDevice = (background)=>{
96
106
  });
97
107
  return result;
98
108
  };
99
- const bgiEnableByDevice = (background)=>({
100
- desktop: getEnableBgImageByDevice('desktop', background),
101
- tablet: getEnableBgImageByDevice('tablet', background),
102
- mobile: getEnableBgImageByDevice('mobile', background)
103
- });
104
109
  const horizontalAlign = (layout, contentPosition1Col, contentPosition2Col)=>mapContentPositionToHorizontal(getContentPosition(layout, contentPosition1Col, contentPosition2Col));
105
110
  const scrollToContentBanner = (e)=>(e?.target)?.closest('div.gp-hero-banner-row')?.scrollTo(0, 0);
106
111
  const getDataVideoHeroBannerResponsive = (nameDevice, data)=>{
@@ -379,6 +384,17 @@ const getClassSpaceBetween = (setting, contentPosition1Col, contentPosition2Col)
379
384
  'mobile:!gp-content-stretch mobile:[&>*]:!gp-justify-end': settingRes.mobile?.cols?.length === 1 && contentPositionMobile === 'bottom'
380
385
  };
381
386
  };
387
+ const getClassSpaceBetweenLeftRight = (settingLayout)=>{
388
+ const settingLayoutResponsive = getResponsiveSetting(settingLayout);
389
+ const isLayoutDistributedDesktop = settingLayoutResponsive?.desktop?.type == 'left-distributed' || settingLayoutResponsive?.desktop?.type == 'right-distributed';
390
+ const isLayoutDistributedTablet = settingLayoutResponsive?.tablet?.type == 'left-distributed' || settingLayoutResponsive?.tablet?.type == 'right-distributed';
391
+ const isLayoutDistributedMobile = settingLayoutResponsive?.mobile?.type == 'left-distributed' || settingLayoutResponsive?.mobile?.type == 'right-distributed';
392
+ return {
393
+ 'gp-h-full [&>*]:!gp-justify-between': isLayoutDistributedDesktop,
394
+ 'tablet:gp-h-full tablet:[&>*]:!gp-justify-between': isLayoutDistributedTablet,
395
+ 'mobile:gp-h-full mobile:[&>*]:!gp-justify-between': isLayoutDistributedMobile
396
+ };
397
+ };
382
398
  const getClassForStretchContent = (verticalAlign)=>{
383
399
  let result = {
384
400
  desktop: 'none',
@@ -482,7 +498,6 @@ const getBannerLink = (setting)=>{
482
498
  return link;
483
499
  };
484
500
 
485
- exports.bgiEnableByDevice = bgiEnableByDevice;
486
501
  exports.debounce = debounce;
487
502
  exports.fallbackImg = fallbackImg;
488
503
  exports.getAspectRatioSettings = getAspectRatioSettings;
@@ -495,6 +510,7 @@ exports.getClassContentPosition = getClassContentPosition;
495
510
  exports.getClassForContentByFitContent = getClassForContentByFitContent;
496
511
  exports.getClassForStretchContent = getClassForStretchContent;
497
512
  exports.getClassSpaceBetween = getClassSpaceBetween;
513
+ exports.getClassSpaceBetweenLeftRight = getClassSpaceBetweenLeftRight;
498
514
  exports.getClipPath = getClipPath;
499
515
  exports.getContentPosition = getContentPosition;
500
516
  exports.getDataVideoHeroBannerResponsive = getDataVideoHeroBannerResponsive;
@@ -46,10 +46,12 @@ const getRowClasses = (styles, setting)=>{
46
46
  const fitContentClass = common.getClassForContentByFitContent(sizeSetting, background);
47
47
  const stretchContentClass = common.getClassForStretchContent(verticalAlign);
48
48
  const layoutClass = common.getClassSpaceBetween(setting?.layout || {}, styles?.contentPosition1Col || {}, styles?.contentPosition2Col || {});
49
+ const layoutDistributedClass = common.getClassSpaceBetweenLeftRight(setting?.layout || {});
49
50
  const classList = `gp-hero-banner-row gp-transition-all gp-duration-300 group-hover/hero:gp-bg-[color:var(--hvr-bgc,_var(--bgc))] group-hover/hero:gp-opacity-[var(--hvr-op,_var(--op))] ${fitContentClass} ${stretchContentClass}`;
50
51
  return {
51
52
  ...composeClasses(classList),
52
- ...layoutClass
53
+ ...layoutClass,
54
+ ...layoutDistributedClass
53
55
  };
54
56
  };
55
57
  const getAdaptiveClasses = ()=>{
@@ -98,7 +98,6 @@ const getBackgroundStyle = (styles, enableParallax, transform)=>{
98
98
  ignoreBgAttachment: true,
99
99
  ignoreBackgroundImage: true
100
100
  }),
101
- ...core.getGradientBgrStyleByDevice(background, common.bgiEnableByDevice(background)),
102
101
  '--duration': `${hoverEffectDuration ?? 0}s`,
103
102
  '--scale': `${hoverEffectScale || 100}%`,
104
103
  ...core.makeStyleResponsive('pos', common.getAttachmentDevice(background)),
@@ -23,10 +23,6 @@ const getButtonIconStyles = (styles1, settings1)=>{
23
23
  '--height-mobile': `${styles1?.size?.mobile || styles1?.size?.tablet || styles1?.size?.desktop}`
24
24
  };
25
25
  };
26
- const isEnableShadowStateForDevice = (deviceStyles1)=>({
27
- normal: deviceStyles1?.normal?.type !== 'none',
28
- hover: deviceStyles1?.hover?.type !== 'none'
29
- });
30
26
  const ignoreStateNoneValue = (obj, condition)=>{
31
27
  return Object.entries(obj).reduce((acc, [key, value])=>{
32
28
  if (![
@@ -40,10 +36,10 @@ const ignoreStateNoneValue = (obj, condition)=>{
40
36
  }, {});
41
37
  };
42
38
  const getShadowStyles = (styles1)=>{
43
- const { boxShadowBtn: boxShadowBtn1 } = styles1 || {};
39
+ const { boxShadowBtn: boxShadowBtn1, hasBoxShadowBtn: hasBoxShadowBtn1 } = styles1 || {};
44
40
  const ignoreNoneValueObjectShadow1 = ignoreStateNoneValue(boxShadowBtn1 || {}, 'value?.enable !== false');
45
41
  return {
46
- ...core.getStyleShadowState(ignoreNoneValueObjectShadow1, 'box-shadow', isEnableShadowStateForDevice(boxShadowBtn1))
42
+ ...core.getStyleShadowState(ignoreNoneValueObjectShadow1, 'box-shadow', hasBoxShadowBtn1)
47
43
  };
48
44
  };
49
45
  const getRadiusStyles = (styles1)=>{
@@ -216,9 +216,6 @@ const ButtonSettings = [
216
216
  {
217
217
  id: 'boxShadowBtn',
218
218
  type: 'shadow-v2',
219
- default: {
220
- normal: {}
221
- },
222
219
  compoDefaultValue: {
223
220
  normal: {
224
221
  type: 'shadow-1',
@@ -226,7 +223,8 @@ const ButtonSettings = [
226
223
  blur: '4px',
227
224
  spread: '0px',
228
225
  color: '#121212',
229
- angle: 45
226
+ angle: 45,
227
+ enable: true
230
228
  }
231
229
  }
232
230
  },
@@ -157,7 +157,7 @@ const SettingUIV2 = [
157
157
  options: {
158
158
  updateFields: [
159
159
  {
160
- field: 'enable',
160
+ field: 'normal.enable',
161
161
  settingId: 'hasBoxShadowBtn',
162
162
  state: 'normal'
163
163
  }
@@ -173,8 +173,8 @@ const SettingUIV2 = [
173
173
  ],
174
174
  action: {
175
175
  controlId: 'hasBoxShadowBtn',
176
- groupType: 'styles',
177
- controlType: 'styles',
176
+ groupType: 'style',
177
+ controlType: 'style',
178
178
  state: 'normal',
179
179
  newValue: true
180
180
  }
@@ -187,8 +187,8 @@ const SettingUIV2 = [
187
187
  ],
188
188
  action: {
189
189
  controlId: 'hasBoxShadowBtn',
190
- groupType: 'styles',
191
- controlType: 'styles',
190
+ groupType: 'style',
191
+ controlType: 'style',
192
192
  state: 'normal',
193
193
  newValue: false
194
194
  }
@@ -384,7 +384,7 @@ const SettingUIV2 = [
384
384
  options: {
385
385
  updateFields: [
386
386
  {
387
- field: 'enable',
387
+ field: 'hover.enable',
388
388
  settingId: 'hasBoxShadowBtn',
389
389
  state: 'hover'
390
390
  }
@@ -400,8 +400,8 @@ const SettingUIV2 = [
400
400
  ],
401
401
  action: {
402
402
  controlId: 'hasBoxShadowBtn',
403
- groupType: 'styles',
404
- controlType: 'styles',
403
+ groupType: 'style',
404
+ controlType: 'style',
405
405
  state: 'hover',
406
406
  newValue: true
407
407
  }
@@ -414,8 +414,8 @@ const SettingUIV2 = [
414
414
  ],
415
415
  action: {
416
416
  controlId: 'hasBoxShadowBtn',
417
- groupType: 'styles',
418
- controlType: 'styles',
417
+ groupType: 'style',
418
+ controlType: 'style',
419
419
  state: 'hover',
420
420
  newValue: false
421
421
  }
@@ -225,7 +225,7 @@ const SettingUIV2 = [
225
225
  options: {
226
226
  updateFields: [
227
227
  {
228
- field: 'enable',
228
+ field: 'normal.enable',
229
229
  settingId: 'hasBoxShadowBtn',
230
230
  state: 'normal'
231
231
  }
@@ -241,8 +241,8 @@ const SettingUIV2 = [
241
241
  ],
242
242
  action: {
243
243
  controlId: 'hasBoxShadowBtn',
244
- groupType: 'styles',
245
- controlType: 'styles',
244
+ groupType: 'style',
245
+ controlType: 'style',
246
246
  state: 'normal',
247
247
  newValue: true
248
248
  }
@@ -255,8 +255,8 @@ const SettingUIV2 = [
255
255
  ],
256
256
  action: {
257
257
  controlId: 'hasBoxShadowBtn',
258
- groupType: 'styles',
259
- controlType: 'styles',
258
+ groupType: 'style',
259
+ controlType: 'style',
260
260
  state: 'normal',
261
261
  newValue: false
262
262
  }
@@ -486,7 +486,7 @@ const SettingUIV2 = [
486
486
  options: {
487
487
  updateFields: [
488
488
  {
489
- field: 'enable',
489
+ field: 'hover.enable',
490
490
  settingId: 'hasBoxShadowBtn',
491
491
  state: 'hover'
492
492
  }
@@ -502,8 +502,8 @@ const SettingUIV2 = [
502
502
  ],
503
503
  action: {
504
504
  controlId: 'hasBoxShadowBtn',
505
- groupType: 'styles',
506
- controlType: 'styles',
505
+ groupType: 'style',
506
+ controlType: 'style',
507
507
  state: 'hover',
508
508
  newValue: true
509
509
  }
@@ -516,8 +516,8 @@ const SettingUIV2 = [
516
516
  ],
517
517
  action: {
518
518
  controlId: 'hasBoxShadowBtn',
519
- groupType: 'styles',
520
- controlType: 'styles',
519
+ groupType: 'style',
520
+ controlType: 'style',
521
521
  state: 'hover',
522
522
  newValue: false
523
523
  }
@@ -629,7 +629,7 @@ const SettingUIV2 = [
629
629
  options: {
630
630
  updateFields: [
631
631
  {
632
- field: 'enable',
632
+ field: 'active.enable',
633
633
  settingId: 'hasBoxShadowBtn',
634
634
  state: 'active'
635
635
  }
@@ -645,8 +645,8 @@ const SettingUIV2 = [
645
645
  ],
646
646
  action: {
647
647
  controlId: 'hasBoxShadowBtn',
648
- groupType: 'styles',
649
- controlType: 'styles',
648
+ groupType: 'style',
649
+ controlType: 'style',
650
650
  state: 'active',
651
651
  newValue: true
652
652
  }
@@ -659,8 +659,8 @@ const SettingUIV2 = [
659
659
  ],
660
660
  action: {
661
661
  controlId: 'hasBoxShadowBtn',
662
- groupType: 'styles',
663
- controlType: 'styles',
662
+ groupType: 'style',
663
+ controlType: 'style',
664
664
  state: 'active',
665
665
  newValue: false
666
666
  }
@@ -135,7 +135,7 @@ const SettingUIV2 = [
135
135
  options: {
136
136
  updateFields: [
137
137
  {
138
- field: 'enable',
138
+ field: 'normal.enable',
139
139
  settingId: 'hasBoxShadowBtn',
140
140
  state: 'normal'
141
141
  }
@@ -151,8 +151,8 @@ const SettingUIV2 = [
151
151
  ],
152
152
  action: {
153
153
  controlId: 'hasBoxShadowBtn',
154
- groupType: 'styles',
155
- controlType: 'styles',
154
+ groupType: 'style',
155
+ controlType: 'style',
156
156
  state: 'normal',
157
157
  newValue: true
158
158
  }
@@ -165,8 +165,8 @@ const SettingUIV2 = [
165
165
  ],
166
166
  action: {
167
167
  controlId: 'hasBoxShadowBtn',
168
- groupType: 'styles',
169
- controlType: 'styles',
168
+ groupType: 'style',
169
+ controlType: 'style',
170
170
  state: 'normal',
171
171
  newValue: false
172
172
  }
@@ -320,7 +320,7 @@ const SettingUIV2 = [
320
320
  options: {
321
321
  updateFields: [
322
322
  {
323
- field: 'enable',
323
+ field: 'hover.enable',
324
324
  settingId: 'hasBoxShadowBtn',
325
325
  state: 'hover'
326
326
  }
@@ -336,8 +336,8 @@ const SettingUIV2 = [
336
336
  ],
337
337
  action: {
338
338
  controlId: 'hasBoxShadowBtn',
339
- groupType: 'styles',
340
- controlType: 'styles',
339
+ groupType: 'style',
340
+ controlType: 'style',
341
341
  state: 'hover',
342
342
  newValue: true
343
343
  }
@@ -350,8 +350,8 @@ const SettingUIV2 = [
350
350
  ],
351
351
  action: {
352
352
  controlId: 'hasBoxShadowBtn',
353
- groupType: 'styles',
354
- controlType: 'styles',
353
+ groupType: 'style',
354
+ controlType: 'style',
355
355
  state: 'hover',
356
356
  newValue: false
357
357
  }
@@ -20,7 +20,8 @@ const getButtonBaseStyles = ()=>{
20
20
  const getAddToCartButtonStyles = (styles)=>{
21
21
  return {
22
22
  ...styles,
23
- ...getButtonBaseStyles()
23
+ ...getButtonBaseStyles(),
24
+ enableTextStyle: true
24
25
  };
25
26
  };
26
27
  const getSoldOutButtonStyles = (styles)=>{
@@ -185,7 +185,7 @@ const SettingUIV2 = [
185
185
  options: {
186
186
  updateFields: [
187
187
  {
188
- field: 'enable',
188
+ field: 'normal.enable',
189
189
  settingId: 'hasBoxShadowBtn',
190
190
  state: 'normal'
191
191
  }
@@ -201,8 +201,8 @@ const SettingUIV2 = [
201
201
  ],
202
202
  action: {
203
203
  controlId: 'hasBoxShadowBtn',
204
- groupType: 'styles',
205
- controlType: 'styles',
204
+ groupType: 'style',
205
+ controlType: 'style',
206
206
  state: 'normal',
207
207
  newValue: true
208
208
  }
@@ -215,8 +215,8 @@ const SettingUIV2 = [
215
215
  ],
216
216
  action: {
217
217
  controlId: 'hasBoxShadowBtn',
218
- groupType: 'styles',
219
- controlType: 'styles',
218
+ groupType: 'style',
219
+ controlType: 'style',
220
220
  state: 'normal',
221
221
  newValue: false
222
222
  }
@@ -379,7 +379,7 @@ const SettingUIV2 = [
379
379
  options: {
380
380
  updateFields: [
381
381
  {
382
- field: 'enable',
382
+ field: 'hover.enable',
383
383
  settingId: 'hasBoxShadowBtn',
384
384
  state: 'hover'
385
385
  }
@@ -395,8 +395,8 @@ const SettingUIV2 = [
395
395
  ],
396
396
  action: {
397
397
  controlId: 'hasBoxShadowBtn',
398
- groupType: 'styles',
399
- controlType: 'styles',
398
+ groupType: 'style',
399
+ controlType: 'style',
400
400
  state: 'hover',
401
401
  newValue: true
402
402
  }
@@ -409,8 +409,8 @@ const SettingUIV2 = [
409
409
  ],
410
410
  action: {
411
411
  controlId: 'hasBoxShadowBtn',
412
- groupType: 'styles',
413
- controlType: 'styles',
412
+ groupType: 'style',
413
+ controlType: 'style',
414
414
  state: 'hover',
415
415
  newValue: false
416
416
  }
@@ -484,13 +484,13 @@ const ProductButtonSettings = [
484
484
  compoDefaultValue: {
485
485
  normal: {
486
486
  border: 'solid',
487
- color: '#212121',
487
+ color: 'line-3',
488
488
  width: '1px',
489
489
  borderWidth: '1px'
490
490
  },
491
491
  hover: {
492
492
  border: 'solid',
493
- color: '#212121',
493
+ color: 'line-3',
494
494
  width: '1px',
495
495
  borderWidth: '1px'
496
496
  }
@@ -689,11 +689,6 @@ const ProductButtonSettings = [
689
689
  type: 'toggle',
690
690
  default: false
691
691
  },
692
- {
693
- id: 'enableTextStyle',
694
- type: 'toggle',
695
- default: true
696
- },
697
692
  {
698
693
  id: 'transform',
699
694
  label: 'Text Transform',
@@ -747,15 +742,15 @@ const ProductButtonSettings = [
747
742
  type: 'input:unit',
748
743
  label: 'Width',
749
744
  emptyOnClear: true,
750
- placeholder: 'Auto',
751
745
  min: 0,
752
746
  units: [
753
747
  'px',
754
748
  '%'
755
749
  ],
750
+ hide: true,
756
751
  devices: {
757
752
  desktop: {
758
- default: undefined
753
+ default: '100%'
759
754
  }
760
755
  }
761
756
  }
@@ -960,7 +955,7 @@ const ProductButtonSettings = [
960
955
  devices: {
961
956
  desktop: {
962
957
  default: {
963
- width: 'Auto',
958
+ width: '100%',
964
959
  height: 'Auto',
965
960
  padding: {
966
961
  type: 'medium',
@@ -454,7 +454,7 @@ const SettingUIV2 = [
454
454
  options: {
455
455
  updateFields: [
456
456
  {
457
- field: 'enable',
457
+ field: 'normal.enable',
458
458
  settingId: 'hasBoxShadowBtn',
459
459
  state: 'normal'
460
460
  }
@@ -470,8 +470,8 @@ const SettingUIV2 = [
470
470
  ],
471
471
  action: {
472
472
  controlId: 'hasBoxShadowBtn',
473
- groupType: 'styles',
474
- controlType: 'styles',
473
+ groupType: 'style',
474
+ controlType: 'style',
475
475
  state: 'normal',
476
476
  newValue: true
477
477
  }
@@ -484,8 +484,8 @@ const SettingUIV2 = [
484
484
  ],
485
485
  action: {
486
486
  controlId: 'hasBoxShadowBtn',
487
- groupType: 'styles',
488
- controlType: 'styles',
487
+ groupType: 'style',
488
+ controlType: 'style',
489
489
  state: 'normal',
490
490
  newValue: false
491
491
  }
@@ -635,7 +635,7 @@ const SettingUIV2 = [
635
635
  fixedValue: 'Edit',
636
636
  iconName: 'polaris-text-title',
637
637
  popoverLabel: {
638
- en: 'Price text style'
638
+ en: 'Product price text style'
639
639
  },
640
640
  isHideClear: true,
641
641
  controls: [
@@ -656,7 +656,7 @@ const SettingUIV2 = [
656
656
  fixedValue: 'Edit',
657
657
  iconName: 'polaris-text-title',
658
658
  popoverLabel: {
659
- en: 'Price text style'
659
+ en: 'Compare-at text style'
660
660
  },
661
661
  isHideClear: true,
662
662
  controls: [
@@ -730,7 +730,7 @@ const SettingUIV2 = [
730
730
  options: {
731
731
  updateFields: [
732
732
  {
733
- field: 'enable',
733
+ field: 'hover.enable',
734
734
  settingId: 'hasBoxShadowBtn',
735
735
  state: 'hover'
736
736
  }
@@ -746,8 +746,8 @@ const SettingUIV2 = [
746
746
  ],
747
747
  action: {
748
748
  controlId: 'hasBoxShadowBtn',
749
- groupType: 'styles',
750
- controlType: 'styles',
749
+ groupType: 'style',
750
+ controlType: 'style',
751
751
  state: 'hover',
752
752
  newValue: true
753
753
  }
@@ -760,8 +760,8 @@ const SettingUIV2 = [
760
760
  ],
761
761
  action: {
762
762
  controlId: 'hasBoxShadowBtn',
763
- groupType: 'styles',
764
- controlType: 'styles',
763
+ groupType: 'style',
764
+ controlType: 'style',
765
765
  state: 'hover',
766
766
  newValue: false
767
767
  }
@@ -155,7 +155,7 @@ const SettingUIV2 = [
155
155
  options: {
156
156
  updateFields: [
157
157
  {
158
- field: 'enable',
158
+ field: 'normal.enable',
159
159
  settingId: 'hasBoxShadowBtn',
160
160
  state: 'normal'
161
161
  }
@@ -171,8 +171,8 @@ const SettingUIV2 = [
171
171
  ],
172
172
  action: {
173
173
  controlId: 'hasBoxShadowBtn',
174
- groupType: 'styles',
175
- controlType: 'styles',
174
+ groupType: 'style',
175
+ controlType: 'style',
176
176
  state: 'normal',
177
177
  newValue: true
178
178
  }
@@ -185,8 +185,8 @@ const SettingUIV2 = [
185
185
  ],
186
186
  action: {
187
187
  controlId: 'hasBoxShadowBtn',
188
- groupType: 'styles',
189
- controlType: 'styles',
188
+ groupType: 'style',
189
+ controlType: 'style',
190
190
  state: 'normal',
191
191
  newValue: false
192
192
  }
@@ -382,7 +382,7 @@ const SettingUIV2 = [
382
382
  options: {
383
383
  updateFields: [
384
384
  {
385
- field: 'enable',
385
+ field: 'hover.enable',
386
386
  settingId: 'hasBoxShadowBtn',
387
387
  state: 'hover'
388
388
  }
@@ -398,23 +398,23 @@ const SettingUIV2 = [
398
398
  ],
399
399
  action: {
400
400
  controlId: 'hasBoxShadowBtn',
401
- groupType: 'styles',
402
- controlType: 'styles',
401
+ groupType: 'style',
402
+ controlType: 'style',
403
403
  state: 'hover',
404
404
  newValue: true
405
405
  }
406
406
  },
407
407
  {
408
- condition: `boxShadowBtn.normal.enable === false`,
408
+ condition: `boxShadowBtn.hover.enable === false`,
409
409
  source: [
410
410
  'boxShadowBtn',
411
411
  'hasBoxShadowBtn'
412
412
  ],
413
413
  action: {
414
414
  controlId: 'hasBoxShadowBtn',
415
- groupType: 'styles',
416
- controlType: 'styles',
417
- state: 'normal',
415
+ groupType: 'style',
416
+ controlType: 'style',
417
+ state: 'hover',
418
418
  newValue: false
419
419
  }
420
420
  }