@kumix/ui 0.1.3 → 0.2.1

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 (497) hide show
  1. package/README.md +115 -95
  2. package/dist/components/reui/alert.d.ts +12 -0
  3. package/dist/components/reui/alert.d.ts.map +1 -0
  4. package/dist/components/reui/alert.js +58 -0
  5. package/dist/components/reui/alert.js.map +1 -0
  6. package/dist/components/reui/autocomplete.d.ts +43 -0
  7. package/dist/components/reui/autocomplete.d.ts.map +1 -0
  8. package/dist/components/reui/autocomplete.js +165 -0
  9. package/dist/components/reui/autocomplete.js.map +1 -0
  10. package/dist/components/reui/badge.d.ts +17 -0
  11. package/dist/components/reui/badge.d.ts.map +1 -0
  12. package/dist/components/reui/badge.js +75 -0
  13. package/dist/components/reui/badge.js.map +1 -0
  14. package/dist/components/reui/data-grid/data-grid-column-filter.d.ts +17 -0
  15. package/dist/components/reui/data-grid/data-grid-column-filter.d.ts.map +1 -0
  16. package/dist/components/reui/data-grid/data-grid-column-filter.js +127 -0
  17. package/dist/components/reui/data-grid/data-grid-column-filter.js.map +1 -0
  18. package/dist/components/reui/data-grid/data-grid-column-header.d.ts +18 -0
  19. package/dist/components/reui/data-grid/data-grid-column-header.d.ts.map +1 -0
  20. package/dist/components/reui/data-grid/data-grid-column-header.js +228 -0
  21. package/dist/components/reui/data-grid/data-grid-column-header.js.map +1 -0
  22. package/dist/components/reui/data-grid/data-grid-column-visibility.d.ts +10 -0
  23. package/dist/components/reui/data-grid/data-grid-column-visibility.d.ts.map +1 -0
  24. package/dist/components/reui/data-grid/data-grid-column-visibility.js +28 -0
  25. package/dist/components/reui/data-grid/data-grid-column-visibility.js.map +1 -0
  26. package/dist/components/reui/data-grid/data-grid-pagination.d.ts +22 -0
  27. package/dist/components/reui/data-grid/data-grid-pagination.d.ts.map +1 -0
  28. package/dist/components/reui/data-grid/data-grid-pagination.js +144 -0
  29. package/dist/components/reui/data-grid/data-grid-pagination.js.map +1 -0
  30. package/dist/components/reui/data-grid/data-grid-scroll-area.d.ts +12 -0
  31. package/dist/components/reui/data-grid/data-grid-scroll-area.d.ts.map +1 -0
  32. package/dist/components/reui/data-grid/data-grid-scroll-area.js +289 -0
  33. package/dist/components/reui/data-grid/data-grid-scroll-area.js.map +1 -0
  34. package/dist/components/reui/data-grid/data-grid-table-dnd-rows.d.ts +14 -0
  35. package/dist/components/reui/data-grid/data-grid-table-dnd-rows.d.ts.map +1 -0
  36. package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js +166 -0
  37. package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js.map +1 -0
  38. package/dist/components/reui/data-grid/data-grid-table-dnd.d.ts +10 -0
  39. package/dist/components/reui/data-grid/data-grid-table-dnd.d.ts.map +1 -0
  40. package/dist/components/reui/data-grid/data-grid-table-dnd.js +171 -0
  41. package/dist/components/reui/data-grid/data-grid-table-dnd.js.map +1 -0
  42. package/dist/components/reui/data-grid/data-grid-table-virtual.d.ts +29 -0
  43. package/dist/components/reui/data-grid/data-grid-table-virtual.d.ts.map +1 -0
  44. package/dist/components/reui/data-grid/data-grid-table-virtual.js +269 -0
  45. package/dist/components/reui/data-grid/data-grid-table-virtual.js.map +1 -0
  46. package/dist/components/reui/data-grid/data-grid-table.d.ts +116 -0
  47. package/dist/components/reui/data-grid/data-grid-table.d.ts.map +1 -0
  48. package/dist/components/reui/data-grid/data-grid-table.js +864 -0
  49. package/dist/components/reui/data-grid/data-grid-table.js.map +1 -0
  50. package/dist/components/reui/data-grid/data-grid.d.ts +112 -0
  51. package/dist/components/reui/data-grid/data-grid.d.ts.map +1 -0
  52. package/dist/components/reui/data-grid/data-grid.js +134 -0
  53. package/dist/components/reui/data-grid/data-grid.js.map +1 -0
  54. package/dist/components/reui/date-selector.d.ts +131 -0
  55. package/dist/components/reui/date-selector.d.ts.map +1 -0
  56. package/dist/components/reui/date-selector.js +783 -0
  57. package/dist/components/reui/date-selector.js.map +1 -0
  58. package/dist/components/reui/event-calendar/event-calendar-agenda-view.d.ts +7 -0
  59. package/dist/components/reui/event-calendar/event-calendar-agenda-view.d.ts.map +1 -0
  60. package/dist/components/reui/event-calendar/event-calendar-agenda-view.js +108 -0
  61. package/dist/components/reui/event-calendar/event-calendar-agenda-view.js.map +1 -0
  62. package/dist/components/reui/event-calendar/event-calendar-content.d.ts +15 -0
  63. package/dist/components/reui/event-calendar/event-calendar-content.d.ts.map +1 -0
  64. package/dist/components/reui/event-calendar/event-calendar-content.js +44 -0
  65. package/dist/components/reui/event-calendar/event-calendar-content.js.map +1 -0
  66. package/dist/components/reui/event-calendar/event-calendar-dnd.d.ts +30 -0
  67. package/dist/components/reui/event-calendar/event-calendar-dnd.d.ts.map +1 -0
  68. package/dist/components/reui/event-calendar/event-calendar-dnd.js +581 -0
  69. package/dist/components/reui/event-calendar/event-calendar-dnd.js.map +1 -0
  70. package/dist/components/reui/event-calendar/event-calendar-event.d.ts +73 -0
  71. package/dist/components/reui/event-calendar/event-calendar-event.d.ts.map +1 -0
  72. package/dist/components/reui/event-calendar/event-calendar-event.js +299 -0
  73. package/dist/components/reui/event-calendar/event-calendar-event.js.map +1 -0
  74. package/dist/components/reui/event-calendar/event-calendar-i18n.d.ts +103 -0
  75. package/dist/components/reui/event-calendar/event-calendar-i18n.d.ts.map +1 -0
  76. package/dist/components/reui/event-calendar/event-calendar-i18n.js +141 -0
  77. package/dist/components/reui/event-calendar/event-calendar-i18n.js.map +1 -0
  78. package/dist/components/reui/event-calendar/event-calendar-lib.d.ts +111 -0
  79. package/dist/components/reui/event-calendar/event-calendar-lib.d.ts.map +1 -0
  80. package/dist/components/reui/event-calendar/event-calendar-lib.js +398 -0
  81. package/dist/components/reui/event-calendar/event-calendar-lib.js.map +1 -0
  82. package/dist/components/reui/event-calendar/event-calendar-month-view.d.ts +29 -0
  83. package/dist/components/reui/event-calendar/event-calendar-month-view.d.ts.map +1 -0
  84. package/dist/components/reui/event-calendar/event-calendar-month-view.js +530 -0
  85. package/dist/components/reui/event-calendar/event-calendar-month-view.js.map +1 -0
  86. package/dist/components/reui/event-calendar/event-calendar-nav.d.ts +71 -0
  87. package/dist/components/reui/event-calendar/event-calendar-nav.d.ts.map +1 -0
  88. package/dist/components/reui/event-calendar/event-calendar-nav.js +319 -0
  89. package/dist/components/reui/event-calendar/event-calendar-nav.js.map +1 -0
  90. package/dist/components/reui/event-calendar/event-calendar-recurrence.d.ts +32 -0
  91. package/dist/components/reui/event-calendar/event-calendar-recurrence.d.ts.map +1 -0
  92. package/dist/components/reui/event-calendar/event-calendar-recurrence.js +300 -0
  93. package/dist/components/reui/event-calendar/event-calendar-recurrence.js.map +1 -0
  94. package/dist/components/reui/event-calendar/event-calendar-resource-view.d.ts +14 -0
  95. package/dist/components/reui/event-calendar/event-calendar-resource-view.d.ts.map +1 -0
  96. package/dist/components/reui/event-calendar/event-calendar-resource-view.js +355 -0
  97. package/dist/components/reui/event-calendar/event-calendar-resource-view.js.map +1 -0
  98. package/dist/components/reui/event-calendar/event-calendar-time-grid.d.ts +35 -0
  99. package/dist/components/reui/event-calendar/event-calendar-time-grid.d.ts.map +1 -0
  100. package/dist/components/reui/event-calendar/event-calendar-time-grid.js +651 -0
  101. package/dist/components/reui/event-calendar/event-calendar-time-grid.js.map +1 -0
  102. package/dist/components/reui/event-calendar/event-calendar-types.d.ts +236 -0
  103. package/dist/components/reui/event-calendar/event-calendar-types.d.ts.map +1 -0
  104. package/dist/components/reui/event-calendar/event-calendar-types.js +2 -0
  105. package/dist/components/reui/event-calendar/event-calendar.d.ts +561 -0
  106. package/dist/components/reui/event-calendar/event-calendar.d.ts.map +1 -0
  107. package/dist/components/reui/event-calendar/event-calendar.js +817 -0
  108. package/dist/components/reui/event-calendar/event-calendar.js.map +1 -0
  109. package/dist/components/reui/filters.d.ts +176 -0
  110. package/dist/components/reui/filters.d.ts.map +1 -0
  111. package/dist/components/reui/filters.js +1216 -0
  112. package/dist/components/reui/filters.js.map +1 -0
  113. package/dist/components/reui/frame.d.ts +32 -0
  114. package/dist/components/reui/frame.d.ts.map +1 -0
  115. package/dist/components/reui/frame.js +115 -0
  116. package/dist/components/reui/frame.js.map +1 -0
  117. package/dist/components/reui/gantt/gantt-bar.d.ts +44 -0
  118. package/dist/components/reui/gantt/gantt-bar.d.ts.map +1 -0
  119. package/dist/components/reui/gantt/gantt-bar.js +229 -0
  120. package/dist/components/reui/gantt/gantt-bar.js.map +1 -0
  121. package/dist/components/reui/gantt/gantt-dnd.d.ts +36 -0
  122. package/dist/components/reui/gantt/gantt-dnd.d.ts.map +1 -0
  123. package/dist/components/reui/gantt/gantt-dnd.js +615 -0
  124. package/dist/components/reui/gantt/gantt-dnd.js.map +1 -0
  125. package/dist/components/reui/gantt/gantt-i18n.d.ts +91 -0
  126. package/dist/components/reui/gantt/gantt-i18n.d.ts.map +1 -0
  127. package/dist/components/reui/gantt/gantt-i18n.js +131 -0
  128. package/dist/components/reui/gantt/gantt-i18n.js.map +1 -0
  129. package/dist/components/reui/gantt/gantt-lib.d.ts +123 -0
  130. package/dist/components/reui/gantt/gantt-lib.d.ts.map +1 -0
  131. package/dist/components/reui/gantt/gantt-lib.js +354 -0
  132. package/dist/components/reui/gantt/gantt-lib.js.map +1 -0
  133. package/dist/components/reui/gantt/gantt-nav.d.ts +60 -0
  134. package/dist/components/reui/gantt/gantt-nav.d.ts.map +1 -0
  135. package/dist/components/reui/gantt/gantt-nav.js +266 -0
  136. package/dist/components/reui/gantt/gantt-nav.js.map +1 -0
  137. package/dist/components/reui/gantt/gantt-recurrence.d.ts +37 -0
  138. package/dist/components/reui/gantt/gantt-recurrence.d.ts.map +1 -0
  139. package/dist/components/reui/gantt/gantt-recurrence.js +230 -0
  140. package/dist/components/reui/gantt/gantt-recurrence.js.map +1 -0
  141. package/dist/components/reui/gantt/gantt-types.d.ts +251 -0
  142. package/dist/components/reui/gantt/gantt-types.d.ts.map +1 -0
  143. package/dist/components/reui/gantt/gantt-types.js +2 -0
  144. package/dist/components/reui/gantt/gantt-view.d.ts +10 -0
  145. package/dist/components/reui/gantt/gantt-view.d.ts.map +1 -0
  146. package/dist/components/reui/gantt/gantt-view.js +2193 -0
  147. package/dist/components/reui/gantt/gantt-view.js.map +1 -0
  148. package/dist/components/reui/gantt/gantt.d.ts +602 -0
  149. package/dist/components/reui/gantt/gantt.d.ts.map +1 -0
  150. package/dist/components/reui/gantt/gantt.js +796 -0
  151. package/dist/components/reui/gantt/gantt.js.map +1 -0
  152. package/dist/components/reui/icon-stack.d.ts +7 -0
  153. package/dist/components/reui/icon-stack.d.ts.map +1 -0
  154. package/dist/components/reui/icon-stack.js +76 -0
  155. package/dist/components/reui/icon-stack.js.map +1 -0
  156. package/dist/components/reui/kanban.d.ts +70 -0
  157. package/dist/components/reui/kanban.d.ts.map +1 -0
  158. package/dist/components/reui/kanban.js +519 -0
  159. package/dist/components/reui/kanban.js.map +1 -0
  160. package/dist/components/reui/number-field.d.ts +29 -0
  161. package/dist/components/reui/number-field.d.ts.map +1 -0
  162. package/dist/components/reui/number-field.js +127 -0
  163. package/dist/components/reui/number-field.js.map +1 -0
  164. package/dist/components/reui/phone-input.d.ts +13 -0
  165. package/dist/components/reui/phone-input.d.ts.map +1 -0
  166. package/dist/components/reui/phone-input.js +126 -0
  167. package/dist/components/reui/phone-input.js.map +1 -0
  168. package/dist/components/reui/rating.d.ts +34 -0
  169. package/dist/components/reui/rating.d.ts.map +1 -0
  170. package/dist/components/reui/rating.js +94 -0
  171. package/dist/components/reui/rating.js.map +1 -0
  172. package/dist/components/reui/scrollspy.d.ts +17 -0
  173. package/dist/components/reui/scrollspy.d.ts.map +1 -0
  174. package/dist/components/reui/scrollspy.js +130 -0
  175. package/dist/components/reui/scrollspy.js.map +1 -0
  176. package/dist/components/reui/sortable.d.ts +48 -0
  177. package/dist/components/reui/sortable.d.ts.map +1 -0
  178. package/dist/components/reui/sortable.js +230 -0
  179. package/dist/components/reui/sortable.js.map +1 -0
  180. package/dist/components/reui/stepper.d.ts +63 -0
  181. package/dist/components/reui/stepper.d.ts.map +1 -0
  182. package/dist/components/reui/stepper.js +234 -0
  183. package/dist/components/reui/stepper.js.map +1 -0
  184. package/dist/components/reui/timeline.d.ts +24 -0
  185. package/dist/components/reui/timeline.d.ts.map +1 -0
  186. package/dist/components/reui/timeline.js +123 -0
  187. package/dist/components/reui/timeline.js.map +1 -0
  188. package/dist/components/reui/tree.d.ts +23 -0
  189. package/dist/components/reui/tree.d.ts.map +1 -0
  190. package/dist/components/reui/tree.js +115 -0
  191. package/dist/components/reui/tree.js.map +1 -0
  192. package/dist/components/ui/accordion.d.ts +9 -0
  193. package/dist/components/ui/accordion.d.ts.map +1 -0
  194. package/dist/components/ui/accordion.js +56 -0
  195. package/dist/components/ui/accordion.js.map +1 -0
  196. package/dist/components/ui/alert-dialog.d.ts +21 -0
  197. package/dist/components/ui/alert-dialog.d.ts.map +1 -0
  198. package/dist/components/ui/alert-dialog.js +96 -0
  199. package/dist/components/ui/alert-dialog.js.map +1 -0
  200. package/dist/components/ui/alert.d.ts +13 -0
  201. package/dist/components/ui/alert.d.ts.map +1 -0
  202. package/dist/components/ui/alert.js +45 -0
  203. package/dist/components/ui/alert.js.map +1 -0
  204. package/dist/components/ui/aspect-ratio.d.ts +8 -0
  205. package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
  206. package/dist/components/ui/aspect-ratio.js +16 -0
  207. package/dist/components/ui/aspect-ratio.js.map +1 -0
  208. package/dist/components/ui/attachment.d.ts +26 -0
  209. package/dist/components/ui/attachment.d.ts.map +1 -0
  210. package/dist/components/ui/attachment.js +106 -0
  211. package/dist/components/ui/attachment.js.map +1 -0
  212. package/dist/components/ui/avatar.d.ts +14 -0
  213. package/dist/components/ui/avatar.d.ts.map +1 -0
  214. package/dist/components/ui/avatar.js +52 -0
  215. package/dist/components/ui/avatar.js.map +1 -0
  216. package/dist/components/ui/badge.d.ts +10 -0
  217. package/dist/components/ui/badge.d.ts.map +1 -0
  218. package/dist/components/ui/badge.js +32 -0
  219. package/dist/components/ui/badge.js.map +1 -0
  220. package/dist/components/ui/breadcrumb.d.ts +13 -0
  221. package/dist/components/ui/breadcrumb.d.ts.map +1 -0
  222. package/dist/components/ui/breadcrumb.js +72 -0
  223. package/dist/components/ui/breadcrumb.js.map +1 -0
  224. package/dist/components/ui/bubble.d.ts +19 -0
  225. package/dist/components/ui/bubble.d.ts.map +1 -0
  226. package/dist/components/ui/bubble.js +75 -0
  227. package/dist/components/ui/bubble.js.map +1 -0
  228. package/dist/components/ui/button-group.d.ts +14 -0
  229. package/dist/components/ui/button-group.d.ts.map +1 -0
  230. package/dist/components/ui/button-group.js +44 -0
  231. package/dist/components/ui/button-group.js.map +1 -0
  232. package/dist/components/ui/button.d.ts +11 -0
  233. package/dist/components/ui/button.d.ts.map +1 -0
  234. package/dist/components/ui/button.js +47 -0
  235. package/dist/components/ui/button.js.map +1 -0
  236. package/dist/components/ui/calendar.d.ts +13 -0
  237. package/dist/components/ui/calendar.d.ts.map +1 -0
  238. package/dist/components/ui/calendar.js +110 -0
  239. package/dist/components/ui/calendar.js.map +1 -0
  240. package/dist/components/ui/card.d.ts +14 -0
  241. package/dist/components/ui/card.d.ts.map +1 -0
  242. package/dist/components/ui/card.js +58 -0
  243. package/dist/components/ui/card.js.map +1 -0
  244. package/dist/components/ui/carousel.d.ts +31 -0
  245. package/dist/components/ui/carousel.d.ts.map +1 -0
  246. package/dist/components/ui/carousel.js +135 -0
  247. package/dist/components/ui/carousel.js.map +1 -0
  248. package/dist/components/ui/chart.d.ts +47 -0
  249. package/dist/components/ui/chart.d.ts.map +1 -0
  250. package/dist/components/ui/chart.js +151 -0
  251. package/dist/components/ui/chart.js.map +1 -0
  252. package/dist/components/ui/checkbox.d.ts +6 -0
  253. package/dist/components/ui/checkbox.d.ts.map +1 -0
  254. package/dist/components/ui/checkbox.js +22 -0
  255. package/dist/components/ui/checkbox.js.map +1 -0
  256. package/dist/components/ui/collapsible.d.ts +8 -0
  257. package/dist/components/ui/collapsible.d.ts.map +1 -0
  258. package/dist/components/ui/collapsible.js +26 -0
  259. package/dist/components/ui/collapsible.js.map +1 -0
  260. package/dist/components/ui/combobox.d.ts +27 -0
  261. package/dist/components/ui/combobox.d.ts.map +1 -0
  262. package/dist/components/ui/combobox.js +164 -0
  263. package/dist/components/ui/combobox.js.map +1 -0
  264. package/dist/components/ui/command.d.ts +22 -0
  265. package/dist/components/ui/command.d.ts.map +1 -0
  266. package/dist/components/ui/command.js +89 -0
  267. package/dist/components/ui/command.js.map +1 -0
  268. package/dist/components/ui/context-menu.d.ts +32 -0
  269. package/dist/components/ui/context-menu.d.ts.map +1 -0
  270. package/dist/components/ui/context-menu.js +134 -0
  271. package/dist/components/ui/context-menu.js.map +1 -0
  272. package/dist/components/ui/dialog.d.ts +20 -0
  273. package/dist/components/ui/dialog.d.ts.map +1 -0
  274. package/dist/components/ui/dialog.js +93 -0
  275. package/dist/components/ui/dialog.js.map +1 -0
  276. package/dist/components/ui/direction.d.ts +2 -0
  277. package/dist/components/ui/direction.js +3 -0
  278. package/dist/components/ui/drawer.d.ts +19 -0
  279. package/dist/components/ui/drawer.d.ts.map +1 -0
  280. package/dist/components/ui/drawer.js +125 -0
  281. package/dist/components/ui/drawer.js.map +1 -0
  282. package/dist/components/ui/dropdown-menu.d.ts +32 -0
  283. package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
  284. package/dist/components/ui/dropdown-menu.js +138 -0
  285. package/dist/components/ui/dropdown-menu.js.map +1 -0
  286. package/dist/components/ui/empty.d.ts +15 -0
  287. package/dist/components/ui/empty.d.ts.map +1 -0
  288. package/dist/components/ui/empty.js +62 -0
  289. package/dist/components/ui/empty.js.map +1 -0
  290. package/dist/components/ui/field.d.ts +28 -0
  291. package/dist/components/ui/field.d.ts.map +1 -0
  292. package/dist/components/ui/field.js +112 -0
  293. package/dist/components/ui/field.js.map +1 -0
  294. package/dist/components/ui/hover-card.d.ts +8 -0
  295. package/dist/components/ui/hover-card.d.ts.map +1 -0
  296. package/dist/components/ui/hover-card.js +38 -0
  297. package/dist/components/ui/hover-card.js.map +1 -0
  298. package/dist/components/ui/input-group.d.ts +21 -0
  299. package/dist/components/ui/input-group.d.ts.map +1 -0
  300. package/dist/components/ui/input-group.js +80 -0
  301. package/dist/components/ui/input-group.js.map +1 -0
  302. package/dist/components/ui/input-otp.d.ts +14 -0
  303. package/dist/components/ui/input-otp.d.ts.map +1 -0
  304. package/dist/components/ui/input-otp.js +49 -0
  305. package/dist/components/ui/input-otp.js.map +1 -0
  306. package/dist/components/ui/input.d.ts +6 -0
  307. package/dist/components/ui/input.d.ts.map +1 -0
  308. package/dist/components/ui/input.js +17 -0
  309. package/dist/components/ui/input.js.map +1 -0
  310. package/dist/components/ui/item.d.ts +25 -0
  311. package/dist/components/ui/item.d.ts.map +1 -0
  312. package/dist/components/ui/item.js +123 -0
  313. package/dist/components/ui/item.js.map +1 -0
  314. package/dist/components/ui/kbd.d.ts +7 -0
  315. package/dist/components/ui/kbd.d.ts.map +1 -0
  316. package/dist/components/ui/kbd.js +22 -0
  317. package/dist/components/ui/kbd.js.map +1 -0
  318. package/dist/components/ui/label.d.ts +6 -0
  319. package/dist/components/ui/label.d.ts.map +1 -0
  320. package/dist/components/ui/label.js +15 -0
  321. package/dist/components/ui/label.js.map +1 -0
  322. package/dist/components/ui/marker.d.ts +13 -0
  323. package/dist/components/ui/marker.d.ts.map +1 -0
  324. package/dist/components/ui/marker.js +45 -0
  325. package/dist/components/ui/marker.js.map +1 -0
  326. package/dist/components/ui/menubar.d.ts +32 -0
  327. package/dist/components/ui/menubar.d.ts.map +1 -0
  328. package/dist/components/ui/menubar.js +137 -0
  329. package/dist/components/ui/menubar.js.map +1 -0
  330. package/dist/components/ui/message-scroller.d.ts +13 -0
  331. package/dist/components/ui/message-scroller.d.ts.map +1 -0
  332. package/dist/components/ui/message-scroller.js +62 -0
  333. package/dist/components/ui/message-scroller.js.map +1 -0
  334. package/dist/components/ui/message.d.ts +13 -0
  335. package/dist/components/ui/message.d.ts.map +1 -0
  336. package/dist/components/ui/message.js +51 -0
  337. package/dist/components/ui/message.js.map +1 -0
  338. package/dist/components/ui/native-select.d.ts +11 -0
  339. package/dist/components/ui/native-select.d.ts.map +1 -0
  340. package/dist/components/ui/native-select.js +40 -0
  341. package/dist/components/ui/native-select.js.map +1 -0
  342. package/dist/components/ui/navigation-menu.d.ts +15 -0
  343. package/dist/components/ui/navigation-menu.d.ts.map +1 -0
  344. package/dist/components/ui/navigation-menu.js +85 -0
  345. package/dist/components/ui/navigation-menu.js.map +1 -0
  346. package/dist/components/ui/pagination.d.ts +20 -0
  347. package/dist/components/ui/pagination.d.ts.map +1 -0
  348. package/dist/components/ui/pagination.js +81 -0
  349. package/dist/components/ui/pagination.js.map +1 -0
  350. package/dist/components/ui/popover.d.ts +12 -0
  351. package/dist/components/ui/popover.d.ts.map +1 -0
  352. package/dist/components/ui/popover.js +56 -0
  353. package/dist/components/ui/popover.js.map +1 -0
  354. package/dist/components/ui/progress.d.ts +10 -0
  355. package/dist/components/ui/progress.d.ts.map +1 -0
  356. package/dist/components/ui/progress.js +46 -0
  357. package/dist/components/ui/progress.js.map +1 -0
  358. package/dist/components/ui/radio-group.d.ts +8 -0
  359. package/dist/components/ui/radio-group.d.ts.map +1 -0
  360. package/dist/components/ui/radio-group.js +29 -0
  361. package/dist/components/ui/radio-group.js.map +1 -0
  362. package/dist/components/ui/resizable.d.ts +10 -0
  363. package/dist/components/ui/resizable.d.ts.map +1 -0
  364. package/dist/components/ui/resizable.js +30 -0
  365. package/dist/components/ui/resizable.js.map +1 -0
  366. package/dist/components/ui/scroll-area.d.ts +7 -0
  367. package/dist/components/ui/scroll-area.d.ts.map +1 -0
  368. package/dist/components/ui/scroll-area.js +38 -0
  369. package/dist/components/ui/scroll-area.js.map +1 -0
  370. package/dist/components/ui/select.d.ts +18 -0
  371. package/dist/components/ui/select.d.ts.map +1 -0
  372. package/dist/components/ui/select.js +99 -0
  373. package/dist/components/ui/select.js.map +1 -0
  374. package/dist/components/ui/separator.d.ts +6 -0
  375. package/dist/components/ui/separator.d.ts.map +1 -0
  376. package/dist/components/ui/separator.js +17 -0
  377. package/dist/components/ui/separator.js.map +1 -0
  378. package/dist/components/ui/sheet.d.ts +17 -0
  379. package/dist/components/ui/sheet.d.ts.map +1 -0
  380. package/dist/components/ui/sheet.js +90 -0
  381. package/dist/components/ui/sheet.js.map +1 -0
  382. package/dist/components/ui/sidebar.d.ts +66 -0
  383. package/dist/components/ui/sidebar.d.ts.map +1 -0
  384. package/dist/components/ui/sidebar.js +383 -0
  385. package/dist/components/ui/sidebar.js.map +1 -0
  386. package/dist/components/ui/skeleton.d.ts +6 -0
  387. package/dist/components/ui/skeleton.d.ts.map +1 -0
  388. package/dist/components/ui/skeleton.js +15 -0
  389. package/dist/components/ui/skeleton.js.map +1 -0
  390. package/dist/components/ui/slider.d.ts +6 -0
  391. package/dist/components/ui/slider.d.ts.map +1 -0
  392. package/dist/components/ui/slider.js +36 -0
  393. package/dist/components/ui/slider.js.map +1 -0
  394. package/dist/components/ui/sonner.d.ts +7 -0
  395. package/dist/components/ui/sonner.d.ts.map +1 -0
  396. package/dist/components/ui/sonner.js +32 -0
  397. package/dist/components/ui/sonner.js.map +1 -0
  398. package/dist/components/ui/spinner.d.ts +6 -0
  399. package/dist/components/ui/spinner.d.ts.map +1 -0
  400. package/dist/components/ui/spinner.js +18 -0
  401. package/dist/components/ui/spinner.js.map +1 -0
  402. package/dist/components/ui/switch.d.ts +8 -0
  403. package/dist/components/ui/switch.d.ts.map +1 -0
  404. package/dist/components/ui/switch.js +21 -0
  405. package/dist/components/ui/switch.js.map +1 -0
  406. package/dist/components/ui/table.d.ts +13 -0
  407. package/dist/components/ui/table.d.ts.map +1 -0
  408. package/dist/components/ui/table.js +68 -0
  409. package/dist/components/ui/table.js.map +1 -0
  410. package/dist/components/ui/tabs.d.ts +13 -0
  411. package/dist/components/ui/tabs.d.ts.map +1 -0
  412. package/dist/components/ui/tabs.js +47 -0
  413. package/dist/components/ui/tabs.js.map +1 -0
  414. package/dist/components/ui/textarea.d.ts +6 -0
  415. package/dist/components/ui/textarea.d.ts.map +1 -0
  416. package/dist/components/ui/textarea.js +15 -0
  417. package/dist/components/ui/textarea.js.map +1 -0
  418. package/dist/components/ui/toggle-group.d.ts +14 -0
  419. package/dist/components/ui/toggle-group.d.ts.map +1 -0
  420. package/dist/components/ui/toggle-group.js +54 -0
  421. package/dist/components/ui/toggle-group.js.map +1 -0
  422. package/dist/components/ui/toggle.d.ts +11 -0
  423. package/dist/components/ui/toggle.d.ts.map +1 -0
  424. package/dist/components/ui/toggle.js +38 -0
  425. package/dist/components/ui/toggle.js.map +1 -0
  426. package/dist/components/ui/tooltip.d.ts +9 -0
  427. package/dist/components/ui/tooltip.d.ts.map +1 -0
  428. package/dist/components/ui/tooltip.js +43 -0
  429. package/dist/components/ui/tooltip.js.map +1 -0
  430. package/dist/hooks/use-body-classes.d.ts +27 -0
  431. package/dist/hooks/use-body-classes.d.ts.map +1 -0
  432. package/dist/hooks/use-body-classes.js +52 -0
  433. package/dist/hooks/use-body-classes.js.map +1 -0
  434. package/dist/hooks/use-copy-to-clipboard.d.ts +43 -0
  435. package/dist/hooks/use-copy-to-clipboard.d.ts.map +1 -0
  436. package/dist/hooks/use-copy-to-clipboard.js +69 -0
  437. package/dist/hooks/use-copy-to-clipboard.js.map +1 -0
  438. package/dist/hooks/use-file-upload.d.ts +49 -0
  439. package/dist/hooks/use-file-upload.d.ts.map +1 -0
  440. package/dist/hooks/use-file-upload.js +227 -0
  441. package/dist/hooks/use-file-upload.js.map +1 -0
  442. package/dist/hooks/use-hydrated.d.ts +37 -0
  443. package/dist/hooks/use-hydrated.d.ts.map +1 -0
  444. package/dist/hooks/use-hydrated.js +50 -0
  445. package/dist/hooks/use-hydrated.js.map +1 -0
  446. package/dist/hooks/use-intersection-observer.d.ts +55 -0
  447. package/dist/hooks/use-intersection-observer.d.ts.map +1 -0
  448. package/dist/hooks/use-intersection-observer.js +144 -0
  449. package/dist/hooks/use-intersection-observer.js.map +1 -0
  450. package/dist/hooks/use-is-mac.d.ts +28 -0
  451. package/dist/hooks/use-is-mac.d.ts.map +1 -0
  452. package/dist/hooks/use-is-mac.js +38 -0
  453. package/dist/hooks/use-is-mac.js.map +1 -0
  454. package/dist/hooks/use-media-query.d.ts +44 -0
  455. package/dist/hooks/use-media-query.d.ts.map +1 -0
  456. package/dist/hooks/use-media-query.js +58 -0
  457. package/dist/hooks/use-media-query.js.map +1 -0
  458. package/dist/hooks/use-meta-color.d.ts +78 -0
  459. package/dist/hooks/use-meta-color.d.ts.map +1 -0
  460. package/dist/hooks/use-meta-color.js +138 -0
  461. package/dist/hooks/use-meta-color.js.map +1 -0
  462. package/dist/hooks/use-mobile.d.ts +5 -0
  463. package/dist/hooks/use-mobile.d.ts.map +1 -0
  464. package/dist/hooks/use-mobile.js +21 -0
  465. package/dist/hooks/use-mobile.js.map +1 -0
  466. package/dist/hooks/use-mutation-observer.d.ts +61 -0
  467. package/dist/hooks/use-mutation-observer.d.ts.map +1 -0
  468. package/dist/hooks/use-mutation-observer.js +96 -0
  469. package/dist/hooks/use-mutation-observer.js.map +1 -0
  470. package/dist/hooks/use-scroll-position.d.ts +76 -0
  471. package/dist/hooks/use-scroll-position.d.ts.map +1 -0
  472. package/dist/hooks/use-scroll-position.js +97 -0
  473. package/dist/hooks/use-scroll-position.js.map +1 -0
  474. package/dist/hooks/use-slider-input.d.ts +94 -0
  475. package/dist/hooks/use-slider-input.d.ts.map +1 -0
  476. package/dist/hooks/use-slider-input.js +116 -0
  477. package/dist/hooks/use-slider-input.js.map +1 -0
  478. package/dist/hooks/use-viewport.d.ts +72 -0
  479. package/dist/hooks/use-viewport.d.ts.map +1 -0
  480. package/dist/hooks/use-viewport.js +91 -0
  481. package/dist/hooks/use-viewport.js.map +1 -0
  482. package/dist/style.css +0 -247
  483. package/dist/theme.css +244 -0
  484. package/dist/theme.css.d.ts +3 -0
  485. package/package.json +42 -40
  486. package/dist/hooks.d.ts +0 -957
  487. package/dist/hooks.d.ts.map +0 -1
  488. package/dist/hooks.js +0 -1391
  489. package/dist/hooks.js.map +0 -1
  490. package/dist/index.d.ts +0 -1993
  491. package/dist/index.d.ts.map +0 -1
  492. package/dist/index.js +0 -10647
  493. package/dist/index.js.map +0 -1
  494. package/dist/source.css +0 -1
  495. package/dist/source.css.d.ts +0 -3
  496. package/dist/use-is-mobile-Dln4-L1O.js +0 -210
  497. package/dist/use-is-mobile-Dln4-L1O.js.map +0 -1
