@gem-sdk/components 2.0.0-dev.693 → 2.0.0-dev.694

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 (176) hide show
  1. package/dist/cjs/builder.js +6 -12
  2. package/dist/cjs/index.js +32 -34
  3. package/dist/cjs/index.liquid.js +10 -16
  4. package/dist/cjs/next.js +1 -3
  5. package/dist/cjs/product/components/ProductImagesV2/common/common.js +2 -1
  6. package/dist/cjs/product/index.js +4 -6
  7. package/dist/cjs/product/next.js +0 -4
  8. package/dist/cjs/setting.js +76 -78
  9. package/dist/esm/builder.js +0 -6
  10. package/dist/esm/index.js +0 -1
  11. package/dist/esm/index.liquid.js +0 -3
  12. package/dist/esm/next.js +1 -3
  13. package/dist/esm/product/components/ProductImagesV2/common/common.js +2 -1
  14. package/dist/esm/product/index.js +24 -26
  15. package/dist/esm/product/next.js +0 -4
  16. package/dist/esm/setting.js +0 -2
  17. package/dist/types/index.d.ts +116 -551
  18. package/package.json +1 -1
  19. package/dist/cjs/product/components/ProductImagesV3/common/common.js +0 -360
  20. package/dist/cjs/product/components/ProductImagesV3/common/getAttr.js +0 -192
  21. package/dist/cjs/product/components/ProductImagesV3/common/getBorderActiveCss.js +0 -26
  22. package/dist/cjs/product/components/ProductImagesV3/common/getClasses.js +0 -94
  23. package/dist/cjs/product/components/ProductImagesV3/common/getStyle.js +0 -303
  24. package/dist/cjs/product/components/ProductImagesV3/common/hoverAction.js +0 -95
  25. package/dist/cjs/product/components/ProductImagesV3/common/productFeaturedImage.js +0 -59
  26. package/dist/cjs/product/components/ProductImagesV3/common/productGallery.js +0 -266
  27. package/dist/cjs/product/components/ProductImagesV3/components/child/MediaIcon.js +0 -63
  28. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +0 -36
  29. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +0 -109
  30. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +0 -139
  31. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +0 -100
  32. package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +0 -77
  33. package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +0 -300
  34. package/dist/cjs/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +0 -44
  35. package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +0 -83
  36. package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +0 -182
  37. package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +0 -30
  38. package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +0 -239
  39. package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +0 -28
  40. package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +0 -144
  41. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesAttr.js +0 -14
  42. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesClassName.js +0 -54
  43. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesStyles.js +0 -53
  44. package/dist/cjs/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +0 -55
  45. package/dist/cjs/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +0 -41
  46. package/dist/cjs/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +0 -134
  47. package/dist/cjs/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +0 -203
  48. package/dist/cjs/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +0 -87
  49. package/dist/cjs/product/components/ProductImagesV3/index.js +0 -291
  50. package/dist/cjs/product/components/ProductImagesV3/index.liquid.js +0 -153
  51. package/dist/cjs/product/setting/product-image-v3/ProductFeatureImage.js +0 -252
  52. package/dist/cjs/product/setting/product-image-v3/ProductGalleryImage.js +0 -251
  53. package/dist/cjs/product/setting/product-image-v3/ProductImages.js +0 -74
  54. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +0 -388
  55. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +0 -519
  56. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/index.js +0 -337
  57. package/dist/cjs/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +0 -118
  58. package/dist/cjs/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +0 -119
  59. package/dist/cjs/product/setting/product-image-v3/configs/uiV1.js +0 -237
  60. package/dist/cjs/product/setting/product-image-v3/configs/uiV2.js +0 -491
  61. package/dist/cjs/swiper-carousel/arrow/Arrow.js +0 -52
  62. package/dist/cjs/swiper-carousel/arrow/Arrow.liquid.js +0 -46
  63. package/dist/cjs/swiper-carousel/arrow/common/common.js +0 -119
  64. package/dist/cjs/swiper-carousel/arrow/common/getClass.js +0 -50
  65. package/dist/cjs/swiper-carousel/arrow/common/getStyle.js +0 -84
  66. package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.js +0 -34
  67. package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.liquid.js +0 -38
  68. package/dist/cjs/swiper-carousel/carousel-item/common/getClass.js +0 -29
  69. package/dist/cjs/swiper-carousel/carousel-item/common/getStyle.js +0 -79
  70. package/dist/cjs/swiper-carousel/carousel-item/hook/useCarouseItem.js +0 -22
  71. package/dist/cjs/swiper-carousel/components/common/carousel.js +0 -98
  72. package/dist/cjs/swiper-carousel/components/const/index.js +0 -5
  73. package/dist/cjs/swiper-carousel/components/hooks/useTrackPreviewPause.js +0 -34
  74. package/dist/cjs/swiper-carousel/components/plugins/AnimationPlugin.js +0 -42
  75. package/dist/cjs/swiper-carousel/components/plugins/AutoPlayPlugin.js +0 -105
  76. package/dist/cjs/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +0 -15
  77. package/dist/cjs/swiper-carousel/components/plugins/MutationPlugin.js +0 -45
  78. package/dist/cjs/swiper-carousel/dots/Dots.js +0 -51
  79. package/dist/cjs/swiper-carousel/dots/Dots.liquid.js +0 -26
  80. package/dist/cjs/swiper-carousel/dots/common/common.js +0 -28
  81. package/dist/cjs/swiper-carousel/dots/common/getClass.js +0 -40
  82. package/dist/cjs/swiper-carousel/dots/common/getStyle.js +0 -33
  83. package/dist/cjs/swiper-carousel/dots/hook/useDotsSetting.js +0 -21
  84. package/dist/cjs/swiper-carousel/index.js +0 -17
  85. package/dist/cjs/swiper-carousel/next.js +0 -22
  86. package/dist/cjs/swiper-carousel/root/Swiper.js +0 -128
  87. package/dist/cjs/swiper-carousel/root/Swiper.liquid.js +0 -104
  88. package/dist/cjs/swiper-carousel/root/common/getAttr.js +0 -25
  89. package/dist/cjs/swiper-carousel/root/common/getClass.js +0 -135
  90. package/dist/cjs/swiper-carousel/root/common/getData.js +0 -56
  91. package/dist/cjs/swiper-carousel/root/common/getStyle.js +0 -66
  92. package/dist/cjs/swiper-carousel/root/hook/useCarousel.js +0 -482
  93. package/dist/cjs/swiper-carousel/setting/Swiper.js +0 -42
  94. package/dist/cjs/swiper-carousel/setting/SwiperItem.js +0 -40
  95. package/dist/cjs/swiper-carousel/setting/configs/presets.js +0 -87
  96. package/dist/cjs/swiper-carousel/setting/configs/settingV2.js +0 -822
  97. package/dist/cjs/swiper-carousel/setting/configs/uiV2.js +0 -718
  98. package/dist/esm/product/components/ProductImagesV3/common/common.js +0 -344
  99. package/dist/esm/product/components/ProductImagesV3/common/getAttr.js +0 -189
  100. package/dist/esm/product/components/ProductImagesV3/common/getBorderActiveCss.js +0 -24
  101. package/dist/esm/product/components/ProductImagesV3/common/getClasses.js +0 -83
  102. package/dist/esm/product/components/ProductImagesV3/common/getStyle.js +0 -292
  103. package/dist/esm/product/components/ProductImagesV3/common/hoverAction.js +0 -92
  104. package/dist/esm/product/components/ProductImagesV3/common/productFeaturedImage.js +0 -53
  105. package/dist/esm/product/components/ProductImagesV3/common/productGallery.js +0 -251
  106. package/dist/esm/product/components/ProductImagesV3/components/child/MediaIcon.js +0 -59
  107. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +0 -32
  108. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +0 -105
  109. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +0 -135
  110. package/dist/esm/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +0 -96
  111. package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +0 -73
  112. package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +0 -296
  113. package/dist/esm/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +0 -40
  114. package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +0 -79
  115. package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +0 -178
  116. package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +0 -26
  117. package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +0 -235
  118. package/dist/esm/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +0 -24
  119. package/dist/esm/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +0 -140
  120. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesAttr.js +0 -12
  121. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesClassName.js +0 -52
  122. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesStyles.js +0 -51
  123. package/dist/esm/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +0 -53
  124. package/dist/esm/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +0 -39
  125. package/dist/esm/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +0 -132
  126. package/dist/esm/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +0 -201
  127. package/dist/esm/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +0 -85
  128. package/dist/esm/product/components/ProductImagesV3/index.js +0 -287
  129. package/dist/esm/product/components/ProductImagesV3/index.liquid.js +0 -149
  130. package/dist/esm/product/setting/product-image-v3/ProductFeatureImage.js +0 -248
  131. package/dist/esm/product/setting/product-image-v3/ProductGalleryImage.js +0 -248
  132. package/dist/esm/product/setting/product-image-v3/ProductImages.js +0 -70
  133. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +0 -384
  134. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +0 -516
  135. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/index.js +0 -335
  136. package/dist/esm/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +0 -116
  137. package/dist/esm/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +0 -117
  138. package/dist/esm/product/setting/product-image-v3/configs/uiV1.js +0 -235
  139. package/dist/esm/product/setting/product-image-v3/configs/uiV2.js +0 -489
  140. package/dist/esm/swiper-carousel/arrow/Arrow.js +0 -48
  141. package/dist/esm/swiper-carousel/arrow/Arrow.liquid.js +0 -42
  142. package/dist/esm/swiper-carousel/arrow/common/common.js +0 -111
  143. package/dist/esm/swiper-carousel/arrow/common/getClass.js +0 -48
  144. package/dist/esm/swiper-carousel/arrow/common/getStyle.js +0 -82
  145. package/dist/esm/swiper-carousel/carousel-item/SwiperItem.js +0 -30
  146. package/dist/esm/swiper-carousel/carousel-item/SwiperItem.liquid.js +0 -34
  147. package/dist/esm/swiper-carousel/carousel-item/common/getClass.js +0 -27
  148. package/dist/esm/swiper-carousel/carousel-item/common/getStyle.js +0 -77
  149. package/dist/esm/swiper-carousel/carousel-item/hook/useCarouseItem.js +0 -20
  150. package/dist/esm/swiper-carousel/components/common/carousel.js +0 -93
  151. package/dist/esm/swiper-carousel/components/const/index.js +0 -3
  152. package/dist/esm/swiper-carousel/components/hooks/useTrackPreviewPause.js +0 -30
  153. package/dist/esm/swiper-carousel/components/plugins/AnimationPlugin.js +0 -35
  154. package/dist/esm/swiper-carousel/components/plugins/AutoPlayPlugin.js +0 -103
  155. package/dist/esm/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +0 -13
  156. package/dist/esm/swiper-carousel/components/plugins/MutationPlugin.js +0 -43
  157. package/dist/esm/swiper-carousel/dots/Dots.js +0 -47
  158. package/dist/esm/swiper-carousel/dots/Dots.liquid.js +0 -22
  159. package/dist/esm/swiper-carousel/dots/common/common.js +0 -26
  160. package/dist/esm/swiper-carousel/dots/common/getClass.js +0 -38
  161. package/dist/esm/swiper-carousel/dots/common/getStyle.js +0 -31
  162. package/dist/esm/swiper-carousel/dots/hook/useDotsSetting.js +0 -19
  163. package/dist/esm/swiper-carousel/index.js +0 -15
  164. package/dist/esm/swiper-carousel/next.js +0 -18
  165. package/dist/esm/swiper-carousel/root/Swiper.js +0 -124
  166. package/dist/esm/swiper-carousel/root/Swiper.liquid.js +0 -100
  167. package/dist/esm/swiper-carousel/root/common/getAttr.js +0 -23
  168. package/dist/esm/swiper-carousel/root/common/getClass.js +0 -133
  169. package/dist/esm/swiper-carousel/root/common/getData.js +0 -54
  170. package/dist/esm/swiper-carousel/root/common/getStyle.js +0 -64
  171. package/dist/esm/swiper-carousel/root/hook/useCarousel.js +0 -480
  172. package/dist/esm/swiper-carousel/setting/Swiper.js +0 -38
  173. package/dist/esm/swiper-carousel/setting/SwiperItem.js +0 -36
  174. package/dist/esm/swiper-carousel/setting/configs/presets.js +0 -85
  175. package/dist/esm/swiper-carousel/setting/configs/settingV2.js +0 -818
  176. package/dist/esm/swiper-carousel/setting/configs/uiV2.js +0 -713
