eai-frontend-components 2.0.6 → 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 (586) hide show
  1. package/dist/index.d.ts +24 -73
  2. package/dist/index.esm.js +2 -2
  3. package/dist/index.esm.js.map +1 -1
  4. package/dist/index.js +2 -2
  5. package/dist/index.js.map +1 -1
  6. package/package.json +1 -1
  7. package/dist/components/accordion.d.ts +0 -8
  8. package/dist/components/accordion.d.ts.map +0 -1
  9. package/dist/components/accordion.js +0 -13
  10. package/dist/components/alert-dialog.d.ts +0 -25
  11. package/dist/components/alert-dialog.d.ts.map +0 -1
  12. package/dist/components/alert-dialog.js +0 -27
  13. package/dist/components/alert.d.ts +0 -9
  14. package/dist/components/alert.d.ts.map +0 -1
  15. package/dist/components/alert.js +0 -22
  16. package/dist/components/avatar.d.ts +0 -7
  17. package/dist/components/avatar.d.ts.map +0 -1
  18. package/dist/components/avatar.js +0 -11
  19. package/dist/components/badge.d.ts +0 -10
  20. package/dist/components/badge.d.ts.map +0 -1
  21. package/dist/components/badge.js +0 -26
  22. package/dist/components/breadcrumb.d.ts +0 -20
  23. package/dist/components/breadcrumb.d.ts.map +0 -1
  24. package/dist/components/breadcrumb.js +0 -23
  25. package/dist/components/button.d.ts +0 -12
  26. package/dist/components/button.d.ts.map +0 -1
  27. package/dist/components/button.js +0 -33
  28. package/dist/components/calendar.d.ts +0 -9
  29. package/dist/components/calendar.d.ts.map +0 -1
  30. package/dist/components/calendar.js +0 -70
  31. package/dist/components/card.d.ts +0 -9
  32. package/dist/components/card.d.ts.map +0 -1
  33. package/dist/components/card.js +0 -16
  34. package/dist/components/carousel.d.ts +0 -19
  35. package/dist/components/carousel.d.ts.map +0 -1
  36. package/dist/components/carousel.js +0 -98
  37. package/dist/components/chart.d.ts +0 -63
  38. package/dist/components/chart.d.ts.map +0 -1
  39. package/dist/components/chart.js +0 -130
  40. package/dist/components/checkbox.d.ts +0 -5
  41. package/dist/components/checkbox.d.ts.map +0 -1
  42. package/dist/components/checkbox.js +0 -8
  43. package/dist/components/collapsible.d.ts +0 -6
  44. package/dist/components/collapsible.d.ts.map +0 -1
  45. package/dist/components/collapsible.js +0 -5
  46. package/dist/components/command.d.ts +0 -81
  47. package/dist/components/command.d.ts.map +0 -1
  48. package/dist/components/command.js +0 -28
  49. package/dist/components/context-menu.d.ts +0 -28
  50. package/dist/components/context-menu.d.ts.map +0 -1
  51. package/dist/components/context-menu.js +0 -33
  52. package/dist/components/custom/date-picker.d.ts +0 -12
  53. package/dist/components/custom/date-picker.d.ts.map +0 -1
  54. package/dist/components/custom/date-picker.js +0 -35
  55. package/dist/components/custom/form/checkbox.d.ts +0 -13
  56. package/dist/components/custom/form/checkbox.d.ts.map +0 -1
  57. package/dist/components/custom/form/checkbox.js +0 -15
  58. package/dist/components/custom/form/color.d.ts +0 -15
  59. package/dist/components/custom/form/color.d.ts.map +0 -1
  60. package/dist/components/custom/form/color.js +0 -40
  61. package/dist/components/custom/form/combobox.d.ts +0 -37
  62. package/dist/components/custom/form/combobox.d.ts.map +0 -1
  63. package/dist/components/custom/form/combobox.js +0 -82
  64. package/dist/components/custom/form/cpf-cnpj.d.ts +0 -16
  65. package/dist/components/custom/form/cpf-cnpj.d.ts.map +0 -1
  66. package/dist/components/custom/form/cpf-cnpj.js +0 -32
  67. package/dist/components/custom/form/currency.d.ts +0 -14
  68. package/dist/components/custom/form/currency.d.ts.map +0 -1
  69. package/dist/components/custom/form/currency.js +0 -15
  70. package/dist/components/custom/form/date-range.d.ts +0 -16
  71. package/dist/components/custom/form/date-range.d.ts.map +0 -1
  72. package/dist/components/custom/form/date-range.js +0 -24
  73. package/dist/components/custom/form/date.d.ts +0 -16
  74. package/dist/components/custom/form/date.d.ts.map +0 -1
  75. package/dist/components/custom/form/date.js +0 -35
  76. package/dist/components/custom/form/decimal.d.ts +0 -14
  77. package/dist/components/custom/form/decimal.d.ts.map +0 -1
  78. package/dist/components/custom/form/decimal.js +0 -15
  79. package/dist/components/custom/form/file.d.ts +0 -15
  80. package/dist/components/custom/form/file.d.ts.map +0 -1
  81. package/dist/components/custom/form/file.js +0 -18
  82. package/dist/components/custom/form/form-help-text.d.ts +0 -3
  83. package/dist/components/custom/form/form-help-text.d.ts.map +0 -1
  84. package/dist/components/custom/form/form-help-text.js +0 -7
  85. package/dist/components/custom/form/form-label.d.ts +0 -4
  86. package/dist/components/custom/form/form-label.d.ts.map +0 -1
  87. package/dist/components/custom/form/form-label.js +0 -9
  88. package/dist/components/custom/form/form-message.d.ts +0 -3
  89. package/dist/components/custom/form/form-message.d.ts.map +0 -1
  90. package/dist/components/custom/form/form-message.js +0 -5
  91. package/dist/components/custom/form/ghost.d.ts +0 -8
  92. package/dist/components/custom/form/ghost.d.ts.map +0 -1
  93. package/dist/components/custom/form/ghost.js +0 -8
  94. package/dist/components/custom/form/input.d.ts +0 -18
  95. package/dist/components/custom/form/input.d.ts.map +0 -1
  96. package/dist/components/custom/form/input.js +0 -14
  97. package/dist/components/custom/form/mask.d.ts +0 -19
  98. package/dist/components/custom/form/mask.d.ts.map +0 -1
  99. package/dist/components/custom/form/mask.js +0 -19
  100. package/dist/components/custom/form/multi-select-old.d.ts +0 -19
  101. package/dist/components/custom/form/multi-select-old.d.ts.map +0 -1
  102. package/dist/components/custom/form/multi-select-old.js +0 -30
  103. package/dist/components/custom/form/multi-select.d.ts +0 -26
  104. package/dist/components/custom/form/multi-select.d.ts.map +0 -1
  105. package/dist/components/custom/form/multi-select.js +0 -66
  106. package/dist/components/custom/form/password.d.ts +0 -16
  107. package/dist/components/custom/form/password.d.ts.map +0 -1
  108. package/dist/components/custom/form/password.js +0 -14
  109. package/dist/components/custom/form/percent.d.ts +0 -14
  110. package/dist/components/custom/form/percent.d.ts.map +0 -1
  111. package/dist/components/custom/form/percent.js +0 -15
  112. package/dist/components/custom/form/phone.d.ts +0 -16
  113. package/dist/components/custom/form/phone.d.ts.map +0 -1
  114. package/dist/components/custom/form/phone.js +0 -23
  115. package/dist/components/custom/form/radio-group.d.ts +0 -23
  116. package/dist/components/custom/form/radio-group.d.ts.map +0 -1
  117. package/dist/components/custom/form/radio-group.js +0 -15
  118. package/dist/components/custom/form/select.d.ts +0 -20
  119. package/dist/components/custom/form/select.d.ts.map +0 -1
  120. package/dist/components/custom/form/select.js +0 -12
  121. package/dist/components/custom/form/step-new-form.d.ts +0 -10
  122. package/dist/components/custom/form/step-new-form.d.ts.map +0 -1
  123. package/dist/components/custom/form/step-new-form.js +0 -13
  124. package/dist/components/custom/form/switch.d.ts +0 -13
  125. package/dist/components/custom/form/switch.d.ts.map +0 -1
  126. package/dist/components/custom/form/switch.js +0 -16
  127. package/dist/components/custom/form/text.d.ts +0 -18
  128. package/dist/components/custom/form/text.d.ts.map +0 -1
  129. package/dist/components/custom/form/text.js +0 -14
  130. package/dist/components/custom/form/textarea.d.ts +0 -16
  131. package/dist/components/custom/form/textarea.d.ts.map +0 -1
  132. package/dist/components/custom/form/textarea.js +0 -19
  133. package/dist/components/custom/form/utils.d.ts +0 -18
  134. package/dist/components/custom/form/utils.d.ts.map +0 -1
  135. package/dist/components/custom/form/utils.js +0 -88
  136. package/dist/components/custom/header.d.ts +0 -3
  137. package/dist/components/custom/header.d.ts.map +0 -1
  138. package/dist/components/custom/header.js +0 -94
  139. package/dist/components/custom/label.d.ts +0 -13
  140. package/dist/components/custom/label.d.ts.map +0 -1
  141. package/dist/components/custom/label.js +0 -20
  142. package/dist/components/custom/not-found.d.ts +0 -3
  143. package/dist/components/custom/not-found.d.ts.map +0 -1
  144. package/dist/components/custom/not-found.js +0 -9
  145. package/dist/components/custom/sidebar/app-sidebar.d.ts +0 -5
  146. package/dist/components/custom/sidebar/app-sidebar.d.ts.map +0 -1
  147. package/dist/components/custom/sidebar/app-sidebar.js +0 -26
  148. package/dist/components/custom/sidebar/module-switcher.d.ts +0 -3
  149. package/dist/components/custom/sidebar/module-switcher.d.ts.map +0 -1
  150. package/dist/components/custom/sidebar/module-switcher.js +0 -55
  151. package/dist/components/custom/sidebar/nav-footer.d.ts +0 -3
  152. package/dist/components/custom/sidebar/nav-footer.d.ts.map +0 -1
  153. package/dist/components/custom/sidebar/nav-footer.js +0 -17
  154. package/dist/components/custom/sidebar/nav-main.d.ts +0 -3
  155. package/dist/components/custom/sidebar/nav-main.d.ts.map +0 -1
  156. package/dist/components/custom/sidebar/nav-main.js +0 -32
  157. package/dist/components/custom/sidebar/nav-submenu-collapsible.d.ts +0 -9
  158. package/dist/components/custom/sidebar/nav-submenu-collapsible.d.ts.map +0 -1
  159. package/dist/components/custom/sidebar/nav-submenu-collapsible.js +0 -21
  160. package/dist/components/custom/sidebar/nav-submenu-dropdown.d.ts +0 -10
  161. package/dist/components/custom/sidebar/nav-submenu-dropdown.d.ts.map +0 -1
  162. package/dist/components/custom/sidebar/nav-submenu-dropdown.js +0 -13
  163. package/dist/components/custom/sidebar/nav-user.d.ts +0 -3
  164. package/dist/components/custom/sidebar/nav-user.d.ts.map +0 -1
  165. package/dist/components/custom/sidebar/nav-user.js +0 -51
  166. package/dist/components/custom/sidebar/sidebar-button.d.ts +0 -9
  167. package/dist/components/custom/sidebar/sidebar-button.d.ts.map +0 -1
  168. package/dist/components/custom/sidebar/sidebar-button.js +0 -7
  169. package/dist/components/custom/sidebar/sidebar-item-two-lines.d.ts +0 -12
  170. package/dist/components/custom/sidebar/sidebar-item-two-lines.d.ts.map +0 -1
  171. package/dist/components/custom/sidebar/sidebar-item-two-lines.js +0 -5
  172. package/dist/components/custom/sidebar/sidebar-item.d.ts +0 -9
  173. package/dist/components/custom/sidebar/sidebar-item.d.ts.map +0 -1
  174. package/dist/components/custom/sidebar/sidebar-item.js +0 -7
  175. package/dist/components/custom/sidebar/types/sidebar.d.ts +0 -29
  176. package/dist/components/custom/sidebar/types/sidebar.d.ts.map +0 -1
  177. package/dist/components/custom/sidebar/types/sidebar.js +0 -5
  178. package/dist/components/custom/table/data-table-export.d.ts +0 -8
  179. package/dist/components/custom/table/data-table-export.d.ts.map +0 -1
  180. package/dist/components/custom/table/data-table-export.js +0 -65
  181. package/dist/components/custom/table/data-table-footer.d.ts +0 -25
  182. package/dist/components/custom/table/data-table-footer.d.ts.map +0 -1
  183. package/dist/components/custom/table/data-table-footer.js +0 -39
  184. package/dist/components/custom/table/data-table-header.d.ts +0 -9
  185. package/dist/components/custom/table/data-table-header.d.ts.map +0 -1
  186. package/dist/components/custom/table/data-table-header.js +0 -11
  187. package/dist/components/custom/table/data-table-rows.d.ts +0 -13
  188. package/dist/components/custom/table/data-table-rows.d.ts.map +0 -1
  189. package/dist/components/custom/table/data-table-rows.js +0 -25
  190. package/dist/components/custom/table/data-table.d.ts +0 -35
  191. package/dist/components/custom/table/data-table.d.ts.map +0 -1
  192. package/dist/components/custom/table/data-table.js +0 -99
  193. package/dist/components/custom/table/types/data-table.d.ts +0 -29
  194. package/dist/components/custom/table/types/data-table.d.ts.map +0 -1
  195. package/dist/components/custom/table/types/data-table.js +0 -1
  196. package/dist/components/custom/theme-provider.d.ts +0 -24
  197. package/dist/components/custom/theme-provider.d.ts.map +0 -1
  198. package/dist/components/custom/theme-provider.js +0 -79
  199. package/dist/components/dateRangePicker.d.ts +0 -3
  200. package/dist/components/dateRangePicker.d.ts.map +0 -1
  201. package/dist/components/dateRangePicker.js +0 -15
  202. package/dist/components/dialog.d.ts +0 -23
  203. package/dist/components/dialog.d.ts.map +0 -1
  204. package/dist/components/dialog.js +0 -23
  205. package/dist/components/drawer.d.ts +0 -23
  206. package/dist/components/drawer.d.ts.map +0 -1
  207. package/dist/components/drawer.js +0 -22
  208. package/dist/components/dropdown-menu.d.ts +0 -28
  209. package/dist/components/dropdown-menu.d.ts.map +0 -1
  210. package/dist/components/dropdown-menu.js +0 -32
  211. package/dist/components/form.d.ts +0 -24
  212. package/dist/components/form.d.ts.map +0 -1
  213. package/dist/components/form.js +0 -60
  214. package/dist/components/hover-card.d.ts +0 -7
  215. package/dist/components/hover-card.d.ts.map +0 -1
  216. package/dist/components/hover-card.js +0 -9
  217. package/dist/components/input.d.ts +0 -24
  218. package/dist/components/input.d.ts.map +0 -1
  219. package/dist/components/input.js +0 -71
  220. package/dist/components/label.d.ts +0 -6
  221. package/dist/components/label.d.ts.map +0 -1
  222. package/dist/components/label.js +0 -9
  223. package/dist/components/masks.d.ts +0 -17
  224. package/dist/components/masks.d.ts.map +0 -1
  225. package/dist/components/masks.js +0 -25
  226. package/dist/components/pagination.d.ts +0 -30
  227. package/dist/components/pagination.d.ts.map +0 -1
  228. package/dist/components/pagination.js +0 -23
  229. package/dist/components/popover.d.ts +0 -7
  230. package/dist/components/popover.d.ts.map +0 -1
  231. package/dist/components/popover.js +0 -11
  232. package/dist/components/progress.d.ts +0 -5
  233. package/dist/components/progress.d.ts.map +0 -1
  234. package/dist/components/progress.js +0 -7
  235. package/dist/components/radio-group.d.ts +0 -6
  236. package/dist/components/radio-group.d.ts.map +0 -1
  237. package/dist/components/radio-group.js +0 -14
  238. package/dist/components/scroll-area.d.ts +0 -6
  239. package/dist/components/scroll-area.d.ts.map +0 -1
  240. package/dist/components/scroll-area.js +0 -11
  241. package/dist/components/select.d.ts +0 -14
  242. package/dist/components/select.d.ts.map +0 -1
  243. package/dist/components/select.js +0 -24
  244. package/dist/components/separator.d.ts +0 -5
  245. package/dist/components/separator.d.ts.map +0 -1
  246. package/dist/components/separator.js +0 -7
  247. package/dist/components/sheet.d.ts +0 -26
  248. package/dist/components/sheet.d.ts.map +0 -1
  249. package/dist/components/sheet.js +0 -37
  250. package/dist/components/sidebar.d.ts +0 -67
  251. package/dist/components/sidebar.d.ts.map +0 -1
  252. package/dist/components/sidebar.js +0 -221
  253. package/dist/components/skeleton.d.ts +0 -3
  254. package/dist/components/skeleton.d.ts.map +0 -1
  255. package/dist/components/skeleton.js +0 -6
  256. package/dist/components/slider.d.ts +0 -5
  257. package/dist/components/slider.d.ts.map +0 -1
  258. package/dist/components/slider.js +0 -7
  259. package/dist/components/switch.d.ts +0 -5
  260. package/dist/components/switch.d.ts.map +0 -1
  261. package/dist/components/switch.js +0 -7
  262. package/dist/components/table.d.ts +0 -11
  263. package/dist/components/table.d.ts.map +0 -1
  264. package/dist/components/table.js +0 -20
  265. package/dist/components/tabs.d.ts +0 -8
  266. package/dist/components/tabs.d.ts.map +0 -1
  267. package/dist/components/tabs.js +0 -12
  268. package/dist/components/textarea.d.ts +0 -4
  269. package/dist/components/textarea.d.ts.map +0 -1
  270. package/dist/components/textarea.js +0 -14
  271. package/dist/components/toast.d.ts +0 -16
  272. package/dist/components/toast.d.ts.map +0 -1
  273. package/dist/components/toast.js +0 -34
  274. package/dist/components/toaster.d.ts +0 -2
  275. package/dist/components/toaster.d.ts.map +0 -1
  276. package/dist/components/toaster.js +0 -21
  277. package/dist/components/tooltip.d.ts +0 -8
  278. package/dist/components/tooltip.d.ts.map +0 -1
  279. package/dist/components/tooltip.js +0 -10
  280. package/dist/components/ui/accordion.d.ts +0 -8
  281. package/dist/components/ui/accordion.d.ts.map +0 -1
  282. package/dist/components/ui/accordion.js +0 -13
  283. package/dist/components/ui/alert-dialog.d.ts +0 -25
  284. package/dist/components/ui/alert-dialog.d.ts.map +0 -1
  285. package/dist/components/ui/alert-dialog.js +0 -27
  286. package/dist/components/ui/alert.d.ts +0 -9
  287. package/dist/components/ui/alert.d.ts.map +0 -1
  288. package/dist/components/ui/alert.js +0 -22
  289. package/dist/components/ui/avatar.d.ts +0 -7
  290. package/dist/components/ui/avatar.d.ts.map +0 -1
  291. package/dist/components/ui/avatar.js +0 -11
  292. package/dist/components/ui/badge.d.ts +0 -10
  293. package/dist/components/ui/badge.d.ts.map +0 -1
  294. package/dist/components/ui/badge.js +0 -26
  295. package/dist/components/ui/breadcrumb.d.ts +0 -20
  296. package/dist/components/ui/breadcrumb.d.ts.map +0 -1
  297. package/dist/components/ui/breadcrumb.js +0 -23
  298. package/dist/components/ui/button.d.ts +0 -12
  299. package/dist/components/ui/button.d.ts.map +0 -1
  300. package/dist/components/ui/button.js +0 -33
  301. package/dist/components/ui/calendar.d.ts +0 -9
  302. package/dist/components/ui/calendar.d.ts.map +0 -1
  303. package/dist/components/ui/calendar.js +0 -70
  304. package/dist/components/ui/card.d.ts +0 -9
  305. package/dist/components/ui/card.d.ts.map +0 -1
  306. package/dist/components/ui/card.js +0 -16
  307. package/dist/components/ui/carousel.d.ts +0 -19
  308. package/dist/components/ui/carousel.d.ts.map +0 -1
  309. package/dist/components/ui/carousel.js +0 -98
  310. package/dist/components/ui/chart.d.ts +0 -63
  311. package/dist/components/ui/chart.d.ts.map +0 -1
  312. package/dist/components/ui/chart.js +0 -130
  313. package/dist/components/ui/checkbox.d.ts +0 -5
  314. package/dist/components/ui/checkbox.d.ts.map +0 -1
  315. package/dist/components/ui/checkbox.js +0 -8
  316. package/dist/components/ui/collapsible.d.ts +0 -6
  317. package/dist/components/ui/collapsible.d.ts.map +0 -1
  318. package/dist/components/ui/collapsible.js +0 -5
  319. package/dist/components/ui/command.d.ts +0 -81
  320. package/dist/components/ui/command.d.ts.map +0 -1
  321. package/dist/components/ui/command.js +0 -28
  322. package/dist/components/ui/context-menu.d.ts +0 -28
  323. package/dist/components/ui/context-menu.d.ts.map +0 -1
  324. package/dist/components/ui/context-menu.js +0 -33
  325. package/dist/components/ui/custom/date-picker.d.ts +0 -12
  326. package/dist/components/ui/custom/date-picker.d.ts.map +0 -1
  327. package/dist/components/ui/custom/date-picker.js +0 -35
  328. package/dist/components/ui/custom/form/checkbox.d.ts +0 -13
  329. package/dist/components/ui/custom/form/checkbox.d.ts.map +0 -1
  330. package/dist/components/ui/custom/form/checkbox.js +0 -15
  331. package/dist/components/ui/custom/form/color.d.ts +0 -15
  332. package/dist/components/ui/custom/form/color.d.ts.map +0 -1
  333. package/dist/components/ui/custom/form/color.js +0 -40
  334. package/dist/components/ui/custom/form/combobox.d.ts +0 -37
  335. package/dist/components/ui/custom/form/combobox.d.ts.map +0 -1
  336. package/dist/components/ui/custom/form/combobox.js +0 -82
  337. package/dist/components/ui/custom/form/cpf-cnpj.d.ts +0 -16
  338. package/dist/components/ui/custom/form/cpf-cnpj.d.ts.map +0 -1
  339. package/dist/components/ui/custom/form/cpf-cnpj.js +0 -32
  340. package/dist/components/ui/custom/form/currency.d.ts +0 -14
  341. package/dist/components/ui/custom/form/currency.d.ts.map +0 -1
  342. package/dist/components/ui/custom/form/currency.js +0 -15
  343. package/dist/components/ui/custom/form/date-range.d.ts +0 -16
  344. package/dist/components/ui/custom/form/date-range.d.ts.map +0 -1
  345. package/dist/components/ui/custom/form/date-range.js +0 -24
  346. package/dist/components/ui/custom/form/date.d.ts +0 -16
  347. package/dist/components/ui/custom/form/date.d.ts.map +0 -1
  348. package/dist/components/ui/custom/form/date.js +0 -35
  349. package/dist/components/ui/custom/form/decimal.d.ts +0 -14
  350. package/dist/components/ui/custom/form/decimal.d.ts.map +0 -1
  351. package/dist/components/ui/custom/form/decimal.js +0 -15
  352. package/dist/components/ui/custom/form/file.d.ts +0 -15
  353. package/dist/components/ui/custom/form/file.d.ts.map +0 -1
  354. package/dist/components/ui/custom/form/file.js +0 -18
  355. package/dist/components/ui/custom/form/form-help-text.d.ts +0 -3
  356. package/dist/components/ui/custom/form/form-help-text.d.ts.map +0 -1
  357. package/dist/components/ui/custom/form/form-help-text.js +0 -7
  358. package/dist/components/ui/custom/form/form-label.d.ts +0 -7
  359. package/dist/components/ui/custom/form/form-label.d.ts.map +0 -1
  360. package/dist/components/ui/custom/form/form-label.js +0 -9
  361. package/dist/components/ui/custom/form/form-message.d.ts +0 -5
  362. package/dist/components/ui/custom/form/form-message.d.ts.map +0 -1
  363. package/dist/components/ui/custom/form/form-message.js +0 -5
  364. package/dist/components/ui/custom/form/ghost.d.ts +0 -8
  365. package/dist/components/ui/custom/form/ghost.d.ts.map +0 -1
  366. package/dist/components/ui/custom/form/ghost.js +0 -8
  367. package/dist/components/ui/custom/form/input.d.ts +0 -18
  368. package/dist/components/ui/custom/form/input.d.ts.map +0 -1
  369. package/dist/components/ui/custom/form/input.js +0 -14
  370. package/dist/components/ui/custom/form/mask.d.ts +0 -19
  371. package/dist/components/ui/custom/form/mask.d.ts.map +0 -1
  372. package/dist/components/ui/custom/form/mask.js +0 -19
  373. package/dist/components/ui/custom/form/multi-select-old.d.ts +0 -19
  374. package/dist/components/ui/custom/form/multi-select-old.d.ts.map +0 -1
  375. package/dist/components/ui/custom/form/multi-select-old.js +0 -30
  376. package/dist/components/ui/custom/form/multi-select.d.ts +0 -26
  377. package/dist/components/ui/custom/form/multi-select.d.ts.map +0 -1
  378. package/dist/components/ui/custom/form/multi-select.js +0 -66
  379. package/dist/components/ui/custom/form/password.d.ts +0 -16
  380. package/dist/components/ui/custom/form/password.d.ts.map +0 -1
  381. package/dist/components/ui/custom/form/password.js +0 -14
  382. package/dist/components/ui/custom/form/percent.d.ts +0 -14
  383. package/dist/components/ui/custom/form/percent.d.ts.map +0 -1
  384. package/dist/components/ui/custom/form/percent.js +0 -15
  385. package/dist/components/ui/custom/form/phone.d.ts +0 -16
  386. package/dist/components/ui/custom/form/phone.d.ts.map +0 -1
  387. package/dist/components/ui/custom/form/phone.js +0 -23
  388. package/dist/components/ui/custom/form/radio-group.d.ts +0 -23
  389. package/dist/components/ui/custom/form/radio-group.d.ts.map +0 -1
  390. package/dist/components/ui/custom/form/radio-group.js +0 -15
  391. package/dist/components/ui/custom/form/select.d.ts +0 -20
  392. package/dist/components/ui/custom/form/select.d.ts.map +0 -1
  393. package/dist/components/ui/custom/form/select.js +0 -12
  394. package/dist/components/ui/custom/form/step-new-form.d.ts +0 -10
  395. package/dist/components/ui/custom/form/step-new-form.d.ts.map +0 -1
  396. package/dist/components/ui/custom/form/step-new-form.js +0 -13
  397. package/dist/components/ui/custom/form/switch.d.ts +0 -13
  398. package/dist/components/ui/custom/form/switch.d.ts.map +0 -1
  399. package/dist/components/ui/custom/form/switch.js +0 -16
  400. package/dist/components/ui/custom/form/text.d.ts +0 -18
  401. package/dist/components/ui/custom/form/text.d.ts.map +0 -1
  402. package/dist/components/ui/custom/form/text.js +0 -14
  403. package/dist/components/ui/custom/form/textarea.d.ts +0 -16
  404. package/dist/components/ui/custom/form/textarea.d.ts.map +0 -1
  405. package/dist/components/ui/custom/form/textarea.js +0 -19
  406. package/dist/components/ui/custom/form/utils.d.ts +0 -18
  407. package/dist/components/ui/custom/form/utils.d.ts.map +0 -1
  408. package/dist/components/ui/custom/form/utils.js +0 -88
  409. package/dist/components/ui/custom/header.d.ts +0 -11
  410. package/dist/components/ui/custom/header.d.ts.map +0 -1
  411. package/dist/components/ui/custom/header.js +0 -74
  412. package/dist/components/ui/custom/label.d.ts +0 -13
  413. package/dist/components/ui/custom/label.d.ts.map +0 -1
  414. package/dist/components/ui/custom/label.js +0 -20
  415. package/dist/components/ui/custom/not-found.d.ts +0 -3
  416. package/dist/components/ui/custom/not-found.d.ts.map +0 -1
  417. package/dist/components/ui/custom/not-found.js +0 -9
  418. package/dist/components/ui/custom/sidebar/app-sidebar.d.ts +0 -5
  419. package/dist/components/ui/custom/sidebar/app-sidebar.d.ts.map +0 -1
  420. package/dist/components/ui/custom/sidebar/app-sidebar.js +0 -26
  421. package/dist/components/ui/custom/sidebar/module-switcher.d.ts +0 -9
  422. package/dist/components/ui/custom/sidebar/module-switcher.d.ts.map +0 -1
  423. package/dist/components/ui/custom/sidebar/module-switcher.js +0 -55
  424. package/dist/components/ui/custom/sidebar/nav-footer.d.ts +0 -7
  425. package/dist/components/ui/custom/sidebar/nav-footer.d.ts.map +0 -1
  426. package/dist/components/ui/custom/sidebar/nav-footer.js +0 -13
  427. package/dist/components/ui/custom/sidebar/nav-main.d.ts +0 -7
  428. package/dist/components/ui/custom/sidebar/nav-main.d.ts.map +0 -1
  429. package/dist/components/ui/custom/sidebar/nav-main.js +0 -27
  430. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.d.ts +0 -9
  431. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.d.ts.map +0 -1
  432. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.js +0 -18
  433. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.d.ts +0 -10
  434. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.d.ts.map +0 -1
  435. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.js +0 -10
  436. package/dist/components/ui/custom/sidebar/nav-user.d.ts +0 -9
  437. package/dist/components/ui/custom/sidebar/nav-user.d.ts.map +0 -1
  438. package/dist/components/ui/custom/sidebar/nav-user.js +0 -24
  439. package/dist/components/ui/custom/sidebar/sidebar-button.d.ts +0 -9
  440. package/dist/components/ui/custom/sidebar/sidebar-button.d.ts.map +0 -1
  441. package/dist/components/ui/custom/sidebar/sidebar-button.js +0 -7
  442. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.d.ts +0 -12
  443. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.d.ts.map +0 -1
  444. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.js +0 -5
  445. package/dist/components/ui/custom/sidebar/sidebar-item.d.ts +0 -9
  446. package/dist/components/ui/custom/sidebar/sidebar-item.d.ts.map +0 -1
  447. package/dist/components/ui/custom/sidebar/sidebar-item.js +0 -7
  448. package/dist/components/ui/custom/sidebar/sidebar-module-switcher.d.ts +0 -9
  449. package/dist/components/ui/custom/sidebar/sidebar-module-switcher.d.ts.map +0 -1
  450. package/dist/components/ui/custom/sidebar/sidebar-module-switcher.js +0 -20
  451. package/dist/components/ui/custom/sidebar/types/sidebar.d.ts +0 -29
  452. package/dist/components/ui/custom/sidebar/types/sidebar.d.ts.map +0 -1
  453. package/dist/components/ui/custom/sidebar/types/sidebar.js +0 -5
  454. package/dist/components/ui/custom/table/data-table-export.d.ts +0 -8
  455. package/dist/components/ui/custom/table/data-table-export.d.ts.map +0 -1
  456. package/dist/components/ui/custom/table/data-table-export.js +0 -65
  457. package/dist/components/ui/custom/table/data-table-footer.d.ts +0 -25
  458. package/dist/components/ui/custom/table/data-table-footer.d.ts.map +0 -1
  459. package/dist/components/ui/custom/table/data-table-footer.js +0 -39
  460. package/dist/components/ui/custom/table/data-table-header.d.ts +0 -9
  461. package/dist/components/ui/custom/table/data-table-header.d.ts.map +0 -1
  462. package/dist/components/ui/custom/table/data-table-header.js +0 -11
  463. package/dist/components/ui/custom/table/data-table-rows.d.ts +0 -13
  464. package/dist/components/ui/custom/table/data-table-rows.d.ts.map +0 -1
  465. package/dist/components/ui/custom/table/data-table-rows.js +0 -25
  466. package/dist/components/ui/custom/table/data-table.d.ts +0 -35
  467. package/dist/components/ui/custom/table/data-table.d.ts.map +0 -1
  468. package/dist/components/ui/custom/table/data-table.js +0 -99
  469. package/dist/components/ui/custom/table/types/data-table.d.ts +0 -29
  470. package/dist/components/ui/custom/table/types/data-table.d.ts.map +0 -1
  471. package/dist/components/ui/custom/table/types/data-table.js +0 -1
  472. package/dist/components/ui/custom/theme-provider.d.ts +0 -24
  473. package/dist/components/ui/custom/theme-provider.d.ts.map +0 -1
  474. package/dist/components/ui/custom/theme-provider.js +0 -79
  475. package/dist/components/ui/dateRangePicker.d.ts +0 -3
  476. package/dist/components/ui/dateRangePicker.d.ts.map +0 -1
  477. package/dist/components/ui/dateRangePicker.js +0 -15
  478. package/dist/components/ui/dialog.d.ts +0 -23
  479. package/dist/components/ui/dialog.d.ts.map +0 -1
  480. package/dist/components/ui/dialog.js +0 -23
  481. package/dist/components/ui/drawer.d.ts +0 -23
  482. package/dist/components/ui/drawer.d.ts.map +0 -1
  483. package/dist/components/ui/drawer.js +0 -22
  484. package/dist/components/ui/dropdown-menu.d.ts +0 -28
  485. package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
  486. package/dist/components/ui/dropdown-menu.js +0 -32
  487. package/dist/components/ui/form.d.ts +0 -24
  488. package/dist/components/ui/form.d.ts.map +0 -1
  489. package/dist/components/ui/form.js +0 -60
  490. package/dist/components/ui/hover-card.d.ts +0 -7
  491. package/dist/components/ui/hover-card.d.ts.map +0 -1
  492. package/dist/components/ui/hover-card.js +0 -9
  493. package/dist/components/ui/input.d.ts +0 -24
  494. package/dist/components/ui/input.d.ts.map +0 -1
  495. package/dist/components/ui/input.js +0 -71
  496. package/dist/components/ui/label.d.ts +0 -6
  497. package/dist/components/ui/label.d.ts.map +0 -1
  498. package/dist/components/ui/label.js +0 -9
  499. package/dist/components/ui/masks.d.ts +0 -17
  500. package/dist/components/ui/masks.d.ts.map +0 -1
  501. package/dist/components/ui/masks.js +0 -25
  502. package/dist/components/ui/pagination.d.ts +0 -30
  503. package/dist/components/ui/pagination.d.ts.map +0 -1
  504. package/dist/components/ui/pagination.js +0 -23
  505. package/dist/components/ui/popover.d.ts +0 -7
  506. package/dist/components/ui/popover.d.ts.map +0 -1
  507. package/dist/components/ui/popover.js +0 -11
  508. package/dist/components/ui/progress.d.ts +0 -5
  509. package/dist/components/ui/progress.d.ts.map +0 -1
  510. package/dist/components/ui/progress.js +0 -7
  511. package/dist/components/ui/radio-group.d.ts +0 -6
  512. package/dist/components/ui/radio-group.d.ts.map +0 -1
  513. package/dist/components/ui/radio-group.js +0 -14
  514. package/dist/components/ui/scroll-area.d.ts +0 -6
  515. package/dist/components/ui/scroll-area.d.ts.map +0 -1
  516. package/dist/components/ui/scroll-area.js +0 -11
  517. package/dist/components/ui/select.d.ts +0 -14
  518. package/dist/components/ui/select.d.ts.map +0 -1
  519. package/dist/components/ui/select.js +0 -24
  520. package/dist/components/ui/separator.d.ts +0 -5
  521. package/dist/components/ui/separator.d.ts.map +0 -1
  522. package/dist/components/ui/separator.js +0 -7
  523. package/dist/components/ui/sheet.d.ts +0 -26
  524. package/dist/components/ui/sheet.d.ts.map +0 -1
  525. package/dist/components/ui/sheet.js +0 -37
  526. package/dist/components/ui/sidebar.d.ts +0 -67
  527. package/dist/components/ui/sidebar.d.ts.map +0 -1
  528. package/dist/components/ui/sidebar.js +0 -221
  529. package/dist/components/ui/skeleton.d.ts +0 -3
  530. package/dist/components/ui/skeleton.d.ts.map +0 -1
  531. package/dist/components/ui/skeleton.js +0 -6
  532. package/dist/components/ui/slider.d.ts +0 -5
  533. package/dist/components/ui/slider.d.ts.map +0 -1
  534. package/dist/components/ui/slider.js +0 -7
  535. package/dist/components/ui/switch.d.ts +0 -5
  536. package/dist/components/ui/switch.d.ts.map +0 -1
  537. package/dist/components/ui/switch.js +0 -7
  538. package/dist/components/ui/table.d.ts +0 -11
  539. package/dist/components/ui/table.d.ts.map +0 -1
  540. package/dist/components/ui/table.js +0 -20
  541. package/dist/components/ui/tabs.d.ts +0 -8
  542. package/dist/components/ui/tabs.d.ts.map +0 -1
  543. package/dist/components/ui/tabs.js +0 -12
  544. package/dist/components/ui/textarea.d.ts +0 -4
  545. package/dist/components/ui/textarea.d.ts.map +0 -1
  546. package/dist/components/ui/textarea.js +0 -14
  547. package/dist/components/ui/toast.d.ts +0 -16
  548. package/dist/components/ui/toast.d.ts.map +0 -1
  549. package/dist/components/ui/toast.js +0 -34
  550. package/dist/components/ui/toaster.d.ts +0 -2
  551. package/dist/components/ui/toaster.d.ts.map +0 -1
  552. package/dist/components/ui/toaster.js +0 -21
  553. package/dist/components/ui/tooltip.d.ts +0 -8
  554. package/dist/components/ui/tooltip.d.ts.map +0 -1
  555. package/dist/components/ui/tooltip.js +0 -10
  556. package/dist/components/ui/use-calendar.d.ts +0 -7
  557. package/dist/components/ui/use-calendar.d.ts.map +0 -1
  558. package/dist/components/ui/use-calendar.js +0 -23
  559. package/dist/components/ui/use-toast.d.ts +0 -46
  560. package/dist/components/ui/use-toast.d.ts.map +0 -1
  561. package/dist/components/ui/use-toast.js +0 -125
  562. package/dist/components/use-calendar.d.ts +0 -7
  563. package/dist/components/use-calendar.d.ts.map +0 -1
  564. package/dist/components/use-calendar.js +0 -23
  565. package/dist/components/use-toast.d.ts +0 -46
  566. package/dist/components/use-toast.d.ts.map +0 -1
  567. package/dist/components/use-toast.js +0 -125
  568. package/dist/hooks/use-mobile.d.ts +0 -2
  569. package/dist/hooks/use-mobile.d.ts.map +0 -1
  570. package/dist/hooks/use-mobile.js +0 -15
  571. package/dist/index.d.ts.map +0 -1
  572. package/dist/lib/help/date-utils.d.ts +0 -7
  573. package/dist/lib/help/date-utils.d.ts.map +0 -1
  574. package/dist/lib/help/date-utils.js +0 -34
  575. package/dist/lib/help/format.d.ts +0 -22
  576. package/dist/lib/help/format.d.ts.map +0 -1
  577. package/dist/lib/help/format.js +0 -140
  578. package/dist/lib/help/theme.d.ts +0 -291
  579. package/dist/lib/help/theme.d.ts.map +0 -1
  580. package/dist/lib/help/theme.js +0 -340
  581. package/dist/lib/help/uuid.d.ts +0 -2
  582. package/dist/lib/help/uuid.d.ts.map +0 -1
  583. package/dist/lib/help/uuid.js +0 -4
  584. package/dist/lib/utils.d.ts +0 -3
  585. package/dist/lib/utils.d.ts.map +0 -1
  586. package/dist/lib/utils.js +0 -5
