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

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 (132) hide show
  1. package/dist/cjs/article/setting/configs/ArticleDate/presets.js +1 -1
  2. package/dist/cjs/article/setting/configs/ArticleDate/settings.js +3 -0
  3. package/dist/cjs/article/setting/configs/ArticleReadMore/settings.js +20 -1
  4. package/dist/cjs/article/setting/configs/ArticleReadMore/uiV2.js +10 -10
  5. package/dist/cjs/builder.js +2 -2
  6. package/dist/cjs/button/setting/configs/settings.js +0 -14
  7. package/dist/cjs/carousel/arrow/Arrow.js +52 -0
  8. package/dist/cjs/carousel/arrow/Arrow.liquid.js +46 -0
  9. package/dist/cjs/carousel/{components/common/arrow.js → arrow/common/common.js} +13 -11
  10. package/dist/cjs/carousel/arrow/common/getClass.js +50 -0
  11. package/dist/cjs/carousel/arrow/common/getStyle.js +84 -0
  12. package/dist/cjs/carousel/carousel-item/CarouselItem.js +32 -0
  13. package/dist/cjs/carousel/carousel-item/CarouselItem.liquid.js +38 -0
  14. package/dist/cjs/carousel/carousel-item/common/getClass.js +29 -0
  15. package/dist/cjs/carousel/{components/CarouselItem.liquid.js → carousel-item/common/getStyle.js} +30 -47
  16. package/dist/cjs/carousel/carousel-item/hook/useCarouseItem.js +14 -0
  17. package/dist/cjs/carousel/components/const/index.js +5 -0
  18. package/dist/cjs/carousel/dots/Dots.js +51 -0
  19. package/dist/cjs/carousel/dots/Dots.liquid.js +26 -0
  20. package/dist/cjs/carousel/dots/common/common.js +46 -0
  21. package/dist/cjs/carousel/dots/common/getClass.js +40 -0
  22. package/dist/cjs/carousel/dots/common/getStyle.js +33 -0
  23. package/dist/cjs/carousel/dots/hook/useDotsSetting.js +21 -0
  24. package/dist/cjs/carousel/index.js +1 -2
  25. package/dist/cjs/carousel/next.js +2 -2
  26. package/dist/cjs/carousel/root/Carousel.js +129 -0
  27. package/dist/cjs/carousel/root/Carousel.liquid.js +104 -0
  28. package/dist/cjs/carousel/root/common/getAttr.js +25 -0
  29. package/dist/cjs/carousel/root/common/getClass.js +135 -0
  30. package/dist/cjs/carousel/root/common/getData.js +56 -0
  31. package/dist/cjs/carousel/root/common/getStyle.js +64 -0
  32. package/dist/cjs/carousel/{components/Carousel.js → root/hook/useCarousel.js} +153 -321
  33. package/dist/cjs/carousel/setting/Carousel.js +8 -1555
  34. package/dist/cjs/carousel/setting/configs/presets.js +380 -0
  35. package/dist/cjs/carousel/setting/configs/settingV2.js +771 -0
  36. package/dist/cjs/carousel/setting/configs/uiV1.js +434 -0
  37. package/dist/cjs/carousel/setting/configs/uiV2.js +627 -0
  38. package/dist/cjs/common/components/NoDataState.js +5 -5
  39. package/dist/cjs/grid/row/commons/common.js +3 -3
  40. package/dist/cjs/index.js +2 -2
  41. package/dist/cjs/index.liquid.js +2 -2
  42. package/dist/cjs/product/components/ProductImages/ProductGalleryCarousel.js +2 -2
  43. package/dist/cjs/product/components/ProductImages/ProductImagesLightBox.js +2 -2
  44. package/dist/cjs/product/components/ProductImages/liquid/ProductGalleryCarousel.liquid.js +5 -3
  45. package/dist/cjs/product/components/ProductImagesV2/common/getAttr.js +1 -0
  46. package/dist/cjs/product/components/ProductImagesV2/common/productFeaturedImage.js +1 -1
  47. package/dist/cjs/product/components/ProductImagesV2/common/productGallery.js +1 -1
  48. package/dist/cjs/product/components/ProductImagesV2/components/child/ProductFeaturedImageCarousel.js +5 -5
  49. package/dist/cjs/product/components/ProductImagesV2/components/feature-gallery/FeatureImageWithGallery.liquid.js +8 -4
  50. package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +2 -2
  51. package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.liquid.js +6 -3
  52. package/dist/cjs/product/components/ProductImagesV2/components/lightbox/ProductImagesLightBox.js +2 -2
  53. package/dist/cjs/product/components/ProductImagesV2/hooks/useProductFeaturedImageCarousel.js +3 -3
  54. package/dist/cjs/product/components/ProductList/ProductListCarouselLayout.js +2 -2
  55. package/dist/cjs/product/components/ProductList/ProductListCarouselLayout.liquid.js +5 -3
  56. package/dist/cjs/product/components/ProductList/common/index.js +5 -5
  57. package/dist/cjs/product/components/ProductVariants/common/main/getAttr.js +1 -1
  58. package/dist/cjs/text/components/Text.js +3 -3
  59. package/dist/esm/article/setting/configs/ArticleDate/presets.js +1 -1
  60. package/dist/esm/article/setting/configs/ArticleDate/settings.js +3 -0
  61. package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +20 -1
  62. package/dist/esm/article/setting/configs/ArticleReadMore/uiV2.js +10 -10
  63. package/dist/esm/builder.js +2 -2
  64. package/dist/esm/button/setting/configs/settings.js +0 -14
  65. package/dist/esm/carousel/arrow/Arrow.js +48 -0
  66. package/dist/esm/carousel/arrow/Arrow.liquid.js +42 -0
  67. package/dist/esm/carousel/{components/common/arrow.js → arrow/common/common.js} +12 -10
  68. package/dist/esm/carousel/arrow/common/getClass.js +48 -0
  69. package/dist/esm/carousel/arrow/common/getStyle.js +82 -0
  70. package/dist/esm/carousel/carousel-item/CarouselItem.js +28 -0
  71. package/dist/esm/carousel/carousel-item/CarouselItem.liquid.js +34 -0
  72. package/dist/esm/carousel/carousel-item/common/getClass.js +27 -0
  73. package/dist/esm/carousel/{components/CarouselItem.liquid.js → carousel-item/common/getStyle.js} +31 -46
  74. package/dist/esm/carousel/carousel-item/hook/useCarouseItem.js +12 -0
  75. package/dist/esm/carousel/components/const/index.js +3 -0
  76. package/dist/esm/carousel/dots/Dots.js +47 -0
  77. package/dist/esm/carousel/dots/Dots.liquid.js +22 -0
  78. package/dist/esm/carousel/dots/common/common.js +43 -0
  79. package/dist/esm/carousel/dots/common/getClass.js +38 -0
  80. package/dist/esm/carousel/dots/common/getStyle.js +31 -0
  81. package/dist/esm/carousel/dots/hook/useDotsSetting.js +19 -0
  82. package/dist/esm/carousel/index.js +1 -2
  83. package/dist/esm/carousel/next.js +2 -2
  84. package/dist/esm/carousel/root/Carousel.js +125 -0
  85. package/dist/esm/carousel/root/Carousel.liquid.js +100 -0
  86. package/dist/esm/carousel/root/common/getAttr.js +23 -0
  87. package/dist/esm/carousel/root/common/getClass.js +133 -0
  88. package/dist/esm/carousel/root/common/getData.js +54 -0
  89. package/dist/esm/carousel/root/common/getStyle.js +62 -0
  90. package/dist/esm/carousel/{components/Carousel.js → root/hook/useCarousel.js} +150 -316
  91. package/dist/esm/carousel/setting/Carousel.js +8 -1555
  92. package/dist/esm/carousel/setting/configs/presets.js +378 -0
  93. package/dist/esm/carousel/setting/configs/settingV2.js +769 -0
  94. package/dist/esm/carousel/setting/configs/uiV1.js +432 -0
  95. package/dist/esm/carousel/setting/configs/uiV2.js +625 -0
  96. package/dist/esm/common/components/NoDataState.js +6 -6
  97. package/dist/esm/grid/row/commons/common.js +1 -1
  98. package/dist/esm/index.js +2 -2
  99. package/dist/esm/index.liquid.js +2 -2
  100. package/dist/esm/product/components/ProductImages/ProductGalleryCarousel.js +2 -2
  101. package/dist/esm/product/components/ProductImages/ProductImagesLightBox.js +2 -2
  102. package/dist/esm/product/components/ProductImages/liquid/ProductGalleryCarousel.liquid.js +5 -3
  103. package/dist/esm/product/components/ProductImagesV2/common/getAttr.js +1 -0
  104. package/dist/esm/product/components/ProductImagesV2/common/productFeaturedImage.js +1 -1
  105. package/dist/esm/product/components/ProductImagesV2/common/productGallery.js +1 -1
  106. package/dist/esm/product/components/ProductImagesV2/components/child/ProductFeaturedImageCarousel.js +5 -5
  107. package/dist/esm/product/components/ProductImagesV2/components/feature-gallery/FeatureImageWithGallery.liquid.js +8 -4
  108. package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +2 -2
  109. package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.liquid.js +6 -3
  110. package/dist/esm/product/components/ProductImagesV2/components/lightbox/ProductImagesLightBox.js +2 -2
  111. package/dist/esm/product/components/ProductImagesV2/hooks/useProductFeaturedImageCarousel.js +3 -3
  112. package/dist/esm/product/components/ProductList/ProductListCarouselLayout.js +2 -2
  113. package/dist/esm/product/components/ProductList/ProductListCarouselLayout.liquid.js +5 -3
  114. package/dist/esm/product/components/ProductList/common/index.js +3 -3
  115. package/dist/esm/product/components/ProductVariants/common/main/getAttr.js +1 -1
  116. package/dist/esm/text/components/Text.js +4 -4
  117. package/dist/types/index.d.ts +164 -67
  118. package/package.json +3 -3
  119. package/dist/cjs/carousel/components/Arrow.js +0 -110
  120. package/dist/cjs/carousel/components/Arrow.liquid.js +0 -103
  121. package/dist/cjs/carousel/components/Carousel.liquid.js +0 -256
  122. package/dist/cjs/carousel/components/CarouselItem.js +0 -88
  123. package/dist/cjs/carousel/components/Dots.js +0 -69
  124. package/dist/cjs/carousel/components/Dots.liquid.js +0 -23
  125. package/dist/cjs/carousel/components/common/dots.js +0 -57
  126. package/dist/esm/carousel/components/Arrow.js +0 -106
  127. package/dist/esm/carousel/components/Arrow.liquid.js +0 -99
  128. package/dist/esm/carousel/components/Carousel.liquid.js +0 -252
  129. package/dist/esm/carousel/components/CarouselItem.js +0 -84
  130. package/dist/esm/carousel/components/Dots.js +0 -65
  131. package/dist/esm/carousel/components/Dots.liquid.js +0 -19
  132. package/dist/esm/carousel/components/common/dots.js +0 -53
