@gem-sdk/components 2.0.0-dev.260 → 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 (112) 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/setting/configs/uiV2.js +1 -1
  6. package/dist/cjs/icon-list-hoz/setting/configs/settings.js +4 -17
  7. package/dist/cjs/line/setting/configs/settings.js +4 -4
  8. package/dist/cjs/post-purchase/advanced-list/setting/configs/uiV2.js +3 -15
  9. package/dist/cjs/post-purchase/line/setting/configs/settings.js +3 -1
  10. package/dist/cjs/post-purchase/line/setting/configs/uiV2.js +2 -1
  11. package/dist/cjs/post-purchase/link/components/PostPurchaseLink.js +23 -14
  12. package/dist/cjs/post-purchase/link/components/common/getClasses.js +7 -1
  13. package/dist/cjs/post-purchase/link/setting/configs/settings.js +21 -14
  14. package/dist/cjs/post-purchase/product/common/getClasses.js +45 -0
  15. package/dist/cjs/post-purchase/product/common/getStyles.js +43 -0
  16. package/dist/cjs/post-purchase/product/components/product-image/FeatureImage.js +32 -42
  17. package/dist/cjs/post-purchase/product/components/product-image/ImageListCarousel.js +6 -65
  18. package/dist/cjs/post-purchase/product/components/product-image/ImageListGrid.js +24 -68
  19. package/dist/cjs/post-purchase/product/components/product-image/ItemCarouselPostPurchase.js +42 -0
  20. package/dist/cjs/post-purchase/product/components/product-image/ItemGridPostPurchase.js +42 -0
  21. package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/Arrow.js +29 -0
  22. package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/CarouselPostPurchase.js +35 -0
  23. package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/CarouselPostPurchaseContext.js +22 -0
  24. package/dist/cjs/post-purchase/product/components/product-image/carousel-post-purchase/CarouselWrapperPostPurchase.js +75 -0
  25. package/dist/cjs/post-purchase/product/components/product-image/index.js +41 -43
  26. package/dist/cjs/post-purchase/product/components/product-image/layouts/FeatureImageWithGalleryImage.js +22 -58
  27. package/dist/cjs/post-purchase/product/components/product-image/layouts/OnlyGalleryImage.js +19 -12
  28. package/dist/cjs/post-purchase/product/constants/index.js +36 -0
  29. package/dist/cjs/post-purchase/product/hooks/product-image/useCarousel.js +14 -0
  30. package/dist/cjs/post-purchase/product/hooks/product-image/useFeatureImagePostPurchase.js +32 -0
  31. package/dist/cjs/post-purchase/product/hooks/product-image/useListCarousel.js +43 -0
  32. package/dist/cjs/post-purchase/product/hooks/product-image/useNavigationCarouselPostPurchase.js +32 -0
  33. package/dist/cjs/post-purchase/product/hooks/product-image/useProductImagePostPurchase.js +60 -0
  34. package/dist/cjs/post-purchase/product/hooks/product-image/useSlideCarousel.js +35 -0
  35. package/dist/cjs/post-purchase/product/settings/product-description/settingV2.js +6 -9
  36. package/dist/cjs/post-purchase/product/settings/product-image/ProductFeatureImage.js +41 -0
  37. package/dist/cjs/post-purchase/product/settings/product-image/ProductGalleryImage.js +0 -118
  38. package/dist/cjs/post-purchase/product/settings/product-image/ProductImages.js +8 -79
  39. package/dist/cjs/post-purchase/product/settings/product-image/setting-v1.js +163 -0
  40. package/dist/cjs/post-purchase/product/settings/product-image/setting-v2.js +375 -0
  41. package/dist/cjs/post-purchase/product/settings/product-image/uiV1.js +42 -0
  42. package/dist/cjs/post-purchase/product/settings/product-image/uiV2.js +235 -0
  43. package/dist/cjs/post-purchase/product/settings/product-price/uiV2.js +0 -3
  44. package/dist/cjs/post-purchase/product/settings/product-price-breakdown/configs/settings.js +10 -6
  45. package/dist/cjs/post-purchase/product/settings/product-price-breakdown/configs/uiV2.js +2 -2
  46. package/dist/cjs/post-purchase/product/settings/product-quantity/configs/settings.js +3 -1
  47. package/dist/cjs/post-purchase/product/settings/product-title/settingV2.js +6 -9
  48. package/dist/cjs/post-purchase/text/settings/text/settingV2.js +0 -7
  49. package/dist/cjs/product/components/FileUpload/components/common/index.js +3 -2
  50. package/dist/cjs/product/setting/product/configs/presets.js +1 -1
  51. package/dist/cjs/product/setting/product/configs/settings.js +10 -75
  52. package/dist/cjs/setting.js +2 -1
  53. package/dist/cjs/text/setting/configs/settings.js +1 -1
  54. package/dist/esm/banner/components/HeroBannerItem.liquid.js +3 -2
  55. package/dist/esm/estimate-delivery/components/EstimateDate.liquid.js +3 -2
  56. package/dist/esm/grid/row/setting/configs/settings.js +9 -83
  57. package/dist/esm/grid/section/setting/configs/settings.js +13 -75
  58. package/dist/esm/icon/setting/configs/uiV2.js +1 -1
  59. package/dist/esm/icon-list-hoz/setting/configs/settings.js +4 -17
  60. package/dist/esm/line/setting/configs/settings.js +4 -4
  61. package/dist/esm/post-purchase/advanced-list/setting/configs/uiV2.js +3 -15
  62. package/dist/esm/post-purchase/line/setting/configs/settings.js +3 -1
  63. package/dist/esm/post-purchase/line/setting/configs/uiV2.js +2 -1
  64. package/dist/esm/post-purchase/link/components/PostPurchaseLink.js +25 -16
  65. package/dist/esm/post-purchase/link/components/common/getClasses.js +7 -2
  66. package/dist/esm/post-purchase/link/setting/configs/settings.js +21 -14
  67. package/dist/esm/post-purchase/product/common/getClasses.js +37 -1
  68. package/dist/esm/post-purchase/product/common/getStyles.js +39 -1
  69. package/dist/esm/post-purchase/product/components/product-image/FeatureImage.js +32 -42
  70. package/dist/esm/post-purchase/product/components/product-image/ImageListCarousel.js +7 -66
  71. package/dist/esm/post-purchase/product/components/product-image/ImageListGrid.js +24 -68
  72. package/dist/esm/post-purchase/product/components/product-image/ItemCarouselPostPurchase.js +40 -0
  73. package/dist/esm/post-purchase/product/components/product-image/ItemGridPostPurchase.js +40 -0
  74. package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/Arrow.js +27 -0
  75. package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/CarouselPostPurchase.js +33 -0
  76. package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/CarouselPostPurchaseContext.js +19 -0
  77. package/dist/esm/post-purchase/product/components/product-image/carousel-post-purchase/CarouselWrapperPostPurchase.js +73 -0
  78. package/dist/esm/post-purchase/product/components/product-image/index.js +42 -44
  79. package/dist/esm/post-purchase/product/components/product-image/layouts/FeatureImageWithGalleryImage.js +22 -58
  80. package/dist/esm/post-purchase/product/components/product-image/layouts/OnlyGalleryImage.js +19 -12
  81. package/dist/esm/post-purchase/product/constants/index.js +34 -0
  82. package/dist/esm/post-purchase/product/hooks/product-image/useCarousel.js +12 -0
  83. package/dist/esm/post-purchase/product/hooks/product-image/useFeatureImagePostPurchase.js +30 -0
  84. package/dist/esm/post-purchase/product/hooks/product-image/useListCarousel.js +41 -0
  85. package/dist/esm/post-purchase/product/hooks/product-image/useNavigationCarouselPostPurchase.js +30 -0
  86. package/dist/esm/post-purchase/product/hooks/product-image/useProductImagePostPurchase.js +58 -0
  87. package/dist/esm/post-purchase/product/hooks/product-image/useSlideCarousel.js +33 -0
  88. package/dist/esm/post-purchase/product/settings/product-description/settingV2.js +6 -9
  89. package/dist/esm/post-purchase/product/settings/product-image/ProductFeatureImage.js +41 -0
  90. package/dist/esm/post-purchase/product/settings/product-image/ProductGalleryImage.js +1 -118
  91. package/dist/esm/post-purchase/product/settings/product-image/ProductImages.js +8 -79
  92. package/dist/esm/post-purchase/product/settings/product-image/setting-v1.js +161 -0
  93. package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +373 -0
  94. package/dist/esm/post-purchase/product/settings/product-image/uiV1.js +40 -0
  95. package/dist/esm/post-purchase/product/settings/product-image/uiV2.js +233 -0
  96. package/dist/esm/post-purchase/product/settings/product-price/uiV2.js +0 -3
  97. package/dist/esm/post-purchase/product/settings/product-price-breakdown/configs/settings.js +10 -6
  98. package/dist/esm/post-purchase/product/settings/product-price-breakdown/configs/uiV2.js +2 -2
  99. package/dist/esm/post-purchase/product/settings/product-quantity/configs/settings.js +3 -1
  100. package/dist/esm/post-purchase/product/settings/product-title/settingV2.js +6 -9
  101. package/dist/esm/post-purchase/text/settings/text/settingV2.js +0 -7
  102. package/dist/esm/product/components/FileUpload/components/common/index.js +3 -2
  103. package/dist/esm/product/setting/product/configs/presets.js +1 -1
  104. package/dist/esm/product/setting/product/configs/settings.js +10 -75
  105. package/dist/esm/setting.js +2 -1
  106. package/dist/esm/text/setting/configs/settings.js +1 -1
  107. package/dist/types/index.d.ts +12 -5
  108. package/package.json +4 -4
  109. package/dist/cjs/post-purchase/product/components/product-image/Arrow.js +0 -60
  110. package/dist/cjs/post-purchase/product/components/product-image/CarouselPostPurchase.js +0 -78
  111. package/dist/esm/post-purchase/product/components/product-image/Arrow.js +0 -58
  112. package/dist/esm/post-purchase/product/components/product-image/CarouselPostPurchase.js +0 -76