@@ -1,88 +0,0 @@
1
- export const rgbToHex = ({ r, g, b }) => {
2
- const toHex = (n) => Math.max(0, Math.min(255, n)).toString(16).padStart(2, '0').toUpperCase();
3
- return `#${toHex(r)}${toHex(g)}${toHex(b)}`;
4
- };
5
- export const hexToRgb = (hex) => {
6
- const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
7
- return result
8
- ? {
9
- r: Number.parseInt(result[1], 16),
10
- g: Number.parseInt(result[2], 16),
11
- b: Number.parseInt(result[3], 16),
12
- }
13
- : null;
14
- };
15
- export const rgbToHsl = ({ r, g, b }) => {
16
- r /= 255;
17
- g /= 255;
18
- b /= 255;
19
- const max = Math.max(r, g, b);
20
- const min = Math.min(r, g, b);
21
- let h = 0;
22
- let s = 0;
23
- const l = (max + min) / 2;
24
- if (max !== min) {
25
- const d = max - min;
26
- s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
27
- switch (max) {
28
- case r:
29
- h = (g - b) / d + (g < b ? 6 : 0);
30
- break;
31
- case g:
32
- h = (b - r) / d + 2;
33
- break;
34
- case b:
35
- h = (r - g) / d + 4;
36
- break;
37
- }
38
- h /= 6;
39
- }
40
- return {
41
- h: Math.round(h * 360),
42
- s: Math.round(s * 100),
43
- l: Math.round(l * 100),
44
- };
45
- };
46
- const hue2rgb = (p, q, t) => {
47
- let tempT = t;
48
- if (tempT < 0)
49
- tempT += 1;
50
- if (tempT > 1)
51
- tempT -= 1;
52
- if (tempT < 1 / 6)
53
- return p + (q - p) * 6 * tempT;
54
- if (tempT < 1 / 2)
55
- return q;
56
- if (tempT < 2 / 3)
57
- return p + (q - p) * (2 / 3 - tempT) * 6;
58
- return p;
59
- };
60
- export const hslToRgb = ({ h, s, l }) => {
61
- h /= 360;
62
- s /= 100;
63
- l /= 100;
64
- let r;
65
- let g;
66
- let b;
67
- if (s === 0) {
68
- r = g = b = l;
69
- }
70
- else {
71
- const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
72
- const p = 2 * l - q;
73
- r = hue2rgb(p, q, h + 1 / 3);
74
- g = hue2rgb(p, q, h);
75
- b = hue2rgb(p, q, h - 1 / 3);
76
- }
77
- return {
78
- r: Math.round(r * 255),
79
- g: Math.round(g * 255),
80
- b: Math.round(b * 255),
81
- };
82
- };
83
- export const formatRgba = (rgb, a = 1) => {
84
- return `rgba(${rgb.r}, ${rgb.g}, ${rgb.b}, ${a})`;
85
- };
86
- export const formatHsla = (hsl, a = 1) => {
87
- return `hsla(${hsl.h}, ${hsl.s}%, ${hsl.l}%, ${a})`;
88
- };
@@ -1,11 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { Module, SidebarPage } from './sidebar/types/sidebar';
3
- declare const Header: ({ splittedPath, modules, pages, isLoading, combobox, }: {
4
- splittedPath: string[];
5
- modules: Module[];
6
- pages: SidebarPage[];
7
- isLoading: boolean;
8
- combobox: ReactNode;
9
- }) => import("react/jsx-runtime").JSX.Element;
10
- export default Header;
11
- //# sourceMappingURL=header.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/custom/header.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAqB,MAAM,OAAO,CAAC;AAMrD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAG9D,QAAA,MAAM,MAAM,GAAI,wDAMb;IAAE,YAAY,EAAE,MAAM,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,EAAE,WAAW,EAAE,CAAC;IAAC,SAAS,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,4CA8G9G,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -1,74 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { getTailwindColorShades } from '@/lib/help/theme';
3
- import { useEffect, useRef } from 'react';
4
- import { useNavigate } from 'react-router-dom';
5
- import LoadingBar from 'react-top-loading-bar';
6
- import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from '../breadcrumb';
7
- import { SidebarTrigger } from '../sidebar';
8
- import { DEFAULT_THEME_DATA, useTheme } from './theme-provider';
9
- const Header = ({ splittedPath, modules, pages, isLoading, combobox, }) => {
10
- const { portalDefinitions } = useTheme();
11
- const navigate = useNavigate();
12
- const refProgressLoading = useRef(null);
13
- const lastPage = splittedPath[splittedPath.length - 1];
14
- useEffect(() => {
15
- isLoading ? refProgressLoading.current?.start() : refProgressLoading.current?.complete();
16
- }, [isLoading]);
17
- const setRouter = (path) => {
18
- navigate(path);
19
- };
20
- const getPath = (index) => {
21
- let path = '';
22
- for (let i = 0; i <= index; i++) {
23
- path += `/${splittedPath[i]}`;
24
- }
25
- return path;
26
- };
27
- const getLinkSidebar = (index) => {
28
- return pages.find((item) => item.path === getPath(index));
29
- };
30
- const getSubMenuItem = (index) => {
31
- return pages.flatMap((item) => item.subMenuItems || []).find((sub) => sub.path === getPath(index));
32
- };
33
- const getModule = (page) => {
34
- const module = modules.find((mod) => mod.value === page);
35
- if (!module) {
36
- return page;
37
- }
38
- return module?.title;
39
- };
40
- const getTitle = (index) => {
41
- const linkSidebar = getLinkSidebar(index);
42
- const subMenuItem = getSubMenuItem(index);
43
- if (subMenuItem) {
44
- return subMenuItem.label;
45
- }
46
- return linkSidebar?.title;
47
- };
48
- const renderBreadcrumbPage = (index) => {
49
- return _jsx(BreadcrumbPage, { children: getTitle(index) });
50
- };
51
- const renderBreadcrumbLink = (page, index) => {
52
- const linkSidebar = getLinkSidebar(index);
53
- return linkSidebar?.subMenuType ? (renderBreadcrumbPage(index)) : (_jsx(BreadcrumbLink, { onClick: () => setRouter(getPath(index)), className: 'cursor-pointer', children: index === 0 ? getModule(page) : getTitle(index) }));
54
- };
55
- const renderBreadcrumbItens = () => {
56
- const breadcrumbItems = [];
57
- splittedPath.map((page, index) => {
58
- breadcrumbItems.push(_jsx(BreadcrumbItem, { children: page === lastPage ? renderBreadcrumbPage(index) : renderBreadcrumbLink(page, index) }, `breadcrumb-item-${index}`));
59
- if (page !== lastPage) {
60
- breadcrumbItems.push(_jsx(BreadcrumbSeparator, { className: 'mt-[1px]' }, `breadcrumb-separator-${index}`));
61
- }
62
- });
63
- return breadcrumbItems;
64
- };
65
- const getColorLoadingBar = () => {
66
- const colorShades = getTailwindColorShades();
67
- const tailwindColor = portalDefinitions?.mvnoPrimaryColor || DEFAULT_THEME_DATA.mvnoPrimaryColor;
68
- const isValidColor = (color) => color in colorShades;
69
- const colorPallete = isValidColor(tailwindColor) ? colorShades[tailwindColor] : colorShades.violet;
70
- return colorPallete[900];
71
- };
72
- return (_jsxs("header", { className: 'flex flex-col justify-between items-center w-full', children: [_jsxs("div", { className: 'flex justify-between items-center py-3 px-5 w-full', children: [_jsxs("div", { className: 'flex items-center gap-x-2 h-[40px]', children: [_jsx(SidebarTrigger, { className: 'p-5' }), _jsx("div", { className: 'p-2', children: _jsx(Breadcrumb, { children: _jsx(BreadcrumbList, { children: renderBreadcrumbItens() }) }) })] }), _jsx("div", { className: 'flex items-center', children: combobox })] }), _jsx(LoadingBar, { ref: refProgressLoading, color: getColorLoadingBar(), height: 7 })] }));
73
- };
74
- export default Header;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- interface LabelWithTitleProps {
3
- title: string;
4
- value: string;
5
- value2?: string;
6
- required?: boolean;
7
- showCopyIcon?: boolean;
8
- className?: string;
9
- isLoading?: boolean;
10
- }
11
- declare const LabelWithTitle: React.FC<LabelWithTitleProps>;
12
- export default LabelWithTitle;
13
- //# sourceMappingURL=label.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/custom/label.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,UAAU,mBAAmB;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA0DjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,20 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cn } from '@/lib/utils';
3
- import { Copy } from 'lucide-react';
4
- import { Button } from '../button';
5
- import { Skeleton } from '../skeleton';
6
- import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../tooltip';
7
- import { toast } from '../use-toast';
8
- const LabelWithTitle = ({ title, value, value2, required, showCopyIcon = false, className, isLoading }) => {
9
- const handleCopy = () => {
10
- if (showCopyIcon && value) {
11
- navigator.clipboard.writeText(`${value}${value2 ?? ''}`);
12
- toast({
13
- title: `"${value}${value2 ?? ''}" foi copiado para a área de transferência.`,
14
- variant: 'success',
15
- });
16
- }
17
- };
18
- return (_jsx("div", { className: cn('flex group', className), children: _jsx("div", { className: cn('flex flex-col text-sm w-full', showCopyIcon ? 'p-1 rounded-md transition-colors group-hover:bg-sidebar-accent' : 'p-1'), children: _jsxs("div", { className: 'relative', children: [_jsxs("div", { className: 'flex items-center text-sm font-medium gap-0.5', children: [_jsx("label", { className: 'text-default truncate', children: title }), required && _jsx("div", { className: 'text-red-500 truncate', children: "*" })] }), _jsx("div", { className: 'grid flex-1 items-center pt-1', children: isLoading ? _jsx(Skeleton, { className: 'h-5 w-full rounded-lg' }) : _jsx("div", { className: 'text-zinc-500 truncate', children: value }) }), value2 && (_jsx("div", { className: 'grid flex-1 items-center pt-1', children: isLoading ? _jsx(Skeleton, { className: 'h-5 w-full rounded-lg' }) : _jsx("div", { className: 'text-zinc-500 truncate', children: value2 }) })), _jsx("div", { className: cn('pr-1 absolute top-1/2 right-0 -translate-y-1/2 opacity-0 transition-opacity', showCopyIcon && 'group-hover:opacity-100'), children: _jsx(TooltipProvider, { children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsx(Button, { variant: 'ghost', type: 'button', className: cn('p-1 h-8', !showCopyIcon && 'cursor-default'), onClick: handleCopy, children: _jsx(Copy, { size: 16 }) }) }), _jsx(TooltipContent, { children: "Copiar" })] }) }) })] }) }) }));
19
- };
20
- export default LabelWithTitle;
@@ -1,3 +0,0 @@
1
- declare const NotFound: () => import("react/jsx-runtime").JSX.Element;
2
- export default NotFound;
3
- //# sourceMappingURL=not-found.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"not-found.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/custom/not-found.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,QAAQ,+CAyBb,CAAC;AACF,eAAe,QAAQ,CAAC"}
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { BarChart2 } from 'lucide-react';
3
- import { Button } from '../button';
4
- const NotFound = () => {
5
- return (_jsx("div", { className: "flex flex-col items-center justify-center h-screen bg-[url('/imgs/404.png')] bg-cover bg-no-repeat bg-center", children: _jsxs("div", { className: 'flex flex-col items-center justify-center gap-8 w-[424px]', children: [_jsxs("div", { className: 'flex flex-col items-center w-full', children: [_jsx("div", { className: 'text-5xl font-extrabold', children: "404" }), _jsx("div", { className: 'text-3xl font-semibold', children: "P\u00E1gina Indispon\u00EDvel" })] }), _jsx("div", { className: 'flex text-center text-xl font-semibold text-zinc-500', children: "A p\u00E1gina que voc\u00EA est\u00E1 tentando acessar se encontra indispon\u00EDvel no momento, tente novamente mais tarde" }), _jsx("div", { className: 'flex justify-center w-full', children: _jsxs(Button, { onClick: () => {
6
- window.location.href = '/';
7
- }, className: '[&_svg]:size-5', children: [_jsx(BarChart2, {}), "Voltar Para Inicial"] }) })] }) }));
8
- };
9
- export default NotFound;
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { Sidebar } from '../../sidebar';
3
- declare const AppSidebar: ({ ...props }: React.ComponentProps<typeof Sidebar>) => import("react/jsx-runtime").JSX.Element;
4
- export default AppSidebar;
5
- //# sourceMappingURL=app-sidebar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-sidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/custom/sidebar/app-sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAkE,MAAM,eAAe,CAAC;AAOxG,QAAA,MAAM,UAAU,GAAI,cAAc,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,4CAqCrE,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,26 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useEffect, useRef, useState } from 'react';
3
- import { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarSeparator } from '../../sidebar';
4
- import { useTheme } from '../theme-provider';
5
- import ModuleSwitcher from './module-switcher';
6
- import NavFooter from './nav-footer';
7
- import NavMain from './nav-main';
8
- import NavUser from './nav-user';
9
- const AppSidebar = ({ ...props }) => {
10
- const [collapsed, setCollapsed] = useState(false);
11
- const sidebarRef = useRef(null);
12
- const { portalDefinitions } = useTheme();
13
- useEffect(() => {
14
- const el = sidebarRef.current;
15
- if (!el)
16
- return;
17
- const observer = new MutationObserver(() => {
18
- setCollapsed(el.getAttribute('data-state') === 'collapsed');
19
- });
20
- observer.observe(el, { attributes: true, attributeFilter: ['data-state'] });
21
- setCollapsed(el.getAttribute('data-state') === 'collapsed');
22
- return () => observer.disconnect();
23
- }, []);
24
- return (_jsxs(Sidebar, { ref: sidebarRef, collapsible: 'icon', ...props, className: 'sidebar-content', children: [_jsx(SidebarHeader, { children: portalDefinitions.hideModuleSwitcher ? (_jsx("div", { className: 'flex items-center justify-center', children: !collapsed && _jsx("img", { src: portalDefinitions.fullLogoPath, alt: 'Logo', className: 'w-fit h-10' }) })) : (_jsx(ModuleSwitcher, {})) }), _jsx(SidebarContent, { children: _jsx(NavMain, {}) }), _jsxs(SidebarFooter, { children: [_jsx(NavFooter, {}), _jsx(SidebarSeparator, {}), _jsx(NavUser, {})] })] }));
25
- };
26
- export default AppSidebar;
@@ -1,9 +0,0 @@
1
- import { Module } from './types/sidebar';
2
- interface ModuleSwitcherProps {
3
- modules: Module[];
4
- activeModule: Module | undefined;
5
- onModuleChange: (module: Module) => void;
6
- }
7
- declare const ModuleSwitcher: ({ modules, activeModule, onModuleChange, }: ModuleSwitcherProps) => import("react/jsx-runtime").JSX.Element;
8
- export default ModuleSwitcher;
9
- //# sourceMappingURL=module-switcher.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module-switcher.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/custom/sidebar/module-switcher.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,mBAAmB;IAC5B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED,QAAA,MAAM,cAAc,GAAI,4CAIrB,mBAAmB,4CAuCrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,55 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { getPagesByModule } from '@/lib/help/sidebar';
3
- import { useLogin } from '@/lib/hooks/auth';
4
- import { activeModuleAtom, resellerIdAtom, resellerPersonIdAtom } from '@/lib/store/auth';
5
- import { useAtomValue, useSetAtom } from 'jotai';
6
- import { Check, ChevronsUpDown } from 'lucide-react';
7
- import { useEffect, useState } from 'react';
8
- import { useNavigate } from 'react-router-dom';
9
- import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from './dropdown-menu';
10
- import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar } from './sidebar';
11
- import SidebarItemTwoLines from './sidebar-item-two-lines';
12
- const ModuleSwitcher = () => {
13
- const { getConfiguredModules } = useLogin();
14
- const { isMobile } = useSidebar();
15
- const navigate = useNavigate();
16
- const [activeModule, setActiveModule] = useState();
17
- const [modules, setModules] = useState([]);
18
- const resellerId = useAtomValue(resellerIdAtom);
19
- const resellerPersonId = useAtomValue(resellerPersonIdAtom);
20
- const activeModuleValue = useAtomValue(activeModuleAtom);
21
- const setActiveModuleValue = useSetAtom(activeModuleAtom);
22
- useEffect(() => {
23
- fetchModules();
24
- }, []);
25
- useEffect(() => {
26
- setActiveModule(modules.find((module) => module.value === activeModuleValue) ?? modules[0]);
27
- }, [modules, activeModuleValue]);
28
- const fetchModules = async () => {
29
- const configuredModules = await getConfiguredModules(resellerPersonId, resellerId === '0');
30
- if (configuredModules) {
31
- setModules(configuredModules);
32
- }
33
- };
34
- const handleModuleChange = (module) => {
35
- setActiveModuleValue(module);
36
- if (module) {
37
- const firstLink = getPagesByModule(module)[0];
38
- if (firstLink) {
39
- navigate(firstLink.path);
40
- }
41
- }
42
- };
43
- return (_jsx(SidebarMenu, { children: _jsx(SidebarMenuItem, { children: _jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsx(SidebarMenuButton, { size: 'lg', className: 'data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground', children: _jsx(SidebarItemTwoLines, { item: {
44
- iconLeft: (_jsx("div", { className: 'flex p-[7.6px] items-center rounded-md bg-background-primary', children: activeModule?.icon })),
45
- title: activeModule?.title ?? '',
46
- subTitle: activeModule?.subTitle ?? '',
47
- iconRight: _jsx(ChevronsUpDown, { size: 16 }),
48
- } }) }) }), _jsx(DropdownMenuContent, { className: 'w-[250px] rounded-lg', align: 'start', side: isMobile ? 'bottom' : 'right', sideOffset: 4, children: modules.map((module) => (_jsx(DropdownMenuItem, { onClick: () => handleModuleChange(module.value), className: 'gap-2 p-2', children: _jsx(SidebarItemTwoLines, { item: {
49
- iconLeft: _jsx("div", { className: 'flex p-[7.6px] items-center rounded-md bg-background-primary', children: module.icon }),
50
- title: module.title,
51
- subTitle: module.subTitle,
52
- iconRight: activeModule?.value === module.value ? _jsx(Check, { size: 16 }) : null,
53
- } }) }, `module-switcher-${module.value}`))) })] }) }) }));
54
- };
55
- export default ModuleSwitcher;
@@ -1,7 +0,0 @@
1
- import { SidebarPage } from './types/sidebar';
2
- interface NavFooterProps {
3
- pages: SidebarPage[];
4
- }
5
- declare const NavFooter: ({ pages }: NavFooterProps) => import("react/jsx-runtime").JSX.Element;
6
- export default NavFooter;
7
- //# sourceMappingURL=nav-footer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nav-footer.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/custom/sidebar/nav-footer.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,UAAU,cAAc;IACvB,KAAK,EAAE,WAAW,EAAE,CAAC;CACrB;AAED,QAAA,MAAM,SAAS,GAAI,WAAS,cAAc,4CAuBzC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useLocation, useNavigate } from 'react-router-dom';
3
- import { SidebarGroup, SidebarGroupContent, SidebarMenu } from '../../sidebar';
4
- import SidebarItem from './sidebar-item';
5
- const NavFooter = ({ pages }) => {
6
- const navigate = useNavigate();
7
- const location = useLocation();
8
- const selectedRoutePath = location.pathname;
9
- return (_jsx(SidebarGroup, { className: 'p-0', children: _jsx(SidebarGroupContent, { children: _jsx(SidebarMenu, { children: pages.map((item) => {
10
- return (_jsx(SidebarItem, { item: item, selectedRoute: selectedRoutePath, onClick: () => navigate(item.path) }, `sidebar-menu-main-${item.path}`));
11
- }) }) }) }));
12
- };
13
- export default NavFooter;
@@ -1,7 +0,0 @@
1
- import { SidebarPage } from './types/sidebar';
2
- interface NavMainProps {
3
- pages: SidebarPage[];
4
- }
5
- declare const NavMain: ({ pages }: NavMainProps) => import("react/jsx-runtime").JSX.Element;
6
- export default NavMain;
7
- //# sourceMappingURL=nav-main.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nav-main.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/custom/sidebar/nav-main.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAsB,MAAM,iBAAiB,CAAC;AAElE,UAAU,YAAY;IACrB,KAAK,EAAE,WAAW,EAAE,CAAC;CACrB;AAED,QAAA,MAAM,OAAO,GAAI,WAAS,YAAY,4CAiDrC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,27 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useIsMobile } from '@/hooks/use-mobile';
3
- import { useLocation, useNavigate } from 'react-router-dom';
4
- import { SidebarGroup, SidebarGroupContent, SidebarMenu } from '../../sidebar';
5
- import NavSubmenuCollapsible from './nav-submenu-collapsible';
6
- import NavSubmenuDropdown from './nav-submenu-dropdown';
7
- import SidebarItem from './sidebar-item';
8
- import { SidebarSubmenuType } from './types/sidebar';
9
- const NavMain = ({ pages }) => {
10
- const navigate = useNavigate();
11
- const location = useLocation();
12
- const isMobile = useIsMobile();
13
- const selectedRoutePath = location.pathname;
14
- return (_jsx(SidebarGroup, { children: _jsx(SidebarGroupContent, { children: _jsx(SidebarMenu, { children: pages.map((item) => {
15
- if (item.subMenuType) {
16
- if (item.subMenuType === SidebarSubmenuType.COLLAPSIBLE || isMobile) {
17
- return (_jsx(NavSubmenuCollapsible, { item: item, selectedRoute: selectedRoutePath, onClick: (path) => navigate(path) }, `sidebar-submenu-collapsible-${item.path}`));
18
- }
19
- // Deprecated: Use COLLAPSIBLE instead
20
- if (item.subMenuType === SidebarSubmenuType.DROPDOWN) {
21
- return (_jsx(NavSubmenuDropdown, { item: item, selectedRoute: selectedRoutePath, onClick: (path) => navigate(path), cols: 3 }, `sidebar-submenu-dropdown-${item.path}`));
22
- }
23
- }
24
- return (_jsx(SidebarItem, { item: item, selectedRoute: selectedRoutePath, onClick: () => navigate(item.path) }, `sidebar-menu-main-${item.path}`));
25
- }) }) }) }));
26
- };
27
- export default NavMain;
@@ -1,9 +0,0 @@
1
- import { SidebarPage } from './types/sidebar';
2
- interface NavSubmenuCollapsibleProps {
3
- item: SidebarPage;
4
- selectedRoute: string | null;
5
- onClick: (path: string) => void;
6
- }
7
- declare const NavSubmenuCollapsible: ({ item, selectedRoute, onClick }: NavSubmenuCollapsibleProps) => import("react/jsx-runtime").JSX.Element;
8
- export default NavSubmenuCollapsible;
9
- //# sourceMappingURL=nav-submenu-collapsible.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nav-submenu-collapsible.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/custom/sidebar/nav-submenu-collapsible.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,UAAU,0BAA0B;IACnC,IAAI,EAAE,WAAW,CAAC;IAClB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAED,QAAA,MAAM,qBAAqB,GAAI,kCAAkC,0BAA0B,4CA6C1F,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -1,18 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cn } from '@/lib/utils';
3
- import { ChevronRight } from 'lucide-react';
4
- import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '../../collapsible';
5
- import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, useSidebar } from '../../sidebar';
6
- const NavSubmenuCollapsible = ({ item, selectedRoute, onClick }) => {
7
- const { open, toggleSidebar } = useSidebar();
8
- const isOpen = () => {
9
- return selectedRoute?.includes(item.path) ?? false;
10
- };
11
- const handleToggleSidebar = () => {
12
- if (!open)
13
- toggleSidebar();
14
- };
15
- return (_jsx(SidebarMenu, { children: _jsx(Collapsible, { asChild: true, defaultOpen: isOpen(), children: _jsxs(SidebarMenuItem, { children: [_jsx(CollapsibleTrigger, { asChild: true, className: 'group/collapsible', children: _jsxs(SidebarMenuButton, { tooltip: item.title, className: 'px-2 py-5 gap-3', onClick: () => handleToggleSidebar(), children: [item.icon, _jsx("span", { children: item.title }), _jsx(ChevronRight, { className: 'ml-auto transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90' })] }) }), _jsx(CollapsibleContent, { children: _jsx(SidebarMenuSub, { children: item.subMenuItems
16
- ?.map((subItem) => (_jsx(SidebarMenuSubItem, { children: _jsx(SidebarMenuSubButton, { asChild: true, onClick: () => onClick(subItem.path), "aria-disabled": subItem.disabled, children: _jsx("div", { className: cn('cursor-pointer px-2 py-1 items-center self-stretch', selectedRoute === subItem.path ? 'bg-sidebar-accent' : ''), children: _jsx("span", { children: subItem.label }) }) }) }, subItem.label))) }) })] }) }, item.title) }));
17
- };
18
- export default NavSubmenuCollapsible;
@@ -1,10 +0,0 @@
1
- import { SidebarPage } from './types/sidebar';
2
- interface NavSubmenuDropdownProps {
3
- cols?: number;
4
- item: SidebarPage;
5
- selectedRoute: string | null;
6
- onClick: (path: string) => void;
7
- }
8
- declare const NavSubmenuDropdown: ({ cols, item, selectedRoute, onClick }: NavSubmenuDropdownProps) => import("react/jsx-runtime").JSX.Element;
9
- export default NavSubmenuDropdown;
10
- //# sourceMappingURL=nav-submenu-dropdown.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nav-submenu-dropdown.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/custom/sidebar/nav-submenu-dropdown.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,UAAU,uBAAuB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,WAAW,CAAC;IAClB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAED,QAAA,MAAM,kBAAkB,GAAI,wCAAwC,uBAAuB,4CAwC1F,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1,10 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cn } from '@/lib/utils';
3
- import { ChevronRight } from 'lucide-react';
4
- import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from '../../dropdown-menu';
5
- import { SidebarMenuButton, SidebarMenuItem } from '../../sidebar';
6
- const NavSubmenuDropdown = ({ cols, item, selectedRoute, onClick }) => {
7
- return (_jsx(SidebarMenuItem, { children: _jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsx(SidebarMenuButton, { asChild: true, className: cn('data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground hover:bg-sidebar-accent px-2 py-5 gap-3 cursor-pointer', selectedRoute?.includes(item.path) ? 'bg-sidebar-accent' : ''), tooltip: item.title, children: _jsxs("div", { children: [item.icon, _jsx("span", { children: item.title }), _jsx(ChevronRight, { className: 'ml-auto' })] }) }) }), _jsx(DropdownMenuContent, { className: `grid grid-cols-${cols ?? '1'} gap-4 p-4`, align: 'start', side: 'right', sideOffset: 4, children: item.subMenuItems
8
- ?.map((subItem, index) => (_jsxs(DropdownMenuItem, { className: cn('flex flex-col items-start text-left max-w-[220px] gap-1 cursor-pointer', selectedRoute === subItem.path ? 'bg-sidebar-accent' : ''), onClick: () => onClick(subItem.path), disabled: subItem.disabled, children: [_jsx("div", { className: 'text-sm font-semibold', children: subItem.label }), _jsx("div", { className: 'text-sm text-muted-foreground', children: subItem.description })] }, `${index}`))) })] }) }));
9
- };
10
- export default NavSubmenuDropdown;
@@ -1,9 +0,0 @@
1
- interface NavUserProps {
2
- userName: string;
3
- userEmail: string;
4
- userInitials: string;
5
- callbackLogout: () => void;
6
- }
7
- declare const NavUser: ({ userName, userEmail, userInitials, callbackLogout }: NavUserProps) => import("react/jsx-runtime").JSX.Element;
8
- export default NavUser;
9
- //# sourceMappingURL=nav-user.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nav-user.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/custom/sidebar/nav-user.tsx"],"names":[],"mappings":"AAOA,UAAU,YAAY;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,QAAA,MAAM,OAAO,GAAI,uDAAqD,YAAY,4CA4DjF,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,24 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { LoaderCircle, LogOut } from 'lucide-react';
3
- import { useState } from 'react';
4
- import { Avatar, AvatarFallback, AvatarImage } from '../../avatar';
5
- import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuTrigger } from '../../dropdown-menu';
6
- import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar } from '../../sidebar';
7
- import SidebarItemTwoLines from './sidebar-item-two-lines';
8
- const NavUser = ({ userName, userEmail, userInitials, callbackLogout }) => {
9
- const [isLoggingOut, setIsLoggingOut] = useState(false);
10
- const { isMobile } = useSidebar();
11
- const handleLogout = () => {
12
- setIsLoggingOut(true);
13
- setTimeout(() => {
14
- callbackLogout();
15
- }, 1000);
16
- };
17
- return (_jsx(SidebarMenu, { children: _jsx(SidebarMenuItem, { children: _jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsx(SidebarMenuButton, { size: 'lg', className: 'data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground', children: _jsx(SidebarItemTwoLines, { item: {
18
- iconLeft: (_jsxs(Avatar, { className: 'h-[31px] w-[31px] rounded-md', children: [_jsx(AvatarImage, { src: userInitials, alt: userName }), _jsx(AvatarFallback, { className: 'rounded-md bg-background-primary text-white', children: userInitials })] })),
19
- title: isLoggingOut ? 'Saindo...' : userName,
20
- subTitle: isLoggingOut ? '' : userEmail,
21
- iconRight: isLoggingOut ? (_jsx(LoaderCircle, { size: 16, className: 'text-sidebar-foreground animate-spin mr-2' })) : (_jsx(LogOut, { size: 16, className: 'text-sidebar-foreground' })),
22
- } }) }) }), _jsxs(DropdownMenuContent, { className: 'w-[250px] rounded-lg', side: isMobile ? 'bottom' : 'right', align: 'end', sideOffset: 4, children: [_jsx(DropdownMenuLabel, { className: 'p-0 font-normal', children: _jsxs("div", { className: 'flex items-center gap-2 px-1 py-1.5 text-left text-sm', children: [_jsxs(Avatar, { className: 'h-8 w-8 rounded-lg', children: [_jsx(AvatarImage, { src: userInitials, alt: userName }), _jsx(AvatarFallback, { className: 'rounded-lg bg-background-primary text-white', children: userInitials })] }), _jsxs("div", { className: 'grid flex-1 text-left text-sm leading-tight', children: [_jsx("span", { className: 'truncate font-semibold', children: userName }), _jsx("span", { className: 'truncate text-xs', children: userEmail })] })] }) }), _jsx(DropdownMenuItem, { className: 'p-0 font-normal cursor-pointer', onClick: () => handleLogout(), children: _jsxs("div", { className: 'flex items-center gap-2 px-1 py-1.5 text-left text-sm', children: [_jsx("div", { className: 'flex w-8 h-8 p-2 items-center rounded-md', children: _jsx(LogOut, { size: 16 }) }), "Log out"] }) })] })] }) }) }));
23
- };
24
- export default NavUser;
@@ -1,9 +0,0 @@
1
- import { Module, SidebarPage } from './types/sidebar';
2
- interface SidebarItemProps {
3
- item: SidebarPage;
4
- selectedRoute: string | null;
5
- onClick?: (module: Module | null, path: string) => void;
6
- }
7
- declare const SidebarButton: ({ item, selectedRoute, onClick }: SidebarItemProps) => import("react/jsx-runtime").JSX.Element;
8
- export default SidebarButton;
9
- //# sourceMappingURL=sidebar-button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sidebar-button.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/custom/sidebar/sidebar-button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEtD,UAAU,gBAAgB;IACzB,IAAI,EAAE,WAAW,CAAC;IAClB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACxD;AAED,QAAA,MAAM,aAAa,GAAI,kCAAkC,gBAAgB,4CAiBxE,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { cn } from '@/lib/utils';
3
- import { SidebarMenuButton } from '../../sidebar';
4
- const SidebarButton = ({ item, selectedRoute, onClick }) => {
5
- return (_jsx(SidebarMenuButton, { asChild: true, className: cn('data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground hover:bg-sidebar-accent px-2 py-5 gap-3 cursor-pointer', selectedRoute?.includes(item.path) ? 'bg-sidebar-accent' : ''), tooltip: item.title, onClick: () => onClick?.(item.module ?? null, item.path), children: _jsxs("div", { children: [_jsx("div", { className: '[&_svg]:size-4 text-sidebar-foreground', children: item.icon }), _jsx("span", { children: item.title })] }) }));
6
- };
7
- export default SidebarButton;
@@ -1,12 +0,0 @@
1
- import * as React from 'react';
2
- interface SidebarItemTwoLinesProps {
3
- item: {
4
- iconLeft: React.ReactNode;
5
- title: string;
6
- subTitle: string;
7
- iconRight?: React.ReactNode | null;
8
- };
9
- }
10
- declare const SidebarItemTwoLines: ({ item }: SidebarItemTwoLinesProps) => import("react/jsx-runtime").JSX.Element;
11
- export default SidebarItemTwoLines;
12
- //# sourceMappingURL=sidebar-item-two-lines.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sidebar-item-two-lines.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/custom/sidebar/sidebar-item-two-lines.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,UAAU,wBAAwB;IACjC,IAAI,EAAE;QACL,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;QAC1B,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;KACnC,CAAC;CACF;AAED,QAAA,MAAM,mBAAmB,GAAI,UAAU,wBAAwB,4CAW9D,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -1,5 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- const SidebarItemTwoLines = ({ item }) => {
3
- return (_jsxs(_Fragment, { children: [_jsx("div", { className: '[&_svg]:size-4 text-white', children: item.iconLeft }), _jsxs("div", { className: 'grid flex-1 text-left text-sm leading-tight', children: [_jsx("span", { className: 'truncate font-semibold', children: item.title }), _jsx("span", { className: 'truncate text-xs text-foreground', children: item.subTitle })] }), item.iconRight] }));
4
- };
5
- export default SidebarItemTwoLines;
@@ -1,9 +0,0 @@
1
- import { Module, SidebarPage } from './types/sidebar';
2
- interface SidebarItemProps {
3
- item: SidebarPage;
4
- selectedRoute: string | null;
5
- onClick?: (module: Module | null, path: string) => void;
6
- }
7
- declare const SidebarItem: ({ item, selectedRoute, onClick }: SidebarItemProps) => import("react/jsx-runtime").JSX.Element;
8
- export default SidebarItem;
9
- //# sourceMappingURL=sidebar-item.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sidebar-item.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/custom/sidebar/sidebar-item.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEtD,UAAU,gBAAgB;IACzB,IAAI,EAAE,WAAW,CAAC;IAClB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACxD;AAED,QAAA,MAAM,WAAW,GAAI,kCAAkC,gBAAgB,4CAMtE,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { SidebarMenuItem } from '../../sidebar';
3
- import SidebarButton from './sidebar-button';
4
- const SidebarItem = ({ item, selectedRoute, onClick }) => {
5
- return (_jsx(SidebarMenuItem, { children: _jsx(SidebarButton, { item: item, selectedRoute: selectedRoute, onClick: onClick }) }));
6
- };
7
- export default SidebarItem;
@@ -1,9 +0,0 @@
1
- import { Module } from './types/sidebar';
2
- interface ModuleSwitcherProps {
3
- modules: Module[];
4
- activeModule: Module | undefined;
5
- onModuleChange: (module: Module) => void;
6
- }
7
- declare const ModuleSwitcher: ({ modules, activeModule, onModuleChange, }: ModuleSwitcherProps) => import("react/jsx-runtime").JSX.Element;
8
- export default ModuleSwitcher;
9
- //# sourceMappingURL=sidebar-module-switcher.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sidebar-module-switcher.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/custom/sidebar/sidebar-module-switcher.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,UAAU,mBAAmB;IAC5B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED,QAAA,MAAM,cAAc,GAAI,4CAIrB,mBAAmB,4CAuCrB,CAAC;AAEF,eAAe,cAAc,CAAC"}