eai-frontend-components 2.0.7 → 2.0.8

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 (582) hide show
  1. package/dist/index.d.ts +24 -73
  2. package/package.json +1 -1
  3. package/dist/components/accordion.d.ts +0 -8
  4. package/dist/components/accordion.d.ts.map +0 -1
  5. package/dist/components/accordion.js +0 -13
  6. package/dist/components/alert-dialog.d.ts +0 -25
  7. package/dist/components/alert-dialog.d.ts.map +0 -1
  8. package/dist/components/alert-dialog.js +0 -27
  9. package/dist/components/alert.d.ts +0 -9
  10. package/dist/components/alert.d.ts.map +0 -1
  11. package/dist/components/alert.js +0 -22
  12. package/dist/components/avatar.d.ts +0 -7
  13. package/dist/components/avatar.d.ts.map +0 -1
  14. package/dist/components/avatar.js +0 -11
  15. package/dist/components/badge.d.ts +0 -10
  16. package/dist/components/badge.d.ts.map +0 -1
  17. package/dist/components/badge.js +0 -26
  18. package/dist/components/breadcrumb.d.ts +0 -20
  19. package/dist/components/breadcrumb.d.ts.map +0 -1
  20. package/dist/components/breadcrumb.js +0 -23
  21. package/dist/components/button.d.ts +0 -12
  22. package/dist/components/button.d.ts.map +0 -1
  23. package/dist/components/button.js +0 -33
  24. package/dist/components/calendar.d.ts +0 -9
  25. package/dist/components/calendar.d.ts.map +0 -1
  26. package/dist/components/calendar.js +0 -70
  27. package/dist/components/card.d.ts +0 -9
  28. package/dist/components/card.d.ts.map +0 -1
  29. package/dist/components/card.js +0 -16
  30. package/dist/components/carousel.d.ts +0 -19
  31. package/dist/components/carousel.d.ts.map +0 -1
  32. package/dist/components/carousel.js +0 -98
  33. package/dist/components/chart.d.ts +0 -63
  34. package/dist/components/chart.d.ts.map +0 -1
  35. package/dist/components/chart.js +0 -130
  36. package/dist/components/checkbox.d.ts +0 -5
  37. package/dist/components/checkbox.d.ts.map +0 -1
  38. package/dist/components/checkbox.js +0 -8
  39. package/dist/components/collapsible.d.ts +0 -6
  40. package/dist/components/collapsible.d.ts.map +0 -1
  41. package/dist/components/collapsible.js +0 -5
  42. package/dist/components/command.d.ts +0 -81
  43. package/dist/components/command.d.ts.map +0 -1
  44. package/dist/components/command.js +0 -28
  45. package/dist/components/context-menu.d.ts +0 -28
  46. package/dist/components/context-menu.d.ts.map +0 -1
  47. package/dist/components/context-menu.js +0 -33
  48. package/dist/components/custom/date-picker.d.ts +0 -12
  49. package/dist/components/custom/date-picker.d.ts.map +0 -1
  50. package/dist/components/custom/date-picker.js +0 -35
  51. package/dist/components/custom/form/checkbox.d.ts +0 -13
  52. package/dist/components/custom/form/checkbox.d.ts.map +0 -1
  53. package/dist/components/custom/form/checkbox.js +0 -15
  54. package/dist/components/custom/form/color.d.ts +0 -15
  55. package/dist/components/custom/form/color.d.ts.map +0 -1
  56. package/dist/components/custom/form/color.js +0 -40
  57. package/dist/components/custom/form/combobox.d.ts +0 -37
  58. package/dist/components/custom/form/combobox.d.ts.map +0 -1
  59. package/dist/components/custom/form/combobox.js +0 -82
  60. package/dist/components/custom/form/cpf-cnpj.d.ts +0 -16
  61. package/dist/components/custom/form/cpf-cnpj.d.ts.map +0 -1
  62. package/dist/components/custom/form/cpf-cnpj.js +0 -32
  63. package/dist/components/custom/form/currency.d.ts +0 -14
  64. package/dist/components/custom/form/currency.d.ts.map +0 -1
  65. package/dist/components/custom/form/currency.js +0 -15
  66. package/dist/components/custom/form/date-range.d.ts +0 -16
  67. package/dist/components/custom/form/date-range.d.ts.map +0 -1
  68. package/dist/components/custom/form/date-range.js +0 -24
  69. package/dist/components/custom/form/date.d.ts +0 -16
  70. package/dist/components/custom/form/date.d.ts.map +0 -1
  71. package/dist/components/custom/form/date.js +0 -35
  72. package/dist/components/custom/form/decimal.d.ts +0 -14
  73. package/dist/components/custom/form/decimal.d.ts.map +0 -1
  74. package/dist/components/custom/form/decimal.js +0 -15
  75. package/dist/components/custom/form/file.d.ts +0 -15
  76. package/dist/components/custom/form/file.d.ts.map +0 -1
  77. package/dist/components/custom/form/file.js +0 -18
  78. package/dist/components/custom/form/form-help-text.d.ts +0 -3
  79. package/dist/components/custom/form/form-help-text.d.ts.map +0 -1
  80. package/dist/components/custom/form/form-help-text.js +0 -7
  81. package/dist/components/custom/form/form-label.d.ts +0 -4
  82. package/dist/components/custom/form/form-label.d.ts.map +0 -1
  83. package/dist/components/custom/form/form-label.js +0 -9
  84. package/dist/components/custom/form/form-message.d.ts +0 -3
  85. package/dist/components/custom/form/form-message.d.ts.map +0 -1
  86. package/dist/components/custom/form/form-message.js +0 -5
  87. package/dist/components/custom/form/ghost.d.ts +0 -8
  88. package/dist/components/custom/form/ghost.d.ts.map +0 -1
  89. package/dist/components/custom/form/ghost.js +0 -8
  90. package/dist/components/custom/form/input.d.ts +0 -18
  91. package/dist/components/custom/form/input.d.ts.map +0 -1
  92. package/dist/components/custom/form/input.js +0 -14
  93. package/dist/components/custom/form/mask.d.ts +0 -19
  94. package/dist/components/custom/form/mask.d.ts.map +0 -1
  95. package/dist/components/custom/form/mask.js +0 -19
  96. package/dist/components/custom/form/multi-select-old.d.ts +0 -19
  97. package/dist/components/custom/form/multi-select-old.d.ts.map +0 -1
  98. package/dist/components/custom/form/multi-select-old.js +0 -30
  99. package/dist/components/custom/form/multi-select.d.ts +0 -26
  100. package/dist/components/custom/form/multi-select.d.ts.map +0 -1
  101. package/dist/components/custom/form/multi-select.js +0 -66
  102. package/dist/components/custom/form/password.d.ts +0 -16
  103. package/dist/components/custom/form/password.d.ts.map +0 -1
  104. package/dist/components/custom/form/password.js +0 -14
  105. package/dist/components/custom/form/percent.d.ts +0 -14
  106. package/dist/components/custom/form/percent.d.ts.map +0 -1
  107. package/dist/components/custom/form/percent.js +0 -15
  108. package/dist/components/custom/form/phone.d.ts +0 -16
  109. package/dist/components/custom/form/phone.d.ts.map +0 -1
  110. package/dist/components/custom/form/phone.js +0 -23
  111. package/dist/components/custom/form/radio-group.d.ts +0 -23
  112. package/dist/components/custom/form/radio-group.d.ts.map +0 -1
  113. package/dist/components/custom/form/radio-group.js +0 -15
  114. package/dist/components/custom/form/select.d.ts +0 -20
  115. package/dist/components/custom/form/select.d.ts.map +0 -1
  116. package/dist/components/custom/form/select.js +0 -12
  117. package/dist/components/custom/form/step-new-form.d.ts +0 -10
  118. package/dist/components/custom/form/step-new-form.d.ts.map +0 -1
  119. package/dist/components/custom/form/step-new-form.js +0 -13
  120. package/dist/components/custom/form/switch.d.ts +0 -13
  121. package/dist/components/custom/form/switch.d.ts.map +0 -1
  122. package/dist/components/custom/form/switch.js +0 -16
  123. package/dist/components/custom/form/text.d.ts +0 -18
  124. package/dist/components/custom/form/text.d.ts.map +0 -1
  125. package/dist/components/custom/form/text.js +0 -14
  126. package/dist/components/custom/form/textarea.d.ts +0 -16
  127. package/dist/components/custom/form/textarea.d.ts.map +0 -1
  128. package/dist/components/custom/form/textarea.js +0 -19
  129. package/dist/components/custom/form/utils.d.ts +0 -18
  130. package/dist/components/custom/form/utils.d.ts.map +0 -1
  131. package/dist/components/custom/form/utils.js +0 -88
  132. package/dist/components/custom/header.d.ts +0 -3
  133. package/dist/components/custom/header.d.ts.map +0 -1
  134. package/dist/components/custom/header.js +0 -94
  135. package/dist/components/custom/label.d.ts +0 -13
  136. package/dist/components/custom/label.d.ts.map +0 -1
  137. package/dist/components/custom/label.js +0 -20
  138. package/dist/components/custom/not-found.d.ts +0 -3
  139. package/dist/components/custom/not-found.d.ts.map +0 -1
  140. package/dist/components/custom/not-found.js +0 -9
  141. package/dist/components/custom/sidebar/app-sidebar.d.ts +0 -5
  142. package/dist/components/custom/sidebar/app-sidebar.d.ts.map +0 -1
  143. package/dist/components/custom/sidebar/app-sidebar.js +0 -26
  144. package/dist/components/custom/sidebar/module-switcher.d.ts +0 -3
  145. package/dist/components/custom/sidebar/module-switcher.d.ts.map +0 -1
  146. package/dist/components/custom/sidebar/module-switcher.js +0 -55
  147. package/dist/components/custom/sidebar/nav-footer.d.ts +0 -3
  148. package/dist/components/custom/sidebar/nav-footer.d.ts.map +0 -1
  149. package/dist/components/custom/sidebar/nav-footer.js +0 -17
  150. package/dist/components/custom/sidebar/nav-main.d.ts +0 -3
  151. package/dist/components/custom/sidebar/nav-main.d.ts.map +0 -1
  152. package/dist/components/custom/sidebar/nav-main.js +0 -32
  153. package/dist/components/custom/sidebar/nav-submenu-collapsible.d.ts +0 -9
  154. package/dist/components/custom/sidebar/nav-submenu-collapsible.d.ts.map +0 -1
  155. package/dist/components/custom/sidebar/nav-submenu-collapsible.js +0 -21
  156. package/dist/components/custom/sidebar/nav-submenu-dropdown.d.ts +0 -10
  157. package/dist/components/custom/sidebar/nav-submenu-dropdown.d.ts.map +0 -1
  158. package/dist/components/custom/sidebar/nav-submenu-dropdown.js +0 -13
  159. package/dist/components/custom/sidebar/nav-user.d.ts +0 -3
  160. package/dist/components/custom/sidebar/nav-user.d.ts.map +0 -1
  161. package/dist/components/custom/sidebar/nav-user.js +0 -51
  162. package/dist/components/custom/sidebar/sidebar-button.d.ts +0 -9
  163. package/dist/components/custom/sidebar/sidebar-button.d.ts.map +0 -1
  164. package/dist/components/custom/sidebar/sidebar-button.js +0 -7
  165. package/dist/components/custom/sidebar/sidebar-item-two-lines.d.ts +0 -12
  166. package/dist/components/custom/sidebar/sidebar-item-two-lines.d.ts.map +0 -1
  167. package/dist/components/custom/sidebar/sidebar-item-two-lines.js +0 -5
  168. package/dist/components/custom/sidebar/sidebar-item.d.ts +0 -9
  169. package/dist/components/custom/sidebar/sidebar-item.d.ts.map +0 -1
  170. package/dist/components/custom/sidebar/sidebar-item.js +0 -7
  171. package/dist/components/custom/sidebar/types/sidebar.d.ts +0 -29
  172. package/dist/components/custom/sidebar/types/sidebar.d.ts.map +0 -1
  173. package/dist/components/custom/sidebar/types/sidebar.js +0 -5
  174. package/dist/components/custom/table/data-table-export.d.ts +0 -8
  175. package/dist/components/custom/table/data-table-export.d.ts.map +0 -1
  176. package/dist/components/custom/table/data-table-export.js +0 -65
  177. package/dist/components/custom/table/data-table-footer.d.ts +0 -25
  178. package/dist/components/custom/table/data-table-footer.d.ts.map +0 -1
  179. package/dist/components/custom/table/data-table-footer.js +0 -39
  180. package/dist/components/custom/table/data-table-header.d.ts +0 -9
  181. package/dist/components/custom/table/data-table-header.d.ts.map +0 -1
  182. package/dist/components/custom/table/data-table-header.js +0 -11
  183. package/dist/components/custom/table/data-table-rows.d.ts +0 -13
  184. package/dist/components/custom/table/data-table-rows.d.ts.map +0 -1
  185. package/dist/components/custom/table/data-table-rows.js +0 -25
  186. package/dist/components/custom/table/data-table.d.ts +0 -35
  187. package/dist/components/custom/table/data-table.d.ts.map +0 -1
  188. package/dist/components/custom/table/data-table.js +0 -99
  189. package/dist/components/custom/table/types/data-table.d.ts +0 -29
  190. package/dist/components/custom/table/types/data-table.d.ts.map +0 -1
  191. package/dist/components/custom/table/types/data-table.js +0 -1
  192. package/dist/components/custom/theme-provider.d.ts +0 -24
  193. package/dist/components/custom/theme-provider.d.ts.map +0 -1
  194. package/dist/components/custom/theme-provider.js +0 -79
  195. package/dist/components/dateRangePicker.d.ts +0 -3
  196. package/dist/components/dateRangePicker.d.ts.map +0 -1
  197. package/dist/components/dateRangePicker.js +0 -15
  198. package/dist/components/dialog.d.ts +0 -23
  199. package/dist/components/dialog.d.ts.map +0 -1
  200. package/dist/components/dialog.js +0 -23
  201. package/dist/components/drawer.d.ts +0 -23
  202. package/dist/components/drawer.d.ts.map +0 -1
  203. package/dist/components/drawer.js +0 -22
  204. package/dist/components/dropdown-menu.d.ts +0 -28
  205. package/dist/components/dropdown-menu.d.ts.map +0 -1
  206. package/dist/components/dropdown-menu.js +0 -32
  207. package/dist/components/form.d.ts +0 -24
  208. package/dist/components/form.d.ts.map +0 -1
  209. package/dist/components/form.js +0 -60
  210. package/dist/components/hover-card.d.ts +0 -7
  211. package/dist/components/hover-card.d.ts.map +0 -1
  212. package/dist/components/hover-card.js +0 -9
  213. package/dist/components/input.d.ts +0 -24
  214. package/dist/components/input.d.ts.map +0 -1
  215. package/dist/components/input.js +0 -71
  216. package/dist/components/label.d.ts +0 -6
  217. package/dist/components/label.d.ts.map +0 -1
  218. package/dist/components/label.js +0 -9
  219. package/dist/components/masks.d.ts +0 -17
  220. package/dist/components/masks.d.ts.map +0 -1
  221. package/dist/components/masks.js +0 -25
  222. package/dist/components/pagination.d.ts +0 -30
  223. package/dist/components/pagination.d.ts.map +0 -1
  224. package/dist/components/pagination.js +0 -23
  225. package/dist/components/popover.d.ts +0 -7
  226. package/dist/components/popover.d.ts.map +0 -1
  227. package/dist/components/popover.js +0 -11
  228. package/dist/components/progress.d.ts +0 -5
  229. package/dist/components/progress.d.ts.map +0 -1
  230. package/dist/components/progress.js +0 -7
  231. package/dist/components/radio-group.d.ts +0 -6
  232. package/dist/components/radio-group.d.ts.map +0 -1
  233. package/dist/components/radio-group.js +0 -14
  234. package/dist/components/scroll-area.d.ts +0 -6
  235. package/dist/components/scroll-area.d.ts.map +0 -1
  236. package/dist/components/scroll-area.js +0 -11
  237. package/dist/components/select.d.ts +0 -14
  238. package/dist/components/select.d.ts.map +0 -1
  239. package/dist/components/select.js +0 -24
  240. package/dist/components/separator.d.ts +0 -5
  241. package/dist/components/separator.d.ts.map +0 -1
  242. package/dist/components/separator.js +0 -7
  243. package/dist/components/sheet.d.ts +0 -26
  244. package/dist/components/sheet.d.ts.map +0 -1
  245. package/dist/components/sheet.js +0 -37
  246. package/dist/components/sidebar.d.ts +0 -67
  247. package/dist/components/sidebar.d.ts.map +0 -1
  248. package/dist/components/sidebar.js +0 -221
  249. package/dist/components/skeleton.d.ts +0 -3
  250. package/dist/components/skeleton.d.ts.map +0 -1
  251. package/dist/components/skeleton.js +0 -6
  252. package/dist/components/slider.d.ts +0 -5
  253. package/dist/components/slider.d.ts.map +0 -1
  254. package/dist/components/slider.js +0 -7
  255. package/dist/components/switch.d.ts +0 -5
  256. package/dist/components/switch.d.ts.map +0 -1
  257. package/dist/components/switch.js +0 -7
  258. package/dist/components/table.d.ts +0 -11
  259. package/dist/components/table.d.ts.map +0 -1
  260. package/dist/components/table.js +0 -20
  261. package/dist/components/tabs.d.ts +0 -8
  262. package/dist/components/tabs.d.ts.map +0 -1
  263. package/dist/components/tabs.js +0 -12
  264. package/dist/components/textarea.d.ts +0 -4
  265. package/dist/components/textarea.d.ts.map +0 -1
  266. package/dist/components/textarea.js +0 -14
  267. package/dist/components/toast.d.ts +0 -16
  268. package/dist/components/toast.d.ts.map +0 -1
  269. package/dist/components/toast.js +0 -34
  270. package/dist/components/toaster.d.ts +0 -2
  271. package/dist/components/toaster.d.ts.map +0 -1
  272. package/dist/components/toaster.js +0 -21
  273. package/dist/components/tooltip.d.ts +0 -8
  274. package/dist/components/tooltip.d.ts.map +0 -1
  275. package/dist/components/tooltip.js +0 -10
  276. package/dist/components/ui/accordion.d.ts +0 -8
  277. package/dist/components/ui/accordion.d.ts.map +0 -1
  278. package/dist/components/ui/accordion.js +0 -13
  279. package/dist/components/ui/alert-dialog.d.ts +0 -25
  280. package/dist/components/ui/alert-dialog.d.ts.map +0 -1
  281. package/dist/components/ui/alert-dialog.js +0 -27
  282. package/dist/components/ui/alert.d.ts +0 -9
  283. package/dist/components/ui/alert.d.ts.map +0 -1
  284. package/dist/components/ui/alert.js +0 -22
  285. package/dist/components/ui/avatar.d.ts +0 -7
  286. package/dist/components/ui/avatar.d.ts.map +0 -1
  287. package/dist/components/ui/avatar.js +0 -11
  288. package/dist/components/ui/badge.d.ts +0 -10
  289. package/dist/components/ui/badge.d.ts.map +0 -1
  290. package/dist/components/ui/badge.js +0 -26
  291. package/dist/components/ui/breadcrumb.d.ts +0 -20
  292. package/dist/components/ui/breadcrumb.d.ts.map +0 -1
  293. package/dist/components/ui/breadcrumb.js +0 -23
  294. package/dist/components/ui/button.d.ts +0 -12
  295. package/dist/components/ui/button.d.ts.map +0 -1
  296. package/dist/components/ui/button.js +0 -33
  297. package/dist/components/ui/calendar.d.ts +0 -9
  298. package/dist/components/ui/calendar.d.ts.map +0 -1
  299. package/dist/components/ui/calendar.js +0 -70
  300. package/dist/components/ui/card.d.ts +0 -9
  301. package/dist/components/ui/card.d.ts.map +0 -1
  302. package/dist/components/ui/card.js +0 -16
  303. package/dist/components/ui/carousel.d.ts +0 -19
  304. package/dist/components/ui/carousel.d.ts.map +0 -1
  305. package/dist/components/ui/carousel.js +0 -98
  306. package/dist/components/ui/chart.d.ts +0 -63
  307. package/dist/components/ui/chart.d.ts.map +0 -1
  308. package/dist/components/ui/chart.js +0 -130
  309. package/dist/components/ui/checkbox.d.ts +0 -5
  310. package/dist/components/ui/checkbox.d.ts.map +0 -1
  311. package/dist/components/ui/checkbox.js +0 -8
  312. package/dist/components/ui/collapsible.d.ts +0 -6
  313. package/dist/components/ui/collapsible.d.ts.map +0 -1
  314. package/dist/components/ui/collapsible.js +0 -5
  315. package/dist/components/ui/command.d.ts +0 -81
  316. package/dist/components/ui/command.d.ts.map +0 -1
  317. package/dist/components/ui/command.js +0 -28
  318. package/dist/components/ui/context-menu.d.ts +0 -28
  319. package/dist/components/ui/context-menu.d.ts.map +0 -1
  320. package/dist/components/ui/context-menu.js +0 -33
  321. package/dist/components/ui/custom/date-picker.d.ts +0 -12
  322. package/dist/components/ui/custom/date-picker.d.ts.map +0 -1
  323. package/dist/components/ui/custom/date-picker.js +0 -35
  324. package/dist/components/ui/custom/form/checkbox.d.ts +0 -13
  325. package/dist/components/ui/custom/form/checkbox.d.ts.map +0 -1
  326. package/dist/components/ui/custom/form/checkbox.js +0 -15
  327. package/dist/components/ui/custom/form/color.d.ts +0 -15
  328. package/dist/components/ui/custom/form/color.d.ts.map +0 -1
  329. package/dist/components/ui/custom/form/color.js +0 -40
  330. package/dist/components/ui/custom/form/combobox.d.ts +0 -37
  331. package/dist/components/ui/custom/form/combobox.d.ts.map +0 -1
  332. package/dist/components/ui/custom/form/combobox.js +0 -82
  333. package/dist/components/ui/custom/form/cpf-cnpj.d.ts +0 -16
  334. package/dist/components/ui/custom/form/cpf-cnpj.d.ts.map +0 -1
  335. package/dist/components/ui/custom/form/cpf-cnpj.js +0 -32
  336. package/dist/components/ui/custom/form/currency.d.ts +0 -14
  337. package/dist/components/ui/custom/form/currency.d.ts.map +0 -1
  338. package/dist/components/ui/custom/form/currency.js +0 -15
  339. package/dist/components/ui/custom/form/date-range.d.ts +0 -16
  340. package/dist/components/ui/custom/form/date-range.d.ts.map +0 -1
  341. package/dist/components/ui/custom/form/date-range.js +0 -24
  342. package/dist/components/ui/custom/form/date.d.ts +0 -16
  343. package/dist/components/ui/custom/form/date.d.ts.map +0 -1
  344. package/dist/components/ui/custom/form/date.js +0 -35
  345. package/dist/components/ui/custom/form/decimal.d.ts +0 -14
  346. package/dist/components/ui/custom/form/decimal.d.ts.map +0 -1
  347. package/dist/components/ui/custom/form/decimal.js +0 -15
  348. package/dist/components/ui/custom/form/file.d.ts +0 -15
  349. package/dist/components/ui/custom/form/file.d.ts.map +0 -1
  350. package/dist/components/ui/custom/form/file.js +0 -18
  351. package/dist/components/ui/custom/form/form-help-text.d.ts +0 -3
  352. package/dist/components/ui/custom/form/form-help-text.d.ts.map +0 -1
  353. package/dist/components/ui/custom/form/form-help-text.js +0 -7
  354. package/dist/components/ui/custom/form/form-label.d.ts +0 -7
  355. package/dist/components/ui/custom/form/form-label.d.ts.map +0 -1
  356. package/dist/components/ui/custom/form/form-label.js +0 -9
  357. package/dist/components/ui/custom/form/form-message.d.ts +0 -5
  358. package/dist/components/ui/custom/form/form-message.d.ts.map +0 -1
  359. package/dist/components/ui/custom/form/form-message.js +0 -5
  360. package/dist/components/ui/custom/form/ghost.d.ts +0 -8
  361. package/dist/components/ui/custom/form/ghost.d.ts.map +0 -1
  362. package/dist/components/ui/custom/form/ghost.js +0 -8
  363. package/dist/components/ui/custom/form/input.d.ts +0 -18
  364. package/dist/components/ui/custom/form/input.d.ts.map +0 -1
  365. package/dist/components/ui/custom/form/input.js +0 -14
  366. package/dist/components/ui/custom/form/mask.d.ts +0 -19
  367. package/dist/components/ui/custom/form/mask.d.ts.map +0 -1
  368. package/dist/components/ui/custom/form/mask.js +0 -19
  369. package/dist/components/ui/custom/form/multi-select-old.d.ts +0 -19
  370. package/dist/components/ui/custom/form/multi-select-old.d.ts.map +0 -1
  371. package/dist/components/ui/custom/form/multi-select-old.js +0 -30
  372. package/dist/components/ui/custom/form/multi-select.d.ts +0 -26
  373. package/dist/components/ui/custom/form/multi-select.d.ts.map +0 -1
  374. package/dist/components/ui/custom/form/multi-select.js +0 -66
  375. package/dist/components/ui/custom/form/password.d.ts +0 -16
  376. package/dist/components/ui/custom/form/password.d.ts.map +0 -1
  377. package/dist/components/ui/custom/form/password.js +0 -14
  378. package/dist/components/ui/custom/form/percent.d.ts +0 -14
  379. package/dist/components/ui/custom/form/percent.d.ts.map +0 -1
  380. package/dist/components/ui/custom/form/percent.js +0 -15
  381. package/dist/components/ui/custom/form/phone.d.ts +0 -16
  382. package/dist/components/ui/custom/form/phone.d.ts.map +0 -1
  383. package/dist/components/ui/custom/form/phone.js +0 -23
  384. package/dist/components/ui/custom/form/radio-group.d.ts +0 -23
  385. package/dist/components/ui/custom/form/radio-group.d.ts.map +0 -1
  386. package/dist/components/ui/custom/form/radio-group.js +0 -15
  387. package/dist/components/ui/custom/form/select.d.ts +0 -20
  388. package/dist/components/ui/custom/form/select.d.ts.map +0 -1
  389. package/dist/components/ui/custom/form/select.js +0 -12
  390. package/dist/components/ui/custom/form/step-new-form.d.ts +0 -10
  391. package/dist/components/ui/custom/form/step-new-form.d.ts.map +0 -1
  392. package/dist/components/ui/custom/form/step-new-form.js +0 -13
  393. package/dist/components/ui/custom/form/switch.d.ts +0 -13
  394. package/dist/components/ui/custom/form/switch.d.ts.map +0 -1
  395. package/dist/components/ui/custom/form/switch.js +0 -16
  396. package/dist/components/ui/custom/form/text.d.ts +0 -18
  397. package/dist/components/ui/custom/form/text.d.ts.map +0 -1
  398. package/dist/components/ui/custom/form/text.js +0 -14
  399. package/dist/components/ui/custom/form/textarea.d.ts +0 -16
  400. package/dist/components/ui/custom/form/textarea.d.ts.map +0 -1
  401. package/dist/components/ui/custom/form/textarea.js +0 -19
  402. package/dist/components/ui/custom/form/utils.d.ts +0 -18
  403. package/dist/components/ui/custom/form/utils.d.ts.map +0 -1
  404. package/dist/components/ui/custom/form/utils.js +0 -88
  405. package/dist/components/ui/custom/header.d.ts +0 -11
  406. package/dist/components/ui/custom/header.d.ts.map +0 -1
  407. package/dist/components/ui/custom/header.js +0 -74
  408. package/dist/components/ui/custom/label.d.ts +0 -13
  409. package/dist/components/ui/custom/label.d.ts.map +0 -1
  410. package/dist/components/ui/custom/label.js +0 -20
  411. package/dist/components/ui/custom/not-found.d.ts +0 -3
  412. package/dist/components/ui/custom/not-found.d.ts.map +0 -1
  413. package/dist/components/ui/custom/not-found.js +0 -9
  414. package/dist/components/ui/custom/sidebar/app-sidebar.d.ts +0 -5
  415. package/dist/components/ui/custom/sidebar/app-sidebar.d.ts.map +0 -1
  416. package/dist/components/ui/custom/sidebar/app-sidebar.js +0 -26
  417. package/dist/components/ui/custom/sidebar/module-switcher.d.ts +0 -9
  418. package/dist/components/ui/custom/sidebar/module-switcher.d.ts.map +0 -1
  419. package/dist/components/ui/custom/sidebar/module-switcher.js +0 -55
  420. package/dist/components/ui/custom/sidebar/nav-footer.d.ts +0 -7
  421. package/dist/components/ui/custom/sidebar/nav-footer.d.ts.map +0 -1
  422. package/dist/components/ui/custom/sidebar/nav-footer.js +0 -13
  423. package/dist/components/ui/custom/sidebar/nav-main.d.ts +0 -7
  424. package/dist/components/ui/custom/sidebar/nav-main.d.ts.map +0 -1
  425. package/dist/components/ui/custom/sidebar/nav-main.js +0 -27
  426. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.d.ts +0 -9
  427. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.d.ts.map +0 -1
  428. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.js +0 -18
  429. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.d.ts +0 -10
  430. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.d.ts.map +0 -1
  431. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.js +0 -10
  432. package/dist/components/ui/custom/sidebar/nav-user.d.ts +0 -9
  433. package/dist/components/ui/custom/sidebar/nav-user.d.ts.map +0 -1
  434. package/dist/components/ui/custom/sidebar/nav-user.js +0 -24
  435. package/dist/components/ui/custom/sidebar/sidebar-button.d.ts +0 -9
  436. package/dist/components/ui/custom/sidebar/sidebar-button.d.ts.map +0 -1
  437. package/dist/components/ui/custom/sidebar/sidebar-button.js +0 -7
  438. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.d.ts +0 -12
  439. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.d.ts.map +0 -1
  440. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.js +0 -5
  441. package/dist/components/ui/custom/sidebar/sidebar-item.d.ts +0 -9
  442. package/dist/components/ui/custom/sidebar/sidebar-item.d.ts.map +0 -1
  443. package/dist/components/ui/custom/sidebar/sidebar-item.js +0 -7
  444. package/dist/components/ui/custom/sidebar/sidebar-module-switcher.d.ts +0 -9
  445. package/dist/components/ui/custom/sidebar/sidebar-module-switcher.d.ts.map +0 -1
  446. package/dist/components/ui/custom/sidebar/sidebar-module-switcher.js +0 -20
  447. package/dist/components/ui/custom/sidebar/types/sidebar.d.ts +0 -29
  448. package/dist/components/ui/custom/sidebar/types/sidebar.d.ts.map +0 -1
  449. package/dist/components/ui/custom/sidebar/types/sidebar.js +0 -5
  450. package/dist/components/ui/custom/table/data-table-export.d.ts +0 -8
  451. package/dist/components/ui/custom/table/data-table-export.d.ts.map +0 -1
  452. package/dist/components/ui/custom/table/data-table-export.js +0 -65
  453. package/dist/components/ui/custom/table/data-table-footer.d.ts +0 -25
  454. package/dist/components/ui/custom/table/data-table-footer.d.ts.map +0 -1
  455. package/dist/components/ui/custom/table/data-table-footer.js +0 -39
  456. package/dist/components/ui/custom/table/data-table-header.d.ts +0 -9
  457. package/dist/components/ui/custom/table/data-table-header.d.ts.map +0 -1
  458. package/dist/components/ui/custom/table/data-table-header.js +0 -11
  459. package/dist/components/ui/custom/table/data-table-rows.d.ts +0 -13
  460. package/dist/components/ui/custom/table/data-table-rows.d.ts.map +0 -1
  461. package/dist/components/ui/custom/table/data-table-rows.js +0 -25
  462. package/dist/components/ui/custom/table/data-table.d.ts +0 -35
  463. package/dist/components/ui/custom/table/data-table.d.ts.map +0 -1
  464. package/dist/components/ui/custom/table/data-table.js +0 -99
  465. package/dist/components/ui/custom/table/types/data-table.d.ts +0 -29
  466. package/dist/components/ui/custom/table/types/data-table.d.ts.map +0 -1
  467. package/dist/components/ui/custom/table/types/data-table.js +0 -1
  468. package/dist/components/ui/custom/theme-provider.d.ts +0 -24
  469. package/dist/components/ui/custom/theme-provider.d.ts.map +0 -1
  470. package/dist/components/ui/custom/theme-provider.js +0 -79
  471. package/dist/components/ui/dateRangePicker.d.ts +0 -3
  472. package/dist/components/ui/dateRangePicker.d.ts.map +0 -1
  473. package/dist/components/ui/dateRangePicker.js +0 -15
  474. package/dist/components/ui/dialog.d.ts +0 -23
  475. package/dist/components/ui/dialog.d.ts.map +0 -1
  476. package/dist/components/ui/dialog.js +0 -23
  477. package/dist/components/ui/drawer.d.ts +0 -23
  478. package/dist/components/ui/drawer.d.ts.map +0 -1
  479. package/dist/components/ui/drawer.js +0 -22
  480. package/dist/components/ui/dropdown-menu.d.ts +0 -28
  481. package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
  482. package/dist/components/ui/dropdown-menu.js +0 -32
  483. package/dist/components/ui/form.d.ts +0 -24
  484. package/dist/components/ui/form.d.ts.map +0 -1
  485. package/dist/components/ui/form.js +0 -60
  486. package/dist/components/ui/hover-card.d.ts +0 -7
  487. package/dist/components/ui/hover-card.d.ts.map +0 -1
  488. package/dist/components/ui/hover-card.js +0 -9
  489. package/dist/components/ui/input.d.ts +0 -24
  490. package/dist/components/ui/input.d.ts.map +0 -1
  491. package/dist/components/ui/input.js +0 -71
  492. package/dist/components/ui/label.d.ts +0 -6
  493. package/dist/components/ui/label.d.ts.map +0 -1
  494. package/dist/components/ui/label.js +0 -9
  495. package/dist/components/ui/masks.d.ts +0 -17
  496. package/dist/components/ui/masks.d.ts.map +0 -1
  497. package/dist/components/ui/masks.js +0 -25
  498. package/dist/components/ui/pagination.d.ts +0 -30
  499. package/dist/components/ui/pagination.d.ts.map +0 -1
  500. package/dist/components/ui/pagination.js +0 -23
  501. package/dist/components/ui/popover.d.ts +0 -7
  502. package/dist/components/ui/popover.d.ts.map +0 -1
  503. package/dist/components/ui/popover.js +0 -11
  504. package/dist/components/ui/progress.d.ts +0 -5
  505. package/dist/components/ui/progress.d.ts.map +0 -1
  506. package/dist/components/ui/progress.js +0 -7
  507. package/dist/components/ui/radio-group.d.ts +0 -6
  508. package/dist/components/ui/radio-group.d.ts.map +0 -1
  509. package/dist/components/ui/radio-group.js +0 -14
  510. package/dist/components/ui/scroll-area.d.ts +0 -6
  511. package/dist/components/ui/scroll-area.d.ts.map +0 -1
  512. package/dist/components/ui/scroll-area.js +0 -11
  513. package/dist/components/ui/select.d.ts +0 -14
  514. package/dist/components/ui/select.d.ts.map +0 -1
  515. package/dist/components/ui/select.js +0 -24
  516. package/dist/components/ui/separator.d.ts +0 -5
  517. package/dist/components/ui/separator.d.ts.map +0 -1
  518. package/dist/components/ui/separator.js +0 -7
  519. package/dist/components/ui/sheet.d.ts +0 -26
  520. package/dist/components/ui/sheet.d.ts.map +0 -1
  521. package/dist/components/ui/sheet.js +0 -37
  522. package/dist/components/ui/sidebar.d.ts +0 -67
  523. package/dist/components/ui/sidebar.d.ts.map +0 -1
  524. package/dist/components/ui/sidebar.js +0 -221
  525. package/dist/components/ui/skeleton.d.ts +0 -3
  526. package/dist/components/ui/skeleton.d.ts.map +0 -1
  527. package/dist/components/ui/skeleton.js +0 -6
  528. package/dist/components/ui/slider.d.ts +0 -5
  529. package/dist/components/ui/slider.d.ts.map +0 -1
  530. package/dist/components/ui/slider.js +0 -7
  531. package/dist/components/ui/switch.d.ts +0 -5
  532. package/dist/components/ui/switch.d.ts.map +0 -1
  533. package/dist/components/ui/switch.js +0 -7
  534. package/dist/components/ui/table.d.ts +0 -11
  535. package/dist/components/ui/table.d.ts.map +0 -1
  536. package/dist/components/ui/table.js +0 -20
  537. package/dist/components/ui/tabs.d.ts +0 -8
  538. package/dist/components/ui/tabs.d.ts.map +0 -1
  539. package/dist/components/ui/tabs.js +0 -12
  540. package/dist/components/ui/textarea.d.ts +0 -4
  541. package/dist/components/ui/textarea.d.ts.map +0 -1
  542. package/dist/components/ui/textarea.js +0 -14
  543. package/dist/components/ui/toast.d.ts +0 -16
  544. package/dist/components/ui/toast.d.ts.map +0 -1
  545. package/dist/components/ui/toast.js +0 -34
  546. package/dist/components/ui/toaster.d.ts +0 -2
  547. package/dist/components/ui/toaster.d.ts.map +0 -1
  548. package/dist/components/ui/toaster.js +0 -21
  549. package/dist/components/ui/tooltip.d.ts +0 -8
  550. package/dist/components/ui/tooltip.d.ts.map +0 -1
  551. package/dist/components/ui/tooltip.js +0 -10
  552. package/dist/components/ui/use-calendar.d.ts +0 -7
  553. package/dist/components/ui/use-calendar.d.ts.map +0 -1
  554. package/dist/components/ui/use-calendar.js +0 -23
  555. package/dist/components/ui/use-toast.d.ts +0 -46
  556. package/dist/components/ui/use-toast.d.ts.map +0 -1
  557. package/dist/components/ui/use-toast.js +0 -125
  558. package/dist/components/use-calendar.d.ts +0 -7
  559. package/dist/components/use-calendar.d.ts.map +0 -1
  560. package/dist/components/use-calendar.js +0 -23
  561. package/dist/components/use-toast.d.ts +0 -46
  562. package/dist/components/use-toast.d.ts.map +0 -1
  563. package/dist/components/use-toast.js +0 -125
  564. package/dist/hooks/use-mobile.d.ts +0 -2
  565. package/dist/hooks/use-mobile.d.ts.map +0 -1
  566. package/dist/hooks/use-mobile.js +0 -15
  567. package/dist/index.d.ts.map +0 -1
  568. package/dist/lib/help/date-utils.d.ts +0 -7
  569. package/dist/lib/help/date-utils.d.ts.map +0 -1
  570. package/dist/lib/help/date-utils.js +0 -34
  571. package/dist/lib/help/format.d.ts +0 -22
  572. package/dist/lib/help/format.d.ts.map +0 -1
  573. package/dist/lib/help/format.js +0 -140
  574. package/dist/lib/help/theme.d.ts +0 -291
  575. package/dist/lib/help/theme.d.ts.map +0 -1
  576. package/dist/lib/help/theme.js +0 -340
  577. package/dist/lib/help/uuid.d.ts +0 -2
  578. package/dist/lib/help/uuid.d.ts.map +0 -1
  579. package/dist/lib/help/uuid.js +0 -4
  580. package/dist/lib/utils.d.ts +0 -3
  581. package/dist/lib/utils.d.ts.map +0 -1
  582. package/dist/lib/utils.js +0 -5