@@ -0,0 +1,375 @@
1
+ 'use strict';
2
+
3
+ var constants = require('../../../utils/constants.js');
4
+
5
+ const SettingV2 = [
6
+ {
7
+ id: 'setting',
8
+ controls: [
9
+ {
10
+ id: 'ratioLayoutLeft',
11
+ label: 'Ratio',
12
+ type: 'grid-arrange',
13
+ default: [
14
+ 2,
15
+ 10
16
+ ]
17
+ },
18
+ {
19
+ id: 'ratioLayoutRight',
20
+ label: 'Ratio',
21
+ type: 'grid-arrange',
22
+ default: [
23
+ 10,
24
+ 2
25
+ ]
26
+ },
27
+ {
28
+ id: 'layoutType',
29
+ label: 'Layout',
30
+ type: 'layout-selector',
31
+ iconViewBox: '0 0 72 72',
32
+ enableItemBackground: true,
33
+ itemPerRow: 3,
34
+ itemSpacing: 'large',
35
+ options: [
36
+ {
37
+ label: 'Image list bottom',
38
+ value: 'bottom-center',
39
+ type: 'p-image-layout',
40
+ iconName: 'gp-product-image-layout-bottom'
41
+ },
42
+ {
43
+ label: 'Image list left',
44
+ value: 'left',
45
+ type: 'p-image-layout',
46
+ iconName: 'gp-product-image-layout-left'
47
+ },
48
+ {
49
+ label: 'Image list right',
50
+ value: 'right',
51
+ type: 'p-image-layout',
52
+ iconName: 'gp-product-image-layout-right'
53
+ },
54
+ {
55
+ label: 'Featured Only',
56
+ value: 'only-feature',
57
+ type: 'p-image-layout',
58
+ iconName: 'gp-product-image-layout-featured-only'
59
+ },
60
+ {
61
+ label: 'Image list 2 col',
62
+ value: 'two-col',
63
+ type: 'p-image-layout',
64
+ iconName: 'gp-product-image-layout-two-col'
65
+ },
66
+ {
67
+ label: 'Image list 1 col',
68
+ value: 'one-col',
69
+ type: 'p-image-layout',
70
+ iconName: 'gp-product-image-layout-one-col'
71
+ }
72
+ ],
73
+ default: 'bottom-center'
74
+ },
75
+ {
76
+ id: 'spacingHoz',
77
+ type: 'range',
78
+ min: 0,
79
+ max: 100,
80
+ step: 1,
81
+ units: [
82
+ '%'
83
+ ],
84
+ default: '1%'
85
+ },
86
+ {
87
+ id: 'spacingVertical',
88
+ label: 'Spacing',
89
+ type: 'select',
90
+ options: constants.postPurchaseSpacing,
91
+ default: 'tight'
92
+ },
93
+ {
94
+ id: 'displayType',
95
+ label: 'Gallery Type',
96
+ type: 'segment',
97
+ hide: true,
98
+ options: [
99
+ {
100
+ label: 'Slide',
101
+ value: 'slider'
102
+ },
103
+ {
104
+ label: 'All',
105
+ value: 'grid'
106
+ }
107
+ ],
108
+ default: 'slider'
109
+ },
110
+ {
111
+ id: 'ftDisplayType',
112
+ label: 'Slider',
113
+ type: 'segment',
114
+ options: [
115
+ {
116
+ label: 'Yes',
117
+ value: 'slider'
118
+ },
119
+ {
120
+ label: 'No',
121
+ value: 'grid'
122
+ }
123
+ ],
124
+ default: 'grid'
125
+ },
126
+ {
127
+ id: 'ftItemPerSlide',
128
+ type: 'input:number',
129
+ min: 1,
130
+ hide: true,
131
+ default: 1
132
+ }
133
+ ]
134
+ },
135
+ {
136
+ id: 'style',
137
+ controls: [
138
+ {
139
+ type: 'select',
140
+ label: 'Spacing',
141
+ id: 'ftSpacing',
142
+ options: constants.postPurchaseSpacing,
143
+ default: 'xtight'
144
+ },
145
+ {
146
+ id: 'ftNavigation',
147
+ label: 'Border',
148
+ type: 'segment',
149
+ options: [
150
+ {
151
+ label: 'Yes',
152
+ value: 'display'
153
+ },
154
+ {
155
+ label: 'No',
156
+ value: 'none'
157
+ }
158
+ ],
159
+ default: 'none'
160
+ },
161
+ {
162
+ id: 'ftBorder',
163
+ label: 'Border',
164
+ type: 'segment',
165
+ options: [
166
+ {
167
+ label: 'Yes',
168
+ value: 'display'
169
+ },
170
+ {
171
+ label: 'No',
172
+ value: 'none'
173
+ }
174
+ ],
175
+ default: 'none'
176
+ },
177
+ {
178
+ id: 'ftAspectRatio',
179
+ type: 'select',
180
+ default: '1',
181
+ options: [
182
+ {
183
+ label: 'Square',
184
+ value: '1',
185
+ icon: 'gp-image-shape-square'
186
+ },
187
+ {
188
+ label: 'Vertical',
189
+ value: '3/4',
190
+ icon: 'gp-image-shape-vertical'
191
+ },
192
+ {
193
+ label: 'Horizontal',
194
+ value: '4/3',
195
+ icon: 'gp-image-shape-horizontal'
196
+ },
197
+ {
198
+ label: 'Original',
199
+ value: 'auto'
200
+ }
201
+ ]
202
+ },
203
+ {
204
+ id: 'ftWidth',
205
+ type: 'input:unit',
206
+ label: 'Width',
207
+ min: 0,
208
+ units: [
209
+ 'px',
210
+ '%'
211
+ ],
212
+ devices: {
213
+ desktop: {
214
+ default: '100%'
215
+ },
216
+ tablet: {
217
+ default: '100%'
218
+ },
219
+ mobile: {
220
+ default: '100%'
221
+ }
222
+ }
223
+ },
224
+ {
225
+ id: 'ftObjectFit',
226
+ type: 'layout-segment',
227
+ iconViewBox: '0 0 66 48',
228
+ enableItemBackground: true,
229
+ enableTooltip: true,
230
+ label: 'Image scale',
231
+ options: [
232
+ {
233
+ label: 'Fill image',
234
+ value: 'cover',
235
+ type: 'image'
236
+ },
237
+ {
238
+ label: 'Fit image',
239
+ value: 'contain',
240
+ type: 'image'
241
+ }
242
+ ],
243
+ default: 'cover'
244
+ },
245
+ {
246
+ id: 'ilAspectRatio',
247
+ type: 'select',
248
+ default: '1',
249
+ options: [
250
+ {
251
+ label: 'Square',
252
+ value: '1',
253
+ icon: 'gp-image-shape-square'
254
+ },
255
+ {
256
+ label: 'Vertical',
257
+ value: '3/4',
258
+ icon: 'gp-image-shape-vertical'
259
+ },
260
+ {
261
+ label: 'Horizontal',
262
+ value: '4/3',
263
+ icon: 'gp-image-shape-horizontal'
264
+ },
265
+ {
266
+ label: 'Original',
267
+ value: 'auto'
268
+ }
269
+ ]
270
+ },
271
+ {
272
+ id: 'ilObjectFit',
273
+ type: 'layout-segment',
274
+ iconViewBox: '0 0 66 48',
275
+ enableItemBackground: true,
276
+ enableTooltip: true,
277
+ label: 'Image scale',
278
+ options: [
279
+ {
280
+ label: 'Fill image',
281
+ value: 'cover',
282
+ type: 'image'
283
+ },
284
+ {
285
+ label: 'Fit image',
286
+ value: 'contain',
287
+ type: 'image'
288
+ }
289
+ ],
290
+ default: 'cover'
291
+ },
292
+ {
293
+ id: 'ilBorder',
294
+ label: 'Active border',
295
+ type: 'segment',
296
+ default: 'display',
297
+ options: [
298
+ {
299
+ label: 'Yes',
300
+ value: 'display'
301
+ },
302
+ {
303
+ label: 'No',
304
+ value: 'none'
305
+ }
306
+ ]
307
+ },
308
+ {
309
+ id: 'ilNavigation',
310
+ label: 'Navigation',
311
+ type: 'segment',
312
+ default: 'display',
313
+ options: [
314
+ {
315
+ label: 'Yes',
316
+ value: 'display'
317
+ },
318
+ {
319
+ label: 'No',
320
+ value: 'none'
321
+ }
322
+ ]
323
+ },
324
+ {
325
+ type: 'select',
326
+ label: 'Spacing',
327
+ id: 'ilSpacing',
328
+ options: constants.postPurchaseSpacing,
329
+ default: 'xtight'
330
+ },
331
+ {
332
+ id: 'ilItemPerSlide',
333
+ type: 'input:number',
334
+ min: 1,
335
+ hide: true,
336
+ default: 5
337
+ },
338
+ {
339
+ id: 'ilNumberPerRow',
340
+ type: 'input:number',
341
+ label: 'Item per row',
342
+ hide: true,
343
+ default: 5
344
+ },
345
+ {
346
+ id: 'align',
347
+ label: 'Alignment',
348
+ type: 'segment',
349
+ options: [
350
+ {
351
+ label: 'Left',
352
+ value: 'left',
353
+ type: 'align',
354
+ tooltip: 'Align left'
355
+ },
356
+ {
357
+ label: 'Center',
358
+ value: 'center',
359
+ type: 'align',
360
+ tooltip: 'Align center'
361
+ },
362
+ {
363
+ label: 'Right',
364
+ value: 'right',
365
+ type: 'align',
366
+ tooltip: 'Align right'
367
+ }
368
+ ],
369
+ default: 'left'
370
+ }
371
+ ]
372
+ }
373
+ ];
374
+
375
+ exports.SettingV2 = SettingV2;
@@ -0,0 +1,42 @@
1
+ 'use strict';
2
+
3
+ var ProductImageLayoutSetting = require('./ProductImageLayoutSetting.js');
4
+ var ProductFeatureImage = require('./ProductFeatureImage.js');
5
+ var ProductGalleryImage = require('./ProductGalleryImage.js');
6
+
7
+ const SettingUIV1 = [
8
+ {
9
+ type: 'group',
10
+ label: {
11
+ en: 'Layout'
12
+ },
13
+ controls: ProductImageLayoutSetting.productLayoutUI
14
+ },
15
+ {
16
+ type: 'group',
17
+ label: {
18
+ en: 'Featured image'
19
+ },
20
+ condition: "layoutType !== 'one-col' && layoutType !== 'two-col'",
21
+ controls: ProductFeatureImage.productFeatureImageUI
22
+ },
23
+ {
24
+ type: 'group',
25
+ label: {
26
+ en: 'Image list'
27
+ },
28
+ condition: "layoutType !== 'only-feature'",
29
+ controls: ProductGalleryImage.productGalleryImageUI
30
+ },
31
+ {
32
+ type: 'control',
33
+ setting: {
34
+ id: 'align'
35
+ },
36
+ label: {
37
+ en: 'Align'
38
+ }
39
+ }
40
+ ];
41
+
42
+ exports.SettingUIV1 = SettingUIV1;
@@ -0,0 +1,235 @@
1
+ 'use strict';
2
+
3
+ const SettingUIV2 = [
4
+ {
5
+ label: {
6
+ en: 'Layout'
7
+ },
8
+ controls: [
9
+ {
10
+ label: {
11
+ en: ''
12
+ },
13
+ setting: {
14
+ id: 'layoutType'
15
+ },
16
+ layout: 'vertical'
17
+ },
18
+ {
19
+ label: {
20
+ en: ''
21
+ },
22
+ setting: {
23
+ id: 'ratioLayoutLeft'
24
+ },
25
+ layout: 'vertical',
26
+ conditionDisplay: "layoutType === 'left'"
27
+ },
28
+ {
29
+ label: {
30
+ en: ''
31
+ },
32
+ setting: {
33
+ id: 'ratioLayoutRight'
34
+ },
35
+ layout: 'vertical',
36
+ conditionDisplay: "layoutType === 'right'"
37
+ }
38
+ ]
39
+ },
40
+ {
41
+ label: {
42
+ en: 'Featured image'
43
+ },
44
+ conditionDisplay: "layoutType !== 'one-col' && layoutType !== 'two-col'",
45
+ controls: [
46
+ {
47
+ setting: {
48
+ id: 'ftDisplayType'
49
+ },
50
+ label: {
51
+ en: 'Slider'
52
+ }
53
+ },
54
+ {
55
+ setting: {
56
+ id: 'ftAspectRatio'
57
+ },
58
+ label: {
59
+ en: 'Frame'
60
+ }
61
+ },
62
+ {
63
+ setting: {
64
+ id: 'ftWidth'
65
+ },
66
+ label: {
67
+ en: 'Width'
68
+ }
69
+ }
70
+ ],
71
+ moreSettings: {
72
+ type: 'collapse',
73
+ controls: [
74
+ {
75
+ label: {
76
+ en: 'Image scale'
77
+ },
78
+ setting: {
79
+ id: 'ftObjectFit'
80
+ }
81
+ },
82
+ {
83
+ label: {
84
+ en: 'Border'
85
+ },
86
+ setting: {
87
+ id: 'ftBorder'
88
+ }
89
+ }
90
+ ]
91
+ }
92
+ },
93
+ {
94
+ label: {
95
+ en: 'Image list'
96
+ },
97
+ conditionDisplay: "layoutType !== 'only-feature'",
98
+ controls: [
99
+ {
100
+ label: {
101
+ en: 'Display'
102
+ },
103
+ conditionDisplay: 'layoutType === "bottom-center"',
104
+ setting: {
105
+ id: 'displayType'
106
+ }
107
+ },
108
+ {
109
+ label: {
110
+ en: 'Number image'
111
+ },
112
+ conditionDisplay: '(displayType === "slider" && layoutType === "bottom-center") || layoutType === "left" || layoutType === "right"',
113
+ setting: {
114
+ id: 'ilItemPerSlide'
115
+ }
116
+ },
117
+ {
118
+ label: {
119
+ en: 'Number image'
120
+ },
121
+ conditionDisplay: 'displayType === "grid" && layoutType === "bottom-center"',
122
+ setting: {
123
+ id: 'ilNumberPerRow'
124
+ }
125
+ },
126
+ {
127
+ label: {
128
+ en: 'Frame'
129
+ },
130
+ setting: {
131
+ id: 'ilAspectRatio'
132
+ }
133
+ },
134
+ {
135
+ label: {
136
+ en: 'Spacing'
137
+ },
138
+ setting: {
139
+ id: 'ilSpacing'
140
+ }
141
+ }
142
+ ],
143
+ moreSettings: {
144
+ type: 'collapse',
145
+ controls: [
146
+ {
147
+ label: {
148
+ en: 'Image scale'
149
+ },
150
+ setting: {
151
+ id: 'ilObjectFit'
152
+ }
153
+ },
154
+ {
155
+ label: {
156
+ en: 'Active border'
157
+ },
158
+ setting: {
159
+ id: 'ilBorder'
160
+ }
161
+ }
162
+ ]
163
+ }
164
+ },
165
+ {
166
+ label: {
167
+ en: 'Spacing'
168
+ },
169
+ controls: [
170
+ {
171
+ type: 'control',
172
+ label: {
173
+ en: 'Gap'
174
+ },
175
+ setting: {
176
+ id: 'spacingHoz'
177
+ },
178
+ conditionDisplay: "layoutType === 'left' || layoutType === 'right'"
179
+ },
180
+ {
181
+ type: 'control',
182
+ label: {
183
+ en: 'Gap'
184
+ },
185
+ setting: {
186
+ id: 'spacingVertical'
187
+ },
188
+ conditionDisplay: "layoutType === 'bottom-center'"
189
+ }
190
+ ]
191
+ },
192
+ {
193
+ label: {
194
+ en: 'Navigation'
195
+ },
196
+ controls: [
197
+ {
198
+ label: {
199
+ en: 'Featured'
200
+ },
201
+ setting: {
202
+ id: 'ftNavigation'
203
+ },
204
+ conditionDisplay: "ftDisplayType == 'slider' && !['one-col', 'two-col'].includes(layoutType)"
205
+ },
206
+ {
207
+ label: {
208
+ en: 'Image list'
209
+ },
210
+ setting: {
211
+ id: 'ilNavigation'
212
+ },
213
+ conditionDisplay: "displayType == 'slider' && !['one-col', 'two-col', 'only-feature'].includes(layoutType)"
214
+ }
215
+ ]
216
+ },
217
+ {
218
+ controls: [
219
+ {
220
+ label: {
221
+ en: 'Align'
222
+ },
223
+ setting: {
224
+ id: 'align'
225
+ },
226
+ options: {
227
+ labelVariant: 'primary'
228
+ },
229
+ conditionEnable: '!(parseInt(ftWidth) >= 100 && ftWidth?.includes("%"))'
230
+ }
231
+ ]
232
+ }
233
+ ];
234
+
235
+ exports.SettingUIV2 = SettingUIV2;
@@ -2,9 +2,6 @@
2
2
 
