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

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