package/dist/hooks.d.ts DELETED
@@ -1,957 +0,0 @@
1
- import * as React$1 from "react";
2
- import React, { ChangeEvent, ComponentType, DragEvent, InputHTMLAttributes, RefObject, SVGProps } from "react";
3
- import { META_THEME_COLORS } from "@kumix/utils";
4
- //#region src/hooks/use-body-classes.d.ts
5
- /**
6
- * Body class management hook for React components.
7
- */
8
- /**
9
- * Adds classes to `document.body` while the component is mounted.
10
- * Shared classes are reference-counted, so one component unmounting does not
11
- * remove a class that another mounted component still owns.
12
- *
13
- * @param className - Space-separated string of CSS class names to apply to body
14
- *
15
- * @example
16
- * ```tsx
17
- * // Single class
18
- * useBodyClasses('dark-theme');
19
- *
20
- * // Multiple classes
21
- * useBodyClasses('modal-open overflow-hidden');
22
- *
23
- * // Conditional classes
24
- * useBodyClasses(isModalOpen ? 'modal-open' : '');
25
- * ```
26
- */
27
- declare const useBodyClasses: (className: string) => void;
28
- //#endregion
29
- //#region src/hooks/use-copy-to-clipboard.d.ts
30
- /**
31
- * Clipboard copy functionality hook for React components.
32
- */
33
- /**
34
- * Configuration options for the copy to clipboard hook
35
- */
36
- interface UseCopyToClipboardOptions {
37
- /** Duration in milliseconds to show the copied state (default: 2000ms) */
38
- timeout?: number;
39
- /** Callback function executed after successful copy operation */
40
- onCopy?: () => void;
41
- }
42
- /**
43
- * Copies text to the clipboard and exposes temporary copied state.
44
- *
45
- * @param options - Configuration options for the hook
46
- * @returns Object containing copied state and an async copy function. The copy
47
- * function resolves to `true` when text is copied and `false` otherwise.
48
- *
49
- * @example
50
- * ```tsx
51
- * const { copied, copy } = useCopyToClipboard({
52
- * timeout: 3000,
53
- * onCopy: () => toast.success('Copied to clipboard!')
54
- * });
55
- *
56
- * return (
57
- * <button onClick={() => copy('Hello World')}>
58
- * {copied ? 'Copied!' : 'Copy Text'}
59
- * </button>
60
- * );
61
- * ```
62
- */
63
- declare function useCopyToClipboard({ timeout, onCopy }?: UseCopyToClipboardOptions): {
64
- /** Whether text was recently copied (true for timeout duration) */
65
- copied: boolean;
66
- /** Function to copy text to clipboard */
67
- copy: (value: string) => Promise<boolean>;
68
- };
69
- //#endregion
70
- //#region src/hooks/use-file-upload.d.ts
71
- /**
72
- * Metadata structure for uploaded files
73
- */
74
- type FileMetadata = {
75
- /** The name of the file */
76
- name: string;
77
- /** The size of the file in bytes */
78
- size: number;
79
- /** The MIME type of the file */
80
- type: string;
81
- /** The URL where the file can be accessed */
82
- url: string;
83
- /** Unique identifier for the file */
84
- id: string;
85
- };
86
- /**
87
- * File object with preview capabilities
88
- */
89
- type FileWithPreview = {
90
- /** The actual file object or metadata */
91
- file: File | FileMetadata;
92
- /** Unique identifier for the file */
93
- id: string;
94
- /** Optional preview URL for the file (typically for images) */
95
- preview?: string;
96
- };
97
- /**
98
- * Configuration options for the file upload hook
99
- */
100
- type FileUploadOptions = {
101
- /** Maximum number of files allowed (only used when multiple is true, defaults to Infinity) */
102
- maxFiles?: number;
103
- /** Maximum file size in bytes (defaults to Infinity) */
104
- maxSize?: number;
105
- /** Accepted file types (MIME types or extensions, defaults to '*') */
106
- accept?: string;
107
- /** Whether multiple files can be selected (defaults to false) */
108
- multiple?: boolean;
109
- /** Initial files to populate the upload state */
110
- initialFiles?: FileMetadata[];
111
- /** Callback function executed when files change */
112
- onFilesChange?: (files: FileWithPreview[]) => void;
113
- /** Callback function executed when new files are added */
114
- onFilesAdded?: (addedFiles: FileWithPreview[]) => void;
115
- /** Callback function executed when validation errors occur */
116
- onError?: (errors: string[]) => void;
117
- };
118
- /**
119
- * Current state of the file upload component
120
- */
121
- type FileUploadState = {
122
- /** Array of files currently selected/uploaded */
123
- files: FileWithPreview[];
124
- /** Whether the user is currently dragging files over the drop zone */
125
- isDragging: boolean;
126
- /** Array of validation error messages */
127
- errors: string[];
128
- };
129
- /**
130
- * Actions available for file upload management
131
- */
132
- type FileUploadActions = {
133
- /** Add new files to the upload state */
134
- addFiles: (files: FileList | File[]) => void;
135
- /** Remove a specific file by its ID */
136
- removeFile: (id: string) => void;
137
- /** Clear all files from the upload state */
138
- clearFiles: () => void;
139
- /** Clear all error messages */
140
- clearErrors: () => void;
141
- /** Handle drag enter event for drop zone */
142
- handleDragEnter: (e: DragEvent<HTMLElement>) => void;
143
- /** Handle drag leave event for drop zone */
144
- handleDragLeave: (e: DragEvent<HTMLElement>) => void;
145
- /** Handle drag over event for drop zone */
146
- handleDragOver: (e: DragEvent<HTMLElement>) => void;
147
- /** Handle drop event for drop zone */
148
- handleDrop: (e: DragEvent<HTMLElement>) => void;
149
- /** Handle file input change event */
150
- handleFileChange: (e: ChangeEvent<HTMLInputElement>) => void;
151
- /** Programmatically open the file dialog */
152
- openFileDialog: () => void;
153
- /** Get props for the file input element */
154
- getInputProps: (props?: InputHTMLAttributes<HTMLInputElement>) => InputHTMLAttributes<HTMLInputElement> & {
155
- ref: React.Ref<HTMLInputElement>;
156
- };
157
- };
158
- /**
159
- * Hook for comprehensive file upload functionality with drag & drop support
160
- *
161
- * Features:
162
- * - Single and multiple file upload support
163
- * - Drag and drop functionality
164
- * - File validation (size, type, count)
165
- * - Preview generation for images
166
- * - Error handling and state management
167
- * - Duplicate file detection
168
- * - Memory cleanup for object URLs
169
- *
170
- * @param options - Configuration options for the file upload hook
171
- * @returns Tuple containing current state and available actions
172
- *
173
- * @example
174
- * ```tsx
175
- * const [state, actions] = useFileUpload({
176
- * maxFiles: 5,
177
- * maxSize: 10 * 1024 * 1024, // 10MB
178
- * accept: 'image/*',
179
- * multiple: true,
180
- * onFilesChange: (files) => console.log('Files changed:', files),
181
- * onFilesAdded: (newFiles) => console.log('New files added:', newFiles)
182
- * });
183
- *
184
- * return (
185
- * <div
186
- * onDragEnter={actions.handleDragEnter}
187
- * onDragLeave={actions.handleDragLeave}
188
- * onDragOver={actions.handleDragOver}
189
- * onDrop={actions.handleDrop}
190
- * >
191
- * <input {...actions.getInputProps()} />
192
- * <button onClick={actions.openFileDialog}>
193
- * Upload Files
194
- * </button>
195
- * {state.files.map(file => (
196
- * <div key={file.id}>
197
- * {file.file.name}
198
- * <button onClick={() => actions.removeFile(file.id)}>
199
- * Remove
200
- * </button>
201
- * </div>
202
- * ))}
203
- * </div>
204
- * );
205
- * ```
206
- */
207
- declare const useFileUpload: (options?: FileUploadOptions) => [FileUploadState, FileUploadActions];
208
- /**
209
- * Helper function to format bytes to human-readable format
210
- *
211
- * @param bytes - The number of bytes to format
212
- * @param decimals - Number of decimal places to show (default: 2)
213
- * @returns Formatted string with appropriate unit (e.g., "1.5 MB")
214
- *
215
- * @example
216
- * ```tsx
217
- * formatBytes(1024); // "1 KB"
218
- * formatBytes(1536, 1); // "1.5 KB"
219
- * formatBytes(1048576); // "1 MB"
220
- * ```
221
- */
222
- declare const formatBytes: (bytes: number, decimals?: number) => string;
223
- //#endregion
224
- //#region src/hooks/use-hydrated.d.ts
225
- /**
226
- * Hook that indicates whether code is executing on the client after hydration
227
- *
228
- * Features:
229
- * - SSR-safe: returns `false` on the server to avoid hydration mismatches
230
- * - Client-stable: returns `true` after hydration and remains stable
231
- * - Minimal overhead: uses a no-op external store subscription
232
- *
233
- * @returns Boolean indicating hydration state (`true` on client, `false` on server)
234
- *
235
- * @example
236
- * ```tsx
237
- * // Conditionally render client-only components safely
238
- * function ClientOnly() {
239
- * const hydrated = useHydrated();
240
- * if (!hydrated) return null;
241
- * return <InteractiveChart />;
242
- * }
243
- * ```
244
- *
245
- * @since 1.0.0
246
- */
247
- declare function useHydrated(): boolean;
248
- //#endregion
249
- //#region src/hooks/use-intersection-observer.d.ts
250
- /**
251
- * Configuration options for the `useIntersectionObserver` hook.
252
- *
253
- * Extends the native `IntersectionObserverInit` options with an additional
254
- * convenience flag for freezing the observer state.
255
- */
256
- interface IntersectionObserverOptions extends IntersectionObserverInit {
257
- /**
258
- * When `true`, the hook stops observing once the element becomes visible
259
- * and keeps returning `true` for subsequent renders.
260
- *
261
- * This is useful for one-time animations or lazy loading where you only
262
- * care about the first time an element enters the viewport.
263
- */
264
- freezeOnceVisible?: boolean;
265
- }
266
- /**
267
- * React hook that tracks whether a DOM element is currently intersecting the viewport.
268
- *
269
- * Features:
270
- * - Uses a shared `IntersectionObserver` instance for better performance.
271
- * - Supports custom `threshold`, `root`, and `rootMargin` options.
272
- * - Optional `freezeOnceVisible` flag to stop observing after first intersection.
273
- *
274
- * @param elementRef - React ref pointing to the DOM element to observe.
275
- * @param options - Optional observer configuration and behavior flags.
276
- * @param options.threshold - Intersection threshold(s) for triggering visibility changes.
277
- * @param options.root - Scrollable ancestor element to use as the viewport (defaults to browser viewport).
278
- * @param options.rootMargin - Margin around the root, expressed in CSS units (e.g. `"0px 0px -20% 0px"`).
279
- * @param options.freezeOnceVisible - When `true`, stops observing after the element first becomes visible.
280
- *
281
- * @returns `true` when the element is intersecting based on the given options, otherwise `false`.
282
- *
283
- * @example
284
- * ```tsx
285
- * const ref = React.useRef<HTMLDivElement | null>(null);
286
- * const isVisible = useIntersectionObserver(ref, {
287
- * threshold: 0.2,
288
- * rootMargin: "0px 0px -10% 0px",
289
- * freezeOnceVisible: true,
290
- * });
291
- *
292
- * return (
293
- * <div ref={ref} className={isVisible ? "animate-in" : "opacity-0"}>
294
- * I will animate when I enter the viewport.
295
- * </div>
296
- * );
297
- * ```
298
- */
299
- declare function useIntersectionObserver(elementRef: React$1.RefObject<Element | null>, { threshold, root, rootMargin, freezeOnceVisible }?: IntersectionObserverOptions): boolean;
300
- //#endregion
301
- //#region src/hooks/use-is-mac.d.ts
302
- /**
303
- * Platform detection hook for React components
304
- * Determines whether the current user agent is running on a macOS device.
305
- * Useful for rendering platform-specific keyboard shortcuts or UI variations.
306
- */
307
- /**
308
- * React hook that returns whether the current browser reports a macOS platform.
309
- * It prefers `navigator.userAgentData.platform` when available and falls back
310
- * to `navigator.userAgent`.
311
- *
312
- * @returns `true` if the current platform is macOS, otherwise `false`.
313
- *
314
- * @example
315
- * ```tsx
316
- * const isMac = useIsMac();
317
- *
318
- * return (
319
- * <kbd>
320
- * {isMac ? "⌘" : "Ctrl"} + K
321
- * </kbd>
322
- * );
323
- * ```
324
- */
325
- declare function useIsMac(): boolean;
326
- //#endregion
327
- //#region src/hooks/use-is-mobile.d.ts
328
- /**
329
- * Mobile device detection hook for React components
330
- * Provides real-time mobile/desktop state based on configurable viewport width breakpoint
331
- * Uses customizable mobile breakpoint with proper SSR handling and hydration safety
332
- */
333
- /**
334
- * Hook to detect if the current viewport is mobile-sized based on configurable breakpoint
335
- *
336
- * This hook provides real-time detection of mobile vs desktop viewports with a customizable
337
- * breakpoint threshold. It handles SSR properly by starting with undefined state and updating
338
- * on client-side hydration to prevent hydration mismatches.
339
- *
340
- * The hook uses both `matchMedia` API for efficient media query listening and `window.innerWidth`
341
- * for consistent viewport width detection across different browsers and devices.
342
- *
343
- * Features:
344
- * - Real-time viewport size tracking with media query listeners
345
- * - SSR-safe implementation preventing hydration mismatches
346
- * - Automatic event listener cleanup on unmount
347
- * - Configurable mobile breakpoint with sensible default (1024px)
348
- * - Performance optimized with proper dependency management
349
- * - TypeScript support with proper type definitions
350
- *
351
- * @param breakpoint - Custom breakpoint in pixels. Viewports smaller than this value are considered mobile. Defaults to 1024px if not provided.
352
- * @returns Boolean indicating if current viewport width is smaller than the specified breakpoint (mobile-sized)
353
- *
354
- * @example
355
- * ```tsx
356
- * // Basic usage with default breakpoint (1024px)
357
- * function ResponsiveComponent() {
358
- * const isMobile = useIsMobile();
359
- *
360
- * return (
361
- * <div>
362
- * {isMobile ? (
363
- * <MobileNavigation />
364
- * ) : (
365
- * <DesktopNavigation />
366
- * )}
367
- * </div>
368
- * );
369
- * }
370
- *
371
- * // Custom breakpoint for tablet detection
372
- * function TabletResponsiveComponent() {
373
- * const isMobile = useIsMobile(768); // Use 768px breakpoint
374
- * const isTablet = useIsMobile(1024); // Use 1024px for tablet detection
375
- *
376
- * return (
377
- * <div className={isMobile ? 'mobile-layout' : isTablet ? 'tablet-layout' : 'desktop-layout'}>
378
- * <Content />
379
- * </div>
380
- * );
381
- * }
382
- *
383
- * // Conditional rendering with custom breakpoint
384
- * function AdaptiveLayout() {
385
- * const isSmallScreen = useIsMobile(640); // Custom small screen breakpoint
386
- *
387
- * return (
388
- * <div className="container">
389
- * {isSmallScreen ? (
390
- * <div className="flex flex-col space-y-4">
391
- * <MobileHeader />
392
- * <MobileContent />
393
- * </div>
394
- * ) : (
395
- * <div className="grid grid-cols-12 gap-6">
396
- * <aside className="col-span-3">
397
- * <Sidebar />
398
- * </aside>
399
- * <main className="col-span-9">
400
- * <DesktopContent />
401
- * </main>
402
- * </div>
403
- * )}
404
- * </div>
405
- * );
406
- * }
407
- *
408
- * // Multiple breakpoints for different layouts
409
- * function MultiBreakpointLayout() {
410
- * const isMobile = useIsMobile(640); // Mobile: < 640px
411
- * const isTablet = useIsMobile(1024); // Tablet: < 1024px
412
- * const isDesktop = !isTablet; // Desktop: >= 1024px
413
- *
414
- * if (isMobile) {
415
- * return <MobileLayout />;
416
- * }
417
- *
418
- * if (isTablet) {
419
- * return <TabletLayout />;
420
- * }
421
- *
422
- * return <DesktopLayout />;
423
- * }
424
- * ```
425
- *
426
- * @since 1.0.0
427
- */
428
- declare function useIsMobile(breakpoint?: number): boolean;
429
- //#endregion
430
- //#region src/hooks/use-media-query.d.ts
431
- /**
432
- * Media query hook for responsive React components
433
- * Provides real-time tracking of CSS media query matches
434
- * with SSR-safe implementation and automatic cleanup
435
- */
436
- /**
437
- * Hook for tracking CSS media query matches in React components
438
- *
439
- * Features:
440
- * - Real-time updates when media query state changes
441
- * - SSR-safe implementation
442
- * - Automatic event listener cleanup
443
- * - Supports all standard CSS media queries
444
- *
445
- * @param query - CSS media query string (e.g., '(min-width: 768px)')
446
- * @returns Boolean indicating whether the media query currently matches
447
- *
448
- * @example
449
- * ```tsx
450
- * // Basic responsive behavior
451
- * const isMobile = useMediaQuery('(max-width: 768px)');
452
- * const isTablet = useMediaQuery('(min-width: 769px) and (max-width: 1024px)');
453
- * const isDesktop = useMediaQuery('(min-width: 1025px)');
454
- *
455
- * // Dark mode preference
456
- * const prefersDark = useMediaQuery('(prefers-color-scheme: dark)');
457
- *
458
- * // Reduced motion preference
459
- * const prefersReducedMotion = useMediaQuery('(prefers-reduced-motion: reduce)');
460
- *
461
- * return (
462
- * <div>
463
- * {isMobile && <MobileLayout />}
464
- * {isTablet && <TabletLayout />}
465
- * {isDesktop && <DesktopLayout />}
466
- * </div>
467
- * );
468
- * ```
469
- */
470
- declare const useMediaQuery: (query: string) => boolean;
471
- //#endregion
472
- //#region src/hooks/use-menu.d.ts
473
- /**
474
- * Menu item interface
475
- */
476
- interface MenuItem {
477
- /** Heading text */
478
- heading?: string;
479
- /** Menu item title */
480
- title?: string;
481
- /** Navigation path */
482
- path?: string;
483
- /** Menu item icon component */
484
- icon?: ComponentType<SVGProps<SVGSVGElement>>;
485
- /** Whether to show separator */
486
- separator?: boolean;
487
- /** Root path for active state matching */
488
- rootPath?: string;
489
- /** Child menu items */
490
- children?: MenuConfig;
491
- /** Children index for nested items */
492
- childrenIndex?: number;
493
- /** Whether the item is external */
494
- external?: boolean;
495
- /** Whether the item is disabled */
496
- disabled?: boolean;
497
- /** Disable text */
498
- disabledText?: string;
499
- /** Badge text */
500
- badge?: string;
501
- /** Badge variant */
502
- badgeVariant?: "primary" | "destructive" | "success" | "info" | "warning" | "secondary" | "outline";
503
- /** Collapse configuration */
504
- collapse?: boolean;
505
- /** Title when collapsed */
506
- collapseTitle?: string;
507
- /** Title when expanded */
508
- expandTitle?: string;
509
- }
510
- /**
511
- * Type aliases for backward compatibility
512
- */
513
- type MenuConfig = MenuItem[];
514
- /** Return type interface for useMenu hook */
515
- interface UseMenuReturn {
516
- /** Check if a specific path is currently active */
517
- isActive: (path: string | undefined) => boolean;
518
- /** Check if any child menu item is currently active */
519
- hasActiveChild: (children: MenuItem[] | undefined) => boolean;
520
- /** Check if a menu item (including its children) is currently active */
521
- isItemActive: (item: MenuItem) => boolean;
522
- /** Get the currently active menu item from the menu configuration */
523
- getCurrentItem: (items: MenuConfig) => MenuItem | undefined;
524
- /** Generate breadcrumb trail for the current active path */
525
- getBreadcrumb: (items: MenuConfig) => MenuItem[];
526
- /** Get child menu items at a specific level for the current active path */
527
- getChildren: (items: MenuConfig, level: number) => MenuConfig | null;
528
- }
529
- /**
530
- * Hook for managing menu navigation state and utilities
531
- *
532
- * This hook provides comprehensive menu management functionality including:
533
- * - Active state detection for menu items and paths
534
- * - Hierarchical menu navigation support
535
- * - Breadcrumb generation for current navigation path
536
- * - Child menu extraction at specific levels
537
- * - Support for nested menu structures
538
- *
539
- * @param pathname - Current pathname from router or location
540
- * @returns Object containing menu utility functions
541
- *
542
- * @example
543
- * ```tsx
544
- * const { isActive, getBreadcrumb, getCurrentItem } = useMenu(pathname);
545
- *
546
- * // Check if path is active
547
- * const isHomeActive = isActive('/dashboard');
548
- *
549
- * // Get breadcrumb for current path
550
- * const breadcrumb = getBreadcrumb(menuItems);
551
- *
552
- * // Get current active menu item
553
- * const currentItem = getCurrentItem(menuItems);
554
- * ```
555
- */
556
- declare const useMenu: (pathname: string) => UseMenuReturn;
557
- //#endregion
558
- //#region src/hooks/use-meta-color.d.ts
559
- /**
560
- * Calculates and applies the HTML `theme-color` meta tag from `next-themes`.
561
- * The returned setter can be used for temporary manual overrides.
562
- *
563
- * @param defaultColors - Optional custom color configuration (defaults to META_THEME_COLORS)
564
- * @returns Object containing current meta color and setter function.
565
- *
566
- * @example
567
- * ```tsx
568
- * // Basic usage with default colors (supports light, dark, and system)
569
- * function App() {
570
- * const { metaColor, setMetaColor } = useMetaColor();
571
- *
572
- * // metaColor automatically updates based on theme (light/dark/system)
573
- * useEffect(() => {
574
- * console.log('Current meta color:', metaColor);
575
- * }, [metaColor]);
576
- *
577
- * return <div>App content</div>;
578
- * }
579
- *
580
- * // Custom colors with system theme support
581
- * function CustomThemeApp() {
582
- * const customColors = {
583
- * light: '#f0f0f0',
584
- * dark: '#1a1a1a',
585
- * system: 'auto' // Will resolve to light or dark based on OS preference
586
- * };
587
- * const { metaColor } = useMetaColor(customColors);
588
- *
589
- * return <div style={{ backgroundColor: metaColor }}>Custom themed app</div>;
590
- * }
591
- *
592
- * // Manual meta color override for special pages
593
- * function SpecialPage() {
594
- * const { setMetaColor } = useMetaColor();
595
- *
596
- * useEffect(() => {
597
- * // Override meta color for this page
598
- * setMetaColor('#ff0000');
599
- *
600
- * // Cleanup: reset to theme color when leaving page
601
- * return () => {
602
- * setMetaColor(''); // This will revert to theme-based color
603
- * };
604
- * }, [setMetaColor]);
605
- *
606
- * return <div>Special page with red theme color</div>;
607
- * }
608
- *
609
- * // Integration with theme switcher
610
- * function ThemeAwareComponent() {
611
- * const { theme, setTheme } = useTheme();
612
- * const { metaColor } = useMetaColor();
613
- *
614
- * return (
615
- * <div>
616
- * <p>Current theme: {theme}</p>
617
- * <p>Meta color: {metaColor}</p>
618
- * <button onClick={() => setTheme('light')}>Light</button>
619
- * <button onClick={() => setTheme('dark')}>Dark</button>
620
- * <button onClick={() => setTheme('system')}>System</button>
621
- * </div>
622
- * );
623
- * }
624
- * ```
625
- */
626
- declare function useMetaColor(defaultColors?: typeof META_THEME_COLORS): {
627
- /** Current meta theme color based on resolved theme */
628
- metaColor: "#09090b" | "#ffffff";
629
- /** Function to manually set meta theme color */
630
- setMetaColor: (color: string) => void;
631
- };
632
- //#endregion
633
- //#region src/hooks/use-mutation-observer.d.ts
634
- /**
635
- * Hook to observe DOM mutations on a referenced element
636
- *
637
- * This hook provides a React-friendly way to use the MutationObserver API.
638
- * It automatically handles observer creation, cleanup, and ref management.
639
- * Useful for detecting DOM changes that occur outside of React's control.
640
- *
641
- * Features:
642
- * - Automatic observer lifecycle management
643
- * - Configurable observation options
644
- * - Ref-based element targeting
645
- * - Automatic cleanup on unmount
646
- *
647
- * @param ref - React ref pointing to the element to observe
648
- * @param callback - Function called when mutations are detected
649
- * @param options - MutationObserver configuration options
650
- *
651
- * @example
652
- * ```tsx
653
- * function DynamicContent() {
654
- * const contentRef = useRef<HTMLDivElement>(null);
655
- *
656
- * // Watch for any changes to the content div
657
- * useMutationObserver(
658
- * contentRef,
659
- * (mutations) => {
660
- * mutations.forEach((mutation) => {
661
- * console.log('DOM changed:', mutation.type);
662
- * });
663
- * }
664
- * );
665
- *
666
- * return <div ref={contentRef}>Dynamic content here</div>;
667
- * }
668
- *
669
- * // Watch only for attribute changes
670
- * function AttributeWatcher() {
671
- * const elementRef = useRef<HTMLElement>(null);
672
- *
673
- * useMutationObserver(
674
- * elementRef,
675
- * (mutations) => {
676
- * mutations.forEach((mutation) => {
677
- * if (mutation.type === 'attributes') {
678
- * console.log('Attribute changed:', mutation.attributeName);
679
- * }
680
- * });
681
- * },
682
- * { attributes: true, childList: false, subtree: false }
683
- * );
684
- *
685
- * return <div ref={elementRef}>Watched element</div>;
686
- * }
687
- * ```
688
- */
689
- declare const useMutationObserver: (ref: React$1.RefObject<HTMLElement | null>, callback: MutationCallback, options?: MutationObserverInit) => void;
690
- //#endregion
691
- //#region src/hooks/use-remove-ga-params.d.ts
692
- /**
693
- * Google Analytics linker parameter cleanup hook for React
694
- * Safely removes the GA `_gl` query parameter from the URL after GA initialization.
695
- */
696
- /**
697
- * Hook to remove the Google Analytics `_gl` query parameter from the current URL.
698
- *
699
- * GA's cross-domain linker temporarily appends `_gl` to URLs for attribution.
700
- * Removing it *too early* can break attribution, so this hook waits briefly
701
- * (≈2 seconds) to allow GA to read it, then strips the param using
702
- * `history.replaceState` without causing a page reload or React re-render.
703
- *
704
- * Behavior:
705
- * - Runs once on mount.
706
- * - If `_gl` is present, schedules its removal after ~2000ms.
707
- * - Uses `window.history.replaceState` to avoid navigation/re-render.
708
- *
709
- * @example
710
- * ```tsx
711
- * // app/layout.tsx or a top-level client component
712
- * import { useRemoveGAParams } from '@/hooks/use-remove-ga-params';
713
- *
714
- * export default function RootLayout({ children }: { children: React.ReactNode }) {
715
- * useRemoveGAParams();
716
- * return <>{children}</>;
717
- * }
718
- * ```
719
- */
720
- declare function useRemoveGAParams(): void;
721
- //#endregion
722
- //#region src/hooks/use-scroll-position.d.ts
723
- /**
724
- * Configuration options for the scroll position hook
725
- */
726
- interface UseScrollPositionProps {
727
- /** Optional ref to a specific scrollable element (defaults to document) */
728
- targetRef?: RefObject<HTMLElement | Document | undefined>;
729
- }
730
- /**
731
- * Hook to track scroll position of window or specific elements
732
- *
733
- * This hook provides real-time tracking of scroll position with support
734
- * for both window scrolling and element-specific scrolling. It automatically
735
- * handles event listener management and cleanup.
736
- *
737
- * Features:
738
- * - Real-time scroll position tracking
739
- * - Support for window and element scrolling
740
- * - Automatic event listener cleanup
741
- * - SSR-safe implementation
742
- * - Performance optimized
743
- *
744
- * @param options - Configuration options for the hook
745
- * @returns Current scroll position in pixels
746
- *
747
- * @example
748
- * ```tsx
749
- * // Track window scroll position
750
- * function ScrollIndicator() {
751
- * const scrollPosition = useScrollPosition();
752
- *
753
- * return (
754
- * <div className="scroll-indicator">
755
- * Scrolled: {scrollPosition}px
756
- * </div>
757
- * );
758
- * }
759
- *
760
- * // Track specific element scroll position
761
- * function ScrollableContent() {
762
- * const contentRef = useRef<HTMLDivElement>(null);
763
- * const scrollPosition = useScrollPosition({ targetRef: contentRef });
764
- *
765
- * return (
766
- * <div
767
- * ref={contentRef}
768
- * className="h-96 overflow-y-auto"
769
- * >
770
- * <div className="h-[1000px]">
771
- * <p>Scroll position: {scrollPosition}px</p>
772
- * <p>Long content here...</p>
773
- * </div>
774
- * </div>
775
- * );
776
- * }
777
- *
778
- * // Show/hide header based on scroll
779
- * function StickyHeader() {
780
- * const scrollPosition = useScrollPosition();
781
- * const isVisible = scrollPosition < 100;
782
- *
783
- * return (
784
- * <header className={`transition-transform ${
785
- * isVisible ? 'translate-y-0' : '-translate-y-full'
786
- * }`}>
787
- * Header content
788
- * </header>
789
- * );
790
- * }
791
- * ```
792
- */
793
- declare const useScrollPosition: ({ targetRef }?: UseScrollPositionProps) => number;
794
- //#endregion
795
- //#region src/hooks/use-slider-input.d.ts
796
- /**
797
- * Configuration options for the slider input hook
798
- */
799
- interface UseSliderInputProps {
800
- /** Minimum allowed value for the range */
801
- minValue: number;
802
- /** Maximum allowed value for the range */
803
- maxValue: number;
804
- /** Initial values for the range [min, max] */
805
- initialValue: [number, number];
806
- }
807
- /**
808
- * Hook for managing dual slider input with synchronized state
809
- *
810
- * This hook provides state management for components that need both
811
- * a range slider and corresponding number inputs. It handles synchronization
812
- * between the two input types, validation, and boundary enforcement.
813
- *
814
- * Features:
815
- * - Synchronized slider and input values
816
- * - Automatic validation and boundary enforcement
817
- * - Prevents invalid range configurations (min > max)
818
- * - Optimized with useCallback for performance
819
- *
820
- * @param props - Configuration options for the hook
821
- * @returns Object containing state and handlers for slider and inputs
822
- *
823
- * @example
824
- * ```tsx
825
- * function PriceRangeFilter() {
826
- * const {
827
- * sliderValues,
828
- * inputValues,
829
- * handleSliderChange,
830
- * handleInputChange,
831
- * validateAndUpdateValue
832
- * } = useSliderInput({
833
- * minValue: 0,
834
- * maxValue: 1000,
835
- * initialValue: [100, 500]
836
- * });
837
- *
838
- * return (
839
- * <div className="price-range">
840
- * <div className="inputs">
841
- * <input
842
- * type="number"
843
- * value={inputValues[0]}
844
- * onChange={(e) => handleInputChange(e, 0)}
845
- * onBlur={() => validateAndUpdateValue(inputValues[0], 0)}
846
- * placeholder="Min price"
847
- * />
848
- * <input
849
- * type="number"
850
- * value={inputValues[1]}
851
- * onChange={(e) => handleInputChange(e, 1)}
852
- * onBlur={() => validateAndUpdateValue(inputValues[1], 1)}
853
- * placeholder="Max price"
854
- * />
855
- * </div>
856
- *
857
- * <Slider
858
- * value={sliderValues}
859
- * onValueChange={handleSliderChange}
860
- * min={0}
861
- * max={1000}
862
- * step={10}
863
- * />
864
- * </div>
865
- * );
866
- * }
867
- * ```
868
- */
869
- declare function useSliderInput({ minValue, maxValue, initialValue }: UseSliderInputProps): {
870
- /** Function to manually set slider values */
871
- setSliderValues: React$1.Dispatch<React$1.SetStateAction<[number, number]>>;
872
- /** Function to manually set input values */
873
- setInputValues: React$1.Dispatch<React$1.SetStateAction<[number, number]>>;
874
- /** Current slider values [min, max] */
875
- sliderValues: [number, number];
876
- /** Current input values [min, max] */
877
- inputValues: [number, number];
878
- /** Handler for slider value changes */
879
- handleSliderChange: (values: [number, number]) => void;
880
- /** Handler for input field changes */
881
- handleInputChange: (e: React$1.ChangeEvent<HTMLInputElement>, index: 0 | 1) => void;
882
- /** Function to validate and update values from inputs */
883
- validateAndUpdateValue: (value: number, index: 0 | 1) => void;
884
- };
885
- //#endregion
886
- //#region src/hooks/use-viewport.d.ts
887
- /**
888
- * Viewport dimensions tracking hook for React components
889
- * Provides real-time viewport width and height with automatic updates
890
- * on window resize events with SSR-safe implementation
891
- */
892
- /**
893
- * Type definition for viewport dimensions
894
- * Returns tuple of [width, height] in pixels
895
- */
896
- type ViewportDimensions = [number, number];
897
- /**
898
- * Hook to track viewport dimensions with real-time updates
899
- *
900
- * This hook provides the current viewport dimensions and automatically
901
- * updates when the window is resized. It's useful for responsive layouts,
902
- * conditional rendering based on screen size, and dynamic calculations.
903
- *
904
- * Features:
905
- * - Real-time viewport dimension tracking
906
- * - Automatic updates on window resize
907
- * - Performance optimized with passive event listeners
908
- * - SSR-safe implementation
909
- * - Returns both width and height
910
- *
911
- * @returns Tuple containing [width, height] in pixels
912
- *
913
- * @example
914
- * ```tsx
915
- * // Basic usage
916
- * function ResponsiveComponent() {
917
- * const [width, height] = useViewport();
918
- *
919
- * return (
920
- * <div>
921
- * <p>Viewport: {width}x{height}</p>
922
- * {width > 768 ? <DesktopLayout /> : <MobileLayout />}
923
- * </div>
924
- * );
925
- * }
926
- *
927
- * // Destructured usage
928
- * function ViewportInfo() {
929
- * const [width, height] = useViewport();
930
- * const aspectRatio = (width / height).toFixed(2);
931
- *
932
- * return (
933
- * <div className="viewport-info">
934
- * <p>Width: {width}px</p>
935
- * <p>Height: {height}px</p>
936
- * <p>Aspect Ratio: {aspectRatio}</p>
937
- * </div>
938
- * );
939
- * }
940
- *
941
- * // Conditional rendering based on viewport
942
- * function AdaptiveGrid() {
943
- * const [width] = useViewport();
944
- * const columns = width > 1200 ? 4 : width > 768 ? 3 : width > 480 ? 2 : 1;
945
- *
946
- * return (
947
- * <div className={`grid grid-cols-${columns} gap-4`}>
948
- * {items.map(item => <GridItem key={item.id} {...item} />)}
949
- * </div>
950
- * );
951
- * }
952
- * ```
953
- */
954
- declare const useViewport: () => ViewportDimensions;
955
- //#endregion
956
- export { FileMetadata, FileUploadActions, FileUploadOptions, FileUploadState, FileWithPreview, formatBytes, useBodyClasses, useCopyToClipboard, useFileUpload, useHydrated, useIntersectionObserver, useIsMac, useIsMobile, useMediaQuery, useMenu, useMetaColor, useMutationObserver, useRemoveGAParams, useScrollPosition, useSliderInput, useViewport };
957
- //# sourceMappingURL=hooks.d.ts.map