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,130 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import * as RechartsPrimitive from "recharts";
4
- import { cn } from "@/lib/utils";
5
- // Format: { THEME_NAME: CSS_SELECTOR }
6
- const THEMES = { light: "", dark: ".dark" };
7
- const ChartContext = React.createContext(null);
8
- function useChart() {
9
- const context = React.useContext(ChartContext);
10
- if (!context) {
11
- throw new Error("useChart must be used within a <ChartContainer />");
12
- }
13
- return context;
14
- }
15
- const ChartContainer = React.forwardRef(({ id, className, children, config, ...props }, ref) => {
16
- const uniqueId = React.useId();
17
- const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
18
- return (_jsx(ChartContext.Provider, { value: { config }, children: _jsxs("div", { "data-chart": chartId, ref: ref, className: cn("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-none [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-none [&_.recharts-surface]:outline-none", className), ...props, children: [_jsx(ChartStyle, { id: chartId, config: config }), _jsx(RechartsPrimitive.ResponsiveContainer, { children: children })] }) }));
19
- });
20
- ChartContainer.displayName = "Chart";
21
- const ChartStyle = ({ id, config }) => {
22
- const colorConfig = Object.entries(config).filter(([, config]) => config.theme || config.color);
23
- if (!colorConfig.length) {
24
- return null;
25
- }
26
- return (_jsx("style", { dangerouslySetInnerHTML: {
27
- __html: Object.entries(THEMES)
28
- .map(([theme, prefix]) => `
29
- ${prefix} [data-chart=${id}] {
30
- ${colorConfig
31
- .map(([key, itemConfig]) => {
32
- const color = itemConfig.theme?.[theme] ||
33
- itemConfig.color;
34
- return color ? ` --color-${key}: ${color};` : null;
35
- })
36
- .join("\n")}
37
- }
38
- `)
39
- .join("\n"),
40
- } }));
41
- };
42
- const ChartTooltip = RechartsPrimitive.Tooltip;
43
- const ChartTooltipContent = React.forwardRef(({ active, payload, className, indicator = "dot", hideLabel = false, hideIndicator = false, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }, ref) => {
44
- const { config } = useChart();
45
- const tooltipLabel = React.useMemo(() => {
46
- if (hideLabel || !payload?.length) {
47
- return null;
48
- }
49
- const [item] = payload;
50
- const key = `${labelKey || item.dataKey || item.name || "value"}`;
51
- const itemConfig = getPayloadConfigFromPayload(config, item, key);
52
- const value = !labelKey && typeof label === "string"
53
- ? config[label]?.label || label
54
- : itemConfig?.label;
55
- if (labelFormatter) {
56
- return (_jsx("div", { className: cn("font-medium", labelClassName), children: labelFormatter(value, payload) }));
57
- }
58
- if (!value) {
59
- return null;
60
- }
61
- return _jsx("div", { className: cn("font-medium", labelClassName), children: value });
62
- }, [
63
- label,
64
- labelFormatter,
65
- payload,
66
- hideLabel,
67
- labelClassName,
68
- config,
69
- labelKey,
70
- ]);
71
- if (!active || !payload?.length) {
72
- return null;
73
- }
74
- const nestLabel = payload.length === 1 && indicator !== "dot";
75
- return (_jsxs("div", { ref: ref, className: cn("grid min-w-[8rem] items-start gap-1.5 rounded-lg border border-border/50 bg-background px-2.5 py-1.5 text-xs shadow-xl", className), children: [!nestLabel ? tooltipLabel : null, _jsx("div", { className: "grid gap-1.5", children: payload.map((item, index) => {
76
- const key = `${nameKey || item.name || item.dataKey || "value"}`;
77
- const itemConfig = getPayloadConfigFromPayload(config, item, key);
78
- const indicatorColor = color || item.payload.fill || item.color;
79
- return (_jsx("div", { className: cn("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground", indicator === "dot" && "items-center"), children: formatter && item?.value !== undefined && item.name ? (formatter(item.value, item.name, item, index, item.payload)) : (_jsxs(_Fragment, { children: [itemConfig?.icon ? (_jsx(itemConfig.icon, {})) : (!hideIndicator && (_jsx("div", { className: cn("shrink-0 rounded-[2px] border-[--color-border] bg-[--color-bg]", {
80
- "h-2.5 w-2.5": indicator === "dot",
81
- "w-1": indicator === "line",
82
- "w-0 border-[1.5px] border-dashed bg-transparent": indicator === "dashed",
83
- "my-0.5": nestLabel && indicator === "dashed",
84
- }), style: {
85
- "--color-bg": indicatorColor,
86
- "--color-border": indicatorColor,
87
- } }))), _jsxs("div", { className: cn("flex flex-1 justify-between leading-none", nestLabel ? "items-end" : "items-center"), children: [_jsxs("div", { className: "grid gap-1.5", children: [nestLabel ? tooltipLabel : null, _jsx("span", { className: "text-muted-foreground", children: itemConfig?.label || item.name })] }), item.value && (_jsx("span", { className: "font-mono font-medium tabular-nums text-foreground", children: item.value.toLocaleString() }))] })] })) }, item.dataKey));
88
- }) })] }));
89
- });
90
- ChartTooltipContent.displayName = "ChartTooltip";
91
- const ChartLegend = RechartsPrimitive.Legend;
92
- const ChartLegendContent = React.forwardRef(({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
93
- const { config } = useChart();
94
- if (!payload?.length) {
95
- return null;
96
- }
97
- return (_jsx("div", { ref: ref, className: cn("flex items-center justify-center gap-4", verticalAlign === "top" ? "pb-3" : "pt-3", className), children: payload.map((item) => {
98
- const key = `${nameKey || item.dataKey || "value"}`;
99
- const itemConfig = getPayloadConfigFromPayload(config, item, key);
100
- return (_jsxs("div", { className: cn("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"), children: [itemConfig?.icon && !hideIcon ? (_jsx(itemConfig.icon, {})) : (_jsx("div", { className: "h-2 w-2 shrink-0 rounded-[2px]", style: {
101
- backgroundColor: item.color,
102
- } })), itemConfig?.label] }, item.value));
103
- }) }));
104
- });
105
- ChartLegendContent.displayName = "ChartLegend";
106
- // Helper to extract item config from a payload.
107
- function getPayloadConfigFromPayload(config, payload, key) {
108
- if (typeof payload !== "object" || payload === null) {
109
- return undefined;
110
- }
111
- const payloadPayload = "payload" in payload &&
112
- typeof payload.payload === "object" &&
113
- payload.payload !== null
114
- ? payload.payload
115
- : undefined;
116
- let configLabelKey = key;
117
- if (key in payload &&
118
- typeof payload[key] === "string") {
119
- configLabelKey = payload[key];
120
- }
121
- else if (payloadPayload &&
122
- key in payloadPayload &&
123
- typeof payloadPayload[key] === "string") {
124
- configLabelKey = payloadPayload[key];
125
- }
126
- return configLabelKey in config
127
- ? config[configLabelKey]
128
- : config[key];
129
- }
130
- export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, };
@@ -1,5 +0,0 @@
1
- import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
2
- import * as React from 'react';
3
- declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
4
- export { Checkbox };
5
- //# sourceMappingURL=checkbox.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAE9D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,QAAQ,iKAgBb,CAAC;AAGF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -1,8 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
3
- import { Check } from 'lucide-react';
4
- import * as React from 'react';
5
- import { cn } from '@/lib/utils';
6
- const Checkbox = React.forwardRef(({ className, value, ...props }, ref) => (_jsx(CheckboxPrimitive.Root, { ref: ref, checked: !!value, className: cn('peer h-4 w-4 shrink-0 rounded-sm border ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-background-primary data-[state=checked]:text-primary-foreground', className), ...props, children: _jsx(CheckboxPrimitive.Indicator, { className: cn('flex items-center justify-center text-current'), children: _jsx(Check, { className: 'h-4 w-4' }) }) })));
7
- Checkbox.displayName = CheckboxPrimitive.Root.displayName;
8
- export { Checkbox };
@@ -1,6 +0,0 @@
1
- import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
2
- declare const Collapsible: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & import("react").RefAttributes<HTMLDivElement>>;
3
- declare const CollapsibleTrigger: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
4
- declare const CollapsibleContent: import("react").ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & import("react").RefAttributes<HTMLDivElement>>;
5
- export { Collapsible, CollapsibleTrigger, CollapsibleContent };
6
- //# sourceMappingURL=collapsible.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/ui/collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,oBAAoB,MAAM,6BAA6B,CAAA;AAEnE,QAAA,MAAM,WAAW,kIAA4B,CAAA;AAE7C,QAAA,MAAM,kBAAkB,4IAA0C,CAAA;AAElE,QAAA,MAAM,kBAAkB,yIAA0C,CAAA;AAElE,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAA"}
@@ -1,5 +0,0 @@
1
- import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
2
- const Collapsible = CollapsiblePrimitive.Root;
3
- const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger;
4
- const CollapsibleContent = CollapsiblePrimitive.CollapsibleContent;
5
- export { Collapsible, CollapsibleTrigger, CollapsibleContent };
@@ -1,81 +0,0 @@
1
- import { type DialogProps } from "@radix-ui/react-dialog";
2
- import * as React from "react";
3
- declare const Command: React.ForwardRefExoticComponent<Omit<{
4
- children?: React.ReactNode;
5
- } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
6
- ref?: React.Ref<HTMLDivElement>;
7
- } & {
8
- asChild?: boolean;
9
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
10
- label?: string;
11
- shouldFilter?: boolean;
12
- filter?: (value: string, search: string, keywords?: string[]) => number;
13
- defaultValue?: string;
14
- value?: string;
15
- onValueChange?: (value: string) => void;
16
- loop?: boolean;
17
- disablePointerSelection?: boolean;
18
- vimBindings?: boolean;
19
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
20
- declare const CommandDialog: ({ children, ...props }: DialogProps) => import("react/jsx-runtime").JSX.Element;
21
- declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
22
- ref?: React.Ref<HTMLInputElement>;
23
- } & {
24
- asChild?: boolean;
25
- }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value" | "type"> & {
26
- value?: string;
27
- onValueChange?: (search: string) => void;
28
- } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
29
- declare const CommandList: React.ForwardRefExoticComponent<Omit<{
30
- children?: React.ReactNode;
31
- } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
32
- ref?: React.Ref<HTMLDivElement>;
33
- } & {
34
- asChild?: boolean;
35
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
36
- label?: string;
37
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
38
- declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
39
- children?: React.ReactNode;
40
- } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
41
- ref?: React.Ref<HTMLDivElement>;
42
- } & {
43
- asChild?: boolean;
44
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
45
- declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
46
- children?: React.ReactNode;
47
- } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
48
- ref?: React.Ref<HTMLDivElement>;
49
- } & {
50
- asChild?: boolean;
51
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
52
- heading?: React.ReactNode;
53
- value?: string;
54
- forceMount?: boolean;
55
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
56
- declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
57
- ref?: React.Ref<HTMLDivElement>;
58
- } & {
59
- asChild?: boolean;
60
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
61
- alwaysRender?: boolean;
62
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
63
- declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
64
- children?: React.ReactNode;
65
- } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
66
- ref?: React.Ref<HTMLDivElement>;
67
- } & {
68
- asChild?: boolean;
69
- }, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
70
- disabled?: boolean;
71
- onSelect?: (value: string) => void;
72
- value?: string;
73
- keywords?: string[];
74
- forceMount?: boolean;
75
- } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
76
- declare const CommandShortcut: {
77
- ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
78
- displayName: string;
79
- };
80
- export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
81
- //# sourceMappingURL=command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/components/ui/command.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAGzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,QAAA,MAAM,OAAO;;;;;;;;;qDA0IuhL,CAAC;;;;;;;sFA9HniL,CAAA;AAGF,QAAA,MAAM,aAAa,GAAI,wBAAwB,WAAW,4CAUzD,CAAA;AAED,QAAA,MAAM,YAAY;;;;;;;0FAehB,CAAA;AAIF,QAAA,MAAM,WAAW;;;;;;;;sFASf,CAAA;AAIF,QAAA,MAAM,YAAY;;;;;;uJAShB,CAAA;AAIF,QAAA,MAAM,YAAY;;;;;;;;;;sFAYhB,CAAA;AAIF,QAAA,MAAM,gBAAgB;;;;;;sFASpB,CAAA;AAGF,QAAA,MAAM,WAAW;;;;;;;;;;;;sFAYf,CAAA;AAIF,QAAA,MAAM,eAAe;8BAGlB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;;CAUvC,CAAA;AAGD,OAAO,EACL,OAAO,EACP,aAAa,EAAE,YAAY,EAC3B,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,eAAe,EACxF,CAAA"}
@@ -1,28 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cn } from "@/lib/utils";
3
- import { Command as CommandPrimitive } from "cmdk";
4
- import { Search } from "lucide-react";
5
- import * as React from "react";
6
- import { Dialog, DialogContent } from "./dialog";
7
- const Command = React.forwardRef(({ className, ...props }, ref) => (_jsx(CommandPrimitive, { ref: ref, className: cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", className), ...props })));
8
- Command.displayName = CommandPrimitive.displayName;
9
- const CommandDialog = ({ children, ...props }) => {
10
- return (_jsx(Dialog, { ...props, children: _jsx(DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: _jsx(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: children }) }) }));
11
- };
12
- const CommandInput = React.forwardRef(({ className, ...props }, ref) => (_jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [_jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), _jsx(CommandPrimitive.Input, { ref: ref, className: cn("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", className), ...props })] })));
13
- CommandInput.displayName = CommandPrimitive.Input.displayName;
14
- const CommandList = React.forwardRef(({ className, ...props }, ref) => (_jsx(CommandPrimitive.List, { ref: ref, className: cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className), ...props })));
15
- CommandList.displayName = CommandPrimitive.List.displayName;
16
- const CommandEmpty = React.forwardRef((props, ref) => (_jsx(CommandPrimitive.Empty, { ref: ref, className: "py-6 text-center text-sm", ...props })));
17
- CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
18
- const CommandGroup = React.forwardRef(({ className, ...props }, ref) => (_jsx(CommandPrimitive.Group, { ref: ref, className: cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", className), ...props })));
19
- CommandGroup.displayName = CommandPrimitive.Group.displayName;
20
- const CommandSeparator = React.forwardRef(({ className, ...props }, ref) => (_jsx(CommandPrimitive.Separator, { ref: ref, className: cn("-mx-1 h-px bg-border", className), ...props })));
21
- CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
22
- const CommandItem = React.forwardRef(({ className, ...props }, ref) => (_jsx(CommandPrimitive.Item, { ref: ref, className: cn("relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", className), ...props })));
23
- CommandItem.displayName = CommandPrimitive.Item.displayName;
24
- const CommandShortcut = ({ className, ...props }) => {
25
- return (_jsx("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props }));
26
- };
27
- CommandShortcut.displayName = "CommandShortcut";
28
- export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
@@ -1,28 +0,0 @@
1
- import * as React from "react";
2
- import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
3
- declare const ContextMenu: React.FC<ContextMenuPrimitive.ContextMenuProps>;
4
- declare const ContextMenuTrigger: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & React.RefAttributes<HTMLSpanElement>>;
5
- declare const ContextMenuGroup: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
6
- declare const ContextMenuPortal: React.FC<ContextMenuPrimitive.ContextMenuPortalProps>;
7
- declare const ContextMenuSub: React.FC<ContextMenuPrimitive.ContextMenuSubProps>;
8
- declare const ContextMenuRadioGroup: React.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
9
- declare const ContextMenuSubTrigger: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
10
- inset?: boolean;
11
- } & React.RefAttributes<HTMLDivElement>>;
12
- declare const ContextMenuSubContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
- declare const ContextMenuContent: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
- declare const ContextMenuItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
15
- inset?: boolean;
16
- } & React.RefAttributes<HTMLDivElement>>;
17
- declare const ContextMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
18
- declare const ContextMenuRadioItem: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
- declare const ContextMenuLabel: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
20
- inset?: boolean;
21
- } & React.RefAttributes<HTMLDivElement>>;
22
- declare const ContextMenuSeparator: React.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
- declare const ContextMenuShortcut: {
24
- ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
25
- displayName: string;
26
- };
27
- export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuPortal, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuRadioGroup, };
28
- //# sourceMappingURL=context-menu.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/context-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAA;AAKpE,QAAA,MAAM,WAAW,iDAA4B,CAAA;AAE7C,QAAA,MAAM,kBAAkB,sHAA+B,CAAA;AAEvD,QAAA,MAAM,gBAAgB,mHAA6B,CAAA;AAEnD,QAAA,MAAM,iBAAiB,uDAA8B,CAAA;AAErD,QAAA,MAAM,cAAc,oDAA2B,CAAA;AAE/C,QAAA,MAAM,qBAAqB,wHAAkC,CAAA;AAE7D,QAAA,MAAM,qBAAqB;YAGf,OAAO;wCAejB,CAAA;AAGF,QAAA,MAAM,qBAAqB,2KAYzB,CAAA;AAGF,QAAA,MAAM,kBAAkB,wKActB,CAAA;AAGF,QAAA,MAAM,eAAe;YAGT,OAAO;wCAYjB,CAAA;AAGF,QAAA,MAAM,uBAAuB,6KAoB3B,CAAA;AAIF,QAAA,MAAM,oBAAoB,0KAmBxB,CAAA;AAGF,QAAA,MAAM,gBAAgB;YAGV,OAAO;wCAYjB,CAAA;AAGF,QAAA,MAAM,oBAAoB,0KASxB,CAAA;AAGF,QAAA,MAAM,mBAAmB;8BAGtB,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;;CAUvC,CAAA;AAGD,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,GACtB,CAAA"}
@@ -1,33 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
4
- import { Check, ChevronRight, Circle } from "lucide-react";
5
- import { cn } from "@/lib/utils";
6
- const ContextMenu = ContextMenuPrimitive.Root;
7
- const ContextMenuTrigger = ContextMenuPrimitive.Trigger;
8
- const ContextMenuGroup = ContextMenuPrimitive.Group;
9
- const ContextMenuPortal = ContextMenuPrimitive.Portal;
10
- const ContextMenuSub = ContextMenuPrimitive.Sub;
11
- const ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
12
- const ContextMenuSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => (_jsxs(ContextMenuPrimitive.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 focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground", inset && "pl-8", className), ...props, children: [children, _jsx(ChevronRight, { className: "ml-auto h-4 w-4" })] })));
13
- ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
14
- const ContextMenuSubContent = React.forwardRef(({ className, ...props }, ref) => (_jsx(ContextMenuPrimitive.SubContent, { ref: ref, 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 })));
15
- ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
16
- const ContextMenuContent = React.forwardRef(({ className, ...props }, ref) => (_jsx(ContextMenuPrimitive.Portal, { children: _jsx(ContextMenuPrimitive.Content, { ref: ref, className: cn("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 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
- ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
18
- const ContextMenuItem = React.forwardRef(({ className, inset, ...props }, ref) => (_jsx(ContextMenuPrimitive.Item, { ref: ref, className: cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", inset && "pl-8", className), ...props })));
19
- ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
20
- const ContextMenuCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => (_jsxs(ContextMenuPrimitive.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 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(ContextMenuPrimitive.ItemIndicator, { children: _jsx(Check, { className: "h-4 w-4" }) }) }), children] })));
21
- ContextMenuCheckboxItem.displayName =
22
- ContextMenuPrimitive.CheckboxItem.displayName;
23
- const ContextMenuRadioItem = React.forwardRef(({ className, children, ...props }, ref) => (_jsxs(ContextMenuPrimitive.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 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(ContextMenuPrimitive.ItemIndicator, { children: _jsx(Circle, { className: "h-2 w-2 fill-current" }) }) }), children] })));
24
- ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
25
- const ContextMenuLabel = React.forwardRef(({ className, inset, ...props }, ref) => (_jsx(ContextMenuPrimitive.Label, { ref: ref, className: cn("px-2 py-1.5 text-sm font-semibold text-foreground", inset && "pl-8", className), ...props })));
26
- ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
27
- const ContextMenuSeparator = React.forwardRef(({ className, ...props }, ref) => (_jsx(ContextMenuPrimitive.Separator, { ref: ref, className: cn("-mx-1 my-1 h-px bg-border", className), ...props })));
28
- ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName;
29
- const ContextMenuShortcut = ({ className, ...props }) => {
30
- return (_jsx("span", { className: cn("ml-auto text-xs tracking-widest text-muted-foreground", className), ...props }));
31
- };
32
- ContextMenuShortcut.displayName = "ContextMenuShortcut";
33
- export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuPortal, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuRadioGroup, };
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { DayPicker } from 'react-day-picker';
3
- export type CalendarProps = React.ComponentProps<typeof DayPicker>;
4
- interface CalendarFormProps extends React.HTMLAttributes<HTMLDivElement> {
5
- onDateSelected: (selectedDateProps: Date | null) => void;
6
- selectedDateProps?: Date | null;
7
- startYear?: number;
8
- endYear?: number;
9
- }
10
- declare const DatePicker: React.ForwardRefExoticComponent<CalendarFormProps & React.RefAttributes<HTMLDivElement>>;
11
- export { DatePicker };
12
- //# sourceMappingURL=date-picker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/custom/date-picker.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAM7C,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;AAEnE,UAAU,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACvE,cAAc,EAAE,CAAC,iBAAiB,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IACzD,iBAAiB,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,UAAU,0FA0Ef,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -1,35 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cn } from '@/lib/utils';
3
- import { getMonth, getYear, setMonth, setYear } from 'date-fns';
4
- import { ptBR } from 'date-fns/locale';
5
- import { Calendar as CalendarIcon } from 'lucide-react';
6
- import React, { useState } from 'react';
7
- import { Calendar as CalendarComponent } from '../calendar';
8
- import { Popover, PopoverContent, PopoverTrigger } from '../popover';
9
- import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '../select';
10
- const DatePicker = React.forwardRef(({ className, onDateSelected, selectedDateProps, startYear = getYear(new Date()) - 100, endYear = getYear(new Date()) + 100, ...props }, ref) => {
11
- const [selectedDate, setSelectedDate] = useState(null);
12
- const [isPopoverOpen, setIsPopoverOpen] = useState(false);
13
- const months = ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'];
14
- const years = Array.from({ length: endYear - startYear + 1 }, (_, i) => startYear + i);
15
- const handleMonthChange = (month) => {
16
- if (selectedDate) {
17
- const newDate = setMonth(selectedDate, months.indexOf(month));
18
- setSelectedDate(newDate);
19
- }
20
- };
21
- const handleYearChange = (year) => {
22
- if (selectedDate) {
23
- const newDate = setYear(selectedDate, parseInt(year, 10));
24
- setSelectedDate(newDate);
25
- }
26
- };
27
- const handleDateChange = (selectedDate) => {
28
- const newDate = selectedDate || null;
29
- setSelectedDate(newDate);
30
- setIsPopoverOpen(false);
31
- onDateSelected(newDate);
32
- };
33
- return (_jsx("div", { className: cn('gap-2', className), ref: ref, ...props, children: _jsxs(Popover, { open: isPopoverOpen, onOpenChange: setIsPopoverOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsx(CalendarIcon, { size: 16, className: 'cursor-pointer text-gray-500', onClick: () => setIsPopoverOpen(true) }) }), _jsxs(PopoverContent, { className: 'w-auto p-0 flex flex-col justify-center', align: 'start', children: [_jsxs("div", { className: 'flex justify-between pt-5 px-5', children: [_jsxs(Select, { onValueChange: handleMonthChange, value: months[getMonth(selectedDate || new Date())], children: [_jsx(SelectTrigger, { className: 'w-[100px]', children: _jsx(SelectValue, { placeholder: 'Month' }) }), _jsx(SelectContent, { children: months.map((month) => (_jsx(SelectItem, { value: month, children: month }, month))) })] }), _jsxs(Select, { onValueChange: handleYearChange, value: getYear(selectedDate || new Date()).toString(), children: [_jsx(SelectTrigger, { className: 'w-[100px]', children: _jsx(SelectValue, { placeholder: 'Year' }) }), _jsx(SelectContent, { children: years.map((year) => (_jsx(SelectItem, { value: year.toString(), children: year }, year))) })] })] }), _jsx(CalendarComponent, { mode: 'single', locale: ptBR, onSelect: handleDateChange, className: 'bg-white text-black', month: selectedDate || undefined })] })] }) }));
34
- });
35
- export { DatePicker };
@@ -1,13 +0,0 @@
1
- interface Props {
2
- control: any;
3
- name: string;
4
- label: string;
5
- subLabel?: string;
6
- helpText?: JSX.Element;
7
- className?: string;
8
- disabled?: boolean;
9
- onCheckedChange?: (checked: boolean) => void;
10
- }
11
- export declare const FormInputCheckbox: React.FC<Props>;
12
- export {};
13
- //# sourceMappingURL=checkbox.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/custom/form/checkbox.tsx"],"names":[],"mappings":"AAMA,UAAU,KAAK;IACd,OAAO,EAAE,GAAG,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC7C;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAmC7C,CAAC"}
@@ -1,15 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Checkbox } from '@/components/ui/checkbox';
3
- import * as FormComponents from '../../form';
4
- import { formHelpText } from './form-help-text';
5
- import { formLabel } from './form-label';
6
- import { formMessage } from './form-message';
7
- export const FormInputCheckbox = ({ control, name, label, helpText, className, disabled, onCheckedChange }) => {
8
- const { FormField, FormItem, FormLabel, FormControl, FormMessage } = FormComponents;
9
- return (_jsx(FormField, { control: control, name: name, render: ({ field }) => (_jsxs(FormItem, { className: className, children: [_jsxs("div", { className: 'flex items-center gap-2', children: [_jsx(FormControl, { children: _jsx(Checkbox, { value: field.value, className: `${field.value
10
- ? 'bg-purple-700 border border-purple-900 text-white rounded-[3px]'
11
- : 'bg-white border border-black text-black'}`, onCheckedChange: (checked) => {
12
- field?.onChange?.(checked);
13
- onCheckedChange?.(checked);
14
- }, disabled: disabled }) }), _jsxs("div", { className: 'flex h-full items-center space-x-1.5', children: [label && formLabel(FormLabel, label), helpText && formHelpText(helpText)] })] }), formMessage(FormMessage)] })) }));
15
- };
@@ -1,15 +0,0 @@
1
- interface Props {
2
- control: any;
3
- id?: string;
4
- name: string;
5
- label: string;
6
- subLabel?: string;
7
- helpText?: JSX.Element;
8
- placeholder?: string;
9
- className?: string;
10
- disabled?: boolean;
11
- required?: boolean;
12
- }
13
- export declare const FormInputColor: React.FC<Props>;
14
- export {};
15
- //# sourceMappingURL=color.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/custom/form/color.tsx"],"names":[],"mappings":"AAcA,UAAU,KAAK;IACd,OAAO,EAAE,GAAG,CAAC;IACb,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAgH1C,CAAC"}
@@ -1,40 +0,0 @@
1
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
2
- import { Button } from '@/components/ui/button';
3
- import { Input } from '@/components/ui/input';
4
- import { Label } from '@/components/ui/label';
5
- import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';
6
- import { cn } from '@/lib/utils';
7
- import { Paintbrush } from 'lucide-react';
8
- import { useState } from 'react';
9
- import { HexColorPicker } from 'react-colorful';
10
- import * as FormComponents from '../../form';
11
- import { formHelpText } from './form-help-text';
12
- import { formLabelAndSubLabel } from './form-label';
13
- import { formMessage } from './form-message';
14
- import { hexToRgb, rgbToHex } from './utils';
15
- export const FormInputColor = ({ control, name, label, subLabel, helpText, placeholder, className, disabled, required }) => {
16
- const { FormField, FormItem, FormLabel, FormControl, FormMessage } = FormComponents;
17
- const DEFAULT_COLOR = '#000000';
18
- const [currentColor, setCurrentColor] = useState(DEFAULT_COLOR);
19
- const rgb = hexToRgb(currentColor) || { r: 0, g: 0, b: 0 };
20
- const handleColorChange = (newColor, onChange) => {
21
- onChange?.(newColor);
22
- setCurrentColor(newColor);
23
- };
24
- const handleHexChange = (hex, onChange) => {
25
- if (/^#[0-9A-Fa-f]{6}$/.test(hex)) {
26
- handleColorChange(hex, onChange);
27
- }
28
- else {
29
- setCurrentColor(hex);
30
- }
31
- };
32
- const handleRgbChange = (key, value, onChange) => {
33
- const numValue = Number.parseInt(value);
34
- if (!Number.isNaN(numValue) && numValue >= 0 && numValue <= 255) {
35
- const newRgb = { ...rgb, [key]: numValue };
36
- handleColorChange(rgbToHex(newRgb), onChange);
37
- }
38
- };
39
- return (_jsx(FormField, { control: control, name: name, render: ({ field, formState }) => (_jsxs(FormItem, { className: className, children: [_jsxs("div", { className: 'flex items-center space-x-1.5', children: [label && formLabelAndSubLabel(FormLabel, label, subLabel, required), helpText && formHelpText(helpText)] }), _jsxs(Popover, { children: [_jsx(PopoverTrigger, { asChild: true, children: _jsx(FormControl, { children: _jsx(Button, { variant: 'outline', className: cn('w-[240px] justify-start text-left font-normal', !field.value && 'text-zinc-500', className), disabled: disabled || formState.isSubmitting, children: _jsxs("div", { className: 'w-full flex items-center gap-2', children: [field.value ? (_jsx("div", { className: 'h-4 w-4 rounded !bg-center !bg-cover transition-all border', style: { backgroundColor: field.value } })) : (_jsx(Paintbrush, { className: 'h-4 w-4' })), _jsx("div", { className: 'truncate flex-1 text-sm', children: field.value ? field.value : placeholder || 'Selecione uma cor' })] }) }) }) }), _jsx(PopoverContent, { className: cn('w-80', className), children: _jsxs("div", { className: 'flex flex-col gap-4', children: [_jsx("section", { className: '[&_.react-colorful]:w-auto', children: _jsx(HexColorPicker, { color: field.value ?? DEFAULT_COLOR, onChange: (newColor) => handleColorChange(newColor, field.onChange) }) }), _jsxs("div", { className: 'flex gap-2', children: [_jsxs("div", { className: 'flex flex-col gap-1', children: [_jsx(Label, { children: "Hex" }), _jsx(Input, { value: currentColor, onChange: (e) => handleHexChange(e.target.value, field.onChange), maxLength: 7 })] }), _jsxs("div", { className: 'flex gap-2', children: [_jsxs("div", { className: 'flex flex-col gap-1', children: [_jsx(Label, { children: "R" }), _jsx(Input, { value: rgb.r, onChange: (e) => handleRgbChange('r', e.target.value, field.onChange), className: 'w-14' })] }), _jsxs("div", { className: 'flex flex-col gap-1', children: [_jsx(Label, { children: "G" }), _jsx(Input, { value: rgb.g, onChange: (e) => handleRgbChange('g', e.target.value, field.onChange), className: 'w-14' })] }), _jsxs("div", { className: 'flex flex-col gap-1', children: [_jsx(Label, { children: "B" }), _jsx(Input, { value: rgb.b, onChange: (e) => handleRgbChange('b', e.target.value, field.onChange), className: 'w-14' })] })] })] })] }) })] }), formMessage(FormMessage)] })) }));
40
- };
@@ -1,37 +0,0 @@
1
- export interface ComboboxOption {
2
- value: string | undefined;
3
- icon?: React.ReactNode | undefined;
4
- title: string;
5
- subTitle?: string;
6
- className?: string;
7
- }
8
- interface Props {
9
- control: any;
10
- name: string;
11
- label?: string;
12
- subLabel?: string;
13
- helpText?: JSX.Element;
14
- placeholder?: string;
15
- className?: string;
16
- disabled?: boolean;
17
- required?: boolean;
18
- options: ComboboxOption[];
19
- selectedOption?: ComboboxOption;
20
- iconLeft?: React.ReactNode | null;
21
- iconRight?: React.ReactNode | null;
22
- addEmptyOption?: boolean;
23
- canUnselect?: boolean;
24
- closePopUpOnChange?: boolean;
25
- runInternalSearch?: boolean;
26
- disabledSearch?: boolean;
27
- onChange?: (option: ComboboxOption | undefined) => void;
28
- onSearch?: (searchString: string) => void;
29
- footerAction?: {
30
- label: string;
31
- icon?: React.ReactNode;
32
- onClick: () => void;
33
- };
34
- }
35
- export declare const FormCombobox: React.FC<Props>;
36
- export {};
37
- //# sourceMappingURL=combobox.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"combobox.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/custom/form/combobox.tsx"],"names":[],"mappings":"AAYA,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,KAAK;IACd,OAAO,EAAE,GAAG,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;IAClC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;IACnC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,cAAc,GAAG,SAAS,KAAK,IAAI,CAAC;IACxD,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,YAAY,CAAC,EAAE;QACd,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QACvB,OAAO,EAAE,MAAM,IAAI,CAAC;KACpB,CAAC;CACF;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAkNxC,CAAC"}