@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
@@ -0,0 +1,769 @@
1
+ import { CAROUSEL_ANIMATION } from '../../components/plugins/AnimationPlugin.js';
2
+
3
+ const CarouselSettingsV2 = [
4
+ {
5
+ id: 'setting',
6
+ controls: [
7
+ {
8
+ id: 'itemNumber',
9
+ label: '',
10
+ type: 'carousel-layout-selector',
11
+ devices: {
12
+ desktop: {
13
+ default: 4
14
+ },
15
+ tablet: {
16
+ default: 2
17
+ },
18
+ mobile: {
19
+ default: 2
20
+ }
21
+ }
22
+ },
23
+ {
24
+ id: 'sneakPeak',
25
+ label: 'Sneak peak',
26
+ type: 'sneak-peak',
27
+ devices: {
28
+ desktop: {
29
+ default: false
30
+ }
31
+ }
32
+ },
33
+ {
34
+ id: 'sneakPeakType',
35
+ label: '',
36
+ type: 'sneak-peak-type',
37
+ itemPerRow: 2,
38
+ iconViewBox: '0 0 118 52',
39
+ enableItemBackground: true,
40
+ enableTooltip: true,
41
+ options: [
42
+ {
43
+ value: 'forward',
44
+ type: 'sneak-peak-offset'
45
+ },
46
+ {
47
+ value: 'center',
48
+ type: 'sneak-peak-offset'
49
+ }
50
+ ],
51
+ devices: {
52
+ desktop: {
53
+ default: 'forward'
54
+ }
55
+ }
56
+ },
57
+ {
58
+ id: 'sneakPeakOffsetForward',
59
+ label: 'Ratio',
60
+ type: 'input:slider',
61
+ min: 1,
62
+ max: 100,
63
+ devices: {
64
+ desktop: {
65
+ default: 50
66
+ }
67
+ }
68
+ },
69
+ {
70
+ id: 'sneakPeakOffsetCenter',
71
+ label: 'Ratio',
72
+ type: 'input:slider',
73
+ min: 1,
74
+ max: 100,
75
+ devices: {
76
+ desktop: {
77
+ default: 50
78
+ }
79
+ }
80
+ },
81
+ {
82
+ id: 'childItem',
83
+ label: 'Item management',
84
+ type: 'child-item',
85
+ default: [
86
+ 'Slide 1',
87
+ 'Slide 2',
88
+ 'Slide 3',
89
+ 'Slide 4',
90
+ 'Slide 5',
91
+ 'Slide 6'
92
+ ]
93
+ },
94
+ {
95
+ id: 'vertical',
96
+ label: 'Vertical layout',
97
+ type: 'toggle',
98
+ devices: {
99
+ desktop: {
100
+ default: false
101
+ }
102
+ }
103
+ },
104
+ {
105
+ id: 'controlOverContent',
106
+ label: 'Next & previous position',
107
+ type: 'segment',
108
+ options: [
109
+ {
110
+ label: 'Inside',
111
+ value: true
112
+ },
113
+ {
114
+ label: 'Outside',
115
+ value: false
116
+ }
117
+ ],
118
+ devices: {
119
+ desktop: {
120
+ default: true
121
+ }
122
+ }
123
+ },
124
+ {
125
+ id: 'dot',
126
+ label: 'Dots',
127
+ type: 'toggle',
128
+ devices: {
129
+ desktop: {
130
+ default: true
131
+ }
132
+ }
133
+ },
134
+ {
135
+ id: 'dotStyle',
136
+ label: 'Dot style',
137
+ type: 'option:value',
138
+ options: [
139
+ {
140
+ label: 'Inside',
141
+ value: 'inside'
142
+ },
143
+ {
144
+ label: 'Outside',
145
+ value: 'outside'
146
+ }
147
+ ],
148
+ devices: {
149
+ desktop: {
150
+ default: 'inside'
151
+ }
152
+ }
153
+ },
154
+ {
155
+ id: 'dotSize',
156
+ label: 'Dots size',
157
+ type: 'input:stepper',
158
+ min: 1,
159
+ devices: {
160
+ desktop: {
161
+ default: 12
162
+ }
163
+ }
164
+ },
165
+ {
166
+ id: 'dotGapToCarousel',
167
+ label: 'Gap to carousel',
168
+ type: 'input:number',
169
+ min: 0,
170
+ devices: {
171
+ desktop: {
172
+ default: 16
173
+ }
174
+ }
175
+ },
176
+ {
177
+ id: 'dotColor',
178
+ label: 'Dot color',
179
+ type: 'color-picker-v2',
180
+ devices: {
181
+ desktop: {
182
+ default: 'bg-1'
183
+ }
184
+ }
185
+ },
186
+ {
187
+ id: 'dotActiveColor',
188
+ label: 'Dot color active',
189
+ type: 'color-picker-v2',
190
+ devices: {
191
+ desktop: {
192
+ default: 'line-3'
193
+ }
194
+ }
195
+ },
196
+ {
197
+ id: 'navigationEnable',
198
+ type: 'toggle',
199
+ devices: {
200
+ desktop: {
201
+ default: true
202
+ }
203
+ }
204
+ },
205
+ {
206
+ id: 'navigationStyle',
207
+ type: 'option:illustration',
208
+ iconViewBox: '0 0 77 48',
209
+ enableItemBackground: true,
210
+ label: 'Navigation style',
211
+ enableTooltip: true,
212
+ options: [
213
+ {
214
+ label: 'Display outside navigation',
215
+ value: 'outside',
216
+ type: 'slide-control',
217
+ svgName: 'gp-slide-control-outside'
218
+ },
219
+ {
220
+ label: 'Display inside navigation',
221
+ value: 'inside',
222
+ type: 'slide-control',
223
+ svgName: 'gp-slide-control-inside'
224
+ }
225
+ ],
226
+ devices: {
227
+ desktop: {
228
+ default: 'inside'
229
+ }
230
+ }
231
+ },
232
+ {
233
+ id: 'arrowCustom',
234
+ type: 'icon',
235
+ hideInput: true,
236
+ hideLabel: true,
237
+ default: `<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
238
+ <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"/>
239
+ </svg>
240
+ `
241
+ },
242
+ {
243
+ id: 'arrowCustomColor',
244
+ label: 'Icon color',
245
+ type: 'color-picker-v2',
246
+ default: '#000000'
247
+ },
248
+ {
249
+ id: 'arrowIconSize',
250
+ label: 'Number per show',
251
+ type: 'input:stepper',
252
+ min: 1,
253
+ devices: {
254
+ desktop: {
255
+ default: 24
256
+ }
257
+ }
258
+ },
259
+ {
260
+ id: 'arrowButtonSize',
261
+ type: 'size-setting',
262
+ label: '',
263
+ devices: {
264
+ desktop: {
265
+ default: {
266
+ shapeValue: '1/1',
267
+ shapeLinked: true,
268
+ width: '32px',
269
+ height: '32px',
270
+ padding: {
271
+ linked: true
272
+ }
273
+ }
274
+ }
275
+ },
276
+ lockShapeValue: true,
277
+ hiddenShowMore: true,
278
+ hiddenSettings: [
279
+ 'gap',
280
+ 'proportion',
281
+ 'padding'
282
+ ],
283
+ settingConfig: {
284
+ width: {
285
+ name: 'Width',
286
+ units: [
287
+ 'px'
288
+ ],
289
+ displayOptions: [
290
+ 'small',
291
+ 'medium',
292
+ 'large'
293
+ ],
294
+ sizeConfig: {
295
+ small: '24px',
296
+ medium: '32px',
297
+ large: '40px'
298
+ }
299
+ },
300
+ height: {
301
+ name: 'Height',
302
+ units: [
303
+ 'px'
304
+ ],
305
+ displayOptions: [
306
+ 'small',
307
+ 'medium',
308
+ 'large',
309
+ 'full-height'
310
+ ],
311
+ sizeConfig: {
312
+ small: '24px',
313
+ medium: '32px',
314
+ large: '40px',
315
+ full: '100%'
316
+ }
317
+ },
318
+ padding: {
319
+ paddingConfig: {
320
+ small: {
321
+ vertical: '2px',
322
+ horizontal: '2px'
323
+ },
324
+ medium: {
325
+ vertical: '4px',
326
+ horizontal: '4px'
327
+ },
328
+ large: {
329
+ vertical: '8px',
330
+ horizontal: '8px'
331
+ }
332
+ }
333
+ }
334
+ },
335
+ sizePaddingInput: 'small'
336
+ },
337
+ {
338
+ id: 'arrowBackgroundColor',
339
+ label: 'Background Color',
340
+ type: 'color-picker-v2',
341
+ default: 'transparent'
342
+ },
343
+ {
344
+ id: 'arrowBorder',
345
+ type: 'border-v2',
346
+ label: 'Border',
347
+ devices: {
348
+ desktop: {
349
+ default: {
350
+ borderType: 'none',
351
+ border: 'none',
352
+ borderWidth: '1px',
353
+ width: '1px 1px 1px 1px',
354
+ isCustom: true
355
+ }
356
+ }
357
+ }
358
+ },
359
+ {
360
+ id: 'arrowShadow',
361
+ type: 'shadow-v2',
362
+ devices: {
363
+ desktop: {
364
+ default: {
365
+ type: 'none',
366
+ distance: '4px',
367
+ blur: '12px',
368
+ spread: '0px',
369
+ color: 'rgba(0, 0, 0, 0.20)',
370
+ angle: 90
371
+ }
372
+ }
373
+ }
374
+ },
375
+ {
376
+ id: 'roundedArrow',
377
+ type: 'corner-v2',
378
+ label: 'Border Radius',
379
+ devices: {
380
+ desktop: {
381
+ default: {
382
+ btrr: '0px',
383
+ bblr: '0px',
384
+ bbrr: '0px',
385
+ btlr: '0px',
386
+ radiusType: 'none'
387
+ }
388
+ }
389
+ },
390
+ compoDefaultValue: {
391
+ desktop: {
392
+ default: {
393
+ btrr: '8px',
394
+ bblr: '8px',
395
+ bbrr: '8px',
396
+ btlr: '8px',
397
+ radiusType: 'rounded'
398
+ }
399
+ }
400
+ }
401
+ },
402
+ {
403
+ id: 'arrowGapToEachSide',
404
+ label: 'Gap to each side',
405
+ type: 'input:number',
406
+ default: '16'
407
+ },
408
+ {
409
+ id: 'showWhenHover',
410
+ label: 'Only show when hover',
411
+ type: 'toggle',
412
+ default: false
413
+ },
414
+ {
415
+ id: 'rtl',
416
+ label: 'Direction',
417
+ type: 'option:value',
418
+ options: [
419
+ {
420
+ value: true,
421
+ label: 'Left to right',
422
+ iconName: 'polaris-arrow-right'
423
+ },
424
+ {
425
+ value: false,
426
+ iconName: 'polaris-arrow-left',
427
+ label: 'Right to left'
428
+ }
429
+ ],
430
+ default: false
431
+ },
432
+ {
433
+ id: 'autoplay',
434
+ label: 'Autoplay',
435
+ type: 'toggle',
436
+ default: false
437
+ },
438
+ {
439
+ id: 'autoplayTimeout',
440
+ label: 'Time out',
441
+ type: 'range',
442
+ min: 1,
443
+ max: 10,
444
+ step: 0.1,
445
+ default: 2,
446
+ hide: true,
447
+ hideUnit: true,
448
+ useOnlyUnitInit: true,
449
+ ignoreMax: true
450
+ },
451
+ {
452
+ id: 'pauseOnHover',
453
+ label: 'Pause On Hover',
454
+ type: 'toggle',
455
+ default: true,
456
+ hide: true
457
+ },
458
+ {
459
+ id: 'runPreview',
460
+ type: 'play-pause',
461
+ hideLabel: true,
462
+ default: false
463
+ },
464
+ {
465
+ id: 'enableDrag',
466
+ label: 'Drag to scroll',
467
+ type: 'toggle',
468
+ devices: {
469
+ desktop: {
470
+ default: false
471
+ }
472
+ }
473
+ },
474
+ {
475
+ id: 'loop',
476
+ label: 'Infinity loop',
477
+ type: 'toggle',
478
+ devices: {
479
+ desktop: {
480
+ default: false
481
+ }
482
+ }
483
+ },
484
+ {
485
+ id: 'animationMode',
486
+ label: 'Animation',
487
+ type: 'select',
488
+ default: CAROUSEL_ANIMATION.EASE_IN.value,
489
+ options: [
490
+ {
491
+ label: 'Ease in',
492
+ value: CAROUSEL_ANIMATION.EASE_IN.value
493
+ },
494
+ {
495
+ label: 'Ease out',
496
+ value: CAROUSEL_ANIMATION.EASE_OUT.value
497
+ },
498
+ {
499
+ label: 'Ease in out',
500
+ value: CAROUSEL_ANIMATION.EASE_IN_OUT.value
501
+ }
502
+ ]
503
+ },
504
+ {
505
+ id: 'background',
506
+ type: 'background-media-combo',
507
+ devices: {
508
+ desktop: {
509
+ default: {
510
+ type: 'color',
511
+ color: undefined,
512
+ image: {
513
+ src: '',
514
+ width: 0,
515
+ height: 0
516
+ },
517
+ size: 'cover',
518
+ position: {
519
+ x: 50,
520
+ y: 50
521
+ },
522
+ repeat: 'no-repeat',
523
+ attachment: 'scroll'
524
+ }
525
+ }
526
+ },
527
+ compoDefaultValue: {
528
+ desktop: {
529
+ default: {
530
+ type: 'color',
531
+ color: '#0D0D0D',
532
+ image: {
533
+ src: '',
534
+ width: 0,
535
+ height: 0
536
+ },
537
+ size: 'cover',
538
+ position: {
539
+ x: 50,
540
+ y: 50
541
+ },
542
+ repeat: 'no-repeat',
543
+ attachment: 'scroll'
544
+ }
545
+ }
546
+ }
547
+ },
548
+ {
549
+ id: 'label',
550
+ label: 'Option Label',
551
+ type: 'toggle',
552
+ default: true
553
+ }
554
+ ]
555
+ },
556
+ {
557
+ id: 'style',
558
+ controls: [
559
+ {
560
+ id: 'backgroundColor',
561
+ type: 'color-picker-v2',
562
+ devices: {
563
+ desktop: {
564
+ default: undefined
565
+ }
566
+ },
567
+ compoDefaultValue: {
568
+ desktop: {
569
+ default: '#0D0D0D'
570
+ }
571
+ },
572
+ enableGradient: true
573
+ },
574
+ {
575
+ id: 'backgroundImage',
576
+ type: 'background-image',
577
+ devices: {
578
+ desktop: {
579
+ default: {}
580
+ }
581
+ },
582
+ compoDefaultValue: {
583
+ desktop: {
584
+ default: {
585
+ image: {
586
+ src: 'https://ucarecdn.com/5e27d43d-eb1e-4e71-b7e1-4158f3071bb6/-/format/auto/',
587
+ width: 1200,
588
+ height: 480
589
+ }
590
+ }
591
+ }
592
+ }
593
+ },
594
+ {
595
+ id: 'playSpeed',
596
+ label: 'Slide speed',
597
+ type: 'input:unit',
598
+ useOnlyUnitInit: true,
599
+ min: 1,
600
+ units: [
601
+ 'ms'
602
+ ],
603
+ default: 500
604
+ },
605
+ {
606
+ id: 'sizeSetting',
607
+ type: 'size-setting',
608
+ label: '',
609
+ devices: {
610
+ desktop: {
611
+ default: {
612
+ shapeLinked: false,
613
+ width: 'default',
614
+ height: 'auto'
615
+ }
616
+ }
617
+ },
618
+ settingConfig: {
619
+ width: {
620
+ displayOptions: [
621
+ 'full',
622
+ 'default'
623
+ ],
624
+ name: 'Width'
625
+ },
626
+ height: {
627
+ displayOptions: [
628
+ 'auto',
629
+ 'small',
630
+ 'medium',
631
+ 'large'
632
+ ],
633
+ name: 'Height',
634
+ sizeConfig: {
635
+ small: '300px',
636
+ medium: '500px',
637
+ large: '700px'
638
+ }
639
+ }
640
+ },
641
+ hiddenSettings: [
642
+ 'padding',
643
+ 'gap',
644
+ 'shape'
645
+ ]
646
+ },
647
+ {
648
+ id: 'align',
649
+ label: 'Align',
650
+ type: 'option:value',
651
+ options: [
652
+ {
653
+ label: 'Left',
654
+ value: 'left',
655
+ type: 'align',
656
+ tooltip: 'Align left',
657
+ iconName: 'gp-align-left'
658
+ },
659
+ {
660
+ label: 'Center',
661
+ value: 'center',
662
+ type: 'align',
663
+ tooltip: 'Align center',
664
+ iconName: 'gp-align-center'
665
+ },
666
+ {
667
+ label: 'Right',
668
+ value: 'right',
669
+ type: 'align',
670
+ tooltip: 'Align right',
671
+ iconName: 'gp-align-right'
672
+ }
673
+ ],
674
+ devices: {
675
+ desktop: {
676
+ default: 'center'
677
+ }
678
+ }
679
+ },
680
+ {
681
+ id: 'borderContent',
682
+ type: 'border-v2',
683
+ label: 'Border',
684
+ default: {
685
+ borderType: 'none',
686
+ border: 'none',
687
+ width: '1px 1px 1px 1px',
688
+ position: 'all',
689
+ borderWidth: '1px',
690
+ color: '#121212',
691
+ isCustom: true
692
+ }
693
+ },
694
+ {
695
+ id: 'roundedContent',
696
+ type: 'corner-v2',
697
+ label: 'Corner',
698
+ default: {
699
+ radiusType: 'none'
700
+ }
701
+ },
702
+ {
703
+ id: 'hasActiveShadow',
704
+ type: 'toggle',
705
+ label: 'Enable Button Shadow',
706
+ default: false
707
+ },
708
+ {
709
+ id: 'carouselShadow',
710
+ type: 'shadow-v2',
711
+ label: 'Button Shadow',
712
+ default: {
713
+ type: 'shadow-1',
714
+ distance: '4px',
715
+ blur: '12px',
716
+ spread: '0px',
717
+ color: '#121212',
718
+ angle: 90,
719
+ enable: false
720
+ },
721
+ compoDefaultValue: {
722
+ type: 'shadow-1',
723
+ distance: '4px',
724
+ blur: '4px',
725
+ spread: '0px',
726
+ color: '#121212',
727
+ angle: 45,
728
+ enable: true
729
+ }
730
+ },
731
+ {
732
+ id: 'spacing',
733
+ label: 'Items spacing',
734
+ type: 'input:number',
735
+ devices: {
736
+ desktop: {
737
+ default: 16
738
+ }
739
+ }
740
+ },
741
+ {
742
+ id: 'itemPadding',
743
+ type: 'size-setting',
744
+ devices: {
745
+ desktop: {
746
+ default: {
747
+ padding: {
748
+ type: 'custom',
749
+ top: '0px',
750
+ left: '0px',
751
+ bottom: '0px',
752
+ right: '0px'
753
+ }
754
+ }
755
+ }
756
+ },
757
+ hiddenSettings: [
758
+ 'shape',
759
+ 'gap',
760
+ 'width',
761
+ 'height'
762
+ ],
763
+ hiddenShowMore: true
764
+ }
765
+ ]
766
+ }
767
+ ];
768
+
769
+ export { CarouselSettingsV2 };