@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
@@ -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) {
@@ -197,29 +197,6 @@ const DynamicCheckoutSettings = [
197
197
  },
198
198
  {
199
199
  id: 'boxShadowBtn',
200
- type: 'boxShadow',
201
- label: 'Shadow Style',
202
- hideOnState: {
203
- normal: true,
204
- hover: true
205
- },
206
- default: {
207
- normal: {
208
- type: 'shadow-1',
209
- distance: '4px',
210
- blur: '12px',
211
- spread: '0px',
212
- color: 'rgba(0, 0, 0, 0.20)',
213
- angle: 90
214
- }
215
- },
216
- state: {
217
- normal: true,
218
- hover: true
219
- }
220
- },
221
- {
222
- id: 'boxShadowBtnV2',
223
200
  type: 'shadow-v2',
224
201
  default: {
225
202
  normal: {}
@@ -177,7 +177,7 @@ const SettingUIV2 = [
177
177
  en: 'Shadow'
178
178
  },
179
179
  setting: {
180
- id: 'boxShadowBtnV2',
180
+ id: 'boxShadowBtn',
181
181
  state: 'normal'
182
182
  },
183
183
  options: {
@@ -192,29 +192,29 @@ const SettingUIV2 = [
192
192
  controlChangeTrigger: {
193
193
  settings: [
194
194
  {
195
- condition: `boxShadowBtnV2.normal.enable === true`,
195
+ condition: `boxShadowBtn.normal.enable === true`,
196
196
  source: [
197
- 'boxShadowBtnV2',
197
+ 'boxShadowBtn',
198
198
  'hasBoxShadowBtn'
199
199
  ],
200
200
  action: {
201
201
  controlId: 'hasBoxShadowBtn',
202
- groupType: 'advanced',
203
- controlType: 'advanced',
202
+ groupType: 'styles',
203
+ controlType: 'styles',
204
204
  state: 'normal',
205
205
  newValue: true
206
206
  }
207
207
  },
208
208
  {
209
- condition: `boxShadowBtnV2.normal.enable === false`,
209
+ condition: `boxShadowBtn.normal.enable === false`,
210
210
  source: [
211
- 'boxShadowBtnV2',
211
+ 'boxShadowBtn',
212
212
  'hasBoxShadowBtn'
213
213
  ],
214
214
  action: {
215
215
  controlId: 'hasBoxShadowBtn',
216
- groupType: 'advanced',
217
- controlType: 'advanced',
216
+ groupType: 'styles',
217
+ controlType: 'styles',
218
218
  state: 'normal',
219
219
  newValue: false
220
220
  }
@@ -371,7 +371,7 @@ const SettingUIV2 = [
371
371
  en: 'Shadow'
372
372
  },
373
373
  setting: {
374
- id: 'boxShadowBtnV2',
374
+ id: 'boxShadowBtn',
375
375
  state: 'hover'
376
376
  },
377
377
  options: {
@@ -386,29 +386,29 @@ const SettingUIV2 = [
386
386
  controlChangeTrigger: {
387
387
  settings: [
388
388
  {
389
- condition: `boxShadowBtnV2.hover.enable === true`,
389
+ condition: `boxShadowBtn.hover.enable === true`,
390
390
  source: [
391
- 'boxShadowBtnV2',
391
+ 'boxShadowBtn',
392
392
  'hasBoxShadowBtn'
393
393
  ],
394
394
  action: {
395
395
  controlId: 'hasBoxShadowBtn',
396
- groupType: 'advanced',
397
- controlType: 'advanced',
396
+ groupType: 'styles',
397
+ controlType: 'styles',
398
398
  state: 'hover',
399
399
  newValue: true
400
400
  }
401
401
  },
402
402
  {
403
- condition: `boxShadowBtnV2.hover.enable === false`,
403
+ condition: `boxShadowBtn.hover.enable === false`,
404
404
  source: [
405
- 'boxShadowBtnV2',
405
+ 'boxShadowBtn',
406
406
  'hasBoxShadowBtn'
407
407
  ],
408
408
  action: {
409
409
  controlId: 'hasBoxShadowBtn',
410
- groupType: 'advanced',
411
- controlType: 'advanced',
410
+ groupType: 'styles',
411
+ controlType: 'styles',
412
412
  state: 'hover',
413
413
  newValue: false
414
414
  }
@@ -376,29 +376,6 @@ const ProductButtonSettings = [
376
376
  hover: true
377
377
  }
378
378
  },
379
- {
380
- id: 'boxShadowBtn',
381
- type: 'boxShadow',
382
- label: 'Shadow Style',
383
- hideOnState: {
384
- normal: true,
385
- hover: true
386
- },
387
- default: {
388
- normal: {
389
- type: 'shadow-1',
390
- distance: '4px',
391
- blur: '12px',
392
- spread: '0px',
393
- color: 'rgba(0, 0, 0, 0.20)',
394
- angle: 90
395
- }
396
- },
397
- state: {
398
- normal: true,
399
- hover: true
400
- }
401
- },
402
379
  {
403
380
  id: 'roundedBtn',
404
381
  type: 'radius-preset',
@@ -429,7 +406,7 @@ const ProductButtonSettings = [
429
406
  enableGradient: true
430
407
  },
431
408
  {
432
- id: 'boxShadowBtnV2',
409
+ id: 'boxShadowBtn',
433
410
  type: 'shadow-v2',
434
411
  default: {
435
412
  normal: {}
@@ -446,7 +446,7 @@ const SettingUIV2 = [
446
446
  en: 'Shadow'
447
447
  },
448
448
  setting: {
449
- id: 'boxShadowBtnV2',
449
+ id: 'boxShadowBtn',
450
450
  state: 'normal'
451
451
  },
452
452
  options: {
@@ -461,29 +461,29 @@ const SettingUIV2 = [
461
461
  controlChangeTrigger: {
462
462
  settings: [
463
463
  {
464
- condition: `boxShadowBtnV2.normal.enable === true`,
464
+ condition: `boxShadowBtn.normal.enable === true`,
465
465
  source: [
466
- 'boxShadowBtnV2',
466
+ 'boxShadowBtn',
467
467
  'hasBoxShadowBtn'
468
468
  ],
469
469
  action: {
470
470
  controlId: 'hasBoxShadowBtn',
471
- groupType: 'advanced',
472
- controlType: 'advanced',
471
+ groupType: 'styles',
472
+ controlType: 'styles',
473
473
  state: 'normal',
474
474
  newValue: true
475
475
  }
476
476
  },
477
477
  {
478
- condition: `boxShadowBtnV2.normal.enable === false`,
478
+ condition: `boxShadowBtn.normal.enable === false`,
479
479
  source: [
480
- 'boxShadowBtnV2',
480
+ 'boxShadowBtn',
481
481
  'hasBoxShadowBtn'
482
482
  ],
483
483
  action: {
484
484
  controlId: 'hasBoxShadowBtn',
485
- groupType: 'advanced',
486
- controlType: 'advanced',
485
+ groupType: 'styles',
486
+ controlType: 'styles',
487
487
  state: 'normal',
488
488
  newValue: false
489
489
  }
@@ -722,7 +722,7 @@ const SettingUIV2 = [
722
722
  en: 'Shadow'
723
723
  },
724
724
  setting: {
725
- id: 'boxShadowBtnV2',
725
+ id: 'boxShadowBtn',
726
726
  state: 'hover'
727
727
  },
728
728
  options: {
@@ -737,29 +737,29 @@ const SettingUIV2 = [
737
737
  controlChangeTrigger: {
738
738
  settings: [
739
739
  {
740
- condition: `boxShadowBtnV2.hover.enable === true`,
740
+ condition: `boxShadowBtn.hover.enable === true`,
741
741
  source: [
742
- 'boxShadowBtnV2',
742
+ 'boxShadowBtn',
743
743
  'hasBoxShadowBtn'
744
744
  ],
745
745
  action: {
746
746
  controlId: 'hasBoxShadowBtn',
747
- groupType: 'advanced',
748
- controlType: 'advanced',
747
+ groupType: 'styles',
748
+ controlType: 'styles',
749
749
  state: 'hover',
750
750
  newValue: true
751
751
  }
752
752
  },
753
753
  {
754
- condition: `boxShadowBtnV2.hover.enable === false`,
754
+ condition: `boxShadowBtn.hover.enable === false`,
755
755
  source: [
756
- 'boxShadowBtnV2',
756
+ 'boxShadowBtn',
757
757
  'hasBoxShadowBtn'
758
758
  ],
759
759
  action: {
760
760
  controlId: 'hasBoxShadowBtn',
761
- groupType: 'advanced',
762
- controlType: 'advanced',
761
+ groupType: 'styles',
762
+ controlType: 'styles',
763
763
  state: 'hover',
764
764
  newValue: false
765
765
  }
@@ -215,29 +215,6 @@ const ProductViewMoreSettings = [
215
215
  },
216
216
  {
217
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
- {
240
- id: 'boxShadowBtnV2',
241
218
  type: 'shadow-v2',
242
219
  default: {
243
220
  normal: {}
@@ -147,7 +147,7 @@ const SettingUIV2 = [
147
147
  en: 'Shadow'
148
148
  },
149
149
  setting: {
150
- id: 'boxShadowBtnV2',
150
+ id: 'boxShadowBtn',
151
151
  state: 'normal'
152
152
  },
153
153
  options: {
@@ -162,29 +162,29 @@ const SettingUIV2 = [
162
162
  controlChangeTrigger: {
163
163
  settings: [
164
164
  {
165
- condition: `boxShadowBtnV2.normal.enable === true`,
165
+ condition: `boxShadowBtn.normal.enable === true`,
166
166
  source: [
167
- 'boxShadowBtnV2',
167
+ 'boxShadowBtn',
168
168
  'hasBoxShadowBtn'
169
169
  ],
170
170
  action: {
171
171
  controlId: 'hasBoxShadowBtn',
172
- groupType: 'advanced',
173
- controlType: 'advanced',
172
+ groupType: 'styles',
173
+ controlType: 'styles',
174
174
  state: 'normal',
175
175
  newValue: true
176
176
  }
177
177
  },
178
178
  {
179
- condition: `boxShadowBtnV2.normal.enable === false`,
179
+ condition: `boxShadowBtn.normal.enable === false`,
180
180
  source: [
181
- 'boxShadowBtnV2',
181
+ 'boxShadowBtn',
182
182
  'hasBoxShadowBtn'
183
183
  ],
184
184
  action: {
185
185
  controlId: 'hasBoxShadowBtn',
186
- groupType: 'advanced',
187
- controlType: 'advanced',
186
+ groupType: 'styles',
187
+ controlType: 'styles',
188
188
  state: 'normal',
189
189
  newValue: false
190
190
  }
@@ -374,7 +374,7 @@ const SettingUIV2 = [
374
374
  en: 'Shadow'
375
375
  },
376
376
  setting: {
377
- id: 'boxShadowBtnV2',
377
+ id: 'boxShadowBtn',
378
378
  state: 'hover'
379
379
  },
380
380
  options: {
@@ -389,29 +389,29 @@ const SettingUIV2 = [
389
389
  controlChangeTrigger: {
390
390
  settings: [
391
391
  {
392
- condition: `boxShadowBtnV2.hover.enable === true`,
392
+ condition: `boxShadowBtn.hover.enable === true`,
393
393
  source: [
394
- 'boxShadowBtnV2',
394
+ 'boxShadowBtn',
395
395
  'hasBoxShadowBtn'
396
396
  ],
397
397
  action: {
398
398
  controlId: 'hasBoxShadowBtn',
399
- groupType: 'advanced',
400
- controlType: 'advanced',
399
+ groupType: 'styles',
400
+ controlType: 'styles',
401
401
  state: 'hover',
402
402
  newValue: true
403
403
  }
404
404
  },
405
405
  {
406
- condition: `boxShadowBtnV2.normal.enable === false`,
406
+ condition: `boxShadowBtn.normal.enable === false`,
407
407
  source: [
408
- 'boxShadowBtnV2',
408
+ 'boxShadowBtn',
409
409
  'hasBoxShadowBtn'
410
410
  ],
411
411
  action: {
412
412
  controlId: 'hasBoxShadowBtn',
413
- groupType: 'advanced',
414
- controlType: 'advanced',
413
+ groupType: 'styles',
414
+ controlType: 'styles',
415
415
  state: 'normal',
416
416
  newValue: false
417
417
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.717",
3
+ "version": "2.0.0-dev.718",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",