@granto-umbrella/umbrella-components 3.0.34 → 3.0.36

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 (156) hide show
  1. package/README.md +165 -27
  2. package/dist/umbrella-components.css +1 -1
  3. package/dist/umbrella-components.es.js +28129 -29249
  4. package/dist/umbrella-components.umd.js +1234 -2181
  5. package/package.json +135 -106
  6. package/src/assets.d.ts +19 -19
  7. package/src/components/atoms/Badge/Badge.styles.ts +88 -86
  8. package/src/components/atoms/Badge/Badge.tsx +42 -44
  9. package/src/components/atoms/Badge/Badge.types.ts +15 -15
  10. package/src/components/atoms/Breadcrumb/Breadcrumb.styles.ts +43 -43
  11. package/src/components/atoms/Breadcrumb/Breadcrumb.tsx +46 -48
  12. package/src/components/atoms/Breadcrumb/Breadcrumb.types.ts +12 -12
  13. package/src/components/atoms/Button/Button.styles.ts +279 -280
  14. package/src/components/atoms/Button/Button.tsx +76 -76
  15. package/src/components/atoms/Button/Button.types.ts +28 -28
  16. package/src/components/atoms/Button/index.ts +1 -1
  17. package/src/components/atoms/Checkbox/Checkbox.styles.ts +72 -72
  18. package/src/components/atoms/Checkbox/Checkbox.tsx +36 -36
  19. package/src/components/atoms/Checkbox/Checkbox.types.ts +14 -14
  20. package/src/components/atoms/Checkbox/CheckboxGroup.tsx +30 -30
  21. package/src/components/atoms/Checkbox/CheckboxSelectAll.tsx +32 -32
  22. package/src/components/atoms/CodeInput/CodeInput.styles.tsx +38 -39
  23. package/src/components/atoms/CodeInput/CodeInput.tsx +13 -19
  24. package/src/components/atoms/CodeInput/CodeInput.types.ts +3 -3
  25. package/src/components/atoms/CodeInput/index.tsx +1 -1
  26. package/src/components/atoms/DropDownMenu/DropdownMenu.tsx +48 -48
  27. package/src/components/atoms/DropDownMenu/DropdownMenu.types.ts +15 -15
  28. package/src/components/atoms/DropDownMenu/index.tsx +5 -2
  29. package/src/components/atoms/ErrorMessage/ErrorMessage.styles.tsx +28 -28
  30. package/src/components/atoms/ErrorMessage/ErrorMessage.tsx +12 -12
  31. package/src/components/atoms/ErrorMessage/ErrorMessage.types.ts +6 -6
  32. package/src/components/atoms/ErrorMessage/index.tsx +1 -1
  33. package/src/components/atoms/Footer/Footer.styles.tsx +22 -22
  34. package/src/components/atoms/Footer/Footer.tsx +9 -9
  35. package/src/components/atoms/Footer/Footer.types.tsx +5 -5
  36. package/src/components/atoms/Footer/index.tsx +1 -1
  37. package/src/components/atoms/GenericContainer/GenericContainer.styles.tsx +21 -21
  38. package/src/components/atoms/GenericContainer/GenericContainer.tsx +9 -9
  39. package/src/components/atoms/GenericContainer/GenericContainer.types.ts +5 -5
  40. package/src/components/atoms/GenericContainer/index.tsx +1 -1
  41. package/src/components/atoms/Icon/Icon.styles.ts +11 -11
  42. package/src/components/atoms/Icon/Icon.tsx +22 -22
  43. package/src/components/atoms/Icon/Icon.types.ts +6 -6
  44. package/src/components/atoms/Icon/index.ts +1 -1
  45. package/src/components/atoms/Input/Input.styles.ts +106 -101
  46. package/src/components/atoms/Input/index.ts +1 -1
  47. package/src/components/atoms/Label/Label.tsx +16 -16
  48. package/src/components/atoms/Loading/Loading.styles.tsx +25 -25
  49. package/src/components/atoms/Loading/Loading.tsx +8 -8
  50. package/src/components/atoms/LogoContainer/LogoContainer.Types.tsx +5 -5
  51. package/src/components/atoms/LogoContainer/LogoContainer.styles.tsx +11 -11
  52. package/src/components/atoms/LogoContainer/LogoContainer.tsx +11 -11
  53. package/src/components/atoms/LogoContainer/index.tsx +1 -1
  54. package/src/components/atoms/ModalAviso/ModalAviso.styles.tsx +56 -56
  55. package/src/components/atoms/ModalAviso/ModalAviso.tsx +43 -37
  56. package/src/components/atoms/ModalAviso/ModalAviso.types.ts +5 -5
  57. package/src/components/atoms/ModalAviso/index.tsx +1 -1
  58. package/src/components/atoms/MultiSelect/MultiSelect.styles.tsx +100 -92
  59. package/src/components/atoms/MultiSelect/MultiSelect.tsx +346 -346
  60. package/src/components/atoms/MultiSelect/MultiSelect.types.ts +38 -38
  61. package/src/components/atoms/Pill/Pill.styles.ts +46 -46
  62. package/src/components/atoms/Pill/Pill.tsx +35 -36
  63. package/src/components/atoms/Pill/Pill.types.ts +14 -18
  64. package/src/components/atoms/RadioButton/RadioButton.styles.ts +44 -43
  65. package/src/components/atoms/RadioButton/RadioButton.tsx +31 -31
  66. package/src/components/atoms/ResendLink/ResendLink.styles.tsx +19 -20
  67. package/src/components/atoms/ResendLink/ResendLink.tsx +21 -21
  68. package/src/components/atoms/ResendLink/ResendLink.types.ts +8 -9
  69. package/src/components/atoms/ResendLink/index.tsx +1 -2
  70. package/src/components/atoms/Select/Select.styles.ts +153 -149
  71. package/src/components/atoms/Select/Select.tsx +52 -43
  72. package/src/components/atoms/Select/index.tsx +1 -1
  73. package/src/components/atoms/Subtitle/Subtitle.tsx +7 -7
  74. package/src/components/atoms/Subtitle/Subtitle.types.ts +5 -5
  75. package/src/components/atoms/Subtitle/index.tsx +1 -1
  76. package/src/components/atoms/Switch/Switch.tsx +25 -25
  77. package/src/components/atoms/TabBar/TabBar.styles.tsx +64 -57
  78. package/src/components/atoms/TabBar/index.tsx +2 -2
  79. package/src/components/atoms/Text/Text.styles.tsx +35 -35
  80. package/src/components/atoms/Text/Text.tsx +32 -31
  81. package/src/components/atoms/Text/Text.types.ts +8 -8
  82. package/src/components/atoms/Text/index.ts +1 -1
  83. package/src/components/atoms/Textarea/Textarea.styles.ts +52 -52
  84. package/src/components/atoms/Textarea/Textarea.tsx +31 -31
  85. package/src/components/atoms/Title/Title.tsx +7 -7
  86. package/src/components/atoms/Title/Title.types.ts +5 -5
  87. package/src/components/atoms/Title/index.tsx +1 -1
  88. package/src/components/molecules/BannerAjuda/BannerAjuda.styles.tsx +9 -9
  89. package/src/components/molecules/BannerAjuda/BannerAjuda.tsx +18 -19
  90. package/src/components/molecules/BannerAjuda/index.tsx +1 -1
  91. package/src/components/molecules/ButtonGroup/ButtonGroup.styles.ts +10 -10
  92. package/src/components/molecules/ButtonGroup/ButtonGroup.types.ts +22 -22
  93. package/src/components/molecules/Calendar/Calendar.styles.ts +143 -143
  94. package/src/components/molecules/Calendar/Calendar.tsx +31 -31
  95. package/src/components/molecules/CodeInputContainer/CodeInputContainer.styles.tsx +7 -7
  96. package/src/components/molecules/CodeInputContainer/CodeInputContainer.types.ts +13 -13
  97. package/src/components/molecules/CodeInputContainer/index.tsx +1 -3
  98. package/src/components/molecules/ExcludeModal/ExcludeModal.styles.tsx +123 -118
  99. package/src/components/molecules/ExcludeModal/ExcludeModal.tsx +48 -48
  100. package/src/components/molecules/ExcludeModal/ExcludeModal.types.ts +10 -10
  101. package/src/components/molecules/ExcludeModal/index.tsx +1 -1
  102. package/src/components/molecules/FieldSelector/FieldSelector.styles.ts +59 -0
  103. package/src/components/molecules/FieldSelector/FieldSelector.tsx +167 -0
  104. package/src/components/molecules/HighlightsCard/HighlightsCard.styles.tsx +67 -68
  105. package/src/components/molecules/HighlightsCard/HighlightsCard.tsx +35 -26
  106. package/src/components/molecules/HighlightsCard/HighlightsCard.types.ts +10 -10
  107. package/src/components/molecules/HighlightsCard/index.tsx +1 -1
  108. package/src/components/molecules/InsuranceCard/InsuranceCard.styles.tsx +237 -237
  109. package/src/components/molecules/InsuranceCard/index.tsx +1 -1
  110. package/src/components/molecules/PieChartComponent/PieChartComponent.styles.tsx +7 -8
  111. package/src/components/molecules/PieChartComponent/PieChartComponent.tsx +70 -73
  112. package/src/components/molecules/PieChartComponent/PieChartComponent.types.ts +11 -11
  113. package/src/components/molecules/PieChartComponent/index.tsx +1 -1
  114. package/src/components/molecules/Popover/Popover.styles.ts +66 -65
  115. package/src/components/molecules/Popover/Popover.tsx +23 -23
  116. package/src/components/molecules/RadioBoxGroup/RadioBoxGroup.styles.ts +11 -11
  117. package/src/components/molecules/RadioBoxGroup/RadioBoxGroup.tsx +43 -43
  118. package/src/components/molecules/RadioGroupField/RadioGroupField.styles.tsx +65 -64
  119. package/src/components/molecules/RadioGroupField/RadioGroupField.tsx +69 -69
  120. package/src/components/molecules/RadioGroupField/RadioGroupField.types.ts +17 -17
  121. package/src/components/molecules/RadioGroupField/index.tsx +1 -1
  122. package/src/components/molecules/RefuseModal/RefuseModal.styles.tsx +139 -139
  123. package/src/components/molecules/RefuseModal/RefuseModal.tsx +92 -76
  124. package/src/components/molecules/RefuseModal/RefuseModal.types.ts +15 -15
  125. package/src/components/molecules/RefuseModal/index.tsx +2 -2
  126. package/src/components/molecules/ResultsChart/ResultsChart.tsx +23 -19
  127. package/src/components/molecules/ResultsChart/ResultsChart.types.ts +3 -3
  128. package/src/components/molecules/ResultsChart/index.tsx +2 -2
  129. package/src/components/molecules/TabToggle/TabToggle.styles.ts +54 -54
  130. package/src/components/molecules/TabToggle/TabToggle.tsx +35 -35
  131. package/src/components/organisms/AlertDialog/AlertDialog.styles.tsx +61 -61
  132. package/src/components/organisms/AlertDialog/AlertDialog.tsx +70 -70
  133. package/src/components/organisms/Dialog/Dialog.styles.ts +107 -106
  134. package/src/components/organisms/Dialog/Dialog.tsx +69 -69
  135. package/src/components/organisms/DonutEmissionsChart/DonutEmissionsChart.styles.tsx +113 -113
  136. package/src/components/organisms/DonutEmissionsChart/DonutEmissionsChart.tsx +75 -71
  137. package/src/components/organisms/DonutEmissionsChart/DonutEmissionsChart.types.ts +9 -9
  138. package/src/components/organisms/DonutEmissionsChart/index.tsx +5 -2
  139. package/src/components/organisms/Form/Form.styles.ts +35 -35
  140. package/src/components/organisms/Form/Form.tsx +160 -160
  141. package/src/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.styles.tsx +115 -114
  142. package/src/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.tsx +89 -89
  143. package/src/components/organisms/ListagemUltimasEmissoes/ListagemUltimasEmissoes.types.ts +16 -16
  144. package/src/components/organisms/ListagemUltimasEmissoes/index.tsx +1 -1
  145. package/src/components/organisms/Navbar/Navbar.styles.tsx +243 -243
  146. package/src/global.d.ts +9 -9
  147. package/src/index.ts +2 -0
  148. package/src/lib/utils.ts +6 -6
  149. package/src/styles/tokens/borders.ts +17 -17
  150. package/src/styles/tokens/index.tsx +6 -6
  151. package/src/styles/tokens/radius.ts +22 -22
  152. package/src/styles/tokens/shadows.ts +22 -22
  153. package/src/styles/tokens/sizes.ts +60 -64
  154. package/src/types/radius.types.ts +1 -1
  155. package/src/types/shadows.types.ts +1 -1
  156. package/src/utils/renderHighlightsCard.tsx +21 -0
