@gem-sdk/components 2.0.0-dev.554 → 2.0.0-dev.556

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 (52) hide show
  1. package/dist/cjs/article/components/ArticleList.js +1 -0
  2. package/dist/cjs/article/components/ArticleList.liquid.js +1 -0
  3. package/dist/cjs/article/setting/configs/ArticleList/uiV2.js +16 -0
  4. package/dist/cjs/carousel/carousel-item/CarouselItem.js +4 -2
  5. package/dist/cjs/carousel/carousel-item/hook/useCarouseItem.js +10 -2
  6. package/dist/cjs/carousel/setting/configs/settingV2.js +6 -4
  7. package/dist/cjs/carousel/setting/configs/uiV2.js +4 -1
  8. package/dist/cjs/product/components/ProductImagesV2/common/common.js +1 -23
  9. package/dist/cjs/product/components/ProductImagesV2/common/getAttr.js +29 -7
  10. package/dist/cjs/product/components/ProductImagesV2/common/getStyle.js +3 -3
  11. package/dist/cjs/product/components/ProductImagesV2/common/productFeaturedImage.js +1 -1
  12. package/dist/cjs/product/components/ProductImagesV2/components/child/ProductFeaturedImageOnly.js +2 -10
  13. package/dist/cjs/product/components/ProductImagesV2/components/child/ProductGalleryGrid.js +1 -1
  14. package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +1 -1
  15. package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.liquid.js +1 -1
  16. package/dist/cjs/product/components/ProductImagesV2/components/gallery-grid/GalleryGrid.liquid.js +1 -1
  17. package/dist/cjs/product/components/ProductImagesV2/hooks/useGalleryCarousel.js +2 -3
  18. package/dist/cjs/product/components/ProductImagesV2/hooks/useProductGalleryGrid.js +1 -1
  19. package/dist/cjs/product/components/ProductImagesV2/index.js +2 -4
  20. package/dist/cjs/product/components/ProductImagesV2/index.liquid.js +1 -1
  21. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +69 -63
  22. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +23 -31
  23. package/dist/cjs/product/setting/product-image-v2/configs/ui/FeatureNavigation.js +118 -0
  24. package/dist/cjs/product/setting/product-image-v2/configs/ui/ImageListNavigation.js +119 -0
  25. package/dist/cjs/product/setting/product-image-v2/configs/uiV2.js +193 -415
  26. package/dist/esm/article/components/ArticleList.js +2 -1
  27. package/dist/esm/article/components/ArticleList.liquid.js +2 -1
  28. package/dist/esm/article/setting/configs/ArticleList/uiV2.js +16 -0
  29. package/dist/esm/carousel/carousel-item/CarouselItem.js +4 -2
  30. package/dist/esm/carousel/carousel-item/hook/useCarouseItem.js +10 -2
  31. package/dist/esm/carousel/setting/configs/settingV2.js +6 -4
  32. package/dist/esm/carousel/setting/configs/uiV2.js +4 -1
  33. package/dist/esm/product/components/ProductImagesV2/common/common.js +1 -23
  34. package/dist/esm/product/components/ProductImagesV2/common/getAttr.js +29 -7
  35. package/dist/esm/product/components/ProductImagesV2/common/getStyle.js +3 -3
  36. package/dist/esm/product/components/ProductImagesV2/common/productFeaturedImage.js +1 -1
  37. package/dist/esm/product/components/ProductImagesV2/components/child/ProductFeaturedImageOnly.js +2 -10
  38. package/dist/esm/product/components/ProductImagesV2/components/child/ProductGalleryGrid.js +1 -1
  39. package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +1 -1
  40. package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.liquid.js +1 -1
  41. package/dist/esm/product/components/ProductImagesV2/components/gallery-grid/GalleryGrid.liquid.js +1 -1
  42. package/dist/esm/product/components/ProductImagesV2/hooks/useGalleryCarousel.js +2 -3
  43. package/dist/esm/product/components/ProductImagesV2/hooks/useProductGalleryGrid.js +1 -1
  44. package/dist/esm/product/components/ProductImagesV2/index.js +2 -4
  45. package/dist/esm/product/components/ProductImagesV2/index.liquid.js +1 -1
  46. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +69 -63
  47. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +23 -31
  48. package/dist/esm/product/setting/product-image-v2/configs/ui/FeatureNavigation.js +116 -0
  49. package/dist/esm/product/setting/product-image-v2/configs/ui/ImageListNavigation.js +117 -0
  50. package/dist/esm/product/setting/product-image-v2/configs/uiV2.js +193 -415
  51. package/dist/types/index.d.ts +4 -8
  52. package/package.json +2 -2
