@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
@@ -62,7 +62,7 @@ const verticalTwo = [
62
62
  }
63
63
  },
64
64
  tag: 'Text',
65
- uid: 'gM8g6bIPhc',
65
+ uid: 'g7Gsjncudx',
66
66
  childrens: []
67
67
  },
68
68
  {
@@ -121,7 +121,7 @@ const verticalTwo = [
121
121
  }
122
122
  },
123
123
  tag: 'Text',
124
- uid: 'gKf_DRU8mg',
124
+ uid: 'grA1-fUIZ6',
125
125
  childrens: [],
126
126
  advanced: {
127
127
  'spacing-setting': {
@@ -138,161 +138,149 @@ const verticalTwo = [
138
138
  settings: {},
139
139
  styles: {},
140
140
  tag: 'Col',
141
- uid: 'gUsNDh7fOr'
141
+ uid: 'gxgt_apNs3'
142
142
  },
143
143
  {
144
- uid: 'g7Le3WhxZn',
144
+ uid: 'gmzHnQEbIr',
145
145
  tag: 'Col',
146
146
  label: 'Block',
147
147
  settings: {},
148
148
  childrens: [
149
149
  {
150
- advanced: {
151
- d: {
152
- desktop: true,
153
- mobile: true,
154
- tablet: true
155
- },
156
- editorData: {
157
- css: '.{{rootClassName}} > div > div{\nwidth:100%;\n}',
158
- rootClassName: '{{rootClassName}}'
159
- },
160
- hasBoxShadow: {
161
- desktop: {
162
- normal: false
163
- }
164
- },
165
- left: {
166
- desktop: '0px'
167
- },
168
- op: {
169
- desktop: '100%'
170
- },
171
- pos: {
172
- desktop: 'static'
173
- },
174
- right: {
175
- desktop: '0px'
176
- },
177
- rounded: {
178
- desktop: {
179
- normal: {
180
- bblr: '0px',
181
- bbrr: '0px',
182
- btlr: '0px',
183
- btrr: '0px',
184
- radiusType: 'none'
185
- }
186
- }
187
- },
188
- 'spacing-setting': {
189
- desktop: {
190
- margin: {
191
- bottom: '8px'
192
- }
193
- }
194
- },
195
- z: {
196
- desktop: 1
197
- }
198
- },
150
+ uid: 'gw_kZ5wf51',
151
+ tag: 'ProductBadge',
199
152
  label: 'Product Badge',
200
153
  settings: {
201
- contentType: 'text',
202
- displayContent: 'SALE {percent_discount}',
203
- translate: 'displayContent',
204
154
  displayTrigger: [
205
155
  {
206
- conditionType: 'exact_or_above',
207
- from: '1',
208
- priority: 0,
156
+ triggerEvent: 'inventory_status',
157
+ type: 'in_stock',
209
158
  quantityType: 'exact_or_above',
159
+ from: '1',
210
160
  to: '15',
211
- triggerEvent: 'inventory_status',
212
- type: 'in_stock'
161
+ priority: 0,
162
+ conditionType: 'exact_or_above'
213
163
  }
214
164
  ],
215
165
  image: {
216
166
  src: 'https://cdn.shopify.com/s/files/1/0697/6182/7064/files/gempages_523190969722471488-fc9fecb6-26b8-4836-b417-2dfb9ea43bd5.png?v=1723733677'
217
167
  },
218
- positionWithImage: 'outside',
219
- shape: 'horizontal_rectangle'
168
+ shape: 'horizontal_rectangle',
169
+ displayContent: 'Sale {percent_discount} off',
170
+ translate: 'displayContent',
171
+ contentType: 'text',
172
+ positionWithImage: 'outside'
220
173
  },
221
174
  styles: {
222
- align: {
223
- desktop: 'left'
175
+ typo: {
176
+ type: 'paragraph-1',
177
+ attrs: {
178
+ color: '#121212'
179
+ }
224
180
  },
181
+ position: {
182
+ desktop: {
183
+ placement: 'top-left',
184
+ topGap: '0',
185
+ leftGap: '0',
186
+ bottomGap: '0',
187
+ rightGap: '0'
188
+ }
189
+ },
190
+ badgeColor: '#FF614C',
225
191
  badgeColorV2: {
226
192
  desktop: {
227
193
  normal: '#FF614C'
228
194
  }
229
195
  },
230
- borderRadius: {
231
- bblr: '0px',
232
- bbrr: '0px',
233
- btlr: '0px',
234
- btrr: '0px',
235
- radiusType: 'custom'
236
- },
237
- hasShadow: false,
238
- imageSize: {
196
+ textColor: 'text-3',
197
+ textBadgeBorder: {
239
198
  desktop: {
240
- disableShapeLinked: true,
241
- height: 'auto',
242
- shape: 'original',
243
- shapeLinked: true,
244
- width: '20%'
199
+ normal: {
200
+ borderType: 'none',
201
+ border: 'none',
202
+ borderWidth: '1px',
203
+ width: '1px 1px 1px 1px',
204
+ color: '#121212',
205
+ isCustom: true
206
+ },
207
+ hover: {
208
+ borderType: 'none',
209
+ border: 'none',
210
+ borderWidth: '1px',
211
+ width: '1px 1px 1px 1px',
212
+ color: '#121212',
213
+ isCustom: true
214
+ }
245
215
  }
246
216
  },
247
- position: {
217
+ imageBadgeBorder: {
248
218
  desktop: {
249
- bottomGap: '0',
250
- leftGap: '0',
251
- placement: 'top-left',
252
- rightGap: '0',
253
- topGap: '0'
219
+ normal: {
220
+ borderType: 'none',
221
+ border: 'none',
222
+ borderWidth: '1px',
223
+ width: '1px 1px 1px 1px',
224
+ color: '#121212',
225
+ isCustom: true
226
+ },
227
+ hover: {
228
+ borderType: 'none',
229
+ border: 'none',
230
+ borderWidth: '1px',
231
+ width: '1px 1px 1px 1px',
232
+ color: '#121212',
233
+ isCustom: true
234
+ }
254
235
  }
255
236
  },
256
- shapeShadow: {
257
- angle: 90,
258
- blur: '12px',
259
- color: '#121212',
260
- distance: '4px',
261
- spread: '0px',
262
- type: 'shadow-1'
237
+ borderRadius: {
238
+ btrr: '3px',
239
+ bblr: '3px',
240
+ bbrr: '3px',
241
+ btlr: '3px',
242
+ radiusType: 'custom'
263
243
  },
264
- textColor: 'text-3',
265
- textSize: {
244
+ textBadgeCorner: {
266
245
  desktop: {
267
- disableShapeLinked: true,
268
- gap: '',
269
- height: 'Auto',
270
- hiddenShape: true,
271
- padding: {
272
- bottom: '8px',
273
- left: '12px',
274
- right: '12px',
275
- top: '8px'
246
+ normal: {
247
+ btrr: '0px',
248
+ bblr: '0px',
249
+ bbrr: '0px',
250
+ btlr: '0px',
251
+ radiusType: 'none'
276
252
  },
277
- shape: 'custom',
278
- shapeLinked: false,
279
- width: '100%'
253
+ hover: {
254
+ btrr: '0px',
255
+ bblr: '0px',
256
+ bbrr: '0px',
257
+ btlr: '0px',
258
+ radiusType: 'none'
259
+ }
280
260
  }
281
261
  },
282
- typo: {
283
- attrs: {
284
- color: 'text-3'
285
- },
286
- custom: {
287
- fontSize: {
288
- desktop: '15px'
262
+ imageBadgeCorner: {
263
+ desktop: {
264
+ normal: {
265
+ btrr: '0px',
266
+ bblr: '0px',
267
+ bbrr: '0px',
268
+ btlr: '0px',
269
+ radiusType: 'none'
270
+ },
271
+ hover: {
272
+ btrr: '0px',
273
+ bblr: '0px',
274
+ bbrr: '0px',
275
+ btlr: '0px',
276
+ radiusType: 'none'
289
277
  }
290
- },
291
- type: 'paragraph-1'
278
+ }
292
279
  },
280
+ hasShadow: false,
293
281
  textSizeV2: {
294
282
  desktop: {
295
- width: 'Auto',
283
+ width: 'auto',
296
284
  height: 'auto',
297
285
  shapeLinked: false,
298
286
  disableShapeLinked: true,
@@ -305,11 +293,192 @@ const verticalTwo = [
305
293
  right: '12px'
306
294
  }
307
295
  }
296
+ },
297
+ imageSizeV2: {
298
+ desktop: {
299
+ width: '20%',
300
+ height: 'auto',
301
+ shapeLinked: true,
302
+ hiddenShape: false,
303
+ shape: 'original',
304
+ disableShapeLinked: true
305
+ }
306
+ },
307
+ align: {
308
+ desktop: 'right'
309
+ },
310
+ shapeShadow: {
311
+ type: 'shadow-1',
312
+ distance: '4px',
313
+ blur: '12px',
314
+ spread: '0px',
315
+ color: '#121212',
316
+ angle: 90
317
+ },
318
+ textBadgeShadow: {
319
+ desktop: {
320
+ normal: {}
321
+ }
322
+ },
323
+ imageBadgeShadow: {
324
+ desktop: {
325
+ normal: {}
326
+ }
308
327
  }
309
328
  },
310
- tag: 'ProductBadge',
311
- uid: 'gXAaVIfN3P',
312
- childrens: []
329
+ advanced: {
330
+ d: {
331
+ desktop: true,
332
+ tablet: true,
333
+ mobile: true
334
+ },
335
+ border: {
336
+ desktop: {
337
+ normal: {
338
+ borderType: 'none',
339
+ border: 'none',
340
+ borderWidth: '1px',
341
+ width: '1px 1px 1px 1px',
342
+ color: '#121212',
343
+ isCustom: true
344
+ }
345
+ }
346
+ },
347
+ rounded: {
348
+ desktop: {
349
+ normal: {
350
+ btrr: '0px',
351
+ bblr: '0px',
352
+ bbrr: '0px',
353
+ btlr: '0px',
354
+ radiusType: 'none'
355
+ }
356
+ }
357
+ },
358
+ hasBoxShadow: {
359
+ desktop: {
360
+ normal: false
361
+ }
362
+ },
363
+ boxShadow: {
364
+ desktop: {
365
+ normal: {}
366
+ }
367
+ },
368
+ op: {
369
+ desktop: '100%'
370
+ },
371
+ animation: {
372
+ desktop: {
373
+ enabled: false,
374
+ trigger: 'appear',
375
+ triggerConfig: {
376
+ appear: {
377
+ animation: 'fade',
378
+ setting: {
379
+ fade: {
380
+ delay: '0',
381
+ speed: 1.7,
382
+ easing: 'ease-out'
383
+ },
384
+ zoom: {
385
+ delay: '0',
386
+ speed: 1.7,
387
+ isFade: true,
388
+ easing: 'ease-out',
389
+ zoomDirection: 'in',
390
+ scale: {
391
+ in: [
392
+ 80,
393
+ 100
394
+ ],
395
+ out: [
396
+ 120,
397
+ 100
398
+ ]
399
+ }
400
+ },
401
+ slide: {
402
+ delay: '0',
403
+ speed: 1.7,
404
+ easing: 'ease-out',
405
+ direction: 'left',
406
+ isCustomDistance: false
407
+ },
408
+ shake: {
409
+ delay: '0',
410
+ speed: 0.7,
411
+ loop: false,
412
+ intensity: 11,
413
+ easing: 'linear'
414
+ }
415
+ }
416
+ },
417
+ hover: {
418
+ animation: 'none',
419
+ setting: {
420
+ fade: {
421
+ delay: '0',
422
+ speed: 1.7,
423
+ easing: 'ease-out'
424
+ },
425
+ zoom: {
426
+ delay: '0',
427
+ speed: 1.7,
428
+ isFade: false,
429
+ easing: 'ease-out',
430
+ zoomDirection: 'in',
431
+ scale: {
432
+ in: [
433
+ 100,
434
+ 120
435
+ ],
436
+ out: [
437
+ 100,
438
+ 80
439
+ ]
440
+ }
441
+ },
442
+ slide: {
443
+ delay: '0',
444
+ speed: 1.7,
445
+ easing: 'ease-out',
446
+ direction: 'left',
447
+ isCustomDistance: false
448
+ },
449
+ shake: {
450
+ delay: '0',
451
+ speed: 0.7,
452
+ loop: false,
453
+ intensity: 11,
454
+ easing: 'linear'
455
+ }
456
+ }
457
+ }
458
+ }
459
+ }
460
+ },
461
+ 'spacing-setting': {
462
+ edited: [
463
+ 'desktop'
464
+ ],
465
+ desktop: {
466
+ margin: {
467
+ bottom: '0px'
468
+ }
469
+ },
470
+ tablet: {
471
+ margin: {
472
+ bottom: '0px'
473
+ }
474
+ },
475
+ mobile: {
476
+ margin: {
477
+ bottom: '0px'
478
+ }
479
+ }
480
+ }
481
+ }
313
482
  },
314
483
  {
315
484
  childrens: [
@@ -561,14 +730,16 @@ const verticalTwo = [
561
730
  }
562
731
  },
563
732
  priceType: 'compare'
564
- }
733
+ },
734
+ uid: 'gCy64ANAyg',
735
+ childrens: []
565
736
  }
566
737
  ],
567
738
  label: 'Block',
568
739
  settings: {},
569
740
  styles: {},
570
741
  tag: 'Col',
571
- uid: 'gjH1W3Ljxp'
742
+ uid: 'gNivOIdIES'
572
743
  },
573
744
  {
574
745
  tag: 'Col',
@@ -604,11 +775,11 @@ const verticalTwo = [
604
775
  }
605
776
  },
606
777
  tag: 'ProductPrice',
607
- uid: 'gzGEbvnT3K',
778
+ uid: 'g6gUSBq8mG',
608
779
  childrens: []
609
780
  }
610
781
  ],
611
- uid: 'gNSAXKYuIB'
782
+ uid: 'gxpKB1p5Zq'
612
783
  }
613
784
  ],
614
785
  label: 'Row',
@@ -674,7 +845,7 @@ const verticalTwo = [
674
845
  }
675
846
  },
676
847
  tag: 'Row',
677
- uid: 'gkZXC79fdE',
848
+ uid: 'g9d3z_8DT4',
678
849
  advanced: {
679
850
  'spacing-setting': {
680
851
  desktop: {
@@ -749,7 +920,7 @@ const verticalTwo = [
749
920
  width: {}
750
921
  },
751
922
  tag: 'Row',
752
- uid: 'g8_-a9Ub8r'
923
+ uid: 'gJyBw8niWd'
753
924
  }
754
925
  ];
755
926
 
@@ -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
  }