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