@gem-sdk/components 2.0.0-dev.409 → 2.0.0-dev.411

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 (25) hide show
  1. package/dist/cjs/banner/components/common/common.js +3 -3
  2. package/dist/cjs/banner/setting/setting.js +20 -2
  3. package/dist/cjs/banner/setting/uiV2.js +105 -1
  4. package/dist/cjs/grid/row/setting/configs/settings.js +1 -0
  5. package/dist/cjs/grid/section/setting/configs/settings.js +16 -0
  6. package/dist/cjs/product/components/ProductProperties/ProductProperties.js +5 -1
  7. package/dist/cjs/product/components/ProductQuantity/common/getAttrs.js +1 -1
  8. package/dist/cjs/product/components/ProductQuantity/common/getClasses.js +3 -5
  9. package/dist/cjs/product/components/ProductQuantity/index.js +0 -1
  10. package/dist/cjs/product/components/ProductQuantity/index.liquid.js +0 -1
  11. package/dist/cjs/product/setting/product-properties/configs/settingsV2.js +4 -10
  12. package/dist/cjs/product/setting/product-quantity/configs/uiV2.js +1 -0
  13. package/dist/esm/banner/components/common/common.js +3 -3
  14. package/dist/esm/banner/setting/setting.js +20 -2
  15. package/dist/esm/banner/setting/uiV2.js +105 -1
  16. package/dist/esm/grid/row/setting/configs/settings.js +1 -0
  17. package/dist/esm/grid/section/setting/configs/settings.js +16 -0
  18. package/dist/esm/product/components/ProductProperties/ProductProperties.js +5 -1
  19. package/dist/esm/product/components/ProductQuantity/common/getAttrs.js +1 -1
  20. package/dist/esm/product/components/ProductQuantity/common/getClasses.js +3 -5
  21. package/dist/esm/product/components/ProductQuantity/index.js +0 -1
  22. package/dist/esm/product/components/ProductQuantity/index.liquid.js +0 -1
  23. package/dist/esm/product/setting/product-properties/configs/settingsV2.js +4 -10
  24. package/dist/esm/product/setting/product-quantity/configs/uiV2.js +1 -0
  25. package/package.json +1 -1
@@ -441,9 +441,9 @@ const getClassContentPosition = (positions)=>{
441
441
  const tablet = positions.tablet || desktop;
442
442
  const mobile = positions.mobile || tablet;
443
443
  return {
444
- [`!gp-justify-${classMap[desktop || 'center']}`]: !!desktop,
445
- [`tablet:!gp-justify-${classMap[tablet || 'center']}`]: !!tablet,
446
- [`mobile:!gp-justify-${classMap[mobile || 'center']}`]: !!mobile
444
+ [`gp-justify-${classMap[desktop || 'center']}`]: !!desktop,
445
+ [`tablet:gp-justify-${classMap[tablet || 'center']}`]: !!tablet,
446
+ [`mobile:gp-justify-${classMap[mobile || 'center']}`]: !!mobile
447
447
  };
448
448
  };
449
449
  const getResponsiveSetting = (setting)=>{
@@ -269,12 +269,12 @@ const SettingsV2 = [
269
269
  type: 'textarea',
270
270
  minHeight: 100,
271
271
  autoHeight: true,
272
- placeholder: 'E.g: Classic white crewneck t-shirt with minimalist logo design, casual and versatile style'
272
+ placeholder: 'E.g: Classic white crewneck t-shirt with minimalist design'
273
273
  },
274
274
  {
275
275
  id: 'title',
276
276
  label: 'Image title',
277
- info: 'Show title when hover to image',
277
+ info: 'E.g: White t-shirt',
278
278
  type: 'input',
279
279
  placeholder: 'E.g: White t-shirt'
280
280
  }
@@ -722,6 +722,15 @@ const SettingsV2 = [
722
722
  right: '16px',
723
723
  linked: false
724
724
  }
725
+ },
726
+ mobile: {
727
+ default: {
728
+ top: '16px',
729
+ left: '16px',
730
+ bottom: '16px',
731
+ right: '16px',
732
+ linked: false
733
+ }
725
734
  }