@@ -1,243 +1,243 @@
1
- import {
2
- primitiveColors,
3
- primitiveShadows,
4
- primitiveSizes,
5
- semanticBorders,
6
- semanticColors,
7
- semanticShadows,
8
- } from '../../../styles/tokens';
9
- import styled from 'styled-components';
10
- import { Search } from 'lucide-react';
11
- //
12
- export const NavbarContainer = styled.nav`
13
- height: 72px;
14
- display: flex;
15
- width: 100%;
16
- align-items: center;
17
- justify-content: space-between;
18
- padding: ${primitiveSizes.size.x2} ${primitiveSizes.size.x6};
19
- background-color: ${semanticColors.base.background};
20
- position: relative;
21
- `;
22
-
23
- export const LogoContainer = styled.div`
24
- display: flex;
25
- align-items: center;
26
- gap: ${primitiveSizes.size.x4};
27
- justify-content: center;
28
- `;
29
-
30
- const SvgBarra = () => (
31
- <svg
32
- width="1"
33
- height="34"
34
- viewBox="0 0 1 34"
35
- fill="none"
36
- xmlns="http://www.w3.org/2000/svg"
37
- >
38
- <path
39
- d="M0.5 0.5V33.5"
40
- stroke="#E0E3E8"
41
- strokeLinecap="round"
42
- strokeDasharray="1 1"
43
- />
44
- </svg>
45
- );
46
-
47
- export const BarraSeparadora = styled(SvgBarra)`
48
- width: 1px;
49
- height: 34px;
50
- margin: 0;
51
- `;
52
-
53
- export const Menu = styled.div`
54
- display: flex;
55
- align-items: center;
56
- gap: ${primitiveSizes.size.x6};
57
- margin-left: ${primitiveSizes.size.x4};
58
- align-items: center;
59
-
60
- a {
61
- text-decoration: none;
62
- color: ${semanticColors.base.text};
63
- font-family: var(--Font-Family-Brand, Mulish);
64
- font-size: ${primitiveSizes.size.x4};
65
- font-weight: 400;
66
- line-height: 125%;
67
- font-style: normal;
68
-
69
- &:hover {
70
- color: ${semanticColors.branding.text.accent.hover};
71
- }
72
- }
73
- `;
74
-
75
- export const SearchBar = styled.div`
76
- display: flex;
77
- align-items: center;
78
- border: ${semanticBorders.global.sm} solid ${primitiveColors.gray[200]};
79
- border-radius: ${primitiveSizes.size.x2};
80
- padding: ${primitiveSizes.size.x2} ${primitiveSizes.size.x4};
81
- width: 300px;
82
-
83
- input {
84
- border: none;
85
- outline: none;
86
- width: 100%;
87
- margin-left: ${primitiveSizes.size.x2};
88
- }
89
- `;
90
-
91
- export const SearchContainer = styled.div`
92
- display: flex;
93
- height: 40px;
94
- padding: ${primitiveSizes.size.x3};
95
- align-items: center;
96
- gap: ${primitiveSizes.size.x2};
97
- align-self: stretch;
98
- border-radius: ${primitiveSizes.size.x1};
99
- border: ${semanticBorders.global.sm} solid ${primitiveColors.gray[300]};
100
- background: ${semanticColors.base.background};
101
- position: relative;
102
-
103
- input {
104
- width: 100%;
105
- border: none;
106
- outline: none;
107
- color: ${semanticColors.global.text.onSurface.enabled};
108
- font-family: var(--Font-Family-Brand, Mulish);
109
- font-size: ${primitiveSizes.size.x4};
110
- font-style: normal;
111
- font-weight: 500;
112
- line-height: 115%;
113
- background: transparent;
114
-
115
- &::placeholder {
116
- color: #606060;
117
- }
118
-
119
- &:focus {
120
- outline: none;
121
- }
122
- }
123
-
124
- @media (max-width: 600px) {
125
- width: 100%;
126
- margin-left: 1.5rem;
127
- }
128
- `;
129
-
130
- export const SearchWrapper = styled.div`
131
- // alterado
132
- @media (max-width: 600px) {
133
- width: 100%;
134
- position: fixed;
135
- top: 0;
136
- background-color: ${semanticColors.base.background};
137
- height: 7rem;
138
- padding: ${primitiveSizes.size.x6} ${primitiveSizes.size.x12};
139
- display: flex;
140
- align-items: center;
141
- box-shadow: ${semanticShadows.shadow.md};
142
- z-index: 100;
143
- }
144
- `;
145
-
146
- export const SearchIconStyled = styled(Search)`
147
- color: ${semanticColors.global.text.onSurface.enabled};
148
- width: ${primitiveSizes.size.x4};
149
- height: ${primitiveSizes.size.x4};
150
- `;
151
-
152
- export const UserProfile = styled.div`
153
- display: flex;
154
- align-items: center;
155
- gap: ${primitiveSizes.size.x2};
156
- position: relative;
157
- border-left: 1px solid ${primitiveColors.gray[200]};
158
- padding-left: ${primitiveSizes.size.x4};
159
- margin-left: ${primitiveSizes.size.x6};
160
-
161
- .avatar {
162
- display: flex;
163
- width: ${primitiveSizes.size.x10};
164
- height: ${primitiveSizes.size.x10};
165
- align-items: center;
166
- gap: ${primitiveSizes.size.x2};
167
- aspect-ratio: 1/1;
168
- border-radius: 50%;
169
- background-color: ${primitiveColors.gray[300]};
170
- overflow: hidden;
171
-
172
- img {
173
- width: 100%;
174
- height: 100%;
175
- object-fit: cover;
176
- border-radius: 50%;
177
- border: ${semanticBorders.global.md} solid ${semanticColors.base.text};
178
- box-shadow: ${semanticShadows.shadow.md};
179
- }
180
- }
181
-
182
- .details {
183
- display: flex;
184
- flex-direction: column;
185
-
186
- span {
187
- color: ${semanticColors.base.text};
188
- font-family: var(--Font-Family-Brand, Mulish);
189
- font-size: ${primitiveSizes.size.x4};
190
- font-style: normal;
191
- font-weight: 500;
192
- line-height: 115%;
193
- }
194
-
195
- small {
196
- color: ${semanticColors.global.text.onSurface.enabled};
197
- font-family: var(--Font-Family-Brand, Mulish);
198
- font-size: ${primitiveSizes.size.x3};
199
- font-style: normal;
200
- font-weight: 500;
201
- line-height: 120%;
202
- color: ${semanticColors.global.text.onSurface.enabled};
203
- }
204
- }
205
-
206
- .initials {
207
- display: flex;
208
- width: 100%;
209
- height: 100%;
210
- color: ${primitiveColors.base.white};
211
- justify-content: center;
212
- align-items: center;
213
- font-size: ${primitiveSizes.size.x4};
214
- }
215
- `;
216
-
217
- export const Dropdown = styled.div`
218
- position: absolute;
219
- top: 100%;
220
- right: 0;
221
- background-color: ${semanticColors.base.background};
222
- box-shadow: ${primitiveShadows.shadow.md};
223
- border-radius: ${primitiveSizes.size.x2};
224
- overflow: hidden;
225
- z-index: 1000;
226
- `;
227
-
228
- export const DropdownItem = styled.div<{ $type?: 'default' | 'logout' }>`
229
- display: flex;
230
- align-items: center;
231
- flex-direction: row;
232
- padding: ${primitiveSizes.size.x3} ${primitiveSizes.size.x4};
233
- cursor: pointer;
234
- color: ${(props) =>
235
- props.$type === 'default'
236
- ? semanticColors.global.text.default.enabled
237
- : primitiveColors.red[600]};
238
-
239
- &:hover {
240
- background-color: ${primitiveColors.gray[200]};
241
- color: ${semanticColors.branding.text.accent.hover};
242
- }
243
- `;
1
+ import {
2
+ primitiveColors,
3
+ primitiveShadows,
4
+ primitiveSizes,
5
+ semanticBorders,
6
+ semanticColors,
7
+ semanticShadows,
8
+ } from '../../../styles/tokens';
9
+ import styled from 'styled-components';
10
+ import { Search } from 'lucide-react';
11
+ //
12
+ export const NavbarContainer = styled.nav`
13
+ height: 72px;
14
+ display: flex;
15
+ width: 100%;
16
+ align-items: center;
17
+ justify-content: space-between;
18
+ padding: ${primitiveSizes.size.x2} ${primitiveSizes.size.x6};
19
+ background-color: ${semanticColors.base.background};
20
+ position: relative;
21
+ `;
22
+
23
+ export const LogoContainer = styled.div`
24
+ display: flex;
25
+ align-items: center;
26
+ gap: ${primitiveSizes.size.x4};
27
+ justify-content: center;
28
+ `;
29
+
30
+ const SvgBarra = () => (
31
+ <svg
32
+ width="1"
33
+ height="34"
34
+ viewBox="0 0 1 34"
35
+ fill="none"
36
+ xmlns="http://www.w3.org/2000/svg"
37
+ >
38
+ <path
39
+ d="M0.5 0.5V33.5"
40
+ stroke="#E0E3E8"
41
+ strokeLinecap="round"
42
+ strokeDasharray="1 1"
43
+ />
44
+ </svg>
45
+ );
46
+
47
+ export const BarraSeparadora = styled(SvgBarra)`
48
+ width: 1px;
49
+ height: 34px;
50
+ margin: 0;
51
+ `;
52
+
53
+ export const Menu = styled.div`
54
+ display: flex;
55
+ align-items: center;
56
+ gap: ${primitiveSizes.size.x6};
57
+ margin-left: ${primitiveSizes.size.x4};
58
+ align-items: center;
59
+
60
+ a {
61
+ text-decoration: none;
62
+ color: ${semanticColors.base.text};
63
+ font-family: var(--Font-Family-Brand, Mulish);
64
+ font-size: ${primitiveSizes.size.x4};
65
+ font-weight: 400;
66
+ line-height: 125%;
67
+ font-style: normal;
68
+
69
+ &:hover {
70
+ color: ${semanticColors.branding.text.accent.hover};
71
+ }
72
+ }
73
+ `;
74
+
75
+ export const SearchBar = styled.div`
76
+ display: flex;
77
+ align-items: center;
78
+ border: ${semanticBorders.global.sm} solid ${primitiveColors.gray[200]};
79
+ border-radius: ${primitiveSizes.size.x2};
80
+ padding: ${primitiveSizes.size.x2} ${primitiveSizes.size.x4};
81
+ width: 300px;
82
+
83
+ input {
84
+ border: none;
85
+ outline: none;
86
+ width: 100%;
87
+ margin-left: ${primitiveSizes.size.x2};
88
+ }
89
+ `;
90
+
91
+ export const SearchContainer = styled.div`
92
+ display: flex;
93
+ height: 40px;
94
+ padding: ${primitiveSizes.size.x3};
95
+ align-items: center;
96
+ gap: ${primitiveSizes.size.x2};
97
+ align-self: stretch;
98
+ border-radius: ${primitiveSizes.size.x1};
99
+ border: ${semanticBorders.global.sm} solid ${primitiveColors.gray[300]};
100
+ background: ${semanticColors.base.background};
101
+ position: relative;
102
+
103
+ input {
104
+ width: 100%;
105
+ border: none;
106
+ outline: none;
107
+ color: ${semanticColors.global.text.onSurface.enabled};
108
+ font-family: var(--Font-Family-Brand, Mulish);
109
+ font-size: ${primitiveSizes.size.x4};
110
+ font-style: normal;
111
+ font-weight: 500;
112
+ line-height: 115%;
113
+ background: transparent;
114
+
115
+ &::placeholder {
116
+ color: #606060;
117
+ }
118
+
119
+ &:focus {
120
+ outline: none;
121
+ }
122
+ }
123
+
124
+ @media (max-width: 600px) {
125
+ width: 100%;
126
+ margin-left: 1.5rem;
127
+ }
128
+ `;
129
+
130
+ export const SearchWrapper = styled.div`
131
+ // alterado
132
+ @media (max-width: 600px) {
133
+ width: 100%;
134
+ position: fixed;
135
+ top: 0;
136
+ background-color: ${semanticColors.base.background};
137
+ height: 7rem;
138
+ padding: ${primitiveSizes.size.x6} ${primitiveSizes.size.x12};
139
+ display: flex;
140
+ align-items: center;
141
+ box-shadow: ${semanticShadows.shadow.md};
142
+ z-index: 100;
143
+ }
144
+ `;
145
+
146
+ export const SearchIconStyled = styled(Search)`
147
+ color: ${semanticColors.global.text.onSurface.enabled};
148
+ width: ${primitiveSizes.size.x4};
149
+ height: ${primitiveSizes.size.x4};
150
+ `;
151
+
152
+ export const UserProfile = styled.div`
153
+ display: flex;
154
+ align-items: center;
155
+ gap: ${primitiveSizes.size.x2};
156
+ position: relative;
157
+ border-left: 1px solid ${primitiveColors.gray[200]};
158
+ padding-left: ${primitiveSizes.size.x4};
159
+ margin-left: ${primitiveSizes.size.x6};
160
+
161
+ .avatar {
162
+ display: flex;
163
+ width: ${primitiveSizes.size.x10};
164
+ height: ${primitiveSizes.size.x10};
165
+ align-items: center;
166
+ gap: ${primitiveSizes.size.x2};
167
+ aspect-ratio: 1/1;
168
+ border-radius: 50%;
169
+ background-color: ${primitiveColors.gray[300]};
170
+ overflow: hidden;
171
+
172
+ img {
173
+ width: 100%;
174
+ height: 100%;
175
+ object-fit: cover;
176
+ border-radius: 50%;
177
+ border: ${semanticBorders.global.md} solid ${semanticColors.base.text};
178
+ box-shadow: ${semanticShadows.shadow.md};
179
+ }
180
+ }
181
+
182
+ .details {
183
+ display: flex;
184
+ flex-direction: column;
185
+
186
+ span {
187
+ color: ${semanticColors.base.text};
188
+ font-family: var(--Font-Family-Brand, Mulish);
189
+ font-size: ${primitiveSizes.size.x4};
190
+ font-style: normal;
191
+ font-weight: 500;
192
+ line-height: 115%;
193
+ }
194
+
195
+ small {
196
+ color: ${semanticColors.global.text.onSurface.enabled};
197
+ font-family: var(--Font-Family-Brand, Mulish);
198
+ font-size: ${primitiveSizes.size.x3};
199
+ font-style: normal;
200
+ font-weight: 500;
201
+ line-height: 120%;
202
+ color: ${semanticColors.global.text.onSurface.enabled};
203
+ }
204
+ }
205
+
206
+ .initials {
207
+ display: flex;
208
+ width: 100%;
209
+ height: 100%;
210
+ color: ${primitiveColors.base.white};
211
+ justify-content: center;
212
+ align-items: center;
213
+ font-size: ${primitiveSizes.size.x4};
214
+ }
215
+ `;
216
+
217
+ export const Dropdown = styled.div`
218
+ position: absolute;
219
+ top: 100%;
220
+ right: 0;
221
+ background-color: ${semanticColors.base.background};
222
+ box-shadow: ${primitiveShadows.shadow.md};
223
+ border-radius: ${primitiveSizes.size.x2};
224
+ overflow: hidden;
225
+ z-index: 1000;
226
+ `;
227
+
228
+ export const DropdownItem = styled.div<{ $type?: 'default' | 'logout' }>`
229
+ display: flex;
230
+ align-items: center;
231
+ flex-direction: row;
232
+ padding: ${primitiveSizes.size.x3} ${primitiveSizes.size.x4};
233
+ cursor: pointer;
234
+ color: ${(props) =>
235
+ props.$type === 'default'
236
+ ? semanticColors.global.text.default.enabled
237
+ : primitiveColors.red[600]};
238
+
239
+ &:hover {
240
+ background-color: ${primitiveColors.gray[200]};
241
+ color: ${semanticColors.branding.text.accent.hover};
242
+ }
243
+ `;
package/src/global.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- // src/global.d.ts
2
- // Allow import of any ".css" file
3
- declare module "*.css";
4
-
5
- // Allow import of any ".svg" file
6
- declare module "*.svg" {
7
- const content: string;
8
- export default content;
9
- }
1
+ // src/global.d.ts
2
+ // Allow import of any ".css" file
3
+ declare module '*.css';
4
+
5
+ // Allow import of any ".svg" file
6
+ declare module '*.svg' {
7
+ const content: string;
8
+ export default content;
9
+ }
package/src/index.ts CHANGED
@@ -41,6 +41,7 @@ import { BannerAjuda } from './components/molecules/BannerAjuda';
41
41
  import ButtonGroup from './components/molecules/ButtonGroup/ButtonGroup';
