@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.
- package/dist/cjs/article/setting/configs/ArticleReadMore/settings.js +86 -134
- package/dist/cjs/button/components/common/helpers.js +2 -9
- package/dist/cjs/button/components/common/styles.js +14 -81
- package/dist/cjs/button/setting/configs/settings.js +85 -133
- package/dist/cjs/coupon/common/classes.js +3 -12
- package/dist/cjs/coupon/common/styles.js +7 -17
- package/dist/cjs/coupon/setting/config/settings.js +60 -100
- package/dist/cjs/form/setting/submit-button/configs/settings.js +103 -250
- package/dist/cjs/helpers.js +4 -1
- package/dist/cjs/image/components/NextImage.liquid.js +2 -2
- package/dist/cjs/index.js +4 -0
- package/dist/cjs/post-purchase/product/settings/product-image/setting-v2.js +2 -2
- package/dist/cjs/post-purchase/product/settings/product-image/uiV2.js +72 -2
- package/dist/cjs/product/components/DynamicCheckout/common/styles.js +12 -12
- package/dist/cjs/product/components/ProductBadge/index.liquid.js +12 -3
- package/dist/cjs/product/components/ProductBadge/utils/generateLiquidContent.js +2 -2
- package/dist/cjs/product/components/ProductButton/common/styles.js +4 -14
- package/dist/cjs/product/components/ProductDescription/index.liquid.js +21 -4
- package/dist/cjs/product/components/ProductImagesV2/common/common.js +1 -1
- package/dist/cjs/product/setting/constant/bundle-layout/horizontalThree.js +1 -0
- package/dist/cjs/product/setting/constant/bundle-layout/horizontalTwo.js +1 -0
- package/dist/cjs/product/setting/constant/bundle-layout/verticalThree.js +1 -0
- package/dist/cjs/product/setting/constant/bundle-layout/verticalTwo.js +1 -0
- package/dist/cjs/product/setting/dynamic-checkout/configs/settings.js +86 -134
- package/dist/cjs/product/setting/product-badge/configs/settings.js +5 -0
- package/dist/cjs/product/setting/product-button/configs/settings.js +142 -222
- package/dist/cjs/product/setting/product-description/configs/settings.js +5 -0
- package/dist/cjs/product/setting/product-view-more/configs/settings.js +100 -148
- package/dist/cjs/stock-counter/components/StockCounter.js +0 -2
- package/dist/cjs/stock-counter/components/StockCounter.liquid.js +44 -3
- package/dist/cjs/stock-counter/components/common/getContent.js +19 -10
- package/dist/cjs/stock-counter/helpers.js +20 -3
- package/dist/cjs/stock-counter/index.js +0 -1
- package/dist/cjs/stock-counter/setting/configs/settingsV2.js +5 -0
- package/dist/cjs/third-party/setting/Selleasy/index.js +5 -5
- package/dist/esm/article/setting/configs/ArticleReadMore/settings.js +86 -134
- package/dist/esm/button/components/common/helpers.js +2 -9
- package/dist/esm/button/components/common/styles.js +16 -81
- package/dist/esm/button/setting/configs/settings.js +85 -133
- package/dist/esm/coupon/common/classes.js +3 -12
- package/dist/esm/coupon/common/styles.js +7 -17
- package/dist/esm/coupon/setting/config/settings.js +60 -100
- package/dist/esm/form/setting/submit-button/configs/settings.js +103 -250
- package/dist/esm/helpers.js +4 -1
- package/dist/esm/image/components/NextImage.liquid.js +2 -2
- package/dist/esm/index.js +1 -0
- package/dist/esm/post-purchase/product/settings/product-image/setting-v2.js +2 -2
- package/dist/esm/post-purchase/product/settings/product-image/uiV2.js +72 -2
- package/dist/esm/product/components/DynamicCheckout/common/styles.js +12 -12
- package/dist/esm/product/components/ProductBadge/index.liquid.js +13 -4
- package/dist/esm/product/components/ProductBadge/utils/generateLiquidContent.js +2 -2
- package/dist/esm/product/components/ProductButton/common/styles.js +4 -14
- package/dist/esm/product/components/ProductDescription/index.liquid.js +22 -5
- package/dist/esm/product/components/ProductImagesV2/common/common.js +1 -1
- package/dist/esm/product/setting/constant/bundle-layout/horizontalThree.js +1 -0
- package/dist/esm/product/setting/constant/bundle-layout/horizontalTwo.js +1 -0
- package/dist/esm/product/setting/constant/bundle-layout/verticalThree.js +1 -0
- package/dist/esm/product/setting/constant/bundle-layout/verticalTwo.js +1 -0
- package/dist/esm/product/setting/dynamic-checkout/configs/settings.js +86 -134
- package/dist/esm/product/setting/product-badge/configs/settings.js +5 -0
- package/dist/esm/product/setting/product-button/configs/settings.js +142 -222
- package/dist/esm/product/setting/product-description/configs/settings.js +5 -0
- package/dist/esm/product/setting/product-view-more/configs/settings.js +100 -148
- package/dist/esm/stock-counter/components/StockCounter.js +0 -2
- package/dist/esm/stock-counter/components/StockCounter.liquid.js +46 -5
- package/dist/esm/stock-counter/components/common/getContent.js +19 -11
- package/dist/esm/stock-counter/helpers.js +20 -4
- package/dist/esm/stock-counter/index.js +0 -1
- package/dist/esm/stock-counter/setting/configs/settingsV2.js +5 -0
- package/dist/esm/third-party/setting/Selleasy/index.js +5 -5
- package/dist/types/index.d.ts +40 -28
- package/package.json +3 -3
|
@@ -420,235 +420,171 @@ const ProductButtonSettings = [
|
|
|
420
420
|
{
|
|
421
421
|
id: 'backgroundColorV2',
|
|
422
422
|
type: 'color-picker-v2',
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
normal: 'brand',
|
|
427
|
-
hover: 'highlight'
|
|
428
|
-
}
|
|
429
|
-
}
|
|
423
|
+
default: {
|
|
424
|
+
normal: 'brand',
|
|
425
|
+
hover: 'highlight'
|
|
430
426
|
},
|
|
431
427
|
compoDefaultValue: {
|
|
432
|
-
|
|
433
|
-
|
|
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
|
-
|
|
445
|
-
|
|
446
|
-
default: {
|
|
447
|
-
normal: {}
|
|
448
|
-
}
|
|
449
|
-
}
|
|
436
|
+
default: {
|
|
437
|
+
normal: {}
|
|
450
438
|
},
|
|
451
439
|
compoDefaultValue: {
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
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
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
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
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
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
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
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
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
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
|
-
|
|
558
|
-
|
|
559
|
-
default: {
|
|
560
|
-
hover: 'text-3'
|
|
561
|
-
}
|
|
562
|
-
}
|
|
525
|
+
default: {
|
|
526
|
+
hover: 'text-3'
|
|
563
527
|
},
|
|
564
528
|
compoDefaultValue: {
|
|
565
|
-
|
|
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
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
normal: 'brand',
|
|
579
|
-
hover: 'highlight'
|
|
580
|
-
}
|
|
581
|
-
}
|
|
535
|
+
default: {
|
|
536
|
+
normal: 'brand',
|
|
537
|
+
hover: 'highlight'
|
|
582
538
|
},
|
|
583
539
|
compoDefaultValue: {
|
|
584
|
-
|
|
585
|
-
|
|
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
|
-
|
|
597
|
-
|
|
598
|
-
default: {
|
|
599
|
-
normal: 'text-3'
|
|
600
|
-
}
|
|
601
|
-
}
|
|
548
|
+
default: {
|
|
549
|
+
normal: 'text-3'
|
|
602
550
|
},
|
|
603
551
|
compoDefaultValue: {
|
|
604
|
-
|
|
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
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
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
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
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
|
-
|
|
666
|
-
|
|
667
|
-
default: {
|
|
668
|
-
normal: {}
|
|
669
|
-
}
|
|
670
|
-
}
|
|
601
|
+
default: {
|
|
602
|
+
normal: {}
|
|
671
603
|
},
|
|
672
604
|
compoDefaultValue: {
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
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
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
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
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
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
|
},
|