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

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