@granto-umbrella/umbrella-components 3.0.32 → 3.0.34

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 (54) hide show
  1. package/package.json +4 -5
  2. package/src/components/atoms/DatePickerInput/DatePicker.styles.ts +75 -75
  3. package/src/components/atoms/DatePickerInput/DatePickerInput.tsx +154 -154
  4. package/src/components/atoms/DropDownMenu/DropdownMenu.styles.tsx +106 -106
  5. package/src/components/atoms/ErrorMessage/ErrorMessage.styles.tsx +6 -6
  6. package/src/components/atoms/Footer/Footer.styles.tsx +1 -1
  7. package/src/components/atoms/GenericContainer/GenericContainer.styles.tsx +6 -6
  8. package/src/components/atoms/Input/Input.tsx +80 -80
  9. package/src/components/atoms/Input/Input.types.ts +21 -21
  10. package/src/components/atoms/Label/Label.styles.ts +16 -16
  11. package/src/components/atoms/Loading/Loading.styles.tsx +7 -5
  12. package/src/components/atoms/Loading/index.tsx +1 -1
  13. package/src/components/atoms/LogoContainer/LogoContainer.styles.tsx +4 -4
  14. package/src/components/atoms/ModalAviso/ModalAviso.styles.tsx +10 -9
  15. package/src/components/atoms/MultiSelect/index.tsx +1 -1
  16. package/src/components/atoms/RadioButton/RadioButton.types.ts +9 -9
  17. package/src/components/atoms/ResendLink/index.tsx +2 -1
  18. package/src/components/atoms/Select/Select.types.ts +19 -19
  19. package/src/components/atoms/Skeleton/Skeleton.styles.ts +32 -32
  20. package/src/components/atoms/Skeleton/Skeleton.tsx +43 -43
  21. package/src/components/atoms/Skeleton/Skeleton.types.ts +13 -13
  22. package/src/components/atoms/Subtitle/Subtitle.styles.tsx +21 -21
  23. package/src/components/atoms/Switch/Switch.styles.ts +59 -59
  24. package/src/components/atoms/Switch/Switch.types.ts +7 -7
  25. package/src/components/atoms/TabBar/TabBar.tsx +24 -24
  26. package/src/components/atoms/TabBar/TabBar.types.ts +11 -11
  27. package/src/components/atoms/Text/Text.styles.tsx +18 -6
  28. package/src/components/atoms/Text/Text.tsx +9 -4
  29. package/src/components/atoms/Text/Text.types.ts +2 -1
  30. package/src/components/atoms/Textarea/Textarea.types.ts +7 -7
  31. package/src/components/atoms/Title/Title.styles.tsx +17 -17
  32. package/src/components/molecules/BannerAjuda/BannerAjuda.types.ts +5 -5
  33. package/src/components/molecules/ButtonGroup/ButtonGroup.tsx +27 -27
  34. package/src/components/molecules/CodeInputContainer/CodeInputContainer.tsx +32 -32
  35. package/src/components/molecules/HighlightsCard/HighlightsCard.tsx +1 -1
  36. package/src/components/molecules/InsuranceCard/InsuranceCard.styles.tsx +1 -1
  37. package/src/components/molecules/InsuranceCard/InsuranceCard.tsx +455 -455
  38. package/src/components/molecules/InsuranceCard/InsuranceCard.types.ts +41 -41
  39. package/src/components/molecules/ResultsChart/ResultsChart.styles.tsx +26 -26
  40. package/src/components/molecules/TimeLine/TimeLine.mapper.ts +69 -69
  41. package/src/components/molecules/TimeLine/TimeLine.styles.ts +154 -154
  42. package/src/components/molecules/TimeLine/TimeLine.tsx +96 -96
  43. package/src/components/molecules/TimeLine/TimeLine.types.ts +124 -124
  44. package/src/components/organisms/AlertDialog/AlertDialog.types.ts +14 -14
  45. package/src/components/organisms/Navbar/Navbar.styles.tsx +1 -1
  46. package/src/components/organisms/Navbar/Navbar.tsx +118 -118
  47. package/src/components/organisms/Navbar/Navbar.types.ts +34 -34
  48. package/src/components/organisms/TimelineModal/TimelineModal.styles.ts +49 -49
  49. package/src/components/organisms/TimelineModal/TimelineModal.tsx +49 -49
  50. package/src/index.ts +157 -157
  51. package/src/styles/tokens/colors.ts +296 -296
  52. package/src/styles/tokens/typography.ts +161 -161
  53. package/src/types/colors.types.ts +21 -21
  54. package/src/types/sizes.types.ts +4 -4
