@gem-sdk/components 2.0.0-dev.622 → 2.0.0-dev.623

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