@gem-sdk/components 2.0.0-dev.532 → 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.
@@ -114,6 +114,12 @@ const CarouselPreset = [
114
114
  desktop: 4,
115
115
  tablet: 2,
116
116
  mobile: 2
117
+ },
118
+ navigationStyle: {
119
+ desktop: 'outside'
120
+ },
121
+ dotStyle: {
122
+ desktop: 'outside'
117
123
  }
118
124
  },
119
125
  styles: {
@@ -228,13 +228,13 @@ const CarouselSettingsV2Setting = [
228
228
  enableTooltip: true,
229
229
  options: [
230
230
  {
231
- label: 'Display outside navigation',
231
+ label: 'Outside',
232
232
  value: 'outside',
233
233
  type: 'slide-control',
234
234
  svgName: 'gp-slide-control-outside'
235
235
  },
236
236
  {
237
- label: 'Display inside navigation',
237
+ label: 'Inside',
238
238
  value: 'inside',
239
239
  type: 'slide-control',
240
240
  svgName: 'gp-slide-control-inside'
@@ -251,7 +251,7 @@ const CarouselSettingsV2Setting = [
251
251
  type: 'icon',
252
252
  hideInput: true,
253
253
  hideLabel: true,
254
- 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">
255
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"/>
256
256
  </svg>
257
257
  `
@@ -260,7 +260,8 @@ const CarouselSettingsV2Setting = [
260
260
  id: 'arrowCustomColor',
261
261
  label: 'Icon color',
262
262
  type: 'color-picker-v2',
263
- default: '#000000'
263
+ default: '#121212',
264
+ compoDefaultValue: '#121212'
264
265
  },
265
266
  {
266
267
  id: 'arrowIconSize',
@@ -355,7 +356,8 @@ const CarouselSettingsV2Setting = [
355
356
  id: 'arrowBackgroundColor',
356
357
  label: 'Background Color',
357
358
  type: 'color-picker-v2',
358
- default: 'transparent'
359
+ default: 'transparent',
360
+ compoDefaultValue: '#E2E2E2'
359
361
  },
360
362
  {
361
363
  id: 'arrowBorder',
@@ -515,7 +517,7 @@ const CarouselSettingsV2Setting = [
515
517
  value: AnimationPlugin.CAROUSEL_ANIMATION.EASE_OUT.value
516
518
  },
517
519
  {
518
- label: 'Ease in out',
520
+ label: 'Ease in & out',
519
521
  value: AnimationPlugin.CAROUSEL_ANIMATION.EASE_IN_OUT.value
520
522
  }
521
523
  ]
@@ -221,14 +221,6 @@ const carouselEffectsSettings = {
221
221
  en: 'Slide effect'
222
222
  },
223
223
  controls: [
224
- {
225
- label: {
226
- en: 'Slide direction'
227
- },
228
- setting: {
229
- id: 'rtl'
230
- }
231
- },
232
224
  {
233
225
  label: {
234
226
  en: 'Autoplay'
@@ -239,7 +231,7 @@ const carouselEffectsSettings = {
239
231
  },
240
232
  {
241
233
  label: {
242
- en: 'Time out'
234
+ en: 'Delay'
243
235
  },
244
236
  setting: {
245
237
  id: 'autoplayTimeout'
@@ -257,12 +249,11 @@ const carouselEffectsSettings = {
257
249
  },
258
250
  {
259
251
  label: {
260
- en: 'Preview'
252
+ en: 'Slide direction'
261
253
  },
262
254
  setting: {
263
- id: 'runPreview'
264
- },
265
- conditionDisplay: 'autoplay === true'
255
+ id: 'rtl'
256
+ }
266
257
  },
267
258
  {
268
259
  label: {
@@ -298,6 +289,13 @@ const carouselEffectsSettings = {
298
289
  setting: {
299
290
  id: 'animationMode'
300
291
  }
292
+ },
293
+ {
294
+ setting: {
295
+ id: 'runPreview'
296
+ },
297
+ layout: 'vertical',
298
+ conditionDisplay: 'autoplay === true'
301
299
  }
302
300
  ]
303
301
  }
@@ -329,8 +327,12 @@ const SettingUIV2 = [
329
327
  setting: {
330
328
  id: 'sneakPeak'
331
329
  },
332
- fixedValue: 'Enable',
330
+ fixedValue: 'Styled',
333
331
  iconName: 'polaris-edit',
332
+ conditionEnable: 'itemNumber > 1',
333
+ options: {
334
+ disableMessage: `Sneak peek doesn't work <br> with 1-column layout`
335
+ },
334
336
  controls: [
335
337
  {
336
338
  layout: 'vertical',
@@ -508,10 +510,68 @@ const SettingUIV2 = [
508
510
  },
509
511
  controls: [
510
512
  {
511
- setting: {
512
- id: 'sizeSetting'
513
+ id: 'Width',
514
+ label: {
515
+ en: 'Width'
513
516
  },
514
- 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'
515
575
  },
516
576
  {
517
577
  label: {
@@ -519,7 +579,7 @@ const SettingUIV2 = [
519
579
  },
520
580
  conditionDisplay: `pageType != "POST_PURCHASE"`,
521
581
  controlConfig: {
522
- id: 'padding',
582
+ id: 'slider-padding',
523
583
  type: 'padding-v2',
524
584
  linkWithSetting: {
525
585
  name: 'spacing-setting',
@@ -112,6 +112,12 @@ const CarouselPreset = [
112
112
  desktop: 4,
113
113
  tablet: 2,
114
114
  mobile: 2
115
+ },
116
+ navigationStyle: {
117
+ desktop: 'outside'
118
+ },
119
+ dotStyle: {
120
+ desktop: 'outside'
115
121
  }
116
122
  },
117
123
  styles: {
@@ -226,13 +226,13 @@ const CarouselSettingsV2Setting = [
226
226
  enableTooltip: true,
227
227
  options: [
228
228
  {
229
- label: 'Display outside navigation',
229
+ label: 'Outside',
230
230
  value: 'outside',
231
231
  type: 'slide-control',
232
232
  svgName: 'gp-slide-control-outside'
233
233
  },
234
234
  {
235
- label: 'Display inside navigation',
235
+ label: 'Inside',
236
236
  value: 'inside',
237
237
  type: 'slide-control',
238
238
  svgName: 'gp-slide-control-inside'
@@ -249,7 +249,7 @@ const CarouselSettingsV2Setting = [
249
249
  type: 'icon',
250
250
  hideInput: true,
251
251
  hideLabel: true,
252
- 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">
253
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"/>
254
254
  </svg>
255
255
  `
@@ -258,7 +258,8 @@ const CarouselSettingsV2Setting = [
258
258
  id: 'arrowCustomColor',
259
259
  label: 'Icon color',
260
260
  type: 'color-picker-v2',
261
- default: '#000000'
261
+ default: '#121212',
262
+ compoDefaultValue: '#121212'
262
263
  },
263
264
  {
264
265
  id: 'arrowIconSize',
@@ -353,7 +354,8 @@ const CarouselSettingsV2Setting = [
353
354
  id: 'arrowBackgroundColor',
354
355
  label: 'Background Color',
355
356
  type: 'color-picker-v2',
356
- default: 'transparent'
357
+ default: 'transparent',
358
+ compoDefaultValue: '#E2E2E2'
357
359
  },
358
360
  {
359
361
  id: 'arrowBorder',
@@ -513,7 +515,7 @@ const CarouselSettingsV2Setting = [
513
515
  value: CAROUSEL_ANIMATION.EASE_OUT.value
514
516
  },
515
517
  {
516
- label: 'Ease in out',
518
+ label: 'Ease in & out',
517
519
  value: CAROUSEL_ANIMATION.EASE_IN_OUT.value
518
520
  }
519
521
  ]
@@ -219,14 +219,6 @@ const carouselEffectsSettings = {
219
219
  en: 'Slide effect'
220
220
  },
221
221
  controls: [
222
- {
223
- label: {
224
- en: 'Slide direction'
225
- },
226
- setting: {
227
- id: 'rtl'
228
- }
229
- },
230
222
  {
231
223
  label: {
232
224
  en: 'Autoplay'
@@ -237,7 +229,7 @@ const carouselEffectsSettings = {
237
229
  },
238
230
  {
239
231
  label: {
240
- en: 'Time out'
232
+ en: 'Delay'
241
233
  },
242
234
  setting: {
243
235
  id: 'autoplayTimeout'
@@ -255,12 +247,11 @@ const carouselEffectsSettings = {
255
247
  },
256
248
  {
257
249
  label: {
258
- en: 'Preview'
250
+ en: 'Slide direction'
259
251
  },
260
252
  setting: {
261
- id: 'runPreview'
262
- },
263
- conditionDisplay: 'autoplay === true'
253
+ id: 'rtl'
254
+ }
264
255
  },
265
256
  {
266
257
  label: {
@@ -296,6 +287,13 @@ const carouselEffectsSettings = {
296
287
  setting: {
297
288
  id: 'animationMode'
298
289
  }
290
+ },
291
+ {
292
+ setting: {
293
+ id: 'runPreview'
294
+ },
295
+ layout: 'vertical',
296
+ conditionDisplay: 'autoplay === true'
299
297
  }
300
298
  ]
301
299
  }
@@ -327,8 +325,12 @@ const SettingUIV2 = [
327
325
  setting: {
328
326
  id: 'sneakPeak'
329
327
  },
330
- fixedValue: 'Enable',
328
+ fixedValue: 'Styled',
331
329
  iconName: 'polaris-edit',
330
+ conditionEnable: 'itemNumber > 1',
331
+ options: {
332
+ disableMessage: `Sneak peek doesn't work <br> with 1-column layout`
333
+ },
332
334
  controls: [
333
335
  {
334
336
  layout: 'vertical',
@@ -506,10 +508,68 @@ const SettingUIV2 = [
506
508
  },
507
509
  controls: [
508
510
  {
509
- setting: {
510
- id: 'sizeSetting'
511
+ id: 'Width',
512
+ label: {
513
+ en: 'Width'
511
514
  },
512
- 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'
513
573
  },
514
574
  {
515
575
  label: {
@@ -517,7 +577,7 @@ const SettingUIV2 = [
517
577
  },
518
578
  conditionDisplay: `pageType != "POST_PURCHASE"`,
519
579
  controlConfig: {
520
- id: 'padding',
580
+ id: 'slider-padding',
521
581
  type: 'padding-v2',
522
582
  linkWithSetting: {
523
583
  name: 'spacing-setting',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.532",
3
+ "version": "2.0.0-dev.533",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",