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