@kumix/ui 0.2.4 → 0.3.0

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 (358) hide show
  1. package/README.md +32 -10
  2. package/dist/components/motion/action-swap-blur.d.ts +11 -0
  3. package/dist/components/motion/action-swap-blur.d.ts.map +1 -0
  4. package/dist/components/motion/action-swap-blur.js +26 -0
  5. package/dist/components/motion/action-swap-blur.js.map +1 -0
  6. package/dist/components/motion/action-swap-cascade.d.ts +11 -0
  7. package/dist/components/motion/action-swap-cascade.d.ts.map +1 -0
  8. package/dist/components/motion/action-swap-cascade.js +26 -0
  9. package/dist/components/motion/action-swap-cascade.js.map +1 -0
  10. package/dist/components/motion/action-swap-roll.d.ts +11 -0
  11. package/dist/components/motion/action-swap-roll.d.ts.map +1 -0
  12. package/dist/components/motion/action-swap-roll.js +26 -0
  13. package/dist/components/motion/action-swap-roll.js.map +1 -0
  14. package/dist/components/motion/action-swap.d.ts +41 -0
  15. package/dist/components/motion/action-swap.d.ts.map +1 -0
  16. package/dist/components/motion/action-swap.js +261 -0
  17. package/dist/components/motion/action-swap.js.map +1 -0
  18. package/dist/components/motion/animated-badge.d.ts +18 -0
  19. package/dist/components/motion/animated-badge.d.ts.map +1 -0
  20. package/dist/components/motion/animated-badge.js +206 -0
  21. package/dist/components/motion/animated-badge.js.map +1 -0
  22. package/dist/components/motion/animated-number.d.ts +12 -0
  23. package/dist/components/motion/animated-number.d.ts.map +1 -0
  24. package/dist/components/motion/animated-number.js +47 -0
  25. package/dist/components/motion/animated-number.js.map +1 -0
  26. package/dist/components/motion/animated-sidebar.d.ts +97 -0
  27. package/dist/components/motion/animated-sidebar.d.ts.map +1 -0
  28. package/dist/components/motion/animated-sidebar.js +611 -0
  29. package/dist/components/motion/animated-sidebar.js.map +1 -0
  30. package/dist/components/motion/animated-toast-stack.d.ts +65 -0
  31. package/dist/components/motion/animated-toast-stack.d.ts.map +1 -0
  32. package/dist/components/motion/animated-toast-stack.js +303 -0
  33. package/dist/components/motion/animated-toast-stack.js.map +1 -0
  34. package/dist/components/motion/bottom-sheet.d.ts +19 -0
  35. package/dist/components/motion/bottom-sheet.d.ts.map +1 -0
  36. package/dist/components/motion/bottom-sheet.js +146 -0
  37. package/dist/components/motion/bottom-sheet.js.map +1 -0
  38. package/dist/components/motion/bounce-sidebar.d.ts +26 -0
  39. package/dist/components/motion/bounce-sidebar.d.ts.map +1 -0
  40. package/dist/components/motion/bounce-sidebar.js +164 -0
  41. package/dist/components/motion/bounce-sidebar.js.map +1 -0
  42. package/dist/components/motion/bouncy-accordion.d.ts +32 -0
  43. package/dist/components/motion/bouncy-accordion.d.ts.map +1 -0
  44. package/dist/components/motion/bouncy-accordion.js +172 -0
  45. package/dist/components/motion/bouncy-accordion.js.map +1 -0
  46. package/dist/components/motion/button/base.d.ts +17 -0
  47. package/dist/components/motion/button/base.d.ts.map +1 -0
  48. package/dist/components/motion/button/base.js +86 -0
  49. package/dist/components/motion/button/base.js.map +1 -0
  50. package/dist/components/motion/button/magnetic.d.ts +12 -0
  51. package/dist/components/motion/button/magnetic.d.ts.map +1 -0
  52. package/dist/components/motion/button/magnetic.js +21 -0
  53. package/dist/components/motion/button/magnetic.js.map +1 -0
  54. package/dist/components/motion/button/stateful.d.ts +16 -0
  55. package/dist/components/motion/button/stateful.d.ts.map +1 -0
  56. package/dist/components/motion/button/stateful.js +190 -0
  57. package/dist/components/motion/button/stateful.js.map +1 -0
  58. package/dist/components/motion/center-morph-modal.d.ts +43 -0
  59. package/dist/components/motion/center-morph-modal.d.ts.map +1 -0
  60. package/dist/components/motion/center-morph-modal.js +238 -0
  61. package/dist/components/motion/center-morph-modal.js.map +1 -0
  62. package/dist/components/motion/checkbox.d.ts +15 -0
  63. package/dist/components/motion/checkbox.d.ts.map +1 -0
  64. package/dist/components/motion/checkbox.js +81 -0
  65. package/dist/components/motion/checkbox.js.map +1 -0
  66. package/dist/components/motion/chromatic-text-reveal.d.ts +31 -0
  67. package/dist/components/motion/chromatic-text-reveal.d.ts.map +1 -0
  68. package/dist/components/motion/chromatic-text-reveal.js +132 -0
  69. package/dist/components/motion/chromatic-text-reveal.js.map +1 -0
  70. package/dist/components/motion/context-menu.d.ts +71 -0
  71. package/dist/components/motion/context-menu.d.ts.map +1 -0
  72. package/dist/components/motion/context-menu.js +454 -0
  73. package/dist/components/motion/context-menu.js.map +1 -0
  74. package/dist/components/motion/cylinder-carousel.d.ts +40 -0
  75. package/dist/components/motion/cylinder-carousel.d.ts.map +1 -0
  76. package/dist/components/motion/cylinder-carousel.js +274 -0
  77. package/dist/components/motion/cylinder-carousel.js.map +1 -0
  78. package/dist/components/motion/dock.d.ts +24 -0
  79. package/dist/components/motion/dock.d.ts.map +1 -0
  80. package/dist/components/motion/dock.js +62 -0
  81. package/dist/components/motion/dock.js.map +1 -0
  82. package/dist/components/motion/drawer.d.ts +19 -0
  83. package/dist/components/motion/drawer.d.ts.map +1 -0
  84. package/dist/components/motion/drawer.js +58 -0
  85. package/dist/components/motion/drawer.js.map +1 -0
  86. package/dist/components/motion/hold-action-button.d.ts +17 -0
  87. package/dist/components/motion/hold-action-button.d.ts.map +1 -0
  88. package/dist/components/motion/hold-action-button.js +158 -0
  89. package/dist/components/motion/hold-action-button.js.map +1 -0
  90. package/dist/components/motion/input.d.ts +29 -0
  91. package/dist/components/motion/input.d.ts.map +1 -0
  92. package/dist/components/motion/input.js +126 -0
  93. package/dist/components/motion/input.js.map +1 -0
  94. package/dist/components/motion/loader.d.ts +17 -0
  95. package/dist/components/motion/loader.d.ts.map +1 -0
  96. package/dist/components/motion/loader.js +791 -0
  97. package/dist/components/motion/loader.js.map +1 -0
  98. package/dist/components/motion/magnetic.d.ts +11 -0
  99. package/dist/components/motion/magnetic.d.ts.map +1 -0
  100. package/dist/components/motion/magnetic.js +44 -0
  101. package/dist/components/motion/magnetic.js.map +1 -0
  102. package/dist/components/motion/marquee.d.ts +15 -0
  103. package/dist/components/motion/marquee.d.ts.map +1 -0
  104. package/dist/components/motion/marquee.js +35 -0
  105. package/dist/components/motion/marquee.js.map +1 -0
  106. package/dist/components/motion/morphing-modal.d.ts +15 -0
  107. package/dist/components/motion/morphing-modal.d.ts.map +1 -0
  108. package/dist/components/motion/morphing-modal.js +117 -0
  109. package/dist/components/motion/morphing-modal.js.map +1 -0
  110. package/dist/components/motion/number-ticker.d.ts +26 -0
  111. package/dist/components/motion/number-ticker.d.ts.map +1 -0
  112. package/dist/components/motion/number-ticker.js +129 -0
  113. package/dist/components/motion/number-ticker.js.map +1 -0
  114. package/dist/components/motion/parallax.d.ts +21 -0
  115. package/dist/components/motion/parallax.d.ts.map +1 -0
  116. package/dist/components/motion/parallax.js +35 -0
  117. package/dist/components/motion/parallax.js.map +1 -0
  118. package/dist/components/motion/popover-morph.d.ts +38 -0
  119. package/dist/components/motion/popover-morph.d.ts.map +1 -0
  120. package/dist/components/motion/popover-morph.js +167 -0
  121. package/dist/components/motion/popover-morph.js.map +1 -0
  122. package/dist/components/motion/popover.d.ts +40 -0
  123. package/dist/components/motion/popover.d.ts.map +1 -0
  124. package/dist/components/motion/popover.js +393 -0
  125. package/dist/components/motion/popover.js.map +1 -0
  126. package/dist/components/motion/preview-rail.d.ts +26 -0
  127. package/dist/components/motion/preview-rail.d.ts.map +1 -0
  128. package/dist/components/motion/preview-rail.js +134 -0
  129. package/dist/components/motion/preview-rail.js.map +1 -0
  130. package/dist/components/motion/pull-to-refresh.d.ts +28 -0
  131. package/dist/components/motion/pull-to-refresh.d.ts.map +1 -0
  132. package/dist/components/motion/pull-to-refresh.js +389 -0
  133. package/dist/components/motion/pull-to-refresh.js.map +1 -0
  134. package/dist/components/motion/radio.d.ts +22 -0
  135. package/dist/components/motion/radio.d.ts.map +1 -0
  136. package/dist/components/motion/radio.js +79 -0
  137. package/dist/components/motion/radio.js.map +1 -0
  138. package/dist/components/motion/range-slider-bubble.d.ts +16 -0
  139. package/dist/components/motion/range-slider-bubble.d.ts.map +1 -0
  140. package/dist/components/motion/range-slider-bubble.js +117 -0
  141. package/dist/components/motion/range-slider-bubble.js.map +1 -0
  142. package/dist/components/motion/range-slider-fluid.d.ts +18 -0
  143. package/dist/components/motion/range-slider-fluid.d.ts.map +1 -0
  144. package/dist/components/motion/range-slider-fluid.js +63 -0
  145. package/dist/components/motion/range-slider-fluid.js.map +1 -0
  146. package/dist/components/motion/range-slider-ruler.d.ts +19 -0
  147. package/dist/components/motion/range-slider-ruler.d.ts.map +1 -0
  148. package/dist/components/motion/range-slider-ruler.js +142 -0
  149. package/dist/components/motion/range-slider-ruler.js.map +1 -0
  150. package/dist/components/motion/range-slider-wave.d.ts +16 -0
  151. package/dist/components/motion/range-slider-wave.d.ts.map +1 -0
  152. package/dist/components/motion/range-slider-wave.js +57 -0
  153. package/dist/components/motion/range-slider-wave.js.map +1 -0
  154. package/dist/components/motion/range-slider.d.ts +11 -0
  155. package/dist/components/motion/range-slider.d.ts.map +1 -0
  156. package/dist/components/motion/range-slider.js +63 -0
  157. package/dist/components/motion/range-slider.js.map +1 -0
  158. package/dist/components/motion/scroll-progress.d.ts +29 -0
  159. package/dist/components/motion/scroll-progress.d.ts.map +1 -0
  160. package/dist/components/motion/scroll-progress.js +71 -0
  161. package/dist/components/motion/scroll-progress.js.map +1 -0
  162. package/dist/components/motion/scroll-reveal.d.ts +23 -0
  163. package/dist/components/motion/scroll-reveal.d.ts.map +1 -0
  164. package/dist/components/motion/scroll-reveal.js +42 -0
  165. package/dist/components/motion/scroll-reveal.js.map +1 -0
  166. package/dist/components/motion/scroll-to.d.ts +21 -0
  167. package/dist/components/motion/scroll-to.d.ts.map +1 -0
  168. package/dist/components/motion/scroll-to.js +27 -0
  169. package/dist/components/motion/scroll-to.js.map +1 -0
  170. package/dist/components/motion/select-morph.d.ts +41 -0
  171. package/dist/components/motion/select-morph.d.ts.map +1 -0
  172. package/dist/components/motion/select-morph.js +251 -0
  173. package/dist/components/motion/select-morph.js.map +1 -0
  174. package/dist/components/motion/select.d.ts +36 -0
  175. package/dist/components/motion/select.d.ts.map +1 -0
  176. package/dist/components/motion/select.js +319 -0
  177. package/dist/components/motion/select.js.map +1 -0
  178. package/dist/components/motion/shader-background.d.ts +38 -0
  179. package/dist/components/motion/shader-background.d.ts.map +1 -0
  180. package/dist/components/motion/shader-background.js +49 -0
  181. package/dist/components/motion/shader-background.js.map +1 -0
  182. package/dist/components/motion/shared-layout-bg.d.ts +17 -0
  183. package/dist/components/motion/shared-layout-bg.d.ts.map +1 -0
  184. package/dist/components/motion/shared-layout-bg.js +88 -0
  185. package/dist/components/motion/shared-layout-bg.js.map +1 -0
  186. package/dist/components/motion/slide-action-button.d.ts +15 -0
  187. package/dist/components/motion/slide-action-button.d.ts.map +1 -0
  188. package/dist/components/motion/slide-action-button.js +146 -0
  189. package/dist/components/motion/slide-action-button.js.map +1 -0
  190. package/dist/components/motion/smooth-scroll.d.ts +47 -0
  191. package/dist/components/motion/smooth-scroll.d.ts.map +1 -0
  192. package/dist/components/motion/smooth-scroll.js +182 -0
  193. package/dist/components/motion/smooth-scroll.js.map +1 -0
  194. package/dist/components/motion/switch.d.ts +13 -0
  195. package/dist/components/motion/switch.d.ts.map +1 -0
  196. package/dist/components/motion/switch.js +76 -0
  197. package/dist/components/motion/switch.js.map +1 -0
  198. package/dist/components/motion/table/editable-cell.d.ts +9 -0
  199. package/dist/components/motion/table/editable-cell.d.ts.map +1 -0
  200. package/dist/components/motion/table/editable-cell.js +17 -0
  201. package/dist/components/motion/table/editable-cell.js.map +1 -0
  202. package/dist/components/motion/table/index.d.ts +6 -0
  203. package/dist/components/motion/table/index.d.ts.map +1 -0
  204. package/dist/components/motion/table/index.js +420 -0
  205. package/dist/components/motion/table/index.js.map +1 -0
  206. package/dist/components/motion/table/row-handle.d.ts +15 -0
  207. package/dist/components/motion/table/row-handle.d.ts.map +1 -0
  208. package/dist/components/motion/table/row-handle.js +51 -0
  209. package/dist/components/motion/table/row-handle.js.map +1 -0
  210. package/dist/components/motion/table/skeleton-rows.d.ts +11 -0
  211. package/dist/components/motion/table/skeleton-rows.d.ts.map +1 -0
  212. package/dist/components/motion/table/skeleton-rows.js +23 -0
  213. package/dist/components/motion/table/skeleton-rows.js.map +1 -0
  214. package/dist/components/motion/table/table-header.d.ts +35 -0
  215. package/dist/components/motion/table/table-header.d.ts.map +1 -0
  216. package/dist/components/motion/table/table-header.js +167 -0
  217. package/dist/components/motion/table/table-header.js.map +1 -0
  218. package/dist/components/motion/table/table-menu.d.ts +17 -0
  219. package/dist/components/motion/table/table-menu.d.ts.map +1 -0
  220. package/dist/components/motion/table/table-menu.js +92 -0
  221. package/dist/components/motion/table/table-menu.js.map +1 -0
  222. package/dist/components/motion/tabs.d.ts +29 -0
  223. package/dist/components/motion/tabs.d.ts.map +1 -0
  224. package/dist/components/motion/tabs.js +125 -0
  225. package/dist/components/motion/tabs.js.map +1 -0
  226. package/dist/components/motion/text-cascade.d.ts +15 -0
  227. package/dist/components/motion/text-cascade.d.ts.map +1 -0
  228. package/dist/components/motion/text-cascade.js +21 -0
  229. package/dist/components/motion/text-cascade.js.map +1 -0
  230. package/dist/components/motion/text-reveal.d.ts +25 -0
  231. package/dist/components/motion/text-reveal.d.ts.map +1 -0
  232. package/dist/components/motion/text-reveal.js +94 -0
  233. package/dist/components/motion/text-reveal.js.map +1 -0
  234. package/dist/components/motion/text-shimmer.d.ts +12 -0
  235. package/dist/components/motion/text-shimmer.d.ts.map +1 -0
  236. package/dist/components/motion/text-shimmer.js +15 -0
  237. package/dist/components/motion/text-shimmer.js.map +1 -0
  238. package/dist/components/motion/theme-toggle.d.ts +23 -0
  239. package/dist/components/motion/theme-toggle.d.ts.map +1 -0
  240. package/dist/components/motion/theme-toggle.js +160 -0
  241. package/dist/components/motion/theme-toggle.js.map +1 -0
  242. package/dist/components/motion/tilt-card.d.ts +12 -0
  243. package/dist/components/motion/tilt-card.d.ts.map +1 -0
  244. package/dist/components/motion/tilt-card.js +56 -0
  245. package/dist/components/motion/tilt-card.js.map +1 -0
  246. package/dist/components/motion/tooltip.d.ts +17 -0
  247. package/dist/components/motion/tooltip.d.ts.map +1 -0
  248. package/dist/components/motion/tooltip.js +194 -0
  249. package/dist/components/motion/tooltip.js.map +1 -0
  250. package/dist/components/motion/wheel-picker.d.ts +24 -0
  251. package/dist/components/motion/wheel-picker.d.ts.map +1 -0
  252. package/dist/components/motion/wheel-picker.js +442 -0
  253. package/dist/components/motion/wheel-picker.js.map +1 -0
  254. package/dist/components/reui/alert.d.ts +1 -1
  255. package/dist/components/reui/alert.js +1 -1
  256. package/dist/components/reui/autocomplete.js +2 -2
  257. package/dist/components/reui/badge.d.ts +2 -2
  258. package/dist/components/reui/badge.js +10 -9
  259. package/dist/components/reui/badge.js.map +1 -1
  260. package/dist/components/reui/data-grid/data-grid-table-dnd.js +21 -19
  261. package/dist/components/reui/data-grid/data-grid-table-dnd.js.map +1 -1
  262. package/dist/components/reui/data-grid/data-grid-table-virtual.d.ts +1 -1
  263. package/dist/components/reui/data-grid/data-grid-table-virtual.js +1 -1
  264. package/dist/components/reui/data-grid/data-grid-table.js +4 -2
  265. package/dist/components/reui/data-grid/data-grid-table.js.map +1 -1
  266. package/dist/components/reui/event-calendar/event-calendar-agenda-view.js +2 -1
  267. package/dist/components/reui/event-calendar/event-calendar-agenda-view.js.map +1 -1
  268. package/dist/components/reui/event-calendar/event-calendar-content.js +8 -7
  269. package/dist/components/reui/event-calendar/event-calendar-content.js.map +1 -1
  270. package/dist/components/reui/event-calendar/event-calendar-dnd.js +7 -4
  271. package/dist/components/reui/event-calendar/event-calendar-dnd.js.map +1 -1
  272. package/dist/components/reui/event-calendar/event-calendar-event.js +49 -47
  273. package/dist/components/reui/event-calendar/event-calendar-event.js.map +1 -1
  274. package/dist/components/reui/event-calendar/event-calendar-lib.js +3 -2
  275. package/dist/components/reui/event-calendar/event-calendar-lib.js.map +1 -1
  276. package/dist/components/reui/event-calendar/event-calendar-nav.js +37 -31
  277. package/dist/components/reui/event-calendar/event-calendar-nav.js.map +1 -1
  278. package/dist/components/reui/event-calendar/event-calendar-time-grid.js +2 -1
  279. package/dist/components/reui/event-calendar/event-calendar-time-grid.js.map +1 -1
  280. package/dist/components/reui/event-calendar/event-calendar.js +2 -1
  281. package/dist/components/reui/event-calendar/event-calendar.js.map +1 -1
  282. package/dist/components/reui/filters.js +5 -3
  283. package/dist/components/reui/filters.js.map +1 -1
  284. package/dist/components/reui/frame.d.ts +2 -2
  285. package/dist/components/reui/frame.js +1 -1
  286. package/dist/components/reui/gantt/gantt-bar.js +52 -51
  287. package/dist/components/reui/gantt/gantt-bar.js.map +1 -1
  288. package/dist/components/reui/gantt/gantt-lib.js +3 -2
  289. package/dist/components/reui/gantt/gantt-lib.js.map +1 -1
  290. package/dist/components/reui/gantt/gantt-nav.js +34 -30
  291. package/dist/components/reui/gantt/gantt-nav.js.map +1 -1
  292. package/dist/components/reui/gantt/gantt-recurrence.js +2 -2
  293. package/dist/components/reui/gantt/gantt-recurrence.js.map +1 -1
  294. package/dist/components/reui/gantt/gantt-view.js +175 -171
  295. package/dist/components/reui/gantt/gantt-view.js.map +1 -1
  296. package/dist/components/reui/icon-tile.d.ts +1 -1
  297. package/dist/components/reui/icon-tile.js +12 -11
  298. package/dist/components/reui/icon-tile.js.map +1 -1
  299. package/dist/components/reui/kanban.js +42 -37
  300. package/dist/components/reui/kanban.js.map +1 -1
  301. package/dist/components/reui/number-field.js +1 -1
  302. package/dist/components/reui/rating.js +1 -1
  303. package/dist/components/reui/sortable.js +10 -9
  304. package/dist/components/reui/sortable.js.map +1 -1
  305. package/dist/components/reui/stepper.js +16 -16
  306. package/dist/components/reui/stepper.js.map +1 -1
  307. package/dist/components/reui/timeline.js +45 -38
  308. package/dist/components/reui/timeline.js.map +1 -1
  309. package/dist/components/reui/tree.js +2 -1
  310. package/dist/components/reui/tree.js.map +1 -1
  311. package/dist/components/ui/alert.js +1 -1
  312. package/dist/components/ui/attachment.d.ts +1 -1
  313. package/dist/components/ui/attachment.js +1 -1
  314. package/dist/components/ui/badge.d.ts +1 -1
  315. package/dist/components/ui/bubble.d.ts +1 -1
  316. package/dist/components/ui/bubble.js +1 -1
  317. package/dist/components/ui/button-group.js +1 -1
  318. package/dist/components/ui/button.d.ts +2 -2
  319. package/dist/components/ui/button.js +1 -1
  320. package/dist/components/ui/empty.d.ts +1 -1
  321. package/dist/components/ui/empty.js +1 -1
  322. package/dist/components/ui/field.js +1 -1
  323. package/dist/components/ui/input-group.js +1 -1
  324. package/dist/components/ui/item.d.ts +2 -2
  325. package/dist/components/ui/item.js +1 -1
  326. package/dist/components/ui/marker.js +1 -1
  327. package/dist/components/ui/navigation-menu.js +1 -1
  328. package/dist/components/ui/sidebar.d.ts +1 -1
  329. package/dist/components/ui/sidebar.js +2 -2
  330. package/dist/components/ui/sidebar.js.map +1 -1
  331. package/dist/components/ui/tabs.js +1 -1
  332. package/dist/components/ui/toggle.d.ts +1 -1
  333. package/dist/components/ui/toggle.js +1 -1
  334. package/dist/hooks/use-hover-capable.d.ts +10 -0
  335. package/dist/hooks/use-hover-capable.d.ts.map +1 -0
  336. package/dist/hooks/use-hover-capable.js +24 -0
  337. package/dist/hooks/use-hover-capable.js.map +1 -0
  338. package/dist/hooks/use-mobile.js +1 -1
  339. package/dist/hooks/use-mobile.js.map +1 -1
  340. package/dist/hooks/use-slider.d.ts +58 -0
  341. package/dist/hooks/use-slider.d.ts.map +1 -0
  342. package/dist/hooks/use-slider.js +133 -0
  343. package/dist/hooks/use-slider.js.map +1 -0
  344. package/dist/lib/ease.d.ts +50 -0
  345. package/dist/lib/ease.d.ts.map +1 -0
  346. package/dist/lib/ease.js +66 -0
  347. package/dist/lib/ease.js.map +1 -0
  348. package/dist/lib/tick-sound.d.ts +17 -0
  349. package/dist/lib/tick-sound.d.ts.map +1 -0
  350. package/dist/lib/tick-sound.js +120 -0
  351. package/dist/lib/tick-sound.js.map +1 -0
  352. package/dist/popover-position-BUqYCq8X.js +54 -0
  353. package/dist/popover-position-BUqYCq8X.js.map +1 -0
  354. package/dist/types-Bah5NY44.d.ts +81 -0
  355. package/dist/types-Bah5NY44.d.ts.map +1 -0
  356. package/dist/utils-DQ7OpbYQ.js +25 -0
  357. package/dist/utils-DQ7OpbYQ.js.map +1 -0
  358. package/package.json +17 -6
