@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
@@ -41,6 +41,10 @@ const product1Col = {
41
41
  },
42
42
  width: {
43
43
  desktop: '600px'
44
+ },
45
+ verticalGutterMobile: {
46
+ desktop: '32px',
47
+ mobile: '16px'
44
48
  }
45
49
  },
46
50
  childrens: [
@@ -293,6 +297,10 @@ const product1ColProductPage = {
293
297
  },
294
298
  width: {
295
299
  desktop: '600px'
300
+ },
301
+ verticalGutterMobile: {
302
+ desktop: '32px',
303
+ mobile: '16px'
296
304
  }
297
305
  },
298
306
  childrens: [
@@ -378,29 +378,6 @@ const ProductButtonSettings = [
378
378
  hover: true
379
379
  }
380
380
  },
381
- {
382
- id: 'boxShadowBtn',
383
- type: 'boxShadow',
384
- label: 'Shadow Style',
385
- hideOnState: {
386
- normal: true,
387
- hover: true
388
- },
389
- default: {
390
- normal: {
391
- type: 'shadow-1',
392
- distance: '4px',
393
- blur: '12px',
394
- spread: '0px',
395
- color: 'rgba(0, 0, 0, 0.20)',
396
- angle: 90
397
- }
398
- },
399
- state: {
400
- normal: true,
401
- hover: true
402
- }
403
- },
404
381
  {
405
382
  id: 'roundedBtn',
406
383
  type: 'radius-preset',
@@ -431,7 +408,7 @@ const ProductButtonSettings = [
431
408
  enableGradient: true
432
409
  },
433
410
  {
434
- id: 'boxShadowBtnV2',
411
+ id: 'boxShadowBtn',
435
412
  type: 'shadow-v2',
436
413
  default: {
437
414
  normal: {}
@@ -448,7 +448,7 @@ const SettingUIV2 = [
448
448
  en: 'Shadow'
449
449
  },
450
450
  setting: {
451
- id: 'boxShadowBtnV2',
451
+ id: 'boxShadowBtn',
452
452
  state: 'normal'
453
453
  },
454
454
  options: {
@@ -463,29 +463,29 @@ const SettingUIV2 = [
463
463
  controlChangeTrigger: {
464
464
  settings: [
465
465
  {
466
- condition: `boxShadowBtnV2.normal.enable === true`,
466
+ condition: `boxShadowBtn.normal.enable === true`,
467
467
  source: [
468
- 'boxShadowBtnV2',
468
+ 'boxShadowBtn',
469
469
  'hasBoxShadowBtn'
470
470
  ],
471
471
  action: {
472
472
  controlId: 'hasBoxShadowBtn',
473
- groupType: 'advanced',
474
- controlType: 'advanced',
473
+ groupType: 'styles',
474
+ controlType: 'styles',
475
475
  state: 'normal',
476
476
  newValue: true
477
477
  }
478
478
  },
479
479
  {
480
- condition: `boxShadowBtnV2.normal.enable === false`,
480
+ condition: `boxShadowBtn.normal.enable === false`,
481
481
  source: [
482
- 'boxShadowBtnV2',
482
+ 'boxShadowBtn',
483
483
  'hasBoxShadowBtn'
484
484
  ],
485
485
  action: {
486
486
  controlId: 'hasBoxShadowBtn',
487
- groupType: 'advanced',
488
- controlType: 'advanced',
487
+ groupType: 'styles',
488
+ controlType: 'styles',
489
489
  state: 'normal',
490
490
  newValue: false
491
491
  }
@@ -724,7 +724,7 @@ const SettingUIV2 = [
724
724
  en: 'Shadow'
725
725
  },
726
726
  setting: {
727
- id: 'boxShadowBtnV2',
727
+ id: 'boxShadowBtn',
728
728
  state: 'hover'
729
729
  },
730
730
  options: {
@@ -739,29 +739,29 @@ const SettingUIV2 = [
739
739
  controlChangeTrigger: {
740
740
  settings: [
741
741
  {
742
- condition: `boxShadowBtnV2.hover.enable === true`,
742
+ condition: `boxShadowBtn.hover.enable === true`,
743
743
  source: [
744
- 'boxShadowBtnV2',
744
+ 'boxShadowBtn',
745
745
  'hasBoxShadowBtn'
746
746
  ],
747
747
  action: {
748
748
  controlId: 'hasBoxShadowBtn',
749
- groupType: 'advanced',
750
- controlType: 'advanced',
749
+ groupType: 'styles',
750
+ controlType: 'styles',
751
751
  state: 'hover',
752
752
  newValue: true
753
753
  }
754
754
  },
755
755
  {
756
- condition: `boxShadowBtnV2.hover.enable === false`,
756
+ condition: `boxShadowBtn.hover.enable === false`,
757
757
  source: [
758
- 'boxShadowBtnV2',
758
+ 'boxShadowBtn',
759
759
  'hasBoxShadowBtn'
760
760
  ],
761
761
  action: {
762
762
  controlId: 'hasBoxShadowBtn',
763
- groupType: 'advanced',
764
- controlType: 'advanced',
763
+ groupType: 'styles',
764
+ controlType: 'styles',
765
765
  state: 'hover',
766
766
  newValue: false
767
767
  }
@@ -217,29 +217,6 @@ const ProductViewMoreSettings = [
217
217
  },
218
218
  {
219
219
  id: 'boxShadowBtn',
220
- type: 'boxShadow',
221
- label: 'Button Shadow',
222
- hideOnState: {
223
- normal: true,
224
- hover: true
225
- },
226
- default: {
227
- normal: {
228
- type: 'shadow-1',
229
- distance: '4px',
230
- blur: '12px',
231
- spread: '0px',
232
- color: 'rgba(0, 0, 0, 0.20)',
233
- angle: 90
234
- }
235
- },
236
- state: {
237
- normal: true,
238
- hover: true
239
- }
240
- },
241
- {
242
- id: 'boxShadowBtnV2',
243
220
  type: 'shadow-v2',
244
221
  default: {
245
222
  normal: {}
@@ -149,7 +149,7 @@ const SettingUIV2 = [
149
149
  en: 'Shadow'
150
150
  },
151
151
  setting: {
152
- id: 'boxShadowBtnV2',
152
+ id: 'boxShadowBtn',
153
153
  state: 'normal'
154
154
  },
155
155
  options: {
@@ -164,29 +164,29 @@ const SettingUIV2 = [
164
164
  controlChangeTrigger: {
165
165
  settings: [
166
166
  {
167
- condition: `boxShadowBtnV2.normal.enable === true`,
167
+ condition: `boxShadowBtn.normal.enable === true`,
168
168
  source: [
169
- 'boxShadowBtnV2',
169
+ 'boxShadowBtn',
170
170
  'hasBoxShadowBtn'
171
171
  ],
172
172
  action: {
173
173
  controlId: 'hasBoxShadowBtn',
174
- groupType: 'advanced',
175
- controlType: 'advanced',
174
+ groupType: 'styles',
175
+ controlType: 'styles',
176
176
  state: 'normal',
177
177
  newValue: true
178
178
  }
179
179
  },
180
180
  {
181
- condition: `boxShadowBtnV2.normal.enable === false`,
181
+ condition: `boxShadowBtn.normal.enable === false`,
182
182
  source: [
183
- 'boxShadowBtnV2',
183
+ 'boxShadowBtn',
184
184
  'hasBoxShadowBtn'
185
185
  ],
186
186
  action: {
187
187
  controlId: 'hasBoxShadowBtn',
188
- groupType: 'advanced',
189
- controlType: 'advanced',
188
+ groupType: 'styles',
189
+ controlType: 'styles',
190
190
  state: 'normal',
191
191
  newValue: false
192
192
  }
@@ -376,7 +376,7 @@ const SettingUIV2 = [
376
376
  en: 'Shadow'
377
377
  },
378
378
  setting: {
379
- id: 'boxShadowBtnV2',
379
+ id: 'boxShadowBtn',
380
380
  state: 'hover'
381
381
  },
382
382
  options: {
@@ -391,29 +391,29 @@ const SettingUIV2 = [
391
391
  controlChangeTrigger: {
392
392
  settings: [
393
393
  {
394
- condition: `boxShadowBtnV2.hover.enable === true`,
394
+ condition: `boxShadowBtn.hover.enable === true`,
395
395
  source: [
396
- 'boxShadowBtnV2',
396
+ 'boxShadowBtn',
397
397
  'hasBoxShadowBtn'
398
398
  ],
399
399
  action: {
400
400
  controlId: 'hasBoxShadowBtn',
401
- groupType: 'advanced',
402
- controlType: 'advanced',
401
+ groupType: 'styles',
402
+ controlType: 'styles',
403
403
  state: 'hover',
404
404
  newValue: true
405
405
  }
406
406
  },
407
407
  {
408
- condition: `boxShadowBtnV2.normal.enable === false`,
408
+ condition: `boxShadowBtn.normal.enable === false`,
409
409
  source: [
410
- 'boxShadowBtnV2',
410
+ 'boxShadowBtn',
411
411
  'hasBoxShadowBtn'
412
412
  ],
413
413
  action: {
414
414
  controlId: 'hasBoxShadowBtn',
415
- groupType: 'advanced',
416
- controlType: 'advanced',
415
+ groupType: 'styles',
416
+ controlType: 'styles',
417
417
  state: 'normal',
418
418
  newValue: false
419
419
  }
@@ -78,7 +78,7 @@ const getHtml5VideoClasses = (aspectRatio, isHiddenVideoHtml5 = false)=>{
78
78
  return composeClasses(classList);
79
79
  };
80
80
  const getWrapperYoutubeClasses = ()=>{
81
- const classList = `gp-pb-[56.25%] gp-h-full gp-w-full !gp-max-w-none`;
81
+ const classList = `gp-pb-[56.25%] gp-h-full gp-w-full !gp-max-w-none gp-pointer-events-none`;
82
82
  return composeClasses(classList);
83
83
  };
84
84
  const getIframeYoutubeClasses = ()=>{
@@ -227,6 +227,21 @@ const SettingUIV2 = [
227
227
  en: 'Size'
228
228
  },
229
229
  controls: [
230
+ {
231
+ label: {
232
+ en: 'Video Ratio'
233
+ },
234
+ setting: {
235
+ id: 'aspectRatio'
236
+ },
237
+ conditionDisplay: 'background.type == "video" && background.videoType == "html5"'
238
+ },
239
+ {
240
+ conditionDisplay: "aspectRatio === 'custom'",
241
+ setting: {
242
+ id: 'ratioOptions'
243
+ }
244
+ },
230
245
  {
231
246
  setting: {
232
247
  id: 'sizeSetting'
@@ -290,7 +305,7 @@ const SettingUIV2 = [
290
305
  setting: {
291
306
  id: 'verticalAlign'
292
307
  },
293
- conditionEnable: 'layout.cols.length > 1'
308
+ conditionEnable: 'layout.cols.length > 1 && layout.type != "right-distributed" && layout.type != "left-distributed"'
294
309
  }
295
310
  ]
296
311
  },
@@ -444,6 +459,7 @@ const SettingUIV2 = [
444
459
  setting: {
445
460
  id: 'enableParallax'
446
461
  },
462
+ conditionDisplay: 'background.type == "image"',
447
463
  defaultValueWhenClear: false,
448
464
  controls: [
449
465
  {
@@ -558,7 +574,7 @@ const SettingUIV2 = [
558
574
  options: {
559
575
  labelVariant: 'primary',
560
576
  fullWidth: true,
561
- disableMessage: `Align is not supported when width is 100%`
577
+ disableMessage: `This option is disabled because the width was set to 100%`
562
578
  }
563
579
  }
564
580
  ]
@@ -38,10 +38,10 @@ const ignoreStateNoneValue = (obj, condition)=>{
38
38
  }, {});
39
39
  };
40
40
  const getShadowStyles = (styles1)=>{
41
- const { boxShadowBtnV2: boxShadowBtnV21 } = styles1 || {};
42
- const ignoreNoneValueObjectShadow1 = ignoreStateNoneValue(boxShadowBtnV21 || {}, 'value?.enable !== false');
41
+ const { boxShadowBtn: boxShadowBtn1 } = styles1 || {};
42
+ const ignoreNoneValueObjectShadow1 = ignoreStateNoneValue(boxShadowBtn1 || {}, 'value?.enable !== false');
43
43
  return {
44
- ...getStyleShadowState(ignoreNoneValueObjectShadow1, 'box-shadow', isEnableShadowStateForDevice(boxShadowBtnV21))
44
+ ...getStyleShadowState(ignoreNoneValueObjectShadow1, 'box-shadow', isEnableShadowStateForDevice(boxShadowBtn1))
45
45
  };
46
46
  };
47
47
  const getRadiusStyles = (styles1)=>{
@@ -108,19 +108,6 @@ const ButtonSettings = [
108
108
  {
109
109
  id: 'style',
110
110
  controls: [
111
- {
112
- id: 'hasBoxShadowBtn',
113
- type: 'toggle',
114
- label: 'Enable Button Shadow',
115
- default: {
116
- normal: false,
117
- hover: false
118
- },
119
- state: {
120
- normal: true,
121
- hover: true
122
- }
123
- },
124
111
  {
125
112
  id: 'borderBtnV2',
126
113
  type: 'border-v2',
@@ -211,29 +198,6 @@ const ButtonSettings = [
211
198
  normal: true
212
199
  }
213
200
  },
214
- {
215
- id: 'boxShadowBtn',
216
- type: 'boxShadow',
217
- label: 'Button Shadow',
218
- hideOnState: {
219
- normal: true,
220
- hover: true
221
- },
222
- default: {
223
- normal: {
224
- type: 'shadow-1',
225
- distance: '4px',
226
- blur: '12px',
227
- spread: '0px',
228
- color: 'rgba(0, 0, 0, 0.20)',
229
- angle: 90
230
- }
231
- },
232
- state: {
233
- normal: true,
234
- hover: true
235
- }
236
- },
237
201
  {
238
202
  id: 'hasBoxShadowBtn',
239
203
  type: 'toggle',
@@ -248,7 +212,7 @@ const ButtonSettings = [
248
212
  }
249
213
  },
250
214
  {
251
- id: 'boxShadowBtnV2',
215
+ id: 'boxShadowBtn',
252
216
  type: 'shadow-v2',
253
217
  default: {
254
218
  normal: {}
@@ -149,7 +149,7 @@ const SettingUIV2 = [
149
149
  en: 'Shadow'
150
150
  },
151
151
  setting: {
152
- id: 'boxShadowBtnV2',
152
+ id: 'boxShadowBtn',
153
153
  state: 'normal'
154
154
  },
155
155
  options: {
@@ -164,29 +164,29 @@ const SettingUIV2 = [
164
164
  controlChangeTrigger: {
165
165
  settings: [
166
166
  {
167
- condition: `boxShadowBtnV2.normal.enable === true`,
167
+ condition: `boxShadowBtn.normal.enable === true`,
168
168
  source: [
169
- 'boxShadowBtnV2',
169
+ 'boxShadowBtn',
170
170
  'hasBoxShadowBtn'
171
171
  ],
172
172
  action: {
173
173
  controlId: 'hasBoxShadowBtn',
174
- groupType: 'advanced',
175
- controlType: 'advanced',
174
+ groupType: 'styles',
175
+ controlType: 'styles',
176
176
  state: 'normal',
177
177
  newValue: true
178
178
  }
179
179
  },
180
180
  {
181
- condition: `boxShadowBtnV2.normal.enable === false`,
181
+ condition: `boxShadowBtn.normal.enable === false`,
182
182
  source: [
183
- 'boxShadowBtnV2',
183
+ 'boxShadowBtn',
184
184
  'hasBoxShadowBtn'
185
185
  ],
186
186
  action: {
187
187
  controlId: 'hasBoxShadowBtn',
188
- groupType: 'advanced',
189
- controlType: 'advanced',
188
+ groupType: 'styles',
189
+ controlType: 'styles',
190
190
  state: 'normal',
191
191
  newValue: false
192
192
  }
@@ -376,7 +376,7 @@ const SettingUIV2 = [
376
376
  en: 'Shadow'
377
377
  },
378
378
  setting: {
379
- id: 'boxShadowBtnV2',
379
+ id: 'boxShadowBtn',
380
380
  state: 'hover'
381
381
  },
382
382
  options: {
@@ -391,29 +391,29 @@ const SettingUIV2 = [
391
391
  controlChangeTrigger: {
392
392
  settings: [
393
393
  {
394
- condition: `boxShadowBtnV2.hover.enable === true`,
394
+ condition: `boxShadowBtn.hover.enable === true`,
395
395
  source: [
396
- 'boxShadowBtnV2',
396
+ 'boxShadowBtn',
397
397
  'hasBoxShadowBtn'
398
398
  ],
399
399
  action: {
400
400
  controlId: 'hasBoxShadowBtn',
401
- groupType: 'advanced',
402
- controlType: 'advanced',
401
+ groupType: 'styles',
402
+ controlType: 'styles',
403
403
  state: 'hover',
404
404
  newValue: true
405
405
  }
406
406
  },
407
407
  {
408
- condition: `boxShadowBtnV2.hover.enable === false`,
408
+ condition: `boxShadowBtn.hover.enable === false`,
409
409
  source: [
410
- 'boxShadowBtnV2',
410
+ 'boxShadowBtn',
411
411
  'hasBoxShadowBtn'
412
412
  ],
413
413
  action: {
414
414
  controlId: 'hasBoxShadowBtn',
415
- groupType: 'advanced',
416
- controlType: 'advanced',
415
+ groupType: 'styles',
416
+ controlType: 'styles',
417
417
  state: 'hover',
418
418
  newValue: false
419
419
  }
@@ -16,7 +16,7 @@ const getInnerBorderCornerCss = (data)=>{
16
16
  const { uid, styles } = data;
17
17
  const borderBtnV2 = styles?.borderBtnV2;
18
18
  const roundedBtnV2 = styles?.roundedBtnV2;
19
- const boxShadowBtnV2 = styles?.boxShadowBtnV2;
19
+ const boxShadowBtn = styles?.boxShadowBtn;
20
20
  const getShadowValue = (value)=>value ? getStyleShadow({
21
21
  value,
22
22
  state: 'active',
@@ -38,7 +38,7 @@ const getInnerBorderCornerCss = (data)=>{
38
38
  important: true
39
39
  })};
40
40
  ${composeCornerCss(roundedBtnV2?.active, true)};
41
- box-shadow: ${getShadowValue(boxShadowBtnV2?.active ?? {})} !important;
41
+ box-shadow: ${getShadowValue(boxShadowBtn?.active ?? {})} !important;
42
42
  }
43
43
  .gp-coupon[data-active="true"] .${uid} {
44
44
  ${composeCornerCss(roundedBtnV2?.active, true)};
@@ -466,7 +466,7 @@ const CouponSettings = [
466
466
  }
467
467
  },
468
468
  {
469
- id: 'boxShadowBtnV2',
469
+ id: 'boxShadowBtn',
470
470
  type: 'shadow-v2',
471
471
  default: {
472
472
  normal: {}