@@ -1,818 +0,0 @@
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
- ignoreMax: true,
186
- devices: {
187
- desktop: {
188
- default: 16
189
- }
190
- }
191
- },
192
- {
193
- id: 'dotColor',
194
- label: 'Dot color',
195
- type: 'color-picker-v2',
196
- devices: {
197
- desktop: {
198
- default: 'bg-1'
199
- }
200
- }
201
- },
202
- {
203
- id: 'dotActiveColor',
204
- label: 'Dot color active',
205
- type: 'color-picker-v2',
206
- devices: {
207
- desktop: {
208
- default: 'line-3'
209
- }
210
- }
211
- },
212
- {
213
- id: 'navigationEnable',
214
- type: 'toggle',
215
- devices: {
216
- desktop: {
217
- default: true
218
- }
219
- }
220
- },
221
- {
222
- id: 'navigationStyle',
223
- type: 'option:illustration',
224
- iconViewBox: '0 0 77 48',
225
- enableItemBackground: true,
226
- label: 'Navigation style',
227
- enableTooltip: true,
228
- options: [
229
- {
230
- label: 'Outside',
231
- value: 'outside',
232
- type: 'slide-control',
233
- svgName: 'gp-slide-control-outside'
234
- },
235
- {
236
- label: 'Inside',
237
- value: 'inside',
238
- type: 'slide-control',
239
- svgName: 'gp-slide-control-inside'
240
- }
241
- ],
242
- devices: {
243
- desktop: {
244
- default: 'inside'
245
- }
246
- }
247
- },
248
- {
249
- id: 'arrowCustom',
250
- type: 'icon',
251
- hideInput: true,
252
- hideLabel: true,
253
- default: `<svg data-name="arrow" width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
254
- <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"/>
255
- </svg>
256
- `
257
- },
258
- {
259
- id: 'arrowCustomColor',
260
- label: 'Icon color',
261
- type: 'color-picker-v2',
262
- default: '#121212',
263
- compoDefaultValue: '#121212'
264
- },
265
- {
266
- id: 'arrowIconSize',
267
- label: 'Number per show',
268
- type: 'input:stepper',
269
- min: 1,
270
- devices: {
271
- desktop: {
272
- default: 24
273
- }
274
- }
275
- },
276
- {
277
- id: 'arrowButtonSize',
278
- type: 'size-setting',
279
- label: '',
280
- devices: {
281
- desktop: {
282
- default: {
283
- shapeValue: '1/1',
284
- shapeLinked: true,
285
- width: undefined,
286
- height: undefined,
287
- padding: {
288
- linked: true
289
- }
290
- }
291
- }
292
- },
293
- lockShapeValue: true,
294
- hiddenShowMore: true,
295
- hiddenSettings: [
296
- 'gap',
297
- 'proportion',
298
- 'padding'
299
- ],
300
- settingConfig: {
301
- width: {
302
- name: 'Width',
303
- units: [
304
- 'px'
305
- ],
306
- displayOptions: [
307
- 'small',
308
- 'medium',
309
- 'large'
310
- ],
311
- sizeConfig: {
312
- small: '24px',
313
- medium: '32px',
314
- large: '40px'
315
- }
316
- },
317
- height: {
318
- name: 'Height',
319
- units: [
320
- 'px'
321
- ],
322
- displayOptions: [
323
- 'small',
324
- 'medium',
325
- 'large',
326
- 'full-height'
327
- ],
328
- sizeConfig: {
329
- small: '24px',
330
- medium: '32px',
331
- large: '40px',
332
- full: '100%'
333
- }
334
- },
335
- padding: {
336
- paddingConfig: {
337
- small: {
338
- vertical: '2px',
339
- horizontal: '2px'
340
- },
341
- medium: {
342
- vertical: '4px',
343
- horizontal: '4px'
344
- },
345
- large: {
346
- vertical: '8px',
347
- horizontal: '8px'
348
- }
349
- }
350
- }
351
- },
352
- sizePaddingInput: 'small'
353
- },
354
- {
355
- id: 'arrowBackgroundColor',
356
- label: 'Background Color',
357
- type: 'color-picker-v2',
358
- default: 'transparent',
359
- compoDefaultValue: '#E2E2E2'
360
- },
361
- {
362
- id: 'arrowBorder',
363
- type: 'border-v2',
364
- label: 'Border',
365
- devices: {
366
- desktop: {
367
- default: {
368
- borderType: 'none',
369
- border: 'none',
370
- borderWidth: '1px',
371
- width: '1px 1px 1px 1px',
372
- isCustom: true
373
- }
374
- }
375
- }
376
- },
377
- {
378
- id: 'arrowShadow',
379
- type: 'shadow-v2',
380
- devices: {
381
- desktop: {
382
- default: {
383
- type: 'shadow-1',
384
- distance: '4px',
385
- blur: '12px',
386
- spread: '0px',
387
- color: 'rgba(0, 0, 0, 0.20)',
388
- angle: 90,
389
- enable: false
390
- }
391
- }
392
- },
393
- compoDefaultValue: {
394
- desktop: {
395
- default: {
396
- type: 'shadow-1',
397
- distance: '4px',
398
- blur: '4px',
399
- spread: '0px',
400
- color: '#121212',
401
- angle: 45,
402
- enable: true
403
- }
404
- }
405
- }
406
- },
407
- {
408
- id: 'roundedArrow',
409
- type: 'corner-v2',
410
- label: 'Border Radius',
411
- devices: {
412
- desktop: {
413
- default: {
414
- btrr: '0px',
415
- bblr: '0px',
416
- bbrr: '0px',
417
- btlr: '0px',
418
- radiusType: 'none'
419
- }
420
- }
421
- },
422
- compoDefaultValue: {
423
- desktop: {
424
- default: {
425
- btrr: '8px',
426
- bblr: '8px',
427
- bbrr: '8px',
428
- btlr: '8px',
429
- radiusType: 'rounded'
430
- }
431
- }
432
- }
433
- },
434
- {
435
- id: 'arrowGapToEachSide',
436
- label: 'Gap to each side',
437
- type: 'input:slider',
438
- min: 0,
439
- max: 120,
440
- ignoreMax: true,
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: CAROUSEL_ANIMATION.EASE_IN.value,
526
- options: [
527
- {
528
- label: 'Ease in',
529
- value: CAROUSEL_ANIMATION.EASE_IN.value
530
- },
531
- {
532
- label: 'Ease out',
533
- value: CAROUSEL_ANIMATION.EASE_OUT.value
534
- },
535
- {
536
- label: 'Ease in & out',
537
- value: 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
- ignoreMax: true,
776
- devices: {
777
- desktop: {
778
- default: 16
779
- }
780
- }
781
- },
782
- {
783
- id: 'itemPadding',
784
- type: 'size-setting',
785
- devices: {
786
- desktop: {
787
- default: {
788
- padding: {
789
- type: 'custom',
790
- top: '0px',
791
- left: '0px',
792
- bottom: '0px',
793
- right: '0px'
794
- }
795
- }
796
- }
797
- },
798
- hiddenSettings: [
799
- 'shape',
800
- 'gap',
801
- 'width',
802
- 'height'
803
- ],
804
- hiddenShowMore: true
805
- }
806
- ];
807
- const CarouselSettingsV2 = [
808
- {
809
- id: 'setting',
810
- controls: CarouselSettingsV2Setting
811
- },
812
- {
813
- id: 'style',
814
- controls: CarouselSettingsV2Style
815
- }
816
- ];
817
-
818
- export { CarouselSettingsV2, CarouselSettingsV2Setting, CarouselSettingsV2Style };