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