eai-frontend-components 2.0.23 → 2.0.24

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 (301) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +298 -298
  3. package/dist/eai-frontend-components-1.0.0.tgz +0 -0
  4. package/dist/index.d.ts +18 -18
  5. package/dist/index.esm.js +7 -7
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.js +7 -7
  8. package/dist/index.js.map +1 -1
  9. package/package.json +147 -146
  10. package/dist/components/ui/accordion.d.ts +0 -8
  11. package/dist/components/ui/accordion.d.ts.map +0 -1
  12. package/dist/components/ui/accordion.js +0 -13
  13. package/dist/components/ui/alert-dialog.d.ts +0 -25
  14. package/dist/components/ui/alert-dialog.d.ts.map +0 -1
  15. package/dist/components/ui/alert-dialog.js +0 -27
  16. package/dist/components/ui/alert.d.ts +0 -9
  17. package/dist/components/ui/alert.d.ts.map +0 -1
  18. package/dist/components/ui/alert.js +0 -22
  19. package/dist/components/ui/avatar.d.ts +0 -7
  20. package/dist/components/ui/avatar.d.ts.map +0 -1
  21. package/dist/components/ui/avatar.js +0 -11
  22. package/dist/components/ui/badge.d.ts +0 -10
  23. package/dist/components/ui/badge.d.ts.map +0 -1
  24. package/dist/components/ui/badge.js +0 -26
  25. package/dist/components/ui/breadcrumb.d.ts +0 -20
  26. package/dist/components/ui/breadcrumb.d.ts.map +0 -1
  27. package/dist/components/ui/breadcrumb.js +0 -23
  28. package/dist/components/ui/button.d.ts +0 -12
  29. package/dist/components/ui/button.d.ts.map +0 -1
  30. package/dist/components/ui/button.js +0 -33
  31. package/dist/components/ui/calendar.d.ts +0 -9
  32. package/dist/components/ui/calendar.d.ts.map +0 -1
  33. package/dist/components/ui/calendar.js +0 -70
  34. package/dist/components/ui/card.d.ts +0 -9
  35. package/dist/components/ui/card.d.ts.map +0 -1
  36. package/dist/components/ui/card.js +0 -16
  37. package/dist/components/ui/carousel.d.ts +0 -19
  38. package/dist/components/ui/carousel.d.ts.map +0 -1
  39. package/dist/components/ui/carousel.js +0 -98
  40. package/dist/components/ui/chart.d.ts +0 -63
  41. package/dist/components/ui/chart.d.ts.map +0 -1
  42. package/dist/components/ui/chart.js +0 -132
  43. package/dist/components/ui/checkbox.d.ts +0 -5
  44. package/dist/components/ui/checkbox.d.ts.map +0 -1
  45. package/dist/components/ui/checkbox.js +0 -8
  46. package/dist/components/ui/collapsible.d.ts +0 -6
  47. package/dist/components/ui/collapsible.d.ts.map +0 -1
  48. package/dist/components/ui/collapsible.js +0 -5
  49. package/dist/components/ui/command.d.ts +0 -81
  50. package/dist/components/ui/command.d.ts.map +0 -1
  51. package/dist/components/ui/command.js +0 -28
  52. package/dist/components/ui/context-menu.d.ts +0 -28
  53. package/dist/components/ui/context-menu.d.ts.map +0 -1
  54. package/dist/components/ui/context-menu.js +0 -33
  55. package/dist/components/ui/custom/date-picker.d.ts +0 -12
  56. package/dist/components/ui/custom/date-picker.d.ts.map +0 -1
  57. package/dist/components/ui/custom/date-picker.js +0 -35
  58. package/dist/components/ui/custom/form/checkbox.d.ts +0 -13
  59. package/dist/components/ui/custom/form/checkbox.d.ts.map +0 -1
  60. package/dist/components/ui/custom/form/checkbox.js +0 -15
  61. package/dist/components/ui/custom/form/color.d.ts +0 -15
  62. package/dist/components/ui/custom/form/color.d.ts.map +0 -1
  63. package/dist/components/ui/custom/form/color.js +0 -40
  64. package/dist/components/ui/custom/form/combobox.d.ts +0 -37
  65. package/dist/components/ui/custom/form/combobox.d.ts.map +0 -1
  66. package/dist/components/ui/custom/form/combobox.js +0 -82
  67. package/dist/components/ui/custom/form/cpf-cnpj.d.ts +0 -16
  68. package/dist/components/ui/custom/form/cpf-cnpj.d.ts.map +0 -1
  69. package/dist/components/ui/custom/form/cpf-cnpj.js +0 -32
  70. package/dist/components/ui/custom/form/currency.d.ts +0 -14
  71. package/dist/components/ui/custom/form/currency.d.ts.map +0 -1
  72. package/dist/components/ui/custom/form/currency.js +0 -15
  73. package/dist/components/ui/custom/form/date-range.d.ts +0 -16
  74. package/dist/components/ui/custom/form/date-range.d.ts.map +0 -1
  75. package/dist/components/ui/custom/form/date-range.js +0 -24
  76. package/dist/components/ui/custom/form/date.d.ts +0 -16
  77. package/dist/components/ui/custom/form/date.d.ts.map +0 -1
  78. package/dist/components/ui/custom/form/date.js +0 -35
  79. package/dist/components/ui/custom/form/decimal.d.ts +0 -14
  80. package/dist/components/ui/custom/form/decimal.d.ts.map +0 -1
  81. package/dist/components/ui/custom/form/decimal.js +0 -15
  82. package/dist/components/ui/custom/form/file.d.ts +0 -15
  83. package/dist/components/ui/custom/form/file.d.ts.map +0 -1
  84. package/dist/components/ui/custom/form/file.js +0 -18
  85. package/dist/components/ui/custom/form/form-help-text.d.ts +0 -3
  86. package/dist/components/ui/custom/form/form-help-text.d.ts.map +0 -1
  87. package/dist/components/ui/custom/form/form-help-text.js +0 -7
  88. package/dist/components/ui/custom/form/form-label.d.ts +0 -7
  89. package/dist/components/ui/custom/form/form-label.d.ts.map +0 -1
  90. package/dist/components/ui/custom/form/form-label.js +0 -9
  91. package/dist/components/ui/custom/form/form-message.d.ts +0 -5
  92. package/dist/components/ui/custom/form/form-message.d.ts.map +0 -1
  93. package/dist/components/ui/custom/form/form-message.js +0 -5
  94. package/dist/components/ui/custom/form/ghost.d.ts +0 -8
  95. package/dist/components/ui/custom/form/ghost.d.ts.map +0 -1
  96. package/dist/components/ui/custom/form/ghost.js +0 -8
  97. package/dist/components/ui/custom/form/input.d.ts +0 -18
  98. package/dist/components/ui/custom/form/input.d.ts.map +0 -1
  99. package/dist/components/ui/custom/form/input.js +0 -14
  100. package/dist/components/ui/custom/form/mask.d.ts +0 -19
  101. package/dist/components/ui/custom/form/mask.d.ts.map +0 -1
  102. package/dist/components/ui/custom/form/mask.js +0 -19
  103. package/dist/components/ui/custom/form/multi-select.d.ts +0 -26
  104. package/dist/components/ui/custom/form/multi-select.d.ts.map +0 -1
  105. package/dist/components/ui/custom/form/multi-select.js +0 -66
  106. package/dist/components/ui/custom/form/password.d.ts +0 -16
  107. package/dist/components/ui/custom/form/password.d.ts.map +0 -1
  108. package/dist/components/ui/custom/form/password.js +0 -14
  109. package/dist/components/ui/custom/form/percent.d.ts +0 -14
  110. package/dist/components/ui/custom/form/percent.d.ts.map +0 -1
  111. package/dist/components/ui/custom/form/percent.js +0 -15
  112. package/dist/components/ui/custom/form/phone.d.ts +0 -16
  113. package/dist/components/ui/custom/form/phone.d.ts.map +0 -1
  114. package/dist/components/ui/custom/form/phone.js +0 -23
  115. package/dist/components/ui/custom/form/radio-group.d.ts +0 -23
  116. package/dist/components/ui/custom/form/radio-group.d.ts.map +0 -1
  117. package/dist/components/ui/custom/form/radio-group.js +0 -15
  118. package/dist/components/ui/custom/form/select.d.ts +0 -20
  119. package/dist/components/ui/custom/form/select.d.ts.map +0 -1
  120. package/dist/components/ui/custom/form/select.js +0 -12
  121. package/dist/components/ui/custom/form/step-new-form.d.ts +0 -10
  122. package/dist/components/ui/custom/form/step-new-form.d.ts.map +0 -1
  123. package/dist/components/ui/custom/form/step-new-form.js +0 -13
  124. package/dist/components/ui/custom/form/switch.d.ts +0 -13
  125. package/dist/components/ui/custom/form/switch.d.ts.map +0 -1
  126. package/dist/components/ui/custom/form/switch.js +0 -16
  127. package/dist/components/ui/custom/form/text.d.ts +0 -18
  128. package/dist/components/ui/custom/form/text.d.ts.map +0 -1
  129. package/dist/components/ui/custom/form/text.js +0 -14
  130. package/dist/components/ui/custom/form/textarea.d.ts +0 -16
  131. package/dist/components/ui/custom/form/textarea.d.ts.map +0 -1
  132. package/dist/components/ui/custom/form/textarea.js +0 -19
  133. package/dist/components/ui/custom/form/utils.d.ts +0 -18
  134. package/dist/components/ui/custom/form/utils.d.ts.map +0 -1
  135. package/dist/components/ui/custom/form/utils.js +0 -88
  136. package/dist/components/ui/custom/header.d.ts +0 -11
  137. package/dist/components/ui/custom/header.d.ts.map +0 -1
  138. package/dist/components/ui/custom/header.js +0 -74
  139. package/dist/components/ui/custom/label.d.ts +0 -13
  140. package/dist/components/ui/custom/label.d.ts.map +0 -1
  141. package/dist/components/ui/custom/label.js +0 -20
  142. package/dist/components/ui/custom/not-found.d.ts +0 -3
  143. package/dist/components/ui/custom/not-found.d.ts.map +0 -1
  144. package/dist/components/ui/custom/not-found.js +0 -9
  145. package/dist/components/ui/custom/sidebar/module-switcher.d.ts +0 -9
  146. package/dist/components/ui/custom/sidebar/module-switcher.d.ts.map +0 -1
  147. package/dist/components/ui/custom/sidebar/module-switcher.js +0 -20
  148. package/dist/components/ui/custom/sidebar/nav-footer.d.ts +0 -7
  149. package/dist/components/ui/custom/sidebar/nav-footer.d.ts.map +0 -1
  150. package/dist/components/ui/custom/sidebar/nav-footer.js +0 -13
  151. package/dist/components/ui/custom/sidebar/nav-main.d.ts +0 -7
  152. package/dist/components/ui/custom/sidebar/nav-main.d.ts.map +0 -1
  153. package/dist/components/ui/custom/sidebar/nav-main.js +0 -27
  154. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.d.ts +0 -9
  155. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.d.ts.map +0 -1
  156. package/dist/components/ui/custom/sidebar/nav-submenu-collapsible.js +0 -18
  157. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.d.ts +0 -10
  158. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.d.ts.map +0 -1
  159. package/dist/components/ui/custom/sidebar/nav-submenu-dropdown.js +0 -10
  160. package/dist/components/ui/custom/sidebar/nav-user.d.ts +0 -9
  161. package/dist/components/ui/custom/sidebar/nav-user.d.ts.map +0 -1
  162. package/dist/components/ui/custom/sidebar/nav-user.js +0 -24
  163. package/dist/components/ui/custom/sidebar/sidebar-button.d.ts +0 -9
  164. package/dist/components/ui/custom/sidebar/sidebar-button.d.ts.map +0 -1
  165. package/dist/components/ui/custom/sidebar/sidebar-button.js +0 -7
  166. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.d.ts +0 -12
  167. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.d.ts.map +0 -1
  168. package/dist/components/ui/custom/sidebar/sidebar-item-two-lines.js +0 -5
  169. package/dist/components/ui/custom/sidebar/sidebar-item.d.ts +0 -9
  170. package/dist/components/ui/custom/sidebar/sidebar-item.d.ts.map +0 -1
  171. package/dist/components/ui/custom/sidebar/sidebar-item.js +0 -7
  172. package/dist/components/ui/custom/sidebar/types/sidebar.d.ts +0 -29
  173. package/dist/components/ui/custom/sidebar/types/sidebar.d.ts.map +0 -1
  174. package/dist/components/ui/custom/sidebar/types/sidebar.js +0 -5
  175. package/dist/components/ui/custom/table/data-table-export.d.ts +0 -8
  176. package/dist/components/ui/custom/table/data-table-export.d.ts.map +0 -1
  177. package/dist/components/ui/custom/table/data-table-export.js +0 -65
  178. package/dist/components/ui/custom/table/data-table-footer.d.ts +0 -25
  179. package/dist/components/ui/custom/table/data-table-footer.d.ts.map +0 -1
  180. package/dist/components/ui/custom/table/data-table-footer.js +0 -39
  181. package/dist/components/ui/custom/table/data-table-header.d.ts +0 -9
  182. package/dist/components/ui/custom/table/data-table-header.d.ts.map +0 -1
  183. package/dist/components/ui/custom/table/data-table-header.js +0 -11
  184. package/dist/components/ui/custom/table/data-table-rows.d.ts +0 -13
  185. package/dist/components/ui/custom/table/data-table-rows.d.ts.map +0 -1
  186. package/dist/components/ui/custom/table/data-table-rows.js +0 -25
  187. package/dist/components/ui/custom/table/data-table.d.ts +0 -35
  188. package/dist/components/ui/custom/table/data-table.d.ts.map +0 -1
  189. package/dist/components/ui/custom/table/data-table.js +0 -99
  190. package/dist/components/ui/custom/table/types/data-table.d.ts +0 -29
  191. package/dist/components/ui/custom/table/types/data-table.d.ts.map +0 -1
  192. package/dist/components/ui/custom/table/types/data-table.js +0 -1
  193. package/dist/components/ui/custom/theme-provider.d.ts +0 -24
  194. package/dist/components/ui/custom/theme-provider.d.ts.map +0 -1
  195. package/dist/components/ui/custom/theme-provider.js +0 -79
  196. package/dist/components/ui/dateRangePicker.d.ts +0 -3
  197. package/dist/components/ui/dateRangePicker.d.ts.map +0 -1
  198. package/dist/components/ui/dateRangePicker.js +0 -15
  199. package/dist/components/ui/dialog.d.ts +0 -23
  200. package/dist/components/ui/dialog.d.ts.map +0 -1
  201. package/dist/components/ui/dialog.js +0 -23
  202. package/dist/components/ui/drawer.d.ts +0 -23
  203. package/dist/components/ui/drawer.d.ts.map +0 -1
  204. package/dist/components/ui/drawer.js +0 -22
  205. package/dist/components/ui/dropdown-menu.d.ts +0 -28
  206. package/dist/components/ui/dropdown-menu.d.ts.map +0 -1
  207. package/dist/components/ui/dropdown-menu.js +0 -32
  208. package/dist/components/ui/form.d.ts +0 -24
  209. package/dist/components/ui/form.d.ts.map +0 -1
  210. package/dist/components/ui/form.js +0 -60
  211. package/dist/components/ui/hover-card.d.ts +0 -7
  212. package/dist/components/ui/hover-card.d.ts.map +0 -1
  213. package/dist/components/ui/hover-card.js +0 -9
  214. package/dist/components/ui/input.d.ts +0 -24
  215. package/dist/components/ui/input.d.ts.map +0 -1
  216. package/dist/components/ui/input.js +0 -71
  217. package/dist/components/ui/label.d.ts +0 -6
  218. package/dist/components/ui/label.d.ts.map +0 -1
  219. package/dist/components/ui/label.js +0 -9
  220. package/dist/components/ui/masks.d.ts +0 -17
  221. package/dist/components/ui/masks.d.ts.map +0 -1
  222. package/dist/components/ui/masks.js +0 -25
  223. package/dist/components/ui/pagination.d.ts +0 -30
  224. package/dist/components/ui/pagination.d.ts.map +0 -1
  225. package/dist/components/ui/pagination.js +0 -23
  226. package/dist/components/ui/popover.d.ts +0 -7
  227. package/dist/components/ui/popover.d.ts.map +0 -1
  228. package/dist/components/ui/popover.js +0 -11
  229. package/dist/components/ui/progress.d.ts +0 -5
  230. package/dist/components/ui/progress.d.ts.map +0 -1
  231. package/dist/components/ui/progress.js +0 -7
  232. package/dist/components/ui/radio-group.d.ts +0 -6
  233. package/dist/components/ui/radio-group.d.ts.map +0 -1
  234. package/dist/components/ui/radio-group.js +0 -14
  235. package/dist/components/ui/scroll-area.d.ts +0 -6
  236. package/dist/components/ui/scroll-area.d.ts.map +0 -1
  237. package/dist/components/ui/scroll-area.js +0 -11
  238. package/dist/components/ui/select.d.ts +0 -14
  239. package/dist/components/ui/select.d.ts.map +0 -1
  240. package/dist/components/ui/select.js +0 -24
  241. package/dist/components/ui/separator.d.ts +0 -5
  242. package/dist/components/ui/separator.d.ts.map +0 -1
  243. package/dist/components/ui/separator.js +0 -7
  244. package/dist/components/ui/sheet.d.ts +0 -26
  245. package/dist/components/ui/sheet.d.ts.map +0 -1
  246. package/dist/components/ui/sheet.js +0 -37
  247. package/dist/components/ui/sidebar.d.ts +0 -67
  248. package/dist/components/ui/sidebar.d.ts.map +0 -1
  249. package/dist/components/ui/sidebar.js +0 -221
  250. package/dist/components/ui/skeleton.d.ts +0 -3
  251. package/dist/components/ui/skeleton.d.ts.map +0 -1
  252. package/dist/components/ui/skeleton.js +0 -6
  253. package/dist/components/ui/slider.d.ts +0 -5
  254. package/dist/components/ui/slider.d.ts.map +0 -1
  255. package/dist/components/ui/slider.js +0 -7
  256. package/dist/components/ui/switch.d.ts +0 -5
  257. package/dist/components/ui/switch.d.ts.map +0 -1
  258. package/dist/components/ui/switch.js +0 -7
  259. package/dist/components/ui/table.d.ts +0 -11
  260. package/dist/components/ui/table.d.ts.map +0 -1
  261. package/dist/components/ui/table.js +0 -20
  262. package/dist/components/ui/tabs.d.ts +0 -8
  263. package/dist/components/ui/tabs.d.ts.map +0 -1
  264. package/dist/components/ui/tabs.js +0 -12
  265. package/dist/components/ui/textarea.d.ts +0 -4
  266. package/dist/components/ui/textarea.d.ts.map +0 -1
  267. package/dist/components/ui/textarea.js +0 -14
  268. package/dist/components/ui/toast.d.ts +0 -16
  269. package/dist/components/ui/toast.d.ts.map +0 -1
  270. package/dist/components/ui/toast.js +0 -34
  271. package/dist/components/ui/toaster.d.ts +0 -2
  272. package/dist/components/ui/toaster.d.ts.map +0 -1
  273. package/dist/components/ui/toaster.js +0 -21
  274. package/dist/components/ui/tooltip.d.ts +0 -8
  275. package/dist/components/ui/tooltip.d.ts.map +0 -1
  276. package/dist/components/ui/tooltip.js +0 -10
  277. package/dist/components/ui/use-calendar.d.ts +0 -7
  278. package/dist/components/ui/use-calendar.d.ts.map +0 -1
  279. package/dist/components/ui/use-calendar.js +0 -23
  280. package/dist/components/ui/use-toast.d.ts +0 -46
  281. package/dist/components/ui/use-toast.d.ts.map +0 -1
  282. package/dist/components/ui/use-toast.js +0 -125
  283. package/dist/hooks/use-mobile.d.ts +0 -2
  284. package/dist/hooks/use-mobile.d.ts.map +0 -1
  285. package/dist/hooks/use-mobile.js +0 -15
  286. package/dist/index.d.ts.map +0 -1
  287. package/dist/lib/help/date-utils.d.ts +0 -7
  288. package/dist/lib/help/date-utils.d.ts.map +0 -1
  289. package/dist/lib/help/date-utils.js +0 -34
  290. package/dist/lib/help/format.d.ts +0 -22
  291. package/dist/lib/help/format.d.ts.map +0 -1
  292. package/dist/lib/help/format.js +0 -140
  293. package/dist/lib/help/theme.d.ts +0 -291
  294. package/dist/lib/help/theme.d.ts.map +0 -1
  295. package/dist/lib/help/theme.js +0 -340
  296. package/dist/lib/help/uuid.d.ts +0 -2
  297. package/dist/lib/help/uuid.d.ts.map +0 -1
  298. package/dist/lib/help/uuid.js +0 -4
  299. package/dist/lib/utils.d.ts +0 -3
  300. package/dist/lib/utils.d.ts.map +0 -1
  301. package/dist/lib/utils.js +0 -5
