@gem-sdk/components 2.0.0-dev.442 → 2.0.0-dev.445

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 (43) hide show
  1. package/dist/cjs/form/components/contact/common/composeStyles.js +0 -2
  2. package/dist/cjs/form/components/form-email/FormEmail.liquid.js +1 -1
  3. package/dist/cjs/form/setting/contact/ContactInitConfig.js +271 -150
  4. package/dist/cjs/form/setting/contact/configs/settings.js +20 -13
  5. package/dist/cjs/form/setting/contact/configs/uiV2.js +3 -12
  6. package/dist/cjs/form/setting/form-textarea/configs/uiV2.js +1 -1
  7. package/dist/cjs/form/setting/text-field/configs/settings.js +2 -2
  8. package/dist/cjs/icon/setting/configs/uiV2.js +31 -28
  9. package/dist/cjs/product/components/ProductBadge/common/getClasses.js +1 -1
  10. package/dist/cjs/product/components/ProductBadge/common/getStyles.js +2 -2
  11. package/dist/cjs/product/components/ProductBadge/constants.js +3 -0
  12. package/dist/cjs/product/components/ProductBadge/index.liquid.js +3 -4
  13. package/dist/cjs/product/components/ProductBadge/utils/shape.js +6 -6
  14. package/dist/cjs/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +4 -2
  15. package/dist/cjs/product/components/ProductDiscountTag/common/getStyle.js +6 -1
  16. package/dist/cjs/product/components/ProductQuantity/common/common.js +12 -13
  17. package/dist/cjs/product/components/ProductQuantity/index.js +2 -2
  18. package/dist/cjs/product/components/ProductQuantity/index.liquid.js +1 -1
  19. package/dist/cjs/product/setting/product-price/configs/uiV2.js +2 -0
  20. package/dist/cjs/sticky/setting/preset-config.js +15 -0
  21. package/dist/cjs/text/components/Text.liquid.js +1 -0
  22. package/dist/esm/form/components/contact/common/composeStyles.js +1 -3
  23. package/dist/esm/form/components/form-email/FormEmail.liquid.js +1 -1
  24. package/dist/esm/form/setting/contact/ContactInitConfig.js +271 -150
  25. package/dist/esm/form/setting/contact/configs/settings.js +20 -13
  26. package/dist/esm/form/setting/contact/configs/uiV2.js +3 -12
  27. package/dist/esm/form/setting/form-textarea/configs/uiV2.js +1 -1
  28. package/dist/esm/form/setting/text-field/configs/settings.js +2 -2
  29. package/dist/esm/icon/setting/configs/uiV2.js +31 -28
  30. package/dist/esm/product/components/ProductBadge/common/getClasses.js +1 -1
  31. package/dist/esm/product/components/ProductBadge/common/getStyles.js +2 -2
  32. package/dist/esm/product/components/ProductBadge/constants.js +2 -1
  33. package/dist/esm/product/components/ProductBadge/index.liquid.js +3 -4
  34. package/dist/esm/product/components/ProductBadge/utils/shape.js +6 -6
  35. package/dist/esm/product/components/ProductBundle/components/ProductBundleDiscountChildrenItem.js +4 -2
  36. package/dist/esm/product/components/ProductDiscountTag/common/getStyle.js +6 -1
  37. package/dist/esm/product/components/ProductQuantity/common/common.js +12 -13
  38. package/dist/esm/product/components/ProductQuantity/index.js +3 -3
  39. package/dist/esm/product/components/ProductQuantity/index.liquid.js +2 -2
  40. package/dist/esm/product/setting/product-price/configs/uiV2.js +2 -0
  41. package/dist/esm/sticky/setting/preset-config.js +15 -0
  42. package/dist/esm/text/components/Text.liquid.js +1 -0
  43. package/package.json +1 -1