726
735
  },
727
736
  compoDefaultValue: {
@@ -733,6 +742,15 @@ const SettingsV2 = [
733
742
  right: '16px',
734
743
  linked: false
735
744
  }
745
+ },
746
+ mobile: {
747
+ default: {
748
+ top: '16px',
749
+ left: '16px',
750
+ bottom: '16px',
751
+ right: '16px',
752
+ linked: false
753
+ }
736
754
  }
737
755
  }
738
756
  }
@@ -10,7 +10,86 @@ const SettingUIV2 = [
10
10
  setting: {
11
11
  id: 'layout'
12
12
  },
13
- layout: 'vertical'
13
+ layout: 'vertical',
14
+ controlChangeTrigger: {
15
+ settings: [
16
+ {
17
+ condition: `layout.cols.length == 1 && layout.type === 'center-top'`,
18
+ source: [
19
+ 'layout'
20
+ ],
21
+ action: {
22
+ controlId: 'contentPosition1Col',
23
+ groupType: 'style',
24
+ controlType: 'style',
25
+ newValue: 'top'
26
+ }
27
+ },
28
+ {
29
+ condition: `layout.cols.length == 1 && layout.type === 'center'`,
30
+ source: [
31
+ 'layout'
32
+ ],
33
+ action: {
34
+ controlId: 'contentPosition1Col',
35
+ groupType: 'style',
36
+ controlType: 'style',
37
+ newValue: 'center'
38
+ }
39
+ },
40
+ {
41
+ condition: `layout.cols.length == 1 && layout.type === 'center-bottom'`,
42
+ source: [
43
+ 'layout'
44
+ ],
45
+ action: {
46
+ controlId: 'contentPosition1Col',
47
+ groupType: 'style',
48
+ controlType: 'style',
49
+ newValue: 'bottom'
50
+ }
51
+ },
52
+ {
53
+ condition: `layout.cols.length > 1 && ( layout.type === 'left-top' || layout.type === 'right-top')`,
54
+ source: [
55
+ 'layout'
56
+ ],
57
+ action: {
58
+ controlId: 'contentPosition2Col',
59
+ groupType: 'style',
60
+ controlType: 'style',
61
+ newValue: 'top'
62
+ }
63
+ },
64
+ {
65
+ condition: `layout.cols.length > 1 && ( layout.type === 'right' || layout.type === 'left')`,
66
+ source: [
67
+ 'layout'
68
+ ],
69
+ action: {
70
+ controlId: 'contentPosition2Col',
71
+ groupType: 'style',
72
+ controlType: 'style',
73
+ newValue: 'center'
74
+ }
75
+ },
76
+ {
77
+ condition: `layout.cols.length > 1 && ( layout.type === 'left-bottom' || layout.type === 'right-bottom')`,
78
+ source: [
79
+ 'layout'
80
+ ],
81
+ action: {
82
+ controlId: 'contentPosition2Col',
83
+ groupType: 'style',
84
+ controlType: 'style',
85
+ newValue: 'bottom'
86
+ }
87
+ }
88
+ ],
89
+ options: {
90
+ noRecordHistory: true
91
+ }
92
+ }
14
93
  }
15
94
  ]
16
95
  },
@@ -259,6 +338,31 @@ const SettingUIV2 = [
259
338
  }
260
339
  ]
261
340
  },
