@gem-sdk/components 2.0.0-dev.717 → 2.0.0-dev.718

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/cjs/button/components/common/styles.js +3 -3
  2. package/dist/cjs/button/setting/configs/settings.js +1 -37
  3. package/dist/cjs/button/setting/configs/uiV2.js +18 -18
  4. package/dist/cjs/coupon/common/styles.js +2 -2
  5. package/dist/cjs/coupon/setting/config/settings.js +1 -1
  6. package/dist/cjs/coupon/setting/config/uiV2.js +135 -3
  7. package/dist/cjs/form/setting/submit-button/configs/settings.js +1 -24
  8. package/dist/cjs/form/setting/submit-button/configs/uiV2.js +18 -18
  9. package/dist/cjs/form/setting/text-field/configs/uiV2.js +1 -1
  10. package/dist/cjs/product/components/DynamicCheckout/common/styles.js +4 -4
  11. package/dist/cjs/product/components/ProductButton/common/styles.js +1 -1
  12. package/dist/cjs/product/setting/dynamic-checkout/configs/settings.js +0 -23
  13. package/dist/cjs/product/setting/dynamic-checkout/configs/uiV2.js +18 -18
  14. package/dist/cjs/product/setting/product-button/configs/settings.js +1 -24
  15. package/dist/cjs/product/setting/product-button/configs/uiV2.js +18 -18
  16. package/dist/cjs/product/setting/product-view-more/configs/settings.js +0 -23
  17. package/dist/cjs/product/setting/product-view-more/configs/uiV2.js +18 -18
  18. package/dist/esm/button/components/common/styles.js +3 -3
  19. package/dist/esm/button/setting/configs/settings.js +1 -37
  20. package/dist/esm/button/setting/configs/uiV2.js +18 -18
  21. package/dist/esm/coupon/common/styles.js +2 -2
  22. package/dist/esm/coupon/setting/config/settings.js +1 -1
  23. package/dist/esm/coupon/setting/config/uiV2.js +135 -3
  24. package/dist/esm/form/setting/submit-button/configs/settings.js +1 -24
  25. package/dist/esm/form/setting/submit-button/configs/uiV2.js +18 -18
  26. package/dist/esm/form/setting/text-field/configs/uiV2.js +1 -1
  27. package/dist/esm/product/components/DynamicCheckout/common/styles.js +4 -4
  28. package/dist/esm/product/components/ProductButton/common/styles.js +1 -1
  29. package/dist/esm/product/setting/dynamic-checkout/configs/settings.js +0 -23
  30. package/dist/esm/product/setting/dynamic-checkout/configs/uiV2.js +18 -18
  31. package/dist/esm/product/setting/product-button/configs/settings.js +1 -24
  32. package/dist/esm/product/setting/product-button/configs/uiV2.js +18 -18
  33. package/dist/esm/product/setting/product-view-more/configs/settings.js +0 -23
  34. package/dist/esm/product/setting/product-view-more/configs/uiV2.js +18 -18
  35. package/package.json +1 -1
@@ -40,10 +40,10 @@ const ignoreStateNoneValue = (obj, condition)=>{
40
40
  }, {});
41
41
  };
42
42
  const getShadowStyles = (styles1)=>{
43
- const { boxShadowBtnV2: boxShadowBtnV21 } = styles1 || {};
44
- const ignoreNoneValueObjectShadow1 = ignoreStateNoneValue(boxShadowBtnV21 || {}, 'value?.enable !== false');
43
+ const { boxShadowBtn: boxShadowBtn1 } = styles1 || {};
44
+ const ignoreNoneValueObjectShadow1 = ignoreStateNoneValue(boxShadowBtn1 || {}, 'value?.enable !== false');
45
45
  return {
46
- ...core.getStyleShadowState(ignoreNoneValueObjectShadow1, 'box-shadow', isEnableShadowStateForDevice(boxShadowBtnV21))
46
+ ...core.getStyleShadowState(ignoreNoneValueObjectShadow1, 'box-shadow', isEnableShadowStateForDevice(boxShadowBtn1))
47
47
  };
48
48
  };