@@ -5,10 +5,10 @@ const contactInitConfig = [
5
5
  'spacing-setting': {
6
6
  desktop: {
7
7
  padding: {
8
- top: 'var(--g-s-xl)',
9
- bottom: 'var(--g-s-xl)',
10
- left: 'var(--g-s-l)',
11
- right: 'var(--g-s-l)'
8
+ top: '24px',
9
+ bottom: '24px',
10
+ left: '',
11
+ right: ''
12
12
  }
13
13
  },
14
14
  tablet: {
@@ -58,6 +58,25 @@ const contactInitConfig = [
58
58
  desktop: true
59
59
  }
60
60
  },
61
+ advanced: {
62
+ 'spacing-setting': {
63
+ desktop: {
64
+ margin: {
65
+ bottom: '16px'
66
+ }
67
+ },
68
+ tablet: {
69
+ margin: {
70
+ bottom: '16px'
71
+ }
72
+ },
73
+ mobile: {
74
+ margin: {
75
+ bottom: '0px'
76
+ }
77
+ }
78
+ }
79
+ },
61
80
  childrens: [
62
81
  {
63
82
  tag: 'Col',
@@ -132,6 +151,11 @@ const contactInitConfig = [
132
151
  advanced: {
133
152
  'spacing-setting': {
134
153
  desktop: {
154
+ margin: {
155
+ bottom: '0'
156
+ }
157
+ },
158
+ mobile: {
135
159
  margin: {
136
160
  bottom: 'var(--g-s-l)'
137
161
  }
@@ -236,6 +260,11 @@ const contactInitConfig = [
236
260
  advanced: {
237
261
  'spacing-setting': {
238
262
  desktop: {
263
+ margin: {
264
+ bottom: '0'
265
+ }
266
+ },
267
+ mobile: {
239
268
  margin: {
240
269
  bottom: 'var(--g-s-l)'
241
270
  }
@@ -271,202 +300,294 @@ const contactInitConfig = [
271
300
  ]
272
301
  },
273
302
  {
274
- tag: 'Text',
275
- label: 'Text Block',
303
+ tag: 'Row',
276
304
  settings: {
277
- text: 'Phone Number'
305
+ layout: {
306
+ desktop: {
307
+ cols: [
308
+ 12
309
+ ],
310
+ display: 'fill'
311
+ },
312
+ mobile: {
313
+ cols: [
314
+ 12
315
+ ]
316
+ }
317
+ }
278
318
  },
279
319
  styles: {
280
- typo: {
281
- type: 'paragraph-1',
282
- attrs: {
283
- color: 'text-1'
284
- }
285
- },
286
- textAlign: {
287
- desktop: 'left'
320
+ verticalGutter: {
321
+ desktop: '16px',
322
+ mobile: '0px'
288
323
  },
289
- align: {
290
- desktop: 'left'
324
+ fullWidth: {
325
+ desktop: true
291
326
  }
292
327
  },
293
328
  advanced: {
294
329
  'spacing-setting': {
295
- edited: [
296
- 'desktop'
297
- ],
298
330
  desktop: {
299
331
  margin: {
300
- bottom: '0px'
332
+ bottom: '16px'
301
333
  }
302
334
  },
303
335
  tablet: {
304
336
  margin: {
305
- bottom: '0px'
337
+ bottom: '16px'
306
338
  }
307
339
  },
308
340
  mobile: {
309
341
  margin: {
310
- bottom: '0px'
342
+ bottom: '16px'
311
343
  }
312
344
  }
313
- },
314
- op: {
315
- desktop: '100%'
316
345
  }
317
- }
318
- },
319
- {
320
- tag: 'TextField',
321
- settings: {
322
- name: 'contact[phone]',
323
- placeholder: 'Phone Number'
324
346
  },
325
- styles: {
326
- globalSize: {
327
- desktop: {
328
- width: '100%',
329
- height: 'Auto',
330
- padding: {
331
- type: 'medium',
332
- top: '12px',
333
- bottom: '12px',
334
- left: '12px',
335
- right: '12px'
336
- }
337
- }
338
- }
339
- },
340
- advanced: {
341
- 'spacing-setting': {
342
- desktop: {
343
- margin: {
344
- bottom: 'var(--g-s-l)'
345
- }
346
- }
347
- },
348
- border: {
349
- desktop: {
350
- normal: {
351
- borderType: 'style-2',
352
- borderLabel: 'Style 2',
353
- border: 'solid',
354
- color: 'line-2',
355
- isCustom: false,
356
- width: '1px 1px 1px 1px'
357
- }
358
- }
359
- },
360
- rounded: {
361
- desktop: {
362
- normal: {
363
- btrr: '0px',
364
- bblr: '0px',
365
- bbrr: '0px',
366
- btlr: '0px',
367
- radiusType: 'none'
347
+ childrens: [
348
+ {
349
+ tag: 'Col',
350
+ childrens: [
351
+ {
352
+ tag: 'Text',
353
+ label: 'Text Block',
354
+ settings: {
355
+ text: 'Phone'
356
+ },
357
+ styles: {
358
+ typo: {
359
+ type: 'paragraph-1',
360
+ attrs: {
361
+ color: 'text-1'
362
+ }
363
+ },
364
+ textAlign: {
365
+ desktop: 'left'
366
+ },
367
+ align: {
368
+ desktop: 'left'
369
+ }
370
+ },
371
+ advanced: {
372
+ 'spacing-setting': {
373
+ edited: [
374
+ 'desktop'
375
+ ],
376
+ desktop: {
377
+ margin: {
378
+ bottom: '0px'
379
+ }
380
+ },
381
+ tablet: {
382
+ margin: {
383
+ bottom: '0px'
384
+ }
385
+ },
386
+ mobile: {
387
+ margin: {
388
+ bottom: '0px'
389
+ }
390
+ }
391
+ },
392
+ op: {
393
+ desktop: '100%'
394
+ }
395
+ }
396
+ },
397
+ {
398
+ tag: 'TextField',
399
+ settings: {
400
+ name: 'contact[phone]',
401
+ placeholder: 'Phone'
402
+ },
403
+ styles: {
404
+ globalSize: {
405
+ desktop: {
406
+ width: '100%',
407
+ height: 'Auto',
408
+ padding: {
409
+ type: 'medium',
410
+ top: '12px',
411
+ bottom: '12px',
412
+ left: '12px',
413
+ right: '12px'
414
+ }
415
+ }
416
+ }
417
+ },
418
+ advanced: {
419
+ border: {
420
+ desktop: {
421
+ normal: {
422
+ borderType: 'style-2',
423
+ borderLabel: 'Style 2',
424
+ border: 'solid',
425
+ color: 'line-2',
426
+ isCustom: false,
427
+ width: '1px 1px 1px 1px'
428
+ }
429
+ }
430
+ },
431
+ rounded: {
432
+ desktop: {
433
+ normal: {
434
+ btrr: '0px',
435
+ bblr: '0px',
436
+ bbrr: '0px',
437
+ btlr: '0px',
438
+ radiusType: 'none'
439
+ }
440
+ }
441
+ }
442
+ }
368
443
  }
369
- }
444
+ ]
370
445
  }
371
- }
446
+ ]
372
447
  },
373
448
  {
374
- tag: 'Text',
375
- label: 'Text Block',
449
+ tag: 'Row',
376
450
  settings: {
377
- text: 'Message'
451
+ layout: {
452
+ desktop: {
453
+ cols: [
454
+ 12
455
+ ],
456
+ display: 'fill'
457
+ },
458
+ mobile: {
459
+ cols: [
460
+ 12
461
+ ]
462
+ }
463
+ }
378
464
  },
379
465
  styles: {
380
- typo: {
381
- type: 'paragraph-1',
382
- attrs: {
383
- color: 'text-1'
384
- }
385
- },
386
- textAlign: {
387
- desktop: 'left'
466
+ verticalGutter: {
467
+ desktop: '16px',
468
+ mobile: '0px'
388
469
  },
389
- align: {
390
- desktop: 'left'
470
+ fullWidth: {
471
+ desktop: true
391
472
  }
392
473
  },
393
474
  advanced: {
394
475
  'spacing-setting': {
395
- edited: [
396
- 'desktop'
397
- ],
398
476
  desktop: {
399
477
  margin: {
400
- bottom: '0px'
478
+ bottom: '16px'
401
479
  }
402
480
  },
403
481
  tablet: {
404
482
  margin: {
405
- bottom: '0px'
483
+ bottom: '16px'
406
484
  }
407
485
  },
408
486
  mobile: {
409
487
  margin: {
410
- bottom: '0px'
488
+ bottom: '16px'
411
489
  }
412
490
  }
413
- },
414
- op: {
415
- desktop: '100%'
416
- }
417
- }
418
- },
419
- {
420
- tag: 'FormTextarea',
421
- name: 'contact[message]',
422
- settings: {
423
- placeholder: 'Message'
424
- },
425
- globalSize: {
426
- desktop: {
427
- width: '100%',
428
- height: 'Auto',
429
- padding: {
430
- type: 'medium',
431
- top: '12px',
432
- bottom: '12px',
433
- left: '12px',
434
- right: '12px'
435
- }
436
491
  }
437
492
  },
438
- advanced: {
439
- 'spacing-setting': {
440
- desktop: {
441
- margin: {
442
- bottom: 'var(--g-s-l)'
443
- }
444
- }
445
- },
446
- border: {
447
- desktop: {
448
- normal: {
449
- borderType: 'style-2',
450
- borderLabel: 'Style 2',
451
- border: 'solid',
452
- color: 'line-2',
453
- isCustom: false,
454
- width: '1px 1px 1px 1px'
455
- }
456
- }
457
- },
458
- rounded: {
459
- desktop: {
460
- normal: {
461
- btrr: '0px',
462
- bblr: '0px',
463
- bbrr: '0px',
464
- btlr: '0px',
465
- radiusType: 'none'
493
+ childrens: [
494
+ {
495
+ tag: 'Col',
496
+ childrens: [
497
+ {
498
+ tag: 'Text',
499
+ label: 'Text Block',
500
+ settings: {
501
+ text: 'Message'
502
+ },
503
+ styles: {
504
+ typo: {
505
+ type: 'paragraph-1',
506
+ attrs: {
507
+ color: 'text-1'
508
+ }
509
+ },
510
+ textAlign: {
511
+ desktop: 'left'
512
+ },
513
+ align: {
514
+ desktop: 'left'
515
+ }
516
+ },
517
+ advanced: {
518
+ 'spacing-setting': {
519
+ edited: [
520
+ 'desktop'
521
+ ],
522
+ desktop: {
523
+ margin: {
524
+ bottom: '0px'
525
+ }
526
+ },
527
+ tablet: {
528
+ margin: {
529
+ bottom: '0px'
530
+ }
531
+ },
532
+ mobile: {
533
+ margin: {
534
+ bottom: '0px'
535
+ }
536
+ }
537
+ },
538
+ op: {
539
+ desktop: '100%'
540
+ }
541
+ }
542
+ },
543
+ {
544
+ tag: 'FormTextarea',
545
+ name: 'contact[message]',
546
+ settings: {
547
+ placeholder: 'Message'
548
+ },
549
+ globalSize: {
550
+ desktop: {
551
+ width: '100%',
552
+ height: 'Auto',
553
+ padding: {
554
+ type: 'medium',
555
+ top: '12px',
556
+ bottom: '12px',
557
+ left: '12px',
558
+ right: '12px'
559
+ }
560
+ }
561
+ },
562
+ advanced: {
563
+ border: {
564
+ desktop: {
565
+ normal: {
566
+ borderType: 'style-2',
567
+ borderLabel: 'Style 2',
568
+ border: 'solid',
569
+ color: 'line-2',
570
+ isCustom: false,
571
+ width: '1px 1px 1px 1px'
572
+ }
573
+ }
574
+ },
575
+ rounded: {
576
+ desktop: {
577
+ normal: {
578
+ btrr: '0px',
579
+ bblr: '0px',
580
+ bbrr: '0px',
581
+ btlr: '0px',
582
+ radiusType: 'none'
583
+ }
584
+ }
585
+ }
586
+ }
466
587
  }
467
- }
588
+ ]
468
589
  }
469
- }
590
+ ]
470
591
  },
471
592
  {
472
593
  tag: 'SubmitButton',
@@ -28,13 +28,15 @@ const ContactSettings = [
28
28
  label: 'Success Message',
29
29
  default: "Thanks for contacting us. We'll get back to you as soon as possible.",
30
30
  autoHeight: true,
31
- minHeight: 58
31
+ minHeight: 58,
32
+ compoDefaultValue: "Thanks for contacting us. We'll get back to you as soon as possible."
32
33
  },
33
34
  {
34
35
  id: 'successColor',
35
36
  type: 'color-picker-v2',
36
37
  label: 'Color',
37
- default: '#00A042'
38
+ default: '#00A042',
39
+ compoDefaultValue: '#00A042'
38
40
  },
39
41
  {
40
42
  id: 'errorMessage',
@@ -42,13 +44,15 @@ const ContactSettings = [
42
44
  label: 'Error Message',
43
45
  default: 'Can’t send email. Please try again later.',
44
46
  autoHeight: true,
45
- minHeight: 58
47
+ minHeight: 58,
48
+ compoDefaultValue: 'Can’t send email. Please try again later.'
46
49
  },
47
50
  {
48
51
  id: 'errorColor',
49
52
  type: 'color-picker-v2',
50
53
  label: 'Color',
51
- default: '#F44336'
54
+ default: '#F44336',
55
+ compoDefaultValue: '#F44336'
52
56
  },
53
57
  {
54
58
  id: 'translate',
@@ -149,15 +153,18 @@ const ContactSettings = [
149
153
  devices: {
150
154
  desktop: {
151
155
  default: {
152
- width: 'Auto',
153
- height: 'Auto',
154
- padding: {
155
- type: 'medium',
156
- top: '12px',
157
- bottom: '12px',
158
- left: '24px',
159
- right: '24px'
160
- }
156
+ width: '1200px',
157
+ height: 'Auto'
158
+ }
159
+ },
160
+ mobile: {
161
+ default: {
162
+ width: '100%'
163
+ }
164
+ },
165
+ tablet: {
166
+ default: {
167
+ width: '100%'
161
168
  }
162
169
  }
163
170
  },
@@ -11,6 +11,7 @@ const SettingUIV2 = [
11
11
  },
12
12
  iconName: 'polaris-text-block',
13
13
  getValueFromSettingID: 'successMessage',
14
+ compoDefaultValue: "Thanks for contacting us. We'll get back to you as soon as possible.",
14
15
  isHideClear: true,
15
16
  disableScrollbar: true,
16
17
  popoverLabel: {
@@ -45,6 +46,7 @@ const SettingUIV2 = [
45
46
  getValueFromSettingID: 'errorMessage',
46
47
  isHideClear: true,
47
48
  disableScrollbar: true,
49
+ compoDefaultValue: 'Can’t send email. Please try again later.',
48
50
  popoverLabel: {
49
51
  en: 'Error message'
50
52
  },
@@ -112,19 +114,8 @@ const SettingUIV2 = [
112
114
  id: 'padding',
113
115
  type: 'padding-v2',
114
116
  linkWithSetting: {
115
- name: 'globalSize',
117
+ name: 'spacing-setting',
116
118
  field: 'padding'
117
- },
118
- compoDefaultValue: {
119
- desktop: {
120
- default: {
121
- type: 'medium',
122
- top: '12px',
123
- bottom: '12px',
124
- left: '24px',
125
- right: '24px'
126
- }
127
- }
128
119
  }
129
120
  }
130
121
  }
@@ -137,7 +137,7 @@ const SettingUIV2 = [
137
137
  label: {
138
138
  en: 'Align'
139
139
  },
140
- conditionEnable: '!(parseInt(width) >= 100 && width?.includes("%"))',
140
+ conditionEnable: '!(parseInt(globalSize.width) >= 100 && globalSize.width?.includes("%"))',
141
141
  setting: {
142
142
  id: 'align'
143
143
  },
@@ -6,8 +6,8 @@ const TextFieldSettings = [
6
6
  id: 'name',
7
7
  label: 'Name',
8
8
  type: 'input',
9
- placeholder: 'E.g. contact[first_name]',
10
- default: 'contact[first_name]'
9
+ placeholder: 'E.g. contact[name]',
10
+ default: 'contact[name]'
11
11
  },
12
12
  {
13
13
  id: 'placeholder',