eai-frontend-components 2.0.7 → 2.0.9

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 (586) hide show
  1. package/dist/index.d.ts +11 -60
  2. package/dist/index.esm.js +2 -2
  3. package/dist/index.esm.js.map +1 -1
  4. package/dist/index.js +2 -2
  5. package/dist/index.js.map +1 -1
  6. package/package.json +1 -1
  7. package/dist/components/accordion.d.ts +0 -8
  8. package/dist/components/accordion.d.ts.map +0 -1
  9. package/dist/components/accordion.js +0 -13
  10. package/dist/components/alert-dialog.d.ts +0 -25
  11. package/dist/components/alert-dialog.d.ts.map +0 -1
  12. package/dist/components/alert-dialog.js +0 -27
  13. package/dist/components/alert.d.ts +0 -9
  14. package/dist/components/alert.d.ts.map +0 -1
  15. package/dist/components/alert.js +0 -22
  16. package/dist/components/avatar.d.ts +0 -7
  17. package/dist/components/avatar.d.ts.map +0 -1
  18. package/dist/components/avatar.js +0 -11
  19. package/dist/components/badge.d.ts +0 -10
  20. package/dist/components/badge.d.ts.map +0 -1
  21. package/dist/components/badge.js +0 -26
  22. package/dist/components/breadcrumb.d.ts +0 -20
  23. package/dist/components/breadcrumb.d.ts.map +0 -1
  24. package/dist/components/breadcrumb.js +0 -23
  25. package/dist/components/button.d.ts +0 -12
  26. package/dist/components/button.d.ts.map +0 -1
  27. package/dist/components/button.js +0 -33
  28. package/dist/components/calendar.d.ts +0 -9
  29. package/dist/components/calendar.d.ts.map +0 -1
  30. package/dist/components/calendar.js +0 -70
  31. package/dist/components/card.d.ts +0 -9
  32. package/dist/components/card.d.ts.map +0 -1
  33. package/dist/components/card.js +0 -16
  34. package/dist/components/carousel.d.ts +0 -19
  35. package/dist/components/carousel.d.ts.map +0 -1
  36. package/dist/components/carousel.js +0 -98
  37. package/dist/components/chart.d.ts +0 -63
  38. package/dist/components/chart.d.ts.map +0 -1
  39. package/dist/components/chart.js +0 -130
  40. package/dist/components/checkbox.d.ts +0 -5
  41. package/dist/components/checkbox.d.ts.map +0 -1
  42. package/dist/components/checkbox.js +0 -8
  43. package/dist/components/collapsible.d.ts +0 -6
  44. package/dist/components/collapsible.d.ts.map +0 -1
  45. package/dist/components/collapsible.js +0 -5
  46. package/dist/components/command.d.ts +0 -81
  47. package/dist/components/command.d.ts.map +0 -1
  48. package/dist/components/command.js +0 -28
  49. package/dist/components/context-menu.d.ts +0 -28
  50. package/dist/components/context-menu.d.ts.map +0 -1
  51. package/dist/components/context-menu.js +0 -33
  52. package/dist/components/custom/date-picker.d.ts +0 -12
  53. package/dist/components/custom/date-picker.d.ts.map +0 -1
  54. package/dist/components/custom/date-picker.js +0 -35
  55. package/dist/components/custom/form/checkbox.d.ts +0 -13
  56. package/dist/components/custom/form/checkbox.d.ts.map +0 -1
  57. package/dist/components/custom/form/checkbox.js +0 -15
  58. package/dist/components/custom/form/color.d.ts +0 -15
  59. package/dist/components/custom/form/color.d.ts.map +0 -1
  60. package/dist/components/custom/form/color.js +0 -40
  61. package/dist/components/custom/form/combobox.d.ts +0 -37
  62. package/dist/components/custom/form/combobox.d.ts.map +0 -1
  63. package/dist/components/custom/form/combobox.js +0 -82
  64. package/dist/components/custom/form/cpf-cnpj.d.ts +0 -16
  65. package/dist/components/custom/form/cpf-cnpj.d.ts.map +0 -1
  66. package/dist/components/custom/form/cpf-cnpj.js +0 -32
  67. package/dist/components/custom/form/currency.d.ts +0 -14
  68. package/dist/components/custom/form/currency.d.ts.map +0 -1
  69. package/dist/components/custom/form/currency.js +0 -15
  70. package/dist/components/custom/form/date-range.d.ts +0 -16
  71. package/dist/components/custom/form/date-range.d.ts.map +0 -1
  72. package/dist/components/custom/form/date-range.js +0 -24
  73. package/dist/components/custom/form/date.d.ts +0 -16
  74. package/dist/components/custom/form/date.d.ts.map +0 -1
  75. package/dist/components/custom/form/date.js +0 -35
  76. package/dist/components/custom/form/decimal.d.ts +0 -14
  77. package/dist/components/custom/form/decimal.d.ts.map +0 -1
  78. package/dist/components/custom/form/decimal.js +0 -15
  79. package/dist/components/custom/form/file.d.ts +0 -15
  80. package/dist/components/custom/form/file.d.ts.map +0 -1
  81. package/dist/components/custom/form/file.js +0 -18
  82. package/dist/components/custom/form/form-help-text.d.ts +0 -3
  83. package/dist/components/custom/form/form-help-text.d.ts.map +0 -1
  84. package/dist/components/custom/form/form-help-text.js +0 -7
  85. package/dist/components/custom/form/form-label.d.ts +0 -4
  86. package/dist/components/custom/form/form-label.d.ts.map +0 -1
  87. package/dist/components/custom/form/form-label.js +0 -9
  88. package/dist/components/custom/form/form-message.d.ts +0 -3
  89. package/dist/components/custom/form/form-message.d.ts.map +0 -1
  90. package/dist/components/custom/form/form-message.js +0 -5
  91. package/dist/components/custom/form/ghost.d.ts +0 -8
  92. package/dist/components/custom/form/ghost.d.ts.map +0 -1
  93. package/dist/components/custom/form/ghost.js +0 -8
  94. package/dist/components/custom/form/input.d.ts +0 -18
  95. package/dist/components/custom/form/input.d.ts.map +0 -1
  96. package/dist/components/custom/form/input.js +0 -14
  97. package/dist/components/custom/form/mask.d.ts +0 -19
  98. package/dist/components/custom/form/mask.d.ts.map +0 -1
  99. package/dist/components/custom/form/mask.js +0 -19
  100. package/dist/components/custom/form/multi-select-old.d.ts +0 -19
  101. package/dist/components/custom/form/multi-select-old.d.ts.map +0 -1
  102. package/dist/components/custom/form/multi-select-old.js +0 -30
  103. package/dist/components/custom/form/multi-select.d.ts +0 -26
  104. package/dist/components/custom/form/multi-select.d.ts.map +0 -1
  105. package/dist/components/custom/form/multi-select.js +0 -66
  106. package/dist/components/custom/form/password.d.ts +0 -16
  107. package/dist/components/custom/form/password.d.ts.map +0 -1
  108. package/dist/components/custom/form/password.js +0 -14
  109. package/dist/components/custom/form/percent.d.ts +0 -14
  110. package/dist/components/custom/form/percent.d.ts.map +0 -1
  111. package/dist/components/custom/form/percent.js +0 -15
  112. package/dist/components/custom/form/phone.d.ts +0 -16
  113. package/dist/components/custom/form/phone.d.ts.map +0 -1
  114. package/dist/components/custom/form/phone.js +0 -23
  115. package/dist/components/custom/form/radio-group.d.ts +0 -23
  116. package/dist/components/custom/form/radio-group.d.ts.map +0 -1
  117. package/dist/components/custom/form/radio-group.js +0 -15
  118. package/dist/components/custom/form/select.d.ts +0 -20
  119. package/dist/components/custom/form/select.d.ts.map +0 -1
  120. package/dist/components/custom/form/select.js +0 -12
  121. package/dist/components/custom/form/step-new-form.d.ts +0 -10
  122. package/dist/components/custom/form/step-new-form.d.ts.map +0 -1
  123. package/dist/components/custom/form/step-new-form.js +0 -13
  124. package/dist/components/custom/form/switch.d.ts +0 -13
  125. package/dist/components/custom/form/switch.d.ts.map +0 -1
  126. package/dist/components/custom/form/switch.js +0 -16
  127. package/dist/components/custom/form/text.d.ts +0 -18
  128. package/dist/components/custom/form/text.d.ts.map +0 -1
  129. package/dist/components/custom/form/text.js +0 -14
  130. package/dist/components/custom/form/textarea.d.ts +0 -16
  131. package/dist/components/custom/form/textarea.d.ts.map +0 -1
  132. package/dist/components/custom/form/textarea.js +0 -19
  133. package/dist/components/custom/form/utils.d.ts +0 -18
  134. package/dist/components/custom/form/utils.d.ts.map +0 -1
  135. package/dist/components/custom/form/utils.js +0 -88
  136. package/dist/components/custom/header.d.ts +0 -3
  137. package/dist/components/custom/header.d.ts.map +0 -1
  138. package/dist/components/custom/header.js +0 -94
  139. package/dist/components/custom/label.d.ts +0 -13
  140. package/dist/components/custom/label.d.ts.map +0 -1
  141. package/dist/components/custom/label.js +0 -20
  142. package/dist/components/custom/not-found.d.ts +0 -3
  143. package/dist/components/custom/not-found.d.ts.map +0 -1
  144. package/dist/components/custom/not-found.js +0 -9
  145. package/dist/components/custom/sidebar/app-sidebar.d.ts +0 -5
  146. package/dist/components/custom/sidebar/app-sidebar.d.ts.map +0 -1
  147. package/dist/components/custom/sidebar/app-sidebar.js +0 -26
  148. package/dist/components/custom/sidebar/module-switcher.d.ts +0 -3
  149. package/dist/components/custom/sidebar/module-switcher.d.ts.map +0 -1
  150. package/dist/components/custom/sidebar/module-switcher.js +0 -55
  151. package/dist/components/custom/sidebar/nav-footer.d.ts +0 -3
  152. package/dist/components/custom/sidebar/nav-footer.d.ts.map +0 -1
  153. package/dist/components/custom/sidebar/nav-footer.js +0 -17
  154. package/dist/components/custom/sidebar/nav-main.d.ts +0 -3
  155. package/dist/components/custom/sidebar/nav-main.d.ts.map +0 -1
  156. package/dist/components/custom/sidebar/nav-main.js +0 -32
  157. package/dist/components/custom/sidebar/nav-submenu-collapsible.d.ts +0 -9
  158. package/dist/components/custom/sidebar/nav-submenu-collapsible.d.ts.map +0 -1
  159. package/dist/components/custom/sidebar/nav-submenu-collapsible.js +0 -21
  160. package/dist/components/custom/sidebar/nav-submenu-dropdown.d.ts +0 -10
  161. package/dist/components/custom/sidebar/nav-submenu-dropdown.d.ts.map +0 -1
  162. package/dist/components/custom/sidebar/nav-submenu-dropdown.js +0 -13
  163. package/dist/components/custom/sidebar/nav-user.d.ts +0 -3
  164. package/dist/components/custom/sidebar/nav-user.d.ts.map +0 -1
  165. package/dist/components/custom/sidebar/nav-user.js +0 -51
  166. package/dist/components/custom/sidebar/sidebar-button.d.ts +0 -9
  167. package/dist/components/custom/sidebar/sidebar-button.d.ts.map +0 -1
  168. package/dist/components/custom/sidebar/sidebar-button.js +0 -7
  169. package/dist/components/custom/sidebar/sidebar-item-two-lines.d.ts +0 -12
  170. package/dist/components/custom/sidebar/sidebar-item-two-lines.d.ts.map +0 -1
  171. package/dist/components/custom/sidebar/sidebar-item-two-lines.js +0 -5
  172. package/dist/components/custom/sidebar/sidebar-item.d.ts +0 -9
  173. package/dist/components/custom/sidebar/sidebar-item.d.ts.map +0 -1
  174. package/dist/components/custom/sidebar/sidebar-item.js +0 -7
  175. package/dist/components/custom/sidebar/types/sidebar.d.ts +0 -29
  176. package/dist/components/custom/sidebar/types/sidebar.d.ts.map +0 -1
  177. package/dist/components/custom/sidebar/types/sidebar.js +0 -5
  178. package/dist/components/custom/table/data-table-export.d.ts +0 -8
  179. package/dist/components/custom/table/data-table-export.d.ts.map +0 -1
  180. package/dist/components/custom/table/data-table-export.js +0 -65
  181. package/dist/components/custom/table/data-table-footer.d.ts +0 -25
  182. package/dist/components/custom/table/data-table-footer.d.ts.map +0 -1
  183. package/dist/components/custom/table/data-table-footer.js +0 -39
  184. package/dist/components/custom/table/data-table-header.d.ts +0 -9
  185. package/dist/components/custom/table/data-table-header.d.ts.map +0 -1
  186. package/dist/components/custom/table/data-table-header.js +0 -11
  187. package/dist/components/custom/table/data-table-rows.d.ts +0 -13
  188. package/dist/components/custom/table/data-table-rows.d.ts.map +0 -1
  189. package/dist/components/custom/table/data-table-rows.js +0 -25
  190. package/dist/components/custom/table/data-table.d.ts +0 -35
  191. package/dist/components/custom/table/data-table.d.ts.map +0 -1
  192. package/dist/components/custom/table/data-table.js +0 -99
  193. package/dist/components/custom/table/types/data-table.d.ts +0 -29
  194. package/dist/components/custom/table/types/data-table.d.ts.map +0 -1
  195. package/dist/components/custom/table/types/data-table.js +0 -1
  196. package/dist/components/custom/theme-provider.d.ts +0 -24
  197. package/dist/components/custom/theme-provider.d.ts.map +0 -1
  198. package/dist/components/custom/theme-provider.js +0 -79
  199. package/dist/components/dateRangePicker.d.ts +0 -3
  200. package/dist/components/dateRangePicker.d.ts.map +0 -1
  201. package/dist/components/dateRangePicker.js +0 -15
  202. package/dist/components/dialog.d.ts +0 -23
  203. package/dist/components/dialog.d.ts.map +0 -1
  204. package/dist/components/dialog.js +0 -23
  205. package/dist/components/drawer.d.ts +0 -23
  206. package/dist/components/drawer.d.ts.map +0 -1
  207. package/dist/components/drawer.js +0 -22
  208. package/dist/components/dropdown-menu.d.ts +0 -28
  209. package/dist/components/dropdown-menu.d.ts.map +0 -1
  210. package/dist/components/dropdown-menu.js +0 -32
  211. package/dist/components/form.d.ts +0 -24
  212. package/dist/components/form.d.ts.map +0 -1
  213. package/dist/components/form.js +0 -60
  214. package/dist/components/hover-card.d.ts +0 -7
  215. package/dist/components/hover-card.d.ts.map +0 -1
  216. package/dist/components/hover-card.js +0 -9
  217. package/dist/components/input.d.ts +0 -24
  218. package/dist/components/input.d.ts.map +0 -1
  219. package/dist/components/input.js +0 -71
  220. package/dist/components/label.d.ts +0 -6
  221. package/dist/components/label.d.ts.map +0 -1
  222. package/dist/components/label.js +0 -9
  223. package/dist/components/masks.d.ts +0 -17
  224. package/dist/components/masks.d.ts.map +0 -1
  225. package/dist/components/masks.js +0 -25
  226. package/dist/components/pagination.d.ts +0 -30
  227. package/dist/components/pagination.d.ts.map +0 -1
  228. package/dist/components/pagination.js +0 -23
  229. package/dist/components/popover.d.ts +0 -7
  230. package/dist/components/popover.d.ts.map +0 -1
  231. package/dist/components/popover.js +0 -11
  232. package/dist/components/progress.d.ts +0 -5
  233. package/dist/components/progress.d.ts.map +0 -1
  234. package/dist/components/progress.js +0 -7
  235. package/dist/components/radio-group.d.ts +0 -6
  236. package/dist/components/radio-group.d.ts.map +0 -1
  237. package/dist/components/radio-group.js +0 -14
  238. package/dist/components/scroll-area.d.ts +0 -6
  239. package/dist/components/scroll-area.d.ts.map +0 -1
  240. package/dist/components/scroll-area.js +0 -11
  241. package/dist/components/select.d.ts +0 -14
  242. package/dist/components/select.d.ts.map +0 -1
  243. package/dist/components/select.js +0 -24
  244. package/dist/components/separator.d.ts +0 -5
  245. package/dist/components/separator.d.ts.map +0 -1
  246. package/dist/components/separator.js +0 -7
  247. package/dist/components/sheet.d.ts +0 -26
  248. package/dist/components/sheet.d.ts.map +0 -1
  249. package/dist/components/sheet.js +0 -37
  250. package/dist/components/sidebar.d.ts +0 -67
  251. package/dist/components/sidebar.d.ts.map +0 -1
  252. package/dist/components/sidebar.js +0 -221
  253. package/dist/components/skeleton.d.ts +0 -3
  254. package/dist/components/skeleton.d.ts.map +0 -1
  255. package/dist/components/skeleton.js +0 -6
  256. package/dist/components/slider.d.ts +0 -5
  257. package/dist/components/slider.d.ts.map +0 -1
  258. package/dist/components/slider.js +0 -7
  259. package/dist/components/switch.d.ts +0 -5
  260. package/dist/components/switch.d.ts.map +0 -1
  261. package/dist/components/switch.js +0 -7
  262. package/dist/components/table.d.ts +0 -11
  263. package/dist/components/table.d.ts.map +0 -1
  264. package/dist/components/table.js +0 -20
  265. package/dist/components/tabs.d.ts +0 -8
  266. package/dist/components/tabs.d.ts.map +0 -1
  267. package/dist/components/tabs.js +0 -12
  268. package/dist/components/textarea.d.ts +0 -4
  269. package/dist/components/textarea.d.ts.map +0 -1
  270. package/dist/components/textarea.js +0 -14
  271. package/dist/components/toast.d.ts +0 -16
  272. package/dist/components/toast.d.ts.map +0 -1
  273. package/dist/components/toast.js +0 -34
  274. package/dist/components/toaster.d.ts +0 -2
  275. package/dist/components/toaster.d.ts.map +0 -1
  276. package/dist/components/toaster.js +0 -21
  277. package/dist/components/tooltip.d.ts +0 -8
  278. package/dist/components/tooltip.d.ts.map +0 -1
  279. package/dist/components/tooltip.js +0 -10
  280. package/dist/components/ui/accordion.d.ts +0 -8
  281. package/dist/components/ui/accordion.d.ts.map +0 -1
  282. package/dist/components/ui/accordion.js +0 -13
  283. package/dist/components/ui/alert-dialog.d.ts +0 -25
  284. package/dist/components/ui/alert-dialog.d.ts.map +0 -1
  285. package/dist/components/ui/alert-dialog.js +0 -27
  286. package/dist/components/ui/alert.d.ts +0 -9
  287. package/dist/components/ui/alert.d.ts.map +0 -1
  288. package/dist/components/ui/alert.js +0 -22
  289. package/dist/components/ui/avatar.d.ts +0 -7
  290. package/dist/components/ui/avatar.d.ts.map +0 -1
  291. package/dist/components/ui/avatar.js +0 -11
  292. package/dist/components/ui/badge.d.ts +0 -10
  293. package/dist/components/ui/badge.d.ts.map +0 -1
  294. package/dist/components/ui/badge.js +0 -26
  295. package/dist/components/ui/breadcrumb.d.ts +0 -20
  296. package/dist/components/ui/breadcrumb.d.ts.map +0 -1
  297. package/dist/components/ui/breadcrumb.js +0 -23
  298. package/dist/components/ui/button.d.ts +0 -12
  299. package/dist/components/ui/button.d.ts.map +0 -1
  300. package/dist/components/ui/button.js +0 -33
  301. package/dist/components/ui/calendar.d.ts +0 -9
  302. package/dist/components/ui/calendar.d.ts.map +0 -1
  303. package/dist/components/ui/calendar.js +0 -70
  304. package/dist/components/ui/card.d.ts +0 -9
  305. package/dist/components/ui/card.d.ts.map +0 -1
  306. package/dist/components/ui/card.js +0 -16
  307. package/dist/components/ui/carousel.d.ts +0 -19
  308. package/dist/components/ui/carousel.d.ts.map +0 -1
  309. package/dist/components/ui/carousel.js +0 -98
  310. package/dist/components/ui/chart.d.ts +0 -63
  311. package/dist/components/ui/chart.d.ts.map +0 -1
  312. package/dist/components/ui/chart.js +0 -130
  313. package/dist/components/ui/checkbox.d.ts +0 -5
  314. package/dist/components/ui/checkbox.d.ts.map +0 -1
  315. package/dist/components/ui/checkbox.js +0 -8
  316. package/dist/components/ui/collapsible.d.ts +0 -6
  317. package/dist/components/ui/collapsible.d.ts.map +0 -1
  318. package/dist/components/ui/collapsible.js +0 -5
  319. package/dist/components/ui/command.d.ts +0 -81
  320. package/dist/components/ui/command.d.ts.map +0 -1
  321. package/dist/components/ui/command.js +0 -28
  322. package/dist/components/ui/context-menu.d.ts +0 -28
  323. package/dist/components/ui/context-menu.d.ts.map +0 -1
  324. package/dist/components/ui/context-menu.js +0 -33
  325. package/dist/components/ui/custom/date-picker.d.ts +0 -12
  326. package/dist/components/ui/custom/date-picker.d.ts.map +0 -1
  327. package/dist/components/ui/custom/date-picker.js +0 -35
  328. package/dist/components/ui/custom/form/checkbox.d.ts +0 -13
  329. package/dist/components/ui/custom/form/checkbox.d.ts.map +0 -1
  330. package/dist/components/ui/custom/form/checkbox.js +0 -15
  331. package/dist/components/ui/custom/form/color.d.ts +0 -15
  332. package/dist/components/ui/custom/form/color.d.ts.map +0 -1
  333. package/dist/components/ui/custom/form/color.js +0 -40
  334. package/dist/components/ui/custom/form/combobox.d.ts +0 -37
  335. package/dist/components/ui/custom/form/combobox.d.ts.map +0 -1
  336. package/dist/components/ui/custom/form/combobox.js +0 -82
  337. package/dist/components/ui/custom/form/cpf-cnpj.d.ts +0 -16
  338. package/dist/components/ui/custom/form/cpf-cnpj.d.ts.map +0 -1
  339. package/dist/components/ui/custom/form/cpf-cnpj.js +0 -32
  340. package/dist/components/ui/custom/form/currency.d.ts +0 -14
  341. package/dist/components/ui/custom/form/currency.d.ts.map +0 -1
  342. package/dist/components/ui/custom/form/currency.js +0 -15
  343. package/dist/components/ui/custom/form/date-range.d.ts +0 -16
  344. package/dist/components/ui/custom/form/date-range.d.ts.map +0 -1
  345. package/dist/components/ui/custom/form/date-range.js +0 -24
  346. package/dist/components/ui/custom/form/date.d.ts +0 -16
  347. package/dist/components/ui/custom/form/date.d.ts.map +0 -1
  348. package/dist/components/ui/custom/form/date.js +0 -35
  349. package/dist/components/ui/custom/form/decimal.d.ts +0 -14
  350. package/dist/components/ui/custom/form/decimal.d.ts.map +0 -1
  351. package/dist/components/ui/custom/form/decimal.js +0 -15
  352. package/dist/components/ui/custom/form/file.d.ts +0 -15
  353. package/dist/components/ui/custom/form/file.d.ts.map +0 -1
  354. package/dist/components/ui/custom/form/file.js +0 -18
  355. package/dist/components/ui/custom/form/form-help-text.d.ts +0 -3
  356. package/dist/components/ui/custom/form/form-help-text.d.ts.map +0 -1
  357. package/dist/components/ui/custom/form/form-help-text.js +0 -7
  358. package/dist/components/ui/custom/form/form-label.d.ts +0 -7
  359. package/dist/components/ui/custom/form/form-label.d.ts.map +0 -1
  360. package/dist/components/ui/custom/form/form-label.js +0 -9
  361. package/dist/components/ui/custom/form/form-message.d.ts +0 -5
  362. package/dist/components/ui/custom/form/form-message.d.ts.map +0 -1
  363. package/dist/components/ui/custom/form/form-message.js +0 -5
  364. package/dist/components/ui/custom/form/ghost.d.ts +0 -8
  365. package/dist/components/ui/custom/form/ghost.d.ts.map +0 -1
  366. package/dist/components/ui/custom/form/ghost.js +0 -8
  367. package/dist/components/ui/custom/form/input.d.ts +0 -18
  368. package/dist/components/ui/custom/form/input.d.ts.map +0 -1
  369. package/dist/components/ui/custom/form/input.js +0 -14
  370. package/dist/components/ui/custom/form/mask.d.ts +0 -19
  371. package/dist/components/ui/custom/form/mask.d.ts.map +0 -1
  372. package/dist/components/ui/custom/form/mask.js +0 -19
  373. package/dist/components/ui/custom/form/multi-select-old.d.ts +0 -19
  374. package/dist/components/ui/custom/form/multi-select-old.d.ts.map +0 -1
  375. package/dist/components/ui/custom/form/multi-select-old.js +0 -30
  376. package/dist/components/ui/custom/form/multi-select.d.ts +0 -26
  377. package/dist/components/ui/custom/form/multi-select.d.ts.map +0 -1
  378. package/dist/components/ui/custom/form/multi-select.js +0 -66
  379. package/dist/components/ui/custom/form/password.d.ts +0 -16
  380. package/dist/components/ui/custom/form/password.d.ts.map +0 -1
  381. package/dist/components/ui/custom/form/password.js +0 -14
  382. package/dist/components/ui/custom/form/percent.d.ts +0 -14
  383. package/dist/components/ui/custom/form/percent.d.ts.map +0 -1
  384. package/dist/components/ui/custom/form/percent.js +0 -15
  385. package/dist/components/ui/custom/form/phone.d.ts +0 -16
  386. package/dist/components/ui/custom/form/phone.d.ts.map +0 -1
  387. package/dist/components/ui/custom/form/phone.js +0 -23
  388. package/dist/components/ui/custom/form/radio-group.d.ts +0 -23
  389. package/dist/components/ui/custom/form/radio-group.d.ts.map +0 -1
  390. package/dist/components/ui/custom/form/radio-group.js +0 -15
  391. package/dist/components/ui/custom/form/select.d.ts +0 -20
  392. package/dist/components/ui/custom/form/select.d.ts.map +0 -1
  393. package/dist/components/ui/custom/form/select.js +0 -12
  394. package/dist/components/ui/custom/form/step-new-form.d.ts +0 -10
  395. package/dist/components/ui/custom/form/step-new-form.d.ts.map +0 -1
  396. package/dist/components/ui/custom/form/step-new-form.js +0 -13
  397. package/dist/components/ui/custom/form/switch.d.ts +0 -13
  398. package/dist/components/ui/custom/form/switch.d.ts.map +0 -1
  399. package/dist/components/ui/custom/form/switch.js +0 -16
  400. package/dist/components/ui/custom/form/text.d.ts +0 -18
  401. package/dist/components/ui/custom/form/text.d.ts.map +0 -1
  402. package/dist/components/ui/custom/form/text.js +0 -14
  403. package/dist/components/ui/custom/form/textarea.d.ts +0 -16
  404. package/dist/components/ui/custom/form/textarea.d.ts.map +0 -1
  405. package/dist/components/ui/custom/form/textarea.js +0 -19
  406. package/dist/components/ui/custom/form/utils.d.ts +0 -18
  407. package/dist/components/ui/custom/form/utils.d.ts.map +0 -1
  408. package/dist/components/ui/custom/form/utils.js +0 -88
  409. package/dist/components/ui/custom/header.d.ts +0 -11
  410. package/dist/components/ui/custom/header.d.ts.map +0 -1
  411. package/dist/components/ui/custom/header.js +0 -74
  412. package/dist/components/ui/custom/label.d.ts +0 -13
  413. package/dist/components/ui/custom/label.d.ts.map +0 -1
  414. package/dist/components/ui/custom/label.js +0 -20
  415. package/dist/components/ui/custom/not-found.d.ts +0 -3
  416. package/dist/components/ui/custom/not-found.d.ts.map +0 -1
  417. package/dist/components/ui/custom/not-found.js +0 -9
  418. package/dist/components/ui/custom/sidebar/app-sidebar.d.ts +0 -5
  419. package/dist/components/ui/custom/sidebar/app-sidebar.d.ts.map +0 -1
  420. package/dist/components/ui/custom/sidebar/app-sidebar.js +0 -26
  421. package/dist/components/ui/custom/sidebar/module-switcher.d.ts +0 -9
  422. package/dist/components/ui/custom/sidebar/module-switcher.d.ts.map +0 -1
  423. package/dist/components/ui/custom/sidebar/module-switcher.js +0 -55
  424. package/dist/components/ui/custom/sidebar/nav-footer.d.ts +0 -7
  425. package/dist/components/ui/custom/sidebar/nav-footer.d.ts.map +0 -1
  426. package/dist/components/ui/custom/sidebar/nav-footer.js +0 -13
  427. package/dist/components/ui/custom/sidebar/nav-main.d.ts +0 -7
  428. package/dist/components/ui/custom/sidebar/nav-main.d.ts.map +0 -1
  429. package/dist/components/ui/custom/sidebar/nav-main.js +0 -27
  430. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.d.ts +0 -9
  431. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.d.ts.map +0 -1
  432. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.js +0 -18
  433. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.d.ts +0 -10
  434. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.d.ts.map +0 -1
  435. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.js +0 -10
  436. package/dist/components/ui/custom/sidebar/nav-user.d.ts +0 -9
  437. package/dist/components/ui/custom/sidebar/nav-user.d.ts.map +0 -1
  438. package/dist/components/ui/custom/sidebar/nav-user.js +0 -24
  439. package/dist/components/ui/custom/sidebar/sidebar-button.d.ts +0 -9
  440. package/dist/components/ui/custom/sidebar/sidebar-button.d.ts.map +0 -1
  441. package/dist/components/ui/custom/sidebar/sidebar-button.js +0 -7
  442. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.d.ts +0 -12
  443. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.d.ts.map +0 -1
  444. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.js +0 -5
  445. package/dist/components/ui/custom/sidebar/sidebar-item.d.ts +0 -9
  446. package/dist/components/ui/custom/sidebar/sidebar-item.d.ts.map +0 -1
  447. package/dist/components/ui/custom/sidebar/sidebar-item.js +0 -7
  448. package/dist/components/ui/custom/sidebar/sidebar-module-switcher.d.ts +0 -9
  449. package/dist/components/ui/custom/sidebar/sidebar-module-switcher.d.ts.map +0 -1
  450. package/dist/components/ui/custom/sidebar/sidebar-module-switcher.js +0 -20
  451. package/dist/components/ui/custom/sidebar/types/sidebar.d.ts +0 -29
  452. package/dist/components/ui/custom/sidebar/types/sidebar.d.ts.map +0 -1
  453. package/dist/components/ui/custom/sidebar/types/sidebar.js +0 -5
  454. package/dist/components/ui/custom/table/data-table-export.d.ts +0 -8
  455. package/dist/components/ui/custom/table/data-table-export.d.ts.map +0 -1
  456. package/dist/components/ui/custom/table/data-table-export.js +0 -65
  457. package/dist/components/ui/custom/table/data-table-footer.d.ts +0 -25
  458. package/dist/components/ui/custom/table/data-table-footer.d.ts.map +0 -1
  459. package/dist/components/ui/custom/table/data-table-footer.js +0 -39
  460. package/dist/components/ui/custom/table/data-table-header.d.ts +0 -9
  461. package/dist/components/ui/custom/table/data-table-header.d.ts.map +0 -1
  462. package/dist/components/ui/custom/table/data-table-header.js +0 -11
  463. package/dist/components/ui/custom/table/data-table-rows.d.ts +0 -13
  464. package/dist/components/ui/custom/table/data-table-rows.d.ts.map +0 -1
  465. package/dist/components/ui/custom/table/data-table-rows.js +0 -25
  466. package/dist/components/ui/custom/table/data-table.d.ts +0 -35
  467. package/dist/components/ui/custom/table/data-table.d.ts.map +0 -1
  468. package/dist/components/ui/custom/table/data-table.js +0 -99
  469. package/dist/components/ui/custom/table/types/data-table.d.ts +0 -29
  470. package/dist/components/ui/custom/table/types/data-table.d.ts.map +0 -1
  471. package/dist/components/ui/custom/table/types/data-table.js +0 -1
  472. package/dist/components/ui/custom/theme-provider.d.ts +0 -24
  473. package/dist/components/ui/custom/theme-provider.d.ts.map +0 -1
  474. package/dist/components/ui/custom/theme-provider.js +0 -79
  475. package/dist/components/ui/dateRangePicker.d.ts +0 -3
  476. package/dist/components/ui/dateRangePicker.d.ts.map +0 -1
  477. package/dist/components/ui/dateRangePicker.js +0 -15
  478. package/dist/components/ui/dialog.d.ts +0 -23
  479. package/dist/components/ui/dialog.d.ts.map +0 -1
  480. package/dist/components/ui/dialog.js +0 -23
  481. package/dist/components/ui/drawer.d.ts +0 -23
  482. package/dist/components/ui/drawer.d.ts.map +0 -1
  483. package/dist/components/ui/drawer.js +0 -22
  484. package/dist/components/ui/dropdown-menu.d.ts +0 -28
  485. package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
  486. package/dist/components/ui/dropdown-menu.js +0 -32
  487. package/dist/components/ui/form.d.ts +0 -24
  488. package/dist/components/ui/form.d.ts.map +0 -1
  489. package/dist/components/ui/form.js +0 -60
  490. package/dist/components/ui/hover-card.d.ts +0 -7
  491. package/dist/components/ui/hover-card.d.ts.map +0 -1
  492. package/dist/components/ui/hover-card.js +0 -9
  493. package/dist/components/ui/input.d.ts +0 -24
  494. package/dist/components/ui/input.d.ts.map +0 -1
  495. package/dist/components/ui/input.js +0 -71
  496. package/dist/components/ui/label.d.ts +0 -6
  497. package/dist/components/ui/label.d.ts.map +0 -1
  498. package/dist/components/ui/label.js +0 -9
  499. package/dist/components/ui/masks.d.ts +0 -17
  500. package/dist/components/ui/masks.d.ts.map +0 -1
  501. package/dist/components/ui/masks.js +0 -25
  502. package/dist/components/ui/pagination.d.ts +0 -30
  503. package/dist/components/ui/pagination.d.ts.map +0 -1
  504. package/dist/components/ui/pagination.js +0 -23
  505. package/dist/components/ui/popover.d.ts +0 -7
  506. package/dist/components/ui/popover.d.ts.map +0 -1
  507. package/dist/components/ui/popover.js +0 -11
  508. package/dist/components/ui/progress.d.ts +0 -5
  509. package/dist/components/ui/progress.d.ts.map +0 -1
  510. package/dist/components/ui/progress.js +0 -7
  511. package/dist/components/ui/radio-group.d.ts +0 -6
  512. package/dist/components/ui/radio-group.d.ts.map +0 -1
  513. package/dist/components/ui/radio-group.js +0 -14
  514. package/dist/components/ui/scroll-area.d.ts +0 -6
  515. package/dist/components/ui/scroll-area.d.ts.map +0 -1
  516. package/dist/components/ui/scroll-area.js +0 -11
  517. package/dist/components/ui/select.d.ts +0 -14
  518. package/dist/components/ui/select.d.ts.map +0 -1
  519. package/dist/components/ui/select.js +0 -24
  520. package/dist/components/ui/separator.d.ts +0 -5
  521. package/dist/components/ui/separator.d.ts.map +0 -1
  522. package/dist/components/ui/separator.js +0 -7
  523. package/dist/components/ui/sheet.d.ts +0 -26
  524. package/dist/components/ui/sheet.d.ts.map +0 -1
  525. package/dist/components/ui/sheet.js +0 -37
  526. package/dist/components/ui/sidebar.d.ts +0 -67
  527. package/dist/components/ui/sidebar.d.ts.map +0 -1
  528. package/dist/components/ui/sidebar.js +0 -221
  529. package/dist/components/ui/skeleton.d.ts +0 -3
  530. package/dist/components/ui/skeleton.d.ts.map +0 -1
  531. package/dist/components/ui/skeleton.js +0 -6
  532. package/dist/components/ui/slider.d.ts +0 -5
  533. package/dist/components/ui/slider.d.ts.map +0 -1
  534. package/dist/components/ui/slider.js +0 -7
  535. package/dist/components/ui/switch.d.ts +0 -5
  536. package/dist/components/ui/switch.d.ts.map +0 -1
  537. package/dist/components/ui/switch.js +0 -7
  538. package/dist/components/ui/table.d.ts +0 -11
  539. package/dist/components/ui/table.d.ts.map +0 -1
  540. package/dist/components/ui/table.js +0 -20
  541. package/dist/components/ui/tabs.d.ts +0 -8
  542. package/dist/components/ui/tabs.d.ts.map +0 -1
  543. package/dist/components/ui/tabs.js +0 -12
  544. package/dist/components/ui/textarea.d.ts +0 -4
  545. package/dist/components/ui/textarea.d.ts.map +0 -1
  546. package/dist/components/ui/textarea.js +0 -14
  547. package/dist/components/ui/toast.d.ts +0 -16
  548. package/dist/components/ui/toast.d.ts.map +0 -1
  549. package/dist/components/ui/toast.js +0 -34
  550. package/dist/components/ui/toaster.d.ts +0 -2
  551. package/dist/components/ui/toaster.d.ts.map +0 -1
  552. package/dist/components/ui/toaster.js +0 -21
  553. package/dist/components/ui/tooltip.d.ts +0 -8
  554. package/dist/components/ui/tooltip.d.ts.map +0 -1
  555. package/dist/components/ui/tooltip.js +0 -10
  556. package/dist/components/ui/use-calendar.d.ts +0 -7
  557. package/dist/components/ui/use-calendar.d.ts.map +0 -1
  558. package/dist/components/ui/use-calendar.js +0 -23
  559. package/dist/components/ui/use-toast.d.ts +0 -46
  560. package/dist/components/ui/use-toast.d.ts.map +0 -1
  561. package/dist/components/ui/use-toast.js +0 -125
  562. package/dist/components/use-calendar.d.ts +0 -7
  563. package/dist/components/use-calendar.d.ts.map +0 -1
  564. package/dist/components/use-calendar.js +0 -23
  565. package/dist/components/use-toast.d.ts +0 -46
  566. package/dist/components/use-toast.d.ts.map +0 -1
  567. package/dist/components/use-toast.js +0 -125
  568. package/dist/hooks/use-mobile.d.ts +0 -2
  569. package/dist/hooks/use-mobile.d.ts.map +0 -1
  570. package/dist/hooks/use-mobile.js +0 -15
  571. package/dist/index.d.ts.map +0 -1
  572. package/dist/lib/help/date-utils.d.ts +0 -7
  573. package/dist/lib/help/date-utils.d.ts.map +0 -1
  574. package/dist/lib/help/date-utils.js +0 -34
  575. package/dist/lib/help/format.d.ts +0 -22
  576. package/dist/lib/help/format.d.ts.map +0 -1
  577. package/dist/lib/help/format.js +0 -140
  578. package/dist/lib/help/theme.d.ts +0 -291
  579. package/dist/lib/help/theme.d.ts.map +0 -1
  580. package/dist/lib/help/theme.js +0 -340
  581. package/dist/lib/help/uuid.d.ts +0 -2
  582. package/dist/lib/help/uuid.d.ts.map +0 -1
  583. package/dist/lib/help/uuid.js +0 -4
  584. package/dist/lib/utils.d.ts +0 -3
  585. package/dist/lib/utils.d.ts.map +0 -1
  586. package/dist/lib/utils.js +0 -5
