@gem-sdk/components 2.0.0-dev.702 → 2.0.0-dev.704

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 (72) hide show
  1. package/dist/cjs/article/setting/configs/ArticleReadMore/settings.js +86 -134
  2. package/dist/cjs/button/components/common/helpers.js +2 -9
  3. package/dist/cjs/button/components/common/styles.js +14 -81
  4. package/dist/cjs/button/setting/configs/settings.js +85 -133
  5. package/dist/cjs/coupon/common/classes.js +3 -12
  6. package/dist/cjs/coupon/common/styles.js +7 -17
  7. package/dist/cjs/coupon/setting/config/settings.js +60 -100
  8. package/dist/cjs/form/setting/submit-button/configs/settings.js +103 -250
  9. package/dist/cjs/helpers.js +4 -1
  10. package/dist/cjs/image/components/NextImage.liquid.js +2 -2
  11. package/dist/cjs/index.js +4 -0
  12. package/dist/cjs/post-purchase/product/settings/product-image/setting-v2.js +2 -2
  13. package/dist/cjs/post-purchase/product/settings/product-image/uiV2.js +72 -2
  14. package/dist/cjs/product/components/DynamicCheckout/common/styles.js +12 -12
  15. package/dist/cjs/product/components/ProductBadge/index.liquid.js +12 -3
  16. package/dist/cjs/product/components/ProductBadge/utils/generateLiquidContent.js +2 -2
  17. package/dist/cjs/product/components/ProductButton/common/styles.js +4 -14
  18. package/dist/cjs/product/components/ProductDescription/index.liquid.js +21 -4
  19. package/dist/cjs/product/components/ProductImagesV2/common/common.js +1 -1
  20. package/dist/cjs/product/setting/constant/bundle-layout/horizontalThree.js +1 -0
  21. package/dist/cjs/product/setting/constant/bundle-layout/horizontalTwo.js +1 -0
  22. package/dist/cjs/product/setting/constant/bundle-layout/verticalThree.js +1 -0
  23. package/dist/cjs/product/setting/constant/bundle-layout/verticalTwo.js +1 -0
  24. package/dist/cjs/product/setting/dynamic-checkout/configs/settings.js +86 -134
  25. package/dist/cjs/product/setting/product-badge/configs/settings.js +5 -0
  26. package/dist/cjs/product/setting/product-button/configs/settings.js +142 -222
  27. package/dist/cjs/product/setting/product-description/configs/settings.js +5 -0
  28. package/dist/cjs/product/setting/product-view-more/configs/settings.js +100 -148
  29. package/dist/cjs/stock-counter/components/StockCounter.js +0 -2
  30. package/dist/cjs/stock-counter/components/StockCounter.liquid.js +44 -3
  31. package/dist/cjs/stock-counter/components/common/getContent.js +19 -10
  32. package/dist/cjs/stock-counter/helpers.js +20 -3
  33. package/dist/cjs/stock-counter/index.js +0 -1
  34. package/dist/cjs/stock-counter/setting/configs/settingsV2.js +5 -0
  35. package/dist/cjs/third-party/setting/Selleasy/index.js +5 -5
  36. package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +86 -134
  37. package/dist/esm/button/components/common/helpers.js +2 -9
  38. package/dist/esm/button/components/common/styles.js +16 -81
  39. package/dist/esm/button/setting/configs/settings.js +85 -133
  40. package/dist/esm/coupon/common/classes.js +3 -12
  41. package/dist/esm/coupon/common/styles.js +7 -17
  42. package/dist/esm/coupon/setting/config/settings.js +60 -100
  43. package/dist/esm/form/setting/submit-button/configs/settings.js +103 -250
  44. package/dist/esm/helpers.js +4 -1
  45. package/dist/esm/image/components/NextImage.liquid.js +2 -2
  46. package/dist/esm/index.js +1 -0
  47. package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +2 -2
  48. package/dist/esm/post-purchase/product/settings/product-image/uiV2.js +72 -2
  49. package/dist/esm/product/components/DynamicCheckout/common/styles.js +12 -12
  50. package/dist/esm/product/components/ProductBadge/index.liquid.js +13 -4
  51. package/dist/esm/product/components/ProductBadge/utils/generateLiquidContent.js +2 -2
  52. package/dist/esm/product/components/ProductButton/common/styles.js +4 -14
  53. package/dist/esm/product/components/ProductDescription/index.liquid.js +22 -5
  54. package/dist/esm/product/components/ProductImagesV2/common/common.js +1 -1
  55. package/dist/esm/product/setting/constant/bundle-layout/horizontalThree.js +1 -0
  56. package/dist/esm/product/setting/constant/bundle-layout/horizontalTwo.js +1 -0
  57. package/dist/esm/product/setting/constant/bundle-layout/verticalThree.js +1 -0
  58. package/dist/esm/product/setting/constant/bundle-layout/verticalTwo.js +1 -0
  59. package/dist/esm/product/setting/dynamic-checkout/configs/settings.js +86 -134
  60. package/dist/esm/product/setting/product-badge/configs/settings.js +5 -0
  61. package/dist/esm/product/setting/product-button/configs/settings.js +142 -222
  62. package/dist/esm/product/setting/product-description/configs/settings.js +5 -0
  63. package/dist/esm/product/setting/product-view-more/configs/settings.js +100 -148
  64. package/dist/esm/stock-counter/components/StockCounter.js +0 -2
  65. package/dist/esm/stock-counter/components/StockCounter.liquid.js +46 -5
  66. package/dist/esm/stock-counter/components/common/getContent.js +19 -11
  67. package/dist/esm/stock-counter/helpers.js +20 -4
  68. package/dist/esm/stock-counter/index.js +0 -1
  69. package/dist/esm/stock-counter/setting/configs/settingsV2.js +5 -0
  70. package/dist/esm/third-party/setting/Selleasy/index.js +5 -5
  71. package/dist/types/index.d.ts +40 -28
  72. package/package.json +3 -3
