@trafilea/afrodita-components 5.0.0 → 6.0.1

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.
@@ -1,5 +1,11 @@
1
1
  import { CSSProperties } from 'react';
2
- import { ComponentSize } from 'src/types/enums';
2
+
3
+ declare enum ComponentSize {
4
+ Large = "large",
5
+ Medium = "medium",
6
+ Small = "small",
7
+ XSmall = "xsmall"
8
+ }
3
9
 
4
10
  declare type Theme = {
5
11
  name: string;
@@ -22,6 +28,7 @@ declare type Theme = {
22
28
  };
23
29
  declare type ThemeBreakpoints = {
24
30
  mobile: number;
31
+ tablet?: number;
25
32
  desktop: number;
26
33
  };
27
34
  declare type ThemeBasicPallete = {
@@ -29,7 +36,7 @@ declare type ThemeBasicPallete = {
29
36
  contrast: string;
30
37
  };
31
38
  declare type ThemeColorPallete = ThemeBasicPallete & {
32
- soft: ThemeBasicPallete;
39
+ soft?: ThemeBasicPallete;
33
40
  };
34
41
  declare type ThemeColorPrimaryPallete = ThemeColorPallete & {
35
42
  20: ThemeColorPallete;
@@ -41,6 +48,7 @@ declare type ThemeColors = {
41
48
  pallete: {
42
49
  primary: ThemeColorPrimaryPallete;
43
50
  secondary: ThemeColorPrimaryPallete;
51
+ tertiary?: ThemeColorPrimaryPallete;
44
52
  } & Partial<Record<string, ThemeColorPallete>>;
45
53
  shades: {
46
54
  black: ThemeBasicPallete;
@@ -50,6 +58,7 @@ declare type ThemeColors = {
50
58
  50: ThemeBasicPallete;
51
59
  100: ThemeBasicPallete;
52
60
  150: ThemeBasicPallete;
61
+ 175: ThemeBasicPallete;
53
62
  200: ThemeBasicPallete;
54
63
  250: ThemeBasicPallete;
55
64
  300: ThemeBasicPallete;
@@ -78,6 +87,8 @@ declare type ThemeColors = {
78
87
  color: string;
79
88
  disabled: string;
80
89
  highlight: string;
90
+ shadow?: string;
91
+ isChecked?: string;
81
92
  };
82
93
  background: {
83
94
  color: string;
@@ -384,12 +395,20 @@ declare type ThemeComponent = {
384
395
  fontWeight: number;
385
396
  lineHeight: string;
386
397
  padding: string;
398
+ optionPadding: string;
387
399
  color: string;
388
400
  fill: string;
401
+ borderWidth?: string;
389
402
  options: {
390
403
  borderColor: string;
391
404
  color: string;
392
405
  borderRadius: string;
406
+ borderRadiusV2?: string;
407
+ backgroundColor?: string;
408
+ };
409
+ optionsWrapper: {
410
+ borderRadius: string;
411
+ overflow: string;
393
412
  };
394
413
  };
395
414
  modal: {
@@ -496,11 +515,7 @@ declare type ThemeComponent = {
496
515
  alignSelf?: string;
497
516
  };
498
517
  savings: {
499
- textFontSize: string;
500
- textLineHeight: string;
501
- amountFontSize: string;
502
518
  amountFontWeight: number;
503
- amountLineHeight: string;
504
519
  color?: string;
505
520
  };
506
521
  };
@@ -520,15 +535,35 @@ declare type ThemeComponent = {
520
535
  size: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
521
536
  originalPriceColor: string;
522
537
  actualPriceColor: string;
538
+ defaultFontSize?: {
539
+ large: string;
540
+ medium: string;
541
+ small: string;
542
+ };
543
+ smallFontSize?: {
544
+ large: string;
545
+ medium: string;
546
+ small: string;
547
+ };
548
+ largeFontSize?: {
549
+ large: string;
550
+ medium: string;
551
+ small: string;
552
+ };
553
+ discountFontSize?: {
554
+ large: string;
555
+ medium: string;
556
+ small: string;
557
+ };
523
558
  };
524
559
  };
525
560
  };
526
561
  orderSummary: {
527
562
  headingTextAlign: string;
528
- backgroundColor: string;
529
- maxWidth?: string;
563
+ backgroundColor?: string;
530
564
  padding?: string;
531
565
  borderRadius?: string;
566
+ maxWidth?: string;
532
567
  onMobile: {
533
568
  maxWidth?: string;
534
569
  padding?: string;
@@ -536,9 +571,9 @@ declare type ThemeComponent = {
536
571
  };
537
572
  };
538
573
  expressCheckout: {
539
- fontFamily: string;
540
- fontWeight: number;
541
- lineHeight: string;
574
+ button: {
575
+ borderRadius: string;
576
+ };
542
577
  };
543
578
  copyrightText: {
544
579
  fontSize: string;
@@ -546,24 +581,126 @@ declare type ThemeComponent = {
546
581
  lineHeight: string;
547
582
  color: string;
548
583
  };
584
+ thankyouFooterText: {
585
+ fontSize: string;
586
+ fontWeight: string;
587
+ lineHeight: string;
588
+ };
549
589
  textButton: {
550
590
  fontWeight: number;
551
591
  lineHeight: string;
552
592
  };
553
593
  deliveryDetails: {
594
+ title: {
595
+ fontSize: string;
596
+ lineHeight: string;
597
+ fontWeight: number;
598
+ };
554
599
  note: {
555
600
  accentColor: string;
556
601
  color: string;
557
602
  backgroundColor: string;
558
603
  };
559
- SectionDetails?: {
560
- marginLeft: string;
604
+ sectionTitle: {
605
+ fontSize: string;
606
+ lineHeight: string;
607
+ fontWeight: number;
608
+ };
609
+ sectionDetails: {
610
+ fontSize: string;
611
+ lineHeight: string;
612
+ fontWeight: number;
613
+ marginLeft?: string;
561
614
  };
562
615
  };
563
616
  text: {
564
617
  orderHeader: {
565
618
  color: string;
566
619
  };
620
+ fitGuarantee: {
621
+ titleFontSize?: string;
622
+ titleFontWeight?: number | string;
623
+ fontWeight: number | string;
624
+ };
625
+ offerBanner: {
626
+ borderRadius: string;
627
+ };
628
+ };
629
+ orderBar: {
630
+ backgroundColor: string;
631
+ fontColor: string;
632
+ };
633
+ banner: {
634
+ outlineColor: string;
635
+ filledColor: string;
636
+ fontColor: string;
637
+ };
638
+ offerTitleText: {
639
+ size: string;
640
+ weight: number;
641
+ lineHeight: string;
642
+ };
643
+ linePrice: {
644
+ color: string;
645
+ badge: {
646
+ color: string;
647
+ borderRadius: string;
648
+ };
649
+ };
650
+ divider: {
651
+ color: string;
652
+ };
653
+ checkout: {
654
+ paymentInformation: {
655
+ borderRadius?: string;
656
+ };
657
+ creditCardSection: {
658
+ borderRadius?: string;
659
+ };
660
+ };
661
+ upsell: {
662
+ banner: {
663
+ outlined: {
664
+ color?: string;
665
+ };
666
+ };
667
+ price: {
668
+ colors: {
669
+ regular: string;
670
+ deal: string;
671
+ each: string;
672
+ badgeBG: string;
673
+ badgeColor: string;
674
+ };
675
+ };
676
+ hurryTimeCard: {
677
+ backgroundColor: string;
678
+ };
679
+ guaranteedFit?: {
680
+ backgroundColor: string;
681
+ };
682
+ };
683
+ thankyou: {
684
+ orderBanner?: {
685
+ text: {
686
+ left: string;
687
+ };
688
+ };
689
+ emailSection: {
690
+ backgroundColor?: string;
691
+ };
692
+ socialIcon: {
693
+ color?: string;
694
+ };
695
+ orderId: {
696
+ color: string;
697
+ };
698
+ };
699
+ hurryUp: {
700
+ borderRadius?: string;
701
+ };
702
+ qtyPicker: {
703
+ borderRadius: string;
567
704
  };
568
705
  };
569
706
  declare type ThemeTypography = {
@@ -588,6 +725,7 @@ declare type ThemeFonts = {
588
725
  }>;
589
726
  };
590
727
  declare type ThemeAssets = {
728
+ cdn: string;
591
729
  images: {
592
730
  favicon: string;
593
731
  logo: string;
@@ -596,6 +734,21 @@ declare type ThemeAssets = {
596
734
  height: string;
597
735
  };
598
736
  logoMobile?: string;
737
+ checkoutLogo?: {
738
+ url: string;
739
+ width: string;
740
+ height: string;
741
+ };
742
+ upsellLogo?: {
743
+ url: string;
744
+ width: string;
745
+ height: string;
746
+ };
747
+ tyLogo?: {
748
+ url: string;
749
+ width: string;
750
+ height: string;
751
+ };
599
752
  };
600
753
  [key: string]: any;
601
754
  };
@@ -179,6 +179,7 @@ var shapermint = {
179
179
  50: { color: '#efefef', contrast: '--colors-shades-700-color' },
180
180
  100: { color: '#e5e5e5', contrast: '--colors-shades-700-color' },
181
181
  150: { color: '#d1d1d1', contrast: '--colors-shades-700-color' },
182
+ 175: { color: '#c4c4c4', contrast: '--colors-shades-700-color' },
182
183
  200: { color: '#bbbbbb', contrast: '--colors-shades-700-color' },
183
184
  250: { color: '#a6a6a6', contrast: '--colors-shades-700-color' },
184
185
  300: { color: '#9e9e9e', contrast: '--colors-shades-700-color' },
@@ -264,9 +265,9 @@ var shapermint = {
264
265
  input: {
265
266
  background: '--colors-shades-white-color',
266
267
  color: '--colors-shades-700-color',
267
- placeholderColor: '--colors-shades-250-color',
268
+ placeholderColor: '--colors-shades-400-color',
268
269
  borderRadius: '0.5rem',
269
- fontSize: '1rem',
270
+ fontSize: '14px',
270
271
  fontWeight: 400,
271
272
  padding: '0.75rem 1rem',
272
273
  lineHeight: '1.5rem',
@@ -513,12 +514,18 @@ var shapermint = {
513
514
  fontWeight: 600,
514
515
  lineHeight: '1.125rem',
515
516
  padding: '0.5rem 0.75rem 0.5rem 1rem',
517
+ optionPadding: '0.75rem 1rem 0.625rem 0.75rem',
516
518
  color: '--colors-shades-700-color',
517
519
  fill: '--colors-shades-700-color',
518
520
  options: {
519
521
  borderColor: '--colors-shades-700-color',
520
522
  color: '--colors-shades-700-color',
521
523
  borderRadius: '0.5rem',
524
+ borderRadiusV2: '0.5rem',
525
+ },
526
+ optionsWrapper: {
527
+ borderRadius: 'unset',
528
+ overflow: 'unset',
522
529
  },
523
530
  },
524
531
  modal: {
@@ -619,17 +626,13 @@ var shapermint = {
619
626
  fontSize: '24px',
620
627
  },
621
628
  currency: {
622
- color: '--colors-shades-550-color',
629
+ color: '--colors-shades-250-color',
623
630
  fontSize: '14px',
624
631
  lineHeight: '22px',
625
632
  alignSelf: 'flex-end',
626
633
  },
627
634
  savings: {
628
- textFontSize: '16px',
629
- textLineHeight: '24px',
630
- amountFontSize: '16px',
631
635
  amountFontWeight: 600,
632
- amountLineHeight: '24px',
633
636
  color: '--colors-semantic-positive-color',
634
637
  },
635
638
  },
@@ -654,19 +657,16 @@ var shapermint = {
654
657
  },
655
658
  orderSummary: {
656
659
  headingTextAlign: 'left',
657
- backgroundColor: '--colors-shades-5-color',
658
- padding: '',
659
- borderRadius: '',
660
- maxWidth: '460px',
660
+ maxWidth: '428px',
661
661
  onMobile: {
662
662
  maxWidth: '100%',
663
663
  padding: '15px',
664
664
  },
665
665
  },
666
666
  expressCheckout: {
667
- fontFamily: '-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica,Arial, sans-serif',
668
- fontWeight: 500,
669
- lineHeight: '16px',
667
+ button: {
668
+ borderRadius: '8px',
669
+ },
670
670
  },
671
671
  copyrightText: {
672
672
  fontSize: '16px',
@@ -674,21 +674,115 @@ var shapermint = {
674
674
  lineHeight: '24px',
675
675
  color: '--colors-pallete-secondary-color',
676
676
  },
677
+ thankyouFooterText: {
678
+ fontSize: '14px',
679
+ fontWeight: '700',
680
+ lineHeight: '20px',
681
+ },
677
682
  textButton: {
678
683
  fontWeight: 500,
679
684
  lineHeight: 'normal',
680
685
  },
681
686
  deliveryDetails: {
687
+ title: {
688
+ fontSize: '1rem',
689
+ lineHeight: '1.5rem',
690
+ fontWeight: 700,
691
+ },
692
+ sectionTitle: {
693
+ fontSize: '0.875rem',
694
+ lineHeight: '1.375rem',
695
+ fontWeight: 700,
696
+ },
682
697
  note: {
683
- accentColor: '--colors-semantic-urgent-color',
698
+ accentColor: '#D3373C',
684
699
  color: '--colors-text-color',
685
- backgroundColor: '--colors-pallete-primary-20-color',
700
+ backgroundColor: '#FDF1EF',
701
+ },
702
+ sectionDetails: {
703
+ fontSize: '0.875rem',
704
+ lineHeight: '1.375rem',
705
+ fontWeight: 400,
686
706
  },
687
707
  },
688
708
  text: {
689
709
  orderHeader: {
690
710
  color: '--colors-pallete-primary-color',
691
711
  },
712
+ fitGuarantee: {
713
+ fontWeight: 'unset',
714
+ },
715
+ offerBanner: {
716
+ borderRadius: '0.125rem',
717
+ },
718
+ },
719
+ orderBar: {
720
+ backgroundColor: '#dfefeb',
721
+ fontColor: '--colors-shades-700-color',
722
+ },
723
+ banner: {
724
+ outlineColor: '--colors-semantic-urgent-color',
725
+ filledColor: '--colors-semantic-urgent-color',
726
+ fontColor: '--colors-shades-white-color',
727
+ },
728
+ offerTitleText: {
729
+ size: '18px',
730
+ weight: 700,
731
+ lineHeight: '1.7rem',
732
+ },
733
+ linePrice: {
734
+ color: '--colors-semantic-urgent-color',
735
+ badge: {
736
+ color: '--colors-semantic-urgent-color',
737
+ borderRadius: '8px',
738
+ },
739
+ },
740
+ divider: {
741
+ color: '--colors-pallete-secondary-soft-color',
742
+ },
743
+ checkout: {
744
+ paymentInformation: {
745
+ borderRadius: '8px',
746
+ },
747
+ creditCardSection: {
748
+ borderRadius: '8px',
749
+ },
750
+ },
751
+ upsell: {
752
+ banner: {
753
+ outlined: {
754
+ color: '--colors-semantic-urgent-color',
755
+ },
756
+ },
757
+ price: {
758
+ colors: {
759
+ regular: '--colors-shades-400-color',
760
+ deal: '--colors-semantic-urgent-color',
761
+ each: '--colors-shades-700-color',
762
+ badgeBG: '--colors-semantic-urgent-color',
763
+ badgeColor: '--colors-shades-white-color',
764
+ },
765
+ },
766
+ hurryTimeCard: {
767
+ backgroundColor: '#F7ECE4',
768
+ },
769
+ },
770
+ thankyou: {
771
+ emailSection: {
772
+ backgroundColor: '#FDF1EF',
773
+ },
774
+ socialIcon: {
775
+ color: '--colors-pallete-primary-color',
776
+ },
777
+ orderId: {
778
+ color: '--colors-pallete-primary-color',
779
+ },
780
+ },
781
+ hurryUp: {
782
+ borderRadius: 'unset',
783
+ },
784
+ qtyPicker: {
785
+ borderRadius: '0.5rem',
692
786
  },
693
787
  },
694
788
  typography: {
@@ -745,6 +839,14 @@ var shapermint = {
745
839
  fontSize: 18,
746
840
  lineHeight: '28px',
747
841
  },
842
+ heading7: {
843
+ fontSize: 20,
844
+ lineHeight: '28px',
845
+ },
846
+ heading8: {
847
+ fontSize: 18,
848
+ lineHeight: '28px',
849
+ },
748
850
  'body-regular': {
749
851
  fontSize: 16,
750
852
  lineHeight: '24px',
@@ -822,6 +924,13 @@ var shapermint = {
822
924
  src: 'AvenirNextLTPro-Regular.woff2',
823
925
  weight: 'normal',
824
926
  },
927
+ {
928
+ family: 'AvenirNextLTPro',
929
+ src: 'AvenirNextLTPro-It.otf',
930
+ weight: 'normal',
931
+ stretch: 'condensed',
932
+ style: 'italic',
933
+ },
825
934
  {
826
935
  family: 'AvenirNextLTPro',
827
936
  src: 'AvenirNextLTPro-Demi.otf',
@@ -898,12 +1007,23 @@ var shapermint = {
898
1007
  ],
899
1008
  },
900
1009
  assets: {
1010
+ cdn: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@1.3.1/common',
901
1011
  images: {
902
- favicon: 'https://cdn.shopify.com/s/files/1/2679/8624/files/shapermint_favicon-128x128.png',
1012
+ favicon: 'https://cdn.shopify.com/s/files/1/0021/4889/2732/files/Favicon_pink_196x_fedce07d-d19c-4ca4-a53a-5a55869cfc1e.png?v=1619463864',
903
1013
  logo: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/shapermint/shapermint_logo_black.svg',
904
1014
  logoSize: {
905
- width: '230',
906
- height: '46',
1015
+ width: '204',
1016
+ height: '35',
1017
+ },
1018
+ upsellLogo: {
1019
+ url: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/shapermint/shapermint_logo_black.svg',
1020
+ width: '210',
1021
+ height: '40',
1022
+ },
1023
+ tyLogo: {
1024
+ url: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/shapermint/shapermint_logo_black.svg',
1025
+ width: '192',
1026
+ height: '36',
907
1027
  },
908
1028
  },
909
1029
  },