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

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 (45) hide show
  1. package/dist/cjs/banner/components/common/getClasses.js +1 -1
  2. package/dist/cjs/banner/setting/uiV2.js +18 -2
  3. package/dist/cjs/button/components/common/styles.js +3 -3
  4. package/dist/cjs/button/setting/configs/settings.js +1 -37
  5. package/dist/cjs/button/setting/configs/uiV2.js +18 -18
  6. package/dist/cjs/coupon/common/styles.js +2 -2
  7. package/dist/cjs/coupon/setting/config/settings.js +1 -1
  8. package/dist/cjs/coupon/setting/config/uiV2.js +135 -3
  9. package/dist/cjs/form/setting/submit-button/configs/settings.js +1 -24
  10. package/dist/cjs/form/setting/submit-button/configs/uiV2.js +18 -18
  11. package/dist/cjs/form/setting/text-field/configs/uiV2.js +1 -1
  12. package/dist/cjs/product/components/DynamicCheckout/common/styles.js +4 -4
  13. package/dist/cjs/product/components/ProductButton/common/styles.js +1 -1
  14. package/dist/cjs/product/setting/constant/bundle-layout/verticalThree.js +297 -125
  15. package/dist/cjs/product/setting/constant/bundle-layout/verticalTwo.js +296 -125
  16. package/dist/cjs/product/setting/dynamic-checkout/configs/settings.js +0 -23
  17. package/dist/cjs/product/setting/dynamic-checkout/configs/uiV2.js +18 -18
  18. package/dist/cjs/product/setting/product/configs/product-presets/product-1-col.js +8 -0
  19. package/dist/cjs/product/setting/product-button/configs/settings.js +1 -24
  20. package/dist/cjs/product/setting/product-button/configs/uiV2.js +18 -18
  21. package/dist/cjs/product/setting/product-view-more/configs/settings.js +0 -23
  22. package/dist/cjs/product/setting/product-view-more/configs/uiV2.js +18 -18
  23. package/dist/esm/banner/components/common/getClasses.js +1 -1
  24. package/dist/esm/banner/setting/uiV2.js +18 -2
  25. package/dist/esm/button/components/common/styles.js +3 -3
  26. package/dist/esm/button/setting/configs/settings.js +1 -37
  27. package/dist/esm/button/setting/configs/uiV2.js +18 -18
  28. package/dist/esm/coupon/common/styles.js +2 -2
  29. package/dist/esm/coupon/setting/config/settings.js +1 -1
  30. package/dist/esm/coupon/setting/config/uiV2.js +135 -3
  31. package/dist/esm/form/setting/submit-button/configs/settings.js +1 -24
  32. package/dist/esm/form/setting/submit-button/configs/uiV2.js +18 -18
  33. package/dist/esm/form/setting/text-field/configs/uiV2.js +1 -1
  34. package/dist/esm/product/components/DynamicCheckout/common/styles.js +4 -4
  35. package/dist/esm/product/components/ProductButton/common/styles.js +1 -1
  36. package/dist/esm/product/setting/constant/bundle-layout/verticalThree.js +297 -125
  37. package/dist/esm/product/setting/constant/bundle-layout/verticalTwo.js +296 -125
  38. package/dist/esm/product/setting/dynamic-checkout/configs/settings.js +0 -23
  39. package/dist/esm/product/setting/dynamic-checkout/configs/uiV2.js +18 -18
  40. package/dist/esm/product/setting/product/configs/product-presets/product-1-col.js +8 -0
  41. package/dist/esm/product/setting/product-button/configs/settings.js +1 -24
  42. package/dist/esm/product/setting/product-button/configs/uiV2.js +18 -18
  43. package/dist/esm/product/setting/product-view-more/configs/settings.js +0 -23
  44. package/dist/esm/product/setting/product-view-more/configs/uiV2.js +18 -18
  45. package/package.json +2 -2
@@ -217,8 +217,52 @@ const SettingUIV2 = [
217
217
  en: 'Shadow'
218
218
  },
