@boxcustodia/library 2.0.0-alpha.2 → 2.0.0-alpha.21

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 (826) hide show
  1. package/dist/components/accordion/accordion.cjs.js +2 -0
  2. package/dist/components/accordion/accordion.es.js +118 -0
  3. package/dist/components/alert/alert.cjs.js +2 -0
  4. package/dist/components/alert/alert.es.js +99 -0
  5. package/dist/components/alert-dialog/alert-dialog.cjs.js +2 -0
  6. package/dist/components/alert-dialog/alert-dialog.es.js +221 -0
  7. package/dist/components/auto-complete/auto-complete.cjs.js +2 -0
  8. package/dist/components/auto-complete/auto-complete.es.js +344 -0
  9. package/dist/components/avatar/avatar.cjs.js +2 -0
  10. package/dist/components/avatar/avatar.es.js +147 -0
  11. package/dist/components/button/button.cjs.js +2 -0
  12. package/dist/components/button/button.es.js +58 -0
  13. package/dist/components/button/components/base-button.cjs.js +2 -0
  14. package/dist/components/button/components/base-button.es.js +46 -0
  15. package/dist/components/calendar/calendar.cjs.js +2 -0
  16. package/dist/components/calendar/calendar.es.js +139 -0
  17. package/dist/components/card/card.cjs.js +2 -0
  18. package/dist/components/card/card.es.js +142 -0
  19. package/dist/components/center/center.cjs.js +2 -0
  20. package/dist/components/center/center.es.js +23 -0
  21. package/dist/components/checkbox/checkbox.cjs.js +2 -0
  22. package/dist/components/checkbox/checkbox.es.js +229 -0
  23. package/dist/components/checkbox-group/checkbox-group.cjs.js +2 -0
  24. package/dist/components/checkbox-group/checkbox-group.es.js +59 -0
  25. package/dist/components/combobox/combobox.cjs.js +2 -0
  26. package/dist/components/combobox/combobox.es.js +689 -0
  27. package/dist/components/date-picker/date-input.cjs.js +2 -0
  28. package/dist/components/date-picker/date-input.es.js +168 -0
  29. package/dist/components/date-picker/date-picker.cjs.js +2 -0
  30. package/dist/components/date-picker/date-picker.es.js +268 -0
  31. package/dist/components/date-picker/date-picker.utils.cjs.js +1 -0
  32. package/dist/components/date-picker/date-picker.utils.es.js +81 -0
  33. package/dist/components/date-picker/use-date-input-popover.cjs.js +1 -0
  34. package/dist/components/date-picker/use-date-input-popover.es.js +26 -0
  35. package/dist/components/date-picker/use-date-input.cjs.js +1 -0
  36. package/dist/components/date-picker/use-date-input.es.js +64 -0
  37. package/dist/components/date-picker/use-hidden-field-value.cjs.js +1 -0
  38. package/dist/components/date-picker/use-hidden-field-value.es.js +11 -0
  39. package/dist/components/dialog/dialog.cjs.js +2 -0
  40. package/dist/components/dialog/dialog.es.js +221 -0
  41. package/dist/components/divider/divider.cjs.js +2 -0
  42. package/dist/components/divider/divider.es.js +27 -0
  43. package/dist/components/dropzone/dropzone.cjs.js +2 -0
  44. package/dist/components/dropzone/dropzone.es.js +303 -0
  45. package/dist/components/dropzone/file-types.cjs.js +1 -0
  46. package/dist/components/dropzone/file-types.es.js +57 -0
  47. package/dist/components/empty/empty.cjs.js +2 -0
  48. package/dist/components/empty/empty.es.js +128 -0
  49. package/dist/components/field/field.cjs.js +2 -0
  50. package/dist/components/field/field.es.js +179 -0
  51. package/dist/components/form/form.cjs.js +2 -0
  52. package/dist/components/form/form.es.js +11 -0
  53. package/dist/components/input/input.cjs.js +2 -0
  54. package/dist/components/input/input.es.js +60 -0
  55. package/dist/components/kbd/kbd.cjs.js +2 -0
  56. package/dist/components/kbd/kbd.es.js +36 -0
  57. package/dist/components/label/label.cjs.js +2 -0
  58. package/dist/components/label/label.es.js +49 -0
  59. package/dist/components/loader/loader.cjs.js +2 -0
  60. package/dist/components/loader/loader.es.js +55 -0
  61. package/dist/components/menu/menu-primitives.cjs.js +2 -0
  62. package/dist/components/menu/menu-primitives.es.js +240 -0
  63. package/dist/components/menu/menu.cjs.js +2 -0
  64. package/dist/components/menu/menu.es.js +81 -0
  65. package/dist/components/number-input/number-input.cjs.js +2 -0
  66. package/dist/components/number-input/number-input.es.js +212 -0
  67. package/dist/components/otp/otp.cjs.js +2 -0
  68. package/dist/components/otp/otp.es.js +93 -0
  69. package/dist/components/pagination/pagination.cjs.js +2 -0
  70. package/dist/components/pagination/pagination.es.js +393 -0
  71. package/dist/components/pagination/pagination.model.cjs.js +1 -0
  72. package/dist/components/pagination/pagination.model.es.js +4 -0
  73. package/dist/components/password/password.cjs.js +2 -0
  74. package/dist/components/password/password.es.js +73 -0
  75. package/dist/components/popover/popover.cjs.js +2 -0
  76. package/dist/components/popover/popover.es.js +158 -0
  77. package/dist/components/progress/progress.cjs.js +2 -0
  78. package/dist/components/progress/progress.es.js +114 -0
  79. package/dist/components/scroll-area/scroll-area.cjs.js +2 -0
  80. package/dist/components/scroll-area/scroll-area.es.js +67 -0
  81. package/dist/components/select/select.cjs.js +2 -0
  82. package/dist/components/select/select.es.js +331 -0
  83. package/dist/components/skeleton/skeleton.cjs.js +2 -0
  84. package/dist/components/skeleton/skeleton.es.js +19 -0
  85. package/dist/components/stack/stack.cjs.js +2 -0
  86. package/dist/components/stack/stack.es.js +42 -0
  87. package/dist/components/stepper/stepper.cjs.js +2 -0
  88. package/dist/components/stepper/stepper.es.js +368 -0
  89. package/dist/components/switch/switch.cjs.js +2 -0
  90. package/dist/components/switch/switch.es.js +85 -0
  91. package/dist/components/table/table.cjs.js +2 -0
  92. package/dist/components/table/table.es.js +168 -0
  93. package/dist/components/tabs/tabs.cjs.js +2 -0
  94. package/dist/components/tabs/tabs.es.js +96 -0
  95. package/dist/components/tag/tag.cjs.js +2 -0
  96. package/dist/components/tag/tag.es.js +50 -0
  97. package/dist/components/textarea/textarea.cjs.js +2 -0
  98. package/dist/components/textarea/textarea.es.js +31 -0
  99. package/dist/components/timeline/timeline.cjs.js +2 -0
  100. package/dist/components/timeline/timeline.es.js +263 -0
  101. package/dist/components/toast/toast.cjs.js +2 -0
  102. package/dist/components/toast/toast.es.js +224 -0
  103. package/dist/components/tooltip/tooltip.cjs.js +2 -0
  104. package/dist/components/tooltip/tooltip.es.js +122 -0
  105. package/dist/components/tree/tree.cjs.js +2 -0
  106. package/dist/components/tree/tree.es.js +150 -0
  107. package/dist/hooks/internal/is-apple-device.cjs.js +1 -0
  108. package/dist/hooks/internal/is-apple-device.es.js +9 -0
  109. package/dist/hooks/internal/is-browser.cjs.js +1 -0
  110. package/dist/hooks/internal/is-browser.es.js +4 -0
  111. package/dist/hooks/internal/use-isomorphic-layout-effect.cjs.js +1 -0
  112. package/dist/hooks/internal/use-isomorphic-layout-effect.es.js +6 -0
  113. package/dist/hooks/internal/use-latest-ref.cjs.js +1 -0
  114. package/dist/hooks/internal/use-latest-ref.es.js +11 -0
  115. package/dist/hooks/use-array/use-array.cjs.js +1 -0
  116. package/dist/hooks/use-array/use-array.es.js +58 -0
  117. package/dist/hooks/use-async/use-async.cjs.js +1 -0
  118. package/dist/hooks/use-async/use-async.es.js +57 -0
  119. package/dist/hooks/use-boolean/use-boolean.cjs.js +1 -0
  120. package/dist/hooks/use-boolean/use-boolean.es.js +25 -0
  121. package/dist/hooks/use-click-outside/use-click-outside.cjs.js +1 -0
  122. package/dist/hooks/use-click-outside/use-click-outside.es.js +29 -0
  123. package/dist/hooks/use-clipboard/use-clipboard.cjs.js +1 -0
  124. package/dist/hooks/use-clipboard/use-clipboard.es.js +29 -0
  125. package/dist/hooks/use-debounce-callback/use-debounced-callback.cjs.js +1 -0
  126. package/dist/hooks/use-debounce-callback/use-debounced-callback.es.js +32 -0
  127. package/dist/hooks/use-debounce-value/use-debounced-value.cjs.js +1 -0
  128. package/dist/hooks/use-debounce-value/use-debounced-value.es.js +11 -0
  129. package/dist/hooks/use-disclosure/use-disclosure.cjs.js +1 -0
  130. package/dist/hooks/use-disclosure/use-disclosure.es.js +24 -0
  131. package/dist/hooks/use-document-title/use-document-title.cjs.js +1 -0
  132. package/dist/hooks/use-document-title/use-document-title.es.js +19 -0
  133. package/dist/hooks/use-event-listener/use-event-listener.cjs.js +1 -0
  134. package/dist/hooks/use-event-listener/use-event-listener.es.js +21 -0
  135. package/dist/hooks/use-focus-trap/scope-tab.cjs.js +1 -0
  136. package/dist/hooks/use-focus-trap/scope-tab.es.js +21 -0
  137. package/dist/hooks/use-focus-trap/tabbable.cjs.js +1 -0
  138. package/dist/hooks/use-focus-trap/tabbable.es.js +38 -0
  139. package/dist/hooks/use-focus-trap/use-focus-trap.cjs.js +1 -0
  140. package/dist/hooks/use-focus-trap/use-focus-trap.es.js +34 -0
  141. package/dist/hooks/use-hotkey/use-hotkey.cjs.js +1 -0
  142. package/dist/hooks/use-hotkey/use-hotkey.es.js +34 -0
  143. package/dist/hooks/use-hotkey/utils/is-input-field.cjs.js +1 -0
  144. package/dist/hooks/use-hotkey/utils/is-input-field.es.js +7 -0
  145. package/dist/hooks/use-hotkey/utils/match-and-run.cjs.js +1 -0
  146. package/dist/hooks/use-hotkey/utils/match-and-run.es.js +12 -0
  147. package/dist/hooks/use-hotkey/utils/match-key-modifiers.cjs.js +1 -0
  148. package/dist/hooks/use-hotkey/utils/match-key-modifiers.es.js +18 -0
  149. package/dist/hooks/use-hover/use-hover.cjs.js +1 -0
  150. package/dist/hooks/use-hover/use-hover.es.js +35 -0
  151. package/dist/hooks/use-is-visible/use-is-visible.cjs.js +1 -0
  152. package/dist/hooks/use-is-visible/use-is-visible.es.js +35 -0
  153. package/dist/hooks/use-local-storage/use-local-storage.cjs.js +1 -0
  154. package/dist/hooks/use-local-storage/use-local-storage.es.js +61 -0
  155. package/dist/hooks/use-media-query/use-media-query.cjs.js +1 -0
  156. package/dist/hooks/use-media-query/use-media-query.es.js +23 -0
  157. package/dist/hooks/use-memoized-fn/use-memoized-fn.cjs.js +1 -0
  158. package/dist/hooks/use-memoized-fn/use-memoized-fn.es.js +15 -0
  159. package/dist/hooks/use-mutation/use-mutation.cjs.js +1 -0
  160. package/dist/hooks/use-mutation/use-mutation.es.js +41 -0
  161. package/dist/hooks/use-object/use-object.cjs.js +1 -0
  162. package/dist/hooks/use-object/use-object.es.js +30 -0
  163. package/dist/hooks/use-on-mount/use-on-mount.cjs.js +1 -0
  164. package/dist/hooks/use-on-mount/use-on-mount.es.js +11 -0
  165. package/dist/hooks/use-pagination/use-pagination.cjs.js +1 -0
  166. package/dist/hooks/use-pagination/use-pagination.es.js +38 -0
  167. package/dist/hooks/use-portal/use-portal.cjs.js +1 -0
  168. package/dist/hooks/use-portal/use-portal.es.js +31 -0
  169. package/dist/hooks/use-prevent-page-close/use-prevent-page-close.cjs.js +1 -0
  170. package/dist/hooks/use-prevent-page-close/use-prevent-page-close.es.js +14 -0
  171. package/dist/hooks/use-range-pagination/use-range-pagination.cjs.js +1 -0
  172. package/dist/hooks/use-range-pagination/use-range-pagination.es.js +36 -0
  173. package/dist/hooks/use-selection/use-selection.cjs.js +1 -0
  174. package/dist/hooks/use-selection/use-selection.es.js +38 -0
  175. package/dist/hooks/use-step/use-step.cjs.js +1 -0
  176. package/dist/hooks/use-step/use-step.es.js +28 -0
  177. package/dist/index.cjs.js +1 -141
  178. package/dist/index.css +2 -0
  179. package/dist/index.d.ts +2 -2039
  180. package/dist/index.es.js +445 -49355
  181. package/dist/lib/cn.cjs.js +1 -0
  182. package/dist/lib/cn.es.js +10 -0
  183. package/dist/providers/library-provider.cjs.js +1 -0
  184. package/dist/providers/library-provider.es.js +13 -0
  185. package/dist/providers/theme/ThemeProvider.cjs.js +1 -0
  186. package/dist/providers/theme/ThemeProvider.es.js +10 -0
  187. package/dist/providers/theme/useThemeProps.cjs.js +1 -0
  188. package/dist/providers/theme/useThemeProps.es.js +12 -0
  189. package/dist/setupTests.d.ts +0 -0
  190. package/dist/src/__doc__/Examples.d.ts +7 -0
  191. package/dist/src/components/accordion/accordion.d.ts +28 -0
  192. package/dist/src/components/accordion/accordion.test.d.ts +1 -0
  193. package/dist/src/components/accordion/index.d.ts +1 -0
  194. package/dist/src/components/alert/alert.d.ts +26 -0
  195. package/dist/src/components/alert/alert.test.d.ts +1 -0
  196. package/dist/src/components/alert/index.d.ts +1 -0
  197. package/dist/src/components/alert-dialog/alert-dialog.d.ts +104 -0
  198. package/dist/src/components/alert-dialog/alert-dialog.test.d.ts +1 -0
  199. package/dist/src/components/alert-dialog/index.d.ts +1 -0
  200. package/dist/src/components/auto-complete/auto-complete.d.ts +95 -0
  201. package/dist/src/components/auto-complete/auto-complete.test.d.ts +1 -0
  202. package/dist/src/components/auto-complete/index.d.ts +1 -0
  203. package/dist/src/components/avatar/avatar.d.ts +31 -0
  204. package/dist/src/components/avatar/avatar.test.d.ts +1 -0
  205. package/dist/src/components/avatar/index.d.ts +1 -0
  206. package/dist/src/components/button/button.d.ts +11 -0
  207. package/dist/src/components/button/button.test.d.ts +1 -0
  208. package/dist/src/components/button/components/base-button.d.ts +7 -0
  209. package/dist/src/components/button/index.d.ts +2 -0
  210. package/dist/src/components/calendar/calendar.d.ts +3 -0
  211. package/dist/src/components/calendar/calendar.test.d.ts +1 -0
  212. package/dist/src/components/calendar/index.d.ts +1 -0
  213. package/dist/src/components/card/card.d.ts +35 -0
  214. package/dist/src/components/card/card.test.d.ts +1 -0
  215. package/dist/src/components/card/index.d.ts +1 -0
  216. package/dist/src/components/center/center.d.ts +7 -0
  217. package/dist/src/components/center/center.test.d.ts +1 -0
  218. package/dist/src/components/center/index.d.ts +1 -0
  219. package/dist/src/components/checkbox/checkbox.d.ts +74 -0
  220. package/dist/src/components/checkbox/checkbox.test.d.ts +1 -0
  221. package/dist/src/components/checkbox/index.d.ts +1 -0
  222. package/dist/src/components/checkbox-group/checkbox-group.d.ts +21 -0
  223. package/dist/src/components/checkbox-group/checkbox-group.test.d.ts +1 -0
  224. package/dist/src/components/checkbox-group/index.d.ts +1 -0
  225. package/dist/src/components/combobox/combobox.d.ts +112 -0
  226. package/dist/src/components/combobox/combobox.test.d.ts +1 -0
  227. package/dist/src/components/combobox/index.d.ts +1 -0
  228. package/dist/src/components/date-picker/date-input-form.test.d.ts +1 -0
  229. package/dist/src/components/date-picker/date-input.d.ts +2 -0
  230. package/dist/src/components/date-picker/date-picker.d.ts +5 -0
  231. package/dist/src/components/date-picker/date-picker.model.d.ts +78 -0
  232. package/dist/src/components/date-picker/date-picker.test.d.ts +1 -0
  233. package/dist/src/components/date-picker/date-picker.utils.d.ts +29 -0
  234. package/dist/src/components/date-picker/date-picker.utils.test.d.ts +1 -0
  235. package/dist/src/components/date-picker/index.d.ts +3 -0
  236. package/dist/src/components/date-picker/use-date-input-popover.d.ts +12 -0
  237. package/dist/src/components/date-picker/use-date-input-popover.test.d.ts +1 -0
  238. package/dist/src/components/date-picker/use-date-input.d.ts +16 -0
  239. package/dist/src/components/date-picker/use-hidden-field-value.d.ts +12 -0
  240. package/dist/src/components/dialog/dialog.d.ts +100 -0
  241. package/dist/src/components/dialog/dialog.test.d.ts +1 -0
  242. package/dist/src/components/dialog/index.d.ts +1 -0
  243. package/dist/src/components/divider/divider.d.ts +4 -0
  244. package/dist/src/components/divider/divider.test.d.ts +1 -0
  245. package/dist/src/components/divider/index.d.ts +1 -0
  246. package/dist/src/components/dropzone/dropzone.d.ts +67 -0
  247. package/dist/src/components/dropzone/dropzone.test.d.ts +1 -0
  248. package/dist/src/components/dropzone/file-types.d.ts +27 -0
  249. package/dist/src/components/dropzone/index.d.ts +2 -0
  250. package/dist/src/components/empty/empty.d.ts +33 -0
  251. package/dist/src/components/empty/empty.test.d.ts +1 -0
  252. package/dist/src/components/empty/index.d.ts +1 -0
  253. package/dist/src/components/field/field.d.ts +57 -0
  254. package/dist/src/components/field/field.test.d.ts +1 -0
  255. package/dist/src/components/field/index.d.ts +1 -0
  256. package/dist/src/components/form/form.d.ts +5 -0
  257. package/dist/src/components/form/form.test.d.ts +1 -0
  258. package/dist/src/components/form/index.d.ts +1 -0
  259. package/dist/src/components/index.d.ts +44 -0
  260. package/dist/src/components/input/index.d.ts +1 -0
  261. package/dist/src/components/input/input.d.ts +9 -0
  262. package/dist/src/components/input/input.test.d.ts +1 -0
  263. package/dist/src/components/kbd/index.d.ts +1 -0
  264. package/dist/src/components/kbd/kbd.d.ts +3 -0
  265. package/dist/src/components/kbd/kbd.test.d.ts +1 -0
  266. package/dist/src/components/label/index.d.ts +1 -0
  267. package/dist/src/components/label/label.d.ts +15 -0
  268. package/dist/src/components/label/label.test.d.ts +1 -0
  269. package/dist/src/components/loader/index.d.ts +1 -0
  270. package/dist/src/components/loader/loader.d.ts +18 -0
  271. package/dist/src/components/loader/loader.test.d.ts +1 -0
  272. package/dist/src/components/menu/index.d.ts +2 -0
  273. package/dist/src/components/menu/menu-primitives.d.ts +29 -0
  274. package/dist/src/components/menu/menu.d.ts +57 -0
  275. package/dist/src/components/menu/menu.test.d.ts +1 -0
  276. package/dist/src/components/number-input/index.d.ts +1 -0
  277. package/dist/src/components/number-input/number-input.d.ts +31 -0
  278. package/dist/src/components/number-input/number-input.test.d.ts +1 -0
  279. package/dist/src/components/otp/index.d.ts +1 -0
  280. package/dist/src/components/otp/otp.d.ts +16 -0
  281. package/dist/src/components/otp/otp.test.d.ts +1 -0
  282. package/dist/src/components/pagination/index.d.ts +2 -0
  283. package/dist/src/components/pagination/pagination.d.ts +131 -0
  284. package/dist/src/components/pagination/pagination.model.d.ts +2 -0
  285. package/dist/src/components/pagination/pagination.test.d.ts +1 -0
  286. package/dist/src/components/password/index.d.ts +1 -0
  287. package/dist/src/components/password/password.d.ts +19 -0
  288. package/dist/src/components/password/password.test.d.ts +1 -0
  289. package/dist/src/components/popover/index.d.ts +1 -0
  290. package/dist/src/components/popover/popover.d.ts +41 -0
  291. package/dist/src/components/popover/popover.test.d.ts +1 -0
  292. package/dist/src/components/progress/index.d.ts +1 -0
  293. package/dist/src/components/progress/progress.d.ts +22 -0
  294. package/dist/src/components/progress/progress.test.d.ts +1 -0
  295. package/dist/src/components/radio-group/index.d.ts +1 -0
  296. package/dist/src/components/radio-group/radio-group.d.ts +41 -0
  297. package/dist/src/components/radio-group/radio-group.test.d.ts +1 -0
  298. package/dist/src/components/scroll-area/index.d.ts +1 -0
  299. package/dist/src/components/scroll-area/scroll-area.d.ts +8 -0
  300. package/dist/src/components/scroll-area/scroll-area.test.d.ts +1 -0
  301. package/dist/src/components/select/index.d.ts +1 -0
  302. package/dist/src/components/select/select.d.ts +71 -0
  303. package/dist/src/components/select/select.test.d.ts +1 -0
  304. package/dist/src/components/skeleton/index.d.ts +1 -0
  305. package/dist/src/components/skeleton/skeleton.d.ts +2 -0
  306. package/dist/src/components/skeleton/skeleton.test.d.ts +1 -0
  307. package/dist/src/components/stack/index.d.ts +1 -0
  308. package/dist/src/components/stack/stack.d.ts +14 -0
  309. package/dist/src/components/stack/stack.test.d.ts +1 -0
  310. package/dist/src/components/stepper/index.d.ts +1 -0
  311. package/dist/src/components/stepper/stepper.d.ts +83 -0
  312. package/dist/src/components/stepper/stepper.test.d.ts +1 -0
  313. package/dist/src/components/switch/index.d.ts +1 -0
  314. package/dist/src/components/switch/switch.d.ts +21 -0
  315. package/dist/src/components/switch/switch.test.d.ts +1 -0
  316. package/dist/src/components/table/index.d.ts +1 -0
  317. package/dist/src/components/table/table.d.ts +50 -0
  318. package/dist/src/components/table/table.test.d.ts +1 -0
  319. package/dist/src/components/tabs/index.d.ts +1 -0
  320. package/dist/src/components/tabs/tabs.d.ts +11 -0
  321. package/dist/src/components/tabs/tabs.test.d.ts +1 -0
  322. package/dist/src/components/tag/index.d.ts +1 -0
  323. package/dist/src/components/tag/tag.d.ts +7 -0
  324. package/dist/src/components/tag/tag.test.d.ts +1 -0
  325. package/dist/src/components/textarea/index.d.ts +1 -0
  326. package/dist/src/components/textarea/textarea.d.ts +5 -0
  327. package/dist/src/components/textarea/textarea.test.d.ts +1 -0
  328. package/dist/src/components/timeline/index.d.ts +1 -0
  329. package/dist/src/components/timeline/timeline.d.ts +50 -0
  330. package/dist/src/components/timeline/timeline.test.d.ts +1 -0
  331. package/dist/src/components/toast/index.d.ts +1 -0
  332. package/dist/src/components/toast/toast.d.ts +101 -0
  333. package/dist/src/components/toast/toast.test.d.ts +1 -0
  334. package/dist/src/components/tooltip/index.d.ts +1 -0
  335. package/dist/src/components/tooltip/tooltip.d.ts +52 -0
  336. package/dist/src/components/tooltip/tooltip.test.d.ts +1 -0
  337. package/dist/src/components/tree/index.d.ts +1 -0
  338. package/dist/src/components/tree/tree.d.ts +18 -0
  339. package/dist/src/components/tree/tree.test.d.ts +1 -0
  340. package/dist/src/hooks/index.d.ts +27 -0
  341. package/dist/src/hooks/internal/index.d.ts +4 -0
  342. package/dist/src/hooks/internal/is-apple-device.d.ts +12 -0
  343. package/dist/src/hooks/internal/is-apple-device.test.d.ts +1 -0
  344. package/dist/src/hooks/internal/is-browser.d.ts +1 -0
  345. package/dist/src/hooks/internal/use-isomorphic-layout-effect.d.ts +2 -0
  346. package/dist/src/hooks/internal/use-latest-ref.d.ts +12 -0
  347. package/dist/src/hooks/use-array/index.d.ts +1 -0
  348. package/dist/src/hooks/use-array/use-array.d.ts +24 -0
  349. package/dist/src/hooks/use-array/use-array.test.d.ts +1 -0
  350. package/dist/src/hooks/use-async/index.d.ts +1 -0
  351. package/dist/src/hooks/use-async/use-async.d.ts +21 -0
  352. package/dist/src/hooks/use-async/use-async.test.d.ts +1 -0
  353. package/dist/src/hooks/use-boolean/index.d.ts +1 -0
  354. package/dist/src/hooks/use-boolean/use-boolean.d.ts +15 -0
  355. package/dist/src/hooks/use-boolean/use-boolean.test.d.ts +1 -0
  356. package/dist/src/hooks/use-click-outside/index.d.ts +1 -0
  357. package/dist/src/hooks/use-click-outside/use-click-outside.d.ts +23 -0
  358. package/dist/src/hooks/use-click-outside/use-click-outside.test.d.ts +1 -0
  359. package/dist/src/hooks/use-clipboard/index.d.ts +1 -0
  360. package/dist/src/hooks/use-clipboard/use-clipboard.d.ts +15 -0
  361. package/dist/src/hooks/use-clipboard/use-clipboard.test.d.ts +1 -0
  362. package/dist/src/hooks/use-debounce-callback/index.d.ts +1 -0
  363. package/dist/src/hooks/use-debounce-callback/use-debounced-callback.d.ts +19 -0
  364. package/dist/src/hooks/use-debounce-callback/use-debounced-callback.test.d.ts +1 -0
  365. package/dist/src/hooks/use-debounce-value/index.d.ts +1 -0
  366. package/dist/src/hooks/use-debounce-value/use-debounced-value.d.ts +10 -0
  367. package/dist/src/hooks/use-debounce-value/use-debounced-value.test.d.ts +1 -0
  368. package/dist/src/hooks/use-disclosure/index.d.ts +1 -0
  369. package/dist/src/hooks/use-disclosure/use-disclosure.d.ts +17 -0
  370. package/dist/src/hooks/use-disclosure/use-disclosure.test.d.ts +1 -0
  371. package/dist/src/hooks/use-document-title/index.d.ts +1 -0
  372. package/dist/src/hooks/use-document-title/use-document-title.d.ts +16 -0
  373. package/dist/src/hooks/use-document-title/use-document-title.test.d.ts +1 -0
  374. package/dist/src/hooks/use-event-listener/index.d.ts +1 -0
  375. package/dist/src/hooks/use-event-listener/use-event-listener.d.ts +18 -0
  376. package/dist/src/hooks/use-event-listener/use-event-listener.test.d.ts +1 -0
  377. package/dist/src/hooks/use-focus-trap/index.d.ts +1 -0
  378. package/dist/src/hooks/use-focus-trap/scope-tab.d.ts +1 -0
  379. package/dist/src/hooks/use-focus-trap/tabbable.d.ts +4 -0
  380. package/dist/src/hooks/use-focus-trap/use-focus-trap.d.ts +1 -0
  381. package/dist/src/hooks/use-focus-trap/use-focus-trap.test.d.ts +1 -0
  382. package/dist/src/hooks/use-hotkey/index.d.ts +2 -0
  383. package/dist/src/hooks/use-hotkey/use-hotkey.d.ts +66 -0
  384. package/dist/src/hooks/use-hotkey/use-hotkey.test.d.ts +1 -0
  385. package/dist/src/hooks/use-hotkey/utils/index.d.ts +4 -0
  386. package/dist/src/hooks/use-hotkey/utils/is-input-field.d.ts +12 -0
  387. package/dist/src/hooks/use-hotkey/utils/is-input-field.test.d.ts +1 -0
  388. package/dist/src/hooks/use-hotkey/utils/match-and-run.d.ts +36 -0
  389. package/dist/src/hooks/use-hotkey/utils/match-and-run.test.d.ts +1 -0
  390. package/dist/src/hooks/use-hotkey/utils/match-key-modifiers.d.ts +22 -0
  391. package/dist/src/hooks/use-hotkey/utils/match-key-modifiers.test.d.ts +1 -0
  392. package/dist/src/hooks/use-hover/index.d.ts +1 -0
  393. package/dist/src/hooks/use-hover/use-hover.d.ts +16 -0
  394. package/dist/src/hooks/use-hover/use-hover.test.d.ts +1 -0
  395. package/dist/src/hooks/use-is-visible/index.d.ts +1 -0
  396. package/dist/src/hooks/use-is-visible/use-is-visible.d.ts +34 -0
  397. package/dist/src/hooks/use-is-visible/use-is-visible.test.d.ts +1 -0
  398. package/dist/src/hooks/use-local-storage/index.d.ts +1 -0
  399. package/dist/src/hooks/use-local-storage/use-local-storage.d.ts +13 -0
  400. package/dist/src/hooks/use-local-storage/use-local-storage.test.d.ts +1 -0
  401. package/dist/src/hooks/use-media-query/index.d.ts +1 -0
  402. package/dist/src/hooks/use-media-query/use-media-query.d.ts +10 -0
  403. package/dist/src/hooks/use-media-query/use-media-query.test.d.ts +1 -0
  404. package/dist/src/hooks/use-memoized-fn/index.d.ts +1 -0
  405. package/dist/src/hooks/use-memoized-fn/use-memoized-fn.d.ts +3 -0
  406. package/dist/src/hooks/use-memoized-fn/use-memoized-fn.test.d.ts +1 -0
  407. package/dist/src/hooks/use-mutation/index.d.ts +1 -0
  408. package/dist/src/hooks/use-mutation/use-mutation.d.ts +22 -0
  409. package/dist/src/hooks/use-mutation/use-mutation.test.d.ts +1 -0
  410. package/dist/src/hooks/use-object/index.d.ts +1 -0
  411. package/dist/src/hooks/use-object/use-object.d.ts +15 -0
  412. package/dist/src/hooks/use-object/use-object.test.d.ts +1 -0
  413. package/dist/src/hooks/use-on-mount/index.d.ts +1 -0
  414. package/dist/src/hooks/use-on-mount/use-on-mount.d.ts +2 -0
  415. package/dist/src/hooks/use-on-mount/use-on-mount.test.d.ts +1 -0
  416. package/dist/src/hooks/use-pagination/index.d.ts +1 -0
  417. package/dist/src/hooks/use-pagination/use-pagination.d.ts +46 -0
  418. package/dist/src/hooks/use-pagination/use-pagination.test.d.ts +1 -0
  419. package/dist/src/hooks/use-portal/index.d.ts +1 -0
  420. package/dist/src/hooks/use-portal/use-portal.d.ts +4 -0
  421. package/dist/src/hooks/use-portal/use-portal.test.d.ts +1 -0
  422. package/dist/src/hooks/use-prevent-page-close/index.d.ts +1 -0
  423. package/dist/src/hooks/use-prevent-page-close/use-prevent-page-close.d.ts +10 -0
  424. package/dist/src/hooks/use-prevent-page-close/use-prevent-page-close.test.d.ts +1 -0
  425. package/dist/src/hooks/use-range-pagination/index.d.ts +1 -0
  426. package/dist/src/hooks/use-range-pagination/use-range-pagination.d.ts +22 -0
  427. package/dist/src/hooks/use-range-pagination/use-range-pagination.test.d.ts +1 -0
  428. package/dist/src/hooks/use-selection/index.d.ts +1 -0
  429. package/dist/src/hooks/use-selection/use-selection.d.ts +54 -0
  430. package/dist/src/hooks/use-selection/use-selection.test.d.ts +1 -0
  431. package/dist/src/hooks/use-step/index.d.ts +1 -0
  432. package/dist/src/hooks/use-step/use-step.d.ts +21 -0
  433. package/dist/src/hooks/use-step/use-step.test.d.ts +1 -0
  434. package/dist/src/index.d.ts +6 -0
  435. package/dist/src/lib/cn.d.ts +3 -0
  436. package/dist/src/lib/index.d.ts +1 -0
  437. package/dist/src/models/Generic.model.d.ts +37 -0
  438. package/dist/src/models/index.d.ts +1 -0
  439. package/dist/src/providers/index.d.ts +2 -0
  440. package/dist/src/providers/library-provider.d.ts +28 -0
  441. package/dist/src/providers/theme/ThemeProvider.d.ts +11 -0
  442. package/dist/src/providers/theme/index.d.ts +3 -0
  443. package/dist/src/providers/theme/types.d.ts +10 -0
  444. package/dist/src/providers/theme/useThemeProps.d.ts +10 -0
  445. package/dist/src/stores/theme.store.d.ts +10 -0
  446. package/dist/src/utils/dates/parseDateRange.utility.d.ts +14 -0
  447. package/dist/src/utils/form.d.ts +42 -0
  448. package/dist/src/utils/form.test.d.ts +1 -0
  449. package/dist/src/utils/functions/createSafeContext.d.ts +2 -0
  450. package/dist/src/utils/functions/createSafeContext.test.d.ts +1 -0
  451. package/dist/src/utils/functions/ensureReactElement.d.ts +9 -0
  452. package/dist/src/utils/functions/ensureReactElement.test.d.ts +1 -0
  453. package/dist/src/utils/functions/getFormData.d.ts +2 -0
  454. package/dist/src/utils/functions/getFormData.test.d.ts +1 -0
  455. package/dist/src/utils/functions/index.d.ts +4 -0
  456. package/dist/src/utils/functions/mergeRefs.d.ts +2 -0
  457. package/dist/src/utils/functions/mergeRefs.test.d.ts +1 -0
  458. package/dist/src/utils/index.d.ts +3 -0
  459. package/dist/src/utils/strings/extractInitials.utility.d.ts +6 -0
  460. package/dist/src/utils/strings/index.d.ts +1 -0
  461. package/dist/src/utils/tests/click.d.ts +1 -0
  462. package/dist/src/utils/tests/index.d.ts +2 -0
  463. package/dist/src/utils/tests/keyboard.d.ts +10 -0
  464. package/dist/src/utils/tests/type.d.ts +1 -0
  465. package/dist/theme.css +232 -224
  466. package/dist/utils/form.cjs.js +1 -0
  467. package/dist/utils/form.es.js +62 -0
  468. package/dist/utils/functions/createSafeContext.cjs.js +1 -0
  469. package/dist/utils/functions/createSafeContext.es.js +13 -0
  470. package/dist/utils/functions/ensureReactElement.cjs.js +1 -0
  471. package/dist/utils/functions/ensureReactElement.es.js +13 -0
  472. package/dist/utils/functions/getFormData.cjs.js +1 -0
  473. package/dist/utils/functions/getFormData.es.js +11 -0
  474. package/dist/utils/functions/mergeRefs.cjs.js +1 -0
  475. package/dist/utils/functions/mergeRefs.es.js +10 -0
  476. package/dist/utils/strings/extractInitials.utility.cjs.js +1 -0
  477. package/dist/utils/strings/extractInitials.utility.es.js +4 -0
  478. package/package.json +134 -124
  479. package/src/components/accordion/accordion.stories.tsx +143 -0
  480. package/src/components/accordion/accordion.test.tsx +117 -0
  481. package/src/components/accordion/accordion.tsx +137 -0
  482. package/src/components/accordion/index.ts +1 -0
  483. package/src/components/alert/alert.stories.tsx +162 -0
  484. package/src/components/alert/alert.test.tsx +185 -0
  485. package/src/components/alert/alert.tsx +119 -0
  486. package/src/components/alert/index.ts +7 -0
  487. package/src/components/alert-dialog/alert-dialog.stories.tsx +197 -0
  488. package/src/components/alert-dialog/alert-dialog.test.tsx +239 -0
  489. package/src/components/alert-dialog/alert-dialog.tsx +315 -0
  490. package/src/components/alert-dialog/index.ts +1 -0
  491. package/src/components/auto-complete/auto-complete.stories.tsx +656 -0
  492. package/src/components/auto-complete/auto-complete.test.tsx +699 -0
  493. package/src/components/auto-complete/auto-complete.tsx +432 -0
  494. package/src/components/auto-complete/index.ts +1 -0
  495. package/src/components/avatar/avatar.stories.tsx +225 -0
  496. package/src/components/avatar/avatar.test.tsx +336 -0
  497. package/src/components/avatar/avatar.tsx +165 -0
  498. package/src/components/avatar/index.ts +1 -0
  499. package/src/components/button/button.stories.tsx +338 -0
  500. package/src/components/button/button.test.tsx +242 -0
  501. package/src/components/button/button.tsx +73 -0
  502. package/src/components/button/components/base-button.tsx +58 -0
  503. package/src/components/button/index.ts +2 -0
  504. package/src/components/calendar/calendar.stories.tsx +155 -0
  505. package/src/components/calendar/calendar.test.tsx +174 -0
  506. package/src/components/calendar/calendar.tsx +189 -0
  507. package/src/components/calendar/index.ts +1 -0
  508. package/src/components/card/card.stories.tsx +187 -0
  509. package/src/components/card/card.test.tsx +205 -0
  510. package/src/components/card/card.tsx +177 -0
  511. package/src/components/card/index.ts +1 -0
  512. package/src/components/center/center.stories.tsx +64 -0
  513. package/src/components/center/center.test.tsx +63 -0
  514. package/src/components/center/center.tsx +26 -0
  515. package/src/components/center/index.ts +1 -0
  516. package/src/components/checkbox/checkbox.stories.tsx +327 -0
  517. package/src/components/checkbox/checkbox.test.tsx +392 -0
  518. package/src/components/checkbox/checkbox.tsx +336 -0
  519. package/src/components/checkbox/index.ts +1 -0
  520. package/src/components/checkbox-group/checkbox-group.stories.tsx +192 -0
  521. package/src/components/checkbox-group/checkbox-group.test.tsx +155 -0
  522. package/src/components/checkbox-group/checkbox-group.tsx +99 -0
  523. package/src/components/checkbox-group/index.ts +1 -0
  524. package/src/components/combobox/combobox.stories.tsx +349 -0
  525. package/src/components/combobox/combobox.test.tsx +461 -0
  526. package/src/components/combobox/combobox.tsx +916 -0
  527. package/src/components/combobox/index.ts +1 -0
  528. package/src/components/date-picker/date-input-form.test.tsx +77 -0
  529. package/src/components/date-picker/date-input.stories.tsx +178 -0
  530. package/src/components/date-picker/date-input.tsx +197 -0
  531. package/src/components/date-picker/date-picker.model.ts +99 -0
  532. package/src/components/date-picker/date-picker.stories.tsx +256 -0
  533. package/src/components/date-picker/date-picker.test.tsx +557 -0
  534. package/src/components/date-picker/date-picker.tsx +330 -0
  535. package/src/components/date-picker/date-picker.utils.test.ts +269 -0
  536. package/src/components/date-picker/date-picker.utils.ts +293 -0
  537. package/src/components/date-picker/index.ts +3 -0
  538. package/src/components/date-picker/use-date-input-popover.test.ts +63 -0
  539. package/src/components/date-picker/use-date-input-popover.ts +48 -0
  540. package/src/components/date-picker/use-date-input.ts +125 -0
  541. package/src/components/date-picker/use-hidden-field-value.ts +23 -0
  542. package/src/components/dialog/dialog.stories.tsx +189 -0
  543. package/src/components/dialog/dialog.test.tsx +369 -0
  544. package/src/components/dialog/dialog.tsx +310 -0
  545. package/src/components/dialog/index.ts +1 -0
  546. package/src/components/divider/divider.stories.tsx +145 -0
  547. package/src/components/divider/divider.test.tsx +62 -0
  548. package/src/components/divider/divider.tsx +25 -0
  549. package/src/components/divider/index.ts +1 -0
  550. package/src/components/dropzone/dropzone.stories.tsx +190 -0
  551. package/src/components/dropzone/dropzone.test.tsx +353 -0
  552. package/src/components/dropzone/dropzone.tsx +434 -0
  553. package/src/components/dropzone/file-types.ts +64 -0
  554. package/src/components/dropzone/index.ts +2 -0
  555. package/src/components/empty/empty.stories.tsx +164 -0
  556. package/src/components/empty/empty.test.tsx +220 -0
  557. package/src/components/empty/empty.tsx +158 -0
  558. package/src/components/empty/index.ts +1 -0
  559. package/src/components/field/field.stories.tsx +446 -0
  560. package/src/components/field/field.test.tsx +323 -0
  561. package/src/components/field/field.tsx +266 -0
  562. package/src/components/field/index.ts +1 -0
  563. package/src/components/form/form.stories.tsx +732 -0
  564. package/src/components/form/form.test.tsx +44 -0
  565. package/src/components/form/form.tsx +12 -0
  566. package/src/components/form/index.ts +1 -0
  567. package/src/components/index.ts +44 -0
  568. package/src/components/input/index.ts +1 -0
  569. package/src/components/input/input.stories.tsx +103 -0
  570. package/src/components/input/input.test.tsx +109 -0
  571. package/src/components/input/input.tsx +77 -0
  572. package/src/components/kbd/index.ts +1 -0
  573. package/src/components/kbd/kbd.stories.tsx +41 -0
  574. package/src/components/kbd/kbd.test.tsx +66 -0
  575. package/src/components/kbd/kbd.tsx +33 -0
  576. package/src/components/label/index.ts +1 -0
  577. package/src/components/label/label.stories.tsx +84 -0
  578. package/src/components/label/label.test.tsx +107 -0
  579. package/src/components/label/label.tsx +75 -0
  580. package/src/components/loader/index.ts +1 -0
  581. package/src/components/loader/loader.stories.tsx +62 -0
  582. package/src/components/loader/loader.test.tsx +88 -0
  583. package/src/components/loader/loader.tsx +67 -0
  584. package/src/components/menu/index.ts +2 -0
  585. package/src/components/menu/menu-primitives.tsx +259 -0
  586. package/src/components/menu/menu.stories.tsx +332 -0
  587. package/src/components/menu/menu.test.tsx +167 -0
  588. package/src/components/menu/menu.tsx +188 -0
  589. package/src/components/number-input/index.ts +1 -0
  590. package/src/components/number-input/number-input.stories.tsx +232 -0
  591. package/src/components/number-input/number-input.test.tsx +260 -0
  592. package/src/components/number-input/number-input.tsx +228 -0
  593. package/src/components/otp/index.ts +1 -0
  594. package/src/components/otp/otp.stories.tsx +209 -0
  595. package/src/components/otp/otp.test.tsx +103 -0
  596. package/src/components/otp/otp.tsx +102 -0
  597. package/src/components/pagination/index.ts +2 -0
  598. package/src/components/pagination/pagination.model.ts +2 -0
  599. package/src/components/pagination/pagination.stories.tsx +174 -0
  600. package/src/components/pagination/pagination.test.tsx +201 -0
  601. package/src/components/pagination/pagination.tsx +602 -0
  602. package/src/components/password/index.ts +1 -0
  603. package/src/components/password/password.stories.tsx +119 -0
  604. package/src/components/password/password.test.tsx +129 -0
  605. package/src/components/password/password.tsx +93 -0
  606. package/src/components/popover/index.ts +1 -0
  607. package/src/components/popover/popover.stories.tsx +234 -0
  608. package/src/components/popover/popover.test.tsx +175 -0
  609. package/src/components/popover/popover.tsx +195 -0
  610. package/src/components/progress/index.ts +1 -0
  611. package/src/components/progress/progress.stories.tsx +125 -0
  612. package/src/components/progress/progress.test.tsx +125 -0
  613. package/src/components/progress/progress.tsx +126 -0
  614. package/src/components/radio-group/index.ts +1 -0
  615. package/src/components/radio-group/radio-group.stories.tsx +251 -0
  616. package/src/components/radio-group/radio-group.test.tsx +175 -0
  617. package/src/components/radio-group/radio-group.tsx +214 -0
  618. package/src/components/scroll-area/index.ts +1 -0
  619. package/src/components/scroll-area/scroll-area.stories.tsx +167 -0
  620. package/src/components/scroll-area/scroll-area.test.tsx +140 -0
  621. package/src/components/scroll-area/scroll-area.tsx +64 -0
  622. package/src/components/select/index.ts +1 -0
  623. package/src/components/select/select.stories.tsx +352 -0
  624. package/src/components/select/select.test.tsx +357 -0
  625. package/src/components/select/select.tsx +443 -0
  626. package/src/components/skeleton/index.ts +1 -0
  627. package/src/components/skeleton/skeleton.stories.tsx +37 -0
  628. package/src/components/skeleton/skeleton.test.tsx +51 -0
  629. package/src/components/skeleton/skeleton.tsx +17 -0
  630. package/src/components/stack/index.ts +1 -0
  631. package/src/components/stack/stack.stories.tsx +284 -0
  632. package/src/components/stack/stack.test.tsx +134 -0
  633. package/src/components/stack/stack.tsx +54 -0
  634. package/src/components/stepper/index.ts +1 -0
  635. package/src/components/stepper/stepper.stories.tsx +809 -0
  636. package/src/components/stepper/stepper.test.tsx +448 -0
  637. package/src/components/stepper/stepper.tsx +554 -0
  638. package/src/components/switch/index.ts +1 -0
  639. package/src/components/switch/switch.stories.tsx +136 -0
  640. package/src/components/switch/switch.test.tsx +96 -0
  641. package/src/components/switch/switch.tsx +101 -0
  642. package/src/components/table/index.ts +1 -0
  643. package/src/components/table/table.stories.tsx +282 -0
  644. package/src/components/table/table.test.tsx +264 -0
  645. package/src/components/table/table.tsx +217 -0
  646. package/src/components/tabs/index.ts +1 -0
  647. package/src/components/tabs/tabs.stories.tsx +399 -0
  648. package/src/components/tabs/tabs.test.tsx +202 -0
  649. package/src/components/tabs/tabs.tsx +98 -0
  650. package/src/components/tag/index.ts +1 -0
  651. package/src/components/tag/tag.stories.tsx +198 -0
  652. package/src/components/tag/tag.test.tsx +55 -0
  653. package/src/components/tag/tag.tsx +57 -0
  654. package/src/components/textarea/index.ts +1 -0
  655. package/src/components/textarea/textarea.stories.tsx +59 -0
  656. package/src/components/textarea/textarea.test.tsx +60 -0
  657. package/src/components/textarea/textarea.tsx +43 -0
  658. package/src/components/timeline/index.ts +1 -0
  659. package/src/components/timeline/timeline.stories.tsx +364 -0
  660. package/src/components/timeline/timeline.test.tsx +207 -0
  661. package/src/components/timeline/timeline.tsx +376 -0
  662. package/src/components/toast/index.ts +1 -0
  663. package/src/components/toast/toast.stories.tsx +393 -0
  664. package/src/components/toast/toast.test.tsx +331 -0
  665. package/src/components/toast/toast.tsx +413 -0
  666. package/src/components/tooltip/index.ts +1 -0
  667. package/src/components/tooltip/tooltip.stories.tsx +226 -0
  668. package/src/components/tooltip/tooltip.test.tsx +155 -0
  669. package/src/components/tooltip/tooltip.tsx +175 -0
  670. package/src/components/tree/index.ts +1 -0
  671. package/src/components/tree/tree.stories.tsx +424 -0
  672. package/src/components/tree/tree.test.tsx +306 -0
  673. package/src/components/tree/tree.tsx +218 -0
  674. package/src/hooks/index.ts +27 -0
  675. package/src/hooks/internal/index.ts +4 -0
  676. package/src/hooks/internal/is-apple-device.test.ts +41 -0
  677. package/src/hooks/internal/is-apple-device.ts +33 -0
  678. package/src/hooks/internal/is-browser.ts +1 -0
  679. package/src/hooks/internal/use-isomorphic-layout-effect.ts +6 -0
  680. package/src/hooks/internal/use-latest-ref.ts +21 -0
  681. package/src/hooks/use-array/index.ts +1 -0
  682. package/src/hooks/use-array/use-array.stories.tsx +471 -0
  683. package/src/hooks/use-array/use-array.test.tsx +495 -0
  684. package/src/hooks/use-array/use-array.ts +113 -0
  685. package/src/hooks/use-async/index.ts +1 -0
  686. package/src/hooks/use-async/use-async.stories.tsx +272 -0
  687. package/src/hooks/use-async/use-async.test.ts +397 -0
  688. package/src/hooks/use-async/use-async.ts +135 -0
  689. package/src/hooks/use-boolean/index.ts +1 -0
  690. package/src/hooks/use-boolean/use-boolean.stories.tsx +377 -0
  691. package/src/hooks/use-boolean/use-boolean.test.tsx +177 -0
  692. package/src/hooks/use-boolean/use-boolean.ts +50 -0
  693. package/src/hooks/use-click-outside/index.ts +1 -0
  694. package/src/hooks/use-click-outside/use-click-outside.stories.tsx +210 -0
  695. package/src/hooks/use-click-outside/use-click-outside.test.tsx +118 -0
  696. package/src/hooks/use-click-outside/use-click-outside.ts +71 -0
  697. package/src/hooks/use-clipboard/index.ts +1 -0
  698. package/src/hooks/use-clipboard/use-clipboard.stories.tsx +168 -0
  699. package/src/hooks/use-clipboard/use-clipboard.test.tsx +114 -0
  700. package/src/hooks/use-clipboard/use-clipboard.tsx +70 -0
  701. package/src/hooks/use-debounce-callback/index.ts +1 -0
  702. package/src/hooks/use-debounce-callback/use-debounced-callback.stories.tsx +184 -0
  703. package/src/hooks/use-debounce-callback/use-debounced-callback.test.ts +296 -0
  704. package/src/hooks/use-debounce-callback/use-debounced-callback.ts +82 -0
  705. package/src/hooks/use-debounce-value/index.ts +1 -0
  706. package/src/hooks/use-debounce-value/use-debounced-value.stories.tsx +275 -0
  707. package/src/hooks/use-debounce-value/use-debounced-value.test.ts +196 -0
  708. package/src/hooks/use-debounce-value/use-debounced-value.ts +25 -0
  709. package/src/hooks/use-disclosure/index.ts +1 -0
  710. package/src/hooks/use-disclosure/use-disclosure.stories.tsx +330 -0
  711. package/src/hooks/use-disclosure/use-disclosure.test.ts +220 -0
  712. package/src/hooks/use-disclosure/use-disclosure.ts +56 -0
  713. package/src/hooks/use-document-title/index.ts +1 -0
  714. package/src/hooks/use-document-title/use-document-title.stories.tsx +126 -0
  715. package/src/hooks/use-document-title/use-document-title.test.tsx +101 -0
  716. package/src/hooks/use-document-title/use-document-title.ts +46 -0
  717. package/src/hooks/use-event-listener/index.ts +1 -0
  718. package/src/hooks/use-event-listener/use-event-listener.stories.tsx +124 -0
  719. package/src/hooks/use-event-listener/use-event-listener.test.tsx +96 -0
  720. package/src/hooks/use-event-listener/use-event-listener.ts +84 -0
  721. package/src/hooks/use-focus-trap/index.ts +1 -0
  722. package/src/hooks/use-focus-trap/scope-tab.ts +38 -0
  723. package/src/hooks/use-focus-trap/tabbable.ts +70 -0
  724. package/src/hooks/use-focus-trap/use-focus-trap.stories.tsx +37 -0
  725. package/src/hooks/use-focus-trap/use-focus-trap.test.ts +355 -0
  726. package/src/hooks/use-focus-trap/use-focus-trap.ts +78 -0
  727. package/src/hooks/use-hotkey/index.ts +9 -0
  728. package/src/hooks/use-hotkey/use-hotkey.stories.tsx +321 -0
  729. package/src/hooks/use-hotkey/use-hotkey.test.tsx +388 -0
  730. package/src/hooks/use-hotkey/use-hotkey.ts +157 -0
  731. package/src/hooks/use-hotkey/utils/index.ts +8 -0
  732. package/src/hooks/use-hotkey/utils/is-input-field.test.ts +78 -0
  733. package/src/hooks/use-hotkey/utils/is-input-field.ts +35 -0
  734. package/src/hooks/use-hotkey/utils/match-and-run.test.ts +203 -0
  735. package/src/hooks/use-hotkey/utils/match-and-run.ts +62 -0
  736. package/src/hooks/use-hotkey/utils/match-key-modifiers.test.ts +65 -0
  737. package/src/hooks/use-hotkey/utils/match-key-modifiers.ts +52 -0
  738. package/src/hooks/use-hover/index.ts +1 -0
  739. package/src/hooks/use-hover/use-hover.stories.tsx +268 -0
  740. package/src/hooks/use-hover/use-hover.test.tsx +333 -0
  741. package/src/hooks/use-hover/use-hover.tsx +110 -0
  742. package/src/hooks/use-is-visible/index.ts +1 -0
  743. package/src/hooks/use-is-visible/use-is-visible.stories.tsx +207 -0
  744. package/src/hooks/use-is-visible/use-is-visible.test.tsx +363 -0
  745. package/src/hooks/use-is-visible/use-is-visible.ts +114 -0
  746. package/src/hooks/use-local-storage/index.ts +1 -0
  747. package/src/hooks/use-local-storage/use-local-storage.stories.tsx +186 -0
  748. package/src/hooks/use-local-storage/use-local-storage.test.ts +196 -0
  749. package/src/hooks/use-local-storage/use-local-storage.ts +125 -0
  750. package/src/hooks/use-media-query/index.ts +1 -0
  751. package/src/hooks/use-media-query/use-media-query.stories.tsx +99 -0
  752. package/src/hooks/use-media-query/use-media-query.test.ts +132 -0
  753. package/src/hooks/use-media-query/use-media-query.ts +45 -0
  754. package/src/hooks/use-memoized-fn/index.ts +1 -0
  755. package/src/hooks/use-memoized-fn/use-memoized-fn.test.ts +52 -0
  756. package/src/hooks/use-memoized-fn/use-memoized-fn.ts +29 -0
  757. package/src/hooks/use-mutation/index.ts +1 -0
  758. package/src/hooks/use-mutation/use-mutation.stories.tsx +277 -0
  759. package/src/hooks/use-mutation/use-mutation.test.ts +359 -0
  760. package/src/hooks/use-mutation/use-mutation.ts +97 -0
  761. package/src/hooks/use-object/index.ts +1 -0
  762. package/src/hooks/use-object/use-object.stories.tsx +350 -0
  763. package/src/hooks/use-object/use-object.test.tsx +281 -0
  764. package/src/hooks/use-object/use-object.ts +59 -0
  765. package/src/hooks/use-on-mount/index.ts +1 -0
  766. package/src/hooks/use-on-mount/use-on-mount.stories.tsx +85 -0
  767. package/src/hooks/use-on-mount/use-on-mount.test.tsx +51 -0
  768. package/src/hooks/use-on-mount/use-on-mount.tsx +13 -0
  769. package/src/hooks/use-pagination/index.ts +1 -0
  770. package/src/hooks/use-pagination/use-pagination.stories.tsx +72 -0
  771. package/src/hooks/use-pagination/use-pagination.test.tsx +98 -0
  772. package/src/hooks/use-pagination/use-pagination.tsx +84 -0
  773. package/src/hooks/use-portal/index.ts +1 -0
  774. package/src/hooks/use-portal/use-portal.stories.tsx +19 -0
  775. package/src/hooks/use-portal/use-portal.test.tsx +77 -0
  776. package/src/hooks/use-portal/use-portal.ts +59 -0
  777. package/src/hooks/use-prevent-page-close/index.ts +1 -0
  778. package/src/hooks/use-prevent-page-close/use-prevent-page-close.stories.tsx +39 -0
  779. package/src/hooks/use-prevent-page-close/use-prevent-page-close.test.ts +89 -0
  780. package/src/hooks/use-prevent-page-close/use-prevent-page-close.ts +27 -0
  781. package/src/hooks/use-range-pagination/index.ts +1 -0
  782. package/src/hooks/use-range-pagination/use-range-pagination.test.tsx +63 -0
  783. package/src/hooks/use-range-pagination/use-range-pagination.tsx +73 -0
  784. package/src/hooks/use-selection/index.ts +1 -0
  785. package/src/hooks/use-selection/use-selection.stories.tsx +140 -0
  786. package/src/hooks/use-selection/use-selection.test.tsx +79 -0
  787. package/src/hooks/use-selection/use-selection.ts +119 -0
  788. package/src/hooks/use-step/index.ts +1 -0
  789. package/src/hooks/use-step/use-step.stories.tsx +211 -0
  790. package/src/hooks/use-step/use-step.test.ts +198 -0
  791. package/src/hooks/use-step/use-step.ts +63 -0
  792. package/src/index.ts +6 -0
  793. package/src/lib/cn.ts +8 -0
  794. package/src/lib/index.ts +1 -0
  795. package/src/models/Generic.model.ts +67 -0
  796. package/src/models/index.ts +1 -0
  797. package/src/providers/index.ts +2 -0
  798. package/src/providers/library-provider.tsx +44 -0
  799. package/src/providers/theme/ThemeProvider.tsx +25 -0
  800. package/src/providers/theme/index.ts +3 -0
  801. package/src/providers/theme/types.ts +11 -0
  802. package/src/providers/theme/useThemeProps.ts +25 -0
  803. package/src/stores/theme.store.ts +31 -0
  804. package/src/styles/components.css +4 -0
  805. package/src/styles/index.css +2 -0
  806. package/src/styles/library.css +2 -0
  807. package/src/styles/theme.css +232 -0
  808. package/src/utils/dates/parseDateRange.utility.ts +39 -0
  809. package/src/utils/form.test.tsx +143 -0
  810. package/src/utils/form.tsx +131 -0
  811. package/src/utils/functions/createSafeContext.test.tsx +37 -0
  812. package/src/utils/functions/createSafeContext.ts +17 -0
  813. package/src/utils/functions/ensureReactElement.test.tsx +49 -0
  814. package/src/utils/functions/ensureReactElement.tsx +30 -0
  815. package/src/utils/functions/getFormData.test.ts +57 -0
  816. package/src/utils/functions/getFormData.ts +19 -0
  817. package/src/utils/functions/index.ts +4 -0
  818. package/src/utils/functions/mergeRefs.test.ts +56 -0
  819. package/src/utils/functions/mergeRefs.ts +18 -0
  820. package/src/utils/index.ts +3 -0
  821. package/src/utils/strings/extractInitials.utility.ts +10 -0
  822. package/src/utils/strings/index.ts +1 -0
  823. package/src/utils/tests/click.ts +3 -0
  824. package/src/utils/tests/index.ts +2 -0
  825. package/src/utils/tests/keyboard.ts +21 -0
  826. package/src/utils/tests/type.ts +6 -0
