@trafilea/afrodita-components 5.0.0 → 6.0.0

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
  };
@@ -72,14 +72,14 @@ var revel = {
72
72
  pallete: {
73
73
  primary: {
74
74
  color: '#EFD6D2',
75
- contrast: '--colors-shades-700-color',
75
+ contrast: '--colors-shades-10-color',
76
76
  soft: {
77
77
  color: '#fcd9d1',
78
78
  contrast: '--colors-shades-700-color',
79
79
  },
80
80
  20: {
81
81
  color: '#FCF7F6',
82
- contrast: '--colors-shades-700-color',
82
+ contrast: '--colors-shades-10-color',
83
83
  soft: {
84
84
  color: '#fef7f6',
85
85
  contrast: '--colors-shades-700-color',
@@ -87,7 +87,7 @@ var revel = {
87
87
  },
88
88
  40: {
89
89
  color: '#F9EFED',
90
- contrast: '--colors-shades-700-color',
90
+ contrast: '--colors-shades-10-color',
91
91
  soft: {
92
92
  color: '#fef0ed',
93
93
  contrast: '--colors-shades-700-color',
@@ -95,7 +95,7 @@ var revel = {
95
95
  },
96
96
  60: {
97
97
  color: '#F5E6E4',
98
- contrast: '--colors-shades-700-color',
98
+ contrast: '--colors-shades-10-color',
99
99
  soft: {
100
100
  color: '#fde8e3',
101
101
  contrast: '--colors-shades-700-color',
@@ -103,7 +103,7 @@ var revel = {
103
103
  },
104
104
  80: {
105
105
  color: '#F2DEDB',
106
- contrast: '--colors-shades-700-color',
106
+ contrast: '--colors-shades-10-color',
107
107
  soft: {
108
108
  color: '#fde1da',
109
109
  contrast: '--colors-shades-700-color',
@@ -170,6 +170,26 @@ var revel = {
170
170
  contrast: '--colors-shades-700-color',
171
171
  },
172
172
  },
173
+ softpink: {
174
+ color: '#E3B7B2',
175
+ contrast: '--colors-shades-10-color',
176
+ },
177
+ earth: {
178
+ color: '#E7B8A6',
179
+ contrast: '--colors-shades-10-color',
180
+ },
181
+ salmon: {
182
+ color: '#DA918A',
183
+ contrast: '--colors-shades-10-color',
184
+ },
185
+ softocean: {
186
+ color: '#B5D6D0',
187
+ contrast: '--colors-shades-10-color',
188
+ },
189
+ darkcreamy: {
190
+ color: '#F5DECE',
191
+ contrast: '--colors-shades-10-color',
192
+ },
173
193
  },
174
194
  shades: {
175
195
  black: { color: '#000', contrast: '--colors-shades-white-color' },
@@ -179,6 +199,7 @@ var revel = {
179
199
  50: { color: '#efefef', contrast: '--colors-shades-700-color' },
180
200
  100: { color: '#e5e5e5', contrast: '--colors-shades-700-color' },
181
201
  150: { color: '#d1d1d1', contrast: '--colors-shades-700-color' },
202
+ 175: { color: '#c4c4c4', contrast: '--colors-shades-700-color' },
182
203
  200: { color: '#bbbbbb', contrast: '--colors-shades-700-color' },
183
204
  250: { color: '#a6a6a6', contrast: '--colors-shades-700-color' },
184
205
  300: { color: '#9e9e9e', contrast: '--colors-shades-700-color' },
@@ -242,7 +263,7 @@ var revel = {
242
263
  },
243
264
  primary: {
244
265
  active: {
245
- backgroundColor: '--component-stars-element-color',
266
+ backgroundColor: '#DA918A',
246
267
  color: '--colors-pallete-primary-contrast',
247
268
  },
248
269
  hover: {
@@ -513,12 +534,18 @@ var revel = {
513
534
  fontWeight: 600,
514
535
  lineHeight: '1.125rem',
515
536
  padding: '0.5rem 0.75rem 0.5rem 1rem',
537
+ optionPadding: '0.75rem 1rem 0.625rem 0.75rem',
516
538
  color: '--colors-shades-700-color',
517
539
  fill: '--colors-shades-700-color',
518
540
  options: {
519
541
  borderColor: '--colors-shades-700-color',
520
542
  color: '--colors-shades-700-color',
521
543
  borderRadius: '0.5rem',
544
+ borderRadiusV2: '0.5rem',
545
+ },
546
+ optionsWrapper: {
547
+ borderRadius: 'unset',
548
+ overflow: 'unset',
522
549
  },
523
550
  },
524
551
  modal: {
@@ -625,11 +652,7 @@ var revel = {
625
652
  alignSelf: 'flex-end',
626
653
  },
627
654
  savings: {
628
- textFontSize: '14px',
629
- textLineHeight: '22px',
630
- amountFontSize: '18px',
631
655
  amountFontWeight: 700,
632
- amountLineHeight: '20px',
633
656
  color: '--colors-semantic-positive-color',
634
657
  },
635
658
  },
@@ -657,16 +680,16 @@ var revel = {
657
680
  backgroundColor: '--colors-shades-10-color',
658
681
  padding: '20px',
659
682
  borderRadius: '--radius-regular',
660
- maxWidth: '',
683
+ maxWidth: '100%',
661
684
  onMobile: {
662
685
  maxWidth: '100%',
663
686
  padding: '15px',
664
687
  },
665
688
  },
666
689
  expressCheckout: {
667
- fontFamily: 'Jost',
668
- fontWeight: 600,
669
- lineHeight: '22px',
690
+ button: {
691
+ borderRadius: '4px',
692
+ },
670
693
  },
671
694
  copyrightText: {
672
695
  fontSize: '14px',
@@ -674,24 +697,116 @@ var revel = {
674
697
  lineHeight: '22px',
675
698
  color: '--colors-shades-400-color',
676
699
  },
700
+ thankyouFooterText: {
701
+ fontSize: '14px',
702
+ fontWeight: '700',
703
+ lineHeight: '20px',
704
+ },
677
705
  textButton: {
678
706
  fontWeight: 600,
679
707
  lineHeight: '22px',
680
708
  },
681
709
  deliveryDetails: {
710
+ title: {
711
+ fontSize: '1.25rem',
712
+ lineHeight: '1.75rem',
713
+ fontWeight: 600,
714
+ },
715
+ sectionTitle: {
716
+ fontSize: '1rem',
717
+ lineHeight: '1.25rem',
718
+ fontWeight: 600,
719
+ },
682
720
  note: {
683
721
  accentColor: '--colors-semantic-urgent-color',
684
722
  color: '--colors-text-color',
685
723
  backgroundColor: '#F5DECE',
686
724
  },
687
- SectionDetails: {
725
+ sectionDetails: {
688
726
  marginLeft: '1.813rem',
727
+ fontSize: '1rem',
728
+ lineHeight: '1.25rem',
729
+ fontWeight: 400,
689
730
  },
690
731
  },
691
732
  text: {
692
733
  orderHeader: {
693
734
  color: '--colors-shades-650-color',
694
735
  },
736
+ fitGuarantee: {
737
+ fontWeight: 'unset',
738
+ },
739
+ offerBanner: {
740
+ borderRadius: '0.125rem',
741
+ },
742
+ },
743
+ orderBar: {
744
+ backgroundColor: '#FAF7F2',
745
+ fontColor: '--colors-shades-700-color',
746
+ },
747
+ banner: {
748
+ outlineColor: '--colors-semantic-positive-color',
749
+ filledColor: '--colors-semantic-positive-color',
750
+ fontColor: '--colors-shades-white-color',
751
+ },
752
+ offerTitleText: {
753
+ size: '18px',
754
+ weight: 700,
755
+ lineHeight: '1.7rem',
756
+ },
757
+ linePrice: {
758
+ color: '--colors-semantic-urgent-color',
759
+ badge: {
760
+ color: '--colors-semantic-urgent-color',
761
+ borderRadius: '8px',
762
+ },
763
+ },
764
+ divider: {
765
+ color: '--colors-pallete-secondary-soft-color',
766
+ },
767
+ checkout: {
768
+ paymentInformation: {
769
+ borderRadius: '8px',
770
+ },
771
+ creditCardSection: {
772
+ borderRadius: '8px',
773
+ },
774
+ },
775
+ upsell: {
776
+ banner: {
777
+ outlined: {
778
+ color: '--colors-semantic-positive-color',
779
+ },
780
+ },
781
+ price: {
782
+ colors: {
783
+ regular: '--colors-shades-400-color',
784
+ deal: '#DA918A',
785
+ each: '--colors-shades-700-color',
786
+ badgeBG: '#DA918A',
787
+ badgeColor: '--colors-shades-white-color',
788
+ },
789
+ },
790
+ hurryTimeCard: {
791
+ backgroundColor: '#EFD6D2',
792
+ },
793
+ },
794
+ thankyou: {
795
+ emailSection: {
796
+ backgroundColor: '#F5DECE',
797
+ },
798
+ socialIcon: {
799
+ color: '#DA918A',
800
+ },
801
+ orderId: {
802
+ color: '--colors-shades-700-color',
803
+ },
804
+ },
805
+ hurryUp: {
806
+ borderRadius: 'unset',
807
+ },
808
+ qtyPicker: {
809
+ borderRadius: '0.5rem',
695
810
  },
696
811
  },
697
812
  typography: {
@@ -748,6 +863,14 @@ var revel = {
748
863
  fontSize: 18,
749
864
  lineHeight: '22px',
750
865
  },
866
+ heading7: {
867
+ fontSize: 20,
868
+ lineHeight: '28px',
869
+ },
870
+ heading8: {
871
+ fontSize: 18,
872
+ lineHeight: '28px',
873
+ },
751
874
  'body-regular': {
752
875
  fontSize: 16,
753
876
  lineHeight: '24px',
@@ -934,14 +1057,25 @@ var revel = {
934
1057
  ],
935
1058
  },
936
1059
  assets: {
1060
+ cdn: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@1.3.1/common',
937
1061
  images: {
938
- favicon: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/revel/revel_favicon.png',
1062
+ favicon: 'https://cdn11.bigcommerce.com/s-fjtlubkm6t/images/stencil/original/image-manager/favicon.png',
939
1063
  logo: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/revel/revelbeauty.svg',
940
1064
  logoSize: {
941
1065
  width: '342',
942
1066
  height: '22',
943
1067
  },
944
- logoMobile: 'https://cdn11.bigcommerce.com/s-fjtlubkm6t/images/stencil/original/image-manager/mobilelogo.png?t=1667205066&_gl=1*1rjjnv8*_ga*MTM1MjY2Nzk4OS4xNjYzMjQ5ODIy*_ga_WS2VZYPC6G*MTY2NzIwNDk0OS41Ni4xLjE2NjcyMDUwNTguMTQuMC4w',
1068
+ logoMobile: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/revel/revelbeauty_logo_mobile.svg',
1069
+ upsellLogo: {
1070
+ url: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/revel/revelbeauty.svg',
1071
+ width: '210',
1072
+ height: '60',
1073
+ },
1074
+ tyLogo: {
1075
+ url: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/revel/revelbeauty.svg',
1076
+ width: '410',
1077
+ height: '28',
1078
+ },
945
1079
  },
946
1080
  },
947
1081
  };