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
@@ -0,0 +1,221 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useIsMobile } from '@/hooks/use-mobile';
3
+ import { cn } from '@/lib/utils';
4
+ import { Slot } from '@radix-ui/react-slot';
5
+ import { cva } from 'class-variance-authority';
6
+ import { PanelLeft } from 'lucide-react';
7
+ import * as React from 'react';
8
+ import { Button } from './button';
9
+ import { Input } from './input';
10
+ import { Separator } from './separator';
11
+ import { Sheet, SheetContent } from './sheet';
12
+ import { Skeleton } from './skeleton';
13
+ import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from './tooltip';
14
+ const SIDEBAR_COOKIE_NAME = 'sidebar:state';
15
+ const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
16
+ const SIDEBAR_WIDTH = '16rem';
17
+ const SIDEBAR_WIDTH_MOBILE = '18rem';
18
+ const SIDEBAR_WIDTH_ICON = '3rem';
19
+ const SIDEBAR_KEYBOARD_SHORTCUT = 'b';
20
+ const SidebarContext = React.createContext(null);
21
+ function useSidebar() {
22
+ const context = React.useContext(SidebarContext);
23
+ if (!context) {
24
+ throw new Error('useSidebar must be used within a SidebarProvider.');
25
+ }
26
+ return context;
27
+ }
28
+ const SidebarProvider = React.forwardRef(({ defaultOpen = true, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }, ref) => {
29
+ const isMobile = useIsMobile();
30
+ const [openMobile, setOpenMobile] = React.useState(false);
31
+ // This is the internal state of the sidebar.
32
+ // We use openProp and setOpenProp for control from outside the component.
33
+ const [_open, _setOpen] = React.useState(defaultOpen);
34
+ const open = openProp ?? _open;
35
+ const setOpen = React.useCallback((value) => {
36
+ const openState = typeof value === 'function' ? value(open) : value;
37
+ if (setOpenProp) {
38
+ setOpenProp(openState);
39
+ }
40
+ else {
41
+ _setOpen(openState);
42
+ }
43
+ // This sets the cookie to keep the sidebar state.
44
+ document.cookie = `${SIDEBAR_COOKIE_NAME}=${openState}; path=/; max-age=${SIDEBAR_COOKIE_MAX_AGE}`;
45
+ }, [setOpenProp, open]);
46
+ // Helper to toggle the sidebar.
47
+ const toggleSidebar = React.useCallback(() => {
48
+ return isMobile ? setOpenMobile((open) => !open) : setOpen((open) => !open);
49
+ }, [isMobile, setOpen, setOpenMobile]);
50
+ // Adds a keyboard shortcut to toggle the sidebar.
51
+ React.useEffect(() => {
52
+ const handleKeyDown = (event) => {
53
+ if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
54
+ event.preventDefault();
55
+ toggleSidebar();
56
+ }
57
+ };
58
+ window.addEventListener('keydown', handleKeyDown);
59
+ return () => window.removeEventListener('keydown', handleKeyDown);
60
+ }, [toggleSidebar]);
61
+ // We add a state so that we can do data-state="expanded" or "collapsed".
62
+ // This makes it easier to style the sidebar with Tailwind classes.
63
+ const state = open ? 'expanded' : 'collapsed';
64
+ const contextValue = React.useMemo(() => ({
65
+ state,
66
+ open,
67
+ setOpen,
68
+ isMobile,
69
+ openMobile,
70
+ setOpenMobile,
71
+ toggleSidebar,
72
+ }), [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]);
73
+ return (_jsx(SidebarContext.Provider, { value: contextValue, children: _jsx(TooltipProvider, { delayDuration: 0, children: _jsx("div", { style: {
74
+ '--sidebar-width': SIDEBAR_WIDTH,
75
+ '--sidebar-width-icon': SIDEBAR_WIDTH_ICON,
76
+ ...style,
77
+ }, className: cn('group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar', className), ref: ref, ...props, children: children }) }) }));
78
+ });
79
+ SidebarProvider.displayName = 'SidebarProvider';
80
+ const Sidebar = React.forwardRef(({ side = 'left', variant = 'sidebar', collapsible = 'offcanvas', className, children, ...props }, ref) => {
81
+ const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
82
+ if (collapsible === 'none') {
83
+ return (_jsx("div", { className: cn('flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground', className), ref: ref, ...props, children: children }));
84
+ }
85
+ if (isMobile) {
86
+ return (_jsx(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: _jsx(SheetContent, { "data-sidebar": 'sidebar', "data-mobile": 'true', className: 'w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden', style: {
87
+ '--sidebar-width': SIDEBAR_WIDTH_MOBILE,
88
+ }, side: side, children: _jsx("div", { className: 'flex h-screen w-full flex-col', children: children }) }) }));
89
+ }
90
+ return (_jsxs("div", { ref: ref, className: 'group peer hidden md:block text-sidebar-foreground', "data-state": state, "data-collapsible": state === 'collapsed' ? collapsible : '', "data-variant": variant, "data-side": side, children: [_jsx("div", { className: cn('duration-200 relative h-svh w-[--sidebar-width] bg-transparent transition-[width] ease-linear', 'group-data-[collapsible=offcanvas]:w-0', 'group-data-[side=right]:rotate-180', variant === 'floating' || variant === 'inset'
91
+ ? 'group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]'
92
+ : 'group-data-[collapsible=icon]:w-[--sidebar-width-icon]') }), _jsx("div", { className: cn('duration-200 fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] ease-linear md:flex', side === 'left'
93
+ ? 'left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]'
94
+ : 'right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]',
95
+ // Adjust the padding for floating and inset variants.
96
+ variant === 'floating' || variant === 'inset'
97
+ ? 'p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]'
98
+ : 'group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l', className), ...props, children: _jsx("div", { "data-sidebar": 'sidebar', className: 'flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow', children: children }) })] }));
99
+ });
100
+ Sidebar.displayName = 'Sidebar';
101
+ const SidebarTrigger = React.forwardRef(({ className, onClick, ...props }, ref) => {
102
+ const { toggleSidebar } = useSidebar();
103
+ return (_jsxs(Button, { ref: ref, "data-sidebar": 'trigger', variant: 'ghost', size: 'icon', type: 'button', className: cn('h-7 w-7', className), onClick: (event) => {
104
+ onClick?.(event);
105
+ toggleSidebar();
106
+ }, ...props, children: [_jsx(PanelLeft, {}), _jsx("span", { className: 'sr-only', children: "Toggle Sidebar" })] }));
107
+ });
108
+ SidebarTrigger.displayName = 'SidebarTrigger';
109
+ const SidebarRail = React.forwardRef(({ className, ...props }, ref) => {
110
+ const { toggleSidebar } = useSidebar();
111
+ return (_jsx("button", { ref: ref, "data-sidebar": 'rail', "aria-label": 'Toggle Sidebar', tabIndex: -1, type: 'button', onClick: toggleSidebar, title: 'Toggle Sidebar', className: cn('absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex', '[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize', '[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize', 'group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar', '[[data-side=left][data-collapsible=offcanvas]_&]:-right-2', '[[data-side=right][data-collapsible=offcanvas]_&]:-left-2', className), ...props }));
112
+ });
113
+ SidebarRail.displayName = 'SidebarRail';
114
+ const SidebarInset = React.forwardRef(({ className, ...props }, ref) => {
115
+ return (_jsx("main", { ref: ref, className: cn('relative flex min-h-svh flex-1 flex-col bg-background', 'peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow', className), ...props }));
116
+ });
117
+ SidebarInset.displayName = 'SidebarInset';
118
+ const SidebarInput = React.forwardRef(({ className, ...props }, ref) => {
119
+ return (_jsx(Input, { ref: ref, "data-sidebar": 'input', className: cn('h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring', className), ...props }));
120
+ });
121
+ SidebarInput.displayName = 'SidebarInput';
122
+ const SidebarHeader = React.forwardRef(({ className, ...props }, ref) => {
123
+ return _jsx("div", { ref: ref, "data-sidebar": 'header', className: cn('flex flex-col gap-2 p-2', className), ...props });
124
+ });
125
+ SidebarHeader.displayName = 'SidebarHeader';
126
+ const SidebarFooter = React.forwardRef(({ className, ...props }, ref) => {
127
+ return _jsx("div", { ref: ref, "data-sidebar": 'footer', className: cn('flex flex-col gap-2 p-2', className), ...props });
128
+ });
129
+ SidebarFooter.displayName = 'SidebarFooter';
130
+ const SidebarSeparator = React.forwardRef(({ className, ...props }, ref) => {
131
+ return _jsx(Separator, { ref: ref, "data-sidebar": 'separator', className: cn('mx-2 w-auto bg-sidebar-border', className), ...props });
132
+ });
133
+ SidebarSeparator.displayName = 'SidebarSeparator';
134
+ const SidebarContent = React.forwardRef(({ className, ...props }, ref) => {
135
+ return (_jsx("div", { ref: ref, "data-sidebar": 'content', className: cn('flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden', className), ...props }));
136
+ });
137
+ SidebarContent.displayName = 'SidebarContent';
138
+ const SidebarGroup = React.forwardRef(({ className, ...props }, ref) => {
139
+ return _jsx("div", { ref: ref, "data-sidebar": 'group', className: cn('relative flex w-full min-w-0 flex-col p-2', className), ...props });
140
+ });
141
+ SidebarGroup.displayName = 'SidebarGroup';
142
+ const SidebarGroupLabel = React.forwardRef(({ className, asChild = false, ...props }, ref) => {
143
+ const Comp = asChild ? Slot : 'div';
144
+ return (_jsx(Comp, { ref: ref, "data-sidebar": 'group-label', className: cn('duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0', 'group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0', className), ...props }));
145
+ });
146
+ SidebarGroupLabel.displayName = 'SidebarGroupLabel';
147
+ const SidebarGroupAction = React.forwardRef(({ className, asChild = false, ...props }, ref) => {
148
+ const Comp = asChild ? Slot : 'button';
149
+ return (_jsx(Comp, { ref: ref, "data-sidebar": 'group-action', className: cn('absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0',
150
+ // Increases the hit area of the button on mobile.
151
+ 'after:absolute after:-inset-2 after:md:hidden', 'group-data-[collapsible=icon]:hidden', className), ...props }));
152
+ });
153
+ SidebarGroupAction.displayName = 'SidebarGroupAction';
154
+ const SidebarGroupContent = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, "data-sidebar": 'group-content', className: cn('w-full text-sm', className), ...props })));
155
+ SidebarGroupContent.displayName = 'SidebarGroupContent';
156
+ const SidebarMenu = React.forwardRef(({ className, ...props }, ref) => (_jsx("ul", { ref: ref, "data-sidebar": 'menu', className: cn('flex w-full min-w-0 flex-col gap-1', className), ...props })));
157
+ SidebarMenu.displayName = 'SidebarMenu';
158
+ const SidebarMenuItem = React.forwardRef(({ className, ...props }, ref) => (_jsx("li", { ref: ref, "data-sidebar": 'menu-item', className: cn('group/menu-item relative', className), ...props })));
159
+ SidebarMenuItem.displayName = 'SidebarMenuItem';
160
+ const sidebarMenuButtonVariants = cva('peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0', {
161
+ variants: {
162
+ variant: {
163
+ default: 'hover:bg-sidebar-accent hover:text-sidebar-accent-foreground',
164
+ outline: 'bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]',
165
+ },
166
+ size: {
167
+ default: 'h-8 text-sm',
168
+ sm: 'h-7 text-xs',
169
+ lg: 'h-12 text-sm group-data-[collapsible=icon]:!p-0',
170
+ },
171
+ },
172
+ defaultVariants: {
173
+ variant: 'default',
174
+ size: 'default',
175
+ },
176
+ });
177
+ const SidebarMenuButton = React.forwardRef(({ asChild = false, isActive = false, variant = 'default', size = 'default', tooltip, className, ...props }, ref) => {
178
+ const Comp = asChild ? Slot : 'button';
179
+ const { isMobile, state } = useSidebar();
180
+ const button = (_jsx(Comp, { ref: ref, "data-sidebar": 'menu-button', "data-size": size, "data-active": isActive, className: cn(sidebarMenuButtonVariants({ variant, size }), className), ...props }));
181
+ if (!tooltip) {
182
+ return button;
183
+ }
184
+ if (typeof tooltip === 'string') {
185
+ tooltip = {
186
+ children: tooltip,
187
+ };
188
+ }
189
+ return (_jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: button }), _jsx(TooltipContent, { side: 'right', align: 'center', hidden: state !== 'collapsed' || isMobile, ...tooltip })] }));
190
+ });
191
+ SidebarMenuButton.displayName = 'SidebarMenuButton';
192
+ const SidebarMenuAction = React.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
193
+ const Comp = asChild ? Slot : 'button';
194
+ return (_jsx(Comp, { ref: ref, "data-sidebar": 'menu-action', className: cn('absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0',
195
+ // Increases the hit area of the button on mobile.
196
+ 'after:absolute after:-inset-2 after:md:hidden', 'peer-data-[size=sm]/menu-button:top-1', 'peer-data-[size=default]/menu-button:top-1.5', 'peer-data-[size=lg]/menu-button:top-2.5', 'group-data-[collapsible=icon]:hidden', showOnHover &&
197
+ 'group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0', className), ...props }));
198
+ });
199
+ SidebarMenuAction.displayName = 'SidebarMenuAction';
200
+ const SidebarMenuBadge = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, "data-sidebar": 'menu-badge', className: cn('absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none', 'peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground', 'peer-data-[size=sm]/menu-button:top-1', 'peer-data-[size=default]/menu-button:top-1.5', 'peer-data-[size=lg]/menu-button:top-2.5', 'group-data-[collapsible=icon]:hidden', className), ...props })));
201
+ SidebarMenuBadge.displayName = 'SidebarMenuBadge';
202
+ const SidebarMenuSkeleton = React.forwardRef(({ className, showIcon = false, ...props }, ref) => {
203
+ // Random width between 50 to 90%.
204
+ const width = React.useMemo(() => {
205
+ return `${Math.floor(Math.random() * 40) + 50}%`;
206
+ }, []);
207
+ return (_jsxs("div", { ref: ref, "data-sidebar": 'menu-skeleton', className: cn('rounded-md h-8 flex gap-2 px-2 items-center', className), ...props, children: [showIcon && _jsx(Skeleton, { className: 'size-4 rounded-md', "data-sidebar": 'menu-skeleton-icon' }), _jsx(Skeleton, { className: 'h-4 flex-1 max-w-[--skeleton-width]', "data-sidebar": 'menu-skeleton-text', style: {
208
+ '--skeleton-width': width,
209
+ } })] }));
210
+ });
211
+ SidebarMenuSkeleton.displayName = 'SidebarMenuSkeleton';
212
+ const SidebarMenuSub = React.forwardRef(({ className, ...props }, ref) => (_jsx("ul", { ref: ref, "data-sidebar": 'menu-sub', className: cn('mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5', 'group-data-[collapsible=icon]:hidden', className), ...props })));
213
+ SidebarMenuSub.displayName = 'SidebarMenuSub';
214
+ const SidebarMenuSubItem = React.forwardRef(({ ...props }, ref) => _jsx("li", { ref: ref, ...props }));
215
+ SidebarMenuSubItem.displayName = 'SidebarMenuSubItem';
216
+ const SidebarMenuSubButton = React.forwardRef(({ asChild = false, size = 'md', isActive, className, ...props }, ref) => {
217
+ const Comp = asChild ? Slot : 'a';
218
+ return (_jsx(Comp, { ref: ref, "data-sidebar": 'menu-sub-button', "data-size": size, "data-active": isActive, className: cn('flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground', 'data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground', size === 'sm' && 'text-xs', size === 'md' && 'text-sm', 'group-data-[collapsible=icon]:hidden', className), ...props }));
219
+ });
220
+ SidebarMenuSubButton.displayName = 'SidebarMenuSubButton';
221
+ export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar };
@@ -0,0 +1,3 @@
1
+ declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
2
+ export { Skeleton };
3
+ //# sourceMappingURL=skeleton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../src/components/skeleton.tsx"],"names":[],"mappings":"AAEA,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,2CAOtC;AAED,OAAO,EAAE,QAAQ,EAAE,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from "@/lib/utils";
3
+ function Skeleton({ className, ...props }) {
4
+ return (_jsx("div", { className: cn("animate-pulse rounded-md bg-muted", className), ...props }));
5
+ }
6
+ export { Skeleton };
@@ -0,0 +1,5 @@
1
+ import * as SliderPrimitive from '@radix-ui/react-slider';
2
+ import * as React from 'react';
3
+ declare const Slider: React.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
4
+ export { Slider };
5
+ //# sourceMappingURL=slider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../src/components/slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,MAAM,yJASX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as SliderPrimitive from '@radix-ui/react-slider';
3
+ import * as React from 'react';
4
+ import { cn } from '@/lib/utils';
5
+ const Slider = React.forwardRef(({ className, ...props }, ref) => (_jsxs(SliderPrimitive.Root, { ref: ref, className: cn('relative flex w-full touch-none select-none items-center', className), ...props, children: [_jsx(SliderPrimitive.Track, { className: 'relative h-2 w-full grow overflow-hidden rounded-full bg-background-secondary', children: _jsx(SliderPrimitive.Range, { className: 'absolute h-full bg-background-primary' }) }), _jsx(SliderPrimitive.Thumb, { className: 'block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50' })] })));
6
+ Slider.displayName = SliderPrimitive.Root.displayName;
7
+ export { Slider };
@@ -0,0 +1,5 @@
1
+ import * as SwitchPrimitives from '@radix-ui/react-switch';
2
+ import * as React from 'react';
3
+ declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
+ export { Switch };
5
+ //# sourceMappingURL=switch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../src/components/switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,MAAM,8JAiBX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as SwitchPrimitives from '@radix-ui/react-switch';
3
+ import * as React from 'react';
4
+ import { cn } from '@/lib/utils';
5
+ const Switch = React.forwardRef(({ className, ...props }, ref) => (_jsx(SwitchPrimitives.Root, { className: cn('peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-background-primary data-[state=unchecked]:bg-accent', className), ...props, ref: ref, children: _jsx(SwitchPrimitives.Thumb, { className: cn('pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0') }) })));
6
+ Switch.displayName = SwitchPrimitives.Root.displayName;
7
+ export { Switch };
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
3
+ declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
4
+ declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
5
+ declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
6
+ declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
7
+ declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
8
+ declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
9
+ declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
10
+ export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
11
+ //# sourceMappingURL=table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../src/components/table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,KAAK,iHAET,CAAC;AAGH,QAAA,MAAM,WAAW,+HAEf,CAAC;AAGH,QAAA,MAAM,SAAS,+HAEb,CAAC;AAGH,QAAA,MAAM,WAAW,+HAEf,CAAC;AAGH,QAAA,MAAM,QAAQ,uHAMZ,CAAC;AAGH,QAAA,MAAM,SAAS,2HAMb,CAAC;AAGH,QAAA,MAAM,SAAS,2HAEb,CAAC;AAGH,QAAA,MAAM,YAAY,+HAEhB,CAAC;AAGH,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from 'react';
3
+ import { cn } from '@/lib/utils';
4
+ const Table = React.forwardRef(({ className, ...props }, ref) => (_jsx("table", { ref: ref, className: cn('w-full caption-bottom text-sm', className), ...props })));
5
+ Table.displayName = 'Table';
6
+ const TableHeader = React.forwardRef(({ className, ...props }, ref) => (_jsx("thead", { ref: ref, className: cn('sticky top-0 [&_tr]:border-b', className), ...props })));
7
+ TableHeader.displayName = 'TableHeader';
8
+ const TableBody = React.forwardRef(({ className, ...props }, ref) => (_jsx("tbody", { ref: ref, className: cn('[&_tr:last-child]:border-0', className), ...props })));
9
+ TableBody.displayName = 'TableBody';
10
+ const TableFooter = React.forwardRef(({ className, ...props }, ref) => (_jsx("tfoot", { ref: ref, className: cn('border-t bg-muted/50 font-medium [&>tr]:last:border-b-0', className), ...props })));
11
+ TableFooter.displayName = 'TableFooter';
12
+ const TableRow = React.forwardRef(({ className, ...props }, ref) => (_jsx("tr", { ref: ref, className: cn('border-b transition-colors hover:bg-datatable-accent', 'data-[state=selected]:bg-background-secondary', className), ...props })));
13
+ TableRow.displayName = 'TableRow';
14
+ const TableHead = React.forwardRef(({ className, ...props }, ref) => (_jsx("th", { ref: ref, className: cn('h-12 py-[12.25px] px-6 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0', className), ...props })));
15
+ TableHead.displayName = 'TableHead';
16
+ const TableCell = React.forwardRef(({ className, ...props }, ref) => (_jsx("td", { ref: ref, className: cn('align-middle px-6 [&:has([role=checkbox])]:pr-0', className), ...props })));
17
+ TableCell.displayName = 'TableCell';
18
+ const TableCaption = React.forwardRef(({ className, ...props }, ref) => (_jsx("caption", { ref: ref, className: cn('mt-4 text-sm text-muted-foreground', className), ...props })));
19
+ TableCaption.displayName = 'TableCaption';
20
+ export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
@@ -0,0 +1,8 @@
1
+ import * as TabsPrimitive from '@radix-ui/react-tabs';
2
+ import * as React from 'react';
3
+ declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
4
+ declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
6
+ declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ export { Tabs, TabsContent, TabsList, TabsTrigger };
8
+ //# sourceMappingURL=tabs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../src/components/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,IAAI,gGAAqB,CAAC;AAEhC,QAAA,MAAM,QAAQ,uJAQb,CAAC;AAGF,QAAA,MAAM,WAAW,gKAWhB,CAAC;AAGF,QAAA,MAAM,WAAW,0JAWhB,CAAC;AAGF,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as TabsPrimitive from '@radix-ui/react-tabs';
3
+ import * as React from 'react';
4
+ import { cn } from '@/lib/utils';
5
+ const Tabs = TabsPrimitive.Root;
6
+ const TabsList = React.forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.List, { ref: ref, className: cn('inline-flex h-10 items-center justify-center rounded-md bg-background-elevated p-1 text-muted-foreground', className), ...props })));
7
+ TabsList.displayName = TabsPrimitive.List.displayName;
8
+ const TabsTrigger = React.forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.Trigger, { ref: ref, className: cn('inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm', className), ...props })));
9
+ TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
10
+ const TabsContent = React.forwardRef(({ className, ...props }, ref) => (_jsx(TabsPrimitive.Content, { ref: ref, className: cn('mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2', className), ...props })));
11
+ TabsContent.displayName = TabsPrimitive.Content.displayName;
12
+ export { Tabs, TabsContent, TabsList, TabsTrigger };
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ declare const Textarea: React.ForwardRefExoticComponent<React.TextareaHTMLAttributes<HTMLTextAreaElement> & React.RefAttributes<HTMLTextAreaElement>>;
3
+ export { Textarea };
4
+ //# sourceMappingURL=textarea.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../src/components/textarea.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,QAAA,MAAM,QAAQ,+HAYZ,CAAC;AAGH,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { cn } from '@/lib/utils';
3
+ import * as React from 'react';
4
+ function classBorderColor(className, ariaInvalid) {
5
+ if (className?.includes('border-none')) {
6
+ return '';
7
+ }
8
+ return ariaInvalid ? 'border-red-600' : 'border-input';
9
+ }
10
+ const Textarea = React.forwardRef(({ className, ...props }, ref) => {
11
+ return (_jsx("textarea", { className: cn('flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', classBorderColor(className, props['aria-invalid'] === true), className), ref: ref, ...props }));
12
+ });
13
+ Textarea.displayName = 'Textarea';
14
+ export { Textarea };
@@ -0,0 +1,16 @@
1
+ import * as ToastPrimitives from '@radix-ui/react-toast';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ import * as React from 'react';
4
+ declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
5
+ declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
6
+ declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
7
+ variant?: "default" | "destructive" | "success" | null | undefined;
8
+ } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLLIElement>>;
9
+ declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
10
+ declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
11
+ declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const ToastDescription: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastDescriptionProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
14
+ type ToastActionElement = React.ReactElement<typeof ToastAction>;
15
+ export { Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, type ToastActionElement, type ToastProps };
16
+ //# sourceMappingURL=toast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../src/components/toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,KAAK,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,aAAa,8CAA2B,CAAC;AAE/C,QAAA,MAAM,aAAa,kKAKjB,CAAC;AAmBH,QAAA,MAAM,KAAK;;0HAKT,CAAC;AAGH,QAAA,MAAM,WAAW,kKAWhB,CAAC;AAGF,QAAA,MAAM,UAAU,iKAcf,CAAC;AAGF,QAAA,MAAM,UAAU,2JAEf,CAAC;AAGF,QAAA,MAAM,gBAAgB,iKAGmH,CAAC;AAG1I,KAAK,UAAU,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,KAAK,CAAC,CAAC;AAE/D,KAAK,kBAAkB,GAAG,KAAK,CAAC,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,gBAAgB,EAAE,aAAa,EAAE,UAAU,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,KAAK,UAAU,EAAE,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as ToastPrimitives from '@radix-ui/react-toast';
3
+ import { cva } from 'class-variance-authority';
4
+ import { X } from 'lucide-react';
5
+ import * as React from 'react';
6
+ import { cn } from '@/lib/utils';
7
+ const ToastProvider = ToastPrimitives.Provider;
8
+ const ToastViewport = React.forwardRef(({ className, ...props }, ref) => (_jsx(ToastPrimitives.Viewport, { ref: ref, className: cn('fixed top-0 right-0 p-4 space-y-2 z-[100]', className), ...props })));
9
+ ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
10
+ const toastVariants = cva('group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-top-full', {
11
+ variants: {
12
+ variant: {
13
+ default: 'border bg-background text-foreground',
14
+ destructive: 'bg-white text-zinc-950',
15
+ success: 'bg-white text-zinc-950',
16
+ },
17
+ },
18
+ defaultVariants: {
19
+ variant: 'default',
20
+ },
21
+ });
22
+ const Toast = React.forwardRef(({ className, variant, ...props }, ref) => {
23
+ return _jsx(ToastPrimitives.Root, { ref: ref, className: cn(toastVariants({ variant }), className), ...props });
24
+ });
25
+ Toast.displayName = ToastPrimitives.Root.displayName;
26
+ const ToastAction = React.forwardRef(({ className, ...props }, ref) => (_jsx(ToastPrimitives.Action, { ref: ref, className: cn('inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-background-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive', className), ...props })));
27
+ ToastAction.displayName = ToastPrimitives.Action.displayName;
28
+ const ToastClose = React.forwardRef(({ className, ...props }, ref) => (_jsx(ToastPrimitives.Close, { ref: ref, className: cn('absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600', className), "toast-close": '', ...props, children: _jsx(X, { className: 'h-4 w-4' }) })));
29
+ ToastClose.displayName = ToastPrimitives.Close.displayName;
30
+ const ToastTitle = React.forwardRef(({ className, ...props }, ref) => _jsx(ToastPrimitives.Title, { ref: ref, className: cn('text-sm font-semibold', className), ...props }));
31
+ ToastTitle.displayName = ToastPrimitives.Title.displayName;
32
+ const ToastDescription = React.forwardRef(({ className, ...props }, ref) => _jsx(ToastPrimitives.Description, { ref: ref, className: cn('text-sm opacity-90', className), ...props }));
33
+ ToastDescription.displayName = ToastPrimitives.Description.displayName;
34
+ export { Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport };
@@ -0,0 +1,2 @@
1
+ export declare function Toaster(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=toaster.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toaster.d.ts","sourceRoot":"","sources":["../../src/components/toaster.tsx"],"names":[],"mappings":"AAIA,wBAAgB,OAAO,4CA4CtB"}
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Check, CircleX } from 'lucide-react';
3
+ import { Toast, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport } from './toast';
4
+ import { useToast } from './use-toast';
5
+ export function Toaster() {
6
+ const { toasts } = useToast();
7
+ const getIcon = (icon, variant) => {
8
+ if (icon) {
9
+ return icon;
10
+ }
11
+ switch (variant) {
12
+ case 'success':
13
+ return (_jsx("div", { className: 'mr-3 p-px rounded-full bg-emerald-700', children: _jsx(Check, { size: 16, className: 'text-white' }) }));
14
+ case 'destructive':
15
+ return (_jsx("div", { className: 'mr-3 p-px rounded-full bg-red-700', children: _jsx(CircleX, { size: 16, className: 'text-white' }) }));
16
+ default:
17
+ return null;
18
+ }
19
+ };
20
+ return (_jsxs(ToastProvider, { children: [toasts.map(({ id, title, description, action, icon, variant, ...props }) => (_jsxs(Toast, { ...props, variant: variant, className: 'p-4 w-[334px] rounded-lg', children: [_jsxs("div", { className: 'grid gap-1', children: [_jsxs("div", { className: 'flex items-center', children: [getIcon(icon, variant ?? null), title && _jsx(ToastTitle, { children: title }), " "] }), description && _jsx(ToastDescription, { children: description })] }), action, _jsx(ToastClose, { className: 'text-white' })] }, id))), _jsx(ToastViewport, {})] }));
21
+ }
@@ -0,0 +1,8 @@
1
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
2
+ import * as React from 'react';
3
+ declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
4
+ declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
5
+ declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
+ declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
8
+ //# sourceMappingURL=tooltip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/components/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,eAAe,iDAA4B,CAAC;AAElD,QAAA,MAAM,OAAO,yCAAwB,CAAC;AAEtC,QAAA,MAAM,cAAc,gHAA2B,CAAC;AAEhD,QAAA,MAAM,cAAc,gKAgBlB,CAAC;AAGH,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
3
+ import * as React from 'react';
4
+ import { cn } from '@/lib/utils';
5
+ const TooltipProvider = TooltipPrimitive.Provider;
6
+ const Tooltip = TooltipPrimitive.Root;
7
+ const TooltipTrigger = TooltipPrimitive.Trigger;
8
+ const TooltipContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => (_jsxs(TooltipPrimitive.Content, { ref: ref, sideOffset: sideOffset, className: cn('z-50 overflow-hidden rounded-md bg-background-primary text-white px-3 py-1.5 text-sm shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className), ...props, children: [props.children, _jsx(TooltipPrimitive.Arrow, { className: 'z-50 fill-primary animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2' })] })));
9
+ TooltipContent.displayName = TooltipPrimitive.Content.displayName;
10
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
@@ -0,0 +1,8 @@
1
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
2
+ import * as React from 'react';
3
+ declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
4
+ declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
6
+ declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
8
+ //# sourceMappingURL=accordion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../src/components/ui/accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAEhE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,SAAS,8JAA0B,CAAC;AAE1C,QAAA,MAAM,aAAa,iKAGwG,CAAC;AAG5H,QAAA,MAAM,gBAAgB,0KAcpB,CAAC;AAGH,QAAA,MAAM,gBAAgB,oKAWpB,CAAC;AAIH,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,aAAa,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as AccordionPrimitive from '@radix-ui/react-accordion';
3
+ import { ChevronDown } from 'lucide-react';
4
+ import * as React from 'react';
5
+ import { cn } from '@/lib/utils';
6
+ const Accordion = AccordionPrimitive.Root;
7
+ const AccordionItem = React.forwardRef(({ className, ...props }, ref) => _jsx(AccordionPrimitive.Item, { ref: ref, className: cn('border-b', className), ...props }));
8
+ AccordionItem.displayName = 'AccordionItem';
9
+ const AccordionTrigger = React.forwardRef(({ className, children, ...props }, ref) => (_jsx(AccordionPrimitive.Header, { className: 'flex', children: _jsxs(AccordionPrimitive.Trigger, { ref: ref, className: cn('flex flex-1 items-center justify-between p-4 font-medium transition-all [&[data-state=open]>svg]:rotate-180', className), ...props, children: [children, _jsx(ChevronDown, { className: 'h-4 w-4 shrink-0 transition-transform duration-200' })] }) })));
10
+ AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
11
+ const AccordionContent = React.forwardRef(({ className, children, ...props }, ref) => (_jsx(AccordionPrimitive.Content, { ref: ref, className: 'overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down', ...props, children: _jsx("div", { className: cn('p-4 pt-0', className), children: children }) })));
12
+ AccordionContent.displayName = AccordionPrimitive.Content.displayName;
13
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
@@ -0,0 +1,25 @@
1
+ import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
2
+ import * as React from "react";
3
+ declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
4
+ declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
6
+ declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
+ declare const AlertDialogHeader: {
9
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
10
+ displayName: string;
11
+ };
12
+ declare const AlertDialogFooter: {
13
+ ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
14
+ displayName: string;
15
+ };
16
+ declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
17
+ declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
18
+ declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
19
+ variant?: "default" | "outline" | "destructive" | "secondary";
20
+ } & React.RefAttributes<HTMLButtonElement>>;
21
+ declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
22
+ variant?: "default" | "outline" | "destructive" | "secondary";
23
+ } & React.RefAttributes<HTMLButtonElement>>;
24
+ export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
25
+ //# sourceMappingURL=alert-dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAA;AACpE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,QAAA,MAAM,WAAW,iDAA4B,CAAA;AAE7C,QAAA,MAAM,kBAAkB,wHAA+B,CAAA;AAEvD,QAAA,MAAM,iBAAiB,uDAA8B,CAAA;AAErD,QAAA,MAAM,kBAAkB,wKAYtB,CAAA;AAGF,QAAA,MAAM,kBAAkB,wKAetB,CAAA;AAGF,QAAA,MAAM,iBAAiB;8BAGpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAA;AAGD,QAAA,MAAM,iBAAiB;8BAGpB,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAA;AAGD,QAAA,MAAM,gBAAgB,8KASpB,CAAA;AAGF,QAAA,MAAM,sBAAsB,wLAS1B,CAAA;AAIA,QAAA,MAAM,iBAAiB;cAGX,SAAS,GAAG,SAAS,GAAG,aAAa,GAAG,WAAW;2CAQ/D,CAAC;AAKH,QAAA,MAAM,iBAAiB;cAGT,SAAS,GAAG,SAAS,GAAG,aAAa,GAAG,WAAW;2CAY/D,CAAC;AAKH,OAAO,EACL,WAAW,EAAE,iBAAiB,EAC9B,iBAAiB,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,kBAAkB,EACjL,CAAA"}
@@ -0,0 +1,27 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { cn } from "@/lib/utils";
3
+ import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
4
+ import * as React from "react";
5
+ import { buttonVariants } from "./button";
6
+ const AlertDialog = AlertDialogPrimitive.Root;
7
+ const AlertDialogTrigger = AlertDialogPrimitive.Trigger;
8
+ const AlertDialogPortal = AlertDialogPrimitive.Portal;
9
+ const AlertDialogOverlay = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Overlay, { className: cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", className), ...props, ref: ref })));
10
+ AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
11
+ const AlertDialogContent = React.forwardRef(({ className, ...props }, ref) => (_jsxs(AlertDialogPortal, { children: [_jsx(AlertDialogOverlay, {}), _jsx(AlertDialogPrimitive.Content, { ref: ref, className: cn("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg", className), ...props })] })));
12
+ AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
13
+ const AlertDialogHeader = ({ className, ...props }) => (_jsx("div", { className: cn("flex flex-col space-y-2 text-center sm:text-left", className), ...props }));
14
+ AlertDialogHeader.displayName = "AlertDialogHeader";
15
+ const AlertDialogFooter = ({ className, ...props }) => (_jsx("div", { className: cn("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props }));
16
+ AlertDialogFooter.displayName = "AlertDialogFooter";
17
+ const AlertDialogTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Title, { ref: ref, className: cn("text-lg font-semibold", className), ...props })));
18
+ AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
19
+ const AlertDialogDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx(AlertDialogPrimitive.Description, { ref: ref, className: cn("text-sm text-muted-foreground", className), ...props })));
20
+ AlertDialogDescription.displayName =
21
+ AlertDialogPrimitive.Description.displayName;
22
+ const AlertDialogAction = React.forwardRef(({ className, variant = "default", ...props }, ref) => (_jsx(AlertDialogPrimitive.Action, { ref: ref, className: cn(buttonVariants({ variant }), className), ...props })));
23
+ AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
24
+ const AlertDialogCancel = React.forwardRef(({ className, variant = "outline", ...props }, ref) => (_jsx(AlertDialogPrimitive.Cancel, { ref: ref, className: cn(buttonVariants({ variant }), // Usa a variante passada como prop
25
+ "mt-2 sm:mt-0", className), ...props })));
26
+ AlertDialogCancel.displayName = AlertDialogPrimitive.Cancel.displayName;
27
+ export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };