eai-frontend-components 2.0.4

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 (687) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +299 -0
  3. package/dist/components/accordion.d.ts +8 -0
  4. package/dist/components/accordion.d.ts.map +1 -0
  5. package/dist/components/accordion.js +13 -0
  6. package/dist/components/alert-dialog.d.ts +25 -0
  7. package/dist/components/alert-dialog.d.ts.map +1 -0
  8. package/dist/components/alert-dialog.js +27 -0
  9. package/dist/components/alert.d.ts +9 -0
  10. package/dist/components/alert.d.ts.map +1 -0
  11. package/dist/components/alert.js +22 -0
  12. package/dist/components/avatar.d.ts +7 -0
  13. package/dist/components/avatar.d.ts.map +1 -0
  14. package/dist/components/avatar.js +11 -0
  15. package/dist/components/badge.d.ts +10 -0
  16. package/dist/components/badge.d.ts.map +1 -0
  17. package/dist/components/badge.js +26 -0
  18. package/dist/components/breadcrumb.d.ts +20 -0
  19. package/dist/components/breadcrumb.d.ts.map +1 -0
  20. package/dist/components/breadcrumb.js +23 -0
  21. package/dist/components/button.d.ts +12 -0
  22. package/dist/components/button.d.ts.map +1 -0
  23. package/dist/components/button.js +33 -0
  24. package/dist/components/calendar.d.ts +9 -0
  25. package/dist/components/calendar.d.ts.map +1 -0
  26. package/dist/components/calendar.js +70 -0
  27. package/dist/components/card.d.ts +9 -0
  28. package/dist/components/card.d.ts.map +1 -0
  29. package/dist/components/card.js +16 -0
  30. package/dist/components/carousel.d.ts +19 -0
  31. package/dist/components/carousel.d.ts.map +1 -0
  32. package/dist/components/carousel.js +98 -0
  33. package/dist/components/chart.d.ts +63 -0
  34. package/dist/components/chart.d.ts.map +1 -0
  35. package/dist/components/chart.js +130 -0
  36. package/dist/components/checkbox.d.ts +5 -0
  37. package/dist/components/checkbox.d.ts.map +1 -0
  38. package/dist/components/checkbox.js +8 -0
  39. package/dist/components/collapsible.d.ts +6 -0
  40. package/dist/components/collapsible.d.ts.map +1 -0
  41. package/dist/components/collapsible.js +5 -0
  42. package/dist/components/command.d.ts +81 -0
  43. package/dist/components/command.d.ts.map +1 -0
  44. package/dist/components/command.js +28 -0
  45. package/dist/components/context-menu.d.ts +28 -0
  46. package/dist/components/context-menu.d.ts.map +1 -0
  47. package/dist/components/context-menu.js +33 -0
  48. package/dist/components/custom/date-picker.d.ts +12 -0
  49. package/dist/components/custom/date-picker.d.ts.map +1 -0
  50. package/dist/components/custom/date-picker.js +35 -0
  51. package/dist/components/custom/form/checkbox.d.ts +13 -0
  52. package/dist/components/custom/form/checkbox.d.ts.map +1 -0
  53. package/dist/components/custom/form/checkbox.js +15 -0
  54. package/dist/components/custom/form/color.d.ts +15 -0
  55. package/dist/components/custom/form/color.d.ts.map +1 -0
  56. package/dist/components/custom/form/color.js +40 -0
  57. package/dist/components/custom/form/combobox.d.ts +37 -0
  58. package/dist/components/custom/form/combobox.d.ts.map +1 -0
  59. package/dist/components/custom/form/combobox.js +82 -0
  60. package/dist/components/custom/form/cpf-cnpj.d.ts +16 -0
  61. package/dist/components/custom/form/cpf-cnpj.d.ts.map +1 -0
  62. package/dist/components/custom/form/cpf-cnpj.js +32 -0
  63. package/dist/components/custom/form/currency.d.ts +14 -0
  64. package/dist/components/custom/form/currency.d.ts.map +1 -0
  65. package/dist/components/custom/form/currency.js +15 -0
  66. package/dist/components/custom/form/date-range.d.ts +16 -0
  67. package/dist/components/custom/form/date-range.d.ts.map +1 -0
  68. package/dist/components/custom/form/date-range.js +24 -0
  69. package/dist/components/custom/form/date.d.ts +16 -0
  70. package/dist/components/custom/form/date.d.ts.map +1 -0
  71. package/dist/components/custom/form/date.js +35 -0
  72. package/dist/components/custom/form/decimal.d.ts +14 -0
  73. package/dist/components/custom/form/decimal.d.ts.map +1 -0
  74. package/dist/components/custom/form/decimal.js +15 -0
  75. package/dist/components/custom/form/file.d.ts +15 -0
  76. package/dist/components/custom/form/file.d.ts.map +1 -0
  77. package/dist/components/custom/form/file.js +18 -0
  78. package/dist/components/custom/form/form-help-text.d.ts +3 -0
  79. package/dist/components/custom/form/form-help-text.d.ts.map +1 -0
  80. package/dist/components/custom/form/form-help-text.js +7 -0
  81. package/dist/components/custom/form/form-label.d.ts +4 -0
  82. package/dist/components/custom/form/form-label.d.ts.map +1 -0
  83. package/dist/components/custom/form/form-label.js +9 -0
  84. package/dist/components/custom/form/form-message.d.ts +3 -0
  85. package/dist/components/custom/form/form-message.d.ts.map +1 -0
  86. package/dist/components/custom/form/form-message.js +5 -0
  87. package/dist/components/custom/form/ghost.d.ts +8 -0
  88. package/dist/components/custom/form/ghost.d.ts.map +1 -0
  89. package/dist/components/custom/form/ghost.js +8 -0
  90. package/dist/components/custom/form/input.d.ts +18 -0
  91. package/dist/components/custom/form/input.d.ts.map +1 -0
  92. package/dist/components/custom/form/input.js +14 -0
  93. package/dist/components/custom/form/mask.d.ts +19 -0
  94. package/dist/components/custom/form/mask.d.ts.map +1 -0
  95. package/dist/components/custom/form/mask.js +19 -0
  96. package/dist/components/custom/form/multi-select-old.d.ts +19 -0
  97. package/dist/components/custom/form/multi-select-old.d.ts.map +1 -0
  98. package/dist/components/custom/form/multi-select-old.js +30 -0
  99. package/dist/components/custom/form/multi-select.d.ts +26 -0
  100. package/dist/components/custom/form/multi-select.d.ts.map +1 -0
  101. package/dist/components/custom/form/multi-select.js +66 -0
  102. package/dist/components/custom/form/password.d.ts +16 -0
  103. package/dist/components/custom/form/password.d.ts.map +1 -0
  104. package/dist/components/custom/form/password.js +14 -0
  105. package/dist/components/custom/form/percent.d.ts +14 -0
  106. package/dist/components/custom/form/percent.d.ts.map +1 -0
  107. package/dist/components/custom/form/percent.js +15 -0
  108. package/dist/components/custom/form/phone.d.ts +16 -0
  109. package/dist/components/custom/form/phone.d.ts.map +1 -0
  110. package/dist/components/custom/form/phone.js +23 -0
  111. package/dist/components/custom/form/radio-group.d.ts +23 -0
  112. package/dist/components/custom/form/radio-group.d.ts.map +1 -0
  113. package/dist/components/custom/form/radio-group.js +15 -0
  114. package/dist/components/custom/form/select.d.ts +20 -0
  115. package/dist/components/custom/form/select.d.ts.map +1 -0
  116. package/dist/components/custom/form/select.js +12 -0
  117. package/dist/components/custom/form/step-new-form.d.ts +10 -0
  118. package/dist/components/custom/form/step-new-form.d.ts.map +1 -0
  119. package/dist/components/custom/form/step-new-form.js +13 -0
  120. package/dist/components/custom/form/switch.d.ts +13 -0
  121. package/dist/components/custom/form/switch.d.ts.map +1 -0
  122. package/dist/components/custom/form/switch.js +16 -0
  123. package/dist/components/custom/form/text.d.ts +18 -0
  124. package/dist/components/custom/form/text.d.ts.map +1 -0
  125. package/dist/components/custom/form/text.js +14 -0
  126. package/dist/components/custom/form/textarea.d.ts +16 -0
  127. package/dist/components/custom/form/textarea.d.ts.map +1 -0
  128. package/dist/components/custom/form/textarea.js +19 -0
  129. package/dist/components/custom/form/utils.d.ts +18 -0
  130. package/dist/components/custom/form/utils.d.ts.map +1 -0
  131. package/dist/components/custom/form/utils.js +88 -0
  132. package/dist/components/custom/header.d.ts +3 -0
  133. package/dist/components/custom/header.d.ts.map +1 -0
  134. package/dist/components/custom/header.js +94 -0
  135. package/dist/components/custom/label.d.ts +13 -0
  136. package/dist/components/custom/label.d.ts.map +1 -0
  137. package/dist/components/custom/label.js +20 -0
  138. package/dist/components/custom/not-found.d.ts +3 -0
  139. package/dist/components/custom/not-found.d.ts.map +1 -0
  140. package/dist/components/custom/not-found.js +9 -0
  141. package/dist/components/custom/sidebar/app-sidebar.d.ts +5 -0
  142. package/dist/components/custom/sidebar/app-sidebar.d.ts.map +1 -0
  143. package/dist/components/custom/sidebar/app-sidebar.js +26 -0
  144. package/dist/components/custom/sidebar/module-switcher.d.ts +3 -0
  145. package/dist/components/custom/sidebar/module-switcher.d.ts.map +1 -0
  146. package/dist/components/custom/sidebar/module-switcher.js +55 -0
  147. package/dist/components/custom/sidebar/nav-footer.d.ts +3 -0
  148. package/dist/components/custom/sidebar/nav-footer.d.ts.map +1 -0
  149. package/dist/components/custom/sidebar/nav-footer.js +17 -0
  150. package/dist/components/custom/sidebar/nav-main.d.ts +3 -0
  151. package/dist/components/custom/sidebar/nav-main.d.ts.map +1 -0
  152. package/dist/components/custom/sidebar/nav-main.js +32 -0
  153. package/dist/components/custom/sidebar/nav-submenu-collapsible.d.ts +9 -0
  154. package/dist/components/custom/sidebar/nav-submenu-collapsible.d.ts.map +1 -0
  155. package/dist/components/custom/sidebar/nav-submenu-collapsible.js +21 -0
  156. package/dist/components/custom/sidebar/nav-submenu-dropdown.d.ts +10 -0
  157. package/dist/components/custom/sidebar/nav-submenu-dropdown.d.ts.map +1 -0
  158. package/dist/components/custom/sidebar/nav-submenu-dropdown.js +13 -0
  159. package/dist/components/custom/sidebar/nav-user.d.ts +3 -0
  160. package/dist/components/custom/sidebar/nav-user.d.ts.map +1 -0
  161. package/dist/components/custom/sidebar/nav-user.js +51 -0
  162. package/dist/components/custom/sidebar/sidebar-button.d.ts +9 -0
  163. package/dist/components/custom/sidebar/sidebar-button.d.ts.map +1 -0
  164. package/dist/components/custom/sidebar/sidebar-button.js +7 -0
  165. package/dist/components/custom/sidebar/sidebar-item-two-lines.d.ts +12 -0
  166. package/dist/components/custom/sidebar/sidebar-item-two-lines.d.ts.map +1 -0
  167. package/dist/components/custom/sidebar/sidebar-item-two-lines.js +5 -0
  168. package/dist/components/custom/sidebar/sidebar-item.d.ts +9 -0
  169. package/dist/components/custom/sidebar/sidebar-item.d.ts.map +1 -0
  170. package/dist/components/custom/sidebar/sidebar-item.js +7 -0
  171. package/dist/components/custom/sidebar/types/sidebar.d.ts +29 -0
  172. package/dist/components/custom/sidebar/types/sidebar.d.ts.map +1 -0
  173. package/dist/components/custom/sidebar/types/sidebar.js +5 -0
  174. package/dist/components/custom/table/data-table-export.d.ts +8 -0
  175. package/dist/components/custom/table/data-table-export.d.ts.map +1 -0
  176. package/dist/components/custom/table/data-table-export.js +65 -0
  177. package/dist/components/custom/table/data-table-footer.d.ts +25 -0
  178. package/dist/components/custom/table/data-table-footer.d.ts.map +1 -0
  179. package/dist/components/custom/table/data-table-footer.js +39 -0
  180. package/dist/components/custom/table/data-table-header.d.ts +9 -0
  181. package/dist/components/custom/table/data-table-header.d.ts.map +1 -0
  182. package/dist/components/custom/table/data-table-header.js +11 -0
  183. package/dist/components/custom/table/data-table-rows.d.ts +13 -0
  184. package/dist/components/custom/table/data-table-rows.d.ts.map +1 -0
  185. package/dist/components/custom/table/data-table-rows.js +25 -0
  186. package/dist/components/custom/table/data-table.d.ts +35 -0
  187. package/dist/components/custom/table/data-table.d.ts.map +1 -0
  188. package/dist/components/custom/table/data-table.js +99 -0
  189. package/dist/components/custom/table/types/data-table.d.ts +29 -0
  190. package/dist/components/custom/table/types/data-table.d.ts.map +1 -0
  191. package/dist/components/custom/table/types/data-table.js +1 -0
  192. package/dist/components/custom/theme-provider.d.ts +24 -0
  193. package/dist/components/custom/theme-provider.d.ts.map +1 -0
  194. package/dist/components/custom/theme-provider.js +79 -0
  195. package/dist/components/dateRangePicker.d.ts +3 -0
  196. package/dist/components/dateRangePicker.d.ts.map +1 -0
  197. package/dist/components/dateRangePicker.js +15 -0
  198. package/dist/components/dialog.d.ts +23 -0
  199. package/dist/components/dialog.d.ts.map +1 -0
  200. package/dist/components/dialog.js +23 -0
  201. package/dist/components/drawer.d.ts +23 -0
  202. package/dist/components/drawer.d.ts.map +1 -0
  203. package/dist/components/drawer.js +22 -0
  204. package/dist/components/dropdown-menu.d.ts +28 -0
  205. package/dist/components/dropdown-menu.d.ts.map +1 -0
  206. package/dist/components/dropdown-menu.js +32 -0
  207. package/dist/components/form.d.ts +24 -0
  208. package/dist/components/form.d.ts.map +1 -0
  209. package/dist/components/form.js +60 -0
  210. package/dist/components/hover-card.d.ts +7 -0
  211. package/dist/components/hover-card.d.ts.map +1 -0
  212. package/dist/components/hover-card.js +9 -0
  213. package/dist/components/input.d.ts +24 -0
  214. package/dist/components/input.d.ts.map +1 -0
  215. package/dist/components/input.js +71 -0
  216. package/dist/components/label.d.ts +6 -0
  217. package/dist/components/label.d.ts.map +1 -0
  218. package/dist/components/label.js +9 -0
  219. package/dist/components/masks.d.ts +17 -0
  220. package/dist/components/masks.d.ts.map +1 -0
  221. package/dist/components/masks.js +25 -0
  222. package/dist/components/pagination.d.ts +30 -0
  223. package/dist/components/pagination.d.ts.map +1 -0
  224. package/dist/components/pagination.js +23 -0
  225. package/dist/components/popover.d.ts +7 -0
  226. package/dist/components/popover.d.ts.map +1 -0
  227. package/dist/components/popover.js +11 -0
  228. package/dist/components/progress.d.ts +5 -0
  229. package/dist/components/progress.d.ts.map +1 -0
  230. package/dist/components/progress.js +7 -0
  231. package/dist/components/radio-group.d.ts +6 -0
  232. package/dist/components/radio-group.d.ts.map +1 -0
  233. package/dist/components/radio-group.js +14 -0
  234. package/dist/components/scroll-area.d.ts +6 -0
  235. package/dist/components/scroll-area.d.ts.map +1 -0
  236. package/dist/components/scroll-area.js +11 -0
  237. package/dist/components/select.d.ts +14 -0
  238. package/dist/components/select.d.ts.map +1 -0
  239. package/dist/components/select.js +24 -0
  240. package/dist/components/separator.d.ts +5 -0
  241. package/dist/components/separator.d.ts.map +1 -0
  242. package/dist/components/separator.js +7 -0
  243. package/dist/components/sheet.d.ts +26 -0
  244. package/dist/components/sheet.d.ts.map +1 -0
  245. package/dist/components/sheet.js +37 -0
  246. package/dist/components/sidebar.d.ts +67 -0
  247. package/dist/components/sidebar.d.ts.map +1 -0
  248. package/dist/components/sidebar.js +221 -0
  249. package/dist/components/skeleton.d.ts +3 -0
  250. package/dist/components/skeleton.d.ts.map +1 -0
  251. package/dist/components/skeleton.js +6 -0
  252. package/dist/components/slider.d.ts +5 -0
  253. package/dist/components/slider.d.ts.map +1 -0
  254. package/dist/components/slider.js +7 -0
  255. package/dist/components/switch.d.ts +5 -0
  256. package/dist/components/switch.d.ts.map +1 -0
  257. package/dist/components/switch.js +7 -0
  258. package/dist/components/table.d.ts +11 -0
  259. package/dist/components/table.d.ts.map +1 -0
  260. package/dist/components/table.js +20 -0
  261. package/dist/components/tabs.d.ts +8 -0
  262. package/dist/components/tabs.d.ts.map +1 -0
  263. package/dist/components/tabs.js +12 -0
  264. package/dist/components/textarea.d.ts +4 -0
  265. package/dist/components/textarea.d.ts.map +1 -0
  266. package/dist/components/textarea.js +14 -0
  267. package/dist/components/toast.d.ts +16 -0
  268. package/dist/components/toast.d.ts.map +1 -0
  269. package/dist/components/toast.js +34 -0
  270. package/dist/components/toaster.d.ts +2 -0
  271. package/dist/components/toaster.d.ts.map +1 -0
  272. package/dist/components/toaster.js +21 -0
  273. package/dist/components/tooltip.d.ts +8 -0
  274. package/dist/components/tooltip.d.ts.map +1 -0
  275. package/dist/components/tooltip.js +10 -0
  276. package/dist/components/ui/accordion.d.ts +8 -0
  277. package/dist/components/ui/accordion.d.ts.map +1 -0
  278. package/dist/components/ui/accordion.js +13 -0
  279. package/dist/components/ui/alert-dialog.d.ts +25 -0
  280. package/dist/components/ui/alert-dialog.d.ts.map +1 -0
  281. package/dist/components/ui/alert-dialog.js +27 -0
  282. package/dist/components/ui/alert.d.ts +9 -0
  283. package/dist/components/ui/alert.d.ts.map +1 -0
  284. package/dist/components/ui/alert.js +22 -0
  285. package/dist/components/ui/avatar.d.ts +7 -0
  286. package/dist/components/ui/avatar.d.ts.map +1 -0
  287. package/dist/components/ui/avatar.js +11 -0
  288. package/dist/components/ui/badge.d.ts +10 -0
  289. package/dist/components/ui/badge.d.ts.map +1 -0
  290. package/dist/components/ui/badge.js +26 -0
  291. package/dist/components/ui/breadcrumb.d.ts +20 -0
  292. package/dist/components/ui/breadcrumb.d.ts.map +1 -0
  293. package/dist/components/ui/breadcrumb.js +23 -0
  294. package/dist/components/ui/button.d.ts +12 -0
  295. package/dist/components/ui/button.d.ts.map +1 -0
  296. package/dist/components/ui/button.js +33 -0
  297. package/dist/components/ui/calendar.d.ts +9 -0
  298. package/dist/components/ui/calendar.d.ts.map +1 -0
  299. package/dist/components/ui/calendar.js +70 -0
  300. package/dist/components/ui/card.d.ts +9 -0
  301. package/dist/components/ui/card.d.ts.map +1 -0
  302. package/dist/components/ui/card.js +16 -0
  303. package/dist/components/ui/carousel.d.ts +19 -0
  304. package/dist/components/ui/carousel.d.ts.map +1 -0
  305. package/dist/components/ui/carousel.js +98 -0
  306. package/dist/components/ui/chart.d.ts +63 -0
  307. package/dist/components/ui/chart.d.ts.map +1 -0
  308. package/dist/components/ui/chart.js +130 -0
  309. package/dist/components/ui/checkbox.d.ts +5 -0
  310. package/dist/components/ui/checkbox.d.ts.map +1 -0
  311. package/dist/components/ui/checkbox.js +8 -0
  312. package/dist/components/ui/collapsible.d.ts +6 -0
  313. package/dist/components/ui/collapsible.d.ts.map +1 -0
  314. package/dist/components/ui/collapsible.js +5 -0
  315. package/dist/components/ui/command.d.ts +81 -0
  316. package/dist/components/ui/command.d.ts.map +1 -0
  317. package/dist/components/ui/command.js +28 -0
  318. package/dist/components/ui/context-menu.d.ts +28 -0
  319. package/dist/components/ui/context-menu.d.ts.map +1 -0
  320. package/dist/components/ui/context-menu.js +33 -0
  321. package/dist/components/ui/custom/date-picker.d.ts +12 -0
  322. package/dist/components/ui/custom/date-picker.d.ts.map +1 -0
  323. package/dist/components/ui/custom/date-picker.js +35 -0
  324. package/dist/components/ui/custom/form/checkbox.d.ts +13 -0
  325. package/dist/components/ui/custom/form/checkbox.d.ts.map +1 -0
  326. package/dist/components/ui/custom/form/checkbox.js +15 -0
  327. package/dist/components/ui/custom/form/color.d.ts +15 -0
  328. package/dist/components/ui/custom/form/color.d.ts.map +1 -0
  329. package/dist/components/ui/custom/form/color.js +40 -0
  330. package/dist/components/ui/custom/form/combobox.d.ts +37 -0
  331. package/dist/components/ui/custom/form/combobox.d.ts.map +1 -0
  332. package/dist/components/ui/custom/form/combobox.js +82 -0
  333. package/dist/components/ui/custom/form/cpf-cnpj.d.ts +16 -0
  334. package/dist/components/ui/custom/form/cpf-cnpj.d.ts.map +1 -0
  335. package/dist/components/ui/custom/form/cpf-cnpj.js +32 -0
  336. package/dist/components/ui/custom/form/currency.d.ts +14 -0
  337. package/dist/components/ui/custom/form/currency.d.ts.map +1 -0
  338. package/dist/components/ui/custom/form/currency.js +15 -0
  339. package/dist/components/ui/custom/form/date-range.d.ts +16 -0
  340. package/dist/components/ui/custom/form/date-range.d.ts.map +1 -0
  341. package/dist/components/ui/custom/form/date-range.js +24 -0
  342. package/dist/components/ui/custom/form/date.d.ts +16 -0
  343. package/dist/components/ui/custom/form/date.d.ts.map +1 -0
  344. package/dist/components/ui/custom/form/date.js +35 -0
  345. package/dist/components/ui/custom/form/decimal.d.ts +14 -0
  346. package/dist/components/ui/custom/form/decimal.d.ts.map +1 -0
  347. package/dist/components/ui/custom/form/decimal.js +15 -0
  348. package/dist/components/ui/custom/form/file.d.ts +15 -0
  349. package/dist/components/ui/custom/form/file.d.ts.map +1 -0
  350. package/dist/components/ui/custom/form/file.js +18 -0
  351. package/dist/components/ui/custom/form/form-help-text.d.ts +3 -0
  352. package/dist/components/ui/custom/form/form-help-text.d.ts.map +1 -0
  353. package/dist/components/ui/custom/form/form-help-text.js +7 -0
  354. package/dist/components/ui/custom/form/form-label.d.ts +7 -0
  355. package/dist/components/ui/custom/form/form-label.d.ts.map +1 -0
  356. package/dist/components/ui/custom/form/form-label.js +9 -0
  357. package/dist/components/ui/custom/form/form-message.d.ts +5 -0
  358. package/dist/components/ui/custom/form/form-message.d.ts.map +1 -0
  359. package/dist/components/ui/custom/form/form-message.js +5 -0
  360. package/dist/components/ui/custom/form/ghost.d.ts +8 -0
  361. package/dist/components/ui/custom/form/ghost.d.ts.map +1 -0
  362. package/dist/components/ui/custom/form/ghost.js +8 -0
  363. package/dist/components/ui/custom/form/input.d.ts +18 -0
  364. package/dist/components/ui/custom/form/input.d.ts.map +1 -0
  365. package/dist/components/ui/custom/form/input.js +14 -0
  366. package/dist/components/ui/custom/form/mask.d.ts +19 -0
  367. package/dist/components/ui/custom/form/mask.d.ts.map +1 -0
  368. package/dist/components/ui/custom/form/mask.js +19 -0
  369. package/dist/components/ui/custom/form/multi-select-old.d.ts +19 -0
  370. package/dist/components/ui/custom/form/multi-select-old.d.ts.map +1 -0
  371. package/dist/components/ui/custom/form/multi-select-old.js +30 -0
  372. package/dist/components/ui/custom/form/multi-select.d.ts +26 -0
  373. package/dist/components/ui/custom/form/multi-select.d.ts.map +1 -0
  374. package/dist/components/ui/custom/form/multi-select.js +66 -0
  375. package/dist/components/ui/custom/form/password.d.ts +16 -0
  376. package/dist/components/ui/custom/form/password.d.ts.map +1 -0
  377. package/dist/components/ui/custom/form/password.js +14 -0
  378. package/dist/components/ui/custom/form/percent.d.ts +14 -0
  379. package/dist/components/ui/custom/form/percent.d.ts.map +1 -0
  380. package/dist/components/ui/custom/form/percent.js +15 -0
  381. package/dist/components/ui/custom/form/phone.d.ts +16 -0
  382. package/dist/components/ui/custom/form/phone.d.ts.map +1 -0
  383. package/dist/components/ui/custom/form/phone.js +23 -0
  384. package/dist/components/ui/custom/form/radio-group.d.ts +23 -0
  385. package/dist/components/ui/custom/form/radio-group.d.ts.map +1 -0
  386. package/dist/components/ui/custom/form/radio-group.js +15 -0
  387. package/dist/components/ui/custom/form/select.d.ts +20 -0
  388. package/dist/components/ui/custom/form/select.d.ts.map +1 -0
  389. package/dist/components/ui/custom/form/select.js +12 -0
  390. package/dist/components/ui/custom/form/step-new-form.d.ts +10 -0
  391. package/dist/components/ui/custom/form/step-new-form.d.ts.map +1 -0
  392. package/dist/components/ui/custom/form/step-new-form.js +13 -0
  393. package/dist/components/ui/custom/form/switch.d.ts +13 -0
  394. package/dist/components/ui/custom/form/switch.d.ts.map +1 -0
  395. package/dist/components/ui/custom/form/switch.js +16 -0
  396. package/dist/components/ui/custom/form/text.d.ts +18 -0
  397. package/dist/components/ui/custom/form/text.d.ts.map +1 -0
  398. package/dist/components/ui/custom/form/text.js +14 -0
  399. package/dist/components/ui/custom/form/textarea.d.ts +16 -0
  400. package/dist/components/ui/custom/form/textarea.d.ts.map +1 -0
  401. package/dist/components/ui/custom/form/textarea.js +19 -0
  402. package/dist/components/ui/custom/form/utils.d.ts +18 -0
  403. package/dist/components/ui/custom/form/utils.d.ts.map +1 -0
  404. package/dist/components/ui/custom/form/utils.js +88 -0
  405. package/dist/components/ui/custom/header.d.ts +11 -0
  406. package/dist/components/ui/custom/header.d.ts.map +1 -0
  407. package/dist/components/ui/custom/header.js +74 -0
  408. package/dist/components/ui/custom/label.d.ts +13 -0
  409. package/dist/components/ui/custom/label.d.ts.map +1 -0
  410. package/dist/components/ui/custom/label.js +20 -0
  411. package/dist/components/ui/custom/not-found.d.ts +3 -0
  412. package/dist/components/ui/custom/not-found.d.ts.map +1 -0
  413. package/dist/components/ui/custom/not-found.js +9 -0
  414. package/dist/components/ui/custom/sidebar/app-sidebar.d.ts +5 -0
  415. package/dist/components/ui/custom/sidebar/app-sidebar.d.ts.map +1 -0
  416. package/dist/components/ui/custom/sidebar/app-sidebar.js +26 -0
  417. package/dist/components/ui/custom/sidebar/module-switcher.d.ts +9 -0
  418. package/dist/components/ui/custom/sidebar/module-switcher.d.ts.map +1 -0
  419. package/dist/components/ui/custom/sidebar/module-switcher.js +55 -0
  420. package/dist/components/ui/custom/sidebar/nav-footer.d.ts +7 -0
  421. package/dist/components/ui/custom/sidebar/nav-footer.d.ts.map +1 -0
  422. package/dist/components/ui/custom/sidebar/nav-footer.js +13 -0
  423. package/dist/components/ui/custom/sidebar/nav-main.d.ts +7 -0
  424. package/dist/components/ui/custom/sidebar/nav-main.d.ts.map +1 -0
  425. package/dist/components/ui/custom/sidebar/nav-main.js +27 -0
  426. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.d.ts +9 -0
  427. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.d.ts.map +1 -0
  428. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.js +18 -0
  429. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.d.ts +10 -0
  430. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.d.ts.map +1 -0
  431. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.js +10 -0
  432. package/dist/components/ui/custom/sidebar/nav-user.d.ts +9 -0
  433. package/dist/components/ui/custom/sidebar/nav-user.d.ts.map +1 -0
  434. package/dist/components/ui/custom/sidebar/nav-user.js +24 -0
  435. package/dist/components/ui/custom/sidebar/sidebar-button.d.ts +9 -0
  436. package/dist/components/ui/custom/sidebar/sidebar-button.d.ts.map +1 -0
  437. package/dist/components/ui/custom/sidebar/sidebar-button.js +7 -0
  438. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.d.ts +12 -0
  439. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.d.ts.map +1 -0
  440. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.js +5 -0
  441. package/dist/components/ui/custom/sidebar/sidebar-item.d.ts +9 -0
  442. package/dist/components/ui/custom/sidebar/sidebar-item.d.ts.map +1 -0
  443. package/dist/components/ui/custom/sidebar/sidebar-item.js +7 -0
  444. package/dist/components/ui/custom/sidebar/sidebar-module-switcher.d.ts +9 -0
  445. package/dist/components/ui/custom/sidebar/sidebar-module-switcher.d.ts.map +1 -0
  446. package/dist/components/ui/custom/sidebar/sidebar-module-switcher.js +20 -0
  447. package/dist/components/ui/custom/sidebar/types/sidebar.d.ts +29 -0
  448. package/dist/components/ui/custom/sidebar/types/sidebar.d.ts.map +1 -0
  449. package/dist/components/ui/custom/sidebar/types/sidebar.js +5 -0
  450. package/dist/components/ui/custom/table/data-table-export.d.ts +8 -0
  451. package/dist/components/ui/custom/table/data-table-export.d.ts.map +1 -0
  452. package/dist/components/ui/custom/table/data-table-export.js +65 -0
  453. package/dist/components/ui/custom/table/data-table-footer.d.ts +25 -0
  454. package/dist/components/ui/custom/table/data-table-footer.d.ts.map +1 -0
  455. package/dist/components/ui/custom/table/data-table-footer.js +39 -0
  456. package/dist/components/ui/custom/table/data-table-header.d.ts +9 -0
  457. package/dist/components/ui/custom/table/data-table-header.d.ts.map +1 -0
  458. package/dist/components/ui/custom/table/data-table-header.js +11 -0
  459. package/dist/components/ui/custom/table/data-table-rows.d.ts +13 -0
  460. package/dist/components/ui/custom/table/data-table-rows.d.ts.map +1 -0
  461. package/dist/components/ui/custom/table/data-table-rows.js +25 -0
  462. package/dist/components/ui/custom/table/data-table.d.ts +35 -0
  463. package/dist/components/ui/custom/table/data-table.d.ts.map +1 -0
  464. package/dist/components/ui/custom/table/data-table.js +99 -0
  465. package/dist/components/ui/custom/table/types/data-table.d.ts +29 -0
  466. package/dist/components/ui/custom/table/types/data-table.d.ts.map +1 -0
  467. package/dist/components/ui/custom/table/types/data-table.js +1 -0
  468. package/dist/components/ui/custom/theme-provider.d.ts +24 -0
  469. package/dist/components/ui/custom/theme-provider.d.ts.map +1 -0
  470. package/dist/components/ui/custom/theme-provider.js +79 -0
  471. package/dist/components/ui/dateRangePicker.d.ts +3 -0
  472. package/dist/components/ui/dateRangePicker.d.ts.map +1 -0
  473. package/dist/components/ui/dateRangePicker.js +15 -0
  474. package/dist/components/ui/dialog.d.ts +23 -0
  475. package/dist/components/ui/dialog.d.ts.map +1 -0
  476. package/dist/components/ui/dialog.js +23 -0
  477. package/dist/components/ui/drawer.d.ts +23 -0
  478. package/dist/components/ui/drawer.d.ts.map +1 -0
  479. package/dist/components/ui/drawer.js +22 -0
  480. package/dist/components/ui/dropdown-menu.d.ts +28 -0
  481. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  482. package/dist/components/ui/dropdown-menu.js +32 -0
  483. package/dist/components/ui/form.d.ts +24 -0
  484. package/dist/components/ui/form.d.ts.map +1 -0
  485. package/dist/components/ui/form.js +60 -0
  486. package/dist/components/ui/hover-card.d.ts +7 -0
  487. package/dist/components/ui/hover-card.d.ts.map +1 -0
  488. package/dist/components/ui/hover-card.js +9 -0
  489. package/dist/components/ui/input.d.ts +24 -0
  490. package/dist/components/ui/input.d.ts.map +1 -0
  491. package/dist/components/ui/input.js +71 -0
  492. package/dist/components/ui/label.d.ts +6 -0
  493. package/dist/components/ui/label.d.ts.map +1 -0
  494. package/dist/components/ui/label.js +9 -0
  495. package/dist/components/ui/masks.d.ts +17 -0
  496. package/dist/components/ui/masks.d.ts.map +1 -0
  497. package/dist/components/ui/masks.js +25 -0
  498. package/dist/components/ui/pagination.d.ts +30 -0
  499. package/dist/components/ui/pagination.d.ts.map +1 -0
  500. package/dist/components/ui/pagination.js +23 -0
  501. package/dist/components/ui/popover.d.ts +7 -0
  502. package/dist/components/ui/popover.d.ts.map +1 -0
  503. package/dist/components/ui/popover.js +11 -0
  504. package/dist/components/ui/progress.d.ts +5 -0
  505. package/dist/components/ui/progress.d.ts.map +1 -0
  506. package/dist/components/ui/progress.js +7 -0
  507. package/dist/components/ui/radio-group.d.ts +6 -0
  508. package/dist/components/ui/radio-group.d.ts.map +1 -0
  509. package/dist/components/ui/radio-group.js +14 -0
  510. package/dist/components/ui/scroll-area.d.ts +6 -0
  511. package/dist/components/ui/scroll-area.d.ts.map +1 -0
  512. package/dist/components/ui/scroll-area.js +11 -0
  513. package/dist/components/ui/select.d.ts +14 -0
  514. package/dist/components/ui/select.d.ts.map +1 -0
  515. package/dist/components/ui/select.js +24 -0
  516. package/dist/components/ui/separator.d.ts +5 -0
  517. package/dist/components/ui/separator.d.ts.map +1 -0
  518. package/dist/components/ui/separator.js +7 -0
  519. package/dist/components/ui/sheet.d.ts +26 -0
  520. package/dist/components/ui/sheet.d.ts.map +1 -0
  521. package/dist/components/ui/sheet.js +37 -0
  522. package/dist/components/ui/sidebar.d.ts +67 -0
  523. package/dist/components/ui/sidebar.d.ts.map +1 -0
  524. package/dist/components/ui/sidebar.js +221 -0
  525. package/dist/components/ui/skeleton.d.ts +3 -0
  526. package/dist/components/ui/skeleton.d.ts.map +1 -0
  527. package/dist/components/ui/skeleton.js +6 -0
  528. package/dist/components/ui/slider.d.ts +5 -0
  529. package/dist/components/ui/slider.d.ts.map +1 -0
  530. package/dist/components/ui/slider.js +7 -0
  531. package/dist/components/ui/switch.d.ts +5 -0
  532. package/dist/components/ui/switch.d.ts.map +1 -0
  533. package/dist/components/ui/switch.js +7 -0
  534. package/dist/components/ui/table.d.ts +11 -0
  535. package/dist/components/ui/table.d.ts.map +1 -0
  536. package/dist/components/ui/table.js +20 -0
  537. package/dist/components/ui/tabs.d.ts +8 -0
  538. package/dist/components/ui/tabs.d.ts.map +1 -0
  539. package/dist/components/ui/tabs.js +12 -0
  540. package/dist/components/ui/textarea.d.ts +4 -0
  541. package/dist/components/ui/textarea.d.ts.map +1 -0
  542. package/dist/components/ui/textarea.js +14 -0
  543. package/dist/components/ui/toast.d.ts +16 -0
  544. package/dist/components/ui/toast.d.ts.map +1 -0
  545. package/dist/components/ui/toast.js +34 -0
  546. package/dist/components/ui/toaster.d.ts +2 -0
  547. package/dist/components/ui/toaster.d.ts.map +1 -0
  548. package/dist/components/ui/toaster.js +21 -0
  549. package/dist/components/ui/tooltip.d.ts +8 -0
  550. package/dist/components/ui/tooltip.d.ts.map +1 -0
  551. package/dist/components/ui/tooltip.js +10 -0
  552. package/dist/components/ui/use-calendar.d.ts +7 -0
  553. package/dist/components/ui/use-calendar.d.ts.map +1 -0
  554. package/dist/components/ui/use-calendar.js +23 -0
  555. package/dist/components/ui/use-toast.d.ts +46 -0
  556. package/dist/components/ui/use-toast.d.ts.map +1 -0
  557. package/dist/components/ui/use-toast.js +125 -0
  558. package/dist/components/use-calendar.d.ts +7 -0
  559. package/dist/components/use-calendar.d.ts.map +1 -0
  560. package/dist/components/use-calendar.js +23 -0
  561. package/dist/components/use-toast.d.ts +46 -0
  562. package/dist/components/use-toast.d.ts.map +1 -0
  563. package/dist/components/use-toast.js +125 -0
  564. package/dist/hooks/use-mobile.d.ts +2 -0
  565. package/dist/hooks/use-mobile.d.ts.map +1 -0
  566. package/dist/hooks/use-mobile.js +15 -0
  567. package/dist/index.d.ts +1514 -0
  568. package/dist/index.d.ts.map +1 -0
  569. package/dist/index.esm.js +3233 -0
  570. package/dist/index.esm.js.map +1 -0
  571. package/dist/index.js +3558 -0
  572. package/dist/index.js.map +1 -0
  573. package/dist/lib/help/date-utils.d.ts +7 -0
  574. package/dist/lib/help/date-utils.d.ts.map +1 -0
  575. package/dist/lib/help/date-utils.js +34 -0
  576. package/dist/lib/help/format.d.ts +22 -0
  577. package/dist/lib/help/format.d.ts.map +1 -0
  578. package/dist/lib/help/format.js +140 -0
  579. package/dist/lib/help/theme.d.ts +291 -0
  580. package/dist/lib/help/theme.d.ts.map +1 -0
  581. package/dist/lib/help/theme.js +340 -0
  582. package/dist/lib/help/uuid.d.ts +2 -0
  583. package/dist/lib/help/uuid.d.ts.map +1 -0
  584. package/dist/lib/help/uuid.js +4 -0
  585. package/dist/lib/utils.d.ts +3 -0
  586. package/dist/lib/utils.d.ts.map +1 -0
  587. package/dist/lib/utils.js +5 -0
  588. package/package.json +146 -0
  589. package/src/components/ui/accordion.tsx +48 -0
  590. package/src/components/ui/alert-dialog.tsx +138 -0
  591. package/src/components/ui/alert.tsx +36 -0
  592. package/src/components/ui/avatar.tsx +48 -0
  593. package/src/components/ui/badge.tsx +35 -0
  594. package/src/components/ui/breadcrumb.tsx +115 -0
  595. package/src/components/ui/button.tsx +43 -0
  596. package/src/components/ui/calendar.tsx +142 -0
  597. package/src/components/ui/card.tsx +35 -0
  598. package/src/components/ui/carousel.tsx +257 -0
  599. package/src/components/ui/chart.tsx +364 -0
  600. package/src/components/ui/checkbox.tsx +26 -0
  601. package/src/components/ui/collapsible.tsx +9 -0
  602. package/src/components/ui/command.tsx +145 -0
  603. package/src/components/ui/context-menu.tsx +198 -0
  604. package/src/components/ui/custom/date-picker.tsx +97 -0
  605. package/src/components/ui/custom/form/checkbox.tsx +53 -0
  606. package/src/components/ui/custom/form/color.tsx +140 -0
  607. package/src/components/ui/custom/form/combobox.tsx +259 -0
  608. package/src/components/ui/custom/form/cpf-cnpj.tsx +85 -0
  609. package/src/components/ui/custom/form/currency.tsx +51 -0
  610. package/src/components/ui/custom/form/date-range.tsx +110 -0
  611. package/src/components/ui/custom/form/date.tsx +109 -0
  612. package/src/components/ui/custom/form/decimal.tsx +50 -0
  613. package/src/components/ui/custom/form/file.tsx +65 -0
  614. package/src/components/ui/custom/form/form-help-text.tsx +20 -0
  615. package/src/components/ui/custom/form/form-label.tsx +24 -0
  616. package/src/components/ui/custom/form/form-message.tsx +10 -0
  617. package/src/components/ui/custom/form/ghost.tsx +28 -0
  618. package/src/components/ui/custom/form/input.tsx +69 -0
  619. package/src/components/ui/custom/form/mask.tsx +78 -0
  620. package/src/components/ui/custom/form/multi-select.tsx +209 -0
  621. package/src/components/ui/custom/form/password.tsx +70 -0
  622. package/src/components/ui/custom/form/percent.tsx +52 -0
  623. package/src/components/ui/custom/form/phone.tsx +79 -0
  624. package/src/components/ui/custom/form/radio-group.tsx +94 -0
  625. package/src/components/ui/custom/form/select.tsx +62 -0
  626. package/src/components/ui/custom/form/step-new-form.tsx +49 -0
  627. package/src/components/ui/custom/form/switch.tsx +51 -0
  628. package/src/components/ui/custom/form/text.tsx +71 -0
  629. package/src/components/ui/custom/form/textarea.tsx +71 -0
  630. package/src/components/ui/custom/form/utils.ts +100 -0
  631. package/src/components/ui/custom/header.tsx +128 -0
  632. package/src/components/ui/custom/label.tsx +79 -0
  633. package/src/components/ui/custom/not-found.tsx +30 -0
  634. package/src/components/ui/custom/sidebar/module-switcher.tsx +58 -0
  635. package/src/components/ui/custom/sidebar/nav-footer.tsx +35 -0
  636. package/src/components/ui/custom/sidebar/nav-main.tsx +64 -0
  637. package/src/components/ui/custom/sidebar/nav-submenu-collapsible.tsx +60 -0
  638. package/src/components/ui/custom/sidebar/nav-submenu-dropdown.tsx +56 -0
  639. package/src/components/ui/custom/sidebar/nav-user.tsx +77 -0
  640. package/src/components/ui/custom/sidebar/sidebar-button.tsx +30 -0
  641. package/src/components/ui/custom/sidebar/sidebar-item-two-lines.tsx +25 -0
  642. package/src/components/ui/custom/sidebar/sidebar-item.tsx +19 -0
  643. package/src/components/ui/custom/sidebar/types/sidebar.ts +31 -0
  644. package/src/components/ui/custom/table/data-table-export.tsx +126 -0
  645. package/src/components/ui/custom/table/data-table-footer.tsx +148 -0
  646. package/src/components/ui/custom/table/data-table-header.tsx +58 -0
  647. package/src/components/ui/custom/table/data-table-rows.tsx +94 -0
  648. package/src/components/ui/custom/table/data-table.tsx +285 -0
  649. package/src/components/ui/custom/table/types/data-table.ts +31 -0
  650. package/src/components/ui/custom/theme-provider.tsx +121 -0
  651. package/src/components/ui/dateRangePicker.tsx +63 -0
  652. package/src/components/ui/dialog.tsx +84 -0
  653. package/src/components/ui/drawer.tsx +116 -0
  654. package/src/components/ui/dropdown-menu.tsx +173 -0
  655. package/src/components/ui/form.tsx +114 -0
  656. package/src/components/ui/hover-card.tsx +27 -0
  657. package/src/components/ui/input.tsx +265 -0
  658. package/src/components/ui/label.tsx +15 -0
  659. package/src/components/ui/masks.ts +35 -0
  660. package/src/components/ui/pagination.tsx +78 -0
  661. package/src/components/ui/popover.tsx +32 -0
  662. package/src/components/ui/progress.tsx +22 -0
  663. package/src/components/ui/radio-group.tsx +36 -0
  664. package/src/components/ui/scroll-area.tsx +46 -0
  665. package/src/components/ui/select.tsx +130 -0
  666. package/src/components/ui/separator.tsx +29 -0
  667. package/src/components/ui/sheet.tsx +90 -0
  668. package/src/components/ui/sidebar.tsx +598 -0
  669. package/src/components/ui/skeleton.tsx +15 -0
  670. package/src/components/ui/slider.tsx +18 -0
  671. package/src/components/ui/switch.tsx +26 -0
  672. package/src/components/ui/table.tsx +53 -0
  673. package/src/components/ui/tabs.tsx +47 -0
  674. package/src/components/ui/textarea.tsx +27 -0
  675. package/src/components/ui/toast.tsx +88 -0
  676. package/src/components/ui/toaster.tsx +49 -0
  677. package/src/components/ui/tooltip.tsx +31 -0
  678. package/src/components/ui/use-calendar.tsx +61 -0
  679. package/src/components/ui/use-toast.ts +186 -0
  680. package/src/hooks/use-mobile.tsx +19 -0
  681. package/src/index.ts +299 -0
  682. package/src/lib/help/date-utils.ts +41 -0
  683. package/src/lib/help/format.ts +171 -0
  684. package/src/lib/help/theme.ts +346 -0
  685. package/src/lib/help/uuid.ts +4 -0
  686. package/src/lib/utils.ts +6 -0
  687. package/src/styles/globals.css +59 -0
