@gem-sdk/components 2.0.0-dev.531 → 2.0.0-dev.533

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.
@@ -24,8 +24,11 @@ const CarouselPreset = [
24
24
  label: 'Carousel',
25
25
  settings: {
26
26
  childItem: [
27
- 'Slide 1',
28
- 'Slide 2'
27
+ 'Item 1',
28
+ 'Item 2',
29
+ 'Item 3',
30
+ 'Item 4',
31
+ 'Item 5'
29
32
  ],
30
33
  itemNumber: {
31
34
  desktop: 1,
@@ -50,6 +53,21 @@ const CarouselPreset = [
50
53
  }
51
54
  },
52
55
  childrens: [
56
+ {
57
+ tag: 'CarouselItem',
58
+ label: 'Carousel Item',
59
+ childrens: []
60
+ },
61
+ {
62
+ tag: 'CarouselItem',
63
+ label: 'Carousel Item',
64
+ childrens: []
65
+ },
66
+ {
67
+ tag: 'CarouselItem',
68
+ label: 'Carousel Item',
69
+ childrens: []
70
+ },
53
71
  {
54
72
  tag: 'CarouselItem',
55
73
  label: 'Carousel Item',
@@ -87,15 +105,21 @@ const CarouselPreset = [
87
105
  label: 'Carousel',
88
106
  settings: {
89
107
  childItem: [
90
- 'Slide 1',
91
- 'Slide 2',
92
- 'Slide 3',
93
- 'Slide 4'
108
+ 'Item 1',
109
+ 'Item 2',
110
+ 'Item 3',
111
+ 'Item 4'
94
112
  ],
95
113
  itemNumber: {
96
114
  desktop: 4,
97
115
  tablet: 2,
98
116
  mobile: 2
117
+ },
118
+ navigationStyle: {
119
+ desktop: 'outside'
120
+ },
121
+ dotStyle: {
122
+ desktop: 'outside'
99
123
  }
100
124
  },
101
125
  styles: {
@@ -198,8 +222,8 @@ const CarouselPreset = [
198
222
  label: 'Carousel',
199
223
  settings: {
200
224
  childItem: [
201
- 'Slide 1',
202
- 'Slide 2'
225
+ 'Item 1',
226
+ 'Item 2'
203
227
  ],
204
228
  itemNumber: {
205
229
  desktop: 2,
@@ -318,9 +342,9 @@ const CarouselPreset = [
318
342
  label: 'Carousel',
319
343
  settings: {
320
344
  childItem: [
321
- 'Slide 1',
322
- 'Slide 2',
323
- 'Slide 3'
345
+ 'Item 1',
346
+ 'Item 2',
347
+ 'Item 3'
324
348
  ],
325
349
  itemNumber: {
326
350
  desktop: 3,
@@ -59,6 +59,11 @@ const CarouselSettingsV2Setting = [
59
59
  type: 'input:slider',
60
60
  min: 1,
61
61
  max: 100,
62
+ showDefaultUnit: true,
63
+ isNumber: true,
64
+ units: [
65
+ '%'
66
+ ],
62
67
  devices: {
63
68
  desktop: {
64
69
  default: 50
@@ -71,6 +76,11 @@ const CarouselSettingsV2Setting = [
71
76
  type: 'input:slider',
72
77
  min: 1,
73
78
  max: 100,
79
+ showDefaultUnit: true,
80
+ isNumber: true,
81
+ units: [
82
+ '%'
83
+ ],
74
84
  devices: {
75
85
  desktop: {
76
86
  default: 50
@@ -82,12 +92,12 @@ const CarouselSettingsV2Setting = [
82
92
  label: 'Item management',
83
93
  type: 'child-item',
84
94
  default: [
85
- 'Slide 1',
86
- 'Slide 2',
87
- 'Slide 3',
88
- 'Slide 4',
89
- 'Slide 5',
90
- 'Slide 6'
95
+ 'Item 1',
96
+ 'Item 2',
97
+ 'Item 3',
98
+ 'Item 4',
99
+ 'Item 5',
100
+ 'Item 6'
91
101
  ]
92
102
  },
93
103
  {
@@ -218,13 +228,13 @@ const CarouselSettingsV2Setting = [
218
228
  enableTooltip: true,
219
229
  options: [
220
230
  {
221
- label: 'Display outside navigation',
231
+ label: 'Outside',
222
232
  value: 'outside',
223
233
  type: 'slide-control',
224
234
  svgName: 'gp-slide-control-outside'
225
235
  },
226
236
  {
227
- label: 'Display inside navigation',
237
+ label: 'Inside',
228
238
  value: 'inside',
229
239
  type: 'slide-control',
230
240
  svgName: 'gp-slide-control-inside'
@@ -241,7 +251,7 @@ const CarouselSettingsV2Setting = [
241
251
  type: 'icon',
242
252
  hideInput: true,
243
253
  hideLabel: true,
244
- default: `<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
254
+ default: `<svg data-name="arrow" width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
245
255
  <path fill-rule="evenodd" clip-rule="evenodd" d="M7.62204 5.13313C7.78476 4.95562 8.04858 4.95562 8.21129 5.13313L12.378 9.67859C12.5407 9.8561 12.5407 10.1439 12.378 10.3214L8.21129 14.8669C8.04858 15.0444 7.78476 15.0444 7.62204 14.8669C7.45932 14.6894 7.45932 14.4016 7.62204 14.224L11.4941 10L7.62204 5.77596C7.45932 5.59845 7.45932 5.31064 7.62204 5.13313Z"/>
246
256
  </svg>
247
257
  `
@@ -250,7 +260,8 @@ const CarouselSettingsV2Setting = [
250
260
  id: 'arrowCustomColor',
251
261
  label: 'Icon color',
252
262
  type: 'color-picker-v2',
253
- default: '#000000'
263
+ default: '#121212',
264
+ compoDefaultValue: '#121212'
254
265
  },
255
266
  {
256
267
  id: 'arrowIconSize',
@@ -345,7 +356,8 @@ const CarouselSettingsV2Setting = [
345
356
  id: 'arrowBackgroundColor',
346
357
  label: 'Background Color',
347
358
  type: 'color-picker-v2',
348
- default: 'transparent'
359
+ default: 'transparent',
360
+ compoDefaultValue: '#E2E2E2'
349
361
  },
350
362
  {
351
363
  id: 'arrowBorder',
@@ -505,7 +517,7 @@ const CarouselSettingsV2Setting = [
505
517
  value: AnimationPlugin.CAROUSEL_ANIMATION.EASE_OUT.value
506
518
  },
507
519
  {
508
- label: 'Ease in out',
520
+ label: 'Ease in & out',
509
521
  value: AnimationPlugin.CAROUSEL_ANIMATION.EASE_IN_OUT.value
510
522
  }
511
523
  ]
@@ -537,7 +549,7 @@ const CarouselSettingsV2Setting = [
537
549
  desktop: {
538
550
  default: {
539
551
  type: 'color',
540
- color: '#0D0D0D',
552
+ color: 'bg-2',
541
553
  image: {
542
554
  src: '',
543
555
  width: 0,
@@ -572,7 +584,7 @@ const CarouselSettingsV2Style = [
572
584
  },
573
585
  compoDefaultValue: {
574
586
  desktop: {
575
- default: '#0D0D0D'
587
+ default: '#DDDDDD'
576
588
  }
577
589
  },
578
590
  enableGradient: true
@@ -57,7 +57,7 @@ const carouselNavigationSettings = {
57
57
  type: 'combo',
58
58
  conditionDisplay: `navigationEnable === true`,
59
59
  label: {
60
- en: 'Size'
60
+ en: 'Button size'
61
61
  },
62
62
  fixedValue: 'Edit',
63
63
  iconName: 'polaris-measurement-size',
@@ -177,7 +177,7 @@ const carouselDotsSettings = {
177
177
  {
178
178
  conditionDisplay: `dot === true`,
179
179
  label: {
180
- en: 'Active icon'
180
+ en: 'Active color'
181
181
  },
182
182
  setting: {
183
183
  id: 'dotActiveColor'
@@ -186,45 +186,41 @@ const carouselDotsSettings = {
186
186
  {
187
187
  conditionDisplay: `dot === true`,
188
188
  label: {
189
- en: 'Inactive icon'
189
+ en: 'Inactive color'
190
190
  },
191
191
  setting: {
192
192
  id: 'dotColor'
193
193
  }
194
- },
195
- {
196
- conditionDisplay: `dot === true`,
197
- label: {
198
- en: 'Dots size'
199
- },
200
- setting: {
201
- id: 'dotSize'
202
- }
203
- },
204
- {
205
- conditionDisplay: `dot === true`,
206
- label: {
207
- en: 'Gap to edge'
194
+ }
195
+ ],
196
+ moreSettings: {
197
+ controls: [
198
+ {
199
+ conditionDisplay: `dot === true`,
200
+ label: {
201
+ en: 'Dots size'
202
+ },
203
+ setting: {
204
+ id: 'dotSize'
205
+ }
208
206
  },
209
- setting: {
210
- id: 'dotGapToCarousel'
207
+ {
208
+ conditionDisplay: `dot === true`,
209
+ label: {
210
+ en: 'Gap to edge'
211
+ },
212
+ setting: {
213
+ id: 'dotGapToCarousel'
214
+ }
211
215
  }
212
- }
213
- ]
216
+ ]
217
+ }
214
218
  };
215
219
  const carouselEffectsSettings = {
216
220
  label: {
217
221
  en: 'Slide effect'
218
222
  },
219
223
  controls: [
220
- {
221
- label: {
222
- en: 'Slide direction'
223
- },
224
- setting: {
225
- id: 'rtl'
226
- }
227
- },
228
224
  {
229
225
  label: {
230
226
  en: 'Autoplay'
@@ -235,7 +231,7 @@ const carouselEffectsSettings = {
235
231
  },
236
232
  {
237
233
  label: {
238
- en: 'Time out'
234
+ en: 'Delay'
239
235
  },
240
236
  setting: {
241
237
  id: 'autoplayTimeout'
@@ -253,12 +249,11 @@ const carouselEffectsSettings = {
253
249
  },
254
250
  {
255
251
  label: {
256
- en: 'Preview'
252
+ en: 'Slide direction'
257
253
  },
258
254
  setting: {
259
- id: 'runPreview'
260
- },
261
- conditionDisplay: 'autoplay === true'
255
+ id: 'rtl'
256
+ }
262
257
  },
263
258
  {
264
259
  label: {
@@ -294,6 +289,13 @@ const carouselEffectsSettings = {
294
289
  setting: {
295
290
  id: 'animationMode'
296
291
  }
292
+ },
293
+ {
294
+ setting: {
295
+ id: 'runPreview'
296
+ },
297
+ layout: 'vertical',
298
+ conditionDisplay: 'autoplay === true'
297
299
  }
298
300
  ]
299
301
  }
@@ -301,7 +303,7 @@ const carouselEffectsSettings = {
301
303
  const SettingUIV2 = [
302
304
  {
303
305
  label: {
304
- en: 'Layout'
306
+ en: 'Items per slide'
305
307
  },
306
308
  controls: [
307
309
  {
@@ -325,11 +327,18 @@ const SettingUIV2 = [
325
327
  setting: {
326
328
  id: 'sneakPeak'
327
329
  },
328
- fixedValue: 'Edit',
330
+ fixedValue: 'Styled',
329
331
  iconName: 'polaris-edit',
332
+ conditionEnable: 'itemNumber > 1',
333
+ options: {
334
+ disableMessage: `Sneak peek doesn't work <br> with 1-column layout`
335
+ },
330
336
  controls: [
331
337
  {
332
338
  layout: 'vertical',
339
+ label: {
340
+ en: 'style'
341
+ },
333
342
  setting: {
334
343
  id: 'sneakPeakType'
335
344
  }
@@ -363,7 +372,7 @@ const SettingUIV2 = [
363
372
  controls: [
364
373
  {
365
374
  label: {
366
- en: 'Items'
375
+ en: 'Order'
367
376
  },
368
377
  setting: {
369
378
  id: 'childItem'
@@ -501,10 +510,68 @@ const SettingUIV2 = [
501
510
  },
502
511
  controls: [
503
512
  {
504
- setting: {
505
- id: 'sizeSetting'
513
+ id: 'Width',
514
+ label: {
515
+ en: 'Width'
506
516
  },
507
- layout: 'vertical'
517
+ controlConfig: {
518
+ id: 'width',
519
+ type: 'dropdown:input',
520
+ label: 'Width',
521
+ inputType: 'number',
522
+ units: [
523
+ 'px',
524
+ '%'
525
+ ],
526
+ hideUnit: false,
527
+ fallbackValue: 'Auto',
528
+ linkWithSetting: {
529
+ name: 'sizeSetting',
530
+ field: 'width'
531
+ },
532
+ displayOptions: [
533
+ {
534
+ label: 'Default',
535
+ value: 'default',
536
+ showValue: true
537
+ },
538
+ {
539
+ label: 'Full',
540
+ value: '100%',
541
+ showValue: true
542
+ }
543
+ ]
544
+ },
545
+ layout: 'horizontal'
546
+ },
547
+ {
548
+ id: 'Height',
549
+ label: {
550
+ en: 'Height'
551
+ },
552
+ controlConfig: {
553
+ id: 'height',
554
+ type: 'dropdown:input',
555
+ label: 'height',
556
+ inputType: 'number',
557
+ units: [
558
+ 'px'
559
+ ],
560
+ hideUnit: false,
561
+ fallbackValue: 'Auto',
562
+ linkWithSetting: {
563
+ name: 'sizeSetting',
564
+ field: 'height'
565
+ },
566
+ displayOptions: [
567
+ {
568
+ label: 'Fit content',
569
+ value: 'Auto',
570
+ showValue: true
571
+ }
572
+ ]
573
+ },
574
+ layout: 'horizontal'
508
575
  },
509
576
  {
510
577
  label: {
@@ -512,7 +579,7 @@ const SettingUIV2 = [
512
579
  },
513
580
  conditionDisplay: `pageType != "POST_PURCHASE"`,
514
581
  controlConfig: {
515
- id: 'padding',
582
+ id: 'slider-padding',
516
583
  type: 'padding-v2',
517
584
  linkWithSetting: {
518
585
  name: 'spacing-setting',
@@ -22,8 +22,11 @@ const CarouselPreset = [
22
22
  label: 'Carousel',
23
23
  settings: {
24
24
  childItem: [
25
- 'Slide 1',
26
- 'Slide 2'
25
+ 'Item 1',
26
+ 'Item 2',
27
+ 'Item 3',
28
+ 'Item 4',
29
+ 'Item 5'
27
30
  ],
28
31
  itemNumber: {
29
32
  desktop: 1,
@@ -48,6 +51,21 @@ const CarouselPreset = [
48
51
  }
49
52
  },
50
53
  childrens: [
54
+ {
55
+ tag: 'CarouselItem',
56
+ label: 'Carousel Item',
57
+ childrens: []
58
+ },
59
+ {
60
+ tag: 'CarouselItem',
61
+ label: 'Carousel Item',
62
+ childrens: []
63
+ },
64
+ {
65
+ tag: 'CarouselItem',
66
+ label: 'Carousel Item',
67
+ childrens: []
68
+ },
51
69
  {
52
70
  tag: 'CarouselItem',
53
71
  label: 'Carousel Item',
@@ -85,15 +103,21 @@ const CarouselPreset = [
85
103
  label: 'Carousel',
86
104
  settings: {
87
105
  childItem: [
88
- 'Slide 1',
89
- 'Slide 2',
90
- 'Slide 3',
91
- 'Slide 4'
106
+ 'Item 1',
107
+ 'Item 2',
108
+ 'Item 3',
109
+ 'Item 4'
92
110
  ],
93
111
  itemNumber: {
94
112
  desktop: 4,
95
113
  tablet: 2,
96
114
  mobile: 2
115
+ },
116
+ navigationStyle: {
117
+ desktop: 'outside'
118
+ },
119
+ dotStyle: {
120
+ desktop: 'outside'
97
121
  }
98
122
  },
99
123
  styles: {
@@ -196,8 +220,8 @@ const CarouselPreset = [
196
220
  label: 'Carousel',
197
221
  settings: {
198
222
  childItem: [
199
- 'Slide 1',
200
- 'Slide 2'
223
+ 'Item 1',
224
+ 'Item 2'
201
225
  ],
202
226
  itemNumber: {
203
227
  desktop: 2,
@@ -316,9 +340,9 @@ const CarouselPreset = [
316
340
  label: 'Carousel',
317
341
  settings: {
318
342
  childItem: [
319
- 'Slide 1',
320
- 'Slide 2',
321
- 'Slide 3'
343
+ 'Item 1',
344
+ 'Item 2',
345
+ 'Item 3'
322
346
  ],
323
347
  itemNumber: {
324
348
  desktop: 3,
@@ -57,6 +57,11 @@ const CarouselSettingsV2Setting = [
57
57
  type: 'input:slider',
58
58
  min: 1,
59
59
  max: 100,
60
+ showDefaultUnit: true,
61
+ isNumber: true,
62
+ units: [
63
+ '%'
64
+ ],
60
65
  devices: {
61
66
  desktop: {
62
67
  default: 50
@@ -69,6 +74,11 @@ const CarouselSettingsV2Setting = [
69
74
  type: 'input:slider',
70
75
  min: 1,
71
76
  max: 100,
77
+ showDefaultUnit: true,
78
+ isNumber: true,
79
+ units: [
80
+ '%'
81
+ ],
72
82
  devices: {
73
83
  desktop: {
74
84
  default: 50
@@ -80,12 +90,12 @@ const CarouselSettingsV2Setting = [
80
90
  label: 'Item management',
81
91
  type: 'child-item',
82
92
  default: [
83
- 'Slide 1',
84
- 'Slide 2',
85
- 'Slide 3',
86
- 'Slide 4',
87
- 'Slide 5',
88
- 'Slide 6'
93
+ 'Item 1',
94
+ 'Item 2',
95
+ 'Item 3',
96
+ 'Item 4',
97
+ 'Item 5',
98
+ 'Item 6'
89
99
  ]
90
100
  },
91
101
  {
@@ -216,13 +226,13 @@ const CarouselSettingsV2Setting = [
216
226
  enableTooltip: true,
217
227
  options: [
218
228
  {
219
- label: 'Display outside navigation',
229
+ label: 'Outside',
220
230
  value: 'outside',
221
231
  type: 'slide-control',
222
232
  svgName: 'gp-slide-control-outside'
223
233
  },
224
234
  {
225
- label: 'Display inside navigation',
235
+ label: 'Inside',
226
236
  value: 'inside',
227
237
  type: 'slide-control',
228
238
  svgName: 'gp-slide-control-inside'
@@ -239,7 +249,7 @@ const CarouselSettingsV2Setting = [
239
249
  type: 'icon',
240
250
  hideInput: true,
241
251
  hideLabel: true,
242
- default: `<svg width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
252
+ default: `<svg data-name="arrow" width="20" height="20" viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
243
253
  <path fill-rule="evenodd" clip-rule="evenodd" d="M7.62204 5.13313C7.78476 4.95562 8.04858 4.95562 8.21129 5.13313L12.378 9.67859C12.5407 9.8561 12.5407 10.1439 12.378 10.3214L8.21129 14.8669C8.04858 15.0444 7.78476 15.0444 7.62204 14.8669C7.45932 14.6894 7.45932 14.4016 7.62204 14.224L11.4941 10L7.62204 5.77596C7.45932 5.59845 7.45932 5.31064 7.62204 5.13313Z"/>
244
254
  </svg>
245
255
  `
@@ -248,7 +258,8 @@ const CarouselSettingsV2Setting = [
248
258
  id: 'arrowCustomColor',
249
259
  label: 'Icon color',
250
260
  type: 'color-picker-v2',
251
- default: '#000000'
261
+ default: '#121212',
262
+ compoDefaultValue: '#121212'
252
263
  },
253
264
  {
254
265
  id: 'arrowIconSize',
@@ -343,7 +354,8 @@ const CarouselSettingsV2Setting = [
343
354
  id: 'arrowBackgroundColor',
344
355
  label: 'Background Color',
345
356
  type: 'color-picker-v2',
346
- default: 'transparent'
357
+ default: 'transparent',
358
+ compoDefaultValue: '#E2E2E2'
347
359
  },
348
360
  {
349
361
  id: 'arrowBorder',
@@ -503,7 +515,7 @@ const CarouselSettingsV2Setting = [
503
515
  value: CAROUSEL_ANIMATION.EASE_OUT.value
504
516
  },
505
517
  {
506
- label: 'Ease in out',
518
+ label: 'Ease in & out',
507
519
  value: CAROUSEL_ANIMATION.EASE_IN_OUT.value
508
520
  }
509
521
  ]
@@ -535,7 +547,7 @@ const CarouselSettingsV2Setting = [
535
547
  desktop: {
536
548
  default: {
537
549
  type: 'color',
538
- color: '#0D0D0D',
550
+ color: 'bg-2',
539
551
  image: {
540
552
  src: '',
541
553
  width: 0,
@@ -570,7 +582,7 @@ const CarouselSettingsV2Style = [
570
582
  },
571
583
  compoDefaultValue: {
572
584
  desktop: {
573
- default: '#0D0D0D'
585
+ default: '#DDDDDD'
574
586
  }
575
587
  },
576
588
  enableGradient: true
@@ -55,7 +55,7 @@ const carouselNavigationSettings = {
55
55
  type: 'combo',
56
56
  conditionDisplay: `navigationEnable === true`,
57
57
  label: {
58
- en: 'Size'
58
+ en: 'Button size'
59
59
  },
60
60
  fixedValue: 'Edit',
61
61
  iconName: 'polaris-measurement-size',
@@ -175,7 +175,7 @@ const carouselDotsSettings = {
175
175
  {
176
176
  conditionDisplay: `dot === true`,
177
177
  label: {
178
- en: 'Active icon'
178
+ en: 'Active color'
179
179
  },
180
180
  setting: {
181
181
  id: 'dotActiveColor'
@@ -184,45 +184,41 @@ const carouselDotsSettings = {
184
184
  {
185
185
  conditionDisplay: `dot === true`,
186
186
  label: {
187
- en: 'Inactive icon'
187
+ en: 'Inactive color'
188
188
  },
189
189
  setting: {
190
190
  id: 'dotColor'
191
191
  }
192
- },
193
- {
194
- conditionDisplay: `dot === true`,
195
- label: {
196
- en: 'Dots size'
197
- },
198
- setting: {
199
- id: 'dotSize'
200
- }
201
- },
202
- {
203
- conditionDisplay: `dot === true`,
204
- label: {
205
- en: 'Gap to edge'
192
+ }
193
+ ],
194
+ moreSettings: {
195
+ controls: [
196
+ {
197
+ conditionDisplay: `dot === true`,
198
+ label: {
199
+ en: 'Dots size'
200
+ },
201
+ setting: {
202
+ id: 'dotSize'
203
+ }
206
204
  },
207
- setting: {
208
- id: 'dotGapToCarousel'
205
+ {
206
+ conditionDisplay: `dot === true`,
207
+ label: {
208
+ en: 'Gap to edge'
209
+ },
210
+ setting: {
211
+ id: 'dotGapToCarousel'
212
+ }
209
213
  }
210
- }
211
- ]
214
+ ]
215
+ }
212
216
  };
213
217
  const carouselEffectsSettings = {
214
218
  label: {
215
219
  en: 'Slide effect'
216
220
  },
217
221
  controls: [
218
- {
219
- label: {
220
- en: 'Slide direction'
221
- },
222
- setting: {
223
- id: 'rtl'
224
- }
225
- },
226
222
  {
227
223
  label: {
228
224
  en: 'Autoplay'
@@ -233,7 +229,7 @@ const carouselEffectsSettings = {
233
229
  },
234
230
  {
235
231
  label: {
236
- en: 'Time out'
232
+ en: 'Delay'
237
233
  },
238
234
  setting: {
239
235
  id: 'autoplayTimeout'
@@ -251,12 +247,11 @@ const carouselEffectsSettings = {
251
247
  },
252
248
  {
253
249
  label: {
254
- en: 'Preview'
250
+ en: 'Slide direction'
255
251
  },
256
252
  setting: {
257
- id: 'runPreview'
258
- },
259
- conditionDisplay: 'autoplay === true'
253
+ id: 'rtl'
254
+ }
260
255
  },
261
256
  {
262
257
  label: {
@@ -292,6 +287,13 @@ const carouselEffectsSettings = {
292
287
  setting: {
293
288
  id: 'animationMode'
294
289
  }
290
+ },
291
+ {
292
+ setting: {
293
+ id: 'runPreview'
294
+ },
295
+ layout: 'vertical',
296
+ conditionDisplay: 'autoplay === true'
295
297
  }
296
298
  ]
297
299
  }
@@ -299,7 +301,7 @@ const carouselEffectsSettings = {
299
301
  const SettingUIV2 = [
300
302
  {
301
303
  label: {
302
- en: 'Layout'
304
+ en: 'Items per slide'
303
305
  },
304
306
  controls: [
305
307
  {
@@ -323,11 +325,18 @@ const SettingUIV2 = [
323
325
  setting: {
324
326
  id: 'sneakPeak'
325
327
  },
326
- fixedValue: 'Edit',
328
+ fixedValue: 'Styled',
327
329
  iconName: 'polaris-edit',
330
+ conditionEnable: 'itemNumber > 1',
331
+ options: {
332
+ disableMessage: `Sneak peek doesn't work <br> with 1-column layout`
333
+ },
328
334
  controls: [
329
335
  {
330
336
  layout: 'vertical',
337
+ label: {
338
+ en: 'style'
339
+ },
331
340
  setting: {
332
341
  id: 'sneakPeakType'
333
342
  }
@@ -361,7 +370,7 @@ const SettingUIV2 = [
361
370
  controls: [
362
371
  {
363
372
  label: {
364
- en: 'Items'
373
+ en: 'Order'
365
374
  },
366
375
  setting: {
367
376
  id: 'childItem'
@@ -499,10 +508,68 @@ const SettingUIV2 = [
499
508
  },
500
509
  controls: [
501
510
  {
502
- setting: {
503
- id: 'sizeSetting'
511
+ id: 'Width',
512
+ label: {
513
+ en: 'Width'
504
514
  },
505
- layout: 'vertical'
515
+ controlConfig: {
516
+ id: 'width',
517
+ type: 'dropdown:input',
518
+ label: 'Width',
519
+ inputType: 'number',
520
+ units: [
521
+ 'px',
522
+ '%'
523
+ ],
524
+ hideUnit: false,
525
+ fallbackValue: 'Auto',
526
+ linkWithSetting: {
527
+ name: 'sizeSetting',
528
+ field: 'width'
529
+ },
530
+ displayOptions: [
531
+ {
532
+ label: 'Default',
533
+ value: 'default',
534
+ showValue: true
535
+ },
536
+ {
537
+ label: 'Full',
538
+ value: '100%',
539
+ showValue: true
540
+ }
541
+ ]
542
+ },
543
+ layout: 'horizontal'
544
+ },
545
+ {
546
+ id: 'Height',
547
+ label: {
548
+ en: 'Height'
549
+ },
550
+ controlConfig: {
551
+ id: 'height',
552
+ type: 'dropdown:input',
553
+ label: 'height',
554
+ inputType: 'number',
555
+ units: [
556
+ 'px'
557
+ ],
558
+ hideUnit: false,
559
+ fallbackValue: 'Auto',
560
+ linkWithSetting: {
561
+ name: 'sizeSetting',
562
+ field: 'height'
563
+ },
564
+ displayOptions: [
565
+ {
566
+ label: 'Fit content',
567
+ value: 'Auto',
568
+ showValue: true
569
+ }
570
+ ]
571
+ },
572
+ layout: 'horizontal'
506
573
  },
507
574
  {
508
575
  label: {
@@ -510,7 +577,7 @@ const SettingUIV2 = [
510
577
  },
511
578
  conditionDisplay: `pageType != "POST_PURCHASE"`,
512
579
  controlConfig: {
513
- id: 'padding',
580
+ id: 'slider-padding',
514
581
  type: 'padding-v2',
515
582
  linkWithSetting: {
516
583
  name: 'spacing-setting',
@@ -889,7 +889,7 @@ type CarouselStyles$1 = {
889
889
  sizeSetting?: ObjectDevices$1<SizeSettingGlobal>;
890
890
  playSpeed?: number;
891
891
  itemPadding?: ObjectDevices$1<SizeSettingGlobal>;
892
- backgroundColor?: ObjectDevices$1<ColorValueType$1>;
892
+ backgroundColor?: ObjectDevices$1<string>;
893
893
  backgroundImage?: ObjectDevices$1<BackgroundImageValue>;
894
894
  };
895
895
  type CarouselProps$1 = BasePropsWrap<CarouselSettings$1, CarouselStyles$1> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.531",
3
+ "version": "2.0.0-dev.533",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",