@gem-sdk/components 2.0.0-dev.662 → 2.0.0-dev.664

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.
@@ -0,0 +1,415 @@
1
+ 'use strict';
2
+
3
+ const SettingUIV2 = [
4
+ {
5
+ label: {
6
+ en: 'Logo'
7
+ },
8
+ controls: [
9
+ {
10
+ label: {
11
+ en: 'Image'
12
+ },
13
+ type: 'combo',
14
+ getValueFromSettingID: 'logo.src',
15
+ comboType: 'image',
16
+ isHideClear: true,
17
+ popoverLabel: {
18
+ en: 'Image'
19
+ },
20
+ controls: [
21
+ {
22
+ type: 'control',
23
+ label: {
24
+ en: 'Source'
25
+ },
26
+ layout: 'vertical',
27
+ options: {
28
+ labelVariant: 'primary'
29
+ },
30
+ setting: {
31
+ id: 'logo'
32
+ }
33
+ },
34
+ {
35
+ type: 'control',
36
+ label: {
37
+ en: 'Aspect Ratio'
38
+ },
39
+ setting: {
40
+ id: 'logoAspectRatio'
41
+ }
42
+ },
43
+ {
44
+ type: 'control',
45
+ conditionDisplay: 'logoAspectRatio == "custom"',
46
+ setting: {
47
+ id: 'customAspectRadio'
48
+ }
49
+ },
50
+ {
51
+ type: 'control',
52
+ label: {
53
+ en: 'Object Fit'
54
+ },
55
+ setting: {
56
+ id: 'layout'
57
+ }
58
+ }
59
+ ]
60
+ },
61
+ {
62
+ id: 'Width',
63
+ label: {
64
+ en: 'Width'
65
+ },
66
+ setting: {
67
+ id: 'logoWidth'
68
+ },
69
+ layout: 'horizontal'
70
+ }
71
+ ]
72
+ },
73
+ {
74
+ label: {
75
+ en: 'Menu management'
76
+ },
77
+ controls: [
78
+ {
79
+ id: 'menu',
80
+ label: {
81
+ en: 'Order'
82
+ },
83
+ setting: {
84
+ id: 'menu'
85
+ }
86
+ }
87
+ ]
88
+ },
89
+ {
90
+ label: {
91
+ en: 'Text style'
92
+ },
93
+ controls: [
94
+ {
95
+ label: {
96
+ en: 'Text style'
97
+ },
98
+ type: 'combo',
99
+ iconName: 'polaris-text-title',
100
+ getValueFromSettingID: 'typo.type',
101
+ isTypoValue: true,
102
+ isHideClear: true,
103
+ controls: [
104
+ {
105
+ setting: {
106
+ id: 'typo'
107
+ },
108
+ layout: 'vertical',
109
+ options: {
110
+ updateFields: [
111
+ {
112
+ field: 'attrs.color',
113
+ settingId: 'textColor',
114
+ state: 'normal'
115
+ }
116
+ ]
117
+ },
118
+ controlChangeTrigger: {
119
+ settings: [
120
+ {
121
+ action: {
122
+ controlId: 'textColor',
123
+ valueFromField: 'attrs.color',
124
+ groupType: 'style',
125
+ controlType: 'style',
126
+ removeDevice: true,
127
+ state: 'normal'
128
+ }
129
+ }
130
+ ],
131
+ options: {
132
+ noRecordHistory: true
133
+ }
134
+ }
135
+ }
136
+ ]
137
+ },
138
+ {
139
+ label: {
140
+ en: 'Icon'
141
+ },
142
+ setting: {
143
+ id: 'arrow'
144
+ }
145
+ },
146
+ {
147
+ label: {
148
+ en: 'Hover'
149
+ },
150
+ type: 'combo',
151
+ getValueFromSettingID: 'textColor.hover',
152
+ compoDefaultValue: 'text-2',
153
+ comboType: 'color',
154
+ popoverLabel: {
155
+ en: 'Hover'
156
+ },
157
+ controls: [
158
+ {
159
+ label: {
160
+ en: 'Text color'
161
+ },
162
+ setting: {
163
+ id: 'textColor',
164
+ state: 'hover'
165
+ }
166
+ }
167
+ ]
168
+ },
169
+ {
170
+ label: {
171
+ en: 'Dropdown'
172
+ },
173
+ type: 'combo',
174
+ iconName: 'polaris-status-active',
175
+ fixedValue: 'Styled',
176
+ isHideClear: true,
177
+ help: {
178
+ content: 'Dropdown menu appears when hovering on a menu item'
179
+ },
180
+ popoverLabel: {
181
+ en: 'Dropdown menu'
182
+ },
183
+ controls: [
184
+ {
185
+ label: {
186
+ en: 'Text color'
187
+ },
188
+ popoverLabel: {
189
+ en: 'Text color'
190
+ },
191
+ setting: {
192
+ id: 'menuTextColor',
193
+ state: 'normal'
194
+ }
195
+ },
196
+ {
197
+ label: {
198
+ en: 'Background'
199
+ },
200
+ popoverLabel: {
201
+ en: 'Background'
202
+ },
203
+ setting: {
204
+ id: 'menuBg'
205
+ }
206
+ },
207
+ {
208
+ label: {
209
+ en: 'Hover'
210
+ },
211
+ popoverLabel: {
212
+ en: 'Hover'
213
+ },
214
+ setting: {
215
+ id: 'menuTextColor',
216
+ state: 'hover'
217
+ }
218
+ }
219
+ ]
220
+ }
221
+ ]
222
+ },
223
+ {
224
+ label: {
225
+ en: 'Cart'
226
+ },
227
+ controls: [
228
+ {
229
+ label: {
230
+ en: 'Icon'
231
+ },
232
+ setting: {
233
+ id: 'cartIcon'
234
+ }
235
+ },
236
+ {
237
+ label: {
238
+ en: 'Icon Color'
239
+ },
240
+ setting: {
241
+ id: 'cartIconColor',
242
+ state: 'normal'
243
+ }
244
+ },
245
+ {
246
+ label: {
247
+ en: 'Hover'
248
+ },
249
+ type: 'combo',
250
+ iconName: 'polaris-plus',
251
+ getValueFromSettingID: 'cartIconColor.hover',
252
+ comboType: 'color',
253
+ compoDefaultValue: 'text-2',
254
+ popoverLabel: {
255
+ en: 'Hover'
256
+ },
257
+ controls: [
258
+ {
259
+ label: {
260
+ en: 'Icon color'
261
+ },
262
+ setting: {
263
+ id: 'cartIconColor',
264
+ state: 'hover'
265
+ }
266
+ }
267
+ ]
268
+ }
269
+ ]
270
+ },
271
+ {
272
+ label: {
273
+ en: 'Size'
274
+ },
275
+ controls: [
276
+ {
277
+ id: 'height',
278
+ label: {
279
+ en: 'Height'
280
+ },
281
+ setting: {
282
+ id: 'height'
283
+ },
284
+ controlConfig: {
285
+ id: 'height',
286
+ type: 'dropdown:input',
287
+ units: [
288
+ 'px'
289
+ ],
290
+ displayOptions: [
291
+ {
292
+ label: 'Fit content',
293
+ value: 'Auto',
294
+ showValue: true
295
+ }
296
+ ]
297
+ },
298
+ layout: 'horizontal'
299
+ }
300
+ ]
301
+ },
302
+ {
303
+ label: {
304
+ en: 'Background'
305
+ },
306
+ controls: [
307
+ {
308
+ id: 'headerBg',
309
+ label: {
310
+ en: 'Color'
311
+ },
312
+ setting: {
313
+ id: 'headerBg'
314
+ },
315
+ layout: 'horizontal'
316
+ }
317
+ ]
318
+ },
319
+ {
320
+ label: {
321
+ en: 'Shape'
322
+ },
323
+ controls: [
324
+ {
325
+ label: {
326
+ en: 'Border'
327
+ },
328
+ setting: {
329
+ id: 'border',
330
+ state: 'normal'
331
+ }
332
+ },
333
+ {
334
+ label: {
335
+ en: 'Corner'
336
+ },
337
+ setting: {
338
+ id: 'rounded',
339
+ state: 'normal'
340
+ }
341
+ },
342
+ {
343
+ label: {
344
+ en: 'Shadow'
345
+ },
346
+ setting: {
347
+ id: 'boxShadow',
348
+ state: 'normal'
349
+ },
350
+ options: {
351
+ updateFields: [
352
+ {
353
+ field: 'normal.enable',
354
+ settingId: 'hasBoxShadow',
355
+ state: 'normal'
356
+ }
357
+ ]
358
+ },
359
+ controlChangeTrigger: {
360
+ settings: [
361
+ {
362
+ condition: `boxShadow.normal.enable === true`,
363
+ source: [
364
+ 'boxShadow',
365
+ 'hasBoxShadow'
366
+ ],
367
+ action: {
368
+ controlId: 'hasBoxShadow',
369
+ groupType: 'advanced',
370
+ controlType: 'advanced',
371
+ state: 'normal',
372
+ newValue: true
373
+ }
374
+ },
375
+ {
376
+ condition: `boxShadow.normal.enable === false`,
377
+ source: [
378
+ 'boxShadow',
379
+ 'hasBoxShadow'
380
+ ],
381
+ action: {
382
+ controlId: 'hasBoxShadow',
383
+ groupType: 'advanced',
384
+ controlType: 'advanced',
385
+ state: 'normal',
386
+ newValue: false
387
+ }
388
+ }
389
+ ],
390
+ options: {
391
+ noRecordHistory: true
392
+ }
393
+ }
394
+ }
395
+ ]
396
+ },
397
+ {
398
+ label: {
399
+ en: 'Display condition'
400
+ },
401
+ controls: [
402
+ {
403
+ id: 'breakpoint',
404
+ label: {
405
+ en: 'Menu icon'
406
+ },
407
+ setting: {
408
+ id: 'breakpoint'
409
+ }
410
+ }
411
+ ]
412
+ }
413
+ ];
414
+
415
+ exports.SettingUIV2 = SettingUIV2;
@@ -183,7 +183,7 @@ const ProductGalleryGrid = ({ builderPropUID, wrapperStyle, children, enableLazy
183
183
  class="${galleryItemClasses(`gem-slider-item-${builderPropUID}-{{product.id}} gp-gallery-image-item ${className}`)}"
184
184
  style="${_function.getStyleOfObject(galleryGridItemStyles)}"
185
185
  >
186
- <div class="gp-h-full" style="${system.LiquidIf(`media == null or media.media_type == 'image'`, `display: block !important;`)}">
186
+ <div class="gp-h-full gp-w-full" style="${system.LiquidIf(`media == null or media.media_type == 'image'`, `display: block !important;`)}">
187
187
  ${system.LiquidIf(`media != null`, renderImageWithHoverAction(), renderNoImage())}
188
188
  </div>
189
189