package/dist/index.d.ts CHANGED
@@ -80,7 +80,7 @@ declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitiv
80
80
  declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
81
81
 
82
82
  declare const badgeVariants: (props?: ({
83
- variant?: "default" | "secondary" | "destructive" | "outline" | "surface" | "green" | "red" | "gray" | "blue" | "orange" | null | undefined;
83
+ variant?: "default" | "outline" | "destructive" | "secondary" | "surface" | "green" | "red" | "gray" | "blue" | "orange" | null | undefined;
84
84
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
85
85
  interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
86
86
  }
@@ -105,7 +105,7 @@ declare const BreadcrumbEllipsis: {
105
105
  };
106
106
 
107
107
  declare const buttonVariants: (props?: ({
108
- variant?: "default" | "secondary" | "destructive" | "outline" | "ghost" | "link" | null | undefined;
108
+ variant?: "link" | "default" | "outline" | "destructive" | "secondary" | "ghost" | null | undefined;
109
109
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
110
110
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
111
111
  interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -204,11 +204,11 @@ declare const CollapsibleContent: React$1.ForwardRefExoticComponent<CollapsibleP
204
204
 
205
205
  declare const Command: React$1.ForwardRefExoticComponent<Omit<{
206
206
  children?: React$1.ReactNode;
207
- } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement> | "key"> & {
207
+ } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
208
208
  ref?: React$1.Ref<HTMLDivElement>;
209
209
  } & {
210
210
  asChild?: boolean;
211
- }, keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild" | "key"> & {
211
+ }, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
212
212
  label?: string;
213
213
  shouldFilter?: boolean;
214
214
  filter?: (value: string, search: string, keywords?: string[]) => number;
@@ -224,51 +224,51 @@ declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pic
224
224
  ref?: React$1.Ref<HTMLInputElement>;
225
225
  } & {
226
226
  asChild?: boolean;
227
- }, "asChild" | "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
227
+ }, "key" | "asChild" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
228
228
  value?: string;
229
229
  onValueChange?: (search: string) => void;
230
230
  } & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
