@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
@@ -2,7 +2,7 @@
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
3
  import Row from '../../grid/row/Row.js';
4
4
  import { useMemo } from 'react';
5
- import { useEditorMode, getGradientBgrStyleByDevice, filterToolbarPreview, getAspectRatioGlobalSize } from '@gem-sdk/core';
5
+ import { useEditorMode, filterToolbarPreview, getAspectRatioGlobalSize } from '@gem-sdk/core';
6
6
  import { createStyle, createClass } from '@gem-sdk/system';
7
7
  import AdaptiveImage from '../../image/components/AdaptiveImage.js';
8
8
  import HTML5Embed from '../../video/components/HTML5Embed.js';
@@ -52,11 +52,6 @@ const HeroBannerItem = (props)=>{
52
52
  });
53
53
  const backgroundStyle = createStyle({
54
54
  ...getBackgroundImageHeroBanner(background, enableLazyImage, isNotLiquid),
55
- ...getGradientBgrStyleByDevice(background, {
56
- desktop: true,
57
- tablet: true,
58
- mobile: true
59
- }),
60
55
  ...getBackgroundStyle(styles, enableParallax, transform)
61
56
  });
62
57
  const containBackgroundClasses = createClass({
@@ -1,4 +1,4 @@
1
- import { getResponsiveValueByScreen, getAspectRatioGlobalSize, makeStyleResponsive, DEVICES, getValueByDevice, cls } from '@gem-sdk/core';
1
+ import { getResponsiveValueByScreen, getAspectRatioGlobalSize, makeStyleResponsive, DEVICES, getValueByDevice, GRADIENT_BGR_KEY, cls } from '@gem-sdk/core';
2
2
  import { getImageSrc } from '../../../image/helpers/getSrcSet.js';
3
3
  import { HREF_TO_SALES_PAGE } from '../../../constant.js';
4
4
  import { createBlurDataURL } from '../../../image/components/common/helpers.js';
@@ -66,14 +66,24 @@ const imagePlaceholder = (background)=>{
66
66
  mobile: createBlurDataURL(srcSet?.mobile?.width ?? srcSet?.tablet?.width ?? srcSet?.desktop?.width ?? 0, srcSet?.mobile?.height ?? srcSet?.tablet?.height ?? srcSet?.desktop?.width ?? 0)
67
67
  };
68
68
  };
69
- const getBackgroundImageHeroBanner = (background, enableLazyImage = false, isNotLiquid = false)=>{
69
+ const getBgImageByScreen = (background, device, enableLazyImage, isNotLiquid)=>{
70
+ if (!background) return '';
70
71
  const srcSet = getBgImage(background);
72
+ const backgroundByDevice = getResponsiveValueByScreen(background, device);
73
+ if (enableLazyImage && !isNotLiquid) return `url(${imagePlaceholder(background)[device]})`;
74
+ if (backgroundByDevice?.color?.includes(GRADIENT_BGR_KEY)) {
75
+ if (backgroundByDevice.type !== 'image') return `${backgroundByDevice.color}`;
76
+ return `url(${getImageSrc(getResponsiveValueByScreen(srcSet, device), device, isNotLiquid)})${backgroundByDevice?.color ? `, ${backgroundByDevice.color}` : ''}`;
77
+ }
78
+ if (backgroundByDevice?.type === 'image') return `url(${getImageSrc(getResponsiveValueByScreen(srcSet, device), device, isNotLiquid)})`;
79
+ };
80
+ const getBackgroundImageHeroBanner = (background, enableLazyImage = false, isNotLiquid = false)=>{
81
+ if (!background) return;
71
82
  let result = {};
72
83
  DEVICES.forEach((device)=>{
73
- const bg = getValueByDevice(background, device);
74
84
  result = {
75
85
  ...result,
76
- [device]: bg?.type === 'color' ? 'url()' : `url('${!enableLazyImage ? getImageSrc(getResponsiveValueByScreen(srcSet, device), device, isNotLiquid) : imagePlaceholder(background)}')`
86
+ [device]: getBgImageByScreen(background, device, enableLazyImage, isNotLiquid)
77
87
  };
78
88
  });
79
89
  return makeStyleResponsive('bgi', result);
@@ -94,11 +104,6 @@ const getAttachmentDevice = (background)=>{
94
104
  });
95
105
  return result;
96
106
  };
97
- const bgiEnableByDevice = (background)=>({
98
- desktop: getEnableBgImageByDevice('desktop', background),
99
- tablet: getEnableBgImageByDevice('tablet', background),
100
- mobile: getEnableBgImageByDevice('mobile', background)
101
- });
102
107
  const horizontalAlign = (layout, contentPosition1Col, contentPosition2Col)=>mapContentPositionToHorizontal(getContentPosition(layout, contentPosition1Col, contentPosition2Col));
103
108
  const scrollToContentBanner = (e)=>(e?.target)?.closest('div.gp-hero-banner-row')?.scrollTo(0, 0);
104
109
  const getDataVideoHeroBannerResponsive = (nameDevice, data)=>{
@@ -377,6 +382,17 @@ const getClassSpaceBetween = (setting, contentPosition1Col, contentPosition2Col)
377
382
  'mobile:!gp-content-stretch mobile:[&>*]:!gp-justify-end': settingRes.mobile?.cols?.length === 1 && contentPositionMobile === 'bottom'
378
383
  };
379
384
  };
