@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
@@ -85,30 +85,16 @@ const productGalleryImageSetting = [
85
85
  type: 'select',
86
86
  options: [
87
87
  {
88
- title: 'View in featured image',
88
+ label: 'View in featured',
89
89
  value: false
90
90
  },
91
91
  {
92
- title: 'View in pop-up',
92
+ label: 'Open Gallery',
93
93
  value: true
94
94
  }
95
95
  ],
96
96
  devices: getDefaultResponsive(false)
97
97
  },
98
- {
99
- id: 'activeEffectEnable',
100
- type: 'combo',
101
- default: true
102
- },
103
- {
104
- id: 'actionEnable',
105
- type: 'combo',
106
- devices: {
107
- desktop: {
108
- default: true
109
- }
110
- }
111
- },
112
98
  {
113
99
  id: 'borderActive',
114
100
  label: 'Active border',
@@ -181,6 +167,17 @@ const productGalleryImageSetting = [
181
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"/>
182
168
  </svg>`
183
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
+ },
184
181
  {
185
182
  id: 'arrowIconColor',
186
183
  label: 'Icon color',
@@ -224,21 +221,16 @@ const productGalleryImageSetting = [
224
221
  }
225
222
  },
226
223
  {
227
- id: 'slidesNavigationEnable',
228
- type: 'combo',
229
- devices: {
230
- desktop: {
231
- default: true
232
- }
233
- }
234
- },
235
- {
236
- id: 'slidesActionEnable',
237
- type: 'combo',
238
- devices: {
239
- desktop: {
240
- default: true
241
- }
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
242
234
  }
243
235
  }
244
236
  ];
@@ -0,0 +1,118 @@
1
+ 'use strict';
2
+
3
+ const FeatureNavigation = {
4
+ type: 'combo',
5
+ getValueFromSettingID: 'ftNavigationPosition',
6
+ getIconFromSettingID: 'ftArrowIcon',
7
+ defaultValueWhenClear: 'none',
8
+ compoDefaultValue: 'outside',
9
+ label: {
10
+ en: 'Navigation'
11
+ },
12
+ controls: [
13
+ {
14
+ type: 'group',
15
+ label: {
16
+ en: 'Layout'
17
+ },
18
+ controls: [
19
+ {
20
+ label: {
21
+ en: 'Choose'
22
+ },
23
+ setting: {
24
+ id: 'ftNavigationPosition'
25
+ }
26
+ }
27
+ ]
28
+ },
29
+ {
30
+ type: 'group',
31
+ label: {
32
+ en: 'Icon'
33
+ },
34
+ conditionDisplay: 'ftNavigationPosition !== "none"',
35
+ controls: [
36
+ {
37
+ label: {
38
+ en: 'Choose'
39
+ },
40
+ setting: {
41
+ id: 'ftArrowIcon'
42
+ },
43
+ options: {
44
+ clearButton: false
45
+ }
46
+ },
47
+ {
48
+ label: {
49
+ en: 'Size'
50
+ },
51
+ setting: {
52
+ id: 'ftArrowIconSize'
53
+ }
54
+ },
55
+ {
56
+ label: {
57
+ en: 'Color'
58
+ },
59
+ setting: {
60
+ id: 'ftArrowIconColor'
61
+ }
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ type: 'group',
67
+ label: {
68
+ en: 'Button'
69
+ },
70
+ conditionDisplay: 'ftNavigationPosition !== "none"',
71
+ controls: [
72
+ {
73
+ label: {
74
+ en: 'Background'
75
+ },
76
+ setting: {
77
+ id: 'ftArrowNavColor'
78
+ }
79
+ }
80
+ ]
81
+ },
82
+ {
83
+ type: 'group',
84
+ label: {
85
+ en: 'Shape'
86
+ },
87
+ conditionDisplay: 'ftNavigationPosition !== "none"',
88
+ controls: [
89
+ {
90
+ label: {
91
+ en: 'Border'
92
+ },
93
+ setting: {
94
+ id: 'ftArrowNavBorder'
95
+ }
96
+ },
97
+ {
98
+ label: {
99
+ en: 'Corner'
100
+ },
101
+ setting: {
102
+ id: 'ftArrowNavRadius'
103
+ }
104
+ },
105
+ {
106
+ label: {
107
+ en: 'Shadow'
108
+ },
109
+ setting: {
110
+ id: 'ftArrowNavShadow'
111
+ }
112
+ }
113
+ ]
114
+ }
115
+ ]
116
+ };
117
+
118
+ exports.FeatureNavigation = FeatureNavigation;
@@ -0,0 +1,119 @@
1
+ 'use strict';
2
+
3
+ const ImageListNavigation = {
4
+ type: 'combo',
5
+ iconName: 'polaris-edit',
6
+ getValueFromSettingID: 'navigationPosition',
7
+ getIconFromSettingID: 'arrowIcon',
8
+ defaultValueWhenClear: 'none',
9
+ compoDefaultValue: 'outside',
10
+ label: {
11
+ en: 'Navigation'
12
+ },
13
+ popoverLabel: {
14
+ en: 'Navigation'
15
+ },
16
+ controls: [
17
+ {
18
+ type: 'group',
19
+ label: {
20
+ en: 'Layout'
21
+ },
22
+ controls: [
23
+ {
24
+ label: {
25
+ en: 'Choose'
26
+ },
27
+ setting: {
28
+ id: 'navigationPosition'
29
+ }
30
+ }
31
+ ]
32
+ },
33
+ {
34
+ type: 'group',
35
+ label: {
36
+ en: 'Icon'
37
+ },
38
+ conditionDisplay: `navigationPosition !== "none"`,
39
+ controls: [
40
+ {
41
+ label: {
42
+ en: 'Choose'
43
+ },
44
+ setting: {
45
+ id: 'arrowIcon'
46
+ }
47
+ },
48
+ {
49
+ label: {
50
+ en: 'Size'
51
+ },
52
+ setting: {
53
+ id: 'arrowIconSize'
54
+ }
55
+ },
56
+ {
57
+ label: {
58
+ en: 'Color'
59
+ },
60
+ setting: {
61
+ id: 'arrowIconColor'
62
+ }
63
+ }
64
+ ]
65
+ },
66
+ {
67
+ type: 'group',
68
+ label: {
69
+ en: 'Button'
70
+ },
71
+ conditionDisplay: `navigationPosition !== "none"`,
72
+ controls: [
73
+ {
74
+ label: {
75
+ en: 'Background'
76
+ },
77
+ setting: {
78
+ id: 'arrowNavColor'
79
+ }
80
+ }
81
+ ]
82
+ },
83
+ {
84
+ type: 'group',
85
+ label: {
86
+ en: 'Shape'
87
+ },
88
+ conditionDisplay: `navigationPosition !== "none"`,
89
+ controls: [
90
+ {
91
+ label: {
92
+ en: 'Border'
93
+ },
94
+ setting: {
95
+ id: 'arrowNavBorder'
96
+ }
97
+ },
98
+ {
99
+ label: {
100
+ en: 'Corner'
101
+ },
102
+ setting: {
103
+ id: 'arrowNavRadius'
104
+ }
105
+ },
106
+ {
107
+ label: {
108
+ en: 'Shadow'
109
+ },
110
+ setting: {
111
+ id: 'arrowNavShadow'
112
+ }
113
+ }
114
+ ]
115
+ }
116
+ ]
117
+ };
118
+
119
+ exports.ImageListNavigation = ImageListNavigation;