eai-frontend-components 2.0.23 → 2.0.24

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 (301) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +298 -298
  3. package/dist/eai-frontend-components-1.0.0.tgz +0 -0
  4. package/dist/index.d.ts +18 -18
  5. package/dist/index.esm.js +7 -7
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.js +7 -7
  8. package/dist/index.js.map +1 -1
  9. package/package.json +147 -146
  10. package/dist/components/ui/accordion.d.ts +0 -8
  11. package/dist/components/ui/accordion.d.ts.map +0 -1
  12. package/dist/components/ui/accordion.js +0 -13
  13. package/dist/components/ui/alert-dialog.d.ts +0 -25
  14. package/dist/components/ui/alert-dialog.d.ts.map +0 -1
  15. package/dist/components/ui/alert-dialog.js +0 -27
  16. package/dist/components/ui/alert.d.ts +0 -9
  17. package/dist/components/ui/alert.d.ts.map +0 -1
  18. package/dist/components/ui/alert.js +0 -22
  19. package/dist/components/ui/avatar.d.ts +0 -7
  20. package/dist/components/ui/avatar.d.ts.map +0 -1
  21. package/dist/components/ui/avatar.js +0 -11
  22. package/dist/components/ui/badge.d.ts +0 -10
  23. package/dist/components/ui/badge.d.ts.map +0 -1
  24. package/dist/components/ui/badge.js +0 -26
  25. package/dist/components/ui/breadcrumb.d.ts +0 -20
  26. package/dist/components/ui/breadcrumb.d.ts.map +0 -1
  27. package/dist/components/ui/breadcrumb.js +0 -23
  28. package/dist/components/ui/button.d.ts +0 -12
  29. package/dist/components/ui/button.d.ts.map +0 -1
  30. package/dist/components/ui/button.js +0 -33
  31. package/dist/components/ui/calendar.d.ts +0 -9
  32. package/dist/components/ui/calendar.d.ts.map +0 -1
  33. package/dist/components/ui/calendar.js +0 -70
  34. package/dist/components/ui/card.d.ts +0 -9
  35. package/dist/components/ui/card.d.ts.map +0 -1
  36. package/dist/components/ui/card.js +0 -16
  37. package/dist/components/ui/carousel.d.ts +0 -19
  38. package/dist/components/ui/carousel.d.ts.map +0 -1
  39. package/dist/components/ui/carousel.js +0 -98
  40. package/dist/components/ui/chart.d.ts +0 -63
  41. package/dist/components/ui/chart.d.ts.map +0 -1
  42. package/dist/components/ui/chart.js +0 -132
  43. package/dist/components/ui/checkbox.d.ts +0 -5
  44. package/dist/components/ui/checkbox.d.ts.map +0 -1
  45. package/dist/components/ui/checkbox.js +0 -8
  46. package/dist/components/ui/collapsible.d.ts +0 -6
  47. package/dist/components/ui/collapsible.d.ts.map +0 -1
  48. package/dist/components/ui/collapsible.js +0 -5
  49. package/dist/components/ui/command.d.ts +0 -81
  50. package/dist/components/ui/command.d.ts.map +0 -1
  51. package/dist/components/ui/command.js +0 -28
  52. package/dist/components/ui/context-menu.d.ts +0 -28
  53. package/dist/components/ui/context-menu.d.ts.map +0 -1
  54. package/dist/components/ui/context-menu.js +0 -33
  55. package/dist/components/ui/custom/date-picker.d.ts +0 -12
  56. package/dist/components/ui/custom/date-picker.d.ts.map +0 -1
  57. package/dist/components/ui/custom/date-picker.js +0 -35
  58. package/dist/components/ui/custom/form/checkbox.d.ts +0 -13
  59. package/dist/components/ui/custom/form/checkbox.d.ts.map +0 -1
  60. package/dist/components/ui/custom/form/checkbox.js +0 -15
  61. package/dist/components/ui/custom/form/color.d.ts +0 -15
  62. package/dist/components/ui/custom/form/color.d.ts.map +0 -1
  63. package/dist/components/ui/custom/form/color.js +0 -40
  64. package/dist/components/ui/custom/form/combobox.d.ts +0 -37
  65. package/dist/components/ui/custom/form/combobox.d.ts.map +0 -1
  66. package/dist/components/ui/custom/form/combobox.js +0 -82
  67. package/dist/components/ui/custom/form/cpf-cnpj.d.ts +0 -16
  68. package/dist/components/ui/custom/form/cpf-cnpj.d.ts.map +0 -1
  69. package/dist/components/ui/custom/form/cpf-cnpj.js +0 -32
  70. package/dist/components/ui/custom/form/currency.d.ts +0 -14
  71. package/dist/components/ui/custom/form/currency.d.ts.map +0 -1
  72. package/dist/components/ui/custom/form/currency.js +0 -15
  73. package/dist/components/ui/custom/form/date-range.d.ts +0 -16
  74. package/dist/components/ui/custom/form/date-range.d.ts.map +0 -1
  75. package/dist/components/ui/custom/form/date-range.js +0 -24
  76. package/dist/components/ui/custom/form/date.d.ts +0 -16
  77. package/dist/components/ui/custom/form/date.d.ts.map +0 -1
  78. package/dist/components/ui/custom/form/date.js +0 -35
  79. package/dist/components/ui/custom/form/decimal.d.ts +0 -14
  80. package/dist/components/ui/custom/form/decimal.d.ts.map +0 -1
  81. package/dist/components/ui/custom/form/decimal.js +0 -15
  82. package/dist/components/ui/custom/form/file.d.ts +0 -15
  83. package/dist/components/ui/custom/form/file.d.ts.map +0 -1
  84. package/dist/components/ui/custom/form/file.js +0 -18
  85. package/dist/components/ui/custom/form/form-help-text.d.ts +0 -3
  86. package/dist/components/ui/custom/form/form-help-text.d.ts.map +0 -1
  87. package/dist/components/ui/custom/form/form-help-text.js +0 -7
  88. package/dist/components/ui/custom/form/form-label.d.ts +0 -7
  89. package/dist/components/ui/custom/form/form-label.d.ts.map +0 -1
  90. package/dist/components/ui/custom/form/form-label.js +0 -9
  91. package/dist/components/ui/custom/form/form-message.d.ts +0 -5
  92. package/dist/components/ui/custom/form/form-message.d.ts.map +0 -1
  93. package/dist/components/ui/custom/form/form-message.js +0 -5
  94. package/dist/components/ui/custom/form/ghost.d.ts +0 -8
  95. package/dist/components/ui/custom/form/ghost.d.ts.map +0 -1
  96. package/dist/components/ui/custom/form/ghost.js +0 -8
  97. package/dist/components/ui/custom/form/input.d.ts +0 -18
  98. package/dist/components/ui/custom/form/input.d.ts.map +0 -1
  99. package/dist/components/ui/custom/form/input.js +0 -14
  100. package/dist/components/ui/custom/form/mask.d.ts +0 -19
  101. package/dist/components/ui/custom/form/mask.d.ts.map +0 -1
  102. package/dist/components/ui/custom/form/mask.js +0 -19
  103. package/dist/components/ui/custom/form/multi-select.d.ts +0 -26
  104. package/dist/components/ui/custom/form/multi-select.d.ts.map +0 -1
  105. package/dist/components/ui/custom/form/multi-select.js +0 -66
  106. package/dist/components/ui/custom/form/password.d.ts +0 -16
  107. package/dist/components/ui/custom/form/password.d.ts.map +0 -1
  108. package/dist/components/ui/custom/form/password.js +0 -14
  109. package/dist/components/ui/custom/form/percent.d.ts +0 -14
  110. package/dist/components/ui/custom/form/percent.d.ts.map +0 -1
  111. package/dist/components/ui/custom/form/percent.js +0 -15
  112. package/dist/components/ui/custom/form/phone.d.ts +0 -16
  113. package/dist/components/ui/custom/form/phone.d.ts.map +0 -1
  114. package/dist/components/ui/custom/form/phone.js +0 -23
  115. package/dist/components/ui/custom/form/radio-group.d.ts +0 -23
  116. package/dist/components/ui/custom/form/radio-group.d.ts.map +0 -1
  117. package/dist/components/ui/custom/form/radio-group.js +0 -15
  118. package/dist/components/ui/custom/form/select.d.ts +0 -20
  119. package/dist/components/ui/custom/form/select.d.ts.map +0 -1
  120. package/dist/components/ui/custom/form/select.js +0 -12
  121. package/dist/components/ui/custom/form/step-new-form.d.ts +0 -10
  122. package/dist/components/ui/custom/form/step-new-form.d.ts.map +0 -1
  123. package/dist/components/ui/custom/form/step-new-form.js +0 -13
  124. package/dist/components/ui/custom/form/switch.d.ts +0 -13
  125. package/dist/components/ui/custom/form/switch.d.ts.map +0 -1
  126. package/dist/components/ui/custom/form/switch.js +0 -16
  127. package/dist/components/ui/custom/form/text.d.ts +0 -18
  128. package/dist/components/ui/custom/form/text.d.ts.map +0 -1
  129. package/dist/components/ui/custom/form/text.js +0 -14
  130. package/dist/components/ui/custom/form/textarea.d.ts +0 -16
  131. package/dist/components/ui/custom/form/textarea.d.ts.map +0 -1
  132. package/dist/components/ui/custom/form/textarea.js +0 -19
  133. package/dist/components/ui/custom/form/utils.d.ts +0 -18
  134. package/dist/components/ui/custom/form/utils.d.ts.map +0 -1
  135. package/dist/components/ui/custom/form/utils.js +0 -88
  136. package/dist/components/ui/custom/header.d.ts +0 -11
  137. package/dist/components/ui/custom/header.d.ts.map +0 -1
  138. package/dist/components/ui/custom/header.js +0 -74
  139. package/dist/components/ui/custom/label.d.ts +0 -13
  140. package/dist/components/ui/custom/label.d.ts.map +0 -1
  141. package/dist/components/ui/custom/label.js +0 -20
  142. package/dist/components/ui/custom/not-found.d.ts +0 -3
  143. package/dist/components/ui/custom/not-found.d.ts.map +0 -1
  144. package/dist/components/ui/custom/not-found.js +0 -9
  145. package/dist/components/ui/custom/sidebar/module-switcher.d.ts +0 -9
  146. package/dist/components/ui/custom/sidebar/module-switcher.d.ts.map +0 -1
  147. package/dist/components/ui/custom/sidebar/module-switcher.js +0 -20
  148. package/dist/components/ui/custom/sidebar/nav-footer.d.ts +0 -7
  149. package/dist/components/ui/custom/sidebar/nav-footer.d.ts.map +0 -1
  150. package/dist/components/ui/custom/sidebar/nav-footer.js +0 -13
  151. package/dist/components/ui/custom/sidebar/nav-main.d.ts +0 -7
  152. package/dist/components/ui/custom/sidebar/nav-main.d.ts.map +0 -1
  153. package/dist/components/ui/custom/sidebar/nav-main.js +0 -27
  154. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.d.ts +0 -9
  155. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.d.ts.map +0 -1
  156. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.js +0 -18
  157. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.d.ts +0 -10
  158. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.d.ts.map +0 -1
  159. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.js +0 -10
  160. package/dist/components/ui/custom/sidebar/nav-user.d.ts +0 -9
  161. package/dist/components/ui/custom/sidebar/nav-user.d.ts.map +0 -1
  162. package/dist/components/ui/custom/sidebar/nav-user.js +0 -24
  163. package/dist/components/ui/custom/sidebar/sidebar-button.d.ts +0 -9
  164. package/dist/components/ui/custom/sidebar/sidebar-button.d.ts.map +0 -1
  165. package/dist/components/ui/custom/sidebar/sidebar-button.js +0 -7
  166. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.d.ts +0 -12
  167. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.d.ts.map +0 -1
  168. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.js +0 -5
  169. package/dist/components/ui/custom/sidebar/sidebar-item.d.ts +0 -9
  170. package/dist/components/ui/custom/sidebar/sidebar-item.d.ts.map +0 -1
  171. package/dist/components/ui/custom/sidebar/sidebar-item.js +0 -7
  172. package/dist/components/ui/custom/sidebar/types/sidebar.d.ts +0 -29
  173. package/dist/components/ui/custom/sidebar/types/sidebar.d.ts.map +0 -1
  174. package/dist/components/ui/custom/sidebar/types/sidebar.js +0 -5
  175. package/dist/components/ui/custom/table/data-table-export.d.ts +0 -8
  176. package/dist/components/ui/custom/table/data-table-export.d.ts.map +0 -1
  177. package/dist/components/ui/custom/table/data-table-export.js +0 -65
  178. package/dist/components/ui/custom/table/data-table-footer.d.ts +0 -25
  179. package/dist/components/ui/custom/table/data-table-footer.d.ts.map +0 -1
  180. package/dist/components/ui/custom/table/data-table-footer.js +0 -39
  181. package/dist/components/ui/custom/table/data-table-header.d.ts +0 -9
  182. package/dist/components/ui/custom/table/data-table-header.d.ts.map +0 -1
  183. package/dist/components/ui/custom/table/data-table-header.js +0 -11
  184. package/dist/components/ui/custom/table/data-table-rows.d.ts +0 -13
  185. package/dist/components/ui/custom/table/data-table-rows.d.ts.map +0 -1
  186. package/dist/components/ui/custom/table/data-table-rows.js +0 -25
  187. package/dist/components/ui/custom/table/data-table.d.ts +0 -35
  188. package/dist/components/ui/custom/table/data-table.d.ts.map +0 -1
  189. package/dist/components/ui/custom/table/data-table.js +0 -99
  190. package/dist/components/ui/custom/table/types/data-table.d.ts +0 -29
  191. package/dist/components/ui/custom/table/types/data-table.d.ts.map +0 -1
  192. package/dist/components/ui/custom/table/types/data-table.js +0 -1
  193. package/dist/components/ui/custom/theme-provider.d.ts +0 -24
  194. package/dist/components/ui/custom/theme-provider.d.ts.map +0 -1
  195. package/dist/components/ui/custom/theme-provider.js +0 -79
  196. package/dist/components/ui/dateRangePicker.d.ts +0 -3
  197. package/dist/components/ui/dateRangePicker.d.ts.map +0 -1
  198. package/dist/components/ui/dateRangePicker.js +0 -15
  199. package/dist/components/ui/dialog.d.ts +0 -23
  200. package/dist/components/ui/dialog.d.ts.map +0 -1
  201. package/dist/components/ui/dialog.js +0 -23
  202. package/dist/components/ui/drawer.d.ts +0 -23
  203. package/dist/components/ui/drawer.d.ts.map +0 -1
  204. package/dist/components/ui/drawer.js +0 -22
  205. package/dist/components/ui/dropdown-menu.d.ts +0 -28
  206. package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
  207. package/dist/components/ui/dropdown-menu.js +0 -32
  208. package/dist/components/ui/form.d.ts +0 -24
  209. package/dist/components/ui/form.d.ts.map +0 -1
  210. package/dist/components/ui/form.js +0 -60
  211. package/dist/components/ui/hover-card.d.ts +0 -7
  212. package/dist/components/ui/hover-card.d.ts.map +0 -1
  213. package/dist/components/ui/hover-card.js +0 -9
  214. package/dist/components/ui/input.d.ts +0 -24
  215. package/dist/components/ui/input.d.ts.map +0 -1
  216. package/dist/components/ui/input.js +0 -71
  217. package/dist/components/ui/label.d.ts +0 -6
  218. package/dist/components/ui/label.d.ts.map +0 -1
  219. package/dist/components/ui/label.js +0 -9
  220. package/dist/components/ui/masks.d.ts +0 -17
  221. package/dist/components/ui/masks.d.ts.map +0 -1
  222. package/dist/components/ui/masks.js +0 -25
  223. package/dist/components/ui/pagination.d.ts +0 -30
  224. package/dist/components/ui/pagination.d.ts.map +0 -1
  225. package/dist/components/ui/pagination.js +0 -23
  226. package/dist/components/ui/popover.d.ts +0 -7
  227. package/dist/components/ui/popover.d.ts.map +0 -1
  228. package/dist/components/ui/popover.js +0 -11
  229. package/dist/components/ui/progress.d.ts +0 -5
  230. package/dist/components/ui/progress.d.ts.map +0 -1
  231. package/dist/components/ui/progress.js +0 -7
  232. package/dist/components/ui/radio-group.d.ts +0 -6
  233. package/dist/components/ui/radio-group.d.ts.map +0 -1
  234. package/dist/components/ui/radio-group.js +0 -14
  235. package/dist/components/ui/scroll-area.d.ts +0 -6
  236. package/dist/components/ui/scroll-area.d.ts.map +0 -1
  237. package/dist/components/ui/scroll-area.js +0 -11
  238. package/dist/components/ui/select.d.ts +0 -14
  239. package/dist/components/ui/select.d.ts.map +0 -1
  240. package/dist/components/ui/select.js +0 -24
  241. package/dist/components/ui/separator.d.ts +0 -5
  242. package/dist/components/ui/separator.d.ts.map +0 -1
  243. package/dist/components/ui/separator.js +0 -7
  244. package/dist/components/ui/sheet.d.ts +0 -26
  245. package/dist/components/ui/sheet.d.ts.map +0 -1
  246. package/dist/components/ui/sheet.js +0 -37
  247. package/dist/components/ui/sidebar.d.ts +0 -67
  248. package/dist/components/ui/sidebar.d.ts.map +0 -1
  249. package/dist/components/ui/sidebar.js +0 -221
  250. package/dist/components/ui/skeleton.d.ts +0 -3
  251. package/dist/components/ui/skeleton.d.ts.map +0 -1
  252. package/dist/components/ui/skeleton.js +0 -6
  253. package/dist/components/ui/slider.d.ts +0 -5
  254. package/dist/components/ui/slider.d.ts.map +0 -1
  255. package/dist/components/ui/slider.js +0 -7
  256. package/dist/components/ui/switch.d.ts +0 -5
  257. package/dist/components/ui/switch.d.ts.map +0 -1
  258. package/dist/components/ui/switch.js +0 -7
  259. package/dist/components/ui/table.d.ts +0 -11
  260. package/dist/components/ui/table.d.ts.map +0 -1
  261. package/dist/components/ui/table.js +0 -20
  262. package/dist/components/ui/tabs.d.ts +0 -8
  263. package/dist/components/ui/tabs.d.ts.map +0 -1
  264. package/dist/components/ui/tabs.js +0 -12
  265. package/dist/components/ui/textarea.d.ts +0 -4
  266. package/dist/components/ui/textarea.d.ts.map +0 -1
  267. package/dist/components/ui/textarea.js +0 -14
  268. package/dist/components/ui/toast.d.ts +0 -16
  269. package/dist/components/ui/toast.d.ts.map +0 -1
  270. package/dist/components/ui/toast.js +0 -34
  271. package/dist/components/ui/toaster.d.ts +0 -2
  272. package/dist/components/ui/toaster.d.ts.map +0 -1
  273. package/dist/components/ui/toaster.js +0 -21
  274. package/dist/components/ui/tooltip.d.ts +0 -8
  275. package/dist/components/ui/tooltip.d.ts.map +0 -1
  276. package/dist/components/ui/tooltip.js +0 -10
  277. package/dist/components/ui/use-calendar.d.ts +0 -7
  278. package/dist/components/ui/use-calendar.d.ts.map +0 -1
  279. package/dist/components/ui/use-calendar.js +0 -23
  280. package/dist/components/ui/use-toast.d.ts +0 -46
  281. package/dist/components/ui/use-toast.d.ts.map +0 -1
  282. package/dist/components/ui/use-toast.js +0 -125
  283. package/dist/hooks/use-mobile.d.ts +0 -2
  284. package/dist/hooks/use-mobile.d.ts.map +0 -1
  285. package/dist/hooks/use-mobile.js +0 -15
  286. package/dist/index.d.ts.map +0 -1
  287. package/dist/lib/help/date-utils.d.ts +0 -7
  288. package/dist/lib/help/date-utils.d.ts.map +0 -1
  289. package/dist/lib/help/date-utils.js +0 -34
  290. package/dist/lib/help/format.d.ts +0 -22
  291. package/dist/lib/help/format.d.ts.map +0 -1
  292. package/dist/lib/help/format.js +0 -140
  293. package/dist/lib/help/theme.d.ts +0 -291
  294. package/dist/lib/help/theme.d.ts.map +0 -1
  295. package/dist/lib/help/theme.js +0 -340
  296. package/dist/lib/help/uuid.d.ts +0 -2
  297. package/dist/lib/help/uuid.d.ts.map +0 -1
  298. package/dist/lib/help/uuid.js +0 -4
  299. package/dist/lib/utils.d.ts +0 -3
  300. package/dist/lib/utils.d.ts.map +0 -1
  301. package/dist/lib/utils.js +0 -5
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 EAI Team
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2025 EAI Team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/README.md CHANGED
@@ -1,299 +1,299 @@
1
- # 🎨 EAI Design System Components
2
-
3
- Biblioteca de componentes UI reutilizáveis baseada em shadcn/ui e Radix UI para projetos EAI.
4
-
5
- [![NPM Version](https://img.shields.io/npm/v/eai-frontend-components.svg)](https://www.npmjs.com/package/eai-frontend-components)
6
- [![NPM Downloads](https://img.shields.io/npm/dm/eai-frontend-components.svg)](https://www.npmjs.com/package/eai-frontend-components)
7
- [![Bundle Size](https://img.shields.io/bundlephobia/minzip/eai-frontend-components.svg)](https://bundlephobia.com/package/eai-frontend-components)
8
- [![TypeScript](https://img.shields.io/badge/TypeScript-Ready-blue.svg)](https://www.typescriptlang.org/)
9
- [![License](https://img.shields.io/npm/l/eai-frontend-components.svg)](./LICENSE)
10
- [![Bitbucket Pipelines](https://img.shields.io/bitbucket/pipelines/genei_ryodan/erp_frontend_eai_ds.svg)](https://bitbucket.org/genei_ryodan/erp_frontend_eai_ds/addon/pipelines/home)
11
-
12
- ## 📦 Instalação
13
-
14
- ```bash
15
- # NPM
16
- npm install eai-frontend-components
17
-
18
- # Yarn
19
- yarn add eai-frontend-components
20
-
21
- # PNPM
22
- pnpm add eai-frontend-components
23
- ```
24
-
25
- ## 🌟 Por que usar eai-frontend-components?
26
-
27
- - ⚡ **Performático**: Tree-shaking otimizado, apenas importe o que usar
28
- - 🎨 **Personalizável**: Baseado em Tailwind CSS com tokens de design
29
- - ♿ **Acessível**: Construído com Radix UI primitives (WCAG 2.1)
30
- - 🔧 **TypeScript**: Totalmente tipado para melhor DX
31
- - 🌙 **Dark Mode**: Suporte nativo a múltiplos temas
32
- - 📱 **Responsivo**: Mobile-first e totalmente adaptativo
33
- - 🚀 **Moderno**: React 18+, ESM, e as melhores práticas
34
-
35
- ## 🚀 Release Automático
36
-
37
- Este projeto usa **Semantic Release** para publicação automática no NPM:
38
-
39
- - `feat:` → Nova funcionalidade (versão minor)
40
- - `fix:` → Correção de bug (versão patch)
41
- - `feat!:` → Breaking change (versão major)
42
-
43
- **Exemplo:**
44
- ```bash
45
- git commit -m "feat: adicionar componente DatePicker"
46
- git push origin master
47
- # → Versão 2.0.4 vira 2.1.0 automaticamente! 🎉
48
- ```
49
-
50
- ## 📚 Documentação Adicional
51
-
52
- - 📖 **[Guia de Publicação](./PUBLISHING.md)** - Como funciona o release automático
53
- - 📝 **[Conventional Commits](./CONVENTIONAL_COMMITS.md)** - Padrão de commits obrigatório
54
-
55
- ## 🚀 Características
56
-
57
- - ⚡ **Performance**: Componentes otimizados com Tree-shaking
58
- - 🎨 **Customizável**: Sistema de design tokens com Tailwind CSS
59
- - ♿ **Acessível**: Construído com Radix UI primitives
60
- - 🔧 **TypeScript**: Totalmente tipado
61
- - 📦 **Modular**: Importe apenas o que você precisa
62
- - 🌙 **Dark Mode**: Suporte nativo a temas
63
-
64
- ## 📦 Instalação
65
-
66
- ```bash
67
- npm install eai-frontend-components
68
- # ou
69
- yarn add eai-frontend-components
70
- ```
71
-
72
- ## 🛠️ Configuração
73
-
74
- ### 1. Adicione os estilos CSS
75
-
76
- Importe os estilos globais no seu projeto:
77
-
78
- ```tsx
79
- // src/main.tsx ou src/App.tsx
80
- import 'eai-frontend-components/dist/styles.css';
81
- ```
82
-
83
- ### 2. Configure o Tailwind CSS
84
-
85
- Adicione o conteúdo da biblioteca no seu `tailwind.config.js`:
86
-
87
- ```js
88
- module.exports = {
89
- content: [
90
- "./src/**/*.{js,ts,jsx,tsx}",
91
- "./node_modules/eai-frontend-components/dist/**/*.{js,ts,jsx,tsx}",
92
- ],
93
- // ... resto da configuração
94
- }
95
- ```
96
-
97
- ### 3. Configure as variáveis CSS
98
-
99
- Adicione as variáveis de tema no seu CSS:
100
-
101
- ```css
102
- :root {
103
- --background: 0 0% 100%;
104
- --foreground: 222.2 84% 4.9%;
105
- --primary: 222.2 47.4% 11.2%;
106
- --primary-foreground: 210 40% 98%;
107
- /* ... outras variáveis */
108
- }
109
- ```
110
-
111
- ## 🎯 Uso Básico
112
-
113
- ```tsx
114
- import { Button, Card, Input } from 'eai-frontend-components';
115
-
116
- function App() {
117
- return (
118
- <Card className="p-6">
119
- <Input placeholder="Digite algo..." />
120
- <Button onClick={() => alert('Clicou!')}>
121
- Clique aqui
122
- </Button>
123
- </Card>
124
- );
125
- }
126
- ```
127
-
128
- ## 📚 Componentes Disponíveis
129
-
130
- ### Layouts
131
- - `Card` - Cartões com header, content e footer
132
- - `Sheet` - Painel lateral deslizante
133
- - `Dialog` - Modais e dialogs
134
- - `Accordion` - Conteúdo expansível
135
-
136
- ### Formulários
137
- - `Button` - Botões com múltiplas variantes
138
- - `Input` - Campos de texto
139
- - `Select` - Seletor dropdown
140
- - `Checkbox` - Caixas de seleção
141
- - `RadioGroup` - Grupos de radio buttons
142
- - `Textarea` - Área de texto
143
- - `Switch` - Interruptores
144
- - `Slider` - Controles deslizantes
145
-
146
- ### Navegação
147
- - `Tabs` - Abas navegáveis
148
- - `Breadcrumb` - Navegação hierárquica
149
- - `Pagination` - Paginação de dados
150
- - `Command` - Paleta de comandos
151
-
152
- ### Feedback
153
- - `Alert` - Alertas e notificações
154
- - `Toast` - Notificações temporárias
155
- - `Progress` - Barras de progresso
156
- - `Badge` - Etiquetas e tags
157
- - `Skeleton` - Loading states
158
-
159
- ### Exibição de Dados
160
- - `Table` - Tabelas estruturadas
161
- - `Avatar` - Imagens de perfil
162
- - `Calendar` - Seletor de datas
163
- - `Tooltip` - Dicas contextuais
164
-
165
- ## 🎨 Customização
166
-
167
- ### Variantes de Componentes
168
-
169
- ```tsx
170
- <Button variant="default">Padrão</Button>
171
- <Button variant="outline">Contorno</Button>
172
- <Button variant="ghost">Fantasma</Button>
173
- <Button variant="destructive">Destrutivo</Button>
174
- ```
175
-
176
- ### Tamanhos
177
-
178
- ```tsx
179
- <Button size="sm">Pequeno</Button>
180
- <Button size="default">Padrão</Button>
181
- <Button size="lg">Grande</Button>
182
- ```
183
-
184
- ### Classes Customizadas
185
-
186
- ```tsx
187
- <Button className="bg-purple-600 hover:bg-purple-700">
188
- Customizado
189
- </Button>
190
- ```
191
-
192
- ## 🌙 Dark Mode
193
-
194
- Configure o dark mode adicionando a classe `dark` ao elemento raiz:
195
-
196
- ```tsx
197
- // Exemplo com context
198
- const [theme, setTheme] = useState('light');
199
-
200
- return (
201
- <div className={theme === 'dark' ? 'dark' : ''}>
202
- <App />
203
- </div>
204
- );
205
- ```
206
-
207
- ## 📖 Storybook
208
-
209
- Execute o Storybook para visualizar todos os componentes:
210
-
211
- ```bash
212
- yarn dev
213
- ```
214
-
215
- ## 🔧 Desenvolvimento
216
-
217
- ```bash
218
- # Instale as dependências
219
- yarn install
220
-
221
- # Desenvolvimento com watch
222
- yarn build:watch
223
-
224
- # Build de produção
225
- yarn build
226
-
227
- # Lint
228
- yarn lint
229
- ```
230
-
231
- ## 📝 Exemplos
232
-
233
- ### Formulário Completo
234
-
235
- ```tsx
236
- import {
237
- Card,
238
- CardContent,
239
- CardHeader,
240
- CardTitle,
241
- Button,
242
- Input,
243
- Label,
244
- Select,
245
- SelectContent,
246
- SelectItem,
247
- SelectTrigger,
248
- SelectValue
249
- } from 'eai-frontend-components';
250
-
251
- function ContactForm() {
252
- return (
253
- <Card className="w-96">
254
- <CardHeader>
255
- <CardTitle>Contato</CardTitle>
256
- </CardHeader>
257
- <CardContent className="space-y-4">
258
- <div>
259
- <Label htmlFor="name">Nome</Label>
260
- <Input id="name" placeholder="Seu nome" />
261
- </div>
262
-
263
- <div>
264
- <Label htmlFor="type">Tipo</Label>
265
- <Select>
266
- <SelectTrigger>
267
- <SelectValue placeholder="Selecione..." />
268
- </SelectTrigger>
269
- <SelectContent>
270
- <SelectItem value="comercial">Comercial</SelectItem>
271
- <SelectItem value="suporte">Suporte</SelectItem>
272
- </SelectContent>
273
- </Select>
274
- </div>
275
-
276
- <Button className="w-full">Enviar</Button>
277
- </CardContent>
278
- </Card>
279
- );
280
- }
281
- ```
282
-
283
- ## 🤝 Contribuição
284
-
285
- 1. Faça o fork do projeto
286
- 2. Crie uma branch para sua feature (`git checkout -b feature/nova-feature`)
287
- 3. Commit suas mudanças (`git commit -m 'feat: adiciona nova feature'`)
288
- 4. Push para a branch (`git push origin feature/nova-feature`)
289
- 5. Abra um Pull Request
290
-
291
- ## 📄 Licença
292
-
293
- MIT © EAI Team
294
-
295
- ## 🔗 Links
296
-
297
- - [Documentação Radix UI](https://www.radix-ui.com/)
298
- - [Tailwind CSS](https://tailwindcss.com/)
1
+ # 🎨 EAI Design System Components
2
+
3
+ Biblioteca de componentes UI reutilizáveis baseada em shadcn/ui e Radix UI para projetos EAI.
4
+
5
+ [![NPM Version](https://img.shields.io/npm/v/eai-frontend-components.svg)](https://www.npmjs.com/package/eai-frontend-components)
6
+ [![NPM Downloads](https://img.shields.io/npm/dm/eai-frontend-components.svg)](https://www.npmjs.com/package/eai-frontend-components)
7
+ [![Bundle Size](https://img.shields.io/bundlephobia/minzip/eai-frontend-components.svg)](https://bundlephobia.com/package/eai-frontend-components)
8
+ [![TypeScript](https://img.shields.io/badge/TypeScript-Ready-blue.svg)](https://www.typescriptlang.org/)
9
+ [![License](https://img.shields.io/npm/l/eai-frontend-components.svg)](./LICENSE)
10
+ [![Bitbucket Pipelines](https://img.shields.io/bitbucket/pipelines/genei_ryodan/erp_frontend_eai_ds.svg)](https://bitbucket.org/genei_ryodan/erp_frontend_eai_ds/addon/pipelines/home)
11
+
12
+ ## 📦 Instalação
13
+
14
+ ```bash
15
+ # NPM
16
+ npm install eai-frontend-components
17
+
18
+ # Yarn
19
+ yarn add eai-frontend-components
20
+
21
+ # PNPM
22
+ pnpm add eai-frontend-components
23
+ ```
24
+
25
+ ## 🌟 Por que usar eai-frontend-components?
26
+
27
+ - ⚡ **Performático**: Tree-shaking otimizado, apenas importe o que usar
28
+ - 🎨 **Personalizável**: Baseado em Tailwind CSS com tokens de design
29
+ - ♿ **Acessível**: Construído com Radix UI primitives (WCAG 2.1)
30
+ - 🔧 **TypeScript**: Totalmente tipado para melhor DX
31
+ - 🌙 **Dark Mode**: Suporte nativo a múltiplos temas
32
+ - 📱 **Responsivo**: Mobile-first e totalmente adaptativo
33
+ - 🚀 **Moderno**: React 18+, ESM, e as melhores práticas
34
+
35
+ ## 🚀 Release Automático
36
+
37
+ Este projeto usa **Semantic Release** para publicação automática no NPM:
38
+
39
+ - `feat:` → Nova funcionalidade (versão minor)
40
+ - `fix:` → Correção de bug (versão patch)
41
+ - `feat!:` → Breaking change (versão major)
42
+
43
+ **Exemplo:**
44
+ ```bash
45
+ git commit -m "feat: adicionar componente DatePicker"
46
+ git push origin master
47
+ # → Versão 2.0.4 vira 2.1.0 automaticamente! 🎉
48
+ ```
49
+
50
+ ## 📚 Documentação Adicional
51
+
52
+ - 📖 **[Guia de Publicação](./PUBLISHING.md)** - Como funciona o release automático
53
+ - 📝 **[Conventional Commits](./CONVENTIONAL_COMMITS.md)** - Padrão de commits obrigatório
54
+
55
+ ## 🚀 Características
56
+
57
+ - ⚡ **Performance**: Componentes otimizados com Tree-shaking
58
+ - 🎨 **Customizável**: Sistema de design tokens com Tailwind CSS
59
+ - ♿ **Acessível**: Construído com Radix UI primitives
60
+ - 🔧 **TypeScript**: Totalmente tipado
61
+ - 📦 **Modular**: Importe apenas o que você precisa
62
+ - 🌙 **Dark Mode**: Suporte nativo a temas
63
+
64
+ ## 📦 Instalação
65
+
66
+ ```bash
67
+ npm install eai-frontend-components
68
+ # ou
69
+ yarn add eai-frontend-components
70
+ ```
71
+
72
+ ## 🛠️ Configuração
73
+
74
+ ### 1. Adicione os estilos CSS
75
+
76
+ Importe os estilos globais no seu projeto:
77
+
78
+ ```tsx
79
+ // src/main.tsx ou src/App.tsx
80
+ import 'eai-frontend-components/dist/styles.css';
81
+ ```
82
+
83
+ ### 2. Configure o Tailwind CSS
84
+
85
+ Adicione o conteúdo da biblioteca no seu `tailwind.config.js`:
86
+
87
+ ```js
88
+ module.exports = {
89
+ content: [
90
+ "./src/**/*.{js,ts,jsx,tsx}",
91
+ "./node_modules/eai-frontend-components/dist/**/*.{js,ts,jsx,tsx}",
92
+ ],
93
+ // ... resto da configuração
94
+ }
95
+ ```
96
+
97
+ ### 3. Configure as variáveis CSS
98
+
99
+ Adicione as variáveis de tema no seu CSS:
100
+
101
+ ```css
102
+ :root {
103
+ --background: 0 0% 100%;
104
+ --foreground: 222.2 84% 4.9%;
105
+ --primary: 222.2 47.4% 11.2%;
106
+ --primary-foreground: 210 40% 98%;
107
+ /* ... outras variáveis */
108
+ }
109
+ ```
110
+
111
+ ## 🎯 Uso Básico
112
+
113
+ ```tsx
114
+ import { Button, Card, Input } from 'eai-frontend-components';
115
+
116
+ function App() {
117
+ return (
118
+ <Card className="p-6">
119
+ <Input placeholder="Digite algo..." />
120
+ <Button onClick={() => alert('Clicou!')}>
121
+ Clique aqui
122
+ </Button>
123
+ </Card>
124
+ );
125
+ }
126
+ ```
127
+
128
+ ## 📚 Componentes Disponíveis
129
+
130
+ ### Layouts
131
+ - `Card` - Cartões com header, content e footer
132
+ - `Sheet` - Painel lateral deslizante
133
+ - `Dialog` - Modais e dialogs
134
+ - `Accordion` - Conteúdo expansível
135
+
136
+ ### Formulários
137
+ - `Button` - Botões com múltiplas variantes
138
+ - `Input` - Campos de texto
139
+ - `Select` - Seletor dropdown
140
+ - `Checkbox` - Caixas de seleção
141
+ - `RadioGroup` - Grupos de radio buttons
142
+ - `Textarea` - Área de texto
143
+ - `Switch` - Interruptores
144
+ - `Slider` - Controles deslizantes
145
+
146
+ ### Navegação
147
+ - `Tabs` - Abas navegáveis
148
+ - `Breadcrumb` - Navegação hierárquica
149
+ - `Pagination` - Paginação de dados
150
+ - `Command` - Paleta de comandos
151
+
152
+ ### Feedback
153
+ - `Alert` - Alertas e notificações
154
+ - `Toast` - Notificações temporárias
155
+ - `Progress` - Barras de progresso
156
+ - `Badge` - Etiquetas e tags
157
+ - `Skeleton` - Loading states
158
+
159
+ ### Exibição de Dados
160
+ - `Table` - Tabelas estruturadas
161
+ - `Avatar` - Imagens de perfil
162
+ - `Calendar` - Seletor de datas
163
+ - `Tooltip` - Dicas contextuais
164
+
165
+ ## 🎨 Customização
166
+
167
+ ### Variantes de Componentes
168
+
169
+ ```tsx
170
+ <Button variant="default">Padrão</Button>
171
+ <Button variant="outline">Contorno</Button>
172
+ <Button variant="ghost">Fantasma</Button>
173
+ <Button variant="destructive">Destrutivo</Button>
174
+ ```
175
+
176
+ ### Tamanhos
177
+
178
+ ```tsx
179
+ <Button size="sm">Pequeno</Button>
180
+ <Button size="default">Padrão</Button>
181
+ <Button size="lg">Grande</Button>
182
+ ```
183
+
184
+ ### Classes Customizadas
185
+
186
+ ```tsx
187
+ <Button className="bg-purple-600 hover:bg-purple-700">
188
+ Customizado
189
+ </Button>
190
+ ```
191
+
192
+ ## 🌙 Dark Mode
193
+
194
+ Configure o dark mode adicionando a classe `dark` ao elemento raiz:
195
+
196
+ ```tsx
197
+ // Exemplo com context
198
+ const [theme, setTheme] = useState('light');
199
+
200
+ return (
201
+ <div className={theme === 'dark' ? 'dark' : ''}>
202
+ <App />
203
+ </div>
204
+ );
205
+ ```
206
+
207
+ ## 📖 Storybook
208
+
209
+ Execute o Storybook para visualizar todos os componentes:
210
+
211
+ ```bash
212
+ yarn dev
213
+ ```
214
+
215
+ ## 🔧 Desenvolvimento
216
+
217
+ ```bash
218
+ # Instale as dependências
219
+ yarn install
220
+
221
+ # Desenvolvimento com watch
222
+ yarn build:watch
223
+
224
+ # Build de produção
225
+ yarn build
226
+
227
+ # Lint
228
+ yarn lint
229
+ ```
230
+
231
+ ## 📝 Exemplos
232
+
233
+ ### Formulário Completo
234
+
235
+ ```tsx
236
+ import {
237
+ Card,
238
+ CardContent,
239
+ CardHeader,
240
+ CardTitle,
241
+ Button,
242
+ Input,
243
+ Label,
244
+ Select,
245
+ SelectContent,
246
+ SelectItem,
247
+ SelectTrigger,
248
+ SelectValue
249
+ } from 'eai-frontend-components';
250
+
251
+ function ContactForm() {
252
+ return (
253
+ <Card className="w-96">
254
+ <CardHeader>
255
+ <CardTitle>Contato</CardTitle>
256
+ </CardHeader>
257
+ <CardContent className="space-y-4">
258
+ <div>
259
+ <Label htmlFor="name">Nome</Label>
260
+ <Input id="name" placeholder="Seu nome" />
261
+ </div>
262
+
263
+ <div>
264
+ <Label htmlFor="type">Tipo</Label>
265
+ <Select>
266
+ <SelectTrigger>
267
+ <SelectValue placeholder="Selecione..." />
268
+ </SelectTrigger>
269
+ <SelectContent>
270
+ <SelectItem value="comercial">Comercial</SelectItem>
271
+ <SelectItem value="suporte">Suporte</SelectItem>
272
+ </SelectContent>
273
+ </Select>
274
+ </div>
275
+
276
+ <Button className="w-full">Enviar</Button>
277
+ </CardContent>
278
+ </Card>
279
+ );
280
+ }
281
+ ```
282
+
283
+ ## 🤝 Contribuição
284
+
285
+ 1. Faça o fork do projeto
286
+ 2. Crie uma branch para sua feature (`git checkout -b feature/nova-feature`)
287
+ 3. Commit suas mudanças (`git commit -m 'feat: adiciona nova feature'`)
288
+ 4. Push para a branch (`git push origin feature/nova-feature`)
289
+ 5. Abra um Pull Request
290
+
291
+ ## 📄 Licença
292
+
293
+ MIT © EAI Team
294
+
295
+ ## 🔗 Links
296
+
297
+ - [Documentação Radix UI](https://www.radix-ui.com/)
298
+ - [Tailwind CSS](https://tailwindcss.com/)
299
299
  - [shadcn/ui](https://ui.shadcn.com/)