@@ -1,35 +0,0 @@
1
- import { ColumnDef } from '@tanstack/react-table';
2
- import { ActionRow, ActionTable, ExportDataTable, FiltersActions } from './types/data-table';
3
- export interface DataTableProps<TData> {
4
- columns: ColumnDef<TData>[];
5
- data: TData[];
6
- actions?: ActionTable[];
7
- actionsRow?: ActionRow[];
8
- customFilters?: JSX.Element;
9
- className?: string;
10
- title?: string;
11
- rowsPage?: number;
12
- setSearch?: (value?: string) => void;
13
- setSelectRows?: (ids: string[]) => void;
14
- pageChanged?: (pageNumber: number) => void;
15
- pageSizeChanged?: (pageSize: number) => void;
16
- totalRows?: number;
17
- filtersActions?: FiltersActions;
18
- exportData?: ExportDataTable;
19
- textNoRecords?: string;
20
- heightRemainingScroll?: number;
21
- hideFilterField?: boolean;
22
- multiRowSelection?: {
23
- callback: (selectedRows: any[]) => void;
24
- };
25
- hidePagination?: boolean;
26
- disablePagination?: boolean;
27
- isLoading?: boolean;
28
- fixedHeight?: number;
29
- }
30
- export interface OriginalDataTableData {
31
- id: string;
32
- checked?: boolean;
33
- }
34
- export declare function DataTable<TData>({ columns, data, className, title, rowsPage, actions, actionsRow, customFilters, setSearch, pageChanged, pageSizeChanged, totalRows, filtersActions, exportData, textNoRecords, heightRemainingScroll, hideFilterField, multiRowSelection, hidePagination, disablePagination, isLoading, fixedHeight, }: DataTableProps<TData>): import("react/jsx-runtime").JSX.Element;
35
- //# sourceMappingURL=data-table.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../../../src/components/custom/table/data-table.tsx"],"names":[],"mappings":"AACA,OAAO,EACH,SAAS,EAQZ,MAAM,uBAAuB,CAAC;AAS/B,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAE7F,MAAM,WAAW,cAAc,CAAC,KAAK;IACpC,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;IAC5B,IAAI,EAAE,KAAK,EAAE,CAAC;IACd,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;IACzB,aAAa,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACxC,WAAW,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,UAAU,CAAC,EAAE,eAAe,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,iBAAiB,CAAC,EAAE;QACnB,QAAQ,EAAE,CAAC,YAAY,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;KACxC,CAAC;IACF,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,qBAAqB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,EAChC,OAAO,EACP,IAAI,EACJ,SAAS,EACT,KAAK,EACL,QAAQ,EACR,OAAO,EACP,UAAU,EACV,aAAa,EACb,SAAS,EACT,WAAW,EACX,eAAe,EACf,SAAS,EACT,cAAc,EACd,UAAU,EACV,aAAa,EACb,qBAAqB,EACrB,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,WAAW,GACX,EAAE,cAAc,CAAC,KAAK,CAAC,2CA+MvB"}
@@ -1,99 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cn } from '@/lib/utils';
3
- import { getCoreRowModel, getFilteredRowModel, getPaginationRowModel, getSortedRowModel, useReactTable, } from '@tanstack/react-table';
4
- import { Filter, Search } from 'lucide-react';
5
- import { useEffect, useRef, useState } from 'react';
6
- import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle, SheetTrigger } from '../../sheet';
7
- import { Button } from './button';
8
- import { DataTableFooter } from './data-table-footer';
9
- import { DataTableHeader } from './data-table-header';
10
- import { DataTableRows } from './data-table-rows';
11
- import { Table, TableBody } from './table';
12
- export function DataTable({ columns, data, className, title, rowsPage, actions, actionsRow, customFilters, setSearch, pageChanged, pageSizeChanged, totalRows, filtersActions, exportData, textNoRecords, heightRemainingScroll, hideFilterField, multiRowSelection, hidePagination, disablePagination, isLoading, fixedHeight, }) {
13
- const [sorting, setSorting] = useState([]);
14
- const [pagination, setPagination] = useState({
15
- pageIndex: 0,
16
- pageSize: rowsPage ?? 25,
17
- });
18
- const enableMultiRowSelection = multiRowSelection !== undefined;
19
- const [rowSelection, setRowSelection] = useState(enableMultiRowSelection
20
- ? Object.fromEntries((Array.isArray(data) ? data : []).map((row, idx) => {
21
- return [idx, row.checked];
22
- }))
23
- : {});
24
- const debounceTimeout = useRef(null);
25
- const tableContainerRef = useRef(null);
26
- const [tableHeight, setTableHeight] = useState('auto');
27
- totalRows = totalRows ?? data.length;
28
- const table = useReactTable({
29
- manualPagination: true,
30
- data: data,
31
- columns,
32
- getPaginationRowModel: getPaginationRowModel(),
33
- onPaginationChange: setPagination,
34
- getCoreRowModel: getCoreRowModel(),
35
- onSortingChange: setSorting,
36
- getSortedRowModel: getSortedRowModel(),
37
- getFilteredRowModel: getFilteredRowModel(),
38
- onRowSelectionChange: (rowSelection) => {
39
- setRowSelection(rowSelection);
40
- },
41
- enableMultiRowSelection: enableMultiRowSelection,
42
- state: { pagination, rowSelection, sorting },
43
- pageCount: Math.ceil(totalRows / pagination.pageSize),
44
- });
45
- const totalPages = table.getPageCount();
46
- const currentPage = table.getState().pagination.pageIndex;
47
- const selectedRows = table.getSelectedRowModel().rows;
48
- const selectedIds = selectedRows.map((row) => row.original.id);
49
- useEffect(() => {
50
- if (data.length === 0 && pagination.pageIndex > 0) {
51
- setPagination({ ...pagination, pageIndex: 0 });
52
- }
53
- }, [data]);
54
- useEffect(() => {
55
- handleResize();
56
- window.addEventListener('resize', handleResize);
57
- return () => {
58
- window.removeEventListener('resize', handleResize);
59
- };
60
- }, []);
61
- useEffect(() => {
62
- if (pageChanged)
63
- pageChanged(pagination.pageIndex + 1);
64
- }, [pagination]);
65
- useEffect(() => {
66
- const selectedRowsChecked = selectedRows.map((row) => row.original);
67
- if (multiRowSelection && selectedRowsChecked.length > 0) {
68
- multiRowSelection.callback(selectedRowsChecked);
69
- }
70
- }, [rowSelection]);
71
- const handleResize = () => {
72
- if (tableContainerRef.current) {
73
- const newHeight = window.innerHeight - tableContainerRef.current.getBoundingClientRect().top - (hidePagination ? 30 : 74);
74
- setTableHeight(`${newHeight - (heightRemainingScroll ?? 0)}px`);
75
- }
76
- };
77
- const handleSearchChange = (event) => {
78
- const value = event.currentTarget.value;
79
- if (debounceTimeout.current) {
80
- clearTimeout(debounceTimeout.current);
81
- }
82
- debounceTimeout.current = setTimeout(() => {
83
- setSearch?.(value);
84
- handlePage(0);
85
- }, 300);
86
- };
87
- const handlePageSize = (value) => {
88
- pageSizeChanged?.(value);
89
- setPagination({ pageIndex: 0, pageSize: value });
90
- };
91
- const handlePage = (index) => {
92
- if (index !== currentPage) {
93
- setPagination({ ...pagination, pageIndex: index });
94
- }
95
- };
96
- return (_jsxs("div", { className: 'flex flex-col flex-1', children: [(!hideFilterField || filtersActions || customFilters || actions) && (_jsxs("div", { className: 'flex items-end justify-between mb-4 space-x-6', children: [_jsxs("div", { className: 'flex items-center gap-x-4', children: [!hideFilterField && (_jsxs("div", { className: 'flex bg-background items-center border border-slate-300 rounded-sm w-[350px] overflow-hidden focus-within:outline-none focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2 group', children: [_jsx("div", { className: 'pl-3.5 transform transition-transform duration-300 group-hover:-translate-x-1', children: _jsx(Search, { size: 18, className: 'w-5 h-5 stroke-zinc-500 dark:stroke-default' }) }), _jsx("input", { placeholder: 'Buscar', onKeyUp: (event) => {
97
- handleSearchChange(event);
98
- }, className: 'w-full bg-background text-default border-none focus:ring-0 focus:outline-none px-3 py-2 transform transition-transform duration-300 group-hover:-translate-x-1 ' })] })), filtersActions && (_jsxs(Sheet, { open: filtersActions.filterOpen, onOpenChange: filtersActions.setFilterOpen, children: [_jsx(SheetTrigger, { asChild: true, children: _jsxs(Button, { variant: 'secondary', type: 'button', children: [_jsx(Filter, { size: 20, className: 'h-4 w-4' }), " Filtros", filtersActions.countFilters > 0 && (_jsx("div", { className: 'bg-background-primary text-white rounded-full h-5 w-5 flex items-center justify-center text-sm placeholder:text-muted-foreground', children: filtersActions.countFilters }))] }) }), _jsxs(SheetContent, { children: [_jsxs(SheetHeader, { children: [_jsx(SheetTitle, { children: "Filtros" }), _jsx(SheetDescription, {})] }), _jsx("div", { className: 'flex flex-col py-6', children: filtersActions.fields })] })] }))] }), customFilters, _jsx("div", { className: 'flex space-x-4 content-end', children: actions?.map((action, index) => (_jsx("div", { children: _jsxs(Button, { onClick: () => action.onClick?.(selectedIds, selectedRows), className: cn(action.className, action.hideUnselectedRows && selectedRows.length === 0 ? 'hidden' : ''), variant: action.variant || 'default', disabled: action.disabled, children: [_jsx("div", { className: '[&_svg]:size-5', children: action.icon }), action.label] }) }, `action-table-${index}`))) })] })), _jsxs("div", { className: `flex-1 flex flex-col rounded-md border ${className}`, children: [_jsx("div", { className: 'flex items-center justify-between', children: title && _jsx("div", { className: 'text-h4 p-4', children: title }) }), _jsx("div", { id: 'data-table', ref: tableContainerRef, style: fixedHeight ? { height: fixedHeight } : { height: tableHeight }, className: 'flex flex-col justify-between rounded-md overflow-x-auto overflow-y-auto', children: _jsxs(Table, { children: [_jsx(DataTableHeader, { table: table, canActionsRow: actionsRow && actionsRow.length > 0, enableMultiRowSelection: enableMultiRowSelection }), _jsx(TableBody, { className: 'bg-background', children: _jsx(DataTableRows, { table: table, columns: columns, isLoading: isLoading, actionsRow: actionsRow, textNoRecords: textNoRecords, enableMultiRowSelection: enableMultiRowSelection }) })] }) })] }), _jsx(DataTableFooter, { hidePagination: hidePagination, disablePagination: disablePagination, isLoading: isLoading, totalRows: totalRows, totalPages: totalPages, currentPage: currentPage, pagination: pagination, handlePageSize: handlePageSize, handlePage: handlePage, previousPage: { action: () => table.previousPage(), disabled: !table.getCanPreviousPage() }, nextPage: { action: () => table.nextPage(), disabled: !table.getCanNextPage() }, exportData: exportData })] }));
99
- }
@@ -1,29 +0,0 @@
1
- export type ActionTable = {
2
- label: string;
3
- icon?: JSX.Element;
4
- variant?: string;
5
- onClick?: (ids: any[], rows: any[]) => void;
6
- className?: string;
7
- hideUnselectedRows?: boolean;
8
- disabled?: boolean;
9
- };
10
- export type ActionRow = {
11
- label: string;
12
- icon?: JSX.Element;
13
- variant?: string;
14
- onClick?: (row: any) => void;
15
- className?: (row: any) => string;
16
- disabled?: (row: any) => boolean;
17
- };
18
- export interface ExportDataTable {
19
- type: 'xlsx' | 'dialog';
20
- url: string;
21
- params?: Record<string, string>;
22
- }
23
- export interface FiltersActions {
24
- fields: JSX.Element;
25
- countFilters: number;
26
- filterOpen: boolean;
27
- setFilterOpen: React.Dispatch<React.SetStateAction<boolean>>;
28
- }
29
- //# sourceMappingURL=data-table.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-table.d.ts","sourceRoot":"","sources":["../../../../../src/components/custom/table/types/data-table.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAC7B,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,MAAM,CAAC;IACjC,QAAQ,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC;CACjC,CAAC;AAEF,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAC;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,cAAc;IAC9B,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC;CAC7D"}
@@ -1 +0,0 @@
1
- export {};
@@ -1,24 +0,0 @@
1
- type Theme = 'light' | 'dark' | 'dark-side';
2
- type PortalDefinitions = {
3
- faviconPath: string;
4
- fullLogoPath: string;
5
- bannerDesktopPath: string;
6
- mvnoPrimaryColor: string;
7
- mvnoMainTheme: Theme;
8
- title: string;
9
- hideModuleSwitcher: boolean;
10
- };
11
- type ThemeProviderProps = {
12
- children: React.ReactNode;
13
- defaultTheme?: PortalDefinitions;
14
- storageKey?: string;
15
- };
16
- type ThemeProviderState = {
17
- portalDefinitions: PortalDefinitions;
18
- setPortalDefinitions: (portalDefinitions: PortalDefinitions) => void;
19
- };
20
- export declare const DEFAULT_THEME_DATA: PortalDefinitions;
21
- export declare function ThemeProvider({ children, defaultTheme, storageKey, ...props }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
22
- export declare const useTheme: () => ThemeProviderState;
23
- export {};
24
- //# sourceMappingURL=theme-provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme-provider.d.ts","sourceRoot":"","sources":["../../../src/components/custom/theme-provider.tsx"],"names":[],"mappings":"AAGA,KAAK,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,WAAW,CAAC;AAE5C,KAAK,iBAAiB,GAAG;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,KAAK,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,KAAK,kBAAkB,GAAG;IACzB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,oBAAoB,EAAE,CAAC,iBAAiB,EAAE,iBAAiB,KAAK,IAAI,CAAC;CACrE,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,iBAQhC,CAAC;AASF,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,YAAiC,EAAE,UAA4B,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,2CAqExI;AAED,eAAO,MAAM,QAAQ,0BAMpB,CAAC"}
@@ -1,79 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { replaceThemeTailwindColors } from '@/lib/help/theme';
3
- import { createContext, useContext, useEffect, useState } from 'react';
4
- export const DEFAULT_THEME_DATA = {
5
- faviconPath: '/logos/logosEai/Eai_roxo_48x48px.png',
6
- fullLogoPath: '/logos/logosEai/Eai_Roxo_60x42px.png',
7
- bannerDesktopPath: '/imgs/background-auth.png',
8
- mvnoPrimaryColor: 'violet',
9
- mvnoMainTheme: 'light',
10
- title: 'Eaí',
11
- hideModuleSwitcher: false,
12
- };
13
- const initialState = {
14
- portalDefinitions: DEFAULT_THEME_DATA,
15
- setPortalDefinitions: () => null,
16
- };
17
- const ThemeProviderContext = createContext(initialState);
18
- export function ThemeProvider({ children, defaultTheme = DEFAULT_THEME_DATA, storageKey = 'vite-ui-theme', ...props }) {
19
- const [portalDefinitions, setPortalDefinitionsState] = useState({
20
- faviconPath: localStorage.getItem(`${storageKey}-faviconPath`) || defaultTheme.faviconPath,
21
- fullLogoPath: localStorage.getItem(`${storageKey}-fullLogoPath`) || defaultTheme.fullLogoPath,
22
- bannerDesktopPath: localStorage.getItem(`${storageKey}-bannerDesktopPath`) || defaultTheme.bannerDesktopPath,
23
- mvnoPrimaryColor: localStorage.getItem(`${storageKey}-mvnoPrimaryColor`) || defaultTheme.mvnoPrimaryColor,
24
- mvnoMainTheme: localStorage.getItem(storageKey) || defaultTheme.mvnoMainTheme,
25
- title: localStorage.getItem(`${storageKey}-title`) || defaultTheme.title,
26
- hideModuleSwitcher: localStorage.getItem(`${storageKey}-hideModuleSwitcher`) === 'true',
27
- });
28
- useEffect(() => {
29
- const theme = portalDefinitions?.mvnoMainTheme;
30
- const root = window.document.documentElement;
31
- root.classList.remove('light', 'dark', 'dark-side');
32
- root.classList.add(theme);
33
- document.title = portalDefinitions?.title;
34
- const meta = document.querySelector('meta[name="description"]');
35
- if (meta) {
36
- meta.setAttribute('content', portalDefinitions?.title);
37
- }
38
- let link = document.querySelector("link[rel~='icon']");
39
- if (!link) {
40
- link = document.createElement('link');
41
- link.rel = 'icon';
42
- document.getElementsByTagName('head')[0].appendChild(link);
43
- }
44
- link.href = portalDefinitions?.faviconPath;
45
- const el = replaceThemeTailwindColors(theme, portalDefinitions?.mvnoPrimaryColor);
46
- document.getElementById('theme-variables') &&
47
- document.getElementsByTagName('head')[0].removeChild(document.getElementById('theme-variables'));
48
- document.getElementsByTagName('head')[0].appendChild(el);
49
- }, [portalDefinitions]);
50
- const setPortalDefinitions = (portalDefinitions) => {
51
- localStorage.setItem(`${storageKey}-faviconPath`, portalDefinitions.faviconPath);
52
- localStorage.setItem(`${storageKey}-fullLogoPath`, portalDefinitions.fullLogoPath);
53
- localStorage.setItem(`${storageKey}-bannerDesktopPath`, portalDefinitions.bannerDesktopPath);
54
- localStorage.setItem(`${storageKey}-mvnoPrimaryColor`, portalDefinitions.mvnoPrimaryColor);
55
- localStorage.setItem(`${storageKey}-mvnoMainTheme`, portalDefinitions.mvnoMainTheme);
56
- localStorage.setItem(`${storageKey}-title`, portalDefinitions.title);
57
- localStorage.setItem(`${storageKey}-hideModuleSwitcher`, String(portalDefinitions.hideModuleSwitcher));
58
- setPortalDefinitionsState({
59
- faviconPath: portalDefinitions.faviconPath || DEFAULT_THEME_DATA.faviconPath,
60
- fullLogoPath: portalDefinitions.fullLogoPath || DEFAULT_THEME_DATA.fullLogoPath,
61
- bannerDesktopPath: portalDefinitions.bannerDesktopPath || DEFAULT_THEME_DATA.bannerDesktopPath,
62
- mvnoPrimaryColor: portalDefinitions.mvnoPrimaryColor || DEFAULT_THEME_DATA.mvnoPrimaryColor,
63
- mvnoMainTheme: portalDefinitions.mvnoMainTheme ? portalDefinitions.mvnoMainTheme : DEFAULT_THEME_DATA.mvnoMainTheme,
64
- title: portalDefinitions.title || DEFAULT_THEME_DATA.title,
65
- hideModuleSwitcher: portalDefinitions.hideModuleSwitcher || DEFAULT_THEME_DATA.hideModuleSwitcher,
66
- });
67
- };
68
- const value = {
69
- portalDefinitions,
70
- setPortalDefinitions: setPortalDefinitions,
71
- };
72
- return (_jsx(ThemeProviderContext.Provider, { ...props, value: value, children: children }));
73
- }
74
- export const useTheme = () => {
75
- const context = useContext(ThemeProviderContext);
76
- if (context === undefined)
77
- throw new Error('useTheme must be used within a ThemeProvider');
78
- return context;
79
- };
@@ -1,3 +0,0 @@
1
- import * as React from "react";
2
- export declare function DatePickerWithRange({ className, }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
3
- //# sourceMappingURL=dateRangePicker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dateRangePicker.d.ts","sourceRoot":"","sources":["../../src/components/dateRangePicker.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAY9B,wBAAgB,mBAAmB,CAAC,EAClC,SAAS,GACV,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,2CA8CtC"}
@@ -1,15 +0,0 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { addDays, format } from "date-fns";
3
- import { CalendarIcon } from "lucide-react";
4
- import * as React from "react";
5
- import { cn } from "@/lib/utils";
6
- import { Button } from "./button";
7
- import { Calendar } from "./calendar";
8
- import { Popover, PopoverContent, PopoverTrigger, } from "./popover";
9
- export function DatePickerWithRange({ className, }) {
10
- const [date, setDate] = React.useState({
11
- from: new Date(2022, 0, 20),
12
- to: addDays(new Date(2022, 0, 20), 20),
13
- });
14
- 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: cn("w-[300px] justify-start text-left font-normal", !date && "text-muted-foreground"), children: [_jsx(CalendarIcon, {}), date?.from ? (date.to ? (_jsxs(_Fragment, { children: [format(date.from, "LLL dd, y"), " -", " ", format(date.to, "LLL dd, y")] })) : (format(date.from, "LLL dd, y"))) : (_jsx("span", { children: "Pick a date" }))] }) }), _jsx(PopoverContent, { className: "w-auto p-0", align: "start", children: _jsx(Calendar, { initialFocus: true, mode: "range", defaultMonth: date?.from, selected: date, onSelect: setDate, numberOfMonths: 2 }) })] }) }));
15
- }
@@ -1,23 +0,0 @@
1
- import * as DialogPrimitive from '@radix-ui/react-dialog';
2
- import * as React from 'react';
3
- declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
4
- declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
- declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
6
- declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
- declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
- interface DialogContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> {
9
- hideClose?: boolean;
10
- }
11
- declare const DialogContent: React.ForwardRefExoticComponent<DialogContentProps & React.RefAttributes<HTMLDivElement>>;
12
- declare const DialogHeader: {
13
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
14
- displayName: string;
15
- };
16
- declare const DialogFooter: {
17
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
18
- displayName: string;
19
- };
20
- declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
21
- declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
22
- export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
23
- //# sourceMappingURL=dialog.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/components/dialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,MAAM,uCAAuB,CAAC;AAEpC,QAAA,MAAM,aAAa,8GAA0B,CAAC;AAE9C,QAAA,MAAM,YAAY,6CAAyB,CAAC;AAE5C,QAAA,MAAM,WAAW,4GAAwB,CAAC;AAE1C,QAAA,MAAM,aAAa,8JAYjB,CAAC;AAGH,UAAU,kBAAmB,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC;IAClG,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,aAAa,2FAsBlB,CAAC;AAGF,QAAA,MAAM,YAAY;8BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAElF,CAAC;AAGF,QAAA,MAAM,YAAY;8BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAElF,CAAC;AAGF,QAAA,MAAM,WAAW,oKAIhB,CAAC;AAGF,QAAA,MAAM,iBAAiB,8KAG6H,CAAC;AAGrJ,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,iBAAiB,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC"}
@@ -1,23 +0,0 @@
1
- 'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import * as DialogPrimitive from '@radix-ui/react-dialog';
4
- import { X } from 'lucide-react';
5
- import * as React from 'react';
6
- import { cn } from '@/lib/utils';
7
- const Dialog = DialogPrimitive.Root;
8
- const DialogTrigger = DialogPrimitive.Trigger;
9
- const DialogPortal = DialogPrimitive.Portal;
10
- const DialogClose = DialogPrimitive.Close;
11
- const DialogOverlay = React.forwardRef(({ className, ...props }, ref) => (_jsx(DialogPrimitive.Overlay, { ref: ref, 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 })));
12
- DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
13
- const DialogContent = React.forwardRef(({ className, children, hideClose, ...props }, ref) => (_jsxs(DialogPortal, { children: [_jsx(DialogOverlay, {}), _jsxs(DialogPrimitive.Content, { ref: ref, className: cn('fixed left-[50%] top-[50%] z-50 grid 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, children: [children, !hideClose && (_jsxs(DialogPrimitive.Close, { className: 'absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground', children: [_jsx(X, { className: 'h-4 w-4' }), _jsx("span", { className: 'sr-only', children: "Close" })] }))] })] })));
14
- DialogContent.displayName = DialogPrimitive.Content.displayName;
15
- const DialogHeader = ({ className, ...props }) => (_jsx("div", { className: cn('flex flex-col space-y-1.5 text-center sm:text-left', className), ...props }));
16
- DialogHeader.displayName = 'DialogHeader';
17
- const DialogFooter = ({ className, ...props }) => (_jsx("div", { className: cn('flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2', className), ...props }));
18
- DialogFooter.displayName = 'DialogFooter';
19
- const DialogTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx(DialogPrimitive.Title, { ref: ref, className: cn('text-lg font-semibold leading-none tracking-tight', className), ...props })));
20
- DialogTitle.displayName = DialogPrimitive.Title.displayName;
21
- const DialogDescription = React.forwardRef(({ className, ...props }, ref) => _jsx(DialogPrimitive.Description, { ref: ref, className: cn('text-sm text-muted-foreground', className), ...props }));
22
- DialogDescription.displayName = DialogPrimitive.Description.displayName;
23
- export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
@@ -1,23 +0,0 @@
1
- import * as React from "react";
2
- import { Drawer as DrawerPrimitive } from "vaul";
3
- declare const Drawer: {
4
- ({ shouldScaleBackground, ...props }: React.ComponentProps<typeof DrawerPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
5
- displayName: string;
6
- };
7
- declare const DrawerTrigger: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
8
- declare const DrawerPortal: typeof import("vaul").Portal;
9
- declare const DrawerClose: React.ForwardRefExoticComponent<import("@radix-ui/react-dialog").DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
10
- declare const DrawerOverlay: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
11
- declare const DrawerContent: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/react-dialog").DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
12
- declare const DrawerHeader: {
13
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
14
- displayName: string;
15
- };
16
- declare const DrawerFooter: {
17
- ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
18
- displayName: string;
19
- };
20
- declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
21
- declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
22
- export { Drawer, DrawerPortal, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, };
23
- //# sourceMappingURL=drawer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../src/components/drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,MAAM,CAAA;AAIhD,QAAA,MAAM,MAAM;0CAGT,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC;;CAKnD,CAAA;AAGD,QAAA,MAAM,aAAa,+HAA0B,CAAA;AAE7C,QAAA,MAAM,YAAY,8BAAyB,CAAA;AAE3C,QAAA,MAAM,WAAW,6HAAwB,CAAA;AAEzC,QAAA,MAAM,aAAa,kOASjB,CAAA;AAGF,QAAA,MAAM,aAAa,kOAkBjB,CAAA;AAGF,QAAA,MAAM,YAAY;8BAGf,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAKtC,CAAA;AAGD,QAAA,MAAM,YAAY;8BAGf,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAKtC,CAAA;AAGD,QAAA,MAAM,WAAW,qLAYf,CAAA;AAGF,QAAA,MAAM,iBAAiB,+LASrB,CAAA;AAGF,OAAO,EACL,MAAM,EACN,YAAY,EACZ,aAAa,EACb,aAAa,EACb,WAAW,EACX,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,iBAAiB,GAClB,CAAA"}
@@ -1,22 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import { Drawer as DrawerPrimitive } from "vaul";
4
- import { cn } from "@/lib/utils";
5
- const Drawer = ({ shouldScaleBackground = true, ...props }) => (_jsx(DrawerPrimitive.Root, { shouldScaleBackground: shouldScaleBackground, ...props }));
6
- Drawer.displayName = "Drawer";
7
- const DrawerTrigger = DrawerPrimitive.Trigger;
8
- const DrawerPortal = DrawerPrimitive.Portal;
9
- const DrawerClose = DrawerPrimitive.Close;
10
- const DrawerOverlay = React.forwardRef(({ className, ...props }, ref) => (_jsx(DrawerPrimitive.Overlay, { ref: ref, className: cn("fixed inset-0 z-50 bg-black/80", className), ...props })));
11
- DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
12
- const DrawerContent = React.forwardRef(({ className, children, ...props }, ref) => (_jsxs(DrawerPortal, { children: [_jsx(DrawerOverlay, {}), _jsxs(DrawerPrimitive.Content, { ref: ref, className: cn("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background", className), ...props, children: [_jsx("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }), children] })] })));
13
- DrawerContent.displayName = "DrawerContent";
14
- const DrawerHeader = ({ className, ...props }) => (_jsx("div", { className: cn("grid gap-1.5 p-4 text-center sm:text-left", className), ...props }));
15
- DrawerHeader.displayName = "DrawerHeader";
16
- const DrawerFooter = ({ className, ...props }) => (_jsx("div", { className: cn("mt-auto flex flex-col gap-2 p-4", className), ...props }));
17
- DrawerFooter.displayName = "DrawerFooter";
18
- const DrawerTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx(DrawerPrimitive.Title, { ref: ref, className: cn("text-lg font-semibold leading-none tracking-tight", className), ...props })));
19
- DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
20
- const DrawerDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx(DrawerPrimitive.Description, { ref: ref, className: cn("text-sm text-muted-foreground", className), ...props })));
21
- DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
22
- export { Drawer, DrawerPortal, DrawerOverlay, DrawerTrigger, DrawerClose, DrawerContent, DrawerHeader, DrawerFooter, DrawerTitle, DrawerDescription, };
@@ -1,28 +0,0 @@
1
- import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
2
- import * as React from 'react';
3
- declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
4
- declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
- declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
6
- declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
7
- declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
8
- declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
9
- declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
10
- inset?: boolean;
11
- } & React.RefAttributes<HTMLDivElement>>;
12
- declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
- declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
- declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
15
- inset?: boolean;
16
- } & React.RefAttributes<HTMLDivElement>>;
17
- declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
18
- declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
- declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
20
- inset?: boolean;
21
- } & React.RefAttributes<HTMLDivElement>>;
22
- declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
- declare const DropdownMenuShortcut: {
24
- ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
25
- displayName: string;
26
- };
27
- export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, };
28
- //# sourceMappingURL=dropdown-menu.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../src/components/dropdown-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAEvE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,YAAY,mDAA6B,CAAC;AAEhD,QAAA,MAAM,mBAAmB,0HAAgC,CAAC;AAE1D,QAAA,MAAM,iBAAiB,qHAA8B,CAAC;AAEtD,QAAA,MAAM,kBAAkB,yDAA+B,CAAC;AAExD,QAAA,MAAM,eAAe,sDAA4B,CAAC;AAElD,QAAA,MAAM,sBAAsB,0HAAmC,CAAC;AAEhE,QAAA,MAAM,sBAAsB;YAGlB,OAAO;wCAef,CAAC;AAGH,QAAA,MAAM,sBAAsB,6KAY1B,CAAC;AAGH,QAAA,MAAM,mBAAmB,0KAevB,CAAC;AAGH,QAAA,MAAM,gBAAgB;YAGZ,OAAO;wCAYf,CAAC;AAGH,QAAA,MAAM,wBAAwB,+KAoB5B,CAAC;AAGH,QAAA,MAAM,qBAAqB,4KAmBzB,CAAC;AAGH,QAAA,MAAM,iBAAiB;YAGb,OAAO;wCAIf,CAAC;AAGH,QAAA,MAAM,qBAAqB,4KAGwH,CAAC;AAGpJ,QAAA,MAAM,oBAAoB;8BAA6B,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;;CAE3F,CAAC;AAGF,OAAO,EACN,YAAY,EACZ,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,GACnB,CAAC"}
@@ -1,32 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
3
- import { Check, ChevronRight, Circle } from 'lucide-react';
4
- import * as React from 'react';
5
- import { cn } from '@/lib/utils';
6
- const DropdownMenu = DropdownMenuPrimitive.Root;
7
- const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
8
- const DropdownMenuGroup = DropdownMenuPrimitive.Group;
9
- const DropdownMenuPortal = DropdownMenuPrimitive.Portal;
10
- const DropdownMenuSub = DropdownMenuPrimitive.Sub;
11
- const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
12
- const DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => (_jsxs(DropdownMenuPrimitive.SubTrigger, { ref: ref, className: cn('flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent', inset && 'pl-8', className), ...props, children: [children, _jsx(ChevronRight, { className: 'ml-auto h-4 w-4' })] })));
13
- DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
14
- const DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) => (_jsx(DropdownMenuPrimitive.SubContent, { ref: ref, className: cn('z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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-[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 })));
15
- DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
16
- const DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => (_jsx(DropdownMenuPrimitive.Portal, { children: _jsx(DropdownMenuPrimitive.Content, { ref: ref, sideOffset: sideOffset, className: cn('z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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-[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 }) })));
17
- DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
18
- const DropdownMenuItem = React.forwardRef(({ className, inset, ...props }, ref) => (_jsx(DropdownMenuPrimitive.Item, { ref: ref, className: cn('relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', inset && 'pl-8', className), ...props })));
19
- DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
20
- const DropdownMenuCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => (_jsxs(DropdownMenuPrimitive.CheckboxItem, { ref: ref, className: cn('relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className), checked: checked, ...props, children: [_jsx("span", { className: 'absolute left-2 flex h-3.5 w-3.5 items-center justify-center', children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(Check, { className: 'h-4 w-4' }) }) }), children] })));
21
- DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
22
- const DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props }, ref) => (_jsxs(DropdownMenuPrimitive.RadioItem, { ref: ref, className: cn('relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className), ...props, children: [_jsx("span", { className: 'absolute left-2 flex h-3.5 w-3.5 items-center justify-center', children: _jsx(DropdownMenuPrimitive.ItemIndicator, { children: _jsx(Circle, { className: 'h-2 w-2 fill-current' }) }) }), children] })));
23
- DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
24
- const DropdownMenuLabel = React.forwardRef(({ className, inset, ...props }, ref) => (_jsx(DropdownMenuPrimitive.Label, { ref: ref, className: cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className), ...props })));
25
- DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
26
- const DropdownMenuSeparator = React.forwardRef(({ className, ...props }, ref) => _jsx(DropdownMenuPrimitive.Separator, { ref: ref, className: cn('-mx-1 my-1 h-px bg-muted', className), ...props }));
27
- DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
28
- const DropdownMenuShortcut = ({ className, ...props }) => {
29
- return _jsx("span", { className: cn('ml-auto text-xs tracking-widest opacity-60', className), ...props });
30
- };
31
- DropdownMenuShortcut.displayName = 'DropdownMenuShortcut';
32
- export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, };
@@ -1,24 +0,0 @@
1
- import * as LabelPrimitive from '@radix-ui/react-label';
2
- import * as React from 'react';
3
- import { ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
4
- declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
5
- declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
6
- declare const useFormField: () => {
7
- invalid: boolean;
8
- isDirty: boolean;
9
- isTouched: boolean;
10
- isValidating: boolean;
11
- error?: import("react-hook-form").FieldError;
12
- id: string;
13
- name: string;
14
- formItemId: string;
15
- formDescriptionId: string;
16
- formMessageId: string;
17
- };
18
- declare const FormItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
19
- declare const FormLabel: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
20
- declare const FormControl: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-slot").SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
21
- declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
22
- declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
23
- export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };
24
- //# sourceMappingURL=form.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../src/components/form.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AAExD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAc,eAAe,EAAE,SAAS,EAAE,WAAW,EAAgC,MAAM,iBAAiB,CAAC;AAGpH,QAAA,MAAM,IAAI,4MAAe,CAAC;AAQ1B,QAAA,MAAM,SAAS,GAAI,YAAY,SAAS,WAAW,GAAG,WAAW,EAAE,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,YAAY,CAAC,EAAE,cAEjI,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,4CAMtC,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;CAqBjB,CAAC;AAQF,QAAA,MAAM,QAAQ,6GAQZ,CAAC;AAGH,QAAA,MAAM,SAAS,yJAMd,CAAC;AAGF,QAAA,MAAM,WAAW,8JAYf,CAAC;AAGH,QAAA,MAAM,eAAe,yHAInB,CAAC;AAGH,QAAA,MAAM,WAAW,yHAaf,CAAC;AAGH,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC"}
@@ -1,60 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { cn } from '@/lib/utils';
3
- import { Slot } from '@radix-ui/react-slot';
4
- import * as React from 'react';
5
- import { Controller, FormProvider, useFormContext } from 'react-hook-form';
6
- import { Label } from './label';
7
- const Form = FormProvider;
8
- const FormFieldContext = React.createContext({});
9
- const FormField = ({ ...props }) => {
10
- return (_jsx(FormFieldContext.Provider, { value: { name: props.name }, children: _jsx(Controller, { ...props }) }));
11
- };
12
- const useFormField = () => {
13
- const fieldContext = React.useContext(FormFieldContext);
14
- const itemContext = React.useContext(FormItemContext);
15
- const { getFieldState, formState } = useFormContext();
16
- const fieldState = getFieldState(fieldContext.name, formState);
17
- if (!fieldContext) {
18
- throw new Error('useFormField should be used within <FormField>');
19
- }
20
- const { id } = itemContext;
21
- return {
22
- id,
23
- name: fieldContext.name,
24
- formItemId: `${id}-form-item`,
25
- formDescriptionId: `${id}-form-item-description`,
26
- formMessageId: `${id}-form-item-message`,
27
- ...fieldState,
28
- };
29
- };
30
- const FormItemContext = React.createContext({});
31
- const FormItem = React.forwardRef(({ className, ...props }, ref) => {
32
- const id = React.useId();
33
- return (_jsx(FormItemContext.Provider, { value: { id }, children: _jsx("div", { ref: ref, className: cn('', className), ...props }) }));
34
- });
35
- FormItem.displayName = 'FormItem';
36
- const FormLabel = React.forwardRef(({ className, ...props }, ref) => {
37
- const { error, formItemId } = useFormField();
38
- return _jsx(Label, { ref: ref, className: cn(error && 'text-destructive', className), htmlFor: formItemId, ...props });
39
- });
40
- FormLabel.displayName = 'FormLabel';
41
- const FormControl = React.forwardRef(({ ...props }, ref) => {
42
- const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
43
- return (_jsx(Slot, { ref: ref, id: formItemId, "aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`, "aria-invalid": !!error, ...props }));
44
- });
45
- FormControl.displayName = 'FormControl';
46
- const FormDescription = React.forwardRef(({ className, ...props }, ref) => {
47
- const { formDescriptionId } = useFormField();
48
- return _jsx("p", { ref: ref, id: formDescriptionId, className: cn('text-sm text-muted-foreground', className), ...props });
49
- });
50
- FormDescription.displayName = 'FormDescription';
51
- const FormMessage = React.forwardRef(({ className, children, ...props }, ref) => {
52
- const { error, formMessageId } = useFormField();
53
- const body = error ? String(error?.message) : children;
54
- if (!body) {
55
- return null;
56
- }
57
- return (_jsx("p", { ref: ref, id: formMessageId, className: cn('text-sm font-medium text-destructive', className), ...props, children: body }));
58
- });
59
- FormMessage.displayName = 'FormMessage';
60
- export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField };
@@ -1,7 +0,0 @@
1
- import * as React from 'react';
2
- import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
3
- declare const HoverCard: React.FC<HoverCardPrimitive.HoverCardProps>;
4
- declare const HoverCardTrigger: React.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
5
- declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
- export { HoverCard, HoverCardTrigger, HoverCardContent };
7
- //# sourceMappingURL=hover-card.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hover-card.d.ts","sourceRoot":"","sources":["../../src/components/hover-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,4BAA4B,CAAC;AAIjE,QAAA,MAAM,SAAS,6CAA0B,CAAC;AAE1C,QAAA,MAAM,gBAAgB,oHAA6B,CAAC;AAEpD,QAAA,MAAM,gBAAgB,oKAcpB,CAAC;AAGH,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAC"}