@gem-sdk/components 2.0.0-dev.370 → 2.0.0-dev.371

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 (124) hide show
  1. package/dist/cjs/builder.js +2 -2
  2. package/dist/cjs/button/setting/configs/settings.js +0 -14
  3. package/dist/cjs/carousel/arrow/Arrow.js +52 -0
  4. package/dist/cjs/carousel/arrow/Arrow.liquid.js +46 -0
  5. package/dist/cjs/carousel/{components/common/arrow.js → arrow/common/common.js} +13 -11
  6. package/dist/cjs/carousel/arrow/common/getClass.js +50 -0
  7. package/dist/cjs/carousel/arrow/common/getStyle.js +84 -0
  8. package/dist/cjs/carousel/carousel-item/CarouselItem.js +32 -0
  9. package/dist/cjs/carousel/carousel-item/CarouselItem.liquid.js +38 -0
  10. package/dist/cjs/carousel/carousel-item/common/getClass.js +29 -0
  11. package/dist/cjs/carousel/{components/CarouselItem.liquid.js → carousel-item/common/getStyle.js} +30 -47
  12. package/dist/cjs/carousel/carousel-item/hook/useCarouseItem.js +14 -0
  13. package/dist/cjs/carousel/components/const/index.js +5 -0
  14. package/dist/cjs/carousel/dots/Dots.js +51 -0
  15. package/dist/cjs/carousel/dots/Dots.liquid.js +26 -0
  16. package/dist/cjs/carousel/dots/common/common.js +46 -0
  17. package/dist/cjs/carousel/dots/common/getClass.js +40 -0
  18. package/dist/cjs/carousel/dots/common/getStyle.js +33 -0
  19. package/dist/cjs/carousel/dots/hook/useDotsSetting.js +21 -0
  20. package/dist/cjs/carousel/index.js +1 -2
  21. package/dist/cjs/carousel/next.js +2 -2
  22. package/dist/cjs/carousel/root/Carousel.js +129 -0
  23. package/dist/cjs/carousel/root/Carousel.liquid.js +104 -0
  24. package/dist/cjs/carousel/root/common/getAttr.js +25 -0
  25. package/dist/cjs/carousel/root/common/getClass.js +135 -0
  26. package/dist/cjs/carousel/root/common/getData.js +56 -0
  27. package/dist/cjs/carousel/root/common/getStyle.js +64 -0
  28. package/dist/cjs/carousel/{components/Carousel.js → root/hook/useCarousel.js} +153 -321
  29. package/dist/cjs/carousel/setting/Carousel.js +8 -1555
  30. package/dist/cjs/carousel/setting/configs/presets.js +380 -0
  31. package/dist/cjs/carousel/setting/configs/settingV2.js +771 -0
  32. package/dist/cjs/carousel/setting/configs/uiV1.js +434 -0
  33. package/dist/cjs/carousel/setting/configs/uiV2.js +627 -0
  34. package/dist/cjs/common/components/NoDataState.js +5 -5
  35. package/dist/cjs/grid/row/commons/common.js +3 -3
  36. package/dist/cjs/index.js +2 -2
  37. package/dist/cjs/index.liquid.js +2 -2
  38. package/dist/cjs/product/components/ProductImages/ProductGalleryCarousel.js +2 -2
  39. package/dist/cjs/product/components/ProductImages/ProductImagesLightBox.js +2 -2
  40. package/dist/cjs/product/components/ProductImages/liquid/ProductGalleryCarousel.liquid.js +5 -3
  41. package/dist/cjs/product/components/ProductImagesV2/common/getAttr.js +1 -0
  42. package/dist/cjs/product/components/ProductImagesV2/common/productFeaturedImage.js +1 -1
  43. package/dist/cjs/product/components/ProductImagesV2/common/productGallery.js +1 -1
  44. package/dist/cjs/product/components/ProductImagesV2/components/child/ProductFeaturedImageCarousel.js +5 -5
  45. package/dist/cjs/product/components/ProductImagesV2/components/feature-gallery/FeatureImageWithGallery.liquid.js +8 -4
  46. package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +2 -2
  47. package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.liquid.js +6 -3
  48. package/dist/cjs/product/components/ProductImagesV2/components/lightbox/ProductImagesLightBox.js +2 -2
  49. package/dist/cjs/product/components/ProductImagesV2/hooks/useProductFeaturedImageCarousel.js +3 -3
  50. package/dist/cjs/product/components/ProductList/ProductListCarouselLayout.js +2 -2
  51. package/dist/cjs/product/components/ProductList/ProductListCarouselLayout.liquid.js +5 -3
  52. package/dist/cjs/product/components/ProductList/common/index.js +5 -5
  53. package/dist/cjs/product/components/ProductVariants/common/main/getAttr.js +1 -1
  54. package/dist/cjs/text/components/Text.js +3 -3
  55. package/dist/esm/builder.js +2 -2
  56. package/dist/esm/button/setting/configs/settings.js +0 -14
  57. package/dist/esm/carousel/arrow/Arrow.js +48 -0
  58. package/dist/esm/carousel/arrow/Arrow.liquid.js +42 -0
  59. package/dist/esm/carousel/{components/common/arrow.js → arrow/common/common.js} +12 -10
  60. package/dist/esm/carousel/arrow/common/getClass.js +48 -0
  61. package/dist/esm/carousel/arrow/common/getStyle.js +82 -0
  62. package/dist/esm/carousel/carousel-item/CarouselItem.js +28 -0
  63. package/dist/esm/carousel/carousel-item/CarouselItem.liquid.js +34 -0
  64. package/dist/esm/carousel/carousel-item/common/getClass.js +27 -0
  65. package/dist/esm/carousel/{components/CarouselItem.liquid.js → carousel-item/common/getStyle.js} +31 -46
  66. package/dist/esm/carousel/carousel-item/hook/useCarouseItem.js +12 -0
  67. package/dist/esm/carousel/components/const/index.js +3 -0
  68. package/dist/esm/carousel/dots/Dots.js +47 -0
  69. package/dist/esm/carousel/dots/Dots.liquid.js +22 -0
  70. package/dist/esm/carousel/dots/common/common.js +43 -0
  71. package/dist/esm/carousel/dots/common/getClass.js +38 -0
  72. package/dist/esm/carousel/dots/common/getStyle.js +31 -0
  73. package/dist/esm/carousel/dots/hook/useDotsSetting.js +19 -0
  74. package/dist/esm/carousel/index.js +1 -2
  75. package/dist/esm/carousel/next.js +2 -2
  76. package/dist/esm/carousel/root/Carousel.js +125 -0
  77. package/dist/esm/carousel/root/Carousel.liquid.js +100 -0
  78. package/dist/esm/carousel/root/common/getAttr.js +23 -0
  79. package/dist/esm/carousel/root/common/getClass.js +133 -0
  80. package/dist/esm/carousel/root/common/getData.js +54 -0
  81. package/dist/esm/carousel/root/common/getStyle.js +62 -0
  82. package/dist/esm/carousel/{components/Carousel.js → root/hook/useCarousel.js} +150 -316
  83. package/dist/esm/carousel/setting/Carousel.js +8 -1555
  84. package/dist/esm/carousel/setting/configs/presets.js +378 -0
  85. package/dist/esm/carousel/setting/configs/settingV2.js +769 -0
  86. package/dist/esm/carousel/setting/configs/uiV1.js +432 -0
  87. package/dist/esm/carousel/setting/configs/uiV2.js +625 -0
  88. package/dist/esm/common/components/NoDataState.js +6 -6
  89. package/dist/esm/grid/row/commons/common.js +1 -1
  90. package/dist/esm/index.js +2 -2
  91. package/dist/esm/index.liquid.js +2 -2
  92. package/dist/esm/product/components/ProductImages/ProductGalleryCarousel.js +2 -2
  93. package/dist/esm/product/components/ProductImages/ProductImagesLightBox.js +2 -2
  94. package/dist/esm/product/components/ProductImages/liquid/ProductGalleryCarousel.liquid.js +5 -3
  95. package/dist/esm/product/components/ProductImagesV2/common/getAttr.js +1 -0
  96. package/dist/esm/product/components/ProductImagesV2/common/productFeaturedImage.js +1 -1
  97. package/dist/esm/product/components/ProductImagesV2/common/productGallery.js +1 -1
  98. package/dist/esm/product/components/ProductImagesV2/components/child/ProductFeaturedImageCarousel.js +5 -5
  99. package/dist/esm/product/components/ProductImagesV2/components/feature-gallery/FeatureImageWithGallery.liquid.js +8 -4
  100. package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +2 -2
  101. package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.liquid.js +6 -3
  102. package/dist/esm/product/components/ProductImagesV2/components/lightbox/ProductImagesLightBox.js +2 -2
  103. package/dist/esm/product/components/ProductImagesV2/hooks/useProductFeaturedImageCarousel.js +3 -3
  104. package/dist/esm/product/components/ProductList/ProductListCarouselLayout.js +2 -2
  105. package/dist/esm/product/components/ProductList/ProductListCarouselLayout.liquid.js +5 -3
  106. package/dist/esm/product/components/ProductList/common/index.js +3 -3
  107. package/dist/esm/product/components/ProductVariants/common/main/getAttr.js +1 -1
  108. package/dist/esm/text/components/Text.js +4 -4
  109. package/dist/types/index.d.ts +164 -67
  110. package/package.json +3 -3
  111. package/dist/cjs/carousel/components/Arrow.js +0 -110
  112. package/dist/cjs/carousel/components/Arrow.liquid.js +0 -103
  113. package/dist/cjs/carousel/components/Carousel.liquid.js +0 -256
  114. package/dist/cjs/carousel/components/CarouselItem.js +0 -88
  115. package/dist/cjs/carousel/components/Dots.js +0 -69
  116. package/dist/cjs/carousel/components/Dots.liquid.js +0 -23
  117. package/dist/cjs/carousel/components/common/dots.js +0 -57
  118. package/dist/esm/carousel/components/Arrow.js +0 -106
  119. package/dist/esm/carousel/components/Arrow.liquid.js +0 -99
  120. package/dist/esm/carousel/components/Carousel.liquid.js +0 -252
  121. package/dist/esm/carousel/components/CarouselItem.js +0 -84
  122. package/dist/esm/carousel/components/Dots.js +0 -65
  123. package/dist/esm/carousel/components/Dots.liquid.js +0 -19
  124. package/dist/esm/carousel/components/common/dots.js +0 -53
