eai-frontend-components 2.0.4

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 (687) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +299 -0
  3. package/dist/components/accordion.d.ts +8 -0
  4. package/dist/components/accordion.d.ts.map +1 -0
  5. package/dist/components/accordion.js +13 -0
  6. package/dist/components/alert-dialog.d.ts +25 -0
  7. package/dist/components/alert-dialog.d.ts.map +1 -0
  8. package/dist/components/alert-dialog.js +27 -0
  9. package/dist/components/alert.d.ts +9 -0
  10. package/dist/components/alert.d.ts.map +1 -0
  11. package/dist/components/alert.js +22 -0
  12. package/dist/components/avatar.d.ts +7 -0
  13. package/dist/components/avatar.d.ts.map +1 -0
  14. package/dist/components/avatar.js +11 -0
  15. package/dist/components/badge.d.ts +10 -0
  16. package/dist/components/badge.d.ts.map +1 -0
  17. package/dist/components/badge.js +26 -0
  18. package/dist/components/breadcrumb.d.ts +20 -0
  19. package/dist/components/breadcrumb.d.ts.map +1 -0
  20. package/dist/components/breadcrumb.js +23 -0
  21. package/dist/components/button.d.ts +12 -0
  22. package/dist/components/button.d.ts.map +1 -0
  23. package/dist/components/button.js +33 -0
  24. package/dist/components/calendar.d.ts +9 -0
  25. package/dist/components/calendar.d.ts.map +1 -0
  26. package/dist/components/calendar.js +70 -0
  27. package/dist/components/card.d.ts +9 -0
  28. package/dist/components/card.d.ts.map +1 -0
  29. package/dist/components/card.js +16 -0
  30. package/dist/components/carousel.d.ts +19 -0
  31. package/dist/components/carousel.d.ts.map +1 -0
  32. package/dist/components/carousel.js +98 -0
  33. package/dist/components/chart.d.ts +63 -0
  34. package/dist/components/chart.d.ts.map +1 -0
  35. package/dist/components/chart.js +130 -0
  36. package/dist/components/checkbox.d.ts +5 -0
  37. package/dist/components/checkbox.d.ts.map +1 -0
  38. package/dist/components/checkbox.js +8 -0
  39. package/dist/components/collapsible.d.ts +6 -0
  40. package/dist/components/collapsible.d.ts.map +1 -0
  41. package/dist/components/collapsible.js +5 -0
  42. package/dist/components/command.d.ts +81 -0
  43. package/dist/components/command.d.ts.map +1 -0
  44. package/dist/components/command.js +28 -0
  45. package/dist/components/context-menu.d.ts +28 -0
  46. package/dist/components/context-menu.d.ts.map +1 -0
  47. package/dist/components/context-menu.js +33 -0
  48. package/dist/components/custom/date-picker.d.ts +12 -0
  49. package/dist/components/custom/date-picker.d.ts.map +1 -0
  50. package/dist/components/custom/date-picker.js +35 -0
  51. package/dist/components/custom/form/checkbox.d.ts +13 -0
  52. package/dist/components/custom/form/checkbox.d.ts.map +1 -0
  53. package/dist/components/custom/form/checkbox.js +15 -0
  54. package/dist/components/custom/form/color.d.ts +15 -0
  55. package/dist/components/custom/form/color.d.ts.map +1 -0
  56. package/dist/components/custom/form/color.js +40 -0
  57. package/dist/components/custom/form/combobox.d.ts +37 -0
  58. package/dist/components/custom/form/combobox.d.ts.map +1 -0
  59. package/dist/components/custom/form/combobox.js +82 -0
  60. package/dist/components/custom/form/cpf-cnpj.d.ts +16 -0
  61. package/dist/components/custom/form/cpf-cnpj.d.ts.map +1 -0
  62. package/dist/components/custom/form/cpf-cnpj.js +32 -0
  63. package/dist/components/custom/form/currency.d.ts +14 -0
  64. package/dist/components/custom/form/currency.d.ts.map +1 -0
  65. package/dist/components/custom/form/currency.js +15 -0
  66. package/dist/components/custom/form/date-range.d.ts +16 -0
  67. package/dist/components/custom/form/date-range.d.ts.map +1 -0
  68. package/dist/components/custom/form/date-range.js +24 -0
  69. package/dist/components/custom/form/date.d.ts +16 -0
  70. package/dist/components/custom/form/date.d.ts.map +1 -0
  71. package/dist/components/custom/form/date.js +35 -0
  72. package/dist/components/custom/form/decimal.d.ts +14 -0
  73. package/dist/components/custom/form/decimal.d.ts.map +1 -0
  74. package/dist/components/custom/form/decimal.js +15 -0
  75. package/dist/components/custom/form/file.d.ts +15 -0
  76. package/dist/components/custom/form/file.d.ts.map +1 -0
  77. package/dist/components/custom/form/file.js +18 -0
  78. package/dist/components/custom/form/form-help-text.d.ts +3 -0
  79. package/dist/components/custom/form/form-help-text.d.ts.map +1 -0
  80. package/dist/components/custom/form/form-help-text.js +7 -0
  81. package/dist/components/custom/form/form-label.d.ts +4 -0
  82. package/dist/components/custom/form/form-label.d.ts.map +1 -0
  83. package/dist/components/custom/form/form-label.js +9 -0
  84. package/dist/components/custom/form/form-message.d.ts +3 -0
  85. package/dist/components/custom/form/form-message.d.ts.map +1 -0
  86. package/dist/components/custom/form/form-message.js +5 -0
  87. package/dist/components/custom/form/ghost.d.ts +8 -0
  88. package/dist/components/custom/form/ghost.d.ts.map +1 -0
  89. package/dist/components/custom/form/ghost.js +8 -0
  90. package/dist/components/custom/form/input.d.ts +18 -0
  91. package/dist/components/custom/form/input.d.ts.map +1 -0
  92. package/dist/components/custom/form/input.js +14 -0
  93. package/dist/components/custom/form/mask.d.ts +19 -0
  94. package/dist/components/custom/form/mask.d.ts.map +1 -0
  95. package/dist/components/custom/form/mask.js +19 -0
  96. package/dist/components/custom/form/multi-select-old.d.ts +19 -0
  97. package/dist/components/custom/form/multi-select-old.d.ts.map +1 -0
  98. package/dist/components/custom/form/multi-select-old.js +30 -0
  99. package/dist/components/custom/form/multi-select.d.ts +26 -0
  100. package/dist/components/custom/form/multi-select.d.ts.map +1 -0
  101. package/dist/components/custom/form/multi-select.js +66 -0
  102. package/dist/components/custom/form/password.d.ts +16 -0
  103. package/dist/components/custom/form/password.d.ts.map +1 -0
  104. package/dist/components/custom/form/password.js +14 -0
  105. package/dist/components/custom/form/percent.d.ts +14 -0
  106. package/dist/components/custom/form/percent.d.ts.map +1 -0
  107. package/dist/components/custom/form/percent.js +15 -0
  108. package/dist/components/custom/form/phone.d.ts +16 -0
  109. package/dist/components/custom/form/phone.d.ts.map +1 -0
  110. package/dist/components/custom/form/phone.js +23 -0
  111. package/dist/components/custom/form/radio-group.d.ts +23 -0
  112. package/dist/components/custom/form/radio-group.d.ts.map +1 -0
  113. package/dist/components/custom/form/radio-group.js +15 -0
  114. package/dist/components/custom/form/select.d.ts +20 -0
  115. package/dist/components/custom/form/select.d.ts.map +1 -0
  116. package/dist/components/custom/form/select.js +12 -0
  117. package/dist/components/custom/form/step-new-form.d.ts +10 -0
  118. package/dist/components/custom/form/step-new-form.d.ts.map +1 -0
  119. package/dist/components/custom/form/step-new-form.js +13 -0
  120. package/dist/components/custom/form/switch.d.ts +13 -0
  121. package/dist/components/custom/form/switch.d.ts.map +1 -0
  122. package/dist/components/custom/form/switch.js +16 -0
  123. package/dist/components/custom/form/text.d.ts +18 -0
  124. package/dist/components/custom/form/text.d.ts.map +1 -0
  125. package/dist/components/custom/form/text.js +14 -0
  126. package/dist/components/custom/form/textarea.d.ts +16 -0
  127. package/dist/components/custom/form/textarea.d.ts.map +1 -0
  128. package/dist/components/custom/form/textarea.js +19 -0
  129. package/dist/components/custom/form/utils.d.ts +18 -0
  130. package/dist/components/custom/form/utils.d.ts.map +1 -0
  131. package/dist/components/custom/form/utils.js +88 -0
  132. package/dist/components/custom/header.d.ts +3 -0
  133. package/dist/components/custom/header.d.ts.map +1 -0
  134. package/dist/components/custom/header.js +94 -0
  135. package/dist/components/custom/label.d.ts +13 -0
  136. package/dist/components/custom/label.d.ts.map +1 -0
  137. package/dist/components/custom/label.js +20 -0
  138. package/dist/components/custom/not-found.d.ts +3 -0
  139. package/dist/components/custom/not-found.d.ts.map +1 -0
  140. package/dist/components/custom/not-found.js +9 -0
  141. package/dist/components/custom/sidebar/app-sidebar.d.ts +5 -0
  142. package/dist/components/custom/sidebar/app-sidebar.d.ts.map +1 -0
  143. package/dist/components/custom/sidebar/app-sidebar.js +26 -0
  144. package/dist/components/custom/sidebar/module-switcher.d.ts +3 -0
  145. package/dist/components/custom/sidebar/module-switcher.d.ts.map +1 -0
  146. package/dist/components/custom/sidebar/module-switcher.js +55 -0
  147. package/dist/components/custom/sidebar/nav-footer.d.ts +3 -0
  148. package/dist/components/custom/sidebar/nav-footer.d.ts.map +1 -0
  149. package/dist/components/custom/sidebar/nav-footer.js +17 -0
  150. package/dist/components/custom/sidebar/nav-main.d.ts +3 -0
  151. package/dist/components/custom/sidebar/nav-main.d.ts.map +1 -0
  152. package/dist/components/custom/sidebar/nav-main.js +32 -0
  153. package/dist/components/custom/sidebar/nav-submenu-collapsible.d.ts +9 -0
  154. package/dist/components/custom/sidebar/nav-submenu-collapsible.d.ts.map +1 -0
  155. package/dist/components/custom/sidebar/nav-submenu-collapsible.js +21 -0
  156. package/dist/components/custom/sidebar/nav-submenu-dropdown.d.ts +10 -0
  157. package/dist/components/custom/sidebar/nav-submenu-dropdown.d.ts.map +1 -0
  158. package/dist/components/custom/sidebar/nav-submenu-dropdown.js +13 -0
  159. package/dist/components/custom/sidebar/nav-user.d.ts +3 -0
  160. package/dist/components/custom/sidebar/nav-user.d.ts.map +1 -0
  161. package/dist/components/custom/sidebar/nav-user.js +51 -0
  162. package/dist/components/custom/sidebar/sidebar-button.d.ts +9 -0
  163. package/dist/components/custom/sidebar/sidebar-button.d.ts.map +1 -0
  164. package/dist/components/custom/sidebar/sidebar-button.js +7 -0
  165. package/dist/components/custom/sidebar/sidebar-item-two-lines.d.ts +12 -0
  166. package/dist/components/custom/sidebar/sidebar-item-two-lines.d.ts.map +1 -0
  167. package/dist/components/custom/sidebar/sidebar-item-two-lines.js +5 -0
  168. package/dist/components/custom/sidebar/sidebar-item.d.ts +9 -0
  169. package/dist/components/custom/sidebar/sidebar-item.d.ts.map +1 -0
  170. package/dist/components/custom/sidebar/sidebar-item.js +7 -0
  171. package/dist/components/custom/sidebar/types/sidebar.d.ts +29 -0
  172. package/dist/components/custom/sidebar/types/sidebar.d.ts.map +1 -0
  173. package/dist/components/custom/sidebar/types/sidebar.js +5 -0
  174. package/dist/components/custom/table/data-table-export.d.ts +8 -0
  175. package/dist/components/custom/table/data-table-export.d.ts.map +1 -0
  176. package/dist/components/custom/table/data-table-export.js +65 -0
  177. package/dist/components/custom/table/data-table-footer.d.ts +25 -0
  178. package/dist/components/custom/table/data-table-footer.d.ts.map +1 -0
  179. package/dist/components/custom/table/data-table-footer.js +39 -0
  180. package/dist/components/custom/table/data-table-header.d.ts +9 -0
  181. package/dist/components/custom/table/data-table-header.d.ts.map +1 -0
  182. package/dist/components/custom/table/data-table-header.js +11 -0
  183. package/dist/components/custom/table/data-table-rows.d.ts +13 -0
  184. package/dist/components/custom/table/data-table-rows.d.ts.map +1 -0
  185. package/dist/components/custom/table/data-table-rows.js +25 -0
  186. package/dist/components/custom/table/data-table.d.ts +35 -0
  187. package/dist/components/custom/table/data-table.d.ts.map +1 -0
  188. package/dist/components/custom/table/data-table.js +99 -0
  189. package/dist/components/custom/table/types/data-table.d.ts +29 -0
  190. package/dist/components/custom/table/types/data-table.d.ts.map +1 -0
  191. package/dist/components/custom/table/types/data-table.js +1 -0
  192. package/dist/components/custom/theme-provider.d.ts +24 -0
  193. package/dist/components/custom/theme-provider.d.ts.map +1 -0
  194. package/dist/components/custom/theme-provider.js +79 -0
  195. package/dist/components/dateRangePicker.d.ts +3 -0
  196. package/dist/components/dateRangePicker.d.ts.map +1 -0
  197. package/dist/components/dateRangePicker.js +15 -0
  198. package/dist/components/dialog.d.ts +23 -0
  199. package/dist/components/dialog.d.ts.map +1 -0
  200. package/dist/components/dialog.js +23 -0
  201. package/dist/components/drawer.d.ts +23 -0
  202. package/dist/components/drawer.d.ts.map +1 -0
  203. package/dist/components/drawer.js +22 -0
  204. package/dist/components/dropdown-menu.d.ts +28 -0
  205. package/dist/components/dropdown-menu.d.ts.map +1 -0
  206. package/dist/components/dropdown-menu.js +32 -0
  207. package/dist/components/form.d.ts +24 -0
  208. package/dist/components/form.d.ts.map +1 -0
  209. package/dist/components/form.js +60 -0
  210. package/dist/components/hover-card.d.ts +7 -0
  211. package/dist/components/hover-card.d.ts.map +1 -0
  212. package/dist/components/hover-card.js +9 -0
  213. package/dist/components/input.d.ts +24 -0
  214. package/dist/components/input.d.ts.map +1 -0
  215. package/dist/components/input.js +71 -0
  216. package/dist/components/label.d.ts +6 -0
  217. package/dist/components/label.d.ts.map +1 -0
  218. package/dist/components/label.js +9 -0
  219. package/dist/components/masks.d.ts +17 -0
  220. package/dist/components/masks.d.ts.map +1 -0
  221. package/dist/components/masks.js +25 -0
  222. package/dist/components/pagination.d.ts +30 -0
  223. package/dist/components/pagination.d.ts.map +1 -0
  224. package/dist/components/pagination.js +23 -0
  225. package/dist/components/popover.d.ts +7 -0
  226. package/dist/components/popover.d.ts.map +1 -0
  227. package/dist/components/popover.js +11 -0
  228. package/dist/components/progress.d.ts +5 -0
  229. package/dist/components/progress.d.ts.map +1 -0
  230. package/dist/components/progress.js +7 -0
  231. package/dist/components/radio-group.d.ts +6 -0
  232. package/dist/components/radio-group.d.ts.map +1 -0
  233. package/dist/components/radio-group.js +14 -0
  234. package/dist/components/scroll-area.d.ts +6 -0
  235. package/dist/components/scroll-area.d.ts.map +1 -0
  236. package/dist/components/scroll-area.js +11 -0
  237. package/dist/components/select.d.ts +14 -0
  238. package/dist/components/select.d.ts.map +1 -0
  239. package/dist/components/select.js +24 -0
  240. package/dist/components/separator.d.ts +5 -0
  241. package/dist/components/separator.d.ts.map +1 -0
  242. package/dist/components/separator.js +7 -0
  243. package/dist/components/sheet.d.ts +26 -0
  244. package/dist/components/sheet.d.ts.map +1 -0
  245. package/dist/components/sheet.js +37 -0
  246. package/dist/components/sidebar.d.ts +67 -0
  247. package/dist/components/sidebar.d.ts.map +1 -0
  248. package/dist/components/sidebar.js +221 -0
  249. package/dist/components/skeleton.d.ts +3 -0
  250. package/dist/components/skeleton.d.ts.map +1 -0
  251. package/dist/components/skeleton.js +6 -0
  252. package/dist/components/slider.d.ts +5 -0
  253. package/dist/components/slider.d.ts.map +1 -0
  254. package/dist/components/slider.js +7 -0
  255. package/dist/components/switch.d.ts +5 -0
  256. package/dist/components/switch.d.ts.map +1 -0
  257. package/dist/components/switch.js +7 -0
  258. package/dist/components/table.d.ts +11 -0
  259. package/dist/components/table.d.ts.map +1 -0
  260. package/dist/components/table.js +20 -0
  261. package/dist/components/tabs.d.ts +8 -0
  262. package/dist/components/tabs.d.ts.map +1 -0
  263. package/dist/components/tabs.js +12 -0
  264. package/dist/components/textarea.d.ts +4 -0
  265. package/dist/components/textarea.d.ts.map +1 -0
  266. package/dist/components/textarea.js +14 -0
  267. package/dist/components/toast.d.ts +16 -0
  268. package/dist/components/toast.d.ts.map +1 -0
  269. package/dist/components/toast.js +34 -0
  270. package/dist/components/toaster.d.ts +2 -0
  271. package/dist/components/toaster.d.ts.map +1 -0
  272. package/dist/components/toaster.js +21 -0
  273. package/dist/components/tooltip.d.ts +8 -0
  274. package/dist/components/tooltip.d.ts.map +1 -0
  275. package/dist/components/tooltip.js +10 -0
  276. package/dist/components/ui/accordion.d.ts +8 -0
  277. package/dist/components/ui/accordion.d.ts.map +1 -0
  278. package/dist/components/ui/accordion.js +13 -0
  279. package/dist/components/ui/alert-dialog.d.ts +25 -0
  280. package/dist/components/ui/alert-dialog.d.ts.map +1 -0
  281. package/dist/components/ui/alert-dialog.js +27 -0
  282. package/dist/components/ui/alert.d.ts +9 -0
  283. package/dist/components/ui/alert.d.ts.map +1 -0
  284. package/dist/components/ui/alert.js +22 -0
  285. package/dist/components/ui/avatar.d.ts +7 -0
  286. package/dist/components/ui/avatar.d.ts.map +1 -0
  287. package/dist/components/ui/avatar.js +11 -0
  288. package/dist/components/ui/badge.d.ts +10 -0
  289. package/dist/components/ui/badge.d.ts.map +1 -0
  290. package/dist/components/ui/badge.js +26 -0
  291. package/dist/components/ui/breadcrumb.d.ts +20 -0
  292. package/dist/components/ui/breadcrumb.d.ts.map +1 -0
  293. package/dist/components/ui/breadcrumb.js +23 -0
  294. package/dist/components/ui/button.d.ts +12 -0
  295. package/dist/components/ui/button.d.ts.map +1 -0
  296. package/dist/components/ui/button.js +33 -0
  297. package/dist/components/ui/calendar.d.ts +9 -0
  298. package/dist/components/ui/calendar.d.ts.map +1 -0
  299. package/dist/components/ui/calendar.js +70 -0
  300. package/dist/components/ui/card.d.ts +9 -0
  301. package/dist/components/ui/card.d.ts.map +1 -0
  302. package/dist/components/ui/card.js +16 -0
  303. package/dist/components/ui/carousel.d.ts +19 -0
  304. package/dist/components/ui/carousel.d.ts.map +1 -0
  305. package/dist/components/ui/carousel.js +98 -0
  306. package/dist/components/ui/chart.d.ts +63 -0
  307. package/dist/components/ui/chart.d.ts.map +1 -0
  308. package/dist/components/ui/chart.js +130 -0
  309. package/dist/components/ui/checkbox.d.ts +5 -0
  310. package/dist/components/ui/checkbox.d.ts.map +1 -0
  311. package/dist/components/ui/checkbox.js +8 -0
  312. package/dist/components/ui/collapsible.d.ts +6 -0
  313. package/dist/components/ui/collapsible.d.ts.map +1 -0
  314. package/dist/components/ui/collapsible.js +5 -0
  315. package/dist/components/ui/command.d.ts +81 -0
  316. package/dist/components/ui/command.d.ts.map +1 -0
  317. package/dist/components/ui/command.js +28 -0
  318. package/dist/components/ui/context-menu.d.ts +28 -0
  319. package/dist/components/ui/context-menu.d.ts.map +1 -0
  320. package/dist/components/ui/context-menu.js +33 -0
  321. package/dist/components/ui/custom/date-picker.d.ts +12 -0
  322. package/dist/components/ui/custom/date-picker.d.ts.map +1 -0
  323. package/dist/components/ui/custom/date-picker.js +35 -0
  324. package/dist/components/ui/custom/form/checkbox.d.ts +13 -0
  325. package/dist/components/ui/custom/form/checkbox.d.ts.map +1 -0
  326. package/dist/components/ui/custom/form/checkbox.js +15 -0
  327. package/dist/components/ui/custom/form/color.d.ts +15 -0
  328. package/dist/components/ui/custom/form/color.d.ts.map +1 -0
  329. package/dist/components/ui/custom/form/color.js +40 -0
  330. package/dist/components/ui/custom/form/combobox.d.ts +37 -0
  331. package/dist/components/ui/custom/form/combobox.d.ts.map +1 -0
  332. package/dist/components/ui/custom/form/combobox.js +82 -0
  333. package/dist/components/ui/custom/form/cpf-cnpj.d.ts +16 -0
  334. package/dist/components/ui/custom/form/cpf-cnpj.d.ts.map +1 -0
  335. package/dist/components/ui/custom/form/cpf-cnpj.js +32 -0
  336. package/dist/components/ui/custom/form/currency.d.ts +14 -0
  337. package/dist/components/ui/custom/form/currency.d.ts.map +1 -0
  338. package/dist/components/ui/custom/form/currency.js +15 -0
  339. package/dist/components/ui/custom/form/date-range.d.ts +16 -0
  340. package/dist/components/ui/custom/form/date-range.d.ts.map +1 -0
  341. package/dist/components/ui/custom/form/date-range.js +24 -0
  342. package/dist/components/ui/custom/form/date.d.ts +16 -0
  343. package/dist/components/ui/custom/form/date.d.ts.map +1 -0
  344. package/dist/components/ui/custom/form/date.js +35 -0
  345. package/dist/components/ui/custom/form/decimal.d.ts +14 -0
  346. package/dist/components/ui/custom/form/decimal.d.ts.map +1 -0
  347. package/dist/components/ui/custom/form/decimal.js +15 -0
  348. package/dist/components/ui/custom/form/file.d.ts +15 -0
  349. package/dist/components/ui/custom/form/file.d.ts.map +1 -0
  350. package/dist/components/ui/custom/form/file.js +18 -0
  351. package/dist/components/ui/custom/form/form-help-text.d.ts +3 -0
  352. package/dist/components/ui/custom/form/form-help-text.d.ts.map +1 -0
  353. package/dist/components/ui/custom/form/form-help-text.js +7 -0
  354. package/dist/components/ui/custom/form/form-label.d.ts +7 -0
  355. package/dist/components/ui/custom/form/form-label.d.ts.map +1 -0
  356. package/dist/components/ui/custom/form/form-label.js +9 -0
  357. package/dist/components/ui/custom/form/form-message.d.ts +5 -0
  358. package/dist/components/ui/custom/form/form-message.d.ts.map +1 -0
  359. package/dist/components/ui/custom/form/form-message.js +5 -0
  360. package/dist/components/ui/custom/form/ghost.d.ts +8 -0
  361. package/dist/components/ui/custom/form/ghost.d.ts.map +1 -0
  362. package/dist/components/ui/custom/form/ghost.js +8 -0
  363. package/dist/components/ui/custom/form/input.d.ts +18 -0
  364. package/dist/components/ui/custom/form/input.d.ts.map +1 -0
  365. package/dist/components/ui/custom/form/input.js +14 -0
  366. package/dist/components/ui/custom/form/mask.d.ts +19 -0
  367. package/dist/components/ui/custom/form/mask.d.ts.map +1 -0
  368. package/dist/components/ui/custom/form/mask.js +19 -0
  369. package/dist/components/ui/custom/form/multi-select-old.d.ts +19 -0
  370. package/dist/components/ui/custom/form/multi-select-old.d.ts.map +1 -0
  371. package/dist/components/ui/custom/form/multi-select-old.js +30 -0
  372. package/dist/components/ui/custom/form/multi-select.d.ts +26 -0
  373. package/dist/components/ui/custom/form/multi-select.d.ts.map +1 -0
  374. package/dist/components/ui/custom/form/multi-select.js +66 -0
  375. package/dist/components/ui/custom/form/password.d.ts +16 -0
  376. package/dist/components/ui/custom/form/password.d.ts.map +1 -0
  377. package/dist/components/ui/custom/form/password.js +14 -0
  378. package/dist/components/ui/custom/form/percent.d.ts +14 -0
  379. package/dist/components/ui/custom/form/percent.d.ts.map +1 -0
  380. package/dist/components/ui/custom/form/percent.js +15 -0
  381. package/dist/components/ui/custom/form/phone.d.ts +16 -0
  382. package/dist/components/ui/custom/form/phone.d.ts.map +1 -0
  383. package/dist/components/ui/custom/form/phone.js +23 -0
  384. package/dist/components/ui/custom/form/radio-group.d.ts +23 -0
  385. package/dist/components/ui/custom/form/radio-group.d.ts.map +1 -0
  386. package/dist/components/ui/custom/form/radio-group.js +15 -0
  387. package/dist/components/ui/custom/form/select.d.ts +20 -0
  388. package/dist/components/ui/custom/form/select.d.ts.map +1 -0
  389. package/dist/components/ui/custom/form/select.js +12 -0
  390. package/dist/components/ui/custom/form/step-new-form.d.ts +10 -0
  391. package/dist/components/ui/custom/form/step-new-form.d.ts.map +1 -0
  392. package/dist/components/ui/custom/form/step-new-form.js +13 -0
  393. package/dist/components/ui/custom/form/switch.d.ts +13 -0
  394. package/dist/components/ui/custom/form/switch.d.ts.map +1 -0
  395. package/dist/components/ui/custom/form/switch.js +16 -0
  396. package/dist/components/ui/custom/form/text.d.ts +18 -0
  397. package/dist/components/ui/custom/form/text.d.ts.map +1 -0
  398. package/dist/components/ui/custom/form/text.js +14 -0
  399. package/dist/components/ui/custom/form/textarea.d.ts +16 -0
  400. package/dist/components/ui/custom/form/textarea.d.ts.map +1 -0
  401. package/dist/components/ui/custom/form/textarea.js +19 -0
  402. package/dist/components/ui/custom/form/utils.d.ts +18 -0
  403. package/dist/components/ui/custom/form/utils.d.ts.map +1 -0
  404. package/dist/components/ui/custom/form/utils.js +88 -0
  405. package/dist/components/ui/custom/header.d.ts +11 -0
  406. package/dist/components/ui/custom/header.d.ts.map +1 -0
  407. package/dist/components/ui/custom/header.js +74 -0
  408. package/dist/components/ui/custom/label.d.ts +13 -0
  409. package/dist/components/ui/custom/label.d.ts.map +1 -0
  410. package/dist/components/ui/custom/label.js +20 -0
  411. package/dist/components/ui/custom/not-found.d.ts +3 -0
  412. package/dist/components/ui/custom/not-found.d.ts.map +1 -0
  413. package/dist/components/ui/custom/not-found.js +9 -0
  414. package/dist/components/ui/custom/sidebar/app-sidebar.d.ts +5 -0
  415. package/dist/components/ui/custom/sidebar/app-sidebar.d.ts.map +1 -0
  416. package/dist/components/ui/custom/sidebar/app-sidebar.js +26 -0
  417. package/dist/components/ui/custom/sidebar/module-switcher.d.ts +9 -0
  418. package/dist/components/ui/custom/sidebar/module-switcher.d.ts.map +1 -0
  419. package/dist/components/ui/custom/sidebar/module-switcher.js +55 -0
  420. package/dist/components/ui/custom/sidebar/nav-footer.d.ts +7 -0
  421. package/dist/components/ui/custom/sidebar/nav-footer.d.ts.map +1 -0
  422. package/dist/components/ui/custom/sidebar/nav-footer.js +13 -0
  423. package/dist/components/ui/custom/sidebar/nav-main.d.ts +7 -0
  424. package/dist/components/ui/custom/sidebar/nav-main.d.ts.map +1 -0
  425. package/dist/components/ui/custom/sidebar/nav-main.js +27 -0
  426. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.d.ts +9 -0
  427. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.d.ts.map +1 -0
  428. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.js +18 -0
  429. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.d.ts +10 -0
  430. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.d.ts.map +1 -0
  431. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.js +10 -0
  432. package/dist/components/ui/custom/sidebar/nav-user.d.ts +9 -0
  433. package/dist/components/ui/custom/sidebar/nav-user.d.ts.map +1 -0
  434. package/dist/components/ui/custom/sidebar/nav-user.js +24 -0
  435. package/dist/components/ui/custom/sidebar/sidebar-button.d.ts +9 -0
  436. package/dist/components/ui/custom/sidebar/sidebar-button.d.ts.map +1 -0
  437. package/dist/components/ui/custom/sidebar/sidebar-button.js +7 -0
  438. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.d.ts +12 -0
  439. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.d.ts.map +1 -0
  440. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.js +5 -0
  441. package/dist/components/ui/custom/sidebar/sidebar-item.d.ts +9 -0
  442. package/dist/components/ui/custom/sidebar/sidebar-item.d.ts.map +1 -0
  443. package/dist/components/ui/custom/sidebar/sidebar-item.js +7 -0
  444. package/dist/components/ui/custom/sidebar/sidebar-module-switcher.d.ts +9 -0
  445. package/dist/components/ui/custom/sidebar/sidebar-module-switcher.d.ts.map +1 -0
  446. package/dist/components/ui/custom/sidebar/sidebar-module-switcher.js +20 -0
  447. package/dist/components/ui/custom/sidebar/types/sidebar.d.ts +29 -0
  448. package/dist/components/ui/custom/sidebar/types/sidebar.d.ts.map +1 -0
  449. package/dist/components/ui/custom/sidebar/types/sidebar.js +5 -0
  450. package/dist/components/ui/custom/table/data-table-export.d.ts +8 -0
  451. package/dist/components/ui/custom/table/data-table-export.d.ts.map +1 -0
  452. package/dist/components/ui/custom/table/data-table-export.js +65 -0
  453. package/dist/components/ui/custom/table/data-table-footer.d.ts +25 -0
  454. package/dist/components/ui/custom/table/data-table-footer.d.ts.map +1 -0
  455. package/dist/components/ui/custom/table/data-table-footer.js +39 -0
  456. package/dist/components/ui/custom/table/data-table-header.d.ts +9 -0
  457. package/dist/components/ui/custom/table/data-table-header.d.ts.map +1 -0
  458. package/dist/components/ui/custom/table/data-table-header.js +11 -0
  459. package/dist/components/ui/custom/table/data-table-rows.d.ts +13 -0
  460. package/dist/components/ui/custom/table/data-table-rows.d.ts.map +1 -0
  461. package/dist/components/ui/custom/table/data-table-rows.js +25 -0
  462. package/dist/components/ui/custom/table/data-table.d.ts +35 -0
  463. package/dist/components/ui/custom/table/data-table.d.ts.map +1 -0
  464. package/dist/components/ui/custom/table/data-table.js +99 -0
  465. package/dist/components/ui/custom/table/types/data-table.d.ts +29 -0
  466. package/dist/components/ui/custom/table/types/data-table.d.ts.map +1 -0
  467. package/dist/components/ui/custom/table/types/data-table.js +1 -0
  468. package/dist/components/ui/custom/theme-provider.d.ts +24 -0
  469. package/dist/components/ui/custom/theme-provider.d.ts.map +1 -0
  470. package/dist/components/ui/custom/theme-provider.js +79 -0
  471. package/dist/components/ui/dateRangePicker.d.ts +3 -0
  472. package/dist/components/ui/dateRangePicker.d.ts.map +1 -0
  473. package/dist/components/ui/dateRangePicker.js +15 -0
  474. package/dist/components/ui/dialog.d.ts +23 -0
  475. package/dist/components/ui/dialog.d.ts.map +1 -0
  476. package/dist/components/ui/dialog.js +23 -0
  477. package/dist/components/ui/drawer.d.ts +23 -0
  478. package/dist/components/ui/drawer.d.ts.map +1 -0
  479. package/dist/components/ui/drawer.js +22 -0
  480. package/dist/components/ui/dropdown-menu.d.ts +28 -0
  481. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  482. package/dist/components/ui/dropdown-menu.js +32 -0
  483. package/dist/components/ui/form.d.ts +24 -0
  484. package/dist/components/ui/form.d.ts.map +1 -0
  485. package/dist/components/ui/form.js +60 -0
  486. package/dist/components/ui/hover-card.d.ts +7 -0
  487. package/dist/components/ui/hover-card.d.ts.map +1 -0
  488. package/dist/components/ui/hover-card.js +9 -0
  489. package/dist/components/ui/input.d.ts +24 -0
  490. package/dist/components/ui/input.d.ts.map +1 -0
  491. package/dist/components/ui/input.js +71 -0
  492. package/dist/components/ui/label.d.ts +6 -0
  493. package/dist/components/ui/label.d.ts.map +1 -0
  494. package/dist/components/ui/label.js +9 -0
  495. package/dist/components/ui/masks.d.ts +17 -0
  496. package/dist/components/ui/masks.d.ts.map +1 -0
  497. package/dist/components/ui/masks.js +25 -0
  498. package/dist/components/ui/pagination.d.ts +30 -0
  499. package/dist/components/ui/pagination.d.ts.map +1 -0
  500. package/dist/components/ui/pagination.js +23 -0
  501. package/dist/components/ui/popover.d.ts +7 -0
  502. package/dist/components/ui/popover.d.ts.map +1 -0
  503. package/dist/components/ui/popover.js +11 -0
  504. package/dist/components/ui/progress.d.ts +5 -0
  505. package/dist/components/ui/progress.d.ts.map +1 -0
  506. package/dist/components/ui/progress.js +7 -0
  507. package/dist/components/ui/radio-group.d.ts +6 -0
  508. package/dist/components/ui/radio-group.d.ts.map +1 -0
  509. package/dist/components/ui/radio-group.js +14 -0
  510. package/dist/components/ui/scroll-area.d.ts +6 -0
  511. package/dist/components/ui/scroll-area.d.ts.map +1 -0
  512. package/dist/components/ui/scroll-area.js +11 -0
  513. package/dist/components/ui/select.d.ts +14 -0
  514. package/dist/components/ui/select.d.ts.map +1 -0
  515. package/dist/components/ui/select.js +24 -0
  516. package/dist/components/ui/separator.d.ts +5 -0
  517. package/dist/components/ui/separator.d.ts.map +1 -0
  518. package/dist/components/ui/separator.js +7 -0
  519. package/dist/components/ui/sheet.d.ts +26 -0
  520. package/dist/components/ui/sheet.d.ts.map +1 -0
  521. package/dist/components/ui/sheet.js +37 -0
  522. package/dist/components/ui/sidebar.d.ts +67 -0
  523. package/dist/components/ui/sidebar.d.ts.map +1 -0
  524. package/dist/components/ui/sidebar.js +221 -0
  525. package/dist/components/ui/skeleton.d.ts +3 -0
  526. package/dist/components/ui/skeleton.d.ts.map +1 -0
  527. package/dist/components/ui/skeleton.js +6 -0
  528. package/dist/components/ui/slider.d.ts +5 -0
  529. package/dist/components/ui/slider.d.ts.map +1 -0
  530. package/dist/components/ui/slider.js +7 -0
  531. package/dist/components/ui/switch.d.ts +5 -0
  532. package/dist/components/ui/switch.d.ts.map +1 -0
  533. package/dist/components/ui/switch.js +7 -0
  534. package/dist/components/ui/table.d.ts +11 -0
  535. package/dist/components/ui/table.d.ts.map +1 -0
  536. package/dist/components/ui/table.js +20 -0
  537. package/dist/components/ui/tabs.d.ts +8 -0
  538. package/dist/components/ui/tabs.d.ts.map +1 -0
  539. package/dist/components/ui/tabs.js +12 -0
  540. package/dist/components/ui/textarea.d.ts +4 -0
  541. package/dist/components/ui/textarea.d.ts.map +1 -0
  542. package/dist/components/ui/textarea.js +14 -0
  543. package/dist/components/ui/toast.d.ts +16 -0
  544. package/dist/components/ui/toast.d.ts.map +1 -0
  545. package/dist/components/ui/toast.js +34 -0
  546. package/dist/components/ui/toaster.d.ts +2 -0
  547. package/dist/components/ui/toaster.d.ts.map +1 -0
  548. package/dist/components/ui/toaster.js +21 -0
  549. package/dist/components/ui/tooltip.d.ts +8 -0
  550. package/dist/components/ui/tooltip.d.ts.map +1 -0
  551. package/dist/components/ui/tooltip.js +10 -0
  552. package/dist/components/ui/use-calendar.d.ts +7 -0
  553. package/dist/components/ui/use-calendar.d.ts.map +1 -0
  554. package/dist/components/ui/use-calendar.js +23 -0
  555. package/dist/components/ui/use-toast.d.ts +46 -0
  556. package/dist/components/ui/use-toast.d.ts.map +1 -0
  557. package/dist/components/ui/use-toast.js +125 -0
  558. package/dist/components/use-calendar.d.ts +7 -0
  559. package/dist/components/use-calendar.d.ts.map +1 -0
  560. package/dist/components/use-calendar.js +23 -0
  561. package/dist/components/use-toast.d.ts +46 -0
  562. package/dist/components/use-toast.d.ts.map +1 -0
  563. package/dist/components/use-toast.js +125 -0
  564. package/dist/hooks/use-mobile.d.ts +2 -0
  565. package/dist/hooks/use-mobile.d.ts.map +1 -0
  566. package/dist/hooks/use-mobile.js +15 -0
  567. package/dist/index.d.ts +1514 -0
  568. package/dist/index.d.ts.map +1 -0
  569. package/dist/index.esm.js +3233 -0
  570. package/dist/index.esm.js.map +1 -0
  571. package/dist/index.js +3558 -0
  572. package/dist/index.js.map +1 -0
  573. package/dist/lib/help/date-utils.d.ts +7 -0
  574. package/dist/lib/help/date-utils.d.ts.map +1 -0
  575. package/dist/lib/help/date-utils.js +34 -0
  576. package/dist/lib/help/format.d.ts +22 -0
  577. package/dist/lib/help/format.d.ts.map +1 -0
  578. package/dist/lib/help/format.js +140 -0
  579. package/dist/lib/help/theme.d.ts +291 -0
  580. package/dist/lib/help/theme.d.ts.map +1 -0
  581. package/dist/lib/help/theme.js +340 -0
  582. package/dist/lib/help/uuid.d.ts +2 -0
  583. package/dist/lib/help/uuid.d.ts.map +1 -0
  584. package/dist/lib/help/uuid.js +4 -0
  585. package/dist/lib/utils.d.ts +3 -0
  586. package/dist/lib/utils.d.ts.map +1 -0
  587. package/dist/lib/utils.js +5 -0
  588. package/package.json +146 -0
  589. package/src/components/ui/accordion.tsx +48 -0
  590. package/src/components/ui/alert-dialog.tsx +138 -0
  591. package/src/components/ui/alert.tsx +36 -0
  592. package/src/components/ui/avatar.tsx +48 -0
  593. package/src/components/ui/badge.tsx +35 -0
  594. package/src/components/ui/breadcrumb.tsx +115 -0
  595. package/src/components/ui/button.tsx +43 -0
  596. package/src/components/ui/calendar.tsx +142 -0
  597. package/src/components/ui/card.tsx +35 -0
  598. package/src/components/ui/carousel.tsx +257 -0
  599. package/src/components/ui/chart.tsx +364 -0
  600. package/src/components/ui/checkbox.tsx +26 -0
  601. package/src/components/ui/collapsible.tsx +9 -0
  602. package/src/components/ui/command.tsx +145 -0
  603. package/src/components/ui/context-menu.tsx +198 -0
  604. package/src/components/ui/custom/date-picker.tsx +97 -0
  605. package/src/components/ui/custom/form/checkbox.tsx +53 -0
  606. package/src/components/ui/custom/form/color.tsx +140 -0
  607. package/src/components/ui/custom/form/combobox.tsx +259 -0
  608. package/src/components/ui/custom/form/cpf-cnpj.tsx +85 -0
  609. package/src/components/ui/custom/form/currency.tsx +51 -0
  610. package/src/components/ui/custom/form/date-range.tsx +110 -0
  611. package/src/components/ui/custom/form/date.tsx +109 -0
  612. package/src/components/ui/custom/form/decimal.tsx +50 -0
  613. package/src/components/ui/custom/form/file.tsx +65 -0
  614. package/src/components/ui/custom/form/form-help-text.tsx +20 -0
  615. package/src/components/ui/custom/form/form-label.tsx +24 -0
  616. package/src/components/ui/custom/form/form-message.tsx +10 -0
  617. package/src/components/ui/custom/form/ghost.tsx +28 -0
  618. package/src/components/ui/custom/form/input.tsx +69 -0
  619. package/src/components/ui/custom/form/mask.tsx +78 -0
  620. package/src/components/ui/custom/form/multi-select.tsx +209 -0
  621. package/src/components/ui/custom/form/password.tsx +70 -0
  622. package/src/components/ui/custom/form/percent.tsx +52 -0
  623. package/src/components/ui/custom/form/phone.tsx +79 -0
  624. package/src/components/ui/custom/form/radio-group.tsx +94 -0
  625. package/src/components/ui/custom/form/select.tsx +62 -0
  626. package/src/components/ui/custom/form/step-new-form.tsx +49 -0
  627. package/src/components/ui/custom/form/switch.tsx +51 -0
  628. package/src/components/ui/custom/form/text.tsx +71 -0
  629. package/src/components/ui/custom/form/textarea.tsx +71 -0
  630. package/src/components/ui/custom/form/utils.ts +100 -0
  631. package/src/components/ui/custom/header.tsx +128 -0
  632. package/src/components/ui/custom/label.tsx +79 -0
  633. package/src/components/ui/custom/not-found.tsx +30 -0
  634. package/src/components/ui/custom/sidebar/module-switcher.tsx +58 -0
  635. package/src/components/ui/custom/sidebar/nav-footer.tsx +35 -0
  636. package/src/components/ui/custom/sidebar/nav-main.tsx +64 -0
  637. package/src/components/ui/custom/sidebar/nav-submenu-collapsible.tsx +60 -0
  638. package/src/components/ui/custom/sidebar/nav-submenu-dropdown.tsx +56 -0
  639. package/src/components/ui/custom/sidebar/nav-user.tsx +77 -0
  640. package/src/components/ui/custom/sidebar/sidebar-button.tsx +30 -0
  641. package/src/components/ui/custom/sidebar/sidebar-item-two-lines.tsx +25 -0
  642. package/src/components/ui/custom/sidebar/sidebar-item.tsx +19 -0
  643. package/src/components/ui/custom/sidebar/types/sidebar.ts +31 -0
  644. package/src/components/ui/custom/table/data-table-export.tsx +126 -0
  645. package/src/components/ui/custom/table/data-table-footer.tsx +148 -0
  646. package/src/components/ui/custom/table/data-table-header.tsx +58 -0
  647. package/src/components/ui/custom/table/data-table-rows.tsx +94 -0
  648. package/src/components/ui/custom/table/data-table.tsx +285 -0
  649. package/src/components/ui/custom/table/types/data-table.ts +31 -0
  650. package/src/components/ui/custom/theme-provider.tsx +121 -0
  651. package/src/components/ui/dateRangePicker.tsx +63 -0
  652. package/src/components/ui/dialog.tsx +84 -0
  653. package/src/components/ui/drawer.tsx +116 -0
  654. package/src/components/ui/dropdown-menu.tsx +173 -0
  655. package/src/components/ui/form.tsx +114 -0
  656. package/src/components/ui/hover-card.tsx +27 -0
  657. package/src/components/ui/input.tsx +265 -0
  658. package/src/components/ui/label.tsx +15 -0
  659. package/src/components/ui/masks.ts +35 -0
  660. package/src/components/ui/pagination.tsx +78 -0
  661. package/src/components/ui/popover.tsx +32 -0
  662. package/src/components/ui/progress.tsx +22 -0
  663. package/src/components/ui/radio-group.tsx +36 -0
  664. package/src/components/ui/scroll-area.tsx +46 -0
  665. package/src/components/ui/select.tsx +130 -0
  666. package/src/components/ui/separator.tsx +29 -0
  667. package/src/components/ui/sheet.tsx +90 -0
  668. package/src/components/ui/sidebar.tsx +598 -0
  669. package/src/components/ui/skeleton.tsx +15 -0
  670. package/src/components/ui/slider.tsx +18 -0
  671. package/src/components/ui/switch.tsx +26 -0
  672. package/src/components/ui/table.tsx +53 -0
  673. package/src/components/ui/tabs.tsx +47 -0
  674. package/src/components/ui/textarea.tsx +27 -0
  675. package/src/components/ui/toast.tsx +88 -0
  676. package/src/components/ui/toaster.tsx +49 -0
  677. package/src/components/ui/tooltip.tsx +31 -0
  678. package/src/components/ui/use-calendar.tsx +61 -0
  679. package/src/components/ui/use-toast.ts +186 -0
  680. package/src/hooks/use-mobile.tsx +19 -0
  681. package/src/index.ts +299 -0
  682. package/src/lib/help/date-utils.ts +41 -0
  683. package/src/lib/help/format.ts +171 -0
  684. package/src/lib/help/theme.ts +346 -0
  685. package/src/lib/help/uuid.ts +4 -0
  686. package/src/lib/utils.ts +6 -0
  687. package/src/styles/globals.css +59 -0
