@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,519 +0,0 @@
1
- 'use strict';
2
-
3
- const getDefaultResponsive = (defaultValue)=>{
4
- return {
5
- desktop: {
6
- default: defaultValue
7
- }
8
- };
9
- };
10
- const productGalleryImageSetting = [
11
- {
12
- id: 'type',
13
- label: 'Gallery Type',
14
- type: 'segment',
15
- hide: true,
16
- options: [
17
- {
18
- label: 'Slide',
19
- value: 'slider'
20
- },
21
- {
22
- label: 'All',
23
- value: 'images'
24
- }
25
- ],
26
- devices: getDefaultResponsive('slider')
27
- },
28
- {
29
- id: 'galleryHoverEffect',
30
- label: 'Hover Effect',
31
- type: 'select',
32
- hide: true,
33
- hideOnMode: {
34
- mobileOnly: true
35
- },
36
- options: [
37
- {
38
- title: 'None',
39
- value: 'none'
40
- },
41
- {
42
- title: 'Zoom',
43
- value: 'zoom'
44
- }
45
- ],
46
- default: 'none'
47
- },
48
- {
49
- id: 'galleryZoomType',
50
- type: 'select',
51
- label: 'Zoom Type',
52
- hide: true,
53
- default: 'default',
54
- hideOnMode: {
55
- mobileOnly: true
56
- },
57
- options: [
58
- {
59
- title: 'Default',
60
- value: 'default'
61
- },
62
- {
63
- title: 'Glasses',
64
- value: 'glasses'
65
- }
66
- ]
67
- },
68
- {
69
- id: 'galleryZoom',
70
- type: 'input:slider',
71
- label: 'Zoom Value',
72
- min: 100,
73
- max: 200,
74
- step: 10,
75
- default: 150,
76
- units: [
77
- '%'
78
- ],
79
- useOnlyUnitInit: true,
80
- isNumber: true
81
- },
82
- {
83
- id: 'clickOpenLightBox',
84
- label: 'Large view in pop-up',
85
- type: 'select',
86
- options: [
87
- {
88
- label: 'View in featured',
89
- value: false
90
- },
91
- {
92
- label: 'Open Gallery',
93
- value: true
94
- }
95
- ],
96
- devices: getDefaultResponsive(false)
97
- },
98
- {
99
- id: 'borderActive',
100
- label: 'Active border',
101
- type: 'border',
102
- default: {
103
- borderType: 'none',
104
- border: 'solid',
105
- borderWidth: '1px',
106
- width: '1px 1px 1px 1px',
107
- isCustom: false,
108
- color: '#000000'
109
- }
110
- },
111
- {
112
- id: 'navigationPosition',
113
- label: 'Navigation',
114
- type: 'option:illustration',
115
- enableTooltip: true,
116
- options: [
117
- {
118
- label: 'No navigation',
119
- value: 'none',
120
- type: 'slide-control',
121
- hide: true
122
- },
123
- {
124
- label: 'Display outside navigation',
125
- value: 'outside',
126
- type: 'slide-control',
127
- svgName: 'gp-slide-control-outside'
128
- },
129
- {
130
- label: 'Display inside navigation',
131
- value: 'inside',
132
- type: 'slide-control',
133
- svgName: 'gp-slide-control-inside'
134
- }
135
- ],
136
- devices: getDefaultResponsive('inside')
137
- },
138
- {
139
- id: 'loop',
140
- type: 'toggle',
141
- devices: getDefaultResponsive(true)
142
- },
143
- {
144
- id: 'pauseOnHover',
145
- label: 'Pause On Hover',
146
- type: 'toggle',
147
- hide: true,
148
- default: true
149
- },
150
- {
151
- id: 'speed',
152
- type: 'input:slider',
153
- label: 'Speed (s)',
154
- hide: true,
155
- min: 0,
156
- max: 60,
157
- step: 1,
158
- default: 1
159
- },
160
- {
161
- id: 'arrowIcon',
162
- type: 'icon',
163
- hide: true,
164
- label: 'Custom Arrow',
165
- info: 'Choose from list or paste any SVG icon',
166
- default: `<svg width="100%" height="100%" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
167
- <path fill-rule="evenodd" clip-rule="evenodd" d="M12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0ZM10.6828 8.13017C10.5266 7.95661 10.2734 7.95661 10.1172 8.13017C9.96095 8.30374 9.96095 8.58515 10.1172 8.75871L13.0343 12L10.1172 15.2413C9.96095 15.4149 9.96095 15.6963 10.1172 15.8698C10.2734 16.0434 10.5266 16.0434 10.6828 15.8698L13.8828 12.3143C14.0391 12.1407 14.0391 11.8593 13.8828 11.6857L10.6828 8.13017Z" fill="currentColor"/>
168
- </svg>`
169
- },
170
- {
171
- id: 'arrowIconSize',
172
- label: 'Number per show',
173
- type: 'input:stepper',
174
- min: 1,
175
- devices: {
176
- desktop: {
177
- default: 24
178
- }
179
- }
180
- },
181
- {
182
- id: 'arrowIconColor',
183
- label: 'Icon color',
184
- type: 'color-picker-v2',
185
- default: '#000000'
186
- },
187
- {
188
- id: 'dragToScroll',
189
- label: 'Drag to scroll',
190
- type: 'toggle',
191
- hide: true,
192
- default: true
193
- },
194
- {
195
- id: 'arrowNavColor',
196
- label: 'Nav. color',
197
- type: 'color-picker-v2'
198
- },
199
- {
200
- id: 'arrowNavBorder',
201
- label: 'Nav. border',
202
- type: 'border',
203
- default: {
204
- borderType: 'none',
205
- border: 'none',
206
- borderWidth: '1px',
207
- width: '1px 1px 1px 1px',
208
- isCustom: false
209
- }
210
- },
211
- {
212
- id: 'arrowNavRadius',
213
- label: 'Nav. corner',
214
- type: 'radius-preset',
215
- default: {
216
- btrr: '0px',
217
- bblr: '0px',
218
- bbrr: '0px',
219
- btlr: '0px',
220
- radiusType: 'none'
221
- }
222
- },
223
- {
224
- id: 'arrowNavShadow',
225
- type: 'shadow-v2',
226
- default: {
227
- type: 'shadow-1',
228
- distance: '4px',
229
- blur: '12px',
230
- spread: '0px',
231
- color: 'rgba(0, 0, 0, 0.20)',
232
- angle: 90,
233
- enable: false
234
- }
235
- }
236
- ];
237
- const productGalleryImageStyle = [
238
- {
239
- id: 'shape',
240
- type: 'size-setting',
241
- label: '',
242
- devices: {
243
- desktop: {
244
- default: {
245
- shape: 'square',
246
- shapeValue: '1/1',
247
- width: '100%',
248
- height: undefined,
249
- shapeLinked: true
250
- }
251
- }
252
- },
253
- settingConfig: {
254
- width: {
255
- displayOptions: [
256
- 'full'
257
- ]
258
- }
259
- },
260
- hiddenSettings: [
261
- 'padding',
262
- 'gap'
263
- ]
264
- },
265
- {
266
- id: 'shapeForFtOnly',
267
- type: 'size-setting',
268
- label: '',
269
- devices: {
270
- desktop: {
271
- default: {
272
- shape: 'square',
273
- shapeValue: '1/1',
274
- width: '100%',
275
- height: undefined,
276
- shapeLinked: true
277
- }
278
- }
279
- },
280
- settingConfig: {
281
- width: {
282
- displayOptions: [
283
- 'full'
284
- ]
285
- }
286
- },
287
- hiddenSettings: [
288
- 'padding',
289
- 'gap'
290
- ]
291
- },
292
- {
293
- id: 'shapeForBottom',
294
- type: 'size-setting',
295
- label: '',
296
- devices: {
297
- desktop: {
298
- default: {
299
- shape: 'square',
300
- shapeValue: '1/1',
301
- width: '20%',
302
- height: undefined,
303
- shapeLinked: true
304
- }
305
- }
306
- },
307
- settingConfig: {
308
- width: {
309
- displayOptions: [
310
- 'full',
311
- 'small',
312
- 'medium',
313
- 'large'
314
- ],
315
- sizeConfig: {
316
- small: '10%',
317
- medium: '20%',
318
- large: '25%'
319
- }
320
- }
321
- },
322
- hiddenSettings: [
323
- 'padding',
324
- 'gap'
325
- ]
326
- },
327
- {
328
- id: 'shapeForInsideBottom',
329
- type: 'size-setting',
330
- label: '',
331
- devices: {
332
- desktop: {
333
- default: {
334
- shape: 'square',
335
- shapeValue: '1/1',
336
- width: '20%',
337
- height: undefined,
338
- shapeLinked: true
339
- }
340
- }
341
- },
342
- settingConfig: {
343
- width: {
344
- displayOptions: [
345
- 'small',
346
- 'medium',
347
- 'large'
348
- ],
349
- sizeConfig: {
350
- small: '10%',
351
- medium: '20%',
352
- large: '25%'
353
- }
354
- }
355
- },
356
- hiddenSettings: [
357
- 'padding',
358
- 'gap'
359
- ]
360
- },
361
- {
362
- id: 'shapeForInside',
363
- type: 'size-setting',
364
- label: '',
365
- devices: {
366
- desktop: {
367
- default: {
368
- shape: 'square',
369
- shapeValue: '1/1',
370
- width: '20%',
371
- height: undefined,
372
- shapeLinked: true
373
- }
374
- }
375
- },
376
- settingConfig: {
377
- width: {
378
- displayOptions: [
379
- 'small',
380
- 'medium',
381
- 'large'
382
- ],
383
- sizeConfig: {
384
- small: '10%',
385
- medium: '20%',
386
- large: '25%'
387
- }
388
- }
389
- },
390
- hiddenSettings: [
391
- 'padding',
392
- 'gap'
393
- ]
394
- },
395
- {
396
- id: 'shapeFor2Col',
397
- type: 'size-setting',
398
- label: '',
399
- devices: {
400
- desktop: {
401
- default: {
402
- shape: 'square',
403
- shapeValue: '1/1',
404
- width: '50%',
405
- height: undefined,
406
- shapeLinked: true
407
- }
408
- }
409
- },
410
- settingConfig: {
411
- width: {
412
- displayOptions: [
413
- 'full',
414
- 'small',
415
- 'medium',
416
- 'large'
417
- ],
418
- sizeConfig: {
419
- small: '25%',
420
- medium: '33%',
421
- large: '50%'
422
- }
423
- }
424
- },
425
- hiddenSettings: [
426
- 'padding',
427
- 'gap'
428
- ]
429
- },
430
- {
431
- id: 'shapeFor1Col',
432
- type: 'size-setting',
433
- label: '',
434
- devices: {
435
- desktop: {
436
- default: {
437
- shape: 'square',
438
- shapeValue: '1/1',
439
- width: '100%',
440
- height: undefined,
441
- shapeLinked: true
442
- }
443
- }
444
- },
445
- settingConfig: {
446
- width: {
447
- displayOptions: [
448
- 'full',
449
- 'small',
450
- 'medium',
451
- 'large'
452
- ],
453
- sizeConfig: {
454
- small: '25%',
455
- medium: '33%',
456
- large: '50%'
457
- }
458
- }
459
- },
460
- hiddenSettings: [
461
- 'padding',
462
- 'gap'
463
- ]
464
- },
465
- {
466
- id: 'layout',
467
- type: 'option:illustration',
468
- enableTooltip: true,
469
- label: 'Image scale',
470
- options: [
471
- {
472
- label: 'Fill image',
473
- value: 'cover',
474
- type: 'image',
475
- svgName: 'gp-image-cover'
476
- },
477
- {
478
- label: 'Fit image',
479
- value: 'contain',
480
- type: 'image',
481
- svgName: 'gp-image-contain'
482
- }
483
- ],
484
- devices: getDefaultResponsive('cover')
485
- },
486
- {
487
- id: 'itemSpacing',
488
- label: 'Gallery Item Spacing',
489
- type: 'input:slider',
490
- ignoreMax: true,
491
- units: [
492
- 'px'
493
- ],
494
- devices: {
495
- desktop: {
496
- default: '8px'
497
- }
498
- }
499
- },
500
- {
501
- id: 'corner',
502
- type: 'radius-preset',
503
- label: 'Corner',
504
- default: {
505
- btrr: '0px',
506
- bblr: '0px',
507
- bbrr: '0px',
508
- btlr: '0px',
509
- radiusType: 'none'
510
- },
511
- state: {
512
- hover: true,
513
- normal: true
514
- }
515
- }
516
- ];
517
-
518
- exports.productGalleryImageSetting = productGalleryImageSetting;
519
- exports.productGalleryImageStyle = productGalleryImageStyle;