package/dist/index.d.ts CHANGED
@@ -1,2039 +1,2 @@
1
- import { AlertDialog as AlertDialogPrimitive } from '@base-ui/react/alert-dialog';
2
- import { Avatar as AvatarPrimitive } from '@base-ui/react/avatar';
3
- import { ButtonHTMLAttributes } from 'react';
4
- import { CheckboxGroup as CheckboxGroup_2 } from '@base-ui/react/checkbox-group';
5
- import { Checkbox as CheckboxPrimitive } from '@base-ui/react/checkbox';
6
- import { ClassNameValue } from 'tailwind-merge';
7
- import { ClassProp } from 'class-variance-authority/types';
8
- import { ClassValue } from 'clsx';
9
- import { Collection } from 'react-aria-components';
10
- import { Command } from 'cmdk';
11
- import { ComponentProps } from 'react';
12
- import { ComponentPropsWithoutRef } from 'react';
13
- import { ControllerRenderProps } from 'react-hook-form';
14
- import { CSSProperties } from 'react';
15
- import { default as default_2 } from 'react';
16
- import { DependencyList } from 'react';
17
- import * as DialogPrimitive from '@radix-ui/react-dialog';
18
- import { DialogProps } from '@radix-ui/react-dialog';
19
- import { Dispatch } from 'react';
20
- import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
21
- import { ElementType } from 'react';
22
- import { FieldError } from 'react-hook-form';
23
- import { FieldPath } from 'react-hook-form';
24
- import { FieldValues } from 'react-hook-form';
25
- import { FormEvent } from 'react';
26
- import { HTMLAttributes } from 'react';
27
- import { HTMLProps } from 'react';
28
- import { JSX } from 'react/jsx-runtime';
29
- import { ListIterateeCustom } from 'lodash';
30
- import { LucideIcon } from 'lucide-react';
31
- import { LucideProps } from 'lucide-react';
32
- import { MutableRefObject } from 'react';
33
- import * as PopoverPrimitive from '@radix-ui/react-popover';
34
- import { Presence } from '@radix-ui/react-presence';
35
- import { Progress as Progress_2 } from '@base-ui/react/progress';
36
- import * as React_2 from 'react';
37
- import { ReactElement } from 'react';
38
- import { ReactNode } from 'react';
39
- import { ReactPortal } from 'react';
40
- import { RefObject } from 'react';
41
- import * as SelectPrimitive from '@radix-ui/react-select';
42
- import { SetStateAction } from 'react';
43
- import { Slot } from '@radix-ui/react-slot';
44
- import { Switch as Switch_2 } from '@base-ui/react/switch';
45
- import { ToastManager } from '@base-ui/react';
46
- import { ToastManagerAddOptions as ToastManagerAddOptions_2 } from '@base-ui/react/toast';
47
- import { ToastManagerPromiseOptions } from '@base-ui/react';
48
- import { ToastManagerUpdateOptions } from '@base-ui/react';
49
- import { ToastObject } from '@base-ui/react/toast';
50
- import { Toast as ToastPrimitive } from '@base-ui/react/toast';
51
- import { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';
52
- import { TreeItemContent as TreeItemContent_2 } from 'react-aria-components';
53
- import { TreeItemProps } from 'react-aria-components';
54
- import { TreeProps } from 'react-aria-components';
55
- import { useControllableState } from '@radix-ui/react-use-controllable-state';
56
- import { UseFormProps } from 'react-hook-form';
57
- import { UseFormReturn } from 'react-hook-form';
58
- import { useRender } from '@base-ui/react/use-render';
59
- import { VariantProps } from 'class-variance-authority';
60
- import { z } from 'zod';
61
-
62
- /**
63
- * Accessible confirmation dialog with cancel and action buttons.
64
- *
65
- * The `trigger` prop uses Base UI's `render` prop — no wrapper element is added —
66
- * making it composable with `<Tooltip>` at the primitive level.
67
- * For full structural control, use the exported primitives directly.
68
- *
69
- * @example
70
- * ```tsx
71
- * <AlertDialog
72
- * trigger={<Button variant="error">Delete account</Button>}
73
- * title="Delete account?"
74
- * description="This action cannot be undone."
75
- * variant="error"
76
- * actionText="Delete"
77
- * onAction={handleDelete}
78
- * />
79
- * ```
80
- */
81
- export declare function AlertDialog({ trigger, title, description, children, onClose, onAction, variant, closeText, actionText, className, ...props }: AlertDialogProps): JSX.Element;
82
-
83
- /** Semi-transparent overlay rendered behind the popup. */
84
- export declare function AlertDialogBackdrop({ className, ...props }: AlertDialogPrimitive.Backdrop.Props): JSX.Element;
85
-
86
- /** Closes the dialog and merges an optional `onClick` into the `render` element. */
87
- export declare function AlertDialogClose({ className, ...props }: AlertDialogPrimitive.Close.Props): JSX.Element;
88
-
89
- /** Supplementary description rendered below the title. */
90
- export declare function AlertDialogDescription({ className, ...props }: AlertDialogPrimitive.Description.Props): JSX.Element;
91
-
92
- /** Layout wrapper for action buttons. */
93
- export declare function AlertDialogFooter({ className, ...props }: HTMLAttributes<HTMLDivElement>): JSX.Element;
94
-
95
- /** Layout wrapper for title and description. */
96
- export declare function AlertDialogHeader({ className, ...props }: HTMLAttributes<HTMLDivElement>): JSX.Element;
97
-
98
- /**
99
- * Dialog content container. Includes Portal, Backdrop and Viewport internally.
100
- * Pass `portalProps` to configure the portal (e.g. a custom `container`).
101
- */
102
- export declare function AlertDialogPopup({ className, portalProps, ...props }: AlertDialogPrimitive.Popup.Props & {
103
- portalProps?: AlertDialogPrimitive.Portal.Props;
104
- }): JSX.Element;
105
-
106
- export { AlertDialogPrimitive }
107
-
108
- export declare type AlertDialogProps = Omit<AlertDialogPrimitive.Root.Props, "children"> & {
109
- /** Element that opens the dialog on click. Passed as Base UI `render` prop — no DOM wrapper added. */
110
- trigger?: ReactElement;
111
- /** Dialog heading. */
112
- title?: ReactNode;
113
- /** Supporting text rendered below the title. */
114
- description?: ReactNode;
115
- /** Custom content rendered between the description and the footer buttons. */
116
- children?: ReactNode;
117
- /** Called when the cancel button is clicked. */
118
- onClose?: () => void;
119
- /** Called when the action button is clicked. */
120
- onAction?: () => void;
121
- /** Visual variant for the action button. @default "default" */
122
- variant?: VariantProps<typeof buttonVariants>["variant"];
123
- /** Label for the cancel button. @default "Cancel" */
124
- closeText?: ReactNode;
125
- /** Label for the action button. @default "Confirm" */
126
- actionText?: ReactNode;
127
- /** Additional className forwarded to the popup panel. */
128
- className?: string;
129
- };
130
-
131
- /** Context root. Holds open state and wraps all dialog parts. */
132
- export declare function AlertDialogRoot(props: AlertDialogPrimitive.Root.Props): JSX.Element;
133
-
134
- /** Accessible title rendered as `<h2>`. Required for a11y. */
135
- export declare function AlertDialogTitle({ className, ...props }: AlertDialogPrimitive.Title.Props): JSX.Element;
136
-
137
- /**
138
- * Renders as its `render` element (defaults to `<button>`).
139
- * Because it uses Base UI's render prop — not Radix Slot — it composes cleanly
140
- * with `<Tooltip>` and other Base UI triggers on the same DOM element.
141
- */
142
- export declare function AlertDialogTrigger({ className, ...props }: AlertDialogPrimitive.Trigger.Props): JSX.Element;
143
-
144
- /** Full-screen container that centers the popup. */
145
- export declare function AlertDialogViewport({ className, ...props }: AlertDialogPrimitive.Viewport.Props): JSX.Element;
146
-
147
- export declare type ArrayUnion<V, T extends ReadonlyArray<V>> = T[number];
148
-
149
- declare type ArrowProps = ComponentPropsWithoutRef<typeof TooltipPrimitive.Arrow>;
150
-
151
- declare interface AsyncState<T> {
152
- loading: boolean;
153
- error: Error | null;
154
- data: T | null;
155
- refetch: () => void;
156
- }
157
-
158
- export declare type AtLeastOne<T> = [T, ...T[]];
159
-
160
- export declare const AutoComplete: ({ items, placeholder, emptyMessage, onSelect, containerClassName, containerProps, inputClassName, inputProps, listClassName, listProps, itemClassName, itemProps, emptyClassName, emptyProps, }: Props) => JSX.Element;
161
-
162
- export declare const AutoCompleteDialog: ({ children, ...props }: AutoCompleteDialogProps) => JSX.Element;
163
-
164
- declare interface AutoCompleteDialogProps extends DialogProps {
165
- }
166
-
167
- export declare const AutoCompleteEmpty: (props: React_2.ComponentProps<typeof Command.Empty>) => JSX.Element;
168
-
169
- export declare const AutoCompleteGroup: ({ className, ...props }: React_2.ComponentProps<typeof Command.Group>) => JSX.Element;
170
-
171
- export declare const AutoCompleteInput: ({ className, ...props }: React_2.ComponentProps<typeof Command.Input>) => JSX.Element;
172
-
173
- export declare const AutoCompleteItem: ({ className, ...props }: React_2.ComponentProps<typeof Command.Item>) => JSX.Element;
174
-
175
- export declare const AutoCompleteList: ({ className, ...props }: React_2.ComponentProps<typeof Command.List>) => JSX.Element;
176
-
177
- export declare const AutoCompleteRoot: ({ className, ...props }: React_2.ComponentProps<typeof Command>) => JSX.Element;
178
-
179
- export declare const AutoCompleteSeparator: ({ className, ...props }: React_2.ComponentProps<typeof Command.Separator>) => JSX.Element;
180
-
181
- export declare const AutoCompleteShortcut: ({ className, ...props }: React_2.HTMLAttributes<HTMLSpanElement>) => JSX.Element;
182
-
183
- export declare function Avatar({ src, alt, fallback, delay, shape, size, className, imageProps, fallbackProps, ...props }: AvatarProps): JSX.Element;
184
-
185
- export declare function AvatarFallback({ className, ...props }: AvatarPrimitive.Fallback.Props): JSX.Element;
186
-
187
- export declare function AvatarImage({ className, ...props }: AvatarPrimitive.Image.Props): JSX.Element;
188
-
189
- export { AvatarPrimitive }
190
-
191
- declare interface AvatarProps extends Omit<AvatarPrimitive.Root.Props, "children"> {
192
- src?: string;
193
- alt: string;
194
- fallback?: ReactNode;
195
- delay?: AvatarPrimitive.Fallback.Props["delay"];
196
- shape?: VariantProps<typeof avatarVariants>["shape"];
197
- size?: VariantProps<typeof avatarVariants>["size"];
198
- imageProps?: AvatarPrimitive.Image.Props;
199
- fallbackProps?: AvatarPrimitive.Fallback.Props;
200
- }
201
-
202
- export declare function AvatarRoot({ className, shape, size, ...props }: AvatarPrimitive.Root.Props & VariantProps<typeof avatarVariants>): JSX.Element;
203
-
204
- declare const avatarVariants: (props?: ({
205
- shape?: "circle" | "square" | null | undefined;
206
- size?: "sm" | "lg" | "xs" | "md" | "xl" | null | undefined;
207
- } & ClassProp) | undefined) => string;
208
-
209
- export declare const BackgroundImage: ({ src, ...props }: Props_2) => JSX.Element;
210
-
211
- export declare const BaseButton: ({ asChild, onClick, loading: prop, showLoader, icon, iconPosition, loaderReplace, style, ...props }: Props_4) => JSX.Element;
212
-
213
- declare type BaseButtonProps = ComponentProps<typeof BaseButton>;
214
-
215
- export declare type BaseEntity = {
216
- id: string;
217
- createdAt: Date;
218
- };
219
-
220
- declare type BaseProps = {
221
- icon?: React.ReactNode;
222
- rounded?: TagVariant["rounded"];
223
- } & StyleProps & React.HTMLAttributes<HTMLDivElement>;
224
-
225
- export declare const Button: (props: Props_3) => JSX.Element;
226
-
227
- declare type ButtonProps = ComponentProps<typeof Button>;
228
-
229
- declare type ButtonProps_2 = ComponentProps<typeof Button>;
230
-
231
- export declare const buttonVariants: (props?: ({
232
- variant?: "default" | "success" | "error" | "link" | "outline" | "secondary" | "ghost" | null | undefined;
233
- size?: "default" | "icon" | "sm" | "lg" | null | undefined;
234
- shape?: "rounded" | "circle" | "square" | null | undefined;
235
- } & ClassProp) | undefined) => string;
236
-
237
- export declare const Calendar: <T extends Mode>(props: CalendarProps<T>) => JSX.Element;
238
-
239
- export declare type CalendarBaseProps<T extends Mode> = {
240
- disabled?: (date: Date) => boolean;
241
- mode: T;
242
- };
243
-
244
- export declare type CalendarModeProps<T extends Mode> = CalendarBaseProps<T> & {
245
- single: SingleDateValue;
246
- range: RangeDateValue;
247
- multiple: MultipleDateValue;
248
- }[T];
249
-
250
- declare interface CalendarNavigationProps {
251
- view: CalendarView;
252
- setView: (view: CalendarView) => void;
253
- value: Date;
254
- previousMonth: () => void;
255
- nextMonth: () => void;
256
- previousYear: () => void;
257
- nextYear: () => void;
258
- previousDecade: () => void;
259
- nextDecade: () => void;
260
- goBackProps?: Omit<ButtonProps, "onClick">;
261
- goNextProps?: Omit<ButtonProps, "onClick">;
262
- changeViewProps?: Omit<HTMLProps<HTMLButtonElement>, "onClick">;
263
- }
264
-
265
- declare type CalendarProps<T extends Mode> = CalendarModeProps<T> & NavigationProps & {
266
- initialView?: CalendarView;
267
- view?: CalendarView;
268
- onChangeView?: (view: CalendarView, navigationDate: Date) => void;
269
- initialDate?: Date;
270
- monthViewProps?: Omit<MonthViewProps, "navigationDate">;
271
- className?: ClassName;
272
- };
273
-
274
- declare type CalendarProps_2 = ComponentProps<typeof Calendar<"single">>;
275
-
276
- export declare type CalendarState = {
277
- defaultStartDate: Date;
278
- mode: Mode;
279
- isSingleMode: boolean;
280
- isRangeMode: boolean;
281
- selected: DateMatcher;
282
- selectDate: (date: Date) => void;
283
- isSelected: (day: Date) => boolean;
284
- isInRange: (day: Date) => boolean;
285
- isFirstDayFromRange: (day: Date) => boolean;
286
- isLastDayFromRange: (day: Date) => boolean;
287
- };
288
-
289
- export declare type CalendarView = "month" | "year" | "decade";
290
-
291
- export declare const Card: ({ className, ...props }: default_2.HTMLAttributes<HTMLDivElement>) => JSX.Element;
292
-
293
- export declare const CardContent: ({ className, ...props }: default_2.HTMLAttributes<HTMLDivElement>) => JSX.Element;
294
-
295
- export declare const CardDescription: ({ className, ...props }: default_2.HTMLAttributes<HTMLParagraphElement>) => JSX.Element;
296
-
297
- export declare const CardFooter: ({ className, ...props }: default_2.HTMLAttributes<HTMLDivElement>) => JSX.Element;
298
-
299
- export declare const CardHeader: ({ className, ...props }: default_2.HTMLAttributes<HTMLDivElement>) => JSX.Element;
300
-
301
- export declare const CardTitle: ({ className, ...props }: default_2.HTMLAttributes<HTMLHeadingElement>) => JSX.Element;
302
-
303
- export declare const Center: ({ as: Tag, inline, className, ...props }: CenterProps) => JSX.Element;
304
-
305
- declare interface CenterProps extends ComponentProps<"div"> {
306
- as?: ElementType;
307
- inline?: boolean;
308
- }
309
-
310
- export declare function Checkbox({ children, className, id, indicatorProps, ...props }: CheckboxProps): React_2.ReactElement;
311
-
312
- export declare function CheckboxGroup({ className, ...props }: CheckboxGroup_2.Props): React_2.ReactElement;
313
-
314
- export declare function CheckboxIndicator({ className, ...props }: CheckboxPrimitive.Indicator.Props): React_2.ReactElement;
315
-
316
- export { CheckboxPrimitive }
317
-
318
- declare interface CheckboxProps extends Omit<CheckboxPrimitive.Root.Props, "children"> {
319
- children?: React_2.ReactNode;
320
- indicatorProps?: CheckboxPrimitive.Indicator.Props;
321
- }
322
-
323
- export declare function CheckboxRoot({ className, ...props }: CheckboxPrimitive.Root.Props): React_2.ReactElement;
324
-
325
- export declare type ClassName = string | undefined;
326
-
327
- export declare const click: (element: HTMLElement) => void;
328
-
329
- export declare type ClickEvent = React.MouseEvent<HTMLButtonElement, MouseEvent>;
330
-
331
- declare type ClosableProps = BaseProps & {
332
- closable: true;
333
- onClose: () => void;
334
- };
335
-
336
- export declare function cn(...args: ClassValue[]): string;
337
-
338
- export { Collection }
339
-
340
- declare type ColorProps = {
341
- color: string;
342
- variant?: "outline" | "borderless";
343
- };
344
-
345
- export declare type ColumnDef<T> = {
346
- /**
347
- * Header de la columna
348
- */
349
- header: string | (() => ReactNode);
350
- /**
351
- * Clave que identifica la columna
352
- */
353
- key: keyof T;
354
- /**
355
- * Elemento que se renderiza en la celda
356
- */
357
- cell?: (row: T, index: number) => ReactNode;
358
- /**
359
- * Ancho de la columna
360
- */
361
- width?: string | number;
362
- };
363
-
364
- export declare function Combobox<TItem extends Record<string, any>>({ items, valueKey, labelKey, placeholder, searchPlaceholder, emptyMessage, searchProps, className, triggerProps, itemProps, itemClassName, contentProps, contentClassName, value: prop, onChange, defaultValue: defaultProp, renderOption, commandProps, ...props }: Props_5<TItem>): JSX.Element;
365
-
366
- declare type ContainerProps = React_2.ComponentProps<"div">;
367
-
368
- export declare type Controllable<C, T extends NonNullable<unknown>> = OverrideProps<HTMLProps<C>, ControllableState<T>>;
369
-
370
- export declare type ControllableState<T> = {
371
- value?: T;
372
- defaultValue?: T;
373
- onChange?: (state: T) => void;
374
- };
375
-
376
- declare type CopiedValue = string | null;
377
-
378
- declare type CopyFunction = (text: string) => Promise<boolean>;
379
-
380
- export declare const createSafeContext: <T>() => readonly [() => T & ({} | undefined), default_2.Provider<T | null>];
381
-
382
- export declare function createToastManager(): ToastManager<any> & {
383
- close: (id?: string) => any;
384
- add: (options: ToastManagerAddOptions<any>) => any;
385
- update: (id: string, options: Partial<ToastManagerAddOptions<any>>) => any;
386
- promise: <T>(promise: Promise<T>, options: {
387
- loading: ToastManagerAddOptions<any>;
388
- success: ToastManagerAddOptions<any> | ((data: T) => ToastManagerAddOptions<any>);
389
- error: ToastManagerAddOptions<any> | ((error: Error) => ToastManagerAddOptions<any>);
390
- }) => any;
391
- };
392
-
393
- export declare type DateMatcher = DateSingle | DateRange | DateMultiple;
394
-
395
- export declare type DateMultiple = Date[];
396
-
397
- export declare const DatePicker: (props: Props_7) => JSX.Element;
398
-
399
- export declare type DatePickerFooterProps = {
400
- mode: "single";
401
- value: CalendarProps_2["value"];
402
- clear: () => void;
403
- selectToday: () => void;
404
- setValue: (value: CalendarProps_2["value"]) => void;
405
- };
406
-
407
- export declare type DateRange = {
408
- start: DateSingle;
409
- end: DateSingle;
410
- };
411
-
412
- export declare type DateSingle = Date | null;
413
-
414
- declare type DayProps = {
415
- day: Date;
416
- navigationDate: Date;
417
- } & HTMLProps<HTMLButtonElement>;
418
-
419
- export declare const Dialog: ({ trigger, title, description, children, footer, focus, triggerProps, headerProps, headerClassName, titleProps, titleClassName, descriptionProps, descriptionClassName, contentProps, contentClassName, footerProps, footerClassName, ...props }: Props_8) => JSX.Element;
420
-
421
- export declare const DialogClose: ({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Close>) => JSX.Element;
422
-
423
- export declare const DialogContent: ({ className, children, focus, hideClose, ...props }: React_2.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & {
424
- focus?: boolean;
425
- hideClose?: boolean;
426
- }) => JSX.Element;
427
-
428
- export declare const DialogDescription: ({ className, ...props }: React_2.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>) => JSX.Element;
429
-
430
- export declare const DialogFooter: ({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>) => JSX.Element;
431
-
432
- export declare const DialogHeader: ({ className, ...props }: React_2.HTMLAttributes<HTMLDivElement>) => JSX.Element;
433
-
434
- export declare const DialogOverlay: ({ className, ...props }: React_2.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>) => JSX.Element;
435
-
436
- export declare const DialogPortal: ({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Portal>) => JSX.Element;
437
-
438
- export declare const DialogRoot: ({ onClose, ...props }: React_2.ComponentProps<typeof DialogPrimitive.Root> & {
439
- onClose?: () => any;
440
- }) => JSX.Element;
441
-
442
- export declare const DialogTitle: ({ className, ...props }: React_2.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>) => JSX.Element;
443
-
444
- export declare const DialogTrigger: ({ ...props }: React_2.ComponentProps<typeof DialogPrimitive.Trigger>) => JSX.Element;
445
-
446
- export declare const Divider: (props: Props_9) => JSX.Element;
447
-
448
- export declare const DOTS = "...";
449
-
450
- export declare const Dropzone: ({ onFileAdd, onFileRemove, onChangeFiles, files, maxFiles, allowedExtensions, maxFileSize, multiple, renderAcceptedFile, renderRejectedFile, showRejected, className, icon: Icon, iconSize, onError, ...props }: DropzoneProps) => JSX.Element;
451
-
452
- export declare type DropzoneProps = {
453
- /**
454
- * Función que se ejecuta cuando se agregan archivos
455
- */
456
- onFileAdd?: (files: File[]) => void;
457
- /**
458
- * Función que se ejecuta cuando se elimina un archivo
459
- */
460
- onFileRemove?: (index: number, type: "accepted" | "rejected") => void;
461
- /**
462
- * Evento que captura cambios en lista de archivos
463
- * @default () => {}
464
- */
465
- onChangeFiles?: (files: File[]) => void;
466
- /**
467
- * Lista de archivos
468
- * @default []
469
- */
470
- files?: File[];
471
- /**
472
- * Número máximo de archivos permitidos
473
- * @default 1
474
- */
475
- maxFiles?: number;
476
- /**
477
- * Lista de extensiones permitidas (e.j. ["image/jpeg", "image/png"])
478
- * @default []
479
- */
480
- allowedExtensions?: FileTypeValue[];
481
- /**
482
- * Tamaño máximo de archivo en bytes
483
- * @default 5MB
484
- */
485
- maxFileSize?: number;
486
- /**
487
- * Permite seleccionar múltiples archivos
488
- */
489
- multiple?: boolean;
490
- /**
491
- * Función para renderizar cada archivo aceptado
492
- */
493
- renderAcceptedFile?: (file: File, removeItem: () => void) => React.ReactNode;
494
- /**
495
- * Función para renderizar cada archivo rechazado
496
- */
497
- renderRejectedFile?: (file: File, removeItem: () => void) => React.ReactNode;
498
- /**
499
- * Mostrar archivos rechazados
500
- * @default false
501
- */
502
- showRejected?: boolean;
503
- /**
504
- * Clase CSS para el contenedor
505
- */
506
- className?: string;
507
- /**
508
- * Icono personalizado para el dropzone
509
- * @default UploadCloud
510
- */
511
- icon?: LucideIcon;
512
- /**
513
- * Tamaño del icono
514
- * @default 40
515
- */
516
- iconSize?: number;
517
- /**
518
- * Función que se ejecuta cuando se rechazan archivos
519
- */
520
- onError?: (fileErrors: FileError[]) => void;
521
- } & Omit<ComponentPropsWithoutRef<"div">, "onDrop" | "onError">;
522
-
523
- export declare const EmptyState: ({ icon, title, description, className, children, ...props }: Props_10) => JSX.Element;
524
-
525
- export declare const ensureReactElement: <P>({ children, as: Wrapper, props, }: EnsureReactElementProps<P>) => ReactElement;
526
-
527
- declare type EnsureReactElementProps<P = {}> = {
528
- children: Renderable<P>;
529
- as?: default_2.ElementType;
530
- props?: P;
531
- };
532
-
533
- export declare type Entity<T> = {
534
- [K in keyof T]: T[K];
535
- } & BaseEntity;
536
-
537
- declare interface ExtendedProps {
538
- containerClassName: ClassName;
539
- inputClassName: ClassName;
540
- listClassName: ClassName;
541
- itemClassName: ClassName;
542
- emptyClassName: ClassName;
543
- containerProps: ComponentProps<typeof AutoCompleteRoot>;
544
- inputProps: ComponentProps<typeof AutoCompleteInput>;
545
- listProps: ComponentProps<typeof AutoCompleteList>;
546
- itemProps: ComponentProps<typeof AutoCompleteItem>;
547
- emptyProps: ComponentProps<typeof AutoCompleteEmpty>;
548
- }
549
-
550
- declare interface ExtendedProps_2 {
551
- triggerProps?: ComponentPropsWithoutRef<typeof DialogTrigger>;
552
- headerProps?: ComponentPropsWithoutRef<typeof DialogHeader>;
553
- headerClassName?: ClassName;
554
- titleProps?: ComponentPropsWithoutRef<typeof DialogTitle>;
555
- titleClassName?: ClassName;
556
- descriptionProps?: ComponentPropsWithoutRef<typeof DialogDescription>;
557
- descriptionClassName?: ClassName;
558
- contentProps?: ComponentPropsWithoutRef<typeof DialogContent>;
559
- contentClassName?: ClassName;
560
- footerProps?: ComponentPropsWithoutRef<typeof DialogFooter>;
561
- footerClassName?: ClassName;
562
- }
563
-
564
- declare interface ExtendedProps_3 {
565
- theadClassName?: ClassName;
566
- theadProps?: HTMLProps<HTMLTableSectionElement>;
567
- tbodyClassName?: ClassName;
568
- tbodyProps?: HTMLProps<HTMLTableSectionElement>;
569
- trClassName?: ClassName;
570
- trProps?: HTMLProps<HTMLTableRowElement>;
571
- thClassName?: ClassName;
572
- thProps?: HTMLProps<HTMLTableCellElement>;
573
- tdClassName?: ClassName;
574
- tdProps?: Omit<HTMLProps<HTMLTableCellElement>, "onDoubleClick">;
575
- }
576
-
577
- /**
578
- * Extracts the initials from a string.
579
- * @param {string} string - The input string.
580
- * @returns {string} The initials extracted from the input string.
581
- */
582
- export declare const extractInitials: (string: string) => string;
583
-
584
- export declare const Field: ({ label, labelClassName, labelProps, error, errorClassName, errorProps, children, className, ...props }: Props_11) => JSX.Element;
585
-
586
- declare type FileError = {
587
- file: File;
588
- errorMessage: string;
589
- errorCode: FileErrorCode;
590
- };
591
-
592
- declare type FileErrorCode = 'INVALID_EXTENSION' | 'FILE_TOO_LARGE' | 'MAX_FILES_EXCEEDED';
593
-
594
- export declare const FileType: {
595
- readonly JPEG: "image/jpeg";
596
- readonly JPG: "image/jpg";
597
- readonly PNG: "image/png";
598
- readonly GIF: "image/gif";
599
- readonly WEBP: "image/webp";
600
- readonly SVG: "image/svg+xml";
601
- readonly PDF: "application/pdf";
602
- readonly DOC: "application/msword";
603
- readonly DOCX: "application/vnd.openxmlformats-officedocument.wordprocessingml.document";
604
- readonly XLS: "application/vnd.ms-excel";
605
- readonly XLSX: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
606
- readonly PPT: "application/vnd.ms-powerpoint";
607
- readonly PPTX: "application/vnd.openxmlformats-officedocument.presentationml.presentation";
608
- readonly TXT: "text/plain";
609
- readonly CSV: "text/csv";
610
- readonly ZIP: "application/zip";
611
- readonly RAR: "application/x-rar-compressed";
612
- readonly MP3: "audio/mpeg";
613
- readonly WAV: "audio/wav";
614
- readonly MP4: "video/mp4";
615
- readonly WEBM: "video/webm";
616
- readonly JSON: "application/json";
617
- readonly XML: "application/xml";
618
- };
619
-
620
- export declare const FileTypeGroups: Record<string, FileTypeValue[]>;
621
-
622
- export declare type FileTypeValue = (typeof FileType)[keyof typeof FileType];
623
-
624
- export declare const Form: <TFieldValues extends FieldValues = FieldValues>({ onSubmit, id, form, children, className, }: Props_12<TFieldValues>) => JSX.Element;
625
-
626
- export declare const FormControl: ({ className, ...props }: React_2.ComponentProps<typeof Slot>) => JSX.Element;
627
-
628
- export declare const FormDescription: ({ className, ...props }: React_2.ComponentProps<"p">) => JSX.Element;
629
-
630
- export declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ name, label, description, className, render, itemProps, labelProps, controlProps, descriptionProps, messageProps, }: FormFieldProps<TFieldValues, TName>) => JSX.Element;
631
-
632
- declare type FormFieldProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
633
- name: TName;
634
- label?: string;
635
- description?: string;
636
- render: (field: ControllerRenderProps<TFieldValues, TName>) => React_2.ReactNode;
637
- className?: string;
638
- itemProps?: React_2.ComponentProps<typeof FormItem>;
639
- labelProps?: React_2.ComponentProps<typeof FormLabel>;
640
- controlProps?: React_2.ComponentProps<typeof FormControl>;
641
- descriptionProps?: React_2.ComponentProps<typeof FormDescription>;
642
- messageProps?: React_2.ComponentProps<typeof FormMessage>;
643
- };
644
-
645
- export declare const FormItem: ({ className, ...props }: React_2.ComponentProps<"div">) => JSX.Element;
646
-
647
- export declare const FormLabel: ({ className, ...props }: React_2.ComponentProps<"label">) => JSX.Element;
648
-
649
- export declare const FormMessage: ({ className, children, ...props }: React_2.ComponentProps<"p">) => JSX.Element | null;
650
-
651
- export declare interface GenericMenuProps {
652
- trigger: default_2.ReactNode;
653
- items: MenuItemType[];
654
- side?: "top" | "right" | "bottom" | "left";
655
- offset?: ComponentPropsWithoutRef<typeof MenuContent>["sideOffset"];
656
- contentProps?: ComponentPropsWithoutRef<typeof MenuContent>;
657
- }
658
-
659
- export declare type GenericObject<T = any> = {
660
- [key: string]: T;
661
- };
662
-
663
- declare type GenericObject_2 = Record<string, any>;
664
-
665
- export declare const getFormData: (event: FormEvent<HTMLFormElement>) => Record<string, string>;
666
-
667
- export declare const Heading: <C extends React.ElementType = "h2">({ className, size, weight, as, ...props }: Props_13<C>) => JSX.Element;
668
-
669
- declare const HeadingVariants: (props?: ({
670
- size?: "sm" | "lg" | "md" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | null | undefined;
671
- weight?: "bold" | "normal" | "medium" | "semibold" | null | undefined;
672
- } & ClassProp) | undefined) => string;
673
-
674
- declare type HotkeyEventName = "keydown" | "keypress" | "keyup";
675
-
676
- declare type HotkeyOptions = {
677
- watch?: boolean;
678
- eventName?: HotkeyEventName;
679
- preventDefault?: boolean;
680
- ignoreInputFields?: boolean;
681
- };
682
-
683
- export declare type ID = string | number;
684
-
685
- export declare const Input: ({ value: prop, onChange, defaultValue: defaultProp, ...rest }: Props_14) => JSX.Element;
686
-
687
- declare interface ItemTimeline {
688
- content?: ReactNode;
689
- icon?: ReactNode;
690
- status?: "done" | "pending" | "error";
691
- color?: string;
692
- }
693
-
694
- export declare function Kbd({ className, ...props }: React_2.ComponentProps<"kbd">): React_2.ReactElement;
695
-
696
- export declare function KbdGroup({ className, ...props }: React_2.ComponentProps<"kbd">): React_2.ReactElement;
697
-
698
- declare type Keys = string | string[];
699
-
700
- export declare function Label({ className, render, required, tooltip, children, ...props }: LabelProps): default_2.ReactElement;
701
-
702
- declare interface LabelProps extends useRender.ComponentProps<"label"> {
703
- required?: boolean;
704
- tooltip?: ReactNode;
705
- }
706
-
707
- /**
708
- * Single provider that wires up all library infrastructure.
709
- * Wrap your app once — no other providers needed.
710
- *
711
- * Includes:
712
- * - `TooltipProvider` — shared hover intent and delay grouping across all tooltips
713
- * - `ToastProvider` — enables `toast.*` imperative API from anywhere
714
- *
715
- * @example
716
- * ```tsx
717
- * <LibraryProvider tooltipDelay={400}>
718
- * <App />
719
- * </LibraryProvider>
720
- * ```
721
- */
722
- export declare function LibraryProvider({ children, tooltipDelay, ...toastProps }: LibraryProviderProps): JSX.Element;
723
-
724
- export declare type LibraryProviderProps = {
725
- children: ReactNode;
726
- /**
727
- * Delay in ms before a tooltip opens when no other tooltip is already visible.
728
- * Once a tooltip is open, subsequent ones open instantly until the cursor leaves.
729
- * @default 600
730
- */
731
- tooltipDelay?: ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider>["delay"];
732
- } & Omit<ToastProviderProps, "children">;
733
-
734
- export declare const Loader: ({ center, containerClassName, variant, size, ...props }: Props_15) => JSX.Element;
735
-
736
- declare type LoaderVariants = VariantProps<typeof loaderVariants>;
737
-
738
- declare const loaderVariants: (props?: ({
739
- variant?: "success" | "error" | "warning" | "info" | "secondary" | "ghost" | "primary" | null | undefined;
740
- size?: "default" | "sm" | "lg" | "xs" | "xl" | null | undefined;
741
- } & ClassProp) | undefined) => string;
742
-
743
- export declare type Loose<T> = T | (string & {});
744
-
745
- export declare type Maybe<T> = T | undefined | null;
746
-
747
- export declare type MaybeRef<T> = T | MutableRefObject<T>;
748
-
749
- declare type MaybeReturn<TState> = Return<TState | undefined, ((state: TState | undefined) => Partial<TState>) | Partial<TState>>;
750
-
751
- export declare const Menu: ({ trigger, items, contentProps, side, offset, }: GenericMenuProps) => JSX.Element;
752
-
753
- export declare const MenuCheckboxItem: ({ className, children, checked, ...props }: MenuCheckboxItemProps) => JSX.Element;
754
-
755
- declare type MenuCheckboxItemProps = React_2.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>;
756
-
757
- export declare const MenuContent: ({ className, sideOffset, ...props }: MenuContentProps) => JSX.Element;
758
-
759
- declare type MenuContentProps = React_2.ComponentProps<typeof DropdownMenuPrimitive.Content>;
760
-
761
- export declare const MenuGroup: (props: React_2.ComponentProps<typeof DropdownMenuPrimitive.Group>) => JSX.Element;
762
-
763
- export declare const MenuItem: ({ className, inset, ...props }: MenuItemProps) => JSX.Element;
764
-
765
- declare type MenuItemBase<T extends ElementType> = ComponentPropsWithoutRef<T> & {
766
- label?: ReactNode;
767
- type: string;
768
- } & Shortcut;
769
-
770
- declare type MenuItemCheckbox = MenuItemBase<typeof MenuCheckboxItem> & {
771
- type: "checkbox";
772
- };
773
-
774
- declare type MenuItemItem = MenuItemBase<typeof MenuItem> & {
775
- type: "item";
776
- };
777
-
778
- declare type MenuItemLabel = MenuItemBase<typeof MenuLabel> & {
779
- type: "label";
780
- };
781
-
782
- declare type MenuItemProps = React_2.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
783
- inset?: boolean;
784
- };
785
-
786
- declare type MenuItemRadio = MenuItemBase<typeof MenuRadioItem> & {
787
- type: "radio";
788
- };
789
-
790
- declare type MenuItemSeparator = MenuItemBase<typeof MenuSeparator> & {
791
- type: "separator";
792
- };
793
-
794
- declare type MenuItemSubmenu = MenuItemBase<typeof MenuSubTrigger> & {
795
- type: "submenu";
796
- items: MenuItemType[];
797
- };
798
-
799
- export declare type MenuItemType = MenuItemItem | MenuItemCheckbox | MenuItemRadio | MenuItemLabel | MenuItemSeparator | MenuItemSubmenu;
800
-
801
- export declare const MenuLabel: ({ className, inset, ...props }: MenuLabelProps) => JSX.Element;
802
-
803
- declare type MenuLabelProps = React_2.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
804
- inset?: boolean;
805
- };
806
-
807
- export declare const MenuPortal: (props: React_2.ComponentProps<typeof DropdownMenuPrimitive.Portal>) => JSX.Element;
808
-
809
- export declare const MenuRadioGroup: (props: React_2.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>) => JSX.Element;
810
-
811
- export declare const MenuRadioItem: ({ className, children, ...props }: MenuRadioItemProps) => JSX.Element;
812
-
813
- declare type MenuRadioItemProps = React_2.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>;
814
-
815
- export declare const MenuRoot: (props: React_2.ComponentProps<typeof DropdownMenuPrimitive.Root>) => JSX.Element;
816
-
817
- export declare const MenuSeparator: ({ className, ...props }: MenuSeparatorProps) => JSX.Element;
818
-
819
- declare type MenuSeparatorProps = React_2.ComponentProps<typeof DropdownMenuPrimitive.Separator>;
820
-
821
- export declare const MenuShortcut: ({ className, keys, handler, options, ...props }: MenuShortcutProps) => JSX.Element;
822
-
823
- declare type MenuShortcutProps = React_2.ComponentPropsWithoutRef<"span"> & {
824
- keys: Keys;
825
- handler: (event: KeyboardEvent) => any;
826
- options?: HotkeyOptions;
827
- };
828
-
829
- declare type MenuShortcutProps_2 = ComponentPropsWithoutRef<typeof MenuShortcut>;
830
-
831
- export declare const MenuSub: (props: React_2.ComponentProps<typeof DropdownMenuPrimitive.Sub>) => JSX.Element;
832
-
833
- export declare const MenuSubContent: ({ className, ...props }: MenuSubContentProps) => JSX.Element;
834
-
835
- declare type MenuSubContentProps = React_2.ComponentProps<typeof DropdownMenuPrimitive.SubContent>;
836
-
837
- export declare const MenuSubTrigger: ({ className, inset, children, ...props }: MenuSubTriggerProps) => JSX.Element;
838
-
839
- declare type MenuSubTriggerProps = React_2.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
840
- inset?: boolean;
841
- };
842
-
843
- export declare const MenuTrigger: (props: React_2.ComponentProps<typeof DropdownMenuPrimitive.Trigger>) => JSX.Element;
844
-
845
- export declare function mergeRefs<T = any>(refs: Array<React_2.MutableRefObject<T> | React_2.LegacyRef<T> | undefined | null>): React_2.RefCallback<T>;
846
-
847
- export declare type Mode = "single" | "range" | "multiple";
848
-
849
- export declare const monthNames: readonly ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"];
850
-
851
- declare type MonthViewProps = {
852
- navigationDate: Date;
853
- disabled?: (date: Date) => boolean;
854
- dayClassName?: ClassName;
855
- dayProps?: DayProps;
856
- weekDaysClassName?: ClassName;
857
- weekDaysProps?: WeekDaysProps;
858
- };
859
-
860
- export declare type MultipleDateValue = {
861
- value?: Date[];
862
- defaultValue?: Date[];
863
- onChange?: (dates: Date[]) => void;
864
- };
865
-
866
- export declare const MultiSelect: <TItem extends Record<string, any> = Option_2>({ items, value, valueKey, labelKey, onChange, variant, defaultValue, placeholder, maxCount, className, renderOption, withCheckbox, showSearch, showSelectAll, rootProps, ...props }: MultiSelectProps<TItem>) => JSX.Element;
867
-
868
- declare type MultiSelectProps<TItem extends Record<string, any>> = OverrideProps<React_2.ButtonHTMLAttributes<HTMLButtonElement> & OpenProps & VariantProps<typeof multiSelectVariants>, {
869
- items: TItem[];
870
- /**
871
- * Identificador del valor del elemento
872
- * @default "value"
873
- */
874
- valueKey?: keyof TItem;
875
- /**
876
- * Identificador del label del elemento
877
- * @default "label"
878
- */
879
- value?: string[];
880
- onChange?: (value: string[]) => void;
881
- defaultValue?: string[];
882
- labelKey?: keyof TItem;
883
- placeholder?: string;
884
- /**
885
- * Cantidad máxima de elementos que se van a visualizar
886
- * @default 3
887
- */
888
- maxCount?: number;
889
- className?: string;
890
- renderOption?: (item: TItem) => React_2.ReactNode;
891
- withCheckbox?: boolean;
892
- /**
893
- * Para mostrar o no la barra de búsqueda
894
- * @default true
895
- */
896
- showSearch?: boolean;
897
- /**
898
- * Para mostrar o no el "Seleccionar todos"
899
- * @default true
900
- */
901
- showSelectAll?: boolean;
902
- /**
903
- * Props del PopoverRoot
904
- */
905
- rootProps?: React_2.ComponentPropsWithoutRef<typeof PopoverRoot>;
906
- }>;
907
-
908
- declare const multiSelectVariants: (props?: ({
909
- variant?: "default" | "error" | "secondary" | "primary" | null | undefined;
910
- } & ClassProp) | undefined) => string;
911
-
912
- declare type Mutation<TArgs extends any[], TReturn> = (...args: TArgs) => Promise<TReturn>;
913
-
914
- declare type NavigationProps = Pick<CalendarNavigationProps, "goNextProps" | "goBackProps" | "changeViewProps">;
915
-
916
- declare type NonClosableProps = BaseProps & {
917
- closable?: false;
918
- onClose?: never;
919
- };
920
-
921
- declare type noop = (this: any, ...args: any[]) => any;
922
-
923
- export declare type Nullable<T> = T | null;
924
-
925
- export declare const NumberInput: ({ value: prop, onChange, defaultValue: defaultProp, className, min, max, ...props }: Props_16) => JSX.Element;
926
-
927
- declare type OpenProps = {
928
- open?: boolean;
929
- onOpenChange?: (open: boolean) => void;
930
- defaultOpen?: boolean;
931
- };
932
-
933
- declare interface Option_2<TValue = string> {
934
- label: string;
935
- value: TValue;
936
- disabled?: boolean;
937
- }
938
- export { Option_2 as Option }
939
-
940
- export declare type OverrideProps<T, TOverridden> = Omit<T, keyof TOverridden> & TOverridden;
941
-
942
- export declare type PageSize = (typeof TABLE_PAGE_SIZES)[number];
943
-
944
- export declare const Pagination: ({ optionProps, className, containerProps, ...rangeProps }: Props_17) => JSX.Element;
945
-
946
- declare interface PaginationOptionProps extends ButtonHTMLAttributes<HTMLButtonElement> {
947
- isActive?: boolean;
948
- }
949
-
950
- export declare const Password: ({ className, containerClassName, showIcon, hideIcon, onShow, onHide, toggleable, ...rest }: Props_18) => JSX.Element;
951
-
952
- export declare const Popover: (props: Props_19) => JSX.Element;
953
-
954
- export declare const PopoverContent: ({ className, align, sideOffset, matchTriggerWidth, style, focus, ...props }: PopoverContentProps) => JSX.Element;
955
-
956
- declare type PopoverContentProps = React_2.ComponentProps<typeof PopoverPrimitive.Content> & {
957
- matchTriggerWidth?: boolean;
958
- focus?: boolean;
959
- };
960
-
961
- export declare const PopoverRoot: (props: React_2.ComponentProps<typeof PopoverPrimitive.Root>) => JSX.Element;
962
-
963
- export declare const PopoverTrigger: (props: React_2.ComponentProps<typeof PopoverPrimitive.Trigger>) => JSX.Element;
964
-
965
- declare type PopupProps = ComponentPropsWithoutRef<typeof TooltipPrimitive.Popup>;
966
-
967
- export declare function Progress({ size, variant, className, trackProps, indicatorProps, ...props }: ProgressProps): React_2.ReactElement;
968
-
969
- export declare function ProgressIndicator({ className, variant, ...props }: Progress_2.Indicator.Props & VariantProps<typeof progressIndicatorVariants>): React_2.ReactElement;
970
-
971
- declare const progressIndicatorVariants: (props?: ({
972
- variant?: "default" | "success" | "error" | "warning" | "info" | null | undefined;
973
- } & ClassProp) | undefined) => string;
974
-
975
- export declare function ProgressLabel({ className, ...props }: Progress_2.Label.Props): React_2.ReactElement;
976
-
977
- declare interface ProgressProps extends Omit<Progress_2.Root.Props, "children"> {
978
- size?: VariantProps<typeof progressTrackVariants>["size"];
979
- variant?: VariantProps<typeof progressIndicatorVariants>["variant"];
980
- trackProps?: Progress_2.Track.Props;
981
- indicatorProps?: Progress_2.Indicator.Props;
982
- }
983
-
984
- export declare function ProgressRoot({ className, ...props }: Progress_2.Root.Props): React_2.ReactElement;
985
-
986
- export declare function ProgressTrack({ className, size, ...props }: Progress_2.Track.Props & VariantProps<typeof progressTrackVariants>): React_2.ReactElement;
987
-
988
- declare const progressTrackVariants: (props?: ({
989
- size?: "sm" | "lg" | "md" | null | undefined;
990
- } & ClassProp) | undefined) => string;
991
-
992
- export declare function ProgressValue({ className, ...props }: Progress_2.Value.Props): React_2.ReactElement;
993
-
994
- declare interface Props extends ExtendedProps {
995
- items: AutoCompleteItem[];
996
- placeholder?: string;
997
- emptyMessage?: string;
998
- onSelect?: (value: AutoCompleteItem["value"], item: AutoCompleteItem) => any;
999
- }
1000
-
1001
- declare type Props_10 = ComponentPropsWithoutRef<"div"> & {
1002
- icon?: ReactNode;
1003
- title?: ReactNode;
1004
- description?: ReactNode;
1005
- };
1006
-
1007
- declare interface Props_11 extends ComponentProps<"div"> {
1008
- label?: ReactNode;
1009
- labelClassName?: string;
1010
- labelProps?: ComponentPropsWithoutRef<"label">;
1011
- error?: ReactNode;
1012
- errorClassName?: string;
1013
- errorProps?: ComponentPropsWithoutRef<"p">;
1014
- }
1015
-
1016
- declare type Props_12<TFieldValues extends FieldValues> = {
1017
- onSubmit: (data: TFieldValues) => void;
1018
- form: UseFormReturn<TFieldValues, any, any>;
1019
- children: React_2.ReactNode;
1020
- className?: string;
1021
- id?: string;
1022
- };
1023
-
1024
- declare type Props_13<C extends React.ElementType> = VariantProps<typeof HeadingVariants> & {
1025
- as?: C;
1026
- } & Omit<React.ComponentPropsWithoutRef<C>, "as">;
1027
-
1028
- declare type Props_14 = OverrideProps<ComponentProps<"input">, {
1029
- /** valor del input */
1030
- value?: string;
1031
- /** functión a ejecutar cuando el valor cambia */
1032
- onChange?: (value: string) => void;
1033
- /** valor por defecto del input */
1034
- defaultValue?: string;
1035
- }>;
1036
-
1037
- declare type Props_15 = LucideProps & LoaderVariants & {
1038
- center?: boolean;
1039
- containerClassName?: string;
1040
- };
1041
-
1042
- declare type Props_16 = OverrideProps<ComponentProps<"input">, {
1043
- /** valor del input */
1044
- value?: number;
1045
- /** functión a ejecutar cuando el valor cambia */
1046
- onChange?: (value: number) => void;
1047
- /** valor por defecto del input */
1048
- defaultValue?: number;
1049
- /** valor mínimo del input */
1050
- min?: number;
1051
- /** valor máximo del input */
1052
- max?: number;
1053
- }>;
1054
-
1055
- declare interface Props_17 extends useRangePaginationProps {
1056
- optionProps?: PaginationOptionProps;
1057
- className?: string;
1058
- containerProps?: HTMLProps<HTMLDivElement>;
1059
- }
1060
-
1061
- declare type Props_18 = OverrideProps<ComponentProps<typeof Input>, {
1062
- /** Clase CSS para el contenedor */
1063
- containerClassName?: string;
1064
- /** Ícono para mostrar la contraseña */
1065
- showIcon?: ReactNode;
1066
- /** Ícono para ocultar la contraseña */
1067
- hideIcon?: ReactNode;
1068
- /** Callback cuando se muestra la contraseña */
1069
- onShow?: () => void;
1070
- /** Callback cuando se oculta la contraseña */
1071
- onHide?: () => void;
1072
- /** Habilita/deshabilita el botón de mostrar/ocultar contraseña */
1073
- toggleable?: boolean;
1074
- }>;
1075
-
1076
- declare interface Props_19 {
1077
- trigger?: ReactNode;
1078
- children: ReactNode;
1079
- rootProps?: ComponentPropsWithoutRef<typeof PopoverRoot>;
1080
- triggerProps?: ComponentPropsWithoutRef<typeof PopoverTrigger>;
1081
- triggerClassName?: ClassName;
1082
- contentProps?: ComponentPropsWithoutRef<typeof PopoverContent>;
1083
- contentClassName?: ClassName;
1084
- matchTriggerWidth?: ComponentPropsWithoutRef<typeof PopoverContent>["matchTriggerWidth"];
1085
- triggerAsChild?: ComponentPropsWithoutRef<typeof PopoverTrigger>["asChild"];
1086
- side?: "left" | "right" | "top" | "bottom";
1087
- offset?: ComponentPropsWithoutRef<typeof PopoverContent>["sideOffset"];
1088
- }
1089
-
1090
- declare interface Props_2 extends HTMLProps<HTMLDivElement> {
1091
- /**
1092
- * La URL de la imagen
1093
- */
1094
- src: string;
1095
- }
1096
-
1097
- declare interface Props_20 extends ComponentPropsWithoutRef<typeof Slot> {
1098
- /** Si el componente está presente o no */
1099
- when: ComponentProps<typeof Presence>["present"];
1100
- }
1101
-
1102
- declare type Props_21<T> = {
1103
- data: T[];
1104
- columns: ColumnDef<T>[];
1105
- onRowClick?: (row: T) => void;
1106
- onDoubleClick?: (row: T) => void;
1107
- selected?: (row: T) => boolean;
1108
- } & ExtendedProps_3 & Omit<ComponentPropsWithoutRef<typeof TableRoot>, "data" | "selected" | "onDoubleClick">;
1109
-
1110
- declare type Props_22 = {
1111
- setPageSize?: (value: PageSize) => void;
1112
- pageSize?: PageSize;
1113
- } & Omit<usePaginationProps, "pageSize"> & TablePaginationExtendedProps;
1114
-
1115
- declare type Props_23 = ClosableProps | NonClosableProps;
1116
-
1117
- declare type Props_24<T extends TreeNode> = TreeRootProps & {
1118
- items: T[];
1119
- };
1120
-
1121
- declare interface Props_25<T> extends UseAsyncOptions<T> {
1122
- fn: () => Promise<T>;
1123
- dependencies?: DependencyList;
1124
- }
1125
-
1126
- declare type Props_3 = BaseButtonProps & VariantProps<typeof buttonVariants>;
1127
-
1128
- declare interface Props_4 extends ComponentProps<"button"> {
1129
- asChild?: boolean;
1130
- loading?: boolean;
1131
- showLoader?: boolean;
1132
- icon?: ReactNode;
1133
- iconPosition?: "start" | "end";
1134
- loaderReplace?: true;
1135
- }
1136
-
1137
- declare type Props_5<TItem extends Record<string, any>> = {
1138
- emptyMessage?: string;
1139
- commandProps?: ComponentProps<typeof AutoCompleteRoot>;
1140
- } & SearchProps & SelectProps<TItem>;
1141
-
1142
- declare type Props_6<TItem extends Record<string, any>> = OverrideProps<ComponentProps<typeof SelectRoot> & Omit<ControllableState<string>, "onChange">, {
1143
- onChange?: (value: string, item: TItem) => void;
1144
- /**
1145
- * Listado de elementos a mostrar
1146
- * @default []
1147
- */
1148
- items: TItem[];
1149
- /**
1150
- * Identificador del valor del elemento
1151
- * @default "value"
1152
- */
1153
- valueKey?: keyof TItem;
1154
- /**
1155
- * Identificador del label del elemento
1156
- * @default "label"
1157
- */
1158
- labelKey?: keyof TItem;
1159
- /**
1160
- * Función que renderiza el label del elemento
1161
- * Por defecto renderiza el label del elemento
1162
- */
1163
- renderOption?: (item: TItem) => ReactNode;
1164
- className?: ClassName;
1165
- triggerProps?: ComponentProps<typeof SelectTrigger>;
1166
- contentClassName?: ClassName;
1167
- contentProps?: ComponentProps<typeof SelectContent>;
1168
- itemClassName?: ClassName;
1169
- itemProps?: ComponentProps<typeof SelectItem>;
1170
- placeholder?: string;
1171
- }>;
1172
-
1173
- declare type Props_7 = ComponentProps<"input"> & {
1174
- value?: Date | null;
1175
- defaultValue?: Date | null;
1176
- onChange?: (value: Date | null) => void;
1177
- disabledDate?: (date: Date) => boolean;
1178
- hideFooter?: boolean;
1179
- renderFooter?: (props: DatePickerFooterProps) => ReactNode;
1180
- };
1181
-
1182
- declare type Props_8 = ComponentPropsWithoutRef<typeof DialogRoot> & ExtendedProps_2 & {
1183
- trigger?: ReactNode;
1184
- title?: ReactNode;
1185
- description?: ReactNode;
1186
- children: ReactNode;
1187
- footer?: ReactNode;
1188
- focus?: boolean;
1189
- };
1190
-
1191
- declare type Props_9 = {
1192
- orientation?: "horizontal" | "vertical";
1193
- } & HTMLProps<HTMLHRElement>;
1194
-
1195
- declare type PropsWithoutValue<T> = Omit<T, "value" | "onChange" | "defaultValue">;
1196
-
1197
- declare type ProviderProps = ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider>;
1198
-
1199
- export declare type RangeDateValue = {
1200
- value?: DateRange;
1201
- defaultValue?: DateRange;
1202
- onChange?: (date: DateRange) => void;
1203
- };
1204
-
1205
- export declare type Renderable<T> = ReactNode | ((props: T) => ReactElement);
1206
-
1207
- declare type Return<TState, TArgs = ((state: TState) => Partial<TState>) | Partial<TState>> = [TState, (arg: TArgs) => void, () => void];
1208
-
1209
- declare type Return_2<T> = {
1210
- /**
1211
- * Indica si todos los elementos están seleccionados.
1212
- */
1213
- isAllSelected: boolean;
1214
- /**
1215
- * Indica si algunos elementos están seleccionados.
1216
- */
1217
- isSomeSelected: boolean;
1218
- /**
1219
- * Indica si ningun elemento está seleccionado.
1220
- */
1221
- isNoneSelected: boolean;
1222
- /**
1223
- * Función que devuelve true si el elemento dado está seleccionado, false de lo contrario.
1224
- * @param item El elemento a verificar.
1225
- * @returns true si el elemento está seleccionado, false de lo contrario.
1226
- */
1227
- isSelected: (item: T) => boolean;
1228
- /**
1229
- * Array de elementos seleccionados.
1230
- */
1231
- selected: T[];
1232
- /**
1233
- * Establece los elementos seleccionados.
1234
- * @param items Los elementos seleccionados.
1235
- */
1236
- setSelected: (items: T[]) => void;
1237
- /**
1238
- * Selecciona un elemento.
1239
- * @param item El elemento a seleccionar.
1240
- */
1241
- select: (item: T) => void;
1242
- /**
1243
- * Deselecciona un elemento.
1244
- * @param item El elemento a deseleccionar.
1245
- */
1246
- unselect: (item: T) => void;
1247
- /**
1248
- * Alterna la selección de un elemento (si está seleccionado, lo deselecciona y viceversa).
1249
- * @param item El elemento cuya selección se alternará.
1250
- */
1251
- toggle: (item: T) => void;
1252
- /**
1253
- * Alterna la selección de todos los elementos (si todos están seleccionados, los deselecciona; de lo contrario, los selecciona).
1254
- */
1255
- toggleAll: () => void;
1256
- /**
1257
- * Deselecciona todos los elementos.
1258
- */
1259
- clear: () => void;
1260
- };
1261
-
1262
- declare interface Return_3<T = ReactNode> {
1263
- currentStepIndex: number;
1264
- step: T;
1265
- steps: T[];
1266
- isFirstStep: boolean;
1267
- isLastStep: boolean;
1268
- goTo: (i: number) => void;
1269
- next: () => void;
1270
- back: () => void;
1271
- findAndGo: (callback: ListIterateeCustom<T, boolean>) => void;
1272
- }
1273
-
1274
- declare type Return_4 = [boolean, (newValue?: boolean) => void];
1275
-
1276
- declare type RootProps = ComponentPropsWithoutRef<typeof TooltipPrimitive.Root>;
1277
-
1278
- export declare type SafeOmit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
1279
-
1280
- declare interface SearchProps {
1281
- search?: string;
1282
- searchDefaultValue?: string;
1283
- onSearchChange?: (search: string) => void;
1284
- searchProps?: ComponentProps<typeof AutoCompleteInput>;
1285
- searchPlaceholder?: string;
1286
- }
1287
-
1288
- export declare const Select: <TItem extends Record<string, any> = Option_2>({ items, valueKey, labelKey, value: prop, onChange, defaultValue: defaultProp, renderOption, triggerProps, contentClassName, contentProps, itemClassName, itemProps, className, placeholder, ...props }: Props_6<TItem>) => JSX.Element;
1289
-
1290
- export declare const SelectContent: ({ className, children, position, ...props }: SelectContentProps) => JSX.Element;
1291
-
1292
- declare type SelectContentProps = React_2.ComponentProps<typeof SelectPrimitive.Content>;
1293
-
1294
- export declare const SelectGroup: React_2.FC<SelectGroupProps>;
1295
-
1296
- declare interface SelectGroupProps extends React_2.ComponentProps<typeof SelectPrimitive.Group> {
1297
- heading?: string;
1298
- }
1299
-
1300
- export declare const SelectItem: ({ className, children, ...props }: SelectItemProps) => JSX.Element;
1301
-
1302
- declare type SelectItemProps = React_2.ComponentProps<typeof SelectPrimitive.Item>;
1303
-
1304
- export declare const SelectLabel: ({ className, ...props }: SelectLabelProps) => JSX.Element;
1305
-
1306
- declare type SelectLabelProps = React_2.ComponentProps<typeof SelectPrimitive.Label>;
1307
-
1308
- declare type SelectProps<TItem extends Record<string, any>> = ComponentProps<typeof Select<TItem>>;
1309
-
1310
- export declare const SelectRoot: (props: React_2.ComponentProps<typeof SelectPrimitive.Root>) => JSX.Element;
1311
-
1312
- export declare const SelectScrollDownButton: ({ className, ...props }: SelectScrollDownButtonProps) => JSX.Element;
1313
-
1314
- declare type SelectScrollDownButtonProps = React_2.ComponentProps<typeof SelectPrimitive.ScrollDownButton>;
1315
-
1316
- export declare const SelectScrollUpButton: ({ className, ...props }: SelectScrollUpButtonProps) => JSX.Element;
1317
-
1318
- declare type SelectScrollUpButtonProps = React_2.ComponentProps<typeof SelectPrimitive.ScrollUpButton>;
1319
-
1320
- export declare const SelectSeparator: ({ className, ...props }: SelectSeparatorProps) => JSX.Element;
1321
-
1322
- declare type SelectSeparatorProps = React_2.ComponentProps<typeof SelectPrimitive.Separator>;
1323
-
1324
- export declare const SelectTrigger: ({ className, children, ...props }: SelectTriggerProps) => JSX.Element;
1325
-
1326
- declare type SelectTriggerProps = React_2.ComponentProps<typeof SelectPrimitive.Trigger>;
1327
-
1328
- export declare const SelectValue: (props: React_2.ComponentProps<typeof SelectPrimitive.Value>) => JSX.Element;
1329
-
1330
- export declare type SetState<T> = Dispatch<SetStateAction<T>>;
1331
-
1332
- declare type Shortcut = Partial<{
1333
- shortcut: MenuShortcutProps_2["keys"];
1334
- onShortcut: MenuShortcutProps_2["handler"];
1335
- shortcutOptions: MenuShortcutProps_2["options"];
1336
- }>;
1337
-
1338
- export declare const Show: ({ when, ...props }: Props_20) => JSX.Element;
1339
-
1340
- export declare type SingleDateValue = {
1341
- value?: DateSingle;
1342
- defaultValue?: DateSingle;
1343
- onChange?: (date: DateSingle) => void;
1344
- };
1345
-
1346
- export declare function Skeleton({ className, ...props }: ComponentProps<"div">): JSX.Element;
1347
-
1348
- export declare const Stack: ({ as: Tag, inline, direction, reverse, justify, align, gap, wrap, grow, className, style, ...props }: StackProps) => JSX.Element;
1349
-
1350
- declare interface StackProps extends ComponentProps<"div"> {
1351
- as?: ElementType;
1352
- inline?: boolean;
1353
- direction?: "horizontal" | "vertical";
1354
- reverse?: boolean;
1355
- justify?: CSSProperties["justifyContent"];
1356
- align?: CSSProperties["alignItems"];
1357
- gap?: CSSProperties["gap"];
1358
- wrap?: CSSProperties["flexWrap"];
1359
- grow?: boolean;
1360
- }
1361
-
1362
- export declare type State<T> = [T, SetState<T>];
1363
-
1364
- export declare function Stepper({ items, current, onChange, className, classNameList, classNameItem, classNameButton, classNameIndicator, classNameContent, }: StepperProps): JSX.Element;
1365
-
1366
- export declare function StepperContainer({ current: prop, onChange, className, ...props }: StepperContainerProps): JSX.Element;
1367
-
1368
- declare interface StepperContainerProps extends Omit<HTMLProps<HTMLDivElement>, "onChange"> {
1369
- current?: number;
1370
- onChange?: (index: number) => void;
1371
- className?: ClassName;
1372
- }
1373
-
1374
- export declare function StepperContent({ value, className, ...props }: StepperContentProps): JSX.Element | null;
1375
-
1376
- declare interface StepperContentProps extends HTMLProps<HTMLDivElement> {
1377
- value: number;
1378
- }
1379
-
1380
- declare interface StepperItemProps {
1381
- indicator?: ReactNode;
1382
- title: ReactNode;
1383
- content?: ReactNode;
1384
- disabled?: boolean;
1385
- }
1386
-
1387
- export declare function StepperList({ children, className, ...props }: StepperListProps): JSX.Element;
1388
-
1389
- declare interface StepperListProps extends HTMLProps<HTMLUListElement> {
1390
- }
1391
-
1392
- declare interface StepperProps extends Omit<HTMLProps<HTMLDivElement>, "onChange"> {
1393
- items?: StepperItemProps[];
1394
- current?: number;
1395
- onChange?: (index: number) => void;
1396
- className?: ClassName;
1397
- classNameList?: ClassName;
1398
- classNameItem?: ClassName;
1399
- classNameButton?: ClassName;
1400
- classNameIndicator?: ClassName;
1401
- classNameContent?: ClassName;
1402
- }
1403
-
1404
- export declare function StepperTrigger({ disabled, value, title, indicator, classNameItem, classNameButton, classNameIndicator, }: StepperTriggerProps): JSX.Element;
1405
-
1406
- declare interface StepperTriggerProps {
1407
- indicator?: ReactNode;
1408
- title: ReactNode;
1409
- value: number;
1410
- disabled?: boolean;
1411
- classNameItem?: ClassNameValue;
1412
- classNameButton?: ClassNameValue;
1413
- classNameIndicator?: ClassNameValue;
1414
- }
1415
-
1416
- declare type StyleProps = ColorProps | VariantProps_2;
1417
-
1418
- export declare function Switch({ children, className, id, thumbProps, ...props }: SwitchProps): React_2.ReactElement;
1419
-
1420
- declare interface SwitchProps extends Omit<Switch_2.Root.Props, "children"> {
1421
- children?: React_2.ReactNode;
1422
- thumbProps?: Switch_2.Thumb.Props;
1423
- }
1424
-
1425
- export declare function SwitchRoot({ className, ...props }: Switch_2.Root.Props): React_2.ReactElement;
1426
-
1427
- export declare function SwitchThumb({ className, ...props }: Switch_2.Thumb.Props): React_2.ReactElement;
1428
-
1429
- export declare const TabContent: ({ value, ...props }: TabContentProps) => JSX.Element | null;
1430
-
1431
- export declare interface TabContentProps extends HTMLProps<HTMLDivElement> {
1432
- value: string;
1433
- }
1434
-
1435
- export declare const Table: <T>({ data, columns, onRowClick, onDoubleClick, selected, theadClassName, theadProps, tbodyClassName, tbodyProps, trClassName, trProps, thClassName, thProps, tdClassName, tdProps, ...tableProps }: Props_21<T>) => JSX.Element;
1436
-
1437
- export declare const TABLE_PAGE_SIZES: number[];
1438
-
1439
- export declare const TableBody: ({ className, ...props }: TableBodyProps) => JSX.Element;
1440
-
1441
- declare type TableBodyProps = React_2.ComponentProps<"tbody">;
1442
-
1443
- export declare const TableCaption: ({ className, ...props }: TableCaptionProps) => JSX.Element;
1444
-
1445
- declare type TableCaptionProps = React_2.ComponentProps<"caption">;
1446
-
1447
- export declare const TableCell: ({ className, ...props }: TableCellProps) => JSX.Element;
1448
-
1449
- declare type TableCellProps = React_2.ComponentProps<"td">;
1450
-
1451
- export declare const TableFooter: ({ className, ...props }: TableFooterProps) => JSX.Element;
1452
-
1453
- declare type TableFooterProps = React_2.ComponentProps<"tfoot">;
1454
-
1455
- export declare const TableHead: ({ className, ...props }: TableHeadProps) => JSX.Element;
1456
-
1457
- export declare const TableHeader: ({ className, ...props }: TableHeaderProps) => JSX.Element;
1458
-
1459
- declare type TableHeaderProps = React_2.ComponentProps<"thead">;
1460
-
1461
- declare type TableHeadProps = React_2.ComponentProps<"th">;
1462
-
1463
- export declare const TablePagination: ({ containerClassName, containerProps, selectClassName, selectProps, sizes, ...props }: Props_22) => JSX.Element;
1464
-
1465
- declare interface TablePaginationExtendedProps {
1466
- containerClassName?: ClassName;
1467
- containerProps?: HTMLProps<HTMLDivElement>;
1468
- selectClassName?: ClassName;
1469
- selectProps?: HTMLProps<HTMLSelectElement>;
1470
- sizes?: PageSize[] | false;
1471
- }
1472
-
1473
- declare type TableProps = React_2.ComponentProps<"table">;
1474
-
1475
- export declare const TableRoot: ({ className, containerClassName, containerProps, ...props }: TableRootProps) => JSX.Element;
1476
-
1477
- declare type TableRootProps = TableProps & {
1478
- containerClassName?: ContainerProps["className"];
1479
- containerProps?: ContainerProps;
1480
- };
1481
-
1482
- export declare const TableRow: ({ className, ...props }: TableRowProps) => JSX.Element;
1483
-
1484
- declare type TableRowProps = React_2.ComponentProps<"tr">;
1485
-
1486
- export declare const TabList: ({ children, className, indicatorClassName }: TabListProps) => JSX.Element;
1487
-
1488
- export declare interface TabListProps {
1489
- children: ReactNode;
1490
- className?: string;
1491
- indicatorClassName?: string;
1492
- }
1493
-
1494
- export declare const Tabs: ({ children, value: prop, onChange, defaultValue, variant, ...props }: TabsProps) => JSX.Element;
1495
-
1496
- export declare interface TabsExtendedProps extends TabsProps {
1497
- listClassName: TabListProps["className"];
1498
- listProps: TabListProps;
1499
- triggerClassName: TabTriggerProps["className"];
1500
- triggerProps: TabTriggerProps;
1501
- contentClassName: TabContentProps["className"];
1502
- contentProps: TabContentProps;
1503
- }
1504
-
1505
- export declare interface TabsProps extends Omit<HTMLProps<HTMLDivElement>, "value" | "defaultValue" | "onChange"> {
1506
- value?: string;
1507
- onChange?: (tab: string) => void;
1508
- defaultValue?: string;
1509
- variant?: "default" | "background";
1510
- }
1511
-
1512
- export declare const TabTrigger: ({ value, className, ...props }: TabTriggerProps) => JSX.Element;
1513
-
1514
- export declare interface TabTriggerProps extends Omit<HTMLProps<HTMLButtonElement>, "onClick" | "type"> {
1515
- value: string;
1516
- }
1517
-
1518
- export declare const Tag: ({ className, color, variant, rounded, icon, closable, onClose, children, ...props }: Props_23) => JSX.Element;
1519
-
1520
- export declare type TagVariant = VariantProps<typeof tagVariants>;
1521
-
1522
- export declare const tagVariants: (props?: ({
1523
- rounded?: "default" | "square" | "full" | null | undefined;
1524
- variant?: "success" | "error" | "outline" | "secondary" | "primary" | "borderless" | null | undefined;
1525
- } & ClassProp) | undefined) => string;
1526
-
1527
- export declare const Textarea: ({ className, ...props }: TextAreaProps) => JSX.Element;
1528
-
1529
- declare type TextAreaProps = Omit<HTMLProps<HTMLTextAreaElement>, "onChange"> & {
1530
- onChange?: (value: string) => void;
1531
- };
1532
-
1533
- export declare type Theme = {
1534
- Button?: ThemeProps<ComponentProps<typeof Button>, "asChild" | "loading">;
1535
- Input?: Partial<PropsWithoutValue<ComponentProps<typeof Input>>>;
1536
- Popover?: ThemeProps<ComponentProps<typeof Popover>, "open" | "defaultOpen" | "onOpenChange" | "trigger">;
1537
- };
1538
-
1539
- declare type ThemeProps<T, TOverridden> = Partial<Omit<T, keyof TOverridden>>;
1540
-
1541
- export declare const ThemeProvider: ({ children, theme, }: ThemeProviderProps) => JSX.Element;
1542
-
1543
- declare type ThemeProviderProps = {
1544
- children: ReactNode;
1545
- theme?: Theme;
1546
- };
1547
-
1548
- export declare const Timeline: ({ items, classNameContainer, containerProps, ...itemsProps }: TimelineProps) => JSX.Element;
1549
-
1550
- export declare const TimelineItemContent: (props: HTMLProps<HTMLDivElement>) => JSX.Element;
1551
-
1552
- export declare const TimelineItemDot: ({ icon, status, color, classNameDot, classNameContainerDot, }: TimelineItemDotProps) => JSX.Element;
1553
-
1554
- declare interface TimelineItemDotProps {
1555
- icon?: ReactNode;
1556
- status?: "done" | "pending" | "error";
1557
- color?: string;
1558
- classNameDot?: string;
1559
- classNameContainerDot?: string;
1560
- }
1561
-
1562
- export declare const TimelineListItem: ({ icon, status, color, classNameItemDot, classNameItemContainerDot, classNameItemContent, itemsProps, children, ...props }: TimelineListItemProps) => JSX.Element;
1563
-
1564
- declare interface TimelineListItemProps extends HTMLProps<HTMLLIElement> {
1565
- icon?: ReactNode;
1566
- status?: "done" | "pending" | "error";
1567
- color?: string;
1568
- itemsProps?: HTMLProps<HTMLDivElement>;
1569
- classNameContainer?: string;
1570
- classNameItemDot?: string;
1571
- classNameItemContainerDot?: string;
1572
- classNameItemContent?: string;
1573
- }
1574
-
1575
- declare interface TimelineProps {
1576
- items: ItemTimeline[];
1577
- itemsProps?: HTMLProps<HTMLDivElement>;
1578
- containerProps?: HTMLProps<HTMLUListElement>;
1579
- classNameContainer?: string;
1580
- classNameItem?: string;
1581
- classNameItemDot?: string;
1582
- classNameItemContainerDot?: string;
1583
- classNameItemContent?: string;
1584
- }
1585
-
1586
- export declare const TimelineRoot: (props: HTMLProps<HTMLUListElement>) => JSX.Element;
1587
-
1588
- /**
1589
- * Imperative toast API. Works anywhere — no hook needed.
1590
- *
1591
- * Requires `<ToastProvider>` somewhere in the tree (no extra props needed).
1592
- *
1593
- * @example
1594
- * ```ts
1595
- * toast("Notificación"); // default variant
1596
- * toast.success("Guardado correctamente");
1597
- * toast.error({ title: "Error", description: "Algo salió mal" });
1598
- * toast.promise(saveData(), {
1599
- * loading: { description: "Guardando..." },
1600
- * success: () => ({ variant: "success", description: "Guardado!" }),
1601
- * error: (e) => ({ variant: "error", description: e.message }),
1602
- * });
1603
- * ```
1604
- */
1605
- export declare const toast: ((arg: ToastArg) => string | undefined) & {
1606
- success: (arg: ToastArg) => any;
1607
- error: (arg: ToastArg) => any;
1608
- warning: (arg: ToastArg) => any;
1609
- info: (arg: ToastArg) => any;
1610
- promise: <T>(promise: Promise<T>, options: {
1611
- loading: ToastManagerAddOptions<any>;
1612
- success: ToastManagerAddOptions<any> | ((data: T) => ToastManagerAddOptions<any>);
1613
- error: ToastManagerAddOptions<any> | ((error: Error) => ToastManagerAddOptions<any>);
1614
- }) => any;
1615
- };
1616
-
1617
- declare type ToastArg = string | Omit<ToastManagerAddOptions<any>, "variant">;
1618
-
1619
- export declare type ToastManagerAddOptions<Data extends object = object> = ToastManagerAddOptions_2<Data> & ToastOptionsBase;
1620
-
1621
- export declare type ToastOptions<Data extends object = object> = ToastObject<Data> & ToastOptionsBase;
1622
-
1623
- declare type ToastOptionsBase = {
1624
- variant?: ToastVariant;
1625
- content?: ReactNode;
1626
- actions?: ButtonProps_2[];
1627
- bump?: boolean;
1628
- };
1629
-
1630
- export { ToastPrimitive }
1631
-
1632
- /**
1633
- * ToastProvider — wrap your app once to enable toast notifications.
1634
- *
1635
- * Toasts stack in the bottom-right corner with swipe-to-dismiss and expand-on-hover.
1636
- * Once mounted, call `toast.success()` / `toast.error()` etc. from anywhere.
1637
- *
1638
- * @example
1639
- * ```tsx
1640
- * // app.tsx — one-time setup, no extra props needed
1641
- * <ToastProvider>
1642
- * <App />
1643
- * </ToastProvider>
1644
- *
1645
- * // Anywhere in the codebase
1646
- * import { toast } from "@boxcustodia/library";
1647
- * toast.success("Cambios guardados");
1648
- * toast.error({ title: "Error", description: "Algo salió mal" });
1649
- * ```
1650
- */
1651
- export declare function ToastProvider({ children, toastManager, container }: ToastProviderProps): JSX.Element;
1652
-
1653
- export declare interface ToastProviderProps {
1654
- children: ReactNode;
1655
- /**
1656
- * External toast manager created with `createToastManager()`.
1657
- * Only needed for isolated instances (tests, microfrontends).
1658
- * The default `<ToastProvider>` (no props) is all you need for `toast.*` to work.
1659
- */
1660
- toastManager?: ReturnType<typeof ToastPrimitive.createToastManager>;
1661
- /**
1662
- * Container element for the portal.
1663
- * @default document.body
1664
- */
1665
- container?: HTMLElement | null;
1666
- }
1667
-
1668
- export declare type ToastVariant = "default" | "success" | "error" | "warning" | "info";
1669
-
1670
- export declare function toastVariants({ variant }?: {
1671
- variant?: ToastVariant;
1672
- }): string;
1673
-
1674
- /**
1675
- * Accessible popup that shows additional information on hover/focus.
1676
- * Wrap your app or section with `<TooltipProvider>` to enable delay grouping.
1677
- *
1678
- * @example
1679
- * ```tsx
1680
- * <Tooltip content="Save changes">
1681
- * <Button>Save</Button>
1682
- * </Tooltip>
1683
- * ```
1684
- */
1685
- export declare function Tooltip({ content, children, open, defaultOpen, onOpenChange, side, align, offset, delay, closeDelay, className, arrowClassName, ...triggerProps }: TooltipProps): JSX.Element;
1686
-
1687
- export declare function TooltipArrow({ className, ...props }: ArrowProps): JSX.Element;
1688
-
1689
- export declare function TooltipPopup({ className, ...props }: PopupProps): JSX.Element;
1690
-
1691
- export { TooltipPrimitive }
1692
-
1693
- export declare type TooltipProps = Omit<RootProps, "children"> & Omit<TriggerProps, "render" | "delay" | "closeDelay" | "className" | "content"> & {
1694
- /** The element that triggers the tooltip on hover/focus. */
1695
- children: ReactElement;
1696
- /** Content displayed inside the tooltip popup. */
1697
- content: ReactNode;
1698
- /** Preferred side of the trigger to render the tooltip. @default "top" */
1699
- side?: "top" | "bottom" | "left" | "right";
1700
- /** Alignment on the axis perpendicular to `side`. @default "center" */
1701
- align?: "start" | "center" | "end";
1702
- /** Distance in pixels between the tooltip and the trigger. @default 10 */
1703
- offset?: number;
1704
- /** Delay in ms before the tooltip opens. @default 600 */
1705
- delay?: TriggerProps["delay"];
1706
- /** Delay in ms before the tooltip closes. @default 0 */
1707
- closeDelay?: TriggerProps["closeDelay"];
1708
- /** Additional classes applied to the tooltip popup. */
1709
- className?: string;
1710
- /**
1711
- * Additional classes applied to the arrow.
1712
- * Pass a `text-*` class to change the arrow color when overriding the popup background.
1713
- * @example arrowClassName="text-primary"
1714
- */
1715
- arrowClassName?: string;
1716
- };
1717
-
1718
- /** Enables shared hover intent and delay grouping across multiple tooltips. */
1719
- export declare function TooltipProvider(props: ProviderProps): JSX.Element;
1720
-
1721
- export declare function TooltipRoot(props: RootProps): JSX.Element;
1722
-
1723
- export declare function TooltipTrigger({ className, ...props }: TriggerProps): JSX.Element;
1724
-
1725
- export declare function Tree<T extends TreeNode>({ items, ...props }: Props_24<T>): JSX.Element;
1726
-
1727
- export declare const TreeItem: <T extends object>({ className, ...props }: OverrideProps<TreeItemProps<T>, {
1728
- id: string | number;
1729
- }>) => JSX.Element;
1730
-
1731
- export declare const TreeItemContent: (props: React_2.ComponentProps<typeof TreeItemContent_2>) => JSX.Element;
1732
-
1733
- export declare const TreeItemIndicator: () => JSX.Element;
1734
-
1735
- export declare const TreeItemLabel: (props: React_2.HtmlHTMLAttributes<HTMLSpanElement>) => JSX.Element;
1736
-
1737
- export declare interface TreeNode {
1738
- id: string | number;
1739
- title: string;
1740
- children: TreeNode[];
1741
- }
1742
-
1743
- export declare const TreeRoot: <T extends object>({ className, ...props }: TreeProps<T>) => JSX.Element;
1744
-
1745
- declare type TreeRootProps = React_2.ComponentProps<typeof TreeRoot>;
1746
-
1747
- declare type TriggerProps = ComponentPropsWithoutRef<typeof TooltipPrimitive.Trigger>;
1748
-
1749
- export declare const twMerge: (...classLists: ClassNameValue[]) => string;
1750
-
1751
- export declare const type: (element: HTMLElement, value: string) => void;
1752
-
1753
- export declare const UploadAcceptedFiles: (props: UploadFilesProps) => JSX.Element;
1754
-
1755
- export declare const UploadContent: ({ className, ...props }: UploadContentProps) => JSX.Element;
1756
-
1757
- declare type UploadContentProps = ComponentPropsWithoutRef<"div"> & {
1758
- renderRejectedFile?: (file: File) => ReactNode;
1759
- };
1760
-
1761
- declare type UploadFilesListProps = {
1762
- files: File[];
1763
- handleFileRemove: (index: number, type: "accepted" | "rejected") => void;
1764
- fileType: "accepted" | "rejected";
1765
- children?: ReactNode;
1766
- renderFile?: (file: File, removeItem: () => void) => ReactNode;
1767
- };
1768
-
1769
- declare type UploadFilesProps = Omit<UploadFilesListProps, "fileType" | "handleFileRemove" | "files">;
1770
-
1771
- export declare const UploadItem: ({ file, onRemove, className, renderIcon, ...props }: UploadItemProps) => JSX.Element;
1772
-
1773
- declare type UploadItemProps = ComponentPropsWithoutRef<"div"> & {
1774
- file: File;
1775
- onRemove: () => void;
1776
- renderIcon?: (file: File) => ReactNode;
1777
- };
1778
-
1779
- export declare const UploadRejectedFiles: (props: UploadFilesProps) => JSX.Element;
1780
-
1781
- export declare const UploadRoot: ({ onFileAdd, onFileRemove, onChangeFiles, files: prop, maxFiles, allowedExtensions, maxFileSize, multiple, children, onError, ...props }: UploadRootProps) => JSX.Element;
1782
-
1783
- declare type UploadRootProps = {
1784
- onFileAdd?: (files: File[]) => void;
1785
- onFileRemove?: (index: number, type: "accepted" | "rejected") => void;
1786
- onChangeFiles?: (files: File[]) => void;
1787
- files?: File[];
1788
- maxFiles?: number;
1789
- allowedExtensions?: string[];
1790
- maxFileSize?: number;
1791
- multiple?: true;
1792
- className?: string;
1793
- children?: ReactNode;
1794
- onError?: (fileErrors: FileError[]) => void;
1795
- };
1796
-
1797
- export declare const UploadTrigger: ({ asChild, ...props }: UploadTriggerProps) => JSX.Element;
1798
-
1799
- declare type UploadTriggerProps = {
1800
- asChild?: boolean;
1801
- } & ComponentPropsWithoutRef<"button">;
1802
-
1803
- export declare function useArray<T>(defaultProp: T[]): readonly [T[], {
1804
- readonly insertAt: (index: number, item: T) => void;
1805
- readonly removeAt: (index: number) => void;
1806
- readonly updateAt: (index: number, newItem: T) => void;
1807
- readonly clear: () => void;
1808
- readonly reset: () => void;
1809
- readonly push: (item: T) => void;
1810
- readonly set: (newList: T[]) => void;
1811
- readonly pop: () => void;
1812
- readonly update: (predicate: ListIterateeCustom<T, boolean>, newItem: T | ((item: T) => T)) => void;
1813
- }];
1814
-
1815
- export declare function useAsync<T>({ fn, dependencies, onError, onSuccess, onFinish, }: Props_25<T>): AsyncState<T>;
1816
-
1817
- declare interface UseAsyncOptions<T> {
1818
- onError?: (error: Error) => void;
1819
- onSuccess?: (data: T) => void;
1820
- onFinish?: () => void;
1821
- }
1822
-
1823
- export declare const useClickOutside: <T extends HTMLElement = HTMLElement>(callback: () => void, watch?: boolean) => RefObject<T | null>;
1824
-
1825
- export declare function useClipboard(): [CopiedValue, CopyFunction];
1826
-
1827
- export { useControllableState }
1828
-
1829
- export declare function useDebouncedCallback<T extends (...args: any[]) => any>(callback: T, delay: number): (...args: Parameters<T>) => void;
1830
-
1831
- export declare function useDebouncedValue<T>(value: T, delay: number): T;
1832
-
1833
- export declare function useDisclosure(initialState?: boolean, callbacks?: {
1834
- onOpen?: () => void;
1835
- onClose?: () => void;
1836
- }): readonly [boolean, {
1837
- readonly open: () => void;
1838
- readonly close: () => void;
1839
- readonly toggle: () => void;
1840
- }];
1841
-
1842
- export declare function useDocumentTitle(title: string): void;
1843
-
1844
- export declare function useEventListener<K extends keyof HTMLElementEventMap, T extends HTMLElement = any>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): RefObject<T | null>;
1845
-
1846
- export declare function useFocusTrap(active?: boolean): (instance: HTMLElement | null) => void;
1847
-
1848
- export declare function useForm<T extends FieldValues = FieldValues>(schema: z.ZodType<T>, options?: Partial<UseFormProps<T>>): UseFormReturn<T, any, T>;
1849
-
1850
- export declare const useFormField: () => {
1851
- invalid: boolean;
1852
- isDirty: boolean;
1853
- isTouched: boolean;
1854
- isValidating: boolean;
1855
- error?: FieldError;
1856
- id: string;
1857
- name: string;
1858
- formItemId: string;
1859
- formDescriptionId: string;
1860
- formMessageId: string;
1861
- };
1862
-
1863
- export declare function useHotkey(keys: string | string[], handler: (event: KeyboardEvent) => void, options?: HotkeyOptions): RefObject<any>;
1864
-
1865
- export declare function useHover<T extends HTMLElement>(options?: UseHoverOptions): {
1866
- ref: React.RefObject<T | null>;
1867
- isHovering: boolean;
1868
- };
1869
-
1870
- declare type UseHoverOptions = {
1871
- onHoverStart?: (event: MouseEvent) => void;
1872
- onHoverEnd?: (event: MouseEvent) => void;
1873
- };
1874
-
1875
- export declare function useIsVisible<T extends HTMLElement>({ onVisible, root, rootMargin, threshold, }?: UseIsVisibleProps): UseIsVisibleReturn<T>;
1876
-
1877
- declare interface UseIsVisibleProps extends IntersectionObserverInit {
1878
- onVisible?: () => void;
1879
- }
1880
-
1881
- declare interface UseIsVisibleReturn<T> {
1882
- ref: RefObject<T | null>;
1883
- isVisible: boolean;
1884
- }
1885
-
1886
- export declare function useLocalStorage<T>(key: string): [T | undefined, (value: T) => void, () => void];
1887
-
1888
- export declare function useLocalStorage<T>(key: string, initialValue: T): [T, (value: T) => void, () => void];
1889
-
1890
- export declare const useMediaQuery: (query: string) => boolean;
1891
-
1892
- export declare function useMemoizedFn<T extends noop>(fn: T): T;
1893
-
1894
- export declare const useMutation: <TArgs extends any[], TReturn>(opts: UseMutationOptions<TArgs, TReturn>) => UseMutationReturn<TArgs, TReturn>;
1895
-
1896
- declare interface UseMutationOptions<TArgs extends any[], TReturn> {
1897
- fn: Mutation<TArgs, TReturn>;
1898
- onError?: (error: Error) => void;
1899
- onSuccess?: (data: TReturn) => void;
1900
- onFinish?: () => void;
1901
- }
1902
-
1903
- declare interface UseMutationReturn<TArgs extends any[], TReturn> {
1904
- mutate: Mutation<TArgs, TReturn>;
1905
- loading: boolean;
1906
- error: Error | null;
1907
- data: TReturn | null;
1908
- }
1909
-
1910
- export declare function useObject<T extends GenericObject_2>(): MaybeReturn<T>;
1911
-
1912
- export declare function useObject<T extends GenericObject_2>(initialValue: T): Return<T>;
1913
-
1914
- export declare function usePagination({ totalItems, pageSize, initialCurrentPage, onChange, }: usePaginationProps): {
1915
- next: () => void;
1916
- prev: () => void;
1917
- goTo: (page: number) => void;
1918
- currentPage: number;
1919
- maxPage: number;
1920
- isFirstPage: boolean;
1921
- isLastPage: boolean;
1922
- range: {
1923
- start: number;
1924
- end: number;
1925
- };
1926
- };
1927
-
1928
- export declare type usePaginationProps = {
1929
- /**
1930
- * Cantidad total de elementos
1931
- */
1932
- totalItems: number;
1933
- /**
1934
- * Cantidad de elementos por página
1935
- */
1936
- pageSize: number;
1937
- /**
1938
- * Pagina inicial
1939
- */
1940
- initialCurrentPage?: number;
1941
- /**
1942
- * Callback que se ejecuta cuando cambia la pagina
1943
- */
1944
- onChange?: (value: {
1945
- currentPage: number;
1946
- pageSize: number;
1947
- }) => void;
1948
- siblingCount?: number;
1949
- };
1950
-
1951
- export declare function usePortal(id: string): {
1952
- render: (children: ReactNode) => ReactPortal | null;
1953
- };
1954
-
1955
- export declare function usePreventCloseWindow({ shouldPrevent, message, }: UsePreventUnloadProps): void;
1956
-
1957
- declare interface UsePreventUnloadProps {
1958
- /**
1959
- * Propiedad que determina si la ventana se puede cerrar o no
1960
- */
1961
- shouldPrevent: boolean;
1962
- /**
1963
- * Mensaje que se va a mostrar al usuario antes de cerrar la ventana
1964
- * @deprecated ya no es soportado por los navegadores modernos
1965
- */
1966
- message?: string;
1967
- }
1968
-
1969
- export declare const useRangePagination: ({ siblingCount, ...paginationProps }: useRangePaginationProps) => {
1970
- paginationRange: (string | number)[];
1971
- next: () => void;
1972
- prev: () => void;
1973
- goTo: (page: number) => void;
1974
- currentPage: number;
1975
- maxPage: number;
1976
- isFirstPage: boolean;
1977
- isLastPage: boolean;
1978
- range: {
1979
- start: number;
1980
- end: number;
1981
- };
1982
- };
1983
-
1984
- export declare type useRangePaginationProps = {
1985
- /**
1986
- * Cantidad de elementos visibles al lado de la pagina actual
1987
- */
1988
- siblingCount?: number;
1989
- } & usePaginationProps;
1990
-
1991
- export declare function useSelection<T>(items: T[]): Return_2<T>;
1992
-
1993
- export declare function useStep<T = ReactNode>(steps: T[], amountSteps?: number): Return_3<T>;
1994
-
1995
- export declare const useTheme: () => {
1996
- theme: Theme;
1997
- };
1998
-
1999
- /**
2000
- * Hook que permite obtener y combinar las propiedades de un componente con las del tema.
2001
- *
2002
- * El orden de prioridad de las propiedades es:
2003
- * 1. Props pasadas directamente al componente
2004
- * 2. Props definidas en el ThemeProvider
2005
- * 3. Props por defecto del componente
2006
- */
2007
- export declare const useThemeProps: <TComponent extends keyof Theme, TProps>(componentName: TComponent, props: TProps, defaultProps?: Partial<TProps>) => TProps;
2008
-
2009
- export declare function useToastManager(): {
2010
- toasts: ToastOptions<any>[];
2011
- add: (<T extends any = any>(options: ToastManagerAddOptions_2<T>) => string) & ((options: ToastManagerAddOptions<any>) => any);
2012
- close: ((toastId?: string) => void) & ((id?: string) => any);
2013
- update: (<T extends any = any>(toastId: string, options: ToastManagerUpdateOptions<T>) => void) & ((id: string, options: Partial<ToastManagerAddOptions<any>>) => any);
2014
- promise: (<Value, T extends any = any>(promise: Promise<Value>, options: ToastManagerPromiseOptions<Value, T>) => Promise<Value>) & (<T>(promise: Promise<T>, options: {
2015
- loading: ToastManagerAddOptions<any>;
2016
- success: ToastManagerAddOptions<any> | ((data: T) => ToastManagerAddOptions<any>);
2017
- error: ToastManagerAddOptions<any> | ((error: Error) => ToastManagerAddOptions<any>);
2018
- }) => any);
2019
- };
2020
-
2021
- export declare function useToggle(initialValue?: boolean): Return_4;
2022
-
2023
- export declare type ValuesUnion<T extends Record<string, any>> = T[keyof T];
2024
-
2025
- declare type VariantProps_2 = {
2026
- color?: never;
2027
- variant?: TagVariant["variant"];
2028
- };
2029
-
2030
- export declare interface ViewProps {
2031
- value: Date;
2032
- onChange: (date: Date) => void;
2033
- }
2034
-
2035
- declare type WeekDaysProps = HTMLProps<HTMLDivElement>;
2036
-
2037
- export declare const weeksDays: string[];
2038
-
2039
- export { }
1
+ export * from './src/index'
2
+ export {}