341
+ {
342
+ label: {
343
+ en: 'SEO'
344
+ },
345
+ controls: [
346
+ {
347
+ type: 'control',
348
+ setting: {
349
+ id: 'alt'
350
+ },
351
+ label: {
352
+ en: 'Alt text'
353
+ }
354
+ },
355
+ {
356
+ type: 'control',
357
+ setting: {
358
+ id: 'title'
359
+ },
360
+ label: {
361
+ en: 'Image title'
362
+ }
363
+ }
364
+ ]
365
+ },
262
366
  {
263
367
  controls: [
264
368
  {
@@ -223,6 +223,7 @@ const RowSettings = [
223
223
  units: [
224
224
  '%'
225
225
  ],
226
+ showDefaultUnit: true,
226
227
  devices: {
227
228
  desktop: {
228
229
  default: '1%'
@@ -218,6 +218,22 @@ const SectionSettings = [
218
218
  }
219
219
  }
220
220
  },
221
+ {
222
+ id: 'columnGap',
223
+ type: 'input:slider',
224
+ min: 0,
225
+ max: 100,
226
+ step: 1,
227
+ units: [
228
+ '%'
229
+ ],
230
+ showDefaultUnit: true,
231
+ devices: {
232
+ desktop: {
233
+ default: '0%'
234
+ }
235
+ }
236
+ },
221
237
  {
222
238
  id: 'background',
223
239
  type: 'background-media',
@@ -92,6 +92,9 @@ const ProductProperties = ({ setting, styles, builderProps })=>{
92
92
  ]);
93
93
  const checkLength = React.useCallback((value)=>{
94
94
  const length = value?.length ?? 0;
95
+ if (!required && length === 0) {
96
+ return true;
97
+ }
95
98
  if (numberOnly) {
96
99
  return (Number(minNumber) || 0) <= Number(value) && Number(length) <= (Number(maxNumber) || 0);
97
100
  }
@@ -101,7 +104,8 @@ const ProductProperties = ({ setting, styles, builderProps })=>{
101
104
  maxNumber,
102
105
  minChar,
103
106
  minNumber,
104
- numberOnly
107
+ numberOnly,
108
+ required
105
109
  ]);
106
110
  const checkInput = React.useCallback((value)=>{
107
111
  if (required && !value) {
@@ -26,7 +26,7 @@ const getInputAttr = ({ isDisabled = true, isLiquid, qtyStyle, quantity, current
26
26
  inputMode: 'numeric',
27
27
  quantity: isLiquid ? 'current_variant.quantity' : quantity ?? 0,
28
28
  autocomplete: 'off',
29
- value: defaultQty ?? 1,
29
+ value: quantity ?? defaultQty ?? 1,
30
30
  ...attrs
31
31
  };
32
32
  };
@@ -2,8 +2,8 @@
2
2
 
3
3
  var core = require('@gem-sdk/core');
4
4
 
5
- const getInputClasses = ({ styles, qtyStyle, borderBtn, inputBackgroundColor, textColor })=>{
6
- let classList = 'gp-flex gp-w-full gp-min-w-[45px] gp-shrink-[99999] gp-appearance-none gp-items-center gp-text-center gp-outline-none gp-transition-all gp-duration-150 hover:gp-text-black disabled:gp-cursor-not-allowed';
5
+ const getInputClasses = ({ styles, borderBtn, inputBackgroundColor, textColor })=>{
6
+ let classList = 'gp-flex gp-w-full gp-px-1 gp-min-w-[45px] gp-shrink-[99999] gp-appearance-none gp-items-center gp-text-center gp-outline-none gp-transition-all gp-duration-150 hover:gp-text-black disabled:gp-cursor-not-allowed';
7
7
  const appendTypoClass = core.composeTypographyClassName(styles?.typo, styles?.typography);
8
8
  const buttonColor = core.handleConvertClassColor(borderBtn);
9
9
  const bgColorState = core.getGlobalColorStateClass('bg', inputBackgroundColor);
@@ -13,9 +13,7 @@ const getInputClasses = ({ styles, qtyStyle, borderBtn, inputBackgroundColor, te
13
13
  if (bgColorState) classList += ` ${bgColorState} `;
14
14
  if (textColorState) classList += ` ${textColorState} `;
15
15
  return {
16
- ...core.composeClasses(classList),
17
- 'gp-px-4': qtyStyle === 'standard',
18
- 'gp-px-1': qtyStyle === 'minimalist'
16
+ ...core.composeClasses(classList)
19
17
  };
20
18
  };
21
19
  const getButtonClass = ({ borderBtn, buttonBackgroundColor, iconColor, buttonSide })=>{
@@ -56,7 +56,6 @@ const ProductQuantity = (props)=>{
56
56
  const inputClass = system.createClass({
57
57
  ...getClasses.getInputClasses({
58
58
  styles,
59
- qtyStyle,
60
59
  borderBtn,
61
60
  inputBackgroundColor,
62
61
  textColor
@@ -48,7 +48,6 @@ const ProductQuantity = ({ setting = {}, styles = {}, advanced, builderProps })=
48
48
  const inputClass = system.createClass({
49
49
  ...getClasses.getInputClasses({
50
50
  styles,
51
- qtyStyle,
52
51
  borderBtn,
53
52
  inputBackgroundColor,
54
53
  textColor
@@ -353,9 +353,7 @@ const ProductPropertiesSettingsV2 = [
353
353
  type: 'color-picker-v2',
354
354
  label: 'Text Color',
355
355
  default: {
356
- normal: 'text-1',
357
- focus: 'transparent',
358
- hover: 'transparent'
356
+ normal: 'text-1'
359
357
  },
360
358
  state: {
361
359
  normal: true,
@@ -368,9 +366,7 @@ const ProductPropertiesSettingsV2 = [
368
366
  type: 'color-picker-v2',
369
367
  label: 'Text Color',
370
368
  default: {
371
- normal: 'text-1',
372
- hover: 'transparent',
373
- active: 'transparent'
369
+ normal: 'text-1'
374
370
  },
375
371
  state: {
376
372
  normal: true,
@@ -443,8 +439,7 @@ const ProductPropertiesSettingsV2 = [
443
439
  desktop: {
444
440
  default: {
445
441
  normal: '#FFFFFF',
446
- hover: '#DDDDDD',
447
- focus: 'transparent'
442
+ hover: '#DDDDDD'
448
443
  }
449
444
  }
450
445
  },
@@ -452,8 +447,7 @@ const ProductPropertiesSettingsV2 = [
452
447
  desktop: {
453
448
  default: {
454
449
  normal: '#FFFFFF',
455
- hover: '#DDDDDD',
456
- focus: 'transparent'
450
+ hover: '#DDDDDD'
457
451
  }
458
452
  }
459
453
  },
@@ -347,6 +347,7 @@ const SettingUIV2 = [
347
347
  iconName: 'polaris-edit',
348
348
  fixedValue: 'Edit...',
349
349
  isHideClear: true,
350
+ conditionDisplay: 'hasButton',
350
351
  controls: [
351
352
  {
352
353
  label: {
@@ -439,9 +439,9 @@ const getClassContentPosition = (positions)=>{
439
439
  const tablet = positions.tablet || desktop;
440
440
  const mobile = positions.mobile || tablet;
441
441
  return {
442
- [`!gp-justify-${classMap[desktop || 'center']}`]: !!desktop,
443
- [`tablet:!gp-justify-${classMap[tablet || 'center']}`]: !!tablet,
444
- [`mobile:!gp-justify-${classMap[mobile || 'center']}`]: !!mobile
442
+ [`gp-justify-${classMap[desktop || 'center']}`]: !!desktop,
443
+ [`tablet:gp-justify-${classMap[tablet || 'center']}`]: !!tablet,
444
+ [`mobile:gp-justify-${classMap[mobile || 'center']}`]: !!mobile
445
445
  };
446
446
  };
447
447
  const getResponsiveSetting = (setting)=>{
@@ -267,12 +267,12 @@ const SettingsV2 = [
267
267
  type: 'textarea',
268
268
  minHeight: 100,
269
269
  autoHeight: true,
270
- placeholder: 'E.g: Classic white crewneck t-shirt with minimalist logo design, casual and versatile style'
270
+ placeholder: 'E.g: Classic white crewneck t-shirt with minimalist design'
271
271
  },
272
272
  {
273
273
  id: 'title',
274
274
  label: 'Image title',
275
- info: 'Show title when hover to image',
275
+ info: 'E.g: White t-shirt',
276
276
  type: 'input',
277
277
  placeholder: 'E.g: White t-shirt'
278
278
  }
@@ -720,6 +720,15 @@ const SettingsV2 = [
720
720
  right: '16px',
721
721
  linked: false
722
722
  }
723
+ },
724
+ mobile: {
725
+ default: {
726
+ top: '16px',
727
+ left: '16px',
728
+ bottom: '16px',
729
+ right: '16px',
730
+ linked: false
731
+ }
723
732
  }
724
733
  },
725
734
  compoDefaultValue: {
@@ -731,6 +740,15 @@ const SettingsV2 = [
731
740
  right: '16px',
732
741
  linked: false
733
742
  }
743
+ },
744
+ mobile: {
745
+ default: {
746
+ top: '16px',
747
+ left: '16px',
748
+ bottom: '16px',
749
+ right: '16px',
750
+ linked: false
751
+ }
734
752
  }
735
753
  }
736
754
  }
@@ -8,7 +8,86 @@ const SettingUIV2 = [
8
8
  setting: {
9
9
  id: 'layout'
10
10
  },
11
- layout: 'vertical'
11
+ layout: 'vertical',
12
+ controlChangeTrigger: {
13
+ settings: [
14
+ {
15
+ condition: `layout.cols.length == 1 && layout.type === 'center-top'`,
16
+ source: [
17
+ 'layout'
18
+ ],
19
+ action: {
20
+ controlId: 'contentPosition1Col',
21
+ groupType: 'style',
22
+ controlType: 'style',
23
+ newValue: 'top'
24
+ }
25
+ },
26
+ {
27
+ condition: `layout.cols.length == 1 && layout.type === 'center'`,
28
+ source: [
29
+ 'layout'
30
+ ],
31
+ action: {
32
+ controlId: 'contentPosition1Col',
33
+ groupType: 'style',
34
+ controlType: 'style',
35
+ newValue: 'center'
36
+ }
37
+ },
38
+ {
39
+ condition: `layout.cols.length == 1 && layout.type === 'center-bottom'`,
40
+ source: [
41
+ 'layout'
42
+ ],
43
+ action: {
44
+ controlId: 'contentPosition1Col',
45
+ groupType: 'style',
46
+ controlType: 'style',
47
+ newValue: 'bottom'
48
+ }
49
+ },
50
+ {
51
+ condition: `layout.cols.length > 1 && ( layout.type === 'left-top' || layout.type === 'right-top')`,
52
+ source: [
53
+ 'layout'
54
+ ],
55
+ action: {
56
+ controlId: 'contentPosition2Col',
57
+ groupType: 'style',
58
+ controlType: 'style',
59
+ newValue: 'top'
60
+ }
61
+ },
62
+ {
63
+ condition: `layout.cols.length > 1 && ( layout.type === 'right' || layout.type === 'left')`,
64
+ source: [
65
+ 'layout'
66
+ ],
67
+ action: {
68
+ controlId: 'contentPosition2Col',
69
+ groupType: 'style',
70
+ controlType: 'style',
71
+ newValue: 'center'
72
+ }
73
+ },
74
+ {
75
+ condition: `layout.cols.length > 1 && ( layout.type === 'left-bottom' || layout.type === 'right-bottom')`,
76
+ source: [
77
+ 'layout'
78
+ ],
79
+ action: {
80
+ controlId: 'contentPosition2Col',
81
+ groupType: 'style',
82
+ controlType: 'style',
83
+ newValue: 'bottom'
84
+ }
85
+ }
86
+ ],
87
+ options: {
88
+ noRecordHistory: true
89
+ }
90
+ }
12
91
  }
13
92
  ]
14
93
  },
@@ -257,6 +336,31 @@ const SettingUIV2 = [
257
336
  }
258
337
  ]
259
338
  },
339
+ {
340
+ label: {
341
+ en: 'SEO'
342
+ },
343
+ controls: [
344
+ {
345
+ type: 'control',
346
+ setting: {
347
+ id: 'alt'
348
+ },
349
+ label: {
350
+ en: 'Alt text'
351
+ }
352
+ },
353
+ {
354
+ type: 'control',
355
+ setting: {
356
+ id: 'title'
357
+ },
358
+ label: {
359
+ en: 'Image title'
360
+ }
361
+ }
362
+ ]
363
+ },
260
364
  {
261
365
  controls: [
262
366
  {
@@ -221,6 +221,7 @@ const RowSettings = [
221
221
  units: [
222
222
  '%'
223
223
  ],
224
+ showDefaultUnit: true,
224
225
  devices: {
225
226
  desktop: {
226
227
  default: '1%'
@@ -216,6 +216,22 @@ const SectionSettings = [
216
216
  }
217
217
  }
218
218
  },
219
+ {
220
+ id: 'columnGap',
221
+ type: 'input:slider',
222
+ min: 0,
223
+ max: 100,
224
+ step: 1,
225
+ units: [
226
+ '%'
227
+ ],
228
+ showDefaultUnit: true,
229
+ devices: {
230
+ desktop: {
231
+ default: '0%'
232
+ }
233
+ }
234
+ },
219
235
  {
220
236
  id: 'background',
221
237
  type: 'background-media',
@@ -88,6 +88,9 @@ const ProductProperties = ({ setting, styles, builderProps })=>{
88
88
  ]);
89
89
  const checkLength = useCallback((value)=>{
90
90
  const length = value?.length ?? 0;
91
+ if (!required && length === 0) {
92
+ return true;
93
+ }
91
94
  if (numberOnly) {
92
95
  return (Number(minNumber) || 0) <= Number(value) && Number(length) <= (Number(maxNumber) || 0);
93
96
  }
@@ -97,7 +100,8 @@ const ProductProperties = ({ setting, styles, builderProps })=>{
97
100
  maxNumber,
98
101
  minChar,
99
102
  minNumber,
100
- numberOnly
103
+ numberOnly,
104
+ required
101
105
  ]);
102
106
  const checkInput = useCallback((value)=>{
103
107
  if (required && !value) {
@@ -24,7 +24,7 @@ const getInputAttr = ({ isDisabled = true, isLiquid, qtyStyle, quantity, current
24
24
  inputMode: 'numeric',
25
25
  quantity: isLiquid ? 'current_variant.quantity' : quantity ?? 0,
26
26
  autocomplete: 'off',
27
- value: defaultQty ?? 1,
27
+ value: quantity ?? defaultQty ?? 1,
28
28
  ...attrs
29
29
  };
30
30
  };
@@ -1,7 +1,7 @@
1
1
  import { composeTypographyClassName, handleConvertClassColor, getGlobalColorStateClass, composeClasses } from '@gem-sdk/core';
2
2
 
3
- const getInputClasses = ({ styles, qtyStyle, borderBtn, inputBackgroundColor, textColor })=>{
4
- let classList = 'gp-flex gp-w-full gp-min-w-[45px] gp-shrink-[99999] gp-appearance-none gp-items-center gp-text-center gp-outline-none gp-transition-all gp-duration-150 hover:gp-text-black disabled:gp-cursor-not-allowed';
3
+ const getInputClasses = ({ styles, borderBtn, inputBackgroundColor, textColor })=>{
4
+ let classList = 'gp-flex gp-w-full gp-px-1 gp-min-w-[45px] gp-shrink-[99999] gp-appearance-none gp-items-center gp-text-center gp-outline-none gp-transition-all gp-duration-150 hover:gp-text-black disabled:gp-cursor-not-allowed';
5
5
  const appendTypoClass = composeTypographyClassName(styles?.typo, styles?.typography);
6
6
  const buttonColor = handleConvertClassColor(borderBtn);
7
7
  const bgColorState = getGlobalColorStateClass('bg', inputBackgroundColor);
@@ -11,9 +11,7 @@ const getInputClasses = ({ styles, qtyStyle, borderBtn, inputBackgroundColor, te
11
11
  if (bgColorState) classList += ` ${bgColorState} `;
12
12
  if (textColorState) classList += ` ${textColorState} `;
13
13
  return {
14
- ...composeClasses(classList),
15
- 'gp-px-4': qtyStyle === 'standard',
16
- 'gp-px-1': qtyStyle === 'minimalist'
14
+ ...composeClasses(classList)
17
15
  };
18
16
  };
19
17
  const getButtonClass = ({ borderBtn, buttonBackgroundColor, iconColor, buttonSide })=>{
@@ -52,7 +52,6 @@ const ProductQuantity = (props)=>{
52
52
  const inputClass = createClass({
53
53
  ...getInputClasses({
54
54
  styles,
55
- qtyStyle,
56
55
  borderBtn,
57
56
  inputBackgroundColor,
58
57
  textColor
@@ -44,7 +44,6 @@ const ProductQuantity = ({ setting = {}, styles = {}, advanced, builderProps })=
44
44
  const inputClass = createClass({
45
45
  ...getInputClasses({
46
46
  styles,
47
- qtyStyle,
48
47
  borderBtn,
49
48
  inputBackgroundColor,
50
49
  textColor
@@ -351,9 +351,7 @@ const ProductPropertiesSettingsV2 = [
351
351
  type: 'color-picker-v2',
352
352
  label: 'Text Color',
353
353
  default: {
354
- normal: 'text-1',
355
- focus: 'transparent',
356
- hover: 'transparent'
354
+ normal: 'text-1'
357
355
  },
358
356
  state: {
359
357
  normal: true,
@@ -366,9 +364,7 @@ const ProductPropertiesSettingsV2 = [
366
364
  type: 'color-picker-v2',
367
365
  label: 'Text Color',
368
366
  default: {
369
- normal: 'text-1',
370
- hover: 'transparent',
371
- active: 'transparent'
367
+ normal: 'text-1'
372
368
  },
373
369
  state: {
374
370
  normal: true,
@@ -441,8 +437,7 @@ const ProductPropertiesSettingsV2 = [
441
437
  desktop: {
442
438
  default: {
443
439
  normal: '#FFFFFF',
444
- hover: '#DDDDDD',
445
- focus: 'transparent'
440
+ hover: '#DDDDDD'
446
441
  }
447
442
  }
448
443
  },
@@ -450,8 +445,7 @@ const ProductPropertiesSettingsV2 = [
450
445
  desktop: {
451
446
  default: {
452
447
  normal: '#FFFFFF',
453
- hover: '#DDDDDD',
454
- focus: 'transparent'
448
+ hover: '#DDDDDD'
455
449
  }
456
450
  }
457
451
  },
@@ -345,6 +345,7 @@ const SettingUIV2 = [
345
345
  iconName: 'polaris-edit',
346
346
  fixedValue: 'Edit...',
347
347
  isHideClear: true,
348
+ conditionDisplay: 'hasButton',
348
349
  controls: [
349
350
  {
350
351
  label: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.409",
3
+ "version": "2.0.0-dev.411",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",