norma-library 0.4.1 → 0.4.3

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 (138) hide show
  1. package/dist/components/button/button.d.ts +3 -0
  2. package/dist/components/button/index.d.ts +1 -0
  3. package/dist/components/{Button → button}/types.d.ts +18 -18
  4. package/dist/components/card/card-header.d.ts +3 -0
  5. package/dist/components/card/card.d.ts +3 -0
  6. package/dist/components/card/index.d.ts +1 -0
  7. package/dist/components/card/styles.d.ts +811 -0
  8. package/dist/components/{Card → card}/types.d.ts +12 -12
  9. package/dist/components/checkbox/checkbox.d.ts +3 -0
  10. package/dist/components/checkbox/index.d.ts +1 -0
  11. package/dist/components/{Checkbox → checkbox}/types.d.ts +23 -23
  12. package/dist/components/icon/default.d.ts +210 -0
  13. package/dist/components/icon/defaultIcon.d.ts +5 -0
  14. package/dist/components/icon/icons-ia.d.ts +71 -0
  15. package/dist/components/icon/index.d.ts +234 -0
  16. package/dist/components/icon/norma.d.ts +30 -0
  17. package/dist/components/{Icon/NormaIcon.d.ts → icon/normaIcon.d.ts} +13 -13
  18. package/dist/components/icon/styles.d.ts +481 -0
  19. package/dist/components/{Icon → icon}/svg.d.ts +6 -6
  20. package/dist/components/{Icon → icon}/types.d.ts +12 -12
  21. package/dist/components/index.d.ts +8 -19
  22. package/dist/components/modal/index.d.ts +1 -0
  23. package/dist/components/{Modal/Modal.d.ts → modal/modal.d.ts} +3 -4
  24. package/dist/components/modal/modalFooter.d.ts +3 -0
  25. package/dist/components/modal/modalHeader.d.ts +3 -0
  26. package/dist/components/modal/styles.d.ts +540 -0
  27. package/dist/components/{Modal → modal}/types.d.ts +27 -24
  28. package/dist/components/progress-bar/index.d.ts +1 -0
  29. package/dist/components/{ProgressBar/ProgressBar.d.ts → progress-bar/progress-bar.d.ts} +7 -8
  30. package/dist/components/progress-bar/styles.d.ts +272 -0
  31. package/dist/components/{ProgressBar → progress-bar}/types.d.ts +22 -22
  32. package/dist/components/radio/index.d.ts +1 -0
  33. package/dist/components/radio/radio.d.ts +3 -0
  34. package/dist/components/{Radio → radio}/types.d.ts +16 -16
  35. package/dist/components/tag/index.d.ts +1 -0
  36. package/dist/components/{Tag/Tag.d.ts → tag/tag.d.ts} +3 -4
  37. package/dist/components/{Tag → tag}/types.d.ts +25 -25
  38. package/dist/components/textfield/index.d.ts +1 -0
  39. package/dist/components/textfield/textfield.d.ts +3 -0
  40. package/dist/components/{TextField → textfield}/types.d.ts +42 -42
  41. package/dist/helpers/clients.d.ts +5 -0
  42. package/dist/helpers/colors.d.ts +174 -0
  43. package/dist/helpers/index.d.ts +3 -0
  44. package/dist/helpers/sizes.d.ts +6 -0
  45. package/dist/helpers/variants.d.ts +2 -0
  46. package/dist/index.d.ts +1 -1
  47. package/dist/index.js +8 -0
  48. package/dist/norma-library.cjs.development.js +1286 -0
  49. package/dist/norma-library.cjs.development.js.map +1 -0
  50. package/dist/norma-library.cjs.production.min.js +2 -0
  51. package/dist/norma-library.cjs.production.min.js.map +1 -0
  52. package/dist/norma-library.esm.js +1274 -0
  53. package/dist/norma-library.esm.js.map +1 -0
  54. package/package.json +55 -86
  55. package/src/components/button/button.stories.tsx +44 -0
  56. package/src/components/button/button.tsx +18 -0
  57. package/src/components/button/index.ts +1 -0
  58. package/src/components/button/types.ts +48 -0
  59. package/src/components/card/card-header.tsx +8 -0
  60. package/src/components/card/card.stories.tsx +28 -0
  61. package/src/components/card/card.tsx +13 -0
  62. package/src/components/card/index.ts +1 -0
  63. package/src/components/card/styles.tsx +29 -0
  64. package/src/components/card/types.ts +14 -0
  65. package/src/components/checkbox/checkbox.stories.tsx +66 -0
  66. package/src/components/checkbox/checkbox.tsx +13 -0
  67. package/src/components/checkbox/index.ts +1 -0
  68. package/src/components/checkbox/types.ts +30 -0
  69. package/src/components/icon/default.tsx +1459 -0
  70. package/src/components/icon/defaultIcon.tsx +82 -0
  71. package/src/components/icon/icon.stories.tsx +44 -0
  72. package/src/components/icon/icons-ia.tsx +107 -0
  73. package/src/components/icon/index.ts +11 -0
  74. package/src/components/icon/norma.tsx +523 -0
  75. package/src/components/icon/normaIcon.tsx +94 -0
  76. package/src/components/icon/styles.ts +11 -0
  77. package/src/components/icon/svg.tsx +24 -0
  78. package/src/components/icon/types.ts +14 -0
  79. package/src/components/index.ts +8 -0
  80. package/src/components/modal/index.ts +1 -0
  81. package/src/components/modal/modal.stories.tsx +55 -0
  82. package/src/components/modal/modal.tsx +42 -0
  83. package/src/components/modal/modalFooter.tsx +32 -0
  84. package/src/components/modal/modalHeader.tsx +46 -0
  85. package/src/components/modal/styles.tsx +13 -0
  86. package/src/components/modal/types.ts +47 -0
  87. package/src/components/progress-bar/index.ts +1 -0
  88. package/src/components/progress-bar/progress-bar.stories.tsx +68 -0
  89. package/src/components/progress-bar/progress-bar.tsx +38 -0
  90. package/src/components/progress-bar/styles.tsx +27 -0
  91. package/src/components/progress-bar/types.ts +35 -0
  92. package/src/components/radio/index.ts +1 -0
  93. package/src/components/radio/radio.stories.tsx +150 -0
  94. package/src/components/radio/radio.tsx +13 -0
  95. package/src/components/radio/types.ts +27 -0
  96. package/src/components/tag/index.ts +1 -0
  97. package/src/components/tag/tag.stories.tsx +80 -0
  98. package/src/components/tag/tag.tsx +13 -0
  99. package/src/components/tag/types.ts +47 -0
  100. package/src/components/textfield/index.ts +1 -0
  101. package/src/components/textfield/textfield.stories.tsx +376 -0
  102. package/src/components/textfield/textfield.tsx +23 -0
  103. package/src/components/textfield/types.ts +93 -0
  104. package/src/helpers/clients.ts +6 -0
  105. package/src/helpers/colors.ts +209 -0
  106. package/src/helpers/index.ts +3 -0
  107. package/src/helpers/sizes.ts +26 -0
  108. package/src/helpers/variants.ts +3 -0
  109. package/src/index.tsx +1 -0
  110. package/dist/components/Button/Button.d.ts +0 -4
  111. package/dist/components/Button/index.d.ts +0 -2
  112. package/dist/components/Card/Card.d.ts +0 -4
  113. package/dist/components/Card/CardHeader.d.ts +0 -4
  114. package/dist/components/Card/index.d.ts +0 -4
  115. package/dist/components/Card/styles.d.ts +0 -818
  116. package/dist/components/Checkbox/Checkbox.d.ts +0 -4
  117. package/dist/components/Checkbox/index.d.ts +0 -2
  118. package/dist/components/Icon/DefaultIcon.d.ts +0 -5
  119. package/dist/components/Icon/default.d.ts +0 -209
  120. package/dist/components/Icon/index.d.ts +0 -233
  121. package/dist/components/Icon/norma.d.ts +0 -29
  122. package/dist/components/Icon/styles.d.ts +0 -485
  123. package/dist/components/Modal/ModalFooter.d.ts +0 -4
  124. package/dist/components/Modal/ModalHeader.d.ts +0 -4
  125. package/dist/components/Modal/index.d.ts +0 -2
  126. package/dist/components/Modal/styles.d.ts +0 -274
  127. package/dist/components/ProgressBar/index.d.ts +0 -2
  128. package/dist/components/ProgressBar/styles.d.ts +0 -276
  129. package/dist/components/Radio/Radio.d.ts +0 -4
  130. package/dist/components/Radio/index.d.ts +0 -2
  131. package/dist/components/Tag/index.d.ts +0 -2
  132. package/dist/components/TextField/TextField.d.ts +0 -4
  133. package/dist/components/TextField/index.d.ts +0 -2
  134. package/dist/index.es.js +0 -15023
  135. package/dist/index.es.js.map +0 -1
  136. package/dist/index.umd.js +0 -419
  137. package/dist/index.umd.js.map +0 -1
  138. package/dist/vite.svg +0 -1