385
+ const getClassSpaceBetweenLeftRight = (settingLayout)=>{
386
+ const settingLayoutResponsive = getResponsiveSetting(settingLayout);
387
+ const isLayoutDistributedDesktop = settingLayoutResponsive?.desktop?.type == 'left-distributed' || settingLayoutResponsive?.desktop?.type == 'right-distributed';
388
+ const isLayoutDistributedTablet = settingLayoutResponsive?.tablet?.type == 'left-distributed' || settingLayoutResponsive?.tablet?.type == 'right-distributed';
389
+ const isLayoutDistributedMobile = settingLayoutResponsive?.mobile?.type == 'left-distributed' || settingLayoutResponsive?.mobile?.type == 'right-distributed';
390
+ return {
391
+ 'gp-h-full [&>*]:!gp-justify-between': isLayoutDistributedDesktop,
392
+ 'tablet:gp-h-full tablet:[&>*]:!gp-justify-between': isLayoutDistributedTablet,
393
+ 'mobile:gp-h-full mobile:[&>*]:!gp-justify-between': isLayoutDistributedMobile
394
+ };
395
+ };
380
396
  const getClassForStretchContent = (verticalAlign)=>{
381
397
  let result = {
382
398
  desktop: 'none',
@@ -480,4 +496,4 @@ const getBannerLink = (setting)=>{
480
496
  return link;
481
497
  };
482
498
 
483
- export { bgiEnableByDevice, debounce, fallbackImg, getAspectRatioSettings, getAttachmentDevice, getBackgroundImageHeroBanner, getBannerLink, getBgImage, getClassAlignBanner, getClassContentPosition, getClassForContentByFitContent, getClassForStretchContent, getClassSpaceBetween, getClipPath, getContentPosition, getDataVideoHeroBannerResponsive, getDisplayStyleByFitContent, getEnableBgImageByDevice, getPercentageVisible, getResponsiveSetting, getStyleAspectRatioHeroBannerCustom, getStyleHeroBannerBg, getVisibilityStyle, getWidth, horizontalAlign, imagePlaceholder, isScaleImage, mapContentPositionToHorizontal, scrollToContentBanner, showVideoType };
499
+ export { debounce, fallbackImg, getAspectRatioSettings, getAttachmentDevice, getBackgroundImageHeroBanner, getBannerLink, getBgImage, getClassAlignBanner, getClassContentPosition, getClassForContentByFitContent, getClassForStretchContent, getClassSpaceBetween, getClassSpaceBetweenLeftRight, getClipPath, getContentPosition, getDataVideoHeroBannerResponsive, getDisplayStyleByFitContent, getEnableBgImageByDevice, getPercentageVisible, getResponsiveSetting, getStyleAspectRatioHeroBannerCustom, getStyleHeroBannerBg, getVisibilityStyle, getWidth, horizontalAlign, imagePlaceholder, isScaleImage, mapContentPositionToHorizontal, scrollToContentBanner, showVideoType };
@@ -1,5 +1,5 @@
1
1
  import { getGlobalColorStateClass, getValueByDevice } from '@gem-sdk/core';
2
- import { getClassAlignBanner, getResponsiveSetting, getClassContentPosition, getContentPosition, getClassForContentByFitContent, getClassForStretchContent, getClassSpaceBetween } from './common.js';
2
+ import { getClassAlignBanner, getResponsiveSetting, getClassContentPosition, getContentPosition, getClassForContentByFitContent, getClassForStretchContent, getClassSpaceBetween, getClassSpaceBetweenLeftRight } from './common.js';
3
3
 
4
4
  function composeClasses(classList) {
5
5
  return classList.split(' ').reduce((acc, item)=>{
@@ -44,10 +44,12 @@ const getRowClasses = (styles, setting)=>{
44
44
  const fitContentClass = getClassForContentByFitContent(sizeSetting, background);
45
45
  const stretchContentClass = getClassForStretchContent(verticalAlign);
46
46
  const layoutClass = getClassSpaceBetween(setting?.layout || {}, styles?.contentPosition1Col || {}, styles?.contentPosition2Col || {});
47
+ const layoutDistributedClass = getClassSpaceBetweenLeftRight(setting?.layout || {});
47
48
  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}`;
48
49
  return {
49
50
  ...composeClasses(classList),
50
- ...layoutClass
51
+ ...layoutClass,
52
+ ...layoutDistributedClass
51
53
  };
52
54
  };
53
55
  const getAdaptiveClasses = ()=>{
@@ -1,5 +1,5 @@
1
- import { makeStyleResponsive, getHeightByShapeGlobalSize, makeStyleWithDefault, getWidthByShapeGlobalSize, makeStyle, getSingleColorVariable, getRadiusStyleActiveState, getStyleShadow, getGlobalColorStateStyle, makeStyleState, getResponsiveStylePadding, getStyleBackgroundByDevice, getGradientBgrStyleByDevice } from '@gem-sdk/core';
2
- import { getVisibilityStyle, getStyleAspectRatioHeroBannerCustom, getAspectRatioSettings, getDisplayStyleByFitContent, getStyleHeroBannerBg, bgiEnableByDevice, getAttachmentDevice, getClipPath, getResponsiveSetting } from './common.js';
1
+ import { makeStyleResponsive, getHeightByShapeGlobalSize, makeStyleWithDefault, getWidthByShapeGlobalSize, makeStyle, getSingleColorVariable, getRadiusStyleActiveState, getStyleShadow, getGlobalColorStateStyle, makeStyleState, getResponsiveStylePadding, getStyleBackgroundByDevice } from '@gem-sdk/core';
2
+ import { getVisibilityStyle, getStyleAspectRatioHeroBannerCustom, getAspectRatioSettings, getDisplayStyleByFitContent, getStyleHeroBannerBg, getAttachmentDevice, getClipPath, getResponsiveSetting } from './common.js';
3
3
 
4
4
  function filterTruthyStyles(styles) {
5
5
  return Object.fromEntries(Object.entries(styles || {}).filter(([, value])=>!!value));
@@ -96,7 +96,6 @@ const getBackgroundStyle = (styles, enableParallax, transform)=>{
96
96
  ignoreBgAttachment: true,
97
97
  ignoreBackgroundImage: true
98
98
  }),
99
- ...getGradientBgrStyleByDevice(background, bgiEnableByDevice(background)),
100
99
  '--duration': `${hoverEffectDuration ?? 0}s`,
101
100
  '--scale': `${hoverEffectScale || 100}%`,
102
101
  ...makeStyleResponsive('pos', getAttachmentDevice(background)),
@@ -21,10 +21,6 @@ const getButtonIconStyles = (styles1, settings1)=>{
21
21
  '--height-mobile': `${styles1?.size?.mobile || styles1?.size?.tablet || styles1?.size?.desktop}`
22
22
  };
23
23
  };
24
- const isEnableShadowStateForDevice = (deviceStyles1)=>({
25
- normal: deviceStyles1?.normal?.type !== 'none',
26
- hover: deviceStyles1?.hover?.type !== 'none'
27
- });
28
24
  const ignoreStateNoneValue = (obj, condition)=>{
29
25
  return Object.entries(obj).reduce((acc, [key, value])=>{
30
26
  if (![
@@ -38,10 +34,10 @@ const ignoreStateNoneValue = (obj, condition)=>{
38
34
  }, {});
39
35
  };
40
36
  const getShadowStyles = (styles1)=>{
41
- const { boxShadowBtn: boxShadowBtn1 } = styles1 || {};
37
+ const { boxShadowBtn: boxShadowBtn1, hasBoxShadowBtn: hasBoxShadowBtn1 } = styles1 || {};
42
38
  const ignoreNoneValueObjectShadow1 = ignoreStateNoneValue(boxShadowBtn1 || {}, 'value?.enable !== false');
43
39
  return {
44
- ...getStyleShadowState(ignoreNoneValueObjectShadow1, 'box-shadow', isEnableShadowStateForDevice(boxShadowBtn1))
40
+ ...getStyleShadowState(ignoreNoneValueObjectShadow1, 'box-shadow', hasBoxShadowBtn1)
45
41
  };
46
42
  };
47
43
  const getRadiusStyles = (styles1)=>{
@@ -214,9 +214,6 @@ const ButtonSettings = [
214
214
  {
215
215
  id: 'boxShadowBtn',
216
216
  type: 'shadow-v2',
217
- default: {
218
- normal: {}
219
- },
220
217
  compoDefaultValue: {
221
218
  normal: {
222
219
  type: 'shadow-1',
@@ -224,7 +221,8 @@ const ButtonSettings = [
224
221
  blur: '4px',
225
222
  spread: '0px',
226
223
  color: '#121212',
227
- angle: 45
224
+ angle: 45,
225
+ enable: true
228
226
  }
229
227
  }
230
228
  },
@@ -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,8 +398,8 @@ 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
  }
@@ -412,8 +412,8 @@ const SettingUIV2 = [
412
412
  ],
413
413
  action: {
414
414
  controlId: 'hasBoxShadowBtn',
415
- groupType: 'styles',
416
- controlType: 'styles',
415
+ groupType: 'style',
416
+ controlType: 'style',
417
417
  state: 'hover',
418
418
  newValue: false
419
419
  }
@@ -223,7 +223,7 @@ const SettingUIV2 = [
223
223
  options: {
224
224
  updateFields: [
225
225
  {
226
- field: 'enable',
226
+ field: 'normal.enable',
227
227
  settingId: 'hasBoxShadowBtn',
228
228
  state: 'normal'
229
229
  }
@@ -239,8 +239,8 @@ const SettingUIV2 = [
239
239
  ],
240
240
  action: {
241
241
  controlId: 'hasBoxShadowBtn',
242
- groupType: 'styles',
243
- controlType: 'styles',
242
+ groupType: 'style',
243
+ controlType: 'style',
244
244
  state: 'normal',
245
245
  newValue: true
246
246
  }
@@ -253,8 +253,8 @@ const SettingUIV2 = [
253
253
  ],
254
254
  action: {
255
255
  controlId: 'hasBoxShadowBtn',
256
- groupType: 'styles',
257
- controlType: 'styles',
256
+ groupType: 'style',
257
+ controlType: 'style',
258
258
  state: 'normal',
259
259
  newValue: false
260
260
  }
@@ -484,7 +484,7 @@ const SettingUIV2 = [
484
484
  options: {
485
485
  updateFields: [
486
486
  {
487
- field: 'enable',
487
+ field: 'hover.enable',
488
488
  settingId: 'hasBoxShadowBtn',
489
489
  state: 'hover'
490
490
  }
@@ -500,8 +500,8 @@ const SettingUIV2 = [
500
500
  ],
501
501
  action: {
502
502
  controlId: 'hasBoxShadowBtn',
503
- groupType: 'styles',
504
- controlType: 'styles',
503
+ groupType: 'style',
504
+ controlType: 'style',
505
505
  state: 'hover',
506
506
  newValue: true
507
507
  }
@@ -514,8 +514,8 @@ const SettingUIV2 = [
514
514
  ],
515
515
  action: {
516
516
  controlId: 'hasBoxShadowBtn',
517
- groupType: 'styles',
518
- controlType: 'styles',
517
+ groupType: 'style',
518
+ controlType: 'style',
519
519
  state: 'hover',
520
520
  newValue: false
521
521
  }
@@ -627,7 +627,7 @@ const SettingUIV2 = [
627
627
  options: {
628
628
  updateFields: [
629
629
  {
630
- field: 'enable',
630
+ field: 'active.enable',
631
631
  settingId: 'hasBoxShadowBtn',
632
632
  state: 'active'
633
633
  }
@@ -643,8 +643,8 @@ const SettingUIV2 = [
643
643
  ],
644
644
  action: {
645
645
  controlId: 'hasBoxShadowBtn',
646
- groupType: 'styles',
647
- controlType: 'styles',
646
+ groupType: 'style',
647
+ controlType: 'style',
648
648
  state: 'active',
649
649
  newValue: true
650
650
  }
@@ -657,8 +657,8 @@ const SettingUIV2 = [
657
657
  ],
658
658
  action: {
659
659
  controlId: 'hasBoxShadowBtn',
660
- groupType: 'styles',
661
- controlType: 'styles',
660
+ groupType: 'style',
661
+ controlType: 'style',
662
662
  state: 'active',
663
663
  newValue: false
664
664
  }
@@ -133,7 +133,7 @@ const SettingUIV2 = [
133
133
  options: {
134
134
  updateFields: [
135
135
  {
136
- field: 'enable',
136
+ field: 'normal.enable',
137
137
  settingId: 'hasBoxShadowBtn',
138
138
  state: 'normal'
139
139
  }
@@ -149,8 +149,8 @@ const SettingUIV2 = [
149
149
  ],
150
150
  action: {
151
151
  controlId: 'hasBoxShadowBtn',
152
- groupType: 'styles',
153
- controlType: 'styles',
152
+ groupType: 'style',
153
+ controlType: 'style',
154
154
  state: 'normal',
155
155
  newValue: true
156
156
  }
@@ -163,8 +163,8 @@ const SettingUIV2 = [
163
163
  ],
164
164
  action: {
165
165
  controlId: 'hasBoxShadowBtn',
166
- groupType: 'styles',
167
- controlType: 'styles',
166
+ groupType: 'style',
167
+ controlType: 'style',
168
168
  state: 'normal',
169
169
  newValue: false
170
170
  }
@@ -318,7 +318,7 @@ const SettingUIV2 = [
318
318
  options: {
319
319
  updateFields: [
320
320
  {
321
- field: 'enable',
321
+ field: 'hover.enable',
322
322
  settingId: 'hasBoxShadowBtn',
323
323
  state: 'hover'
324
324
  }
@@ -334,8 +334,8 @@ const SettingUIV2 = [
334
334
  ],
335
335
  action: {
336
336
  controlId: 'hasBoxShadowBtn',
337
- groupType: 'styles',
338
- controlType: 'styles',
337
+ groupType: 'style',
338
+ controlType: 'style',
339
339
  state: 'hover',
340
340
  newValue: true
341
341
  }
@@ -348,8 +348,8 @@ const SettingUIV2 = [
348
348
  ],
349
349
  action: {
350
350
  controlId: 'hasBoxShadowBtn',
351
- groupType: 'styles',
352
- controlType: 'styles',
351
+ groupType: 'style',
352
+ controlType: 'style',
353
353
  state: 'hover',
354
354
  newValue: false
355
355
  }
@@ -18,7 +18,8 @@ const getButtonBaseStyles = ()=>{
18
18
  const getAddToCartButtonStyles = (styles)=>{
19
19
  return {
20
20
  ...styles,
21
- ...getButtonBaseStyles()
21
+ ...getButtonBaseStyles(),
22
+ enableTextStyle: true
22
23
  };
23
24
  };
24
25
  const getSoldOutButtonStyles = (styles)=>{
@@ -183,7 +183,7 @@ const SettingUIV2 = [
183
183
  options: {
184
184
  updateFields: [
185
185
  {
186
- field: 'enable',
186
+ field: 'normal.enable',
187
187
  settingId: 'hasBoxShadowBtn',
188
188
  state: 'normal'
189
189
  }
@@ -199,8 +199,8 @@ const SettingUIV2 = [
199
199
  ],
200
200
  action: {
201
201
  controlId: 'hasBoxShadowBtn',
202
- groupType: 'styles',
203
- controlType: 'styles',
202
+ groupType: 'style',
203
+ controlType: 'style',
204
204
  state: 'normal',
205
205
  newValue: true
206
206
  }
@@ -213,8 +213,8 @@ const SettingUIV2 = [
213
213
  ],
214
214
  action: {
215
215
  controlId: 'hasBoxShadowBtn',
216
- groupType: 'styles',
217
- controlType: 'styles',
216
+ groupType: 'style',
217
+ controlType: 'style',
218
218
  state: 'normal',
219
219
  newValue: false
220
220
  }
@@ -377,7 +377,7 @@ const SettingUIV2 = [
377
377
  options: {
378
378
  updateFields: [
379
379
  {
380
- field: 'enable',
380
+ field: 'hover.enable',
381
381
  settingId: 'hasBoxShadowBtn',
382
382
  state: 'hover'
383
383
  }
@@ -393,8 +393,8 @@ const SettingUIV2 = [
393
393
  ],
394
394
  action: {
395
395
  controlId: 'hasBoxShadowBtn',
396
- groupType: 'styles',
397
- controlType: 'styles',
396
+ groupType: 'style',
397
+ controlType: 'style',
398
398
  state: 'hover',
399
399
  newValue: true
400
400
  }
@@ -407,8 +407,8 @@ const SettingUIV2 = [
407
407
  ],
408
408
  action: {
409
409
  controlId: 'hasBoxShadowBtn',
410
- groupType: 'styles',
411
- controlType: 'styles',
410
+ groupType: 'style',
411
+ controlType: 'style',
412
412
  state: 'hover',
413
413
  newValue: false
414
414
  }
@@ -482,13 +482,13 @@ const ProductButtonSettings = [
482
482
  compoDefaultValue: {
483
483
  normal: {
484
484
  border: 'solid',
485
- color: '#212121',
485
+ color: 'line-3',
486
486
  width: '1px',
487
487
  borderWidth: '1px'
488
488
  },
489
489
  hover: {
490
490
  border: 'solid',
491
- color: '#212121',
491
+ color: 'line-3',
492
492
  width: '1px',
493
493
  borderWidth: '1px'
494
494
  }
@@ -687,11 +687,6 @@ const ProductButtonSettings = [
687
687
  type: 'toggle',
688
688
  default: false
689
689
  },
690
- {
691
- id: 'enableTextStyle',
692
- type: 'toggle',
693
- default: true
694
- },
695
690
  {
696
691
  id: 'transform',
697
692
  label: 'Text Transform',
@@ -745,15 +740,15 @@ const ProductButtonSettings = [
745
740
  type: 'input:unit',
746
741
  label: 'Width',
747
742
  emptyOnClear: true,
748
- placeholder: 'Auto',
749
743
  min: 0,
750
744
  units: [
751
745
  'px',
752
746
  '%'
753
747
  ],
748
+ hide: true,
754
749
  devices: {
755
750
  desktop: {
756
- default: undefined
751
+ default: '100%'
757
752
  }
758
753
  }
759
754
  }
@@ -958,7 +953,7 @@ const ProductButtonSettings = [
958
953
  devices: {
959
954
  desktop: {
960
955
  default: {
961
- width: 'Auto',
956
+ width: '100%',
962
957
  height: 'Auto',
963
958
  padding: {
964
959
  type: 'medium',
@@ -452,7 +452,7 @@ const SettingUIV2 = [
452
452
  options: {
453
453
  updateFields: [
454
454
  {
455
- field: 'enable',
455
+ field: 'normal.enable',
456
456
  settingId: 'hasBoxShadowBtn',
457
457
  state: 'normal'
458
458
  }
@@ -468,8 +468,8 @@ const SettingUIV2 = [
468
468
  ],
469
469
  action: {
470
470
  controlId: 'hasBoxShadowBtn',
471
- groupType: 'styles',
472
- controlType: 'styles',
471
+ groupType: 'style',
472
+ controlType: 'style',
473
473
  state: 'normal',
474
474
  newValue: true
475
475
  }
@@ -482,8 +482,8 @@ const SettingUIV2 = [
482
482
  ],
483
483
  action: {
484
484
  controlId: 'hasBoxShadowBtn',
485
- groupType: 'styles',
486
- controlType: 'styles',
485
+ groupType: 'style',
486
+ controlType: 'style',
487
487
  state: 'normal',
488
488
  newValue: false
489
489
  }
@@ -633,7 +633,7 @@ const SettingUIV2 = [
633
633
  fixedValue: 'Edit',
634
634
  iconName: 'polaris-text-title',
635
635
  popoverLabel: {
636
- en: 'Price text style'
636
+ en: 'Product price text style'
637
637
  },
638
638
  isHideClear: true,
639
639
  controls: [
@@ -654,7 +654,7 @@ const SettingUIV2 = [
654
654
  fixedValue: 'Edit',
655
655
  iconName: 'polaris-text-title',
656
656
  popoverLabel: {
657
- en: 'Price text style'
657
+ en: 'Compare-at text style'
658
658
  },
659
659
  isHideClear: true,
660
660
  controls: [
@@ -728,7 +728,7 @@ const SettingUIV2 = [
728
728
  options: {
729
729
  updateFields: [
730
730
  {
731
- field: 'enable',
731
+ field: 'hover.enable',
732
732
  settingId: 'hasBoxShadowBtn',
733
733
  state: 'hover'
734
734
  }
@@ -744,8 +744,8 @@ const SettingUIV2 = [
744
744
  ],
745
745
  action: {
746
746
  controlId: 'hasBoxShadowBtn',
747
- groupType: 'styles',
748
- controlType: 'styles',
747
+ groupType: 'style',
748
+ controlType: 'style',
749
749
  state: 'hover',
750
750
  newValue: true
751
751
  }
@@ -758,8 +758,8 @@ const SettingUIV2 = [
758
758
  ],
759
759
  action: {
760
760
  controlId: 'hasBoxShadowBtn',
761
- groupType: 'styles',
762
- controlType: 'styles',
761
+ groupType: 'style',
762
+ controlType: 'style',
763
763
  state: 'hover',
764
764
  newValue: false
765
765
  }