@@ -0,0 +1,145 @@
1
+ import { cn } from "@/lib/utils"
2
+ import { type DialogProps } from "@radix-ui/react-dialog"
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
+
8
+ const Command = React.forwardRef<
9
+ React.ElementRef<typeof CommandPrimitive>,
10
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive>
11
+ >(({ className, ...props }, ref) => (
12
+ <CommandPrimitive
13
+ ref={ref}
14
+ className={cn(
15
+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
16
+ className
17
+ )}
18
+ {...props}
19
+ />
20
+ ))
21
+ Command.displayName = CommandPrimitive.displayName
22
+
23
+ const CommandDialog = ({ children, ...props }: DialogProps) => {
24
+ return (
25
+ <Dialog {...props}>
26
+ <DialogContent className="overflow-hidden p-0 shadow-lg">
27
+ <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">
28
+ {children}
29
+ </Command>
30
+ </DialogContent>
31
+ </Dialog>
32
+ )
33
+ }
34
+
35
+ const CommandInput = React.forwardRef<
36
+ React.ElementRef<typeof CommandPrimitive.Input>,
37
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>
38
+ >(({ className, ...props }, ref) => (
39
+ <div className="flex items-center border-b px-3" cmdk-input-wrapper="">
40
+ <Search className="mr-2 h-4 w-4 shrink-0 opacity-50" />
41
+ <CommandPrimitive.Input
42
+ ref={ref}
43
+ className={cn(
44
+ "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",
45
+ className
46
+ )}
47
+ {...props}
48
+ />
49
+ </div>
50
+ ))
51
+
52
+ CommandInput.displayName = CommandPrimitive.Input.displayName
53
+
54
+ const CommandList = React.forwardRef<
55
+ React.ElementRef<typeof CommandPrimitive.List>,
56
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>
57
+ >(({ className, ...props }, ref) => (
58
+ <CommandPrimitive.List
59
+ ref={ref}
60
+ className={cn("max-h-[300px] overflow-y-auto overflow-x-hidden", className)}
61
+ {...props}
62
+ />
63
+ ))
64
+
65
+ CommandList.displayName = CommandPrimitive.List.displayName
66
+
67
+ const CommandEmpty = React.forwardRef<
68
+ React.ElementRef<typeof CommandPrimitive.Empty>,
69
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>
70
+ >((props, ref) => (
71
+ <CommandPrimitive.Empty
72
+ ref={ref}
73
+ className="py-6 text-center text-sm"
74
+ {...props}
75
+ />
76
+ ))
77
+
78
+ CommandEmpty.displayName = CommandPrimitive.Empty.displayName
79
+
80
+ const CommandGroup = React.forwardRef<
81
+ React.ElementRef<typeof CommandPrimitive.Group>,
82
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>
83
+ >(({ className, ...props }, ref) => (
84
+ <CommandPrimitive.Group
85
+ ref={ref}
86
+ className={cn(
87
+ "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",
88
+ className
89
+ )}
90
+ {...props}
91
+ />
92
+ ))
93
+
94
+ CommandGroup.displayName = CommandPrimitive.Group.displayName
95
+
96
+ const CommandSeparator = React.forwardRef<
97
+ React.ElementRef<typeof CommandPrimitive.Separator>,
98
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>
99
+ >(({ className, ...props }, ref) => (
100
+ <CommandPrimitive.Separator
101
+ ref={ref}
102
+ className={cn("-mx-1 h-px bg-border", className)}
103
+ {...props}
104
+ />
105
+ ))
106
+ CommandSeparator.displayName = CommandPrimitive.Separator.displayName
107
+
108
+ const CommandItem = React.forwardRef<
109
+ React.ElementRef<typeof CommandPrimitive.Item>,
110
+ React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>
111
+ >(({ className, ...props }, ref) => (
112
+ <CommandPrimitive.Item
113
+ ref={ref}
114
+ className={cn(
115
+ "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",
116
+ className
117
+ )}
118
+ {...props}
119
+ />
120
+ ))
121
+
122
+ CommandItem.displayName = CommandPrimitive.Item.displayName
123
+
124
+ const CommandShortcut = ({
125
+ className,
126
+ ...props
127
+ }: React.HTMLAttributes<HTMLSpanElement>) => {
128
+ return (
129
+ <span
130
+ className={cn(
131
+ "ml-auto text-xs tracking-widest text-muted-foreground",
132
+ className
133
+ )}
134
+ {...props}
135
+ />
136
+ )
137
+ }
138
+ CommandShortcut.displayName = "CommandShortcut"
139
+
140
+ export {
141
+ Command,
142
+ CommandDialog, CommandEmpty,
143
+ CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut
144
+ }
145
+
@@ -0,0 +1,198 @@
1
+ import * as React from "react"
2
+ import * as ContextMenuPrimitive from "@radix-ui/react-context-menu"
3
+ import { Check, ChevronRight, Circle } from "lucide-react"
4
+
5
+ import { cn } from "@/lib/utils"
6
+
7
+ const ContextMenu = ContextMenuPrimitive.Root
8
+
9
+ const ContextMenuTrigger = ContextMenuPrimitive.Trigger
10
+
11
+ const ContextMenuGroup = ContextMenuPrimitive.Group
12
+
13
+ const ContextMenuPortal = ContextMenuPrimitive.Portal
14
+
15
+ const ContextMenuSub = ContextMenuPrimitive.Sub
16
+
17
+ const ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup
18
+
19
+ const ContextMenuSubTrigger = React.forwardRef<
20
+ React.ElementRef<typeof ContextMenuPrimitive.SubTrigger>,
21
+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger> & {
22
+ inset?: boolean
23
+ }
24
+ >(({ className, inset, children, ...props }, ref) => (
25
+ <ContextMenuPrimitive.SubTrigger
26
+ ref={ref}
27
+ className={cn(
28
+ "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",
29
+ inset && "pl-8",
30
+ className
31
+ )}
32
+ {...props}
33
+ >
34
+ {children}
35
+ <ChevronRight className="ml-auto h-4 w-4" />
36
+ </ContextMenuPrimitive.SubTrigger>
37
+ ))
38
+ ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName
39
+
40
+ const ContextMenuSubContent = React.forwardRef<
41
+ React.ElementRef<typeof ContextMenuPrimitive.SubContent>,
42
+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubContent>
43
+ >(({ className, ...props }, ref) => (
44
+ <ContextMenuPrimitive.SubContent
45
+ ref={ref}
46
+ className={cn(
47
+ "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",
48
+ className
49
+ )}
50
+ {...props}
51
+ />
52
+ ))
53
+ ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName
54
+
55
+ const ContextMenuContent = React.forwardRef<
56
+ React.ElementRef<typeof ContextMenuPrimitive.Content>,
57
+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content>
58
+ >(({ className, ...props }, ref) => (
59
+ <ContextMenuPrimitive.Portal>
60
+ <ContextMenuPrimitive.Content
61
+ ref={ref}
62
+ className={cn(
63
+ "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",
64
+ className
65
+ )}
66
+ {...props}
67
+ />
68
+ </ContextMenuPrimitive.Portal>
69
+ ))
70
+ ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName
71
+
72
+ const ContextMenuItem = React.forwardRef<
73
+ React.ElementRef<typeof ContextMenuPrimitive.Item>,
74
+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item> & {
75
+ inset?: boolean
76
+ }
77
+ >(({ className, inset, ...props }, ref) => (
78
+ <ContextMenuPrimitive.Item
79
+ ref={ref}
80
+ className={cn(
81
+ "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",
82
+ inset && "pl-8",
83
+ className
84
+ )}
85
+ {...props}
86
+ />
87
+ ))
88
+ ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName
89
+
90
+ const ContextMenuCheckboxItem = React.forwardRef<
91
+ React.ElementRef<typeof ContextMenuPrimitive.CheckboxItem>,
92
+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.CheckboxItem>
93
+ >(({ className, children, checked, ...props }, ref) => (
94
+ <ContextMenuPrimitive.CheckboxItem
95
+ ref={ref}
96
+ className={cn(
97
+ "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",
98
+ className
99
+ )}
100
+ checked={checked}
101
+ {...props}
102
+ >
103
+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
104
+ <ContextMenuPrimitive.ItemIndicator>
105
+ <Check className="h-4 w-4" />
106
+ </ContextMenuPrimitive.ItemIndicator>
107
+ </span>
108
+ {children}
109
+ </ContextMenuPrimitive.CheckboxItem>
110
+ ))
111
+ ContextMenuCheckboxItem.displayName =
112
+ ContextMenuPrimitive.CheckboxItem.displayName
113
+
114
+ const ContextMenuRadioItem = React.forwardRef<
115
+ React.ElementRef<typeof ContextMenuPrimitive.RadioItem>,
116
+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioItem>
117
+ >(({ className, children, ...props }, ref) => (
118
+ <ContextMenuPrimitive.RadioItem
119
+ ref={ref}
120
+ className={cn(
121
+ "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",
122
+ className
123
+ )}
124
+ {...props}
125
+ >
126
+ <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
127
+ <ContextMenuPrimitive.ItemIndicator>
128
+ <Circle className="h-2 w-2 fill-current" />
129
+ </ContextMenuPrimitive.ItemIndicator>
130
+ </span>
131
+ {children}
132
+ </ContextMenuPrimitive.RadioItem>
133
+ ))
134
+ ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName
135
+
136
+ const ContextMenuLabel = React.forwardRef<
137
+ React.ElementRef<typeof ContextMenuPrimitive.Label>,
138
+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label> & {
139
+ inset?: boolean
140
+ }
141
+ >(({ className, inset, ...props }, ref) => (
142
+ <ContextMenuPrimitive.Label
143
+ ref={ref}
144
+ className={cn(
145
+ "px-2 py-1.5 text-sm font-semibold text-foreground",
146
+ inset && "pl-8",
147
+ className
148
+ )}
149
+ {...props}
150
+ />
151
+ ))
152
+ ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName
153
+
154
+ const ContextMenuSeparator = React.forwardRef<
155
+ React.ElementRef<typeof ContextMenuPrimitive.Separator>,
156
+ React.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Separator>
157
+ >(({ className, ...props }, ref) => (
158
+ <ContextMenuPrimitive.Separator
159
+ ref={ref}
160
+ className={cn("-mx-1 my-1 h-px bg-border", className)}
161
+ {...props}
162
+ />
163
+ ))
164
+ ContextMenuSeparator.displayName = ContextMenuPrimitive.Separator.displayName
165
+
166
+ const ContextMenuShortcut = ({
167
+ className,
168
+ ...props
169
+ }: React.HTMLAttributes<HTMLSpanElement>) => {
170
+ return (
171
+ <span
172
+ className={cn(
173
+ "ml-auto text-xs tracking-widest text-muted-foreground",
174
+ className
175
+ )}
176
+ {...props}
177
+ />
178
+ )
179
+ }
180
+ ContextMenuShortcut.displayName = "ContextMenuShortcut"
181
+
182
+ export {
183
+ ContextMenu,
184
+ ContextMenuTrigger,
185
+ ContextMenuContent,
186
+ ContextMenuItem,
187
+ ContextMenuCheckboxItem,
188
+ ContextMenuRadioItem,
189
+ ContextMenuLabel,
190
+ ContextMenuSeparator,
191
+ ContextMenuShortcut,
192
+ ContextMenuGroup,
193
+ ContextMenuPortal,
194
+ ContextMenuSub,
195
+ ContextMenuSubContent,
196
+ ContextMenuSubTrigger,
197
+ ContextMenuRadioGroup,
198
+ }
@@ -0,0 +1,97 @@
1
+ import { getMonth, getYear, setMonth, setYear } from 'date-fns';
2
+ import { ptBR } from 'date-fns/locale';
3
+ import { Calendar as CalendarIcon } from 'lucide-react';
4
+ import React, { useState } from 'react';
5
+ import { DayPicker } from 'react-day-picker';
6
+ import { cn } from '../../../lib/utils';
7
+ import { Calendar as CalendarComponent } from '../calendar';
8
+ import { Popover, PopoverContent, PopoverTrigger } from '../popover';
9
+ import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '../select';
10
+
11
+ export type CalendarProps = React.ComponentProps<typeof DayPicker>;
12
+
13
+ interface CalendarFormProps extends React.HTMLAttributes<HTMLDivElement> {
14
+ onDateSelected: (selectedDateProps: Date | null) => void;
15
+ selectedDateProps?: Date | null;
16
+ startYear?: number;
17
+ endYear?: number;
18
+ }
19
+
20
+ const DatePicker = React.forwardRef<HTMLDivElement, CalendarFormProps>(
21
+ ({ className, onDateSelected, selectedDateProps, startYear = getYear(new Date()) - 100, endYear = getYear(new Date()) + 100, ...props }, ref) => {
22
+ const [selectedDate, setSelectedDate] = useState<Date | null>(null);
23
+ const [isPopoverOpen, setIsPopoverOpen] = useState(false);
24
+ const months = ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'];
25
+
26
+ const years = Array.from({ length: endYear - startYear + 1 }, (_, i) => startYear + i);
27
+
28
+ const handleMonthChange = (month: string) => {
29
+ if (selectedDate) {
30
+ const newDate = setMonth(selectedDate, months.indexOf(month));
31
+ setSelectedDate(newDate);
32
+ }
33
+ };
34
+
35
+ const handleYearChange = (year: string) => {
36
+ if (selectedDate) {
37
+ const newDate = setYear(selectedDate, parseInt(year, 10));
38
+ setSelectedDate(newDate);
39
+ }
40
+ };
41
+
42
+ const handleDateChange = (selectedDate: Date | undefined) => {
43
+ const newDate = selectedDate || null;
44
+ setSelectedDate(newDate);
45
+ setIsPopoverOpen(false);
46
+ onDateSelected(newDate);
47
+ };
48
+
49
+ return (
50
+ <div className={cn('gap-2', className)} ref={ref} {...props}>
51
+ <Popover open={isPopoverOpen} onOpenChange={setIsPopoverOpen}>
52
+ <PopoverTrigger asChild>
53
+ <CalendarIcon size={16} className='cursor-pointer text-gray-500' onClick={() => setIsPopoverOpen(true)} />
54
+ </PopoverTrigger>
55
+ <PopoverContent className='w-auto p-0 flex flex-col justify-center' align='start'>
56
+ <div className='flex justify-between pt-5 px-5'>
57
+ <Select onValueChange={handleMonthChange} value={months[getMonth(selectedDate || new Date())]}>
58
+ <SelectTrigger className='w-[100px]'>
59
+ <SelectValue placeholder='Month' />
60
+ </SelectTrigger>
61
+ <SelectContent>
62
+ {months.map((month) => (
63
+ <SelectItem key={month} value={month}>
64
+ {month}
65
+ </SelectItem>
66
+ ))}
67
+ </SelectContent>
68
+ </Select>
69
+ <Select onValueChange={handleYearChange} value={getYear(selectedDate || new Date()).toString()}>
70
+ <SelectTrigger className='w-[100px]'>
71
+ <SelectValue placeholder='Year' />
72
+ </SelectTrigger>
73
+ <SelectContent>
74
+ {years.map((year) => (
75
+ <SelectItem key={year} value={year.toString()}>
76
+ {year}
77
+ </SelectItem>
78
+ ))}
79
+ </SelectContent>
80
+ </Select>
81
+ </div>
82
+ <CalendarComponent
83
+ mode='single'
84
+ locale={ptBR}
85
+ onSelect={handleDateChange}
86
+ className='bg-white text-black'
87
+ month={selectedDate || undefined}
88
+ />
89
+ </PopoverContent>
90
+ </Popover>
91
+ </div>
92
+ );
93
+ },
94
+ );
95
+
96
+ export { DatePicker };
97
+
@@ -0,0 +1,53 @@
1
+ import { Checkbox } from '../../checkbox';
2
+ import * as FormComponents from '../../form';
3
+ import { formHelpText } from './form-help-text';
4
+ import { formLabel } from './form-label';
5
+ import { formMessage } from './form-message';
6
+
7
+ interface Props {
8
+ control: any;
9
+ name: string;
10
+ label: string;
11
+ subLabel?: string;
12
+ helpText?: JSX.Element;
13
+ className?: string;
14
+ disabled?: boolean;
15
+ onCheckedChange?: (checked: boolean) => void;
16
+ }
17
+
18
+ export const FormInputCheckbox: React.FC<Props> = ({ control, name, label, helpText, className, disabled, onCheckedChange }) => {
19
+ const { FormField, FormItem, FormLabel, FormControl, FormMessage } = FormComponents;
20
+
21
+ return (
22
+ <FormField
23
+ control={control}
24
+ name={name}
25
+ render={({ field }) => (
26
+ <FormItem className={className}>
27
+ <div className='flex items-center gap-2'>
28
+ <FormControl>
29
+ <Checkbox
30
+ value={field.value}
31
+ className={`${
32
+ field.value
33
+ ? 'bg-purple-700 border border-purple-900 text-white rounded-[3px]'
34
+ : 'bg-white border border-black text-black'
35
+ }`}
36
+ onCheckedChange={(checked) => {
37
+ field?.onChange?.(checked);
38
+ onCheckedChange?.(checked as boolean);
39
+ }}
40
+ disabled={disabled}
41
+ />
42
+ </FormControl>
43
+ <div className='flex h-full items-center space-x-1.5'>
44
+ {label && formLabel(FormLabel, label)}
45
+ {helpText && formHelpText(helpText)}
46
+ </div>
47
+ </div>
48
+ {formMessage(FormMessage)}
49
+ </FormItem>
50
+ )}
51
+ />
52
+ );
53
+ };
@@ -0,0 +1,140 @@
1
+ import { Paintbrush } from 'lucide-react';
2
+ import { useState } from 'react';
3
+ import { HexColorPicker } from 'react-colorful';
4
+ import { cn } from '../../../../lib/utils';
5
+ import { Button } from '../../button';
6
+ import * as FormComponents from '../../form';
7
+ import { Input } from '../../input';
8
+ import { Label } from '../../label';
9
+ import { Popover, PopoverContent, PopoverTrigger } from '../../popover';
10
+ import { formHelpText } from './form-help-text';
11
+ import { formLabelAndSubLabel } from './form-label';
12
+ import { formMessage } from './form-message';
13
+ import { hexToRgb, rgbToHex } from './utils';
14
+
15
+ interface Props {
16
+ control: any;
17
+ id?: string;
18
+ name: string;
19
+ label: string;
20
+ subLabel?: string;
21
+ helpText?: JSX.Element;
22
+ placeholder?: string;
23
+ className?: string;
24
+ disabled?: boolean;
25
+ required?: boolean;
26
+ }
27
+
28
+ export const FormInputColor: React.FC<Props> = ({ control, name, label, subLabel, helpText, placeholder, className, disabled, required }) => {
29
+ const { FormField, FormItem, FormLabel, FormControl, FormMessage } = FormComponents;
30
+
31
+ const DEFAULT_COLOR = '#000000';
32
+ const [currentColor, setCurrentColor] = useState<string>(DEFAULT_COLOR);
33
+ const rgb = hexToRgb(currentColor) || { r: 0, g: 0, b: 0 };
34
+
35
+ const handleColorChange = (newColor: string, onChange: (...event: any[]) => void) => {
36
+ onChange?.(newColor);
37
+ setCurrentColor(newColor);
38
+ };
39
+
40
+ const handleHexChange = (hex: string, onChange: (...event: any[]) => void) => {
41
+ if (/^#[0-9A-Fa-f]{6}$/.test(hex)) {
42
+ handleColorChange(hex, onChange);
43
+ } else {
44
+ setCurrentColor(hex);
45
+ }
46
+ };
47
+
48
+ const handleRgbChange = (key: keyof typeof rgb, value: string, onChange: (...event: any[]) => void) => {
49
+ const numValue = Number.parseInt(value);
50
+
51
+ if (!Number.isNaN(numValue) && numValue >= 0 && numValue <= 255) {
52
+ const newRgb = { ...rgb, [key]: numValue };
53
+
54
+ handleColorChange(rgbToHex(newRgb), onChange);
55
+ }
56
+ };
57
+
58
+ return (
59
+ <FormField
60
+ control={control}
61
+ name={name}
62
+ render={({ field, formState }) => (
63
+ <FormItem className={className}>
64
+ <div className='flex items-center space-x-1.5'>
65
+ {label && formLabelAndSubLabel(FormLabel, label, subLabel, required)}
66
+ {helpText && formHelpText(helpText)}
67
+ </div>
68
+ <Popover>
69
+ <PopoverTrigger asChild>
70
+ <FormControl>
71
+ <Button
72
+ variant='outline'
73
+ className={cn('w-[240px] justify-start text-left font-normal', !field.value && 'text-zinc-500', className)}
74
+ disabled={disabled || formState.isSubmitting}
75
+ >
76
+ <div className='w-full flex items-center gap-2'>
77
+ {field.value ? (
78
+ <div
79
+ className='h-4 w-4 rounded !bg-center !bg-cover transition-all border'
80
+ style={{ backgroundColor: field.value }}
81
+ />
82
+ ) : (
83
+ <Paintbrush className='h-4 w-4' />
84
+ )}
85
+ <div className='truncate flex-1 text-sm'>
86
+ {field.value ? field.value : placeholder || 'Selecione uma cor'}
87
+ </div>
88
+ </div>
89
+ </Button>
90
+ </FormControl>
91
+ </PopoverTrigger>
92
+ <PopoverContent className={cn('w-80', className)}>
93
+ <div className='flex flex-col gap-4'>
94
+ <section className='[&_.react-colorful]:w-auto'>
95
+ <HexColorPicker
96
+ color={field.value ?? DEFAULT_COLOR}
97
+ onChange={(newColor) => handleColorChange(newColor, field.onChange)}
98
+ />
99
+ </section>
100
+ <div className='flex gap-2'>
101
+ <div className='flex flex-col gap-1'>
102
+ <Label>Hex</Label>
103
+ <Input value={currentColor} onChange={(e) => handleHexChange(e.target.value, field.onChange)} maxLength={7} />
104
+ </div>
105
+ <div className='flex gap-2'>
106
+ <div className='flex flex-col gap-1'>
107
+ <Label>R</Label>
108
+ <Input
109
+ value={rgb.r}
110
+ onChange={(e) => handleRgbChange('r', e.target.value, field.onChange)}
111
+ className='w-14'
112
+ />
113
+ </div>
114
+ <div className='flex flex-col gap-1'>
115
+ <Label>G</Label>
116
+ <Input
117
+ value={rgb.g}
118
+ onChange={(e) => handleRgbChange('g', e.target.value, field.onChange)}
119
+ className='w-14'
120
+ />
121
+ </div>
122
+ <div className='flex flex-col gap-1'>
123
+ <Label>B</Label>
124
+ <Input
125
+ value={rgb.b}
126
+ onChange={(e) => handleRgbChange('b', e.target.value, field.onChange)}
127
+ className='w-14'
128
+ />
129
+ </div>
130
+ </div>
131
+ </div>
132
+ </div>
133
+ </PopoverContent>
134
+ </Popover>
135
+ {formMessage(FormMessage)}
136
+ </FormItem>
137
+ )}
138
+ />
139
+ );
140
+ };