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