@gem-sdk/components 2.0.0-dev.555 → 2.0.0-dev.557

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