231
231
  declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
232
232
  children?: React$1.ReactNode;
233
- } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement> | "key"> & {
233
+ } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
234
234
  ref?: React$1.Ref<HTMLDivElement>;
235
235
  } & {
236
236
  asChild?: boolean;
237
- }, keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild" | "key"> & {
237
+ }, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
238
238
  label?: string;
239
239
  } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
240
240
  declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
241
241
  children?: React$1.ReactNode;
242
- } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement> | "key"> & {
242
+ } & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
243
243
  ref?: React$1.Ref<HTMLDivElement>;
244
244
  } & {
245
245
  asChild?: boolean;
246
- }, keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild" | "key"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
246
+ }, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
247
247
  declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
248
248
  children?: React$1.ReactNode;
249
- } & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement> | "key"> & {
249
+ } & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
250
250
  ref?: React$1.Ref<HTMLDivElement>;
251
251
  } & {
252
252
  asChild?: boolean;
253
- }, keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild" | "key">, "value" | "heading"> & {
253
+ }, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
254
254
  heading?: React$1.ReactNode;
255
255
  value?: string;
256
256
  forceMount?: boolean;
257
257
  } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
258
- declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement> | "key"> & {
258
+ declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
259
259
  ref?: React$1.Ref<HTMLDivElement>;
260
260
  } & {
261
261
  asChild?: boolean;
262
- }, keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild" | "key"> & {
262
+ }, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
263
263
  alwaysRender?: boolean;