219
219
  setting: {
220
- id: 'boxShadowBtnV2',
220
+ id: 'boxShadowBtn',
221
221
  state: 'normal'
222
+ },
223
+ options: {
224
+ updateFields: [
225
+ {
226
+ field: 'enable',
227
+ settingId: 'hasBoxShadowBtn',
228
+ state: 'normal'
229
+ }
230
+ ]
231
+ },
232
+ controlChangeTrigger: {
233
+ settings: [
234
+ {
235
+ condition: `boxShadowBtn.normal.enable === true`,
236
+ source: [
237
+ 'boxShadowBtn',
238
+ 'hasBoxShadowBtn'
239
+ ],
240
+ action: {
241
+ controlId: 'hasBoxShadowBtn',
242
+ groupType: 'styles',
243
+ controlType: 'styles',
244
+ state: 'normal',
245
+ newValue: true
246
+ }
247
+ },
248
+ {
249
+ condition: `boxShadowBtn.normal.enable === false`,
250
+ source: [
251
+ 'boxShadowBtn',
252
+ 'hasBoxShadowBtn'
253
+ ],
254
+ action: {
255
+ controlId: 'hasBoxShadowBtn',
256
+ groupType: 'styles',
257
+ controlType: 'styles',
258
+ state: 'normal',
259
+ newValue: false
260
+ }
261
+ }
262
+ ],
263
+ options: {
264
+ noRecordHistory: true
265
+ }
222
266
  }
223
267
  }
224
268
  ]
@@ -434,8 +478,52 @@ const SettingUIV2 = [
434
478
  en: 'Shadow'
435
479
  },
436
480
  setting: {
437
- id: 'boxShadowBtnV2',
481
+ id: 'boxShadowBtn',
438
482
  state: 'hover'
483
+ },
484
+ options: {
485
+ updateFields: [
486
+ {
487
+ field: 'enable',
488
+ settingId: 'hasBoxShadowBtn',
489
+ state: 'hover'
490
+ }
491
+ ]
492
+ },
493
+ controlChangeTrigger: {
494
+ settings: [
495
+ {
496
+ condition: `boxShadowBtn.hover.enable === true`,
497
+ source: [
498
+ 'boxShadowBtn',
499
+ 'hasBoxShadowBtn'
500
+ ],
501
+ action: {
502
+ controlId: 'hasBoxShadowBtn',
503
+ groupType: 'styles',
504
+ controlType: 'styles',
505
+ state: 'hover',
506
+ newValue: true
507
+ }
508
+ },
509
+ {
510
+ condition: `boxShadowBtn.hover.enable === false`,
511
+ source: [
512
+ 'boxShadowBtn',
513
+ 'hasBoxShadowBtn'
514
+ ],
515
+ action: {
516
+ controlId: 'hasBoxShadowBtn',
517
+ groupType: 'styles',
518
+ controlType: 'styles',
519
+ state: 'hover',
520
+ newValue: false
521
+ }
522
+ }
523
+ ],
524
+ options: {
525
+ noRecordHistory: true
526
+ }
439
527
  }
440
528
  }
441
529
  ]
@@ -533,8 +621,52 @@ const SettingUIV2 = [
533
621
  en: 'Shadow'
534
622
  },
535
623
  setting: {
536
- id: 'boxShadowBtnV2',
624
+ id: 'boxShadowBtn',
537
625
  state: 'active'
626
+ },
627
+ options: {
628
+ updateFields: [
629
+ {
630
+ field: 'enable',
631
+ settingId: 'hasBoxShadowBtn',
632
+ state: 'active'
633
+ }
634
+ ]
635
+ },
636
+ controlChangeTrigger: {
637
+ settings: [
638
+ {
639
+ condition: `boxShadowBtn.active.enable === true`,
640
+ source: [
641
+ 'boxShadowBtn',
642
+ 'hasBoxShadowBtn'
643
+ ],
644
+ action: {
645
+ controlId: 'hasBoxShadowBtn',
646
+ groupType: 'styles',
647
+ controlType: 'styles',
648
+ state: 'active',
649
+ newValue: true
650
+ }
651
+ },
652
+ {
653
+ condition: `boxShadowBtn.active.enable === false`,
654
+ source: [
655
+ 'boxShadowBtn',
656
+ 'hasBoxShadowBtn'
657
+ ],
658
+ action: {
659
+ controlId: 'hasBoxShadowBtn',
660
+ groupType: 'styles',
661
+ controlType: 'styles',
662
+ state: 'active',
663
+ newValue: false
664
+ }
665
+ }
666
+ ],
667
+ options: {
668
+ noRecordHistory: true
669
+ }
538
670
  }
