@gem-sdk/components 2.0.0-dev.555 → 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 (46) hide show
  1. package/dist/cjs/carousel/carousel-item/CarouselItem.js +4 -2
  2. package/dist/cjs/carousel/carousel-item/hook/useCarouseItem.js +10 -2
  3. package/dist/cjs/carousel/setting/configs/settingV2.js +6 -4
  4. package/dist/cjs/carousel/setting/configs/uiV2.js +4 -1
  5. package/dist/cjs/product/components/ProductImagesV2/common/common.js +1 -23
  6. package/dist/cjs/product/components/ProductImagesV2/common/getAttr.js +29 -7
  7. package/dist/cjs/product/components/ProductImagesV2/common/getStyle.js +3 -3
  8. package/dist/cjs/product/components/ProductImagesV2/common/productFeaturedImage.js +1 -1
  9. package/dist/cjs/product/components/ProductImagesV2/components/child/ProductFeaturedImageOnly.js +2 -10
  10. package/dist/cjs/product/components/ProductImagesV2/components/child/ProductGalleryGrid.js +1 -1
  11. package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +1 -1
  12. package/dist/cjs/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.liquid.js +1 -1
  13. package/dist/cjs/product/components/ProductImagesV2/components/gallery-grid/GalleryGrid.liquid.js +1 -1
  14. package/dist/cjs/product/components/ProductImagesV2/hooks/useGalleryCarousel.js +2 -3
  15. package/dist/cjs/product/components/ProductImagesV2/hooks/useProductGalleryGrid.js +1 -1
  16. package/dist/cjs/product/components/ProductImagesV2/index.js +2 -4
  17. package/dist/cjs/product/components/ProductImagesV2/index.liquid.js +1 -1
  18. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +69 -63
  19. package/dist/cjs/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +23 -31
  20. package/dist/cjs/product/setting/product-image-v2/configs/ui/FeatureNavigation.js +118 -0
  21. package/dist/cjs/product/setting/product-image-v2/configs/ui/ImageListNavigation.js +119 -0
  22. package/dist/cjs/product/setting/product-image-v2/configs/uiV2.js +193 -415
  23. package/dist/esm/carousel/carousel-item/CarouselItem.js +4 -2
  24. package/dist/esm/carousel/carousel-item/hook/useCarouseItem.js +10 -2
  25. package/dist/esm/carousel/setting/configs/settingV2.js +6 -4
  26. package/dist/esm/carousel/setting/configs/uiV2.js +4 -1
  27. package/dist/esm/product/components/ProductImagesV2/common/common.js +1 -23
  28. package/dist/esm/product/components/ProductImagesV2/common/getAttr.js +29 -7
  29. package/dist/esm/product/components/ProductImagesV2/common/getStyle.js +3 -3
  30. package/dist/esm/product/components/ProductImagesV2/common/productFeaturedImage.js +1 -1
  31. package/dist/esm/product/components/ProductImagesV2/components/child/ProductFeaturedImageOnly.js +2 -10
  32. package/dist/esm/product/components/ProductImagesV2/components/child/ProductGalleryGrid.js +1 -1
  33. package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.js +1 -1
  34. package/dist/esm/product/components/ProductImagesV2/components/gallery-carousel/GalleryCarousel.liquid.js +1 -1
  35. package/dist/esm/product/components/ProductImagesV2/components/gallery-grid/GalleryGrid.liquid.js +1 -1
  36. package/dist/esm/product/components/ProductImagesV2/hooks/useGalleryCarousel.js +2 -3
  37. package/dist/esm/product/components/ProductImagesV2/hooks/useProductGalleryGrid.js +1 -1
  38. package/dist/esm/product/components/ProductImagesV2/index.js +2 -4
  39. package/dist/esm/product/components/ProductImagesV2/index.liquid.js +1 -1
  40. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductFeatureImage.js +69 -63
  41. package/dist/esm/product/setting/product-image-v2/configs/setting-v2/ProductGalleryImage.js +23 -31
  42. package/dist/esm/product/setting/product-image-v2/configs/ui/FeatureNavigation.js +116 -0
  43. package/dist/esm/product/setting/product-image-v2/configs/ui/ImageListNavigation.js +117 -0
  44. package/dist/esm/product/setting/product-image-v2/configs/uiV2.js +193 -415
  45. package/dist/types/index.d.ts +4 -8
  46. package/package.json +2 -2
@@ -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;