264
264
  } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
265
265
  declare const CommandItem: React$1.ForwardRefExoticComponent<Omit<{
266
266
  children?: React$1.ReactNode;
267
- } & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof React$1.HTMLAttributes<HTMLDivElement> | "key"> & {
267
+ } & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
268
268
  ref?: React$1.Ref<HTMLDivElement>;
269
269
  } & {
270
270
  asChild?: boolean;
271
- }, keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild" | "key">, "onSelect" | "disabled" | "value"> & {
271
+ }, "key" | "asChild" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
272
272
  disabled?: boolean;
273
273
  onSelect?: (value: string) => void;
274
274
  value?: string;
@@ -739,6 +739,7 @@ interface ComboboxOption {
739
739
  }
740
740
  interface Props$h {
741
741
  control: any;
742
+ variant?: 'outline' | 'ghost' | 'link' | 'default' | 'secondary' | 'destructive';
742
743
  name: string;
743
744
  label?: string;
744
745
  subLabel?: string;
@@ -893,7 +894,7 @@ interface Props$8 {
893
894
  declare const FormInputMask: React.FC<Props$8>;
894
895
 
895
896
  declare const multiSelectVariants: (props?: ({
896
- variant?: "default" | "secondary" | "destructive" | "inverted" | null | undefined;
897
+ variant?: "default" | "destructive" | "secondary" | "inverted" | null | undefined;
897
898
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
898
899
  interface MultiSelectOption {
899
900
  value: string;
@@ -1197,7 +1198,6 @@ interface SidebarPage {
1197
1198
  disabled?: boolean;
1198
1199
  }[];
1199
1200
  }
1200
- type SidebarPages = Record<string, Record<string, SidebarPage>>;
1201
1201
 
1202
1202
  interface ModuleSwitcherProps {
1203
1203
  modules: Module[];
@@ -1730,4 +1730,4 @@ declare const addDaysToToday: (days: number) => Date;
1730
1730
  declare function isUUIDv4(str: string): boolean;
1731
1731
 
1732
1732
  export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DEFAULT_THEME_DATA, DataTable, DataTableExport, DataTableFooter, DataTableHeader, DataTableRows, DatePickerWithRange as DateRangePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormCombobox, FormControl, FormDataRange, FormDescription, FormField, FormInput, FormInputCheckbox, FormInputColor, FormInputCpfCnpj, FormInputCurrency, FormInputDate, FormInputDecimal, FormInputFile, FormInputGhost, FormInputMask, FormInputPassWord, FormInputPercent, FormInputPhone, FormInputSwitch, FormInputText, FormItem, FormLabel, FormMessage, FormRadioGroup, FormSelect, FormTextarea, Header, HoverCard, HoverCardContent, HoverCardTrigger, Input, Label, LabelWithTitle, ModuleSwitcher, MultiSelect, NavFooter, NavMain, NavSubmenuCollapsible, NavSubmenuDropdown, NavUser, NotFound, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarButton, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarItem, SidebarItemTwoLines, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarSubmenuType, SidebarTrigger, Skeleton, Slider, StepNewForm, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeProvider, Toast$1 as Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UseCalendar, aYearAgo, addDaysToToday, badgeVariants, buttonVariants, cn, convertBytesToMB, convertDaysToMonth, convertGbToMb, convertMbToGb, convertMonthToDays, convertSecondsToMinutes, formHelpText, formLabel, formLabelAndSubLabel, formMessage, formatCEP, formatCpfCnpj, formatCurrency, formatDate, formatDateCalendar, formatDateTime, formatDecimal, formatMsisdn, formatNumber, formatPercent, formatPhone, getFirstDayOf90DaysAgo, getFirstDayOfCurrentMonth, getTailwindColorShades, invertDate, isInvalidCurrencyValue, isUUIDv4, maskCpfCnpj, maskPhone, modifyCpfCnpj, modifyPhone, removeMaskNumber, replaceThemeTailwindColors, roundNumber, stringDateToDate, stringToDate, stringToNumber, toast, useFormField, useSidebar, useTheme, useToast };
1733
- export type { ActionRow, ActionTable, ButtonProps, CalendarProps, CarouselApi, ChartConfig, ComboboxOption, DataTableProps, ExportDataTable, FiltersActions, MaskModifyFunction, Module, MultiSelectOption, OriginalDataTableData, PropsStepNewForm, RadioOption, SelectOption, SidebarPage, SidebarPages, TailwindColorName };
1733
+ export type { ActionRow, ActionTable, ButtonProps, CalendarProps, CarouselApi, ChartConfig, ComboboxOption, DataTableProps, ExportDataTable, FiltersActions, MaskModifyFunction, Module, MultiSelectOption, OriginalDataTableData, PropsStepNewForm, RadioOption, SelectOption, SidebarPage, TailwindColorName };
package/dist/index.esm.js CHANGED
@@ -366,15 +366,15 @@ const ChartStyle = ({ id, config }) => {
366
366
  // biome-ignore lint/security/noDangerouslySetInnerHtml: Chart theme CSS generation requires dynamic CSS injection
367
367
  dangerouslySetInnerHTML: {
368
368
  __html: Object.entries(THEMES)
369
- .map(([theme, prefix]) => `
370
- ${prefix} [data-chart=${id}] {
369
+ .map(([theme, prefix]) => `
370
+ ${prefix} [data-chart=${id}] {
371
371
  ${colorConfig
372
372
  .map(([key, itemConfig]) => {
373
373
  const color = itemConfig.theme?.[theme] || itemConfig.color;
374
374
  return color ? ` --color-${key}: ${color};` : null;
375
375
  })
376
- .join('\n')}
377
- }
376
+ .join('\n')}
377
+ }
378
378
  `)
379
379
  .join('\n'),
380
380
  } }));
@@ -2753,7 +2753,7 @@ const FormInputColor = ({ control, name, label, subLabel, helpText, placeholder,
2753
2753
  return (jsx(FormField, { control: control, name: name, render: ({ field, formState }) => (jsxs(FormItem, { className: className, children: [jsxs("div", { className: 'flex items-center space-x-1.5', children: [label && formLabelAndSubLabel(FormLabel, label, subLabel, required), helpText && formHelpText(helpText)] }), jsxs(Popover, { children: [jsx(PopoverTrigger, { asChild: true, children: jsx(FormControl, { children: jsx(Button, { variant: 'outline', className: cn('w-[240px] justify-start text-left font-normal', !field.value && 'text-zinc-500', className), disabled: disabled || formState.isSubmitting, children: jsxs("div", { className: 'w-full flex items-center gap-2', children: [field.value ? (jsx("div", { className: 'h-4 w-4 rounded !bg-center !bg-cover transition-all border', style: { backgroundColor: field.value } })) : (jsx(Paintbrush, { className: 'h-4 w-4' })), jsx("div", { className: 'truncate flex-1 text-sm', children: field.value ? field.value : placeholder || 'Selecione uma cor' })] }) }) }) }), jsx(PopoverContent, { className: cn('w-80', className), children: jsxs("div", { className: 'flex flex-col gap-4', children: [jsx("section", { className: '[&_.react-colorful]:w-auto', children: jsx(HexColorPicker, { color: field.value ?? DEFAULT_COLOR, onChange: (newColor) => handleColorChange(newColor, field.onChange) }) }), jsxs("div", { className: 'flex gap-2', children: [jsxs("div", { className: 'flex flex-col gap-1', children: [jsx(Label, { children: "Hex" }), jsx(Input, { value: currentColor, onChange: (e) => handleHexChange(e.target.value, field.onChange), maxLength: 7 })] }), jsxs("div", { className: 'flex gap-2', children: [jsxs("div", { className: 'flex flex-col gap-1', children: [jsx(Label, { children: "R" }), jsx(Input, { value: rgb.r, onChange: (e) => handleRgbChange('r', e.target.value, field.onChange), className: 'w-14' })] }), jsxs("div", { className: 'flex flex-col gap-1', children: [jsx(Label, { children: "G" }), jsx(Input, { value: rgb.g, onChange: (e) => handleRgbChange('g', e.target.value, field.onChange), className: 'w-14' })] }), jsxs("div", { className: 'flex flex-col gap-1', children: [jsx(Label, { children: "B" }), jsx(Input, { value: rgb.b, onChange: (e) => handleRgbChange('b', e.target.value, field.onChange), className: 'w-14' })] })] })] })] }) })] }), formMessage(FormMessage)] })) }));
2754
2754
  };
2755
2755
 
2756
- const FormCombobox = ({ control, name, label, subLabel, helpText, placeholder, className, disabled, required, options, selectedOption, iconLeft, iconRight, addEmptyOption, canUnselect = false, closePopUpOnChange = true, runInternalSearch = true, disabledSearch = false, onChange, onSearch, footerAction, }) => {
2756
+ const FormCombobox = ({ control, variant = 'outline', name, label, subLabel, helpText, placeholder, className, disabled, required, options, selectedOption, iconLeft, iconRight, addEmptyOption, canUnselect = false, closePopUpOnChange = true, runInternalSearch = true, disabledSearch = false, onChange, onSearch, footerAction, }) => {
2757
2757
  const { FormField, FormItem, FormLabel, FormControl, FormMessage } = FormComponents;
2758
2758
  const [open, setOpen] = useState(false);
2759
2759
  const [loading, setLoading] = useState(false);
@@ -2822,7 +2822,7 @@ const FormCombobox = ({ control, name, label, subLabel, helpText, placeholder, c
2822
2822
  return (jsx(FormField, { control: control, name: name, render: ({ field, formState }) => (jsxs(FormItem, { className: className, children: [jsxs("div", { className: 'flex items-center space-x-1.5', children: [label && formLabelAndSubLabel(FormLabel, label, subLabel, required), helpText && formHelpText(helpText)] }), jsxs(Popover, { open: open, onOpenChange: (open) => {
2823
2823
  if (!disabled)
2824
2824
  setOpen(open);
2825
- }, children: [jsx(PopoverTrigger, { asChild: true, children: jsx(FormControl, { children: jsx("div", { className: cn(`rounded-sm outline-none ${open ? 'ring-2 ring-ring ring-offset-2' : 'ring-0'}`, className), children: jsxs(Button, { type: 'button', variant: 'outline', role: 'combobox', "aria-expanded": open, className: cn('justify-between disabled:border-disabled disabled:cursor-not-allowed disabled:opacity-50', formState.errors[name] ? 'border-red-600' : '', className), disabled: disabled || formState.isSubmitting, children: [iconLeft, jsx("div", { className: 'grid flex-1 text-left text-sm leading-tight', children: jsx("span", { className: 'truncate font-normal', children: getSelectedOption(field.value) ? (jsxs("div", { className: 'flex gap-2', children: [getSelectedOption(field.value)?.icon, getSelectedOption(field.value)?.title] })) : (jsx("span", { className: 'text-zinc-500', children: placeholder ?? DEFAULT_PLACEHOLDER })) }) }), iconRight ?? jsx(ChevronsUpDown, { size: 20, className: 'stroke-zinc-500' })] }) }) }) }), jsxs(PopoverContent, { className: cn('p-0', className, 'w-[--radix-popover-trigger-width]'), children: [jsxs(Command, { shouldFilter: false, children: [!disabledSearch && jsx(CommandInput, { placeholder: placeholder ?? DEFAULT_PLACEHOLDER, onKeyUp: handleKeyUp }), jsxs(CommandList, { children: [jsx(CommandEmpty, { className: 'flex flex-col justify-between items-center p-3 font-normal text-sm', children: loading ? (jsx(LoaderCircle, { size: 16, className: 'text-muted-foreground animate-spin mr-2' })) : getOptions()?.length === 0 && (searchString !== '' || disabledSearch) ? ('Nenhum resultado encontrado') : ('Utilize o campo de busca acima') }), options.length > 0 && (jsx(CommandGroup, { children: getOptions().map((option) => (jsxs(CommandItem, { value: option.value, className: 'group', onSelect: () => handleSelect(option.value, field), children: [jsxs("div", { className: cn('grid flex-1 text-left text-sm leading-tight', option.className), children: [jsxs("div", { className: 'flex gap-2', children: [option.icon, jsx("span", { className: 'truncate font-normal', children: option.title })] }), jsx("span", { className: 'truncate text-xs text-zinc-500', children: option.subTitle })] }), jsxs("div", { className: `ml-auto text-zinc-500 ${field.value === option.value ? 'opacity-100' : 'opacity-0'}`, children: [jsx(Check, { className: cn('flex', canUnselect && 'group-hover:hidden hover:hidden'), size: 16 }), jsx(X, { className: cn('hidden', canUnselect && 'group-hover:flex hover:flex'), size: 16 })] })] }, `key-opt-${option.value}`))) }))] })] }), footerAction && (jsx("div", { className: 'grid w-full p-1 border-t', children: jsxs(Button, { type: 'button', variant: 'ghost', className: 'h-8', onClick: () => footerAction.onClick(), children: [footerAction.icon, footerAction.label] }) }))] })] }), formMessage(FormMessage)] })) }));
2825
+ }, children: [jsx(PopoverTrigger, { asChild: true, children: jsx(FormControl, { children: jsx("div", { className: cn(`rounded-sm outline-none ${open ? 'ring-2 ring-ring ring-offset-2' : 'ring-0'}`, className), children: jsxs(Button, { type: 'button', variant: variant, role: 'combobox', "aria-expanded": open, className: cn('justify-between disabled:border-disabled disabled:cursor-not-allowed disabled:opacity-50', formState.errors[name] ? 'border-red-600' : '', className), disabled: disabled || formState.isSubmitting, children: [iconLeft, jsx("div", { className: 'grid flex-1 text-left text-sm leading-tight', children: jsx("span", { className: 'truncate font-normal', children: getSelectedOption(field.value) ? (jsxs("div", { className: 'flex gap-2', children: [getSelectedOption(field.value)?.icon, getSelectedOption(field.value)?.title] })) : (jsx("span", { className: 'text-zinc-500', children: placeholder ?? DEFAULT_PLACEHOLDER })) }) }), iconRight ?? jsx(ChevronsUpDown, { size: 20, className: 'stroke-zinc-500' })] }) }) }) }), jsxs(PopoverContent, { className: cn('p-0', className, 'w-[--radix-popover-trigger-width]'), children: [jsxs(Command, { shouldFilter: false, children: [!disabledSearch && jsx(CommandInput, { placeholder: placeholder ?? DEFAULT_PLACEHOLDER, onKeyUp: handleKeyUp }), jsxs(CommandList, { children: [jsx(CommandEmpty, { className: 'flex flex-col justify-between items-center p-3 font-normal text-sm', children: loading ? (jsx(LoaderCircle, { size: 16, className: 'text-muted-foreground animate-spin mr-2' })) : getOptions()?.length === 0 && (searchString !== '' || disabledSearch) ? ('Nenhum resultado encontrado') : ('Utilize o campo de busca acima') }), options.length > 0 && (jsx(CommandGroup, { children: getOptions().map((option) => (jsxs(CommandItem, { value: option.value, className: 'group', onSelect: () => handleSelect(option.value, field), children: [jsxs("div", { className: cn('grid flex-1 text-left text-sm leading-tight', option.className), children: [jsxs("div", { className: 'flex gap-2', children: [option.icon, jsx("span", { className: 'truncate font-normal', children: option.title })] }), jsx("span", { className: 'truncate text-xs text-zinc-500', children: option.subTitle })] }), jsxs("div", { className: `ml-auto text-zinc-500 ${field.value === option.value ? 'opacity-100' : 'opacity-0'}`, children: [jsx(Check, { className: cn('flex', canUnselect && 'group-hover:hidden hover:hidden'), size: 16 }), jsx(X, { className: cn('hidden', canUnselect && 'group-hover:flex hover:flex'), size: 16 })] })] }, `key-opt-${option.value}`))) }))] })] }), footerAction && (jsx("div", { className: 'grid w-full p-1 border-t', children: jsxs(Button, { type: 'button', variant: 'ghost', className: 'h-8', onClick: () => footerAction.onClick(), children: [footerAction.icon, footerAction.label] }) }))] })] }), formMessage(FormMessage)] })) }));
2826
2826
  };
2827
2827
 
2828
2828
  const masks$1 = ['999.999.999-999', '99.999.999/9999-99'];
@@ -3297,7 +3297,7 @@ function DataTable({ columns, data, className, title, rowsPage, actions, actions
3297
3297
  }, [pagination]);
3298
3298
  useEffect(() => {
3299
3299
  const selectedRowsChecked = selectedRows.map((row) => row.original);
3300
- if (multiRowSelection) {
3300
+ if (multiRowSelection && selectedRowsChecked.length > 0) {
3301
3301
  multiRowSelection.callback(selectedRowsChecked);
3302
3302
  }
3303
3303
  }, [rowSelection]);