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