@@ -1,20 +0,0 @@
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 };
@@ -1,8 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/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"}
@@ -1,12 +0,0 @@
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 };
@@ -1,4 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../src/components/ui/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,QAAA,MAAM,QAAQ,+HAYZ,CAAC;AAGH,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -1,14 +0,0 @@
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 };
@@ -1,16 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../src/components/ui/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;AAG/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"}
@@ -1,34 +0,0 @@
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 };
@@ -1,2 +0,0 @@
1
- export declare function Toaster(): import("react/jsx-runtime").JSX.Element;
2
- //# sourceMappingURL=toaster.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toaster.d.ts","sourceRoot":"","sources":["../../../src/components/ui/toaster.tsx"],"names":[],"mappings":"AAIA,wBAAgB,OAAO,4CA4CtB"}
@@ -1,21 +0,0 @@
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
- }
@@ -1,8 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/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"}
@@ -1,10 +0,0 @@
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 };
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- interface CalendarFormProps extends React.HTMLAttributes<HTMLDivElement> {
3
- getDataFilter: (from: Date | null, to: Date | null) => void;
4
- }
5
- export default function UseCalendar({ className, getDataFilter }: CalendarFormProps): import("react/jsx-runtime").JSX.Element;
6
- export {};
7
- //# sourceMappingURL=use-calendar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-calendar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/use-calendar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACvE,aAAa,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,EAAE,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;CAC5D;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,EAAE,iBAAiB,2CA8ClF"}
@@ -1,23 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cn } from '@/lib/utils';
3
- import { Popover, PopoverClose, PopoverContent, PopoverTrigger } from '@radix-ui/react-popover';
4
- import { format } from 'date-fns';
5
- import { ptBR } from 'date-fns/locale';
6
- import { CalendarDays } from 'lucide-react';
7
- import React from 'react';
8
- import { Button } from './button';
9
- import { Calendar } from './calendar';
10
- export default function UseCalendar({ className, getDataFilter }) {
11
- const endDate = null;
12
- const startDate = null;
13
- const [date, setDate] = React.useState({
14
- from: startDate,
15
- to: endDate,
16
- });
17
- const submitDate = () => {
18
- if (date.from !== null && date.to !== null) {
19
- getDataFilter(date.from, date.to);
20
- }
21
- };
22
- return (_jsx("div", { className: cn('grid gap-2', className), children: _jsxs(Popover, { children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs(Button, { id: 'date', variant: 'outline', className: 'flex justify-center items-center px-4 py-2 cursor-pointer bg-primaryBack text-textFilter rounded-md', children: [_jsx(CalendarDays, { color: '#0F172A', size: 16, className: 'mr-4' }), date?.to ? (_jsxs(_Fragment, { children: [format(date.from, 'dd/MM', { locale: ptBR }), " - ", format(date.to, 'dd/MM', { locale: ptBR })] })) : (_jsx("span", { children: "Filtrar por Per\u00EDodo" }))] }) }), _jsxs(PopoverContent, { className: 'w-auto p-0 testeCalendar flex flex-col justify-center bg-white z-10 shadow-md text-black ', align: 'start', children: [_jsx(Calendar, { mode: 'range', locale: ptBR, selected: date, onSelect: setDate, className: ' ' }), _jsx(PopoverClose, { className: 'flex justify-center items-center p-4', children: _jsx(Button, { className: 'w-[150px] bg-background-primary mt-8 px-4 py-2 text-white', onClick: submitDate, children: "Aplicar Filtro" }) })] })] }) }));
23
- }
@@ -1,46 +0,0 @@
1
- import * as React from 'react';
2
- import type { ToastActionElement, ToastProps } from './toast';
3
- type ToasterToast = ToastProps & {
4
- id: string;
5
- title?: React.ReactNode;
6
- description?: React.ReactNode;
7
- action?: ToastActionElement;
8
- icon?: React.ReactNode;
9
- };
10
- declare const actionTypes: {
11
- readonly ADD_TOAST: "ADD_TOAST";
12
- readonly UPDATE_TOAST: "UPDATE_TOAST";
13
- readonly DISMISS_TOAST: "DISMISS_TOAST";
14
- readonly REMOVE_TOAST: "REMOVE_TOAST";
15
- };
16
- type ActionType = typeof actionTypes;
17
- type Action = {
18
- type: ActionType['ADD_TOAST'];
19
- toast: ToasterToast;
20
- } | {
21
- type: ActionType['UPDATE_TOAST'];
22
- toast: Partial<ToasterToast>;
23
- } | {
24
- type: ActionType['DISMISS_TOAST'];
25
- toastId?: ToasterToast['id'];
26
- } | {
27
- type: ActionType['REMOVE_TOAST'];
28
- toastId?: ToasterToast['id'];
29
- };
30
- interface State {
31
- toasts: ToasterToast[];
32
- }
33
- export declare const reducer: (state: State, action: Action) => State;
34
- type Toast = Omit<ToasterToast, 'id'>;
35
- declare function toast({ ...props }: Toast): {
36
- id: string;
37
- dismiss: () => void;
38
- update: (props: ToasterToast) => void;
39
- };
40
- declare function useToast(): {
41
- toast: typeof toast;
42
- dismiss: (toastId?: string) => void;
43
- toasts: ToasterToast[];
44
- };
45
- export { toast, useToast };
46
- //# sourceMappingURL=use-toast.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-toast.d.ts","sourceRoot":"","sources":["../../../src/components/ui/use-toast.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAK9D,KAAK,YAAY,GAAG,UAAU,GAAG;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACvB,CAAC;AAEF,QAAA,MAAM,WAAW;;;;;CAKP,CAAC;AASX,KAAK,UAAU,GAAG,OAAO,WAAW,CAAC;AAErC,KAAK,MAAM,GACR;IACA,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IAC9B,KAAK,EAAE,YAAY,CAAC;CACnB,GACD;IACA,IAAI,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC;IACjC,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;CAC5B,GACD;IACA,IAAI,EAAE,UAAU,CAAC,eAAe,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;CAC5B,GACD;IACA,IAAI,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;CAC5B,CAAC;AAEL,UAAU,KAAK;IACd,MAAM,EAAE,YAAY,EAAE,CAAC;CACvB;AAoBD,eAAO,MAAM,OAAO,GAAI,OAAO,KAAK,EAAE,QAAQ,MAAM,KAAG,KAiDtD,CAAC;AAaF,KAAK,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;AAEtC,iBAAS,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK;;;oBAGV,YAAY;EAwBnC;AAED,iBAAS,QAAQ;;wBAgBK,MAAM;YAlInB,YAAY,EAAE;EAoItB;AAED,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC"}
@@ -1,125 +0,0 @@
1
- // Inspired by react-hot-toast library
2
- import * as React from 'react';
3
- const TOAST_LIMIT = 1;
4
- const TOAST_REMOVE_DELAY = 1000000;
5
- const actionTypes = {
6
- ADD_TOAST: 'ADD_TOAST',
7
- UPDATE_TOAST: 'UPDATE_TOAST',
8
- DISMISS_TOAST: 'DISMISS_TOAST',
9
- REMOVE_TOAST: 'REMOVE_TOAST',
10
- };
11
- let count = 0;
12
- function genId() {
13
- count = (count + 1) % Number.MAX_SAFE_INTEGER;
14
- return count.toString();
15
- }
16
- const toastTimeouts = new Map();
17
- const addToRemoveQueue = (toastId) => {
18
- if (toastTimeouts.has(toastId)) {
19
- return;
20
- }
21
- const timeout = setTimeout(() => {
22
- toastTimeouts.delete(toastId);
23
- dispatch({
24
- type: 'REMOVE_TOAST',
25
- toastId: toastId,
26
- });
27
- }, TOAST_REMOVE_DELAY);
28
- toastTimeouts.set(toastId, timeout);
29
- };
30
- export const reducer = (state, action) => {
31
- switch (action.type) {
32
- case 'ADD_TOAST':
33
- return {
34
- ...state,
35
- toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),
36
- };
37
- case 'UPDATE_TOAST':
38
- return {
39
- ...state,
40
- toasts: state.toasts.map((t) => (t.id === action.toast.id ? { ...t, ...action.toast } : t)),
41
- };
42
- case 'DISMISS_TOAST': {
43
- const { toastId } = action;
44
- if (toastId) {
45
- addToRemoveQueue(toastId);
46
- }
47
- else {
48
- for (const toast of state.toasts) {
49
- addToRemoveQueue(toast.id);
50
- }
51
- }
52
- return {
53
- ...state,
54
- toasts: state.toasts.map((t) => t.id === toastId || toastId === undefined
55
- ? {
56
- ...t,
57
- open: false,
58
- }
59
- : t),
60
- };
61
- }
62
- case 'REMOVE_TOAST':
63
- if (action.toastId === undefined) {
64
- return {
65
- ...state,
66
- toasts: [],
67
- };
68
- }
69
- return {
70
- ...state,
71
- toasts: state.toasts.filter((t) => t.id !== action.toastId),
72
- };
73
- }
74
- };
75
- const listeners = [];
76
- let memoryState = { toasts: [] };
77
- function dispatch(action) {
78
- memoryState = reducer(memoryState, action);
79
- for (const listener of listeners) {
80
- listener(memoryState);
81
- }
82
- }
83
- function toast({ ...props }) {
84
- const id = genId();
85
- const update = (props) => dispatch({
86
- type: 'UPDATE_TOAST',
87
- toast: { ...props, id },
88
- });
89
- const dismiss = () => dispatch({ type: 'DISMISS_TOAST', toastId: id });
90
- dispatch({
91
- type: 'ADD_TOAST',
92
- toast: {
93
- ...props,
94
- id,
95
- open: true,
96
- onOpenChange: (open) => {
97
- if (!open)
98
- dismiss();
99
- },
100
- },
101
- });
102
- return {
103
- id: id,
104
- dismiss,
105
- update,
106
- };
107
- }
108
- function useToast() {
109
- const [state, setState] = React.useState(memoryState);
110
- React.useEffect(() => {
111
- listeners.push(setState);
112
- return () => {
113
- const index = listeners.indexOf(setState);
114
- if (index > -1) {
115
- listeners.splice(index, 1);
116
- }
117
- };
118
- }, [state]);
119
- return {
120
- ...state,
121
- toast,
122
- dismiss: (toastId) => dispatch({ type: 'DISMISS_TOAST', toastId }),
123
- };
124
- }
125
- export { toast, useToast };
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- interface CalendarFormProps extends React.HTMLAttributes<HTMLDivElement> {
3
- getDataFilter: (from: Date | null, to: Date | null) => void;
4
- }
5
- export default function UseCalendar({ className, getDataFilter }: CalendarFormProps): import("react/jsx-runtime").JSX.Element;
6
- export {};
7
- //# sourceMappingURL=use-calendar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-calendar.d.ts","sourceRoot":"","sources":["../../src/components/use-calendar.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACvE,aAAa,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,EAAE,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;CAC5D;AAED,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,EAAE,iBAAiB,2CA8ClF"}
@@ -1,23 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cn } from '@/lib/utils';
3
- import { Popover, PopoverClose, PopoverContent, PopoverTrigger } from '@radix-ui/react-popover';
4
- import { format } from 'date-fns';
5
- import { ptBR } from 'date-fns/locale';
6
- import { CalendarDays } from 'lucide-react';
7
- import React from 'react';
8
- import { Button } from './button';
9
- import { Calendar } from './calendar';
10
- export default function UseCalendar({ className, getDataFilter }) {
11
- const endDate = null;
12
- const startDate = null;
13
- const [date, setDate] = React.useState({
14
- from: startDate,
15
- to: endDate,
16
- });
17
- const submitDate = () => {
18
- if (date.from !== null && date.to !== null) {
19
- getDataFilter(date.from, date.to);
20
- }
21
- };
22
- return (_jsx("div", { className: cn('grid gap-2', className), children: _jsxs(Popover, { children: [_jsx(PopoverTrigger, { asChild: true, children: _jsxs(Button, { id: 'date', variant: 'outline', className: 'flex justify-center items-center px-4 py-2 cursor-pointer bg-primaryBack text-textFilter rounded-md', children: [_jsx(CalendarDays, { color: '#0F172A', size: 16, className: 'mr-4' }), date?.to ? (_jsxs(_Fragment, { children: [format(date.from, 'dd/MM', { locale: ptBR }), " - ", format(date.to, 'dd/MM', { locale: ptBR })] })) : (_jsx("span", { children: "Filtrar por Per\u00EDodo" }))] }) }), _jsxs(PopoverContent, { className: 'w-auto p-0 testeCalendar flex flex-col justify-center bg-white z-10 shadow-md text-black ', align: 'start', children: [_jsx(Calendar, { mode: 'range', locale: ptBR, selected: date, onSelect: setDate, className: ' ' }), _jsx(PopoverClose, { className: 'flex justify-center items-center p-4', children: _jsx(Button, { className: 'w-[150px] bg-background-primary mt-8 px-4 py-2 text-white', onClick: submitDate, children: "Aplicar Filtro" }) })] })] }) }));
23
- }
@@ -1,46 +0,0 @@
1
- import * as React from 'react';
2
- import type { ToastActionElement, ToastProps } from './toast';
3
- type ToasterToast = ToastProps & {
4
- id: string;
5
- title?: React.ReactNode;
6
- description?: React.ReactNode;
7
- action?: ToastActionElement;
8
- icon?: React.ReactNode;
9
- };
10
- declare const actionTypes: {
11
- readonly ADD_TOAST: "ADD_TOAST";
12
- readonly UPDATE_TOAST: "UPDATE_TOAST";
13
- readonly DISMISS_TOAST: "DISMISS_TOAST";
14
- readonly REMOVE_TOAST: "REMOVE_TOAST";
15
- };
16
- type ActionType = typeof actionTypes;
17
- type Action = {
18
- type: ActionType['ADD_TOAST'];
19
- toast: ToasterToast;
20
- } | {
21
- type: ActionType['UPDATE_TOAST'];
22
- toast: Partial<ToasterToast>;
23
- } | {
24
- type: ActionType['DISMISS_TOAST'];
25
- toastId?: ToasterToast['id'];
26
- } | {
27
- type: ActionType['REMOVE_TOAST'];
28
- toastId?: ToasterToast['id'];
29
- };
30
- interface State {
31
- toasts: ToasterToast[];
32
- }
33
- export declare const reducer: (state: State, action: Action) => State;
34
- type Toast = Omit<ToasterToast, 'id'>;
35
- declare function toast({ ...props }: Toast): {
36
- id: string;
37
- dismiss: () => void;
38
- update: (props: ToasterToast) => void;
39
- };
40
- declare function useToast(): {
41
- toast: typeof toast;
42
- dismiss: (toastId?: string) => void;
43
- toasts: ToasterToast[];
44
- };
45
- export { toast, useToast };
46
- //# sourceMappingURL=use-toast.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-toast.d.ts","sourceRoot":"","sources":["../../src/components/use-toast.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAK9D,KAAK,YAAY,GAAG,UAAU,GAAG;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACvB,CAAC;AAEF,QAAA,MAAM,WAAW;;;;;CAKP,CAAC;AASX,KAAK,UAAU,GAAG,OAAO,WAAW,CAAC;AAErC,KAAK,MAAM,GACR;IACA,IAAI,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IAC9B,KAAK,EAAE,YAAY,CAAC;CACnB,GACD;IACA,IAAI,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC;IACjC,KAAK,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;CAC5B,GACD;IACA,IAAI,EAAE,UAAU,CAAC,eAAe,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;CAC5B,GACD;IACA,IAAI,EAAE,UAAU,CAAC,cAAc,CAAC,CAAC;IACjC,OAAO,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;CAC5B,CAAC;AAEL,UAAU,KAAK;IACd,MAAM,EAAE,YAAY,EAAE,CAAC;CACvB;AAoBD,eAAO,MAAM,OAAO,GAAI,OAAO,KAAK,EAAE,QAAQ,MAAM,KAAG,KAiDtD,CAAC;AAaF,KAAK,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;AAEtC,iBAAS,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK;;;oBAGV,YAAY;EAwBnC;AAED,iBAAS,QAAQ;;wBAgBK,MAAM;YAlInB,YAAY,EAAE;EAoItB;AAED,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC"}
@@ -1,125 +0,0 @@
1
- // Inspired by react-hot-toast library
2
- import * as React from 'react';
3
- const TOAST_LIMIT = 1;
4
- const TOAST_REMOVE_DELAY = 1000000;
5
- const actionTypes = {
6
- ADD_TOAST: 'ADD_TOAST',
7
- UPDATE_TOAST: 'UPDATE_TOAST',
8
- DISMISS_TOAST: 'DISMISS_TOAST',
9
- REMOVE_TOAST: 'REMOVE_TOAST',
10
- };
11
- let count = 0;
12
- function genId() {
13
- count = (count + 1) % Number.MAX_SAFE_INTEGER;
14
- return count.toString();
15
- }
16
- const toastTimeouts = new Map();
17
- const addToRemoveQueue = (toastId) => {
18
- if (toastTimeouts.has(toastId)) {
19
- return;
20
- }
21
- const timeout = setTimeout(() => {
22
- toastTimeouts.delete(toastId);
23
- dispatch({
24
- type: 'REMOVE_TOAST',
25
- toastId: toastId,
26
- });
27
- }, TOAST_REMOVE_DELAY);
28
- toastTimeouts.set(toastId, timeout);
29
- };
30
- export const reducer = (state, action) => {
31
- switch (action.type) {
32
- case 'ADD_TOAST':
33
- return {
34
- ...state,
35
- toasts: [action.toast, ...state.toasts].slice(0, TOAST_LIMIT),
36
- };
37
- case 'UPDATE_TOAST':
38
- return {
39
- ...state,
40
- toasts: state.toasts.map((t) => (t.id === action.toast.id ? { ...t, ...action.toast } : t)),
41
- };
42
- case 'DISMISS_TOAST': {
43
- const { toastId } = action;
44
- if (toastId) {
45
- addToRemoveQueue(toastId);
46
- }
47
- else {
48
- for (const toast of state.toasts) {
49
- addToRemoveQueue(toast.id);
50
- }
51
- }
52
- return {
53
- ...state,
54
- toasts: state.toasts.map((t) => t.id === toastId || toastId === undefined
55
- ? {
56
- ...t,
57
- open: false,
58
- }
59
- : t),
60
- };
61
- }
62
- case 'REMOVE_TOAST':
63
- if (action.toastId === undefined) {
64
- return {
65
- ...state,
66
- toasts: [],
67
- };
68
- }
69
- return {
70
- ...state,
71
- toasts: state.toasts.filter((t) => t.id !== action.toastId),
72
- };
73
- }
74
- };
75
- const listeners = [];
76
- let memoryState = { toasts: [] };
77
- function dispatch(action) {
78
- memoryState = reducer(memoryState, action);
79
- for (const listener of listeners) {
80
- listener(memoryState);
81
- }
82
- }
83
- function toast({ ...props }) {
84
- const id = genId();
85
- const update = (props) => dispatch({
86
- type: 'UPDATE_TOAST',
87
- toast: { ...props, id },
88
- });
89
- const dismiss = () => dispatch({ type: 'DISMISS_TOAST', toastId: id });
90
- dispatch({
91
- type: 'ADD_TOAST',
92
- toast: {
93
- ...props,
94
- id,
95
- open: true,
96
- onOpenChange: (open) => {
97
- if (!open)
98
- dismiss();
99
- },
100
- },
101
- });
102
- return {
103
- id: id,
104
- dismiss,
105
- update,
106
- };
107
- }
108
- function useToast() {
109
- const [state, setState] = React.useState(memoryState);
110
- React.useEffect(() => {
111
- listeners.push(setState);
112
- return () => {
113
- const index = listeners.indexOf(setState);
114
- if (index > -1) {
115
- listeners.splice(index, 1);
116
- }
117
- };
118
- }, [state]);
119
- return {
120
- ...state,
121
- toast,
122
- dismiss: (toastId) => dispatch({ type: 'DISMISS_TOAST', toastId }),
123
- };
124
- }
125
- export { toast, useToast };
@@ -1,2 +0,0 @@
1
- export declare function useIsMobile(): boolean;
2
- //# sourceMappingURL=use-mobile.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"use-mobile.d.ts","sourceRoot":"","sources":["../../src/hooks/use-mobile.tsx"],"names":[],"mappings":"AAIA,wBAAgB,WAAW,YAc1B"}