@@ -0,0 +1,625 @@
1
+ const SettingUIV2 = [
2
+ {
3
+ label: {
4
+ en: 'Layout'
5
+ },
6
+ controls: [
7
+ {
8
+ setting: {
9
+ id: 'itemNumber'
10
+ },
11
+ layout: 'vertical'
12
+ }
13
+ ]
14
+ },
15
+ {
16
+ label: {
17
+ en: 'Display'
18
+ },
19
+ controls: [
20
+ {
21
+ label: {
22
+ en: 'Sneak peak'
23
+ },
24
+ type: 'combo',
25
+ setting: {
26
+ id: 'sneakPeak'
27
+ },
28
+ fixedValue: 'Edit',
29
+ iconName: 'polaris-edit',
30
+ controls: [
31
+ {
32
+ layout: 'vertical',
33
+ setting: {
34
+ id: 'sneakPeakType'
35
+ }
36
+ },
37
+ {
38
+ conditionDisplay: 'sneakPeakType == "forward"',
39
+ label: {
40
+ en: 'Ratio'
41
+ },
42
+ setting: {
43
+ id: 'sneakPeakOffsetForward'
44
+ }
45
+ },
46
+ {
47
+ conditionDisplay: 'sneakPeakType == "center"',
48
+ label: {
49
+ en: 'Ratio'
50
+ },
51
+ setting: {
52
+ id: 'sneakPeakOffsetCenter'
53
+ }
54
+ }
55
+ ]
56
+ }
57
+ ]
58
+ },
59
+ {
60
+ label: {
61
+ en: 'Item management'
62
+ },
63
+ controls: [
64
+ {
65
+ label: {
66
+ en: 'Items'
67
+ },
68
+ setting: {
69
+ id: 'childItem'
70
+ }
71
+ }
72
+ ]
73
+ },
74
+ {
75
+ label: {
76
+ en: 'Item style'
77
+ },
78
+ controls: [
79
+ {
80
+ label: {
81
+ en: 'Padding'
82
+ },
83
+ controlConfig: {
84
+ id: 'itemPadding',
85
+ type: 'padding-v2',
86
+ linkWithSetting: {
87
+ name: 'itemPadding',
88
+ field: 'padding'
89
+ },
90
+ compoDefaultValue: {
91
+ desktop: {
92
+ default: {
93
+ type: 'custom',
94
+ top: '16px',
95
+ bottom: '16px',
96
+ left: '16px',
97
+ right: '16px'
98
+ }
99
+ }
100
+ }
101
+ }
102
+ },
103
+ {
104
+ label: {
105
+ en: 'Background'
106
+ },
107
+ setting: {
108
+ id: 'background'
109
+ }
110
+ },
111
+ {
112
+ label: {
113
+ en: 'Border'
114
+ },
115
+ setting: {
116
+ id: 'borderContent'
117
+ }
118
+ },
119
+ {
120
+ label: {
121
+ en: 'Corner'
122
+ },
123
+ setting: {
124
+ id: 'roundedContent'
125
+ }
126
+ },
127
+ {
128
+ label: {
129
+ en: 'Shadow'
130
+ },
131
+ setting: {
132
+ id: 'carouselShadow'
133
+ },
134
+ options: {
135
+ updateFields: [
136
+ {
137
+ field: 'enable',
138
+ settingId: 'hasActiveShadow'
139
+ }
140
+ ]
141
+ },
142
+ controlChangeTrigger: {
143
+ settings: [
144
+ {
145
+ condition: `carouselShadow.enable === true`,
146
+ source: [
147
+ 'carouselShadow'
148
+ ],
149
+ action: {
150
+ controlId: 'hasActiveShadow',
151
+ groupType: 'style',
152
+ controlType: 'style',
153
+ newValue: true
154
+ }
155
+ },
156
+ {
157
+ condition: `carouselShadow.enable === false`,
158
+ source: [
159
+ 'carouselShadow'
160
+ ],
161
+ action: {
162
+ controlId: 'hasActiveShadow',
163
+ groupType: 'style',
164
+ controlType: 'style',
165
+ newValue: false
166
+ }
167
+ }
168
+ ],
169
+ options: {
170
+ noRecordHistory: true
171
+ }
172
+ }
173
+ }
174
+ ]
175
+ },
176
+ {
177
+ label: {
178
+ en: 'Item spacing'
179
+ },
180
+ controls: [
181
+ {
182
+ label: {
183
+ en: 'Gap'
184
+ },
185
+ setting: {
186
+ id: 'spacing'
187
+ }
188
+ }
189
+ ]
190
+ },
191
+ {
192
+ controls: [
193
+ {
194
+ label: {
195
+ en: 'Navigation'
196
+ },
197
+ setting: {
198
+ id: 'navigationEnable'
199
+ },
200
+ options: {
201
+ labelVariant: 'primary',
202
+ toggleStyle: 'switch'
203
+ }
204
+ },
205
+ {
206
+ conditionDisplay: `navigationEnable === true`,
207
+ label: {
208
+ en: 'Layout'
209
+ },
210
+ setting: {
211
+ id: 'navigationStyle'
212
+ }
213
+ },
214
+ {
215
+ conditionDisplay: `navigationEnable === true`,
216
+ label: {
217
+ en: 'Icon'
218
+ },
219
+ setting: {
220
+ id: 'arrowCustom'
221
+ }
222
+ },
223
+ {
224
+ conditionDisplay: `navigationEnable === true`,
225
+ label: {
226
+ en: 'Icon size'
227
+ },
228
+ setting: {
229
+ id: 'arrowIconSize'
230
+ }
231
+ },
232
+ {
233
+ conditionDisplay: `navigationEnable === true`,
234
+ label: {
235
+ en: 'Icon color'
236
+ },
237
+ setting: {
238
+ id: 'arrowCustomColor'
239
+ }
240
+ }
241
+ ],
242
+ moreSettings: {
243
+ controls: [
244
+ {
245
+ type: 'combo',
246
+ conditionDisplay: `navigationEnable === true`,
247
+ label: {
248
+ en: 'Size'
249
+ },
250
+ fixedValue: 'Edit...',
251
+ controls: [
252
+ {
253
+ setting: {
254
+ id: 'arrowButtonSize'
255
+ },
256
+ layout: 'vertical'
257
+ },
258
+ {
259
+ label: {
260
+ en: 'Padding'
261
+ },
262
+ controlConfig: {
263
+ id: 'padding',
264
+ type: 'padding-v2',
265
+ linkWithSetting: {
266
+ name: 'arrowButtonSize',
267
+ field: 'padding'
268
+ },
269
+ compoDefaultValue: {
270
+ desktop: {
271
+ default: {
272
+ type: 'custom',
273
+ top: '4px',
274
+ bottom: '4px',
275
+ left: '4px',
276
+ right: '4px'
277
+ }
278
+ }
279
+ }
280
+ }
281
+ }
282
+ ]
283
+ },
284
+ {
285
+ conditionDisplay: `navigationEnable === true`,
286
+ label: {
287
+ en: 'Background'
288
+ },
289
+ setting: {
290
+ id: 'arrowBackgroundColor'
291
+ }
292
+ },
293
+ {
294
+ conditionDisplay: `navigationEnable === true`,
295
+ label: {
296
+ en: 'Border'
297
+ },
298
+ setting: {
299
+ id: 'arrowBorder'
300
+ }
301
+ },
302
+ {
303
+ conditionDisplay: `navigationEnable === true`,
304
+ label: {
305
+ en: 'Corner'
306
+ },
307
+ setting: {
308
+ id: 'roundedArrow'
309
+ }
310
+ },
311
+ {
312
+ conditionDisplay: `navigationEnable === true`,
313
+ label: {
314
+ en: 'Shadow'
315
+ },
316
+ setting: {
317
+ id: 'arrowShadow'
318
+ }
319
+ },
320
+ {
321
+ conditionDisplay: `navigationEnable === true`,
322
+ label: {
323
+ en: 'Gap to each'
324
+ },
325
+ setting: {
326
+ id: 'arrowGapToEachSide'
327
+ }
328
+ },
329
+ {
330
+ conditionDisplay: `navigationEnable === true`,
331
+ label: {
332
+ en: 'Show on hover'
333
+ },
334
+ setting: {
335
+ id: 'showWhenHover'
336
+ }
337
+ }
338
+ ]
339
+ }
340
+ },
341
+ {
342
+ controls: [
343
+ {
344
+ label: {
345
+ en: 'Dots'
346
+ },
347
+ setting: {
348
+ id: 'dot'
349
+ },
350
+ options: {
351
+ labelVariant: 'primary',
352
+ toggleStyle: 'switch'
353
+ }
354
+ },
355
+ {
356
+ conditionDisplay: `dot === true`,
357
+ label: {
358
+ en: 'Active color'
359
+ },
360
+ setting: {
361
+ id: 'dotActiveColor'
362
+ }
363
+ },
364
+ {
365
+ conditionDisplay: `dot === true`,
366
+ label: {
367
+ en: 'Inactive color'
368
+ },
369
+ setting: {
370
+ id: 'dotColor'
371
+ }
372
+ },
373
+ {
374
+ conditionDisplay: `dot === true`,
375
+ label: {
376
+ en: 'Dots size'
377
+ },
378
+ setting: {
379
+ id: 'dotSize'
380
+ }
381
+ }
382
+ ],
383
+ moreSettings: {
384
+ controls: [
385
+ {
386
+ conditionDisplay: `dot === true`,
387
+ label: {
388
+ en: 'Gap to bottom'
389
+ },
390
+ setting: {
391
+ id: 'dotGapToCarousel'
392
+ }
393
+ },
394
+ {
395
+ conditionDisplay: `dot === true`,
396
+ label: {
397
+ en: 'Position'
398
+ },
399
+ setting: {
400
+ id: 'dotStyle'
401
+ }
402
+ }
403
+ ]
404
+ }
405
+ },
406
+ {
407
+ label: {
408
+ en: 'Size'
409
+ },
410
+ controls: [
411
+ {
412
+ setting: {
413
+ id: 'sizeSetting'
414
+ },
415
+ layout: 'vertical'
416
+ }
417
+ ]
418
+ },
419
+ {
420
+ label: {
421
+ en: 'Shape'
422
+ },
423
+ conditionDisplay: 'pageType != "POST_PURCHASE"',
424
+ controls: [
425
+ {
426
+ label: {
427
+ en: 'Border'
428
+ },
429
+ setting: {
430
+ id: 'border',
431
+ state: 'normal'
432
+ }
433
+ },
434
+ {
435
+ label: {
436
+ en: 'Corner'
437
+ },
438
+ setting: {
439
+ id: 'rounded',
440
+ state: 'normal'
441
+ }
442
+ },
443
+ {
444
+ label: {
445
+ en: 'Shadow'
446
+ },
447
+ setting: {
448
+ id: 'boxShadow',
449
+ state: 'normal'
450
+ },
451
+ options: {
452
+ updateFields: [
453
+ {
454
+ field: 'normal.enable',
455
+ settingId: 'hasBoxShadow',
456
+ state: 'normal'
457
+ }
458
+ ]
459
+ },
460
+ controlChangeTrigger: {
461
+ settings: [
462
+ {
463
+ condition: `boxShadow.normal.enable === true`,
464
+ source: [
465
+ 'boxShadow',
466
+ 'hasBoxShadow'
467
+ ],
468
+ action: {
469
+ controlId: 'hasBoxShadow',
470
+ groupType: 'advanced',
471
+ controlType: 'advanced',
472
+ state: 'normal',
473
+ newValue: true
474
+ }
475
+ },
476
+ {
477
+ condition: `boxShadow.normal.enable === false`,
478
+ source: [
479
+ 'boxShadow',
480
+ 'hasBoxShadow'
481
+ ],
482
+ action: {
483
+ controlId: 'hasBoxShadow',
484
+ groupType: 'advanced',
485
+ controlType: 'advanced',
486
+ state: 'normal',
487
+ newValue: false
488
+ }
489
+ }
490
+ ],
491
+ options: {
492
+ noRecordHistory: true
493
+ }
494
+ }
495
+ }
496
+ ]
497
+ },
498
+ {
499
+ label: {
500
+ en: 'Background'
501
+ },
502
+ controls: [
503
+ {
504
+ label: {
505
+ en: 'Color'
506
+ },
507
+ setting: {
508
+ id: 'backgroundColor'
509
+ }
510
+ },
511
+ {
512
+ label: {
513
+ en: 'Image'
514
+ },
515
+ setting: {
516
+ id: 'backgroundImage'
517
+ }
518
+ }
519
+ ]
520
+ },
521
+ {
522
+ label: {
523
+ en: 'Slide effect'
524
+ },
525
+ controls: [
526
+ {
527
+ label: {
528
+ en: 'Slide direction'
529
+ },
530
+ setting: {
531
+ id: 'rtl'
532
+ }
533
+ },
534
+ {
535
+ label: {
536
+ en: 'Autoplay'
537
+ },
538
+ setting: {
539
+ id: 'autoplay'
540
+ }
541
+ },
542
+ {
543
+ label: {
544
+ en: 'Time out'
545
+ },
546
+ setting: {
547
+ id: 'autoplayTimeout'
548
+ },
549
+ conditionDisplay: 'autoplay === true'
550
+ },
551
+ {
552
+ label: {
553
+ en: 'Pause On Hover'
554
+ },
555
+ setting: {
556
+ id: 'pauseOnHover'
557
+ },
558
+ conditionDisplay: 'autoplay == true'
559
+ },
560
+ {
561
+ label: {
562
+ en: 'Preview'
563
+ },
564
+ setting: {
565
+ id: 'runPreview'
566
+ },
567
+ conditionDisplay: 'autoplay === true'
568
+ },
569
+ {
570
+ label: {
571
+ en: 'Infinity loop'
572
+ },
573
+ setting: {
574
+ id: 'loop'
575
+ }
576
+ }
577
+ ],
578
+ moreSettings: {
579
+ controls: [
580
+ {
581
+ label: {
582
+ en: 'Drag / swipe'
583
+ },
584
+ setting: {
585
+ id: 'enableDrag'
586
+ }
587
+ },
588
+ {
589
+ label: {
590
+ en: 'Slide speed'
591
+ },
592
+ setting: {
593
+ id: 'playSpeed'
594
+ }
595
+ },
596
+ {
597
+ label: {
598
+ en: 'Animation'
599
+ },
600
+ setting: {
601
+ id: 'animationMode'
602
+ }
603
+ }
604
+ ]
605
+ }
606
+ },
607
+ {
608
+ controls: [
609
+ {
610
+ conditionEnable: '!(parseInt(sizeSetting.width) >= 100 && sizeSetting.width?.includes("%"))',
611
+ setting: {
612
+ id: 'align'
613
+ },
614
+ label: {
615
+ en: 'Align'
616
+ },
617
+ options: {
618
+ labelVariant: 'primary'
619
+ }
620
+ }
621
+ ]
622
+ }
623
+ ];
624
+
625
+ export { SettingUIV2 };
@@ -1,4 +1,4 @@
1
- import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
2
  import { useRef, useState, useEffect } from 'react';