package/src/index.ts ADDED
@@ -0,0 +1,299 @@
1
+ // =============================================================================
2
+ // CORE UI COMPONENTS
3
+ // =============================================================================
4
+
5
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from './components/ui/accordion';
6
+ export { Alert, AlertDescription, AlertTitle } from './components/ui/alert';
7
+ export {
8
+ AlertDialog,
9
+ AlertDialogAction,
10
+ AlertDialogCancel,
11
+ AlertDialogContent,
12
+ AlertDialogDescription,
13
+ AlertDialogFooter,
14
+ AlertDialogHeader,
15
+ AlertDialogTitle,
16
+ AlertDialogTrigger
17
+ } from './components/ui/alert-dialog';
18
+ export { Avatar, AvatarFallback, AvatarImage } from './components/ui/avatar';
19
+ export { Badge, badgeVariants } from './components/ui/badge';
20
+ export {
21
+ Breadcrumb,
22
+ BreadcrumbEllipsis,
23
+ BreadcrumbItem,
24
+ BreadcrumbLink,
25
+ BreadcrumbList,
26
+ BreadcrumbPage,
27
+ BreadcrumbSeparator
28
+ } from './components/ui/breadcrumb';
29
+ export { Button, buttonVariants } from './components/ui/button';
30
+ export type { ButtonProps } from './components/ui/button';
31
+ export { Calendar } from './components/ui/calendar';
32
+ export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './components/ui/card';
33
+ export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious } from './components/ui/carousel';
34
+ export type { CarouselApi } from './components/ui/carousel';
35
+ export { ChartContainer, ChartLegend, ChartLegendContent, ChartTooltip, ChartTooltipContent } from './components/ui/chart';
36
+ export { Checkbox } from './components/ui/checkbox';
37
+ export { Collapsible, CollapsibleContent, CollapsibleTrigger } from './components/ui/collapsible';
38
+ export {
39
+ Command,
40
+ CommandDialog,
41
+ CommandEmpty,
42
+ CommandGroup,
43
+ CommandInput,
44
+ CommandItem,
45
+ CommandList,
46
+ CommandSeparator,
47
+ CommandShortcut
48
+ } from './components/ui/command';
49
+ export {
50
+ ContextMenu,
51
+ ContextMenuCheckboxItem,
52
+ ContextMenuContent,
53
+ ContextMenuGroup,
54
+ ContextMenuItem,
55
+ ContextMenuLabel,
56
+ ContextMenuPortal,
57
+ ContextMenuRadioGroup,
58
+ ContextMenuRadioItem,
59
+ ContextMenuSeparator,
60
+ ContextMenuShortcut,
61
+ ContextMenuSub,
62
+ ContextMenuSubContent,
63
+ ContextMenuSubTrigger,
64
+ ContextMenuTrigger
65
+ } from './components/ui/context-menu';
66
+ export { DatePickerWithRange as DateRangePicker } from './components/ui/dateRangePicker';
67
+ export {
68
+ Dialog,
69
+ DialogClose,
70
+ DialogContent,
71
+ DialogDescription,
72
+ DialogFooter,
73
+ DialogHeader,
74
+ DialogOverlay,
75
+ DialogPortal,
76
+ DialogTitle,
77
+ DialogTrigger
78
+ } from './components/ui/dialog';
79
+ export {
80
+ Drawer,
81
+ DrawerClose,
82
+ DrawerContent,
83
+ DrawerDescription,
84
+ DrawerFooter,
85
+ DrawerHeader,
86
+ DrawerOverlay,
87
+ DrawerPortal,
88
+ DrawerTitle,
89
+ DrawerTrigger
90
+ } from './components/ui/drawer';
91
+ export {
92
+ DropdownMenu,
93
+ DropdownMenuCheckboxItem,
94
+ DropdownMenuContent,
95
+ DropdownMenuGroup,
96
+ DropdownMenuItem,
97
+ DropdownMenuLabel,
98
+ DropdownMenuPortal,
99
+ DropdownMenuRadioGroup,
100
+ DropdownMenuRadioItem,
101
+ DropdownMenuSeparator,
102
+ DropdownMenuShortcut,
103
+ DropdownMenuSub,
104
+ DropdownMenuSubContent,
105
+ DropdownMenuSubTrigger,
106
+ DropdownMenuTrigger
107
+ } from './components/ui/dropdown-menu';
108
+ export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField } from './components/ui/form';
109
+ export { HoverCard, HoverCardContent, HoverCardTrigger } from './components/ui/hover-card';
110
+ export { Input } from './components/ui/input';
111
+ export { Label } from './components/ui/label';
112
+ export { modifyCpfCnpj, modifyPhone } from './components/ui/masks';
113
+ export {
114
+ Pagination,
115
+ PaginationContent,
116
+ PaginationEllipsis,
117
+ PaginationItem,
118
+ PaginationLink,
119
+ PaginationNext,
120
+ PaginationPrevious
121
+ } from './components/ui/pagination';
122
+ export { Popover, PopoverContent, PopoverTrigger } from './components/ui/popover';
123
+ export { Progress } from './components/ui/progress';
124
+ export { RadioGroup, RadioGroupItem } from './components/ui/radio-group';
125
+ export { ScrollArea, ScrollBar } from './components/ui/scroll-area';
126
+ export {
127
+ Select,
128
+ SelectContent,
129
+ SelectGroup,
130
+ SelectItem,
131
+ SelectLabel,
132
+ SelectScrollDownButton,
133
+ SelectScrollUpButton,
134
+ SelectSeparator,
135
+ SelectTrigger,
136
+ SelectValue
137
+ } from './components/ui/select';
138
+ export { Separator } from './components/ui/separator';
139
+ export {
140
+ Sheet,
141
+ SheetClose,
142
+ SheetContent,
143
+ SheetDescription,
144
+ SheetFooter,
145
+ SheetHeader,
146
+ SheetOverlay,
147
+ SheetPortal,
148
+ SheetTitle,
149
+ SheetTrigger
150
+ } from './components/ui/sheet';
151
+ export {
152
+ Sidebar,
153
+ SidebarContent,
154
+ SidebarFooter,
155
+ SidebarGroup,
156
+ SidebarGroupAction,
157
+ SidebarGroupContent,
158
+ SidebarGroupLabel,
159
+ SidebarHeader,
160
+ SidebarInput,
161
+ SidebarInset,
162
+ SidebarMenu,
163
+ SidebarMenuAction,
164
+ SidebarMenuBadge,
165
+ SidebarMenuButton,
166
+ SidebarMenuItem,
167
+ SidebarMenuSkeleton,
168
+ SidebarMenuSub,
169
+ SidebarMenuSubButton,
170
+ SidebarMenuSubItem,
171
+ SidebarProvider,
172
+ SidebarRail,
173
+ SidebarSeparator,
174
+ SidebarTrigger,
175
+ useSidebar
176
+ } from './components/ui/sidebar';
177
+ export { Skeleton } from './components/ui/skeleton';
178
+ export { Slider } from './components/ui/slider';
179
+ export { Switch } from './components/ui/switch';
180
+ export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from './components/ui/table';
181
+ export { Tabs, TabsContent, TabsList, TabsTrigger } from './components/ui/tabs';
182
+ export { Textarea } from './components/ui/textarea';
183
+ export { Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport } from './components/ui/toast';
184
+ export { Toaster } from './components/ui/toaster';
185
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './components/ui/tooltip';
186
+ export { default as UseCalendar } from './components/ui/use-calendar';
187
+
188
+ // =============================================================================
189
+ // CUSTOM COMPONENTS
190
+ // =============================================================================
191
+
192
+ // Custom Date Picker
193
+ export type { CalendarProps } from './components/ui/custom/date-picker';
194
+
195
+ // Custom Theme Provider
196
+ export { DEFAULT_THEME_DATA, ThemeProvider, useTheme } from './components/ui/custom/theme-provider';
197
+
198
+ // Custom Form Components
199
+ export { FormInputCpfCnpj } from './components/ui/custom/form/cpf-cnpj';
200
+ export { FormInputCurrency } from './components/ui/custom/form/currency';
201
+ export { FormInputDate } from './components/ui/custom/form/date';
202
+ export { FormDataRange } from './components/ui/custom/form/date-range';
203
+ export { FormInputDecimal } from './components/ui/custom/form/decimal';
204
+ export { FormInputFile } from './components/ui/custom/form/file';
205
+ export { FormInputGhost } from './components/ui/custom/form/ghost';
206
+ export { FormInput } from './components/ui/custom/form/input';
207
+ export { FormInputMask } from './components/ui/custom/form/mask';
208
+ export { MultiSelect, type MultiSelectOption } from './components/ui/custom/form/multi-select';
209
+ export { FormInputPassWord } from './components/ui/custom/form/password';
210
+ export { FormInputPercent } from './components/ui/custom/form/percent';
211
+ export { FormInputPhone } from './components/ui/custom/form/phone';
212
+ export { FormRadioGroup, type RadioOption } from './components/ui/custom/form/radio-group';
213
+ export { FormSelect, type SelectOption } from './components/ui/custom/form/select';
214
+ export { FormInputSwitch } from './components/ui/custom/form/switch';
215
+ export { FormInputText } from './components/ui/custom/form/text';
216
+ export { FormTextarea } from './components/ui/custom/form/textarea';
217
+
218
+ // Form Helpers
219
+ export { formHelpText } from './components/ui/custom/form/form-help-text';
220
+ export { formLabel, formLabelAndSubLabel } from './components/ui/custom/form/form-label';
221
+ export { formMessage } from './components/ui/custom/form/form-message';
222
+
223
+ // Custom Table Components
224
+ export {
225
+ DataTable,
226
+ type DataTableProps,
227
+ type OriginalDataTableData
228
+ } from './components/ui/custom/table/data-table';
229
+ export { DataTableExport } from './components/ui/custom/table/data-table-export';
230
+ export { DataTableFooter } from './components/ui/custom/table/data-table-footer';
231
+ export { DataTableHeader } from './components/ui/custom/table/data-table-header';
232
+ export { DataTableRows } from './components/ui/custom/table/data-table-rows';
233
+
234
+ // Table Types
235
+ export type {
236
+ ActionRow, ActionTable, ExportDataTable,
237
+ FiltersActions
238
+ } from './components/ui/custom/table/types/data-table';
239
+
240
+ // Custom Sidebar Components
241
+ export { default as ModuleSwitcher } from './components/ui/custom/sidebar/module-switcher';
242
+ export { default as NavFooter } from './components/ui/custom/sidebar/nav-footer';
243
+ export { default as NavMain } from './components/ui/custom/sidebar/nav-main';
244
+ export { default as NavSubmenuCollapsible } from './components/ui/custom/sidebar/nav-submenu-collapsible';
245
+ export { default as NavSubmenuDropdown } from './components/ui/custom/sidebar/nav-submenu-dropdown';
246
+ export { default as NavUser } from './components/ui/custom/sidebar/nav-user';
247
+ export { default as SidebarButton } from './components/ui/custom/sidebar/sidebar-button';
248
+ export { default as SidebarItem } from './components/ui/custom/sidebar/sidebar-item';
249
+ export { default as SidebarItemTwoLines } from './components/ui/custom/sidebar/sidebar-item-two-lines';
250
+
251
+ // Other Custom Components
252
+ export { default as Header } from './components/ui/custom/header';
253
+ export { default as LabelWithTitle } from './components/ui/custom/label';
254
+ export { default as NotFound } from './components/ui/custom/not-found';
255
+
256
+ // Sidebar Types
257
+ export {
258
+ SidebarSubmenuType,
259
+ type Module,
260
+ type SidebarPage
261
+ } from './components/ui/custom/sidebar/types/sidebar';
262
+
263
+ // =============================================================================
264
+ // HOOKS & UTILITIES
265
+ // =============================================================================
266
+
267
+ // Toast Hook
268
+ export { toast, useToast } from './components/ui/use-toast';
269
+
270
+ // Utility Functions
271
+ export { cn } from './lib/utils';
272
+
273
+ // Theme Utilities
274
+ export {
275
+ getTailwindColorShades,
276
+ replaceThemeTailwindColors,
277
+ type TailwindColorName
278
+ } from './lib/help/theme';
279
+
280
+ // Format Utilities
281
+ export {
282
+ convertBytesToMB, convertDaysToMonth, convertGbToMb, convertMbToGb, convertMonthToDays, convertSecondsToMinutes, formatCpfCnpj,
283
+ formatDate, formatDateCalendar, formatDateTime, formatDecimal, formatNumber, formatPhone, roundNumber, stringDateToDate, stringToNumber
284
+ } from './lib/help/format';
285
+
286
+ // Date Utilities
287
+ export {
288
+ addDaysToToday, aYearAgo, getFirstDayOf90DaysAgo, getFirstDayOfCurrentMonth, invertDate, stringToDate
289
+ } from './lib/help/date-utils';
290
+
291
+ // UUID Utilities
292
+ export { isUUIDv4 } from './lib/help/uuid';
293
+
294
+ // =============================================================================
295
+ // STYLES
296
+ // =============================================================================
297
+
298
+ import './styles/globals.css';
299
+
@@ -0,0 +1,41 @@
1
+ export const getFirstDayOfCurrentMonth = (): Date => {
2
+ const now = new Date();
3
+ return new Date(now.getFullYear(), now.getMonth(), 1);
4
+ };
5
+
6
+ export const getFirstDayOf90DaysAgo = (): Date => {
7
+ const now = new Date();
8
+ return new Date(now.getFullYear(), now.getMonth() - 3, 1);
9
+ };
10
+
11
+ export const stringToDate = (dateString: string, separator: string = '/'): Date | undefined => {
12
+ if (!dateString) return undefined;
13
+
14
+ const dateParts = dateString.split(separator);
15
+ if (dateParts.length !== 3) return undefined;
16
+
17
+ const day = parseInt(dateParts[0], 10);
18
+ const month = parseInt(dateParts[1], 10) - 1; // Months are zero-based in JavaScript
19
+ const year = parseInt(dateParts[2], 10);
20
+
21
+ return new Date(year, month, day);
22
+ };
23
+
24
+ export const aYearAgo = (): Date => {
25
+ const aYearAgo = new Date();
26
+ aYearAgo.setFullYear(aYearAgo.getFullYear() - 1);
27
+
28
+ return aYearAgo;
29
+ };
30
+
31
+ export const invertDate = (date: string, separator: string = '/'): string => {
32
+ if (!date) return '';
33
+
34
+ return date.split(separator).reverse().join('-');
35
+ };
36
+
37
+ export const addDaysToToday = (days: number): Date => {
38
+ const date = new Date();
39
+ date.setDate(date.getDate() + days);
40
+ return date;
41
+ };
@@ -0,0 +1,171 @@
1
+ import { maskCpfCnpj, maskPhone } from "@/components/ui/masks";
2
+ import { format } from '@react-input/mask';
3
+
4
+ // PHONE
5
+ export function formatPhone(telefone: string, removerCountryCode = true) {
6
+ if (!telefone) return '';
7
+
8
+ let numberPhone = telefone.replace(/\D/g, '');
9
+
10
+ // Remover código do país apenas se ele começar com '55'
11
+ if (removerCountryCode && numberPhone.startsWith('55')) {
12
+ numberPhone = numberPhone.substring(2);
13
+ }
14
+
15
+ return format(numberPhone, maskPhone(numberPhone));
16
+ }
17
+
18
+ // CPF/CNPJ
19
+ export function formatCpfCnpj(cpfCnpj?: string): string {
20
+ if (!cpfCnpj) return '';
21
+
22
+ const numberCpfCnpj = cpfCnpj.replace(/\D/g, '');
23
+
24
+ return format(numberCpfCnpj, maskCpfCnpj(numberCpfCnpj));
25
+ }
26
+
27
+ // DATE
28
+ function getDay(date: Date) {
29
+ return date.getDate().toString().padStart(2, '0');
30
+ }
31
+
32
+ function getMonth(date: Date) {
33
+ return (date.getMonth() + 1).toString().padStart(2, '0');
34
+ }
35
+
36
+ function getYear(date: Date) {
37
+ return date.getFullYear().toString();
38
+ }
39
+
40
+ export const formatDate = (date: string | Date | undefined, separator: string = '/') => {
41
+ if (!date) return '';
42
+
43
+ const d = new Date(date);
44
+
45
+ return d.toLocaleDateString('pt-BR');
46
+ };
47
+
48
+ export const formatDateTime = (date: Date | undefined, returnSeconds: boolean = false): string => {
49
+ if (!date) return '';
50
+
51
+ const hours = date.getHours().toString().padStart(2, '0');
52
+ const minutes = date.getMinutes().toString().padStart(2, '0');
53
+ const seconds = returnSeconds ? `:${date.getSeconds().toString().padStart(2, '0')}` : '';
54
+
55
+ return `${formatDate(date)} ${hours}:${minutes}${seconds}`;
56
+ };
57
+
58
+ export function formatDateCalendar(date: Date | undefined): string {
59
+ if (!date) return '';
60
+
61
+ const day = getDay(date);
62
+ const month = getMonth(date);
63
+ const year = getYear(date);
64
+
65
+ return `${year}-${month}-${day}`;
66
+ }
67
+
68
+ export function stringDateToDate(date: string | undefined, separator: string = '/'): Date | undefined {
69
+ if (!date) return undefined;
70
+
71
+ const [day, month, year] = date.split(separator).map(Number);
72
+
73
+ // new Date(ano, mês-1, dia) interpreta a data no fuso horário local
74
+ return new Date(year, month - 1, day);
75
+ }
76
+
77
+ // NUMBER
78
+ export const roundNumber = (value: number, fractionDigits: number = 2): number => {
79
+ return Number(value.toFixed(fractionDigits));
80
+ };
81
+
82
+ export const stringToNumber = (value: string | undefined): number => {
83
+ if (!value) return 0;
84
+
85
+ const numericValue = value
86
+ .replace(/[^\d,-]/g, '')
87
+ .replace(/\./g, '')
88
+ .replace(',', '.');
89
+ return Number.parseFloat(numericValue);
90
+ };
91
+
92
+ export const convertMbToGb = (value: number) => {
93
+ return value > 0 ? roundNumber(value / 1024) : 0;
94
+ };
95
+
96
+ export const convertGbToMb = (value: number) => {
97
+ return value > 0 ? roundNumber(value * 1024) : 0;
98
+ };
99
+
100
+ export const convertSecondsToMinutes = (value: number): number => {
101
+ return value > 0 ? roundNumber(value / 60) : 0;
102
+ };
103
+
104
+ export const convertBytesToMB = (bytes: number): number => {
105
+ if (!bytes || Number.isNaN(bytes)) return 0;
106
+ return roundNumber(bytes / (1024 * 1024));
107
+ };
108
+
109
+ export const convertMonthToDays = (months: number): number => {
110
+ return months > 0 ? months * 30 : 0;
111
+ };
112
+
113
+ export const convertDaysToMonth = (days: number): number => {
114
+ return days > 0 ? roundNumber(days / 30) : 0;
115
+ };
116
+
117
+ // NUMBER
118
+ export const formatNumber = (value: number) => {
119
+ return value.toLocaleString('pt-BR', {
120
+ style: 'decimal',
121
+ minimumFractionDigits: 0,
122
+ maximumFractionDigits: 0,
123
+ });
124
+ };
125
+
126
+ // DECIMAL
127
+ export const formatDecimal = (value: number, decimalPlaces: number = 2) => {
128
+ return value.toLocaleString('pt-BR', {
129
+ style: 'decimal',
130
+ minimumFractionDigits: decimalPlaces,
131
+ maximumFractionDigits: decimalPlaces,
132
+ });
133
+ };
134
+
135
+ // PERCENT
136
+ export const formatPercent = (value: number, decimalPlaces: number = 2) => {
137
+ return `% ${formatDecimal(value, decimalPlaces)}`;
138
+ };
139
+
140
+ // CURRENCY
141
+ export const formatCurrency = (value: number, decimalPlaces: number = 2) => {
142
+ return value.toLocaleString('pt-BR', {
143
+ style: 'currency',
144
+ currency: 'BRL',
145
+ minimumFractionDigits: decimalPlaces,
146
+ maximumFractionDigits: decimalPlaces,
147
+ });
148
+ };
149
+
150
+ export const isInvalidCurrencyValue = (rawValue: string | undefined): boolean => {
151
+ if (!rawValue || rawValue.trim() === '') return true;
152
+
153
+ const numericValue = stringToNumber(rawValue);
154
+
155
+ return Number.isNaN(numericValue) || numericValue <= 0;
156
+ };
157
+
158
+ // OTHERS
159
+ export function formatMsisdn(value: string = ''): string {
160
+ const msisdn = value.replace(/\D/g, '');
161
+ return `(${msisdn.slice(2, 4)}) ${msisdn.slice(4, 9)}-${msisdn.slice(9)}`;
162
+ }
163
+
164
+ export function formatCEP(cep?: string) {
165
+ if (!cep) return '';
166
+
167
+ return cep
168
+ .replace(/\D/g, '')
169
+ .replace(/(\d{5})(\d)/, '$1-$2')
170
+ .replace(/(-\d{3})\d+?$/, '$1');
171
+ }