3
3
  const uiV2 = [
4
4
  {
5
- label: {
6
- en: 'Size'
7
- },
8
5
  controls: [
9
6
  {
10
7
  type: 'control',
@@ -44,12 +44,16 @@ const ProductPriceBreakdownSettings = [
44
44
  {
45
45
  id: 'contentShow',
46
46
  type: 'input',
47
- default: 'Show price breakdown'
47
+ default: 'Show price breakdown',
48
+ defaultValue: 'Show price breakdown',
49
+ clearButton: false
48
50
  },
49
51
  {
50
52
  id: 'contentHide',
51
53
  type: 'input',
52
- default: 'Hide price breakdown'
54
+ default: 'Hide price breakdown',
55
+ defaultValue: 'Hide price breakdown',
56
+ clearButton: false
53
57
  }
54
58
  ]
55
59
  },
@@ -61,9 +65,9 @@ const ProductPriceBreakdownSettings = [
61
65
  label: 'Label',
62
66
  type: 'typography-post-purchase',
63
67
  default: {
64
- fontSize: 'medium',
68
+ fontSize: 'default',
65
69
  textColor: 'default',
66
- fontWeight: 'normal',
70
+ fontWeight: 'bold',
67
71
  textTransform: 'none'
68
72
  }
69
73
  },
@@ -72,7 +76,7 @@ const ProductPriceBreakdownSettings = [
72
76
  label: 'Money value',
73
77
  type: 'typography-post-purchase',
74
78
  default: {
75
- fontSize: 'medium',
79
+ fontSize: 'default',
76
80
  textColor: 'default',
77
81
  fontWeight: 'bold',
78
82
  textTransform: 'none'
@@ -203,7 +207,7 @@ const ProductPriceBreakdownSettings = [
203
207
  label: 'Spacing',
204
208
  id: 'spacing',
205
209
  options: constants.postPurchaseSpacing,
206
- default: undefined
210
+ default: 'none'
207
211
  }
208
212
  ]
209
213
  }