3
3
  import { useEditorMode, cls, filterToolbarPreview } from '@gem-sdk/core';
4
4
 
@@ -52,7 +52,7 @@ const NoDataState = ({ title, description, elementType, builderAttrs, descriptio
52
52
  /*#__PURE__*/ jsxs("div", {
53
53
  className: cls('gp-w-full gp-h-full gp-rounded-lg gp-flex gp-p-2 gp-gap-2', elementType === 'primary' ? 'gp-bg-[#FFF1DF]' : '', rawMode ? 'gp-justify-center' : ''),
54
54
  style: {
55
- 'flex-direction': containerFlexDirection
55
+ flexDirection: containerFlexDirection
56
56
  },
57
57
  children: [
58
58
  icon && !rawMode && /*#__PURE__*/ jsx("div", {
@@ -98,19 +98,19 @@ const NoDataState = ({ title, description, elementType, builderAttrs, descriptio
98
98
  descriptionActions?.map((action, index)=>{
99
99
  const prefix = index ? 'or' : '';
100
100
  const cb = typeof action.callback === 'string' ? presetCallback?.[action.callback] : action.callback;
101
- return /*#__PURE__*/ jsxs(Fragment, {
101
+ return /*#__PURE__*/ jsxs("span", {
102
102
  children: [
103
103
  ' ',
104
104
  prefix,
105
105
  ' ',
106
106
  /*#__PURE__*/ jsx("span", {
107
107
  role: "presentation",
108
- className: "gp-underline gp-cursor-pointer gp-leading-5",
108
+ className: `gp-underline gp-cursor-pointer gp-leading-5`,
109
109
  onClick: cb,
110
110
  children: action.text
111
- }, index)
111
+ })
112
112
  ]
113
- });
113
+ }, `description-action-${index}`);
114
114
  })
115
115
  ]
116
116
  }),
@@ -1,5 +1,5 @@
1
1
  import { getValueByDevice } from '@gem-sdk/core';
2
- import { getResponsiveSetting } from '../../../carousel/components/common/arrow.js';
2
+ import { getResponsiveSetting } from '../../../carousel/arrow/common/common.js';
3
3
 
4
4
  const checkHasBackgroundVideo = (background)=>{
5
5
  const DEVICES = [
package/dist/esm/index.js CHANGED
@@ -80,8 +80,8 @@ export { default as ArticleReadMore } from './article/components/ArticleReadMore
80
80
  export { default as HeroBanner } from './banner/components/HeroBanner.js';
81
81
  export { default as Breadcrumb } from './breadcrumb/components/Breadcrumb.js';
82
82
  export { default as Button } from './button/components/Button.js';
83
- export { default as Carousel } from './carousel/components/Carousel.js';
84
- export { default as CarouselItem } from './carousel/components/CarouselItem.js';
83
+ export { default as Carousel } from './carousel/root/Carousel.js';
84
+ export { default as CarouselItem } from './carousel/carousel-item/CarouselItem.js';
85
85
  export { default as Cart } from './cart/components/Cart.js';
86
86
  export { default as CartList } from './cart/components/CartList.js';
87
87
  export { default as CartLinePrice } from './cart/components/CartLinePrice.js';
@@ -15,8 +15,8 @@ export { default as ArticleReadMore } from './article/components/ArticleReadMore
15
15
  export { default as HeroBanner } from './banner/components/HeroBanner.liquid.js';
16
16
  export { default as Breadcrumb } from './breadcrumb/components/Breadcrumb.liquid.js';
17
17
  export { default as Button } from './button/components/Button.liquid.js';
18
- export { default as CarouselItem } from './carousel/components/CarouselItem.liquid.js';
19
- export { default as Carousel } from './carousel/components/Carousel.liquid.js';
18
+ export { default as CarouselItem } from './carousel/carousel-item/CarouselItem.liquid.js';
19
+ export { default as Carousel } from './carousel/root/Carousel.liquid.js';
20
20
  export { default as ShopPayButton } from './cart/components/ShopPayButton/ShopPayButton.liquid.js';
21
21
  export { default as CSSCode } from './code/components/CSSCode.liquid.js';
22
22
  export { default as CollectionToolbar } from './collection/components/collection-toolbar/components/CollectionToolbar.liquid.js';