@@ -0,0 +1,206 @@
1
+ "use client";
2
+ import { EASE_OUT } from "../../lib/ease.js";
3
+ import { cn } from "@kumix/utils";
4
+ import { AnimatePresence, motion, useReducedMotion } from "motion/react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { AlertTriangle, Check, Circle, Info, LoaderCircle, X } from "lucide-react";
7
+ //#region src/components/motion/animated-badge.tsx
8
+ const STATUS_CLASS = {
9
+ neutral: "border-border bg-card text-muted-foreground",
10
+ info: "border-primary/30 bg-primary/10 text-primary",
11
+ success: "border-emerald-500/30 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400",
12
+ warning: "border-amber-500/30 bg-amber-500/10 text-amber-600 dark:text-amber-400",
13
+ danger: "border-destructive/30 bg-destructive/10 text-destructive",
14
+ loading: "border-primary/30 bg-primary/10 text-primary"
15
+ };
16
+ const SIZE_CLASS = {
17
+ sm: "h-6 gap-1.5 px-2 text-[11px]",
18
+ md: "h-8 gap-2 px-3 text-xs"
19
+ };
20
+ const ICON_CLASS = {
21
+ sm: "h-3 w-3",
22
+ md: "h-3.5 w-3.5"
23
+ };
24
+ const ICONS = {
25
+ neutral: Circle,
26
+ info: Info,
27
+ success: Check,
28
+ warning: AlertTriangle,
29
+ danger: X,
30
+ loading: LoaderCircle
31
+ };
32
+ const ICON_ROLL_VARIANTS = {
33
+ initial: {
34
+ opacity: .72,
35
+ y: "80%",
36
+ scale: .92,
37
+ rotate: -8,
38
+ filter: "blur(6px)"
39
+ },
40
+ animate: {
41
+ opacity: 1,
42
+ y: "0%",
43
+ scale: 1,
44
+ rotate: 0,
45
+ filter: "blur(0px)",
46
+ transition: {
47
+ y: {
48
+ type: "spring",
49
+ stiffness: 210,
50
+ damping: 24,
51
+ mass: .85
52
+ },
53
+ scale: {
54
+ type: "spring",
55
+ stiffness: 250,
56
+ damping: 24,
57
+ mass: .75
58
+ },
59
+ rotate: {
60
+ duration: .28,
61
+ ease: EASE_OUT
62
+ },
63
+ opacity: {
64
+ duration: .28,
65
+ ease: EASE_OUT
66
+ },
67
+ filter: {
68
+ duration: .42,
69
+ ease: EASE_OUT
70
+ }
71
+ }
72
+ },
73
+ exit: {
74
+ opacity: .5,
75
+ y: "-80%",
76
+ scale: .96,
77
+ rotate: 8,
78
+ filter: "blur(6px)",
79
+ transition: {
80
+ duration: .22,
81
+ ease: EASE_OUT
82
+ }
83
+ }
84
+ };
85
+ const TEXT_ROLL_VARIANTS = {
86
+ initial: {
87
+ opacity: .76,
88
+ y: "85%",
89
+ filter: "blur(6px)"
90
+ },
91
+ animate: {
92
+ opacity: 1,
93
+ y: "0%",
94
+ filter: "blur(0px)",
95
+ transition: {
96
+ y: {
97
+ type: "spring",
98
+ stiffness: 210,
99
+ damping: 24,
100
+ mass: .85
101
+ },
102
+ opacity: {
103
+ duration: .3,
104
+ ease: EASE_OUT
105
+ },
106
+ filter: {
107
+ duration: .42,
108
+ ease: EASE_OUT
109
+ }
110
+ }
111
+ },
112
+ exit: {
113
+ opacity: .5,
114
+ y: "-85%",
115
+ filter: "blur(6px)",
116
+ transition: {
117
+ duration: .2,
118
+ ease: EASE_OUT
119
+ }
120
+ }
121
+ };
122
+ function AnimatedBadge({ status = "neutral", size = "md", children, icon, showIcon = true, pulse = status === "loading", contentKey, className, ...rest }) {
123
+ const reduce = useReducedMotion();
124
+ const Icon = ICONS[status];
125
+ const resolvedContentKey = contentKey ?? (typeof children === "string" || typeof children === "number" ? children : status);
126
+ return /* @__PURE__ */ jsxs(motion.span, {
127
+ layout: true,
128
+ transition: {
129
+ type: "spring",
130
+ stiffness: 420,
131
+ damping: 30,
132
+ mass: .7
133
+ },
134
+ className: cn("relative inline-flex shrink-0 items-center overflow-hidden whitespace-nowrap rounded-full border font-medium tabular-nums", "transition-colors duration-300", STATUS_CLASS[status], SIZE_CLASS[size], className),
135
+ ...rest,
136
+ children: [
137
+ pulse && !reduce ? /* @__PURE__ */ jsx(motion.span, {
138
+ "aria-hidden": true,
139
+ className: "absolute inset-0 rounded-full bg-current opacity-10",
140
+ animate: {
141
+ scale: [
142
+ .94,
143
+ 1.08,
144
+ .94
145
+ ],
146
+ opacity: [
147
+ .08,
148
+ .16,
149
+ .08
150
+ ]
151
+ },
152
+ transition: {
153
+ duration: 1.6,
154
+ repeat: Infinity,
155
+ ease: "easeInOut"
156
+ }
157
+ }) : null,
158
+ showIcon ? /* @__PURE__ */ jsx("span", {
159
+ className: "relative z-10 inline-flex items-center justify-center overflow-hidden",
160
+ children: /* @__PURE__ */ jsx(AnimatePresence, {
161
+ mode: "popLayout",
162
+ initial: false,
163
+ children: /* @__PURE__ */ jsx(motion.span, {
164
+ "aria-hidden": true,
165
+ "data-badge-icon": true,
166
+ variants: ICON_ROLL_VARIANTS,
167
+ initial: reduce ? false : "initial",
168
+ animate: reduce ? { opacity: 1 } : "animate",
169
+ exit: reduce ? void 0 : "exit",
170
+ className: "inline-flex will-change-transform",
171
+ children: status === "loading" && !reduce && !icon ? /* @__PURE__ */ jsx(motion.span, {
172
+ animate: { rotate: 360 },
173
+ transition: {
174
+ duration: 1,
175
+ repeat: Infinity,
176
+ ease: "linear"
177
+ },
178
+ className: "inline-flex",
179
+ children: /* @__PURE__ */ jsx(Icon, { className: ICON_CLASS[size] })
180
+ }) : icon ?? /* @__PURE__ */ jsx(Icon, { className: ICON_CLASS[size] })
181
+ }, status)
182
+ })
183
+ }) : null,
184
+ children != null ? /* @__PURE__ */ jsx("span", {
185
+ className: "relative z-10 inline-flex overflow-hidden",
186
+ children: /* @__PURE__ */ jsx(AnimatePresence, {
187
+ mode: "popLayout",
188
+ initial: false,
189
+ children: /* @__PURE__ */ jsx(motion.span, {
190
+ "data-badge-label": true,
191
+ variants: TEXT_ROLL_VARIANTS,
192
+ initial: reduce ? false : "initial",
193
+ animate: reduce ? { opacity: 1 } : "animate",
194
+ exit: reduce ? void 0 : "exit",
195
+ className: "inline-block will-change-transform",
196
+ children
197
+ }, resolvedContentKey)
198
+ })
199
+ }) : null
200
+ ]
201
+ });
202
+ }
203
+ //#endregion
204
+ export { AnimatedBadge };
205
+
206
+ //# sourceMappingURL=animated-badge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"animated-badge.js","names":[],"sources":["../../../src/components/motion/animated-badge.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { AlertTriangle, Check, Circle, Info, LoaderCircle, type LucideIcon, X } from \"lucide-react\";\nimport {\n AnimatePresence,\n type HTMLMotionProps,\n motion,\n useReducedMotion,\n type Variants,\n} from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_OUT } from \"../../lib/ease\";\n\nexport type AnimatedBadgeStatus = \"neutral\" | \"info\" | \"success\" | \"warning\" | \"danger\" | \"loading\";\n\nexport type AnimatedBadgeSize = \"sm\" | \"md\";\n\nexport interface AnimatedBadgeProps extends Omit<HTMLMotionProps<\"span\">, \"children\"> {\n status?: AnimatedBadgeStatus;\n size?: AnimatedBadgeSize;\n children?: ReactNode;\n icon?: ReactNode;\n showIcon?: boolean;\n pulse?: boolean;\n contentKey?: string | number;\n}\n\nconst STATUS_CLASS: Record<AnimatedBadgeStatus, string> = {\n neutral: \"border-border bg-card text-muted-foreground\",\n info: \"border-primary/30 bg-primary/10 text-primary\",\n success: \"border-emerald-500/30 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400\",\n warning: \"border-amber-500/30 bg-amber-500/10 text-amber-600 dark:text-amber-400\",\n danger: \"border-destructive/30 bg-destructive/10 text-destructive\",\n loading: \"border-primary/30 bg-primary/10 text-primary\",\n};\n\nconst SIZE_CLASS: Record<AnimatedBadgeSize, string> = {\n sm: \"h-6 gap-1.5 px-2 text-[11px]\",\n md: \"h-8 gap-2 px-3 text-xs\",\n};\n\nconst ICON_CLASS: Record<AnimatedBadgeSize, string> = {\n sm: \"h-3 w-3\",\n md: \"h-3.5 w-3.5\",\n};\n\nconst ICONS: Record<AnimatedBadgeStatus, LucideIcon> = {\n neutral: Circle,\n info: Info,\n success: Check,\n warning: AlertTriangle,\n danger: X,\n loading: LoaderCircle,\n};\n\nconst ICON_ROLL_VARIANTS: Variants = {\n initial: {\n opacity: 0.72,\n y: \"80%\",\n scale: 0.92,\n rotate: -8,\n filter: \"blur(6px)\",\n },\n animate: {\n opacity: 1,\n y: \"0%\",\n scale: 1,\n rotate: 0,\n filter: \"blur(0px)\",\n transition: {\n y: { type: \"spring\", stiffness: 210, damping: 24, mass: 0.85 },\n scale: { type: \"spring\", stiffness: 250, damping: 24, mass: 0.75 },\n rotate: { duration: 0.28, ease: EASE_OUT },\n opacity: { duration: 0.28, ease: EASE_OUT },\n filter: { duration: 0.42, ease: EASE_OUT },\n },\n },\n exit: {\n opacity: 0.5,\n y: \"-80%\",\n scale: 0.96,\n rotate: 8,\n filter: \"blur(6px)\",\n transition: { duration: 0.22, ease: EASE_OUT },\n },\n};\n\nconst TEXT_ROLL_VARIANTS: Variants = {\n initial: { opacity: 0.76, y: \"85%\", filter: \"blur(6px)\" },\n animate: {\n opacity: 1,\n y: \"0%\",\n filter: \"blur(0px)\",\n transition: {\n y: { type: \"spring\", stiffness: 210, damping: 24, mass: 0.85 },\n opacity: { duration: 0.3, ease: EASE_OUT },\n filter: { duration: 0.42, ease: EASE_OUT },\n },\n },\n exit: {\n opacity: 0.5,\n y: \"-85%\",\n filter: \"blur(6px)\",\n transition: { duration: 0.2, ease: EASE_OUT },\n },\n};\n\nexport function AnimatedBadge({\n status = \"neutral\",\n size = \"md\",\n children,\n icon,\n showIcon = true,\n pulse = status === \"loading\",\n contentKey,\n className,\n ...rest\n}: AnimatedBadgeProps) {\n const reduce = useReducedMotion();\n const Icon = ICONS[status];\n const resolvedContentKey =\n contentKey ??\n (typeof children === \"string\" || typeof children === \"number\" ? children : status);\n\n return (\n <motion.span\n layout\n transition={{ type: \"spring\", stiffness: 420, damping: 30, mass: 0.7 }}\n className={cn(\n \"relative inline-flex shrink-0 items-center overflow-hidden whitespace-nowrap rounded-full border font-medium tabular-nums\",\n \"transition-colors duration-300\",\n STATUS_CLASS[status],\n SIZE_CLASS[size],\n className,\n )}\n {...rest}\n >\n {pulse && !reduce ? (\n <motion.span\n aria-hidden\n className=\"absolute inset-0 rounded-full bg-current opacity-10\"\n animate={{ scale: [0.94, 1.08, 0.94], opacity: [0.08, 0.16, 0.08] }}\n transition={{ duration: 1.6, repeat: Infinity, ease: \"easeInOut\" }}\n />\n ) : null}\n {showIcon ? (\n <span className=\"relative z-10 inline-flex items-center justify-center overflow-hidden\">\n <AnimatePresence mode=\"popLayout\" initial={false}>\n <motion.span\n key={status}\n aria-hidden\n data-badge-icon\n variants={ICON_ROLL_VARIANTS}\n initial={reduce ? false : \"initial\"}\n animate={reduce ? { opacity: 1 } : \"animate\"}\n exit={reduce ? undefined : \"exit\"}\n className=\"inline-flex will-change-transform\"\n >\n {status === \"loading\" && !reduce && !icon ? (\n <motion.span\n animate={{ rotate: 360 }}\n transition={{ duration: 1, repeat: Infinity, ease: \"linear\" }}\n className=\"inline-flex\"\n >\n <Icon className={ICON_CLASS[size]} />\n </motion.span>\n ) : (\n (icon ?? <Icon className={ICON_CLASS[size]} />)\n )}\n </motion.span>\n </AnimatePresence>\n </span>\n ) : null}\n {children != null ? (\n <span className=\"relative z-10 inline-flex overflow-hidden\">\n <AnimatePresence mode=\"popLayout\" initial={false}>\n <motion.span\n key={resolvedContentKey}\n data-badge-label\n variants={TEXT_ROLL_VARIANTS}\n initial={reduce ? false : \"initial\"}\n animate={reduce ? { opacity: 1 } : \"animate\"}\n exit={reduce ? undefined : \"exit\"}\n className=\"inline-block will-change-transform\"\n >\n {children}\n </motion.span>\n </AnimatePresence>\n </span>\n ) : null}\n </motion.span>\n );\n}\n"],"mappings":";;;;;;;AA6BA,MAAM,eAAoD;CACxD,SAAS;CACT,M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C,QAAD;IAAM,WAAU;IACd,UAAA,oBAAC,iBAAD;KAAiB,MAAK;KAAY,SAAS;KACzC,UAAA,oBAAC,OAAO,MAAR;MAEE,oBAAA;MACA,UAAU;MACV,SAAS,SAAS,QAAQ;MAC1B,SAAS,SAAS,EAAE,SAAS,EAAE,IAAI;MACnC,MAAM,SAAS,KAAA,IAAY;MAC3B,WAAU;MAET;KACU,GATN,kBASM;IACE,CAAA;GACb,CAAA,IACJ;EACO;;AAEjB"}
@@ -0,0 +1,12 @@
1
+ //#region src/components/motion/animated-number.d.ts
2
+ interface AnimatedNumberProps {
3
+ value: number;
4
+ duration?: number;
5
+ format?: (n: number) => string;
6
+ className?: string;
7
+ startOnView?: boolean;
8
+ }
9
+ declare function AnimatedNumber({ value, duration, format, className, startOnView }: AnimatedNumberProps): import("react").JSX.Element;
10
+ //#endregion
11
+ export { AnimatedNumber, AnimatedNumberProps };
12
+ //# sourceMappingURL=animated-number.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"animated-number.d.ts","names":[],"sources":["../../../src/components/motion/animated-number.tsx"],"mappings":";UAQiB;EACf;EACA;EACA,UAAU;EACV;EACA;;iBAGc,iBACd,OACA,UACA,QACA,WACA,eACC,sCAAmB,IAAA"}
@@ -0,0 +1,47 @@
1
+ "use client";
2
+ import { EASE_OUT } from "../../lib/ease.js";
3
+ import { useEffect, useRef, useState } from "react";
4
+ import { cn } from "@kumix/utils";
5
+ import { animate, useInView, useReducedMotion } from "motion/react";
6
+ import { jsx } from "react/jsx-runtime";
7
+ //#region src/components/motion/animated-number.tsx
8
+ function AnimatedNumber({ value, duration = 1.2, format = (n) => Math.round(n).toLocaleString(), className, startOnView = true }) {
9
+ const ref = useRef(null);
10
+ const inView = useInView(ref, {
11
+ once: true,
12
+ amount: .6
13
+ });
14
+ const reduce = useReducedMotion();
15
+ const [display, setDisplay] = useState(0);
16
+ const fromRef = useRef(0);
17
+ useEffect(() => {
18
+ if (startOnView && !inView) return;
19
+ if (reduce) {
20
+ fromRef.current = value;
21
+ setDisplay(value);
22
+ return;
23
+ }
24
+ const controls = animate(fromRef.current, value, {
25
+ duration,
26
+ ease: EASE_OUT,
27
+ onUpdate: (v) => setDisplay(v)
28
+ });
29
+ fromRef.current = value;
30
+ return () => controls.stop();
31
+ }, [
32
+ value,
33
+ duration,
34
+ inView,
35
+ startOnView,
36
+ reduce
37
+ ]);
38
+ return /* @__PURE__ */ jsx("span", {
39
+ ref,
40
+ className: cn("tabular-nums", className),
41
+ children: format(display)
42
+ });
43
+ }
44
+ //#endregion
45
+ export { AnimatedNumber };
46
+
47
+ //# sourceMappingURL=animated-number.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"animated-number.js","names":[],"sources":["../../../src/components/motion/animated-number.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useRef, useState } from \"react\";\nimport { animate, useInView, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_OUT } from \"../../lib/ease\";\n\nexport interface AnimatedNumberProps {\n value: number;\n duration?: number;\n format?: (n: number) => string;\n className?: string;\n startOnView?: boolean;\n}\n\nexport function AnimatedNumber({\n value,\n duration = 1.2,\n format = (n) => Math.round(n).toLocaleString(),\n className,\n startOnView = true,\n}: AnimatedNumberProps) {\n const ref = useRef<HTMLSpanElement>(null);\n const inView = useInView(ref, { once: true, amount: 0.6 });\n const reduce = useReducedMotion();\n const [display, setDisplay] = useState(0);\n const fromRef = useRef(0);\n\n useEffect(() => {\n if (startOnView && !inView) return;\n if (reduce) {\n fromRef.current = value;\n setDisplay(value);\n return;\n }\n const controls = animate(fromRef.current, value, {\n duration,\n ease: EASE_OUT,\n onUpdate: (v) => setDisplay(v),\n });\n fromRef.current = value;\n return () => controls.stop();\n }, [value, duration, inView, startOnView, reduce]);\n\n return (\n <span ref={ref} className={cn(\"tabular-nums\", className)}>\n {format(display)}\n </span>\n );\n}\n"],"mappings":";;;;;;;AAgBA,SAAgB,eAAe,EAC7B,OACA,WAAW,KACX,UAAU,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,eAAe,GAC7C,WACA,cAAc,QACQ;CACtB,MAAM,MAAM,OAAwB,IAAI;CACxC,MAAM,SAAS,UAAU,KAAK;EAAE,MAAM;EAAM,QAAQ;CAAI,CAAC;CACzD,MAAM,SAAS,iBAAiB;CAChC,MAAM,CAAC,SAAS,cAAc,SAAS,CAAC;CACxC,MAAM,UAAU,OAAO,CAAC;CAExB,gBAAgB;EACd,IAAI,eAAe,CAAC,QAAQ;EAC5B,IAAI,QAAQ;GACV,QAAQ,UAAU;GAClB,WAAW,KAAK;GAChB;EACF;EACA,MAAM,WAAW,QAAQ,QAAQ,SAAS,OAAO;GAC/C;GACA,MAAM;GACN,WAAW,MAAM,WAAW,CAAC;EAC/B,CAAC;EACD,QAAQ,UAAU;EAClB,aAAa,SAAS,KAAK;CAC7B,GAAG;EAAC;EAAO;EAAU;EAAQ;EAAa;CAAM,CAAC;CAEjD,OACE,oBAAC,QAAD;EAAW;EAAK,WAAW,GAAG,gBAAgB,SAAS;EACpD,UAAA,OAAO,OAAO;CACX,CAAA;AAEV"}
@@ -0,0 +1,97 @@
1
+ import { ButtonHTMLAttributes, CSSProperties, HTMLAttributes, ReactNode } from "react";
2
+ import { HTMLMotionProps } from "motion/react";
3
+ //#region src/components/motion/animated-sidebar.d.ts
4
+ type SidebarState = "expanded" | "collapsed";
5
+ type SidebarSide = "left" | "right";
6
+ type SidebarVariant = "sidebar" | "floating" | "inset";
7
+ type SidebarCollapsible = "offcanvas" | "icon" | "none";
8
+ interface AnimatedSidebarContextValue {
9
+ isMobile: boolean;
10
+ layoutId: string;
11
+ open: boolean;
12
+ openMobile: boolean;
13
+ reduce: boolean;
14
+ setOpen: (open: boolean) => void;
15
+ setOpenMobile: (open: boolean) => void;
16
+ state: SidebarState;
17
+ toggleSidebar: () => void;
18
+ triggerRef: React.RefObject<HTMLButtonElement | null>;
19
+ }
20
+ declare function useAnimatedSidebar(): AnimatedSidebarContextValue;
21
+ type SidebarProviderStyle = CSSProperties & {
22
+ "--sidebar-width"?: string;
23
+ "--sidebar-width-icon"?: string;
24
+ "--sidebar-width-mobile"?: string;
25
+ };
26
+ interface AnimatedSidebarProviderProps extends HTMLAttributes<HTMLDivElement> {
27
+ open?: boolean;
28
+ defaultOpen?: boolean;
29
+ onOpenChange?: (open: boolean) => void;
30
+ openMobile?: boolean;
31
+ defaultOpenMobile?: boolean;
32
+ onOpenMobileChange?: (open: boolean) => void;
33
+ style?: SidebarProviderStyle;
34
+ }
35
+ declare function AnimatedSidebarProvider({ children, open, defaultOpen, onOpenChange, openMobile, defaultOpenMobile, onOpenMobileChange, className, style, ...props }: AnimatedSidebarProviderProps): import("react").JSX.Element;
36
+ interface AnimatedSidebarProps extends Omit<HTMLMotionProps<"aside">, "children"> {
37
+ children?: ReactNode;
38
+ side?: SidebarSide;
39
+ variant?: SidebarVariant;
40
+ collapsible?: SidebarCollapsible;
41
+ ariaLabel?: string;
42
+ panelClassName?: string;
43
+ }
44
+ declare const AnimatedSidebar: import("react").ForwardRefExoticComponent<Omit<AnimatedSidebarProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
45
+ interface AnimatedSidebarTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement> {}
46
+ declare const AnimatedSidebarTrigger: import("react").ForwardRefExoticComponent<AnimatedSidebarTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
47
+ interface AnimatedSidebarCloseProps extends ButtonHTMLAttributes<HTMLButtonElement> {}
48
+ declare const AnimatedSidebarClose: import("react").ForwardRefExoticComponent<AnimatedSidebarCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
49
+ interface AnimatedSidebarRailProps extends ButtonHTMLAttributes<HTMLButtonElement> {}
50
+ declare const AnimatedSidebarRail: import("react").ForwardRefExoticComponent<AnimatedSidebarRailProps & import("react").RefAttributes<HTMLButtonElement>>;
51
+ interface AnimatedSidebarInsetProps extends HTMLMotionProps<"main"> {}
52
+ declare const AnimatedSidebarInset: import("react").ForwardRefExoticComponent<Omit<AnimatedSidebarInsetProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
53
+ declare const AnimatedSidebarHeader: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
54
+ declare const AnimatedSidebarContent: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
55
+ declare const AnimatedSidebarFooter: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
56
+ declare const AnimatedSidebarGroup: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
57
+ declare const AnimatedSidebarGroupLabel: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
58
+ declare const AnimatedSidebarGroupContent: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
59
+ declare const AnimatedSidebarMenu: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLUListElement> & import("react").RefAttributes<HTMLUListElement>>;
60
+ declare const AnimatedSidebarMenuItem: import("react").ForwardRefExoticComponent<Omit<HTMLMotionProps<"li">, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
61
+ interface AnimatedSidebarMenuSubProps extends Omit<HTMLMotionProps<"ul">, "children"> {
62
+ open: boolean;
63
+ children?: ReactNode;
64
+ }
65
+ declare const AnimatedSidebarMenuSub: import("react").ForwardRefExoticComponent<Omit<AnimatedSidebarMenuSubProps, "ref"> & import("react").RefAttributes<HTMLUListElement>>;
66
+ declare const AnimatedSidebarMenuSubItem: import("react").ForwardRefExoticComponent<Omit<HTMLMotionProps<"li">, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
67
+ interface AnimatedSidebarMenuSubButtonProps {
68
+ children: ReactNode;
69
+ icon?: ReactNode;
70
+ href?: string;
71
+ isActive?: boolean;
72
+ disabled?: boolean;
73
+ closeOnSelect?: boolean;
74
+ target?: "_blank" | "_self" | "_parent" | "_top";
75
+ rel?: string;
76
+ onSelect?: () => void;
77
+ className?: string;
78
+ }
79
+ declare function AnimatedSidebarMenuSubButton({ children, icon, href, isActive, disabled, closeOnSelect, target, rel, onSelect, className }: AnimatedSidebarMenuSubButtonProps): import("react").JSX.Element;
80
+ interface AnimatedSidebarMenuButtonProps {
81
+ children: ReactNode;
82
+ icon?: ReactNode;
83
+ badge?: ReactNode;
84
+ href?: string;
85
+ isActive?: boolean;
86
+ ariaExpanded?: boolean;
87
+ disabled?: boolean;
88
+ closeOnSelect?: boolean;
89
+ target?: "_blank" | "_self" | "_parent" | "_top";
90
+ rel?: string;
91
+ onSelect?: () => void;
92
+ className?: string;
93
+ }
94
+ declare function AnimatedSidebarMenuButton({ children, icon, badge, href, isActive, ariaExpanded, disabled, closeOnSelect, target, rel, onSelect, className }: AnimatedSidebarMenuButtonProps): import("react").JSX.Element;
95
+ //#endregion
96
+ export { AnimatedSidebar, AnimatedSidebarClose, AnimatedSidebarCloseProps, AnimatedSidebarContent, AnimatedSidebarFooter, AnimatedSidebarGroup, AnimatedSidebarGroupContent, AnimatedSidebarGroupLabel, AnimatedSidebarHeader, AnimatedSidebarInset, AnimatedSidebarInsetProps, AnimatedSidebarMenu, AnimatedSidebarMenuButton, AnimatedSidebarMenuButtonProps, AnimatedSidebarMenuItem, AnimatedSidebarMenuSub, AnimatedSidebarMenuSubButton, AnimatedSidebarMenuSubButtonProps, AnimatedSidebarMenuSubItem, AnimatedSidebarMenuSubProps, AnimatedSidebarProps, AnimatedSidebarProvider, AnimatedSidebarProviderProps, AnimatedSidebarRail, AnimatedSidebarRailProps, AnimatedSidebarTrigger, AnimatedSidebarTriggerProps, useAnimatedSidebar };
97
+ //# sourceMappingURL=animated-sidebar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"animated-sidebar.d.ts","names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