@@ -2,7 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var AnimationPlugin = require('../components/plugins/AnimationPlugin.js');
5
+ var settingV2 = require('./configs/settingV2.js');
6
+ var uiV1 = require('./configs/uiV1.js');
7
+ var uiV2 = require('./configs/uiV2.js');
8
+ var presets = require('./configs/presets.js');
6
9
 
7
10
  const config = {
8
11
  tag: 'Carousel',
@@ -12,1184 +15,10 @@ const config = {
12
15
  <path fill-rule="evenodd" clip-rule="evenodd" d="M4.96586 7.25C4.96586 6.14543 5.86129 5.25 6.96586 5.25H17.0346C18.1391 5.25 19.0346 6.14543 19.0346 7.25V16.7484C19.0346 17.853 18.1391 18.7484 17.0346 18.7484H6.96586C5.86129 18.7484 4.96586 17.853 4.96586 16.7484V7.25ZM9.36039 6.25H6.96586C6.41357 6.25 5.96586 6.69772 5.96586 7.25V16.7484C5.96586 17.3007 6.41357 17.7484 6.96586 17.7484H9.36039L9.36039 6.25ZM10.3604 17.7484V6.25H14.1455V17.7484H10.3604ZM15.1455 17.7484H17.0346C17.5869 17.7484 18.0346 17.3007 18.0346 16.7484V7.25C18.0346 6.69771 17.5869 6.25 17.0346 6.25H15.1455V17.7484ZM3.31666 10.5447C3.51708 10.7346 3.52555 11.0511 3.33558 11.2515L2.61349 12.0133L3.33449 12.7691C3.52509 12.969 3.51762 13.2854 3.31781 13.4761C3.118 13.6667 2.8015 13.6592 2.6109 13.4594L1.693 12.4971C1.43561 12.2273 1.43493 11.803 1.69148 11.5324L2.60981 10.5636C2.79978 10.3632 3.11625 10.3547 3.31666 10.5447ZM20.6827 10.5458C20.8825 10.3552 21.199 10.3627 21.3896 10.5625L22.3075 11.5247C22.5649 11.7946 22.5656 12.2188 22.309 12.4894L21.3907 13.4583C21.2007 13.6587 20.8843 13.6672 20.6839 13.4772C20.4834 13.2872 20.475 12.9707 20.6649 12.7703L21.387 12.0085L20.666 11.2527C20.4754 11.0529 20.4829 10.7364 20.6827 10.5458ZM21.5839 12.215C21.5838 12.2149 21.584 12.2151 21.5839 12.215V12.215Z" fill="white"/>
13
16
  </svg>
14
17
  `,
15
- settings: [
16
- {
17
- id: 'setting',
18
- controls: [
19
- {
20
- id: 'itemNumber',
21
- label: '',
22
- type: 'layout-custom-segment',
23
- itemPerRow: 3,
24
- iconViewBox: '0 0 78 52',
25
- enableItemBackground: true,
26
- options: [
27
- {
28
- value: '1',
29
- type: 'carousel-layout'
30
- },
31
- {
32
- value: '2',
33
- type: 'carousel-layout'
34
- },
35
- {
36
- value: '3',
37
- type: 'carousel-layout'
38
- },
39
- {
40
- value: '4',
41
- type: 'carousel-layout'
42
- },
43
- {
44
- value: '5',
45
- type: 'carousel-layout'
46
- },
47
- {
48
- value: 'custom',
49
- type: 'carousel-layout'
50
- }
51
- ],
52
- devices: {
53
- desktop: {
54
- default: 4
55
- },
56
- tablet: {
57
- default: 2
58
- },
59
- mobile: {
60
- default: 2
61
- }
62
- }
63
- },
64
- {
65
- id: 'sneakPeak',
66
- label: 'Sneak peak',
67
- type: 'sneak-peak',
68
- devices: {
69
- desktop: {
70
- default: false
71
- }
72
- }
73
- },
74
- {
75
- id: 'sneakPeakType',
76
- label: '',
77
- type: 'sneak-peak-type',
78
- itemPerRow: 2,
79
- iconViewBox: '0 0 118 52',
80
- enableItemBackground: true,
81
- enableTooltip: true,
82
- options: [
83
- {
84
- value: 'forward',
85
- type: 'sneak-peak-offset'
86
- },
87
- {
88
- value: 'center',
89
- type: 'sneak-peak-offset'
90
- }
91
- ],
92
- devices: {
93
- desktop: {
94
- default: 'forward'
95
- }
96
- }
97
- },
98
- {
99
- id: 'sneakPeakOffsetForward',
100
- label: '',
101
- sneakPeakType: 'forward',
102
- type: 'sneak-peak-range',
103
- devices: {
104
- desktop: {
105
- default: 50
106
- }
107
- }
108
- },
109
- {
110
- id: 'sneakPeakOffsetCenter',
111
- label: '',
112
- sneakPeakType: 'center',
113
- type: 'sneak-peak-range',
114
- devices: {
115
- desktop: {
116
- default: 50
117
- }
118
- }
119
- },
120
- {
121
- id: 'childItem',
122
- label: 'Item management',
123
- type: 'child-item',
124
- default: [
125
- 'Slide 1',
126
- 'Slide 2',
127
- 'Slide 3',
128
- 'Slide 4',
129
- 'Slide 5',
130
- 'Slide 6'
131
- ]
132
- },
133
- {
134
- id: 'group-settings',
135
- type: 'group',
136
- label: 'Carousel setting',
137
- controls: [
138
- {
139
- id: 'vertical',
140
- label: 'Vertical layout',
141
- type: 'toggle',
142
- devices: {
143
- desktop: {
144
- default: false
145
- }
146
- }
147
- },
148
- {
149
- id: 'controlOverContent',
150
- label: 'Next & previous position',
151
- type: 'segment',
152
- options: [
153
- {
154
- label: 'Inside',
155
- value: true
156
- },
157
- {
158
- label: 'Outside',
159
- value: false
160
- }
161
- ],
162
- devices: {
163
- desktop: {
164
- default: true
165
- }
166
- }
167
- },
168
- {
169
- id: 'dot',
170
- label: 'Dots',
171
- type: 'toggle',
172
- devices: {
173
- desktop: {
174
- default: true
175
- },
176
- tablet: {
177
- default: true
178
- },
179
- mobile: {
180
- default: true
181
- }
182
- }
183
- },
184
- {
185
- id: 'dotStyle',
186
- label: 'Dot style',
187
- type: 'layout-segment',
188
- iconViewBox: '0 0 77 48',
189
- enableItemBackground: true,
190
- enableTooltip: true,
191
- options: [
192
- {
193
- label: 'None',
194
- value: 'none',
195
- type: 'carousel-dot'
196
- },
197
- {
198
- label: 'Inside',
199
- value: 'inside',
200
- type: 'carousel-dot'
201
- },
202
- {
203
- label: 'Outside',
204
- value: 'outside',
205
- type: 'carousel-dot'
206
- }
207
- ],
208
- devices: {
209
- desktop: {
210
- default: 'inside'
211
- }
212
- }
213
- },
214
- {
215
- id: 'dotSize',
216
- label: 'Dots size',
217
- type: 'input:number',
218
- min: 1,
219
- devices: {
220
- desktop: {
221
- default: 12
222
- }
223
- }
224
- },
225
- {
226
- id: 'dotGapToCarousel',
227
- label: 'Gap to carousel',
228
- type: 'input:unit',
229
- useOnlyUnitInit: true,
230
- units: [
231
- 'px'
232
- ],
233
- min: 0,
234
- devices: {
235
- desktop: {
236
- default: 16
237
- }
238
- }
239
- },
240
- {
241
- id: 'dotColor',
242
- label: 'Dot color',
243
- type: 'colorpicker',
244
- devices: {
245
- desktop: {
246
- default: 'bg-1'
247
- }
248
- }
249
- },
250
- {
251
- id: 'dotActiveColor',
252
- label: 'Dot color active',
253
- type: 'colorpicker',
254
- devices: {
255
- desktop: {
256
- default: 'line-3'
257
- }
258
- }
259
- },
260
- {
261
- id: 'navigationStyle',
262
- type: 'layout-segment',
263
- iconViewBox: '0 0 77 48',
264
- enableItemBackground: true,
265
- label: 'Navigation style',
266
- enableTooltip: true,
267
- options: [
268
- {
269
- label: 'None',
270
- value: 'none',
271
- type: 'carousel-navigation',
272
- isTextIcon: true
273
- },
274
- {
275
- label: 'Inside',
276
- value: 'inside',
277
- type: 'carousel-navigation'
278
- },
279
- {
280
- label: 'Outside',
281
- value: 'outside',
282
- type: 'carousel-navigation'
283
- }
284
- ],
285
- devices: {
286
- desktop: {
287
- default: 'inside'
288
- }
289
- }
290
- },
291
- {
292
- id: 'arrowCustom',
293
- type: 'icon',
294
- hideInput: true,
295
- hideLabel: true,
296
- default: `<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
297
- <path fill-rule="evenodd" clip-rule="evenodd" d="M7.62204 5.13313C7.78476 4.95562 8.04858 4.95562 8.21129 5.13313L12.378 9.67859C12.5407 9.8561 12.5407 10.1439 12.378 10.3214L8.21129 14.8669C8.04858 15.0444 7.78476 15.0444 7.62204 14.8669C7.45932 14.6894 7.45932 14.4016 7.62204 14.224L11.4941 10L7.62204 5.77596C7.45932 5.59845 7.45932 5.31064 7.62204 5.13313Z"/>
298
- </svg>
299
- `
300
- },
301
- {
302
- id: 'arrowCustomColor',
303
- label: 'Icon color',
304
- type: 'colorpicker',
305
- default: '#000000'
306
- },
307
- {
308
- id: 'arrowIconSize',
309
- label: 'Number per show',
310
- type: 'input:number',
311
- min: 1,
312
- devices: {
313
- desktop: {
314
- default: 24
315
- }
316
- }
317
- },
318
- {
319
- id: 'arrowButtonSize',
320
- type: 'size-setting',
321
- label: '',
322
- devices: {
323
- desktop: {
324
- default: {
325
- shapeValue: '1/1',
326
- shapeLinked: true,
327
- width: '32px',
328
- height: '32px',
329
- padding: {
330
- linked: true
331
- }
332
- }
333
- }
334
- },
335
- lockShapeValue: true,
336
- hiddenShowMore: true,
337
- hiddenSettings: [
338
- 'gap',
339
- 'proportion'
340
- ],
341
- settingConfig: {
342
- width: {
343
- name: 'Width',
344
- units: [
345
- 'px'
346
- ],
347
- displayOptions: [
348
- 'small',
349
- 'medium',
350
- 'large'
351
- ],
352
- sizeConfig: {
353
- small: '24px',
354
- medium: '32px',
355
- large: '40px'
356
- }
357
- },
358
- height: {
359
- name: 'Height',
360
- units: [
361
- 'px'
362
- ],
363
- displayOptions: [
364
- 'small',
365
- 'medium',
366
- 'large',
367
- 'full-height'
368
- ],
369
- sizeConfig: {
370
- small: '24px',
371
- medium: '32px',
372
- large: '40px',
373
- full: '100%'
374
- }
375
- },
376
- padding: {
377
- paddingConfig: {
378
- small: {
379
- vertical: '2px',
380
- horizontal: '2px'
381
- },
382
- medium: {
383
- vertical: '4px',
384
- horizontal: '4px'
385
- },
386
- large: {
387
- vertical: '8px',
388
- horizontal: '8px'
389
- }
390
- }
391
- }
392
- },
393
- sizePaddingInput: 'small'
394
- },
395
- {
396
- id: 'arrowBackgroundColor',
397
- label: 'Background Color',
398
- type: 'colorpicker',
399
- default: 'transparent'
400
- },
401
- {
402
- id: 'arrowBorder',
403
- type: 'border',
404
- label: 'Border',
405
- devices: {
406
- desktop: {
407
- default: {
408
- borderType: 'none',
409
- border: 'none',
410
- borderWidth: '1px',
411
- width: '1px 1px 1px 1px',
412
- isCustom: false
413
- }
414
- }
415
- }
416
- },
417
- {
418
- id: 'roundedArrow',
419
- type: 'radius-preset',
420
- label: 'Border Radius',
421
- devices: {
422
- desktop: {
423
- default: {
424
- radiusType: 'small'
425
- }
426
- }
427
- }
428
- },
429
- {
430
- id: 'arrowGapToEachSide',
431
- label: 'Gap to each side',
432
- type: 'input:unit',
433
- useOnlyUnitInit: true,
434
- units: [
435
- 'px'
436
- ],
437
- default: '16'
438
- },
439
- {
440
- id: 'showWhenHover',
441
- label: 'Only show when hover',
442
- type: 'toggle',
443
- default: false
444
- }
445
- ]
446
- },
447
- {
448
- id: 'interaction',
449
- type: 'group',
450
- label: 'Interaction',
451
- controls: [
452
- {
453
- id: 'rtl',
454
- label: 'Direction',
455
- type: 'segment',
456
- options: [
457
- {
458
- icon: `
459
- <svg width="14" height="10" viewBox="0 0 14 10" fill="none" xmlns="http://www.w3.org/2000/svg">
460
- <path fill-rule="evenodd" clip-rule="evenodd" d="M0.499573 5C0.499573 4.58579 0.835359 4.25 1.24957 4.25L10.9392 4.25L8.21927 1.53036C7.92636 1.23748 7.92634 0.762605 8.21922 0.469697C8.51209 0.176788 8.98697 0.176764 9.27988 0.469644L13.2803 4.46964C13.4209 4.6103 13.5 4.80107 13.5 5C13.5 5.19893 13.4209 5.3897 13.2803 5.53036L9.27988 9.53036C8.98697 9.82324 8.51209 9.82321 8.21922 9.5303C7.92634 9.2374 7.92636 8.76252 8.21927 8.46964L10.9392 5.75L1.24957 5.75C0.835359 5.75 0.499573 5.41421 0.499573 5Z" fill="#F9F9F9"/>
461
- </svg>
462
- `,
463
- value: false,
464
- type: 'align',
465
- tooltip: 'Left to right'
466
- },
467
- {
468
- icon: `
469
- <svg width="14" height="10" viewBox="0 0 14 10" fill="none" xmlns="http://www.w3.org/2000/svg">
470
- <path fill-rule="evenodd" clip-rule="evenodd" d="M13.75 5C13.75 5.41421 13.4142 5.75 13 5.75L3.31078 5.75L6.0307 8.46964C6.32361 8.76252 6.32363 9.23739 6.03075 9.5303C5.73787 9.82321 5.263 9.82324 4.97009 9.53036L0.969692 5.53036C0.829023 5.3897 0.749995 5.19892 0.749995 5C0.749995 4.80107 0.829023 4.6103 0.969692 4.46964L4.97009 0.469643C5.263 0.176764 5.73787 0.176788 6.03075 0.469696C6.32363 0.762604 6.32361 1.23748 6.0307 1.53036L3.31078 4.25L13 4.25C13.4142 4.25 13.75 4.58579 13.75 5Z" fill="#F9F9F9"/>
471
- </svg>
472
- `,
473
- value: true,
474
- type: 'align',
475
- tooltip: 'Right to left'
476
- }
477
- ],
478
- default: false
479
- },
480
- {
481
- id: 'autoplay',
482
- label: 'Autoplay',
483
- type: 'toggle',
484
- default: false
485
- },
486
- {
487
- id: 'autoplayTimeout',
488
- label: 'Time out',
489
- type: 'range',
490
- min: 1,
491
- max: 10,
492
- step: 0.1,
493
- default: 2,
494
- hide: true,
495
- hideUnit: true,
496
- useOnlyUnitInit: true,
497
- ignoreMax: true
498
- },
499
- {
500
- id: 'pauseOnHover',
501
- label: 'Pause On Hover',
502
- type: 'toggle',
503
- default: true,
504
- hide: true
505
- },
506
- {
507
- id: 'runPreview',
508
- type: 'play-pause',
509
- hideLabel: true,
510
- default: false
511
- },
512
- {
513
- id: 'enableDrag',
514
- label: 'Drag to scroll',
515
- type: 'toggle',
516
- devices: {
517
- desktop: {
518
- default: false
519
- }
520
- }
521
- },
522
- {
523
- id: 'loop',
524
- label: 'Infinity loop',
525
- type: 'toggle',
526
- devices: {
527
- desktop: {
528
- default: false
529
- }
530
- }
531
- },
532
- {
533
- id: 'animationMode',
534
- label: 'Animation',
535
- type: 'select',
536
- default: AnimationPlugin.CAROUSEL_ANIMATION.EASE_IN.value,
537
- options: [
538
- {
539
- label: 'Ease in',
540
- value: AnimationPlugin.CAROUSEL_ANIMATION.EASE_IN.value
541
- },
542
- {
543
- label: 'Ease out',
544
- value: AnimationPlugin.CAROUSEL_ANIMATION.EASE_OUT.value
545
- },
546
- {
547
- label: 'Ease in out',
548
- value: AnimationPlugin.CAROUSEL_ANIMATION.EASE_IN_OUT.value
549
- }
550
- ]
551
- }
552
- ]
553
- },
554
- {
555
- id: 'background',
556
- type: 'background',
557
- ignoreReRender: true,
558
- allowBackgroundImageAndVideo: false,
559
- devices: {
560
- desktop: {
561
- default: {
562
- type: 'color',
563
- color: 'transparent',
564
- image: {
565
- src: '',
566
- width: 0,
567
- height: 0
568
- },
569
- size: 'cover',
570
- position: {
571
- x: 50,
572
- y: 50
573
- },
574
- repeat: 'no-repeat',
575
- attachment: 'scroll'
576
- }
577
- }
578
- }
579
- },
580
- {
581
- id: 'label',
582
- label: 'Option Label',
583
- type: 'toggle',
584
- default: true
585
- }
586
- ]
587
- },
588
- {
589
- id: 'style',
590
- controls: [
591
- {
592
- id: 'playSpeed',
593
- label: 'Slide speed',
594
- type: 'input:unit',
595
- useOnlyUnitInit: true,
596
- min: 1,
597
- units: [
598
- 'ms'
599
- ],
600
- default: 500
601
- },
602
- {
603
- id: 'Dimensions',
604
- type: 'group',
605
- label: 'Dimensions',
606
- controls: [
607
- {
608
- id: 'sizeSetting',
609
- type: 'size-setting',
610
- label: '',
611
- devices: {
612
- desktop: {
613
- default: {
614
- shapeLinked: false,
615
- width: 'default',
616
- height: 'auto'
617
- }
618
- }
619
- },
620
- settingConfig: {
621
- width: {
622
- displayOptions: [
623
- 'full',
624
- 'default'
625
- ],
626
- name: 'Width'
627
- },
628
- height: {
629
- displayOptions: [
630
- 'auto',
631
- 'small',
632
- 'medium',
633
- 'large'
634
- ],
635
- name: 'Height',
636
- sizeConfig: {
637
- small: '300px',
638
- medium: '500px',
639
- large: '700px'
640
- }
641
- }
642
- },
643
- hiddenSettings: [
644
- 'padding',
645
- 'gap',
646
- 'shape'
647
- ]
648
- },
649
- {
650
- id: 'align',
651
- label: 'Align',
652
- type: 'segment',
653
- options: [
654
- {
655
- label: 'Left',
656
- value: 'left',
657
- type: 'align',
658
- tooltip: 'Align left'
659
- },
660
- {
661
- label: 'Center',
662
- value: 'center',
663
- type: 'align',
664
- tooltip: 'Align center'
665
- },
666
- {
667
- label: 'Right',
668
- value: 'right',
669
- type: 'align',
670
- tooltip: 'Align right'
671
- }
672
- ],
673
- devices: {
674
- desktop: {
675
- default: 'center'
676
- }
677
- }
678
- }
679
- ]
680
- },
681
- {
682
- id: 'borderContent',
683
- type: 'border',
684
- label: 'Border',
685
- default: {
686
- borderType: 'none',
687
- border: 'none',
688
- width: '1px 1px 1px 1px',
689
- position: 'all',
690
- borderWidth: '1px',
691
- color: '#121212',
692
- isCustom: true
693
- }
694
- },
695
- {
696
- id: 'roundedContent',
697
- type: 'radius-preset',
698
- label: 'Corner',
699
- default: {
700
- radiusType: 'none'
701
- }
702
- },
703
- {
704
- id: 'hasActiveShadow',
705
- type: 'toggle',
706
- label: 'Enable Button Shadow',
707
- default: false
708
- },
709
- {
710
- id: 'carouselShadow',
711
- type: 'boxShadow',
712
- label: 'Button Shadow',
713
- default: {
714
- type: 'shadow-1',
715
- distance: '4px',
716
- blur: '12px',
717
- spread: '0px',
718
- color: '#121212',
719
- angle: 90
720
- }
721
- },
722
- {
723
- id: 'spacing',
724
- label: 'Items spacing',
725
- type: 'input:unit',
726
- useOnlyUnitInit: true,
727
- units: [
728
- 'px'
729
- ],
730
- devices: {
731
- desktop: {
732
- default: 16
733
- }
734
- }
735
- },
736
- {
737
- id: 'itemPadding',
738
- type: 'size-setting',
739
- devices: {
740
- desktop: {
741
- default: {
742
- padding: {
743
- type: 'custom',
744
- top: '0px',
745
- left: '0px',
746
- bottom: '0px',
747
- right: '0px'
748
- }
749
- }
750
- }
751
- },
752
- hiddenSettings: [
753
- 'shape',
754
- 'gap',
755
- 'width',
756
- 'height'
757
- ],
758
- hiddenShowMore: true
759
- }
760
- ]
761
- }
762
- ],
763
- ui: [
764
- {
765
- type: 'group',
766
- label: {
767
- en: 'Display'
768
- },
769
- controls: [
770
- {
771
- type: 'control',
772
- setting: {
773
- id: 'itemNumber'
774
- }
775
- },
776
- {
777
- type: 'control',
778
- label: {
779
- en: 'Items spacing'
780
- },
781
- setting: {
782
- id: 'spacing'
783
- },
784
- condition: 'itemNumber>=2'
785
- },
786
- {
787
- type: 'control',
788
- label: {
789
- en: 'Sneak peak'
790
- },
791
- setting: {
792
- id: 'sneakPeak'
793
- },
794
- condition: 'itemNumber>=2'
795
- },
796
- {
797
- type: 'control',
798
- condition: 'sneakPeak == true',
799
- setting: {
800
- id: 'sneakPeakType'
801
- }
802
- },
803
- {
804
- type: 'control',
805
- condition: 'sneakPeak == true && sneakPeakType == "forward"',
806
- setting: {
807
- id: 'sneakPeakOffsetForward'
808
- }
809
- },
810
- {
811
- type: 'control',
812
- condition: 'sneakPeak == true && sneakPeakType == "center"',
813
- setting: {
814
- id: 'sneakPeakOffsetCenter'
815
- }
816
- }
817
- ]
818
- },
819
- {
820
- type: 'group',
821
- label: {
822
- en: 'Item management'
823
- },
824
- controls: [
825
- {
826
- type: 'control',
827
- layout: 'vertical',
828
- setting: {
829
- id: 'childItem'
830
- }
831
- }
832
- ]
833
- },
834
- {
835
- type: 'group',
836
- label: {
837
- en: 'Navigation'
838
- },
839
- controls: [
840
- {
841
- type: 'control',
842
- setting: {
843
- id: 'navigationStyle'
844
- }
845
- },
846
- {
847
- condition: 'navigationStyle !== "none"',
848
- type: 'control',
849
- label: {
850
- en: 'Icon'
851
- },
852
- setting: {
853
- id: 'arrowCustom'
854
- }
855
- },
856
- {
857
- condition: 'navigationStyle !== "none"',
858
- type: 'control',
859
- label: {
860
- en: 'Icon size'
861
- },
862
- setting: {
863
- id: 'arrowIconSize'
864
- }
865
- },
866
- {
867
- condition: 'navigationStyle !== "none"',
868
- type: 'control',
869
- label: {
870
- en: 'Icon color'
871
- },
872
- setting: {
873
- id: 'arrowCustomColor'
874
- },
875
- isMoreSetting: true
876
- },
877
- {
878
- type: 'control',
879
- condition: 'navigationStyle !== "none"',
880
- setting: {
881
- id: 'arrowButtonSize'
882
- },
883
- layout: 'vertical',
884
- isMoreSetting: true
885
- },
886
- {
887
- type: 'control',
888
- condition: 'navigationStyle !== "none"',
889
- label: {
890
- en: 'Background color'
891
- },
892
- setting: {
893
- id: 'arrowBackgroundColor'
894
- },
895
- isMoreSetting: true
896
- },
897
- {
898
- type: 'control',
899
- condition: 'navigationStyle !== "none"',
900
- options: {
901
- labelPosition: 'start'
902
- },
903
- label: {
904
- en: 'Border'
905
- },
906
- setting: {
907
- id: 'arrowBorder'
908
- },
909
- isMoreSetting: true
910
- },
911
- {
912
- type: 'control',
913
- condition: 'navigationStyle !== "none"',
914
- label: {
915
- en: 'Corner'
916
- },
917
- setting: {
918
- id: 'roundedArrow'
919
- },
920
- isMoreSetting: true
921
- },
922
- {
923
- type: 'control',
924
- condition: 'navigationStyle !== "none"',
925
- label: {
926
- en: 'Gap to each side'
927
- },
928
- setting: {
929
- id: 'arrowGapToEachSide'
930
- },
931
- isMoreSetting: true
932
- },
933
- {
934
- type: 'control',
935
- condition: 'navigationStyle !== "none"',
936
- label: {
937
- en: 'Only show when hover'
938
- },
939
- setting: {
940
- id: 'showWhenHover'
941
- },
942
- isMoreSetting: true
943
- }
944
- ]
945
- },
946
- {
947
- type: 'group',
948
- label: {
949
- en: 'Dots'
950
- },
951
- controls: [
952
- {
953
- type: 'control',
954
- setting: {
955
- id: 'dotStyle'
956
- }
957
- },
958
- {
959
- condition: 'dotStyle !== "none"',
960
- type: 'control',
961
- label: {
962
- en: 'Active color'
963
- },
964
- setting: {
965
- id: 'dotActiveColor'
966
- }
967
- },
968
- {
969
- condition: 'dotStyle !== "none"',
970
- type: 'control',
971
- label: {
972
- en: 'Inactive color'
973
- },
974
- setting: {
975
- id: 'dotColor'
976
- }
977
- },
978
- {
979
- condition: 'dotStyle !== "none"',
980
- type: 'control',
981
- label: {
982
- en: 'Dots size'
983
- },
984
- setting: {
985
- id: 'dotSize'
986
- },
987
- isMoreSetting: true
988
- },
989
- {
990
- condition: 'dotStyle !== "none"',
991
- type: 'control',
992
- label: {
993
- en: 'Gap to carousel'
994
- },
995
- setting: {
996
- id: 'dotGapToCarousel'
997
- },
998
- isMoreSetting: true
999
- }
1000
- ]
1001
- },
1002
- {
1003
- type: 'group',
1004
- label: {
1005
- en: 'Interaction'
1006
- },
1007
- controls: [
1008
- {
1009
- type: 'control',
1010
- label: {
1011
- en: 'Direction'
1012
- },
1013
- setting: {
1014
- id: 'rtl'
1015
- }
1016
- },
1017
- {
1018
- type: 'control',
1019
- label: {
1020
- en: 'Autoplay'
1021
- },
1022
- setting: {
1023
- id: 'autoplay'
1024
- }
1025
- },
1026
- {
1027
- type: 'control',
1028
- label: {
1029
- en: 'Time out'
1030
- },
1031
- setting: {
1032
- id: 'autoplayTimeout'
1033
- },
1034
- condition: 'autoplay === true'
1035
- },
1036
- {
1037
- type: 'control',
1038
- label: {
1039
- en: 'Pause On Hover'
1040
- },
1041
- setting: {
1042
- id: 'pauseOnHover'
1043
- },
1044
- condition: 'autoplay == true'
1045
- },
1046
- {
1047
- type: 'control',
1048
- setting: {
1049
- id: 'runPreview'
1050
- },
1051
- condition: 'autoplay === true'
1052
- },
1053
- {
1054
- type: 'control',
1055
- label: {
1056
- en: 'Drag to scroll'
1057
- },
1058
- setting: {
1059
- id: 'enableDrag'
1060
- }
1061
- },
1062
- {
1063
- type: 'control',
1064
- label: {
1065
- en: 'Infinity loop'
1066
- },
1067
- setting: {
1068
- id: 'loop'
1069
- }
1070
- },
1071
- {
1072
- type: 'control',
1073
- label: {
1074
- en: 'Slide speed'
1075
- },
1076
- setting: {
1077
- id: 'playSpeed'
1078
- },
1079
- isMoreSetting: true
1080
- },
1081
- {
1082
- type: 'control',
1083
- label: {
1084
- en: 'Animation'
1085
- },
1086
- setting: {
1087
- id: 'animationMode'
1088
- },
1089
- isMoreSetting: true
1090
- }
1091
- ]
1092
- },
1093
- {
1094
- type: 'group',
1095
- label: {
1096
- en: 'Size'
1097
- },
1098
- controls: [
1099
- {
1100
- type: 'control',
1101
- setting: {
1102
- id: 'sizeSetting'
1103
- },
1104
- layout: 'vertical'
1105
- },
1106
- {
1107
- type: 'control',
1108
- setting: {
1109
- id: 'itemPadding'
1110
- },
1111
- isMoreSetting: true,
1112
- options: {
1113
- noGap: true
1114
- }
1115
- }
1116
- ]
1117
- },
1118
- {
1119
- type: 'group',
1120
- label: {
1121
- en: 'Shape'
1122
- },
1123
- controls: [
1124
- {
1125
- type: 'control',
1126
- options: {
1127
- labelPosition: 'start'
1128
- },
1129
- label: {
1130
- en: 'Border'
1131
- },
1132
- setting: {
1133
- id: 'borderContent'
1134
- }
1135
- },
1136
- {
1137
- type: 'control',
1138
- label: {
1139
- en: 'Corner'
1140
- },
1141
- setting: {
1142
- id: 'roundedContent'
1143
- }
1144
- },
1145
- {
1146
- type: 'control',
1147
- label: {
1148
- en: 'Shadow'
1149
- },
1150
- setting: {
1151
- id: 'hasActiveShadow'
1152
- }
1153
- },
1154
- {
1155
- type: 'control',
1156
- setting: {
1157
- id: 'carouselShadow'
1158
- },
1159
- layout: 'vertical',
1160
- condition: 'hasActiveShadow === true'
1161
- }
1162
- ]
1163
- },
1164
- {
1165
- type: 'control',
1166
- label: {
1167
- en: 'Background'
1168
- },
1169
- options: {
1170
- label: 'large',
1171
- styleLabel: {
1172
- marginBottom: '4px'
1173
- }
1174
- },
1175
- setting: {
1176
- id: 'background'
1177
- },
1178
- layout: 'vertical'
1179
- },
1180
- {
1181
- type: 'control',
1182
- label: {
1183
- en: 'Align'
1184
- },
1185
- setting: {
1186
- id: 'align'
1187
- },
1188
- options: {
1189
- label: 'large'
1190
- }
1191
- }
1192
- ],
18
+ settings: settingV2.CarouselSettingsV2,
19
+ ui: uiV1.SettingUIV1,
20
+ uiV2: uiV2.SettingUIV2,
21
+ presets: presets.CarouselPreset,
1193
22
  editorConfigs: {
1194
23
  slots: {
1195
24
  children: false
@@ -1202,382 +31,6 @@ const config = {
1202
31
  ]
1203
32
  }
1204
33
  },
1205
- presets: [
1206
- {
1207
- id: 'carousel',
1208
- name: {
1209
- en: 'Carousel'
1210
- },
1211
- icon: {
1212
- desktop: `
1213
- <svg width="96" height="48" viewBox="0 0 96 48" fill="none" xmlns="http://www.w3.org/2000/svg">
1214
- <rect width="96" height="48" rx="3" fill="#424242"/>
1215
- <path fill-rule="evenodd" clip-rule="evenodd" d="M13.8828 18.1302C14.0391 18.3037 14.0391 18.5851 13.8828 18.7587L10.9657 22L13.8828 25.2413C14.0391 25.4149 14.0391 25.6963 13.8828 25.8698C13.7266 26.0434 13.4734 26.0434 13.3172 25.8698L10.1172 22.3143C9.96095 22.1407 9.96095 21.8593 10.1172 21.6857L13.3172 18.1302C13.4734 17.9566 13.7266 17.9566 13.8828 18.1302Z" fill="#F9F9F9"/>
1216
- <path fill-rule="evenodd" clip-rule="evenodd" d="M82.1172 18.1302C82.2734 17.9566 82.5266 17.9566 82.6828 18.1302L85.8828 21.6857C86.0391 21.8593 86.0391 22.1407 85.8828 22.3143L82.6828 25.8698C82.5266 26.0434 82.2734 26.0434 82.1172 25.8698C81.9609 25.6963 81.9609 25.4149 82.1172 25.2413L85.0343 22L82.1172 18.7587C81.9609 18.5851 81.9609 18.3037 82.1172 18.1302Z" fill="#F9F9F9"/>
1217
- <circle cx="40" cy="38" r="2" fill="#F9F9F9"/>
1218
- <circle cx="48" cy="38" r="2" fill="#757575"/>
1219
- <circle cx="56" cy="38" r="2" fill="#757575"/>
1220
- </svg>
1221
- `
1222
- },
1223
- components: [
1224
- {
1225
- tag: 'Carousel',
1226
- label: 'Carousel',
1227
- settings: {
1228
- childItem: [
1229
- 'Slide 1',
1230
- 'Slide 2'
1231
- ],
1232
- itemNumber: {
1233
- desktop: 1,
1234
- tablet: 1,
1235
- mobile: 1
1236
- }
1237
- },
1238
- styles: {
1239
- sizeSetting: {
1240
- desktop: {
1241
- width: '100%'
1242
- }
1243
- }
1244
- },
1245
- advanced: {
1246
- 'spacing-setting': {
1247
- desktop: {
1248
- margin: {
1249
- bottom: 'var(--g-s-l)'
1250
- }
1251
- }
1252
- }
1253
- },
1254
- childrens: [
1255
- {
1256
- tag: 'CarouselItem',
1257
- label: 'Carousel Item',
1258
- childrens: []
1259
- },
1260
- {
1261
- tag: 'CarouselItem',
1262
- label: 'Carousel Item',
1263
- childrens: []
1264
- }
1265
- ]
1266
- }
1267
- ]
1268
- },
1269
- {
1270
- id: 'carousel-4-col',
1271
- name: {
1272
- en: 'Carousel'
1273
- },
1274
- icon: {
1275
- desktop: `
1276
- <svg width="96" height="48" viewBox="0 0 96 48" fill="none" xmlns="http://www.w3.org/2000/svg">
1277
- <rect width="21" height="48" rx="3" fill="#424242"/>
1278
- <rect x="25" width="21" height="48" rx="3" fill="#424242"/>
1279
- <rect x="50" width="21" height="48" rx="3" fill="#424242"/>
1280
- <rect x="75" width="21" height="48" rx="3" fill="#424242"/>
1281
- <path fill-rule="evenodd" clip-rule="evenodd" d="M86.1172 20.1302C86.2734 19.9566 86.5266 19.9566 86.6828 20.1302L89.8828 23.6857C90.0391 23.8593 90.0391 24.1407 89.8828 24.3143L86.6828 27.8698C86.5266 28.0434 86.2734 28.0434 86.1172 27.8698C85.9609 27.6963 85.9609 27.4149 86.1172 27.2413L89.0343 24L86.1172 20.7587C85.9609 20.5851 85.9609 20.3037 86.1172 20.1302Z" fill="#F9F9F9"/>
1282
- <path fill-rule="evenodd" clip-rule="evenodd" d="M9.88284 20.1302C10.0391 20.3037 10.0391 20.5851 9.88284 20.7587L6.96569 24L9.88284 27.2413C10.0391 27.4149 10.0391 27.6963 9.88284 27.8698C9.72663 28.0434 9.47337 28.0434 9.31716 27.8698L6.11716 24.3143C5.96095 24.1407 5.96095 23.8593 6.11716 23.6857L9.31716 20.1302C9.47337 19.9566 9.72663 19.9566 9.88284 20.1302Z" fill="#F9F9F9"/>
1283
- </svg>
1284
- `
1285
- },
1286
- components: [
1287
- {
1288
- tag: 'Carousel',
1289
- label: 'Carousel',
1290
- settings: {
1291
- childItem: [
1292
- 'Slide 1',
1293
- 'Slide 2',
1294
- 'Slide 3',
1295
- 'Slide 4'
1296
- ],
1297
- itemNumber: {
1298
- desktop: 4,
1299
- tablet: 2,
1300
- mobile: 2
1301
- }
1302
- },
1303
- styles: {
1304
- fullWidth: {
1305
- desktop: false,
1306
- tablet: false,
1307
- mobile: false
1308
- },
1309
- sizeSetting: {
1310
- desktop: {
1311
- width: 'default'
1312
- }
1313
- }
1314
- },
1315
- advanced: {
1316
- 'spacing-setting': {
1317
- desktop: {
1318
- margin: {
1319
- bottom: 'var(--g-s-l)'
1320
- }
1321
- }
1322
- }
1323
- },
1324
- childrens: [
1325
- {
1326
- tag: 'CarouselItem',
1327
- label: 'Carousel Item',
1328
- childrens: []
1329
- },
1330
- {
1331
- tag: 'CarouselItem',
1332
- label: 'Carousel Item',
1333
- childrens: []
1334
- },
1335
- {
1336
- tag: 'CarouselItem',
1337
- label: 'Carousel Item',
1338
- childrens: []
1339
- },
1340
- {
1341
- tag: 'CarouselItem',
1342
- label: 'Carousel Item',
1343
- childrens: []
1344
- }
1345
- ]
1346
- }
1347
- ]
1348
- },
1349
- {
1350
- id: 'carousel-sneak-1-side',
1351
- name: {
1352
- en: 'Carousel'
1353
- },
1354
- icon: {
1355
- desktop: `
1356
- <svg
1357
- width="118"
1358
- height="52"
1359
- viewBox="0 0 118 52"
1360
- fill="none"
1361
- xmlns="http://www.w3.org/2000/svg"
1362
- >
1363
- <rect width="118" height="52" rx="3" fill="#212121" />
1364
- <rect x="8" y="8" width="70" height="36" rx="3" fill="#4A4A4A" />
1365
- <path
1366
- fill-rule="evenodd"
1367
- clip-rule="evenodd"
1368
- d="M107.665 25.775C107.778 25.8993 107.778 26.1007 107.665 26.225L104.748 29.4068C104.634 29.5311 104.449 29.5311 104.335 29.4068C104.222 29.2825 104.222 29.0811 104.335 28.9568L107.046 26L104.335 23.0432C104.222 22.9189 104.222 22.7175 104.335 22.5932C104.449 22.4689 104.634 22.4689 104.748 22.5932L107.665 25.775Z"
1369
- fill="#F9F9F9"
1370
- />
1371
- <path
1372
- fill-rule="evenodd"
1373
- clip-rule="evenodd"
1374
- d="M17.3354 26.225C17.2215 26.1007 17.2215 25.8993 17.3354 25.775L20.2521 22.5932C20.366 22.4689 20.5507 22.4689 20.6646 22.5932C20.7785 22.7175 20.7785 22.9189 20.6646 23.0432L17.9541 26L20.6646 28.9568C20.7785 29.0811 20.7785 29.2825 20.6646 29.4068C20.5507 29.5311 20.366 29.5311 20.2521 29.4068L17.3354 26.225Z"
1375
- fill="#F9F9F9"
1376
- />
1377
- <path
1378
- d="M82 11C82 9.34315 83.3431 8 85 8H117V44H85C83.3431 44 82 42.6569 82 41V11Z"
1379
- fill="url(#paint0_linear_1176_36442)"
1380
- />
1381
- <defs>
1382
- <linearGradient
1383
- id="paint0_linear_1176_36442"
1384
- x1="82"
1385
- y1="26"
1386
- x2="117"
1387
- y2="26"
1388
- gradientUnits="userSpaceOnUse"
1389
- >
1390
- <stop stop-color="#4A4A4A" />
1391
- <stop offset="1" stop-color="#212121" />
1392
- </linearGradient>
1393
- </defs>
1394
- </svg>
1395
- `
1396
- },
1397
- components: [
1398
- {
1399
- tag: 'Carousel',
1400
- label: 'Carousel',
1401
- settings: {
1402
- childItem: [
1403
- 'Slide 1',
1404
- 'Slide 2'
1405
- ],
1406
- itemNumber: {
1407
- desktop: 2,
1408
- tablet: 2,
1409
- mobile: 2
1410
- },
1411
- sneakPeak: {
1412
- desktop: true
1413
- },
1414
- sneakPeakType: {
1415
- desktop: 'forward'
1416
- }
1417
- },
1418
- styles: {
1419
- fullWidth: {
1420
- desktop: false,
1421
- tablet: false,
1422
- mobile: false
1423
- },
1424
- sizeSetting: {
1425
- desktop: {
1426
- width: 'default'
1427
- }
1428
- }
1429
- },
1430
- advanced: {
1431
- 'spacing-setting': {
1432
- desktop: {
1433
- margin: {
1434
- bottom: 'var(--g-s-l)'
1435
- }
1436
- }
1437
- }
1438
- },
1439
- childrens: [
1440
- {
1441
- tag: 'CarouselItem',
1442
- label: 'Carousel Item',
1443
- childrens: []
1444
- },
1445
- {
1446
- tag: 'CarouselItem',
1447
- label: 'Carousel Item',
1448
- childrens: []
1449
- }
1450
- ]
1451
- }
1452
- ]
1453
- },
1454
- {
1455
- id: 'carousel-sneak-2-side',
1456
- name: {
1457
- en: 'Carousel'
1458
- },
1459
- icon: {
1460
- desktop: `
1461
- <svg
1462
- width="118"
1463
- height="52"
1464
- viewBox="0 0 118 52"
1465
- fill="none"
1466
- xmlns="http://www.w3.org/2000/svg"
1467
- >
1468
- <rect width="118" height="52" rx="3" fill="#212121" />
1469
- <path
1470
- d="M0 8H30C31.6569 8 33 9.34315 33 11V41C33 42.6569 31.6569 44 30 44H0V8Z"
1471
- fill="url(#paint0_linear_1240_26280)"
1472
- />
1473
- <rect x="37" y="8" width="44" height="36" rx="3" fill="#4A4A4A" />
1474
- <path
1475
- d="M85 11C85 9.34315 86.3431 8 88 8H118V44H88C86.3431 44 85 42.6569 85 41V11Z"
1476
- fill="url(#paint1_linear_1240_26280)"
1477
- />
1478
- <path
1479
- fill-rule="evenodd"
1480
- clip-rule="evenodd"
1481
- d="M9.33543 26.225C9.22152 26.1007 9.22152 25.8993 9.33543 25.775L12.2521 22.5932C12.366 22.4689 12.5507 22.4689 12.6646 22.5932C12.7785 22.7175 12.7785 22.9189 12.6646 23.0432L9.95415 26L12.6646 28.9568C12.7785 29.0811 12.7785 29.2825 12.6646 29.4068C12.5507 29.5311 12.366 29.5311 12.2521 29.4068L9.33543 26.225Z"
1482
- fill="#F9F9F9"
1483
- />
1484
- <path
1485
- fill-rule="evenodd"
1486
- clip-rule="evenodd"
1487
- d="M108.665 25.775C108.778 25.8993 108.778 26.1007 108.665 26.225L105.748 29.4068C105.634 29.5311 105.449 29.5311 105.335 29.4068C105.222 29.2825 105.222 29.0811 105.335 28.9568L108.046 26L105.335 23.0432C105.222 22.9189 105.222 22.7175 105.335 22.5932C105.449 22.4689 105.634 22.4689 105.748 22.5932L108.665 25.775Z"
1488
- fill="#F9F9F9"
1489
- />
1490
- <defs>
1491
- <linearGradient
1492
- id="paint0_linear_1240_26280"
1493
- x1="33.5103"
1494
- y1="26"
1495
- x2="2.48972e-07"
1496
- y2="26"
1497
- gradientUnits="userSpaceOnUse"
1498
- >
1499
- <stop stop-color="#4A4A4A" />
1500
- <stop offset="1" stop-color="#212121" />
1501
- </linearGradient>
1502
- <linearGradient
1503
- id="paint1_linear_1240_26280"
1504
- x1="84.4898"
1505
- y1="26"
1506
- x2="118"
1507
- y2="26"
1508
- gradientUnits="userSpaceOnUse"
1509
- >
1510
- <stop stop-color="#4A4A4A" />
1511
- <stop offset="1" stop-color="#212121" />
1512
- </linearGradient>
1513
- </defs>
1514
- </svg>
1515
- `
1516
- },
1517
- components: [
1518
- {
1519
- tag: 'Carousel',
1520
- label: 'Carousel',
1521
- settings: {
1522
- childItem: [
1523
- 'Slide 1',
1524
- 'Slide 2',
1525
- 'Slide 3'
1526
- ],
1527
- itemNumber: {
1528
- desktop: 3,
1529
- tablet: 2,
1530
- mobile: 2
1531
- },
1532
- sneakPeak: {
1533
- desktop: true
1534
- },
1535
- sneakPeakType: {
1536
- desktop: 'center'
1537
- }
1538
- },
1539
- styles: {
1540
- fullWidth: {
1541
- desktop: false,
1542
- tablet: false,
1543
- mobile: false
1544
- },
1545
- sizeSetting: {
1546
- desktop: {
1547
- width: 'default'
1548
- }
1549
- }
1550
- },
1551
- advanced: {
1552
- 'spacing-setting': {
1553
- desktop: {
1554
- margin: {
1555
- bottom: 'var(--g-s-l)'
1556
- }
1557
- }
1558
- }
1559
- },
1560
- childrens: [
1561
- {
1562
- tag: 'CarouselItem',
1563
- label: 'Carousel Item',
1564
- childrens: []
1565
- },
1566
- {
1567
- tag: 'CarouselItem',
1568
- label: 'Carousel Item',
1569
- childrens: []
1570
- },
1571
- {
1572
- tag: 'CarouselItem',
1573
- label: 'Carousel Item',
1574
- childrens: []
1575
- }
1576
- ]
1577
- }
1578
- ]
1579
- }
1580
- ],
1581
34
  locales: {
1582
35
  editor: {
1583
36
  en: {