@gem-sdk/components 2.0.0-dev.261 → 2.0.0-dev.265

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 (106) hide show
  1. package/dist/cjs/banner/components/HeroBannerItem.liquid.js +3 -2
  2. package/dist/cjs/estimate-delivery/components/EstimateDate.liquid.js +3 -2
  3. package/dist/cjs/grid/row/setting/configs/settings.js +9 -83
  4. package/dist/cjs/grid/section/setting/configs/settings.js +13 -75
  5. package/dist/cjs/icon-list-hoz/setting/configs/settings.js +4 -17
  6. package/dist/cjs/post-purchase/advanced-list/setting/configs/uiV2.js +3 -15
  7. package/dist/cjs/post-purchase/line/setting/configs/settings.js +3 -1
  8. package/dist/cjs/post-purchase/line/setting/configs/uiV2.js +2 -1
  9. package/dist/cjs/post-purchase/link/components/PostPurchaseLink.js +23 -14
  10. package/dist/cjs/post-purchase/link/components/common/getClasses.js +7 -1
  11. package/dist/cjs/post-purchase/link/setting/configs/settings.js +21 -14
  12. package/dist/cjs/post-purchase/product/common/getClasses.js +45 -0
  13. package/dist/cjs/post-purchase/product/common/getStyles.js +43 -0
  14. package/dist/cjs/post-purchase/product/components/product-image/FeatureImage.js +32 -42
  15. package/dist/cjs/post-purchase/product/components/product-image/ImageListCarousel.js +6 -65
  16. package/dist/cjs/post-purchase/product/components/product-image/ImageListGrid.js +24 -68
  17. package/dist/cjs/post-purchase/product/components/product-image/ItemCarouselPostPurchase.js +42 -0
  18. package/dist/cjs/post-purchase/product/components/product-image/ItemGridPostPurchase.js +42 -0
  19. package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/Arrow.js +29 -0
  20. package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/CarouselPostPurchase.js +35 -0
  21. package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/CarouselPostPurchaseContext.js +22 -0
  22. package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/CarouselWrapperPostPurchase.js +75 -0
  23. package/dist/cjs/post-purchase/product/components/product-image/index.js +41 -43
  24. package/dist/cjs/post-purchase/product/components/product-image/layouts/FeatureImageWithGalleryImage.js +22 -58
  25. package/dist/cjs/post-purchase/product/components/product-image/layouts/OnlyGalleryImage.js +19 -12
  26. package/dist/cjs/post-purchase/product/constants/index.js +36 -0
  27. package/dist/cjs/post-purchase/product/hooks/product-image/useCarousel.js +14 -0
  28. package/dist/cjs/post-purchase/product/hooks/product-image/useFeatureImagePostPurchase.js +32 -0
  29. package/dist/cjs/post-purchase/product/hooks/product-image/useListCarousel.js +43 -0
  30. package/dist/cjs/post-purchase/product/hooks/product-image/useNavigationCarouselPostPurchase.js +32 -0
  31. package/dist/cjs/post-purchase/product/hooks/product-image/useProductImagePostPurchase.js +60 -0
  32. package/dist/cjs/post-purchase/product/hooks/product-image/useSlideCarousel.js +35 -0
  33. package/dist/cjs/post-purchase/product/settings/product-description/settingV2.js +6 -9
  34. package/dist/cjs/post-purchase/product/settings/product-image/ProductFeatureImage.js +41 -0
  35. package/dist/cjs/post-purchase/product/settings/product-image/ProductGalleryImage.js +0 -118
  36. package/dist/cjs/post-purchase/product/settings/product-image/ProductImages.js +8 -79
  37. package/dist/cjs/post-purchase/product/settings/product-image/setting-v1.js +163 -0
  38. package/dist/cjs/post-purchase/product/settings/product-image/setting-v2.js +375 -0
  39. package/dist/cjs/post-purchase/product/settings/product-image/uiV1.js +42 -0
  40. package/dist/cjs/post-purchase/product/settings/product-image/uiV2.js +235 -0
  41. package/dist/cjs/post-purchase/product/settings/product-price/uiV2.js +0 -3
  42. package/dist/cjs/post-purchase/product/settings/product-price-breakdown/configs/settings.js +10 -6
  43. package/dist/cjs/post-purchase/product/settings/product-price-breakdown/configs/uiV2.js +2 -2
  44. package/dist/cjs/post-purchase/product/settings/product-quantity/configs/settings.js +3 -1
  45. package/dist/cjs/post-purchase/product/settings/product-title/settingV2.js +6 -9
  46. package/dist/cjs/post-purchase/text/settings/text/settingV2.js +0 -7
  47. package/dist/cjs/product/components/FileUpload/components/common/index.js +3 -2
  48. package/dist/cjs/product/setting/product/configs/presets.js +1 -1
  49. package/dist/cjs/product/setting/product/configs/settings.js +4 -20
  50. package/dist/cjs/setting.js +2 -1
  51. package/dist/esm/banner/components/HeroBannerItem.liquid.js +3 -2
  52. package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +3 -2
  53. package/dist/esm/grid/row/setting/configs/settings.js +9 -83
  54. package/dist/esm/grid/section/setting/configs/settings.js +13 -75
  55. package/dist/esm/icon-list-hoz/setting/configs/settings.js +4 -17
  56. package/dist/esm/post-purchase/advanced-list/setting/configs/uiV2.js +3 -15
  57. package/dist/esm/post-purchase/line/setting/configs/settings.js +3 -1
  58. package/dist/esm/post-purchase/line/setting/configs/uiV2.js +2 -1
  59. package/dist/esm/post-purchase/link/components/PostPurchaseLink.js +25 -16
  60. package/dist/esm/post-purchase/link/components/common/getClasses.js +7 -2
  61. package/dist/esm/post-purchase/link/setting/configs/settings.js +21 -14
  62. package/dist/esm/post-purchase/product/common/getClasses.js +37 -1
  63. package/dist/esm/post-purchase/product/common/getStyles.js +39 -1
  64. package/dist/esm/post-purchase/product/components/product-image/FeatureImage.js +32 -42
  65. package/dist/esm/post-purchase/product/components/product-image/ImageListCarousel.js +7 -66
  66. package/dist/esm/post-purchase/product/components/product-image/ImageListGrid.js +24 -68
  67. package/dist/esm/post-purchase/product/components/product-image/ItemCarouselPostPurchase.js +40 -0
  68. package/dist/esm/post-purchase/product/components/product-image/ItemGridPostPurchase.js +40 -0
  69. package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/Arrow.js +27 -0
  70. package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/CarouselPostPurchase.js +33 -0
  71. package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/CarouselPostPurchaseContext.js +19 -0
  72. package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/CarouselWrapperPostPurchase.js +73 -0
  73. package/dist/esm/post-purchase/product/components/product-image/index.js +42 -44
  74. package/dist/esm/post-purchase/product/components/product-image/layouts/FeatureImageWithGalleryImage.js +22 -58
  75. package/dist/esm/post-purchase/product/components/product-image/layouts/OnlyGalleryImage.js +19 -12
  76. package/dist/esm/post-purchase/product/constants/index.js +34 -0
  77. package/dist/esm/post-purchase/product/hooks/product-image/useCarousel.js +12 -0
  78. package/dist/esm/post-purchase/product/hooks/product-image/useFeatureImagePostPurchase.js +30 -0
  79. package/dist/esm/post-purchase/product/hooks/product-image/useListCarousel.js +41 -0
  80. package/dist/esm/post-purchase/product/hooks/product-image/useNavigationCarouselPostPurchase.js +30 -0
  81. package/dist/esm/post-purchase/product/hooks/product-image/useProductImagePostPurchase.js +58 -0
  82. package/dist/esm/post-purchase/product/hooks/product-image/useSlideCarousel.js +33 -0
  83. package/dist/esm/post-purchase/product/settings/product-description/settingV2.js +6 -9
  84. package/dist/esm/post-purchase/product/settings/product-image/ProductFeatureImage.js +41 -0
  85. package/dist/esm/post-purchase/product/settings/product-image/ProductGalleryImage.js +1 -118
  86. package/dist/esm/post-purchase/product/settings/product-image/ProductImages.js +8 -79
  87. package/dist/esm/post-purchase/product/settings/product-image/setting-v1.js +161 -0
  88. package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +373 -0
  89. package/dist/esm/post-purchase/product/settings/product-image/uiV1.js +40 -0
  90. package/dist/esm/post-purchase/product/settings/product-image/uiV2.js +233 -0
  91. package/dist/esm/post-purchase/product/settings/product-price/uiV2.js +0 -3
  92. package/dist/esm/post-purchase/product/settings/product-price-breakdown/configs/settings.js +10 -6
  93. package/dist/esm/post-purchase/product/settings/product-price-breakdown/configs/uiV2.js +2 -2
  94. package/dist/esm/post-purchase/product/settings/product-quantity/configs/settings.js +3 -1
  95. package/dist/esm/post-purchase/product/settings/product-title/settingV2.js +6 -9
  96. package/dist/esm/post-purchase/text/settings/text/settingV2.js +0 -7
  97. package/dist/esm/product/components/FileUpload/components/common/index.js +3 -2
  98. package/dist/esm/product/setting/product/configs/presets.js +1 -1
  99. package/dist/esm/product/setting/product/configs/settings.js +4 -20
  100. package/dist/esm/setting.js +2 -1
  101. package/dist/types/index.d.ts +12 -5
  102. package/package.json +4 -4
  103. package/dist/cjs/post-purchase/product/components/product-image/Arrow.js +0 -60
  104. package/dist/cjs/post-purchase/product/components/product-image/CarouselPostPurchase.js +0 -78
  105. package/dist/esm/post-purchase/product/components/product-image/Arrow.js +0 -58
  106. package/dist/esm/post-purchase/product/components/product-image/CarouselPostPurchase.js +0 -76
