@trafilea/afrodita-components 5.0.0-beta.27 → 5.0.0-beta.270

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.
@@ -26,6 +26,32 @@ var __assign = function() {
26
26
  return __assign.apply(this, arguments);
27
27
  };
28
28
 
29
+ var CardSectionType;
30
+ (function (CardSectionType) {
31
+ CardSectionType[CardSectionType["Header"] = 0] = "Header";
32
+ CardSectionType[CardSectionType["Footer"] = 1] = "Footer";
33
+ })(CardSectionType || (CardSectionType = {}));
34
+ var ComponentSize;
35
+ (function (ComponentSize) {
36
+ ComponentSize["Large"] = "large";
37
+ ComponentSize["Medium"] = "medium";
38
+ ComponentSize["Small"] = "small";
39
+ ComponentSize["XSmall"] = "xsmall";
40
+ })(ComponentSize || (ComponentSize = {}));
41
+ var ComponentPosition;
42
+ (function (ComponentPosition) {
43
+ ComponentPosition[ComponentPosition["Top"] = 0] = "Top";
44
+ ComponentPosition[ComponentPosition["Bottom"] = 1] = "Bottom";
45
+ ComponentPosition[ComponentPosition["Left"] = 2] = "Left";
46
+ ComponentPosition[ComponentPosition["Right"] = 3] = "Right";
47
+ })(ComponentPosition || (ComponentPosition = {}));
48
+ var InputValidationType;
49
+ (function (InputValidationType) {
50
+ InputValidationType[InputValidationType["Error"] = 0] = "Error";
51
+ InputValidationType[InputValidationType["Valid"] = 1] = "Valid";
52
+ InputValidationType[InputValidationType["Empty"] = 2] = "Empty";
53
+ })(InputValidationType || (InputValidationType = {}));
54
+
29
55
  var truekind = {
30
56
  name: 'Truekind',
31
57
  fontSizes: [10, 12, 14, 16, 18, 20, 24, 30, 36, 42, 52, 60, 68, 72, 76],
@@ -103,6 +129,7 @@ var truekind = {
103
129
  50: { color: '#efefef', contrast: '--colors-shades-700-color' },
104
130
  100: { color: '#e5e5e5', contrast: '--colors-shades-700-color' },
105
131
  150: { color: '#d1d1d1', contrast: '--colors-shades-700-color' },
132
+ 175: { color: '#c4c4c4', contrast: '--colors-shades-700-color' },
106
133
  200: { color: '#bbbbbb', contrast: '--colors-shades-700-color' },
107
134
  250: { color: '#a6a6a6', contrast: '--colors-shades-700-color' },
108
135
  300: { color: '#9e9e9e', contrast: '--colors-shades-700-color' },
@@ -122,10 +149,10 @@ var truekind = {
122
149
  990: { color: '#0b0b0b', contrast: '--colors-shades-white-color' },
123
150
  },
124
151
  semantic: {
125
- positive: { color: '#2579C8', contrast: '--colors-shades-white-color' },
126
- urgent: { color: '#D82A2D', contrast: '--colors-shades-white-color' },
127
- attention: { color: '#FFA877', contrast: '--colors-shades-700-color' },
128
- informative: { color: '#686872', contrast: '--colors-shades-white-color' },
152
+ positive: { color: '#2f806a', contrast: '--colors-shades-white-color' },
153
+ urgent: { color: '#c64844', contrast: '--colors-shades-white-color' },
154
+ attention: { color: '#f2d96f', contrast: '--colors-shades-700-color' },
155
+ informative: { color: '#0a609b', contrast: '--colors-shades-700-color' },
129
156
  },
130
157
  border: {
131
158
  color: '',
@@ -195,6 +222,14 @@ var truekind = {
195
222
  fontSize: 18,
196
223
  lineHeight: '28px',
197
224
  },
225
+ heading7: {
226
+ fontSize: 20,
227
+ lineHeight: '28px',
228
+ },
229
+ heading8: {
230
+ fontSize: 18,
231
+ lineHeight: '28px',
232
+ },
198
233
  'body-regular': {
199
234
  fontSize: 16,
200
235
  lineHeight: '24px',
@@ -269,6 +304,10 @@ var truekind = {
269
304
  border: 'none',
270
305
  borderRadius: '1.5rem',
271
306
  fontWeight: 700,
307
+ lineHeight: 'normal',
308
+ letterSpacing: 'normal',
309
+ minWidth: 'unset',
310
+ minHeight: 'unset',
272
311
  size: {
273
312
  small: {
274
313
  fontSize: '1rem',
@@ -315,6 +354,12 @@ var truekind = {
315
354
  lineHeight: '1.5rem',
316
355
  border: '0.063rem solid #BBBBBB',
317
356
  boxShadow: '0 0 0 0.25rem #D9EEFF',
357
+ errorBorder: '0.09375rem solid #d3373c',
358
+ },
359
+ inputPlaceholder: {
360
+ fontSize: '0.875rem',
361
+ padding: '1.125rem 0.9375rem 0 0.9375rem',
362
+ focusBorder: '0.09375rem solid #1990c6',
318
363
  },
319
364
  inputCustom: {
320
365
  button: {
@@ -347,6 +392,12 @@ var truekind = {
347
392
  border: 'none',
348
393
  color: '#FFFFFF',
349
394
  },
395
+ noStock: {
396
+ fontWeight: 600,
397
+ background: 'transparent',
398
+ border: '1px solid #3a3a3a4d',
399
+ color: '#3a3a3a4d',
400
+ },
350
401
  disabled: {
351
402
  border: '0.063rem solid #E5E5E5',
352
403
  },
@@ -400,10 +451,13 @@ var truekind = {
400
451
  },
401
452
  card: {
402
453
  borderRadius: '1.5rem',
454
+ backgroundColor: '#f7ece4',
403
455
  },
404
456
  radio: {
405
457
  borderColor: '#686872',
406
458
  background: '#FFFFFF',
459
+ textSize: '16px',
460
+ lineHeight: 'normal',
407
461
  size: {
408
462
  large: {
409
463
  borderWidth: '0.094rem',
@@ -432,6 +486,7 @@ var truekind = {
432
486
  },
433
487
  },
434
488
  label: {
489
+ color: '--colors-pallete-secondary-color',
435
490
  fontSize: {
436
491
  small: '0.625rem',
437
492
  medium: '0.75rem',
@@ -540,11 +595,13 @@ var truekind = {
540
595
  fontWeight: 600,
541
596
  lineHeight: '1.125rem',
542
597
  padding: '0.5rem 0.75rem 0.5rem 1rem',
598
+ optionPadding: '0.75rem 1rem 0.625rem 0.75rem',
543
599
  color: '#292929',
544
600
  fill: '#292929',
545
601
  options: {
546
602
  borderColor: '#8BBEEA',
547
603
  color: '#292929',
604
+ borderRadius: '0.5rem',
548
605
  },
549
606
  },
550
607
  modal: {
@@ -558,6 +615,254 @@ var truekind = {
558
615
  selectedContrast: '--colors-semantic-positive-contrast',
559
616
  tagColor: '--colors-semantic-attention-color',
560
617
  },
618
+ slideNavigation: {
619
+ slideDots: {
620
+ unselectedDotColor: '--colors-shades-700-color:',
621
+ selectedDotColor: '--colors-shades-white-color',
622
+ dotsOpacity: 0.6,
623
+ },
624
+ },
625
+ beforeAfter: {
626
+ size: {
627
+ small: {
628
+ image: {
629
+ minHeight: 'auto',
630
+ minWidth: '92px',
631
+ mobile: {
632
+ minHeight: '138px',
633
+ minWidth: '128px',
634
+ },
635
+ },
636
+ imageContainer: {
637
+ maxWidth: '214px',
638
+ padding: '12px',
639
+ mobile: {
640
+ maxWidth: '286px',
641
+ },
642
+ },
643
+ userInfoText: {
644
+ fontSize: '12px',
645
+ mobile: {
646
+ fontSize: '12px',
647
+ },
648
+ },
649
+ },
650
+ medium: {
651
+ image: {
652
+ minHeight: '200px',
653
+ minWidth: '187px',
654
+ mobile: {
655
+ minHeight: '157px',
656
+ minWidth: '150px',
657
+ },
658
+ },
659
+ imageContainer: {
660
+ maxWidth: '427px',
661
+ padding: '18px',
662
+ mobile: {
663
+ maxWidth: '342px',
664
+ },
665
+ },
666
+ userInfoText: {
667
+ fontSize: '18px',
668
+ mobile: {
669
+ fontSize: '14px',
670
+ },
671
+ },
672
+ },
673
+ large: {
674
+ image: {
675
+ minHeight: '200px',
676
+ minWidth: '187px',
677
+ mobile: {
678
+ minHeight: '157px',
679
+ minWidth: '150px',
680
+ },
681
+ },
682
+ imageContainer: {
683
+ maxWidth: '427px',
684
+ padding: '18px',
685
+ mobile: {
686
+ maxWidth: '342px',
687
+ },
688
+ },
689
+ userInfoText: {
690
+ fontSize: '18px',
691
+ mobile: {
692
+ fontSize: '14px',
693
+ },
694
+ },
695
+ },
696
+ },
697
+ },
698
+ total: {
699
+ basicTotal: {
700
+ amount: {
701
+ color: '--colors-shades-550-color',
702
+ fontSize: '24px',
703
+ },
704
+ currency: {
705
+ color: '--colors-shades-550-color',
706
+ fontSize: '14px',
707
+ lineHeight: '22px',
708
+ alignSelf: 'flex-end',
709
+ },
710
+ savings: {
711
+ textFontSize: '16px',
712
+ textLineHeight: '24px',
713
+ amountFontSize: '16px',
714
+ amountFontWeight: 600,
715
+ amountLineHeight: '24px',
716
+ color: '--colors-semantic-positive-color',
717
+ },
718
+ },
719
+ },
720
+ subTotal: {
721
+ basicSubTotal: {
722
+ family: 'Jost',
723
+ size: '14px',
724
+ weight: 600,
725
+ lineHeight: '22px',
726
+ color: '--colors-shades-550-color',
727
+ },
728
+ },
729
+ pricing: {
730
+ priceLabel: {
731
+ price: {
732
+ size: ComponentSize.Small,
733
+ originalPriceColor: '--colors-shades-300-color',
734
+ actualPriceColor: '--colors-semantic-urgent-color',
735
+ },
736
+ },
737
+ },
738
+ orderSummary: {
739
+ headingTextAlign: 'center',
740
+ backgroundColor: '--colors-shades-10-color',
741
+ padding: '20px',
742
+ borderRadius: '--radius-regular',
743
+ maxWidth: '100%',
744
+ onMobile: {
745
+ maxWidth: '100%',
746
+ padding: '15px',
747
+ },
748
+ },
749
+ expressCheckout: {
750
+ button: {
751
+ borderRadius: '24px',
752
+ },
753
+ },
754
+ copyrightText: {
755
+ fontSize: '16px',
756
+ fontWeight: 400,
757
+ lineHeight: '24px',
758
+ color: '--colors-pallete-secondary-color',
759
+ },
760
+ thankyouFooterText: {
761
+ fontSize: '14px',
762
+ fontWeight: '700',
763
+ lineHeight: '20px',
764
+ },
765
+ textButton: {
766
+ fontWeight: 500,
767
+ lineHeight: 'normal',
768
+ },
769
+ deliveryDetails: {
770
+ title: {
771
+ fontSize: '1.25rem',
772
+ lineHeight: '1.75rem',
773
+ fontWeight: 600,
774
+ },
775
+ sectionTitle: {
776
+ fontSize: '1.125rem',
777
+ lineHeight: '1.25rem',
778
+ fontWeight: 700,
779
+ },
780
+ note: {
781
+ accentColor: '--colors-semantic-urgent-color',
782
+ color: '--colors-text-color',
783
+ backgroundColor: '--colors-pallete-primary-20-color',
784
+ },
785
+ sectionDetails: {
786
+ fontSize: '1rem',
787
+ lineHeight: '1.25rem',
788
+ fontWeight: 400,
789
+ },
790
+ },
791
+ text: {
792
+ orderHeader: {
793
+ color: '--colors-pallete-primary-color',
794
+ },
795
+ },
796
+ orderBar: {
797
+ backgroundColor: '#F7F4F2',
798
+ fontColor: '--colors-shades-700-color',
799
+ },
800
+ banner: {
801
+ outlineColor: '--colors-semantic-urgent-color',
802
+ filledColor: '--colors-semantic-urgent-color',
803
+ fontColor: '--colors-shades-white-color',
804
+ },
805
+ offerTitleText: {
806
+ size: '18px',
807
+ weight: 700,
808
+ lineHeight: '1.7rem',
809
+ },
810
+ linePrice: {
811
+ color: '--colors-semantic-urgent-color',
812
+ badge: {
813
+ color: '--colors-semantic-urgent-color',
814
+ borderRadius: '8px',
815
+ },
816
+ },
817
+ divider: {
818
+ color: '--colors-pallete-secondary-soft-color',
819
+ },
820
+ checkout: {
821
+ paymentInformation: {
822
+ borderRadius: '24px',
823
+ },
824
+ creditCardSection: {
825
+ borderRadius: '24px',
826
+ },
827
+ },
828
+ upsell: {
829
+ banner: {
830
+ outlined: {
831
+ color: '--colors-semantic-positive-color',
832
+ },
833
+ },
834
+ price: {
835
+ colors: {
836
+ regular: '--colors-shades-400-color',
837
+ deal: '--colors-pallete-primary-color',
838
+ each: '--colors-shades-700-color',
839
+ badgeBG: '--colors-pallete-primary-color',
840
+ badgeColor: '--colors-shades-white-color',
841
+ },
842
+ },
843
+ hurryTimeCard: {
844
+ backgroundColor: '#FCD7B8',
845
+ },
846
+ guaranteedFit: {
847
+ backgroundColor: '#FFF5E9',
848
+ },
849
+ },
850
+ thankyou: {
851
+ orderBanner: {
852
+ text: {
853
+ left: '53%',
854
+ },
855
+ },
856
+ emailSection: {
857
+ backgroundColor: '--colors-pallete-champagne-color',
858
+ },
859
+ socialIcon: {
860
+ color: '--colors-pallete-primary-color',
861
+ },
862
+ orderId: {
863
+ color: '--colors-shades-700-color',
864
+ },
865
+ },
561
866
  },
562
867
  fonts: {
563
868
  url: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/fonts/truekind',
@@ -683,7 +988,26 @@ var truekind = {
683
988
  assets: {
684
989
  images: {
685
990
  favicon: 'https://cdn.shopify.com/s/files/1/2679/8624/files/shapermint_favicon-128x128.png',
686
- logo: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/shapermint/shapermint_logo_black.svg',
991
+ logo: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/truekind/tkd_logo_checkout.svg',
992
+ logoSize: {
993
+ width: '204',
994
+ height: '35',
995
+ },
996
+ checkoutLogo: {
997
+ url: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/truekind/tkd_logo_checkout.svg',
998
+ width: '204',
999
+ height: '35',
1000
+ },
1001
+ upsellLogo: {
1002
+ url: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/truekind/tkd_logo_checkout.svg',
1003
+ width: '210',
1004
+ height: '40',
1005
+ },
1006
+ tyLogo: {
1007
+ url: 'https://cdn.jsdelivr.net/gh/trafilea/storefront-static@main/images/truekind/tkd_logo_checkout.svg',
1008
+ width: '276',
1009
+ height: '50',
1010
+ },
687
1011
  },
688
1012
  },
689
1013
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Trafilea's Design System",
4
4
  "author": "Trafilea",
5
5
  "repository": "https://github.com/trafilea/afrodita-components",
6
- "version": "5.0.0-beta.27",
6
+ "version": "5.0.0-beta.270",
7
7
  "private": false,
8
8
  "main": "build/index.js",
9
9
  "style": "build/index.css",
@@ -13,13 +13,14 @@
13
13
  "build"
14
14
  ],
15
15
  "dependencies": {
16
- "@ant-design/react-slick": "^0.28.4",
16
+ "@ant-design/react-slick": "^0.29.2",
17
17
  "@emotion/react": "^11.4.0",
18
18
  "@emotion/styled": "^11.3.0",
19
19
  "@headlessui/react": "^1.4.0",
20
20
  "@ribeirolabs/events": "3.0.0",
21
21
  "facepaint": "^1.2.1",
22
22
  "html-react-parser": "1.4.8",
23
+ "react-inner-image-zoom": "^3.0.2",
23
24
  "react-swipeable": "6.2.0",
24
25
  "typescript": "^4.3.5"
25
26
  },
@@ -85,6 +86,7 @@
85
86
  "@types/node": "^12.20.17",
86
87
  "@types/react": "^17.0.15",
87
88
  "@types/react-dom": "^17.0.9",
89
+ "@types/react-inner-image-zoom": "^3.0.0",
88
90
  "@types/react-slick": "^0.23.7",
89
91
  "chromatic": "^5.9.2",
90
92
  "eslint": "^7.31.0",