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