@gem-sdk/components 2.0.0-dev.692 → 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 (218) hide show
  1. package/dist/cjs/accordion/setting/configs/uiV2.js +1 -0
  2. package/dist/cjs/article/setting/configs/ArticleReadMore/settings.js +2 -0
  3. package/dist/cjs/breadcrumb/setting/configs/settings.js +1 -0
  4. package/dist/cjs/builder.js +6 -12
  5. package/dist/cjs/button/setting/configs/settings.js +1 -0
  6. package/dist/cjs/carousel/setting/configs/settingV2.js +3 -0
  7. package/dist/cjs/collection/setting/collection-banner/configs/settings.js +2 -2
  8. package/dist/cjs/countdown-timer/setting/configs/settings.js +2 -0
  9. package/dist/cjs/form/setting/submit-button/configs/settings.js +1 -0
  10. package/dist/cjs/grid/row/setting/configs/settings.js +5 -0
  11. package/dist/cjs/grid/section/setting/configs/settings.js +3 -0
  12. package/dist/cjs/icon-list/setting/configs/settings.js +2 -0
  13. package/dist/cjs/icon-list-hoz/setting/configs/settings.js +1 -0
  14. package/dist/cjs/index.js +32 -34
  15. package/dist/cjs/index.liquid.js +10 -16
  16. package/dist/cjs/marquee/setting/configs/settingsV2.js +1 -0
  17. package/dist/cjs/next.js +1 -3
  18. package/dist/cjs/product/components/ProductBundle/setting/uiV2.js +1 -0
  19. package/dist/cjs/product/components/ProductImagesV2/common/common.js +2 -1
  20. package/dist/cjs/product/index.js +4 -6
  21. package/dist/cjs/product/next.js +0 -4
  22. package/dist/cjs/product/setting/product/configs/settings.js +3 -0
  23. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/index.js +1 -0
  24. package/dist/cjs/product/setting/product-variant/configs/settings.js +2 -0
  25. package/dist/cjs/product/setting/product-view-more/configs/settings.js +1 -0
  26. package/dist/cjs/setting.js +76 -78
  27. package/dist/cjs/third-party/components/Bogos/BogosSampleContent.js +2 -1
  28. package/dist/cjs/third-party/components/Bogos.liquid.js +2 -0
  29. package/dist/cjs/third-party/setting/Bogos/index.js +5 -1
  30. package/dist/esm/accordion/setting/configs/uiV2.js +1 -0
  31. package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +2 -0
  32. package/dist/esm/breadcrumb/setting/configs/settings.js +1 -0
  33. package/dist/esm/builder.js +0 -6
  34. package/dist/esm/button/setting/configs/settings.js +1 -0
  35. package/dist/esm/carousel/setting/configs/settingV2.js +3 -0
  36. package/dist/esm/collection/setting/collection-banner/configs/settings.js +2 -2
  37. package/dist/esm/countdown-timer/setting/configs/settings.js +2 -0
  38. package/dist/esm/form/setting/submit-button/configs/settings.js +1 -0
  39. package/dist/esm/grid/row/setting/configs/settings.js +5 -0
  40. package/dist/esm/grid/section/setting/configs/settings.js +3 -0
  41. package/dist/esm/icon-list/setting/configs/settings.js +2 -0
  42. package/dist/esm/icon-list-hoz/setting/configs/settings.js +1 -0
  43. package/dist/esm/index.js +0 -1
  44. package/dist/esm/index.liquid.js +0 -3
  45. package/dist/esm/marquee/setting/configs/settingsV2.js +1 -0
  46. package/dist/esm/next.js +1 -3
  47. package/dist/esm/product/components/ProductBundle/setting/uiV2.js +1 -0
  48. package/dist/esm/product/components/ProductImagesV2/common/common.js +2 -1
  49. package/dist/esm/product/index.js +24 -26
  50. package/dist/esm/product/next.js +0 -4
  51. package/dist/esm/product/setting/product/configs/settings.js +3 -0
  52. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/index.js +1 -0
  53. package/dist/esm/product/setting/product-variant/configs/settings.js +2 -0
  54. package/dist/esm/product/setting/product-view-more/configs/settings.js +1 -0
  55. package/dist/esm/setting.js +0 -2
  56. package/dist/esm/third-party/components/Bogos/BogosSampleContent.js +2 -1
  57. package/dist/esm/third-party/components/Bogos.liquid.js +2 -0
  58. package/dist/esm/third-party/setting/Bogos/index.js +5 -1
  59. package/dist/types/index.d.ts +116 -551
  60. package/package.json +2 -2
  61. package/dist/cjs/product/components/ProductImagesV3/common/common.js +0 -360
  62. package/dist/cjs/product/components/ProductImagesV3/common/getAttr.js +0 -192
  63. package/dist/cjs/product/components/ProductImagesV3/common/getBorderActiveCss.js +0 -26
  64. package/dist/cjs/product/components/ProductImagesV3/common/getClasses.js +0 -94
  65. package/dist/cjs/product/components/ProductImagesV3/common/getStyle.js +0 -303
  66. package/dist/cjs/product/components/ProductImagesV3/common/hoverAction.js +0 -95
  67. package/dist/cjs/product/components/ProductImagesV3/common/productFeaturedImage.js +0 -59
  68. package/dist/cjs/product/components/ProductImagesV3/common/productGallery.js +0 -266
  69. package/dist/cjs/product/components/ProductImagesV3/components/child/MediaIcon.js +0 -63
  70. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +0 -36
  71. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +0 -109
  72. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +0 -139
  73. package/dist/cjs/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +0 -100
  74. package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +0 -77
  75. package/dist/cjs/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +0 -300
  76. package/dist/cjs/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +0 -44
  77. package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +0 -83
  78. package/dist/cjs/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +0 -182
  79. package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +0 -30
  80. package/dist/cjs/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +0 -239
  81. package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +0 -28
  82. package/dist/cjs/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +0 -144
  83. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesAttr.js +0 -14
  84. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesClassName.js +0 -54
  85. package/dist/cjs/product/components/ProductImagesV3/composables/getProductImagesStyles.js +0 -53
  86. package/dist/cjs/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +0 -55
  87. package/dist/cjs/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +0 -41
  88. package/dist/cjs/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +0 -134
  89. package/dist/cjs/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +0 -203
  90. package/dist/cjs/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +0 -87
  91. package/dist/cjs/product/components/ProductImagesV3/index.js +0 -291
  92. package/dist/cjs/product/components/ProductImagesV3/index.liquid.js +0 -153
  93. package/dist/cjs/product/setting/product-image-v3/ProductFeatureImage.js +0 -252
  94. package/dist/cjs/product/setting/product-image-v3/ProductGalleryImage.js +0 -251
  95. package/dist/cjs/product/setting/product-image-v3/ProductImages.js +0 -74
  96. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +0 -388
  97. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +0 -518
  98. package/dist/cjs/product/setting/product-image-v3/configs/setting-v2/index.js +0 -336
  99. package/dist/cjs/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +0 -118
  100. package/dist/cjs/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +0 -119
  101. package/dist/cjs/product/setting/product-image-v3/configs/uiV1.js +0 -237
  102. package/dist/cjs/product/setting/product-image-v3/configs/uiV2.js +0 -491
  103. package/dist/cjs/swiper-carousel/arrow/Arrow.js +0 -52
  104. package/dist/cjs/swiper-carousel/arrow/Arrow.liquid.js +0 -46
  105. package/dist/cjs/swiper-carousel/arrow/common/common.js +0 -119
  106. package/dist/cjs/swiper-carousel/arrow/common/getClass.js +0 -50
  107. package/dist/cjs/swiper-carousel/arrow/common/getStyle.js +0 -84
  108. package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.js +0 -34
  109. package/dist/cjs/swiper-carousel/carousel-item/SwiperItem.liquid.js +0 -38
  110. package/dist/cjs/swiper-carousel/carousel-item/common/getClass.js +0 -29
  111. package/dist/cjs/swiper-carousel/carousel-item/common/getStyle.js +0 -79
  112. package/dist/cjs/swiper-carousel/carousel-item/hook/useCarouseItem.js +0 -22
  113. package/dist/cjs/swiper-carousel/components/common/carousel.js +0 -98
  114. package/dist/cjs/swiper-carousel/components/const/index.js +0 -5
  115. package/dist/cjs/swiper-carousel/components/hooks/useTrackPreviewPause.js +0 -34
  116. package/dist/cjs/swiper-carousel/components/plugins/AnimationPlugin.js +0 -42
  117. package/dist/cjs/swiper-carousel/components/plugins/AutoPlayPlugin.js +0 -105
  118. package/dist/cjs/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +0 -15
  119. package/dist/cjs/swiper-carousel/components/plugins/MutationPlugin.js +0 -45
  120. package/dist/cjs/swiper-carousel/dots/Dots.js +0 -51
  121. package/dist/cjs/swiper-carousel/dots/Dots.liquid.js +0 -26
  122. package/dist/cjs/swiper-carousel/dots/common/common.js +0 -28
  123. package/dist/cjs/swiper-carousel/dots/common/getClass.js +0 -40
  124. package/dist/cjs/swiper-carousel/dots/common/getStyle.js +0 -33
  125. package/dist/cjs/swiper-carousel/dots/hook/useDotsSetting.js +0 -21
  126. package/dist/cjs/swiper-carousel/index.js +0 -17
  127. package/dist/cjs/swiper-carousel/next.js +0 -22
  128. package/dist/cjs/swiper-carousel/root/Swiper.js +0 -128
  129. package/dist/cjs/swiper-carousel/root/Swiper.liquid.js +0 -104
  130. package/dist/cjs/swiper-carousel/root/common/getAttr.js +0 -25
  131. package/dist/cjs/swiper-carousel/root/common/getClass.js +0 -135
  132. package/dist/cjs/swiper-carousel/root/common/getData.js +0 -56
  133. package/dist/cjs/swiper-carousel/root/common/getStyle.js +0 -66
  134. package/dist/cjs/swiper-carousel/root/hook/useCarousel.js +0 -482
  135. package/dist/cjs/swiper-carousel/setting/Swiper.js +0 -42
  136. package/dist/cjs/swiper-carousel/setting/SwiperItem.js +0 -40
  137. package/dist/cjs/swiper-carousel/setting/configs/presets.js +0 -87
  138. package/dist/cjs/swiper-carousel/setting/configs/settingV2.js +0 -819
  139. package/dist/cjs/swiper-carousel/setting/configs/uiV2.js +0 -718
  140. package/dist/esm/product/components/ProductImagesV3/common/common.js +0 -344
  141. package/dist/esm/product/components/ProductImagesV3/common/getAttr.js +0 -189
  142. package/dist/esm/product/components/ProductImagesV3/common/getBorderActiveCss.js +0 -24
  143. package/dist/esm/product/components/ProductImagesV3/common/getClasses.js +0 -83
  144. package/dist/esm/product/components/ProductImagesV3/common/getStyle.js +0 -292
  145. package/dist/esm/product/components/ProductImagesV3/common/hoverAction.js +0 -92
  146. package/dist/esm/product/components/ProductImagesV3/common/productFeaturedImage.js +0 -53
  147. package/dist/esm/product/components/ProductImagesV3/common/productGallery.js +0 -251
  148. package/dist/esm/product/components/ProductImagesV3/components/child/MediaIcon.js +0 -59
  149. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeatureVideo.js +0 -32
  150. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageCarousel.js +0 -105
  151. package/dist/esm/product/components/ProductImagesV3/components/child/ProductFeaturedImageOnly.js +0 -135
  152. package/dist/esm/product/components/ProductImagesV3/components/child/ProductGalleryGrid.js +0 -96
  153. package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.js +0 -73
  154. package/dist/esm/product/components/ProductImagesV3/components/feature-gallery/FeatureImageWithGallery.liquid.js +0 -296
  155. package/dist/esm/product/components/ProductImagesV3/components/feature-only/OnlyFeatureImage.js +0 -40
  156. package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.js +0 -79
  157. package/dist/esm/product/components/ProductImagesV3/components/gallery-carousel/GalleryCarousel.liquid.js +0 -178
  158. package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.js +0 -26
  159. package/dist/esm/product/components/ProductImagesV3/components/gallery-grid/GalleryGrid.liquid.js +0 -235
  160. package/dist/esm/product/components/ProductImagesV3/components/lightbox/ButtonOpenLightBox.js +0 -24
  161. package/dist/esm/product/components/ProductImagesV3/components/lightbox/ProductImagesLightBox.js +0 -140
  162. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesAttr.js +0 -12
  163. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesClassName.js +0 -52
  164. package/dist/esm/product/components/ProductImagesV3/composables/getProductImagesStyles.js +0 -51
  165. package/dist/esm/product/components/ProductImagesV3/hooks/useFeatureImageWithGallery.js +0 -53
  166. package/dist/esm/product/components/ProductImagesV3/hooks/useFilterImagesByVariant.js +0 -39
  167. package/dist/esm/product/components/ProductImagesV3/hooks/useGalleryCarousel.js +0 -132
  168. package/dist/esm/product/components/ProductImagesV3/hooks/useProductFeaturedImageCarousel.js +0 -201
  169. package/dist/esm/product/components/ProductImagesV3/hooks/useProductGalleryGrid.js +0 -85
  170. package/dist/esm/product/components/ProductImagesV3/index.js +0 -287
  171. package/dist/esm/product/components/ProductImagesV3/index.liquid.js +0 -149
  172. package/dist/esm/product/setting/product-image-v3/ProductFeatureImage.js +0 -248
  173. package/dist/esm/product/setting/product-image-v3/ProductGalleryImage.js +0 -248
  174. package/dist/esm/product/setting/product-image-v3/ProductImages.js +0 -70
  175. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductFeatureImage.js +0 -384
  176. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/ProductGalleryImage.js +0 -515
  177. package/dist/esm/product/setting/product-image-v3/configs/setting-v2/index.js +0 -334
  178. package/dist/esm/product/setting/product-image-v3/configs/ui/FeatureNavigation.js +0 -116
  179. package/dist/esm/product/setting/product-image-v3/configs/ui/ImageListNavigation.js +0 -117
  180. package/dist/esm/product/setting/product-image-v3/configs/uiV1.js +0 -235
  181. package/dist/esm/product/setting/product-image-v3/configs/uiV2.js +0 -489
  182. package/dist/esm/swiper-carousel/arrow/Arrow.js +0 -48
  183. package/dist/esm/swiper-carousel/arrow/Arrow.liquid.js +0 -42
  184. package/dist/esm/swiper-carousel/arrow/common/common.js +0 -111
  185. package/dist/esm/swiper-carousel/arrow/common/getClass.js +0 -48
  186. package/dist/esm/swiper-carousel/arrow/common/getStyle.js +0 -82
  187. package/dist/esm/swiper-carousel/carousel-item/SwiperItem.js +0 -30
  188. package/dist/esm/swiper-carousel/carousel-item/SwiperItem.liquid.js +0 -34
  189. package/dist/esm/swiper-carousel/carousel-item/common/getClass.js +0 -27
  190. package/dist/esm/swiper-carousel/carousel-item/common/getStyle.js +0 -77
  191. package/dist/esm/swiper-carousel/carousel-item/hook/useCarouseItem.js +0 -20
  192. package/dist/esm/swiper-carousel/components/common/carousel.js +0 -93
  193. package/dist/esm/swiper-carousel/components/const/index.js +0 -3
  194. package/dist/esm/swiper-carousel/components/hooks/useTrackPreviewPause.js +0 -30
  195. package/dist/esm/swiper-carousel/components/plugins/AnimationPlugin.js +0 -35
  196. package/dist/esm/swiper-carousel/components/plugins/AutoPlayPlugin.js +0 -103
  197. package/dist/esm/swiper-carousel/components/plugins/FixSliderMoveBackwards.js +0 -13
  198. package/dist/esm/swiper-carousel/components/plugins/MutationPlugin.js +0 -43
  199. package/dist/esm/swiper-carousel/dots/Dots.js +0 -47
  200. package/dist/esm/swiper-carousel/dots/Dots.liquid.js +0 -22
  201. package/dist/esm/swiper-carousel/dots/common/common.js +0 -26
  202. package/dist/esm/swiper-carousel/dots/common/getClass.js +0 -38
  203. package/dist/esm/swiper-carousel/dots/common/getStyle.js +0 -31
  204. package/dist/esm/swiper-carousel/dots/hook/useDotsSetting.js +0 -19
  205. package/dist/esm/swiper-carousel/index.js +0 -15
  206. package/dist/esm/swiper-carousel/next.js +0 -18
  207. package/dist/esm/swiper-carousel/root/Swiper.js +0 -124
  208. package/dist/esm/swiper-carousel/root/Swiper.liquid.js +0 -100
  209. package/dist/esm/swiper-carousel/root/common/getAttr.js +0 -23
  210. package/dist/esm/swiper-carousel/root/common/getClass.js +0 -133
  211. package/dist/esm/swiper-carousel/root/common/getData.js +0 -54
  212. package/dist/esm/swiper-carousel/root/common/getStyle.js +0 -64
  213. package/dist/esm/swiper-carousel/root/hook/useCarousel.js +0 -480
  214. package/dist/esm/swiper-carousel/setting/Swiper.js +0 -38
  215. package/dist/esm/swiper-carousel/setting/SwiperItem.js +0 -36
  216. package/dist/esm/swiper-carousel/setting/configs/presets.js +0 -85
  217. package/dist/esm/swiper-carousel/setting/configs/settingV2.js +0 -815
  218. package/dist/esm/swiper-carousel/setting/configs/uiV2.js +0 -713
@@ -1,815 +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
- 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 };