49
49
  const getRadiusStyles = (styles1)=>{
@@ -110,19 +110,6 @@ const ButtonSettings = [
110
110
  {
111
111
  id: 'style',
112
112
  controls: [
113
- {
114
- id: 'hasBoxShadowBtn',
115
- type: 'toggle',
116
- label: 'Enable Button Shadow',
117
- default: {
118
- normal: false,
119
- hover: false
120
- },
121
- state: {
122
- normal: true,
123
- hover: true
124
- }
125
- },
126
113
  {
127
114
  id: 'borderBtnV2',
128
115
  type: 'border-v2',
@@ -213,29 +200,6 @@ const ButtonSettings = [
213
200
  normal: true
214
201
  }
215
202
  },
216
- {
217
- id: 'boxShadowBtn',
218
- type: 'boxShadow',
219
- label: 'Button Shadow',
220
- hideOnState: {
221
- normal: true,
222
- hover: true
223
- },
224
- default: {
225
- normal: {
226
- type: 'shadow-1',
227
- distance: '4px',
228
- blur: '12px',
229
- spread: '0px',
230
- color: 'rgba(0, 0, 0, 0.20)',
231
- angle: 90
232
- }
233
- },
234
- state: {
235
- normal: true,
236
- hover: true
237
- }
238
- },
239
203
  {
240
204
  id: 'hasBoxShadowBtn',
241
205
  type: 'toggle',
@@ -250,7 +214,7 @@ const ButtonSettings = [
250
214
  }
251
215
  },
252
216
  {
253
- id: 'boxShadowBtnV2',
217
+ id: 'boxShadowBtn',
254
218
  type: 'shadow-v2',
255
219
  default: {
256
220
  normal: {}
@@ -151,7 +151,7 @@ const SettingUIV2 = [
151
151
  en: 'Shadow'
152
152
  },
153
153
  setting: {
154
- id: 'boxShadowBtnV2',
154
+ id: 'boxShadowBtn',
155
155
  state: 'normal'
156
156
  },
157
157
  options: {
@@ -166,29 +166,29 @@ const SettingUIV2 = [
166
166
  controlChangeTrigger: {
167
167
  settings: [
168
168
  {
169
- condition: `boxShadowBtnV2.normal.enable === true`,
169
+ condition: `boxShadowBtn.normal.enable === true`,
170
170
  source: [
171
- 'boxShadowBtnV2',
171
+ 'boxShadowBtn',
172
172
  'hasBoxShadowBtn'
173
173
  ],
174
174
  action: {
175
175
  controlId: 'hasBoxShadowBtn',
176
- groupType: 'advanced',
177
- controlType: 'advanced',
176
+ groupType: 'styles',
177
+ controlType: 'styles',
178
178
  state: 'normal',
179
179
  newValue: true
180
180
  }
181
181
  },
182
182
  {
183
- condition: `boxShadowBtnV2.normal.enable === false`,
183
+ condition: `boxShadowBtn.normal.enable === false`,
184
184
  source: [
185
- 'boxShadowBtnV2',
185
+ 'boxShadowBtn',
186
186
  'hasBoxShadowBtn'
187
187
  ],
188
188
  action: {
189
189
  controlId: 'hasBoxShadowBtn',
190
- groupType: 'advanced',
191
- controlType: 'advanced',
190
+ groupType: 'styles',
191
+ controlType: 'styles',
192
192
  state: 'normal',
193
193
  newValue: false
194
194
  }
@@ -378,7 +378,7 @@ const SettingUIV2 = [
378
378
  en: 'Shadow'
379
379
  },
380
380
  setting: {
381
- id: 'boxShadowBtnV2',
381
+ id: 'boxShadowBtn',
382
382
  state: 'hover'
383
383
  },
384
384
  options: {
@@ -393,29 +393,29 @@ const SettingUIV2 = [
393
393
  controlChangeTrigger: {
394
394
  settings: [
395
395
  {
396
- condition: `boxShadowBtnV2.hover.enable === true`,
396
+ condition: `boxShadowBtn.hover.enable === true`,
397
397
  source: [
398
- 'boxShadowBtnV2',
398
+ 'boxShadowBtn',
399
399
  'hasBoxShadowBtn'
400
400
  ],
401
401
  action: {
402
402
  controlId: 'hasBoxShadowBtn',
403
- groupType: 'advanced',
404
- controlType: 'advanced',
403
+ groupType: 'styles',
404
+ controlType: 'styles',
405
405
  state: 'hover',
406
406
  newValue: true
407
407
  }
408
408
  },
409
409
  {
410
- condition: `boxShadowBtnV2.hover.enable === false`,
410
+ condition: `boxShadowBtn.hover.enable === false`,
411
411
  source: [
412
- 'boxShadowBtnV2',
412
+ 'boxShadowBtn',
413
413
  'hasBoxShadowBtn'
414
414
  ],
415
415
  action: {
416
416
  controlId: 'hasBoxShadowBtn',
417
- groupType: 'advanced',
418
- controlType: 'advanced',
417
+ groupType: 'styles',
418
+ controlType: 'styles',
419
419
  state: 'hover',
420
420
  newValue: false
421
421
  }
@@ -18,7 +18,7 @@ const getInnerBorderCornerCss = (data)=>{
18
18
  const { uid, styles } = data;
19
19
  const borderBtnV2 = styles?.borderBtnV2;
20
20
  const roundedBtnV2 = styles?.roundedBtnV2;
21
- const boxShadowBtnV2 = styles?.boxShadowBtnV2;
21
+ const boxShadowBtn = styles?.boxShadowBtn;
22
22
  const getShadowValue = (value)=>value ? core.getStyleShadow({
23
23
  value,
24
24
  state: 'active',
@@ -40,7 +40,7 @@ const getInnerBorderCornerCss = (data)=>{
40
40
  important: true
41
41
  })};
42
42
  ${core.composeCornerCss(roundedBtnV2?.active, true)};
43
- box-shadow: ${getShadowValue(boxShadowBtnV2?.active ?? {})} !important;
43
+ box-shadow: ${getShadowValue(boxShadowBtn?.active ?? {})} !important;
44
44
  }
45
45
  .gp-coupon[data-active="true"] .${uid} {
46
46
  ${core.composeCornerCss(roundedBtnV2?.active, true)};
@@ -468,7 +468,7 @@ const CouponSettings = [
468
468
  }
469
469
  },
470
470
  {
471
- id: 'boxShadowBtnV2',
471
+ id: 'boxShadowBtn',
472
472
  type: 'shadow-v2',
473
473
  default: {
474
474
  normal: {}
@@ -219,8 +219,52 @@ const SettingUIV2 = [
219
219
  en: 'Shadow'
220
220
  },
221
221
  setting: {
222
- id: 'boxShadowBtnV2',
222
+ id: 'boxShadowBtn',
223
223
  state: 'normal'
224
+ },
225
+ options: {
226
+ updateFields: [
227
+ {
228
+ field: 'enable',
229
+ settingId: 'hasBoxShadowBtn',
230
+ state: 'normal'
231
+ }
232
+ ]
233
+ },
234
+ controlChangeTrigger: {
235
+ settings: [
236
+ {
237
+ condition: `boxShadowBtn.normal.enable === true`,
238
+ source: [
239
+ 'boxShadowBtn',
240
+ 'hasBoxShadowBtn'
241
+ ],
242
+ action: {
243
+ controlId: 'hasBoxShadowBtn',
244
+ groupType: 'styles',
245
+ controlType: 'styles',
246
+ state: 'normal',
247
+ newValue: true
248
+ }
249
+ },
250
+ {
251
+ condition: `boxShadowBtn.normal.enable === false`,
252
+ source: [
253
+ 'boxShadowBtn',
254
+ 'hasBoxShadowBtn'
255
+ ],
256
+ action: {
257
+ controlId: 'hasBoxShadowBtn',
258
+ groupType: 'styles',
259
+ controlType: 'styles',
260
+ state: 'normal',
261
+ newValue: false
262
+ }
263
+ }
264
+ ],
265
+ options: {
266
+ noRecordHistory: true
267
+ }
224
268
  }
225
269
  }
226
270
  ]
@@ -436,8 +480,52 @@ const SettingUIV2 = [
436
480
  en: 'Shadow'
437
481
  },
438
482
  setting: {
439
- id: 'boxShadowBtnV2',
483
+ id: 'boxShadowBtn',
440
484
  state: 'hover'
485
+ },
486
+ options: {
487
+ updateFields: [
488
+ {
489
+ field: 'enable',
490
+ settingId: 'hasBoxShadowBtn',
491
+ state: 'hover'
492
+ }
493
+ ]
494
+ },
495
+ controlChangeTrigger: {
496
+ settings: [
497
+ {
498
+ condition: `boxShadowBtn.hover.enable === true`,
499
+ source: [
500
+ 'boxShadowBtn',
501
+ 'hasBoxShadowBtn'
502
+ ],
503
+ action: {
504
+ controlId: 'hasBoxShadowBtn',
505
+ groupType: 'styles',
506
+ controlType: 'styles',
507
+ state: 'hover',
508
+ newValue: true
509
+ }
510
+ },
511
+ {
512
+ condition: `boxShadowBtn.hover.enable === false`,
513
+ source: [
514
+ 'boxShadowBtn',
515
+ 'hasBoxShadowBtn'
516
+ ],
517
+ action: {
518
+ controlId: 'hasBoxShadowBtn',
519
+ groupType: 'styles',
520
+ controlType: 'styles',
521
+ state: 'hover',
522
+ newValue: false
523
+ }
524
+ }
525
+ ],
526
+ options: {
527
+ noRecordHistory: true
528
+ }
441
529
  }
442
530
  }
443
531
  ]
@@ -535,8 +623,52 @@ const SettingUIV2 = [
535
623
  en: 'Shadow'
536
624
  },
537
625
  setting: {
538
- id: 'boxShadowBtnV2',
626
+ id: 'boxShadowBtn',
539
627
  state: 'active'
628
+ },
629
+ options: {
630
+ updateFields: [
631
+ {
632
+ field: 'enable',
633
+ settingId: 'hasBoxShadowBtn',
634
+ state: 'active'
635
+ }
636
+ ]
637
+ },
638
+ controlChangeTrigger: {
639
+ settings: [
640
+ {
641
+ condition: `boxShadowBtn.active.enable === true`,
642
+ source: [
643
+ 'boxShadowBtn',
644
+ 'hasBoxShadowBtn'
645
+ ],
646
+ action: {
647
+ controlId: 'hasBoxShadowBtn',
648
+ groupType: 'styles',
649
+ controlType: 'styles',
650
+ state: 'active',
651
+ newValue: true
652
+ }
653
+ },
654
+ {
655
+ condition: `boxShadowBtn.active.enable === false`,
656
+ source: [
657
+ 'boxShadowBtn',
658
+ 'hasBoxShadowBtn'
659
+ ],
660
+ action: {
661
+ controlId: 'hasBoxShadowBtn',
662
+ groupType: 'styles',
663
+ controlType: 'styles',
664
+ state: 'active',
665
+ newValue: false
666
+ }
667
+ }
668
+ ],
669
+ options: {
670
+ noRecordHistory: true
671
+ }
540
672
  }
541
673
  }
542
674
  ]
@@ -174,7 +174,7 @@ const SubmitButtonSettings = [
174
174
  }
175
175
  },
176
176
  {
177
- id: 'boxShadowBtnV2',
177
+ id: 'boxShadowBtn',
178
178
  type: 'shadow-v2',
179
179
  default: {
180
180
  normal: {
@@ -290,29 +290,6 @@ const SubmitButtonSettings = [
290
290
  hover: true
291
291
  }
292
292
  },
293
- {
294
- id: 'boxShadowBtn',
295
- type: 'shadow-v2',
296
- label: 'Button Shadow',
297
- hideOnState: {
298
- normal: true,
299
- hover: true
300
- },
301
- default: {
302
- normal: {
303
- type: 'none',
304
- distance: '4px',
305
- blur: '12px',
306
- spread: '0px',
307
- color: 'rgba(0, 0, 0, 0.20)',
308
- angle: 90
309
- }
310
- },
311
- state: {
312
- normal: true,
313
- hover: true
314
- }
315
- },
316
293
  {
317
294
  id: 'roundedBtn',
318
295
  type: 'radius-preset',
@@ -129,7 +129,7 @@ const SettingUIV2 = [
129
129
  en: 'Shadow'
130
130
  },
131
131
  setting: {
132
- id: 'boxShadowBtnV2',
132
+ id: 'boxShadowBtn',
133
133
  state: 'normal'
134
134
  },
135
135
  options: {
@@ -144,29 +144,29 @@ const SettingUIV2 = [
144
144
  controlChangeTrigger: {
145
145
  settings: [
146
146
  {
147
- condition: `boxShadowBtnV2.normal.enable === true`,
147
+ condition: `boxShadowBtn.normal.enable === true`,
148
148
  source: [
149
- 'boxShadowBtnV2',
149
+ 'boxShadowBtn',
150
150
  'hasBoxShadowBtn'
151
151
  ],
152
152
  action: {
153
153
  controlId: 'hasBoxShadowBtn',
154
- groupType: 'advanced',
155
- controlType: 'advanced',
154
+ groupType: 'styles',
155
+ controlType: 'styles',
156
156
  state: 'normal',
157
157
  newValue: true
158
158
  }
159
159
  },
160
160
  {
161
- condition: `boxShadowBtnV2.normal.enable === false`,
161
+ condition: `boxShadowBtn.normal.enable === false`,
162
162
  source: [
163
- 'boxShadowBtnV2',
163
+ 'boxShadowBtn',
164
164
  'hasBoxShadowBtn'
165
165
  ],
166
166
  action: {
167
167
  controlId: 'hasBoxShadowBtn',
168
- groupType: 'advanced',
169
- controlType: 'advanced',
168
+ groupType: 'styles',
169
+ controlType: 'styles',
170
170
  state: 'normal',
171
171
  newValue: false
172
172
  }
@@ -314,7 +314,7 @@ const SettingUIV2 = [
314
314
  en: 'Shadow'
315
315
  },
316
316
  setting: {
317
- id: 'boxShadowBtnV2',
317
+ id: 'boxShadowBtn',
318
318
  state: 'hover'
319
319
  },
320
320
  options: {
@@ -329,29 +329,29 @@ const SettingUIV2 = [
329
329
  controlChangeTrigger: {
330
330
  settings: [
331
331
  {
332
- condition: `boxShadowBtnV2.hover.enable === true`,
332
+ condition: `boxShadowBtn.hover.enable === true`,
333
333
  source: [
334
- 'boxShadowBtnV2',
334
+ 'boxShadowBtn',
335
335
  'hasBoxShadowBtn'
336
336
  ],
337
337
  action: {
338
338
  controlId: 'hasBoxShadowBtn',
339
- groupType: 'advanced',
340
- controlType: 'advanced',
339
+ groupType: 'styles',
340
+ controlType: 'styles',
341
341
  state: 'hover',
342
342
  newValue: true
343
343
  }
344
344
  },
345
345
  {
346
- condition: `boxShadowBtnV2.hover.enable === false`,
346
+ condition: `boxShadowBtn.hover.enable === false`,
347
347
  source: [
348
- 'boxShadowBtnV2',
348
+ 'boxShadowBtn',
349
349
  'hasBoxShadowBtn'
350
350
  ],
351
351
  action: {
352
352
  controlId: 'hasBoxShadowBtn',
353
- groupType: 'advanced',
354
- controlType: 'advanced',
353
+ groupType: 'styles',
354
+ controlType: 'styles',
355
355
  state: 'hover',
356
356
  newValue: false
357
357
  }
@@ -170,7 +170,7 @@ const SettingUIV2 = [
170
170
  options: {
171
171
  labelVariant: 'primary',
172
172
  fullWidth: true,
173
- disableMessage: `Align is not supported when width is 100%`
173
+ disableMessage: `Horizontal alignment is disabled when the width is set to 100% or greater`
174
174
  }
175
175
  }
176
176
  ]
@@ -51,8 +51,8 @@ const getDeviceStyles = ({ uid, device, styles, composeGlobalSize })=>{
51
51
  ${composeSpacing(device, composeGlobalSize.padding)}
52
52
  ${composeSize(composeGlobalSize.width[device] ?? 'auto', composeGlobalSize.height[device] ?? 'auto', false)}
53
53
  ${core.composeShadowCss({
54
- boxShadowValue: styles?.boxShadowBtnV2?.normal,
55
- hasBoxShadow: styles?.boxShadowBtnV2?.normal?.type !== 'none'
54
+ boxShadowValue: styles?.boxShadowBtn?.normal,
55
+ hasBoxShadow: styles?.boxShadowBtn?.normal?.type !== 'none'
56
56
  }) || ''}
57
57
  ${core.composeCornerCss(styles?.roundedBtnV2?.normal, true)}
58
58
  ${device === 'desktop' ? core.composeTypographyV2Css(styles?.typo, true) : ''}
@@ -60,8 +60,8 @@ const getDeviceStyles = ({ uid, device, styles, composeGlobalSize })=>{
60
60
 
61
61
  .wrap__button--unbranded__${uid} .shopify-payment-button .shopify-payment-button__button--unbranded:hover {
62
62
  ${core.composeShadowCss({
63
- boxShadowValue: styles?.boxShadowBtnV2?.hover,
64
- hasBoxShadow: styles?.boxShadowBtnV2?.hover?.type !== 'none',
63
+ boxShadowValue: styles?.boxShadowBtn?.hover,
64
+ hasBoxShadow: styles?.boxShadowBtn?.hover?.type !== 'none',
65
65
  important: true
66
66
  }) || ''}
67
67
  ${core.composeTextHoverColorCss(styles?.textColorHover, true)}
@@ -57,7 +57,7 @@ const getSoldOutButtonStyles = (styles)=>{
57
57
  }
58
58
  };
59
59
  mapStylesByDevice(buttonSoldOutStyles, 'backgroundColorV2', oosBackgroundV2);
60
- mapStylesByDevice(buttonSoldOutStyles, 'boxShadowBtnV2', oosShadowV2);
60
+ mapStylesByDevice(buttonSoldOutStyles, 'boxShadowBtn', oosShadowV2);
61
61
  mapStylesByDevice(buttonSoldOutStyles, 'roundedBtnV2', oosRoundedV2);
62
62
  mapStylesByDevice(buttonSoldOutStyles, 'borderBtnV2', oosBorderV2);
63
63
  if (oosTextColorV2?.normal) {
@@ -199,29 +199,6 @@ const DynamicCheckoutSettings = [
199
199
  },
200
200
  {
201
201
  id: 'boxShadowBtn',
202
- type: 'boxShadow',
203
- label: 'Shadow Style',
204
- hideOnState: {
205
- normal: true,
206
- hover: true
207
- },
208
- default: {
209
- normal: {
210
- type: 'shadow-1',
211
- distance: '4px',
212
- blur: '12px',
213
- spread: '0px',
214
- color: 'rgba(0, 0, 0, 0.20)',
215
- angle: 90
216
- }
217
- },
218
- state: {
219
- normal: true,
220
- hover: true
221
- }
222
- },
223
- {
224
- id: 'boxShadowBtnV2',
225
202
  type: 'shadow-v2',
226
203
  default: {
227
204
  normal: {}
@@ -179,7 +179,7 @@ const SettingUIV2 = [
179
179
  en: 'Shadow'
180
180
  },
181
181
  setting: {
182
- id: 'boxShadowBtnV2',
182
+ id: 'boxShadowBtn',
183
183
  state: 'normal'
184
184
  },
185
185
  options: {
@@ -194,29 +194,29 @@ const SettingUIV2 = [
194
194
  controlChangeTrigger: {
195
195
  settings: [
196
196
  {
197
- condition: `boxShadowBtnV2.normal.enable === true`,
197
+ condition: `boxShadowBtn.normal.enable === true`,
198
198
  source: [
199
- 'boxShadowBtnV2',
199
+ 'boxShadowBtn',
200
200
  'hasBoxShadowBtn'
201
201
  ],
202
202
  action: {
203
203
  controlId: 'hasBoxShadowBtn',
204
- groupType: 'advanced',
205
- controlType: 'advanced',
204
+ groupType: 'styles',
205
+ controlType: 'styles',
206
206
  state: 'normal',
207
207
  newValue: true
208
208
  }
209
209
  },
210
210
  {
211
- condition: `boxShadowBtnV2.normal.enable === false`,
211
+ condition: `boxShadowBtn.normal.enable === false`,
212
212
  source: [
213
- 'boxShadowBtnV2',
213
+ 'boxShadowBtn',
214
214
  'hasBoxShadowBtn'
215
215
  ],
216
216
  action: {
217
217
  controlId: 'hasBoxShadowBtn',
218
- groupType: 'advanced',
219
- controlType: 'advanced',
218
+ groupType: 'styles',
219
+ controlType: 'styles',
220
220
  state: 'normal',
221
221
  newValue: false
222
222
  }
@@ -373,7 +373,7 @@ const SettingUIV2 = [
373
373
  en: 'Shadow'
374
374
  },
375
375
  setting: {
376
- id: 'boxShadowBtnV2',
376
+ id: 'boxShadowBtn',
377
377
  state: 'hover'
378
378
  },
379
379
  options: {
@@ -388,29 +388,29 @@ const SettingUIV2 = [
388
388
  controlChangeTrigger: {
389
389
  settings: [
390
390
  {
391
- condition: `boxShadowBtnV2.hover.enable === true`,
391
+ condition: `boxShadowBtn.hover.enable === true`,
392
392
  source: [
393
- 'boxShadowBtnV2',
393
+ 'boxShadowBtn',
394
394
  'hasBoxShadowBtn'
395
395
  ],
396
396
  action: {
397
397
  controlId: 'hasBoxShadowBtn',
398
- groupType: 'advanced',
399
- controlType: 'advanced',
398
+ groupType: 'styles',
399
+ controlType: 'styles',
400
400
  state: 'hover',
401
401
  newValue: true
402
402
  }
403
403
  },
404
404
  {
405
- condition: `boxShadowBtnV2.hover.enable === false`,
405
+ condition: `boxShadowBtn.hover.enable === false`,
406
406
  source: [
407
- 'boxShadowBtnV2',
407
+ 'boxShadowBtn',
408
408
  'hasBoxShadowBtn'
409
409
  ],
410
410
  action: {
411
411
  controlId: 'hasBoxShadowBtn',
412
- groupType: 'advanced',
413
- controlType: 'advanced',
412
+ groupType: 'styles',
413
+ controlType: 'styles',
414
414
  state: 'hover',
415
415
  newValue: false
416
416
  }