@gem-sdk/components 2.0.0-dev.725 → 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.
@@ -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
  }
@@ -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
  }
@@ -153,7 +153,7 @@ const SettingUIV2 = [
153
153
  options: {
154
154
  updateFields: [
155
155
  {
156
- field: 'enable',
156
+ field: 'normal.enable',
157
157
  settingId: 'hasBoxShadowBtn',
158
158
  state: 'normal'
159
159
  }
@@ -169,8 +169,8 @@ const SettingUIV2 = [
169
169
  ],
170
170
  action: {
171
171
  controlId: 'hasBoxShadowBtn',
172
- groupType: 'styles',
173
- controlType: 'styles',
172
+ groupType: 'style',
173
+ controlType: 'style',
174
174
  state: 'normal',
175
175
  newValue: true
176
176
  }
@@ -183,8 +183,8 @@ const SettingUIV2 = [
183
183
  ],
184
184
  action: {
185
185
  controlId: 'hasBoxShadowBtn',
186
- groupType: 'styles',
187
- controlType: 'styles',
186
+ groupType: 'style',
187
+ controlType: 'style',
188
188
  state: 'normal',
189
189
  newValue: false
190
190
  }
@@ -380,7 +380,7 @@ const SettingUIV2 = [
380
380
  options: {
381
381
  updateFields: [
382
382
  {
383
- field: 'enable',
383
+ field: 'hover.enable',
384
384
  settingId: 'hasBoxShadowBtn',
385
385
  state: 'hover'
386
386
  }
@@ -396,23 +396,23 @@ const SettingUIV2 = [
396
396
  ],
397
397
  action: {
398
398
  controlId: 'hasBoxShadowBtn',
399
- groupType: 'styles',
400
- controlType: 'styles',
399
+ groupType: 'style',
400
+ controlType: 'style',
401
401
  state: 'hover',
402
402
  newValue: true
403
403
  }
404
404
  },
405
405
  {
406
- condition: `boxShadowBtn.normal.enable === false`,
406
+ condition: `boxShadowBtn.hover.enable === false`,
407
407
  source: [
408
408
  'boxShadowBtn',
409
409
  'hasBoxShadowBtn'
410
410
  ],
411
411
  action: {
412
412
  controlId: 'hasBoxShadowBtn',
413
- groupType: 'styles',
414
- controlType: 'styles',
415
- state: 'normal',
413
+ groupType: 'style',
414
+ controlType: 'style',
415
+ state: 'hover',
416
416
  newValue: false
417
417
  }
418
418
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.725",
3
+ "version": "2.0.0-dev.726",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -25,7 +25,7 @@
25
25
  "scan-all-text": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/scan-all-text && node ./scripts/scan-all-text"
26
26
  },
27
27
  "devDependencies": {
28
- "@gem-sdk/core": "2.0.0-dev.725",
28
+ "@gem-sdk/core": "2.0.0-dev.726",
29
29
  "@gem-sdk/styles": "2.0.0-dev.703",
30
30
  "@gem-sdk/system": "2.0.0-dev.695",
31
31
  "@types/react-transition-group": "^4.4.5",