42
42
  import { Calendar } from './components/molecules/Calendar/Calendar';
43
43
  import { CodeInputContainer } from './components/molecules/CodeInputContainer';
44
+ import FieldSelector from './components/molecules/FieldSelector/FieldSelector';
44
45
  import { HighlightsCard } from './components/molecules/HighlightsCard/HighlightsCard';
45
46
  import { InsuranceCard } from './components/molecules/InsuranceCard/InsuranceCard';
46
47
  import { PieChartComponent } from './components/molecules/PieChartComponent/PieChartComponent';
@@ -83,6 +84,7 @@ export {
83
84
  RadioGroupField,
84
85
  PieChartComponent,
85
86
  AlertDialog,
87
+ FieldSelector,
86
88
  BannerAjuda,
87
89
  Badge,
88
90
  Breadcrumb,
package/src/lib/utils.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { clsx, type ClassValue } from "clsx"
2
- import { twMerge } from "tailwind-merge"
3
-
4
- export function cn(...inputs: ClassValue[]) {
5
- return twMerge(clsx(inputs))
6
- }
1
+ import { clsx, type ClassValue } from 'clsx';
2
+ import { twMerge } from 'tailwind-merge';
3
+
4
+ export function cn(...inputs: ClassValue[]) {
5
+ return twMerge(clsx(inputs));
6
+ }
@@ -1,17 +1,17 @@
1
- export const primitiveBorders = {
2
- width: {
3
- none: "0rem", // 0px
4
- half: "0.0625rem", // 1px
5
- x1: "0.125rem", // 2px
6
- x2: "0.25rem", // 4px
7
- },
8
- };
9
-
10
- export const semanticBorders = {
11
- global: {
12
- none: primitiveBorders.width.none,
13
- sm: primitiveBorders.width.half,
14
- md: primitiveBorders.width.x1,
15
- lg: primitiveBorders.width.x2,
16
- },
17
- };
1
+ export const primitiveBorders = {
2
+ width: {
3
+ none: '0rem', // 0px
4
+ half: '0.0625rem', // 1px
5
+ x1: '0.125rem', // 2px
6
+ x2: '0.25rem', // 4px
7
+ },
8
+ };
9
+
10
+ export const semanticBorders = {
11
+ global: {
12
+ none: primitiveBorders.width.none,
13
+ sm: primitiveBorders.width.half,
14
+ md: primitiveBorders.width.x1,
15
+ lg: primitiveBorders.width.x2,
16
+ },
17
+ };
@@ -1,6 +1,6 @@
1
- export { primitiveBorders, semanticBorders } from "./borders";
2
- export { primitiveColors, semanticColors } from "./colors";
3
- export { primitiveRadius, semanticRadius } from "./radius";
4
- export { primitiveShadows, semanticShadows } from "./shadows";
5
- export { primitiveSizes, semanticSizes } from "./sizes";
6
- export { typographyTokens } from "./typography";
1
+ export { primitiveBorders, semanticBorders } from './borders';
2
+ export { primitiveColors, semanticColors } from './colors';
3
+ export { primitiveRadius, semanticRadius } from './radius';
4
+ export { primitiveShadows, semanticShadows } from './shadows';
5
+ export { primitiveSizes, semanticSizes } from './sizes';
6
+ export { typographyTokens } from './typography';
@@ -1,22 +1,22 @@
1
- export const primitiveRadius = {
2
- radius: {
3
- half: "0.0625rem", // 1px
4
- x1: "0.125rem", // 2px
5
- x2: "0.25rem", // 4px
6
- x3: "0.5rem", // 8px
7
- x4: "1rem", // 16px
8
- x1000: "62.4375rem", // 9999px (Full radius, para bordas arredondadas completas)
9
- },
10
- };
11
-
12
- export const semanticRadius = {
13
- global: {
14
- radius: {
15
- sm: primitiveRadius.radius.x1, // 2px
16
- md: primitiveRadius.radius.x2, // 4px
17
- md2: primitiveRadius.radius.x3, // 8px
18
- lg: primitiveRadius.radius.x4, // 16px
19
- full: primitiveRadius.radius.x1000, // 9999px para bordas completamente arredondadas
20
- },
21
- },
22
- };
1
+ export const primitiveRadius = {
2
+ radius: {
3
+ half: '0.0625rem', // 1px
4
+ x1: '0.125rem', // 2px
5
+ x2: '0.25rem', // 4px
6
+ x3: '0.5rem', // 8px
7
+ x4: '1rem', // 16px
8
+ x1000: '62.4375rem', // 9999px (Full radius, para bordas arredondadas completas)
9
+ },
10
+ };
11
+
12
+ export const semanticRadius = {
13
+ global: {
14
+ radius: {
15
+ sm: primitiveRadius.radius.x1, // 2px
16
+ md: primitiveRadius.radius.x2, // 4px
17
+ md2: primitiveRadius.radius.x3, // 8px
18
+ lg: primitiveRadius.radius.x4, // 16px
19
+ full: primitiveRadius.radius.x1000, // 9999px para bordas completamente arredondadas
20
+ },
21
+ },
22
+ };
@@ -1,22 +1,22 @@
1
- import { semanticColors } from "./colors";
2
-
3
- export const primitiveShadows = {
4
- shadow: {
5
- primary: `0px 0px 0px 2px ${semanticColors.branding.border.enabled}`,
6
- danger: `0px 0px 0px 2px ${semanticColors.danger.border.enabled}`,
7
- none: "none",
8
- default:
9
- "0px 2px 4px rgba(158, 158, 158, 0.05), 0px 7px 7px rgba(158, 158, 158, 0.04), 0px 16px 9px rgba(158, 158, 158, 0.03), 0px 28px 11px rgba(158, 158, 158, 0.01), 0px 44px 12px rgba(158, 158, 158, 0)",
10
- md: "0px 2px 4px rgba(158, 158, 158, 0.2), 0px 8px 8px rgba(158, 158, 158, 0.17), 0px 17px 10px rgba(158, 158, 158, 0.1), 0px 30px 12px rgba(158, 158, 158, 0.03), 0px 47px 13px rgba(158, 158, 158, 0)",
11
- lg: "1px 1px 3px rgba(214, 214, 214, 0.2), 4px 4px 6px rgba(214, 214, 214, 0.17), 9px 10px 8px rgba(214, 214, 214, 0.1), 15px 17px 9px rgba(214, 214, 214, 0.03), 24px 26px 10px rgba(214, 214, 214, 0)",
12
- },
13
- };
14
-
15
- export const semanticShadows = {
16
- shadow: {
17
- none: primitiveShadows.shadow.none,
18
- default: primitiveShadows.shadow.default,
19
- md: primitiveShadows.shadow.md,
20
- lg: primitiveShadows.shadow.lg,
21
- },
22
- };
1
+ import { semanticColors } from './colors';
2
+
3
+ export const primitiveShadows = {
4
+ shadow: {
5
+ primary: `0px 0px 0px 2px ${semanticColors.branding.border.enabled}`,
6
+ danger: `0px 0px 0px 2px ${semanticColors.danger.border.enabled}`,
7
+ none: 'none',
8
+ default:
9
+ '0px 2px 4px rgba(158, 158, 158, 0.05), 0px 7px 7px rgba(158, 158, 158, 0.04), 0px 16px 9px rgba(158, 158, 158, 0.03), 0px 28px 11px rgba(158, 158, 158, 0.01), 0px 44px 12px rgba(158, 158, 158, 0)',
10
+ md: '0px 2px 4px rgba(158, 158, 158, 0.2), 0px 8px 8px rgba(158, 158, 158, 0.17), 0px 17px 10px rgba(158, 158, 158, 0.1), 0px 30px 12px rgba(158, 158, 158, 0.03), 0px 47px 13px rgba(158, 158, 158, 0)',
11
+ lg: '1px 1px 3px rgba(214, 214, 214, 0.2), 4px 4px 6px rgba(214, 214, 214, 0.17), 9px 10px 8px rgba(214, 214, 214, 0.1), 15px 17px 9px rgba(214, 214, 214, 0.03), 24px 26px 10px rgba(214, 214, 214, 0)',
12
+ },
13
+ };
14
+
15
+ export const semanticShadows = {
16
+ shadow: {
17
+ none: primitiveShadows.shadow.none,
18
+ default: primitiveShadows.shadow.default,
19
+ md: primitiveShadows.shadow.md,
20
+ lg: primitiveShadows.shadow.lg,
21
+ },
22
+ };