@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,432 @@
1
+ const SettingUIV1 = [
2
+ {
3
+ type: 'group',
4
+ label: {
5
+ en: 'Display'
6
+ },
7
+ controls: [
8
+ {
9
+ type: 'control',
10
+ setting: {
11
+ id: 'itemNumber'
12
+ }
13
+ },
14
+ {
15
+ type: 'control',
16
+ label: {
17
+ en: 'Items spacing'
18
+ },
19
+ setting: {
20
+ id: 'spacing'
21
+ },
22
+ condition: 'itemNumber >= 2'
23
+ },
24
+ {
25
+ type: 'control',
26
+ label: {
27
+ en: 'Sneak peak'
28
+ },
29
+ setting: {
30
+ id: 'sneakPeak'
31
+ },
32
+ condition: 'itemNumber >= 2'
33
+ },
34
+ {
35
+ type: 'control',
36
+ condition: 'sneakPeak == true',
37
+ setting: {
38
+ id: 'sneakPeakType'
39
+ }
40
+ },
41
+ {
42
+ type: 'control',
43
+ condition: 'sneakPeak == true && sneakPeakType == "forward"',
44
+ setting: {
45
+ id: 'sneakPeakOffsetForward'
46
+ }
47
+ },
48
+ {
49
+ type: 'control',
50
+ condition: 'sneakPeak == true && sneakPeakType == "center"',
51
+ setting: {
52
+ id: 'sneakPeakOffsetCenter'
53
+ }
54
+ }
55
+ ]
56
+ },
57
+ {
58
+ type: 'group',
59
+ label: {
60
+ en: 'Item management'
61
+ },
62
+ controls: [
63
+ {
64
+ type: 'control',
65
+ layout: 'vertical',
66
+ setting: {
67
+ id: 'childItem'
68
+ }
69
+ }
70
+ ]
71
+ },
72
+ {
73
+ type: 'group',
74
+ label: {
75
+ en: 'Navigation'
76
+ },
77
+ controls: [
78
+ {
79
+ type: 'control',
80
+ setting: {
81
+ id: 'navigationStyle'
82
+ }
83
+ },
84
+ {
85
+ condition: 'navigationStyle !== "none"',
86
+ type: 'control',
87
+ label: {
88
+ en: 'Icon'
89
+ },
90
+ setting: {
91
+ id: 'arrowCustom'
92
+ }
93
+ },
94
+ {
95
+ condition: 'navigationStyle !== "none"',
96
+ type: 'control',
97
+ label: {
98
+ en: 'Icon size'
99
+ },
100
+ setting: {
101
+ id: 'arrowIconSize'
102
+ }
103
+ },
104
+ {
105
+ condition: 'navigationStyle !== "none"',
106
+ type: 'control',
107
+ label: {
108
+ en: 'Icon color'
109
+ },
110
+ setting: {
111
+ id: 'arrowCustomColor'
112
+ },
113
+ isMoreSetting: true
114
+ },
115
+ {
116
+ type: 'control',
117
+ condition: 'navigationStyle !== "none"',
118
+ setting: {
119
+ id: 'arrowButtonSize'
120
+ },
121
+ layout: 'vertical',
122
+ isMoreSetting: true
123
+ },
124
+ {
125
+ type: 'control',
126
+ condition: 'navigationStyle !== "none"',
127
+ label: {
128
+ en: 'Background color'
129
+ },
130
+ setting: {
131
+ id: 'arrowBackgroundColor'
132
+ },
133
+ isMoreSetting: true
134
+ },
135
+ {
136
+ type: 'control',
137
+ condition: 'navigationStyle !== "none"',
138
+ options: {
139
+ labelPosition: 'start'
140
+ },
141
+ label: {
142
+ en: 'Border'
143
+ },
144
+ setting: {
145
+ id: 'arrowBorder'
146
+ },
147
+ isMoreSetting: true
148
+ },
149
+ {
150
+ type: 'control',
151
+ condition: 'navigationStyle !== "none"',
152
+ label: {
153
+ en: 'Corner'
154
+ },
155
+ setting: {
156
+ id: 'roundedArrow'
157
+ },
158
+ isMoreSetting: true
159
+ },
160
+ {
161
+ type: 'control',
162
+ condition: 'navigationStyle !== "none"',
163
+ label: {
164
+ en: 'Gap to each side'
165
+ },
166
+ setting: {
167
+ id: 'arrowGapToEachSide'
168
+ },
169
+ isMoreSetting: true
170
+ },
171
+ {
172
+ type: 'control',
173
+ condition: 'navigationStyle !== "none"',
174
+ label: {
175
+ en: 'Only show when hover'
176
+ },
177
+ setting: {
178
+ id: 'showWhenHover'
179
+ },
180
+ isMoreSetting: true
181
+ }
182
+ ]
183
+ },
184
+ {
185
+ type: 'group',
186
+ label: {
187
+ en: 'Dots'
188
+ },
189
+ controls: [
190
+ {
191
+ type: 'control',
192
+ setting: {
193
+ id: 'dotStyle'
194
+ }
195
+ },
196
+ {
197
+ condition: 'dotStyle !== "none"',
198
+ type: 'control',
199
+ label: {
200
+ en: 'Active color'
201
+ },
202
+ setting: {
203
+ id: 'dotActiveColor'
204
+ }
205
+ },
206
+ {
207
+ condition: 'dotStyle !== "none"',
208
+ type: 'control',
209
+ label: {
210
+ en: 'Inactive color'
211
+ },
212
+ setting: {
213
+ id: 'dotColor'
214
+ }
215
+ },
216
+ {
217
+ condition: 'dotStyle !== "none"',
218
+ type: 'control',
219
+ label: {
220
+ en: 'Dots size'
221
+ },
222
+ setting: {
223
+ id: 'dotSize'
224
+ },
225
+ isMoreSetting: true
226
+ },
227
+ {
228
+ condition: 'dotStyle !== "none"',
229
+ type: 'control',
230
+ label: {
231
+ en: 'Gap to carousel'
232
+ },
233
+ setting: {
234
+ id: 'dotGapToCarousel'
235
+ },
236
+ isMoreSetting: true
237
+ }
238
+ ]
239
+ },
240
+ {
241
+ type: 'group',
242
+ label: {
243
+ en: 'Interaction'
244
+ },
245
+ controls: [
246
+ {
247
+ type: 'control',
248
+ label: {
249
+ en: 'Direction'
250
+ },
251
+ setting: {
252
+ id: 'rtl'
253
+ }
254
+ },
255
+ {
256
+ type: 'control',
257
+ label: {
258
+ en: 'Autoplay'
259
+ },
260
+ setting: {
261
+ id: 'autoplay'
262
+ }
263
+ },
264
+ {
265
+ type: 'control',
266
+ label: {
267
+ en: 'Time out'
268
+ },
269
+ setting: {
270
+ id: 'autoplayTimeout'
271
+ },
272
+ condition: 'autoplay === true'
273
+ },
274
+ {
275
+ type: 'control',
276
+ label: {
277
+ en: 'Pause On Hover'
278
+ },
279
+ setting: {
280
+ id: 'pauseOnHover'
281
+ },
282
+ condition: 'autoplay == true'
283
+ },
284
+ {
285
+ type: 'control',
286
+ setting: {
287
+ id: 'runPreview'
288
+ },
289
+ condition: 'autoplay === true'
290
+ },
291
+ {
292
+ type: 'control',
293
+ label: {
294
+ en: 'Drag to scroll'
295
+ },
296
+ setting: {
297
+ id: 'enableDrag'
298
+ }
299
+ },
300
+ {
301
+ type: 'control',
302
+ label: {
303
+ en: 'Infinity loop'
304
+ },
305
+ setting: {
306
+ id: 'loop'
307
+ }
308
+ },
309
+ {
310
+ type: 'control',
311
+ label: {
312
+ en: 'Slide speed'
313
+ },
314
+ setting: {
315
+ id: 'playSpeed'
316
+ },
317
+ isMoreSetting: true
318
+ },
319
+ {
320
+ type: 'control',
321
+ label: {
322
+ en: 'Animation'
323
+ },
324
+ setting: {
325
+ id: 'animationMode'
326
+ },
327
+ isMoreSetting: true
328
+ }
329
+ ]
330
+ },
331
+ {
332
+ type: 'group',
333
+ label: {
334
+ en: 'Size'
335
+ },
336
+ controls: [
337
+ {
338
+ type: 'control',
339
+ setting: {
340
+ id: 'sizeSetting'
341
+ },
342
+ layout: 'vertical'
343
+ },
344
+ {
345
+ type: 'control',
346
+ setting: {
347
+ id: 'itemPadding'
348
+ },
349
+ isMoreSetting: true,
350
+ options: {
351
+ noGap: true
352
+ }
353
+ }
354
+ ]
355
+ },
356
+ {
357
+ type: 'group',
358
+ label: {
359
+ en: 'Shape'
360
+ },
361
+ controls: [
362
+ {
363
+ type: 'control',
364
+ options: {
365
+ labelPosition: 'start'
366
+ },
367
+ label: {
368
+ en: 'Border'
369
+ },
370
+ setting: {
371
+ id: 'borderContent'
372
+ }
373
+ },
374
+ {
375
+ type: 'control',
376
+ label: {
377
+ en: 'Corner'
378
+ },
379
+ setting: {
380
+ id: 'roundedContent'
381
+ }
382
+ },
383
+ {
384
+ type: 'control',
385
+ label: {
386
+ en: 'Shadow'
387
+ },
388
+ setting: {
389
+ id: 'hasActiveShadow'
390
+ }
391
+ },
392
+ {
393
+ type: 'control',
394
+ setting: {
395
+ id: 'carouselShadow'
396
+ },
397
+ layout: 'vertical',
398
+ condition: 'hasActiveShadow === true'
399
+ }
400
+ ]
401
+ },
402
+ {
403
+ type: 'control',
404
+ label: {
405
+ en: 'Background'
406
+ },
407
+ options: {
408
+ label: 'large',
409
+ styleLabel: {
410
+ marginBottom: '4px'
411
+ }
412
+ },
413
+ setting: {
414
+ id: 'background'
415
+ },
416
+ layout: 'vertical'
417
+ },
418
+ {
419
+ type: 'control',
420
+ label: {
421
+ en: 'Align'
422
+ },
423
+ setting: {
424
+ id: 'align'
425
+ },
426
+ options: {
427
+ label: 'large'
428
+ }
429
+ }
430
+ ];
431
+
432
+ export { SettingUIV1 };