@@ -0,0 +1,233 @@
1
+ const SettingUIV2 = [
2
+ {
3
+ label: {
4
+ en: 'Layout'
5
+ },
6
+ controls: [
7
+ {
8
+ label: {
9
+ en: ''
10
+ },
11
+ setting: {
12
+ id: 'layoutType'
13
+ },
14
+ layout: 'vertical'
15
+ },
16
+ {
17
+ label: {
18
+ en: ''
19
+ },
20
+ setting: {
21
+ id: 'ratioLayoutLeft'
22
+ },
23
+ layout: 'vertical',
24
+ conditionDisplay: "layoutType === 'left'"
25
+ },
26
+ {
27
+ label: {
28
+ en: ''
29
+ },
30
+ setting: {
31
+ id: 'ratioLayoutRight'
32
+ },
33
+ layout: 'vertical',
34
+ conditionDisplay: "layoutType === 'right'"
35
+ }
36
+ ]
37
+ },
38
+ {
39
+ label: {
40
+ en: 'Featured image'
41
+ },
42
+ conditionDisplay: "layoutType !== 'one-col' && layoutType !== 'two-col'",
43
+ controls: [
44
+ {
45
+ setting: {
46
+ id: 'ftDisplayType'
47
+ },
48
+ label: {
49
+ en: 'Slider'
50
+ }
51
+ },
52
+ {
53
+ setting: {
54
+ id: 'ftAspectRatio'
55
+ },
56
+ label: {
57
+ en: 'Frame'
58
+ }
59
+ },
60
+ {
61
+ setting: {
62
+ id: 'ftWidth'
63
+ },
64
+ label: {
65
+ en: 'Width'
66
+ }
67
+ }
68
+ ],
69
+ moreSettings: {
70
+ type: 'collapse',
71
+ controls: [
72
+ {
73
+ label: {
74
+ en: 'Image scale'
75
+ },
76
+ setting: {
77
+ id: 'ftObjectFit'
78
+ }
79
+ },
80
+ {
81
+ label: {
82
+ en: 'Border'
83
+ },
84
+ setting: {
85
+ id: 'ftBorder'
86
+ }
87
+ }
88
+ ]
89
+ }
90
+ },
91
+ {
92
+ label: {
93
+ en: 'Image list'
94
+ },
95
+ conditionDisplay: "layoutType !== 'only-feature'",
96
+ controls: [
97
+ {
98
+ label: {
99
+ en: 'Display'
100
+ },
101
+ conditionDisplay: 'layoutType === "bottom-center"',
102
+ setting: {
103
+ id: 'displayType'
104
+ }
105
+ },
106
+ {
107
+ label: {
108
+ en: 'Number image'
109
+ },
110
+ conditionDisplay: '(displayType === "slider" && layoutType === "bottom-center") || layoutType === "left" || layoutType === "right"',
111
+ setting: {
112
+ id: 'ilItemPerSlide'
113
+ }
114
+ },
115
+ {
116
+ label: {
117
+ en: 'Number image'
118
+ },
119
+ conditionDisplay: 'displayType === "grid" && layoutType === "bottom-center"',
120
+ setting: {
121
+ id: 'ilNumberPerRow'
122
+ }
123
+ },
124
+ {
125
+ label: {
126
+ en: 'Frame'
127
+ },
128
+ setting: {
129
+ id: 'ilAspectRatio'
130
+ }
131
+ },
132
+ {
133
+ label: {
134
+ en: 'Spacing'
135
+ },
136
+ setting: {
137
+ id: 'ilSpacing'
138
+ }
139
+ }
140
+ ],
141
+ moreSettings: {
142
+ type: 'collapse',
143
+ controls: [
144
+ {
145
+ label: {
146
+ en: 'Image scale'
147
+ },
148
+ setting: {
149
+ id: 'ilObjectFit'
150
+ }
151
+ },
152
+ {
153
+ label: {
154
+ en: 'Active border'
155
+ },
156
+ setting: {
157
+ id: 'ilBorder'
158
+ }
159
+ }
160
+ ]
161
+ }
162
+ },
163
+ {
164
+ label: {
165
+ en: 'Spacing'
166
+ },
167
+ controls: [
168
+ {
169
+ type: 'control',
170
+ label: {
171
+ en: 'Gap'
172
+ },
173
+ setting: {
174
+ id: 'spacingHoz'
175
+ },
176
+ conditionDisplay: "layoutType === 'left' || layoutType === 'right'"
177
+ },
178
+ {
179
+ type: 'control',
180
+ label: {
181
+ en: 'Gap'
182
+ },
183
+ setting: {
184
+ id: 'spacingVertical'
185
+ },
186
+ conditionDisplay: "layoutType === 'bottom-center'"
187
+ }
188
+ ]
189
+ },
190
+ {
191
+ label: {
192
+ en: 'Navigation'
193
+ },
194
+ controls: [
195
+ {
196
+ label: {
197
+ en: 'Featured'
198
+ },
199
+ setting: {
200
+ id: 'ftNavigation'
201
+ },
202
+ conditionDisplay: "ftDisplayType == 'slider' && !['one-col', 'two-col'].includes(layoutType)"
203
+ },
204
+ {
205
+ label: {
206
+ en: 'Image list'
207
+ },
208
+ setting: {
209
+ id: 'ilNavigation'
210
+ },
211
+ conditionDisplay: "displayType == 'slider' && !['one-col', 'two-col', 'only-feature'].includes(layoutType)"
212
+ }
213
+ ]
214
+ },
215
+ {
216
+ controls: [
217
+ {
218
+ label: {
219
+ en: 'Align'
220
+ },
221
+ setting: {
222
+ id: 'align'
223
+ },
224
+ options: {
225
+ labelVariant: 'primary'
226
+ },
227
+ conditionEnable: '!(parseInt(ftWidth) >= 100 && ftWidth?.includes("%"))'
228
+ }
229
+ ]
230
+ }
231
+ ];
232
+
233
+ export { SettingUIV2 };
@@ -1,8 +1,5 @@
1
1
  const uiV2 = [
2
2
  {
3
- label: {
4
- en: 'Size'
5
- },
6
3
  controls: [
7
4
  {
8
5
  type: 'control',
@@ -42,12 +42,16 @@ const ProductPriceBreakdownSettings = [
42
42
  {
43
43
  id: 'contentShow',
44
44
  type: 'input',
45
- default: 'Show price breakdown'
45
+ default: 'Show price breakdown',
46
+ defaultValue: 'Show price breakdown',
47
+ clearButton: false
46
48
  },
47
49
  {
48
50
  id: 'contentHide',
49
51
  type: 'input',
50
- default: 'Hide price breakdown'
52
+ default: 'Hide price breakdown',
53
+ defaultValue: 'Hide price breakdown',
54
+ clearButton: false
51
55
  }
52
56
  ]
53
57
  },
@@ -59,9 +63,9 @@ const ProductPriceBreakdownSettings = [
59
63
  label: 'Label',
60
64
  type: 'typography-post-purchase',
61
65
  default: {
62
- fontSize: 'medium',
66
+ fontSize: 'default',
63
67
  textColor: 'default',
64
- fontWeight: 'normal',
68
+ fontWeight: 'bold',
65
69
  textTransform: 'none'
66
70
  }
67
71
  },
@@ -70,7 +74,7 @@ const ProductPriceBreakdownSettings = [
70
74
  label: 'Money value',
71
75
  type: 'typography-post-purchase',
72
76
  default: {
73
- fontSize: 'medium',
77
+ fontSize: 'default',
74
78
  textColor: 'default',
75
79
  fontWeight: 'bold',
76
80
  textTransform: 'none'
@@ -201,7 +205,7 @@ const ProductPriceBreakdownSettings = [
201
205
  label: 'Spacing',
202
206
  id: 'spacing',
203
207
  options: postPurchaseSpacing,
204
- default: undefined
208
+ default: 'none'
205
209
  }
206
210
  ]
207
211
  }
@@ -25,8 +25,8 @@ const SettingUIV2 = [
25
25
  type: 'combo',
26
26
  iconName: 'polaris-text-block',
27
27
  compoDefaultValue: 'Show',
28
- isHideClear: true,
29
28
  getValueFromSettingID: 'contentShow',
29
+ disableClearMessage: `This label title is needed for customers <br> to show the price breakdown`,
30
30
  layout: 'horizontal',
31
31
  controls: [
32
32
  {
@@ -50,8 +50,8 @@ const SettingUIV2 = [
50
50
  },
51
51
  type: 'combo',
52
52
  iconName: 'polaris-text-block',
53
- isHideClear: true,
54
53
  getValueFromSettingID: 'contentHide',
54
+ disableClearMessage: `This label title is needed for customers <br> to hide the price breakdown`,
55
55
  layout: 'horizontal',
56
56
  controls: [
57
57
  {
@@ -7,7 +7,9 @@ const ProductQuantitySettings = [
7
7
  label: 'Label title',
8
8
  type: 'input',
9
9
  placeholder: 'Add...',
10
- default: 'Quantity'
10
+ default: 'Quantity',
11
+ defaultValue: 'Quantity',
12
+ clearButton: false
11
13
  },
12
14
  {
13
15
  id: 'defaultQtyValue',
@@ -40,25 +40,22 @@ const settingV2 = [
40
40
  label: 'Left',
41
41
  value: 'left',
42
42
  type: 'text',
43
- tooltip: 'Align left'
43
+ tooltip: 'Align left',
44
+ iconName: 'polaris-text-align-left'
44
45
  },
45
46
  {
46
47
  label: 'Center',
47
48
  value: 'center',
48
49
  type: 'text',
49
- tooltip: 'Align center'
50
+ tooltip: 'Align center',
51
+ iconName: 'polaris-text-align-center'
50
52
  },
51
53
  {
52
54
  label: 'Right',
53
55
  value: 'right',
54
56
  type: 'text',
55
- tooltip: 'Align right'
56
- },
57
- {
58
- label: 'Justify',
59
- value: 'justify',
60
- type: 'text',
61
- tooltip: 'Align justify'
57
+ tooltip: 'Align right',
58
+ iconName: 'polaris-text-align-right'
62
59
  }
63
60
  ],
64
61
  default: 'left'
@@ -95,13 +95,6 @@ const settingV2 = [
95
95
  type: 'text',
96
96
  tooltip: 'Align right',
97
97
  iconName: 'polaris-text-align-right'
98
- },
99
- {
100
- label: 'Justify',
101
- value: 'justify',
102
- type: 'text',
103
- tooltip: 'Align justify',
104
- iconName: 'gp-text-align-justify'
105
98
  }
106
99
  ],
107
100
  default: 'left'
@@ -18,7 +18,7 @@ import '../../../../../header/components/kind/basic/index.js';
18
18
  import 'react-transition-group';
19
19
  import '../../../../../modal/components/confirm.js';
20
20
  import 'react-dom';
21
- import '../../../../../post-purchase/image/components/Img.js';
21
+ import '../../../../../post-purchase/image/next.js';
22
22
  import '../../../../../post-purchase/product/components/product-variant/components/variants/VariantItem.js';
23
23
  import '../../../Product.js';
24
24
  import '../../../../../notification/components/Notifications.js';
@@ -79,8 +79,10 @@ import '../../../../../third-party-instant/components/InstantYotpoLoyalty.js';
79
79
  import '../../../../../banner/components/parallax/AnimationManager.js';
80
80
  import '../../../../../form/setting/contact/Contact.js';
81
81
  import '../../../../../icon-list-v2/setting/configs/settings.js';
82
+ import '../../../../../post-purchase/image/components/Img.js';
82
83
  import '../../../../../post-purchase/callout-banner/components/common/getStyles.js';
83
84
  import '../../../../../post-purchase/line/components/PostPurchaseLine.js';
85
+ import '@gem-sdk/core/src/types/control-types/typography-post-purchase';
84
86
  import '../../../../../estimate-delivery/setting/configs/settings.js';
85
87
  import '../../../../../accordion/next.js';
86
88
  import '../../../../../breadcrumb/next.js';
@@ -125,7 +127,6 @@ import '../../../../../shop-pay-installment/next.js';
125
127
  import '../../../../../sticky/next.js';
126
128
  import '../../../../../icon-list-v2/next.js';
127
129
  import '../../../../../post-purchase/text/next.js';
128
- import '../../../../../post-purchase/image/next.js';
129
130
  import '../../../../../post-purchase/button/next.js';
130
131
  import '../../../../../post-purchase/line/next.js';
131
132
  import '../../../../../post-purchase/link/next.js';
@@ -11,7 +11,7 @@ import 'react';
11
11
  import 'next/head';
12
12
  import 'next/image';
13
13
  import 'react-youtube';
14
- import '../../../../post-purchase/image/components/Img.js';
14
+ import '../../../../post-purchase/image/next.js';
15
15
  import '../../../../post-purchase/product/components/product-variant/components/variants/VariantItem.js';
16
16
  import '../../../components/ProductVariants/variants/index.js';
17
17
 
@@ -70,7 +70,7 @@ const ProductSettings = [
70
70
  label: 'Between',
71
71
  value: 'space-between',
72
72
  tooltip: 'Distribute vertical spacing',
73
- iconName: 'gp-align-space-between'
73
+ iconName: 'gp-justify-content-space-between'
74
74
  }
75
75
  ],
76
76
  devices: {
@@ -131,31 +131,15 @@ const ProductSettings = [
131
131
  options: [
132
132
  {
133
133
  label: 'Start',
134
- value: 'start',
135
- icon: `<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
136
- <path d="M15.5 2.25C15.5 2.52614 15.2761 2.75 15 2.75L2 2.75C1.72386 2.75 1.5 2.52614 1.5 2.25C1.5 1.97386 1.72386 1.75 2 1.75L15 1.75C15.2761 1.75 15.5 1.97386 15.5 2.25Z" fill="currentColor"/>
137
- <path fill-rule="evenodd" clip-rule="evenodd" d="M11.5 3.25C12.3284 3.25 13 3.92157 13 4.75L13 9.75C13 10.5784 12.3284 11.25 11.5 11.25L10.5 11.25C9.67157 11.25 9 10.5784 9 9.75L9 4.75C9 3.92157 9.67157 3.25 10.5 3.25L11.5 3.25ZM12 4.75C12 4.47386 11.7761 4.25 11.5 4.25L10.5 4.25C10.2239 4.25 10 4.47386 10 4.75L10 9.75C10 10.0261 10.2239 10.25 10.5 10.25L11.5 10.25C11.7761 10.25 12 10.0261 12 9.75L12 4.75Z" fill="currentColor"/>
138
- <path fill-rule="evenodd" clip-rule="evenodd" d="M8 4.75C8 3.92157 7.32843 3.25 6.5 3.25L5.5 3.25C4.67157 3.25 4 3.92157 4 4.75L4 12.75C4 13.5784 4.67157 14.25 5.5 14.25L6.5 14.25C7.32843 14.25 8 13.5784 8 12.75L8 4.75ZM6.5 4.25C6.77614 4.25 7 4.47386 7 4.75L7 12.75C7 13.0261 6.77614 13.25 6.5 13.25L5.5 13.25C5.22386 13.25 5 13.0261 5 12.75L5 4.75C5 4.47386 5.22386 4.25 5.5 4.25L6.5 4.25Z" fill="currentColor"/>
139
- </svg>
140
- `
134
+ value: 'start'
141
135
  },
142
136
  {
143
137
  label: 'Center',
144
- value: 'center',
145
- icon: `<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
146
- <path fill-rule="evenodd" clip-rule="evenodd" d="M14.5 8.5C14.5 8.77614 14.2921 9 14.0357 9L12.1786 9L12.1786 11C12.1786 11.8284 11.555 12.5 10.7857 12.5L9.85714 12.5C9.08789 12.5 8.46429 11.8284 8.46429 11L8.46429 9L7.53571 9L7.53571 12.5C7.53571 13.3284 6.91211 14 6.14286 14L5.21429 14C4.44503 14 3.82143 13.3284 3.82143 12.5L3.82143 9L1.96429 9C1.70787 9 1.5 8.77614 1.5 8.5C1.5 8.22386 1.70787 8 1.96429 8L3.82143 8L3.82143 4.5C3.82143 3.67157 4.44503 3 5.21429 3L6.14286 3C6.91211 3 7.53572 3.67157 7.53572 4.5L7.53571 8L8.46429 8L8.46429 6C8.46429 5.17157 9.08789 4.5 9.85714 4.5L10.7857 4.5C11.555 4.5 12.1786 5.17157 12.1786 6L12.1786 8L14.0357 8C14.2921 8 14.5 8.22386 14.5 8.5ZM4.75 12.5C4.75 12.7761 4.95787 13 5.21429 13L6.14286 13C6.39928 13 6.60714 12.7761 6.60714 12.5L6.60714 4.5C6.60714 4.22386 6.39928 4 6.14286 4L5.21429 4C4.95787 4 4.75 4.22386 4.75 4.5L4.75 12.5ZM9.39286 11L9.39286 6C9.39286 5.72386 9.60073 5.5 9.85714 5.5L10.7857 5.5C11.0421 5.5 11.25 5.72386 11.25 6L11.25 11C11.25 11.2761 11.0421 11.5 10.7857 11.5L9.85714 11.5C9.60073 11.5 9.39286 11.2761 9.39286 11Z" fill="currentColor"/>
147
- </svg>
148
- `
138
+ value: 'center'
149
139
  },
150
140
  {
151
141
  label: 'End',
152
- value: 'end',
153
- icon: `<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg">
154
- <path d="M1.5 14.5C1.5 14.2239 1.72386 14 2 14L15 14C15.2761 14 15.5 14.2239 15.5 14.5C15.5 14.7761 15.2761 15 15 15L2 15C1.72386 15 1.5 14.7761 1.5 14.5Z" fill="currentColor"/>
155
- <path fill-rule="evenodd" clip-rule="evenodd" d="M5.5 13.5C4.67157 13.5 4 12.8284 4 12L4 7C4 6.17157 4.67157 5.5 5.5 5.5L6.5 5.5C7.32843 5.5 8 6.17157 8 7L8 12C8 12.8284 7.32843 13.5 6.5 13.5L5.5 13.5ZM5 12C5 12.2761 5.22386 12.5 5.5 12.5L6.5 12.5C6.77614 12.5 7 12.2761 7 12L7 7C7 6.72386 6.77614 6.5 6.5 6.5L5.5 6.5C5.22386 6.5 5 6.72386 5 7L5 12Z" fill="currentColor"/>
156
- <path fill-rule="evenodd" clip-rule="evenodd" d="M9 12C9 12.8284 9.67157 13.5 10.5 13.5L11.5 13.5C12.3284 13.5 13 12.8284 13 12L13 4C13 3.17157 12.3284 2.5 11.5 2.5L10.5 2.5C9.67157 2.5 9 3.17157 9 4L9 12ZM10.5 12.5C10.2239 12.5 10 12.2761 10 12L10 4C10 3.72386 10.2239 3.5 10.5 3.5L11.5 3.5C11.7761 3.5 12 3.72386 12 4L12 12C12 12.2761 11.7761 12.5 11.5 12.5L10.5 12.5Z" fill="currentColor"/>
157
- </svg>
158
- `
142
+ value: 'end'
159
143
  }
160
144
  ],
161
145
  default: 'start'
@@ -118,6 +118,7 @@ import postPurchaseImageSetting from './post-purchase/image/setting/index.js';
118
118
  import './post-purchase/image/components/Img.js';
119
119
  import postPurchaseButtonSetting from './post-purchase/button/setting/index.js';
120
120
  import postPurchaseProductSetting from './post-purchase/product/settings/index.js';
121
+ import './post-purchase/image/next.js';
121
122
  import './post-purchase/product/components/product-variant/components/variants/VariantItem.js';
122
123
  import postPurchaseCalloutBoxSetting from './post-purchase/callout-banner/setting/index.js';
123
124
  import './post-purchase/callout-banner/components/common/getStyles.js';
@@ -126,6 +127,7 @@ import './post-purchase/line/components/PostPurchaseLine.js';
126
127
  import postPurchaseAdvancedListSetting from './post-purchase/advanced-list/setting/index.js';
127
128
  import postPurchaseCountdownTimerSetting from './post-purchase/countdown-timer/settings/index.js';
128
129
  import postPurchaseLinkSetting from './post-purchase/link/setting/index.js';
130
+ import '@gem-sdk/core/src/types/control-types/typography-post-purchase';
129
131
  import estimateDeliverySetting from './estimate-delivery/setting/index.js';
130
132
  import articleListSetting from './article/setting/index.js';
131
133
  import marqueeSetting from './marquee/setting/index.js';
@@ -172,7 +174,6 @@ import './shop-pay-installment/next.js';
172
174
  import './sticky/next.js';
173
175
  import './icon-list-v2/next.js';
174
176
  import './post-purchase/text/next.js';
175
- import './post-purchase/image/next.js';
176
177
  import './post-purchase/button/next.js';
177
178
  import './post-purchase/line/next.js';
178
179
  import './post-purchase/link/next.js';
@@ -1373,7 +1373,7 @@ type FeatureImageSliderSetting = {
1373
1373
  ftDotGapToCarousel?: ObjectDevices<number>;
1374
1374
  };
1375
1375
  type FeatureImageSliderStyles = {};
1376
- type FeatureImageSetting$1 = {
1376
+ type FeatureImageSetting$2 = {
1377
1377
  ftClickOpenLightBox?: ObjectDevices<'none' | 'popup' | 'product-link'>;
1378
1378
  ftClickOpenNewTab?: boolean;
1379
1379
  hoverEffect?: 'zoom' | 'other' | 'none';
@@ -1431,7 +1431,7 @@ type GallerySetting$1 = {
1431
1431
  activeEffectEnable?: boolean;
1432
1432
  actionEnable?: ObjectDevices<boolean>;
1433
1433
  } & GallerySliderSetting$1;
1434
- type ProductImagesSetting$2 = GallerySetting$1 & FeatureImageSetting$1 & SelectDisplaySetting & {
1434
+ type ProductImagesSetting$2 = GallerySetting$1 & FeatureImageSetting$2 & SelectDisplaySetting & {
1435
1435
  qualityType?: ObjectDevices<QualityType>;
1436
1436
  qualityPercent?: ObjectDevices<number>;
1437
1437
  displayByVariant?: boolean;
@@ -1848,7 +1848,7 @@ type FeatureImageStyles = {
1848
1848
  width: string;
1849
1849
  }>;
1850
1850
  };
1851
- type FeatureImageSetting = {
1851
+ type FeatureImageSetting$1 = {
1852
1852
  featureImageVisible?: ObjectDevices<boolean>;
1853
1853
  clickEffect?: string;
1854
1854
  hoverEffect?: 'zoom' | 'other' | 'none';
@@ -1894,7 +1894,7 @@ type GallerySetting = {
1894
1894
  type?: ObjectDevices<string>;
1895
1895
  numberPerRow?: ObjectDevices<number>;
1896
1896
  } & GallerySliderSetting;
1897
- type ProductImagesSetting$1 = GallerySetting & FeatureImageSetting;
1897
+ type ProductImagesSetting$1 = GallerySetting & FeatureImageSetting$1;
1898
1898
  type ProductImagesStyles$1 = GalleryStyles & FeatureImageStyles;
1899
1899
  type ProductImagesProps = BasePropsWrap<ProductImagesSetting$1, ProductImagesStyles$1, Pick<NonNullable<ImageProps['styles']>, 'layout' | 'aspectRatio' | 'roundedImg' | 'customAspectRadio' | 'opacity'>> & {
1900
1900
  className?: string;
@@ -4841,6 +4841,13 @@ type FeatureImagStyle = {
4841
4841
  ftAspectRatio?: string;
4842
4842
  ftWidth?: ObjectDevices<string>;
4843
4843
  ftObjectFit?: ObjectFit;
4844
+ ftBorder: 'none' | 'display';
4845
+ ftNavigation: 'none' | 'display';
4846
+ ftSpacing: Spacing;
4847
+ };
4848
+ type FeatureImageSetting = {
4849
+ ftDisplayType: 'slider' | 'grid';
4850
+ ftItemPerSlide: number;
4844
4851
  };
4845
4852
  type ImageListSetting = {
4846
4853
  displayType: 'slider' | 'grid';
@@ -4862,7 +4869,7 @@ type ProductImageLayoutSettings = {
4862
4869
  ratioLayoutRight?: number[];
4863
4870
  };
4864
4871
  type ProductImagesLayout = 'bottom-center' | 'left' | 'right' | 'only-feature' | 'one-col' | 'two-col';
4865
- type ProductImagesSetting = ImageListSetting & ProductImageLayoutSettings;
4872
+ type ProductImagesSetting = ImageListSetting & ProductImageLayoutSettings & FeatureImageSetting;
4866
4873
  type ProductImagesStyles = ImageListStyle & FeatureImagStyle & {
4867
4874
  align?: 'left' | 'right' | 'center';
4868
4875
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.261",
3
+ "version": "2.0.0-dev.265",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",
@@ -22,9 +22,9 @@
22
22
  "relationship": "rollup -c ./scripts/rollup.config.settings.mjs && node ./scripts/get-control-relationship.js && node ./scripts/get-element-relationship.js"
23
23
  },
24
24
  "devDependencies": {
25
- "@gem-sdk/core": "2.0.0-dev.257",
26
- "@gem-sdk/styles": "2.0.0-dev.234",
27
- "@gem-sdk/system": "2.0.0-dev.234",
25
+ "@gem-sdk/core": "2.0.0-dev.264",
26
+ "@gem-sdk/styles": "2.0.0-dev.263",
27
+ "@gem-sdk/system": "2.0.0-dev.263",
28
28
  "@types/react-transition-group": "^4.4.5"
29
29
  },
30
30
  "dependencies": {
@@ -1,60 +0,0 @@
1
- 'use client';
2
- 'use strict';
3
-
4
- var jsxRuntime = require('react/jsx-runtime');
5
- var React = require('react');
6
-
7
- const NEXT_AND_PREV_URLS = {
8
- PREVIOUS: 'https://cdn.shopify.com/s/files/1/0789/8018/6418/files/472169286689883168-a2eb5093-0203-4973-8ade-183d5bdefdce.svg',
9
- NEXT: 'https://cdn.shopify.com/s/files/1/0789/8018/6418/files/472169286689883168-a5ac0286-5941-4bd7-a21d-72a6c017aeea.svg',
10
- NEXT_DISABLED: 'https://cdn.shopify.com/s/files/1/0789/8018/6418/files/472169286689883168-a3d1f159-001d-4301-bead-214606caf995.svg',
11
- PREVIOUS_DISABLED: 'https://cdn.shopify.com/s/files/1/0789/8018/6418/files/472169286689883168-33e3810b-a94c-40a1-a48b-4eba39013f15.svg',
12
- VERTICAL_PREVIOUS: 'https://cdn.shopify.com/s/files/1/0789/8018/6418/files/472169286689883168-4e4e886a-5aa1-4bb3-ab48-aa7752fd5eba.svg',
13
- VERTICAL_NEXT: 'https://cdn.shopify.com/s/files/1/0789/8018/6418/files/472169286689883168-a3c3d74c-2cde-49e5-9854-8079f5239013.svg',
14
- VERTICAL_NEXT_DISABLED: 'https://cdn.shopify.com/s/files/1/0789/8018/6418/files/472169286689883168-6c7f10a8-a205-43bd-b39c-aab044bb3771.svg',
15
- VERTICAL_PREVIOUS_DISABLED: 'https://cdn.shopify.com/s/files/1/0789/8018/6418/files/472169286689883168-010c3c2a-fcc3-4b09-84a2-734d924ad49b.svg'
16
- };
17
- const ArrowPostPurchase = (props)=>{
18
- const { moveToIdx, setMoveToIdx, type, navigation, maxIdx, vertical, layoutType } = props;
19
- const disabled = type == 'next' ? moveToIdx >= maxIdx : moveToIdx === 0;
20
- const imgSrc = React.useMemo(()=>{
21
- let temp = '';
22
- if (type === 'next') {
23
- if (vertical) {
24
- if (disabled) temp = NEXT_AND_PREV_URLS.VERTICAL_NEXT_DISABLED;
25
- else temp = NEXT_AND_PREV_URLS.VERTICAL_NEXT;
26
- } else {
27
- if (disabled) temp = NEXT_AND_PREV_URLS.NEXT_DISABLED;
28
- else temp = NEXT_AND_PREV_URLS.NEXT;
29
- }
30
- } else {
31
- if (vertical) {
32
- if (disabled) temp = NEXT_AND_PREV_URLS.VERTICAL_PREVIOUS_DISABLED;
33
- else temp = NEXT_AND_PREV_URLS.VERTICAL_PREVIOUS;
34
- } else {
35
- if (disabled) temp = NEXT_AND_PREV_URLS.PREVIOUS_DISABLED;
36
- else temp = NEXT_AND_PREV_URLS.PREVIOUS;
37
- }
38
- }
39
- return temp;
40
- }, [
41
- type,
42
- vertical,
43
- disabled
44
- ]);
45
- if (navigation === 'none' || layoutType === 'one-col') return null;
46
- return /*#__PURE__*/ jsxRuntime.jsx("button", {
47
- className: `gp-w-[24px] gp-h-[24px] gp-shrink-0 gp-flex gp-items-center gp-justify-center`,
48
- disabled: disabled,
49
- onClick: ()=>{
50
- if (type === 'next') setMoveToIdx(moveToIdx + 1);
51
- else setMoveToIdx(moveToIdx - 1);
52
- },
53
- children: /*#__PURE__*/ jsxRuntime.jsx("img", {
54
- src: imgSrc,
55
- alt: `gp-arrow-${type}`
56
- })
57
- });
58
- };
59
-
60
- exports.ArrowPostPurchase = ArrowPostPurchase;