@@ -83,30 +83,16 @@ const productGalleryImageSetting = [
83
83
  type: 'select',
84
84
  options: [
85
85
  {
86
- title: 'View in featured image',
86
+ label: 'View in featured',
87
87
  value: false
88
88
  },
89
89
  {
90
- title: 'View in pop-up',
90
+ label: 'Open Gallery',
91
91
  value: true
92
92
  }
93
93
  ],
94
94
  devices: getDefaultResponsive(false)
95
95
  },
96
- {
97
- id: 'activeEffectEnable',
98
- type: 'combo',
99
- default: true
100
- },
101
- {
102
- id: 'actionEnable',
103
- type: 'combo',
104
- devices: {
105
- desktop: {
106
- default: true
107
- }
108
- }
109
- },
110
96
  {
111
97
  id: 'borderActive',
112
98
  label: 'Active border',
@@ -179,6 +165,17 @@ const productGalleryImageSetting = [
179
165
  <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"/>
180
166
  </svg>`
181
167
  },
168
+ {
169
+ id: 'arrowIconSize',
170
+ label: 'Number per show',
171
+ type: 'input:stepper',
172
+ min: 1,
173
+ devices: {
174
+ desktop: {
175
+ default: 24
176
+ }
177
+ }
178
+ },
182
179
  {
183
180
  id: 'arrowIconColor',
184
181
  label: 'Icon color',
@@ -222,21 +219,16 @@ const productGalleryImageSetting = [
222
219
  }
223
220
  },
224
221
  {
225
- id: 'slidesNavigationEnable',
226
- type: 'combo',
227
- devices: {
228
- desktop: {
229
- default: true
230
- }
231
- }
232
- },
233
- {
234
- id: 'slidesActionEnable',
235
- type: 'combo',
236
- devices: {
237
- desktop: {
238
- default: true
239
- }
222
+ id: 'arrowNavShadow',
223
+ type: 'shadow-v2',
224
+ default: {
225
+ type: 'shadow-1',
226
+ distance: '4px',
227
+ blur: '12px',
228
+ spread: '0px',
229
+ color: 'rgba(0, 0, 0, 0.20)',
230
+ angle: 90,
231
+ enable: false
240
232
  }
241
233
  }
242
234
  ];
@@ -0,0 +1,116 @@
1
+ const FeatureNavigation = {
2
+ type: 'combo',
3
+ getValueFromSettingID: 'ftNavigationPosition',
4
+ getIconFromSettingID: 'ftArrowIcon',
5
+ defaultValueWhenClear: 'none',
6
+ compoDefaultValue: 'outside',
7
+ label: {
8
+ en: 'Navigation'
9
+ },
10
+ controls: [
11
+ {
12
+ type: 'group',
13
+ label: {
14
+ en: 'Layout'
15
+ },
16
+ controls: [
17
+ {
18
+ label: {
19
+ en: 'Choose'
20
+ },
21
+ setting: {
22
+ id: 'ftNavigationPosition'
23
+ }
24
+ }
25
+ ]
26
+ },
27
+ {
28
+ type: 'group',
29
+ label: {
30
+ en: 'Icon'
31
+ },
32
+ conditionDisplay: 'ftNavigationPosition !== "none"',
33
+ controls: [
34
+ {
35
+ label: {
36
+ en: 'Choose'
37
+ },
38
+ setting: {
39
+ id: 'ftArrowIcon'
40
+ },
41
+ options: {
42
+ clearButton: false
43
+ }
44
+ },
45
+ {
46
+ label: {
47
+ en: 'Size'
48
+ },
49
+ setting: {
50
+ id: 'ftArrowIconSize'
51
+ }
52
+ },
53
+ {
54
+ label: {
55
+ en: 'Color'
56
+ },
57
+ setting: {
58
+ id: 'ftArrowIconColor'
59
+ }
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ type: 'group',
65
+ label: {
66
+ en: 'Button'
67
+ },
68
+ conditionDisplay: 'ftNavigationPosition !== "none"',
69
+ controls: [
70
+ {
71
+ label: {
72
+ en: 'Background'
73
+ },
74
+ setting: {
75
+ id: 'ftArrowNavColor'
76
+ }
77
+ }
78
+ ]
79
+ },
80
+ {
81
+ type: 'group',
82
+ label: {
83
+ en: 'Shape'
84
+ },
85
+ conditionDisplay: 'ftNavigationPosition !== "none"',
86
+ controls: [
87
+ {
88
+ label: {
89
+ en: 'Border'
90
+ },
91
+ setting: {
92
+ id: 'ftArrowNavBorder'
93
+ }
94
+ },
95
+ {
96
+ label: {
97
+ en: 'Corner'
98
+ },
99
+ setting: {
100
+ id: 'ftArrowNavRadius'
101
+ }
102
+ },
103
+ {
104
+ label: {
105
+ en: 'Shadow'
106
+ },
107
+ setting: {
108
+ id: 'ftArrowNavShadow'
109
+ }
110
+ }
111
+ ]
112
+ }
113
+ ]
114
+ };
115
+
116
+ export { FeatureNavigation };
@@ -0,0 +1,117 @@
1
+ const ImageListNavigation = {
2
+ type: 'combo',
3
+ iconName: 'polaris-edit',
4
+ getValueFromSettingID: 'navigationPosition',
5
+ getIconFromSettingID: 'arrowIcon',
6
+ defaultValueWhenClear: 'none',
7
+ compoDefaultValue: 'outside',
8
+ label: {
9
+ en: 'Navigation'
10
+ },
11
+ popoverLabel: {
12
+ en: 'Navigation'
13
+ },
14
+ controls: [
15
+ {
16
+ type: 'group',
17
+ label: {
18
+ en: 'Layout'
19
+ },
20
+ controls: [
21
+ {
22
+ label: {
23
+ en: 'Choose'
24
+ },
25
+ setting: {
26
+ id: 'navigationPosition'
27
+ }
28
+ }
29
+ ]
30
+ },
31
+ {
32
+ type: 'group',
33
+ label: {
34
+ en: 'Icon'
35
+ },
36
+ conditionDisplay: `navigationPosition !== "none"`,
37
+ controls: [
38
+ {
39
+ label: {
40
+ en: 'Choose'
41
+ },
42
+ setting: {
43
+ id: 'arrowIcon'
44
+ }
45
+ },
46
+ {
47
+ label: {
48
+ en: 'Size'
49
+ },
50
+ setting: {
51
+ id: 'arrowIconSize'
52
+ }
53
+ },
54
+ {
55
+ label: {
56
+ en: 'Color'
57
+ },
58
+ setting: {
59
+ id: 'arrowIconColor'
60
+ }
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ type: 'group',
66
+ label: {
67
+ en: 'Button'
68
+ },
69
+ conditionDisplay: `navigationPosition !== "none"`,
70
+ controls: [
71
+ {
72
+ label: {
73
+ en: 'Background'
74
+ },
75
+ setting: {
76
+ id: 'arrowNavColor'
77
+ }
78
+ }
79
+ ]
80
+ },
81
+ {
82
+ type: 'group',
83
+ label: {
84
+ en: 'Shape'
85
+ },
86
+ conditionDisplay: `navigationPosition !== "none"`,
87
+ controls: [
88
+ {
89
+ label: {
90
+ en: 'Border'
91
+ },
92
+ setting: {
93
+ id: 'arrowNavBorder'
94
+ }
95
+ },
96
+ {
97
+ label: {
98
+ en: 'Corner'
99
+ },
100
+ setting: {
101
+ id: 'arrowNavRadius'
102
+ }
103
+ },
104
+ {
105
+ label: {
106
+ en: 'Shadow'
107
+ },
108
+ setting: {
109
+ id: 'arrowNavShadow'
110
+ }
111
+ }
112
+ ]
113
+ }
114
+ ]
115
+ };
116
+
117
+ export { ImageListNavigation };