@@ -420,235 +420,171 @@ const ProductButtonSettings = [
420
420
  {
421
421
  id: 'backgroundColorV2',
422
422
  type: 'color-picker-v2',
423
- devices: {
424
- desktop: {
425
- default: {
426
- normal: 'brand',
427
- hover: 'highlight'
428
- }
429
- }
423
+ default: {
424
+ normal: 'brand',
425
+ hover: 'highlight'
430
426
  },
431
427
  compoDefaultValue: {
432
- desktop: {
433
- default: {
434
- normal: 'brand',
435
- hover: 'highlight'
436
- }
437
- }
428
+ normal: 'brand',
429
+ hover: 'highlight'
438
430
  },
439
431
  enableGradient: true
440
432
  },
441
433
  {
442
434
  id: 'boxShadowBtnV2',
443
435
  type: 'shadow-v2',
444
- devices: {
445
- desktop: {
446
- default: {
447
- normal: {}
448
- }
449
- }
436
+ default: {
437
+ normal: {}
450
438
  },
451
439
  compoDefaultValue: {
452
- desktop: {
453
- default: {
454
- normal: {
455
- type: 'shadow-1',
456
- distance: '4px',
457
- blur: '4px',
458
- spread: '0px',
459
- color: '#121212',
460
- angle: 45
461
- }
462
- }
440
+ normal: {
441
+ type: 'shadow-1',
442
+ distance: '4px',
443
+ blur: '4px',
444
+ spread: '0px',
445
+ color: '#121212',
446
+ angle: 45
463
447
  }
464
448
  }
465
449
  },
466
450
  {
467
451
  id: 'roundedBtnV2',
468
452
  type: 'corner-v2',
469
- devices: {
470
- desktop: {
471
- default: {
472
- normal: {
473
- btrr: '0px',
474
- bblr: '0px',
475
- bbrr: '0px',
476
- btlr: '0px',
477
- radiusType: 'none'
478
- },
479
- hover: {
480
- btrr: '0px',
481
- bblr: '0px',
482
- bbrr: '0px',
483
- btlr: '0px',
484
- radiusType: 'none'
485
- }
486
- }
453
+ default: {
454
+ normal: {
455
+ btrr: '0px',
456
+ bblr: '0px',
457
+ bbrr: '0px',
458
+ btlr: '0px',
459
+ radiusType: 'none'
460
+ },
461
+ hover: {
462
+ btrr: '0px',
463
+ bblr: '0px',
464
+ bbrr: '0px',
465
+ btlr: '0px',
466
+ radiusType: 'none'
487
467
  }
488
468
  },
489
469
  compoDefaultValue: {
490
- desktop: {
491
- default: {
492
- normal: {
493
- btrr: '8px',
494
- bblr: '8px',
495
- bbrr: '8px',
496
- btlr: '8px',
497
- radiusType: 'rounded'
498
- },
499
- hover: {
500
- btrr: '8px',
501
- bblr: '8px',
502
- bbrr: '8px',
503
- btlr: '8px',
504
- radiusType: 'rounded'
505
- }
506
- }
470
+ normal: {
471
+ btrr: '8px',
472
+ bblr: '8px',
473
+ bbrr: '8px',
474
+ btlr: '8px',
475
+ radiusType: 'rounded'
476
+ },
477
+ hover: {
478
+ btrr: '8px',
479
+ bblr: '8px',
480
+ bbrr: '8px',
481
+ btlr: '8px',
482
+ radiusType: 'rounded'
507
483
  }
508
484
  }
509
485
  },
510
486
  {
511
487
  id: 'borderBtnV2',
512
488
  type: 'border-v2',
513
- devices: {
514
- desktop: {
515
- default: {
516
- normal: {
517
- borderType: 'none',
518
- border: 'none',
519
- borderWidth: '1px',
520
- width: '1px 1px 1px 1px',
521
- color: '#121212',
522
- isCustom: true
523
- },
524
- hover: {
525
- borderType: 'none',
526
- border: 'none',
527
- borderWidth: '1px',
528
- width: '1px 1px 1px 1px',
529
- color: '#121212',
530
- isCustom: true
531
- }
532
- }
489
+ default: {
490
+ normal: {
491
+ borderType: 'none',
492
+ border: 'none',
493
+ borderWidth: '1px',
494
+ width: '1px 1px 1px 1px',
495
+ color: '#121212',
496
+ isCustom: true
497
+ },
498
+ hover: {
499
+ borderType: 'none',
500
+ border: 'none',
501
+ borderWidth: '1px',
502
+ width: '1px 1px 1px 1px',
503
+ color: '#121212',
504
+ isCustom: true
533
505
  }
534
506
  },
535
507
  compoDefaultValue: {
536
- desktop: {
537
- default: {
538
- normal: {
539
- border: 'solid',
540
- color: '#212121',
541
- width: '1px',
542
- borderWidth: '1px'
543
- },
544
- hover: {
545
- border: 'solid',
546
- color: '#212121',
547
- width: '1px',
548
- borderWidth: '1px'
549
- }
550
- }
508
+ normal: {
509
+ border: 'solid',
510
+ color: '#212121',
511
+ width: '1px',
512
+ borderWidth: '1px'
513
+ },
514
+ hover: {
515
+ border: 'solid',
516
+ color: '#212121',
517
+ width: '1px',
518
+ borderWidth: '1px'
551
519
  }
552
520
  }
553
521
  },
554
522
  {
555
523
  id: 'textColorHover',
556
524
  type: 'color-picker-v2',
557
- devices: {
558
- desktop: {
559
- default: {
560
- hover: 'text-3'
561
- }
562
- }
525
+ default: {
526
+ hover: 'text-3'
563
527
  },
564
528
  compoDefaultValue: {
565
- desktop: {
566
- default: {
567
- hover: 'text-3'
568
- }
569
- }
529
+ hover: 'text-3'
570
530
  }
571
531
  },
572
532
  {
573
533
  id: 'oosBackgroundV2',
574
534
  type: 'color-picker-v2',
575
- devices: {
576
- desktop: {
577
- default: {
578
- normal: 'brand',
579
- hover: 'highlight'
580
- }
581
- }
535
+ default: {
536
+ normal: 'brand',
537
+ hover: 'highlight'
582
538
  },
583
539
  compoDefaultValue: {
584
- desktop: {
585
- default: {
586
- normal: 'brand',
587
- hover: 'highlight'
588
- }
589
- }
540
+ normal: 'brand',
541
+ hover: 'highlight'
590
542
  },
591
543
  enableGradient: true
592
544
  },
593
545
  {
594
546
  id: 'oosTextColorV2',
595
547
  type: 'color-picker-v2',
596
- devices: {
597
- desktop: {
598
- default: {
599
- normal: 'text-3'
600
- }
601
- }
548
+ default: {
549
+ normal: 'text-3'
602
550
  },
603
551
  compoDefaultValue: {
604
- desktop: {
605
- default: {
606
- normal: 'text-3'
607
- }
608
- }
552
+ normal: 'text-3'
609
553
  }
610
554
  },
611
555
  {
612
556
  id: 'oosBorderV2',
613
557
  type: 'border-v2',
614
- devices: {
615
- desktop: {
616
- default: {
617
- normal: {
618
- borderType: 'none',
619
- border: 'none',
620
- borderWidth: '1px',
621
- width: '1px 1px 1px 1px',
622
- color: '#121212',
623
- isCustom: true
624
- },
625
- hover: {
626
- borderType: 'none',
627
- border: 'none',
628
- borderWidth: '1px',
629
- width: '1px 1px 1px 1px',
630
- color: '#121212',
631
- isCustom: true
632
- }
633
- }
558
+ default: {
559
+ normal: {
560
+ borderType: 'none',
561
+ border: 'none',
562
+ borderWidth: '1px',
563
+ width: '1px 1px 1px 1px',
564
+ color: '#121212',
565
+ isCustom: true
566
+ },
567
+ hover: {
568
+ borderType: 'none',
569
+ border: 'none',
570
+ borderWidth: '1px',
571
+ width: '1px 1px 1px 1px',
572
+ color: '#121212',
573
+ isCustom: true
634
574
  }
635
575
  },
636
576
  compoDefaultValue: {
637
- desktop: {
638
- default: {
639
- normal: {
640
- border: 'solid',
641
- color: '#212121',
642
- width: '1px',
643
- borderWidth: '1px'
644
- },
645
- hover: {
646
- border: 'solid',
647
- color: '#212121',
648
- width: '1px',
649
- borderWidth: '1px'
650
- }
651
- }
577
+ normal: {
578
+ border: 'solid',
579
+ color: '#212121',
580
+ width: '1px',
581
+ borderWidth: '1px'
582
+ },
583
+ hover: {
584
+ border: 'solid',
585
+ color: '#212121',
586
+ width: '1px',
587
+ borderWidth: '1px'
652
588
  }
653
589
  }
654
590
  },
@@ -662,25 +598,17 @@ const ProductButtonSettings = [
662
598
  {
663
599
  id: 'oosShadowV2',
664
600
  type: 'shadow-v2',
665
- devices: {
666
- desktop: {
667
- default: {
668
- normal: {}
669
- }
670
- }
601
+ default: {
602
+ normal: {}
671
603
  },
672
604
  compoDefaultValue: {
673
- desktop: {
674
- default: {
675
- normal: {
676
- type: 'shadow-1',
677
- distance: '4px',
678
- blur: '4px',
679
- spread: '0px',
680
- color: '#121212',
681
- angle: 45
682
- }
683
- }
605
+ normal: {
606
+ type: 'shadow-1',
607
+ distance: '4px',
608
+ blur: '4px',
609
+ spread: '0px',
610
+ color: '#121212',
611
+ angle: 45
684
612
  }
685
613
  }
686
614
  },
@@ -688,44 +616,36 @@ const ProductButtonSettings = [
688
616
  id: 'oosRoundedV2',
689
617
  label: 'Border Radius',
690
618
  type: 'corner-v2',
691
- devices: {
692
- desktop: {
693
- default: {
694
- normal: {
695
- btrr: '0px',
696
- bblr: '0px',
697
- bbrr: '0px',
698
- btlr: '0px',
699
- radiusType: 'none'
700
- },
701
- hover: {
702
- btrr: '0px',
703
- bblr: '0px',
704
- bbrr: '0px',
705
- btlr: '0px',
706
- radiusType: 'none'
707
- }
708
- }
619
+ default: {
620
+ normal: {
621
+ btrr: '0px',
622
+ bblr: '0px',
623
+ bbrr: '0px',
624
+ btlr: '0px',
625
+ radiusType: 'none'
626
+ },
627
+ hover: {
628
+ btrr: '0px',
629
+ bblr: '0px',
630
+ bbrr: '0px',
631
+ btlr: '0px',
632
+ radiusType: 'none'
709
633
  }
710
634
  },
711
635
  compoDefaultValue: {
712
- desktop: {
713
- default: {
714
- normal: {
715
- btrr: '8px',
716
- bblr: '8px',
717
- bbrr: '8px',
718
- btlr: '8px',
719
- radiusType: 'rounded'
720
- },
721
- hover: {
722
- btrr: '8px',
723
- bblr: '8px',
724
- bbrr: '8px',
725
- btlr: '8px',
726
- radiusType: 'rounded'
727
- }
728
- }
636
+ normal: {
637
+ btrr: '8px',
638
+ bblr: '8px',
639
+ bbrr: '8px',
640
+ btlr: '8px',
641
+ radiusType: 'rounded'
642
+ },
643
+ hover: {
644
+ btrr: '8px',
645
+ bblr: '8px',
646
+ bbrr: '8px',
647
+ btlr: '8px',
648
+ radiusType: 'rounded'
729
649
  }
730
650
  }
731
651
  },
@@ -63,6 +63,11 @@ const ProductDescriptionSettings = [
63
63
  default: 'Show less',
64
64
  hide: true
65
65
  },
66
+ {
67
+ id: 'translate',
68
+ type: 'input',
69
+ default: 'viewMoreText,viewLessText'
70
+ },
66
71
  {
67
72
  id: 'enableViewMoreIcon',
68
73
  label: 'Enable Icon',