539
671
  }
540
672
  ]
@@ -170,7 +170,7 @@ const SubmitButtonSettings = [
170
170
  }
171
171
  },
172
172
  {
173
- id: 'boxShadowBtnV2',
173
+ id: 'boxShadowBtn',
174
174
  type: 'shadow-v2',
175
175
  default: {
176
176
  normal: {
@@ -286,29 +286,6 @@ const SubmitButtonSettings = [
286
286
  hover: true
287
287
  }
288
288
  },
289
- {
290
- id: 'boxShadowBtn',
291
- type: 'shadow-v2',
292
- label: 'Button Shadow',
293
- hideOnState: {
294
- normal: true,
295
- hover: true
296
- },
297
- default: {
298
- normal: {
299
- type: 'none',
300
- distance: '4px',
301
- blur: '12px',
302
- spread: '0px',
303
- color: 'rgba(0, 0, 0, 0.20)',
304
- angle: 90
305
- }
306
- },
307
- state: {
308
- normal: true,
309
- hover: true
310
- }
311
- },
312
289
  {
313
290
  id: 'roundedBtn',
314
291
  type: 'radius-preset',
@@ -127,7 +127,7 @@ const SettingUIV2 = [
127
127
  en: 'Shadow'
128
128
  },
129
129
  setting: {
130
- id: 'boxShadowBtnV2',
130
+ id: 'boxShadowBtn',
131
131
  state: 'normal'
132
132
  },
133
133
  options: {
@@ -142,29 +142,29 @@ const SettingUIV2 = [
142
142
  controlChangeTrigger: {
143
143
  settings: [
144
144
  {
145
- condition: `boxShadowBtnV2.normal.enable === true`,
145
+ condition: `boxShadowBtn.normal.enable === true`,
146
146
  source: [
147
- 'boxShadowBtnV2',
147
+ 'boxShadowBtn',
148
148
  'hasBoxShadowBtn'
149
149
  ],
150
150
  action: {
151
151
  controlId: 'hasBoxShadowBtn',
152
- groupType: 'advanced',
153
- controlType: 'advanced',
152
+ groupType: 'styles',
153
+ controlType: 'styles',
154
154
  state: 'normal',
155
155
  newValue: true
156
156
  }
157
157
  },
158
158
  {
159
- condition: `boxShadowBtnV2.normal.enable === false`,
159
+ condition: `boxShadowBtn.normal.enable === false`,
160
160
  source: [
161
- 'boxShadowBtnV2',
161
+ 'boxShadowBtn',
162
162
  'hasBoxShadowBtn'
163
163
  ],
164
164
  action: {
165
165
  controlId: 'hasBoxShadowBtn',
166
- groupType: 'advanced',
167
- controlType: 'advanced',
166
+ groupType: 'styles',
167
+ controlType: 'styles',
168
168
  state: 'normal',
169
169
  newValue: false
170
170
  }
@@ -312,7 +312,7 @@ const SettingUIV2 = [
312
312
  en: 'Shadow'
313
313
  },
314
314
  setting: {
315
- id: 'boxShadowBtnV2',
315
+ id: 'boxShadowBtn',
316
316
  state: 'hover'
317
317
  },
318
318
  options: {
@@ -327,29 +327,29 @@ const SettingUIV2 = [
327
327
  controlChangeTrigger: {
328
328
  settings: [
329
329
  {
330
- condition: `boxShadowBtnV2.hover.enable === true`,
330
+ condition: `boxShadowBtn.hover.enable === true`,
331
331
  source: [
332
- 'boxShadowBtnV2',
332
+ 'boxShadowBtn',
333
333
  'hasBoxShadowBtn'
334
334
  ],
335
335
  action: {
336
336
  controlId: 'hasBoxShadowBtn',
337
- groupType: 'advanced',
338
- controlType: 'advanced',
337
+ groupType: 'styles',
338
+ controlType: 'styles',
339
339
  state: 'hover',
340
340
  newValue: true
341
341
  }
342
342
  },
343
343
  {
344
- condition: `boxShadowBtnV2.hover.enable === false`,
344
+ condition: `boxShadowBtn.hover.enable === false`,
345
345
  source: [
346
- 'boxShadowBtnV2',
346
+ 'boxShadowBtn',
347
347
  'hasBoxShadowBtn'
348
348
  ],
349
349
  action: {
350
350
  controlId: 'hasBoxShadowBtn',
351
- groupType: 'advanced',
352
- controlType: 'advanced',
351
+ groupType: 'styles',
352
+ controlType: 'styles',
353
353
  state: 'hover',
354
354
  newValue: false
355
355
  }
@@ -168,7 +168,7 @@ const SettingUIV2 = [
168
168
  options: {
169
169
  labelVariant: 'primary',
170
170
  fullWidth: true,
171
- disableMessage: `Align is not supported when width is 100%`
171
+ disableMessage: `Horizontal alignment is disabled when the width is set to 100% or greater`
172
172
  }
173
173
  }
174
174
  ]
@@ -49,8 +49,8 @@ const getDeviceStyles = ({ uid, device, styles, composeGlobalSize })=>{
49
49
  ${composeSpacing(device, composeGlobalSize.padding)}
50
50
  ${composeSize(composeGlobalSize.width[device] ?? 'auto', composeGlobalSize.height[device] ?? 'auto', false)}
51
51
  ${composeShadowCss({
52
- boxShadowValue: styles?.boxShadowBtnV2?.normal,
53
- hasBoxShadow: styles?.boxShadowBtnV2?.normal?.type !== 'none'
52
+ boxShadowValue: styles?.boxShadowBtn?.normal,
53
+ hasBoxShadow: styles?.boxShadowBtn?.normal?.type !== 'none'
54
54
  }) || ''}
55
55
  ${composeCornerCss(styles?.roundedBtnV2?.normal, true)}
56
56
  ${device === 'desktop' ? composeTypographyV2Css(styles?.typo, true) : ''}
@@ -58,8 +58,8 @@ const getDeviceStyles = ({ uid, device, styles, composeGlobalSize })=>{
58
58
 
59
59
  .wrap__button--unbranded__${uid} .shopify-payment-button .shopify-payment-button__button--unbranded:hover {
60
60
  ${composeShadowCss({
61
- boxShadowValue: styles?.boxShadowBtnV2?.hover,
62
- hasBoxShadow: styles?.boxShadowBtnV2?.hover?.type !== 'none',
61
+ boxShadowValue: styles?.boxShadowBtn?.hover,
62
+ hasBoxShadow: styles?.boxShadowBtn?.hover?.type !== 'none',
63
63
  important: true
64
64
  }) || ''}
65
65
  ${composeTextHoverColorCss(styles?.textColorHover, true)}
@@ -55,7 +55,7 @@ const getSoldOutButtonStyles = (styles)=>{
55
55
  }
56
56
  };
57
57
  mapStylesByDevice(buttonSoldOutStyles, 'backgroundColorV2', oosBackgroundV2);
58
- mapStylesByDevice(buttonSoldOutStyles, 'boxShadowBtnV2', oosShadowV2);
58
+ mapStylesByDevice(buttonSoldOutStyles, 'boxShadowBtn', oosShadowV2);
59
59
  mapStylesByDevice(buttonSoldOutStyles, 'roundedBtnV2', oosRoundedV2);
60
60
  mapStylesByDevice(buttonSoldOutStyles, 'borderBtnV2', oosBorderV2);
61
61
  if (oosTextColorV2?.normal) {