@@ -0,0 +1,523 @@
1
+ import React from 'react';
2
+ // Icon paths
3
+ export const normaIcons = {
4
+ menuBar: (
5
+ <>
6
+ <path
7
+ id="menu-bar"
8
+ d="M57.286,7c0,2.209-1.4,4-3.127,4H4.127C2.4,11,1,9.209,1,7S2.4,3,4.127,3H54.159C55.886,3,57.286,4.791,57.286,7Zm0,24c0,2.209-1.4,4-3.127,4H4.127C2.4,35,1,33.209,1,31s1.4-4,3.127-4H54.159C55.886,27,57.286,28.791,57.286,31ZM54.159,59c1.727,0,3.127-1.791,3.127-4s-1.4-4-3.127-4H4.127C2.4,51,1,52.791,1,55s1.4,4,3.127,4Z"
9
+ transform="translate(-1 -3)"
10
+ fillRule="evenodd"
11
+ />
12
+ </>
13
+ ),
14
+ faceHappy: (
15
+ <>
16
+ <g id="face-happy" transform="translate(-16 -16)">
17
+ <path
18
+ id="FaceHappy_1"
19
+ data-name="FaceHappy 1"
20
+ d="M43.833,16A27.833,27.833,0,1,0,71.667,43.833,27.833,27.833,0,0,0,43.833,16ZM60.89,60.89a24.036,24.036,0,1,1,5.171-7.669A24.036,24.036,0,0,1,60.89,60.89Z"
21
+ transform="translate(0 0)"
22
+ />
23
+ <path
24
+ id="FaceHappy_2"
25
+ data-name="FaceHappy 2"
26
+ d="M164.061,292.061A12.061,12.061,0,0,0,176.122,280H152a12.061,12.061,0,0,0,12.061,12.061Z"
27
+ transform="translate(-120.228 -233.383)"
28
+ />
29
+ <path
30
+ id="FaceHappy_3"
31
+ data-name="FaceHappy 3"
32
+ d="M120.89,163.653l2.376-2.851-6.755-5.629-6.755,5.629,2.376,2.851L116.512,160Z"
33
+ transform="translate(-82.884 -123.033)"
34
+ />
35
+ <path
36
+ id="FaceHappy_4"
37
+ data-name="FaceHappy 4"
38
+ d="M285.757,160.8l2.376,2.851L292.512,160l4.379,3.649,2.376-2.851-6.755-5.629Z"
39
+ transform="translate(-238.473 -123.033)"
40
+ />
41
+ </g>
42
+ </>
43
+ ),
44
+ faceNeutral: (
45
+ <>
46
+ <g id="face-neutral" transform="translate(0.75 0.75)">
47
+ <circle
48
+ id="Elipse_1"
49
+ data-name="Elipse 1"
50
+ cx="25.5"
51
+ cy="25.5"
52
+ r="25.5"
53
+ transform="translate(1.75 1.75)"
54
+ fill="none"
55
+ stroke="#000"
56
+ strokeLinecap="round"
57
+ strokeLinejoin="round"
58
+ strokeWidth="5"
59
+ />
60
+ <path
61
+ id="FaceNeutral_1"
62
+ data-name="FaceNeutral 1"
63
+ d="M22.177,7.8V5.75M7.8,7.8V5.75M5.75,24.23H24.23"
64
+ transform="translate(12.427 12.427)"
65
+ fill="none"
66
+ stroke="#000"
67
+ strokeLinecap="round"
68
+ strokeLinejoin="round"
69
+ strokeWidth="5"
70
+ />
71
+ </g>
72
+ </>
73
+ ),
74
+ faceAngry: (
75
+ <>
76
+ <g id="face-angry" transform="translate(-1 -1)">
77
+ <path
78
+ id="FaceAngry_2"
79
+ data-name="FaceAngry 2"
80
+ d="M10.818,15.636A3.818,3.818,0,1,0,7,11.818,3.818,3.818,0,0,0,10.818,15.636Z"
81
+ transform="translate(9.273 10.818)"
82
+ />
83
+ <path
84
+ id="FaceAngry_3"
85
+ data-name="FaceAngry 3"
86
+ d="M21.636,11.818A3.818,3.818,0,1,1,17.818,8,3.818,3.818,0,0,1,21.636,11.818Z"
87
+ transform="translate(20.091 10.818)"
88
+ />
89
+ <path
90
+ id="FaceAngry_4"
91
+ data-name="FaceAngry 4"
92
+ d="M27.641,21.8A2.545,2.545,0,0,0,32.18,19.5a7.923,7.923,0,0,0-.758-1.184,12.316,12.316,0,0,0-2.157-2.21A14.9,14.9,0,0,0,19.721,13a14.9,14.9,0,0,0-9.545,3.1,12.323,12.323,0,0,0-2.156,2.21A8.913,8.913,0,0,0,7.264,19.5,2.545,2.545,0,0,0,11.8,21.8a6.56,6.56,0,0,1,1.556-1.726,9.84,9.84,0,0,1,6.365-1.988,9.84,9.84,0,0,1,6.364,1.988A6.556,6.556,0,0,1,27.641,21.8Z"
93
+ transform="translate(9.273 18.545)"
94
+ />
95
+ <path
96
+ id="FaceAngry_5"
97
+ data-name="FaceAngry 5"
98
+ d="M29,57A28,28,0,1,0,1,29,28,28,0,0,0,29,57Zm0-5.108A22.892,22.892,0,1,1,51.892,29,22.892,22.892,0,0,1,29,51.892Z"
99
+ />
100
+ </g>
101
+ </>
102
+ ),
103
+ pieChart: (
104
+ <>
105
+ <g id="pie-chart" transform="translate(-1.25 -1.25)">
106
+ <path
107
+ id="PieChart_1"
108
+ data-name="PieChart 1"
109
+ d="M20.68,1.549a7.725,7.725,0,0,0-7.428,1.81,9.575,9.575,0,0,0-3,7.035V27.831a5.977,5.977,0,0,0,5.977,5.977H33.664a9.575,9.575,0,0,0,7.035-3,7.725,7.725,0,0,0,1.81-7.428A31.52,31.52,0,0,0,20.68,1.549Zm-6.523,8.846A5.671,5.671,0,0,1,15.9,6.236a3.821,3.821,0,0,1,3.734-.924A27.613,27.613,0,0,1,38.746,24.429a3.82,3.82,0,0,1-.924,3.734A5.671,5.671,0,0,1,33.664,29.9H16.227a2.07,2.07,0,0,1-2.07-2.07Z"
110
+ transform="translate(14.442)"
111
+ fillRule="evenodd"
112
+ />
113
+ <path
114
+ id="PieChart_2"
115
+ data-name="PieChart 2"
116
+ d="M20.582,7.068A1.953,1.953,0,0,0,19.412,3.34,25.948,25.948,0,1,0,51.95,35.879a1.953,1.953,0,1,0-3.727-1.171A22.041,22.041,0,1,1,20.582,7.068Z"
117
+ transform="translate(0 3.209)"
118
+ />
119
+ </g>
120
+ </>
121
+ ),
122
+
123
+ sort: (
124
+ <>
125
+ <g id="sort" transform="translate(1.5 -3.5)">
126
+ <path
127
+ id="Sort_1"
128
+ data-name="Sort 1"
129
+ d="M49,7H2"
130
+ fill="none"
131
+ stroke="#000"
132
+ strokeLinecap="round"
133
+ strokeWidth="7"
134
+ />
135
+ <path
136
+ id="Sort_2"
137
+ data-name="Sort 2"
138
+ d="M37.9,12H5"
139
+ transform="translate(4.05 12.588)"
140
+ fill="none"
141
+ stroke="#000"
142
+ strokeLinecap="round"
143
+ strokeWidth="7"
144
+ />
145
+ <path
146
+ id="Sort_3"
147
+ data-name="Sort 3"
148
+ d="M26.8,17H8"
149
+ transform="translate(8.1 25.176)"
150
+ fill="none"
151
+ stroke="#000"
152
+ strokeLinecap="round"
153
+ strokeWidth="7"
154
+ />
155
+ </g>
156
+ </>
157
+ ),
158
+ timerClock: (
159
+ <>
160
+ <g
161
+ id="time-clock"
162
+ data-name="TimeClock 1880"
163
+ transform="translate(96 44)"
164
+ >
165
+ <path
166
+ id="TimeClock_1968"
167
+ data-name="TimeClock 1968"
168
+ d="M32.029,60.079A28.109,28.109,0,0,1,3.938,32.008a27.826,27.826,0,0,1,8.6-20.211,2.254,2.254,0,1,1,3.132,3.242,23.578,23.578,0,1,0,18.61-6.484v8.786a2.261,2.261,0,0,1-4.523,0V6.2a2.259,2.259,0,0,1,2.261-2.26,28.071,28.071,0,1,1,.014,56.142Z"
169
+ transform="translate(-99.938 -47.938)"
170
+ />
171
+ <path
172
+ id="TimeClock_1969"
173
+ data-name="TimeClock 1969"
174
+ d="M12.754,11.429,22.173,18.2a2.85,2.85,0,0,1-3.313,4.638,2.752,2.752,0,0,1-.663-.663l-6.768-9.419a.95.95,0,0,1,1.325-1.325Z"
175
+ transform="translate(-85.226 -33.239)"
176
+ />
177
+ </g>
178
+ </>
179
+ ),
180
+ tag: (
181
+ <>
182
+ <g id="tag" transform="translate(-0.66 -0.66)">
183
+ <path
184
+ id="Tag_1"
185
+ data-name="Tag 1"
186
+ d="M55.236,25.551l-23.6-23.6A4.757,4.757,0,0,0,28.291.661H5.457a4.757,4.757,0,0,0-4.8,4.757V28.253A4.757,4.757,0,0,0,1.955,31.64l23.6,23.6a4.719,4.719,0,0,0,3.349,1.37,4.871,4.871,0,0,0,3.5-1.37L55.236,32.4a4.833,4.833,0,0,0,0-6.85ZM28.976,51.772,5.418,28.291V5.456H28.253L51.735,28.938Z"
187
+ transform="translate(0 0)"
188
+ />
189
+ <ellipse
190
+ id="Elipse_1"
191
+ data-name="Elipse 1"
192
+ cx="5.366"
193
+ cy="5.709"
194
+ rx="5.366"
195
+ ry="5.709"
196
+ transform="translate(11.622 11.279)"
197
+ />
198
+ </g>
199
+ </>
200
+ ),
201
+ listCheck: (
202
+ <>
203
+ <path
204
+ id="list-check"
205
+ d="M4,7H40.862v6.7H4ZM4,20.4H40.862v6.7H4Zm0,13.4H27.458v6.7H4Zm51.268-9.075-14.41,14.38-4.33-4.326-4.738,4.742,9.068,9.061L60,29.479Z"
206
+ transform="translate(-4 -7)"
207
+ />
208
+ </>
209
+ ),
210
+ starOutlined: (
211
+ <>
212
+ <path
213
+ id="star-outlined"
214
+ d="M56.125,22.76H37.737L32.15,4.8a1.978,1.978,0,0,0-3.8,0L22.763,22.76H4.25a2.087,2.087,0,0,0-2,2.154,1.7,1.7,0,0,0,.037.363A2.11,2.11,0,0,0,3.125,26.8L18.238,38.267l-5.8,18.16a2.26,2.26,0,0,0,.687,2.423,1.868,1.868,0,0,0,1.125.525,2.343,2.343,0,0,0,1.25-.485L30.25,47.569,45,58.89a2.24,2.24,0,0,0,1.25.485,1.737,1.737,0,0,0,1.113-.525,2.231,2.231,0,0,0,.688-2.423l-5.8-18.16L57.238,26.69l.362-.337a2.329,2.329,0,0,0,.65-1.44A2.192,2.192,0,0,0,56.125,22.76Zm-15.9,12.452a3.948,3.948,0,0,0-1.275,4.281L42.712,51.3a.513.513,0,0,1-.762.619l-9.675-7.431a3.325,3.325,0,0,0-2.037-.7,3.264,3.264,0,0,0-2.025.7L18.537,51.9a.511.511,0,0,1-.762-.619l3.763-11.806a3.96,3.96,0,0,0-1.287-4.308L10.125,27.485a.549.549,0,0,1,.287-.983H22.75a3.528,3.528,0,0,0,3.313-2.571l3.7-11.873a.492.492,0,0,1,.95,0l3.7,11.873A3.528,3.528,0,0,0,37.725,26.5H49.887a.54.54,0,0,1,.288.969Z"
215
+ transform="translate(-2.25 -3.375)"
216
+ />
217
+ </>
218
+ ),
219
+
220
+ edit: (
221
+ <>
222
+ <g
223
+ id="Edit_1880"
224
+ data-name="Edit 1880"
225
+ transform="translate(75.5 -366.5)"
226
+ >
227
+ <g id="edit" transform="translate(-73 369)">
228
+ <path
229
+ id="Edit_1946"
230
+ data-name="Edit 1946"
231
+ d="M27.959,6H8.546A5.546,5.546,0,0,0,3,11.546V50.371a5.546,5.546,0,0,0,5.546,5.546H47.371a5.546,5.546,0,0,0,5.546-5.546V30.959"
232
+ transform="translate(-3 -0.117)"
233
+ fill="none"
234
+ strokeLinecap="round"
235
+ strokeLinejoin="round"
236
+ strokeWidth="5"
237
+ />
238
+ <path
239
+ id="Edit_1947"
240
+ data-name="Edit 1947"
241
+ d="M41.118,4.541a5.883,5.883,0,0,1,8.32,8.32L23.093,39.206,12,41.979l2.773-11.093Z"
242
+ transform="translate(4.639 -2.818)"
243
+ fill="none"
244
+ strokeLinecap="round"
245
+ strokeLinejoin="round"
246
+ strokeWidth="5"
247
+ />
248
+ </g>
249
+ </g>
250
+ </>
251
+ ),
252
+ chartBar: (
253
+ <>
254
+ <g id="chart-bar" data-name="icons Q2" transform="translate(4.625 4.625)">
255
+ <path
256
+ id="ChartBar_1"
257
+ data-name="ChartBar 1"
258
+ d="M4,47.938H4a2.313,2.313,0,0,1,2.313-2.312H47.938a2.313,2.313,0,0,1,2.313,2.313h0a2.313,2.313,0,0,1-2.312,2.313H6.313A2.313,2.313,0,0,1,4,47.938ZM15.563,22.5a2.312,2.312,0,0,0-2.312-2.312h0A2.313,2.313,0,0,0,10.938,22.5V41h4.625ZM43.313,6.313A2.313,2.313,0,0,0,41,4h0a2.313,2.313,0,0,0-2.312,2.313V41h4.625Zm-18.5,9.25A2.313,2.313,0,0,0,22.5,13.25h0a2.312,2.312,0,0,0-2.312,2.313V41h4.625Zm9.25,10.406a2.313,2.313,0,0,0-2.312-2.312h0a2.313,2.313,0,0,0-2.312,2.313V41h4.625Z"
259
+ transform="translate(-4 -4)"
260
+ />
261
+ </g>
262
+ </>
263
+ ),
264
+ settingEthernet: (
265
+ <>
266
+ <g
267
+ id="SettingsEthernet_1881"
268
+ data-name="SettingsEthernet 1881"
269
+ transform="translate(146 -54.196)"
270
+ >
271
+ <g id="settings_ethernet" transform="translate(-146 54.196)">
272
+ <path
273
+ id="SettingsEthernet"
274
+ data-name="IconSettingsEthernet"
275
+ d="M18.612,11.421,14.76,8.22,1.23,24.527,14.76,40.833l3.852-3.2L7.733,24.527,18.612,11.421ZM16.686,27.027h5v-5h-5Zm25.01-5h-5v5h5Zm-15.006,5h5v-5h-5ZM43.622,8.22l-3.852,3.2L50.65,24.527,39.77,37.632l3.852,3.2,13.53-16.307L43.622,8.22Z"
276
+ transform="translate(-1.23 -8.22)"
277
+ />
278
+ </g>
279
+ </g>
280
+ </>
281
+ ),
282
+
283
+ usd: (
284
+ <>
285
+ <g id="Usd_1880" data-name="Usd 1880" transform="translate(36 -177)">
286
+ <g id="Usd" transform="translate(-36 177)">
287
+ <path
288
+ id="IconUsd"
289
+ data-name="IconUsd"
290
+ d="M27.686,30.909c-7.035-1.828-9.3-3.7-9.3-6.647,0-3.378,3.114-5.749,8.367-5.749,5.516,0,7.562,2.634,7.748,6.508h6.849c-.2-5.346-3.471-10.211-9.948-11.807V6.427h-9.3v6.694C16.1,14.438,11.261,18.311,11.261,24.308c0,7.159,5.935,10.723,14.565,12.8,7.763,1.859,9.3,4.571,9.3,7.484,0,2.123-1.5,5.532-8.367,5.532-6.384,0-8.91-2.867-9.235-6.508H10.688c.387,6.787,5.454,10.583,11.42,11.869v6.725h9.3V55.546c6.028-1.162,10.846-4.649,10.846-11.017,0-8.77-7.531-11.776-14.565-13.62Z"
291
+ transform="translate(-10.688 -6.427)"
292
+ />
293
+ </g>
294
+ </g>
295
+ </>
296
+ ),
297
+
298
+ user: (
299
+ <>
300
+ <path
301
+ id="User_1941"
302
+ data-name="User 1941"
303
+ d="M23.977,30.96c8.824,0,15.977-6.259,15.977-13.98S32.8,3,23.977,3,8,9.259,8,16.98s7.153,13.98,15.977,13.98Zm0-20.97c4.412,0,7.989,3.13,7.989,6.99s-3.577,6.99-7.989,6.99-7.989-3.13-7.989-6.99S19.565,9.99,23.977,9.99Z"
304
+ transform="translate(3.983 -3)"
305
+ />
306
+ <path
307
+ id="User_1942"
308
+ data-name="User 1942"
309
+ d="M32.96,13C17.518,13,5,23.953,5,37.465a3.77,3.77,0,0,0,3.994,3.5,3.77,3.77,0,0,0,3.994-3.5c0-9.651,8.942-17.475,19.972-17.475s19.972,7.824,19.972,17.475a4.03,4.03,0,0,0,7.989,0C60.921,23.953,48.4,13,32.96,13Z"
310
+ transform="translate(-5 14.96)"
311
+ />
312
+ </>
313
+ ),
314
+ notication: (
315
+ <>
316
+ <path
317
+ id="Notification_Icon"
318
+ data-name="Notification Icon"
319
+ d="M21,49H35a7,7,0,1,1-14,0ZM3.5,45.5a3.5,3.5,0,0,1,0-7H5.251C7.7,36.051,10.5,32.552,10.5,28V17.5A17.333,17.333,0,0,1,28,0,17.33,17.33,0,0,1,45.5,17.5V28c0,4.552,2.8,8.051,5.251,10.5H52.5a3.5,3.5,0,0,1,0,7Z"
320
+ />
321
+ </>
322
+ ),
323
+ card: (
324
+ <>
325
+ <path
326
+ id="Card_1937"
327
+ data-name="Card 1937"
328
+ d="M6.157,6H48.067a4.657,4.657,0,0,1,4.657,4.657V38.6a4.657,4.657,0,0,1-4.657,4.657H6.157A4.657,4.657,0,0,1,1.5,38.6V10.657A4.657,4.657,0,0,1,6.157,6Z"
329
+ transform="translate(1 -3.5)"
330
+ fill="none"
331
+ strokeLinecap="round"
332
+ strokeLinejoin="round"
333
+ strokeWidth="5"
334
+ />
335
+ <path
336
+ id="Card_1938"
337
+ data-name="Card 1938"
338
+ d="M1.5,15H52.724"
339
+ transform="translate(1 1.47)"
340
+ fill="none"
341
+ strokeLinecap="round"
342
+ strokeLinejoin="round"
343
+ strokeWidth="5"
344
+ />
345
+ </>
346
+ ),
347
+ briefcase: (
348
+ <>
349
+ <g id="briefcase" transform="translate(2.5 2.5)">
350
+ <g id="Briefcase" data-name="IconBriefcase">
351
+ <path
352
+ id="Briefcase_1939"
353
+ data-name="IconBriefcase 1939"
354
+ d="M8.148,10.5H49.332a4.943,4.943,0,0,1,5.148,4.707V38.744a4.943,4.943,0,0,1-5.148,4.707H8.148A4.943,4.943,0,0,1,3,38.744V15.207A4.943,4.943,0,0,1,8.148,10.5Z"
355
+ transform="translate(-3 -1.085)"
356
+ fill="none"
357
+ strokeLinecap="round"
358
+ strokeLinejoin="round"
359
+ strokeWidth="5"
360
+ />
361
+ <path
362
+ id="Briefcase_1940"
363
+ data-name="IconBriefcase 1940"
364
+ d="M31.122,46.867V9.207A4.744,4.744,0,0,0,26.341,4.5H16.78A4.744,4.744,0,0,0,12,9.207V46.867"
365
+ transform="translate(4.179 -4.5)"
366
+ fill="none"
367
+ strokeLinecap="round"
368
+ strokeLinejoin="round"
369
+ strokeWidth="5"
370
+ />
371
+ </g>
372
+ </g>
373
+ </>
374
+ ),
375
+ checkCircle: (
376
+ <>
377
+ <g id="Icon" transform="translate(2.505 2.53)">
378
+ <g id="check-circle" data-name="IconCheckCircle">
379
+ <g id="CheckCircle_1881" data-name="CheckCircle 1881">
380
+ <path
381
+ id="CheckCircle_1935"
382
+ data-name="Icon CheckCircle 1935"
383
+ d="M53.347,25.863v2.316A25.174,25.174,0,1,1,38.419,5.171"
384
+ transform="translate(-3 -2.991)"
385
+ fill="none"
386
+ strokeLinecap="round"
387
+ strokeLinejoin="round"
388
+ strokeWidth="5"
389
+ />
390
+ <path
391
+ id="CheckCircle_1936"
392
+ data-name="Icon CheckCircle 1936"
393
+ d="M49.688,6,21.851,33.865,13.5,25.514"
394
+ transform="translate(0.66 -0.415)"
395
+ fill="none"
396
+ strokeLinecap="round"
397
+ strokeLinejoin="round"
398
+ strokeWidth="5"
399
+ />
400
+ </g>
401
+ </g>
402
+ </g>
403
+ </>
404
+ ),
405
+ hand: (
406
+ <>
407
+ <path
408
+ id="hand"
409
+ data-name="Icon Hand"
410
+ d="M57.824,32.437a4.988,4.988,0,0,0-6.857-.164l-5.645,5.208c-1.47,1.355-3.241,1.357-4.274.231-.685-.746-.415-3.047-.223-4.506l2.831-21.481a3.67,3.67,0,0,0-3.308-4.006,3.82,3.82,0,0,0-4.224,3.161L33,27.753c-.163.42-.513.492-.553-.073L31.386,5.75a3.656,3.656,0,0,0-3.794-3.5A3.656,3.656,0,0,0,23.8,5.75l-.075,22.094c.02.255-.217.328-.26.037L20.089,10.635A3.854,3.854,0,0,0,15.681,7.7a3.635,3.635,0,0,0-3.059,4.175L15.627,32.06c0,.359-.127.564-.313.1L10.831,21.1a3.94,3.94,0,0,0-4.845-2.236,3.548,3.548,0,0,0-2.305,4.579l7.86,23.7c.041.131.084.261.129.39l.016.049,0,.011c2.177,6.184,8.472,10.655,15.9,10.655a23.877,23.877,0,0,0,13.455-4.209h0c4.061-2.256,17.072-15.168,17.072-15.168C60.095,37.05,59.8,34.26,57.824,32.437Z"
411
+ transform="translate(-3.462 -2.25)"
412
+ />
413
+ </>
414
+ ),
415
+ female: (
416
+ <>
417
+ <g
418
+ id="Female_1880"
419
+ data-name="Female 1880"
420
+ transform="translate(65.5 -276.5)"
421
+ >
422
+ <g id="female" transform="translate(-63 279)">
423
+ <path
424
+ id="Female"
425
+ d="M13.222,49.667H31.889M22.556,34.111V59m0-24.889A15.556,15.556,0,1,0,7,18.556,15.556,15.556,0,0,0,22.556,34.111Z"
426
+ transform="translate(-7 -3)"
427
+ fill="none"
428
+ strokeLinecap="round"
429
+ strokeLinejoin="round"
430
+ strokeWidth="5"
431
+ />
432
+ </g>
433
+ </g>
434
+ </>
435
+ ),
436
+ male: (
437
+ <>
438
+ <g
439
+ id="Male_1880"
440
+ data-name="Male 1880"
441
+ transform="translate(1.5 -255.464)"
442
+ >
443
+ <g id="male" transform="translate(1 259)">
444
+ <path
445
+ id="Male"
446
+ d="M22.556,27.889A15.556,15.556,0,1,0,38.111,43.444,15.556,15.556,0,0,0,22.556,27.889Zm0,0V3m0,0L35,15.444M22.556,3,10.111,15.444"
447
+ transform="translate(-7 -3)"
448
+ fill="none"
449
+ strokeLinecap="round"
450
+ strokeLinejoin="round"
451
+ strokeWidth="5"
452
+ />
453
+ </g>
454
+ </g>
455
+ </>
456
+ ),
457
+ headphone: (
458
+ <>
459
+ <g
460
+ id="HeadPhone_1880"
461
+ data-name="HeadPhone 1880"
462
+ transform="translate(68.5 -344.5)"
463
+ >
464
+ <g id="headphone" transform="translate(-66 347)">
465
+ <g id="Icon">
466
+ <g id="headphone" data-name="Icon HeadPhone">
467
+ <path
468
+ id="HeadPhone_1880_1930"
469
+ data-name="HeadPhone_1880 1930"
470
+ d="M4.5,38.111V24.666C4.5,13.529,16.886,4.5,32.165,4.5S59.83,13.529,59.83,24.666V38.111"
471
+ transform="translate(-4.5 -4.5)"
472
+ fill="none"
473
+ strokeLinecap="round"
474
+ strokeLinejoin="round"
475
+ strokeWidth="5"
476
+ />
477
+ <path
478
+ id="HeadPhone_1880_1931"
479
+ data-name="HeadPhone_1880 1931"
480
+ d="M59.83,36.513a6.177,6.177,0,0,1-6.148,6.205H50.608a6.177,6.177,0,0,1-6.148-6.205V27.205A6.177,6.177,0,0,1,50.608,21H59.83Zm-55.33,0a6.177,6.177,0,0,0,6.148,6.205h3.074a6.177,6.177,0,0,0,6.148-6.205V27.205A6.177,6.177,0,0,0,13.722,21H4.5Z"
481
+ transform="translate(-4.5 12.611)"
482
+ fill="none"
483
+ strokeLinecap="round"
484
+ strokeLinejoin="round"
485
+ strokeWidth="5"
486
+ />
487
+ </g>
488
+ </g>
489
+ </g>
490
+ </g>
491
+ </>
492
+ ),
493
+ envelopeMail: (
494
+ <>
495
+ <path
496
+ id="email"
497
+ d="M52.4,4H7.6A5.593,5.593,0,0,0,2.028,9.6L2,43.2a5.616,5.616,0,0,0,5.6,5.6H52.4A5.616,5.616,0,0,0,58,43.2V9.6A5.616,5.616,0,0,0,52.4,4Zm0,11.2L30,29.2,7.6,15.2V9.6L30,23.6l22.4-14Z"
498
+ transform="translate(-2 -4)"
499
+ />
500
+ </>
501
+ ),
502
+ comment: (
503
+ <>
504
+ <path
505
+ id="comment"
506
+ d="M52.4,2H7.6A5.593,5.593,0,0,0,2.028,7.6L2,58,13.2,46.8H52.4A5.616,5.616,0,0,0,58,41.2V7.6A5.616,5.616,0,0,0,52.4,2ZM13.2,21.6H46.8v5.6H13.2Zm22.4,14H13.2V30H35.6ZM46.8,18.8H13.2V13.2H46.8Z"
507
+ transform="translate(-2 -2)"
508
+ />
509
+ </>
510
+ ),
511
+ olosCloud: (
512
+ <>
513
+ <path
514
+ id="olos-cloud"
515
+ d="M35.977,44.991q.308.009.618.009a20.5,20.5,0,0,0,0-41,20.305,20.305,0,0,0-15.914,7.688h-3.1a16.657,16.657,0,0,0,0,33.313H35.42Q35.7,45,35.977,44.991Zm4.977-5.831c5.989-1.97,10.93-7.789,10.93-14.66a15.289,15.289,0,1,0-30.578,0h-5.1a20.543,20.543,0,0,1,1.482-7.687h-.109a11.531,11.531,0,0,0,0,23.063H35.42A27.108,27.108,0,0,0,40.954,39.16Z"
516
+ transform="translate(-1.019 -4)"
517
+ fillRule="evenodd"
518
+ />
519
+ </>
520
+ ),
521
+ } as const;
522
+
523
+ export type IconKey = keyof typeof normaIcons;
@@ -0,0 +1,94 @@
1
+ import React, { FunctionComponent, ComponentProps } from 'react'
2
+ import { normaIcons } from './norma'
3
+ import { palette } from '../../helpers/colors'
4
+ import styled from 'styled-components'
5
+ import { Svg } from './svg'
6
+
7
+ export type IconScale = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | '2xlarge' | '3xlarge'
8
+ export type Colors =
9
+ | 'default'
10
+ | 'primary'
11
+ | 'secondary'
12
+ | 'error'
13
+ | 'info'
14
+ | 'success'
15
+ | 'warning'
16
+ | 'white'
17
+ | 'black'
18
+
19
+ const scaleSize: Record<IconScale, number> = {
20
+ xsmall: 14,
21
+ small: 20,
22
+ medium: 24,
23
+ large: 28,
24
+ xlarge: 32,
25
+ '2xlarge': 36,
26
+ '3xlarge': 40,
27
+ }
28
+
29
+ // Definindo um objeto com as cores de preenchimento e traço com base no MUI
30
+ const colors: Record<Colors, string> = {
31
+ default: palette.inherit,
32
+ primary: palette.primary,
33
+ secondary: palette.secondary,
34
+ error: palette.error,
35
+ info: palette.info,
36
+ success: palette.success,
37
+ warning: palette.warning,
38
+ white: palette.white,
39
+ black: palette.black,
40
+ }
41
+
42
+ export interface IconsProps extends ComponentProps<typeof Svg> {
43
+ icon: IconType
44
+ useSymbol?: boolean
45
+ scale?: IconScale
46
+ color?: Colors
47
+ }
48
+
49
+ export const Icons: FunctionComponent<IconsProps> = ({
50
+ icon,
51
+ scale,
52
+ useSymbol,
53
+ color = 'default', // Define 'default' como valor padrão se a prop não for fornecida
54
+ ...props
55
+ }: IconsProps) => {
56
+ let width = 24
57
+ let height = 24
58
+ if (scale) {
59
+ width = scaleSize[scale]
60
+ height = scaleSize[scale]
61
+ }
62
+
63
+ // Obtém a cor de preenchimento e traço com base no valor da prop 'color'
64
+ const fill = colors[color]
65
+ const stroke = colors[color]
66
+
67
+ const Svg = styled.svg`
68
+ display: inline-block;
69
+ shape-rendering: inherit;
70
+ vertical-align: middle;
71
+ fill: ${fill};
72
+ path {
73
+ stroke: ${stroke};
74
+ }
75
+ circle {
76
+ stroke: ${stroke};
77
+ }
78
+ rect {
79
+ stroke: ${stroke};
80
+ }
81
+ `
82
+
83
+ return (
84
+ <Svg viewBox="0 0 64 64" width={`${width}px`} height={`${height}px`} {...props}>
85
+ {useSymbol ? (
86
+ <use xlinkHref={`#icon--${icon}`} fill={fill} stroke={stroke} />
87
+ ) : (
88
+ React.cloneElement(normaIcons[icon], { fill, stroke })
89
+ )}
90
+ </Svg>
91
+ )
92
+ }
93
+
94
+ export type IconType = keyof typeof normaIcons
@@ -0,0 +1,11 @@
1
+ import styled from 'styled-components';
2
+
3
+ export const IconsContainer = styled.svg`
4
+ display: inline-block;
5
+ shape-rendering: inherit;
6
+ vertical-align: middle;
7
+
8
+ path {
9
+ fill: 'inherit';
10
+ }
11
+ `;
@@ -0,0 +1,24 @@
1
+ import { styled } from 'styled-components'
2
+
3
+ interface SvgProps {
4
+ inline?: boolean
5
+ }
6
+
7
+ const Svg = styled.svg<SvgProps>(
8
+ {
9
+ // Fix rendering bugs in Chrome for hdpi
10
+ shapeRendering: 'inherit',
11
+ transform: 'translate3d(0,0,0)',
12
+ },
13
+ ({ inline }) =>
14
+ inline
15
+ ? {
16
+ display: 'inline-block',
17
+ }
18
+ : {
19
+ display: 'block',
20
+ },
21
+ )
22
+ Svg.displayName = 'Svg'
23
+
24
+ export { Svg }
@@ -0,0 +1,14 @@
1
+ import { defaultIcons } from './default'
2
+ import { IconsColors as Colors } from '../../helpers/colors'
3
+ import { IconsSizes as Sizes } from '../../helpers/sizes'
4
+
5
+ export interface IconsProps {
6
+ icon: IconType
7
+ scale?: Sizes
8
+ color?: Colors
9
+ width?: number
10
+ height?: number
11
+ fill?: string
12
+ }
13
+
14
+ export type IconType = keyof typeof defaultIcons
@@ -0,0 +1,8 @@
1
+ export * from './button';
2
+ export * from './card';
3
+ export * from './checkbox';
4
+ export * from './icon';
5
+ export * from './modal';
6
+ export * from './progress-bar';
7
+ export * from './tag';
8
+ export * from './textfield';
@@ -0,0 +1 @@
1
+ export * from './modal';