@@ -1,161 +1,161 @@
1
- export const typographyTokens = {
2
- fontFamily: {
3
- base: "'Mulish', sans-serif",
4
- },
5
- fontSizes: {
6
- displayXL: '36px',
7
- displayL: '32px',
8
- displayM: '24px',
9
- headingL: '20px',
10
- headingM: '18px',
11
- headingS: '16px',
12
- bodyL: '20px',
13
- bodyM: '18px',
14
- bodyS: '16px',
15
- bodyXS: '14px',
16
- labelL: '18px',
17
- labelM: '16px',
18
- labelS: '14px',
19
- captionM: '12px',
20
- captionS: '10px',
21
- },
22
- lineHeights: {
23
- displayXL: '44px',
24
- displayL: '38px',
25
- displayM: '28px',
26
- headingL: '26px',
27
- headingM: '24px',
28
- headingS: '22px',
29
- bodyL: '26px',
30
- bodyM: '24px',
31
- bodyS: '22px',
32
- bodyXS: '18.2px',
33
- labelL: '24px',
34
- labelM: '22px',
35
- labelS: '18px',
36
- captionM: '16px',
37
- captionS: '14px',
38
- },
39
- fontWeights: {
40
- bold: '700',
41
- semibold: '600',
42
- medium: '500',
43
- regular: '400',
44
- },
45
- letterSpacing: {
46
- displayXL: '-3%',
47
- displayL: '-2%',
48
- default: '0%',
49
- },
50
- };
51
-
52
- export const textStyles = {
53
- displayXL: {
54
- fontSize: typographyTokens.fontSizes.displayXL,
55
- lineHeight: typographyTokens.lineHeights.displayXL,
56
- fontWeight: typographyTokens.fontWeights.semibold,
57
- letterSpacing: typographyTokens.letterSpacing.displayXL,
58
- },
59
- displayL: {
60
- fontSize: typographyTokens.fontSizes.displayL,
61
- lineHeight: typographyTokens.lineHeights.displayL,
62
- fontWeight: typographyTokens.fontWeights.semibold,
63
- letterSpacing: typographyTokens.letterSpacing.displayL,
64
- },
65
- displayM: {
66
- fontSize: typographyTokens.fontSizes.displayM,
67
- lineHeight: typographyTokens.lineHeights.displayM,
68
- fontWeight: typographyTokens.fontWeights.medium,
69
- letterSpacing: typographyTokens.letterSpacing.default,
70
- },
71
- headingL: {
72
- fontSize: typographyTokens.fontSizes.headingL,
73
- lineHeight: typographyTokens.lineHeights.headingL,
74
- fontWeight: typographyTokens.fontWeights.medium,
75
- letterSpacing: typographyTokens.letterSpacing.default,
76
- },
77
- headingM: {
78
- fontSize: typographyTokens.fontSizes.headingM,
79
- lineHeight: typographyTokens.lineHeights.headingM,
80
- fontWeight: typographyTokens.fontWeights.medium,
81
- letterSpacing: typographyTokens.letterSpacing.default,
82
- },
83
- headingS: {
84
- fontSize: typographyTokens.fontSizes.headingS,
85
- lineHeight: typographyTokens.lineHeights.headingS,
86
- fontWeight: typographyTokens.fontWeights.medium,
87
- letterSpacing: typographyTokens.letterSpacing.default,
88
- },
89
- bodyL: {
90
- fontSize: typographyTokens.fontSizes.bodyL,
91
- lineHeight: typographyTokens.lineHeights.bodyL,
92
- fontWeight: typographyTokens.fontWeights.medium,
93
- letterSpacing: typographyTokens.letterSpacing.default,
94
- },
95
- bodyM: {
96
- fontSize: typographyTokens.fontSizes.bodyM,
97
- lineHeight: typographyTokens.lineHeights.bodyM,
98
- fontWeight: typographyTokens.fontWeights.medium,
99
- letterSpacing: typographyTokens.letterSpacing.default,
100
- },
101
- bodyS: {
102
- fontSize: typographyTokens.fontSizes.bodyS,
103
- lineHeight: typographyTokens.lineHeights.bodyS,
104
- fontWeight: typographyTokens.fontWeights.medium,
105
- letterSpacing: typographyTokens.letterSpacing.default,
106
- },
107
- bodyS_semibold: {
108
- fontSize: typographyTokens.fontSizes.bodyS,
109
- lineHeight: typographyTokens.lineHeights.bodyS,
110
- fontWeight: typographyTokens.fontWeights.semibold,
111
- letterSpacing: typographyTokens.letterSpacing.default,
112
- },
113
- bodyXS: {
114
- fontSize: typographyTokens.fontSizes.bodyXS,
115
- lineHeight: typographyTokens.lineHeights.bodyXS,
116
- fontWeight: typographyTokens.fontWeights.medium,
117
- letterSpacing: typographyTokens.letterSpacing.default,
118
- },
119
- bodyXS_semibold: {
120
- fontSize: typographyTokens.fontSizes.bodyXS,
121
- lineHeight: typographyTokens.lineHeights.bodyXS,
122
- fontWeight: typographyTokens.fontWeights.semibold,
123
- letterSpacing: typographyTokens.letterSpacing.default,
124
- },
125
- labelL: {
126
- fontSize: typographyTokens.fontSizes.labelL,
127
- lineHeight: typographyTokens.lineHeights.labelL,
128
- fontWeight: typographyTokens.fontWeights.semibold,
129
- letterSpacing: typographyTokens.letterSpacing.default,
130
- },
131
- labelM_regular: {
132
- fontSize: typographyTokens.fontSizes.labelM,
133
- lineHeight: typographyTokens.lineHeights.labelM,
134
- fontWeight: typographyTokens.fontWeights.regular,
135
- letterSpacing: typographyTokens.letterSpacing.default,
136
- },
137
- labelM_medium: {
138
- fontSize: typographyTokens.fontSizes.labelM,
139
- lineHeight: typographyTokens.lineHeights.labelM,
140
- fontWeight: typographyTokens.fontWeights.medium,
141
- letterSpacing: typographyTokens.letterSpacing.default,
142
- },
143
- labelS: {
144
- fontSize: typographyTokens.fontSizes.labelS,
145
- lineHeight: typographyTokens.lineHeights.labelS,
146
- fontWeight: typographyTokens.fontWeights.medium,
147
- letterSpacing: typographyTokens.letterSpacing.default,
148
- },
149
- captionM: {
150
- fontSize: typographyTokens.fontSizes.captionM,
151
- lineHeight: typographyTokens.lineHeights.captionM,
152
- fontWeight: typographyTokens.fontWeights.medium,
153
- letterSpacing: typographyTokens.letterSpacing.default,
154
- },
155
- captionS: {
156
- fontSize: typographyTokens.fontSizes.captionS,
157
- lineHeight: typographyTokens.lineHeights.captionS,
158
- fontWeight: typographyTokens.fontWeights.medium,
159
- letterSpacing: typographyTokens.letterSpacing.default,
160
- },
161
- };
1
+ export const typographyTokens = {
2
+ fontFamily: {
3
+ base: "'Mulish', sans-serif",
4
+ },
5
+ fontSizes: {
6
+ displayXL: '36px',
7
+ displayL: '32px',
8
+ displayM: '24px',
9
+ headingL: '20px',
10
+ headingM: '18px',
11
+ headingS: '16px',
12
+ bodyL: '20px',
13
+ bodyM: '18px',
14
+ bodyS: '16px',
15
+ bodyXS: '14px',
16
+ labelL: '18px',
17
+ labelM: '16px',
18
+ labelS: '14px',
19
+ captionM: '12px',
20
+ captionS: '10px',
21
+ },
22
+ lineHeights: {
23
+ displayXL: '44px',
24
+ displayL: '38px',
25
+ displayM: '28px',
26
+ headingL: '26px',
27
+ headingM: '24px',
28
+ headingS: '22px',
29
+ bodyL: '26px',
30
+ bodyM: '24px',
31
+ bodyS: '22px',
32
+ bodyXS: '18.2px',
33
+ labelL: '24px',
34
+ labelM: '22px',
35
+ labelS: '18px',
36
+ captionM: '16px',
37
+ captionS: '14px',
38
+ },
39
+ fontWeights: {
40
+ bold: '700',
41
+ semibold: '600',
42
+ medium: '500',
43
+ regular: '400',
44
+ },
45
+ letterSpacing: {
46
+ displayXL: '-3%',
47
+ displayL: '-2%',
48
+ default: '0%',
49
+ },
50
+ };
51
+
52
+ export const textStyles = {
53
+ displayXL: {
54
+ fontSize: typographyTokens.fontSizes.displayXL,
55
+ lineHeight: typographyTokens.lineHeights.displayXL,
56
+ fontWeight: typographyTokens.fontWeights.semibold,
57
+ letterSpacing: typographyTokens.letterSpacing.displayXL,
58
+ },
59
+ displayL: {
60
+ fontSize: typographyTokens.fontSizes.displayL,
61
+ lineHeight: typographyTokens.lineHeights.displayL,
62
+ fontWeight: typographyTokens.fontWeights.semibold,
63
+ letterSpacing: typographyTokens.letterSpacing.displayL,
64
+ },
65
+ displayM: {
66
+ fontSize: typographyTokens.fontSizes.displayM,
67
+ lineHeight: typographyTokens.lineHeights.displayM,
68
+ fontWeight: typographyTokens.fontWeights.medium,
69
+ letterSpacing: typographyTokens.letterSpacing.default,
70
+ },
71
+ headingL: {
72
+ fontSize: typographyTokens.fontSizes.headingL,
73
+ lineHeight: typographyTokens.lineHeights.headingL,
74
+ fontWeight: typographyTokens.fontWeights.medium,
75
+ letterSpacing: typographyTokens.letterSpacing.default,
76
+ },
77
+ headingM: {
78
+ fontSize: typographyTokens.fontSizes.headingM,
79
+ lineHeight: typographyTokens.lineHeights.headingM,
80
+ fontWeight: typographyTokens.fontWeights.medium,
81
+ letterSpacing: typographyTokens.letterSpacing.default,
82
+ },
83
+ headingS: {
84
+ fontSize: typographyTokens.fontSizes.headingS,
85
+ lineHeight: typographyTokens.lineHeights.headingS,
86
+ fontWeight: typographyTokens.fontWeights.medium,
87
+ letterSpacing: typographyTokens.letterSpacing.default,
88
+ },
89
+ bodyL: {
90
+ fontSize: typographyTokens.fontSizes.bodyL,
91
+ lineHeight: typographyTokens.lineHeights.bodyL,
92
+ fontWeight: typographyTokens.fontWeights.medium,
93
+ letterSpacing: typographyTokens.letterSpacing.default,
94
+ },
95
+ bodyM: {
96
+ fontSize: typographyTokens.fontSizes.bodyM,
97
+ lineHeight: typographyTokens.lineHeights.bodyM,
98
+ fontWeight: typographyTokens.fontWeights.medium,
99
+ letterSpacing: typographyTokens.letterSpacing.default,
100
+ },
101
+ bodyS: {
102
+ fontSize: typographyTokens.fontSizes.bodyS,
103
+ lineHeight: typographyTokens.lineHeights.bodyS,
104
+ fontWeight: typographyTokens.fontWeights.medium,
105
+ letterSpacing: typographyTokens.letterSpacing.default,
106
+ },
107
+ bodyS_semibold: {
108
+ fontSize: typographyTokens.fontSizes.bodyS,
109
+ lineHeight: typographyTokens.lineHeights.bodyS,
110
+ fontWeight: typographyTokens.fontWeights.semibold,
111
+ letterSpacing: typographyTokens.letterSpacing.default,
112
+ },
113
+ bodyXS: {
114
+ fontSize: typographyTokens.fontSizes.bodyXS,
115
+ lineHeight: typographyTokens.lineHeights.bodyXS,
116
+ fontWeight: typographyTokens.fontWeights.medium,
117
+ letterSpacing: typographyTokens.letterSpacing.default,
118
+ },
119
+ bodyXS_semibold: {
120
+ fontSize: typographyTokens.fontSizes.bodyXS,
121
+ lineHeight: typographyTokens.lineHeights.bodyXS,
122
+ fontWeight: typographyTokens.fontWeights.semibold,
123
+ letterSpacing: typographyTokens.letterSpacing.default,
124
+ },
125
+ labelL: {
126
+ fontSize: typographyTokens.fontSizes.labelL,
127
+ lineHeight: typographyTokens.lineHeights.labelL,
128
+ fontWeight: typographyTokens.fontWeights.semibold,
129
+ letterSpacing: typographyTokens.letterSpacing.default,
130
+ },
131
+ labelM_regular: {
132
+ fontSize: typographyTokens.fontSizes.labelM,
133
+ lineHeight: typographyTokens.lineHeights.labelM,
134
+ fontWeight: typographyTokens.fontWeights.regular,
135
+ letterSpacing: typographyTokens.letterSpacing.default,
136
+ },
137
+ labelM_medium: {
138
+ fontSize: typographyTokens.fontSizes.labelM,
139
+ lineHeight: typographyTokens.lineHeights.labelM,
140
+ fontWeight: typographyTokens.fontWeights.medium,
141
+ letterSpacing: typographyTokens.letterSpacing.default,
142
+ },
143
+ labelS: {
144
+ fontSize: typographyTokens.fontSizes.labelS,
145
+ lineHeight: typographyTokens.lineHeights.labelS,
146
+ fontWeight: typographyTokens.fontWeights.medium,
147
+ letterSpacing: typographyTokens.letterSpacing.default,
148
+ },
149
+ captionM: {
150
+ fontSize: typographyTokens.fontSizes.captionM,
151
+ lineHeight: typographyTokens.lineHeights.captionM,
152
+ fontWeight: typographyTokens.fontWeights.medium,
153
+ letterSpacing: typographyTokens.letterSpacing.default,
154
+ },
155
+ captionS: {
156
+ fontSize: typographyTokens.fontSizes.captionS,
157
+ lineHeight: typographyTokens.lineHeights.captionS,
158
+ fontWeight: typographyTokens.fontWeights.medium,
159
+ letterSpacing: typographyTokens.letterSpacing.default,
160
+ },
161
+ };
@@ -1,21 +1,21 @@
1
- interface ColorSet {
2
- [key: number]: string;
3
- }
4
-
5
- export interface NestedColorTokens {
6
- [key: string]: string | NestedColorTokens;
7
- }
8
-
9
- export interface PrimitiveColors {
10
- base: {
11
- white: string;
12
- black: string;
13
- };
14
- gray: ColorSet;
15
- purple: ColorSet;
16
- green: ColorSet;
17
- red: ColorSet;
18
- blue: ColorSet;
19
- orange: ColorSet;
20
- yellow: ColorSet;
21
- }
1
+ interface ColorSet {
2
+ [key: number]: string;
3
+ }
4
+
5
+ export interface NestedColorTokens {
6
+ [key: string]: string | NestedColorTokens;
7
+ }
8
+
9
+ export interface PrimitiveColors {
10
+ base: {
11
+ white: string;
12
+ black: string;
13
+ };
14
+ gray: ColorSet;
15
+ purple: ColorSet;
16
+ green: ColorSet;
17
+ red: ColorSet;
18
+ blue: ColorSet;
19
+ orange: ColorSet;
20
+ yellow: ColorSet;
21
+ }
@@ -1,4 +1,4 @@
1
- export type SizeValue = {
2
- value: string;
3
- hint: string;
4
- };
1
+ export type SizeValue = {
2
+ value: string;
3
+ hint: string;
4
+ };