@kumix/ui 0.2.4 → 0.3.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 (483) hide show
  1. package/README.md +45 -10
  2. package/dist/components/custom/confirm-dialog.d.ts +16 -0
  3. package/dist/components/custom/confirm-dialog.d.ts.map +1 -0
  4. package/dist/components/custom/confirm-dialog.js +93 -0
  5. package/dist/components/custom/confirm-dialog.js.map +1 -0
  6. package/dist/components/custom/toast.d.ts +20 -0
  7. package/dist/components/custom/toast.d.ts.map +1 -0
  8. package/dist/components/custom/toast.js +73 -0
  9. package/dist/components/custom/toast.js.map +1 -0
  10. package/dist/components/motion/action-swap-blur.d.ts +11 -0
  11. package/dist/components/motion/action-swap-blur.d.ts.map +1 -0
  12. package/dist/components/motion/action-swap-blur.js +26 -0
  13. package/dist/components/motion/action-swap-blur.js.map +1 -0
  14. package/dist/components/motion/action-swap-cascade.d.ts +11 -0
  15. package/dist/components/motion/action-swap-cascade.d.ts.map +1 -0
  16. package/dist/components/motion/action-swap-cascade.js +26 -0
  17. package/dist/components/motion/action-swap-cascade.js.map +1 -0
  18. package/dist/components/motion/action-swap-roll.d.ts +11 -0
  19. package/dist/components/motion/action-swap-roll.d.ts.map +1 -0
  20. package/dist/components/motion/action-swap-roll.js +26 -0
  21. package/dist/components/motion/action-swap-roll.js.map +1 -0
  22. package/dist/components/motion/action-swap.d.ts +41 -0
  23. package/dist/components/motion/action-swap.d.ts.map +1 -0
  24. package/dist/components/motion/action-swap.js +261 -0
  25. package/dist/components/motion/action-swap.js.map +1 -0
  26. package/dist/components/motion/animated-badge.d.ts +18 -0
  27. package/dist/components/motion/animated-badge.d.ts.map +1 -0
  28. package/dist/components/motion/animated-badge.js +206 -0
  29. package/dist/components/motion/animated-badge.js.map +1 -0
  30. package/dist/components/motion/animated-number.d.ts +12 -0
  31. package/dist/components/motion/animated-number.d.ts.map +1 -0
  32. package/dist/components/motion/animated-number.js +47 -0
  33. package/dist/components/motion/animated-number.js.map +1 -0
  34. package/dist/components/motion/animated-sidebar.d.ts +97 -0
  35. package/dist/components/motion/animated-sidebar.d.ts.map +1 -0
  36. package/dist/components/motion/animated-sidebar.js +611 -0
  37. package/dist/components/motion/animated-sidebar.js.map +1 -0
  38. package/dist/components/motion/animated-toast-stack.d.ts +65 -0
  39. package/dist/components/motion/animated-toast-stack.d.ts.map +1 -0
  40. package/dist/components/motion/animated-toast-stack.js +303 -0
  41. package/dist/components/motion/animated-toast-stack.js.map +1 -0
  42. package/dist/components/motion/attachment-upload.d.ts +47 -0
  43. package/dist/components/motion/attachment-upload.d.ts.map +1 -0
  44. package/dist/components/motion/attachment-upload.js +737 -0
  45. package/dist/components/motion/attachment-upload.js.map +1 -0
  46. package/dist/components/motion/availability-scheduler/copy-menu.d.ts +10 -0
  47. package/dist/components/motion/availability-scheduler/copy-menu.d.ts.map +1 -0
  48. package/dist/components/motion/availability-scheduler/copy-menu.js +3 -0
  49. package/dist/components/motion/availability-scheduler/day-row.d.ts +15 -0
  50. package/dist/components/motion/availability-scheduler/day-row.d.ts.map +1 -0
  51. package/dist/components/motion/availability-scheduler/day-row.js +181 -0
  52. package/dist/components/motion/availability-scheduler/day-row.js.map +1 -0
  53. package/dist/components/motion/availability-scheduler/icon-button.d.ts +15 -0
  54. package/dist/components/motion/availability-scheduler/icon-button.d.ts.map +1 -0
  55. package/dist/components/motion/availability-scheduler/icon-button.js +24 -0
  56. package/dist/components/motion/availability-scheduler/icon-button.js.map +1 -0
  57. package/dist/components/motion/availability-scheduler/index.d.ts +14 -0
  58. package/dist/components/motion/availability-scheduler/index.d.ts.map +1 -0
  59. package/dist/components/motion/availability-scheduler/index.js +59 -0
  60. package/dist/components/motion/availability-scheduler/index.js.map +1 -0
  61. package/dist/components/motion/availability-scheduler/time-select.d.ts +10 -0
  62. package/dist/components/motion/availability-scheduler/time-select.d.ts.map +1 -0
  63. package/dist/components/motion/availability-scheduler/time-select.js +26 -0
  64. package/dist/components/motion/availability-scheduler/time-select.js.map +1 -0
  65. package/dist/components/motion/bloom-menu.d.ts +17 -0
  66. package/dist/components/motion/bloom-menu.d.ts.map +1 -0
  67. package/dist/components/motion/bloom-menu.js +170 -0
  68. package/dist/components/motion/bloom-menu.js.map +1 -0
  69. package/dist/components/motion/bottom-sheet.d.ts +19 -0
  70. package/dist/components/motion/bottom-sheet.d.ts.map +1 -0
  71. package/dist/components/motion/bottom-sheet.js +146 -0
  72. package/dist/components/motion/bottom-sheet.js.map +1 -0
  73. package/dist/components/motion/bounce-sidebar.d.ts +26 -0
  74. package/dist/components/motion/bounce-sidebar.d.ts.map +1 -0
  75. package/dist/components/motion/bounce-sidebar.js +164 -0
  76. package/dist/components/motion/bounce-sidebar.js.map +1 -0
  77. package/dist/components/motion/bouncy-accordion.d.ts +32 -0
  78. package/dist/components/motion/bouncy-accordion.d.ts.map +1 -0
  79. package/dist/components/motion/bouncy-accordion.js +172 -0
  80. package/dist/components/motion/bouncy-accordion.js.map +1 -0
  81. package/dist/components/motion/button/base.d.ts +17 -0
  82. package/dist/components/motion/button/base.d.ts.map +1 -0
  83. package/dist/components/motion/button/base.js +86 -0
  84. package/dist/components/motion/button/base.js.map +1 -0
  85. package/dist/components/motion/button/index.d.ts +4 -0
  86. package/dist/components/motion/button/index.js +5 -0
  87. package/dist/components/motion/button/magnetic.d.ts +12 -0
  88. package/dist/components/motion/button/magnetic.d.ts.map +1 -0
  89. package/dist/components/motion/button/magnetic.js +21 -0
  90. package/dist/components/motion/button/magnetic.js.map +1 -0
  91. package/dist/components/motion/button/stateful.d.ts +16 -0
  92. package/dist/components/motion/button/stateful.d.ts.map +1 -0
  93. package/dist/components/motion/button/stateful.js +190 -0
  94. package/dist/components/motion/button/stateful.js.map +1 -0
  95. package/dist/components/motion/center-morph-modal.d.ts +43 -0
  96. package/dist/components/motion/center-morph-modal.d.ts.map +1 -0
  97. package/dist/components/motion/center-morph-modal.js +238 -0
  98. package/dist/components/motion/center-morph-modal.js.map +1 -0
  99. package/dist/components/motion/checkbox.d.ts +15 -0
  100. package/dist/components/motion/checkbox.d.ts.map +1 -0
  101. package/dist/components/motion/checkbox.js +81 -0
  102. package/dist/components/motion/checkbox.js.map +1 -0
  103. package/dist/components/motion/chromatic-text-reveal.d.ts +31 -0
  104. package/dist/components/motion/chromatic-text-reveal.d.ts.map +1 -0
  105. package/dist/components/motion/chromatic-text-reveal.js +132 -0
  106. package/dist/components/motion/chromatic-text-reveal.js.map +1 -0
  107. package/dist/components/motion/command-palette.d.ts +26 -0
  108. package/dist/components/motion/command-palette.d.ts.map +1 -0
  109. package/dist/components/motion/command-palette.js +246 -0
  110. package/dist/components/motion/command-palette.js.map +1 -0
  111. package/dist/components/motion/context-menu.d.ts +71 -0
  112. package/dist/components/motion/context-menu.d.ts.map +1 -0
  113. package/dist/components/motion/context-menu.js +454 -0
  114. package/dist/components/motion/context-menu.js.map +1 -0
  115. package/dist/components/motion/cylinder-carousel.d.ts +40 -0
  116. package/dist/components/motion/cylinder-carousel.d.ts.map +1 -0
  117. package/dist/components/motion/cylinder-carousel.js +274 -0
  118. package/dist/components/motion/cylinder-carousel.js.map +1 -0
  119. package/dist/components/motion/dock.d.ts +24 -0
  120. package/dist/components/motion/dock.d.ts.map +1 -0
  121. package/dist/components/motion/dock.js +62 -0
  122. package/dist/components/motion/dock.js.map +1 -0
  123. package/dist/components/motion/drawer.d.ts +19 -0
  124. package/dist/components/motion/drawer.d.ts.map +1 -0
  125. package/dist/components/motion/drawer.js +58 -0
  126. package/dist/components/motion/drawer.js.map +1 -0
  127. package/dist/components/motion/dynamic-island.d.ts +22 -0
  128. package/dist/components/motion/dynamic-island.d.ts.map +1 -0
  129. package/dist/components/motion/dynamic-island.js +143 -0
  130. package/dist/components/motion/dynamic-island.js.map +1 -0
  131. package/dist/components/motion/expandable-action-bar.d.ts +52 -0
  132. package/dist/components/motion/expandable-action-bar.d.ts.map +1 -0
  133. package/dist/components/motion/expandable-action-bar.js +191 -0
  134. package/dist/components/motion/expandable-action-bar.js.map +1 -0
  135. package/dist/components/motion/expandable-tabs.d.ts +33 -0
  136. package/dist/components/motion/expandable-tabs.d.ts.map +1 -0
  137. package/dist/components/motion/expandable-tabs.js +291 -0
  138. package/dist/components/motion/expandable-tabs.js.map +1 -0
  139. package/dist/components/motion/feedback-widget.d.ts +18 -0
  140. package/dist/components/motion/feedback-widget.d.ts.map +1 -0
  141. package/dist/components/motion/feedback-widget.js +413 -0
  142. package/dist/components/motion/feedback-widget.js.map +1 -0
  143. package/dist/components/motion/file-upload.d.ts +48 -0
  144. package/dist/components/motion/file-upload.d.ts.map +1 -0
  145. package/dist/components/motion/file-upload.js +382 -0
  146. package/dist/components/motion/file-upload.js.map +1 -0
  147. package/dist/components/motion/hold-action-button.d.ts +17 -0
  148. package/dist/components/motion/hold-action-button.d.ts.map +1 -0
  149. package/dist/components/motion/hold-action-button.js +158 -0
  150. package/dist/components/motion/hold-action-button.js.map +1 -0
  151. package/dist/components/motion/infinite-masonry.d.ts +31 -0
  152. package/dist/components/motion/infinite-masonry.d.ts.map +1 -0
  153. package/dist/components/motion/infinite-masonry.js +223 -0
  154. package/dist/components/motion/infinite-masonry.js.map +1 -0
  155. package/dist/components/motion/input.d.ts +29 -0
  156. package/dist/components/motion/input.d.ts.map +1 -0
  157. package/dist/components/motion/input.js +126 -0
  158. package/dist/components/motion/input.js.map +1 -0
  159. package/dist/components/motion/loader.d.ts +17 -0
  160. package/dist/components/motion/loader.d.ts.map +1 -0
  161. package/dist/components/motion/loader.js +791 -0
  162. package/dist/components/motion/loader.js.map +1 -0
  163. package/dist/components/motion/magnetic.d.ts +11 -0
  164. package/dist/components/motion/magnetic.d.ts.map +1 -0
  165. package/dist/components/motion/magnetic.js +44 -0
  166. package/dist/components/motion/magnetic.js.map +1 -0
  167. package/dist/components/motion/marquee.d.ts +15 -0
  168. package/dist/components/motion/marquee.d.ts.map +1 -0
  169. package/dist/components/motion/marquee.js +35 -0
  170. package/dist/components/motion/marquee.js.map +1 -0
  171. package/dist/components/motion/morphing-modal.d.ts +15 -0
  172. package/dist/components/motion/morphing-modal.d.ts.map +1 -0
  173. package/dist/components/motion/morphing-modal.js +117 -0
  174. package/dist/components/motion/morphing-modal.js.map +1 -0
  175. package/dist/components/motion/not-found/glitch.d.ts +6 -0
  176. package/dist/components/motion/not-found/glitch.d.ts.map +1 -0
  177. package/dist/components/motion/not-found/glitch.js +90 -0
  178. package/dist/components/motion/not-found/glitch.js.map +1 -0
  179. package/dist/components/motion/not-found/magnetic.d.ts +6 -0
  180. package/dist/components/motion/not-found/magnetic.d.ts.map +1 -0
  181. package/dist/components/motion/not-found/magnetic.js +47 -0
  182. package/dist/components/motion/not-found/magnetic.js.map +1 -0
  183. package/dist/components/motion/not-found/shared.d.ts +32 -0
  184. package/dist/components/motion/not-found/shared.d.ts.map +1 -0
  185. package/dist/components/motion/not-found/shared.js +52 -0
  186. package/dist/components/motion/not-found/shared.js.map +1 -0
  187. package/dist/components/motion/not-found/spotlight.d.ts +6 -0
  188. package/dist/components/motion/not-found/spotlight.d.ts.map +1 -0
  189. package/dist/components/motion/not-found/spotlight.js +70 -0
  190. package/dist/components/motion/not-found/spotlight.js.map +1 -0
  191. package/dist/components/motion/not-found/stacked.d.ts +6 -0
  192. package/dist/components/motion/not-found/stacked.d.ts.map +1 -0
  193. package/dist/components/motion/not-found/stacked.js +95 -0
  194. package/dist/components/motion/not-found/stacked.js.map +1 -0
  195. package/dist/components/motion/not-found/terminal.d.ts +6 -0
  196. package/dist/components/motion/not-found/terminal.d.ts.map +1 -0
  197. package/dist/components/motion/not-found/terminal.js +90 -0
  198. package/dist/components/motion/not-found/terminal.js.map +1 -0
  199. package/dist/components/motion/notification-stack.d.ts +35 -0
  200. package/dist/components/motion/notification-stack.d.ts.map +1 -0
  201. package/dist/components/motion/notification-stack.js +187 -0
  202. package/dist/components/motion/notification-stack.js.map +1 -0
  203. package/dist/components/motion/number-ticker.d.ts +26 -0
  204. package/dist/components/motion/number-ticker.d.ts.map +1 -0
  205. package/dist/components/motion/number-ticker.js +129 -0
  206. package/dist/components/motion/number-ticker.js.map +1 -0
  207. package/dist/components/motion/otp-input.d.ts +32 -0
  208. package/dist/components/motion/otp-input.d.ts.map +1 -0
  209. package/dist/components/motion/otp-input.js +272 -0
  210. package/dist/components/motion/otp-input.js.map +1 -0
  211. package/dist/components/motion/overflow-actions.d.ts +39 -0
  212. package/dist/components/motion/overflow-actions.d.ts.map +1 -0
  213. package/dist/components/motion/overflow-actions.js +220 -0
  214. package/dist/components/motion/overflow-actions.js.map +1 -0
  215. package/dist/components/motion/parallax.d.ts +21 -0
  216. package/dist/components/motion/parallax.d.ts.map +1 -0
  217. package/dist/components/motion/parallax.js +35 -0
  218. package/dist/components/motion/parallax.js.map +1 -0
  219. package/dist/components/motion/popover-morph.d.ts +38 -0
  220. package/dist/components/motion/popover-morph.d.ts.map +1 -0
  221. package/dist/components/motion/popover-morph.js +167 -0
  222. package/dist/components/motion/popover-morph.js.map +1 -0
  223. package/dist/components/motion/popover.d.ts +40 -0
  224. package/dist/components/motion/popover.d.ts.map +1 -0
  225. package/dist/components/motion/popover.js +393 -0
  226. package/dist/components/motion/popover.js.map +1 -0
  227. package/dist/components/motion/preview-rail.d.ts +26 -0
  228. package/dist/components/motion/preview-rail.d.ts.map +1 -0
  229. package/dist/components/motion/preview-rail.js +134 -0
  230. package/dist/components/motion/preview-rail.js.map +1 -0
  231. package/dist/components/motion/pull-to-refresh.d.ts +28 -0
  232. package/dist/components/motion/pull-to-refresh.d.ts.map +1 -0
  233. package/dist/components/motion/pull-to-refresh.js +389 -0
  234. package/dist/components/motion/pull-to-refresh.js.map +1 -0
  235. package/dist/components/motion/radio.d.ts +22 -0
  236. package/dist/components/motion/radio.d.ts.map +1 -0
  237. package/dist/components/motion/radio.js +79 -0
  238. package/dist/components/motion/radio.js.map +1 -0
  239. package/dist/components/motion/range-slider-bubble.d.ts +16 -0
  240. package/dist/components/motion/range-slider-bubble.d.ts.map +1 -0
  241. package/dist/components/motion/range-slider-bubble.js +117 -0
  242. package/dist/components/motion/range-slider-bubble.js.map +1 -0
  243. package/dist/components/motion/range-slider-fluid.d.ts +18 -0
  244. package/dist/components/motion/range-slider-fluid.d.ts.map +1 -0
  245. package/dist/components/motion/range-slider-fluid.js +63 -0
  246. package/dist/components/motion/range-slider-fluid.js.map +1 -0
  247. package/dist/components/motion/range-slider-ruler.d.ts +19 -0
  248. package/dist/components/motion/range-slider-ruler.d.ts.map +1 -0
  249. package/dist/components/motion/range-slider-ruler.js +142 -0
  250. package/dist/components/motion/range-slider-ruler.js.map +1 -0
  251. package/dist/components/motion/range-slider-wave.d.ts +16 -0
  252. package/dist/components/motion/range-slider-wave.d.ts.map +1 -0
  253. package/dist/components/motion/range-slider-wave.js +57 -0
  254. package/dist/components/motion/range-slider-wave.js.map +1 -0
  255. package/dist/components/motion/range-slider.d.ts +11 -0
  256. package/dist/components/motion/range-slider.d.ts.map +1 -0
  257. package/dist/components/motion/range-slider.js +63 -0
  258. package/dist/components/motion/range-slider.js.map +1 -0
  259. package/dist/components/motion/scroll-progress.d.ts +29 -0
  260. package/dist/components/motion/scroll-progress.d.ts.map +1 -0
  261. package/dist/components/motion/scroll-progress.js +71 -0
  262. package/dist/components/motion/scroll-progress.js.map +1 -0
  263. package/dist/components/motion/scroll-reveal.d.ts +23 -0
  264. package/dist/components/motion/scroll-reveal.d.ts.map +1 -0
  265. package/dist/components/motion/scroll-reveal.js +42 -0
  266. package/dist/components/motion/scroll-reveal.js.map +1 -0
  267. package/dist/components/motion/scroll-to.d.ts +21 -0
  268. package/dist/components/motion/scroll-to.d.ts.map +1 -0
  269. package/dist/components/motion/scroll-to.js +27 -0
  270. package/dist/components/motion/scroll-to.js.map +1 -0
  271. package/dist/components/motion/select-morph.d.ts +41 -0
  272. package/dist/components/motion/select-morph.d.ts.map +1 -0
  273. package/dist/components/motion/select-morph.js +251 -0
  274. package/dist/components/motion/select-morph.js.map +1 -0
  275. package/dist/components/motion/select.d.ts +36 -0
  276. package/dist/components/motion/select.d.ts.map +1 -0
  277. package/dist/components/motion/select.js +319 -0
  278. package/dist/components/motion/select.js.map +1 -0
  279. package/dist/components/motion/shader-background.d.ts +38 -0
  280. package/dist/components/motion/shader-background.d.ts.map +1 -0
  281. package/dist/components/motion/shader-background.js +49 -0
  282. package/dist/components/motion/shader-background.js.map +1 -0
  283. package/dist/components/motion/shared-layout-bg.d.ts +17 -0
  284. package/dist/components/motion/shared-layout-bg.d.ts.map +1 -0
  285. package/dist/components/motion/shared-layout-bg.js +88 -0
  286. package/dist/components/motion/shared-layout-bg.js.map +1 -0
  287. package/dist/components/motion/slide-action-button.d.ts +15 -0
  288. package/dist/components/motion/slide-action-button.d.ts.map +1 -0
  289. package/dist/components/motion/slide-action-button.js +146 -0
  290. package/dist/components/motion/slide-action-button.js.map +1 -0
  291. package/dist/components/motion/smooth-scroll.d.ts +47 -0
  292. package/dist/components/motion/smooth-scroll.d.ts.map +1 -0
  293. package/dist/components/motion/smooth-scroll.js +182 -0
  294. package/dist/components/motion/smooth-scroll.js.map +1 -0
  295. package/dist/components/motion/swipeable-list.d.ts +60 -0
  296. package/dist/components/motion/swipeable-list.d.ts.map +1 -0
  297. package/dist/components/motion/swipeable-list.js +254 -0
  298. package/dist/components/motion/swipeable-list.js.map +1 -0
  299. package/dist/components/motion/switch.d.ts +13 -0
  300. package/dist/components/motion/switch.d.ts.map +1 -0
  301. package/dist/components/motion/switch.js +76 -0
  302. package/dist/components/motion/switch.js.map +1 -0
  303. package/dist/components/motion/table/editable-cell.d.ts +9 -0
  304. package/dist/components/motion/table/editable-cell.d.ts.map +1 -0
  305. package/dist/components/motion/table/editable-cell.js +17 -0
  306. package/dist/components/motion/table/editable-cell.js.map +1 -0
  307. package/dist/components/motion/table/index.d.ts +6 -0
  308. package/dist/components/motion/table/index.d.ts.map +1 -0
  309. package/dist/components/motion/table/index.js +420 -0
  310. package/dist/components/motion/table/index.js.map +1 -0
  311. package/dist/components/motion/table/row-handle.d.ts +15 -0
  312. package/dist/components/motion/table/row-handle.d.ts.map +1 -0
  313. package/dist/components/motion/table/row-handle.js +51 -0
  314. package/dist/components/motion/table/row-handle.js.map +1 -0
  315. package/dist/components/motion/table/skeleton-rows.d.ts +11 -0
  316. package/dist/components/motion/table/skeleton-rows.d.ts.map +1 -0
  317. package/dist/components/motion/table/skeleton-rows.js +23 -0
  318. package/dist/components/motion/table/skeleton-rows.js.map +1 -0
  319. package/dist/components/motion/table/table-header.d.ts +35 -0
  320. package/dist/components/motion/table/table-header.d.ts.map +1 -0
  321. package/dist/components/motion/table/table-header.js +167 -0
  322. package/dist/components/motion/table/table-header.js.map +1 -0
  323. package/dist/components/motion/table/table-menu.d.ts +17 -0
  324. package/dist/components/motion/table/table-menu.d.ts.map +1 -0
  325. package/dist/components/motion/table/table-menu.js +92 -0
  326. package/dist/components/motion/table/table-menu.js.map +1 -0
  327. package/dist/components/motion/tabs.d.ts +29 -0
  328. package/dist/components/motion/tabs.d.ts.map +1 -0
  329. package/dist/components/motion/tabs.js +125 -0
  330. package/dist/components/motion/tabs.js.map +1 -0
  331. package/dist/components/motion/text-cascade.d.ts +15 -0
  332. package/dist/components/motion/text-cascade.d.ts.map +1 -0
  333. package/dist/components/motion/text-cascade.js +21 -0
  334. package/dist/components/motion/text-cascade.js.map +1 -0
  335. package/dist/components/motion/text-reveal.d.ts +25 -0
  336. package/dist/components/motion/text-reveal.d.ts.map +1 -0
  337. package/dist/components/motion/text-reveal.js +94 -0
  338. package/dist/components/motion/text-reveal.js.map +1 -0
  339. package/dist/components/motion/text-shimmer.d.ts +12 -0
  340. package/dist/components/motion/text-shimmer.d.ts.map +1 -0
  341. package/dist/components/motion/text-shimmer.js +15 -0
  342. package/dist/components/motion/text-shimmer.js.map +1 -0
  343. package/dist/components/motion/theme-toggle.d.ts +23 -0
  344. package/dist/components/motion/theme-toggle.d.ts.map +1 -0
  345. package/dist/components/motion/theme-toggle.js +160 -0
  346. package/dist/components/motion/theme-toggle.js.map +1 -0
  347. package/dist/components/motion/tilt-card.d.ts +12 -0
  348. package/dist/components/motion/tilt-card.d.ts.map +1 -0
  349. package/dist/components/motion/tilt-card.js +56 -0
  350. package/dist/components/motion/tilt-card.js.map +1 -0
  351. package/dist/components/motion/tooltip.d.ts +17 -0
  352. package/dist/components/motion/tooltip.d.ts.map +1 -0
  353. package/dist/components/motion/tooltip.js +194 -0
  354. package/dist/components/motion/tooltip.js.map +1 -0
  355. package/dist/components/motion/wheel-picker.d.ts +24 -0
  356. package/dist/components/motion/wheel-picker.d.ts.map +1 -0
  357. package/dist/components/motion/wheel-picker.js +442 -0
  358. package/dist/components/motion/wheel-picker.js.map +1 -0
  359. package/dist/components/reui/alert.d.ts +1 -1
  360. package/dist/components/reui/autocomplete.js +1 -1
  361. package/dist/components/reui/badge.d.ts +2 -2
  362. package/dist/components/reui/badge.js +10 -9
  363. package/dist/components/reui/badge.js.map +1 -1
  364. package/dist/components/reui/data-grid/data-grid-column-filter.js +2 -2
  365. package/dist/components/reui/data-grid/data-grid-column-header.js +1 -1
  366. package/dist/components/reui/data-grid/data-grid-pagination.js +1 -1
  367. package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js +1 -1
  368. package/dist/components/reui/data-grid/data-grid-table-dnd.js +22 -20
  369. package/dist/components/reui/data-grid/data-grid-table-dnd.js.map +1 -1
  370. package/dist/components/reui/data-grid/data-grid-table-virtual.d.ts +1 -1
  371. package/dist/components/reui/data-grid/data-grid-table-virtual.js +1 -1
  372. package/dist/components/reui/data-grid/data-grid-table.js +5 -3
  373. package/dist/components/reui/data-grid/data-grid-table.js.map +1 -1
  374. package/dist/components/reui/date-selector.js +2 -2
  375. package/dist/components/reui/event-calendar/event-calendar-agenda-view.js +3 -2
  376. package/dist/components/reui/event-calendar/event-calendar-agenda-view.js.map +1 -1
  377. package/dist/components/reui/event-calendar/event-calendar-content.js +8 -7
  378. package/dist/components/reui/event-calendar/event-calendar-content.js.map +1 -1
  379. package/dist/components/reui/event-calendar/event-calendar-dnd.js +7 -4
  380. package/dist/components/reui/event-calendar/event-calendar-dnd.js.map +1 -1
  381. package/dist/components/reui/event-calendar/event-calendar-event.js +50 -48
  382. package/dist/components/reui/event-calendar/event-calendar-event.js.map +1 -1
  383. package/dist/components/reui/event-calendar/event-calendar-lib.js +3 -2
  384. package/dist/components/reui/event-calendar/event-calendar-lib.js.map +1 -1
  385. package/dist/components/reui/event-calendar/event-calendar-month-view.js +1 -1
  386. package/dist/components/reui/event-calendar/event-calendar-nav.js +38 -32
  387. package/dist/components/reui/event-calendar/event-calendar-nav.js.map +1 -1
  388. package/dist/components/reui/event-calendar/event-calendar-time-grid.js +2 -1
  389. package/dist/components/reui/event-calendar/event-calendar-time-grid.js.map +1 -1
  390. package/dist/components/reui/event-calendar/event-calendar.js +2 -1
  391. package/dist/components/reui/event-calendar/event-calendar.js.map +1 -1
  392. package/dist/components/reui/filters.js +6 -4
  393. package/dist/components/reui/filters.js.map +1 -1
  394. package/dist/components/reui/frame.d.ts +1 -1
  395. package/dist/components/reui/gantt/gantt-bar.js +53 -52
  396. package/dist/components/reui/gantt/gantt-bar.js.map +1 -1
  397. package/dist/components/reui/gantt/gantt-lib.js +3 -2
  398. package/dist/components/reui/gantt/gantt-lib.js.map +1 -1
  399. package/dist/components/reui/gantt/gantt-nav.js +35 -31
  400. package/dist/components/reui/gantt/gantt-nav.js.map +1 -1
  401. package/dist/components/reui/gantt/gantt-recurrence.js +2 -2
  402. package/dist/components/reui/gantt/gantt-recurrence.js.map +1 -1
  403. package/dist/components/reui/gantt/gantt-view.js +177 -173
  404. package/dist/components/reui/gantt/gantt-view.js.map +1 -1
  405. package/dist/components/reui/icon-tile.d.ts +1 -1
  406. package/dist/components/reui/icon-tile.js +12 -11
  407. package/dist/components/reui/icon-tile.js.map +1 -1
  408. package/dist/components/reui/kanban.js +42 -37
  409. package/dist/components/reui/kanban.js.map +1 -1
  410. package/dist/components/reui/number-field.js +1 -1
  411. package/dist/components/reui/phone-input.js +2 -2
  412. package/dist/components/reui/rating.js +1 -1
  413. package/dist/components/reui/sortable.js +10 -9
  414. package/dist/components/reui/sortable.js.map +1 -1
  415. package/dist/components/reui/stepper.js +16 -16
  416. package/dist/components/reui/stepper.js.map +1 -1
  417. package/dist/components/reui/timeline.js +45 -38
  418. package/dist/components/reui/timeline.js.map +1 -1
  419. package/dist/components/reui/tree.js +3 -2
  420. package/dist/components/reui/tree.js.map +1 -1
  421. package/dist/components/ui/accordion.js +1 -1
  422. package/dist/components/ui/alert-dialog.js +1 -1
  423. package/dist/components/ui/attachment.d.ts +2 -2
  424. package/dist/components/ui/badge.d.ts +1 -1
  425. package/dist/components/ui/breadcrumb.js +1 -1
  426. package/dist/components/ui/bubble.d.ts +1 -1
  427. package/dist/components/ui/button-group.d.ts +1 -1
  428. package/dist/components/ui/button.d.ts +3 -3
  429. package/dist/components/ui/button.js +1 -1
  430. package/dist/components/ui/calendar.js +1 -1
  431. package/dist/components/ui/carousel.js +1 -1
  432. package/dist/components/ui/checkbox.js +1 -1
  433. package/dist/components/ui/combobox.js +1 -1
  434. package/dist/components/ui/command.js +1 -1
  435. package/dist/components/ui/context-menu.js +1 -1
  436. package/dist/components/ui/dialog.js +1 -1
  437. package/dist/components/ui/dropdown-menu.js +1 -1
  438. package/dist/components/ui/empty.d.ts +1 -1
  439. package/dist/components/ui/field.d.ts +1 -1
  440. package/dist/components/ui/input-otp.js +1 -1
  441. package/dist/components/ui/item.d.ts +1 -1
  442. package/dist/components/ui/marker.d.ts +1 -1
  443. package/dist/components/ui/menubar.js +1 -1
  444. package/dist/components/ui/message-scroller.js +1 -1
  445. package/dist/components/ui/native-select.js +1 -1
  446. package/dist/components/ui/navigation-menu.js +1 -1
  447. package/dist/components/ui/pagination.js +1 -1
  448. package/dist/components/ui/select.js +1 -1
  449. package/dist/components/ui/sheet.js +1 -1
  450. package/dist/components/ui/sidebar.js +2 -2
  451. package/dist/components/ui/sidebar.js.map +1 -1
  452. package/dist/components/ui/sonner.js +1 -1
  453. package/dist/components/ui/spinner.js +1 -1
  454. package/dist/components/ui/toast.js +1 -1
  455. package/dist/copy-menu-BJ-MXnkN.js +201 -0
  456. package/dist/copy-menu-BJ-MXnkN.js.map +1 -0
  457. package/dist/hooks/use-hover-capable.d.ts +10 -0
  458. package/dist/hooks/use-hover-capable.d.ts.map +1 -0
  459. package/dist/hooks/use-hover-capable.js +24 -0
  460. package/dist/hooks/use-hover-capable.js.map +1 -0
  461. package/dist/hooks/use-mobile.js +1 -1
  462. package/dist/hooks/use-mobile.js.map +1 -1
  463. package/dist/hooks/use-slider.d.ts +58 -0
  464. package/dist/hooks/use-slider.d.ts.map +1 -0
  465. package/dist/hooks/use-slider.js +133 -0
  466. package/dist/hooks/use-slider.js.map +1 -0
  467. package/dist/lib/ease.d.ts +50 -0
  468. package/dist/lib/ease.d.ts.map +1 -0
  469. package/dist/lib/ease.js +66 -0
  470. package/dist/lib/ease.js.map +1 -0
  471. package/dist/lib/tick-sound.d.ts +17 -0
  472. package/dist/lib/tick-sound.d.ts.map +1 -0
  473. package/dist/lib/tick-sound.js +120 -0
  474. package/dist/lib/tick-sound.js.map +1 -0
  475. package/dist/popover-position-BUqYCq8X.js +54 -0
  476. package/dist/popover-position-BUqYCq8X.js.map +1 -0
  477. package/dist/types-Bah5NY44.d.ts +81 -0
  478. package/dist/types-Bah5NY44.d.ts.map +1 -0
  479. package/dist/types-smkWN_7x.d.ts +20 -0
  480. package/dist/types-smkWN_7x.d.ts.map +1 -0
  481. package/dist/utils-DQ7OpbYQ.js +25 -0
  482. package/dist/utils-DQ7OpbYQ.js.map +1 -0
  483. package/package.json +17 -6
package/README.md CHANGED
@@ -1,22 +1,26 @@
1
1
  # @kumix/ui
2
2
 
3
- React UI kit for Kumix products. Built on **Base UI**, **Tailwind CSS**, and **class-variance-authority**. Ships as ESM with per-file exports (no barrel).
3
+ React UI kit for Kumix products. Built on **Base UI**, **Tailwind CSS**, **class-variance-authority**, and **Motion**. Ships as ESM with per-file exports (no barrel).
4
4
 
5
5
  ## Sources
6
6
 
7
- | Path | Origin | Docs / previews |
8
- | --------------------------------- | ----------------------------------------------------- | ------------------------------------------------------------------------------- |
9
- | `src/components/ui/*` | [shadcn/ui](https://ui.shadcn.com/) (base-nova style) | [ui.shadcn.com/docs/components](https://ui.shadcn.com/docs/components) |
10
- | `src/components/reui/*` | [ReUI](https://reui.io/) registry (`@reui/*`) | [reui.io/docs](https://reui.io/docs) · [components](https://reui.io/components) |
11
- | `src/hooks/*` | Package helpers (+ ReUI `use-file-upload`) | — |
12
- | `src/style.css` · `src/theme.css` | Tailwind entry + design tokens | — |
7
+ | Path | Origin | Docs / previews |
8
+ | --------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------------------------- |
9
+ | `src/components/ui/*` | [shadcn/ui](https://ui.shadcn.com/) (base-nova style) | [ui.shadcn.com/docs/components](https://ui.shadcn.com/docs/components) |
10
+ | `src/components/reui/*` | [ReUI](https://reui.io/) registry (`@reui/*`) | [reui.io/docs](https://reui.io/docs) · [components](https://reui.io/components) |
11
+ | `src/components/motion/*` | [beUI](https://beui.dev/) registry (`@beui/*`, Motion-based) | [beui.dev/components/motion](https://beui.dev/components/motion) |
12
+ | `src/components/custom/*` | Hand-written Kumix-specific components | — |
13
+ | `src/hooks/*` | Package helpers (+ ReUI `use-file-upload`, beUI helpers) | — |
14
+ | `src/lib/*` | Shared utilities (beUI `ease`, `tick-sound`) | — |
15
+ | `src/style.css` · `src/theme.css` | Tailwind entry + design tokens | — |
13
16
 
14
17
  For **previews, props, and usage examples** of each component, use the upstream docs:
15
18
 
16
19
  - shadcn: https://ui.shadcn.com/docs/components/`<name>`
17
20
  - ReUI: https://reui.io/docs/components/base/`<name>` (or browse https://reui.io/components)
21
+ - beUI: https://beui.dev/components/motion/`<name>`
18
22
 
19
- This package is a maintained distribution: imports rewritten for monorepo (`@kumix/utils`, relative paths), Biome/TypeScript clean, published via npm.
23
+ This package is a maintained distribution: imports rewritten for monorepo (`@kumix/utils`, relative paths), Biome/TypeScript clean, published via npm. Motion components bundle `motion`, `lenis`, and `@paper-design/shaders-react` — no extra installs needed.
20
24
 
21
25
  ## Install
22
26
 
@@ -64,10 +68,20 @@ import { Dialog, DialogContent } from "@kumix/ui/ui/dialog";
64
68
  import { Kanban } from "@kumix/ui/reui/kanban";
65
69
  import { DataGrid } from "@kumix/ui/reui/data-grid/data-grid";
66
70
 
71
+ // beUI (motion)
72
+ import { TiltCard } from "@kumix/ui/motion/tilt-card";
73
+ import { MorphingModal } from "@kumix/ui/motion/morphing-modal";
74
+
75
+ // custom
76
+ import { ConfirmDialog } from "@kumix/ui/custom/confirm-dialog";
77
+
67
78
  // hooks
68
79
  import { useIsMobile } from "@kumix/ui/hooks/use-mobile";
69
80
  import { useFileUpload } from "@kumix/ui/hooks/use-file-upload";
70
81
 
82
+ // lib (beUI helpers)
83
+ import { ease } from "@kumix/ui/lib/ease";
84
+
71
85
  // styles (Tailwind v4)
72
86
  import "@kumix/ui/css";
73
87
  import "@kumix/ui/theme";
@@ -80,7 +94,11 @@ Mapped from source:
80
94
  | `src/components/ui/button.tsx` | `@kumix/ui/ui/button` |
81
95
  | `src/components/reui/kanban.tsx` | `@kumix/ui/reui/kanban` |
82
96
  | `src/components/reui/data-grid/data-grid.tsx` | `@kumix/ui/reui/data-grid/data-grid` |
97
+ | `src/components/motion/tilt-card.tsx` | `@kumix/ui/motion/tilt-card` |
98
+ | `src/components/motion/morphing-modal.tsx` | `@kumix/ui/motion/morphing-modal` |
99
+ | `src/components/custom/confirm-dialog.tsx` | `@kumix/ui/custom/confirm-dialog` |
83
100
  | `src/hooks/use-mobile.ts` | `@kumix/ui/hooks/use-mobile` |
101
+ | `src/lib/ease.ts` | `@kumix/ui/lib/ease` |
84
102
  | `src/style.css` | `@kumix/ui/css` |
85
103
  | `src/theme.css` | `@kumix/ui/theme` |
86
104
 
@@ -108,12 +126,28 @@ Extended patterns. Preview: [reui.io](https://reui.io/docs).
108
126
  | `gantt/*` | Day–year scales, resources, DnD |
109
127
  | `icon-stack` · `kanban` · `number-field` · `phone-input` · `rating` · `scrollspy` · `sortable` · `stepper` · `timeline` · `tree` | — |
110
128
 
129
+ ### beUI (`components/motion`)
130
+
131
+ Animated components built with [Motion](https://motion.dev). Preview: [beui.dev](https://beui.dev/components/motion). Bundled — `motion`, `lenis`, `@paper-design/shaders-react` are included, no extra installs needed.
132
+
133
+ `action-swap` · `animated-badge` · `animated-number` · `animated-sidebar` · `animated-toast-stack` · `attachment-upload` · `availability-scheduler/*` (copy-menu, day-row, time-select) · `bloom-menu` · `bottom-sheet` · `bounce-sidebar` · `bouncy-accordion` · `button/*` (base, stateful, magnetic) · `center-morph-modal` · `checkbox` · `chromatic-text-reveal` · `command-palette` · `context-menu` · `cylinder-carousel` · `dock` · `drawer` · `dynamic-island` · `expandable-action-bar` · `expandable-tabs` · `feedback-widget` · `file-upload` · `hold-action-button` · `infinite-masonry` · `input` · `loader` · `magnetic` · `marquee` · `morphing-modal` · `not-found/*` (glitch, magnetic, spotlight, stacked, terminal) · `notification-stack` · `number-ticker` · `otp-input` · `overflow-actions` · `parallax` · `popover` · `popover-morph` · `preview-rail` · `pull-to-refresh` · `radio` · `range-slider` (5 variants) · `scroll-progress` · `scroll-reveal` · `scroll-to` · `select` · `select-morph` · `shader-background` · `shared-layout-bg` · `slide-action-button` · `smooth-scroll` · `swipeable-list` · `switch` · `table/*` (virtualized, editable, async) · `tabs` · `text-cascade` · `text-reveal` · `text-shimmer` · `theme-toggle` · `tilt-card` · `tooltip` · `wheel-picker`
134
+
135
+ ### Custom (`components/custom`)
136
+
137
+ Hand-written Kumix-specific composite components (not from any registry).
138
+
139
+ `confirm-dialog` — `ConfirmDialog` (destructive alert dialog with loading state) + `ConfirmSignOut` (centered sign-out variant).
140
+
141
+ `toast` — Global toast system: `ToastContainer` (mount once) + `showToast` / `toastSuccess` / `toastError` / `toastInfo` / `toastLoading` (call anywhere). Wraps `motion/animated-toast-stack`.
142
+
111
143
  ### Hooks
112
144
 
113
- `use-body-classes` · `use-copy-to-clipboard` · `use-file-upload` · `use-hydrated` · `use-intersection-observer` · `use-is-mac` · `use-media-query` · `use-meta-color` · `use-mobile` · `use-mutation-observer` · `use-scroll-position` · `use-slider-input` · `use-viewport`
145
+ `use-body-classes` · `use-copy-to-clipboard` · `use-file-upload` · `use-hover-capable` · `use-hydrated` · `use-intersection-observer` · `use-is-mac` · `use-media-query` · `use-meta-color` · `use-mobile` · `use-mutation-observer` · `use-scroll-position` · `use-slider` · `use-slider-input` · `use-viewport`
114
146
 
115
147
  - `useIsMobile` (`use-mobile`) — fixed `768px` breakpoint; used by `sidebar` / `date-selector`. First paint may be `false` until mount.
116
148
  - `useMediaQuery` — arbitrary query string; SSR-safe via `useSyncExternalStore` (server snapshot `false`).
149
+ - `useHoverCapable` — detects pointer/hover capability; used by beUI tilt-card.
150
+ - `useSlider` — shared slider input logic; used by beUI range-sliders.
117
151
 
118
152
  ## Styling
119
153
 
@@ -144,10 +178,11 @@ Refresh registry sources (from `packages/ui`):
144
178
  ```bash
145
179
  bun run add:shadcn # shadcn add --all --overwrite
146
180
  bun run add:reui # @reui/* components
181
+ bun run add:beui # @beui/* components (Motion-based)
147
182
  node scripts/fix-imports.mjs # REQUIRED after CLI adds
148
183
  ```
149
184
 
150
- `fix-imports.mjs` rewrites `@/lib/utils` → `@kumix/utils`, converts `@/components/*` / `@/hooks/*` to relative paths, and prepends `"use client"` when missing.
185
+ `fix-imports.mjs` rewrites `@/lib/utils` → `@kumix/utils`, converts `@/components/*` / `@/hooks/*` / `@/lib/*` to relative paths, handles all three registries (`ui`, `reui`, `motion`), and prepends `"use client"` when missing.
151
186
 
152
187
  ## License
153
188
 
@@ -0,0 +1,16 @@
1
+ //#region src/components/custom/confirm-dialog.d.ts
2
+ interface ConfirmDialogProps {
3
+ open: boolean;
4
+ onOpenChange: (open: boolean) => void;
5
+ onConfirm?: () => void;
6
+ title?: string;
7
+ description?: string;
8
+ confirmText?: string;
9
+ cancelText?: string;
10
+ loading?: boolean;
11
+ }
12
+ declare function ConfirmDialog({ open, onOpenChange, onConfirm, title, description, confirmText, cancelText, loading }: ConfirmDialogProps): import("react").JSX.Element;
13
+ declare function ConfirmSignOut({ open, onOpenChange, onConfirm, title, description, confirmText, cancelText, loading }: ConfirmDialogProps): import("react").JSX.Element;
14
+ //#endregion
15
+ export { ConfirmDialog, ConfirmSignOut };
16
+ //# sourceMappingURL=confirm-dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"confirm-dialog.d.ts","names":[],"sources":["../../../src/components/custom/confirm-dialog.tsx"],"mappings":";UAgBU;EACR;EACA,eAAe;EACf;EACA;EACA;EACA;EACA;EACA;;iBAGc,gBACd,MACA,cACA,WACA,OACA,aACA,aACA,YACA,WACC,qCAAkB,IAAA;iBAwCL,iBACd,MACA,cACA,WACA,OACA,aACA,aACA,YACA,WACC,qCAAkB,IAAA"}
@@ -0,0 +1,93 @@
1
+ "use client";
2
+ import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogMedia, AlertDialogTitle } from "../ui/alert-dialog.js";
3
+ import { Spinner } from "../ui/spinner.js";
4
+ import { CircleAlertIcon, ShieldQuestionMarkIcon } from "lucide-react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ //#region src/components/custom/confirm-dialog.tsx
7
+ function ConfirmDialog({ open, onOpenChange, onConfirm, title, description, confirmText, cancelText, loading = false }) {
8
+ return /* @__PURE__ */ jsx(AlertDialog, {
9
+ open,
10
+ onOpenChange: (next) => {
11
+ if (loading && !next) return;
12
+ onOpenChange(next);
13
+ },
14
+ children: /* @__PURE__ */ jsxs(AlertDialogContent, { children: [/* @__PURE__ */ jsxs("div", {
15
+ className: "flex items-start gap-3 py-1",
16
+ children: [/* @__PURE__ */ jsx("div", {
17
+ className: "flex size-10 shrink-0 items-center justify-center rounded-full bg-destructive/10 dark:bg-destructive/10",
18
+ children: /* @__PURE__ */ jsx(CircleAlertIcon, { className: "size-5 text-destructive" })
19
+ }), /* @__PURE__ */ jsxs("div", {
20
+ className: "flex flex-col justify-center gap-1",
21
+ children: [/* @__PURE__ */ jsx(AlertDialogTitle, {
22
+ className: "font-semibold text-sm",
23
+ children: title
24
+ }), /* @__PURE__ */ jsx(AlertDialogDescription, {
25
+ className: "text-muted-foreground text-sm",
26
+ children: description
27
+ })]
28
+ })]
29
+ }), /* @__PURE__ */ jsxs(AlertDialogFooter, { children: [/* @__PURE__ */ jsx(AlertDialogCancel, {
30
+ disabled: loading,
31
+ children: cancelText
32
+ }), /* @__PURE__ */ jsxs(AlertDialogAction, {
33
+ variant: "destructive",
34
+ disabled: loading,
35
+ onClick: (event) => {
36
+ event.preventDefault();
37
+ if (!loading) onConfirm?.();
38
+ },
39
+ children: [loading ? /* @__PURE__ */ jsx(Spinner, {}) : null, confirmText]
40
+ })] })] })
41
+ });
42
+ }
43
+ function ConfirmSignOut({ open, onOpenChange, onConfirm, title = "Are you sure?", description = "You can always log in later to your account.", confirmText = "Yes, Logout", cancelText = "No", loading = false }) {
44
+ return /* @__PURE__ */ jsx(AlertDialog, {
45
+ open,
46
+ onOpenChange: (next) => {
47
+ if (loading && !next) return;
48
+ onOpenChange(next);
49
+ },
50
+ children: /* @__PURE__ */ jsxs(AlertDialogContent, {
51
+ size: "sm",
52
+ className: "gap-0 overflow-hidden p-0 sm:max-w-sm",
53
+ children: [/* @__PURE__ */ jsxs("div", {
54
+ className: "flex flex-col items-center justify-center gap-2 p-8",
55
+ children: [
56
+ /* @__PURE__ */ jsx(AlertDialogMedia, {
57
+ className: "size-12 rounded-full bg-violet-50 text-violet-500 dark:bg-violet-950 dark:text-violet-400",
58
+ children: /* @__PURE__ */ jsx(ShieldQuestionMarkIcon, { className: "size-6" })
59
+ }),
60
+ /* @__PURE__ */ jsx(AlertDialogTitle, {
61
+ className: "text-center font-semibold text-base",
62
+ children: title
63
+ }),
64
+ /* @__PURE__ */ jsx(AlertDialogDescription, {
65
+ className: "p-0 text-center font-medium text-sm",
66
+ children: description
67
+ })
68
+ ]
69
+ }), /* @__PURE__ */ jsxs(AlertDialogFooter, {
70
+ className: "grid flex-none grid-cols-2 gap-0 divide-x border-t pt-0",
71
+ children: [/* @__PURE__ */ jsx(AlertDialogCancel, {
72
+ variant: "ghost",
73
+ className: "h-12 flex-1 rounded-none border-0 border-border border-r p-0",
74
+ disabled: loading,
75
+ children: cancelText
76
+ }), /* @__PURE__ */ jsxs(AlertDialogAction, {
77
+ variant: "ghost",
78
+ disabled: loading,
79
+ onClick: (event) => {
80
+ event.preventDefault();
81
+ if (!loading) onConfirm?.();
82
+ },
83
+ className: "h-12 flex-1 rounded-none border-0 p-0",
84
+ children: [loading ? /* @__PURE__ */ jsx(Spinner, {}) : null, confirmText]
85
+ })]
86
+ })]
87
+ })
88
+ });
89
+ }
90
+ //#endregion
91
+ export { ConfirmDialog, ConfirmSignOut };
92
+
93
+ //# sourceMappingURL=confirm-dialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"confirm-dialog.js","names":[],"sources":["../../../src/components/custom/confirm-dialog.tsx"],"sourcesContent":["\"use client\";\n\nimport { CircleAlertIcon, ShieldQuestionMarkIcon } from \"lucide-react\";\n\nimport {\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogFooter,\n AlertDialogMedia,\n AlertDialogTitle,\n} from \"../ui/alert-dialog\";\nimport { Spinner } from \"../ui/spinner\";\n\ninterface ConfirmDialogProps {\n open: boolean;\n onOpenChange: (open: boolean) => void;\n onConfirm?: () => void;\n title?: string;\n description?: string;\n confirmText?: string;\n cancelText?: string;\n loading?: boolean;\n}\n\nexport function ConfirmDialog({\n open,\n onOpenChange,\n onConfirm,\n title,\n description,\n confirmText,\n cancelText,\n loading = false,\n}: ConfirmDialogProps) {\n return (\n <AlertDialog\n open={open}\n onOpenChange={(next) => {\n if (loading && !next) return;\n onOpenChange(next);\n }}\n >\n <AlertDialogContent>\n <div className=\"flex items-start gap-3 py-1\">\n <div className=\"flex size-10 shrink-0 items-center justify-center rounded-full bg-destructive/10 dark:bg-destructive/10\">\n <CircleAlertIcon className=\"size-5 text-destructive\" />\n </div>\n <div className=\"flex flex-col justify-center gap-1\">\n <AlertDialogTitle className=\"font-semibold text-sm\">{title}</AlertDialogTitle>\n <AlertDialogDescription className=\"text-muted-foreground text-sm\">\n {description}\n </AlertDialogDescription>\n </div>\n </div>\n <AlertDialogFooter>\n <AlertDialogCancel disabled={loading}>{cancelText}</AlertDialogCancel>\n <AlertDialogAction\n variant=\"destructive\"\n disabled={loading}\n onClick={(event) => {\n event.preventDefault();\n if (!loading) onConfirm?.();\n }}\n >\n {loading ? <Spinner /> : null}\n {confirmText}\n </AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n );\n}\n\nexport function ConfirmSignOut({\n open,\n onOpenChange,\n onConfirm,\n title = \"Are you sure?\",\n description = \"You can always log in later to your account.\",\n confirmText = \"Yes, Logout\",\n cancelText = \"No\",\n loading = false,\n}: ConfirmDialogProps) {\n return (\n <AlertDialog\n open={open}\n onOpenChange={(next) => {\n if (loading && !next) return;\n onOpenChange(next);\n }}\n >\n <AlertDialogContent size=\"sm\" className=\"gap-0 overflow-hidden p-0 sm:max-w-sm\">\n <div className=\"flex flex-col items-center justify-center gap-2 p-8\">\n <AlertDialogMedia className=\"size-12 rounded-full bg-violet-50 text-violet-500 dark:bg-violet-950 dark:text-violet-400\">\n <ShieldQuestionMarkIcon className=\"size-6\" />\n </AlertDialogMedia>\n <AlertDialogTitle className=\"text-center font-semibold text-base\">\n {title}\n </AlertDialogTitle>\n <AlertDialogDescription className=\"p-0 text-center font-medium text-sm\">\n {description}\n </AlertDialogDescription>\n </div>\n <AlertDialogFooter className=\"grid flex-none grid-cols-2 gap-0 divide-x border-t pt-0\">\n <AlertDialogCancel\n variant=\"ghost\"\n className=\"h-12 flex-1 rounded-none border-0 border-border border-r p-0\"\n disabled={loading}\n >\n {cancelText}\n </AlertDialogCancel>\n <AlertDialogAction\n variant=\"ghost\"\n disabled={loading}\n onClick={(event) => {\n event.preventDefault();\n if (!loading) onConfirm?.();\n }}\n className=\"h-12 flex-1 rounded-none border-0 p-0\"\n >\n {loading ? <Spinner /> : null}\n {confirmText}\n </AlertDialogAction>\n </AlertDialogFooter>\n </AlertDialogContent>\n </AlertDialog>\n );\n}\n"],"mappings":";;;;;;AA2BA,SAAgB,cAAc,EAC5B,MACA,cACA,WACA,OACA,aACA,aACA,YACA,UAAU,SACW;CACrB,OACE,oBAAC,aAAD;EACQ;EACN,eAAe,SAAS;GACtB,IAAI,WAAW,CAAC,MAAM;GACtB,aAAa,IAAI;EACnB;EAEA,UAAA,qBAAC,oBAAD,EAAA,UAAA,CACE,qBAAC,OAAD;GAAK,WAAU;GAAf,UAAA,CACE,oBAAC,OAAD;IAAK,WAAU;IACb,UAAA,oBAAC,iBAAD,EAAiB,WAAU,0BAA2B,CAAA;GACnD,CAAA,GACL,qBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACE,oBAAC,kBAAD;KAAkB,WAAU;KAAyB,UAAA;IAAwB,CAAA,GAC7E,oBAAC,wBAAD;KAAwB,WAAU;KAC/B,UAAA;IACqB,CAAA,CACrB;GACF,CAAA,CAAA;EACL,CAAA,GAAA,qBAAC,mBAAD,EAAA,UAAA,CACE,oBAAC,mBAAD;GAAmB,UAAU;GAAU,UAAA;EAA8B,CAAA,GACrE,qBAAC,mBAAD;GACE,SAAQ;GACR,UAAU;GACV,UAAU,UAAU;IAClB,MAAM,eAAe;IACrB,IAAI,CAAC,SAAS,YAAY;GAC5B;GANF,UAAA,CAQG,UAAU,oBAAC,SAAD,CAAU,CAAA,IAAI,MACxB,WACgB;EACF,CAAA,CAAA,EAAA,CAAA,CACD,EAAA,CAAA;CACT,CAAA;AAEjB;AAEA,SAAgB,eAAe,EAC7B,MACA,cACA,WACA,QAAQ,iBACR,cAAc,gDACd,cAAc,eACd,aAAa,MACb,UAAU,SACW;CACrB,OACE,oBAAC,aAAD;EACQ;EACN,eAAe,SAAS;GACtB,IAAI,WAAW,CAAC,MAAM;GACtB,aAAa,IAAI;EACnB;EAEA,UAAA,qBAAC,oBAAD;GAAoB,MAAK;GAAK,WAAU;GAAxC,UAAA,CACE,qBAAC,OAAD;IAAK,WAAU;IAAf,UAAA;KACE,oBAAC,kBAAD;MAAkB,WAAU;MAC1B,UAAA,oBAAC,wBAAD,EAAwB,WAAU,SAAU,CAAA;KAC5B,CAAA;KAClB,oBAAC,kBAAD;MAAkB,WAAU;MACzB,UAAA;KACe,CAAA;KAClB,oBAAC,wBAAD;MAAwB,WAAU;MAC/B,UAAA;KACqB,CAAA;IACrB;GACL,CAAA,GAAA,qBAAC,mBAAD;IAAmB,WAAU;IAA7B,UAAA,CACE,oBAAC,mBAAD;KACE,SAAQ;KACR,WAAU;KACV,UAAU;KAET,UAAA;IACgB,CAAA,GACnB,qBAAC,mBAAD;KACE,SAAQ;KACR,UAAU;KACV,UAAU,UAAU;MAClB,MAAM,eAAe;MACrB,IAAI,CAAC,SAAS,YAAY;KAC5B;KACA,WAAU;KAPZ,UAAA,CASG,UAAU,oBAAC,SAAD,CAAU,CAAA,IAAI,MACxB,WACgB;IACF,CAAA,CAAA;GACD,CAAA,CAAA;;CACT,CAAA;AAEjB"}
@@ -0,0 +1,20 @@
1
+ import { AnimatedToastStackProps, ToastInput } from "../motion/animated-toast-stack.js";
2
+ //#region src/components/custom/toast.d.ts
3
+ interface ToastOptions {
4
+ message?: string;
5
+ description?: string;
6
+ duration?: number;
7
+ id?: string;
8
+ }
9
+ declare function showToast(input: ToastInput): string;
10
+ declare function toastSuccess({ message, description, duration, id }?: ToastOptions): string;
11
+ declare function toastError({ message, description, duration, id }?: ToastOptions): string;
12
+ declare function toastInfo({ message, description, duration, id }?: ToastOptions): string;
13
+ declare function toastLoading({ message, description, duration, id }?: ToastOptions): string;
14
+ declare function ToastContainer({ position, maxVisible, defaultDuration, limit, ...props }: Omit<AnimatedToastStackProps, "toasts" | "onDismiss"> & {
15
+ defaultDuration?: number;
16
+ limit?: number;
17
+ }): import("react").JSX.Element;
18
+ //#endregion
19
+ export { ToastContainer, showToast, toastError, toastInfo, toastLoading, toastSuccess };
20
+ //# sourceMappingURL=toast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast.d.ts","names":[],"sources":["../../../src/components/custom/toast.tsx"],"mappings":";;UAWU;EACR;EACA;EACA;EACA;;iBAKc,UAAU,OAAO;iBAUjB,eACd,SACA,aACA,UACA,OACC;iBAIa,aACd,SACA,aACA,UACA,OACC;iBAIa,YACd,SACA,aACA,UACA,OACC;iBAIa,eACd,SACA,aACA,UACA,OACC;iBAIa,iBACd,UACA,YACA,iBACA,UACG,SACF,KAAK;EACN;EACA;oBACD,IAAA"}
@@ -0,0 +1,73 @@
1
+ "use client";
2
+ import { AnimatedToastStack, useAnimatedToastStack } from "../motion/animated-toast-stack.js";
3
+ import { useEffect } from "react";
4
+ import { jsx } from "react/jsx-runtime";
5
+ //#region src/components/custom/toast.tsx
6
+ let _show = null;
7
+ function showToast(input) {
8
+ if (!_show) {
9
+ if (typeof console !== "undefined") console.warn("[@kumix/ui] ToastContainer not mounted — toast dropped:", input.title);
10
+ return "";
11
+ }
12
+ return _show(input);
13
+ }
14
+ function toastSuccess({ message = "Success", description, duration, id } = {}) {
15
+ return showToast({
16
+ status: "success",
17
+ title: message,
18
+ description,
19
+ duration,
20
+ id
21
+ });
22
+ }
23
+ function toastError({ message = "An error occurred", description, duration, id } = {}) {
24
+ return showToast({
25
+ status: "error",
26
+ title: message,
27
+ description,
28
+ duration,
29
+ id
30
+ });
31
+ }
32
+ function toastInfo({ message = "Info", description, duration, id } = {}) {
33
+ return showToast({
34
+ status: "info",
35
+ title: message,
36
+ description,
37
+ duration,
38
+ id
39
+ });
40
+ }
41
+ function toastLoading({ message = "Loading...", description, duration = 0, id } = {}) {
42
+ return showToast({
43
+ status: "loading",
44
+ title: message,
45
+ description,
46
+ duration,
47
+ id
48
+ });
49
+ }
50
+ function ToastContainer({ position = "top-center", maxVisible = 4, defaultDuration = 4e3, limit = 5, ...props }) {
51
+ const { toasts, showToast: show, dismissToast } = useAnimatedToastStack({
52
+ defaultDuration,
53
+ limit
54
+ });
55
+ useEffect(() => {
56
+ _show = show;
57
+ return () => {
58
+ _show = null;
59
+ };
60
+ }, [show]);
61
+ return /* @__PURE__ */ jsx(AnimatedToastStack, {
62
+ toasts,
63
+ onDismiss: dismissToast,
64
+ position,
65
+ placement: "fixed",
66
+ maxVisible,
67
+ ...props
68
+ });
69
+ }
70
+ //#endregion
71
+ export { ToastContainer, showToast, toastError, toastInfo, toastLoading, toastSuccess };
72
+
73
+ //# sourceMappingURL=toast.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast.js","names":[],"sources":["../../../src/components/custom/toast.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect } from \"react\";\n\nimport {\n AnimatedToastStack,\n type AnimatedToastStackProps,\n type ToastInput,\n useAnimatedToastStack,\n} from \"../motion/animated-toast-stack\";\n\ninterface ToastOptions {\n message?: string;\n description?: string;\n duration?: number;\n id?: string;\n}\n\nlet _show: ((input: ToastInput) => string) | null = null;\n\nexport function showToast(input: ToastInput): string {\n if (!_show) {\n if (typeof console !== \"undefined\") {\n console.warn(\"[@kumix/ui] ToastContainer not mounted — toast dropped:\", input.title);\n }\n return \"\";\n }\n return _show(input);\n}\n\nexport function toastSuccess({\n message = \"Success\",\n description,\n duration,\n id,\n}: ToastOptions = {}): string {\n return showToast({ status: \"success\", title: message, description, duration, id });\n}\n\nexport function toastError({\n message = \"An error occurred\",\n description,\n duration,\n id,\n}: ToastOptions = {}): string {\n return showToast({ status: \"error\", title: message, description, duration, id });\n}\n\nexport function toastInfo({\n message = \"Info\",\n description,\n duration,\n id,\n}: ToastOptions = {}): string {\n return showToast({ status: \"info\", title: message, description, duration, id });\n}\n\nexport function toastLoading({\n message = \"Loading...\",\n description,\n duration = 0,\n id,\n}: ToastOptions = {}): string {\n return showToast({ status: \"loading\", title: message, description, duration, id });\n}\n\nexport function ToastContainer({\n position = \"top-center\",\n maxVisible = 4,\n defaultDuration = 4000,\n limit = 5,\n ...props\n}: Omit<AnimatedToastStackProps, \"toasts\" | \"onDismiss\"> & {\n defaultDuration?: number;\n limit?: number;\n}) {\n const {\n toasts,\n showToast: show,\n dismissToast,\n } = useAnimatedToastStack({\n defaultDuration,\n limit,\n });\n\n useEffect(() => {\n _show = show;\n return () => {\n _show = null;\n };\n }, [show]);\n\n return (\n <AnimatedToastStack\n toasts={toasts}\n onDismiss={dismissToast}\n position={position}\n placement=\"fixed\"\n maxVisible={maxVisible}\n {...props}\n />\n );\n}\n"],"mappings":";;;;;AAkBA,IAAI,QAAgD;AAEpD,SAAgB,UAAU,OAA2B;CACnD,IAAI,CAAC,OAAO;EACV,IAAI,OAAO,YAAY,aACrB,QAAQ,KAAK,2DAA2D,MAAM,KAAK;EAErF,OAAO;CACT;CACA,OAAO,MAAM,KAAK;AACpB;AAEA,SAAgB,aAAa,EAC3B,UAAU,WACV,aACA,UACA,OACgB,CAAC,GAAW;CAC5B,OAAO,UAAU;EAAE,QAAQ;EAAW,OAAO;EAAS;EAAa;EAAU;CAAG,CAAC;AACnF;AAEA,SAAgB,WAAW,EACzB,UAAU,qBACV,aACA,UACA,OACgB,CAAC,GAAW;CAC5B,OAAO,UAAU;EAAE,QAAQ;EAAS,OAAO;EAAS;EAAa;EAAU;CAAG,CAAC;AACjF;AAEA,SAAgB,UAAU,EACxB,UAAU,QACV,aACA,UACA,OACgB,CAAC,GAAW;CAC5B,OAAO,UAAU;EAAE,QAAQ;EAAQ,OAAO;EAAS;EAAa;EAAU;CAAG,CAAC;AAChF;AAEA,SAAgB,aAAa,EAC3B,UAAU,cACV,aACA,WAAW,GACX,OACgB,CAAC,GAAW;CAC5B,OAAO,UAAU;EAAE,QAAQ;EAAW,OAAO;EAAS;EAAa;EAAU;CAAG,CAAC;AACnF;AAEA,SAAgB,eAAe,EAC7B,WAAW,cACX,aAAa,GACb,kBAAkB,KAClB,QAAQ,GACR,GAAG,SAIF;CACD,MAAM,EACJ,QACA,WAAW,MACX,iBACE,sBAAsB;EACxB;EACA;CACF,CAAC;CAED,gBAAgB;EACd,QAAQ;EACR,aAAa;GACX,QAAQ;EACV;CACF,GAAG,CAAC,IAAI,CAAC;CAET,OACE,oBAAC,oBAAD;EACU;EACR,WAAW;EACD;EACV,WAAU;EACE;EACZ,GAAI;CACL,CAAA;AAEL"}
@@ -0,0 +1,11 @@
1
+ import { ActionSwapButtonProps, ActionSwapButtonSize, ActionSwapButtonVariant, ActionSwapIconProps, ActionSwapItem, ActionSwapTextProps } from "./action-swap.js";
2
+ //#region src/components/motion/action-swap-blur.d.ts
3
+ type ActionSwapBlurButtonProps = Omit<ActionSwapButtonProps, "animation">;
4
+ type ActionSwapBlurTextProps = Omit<ActionSwapTextProps, "animation">;
5
+ type ActionSwapBlurIconProps = Omit<ActionSwapIconProps, "animation">;
6
+ declare function ActionSwapBlurButton(props: ActionSwapBlurButtonProps): import("react").JSX.Element;
7
+ declare function ActionSwapBlurText(props: ActionSwapBlurTextProps): import("react").JSX.Element;
8
+ declare function ActionSwapBlurIcon(props: ActionSwapBlurIconProps): import("react").JSX.Element;
9
+ //#endregion
10
+ export { ActionSwapBlurButton, ActionSwapBlurButtonProps, ActionSwapBlurIcon, ActionSwapBlurIconProps, ActionSwapBlurText, ActionSwapBlurTextProps, type ActionSwapButtonSize, type ActionSwapButtonVariant, type ActionSwapItem };
11
+ //# sourceMappingURL=action-swap-blur.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-swap-blur.d.ts","names":[],"sources":["../../../src/components/motion/action-swap-blur.tsx"],"mappings":";;KAiBY,4BAA4B,KAAK;KACjC,0BAA0B,KAAK;KAC/B,0BAA0B,KAAK;iBAE3B,qBAAqB,OAAO,4CAAyB,IAAA;iBAIrD,mBAAmB,OAAO,0CAAuB,IAAA;iBAIjD,mBAAmB,OAAO,0CAAuB,IAAA"}
@@ -0,0 +1,26 @@
1
+ "use client";
2
+ import { ActionSwapButton, ActionSwapIcon, ActionSwapText } from "./action-swap.js";
3
+ import { jsx } from "react/jsx-runtime";
4
+ //#region src/components/motion/action-swap-blur.tsx
5
+ function ActionSwapBlurButton(props) {
6
+ return /* @__PURE__ */ jsx(ActionSwapButton, {
7
+ ...props,
8
+ animation: "blur"
9
+ });
10
+ }
11
+ function ActionSwapBlurText(props) {
12
+ return /* @__PURE__ */ jsx(ActionSwapText, {
13
+ ...props,
14
+ animation: "blur"
15
+ });
16
+ }
17
+ function ActionSwapBlurIcon(props) {
18
+ return /* @__PURE__ */ jsx(ActionSwapIcon, {
19
+ ...props,
20
+ animation: "blur"
21
+ });
22
+ }
23
+ //#endregion
24
+ export { ActionSwapBlurButton, ActionSwapBlurIcon, ActionSwapBlurText };
25
+
26
+ //# sourceMappingURL=action-swap-blur.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-swap-blur.js","names":[],"sources":["../../../src/components/motion/action-swap-blur.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n ActionSwapButton,\n type ActionSwapButtonProps,\n ActionSwapIcon,\n type ActionSwapIconProps,\n ActionSwapText,\n type ActionSwapTextProps,\n} from \"./action-swap\";\n\nexport type {\n ActionSwapButtonSize,\n ActionSwapButtonVariant,\n ActionSwapItem,\n} from \"./action-swap\";\n\nexport type ActionSwapBlurButtonProps = Omit<ActionSwapButtonProps, \"animation\">;\nexport type ActionSwapBlurTextProps = Omit<ActionSwapTextProps, \"animation\">;\nexport type ActionSwapBlurIconProps = Omit<ActionSwapIconProps, \"animation\">;\n\nexport function ActionSwapBlurButton(props: ActionSwapBlurButtonProps) {\n return <ActionSwapButton {...props} animation=\"blur\" />;\n}\n\nexport function ActionSwapBlurText(props: ActionSwapBlurTextProps) {\n return <ActionSwapText {...props} animation=\"blur\" />;\n}\n\nexport function ActionSwapBlurIcon(props: ActionSwapBlurIconProps) {\n return <ActionSwapIcon {...props} animation=\"blur\" />;\n}\n"],"mappings":";;;;AAqBA,SAAgB,qBAAqB,OAAkC;CACrE,OAAO,oBAAC,kBAAD;EAAkB,GAAI;EAAO,WAAU;CAAQ,CAAA;AACxD;AAEA,SAAgB,mBAAmB,OAAgC;CACjE,OAAO,oBAAC,gBAAD;EAAgB,GAAI;EAAO,WAAU;CAAQ,CAAA;AACtD;AAEA,SAAgB,mBAAmB,OAAgC;CACjE,OAAO,oBAAC,gBAAD;EAAgB,GAAI;EAAO,WAAU;CAAQ,CAAA;AACtD"}
@@ -0,0 +1,11 @@
1
+ import { ActionSwapButtonProps, ActionSwapButtonSize, ActionSwapButtonVariant, ActionSwapIconProps, ActionSwapItem, ActionSwapTextProps } from "./action-swap.js";
2
+ //#region src/components/motion/action-swap-cascade.d.ts
3
+ type ActionSwapCascadeButtonProps = Omit<ActionSwapButtonProps, "animation">;
4
+ type ActionSwapCascadeTextProps = Omit<ActionSwapTextProps, "animation">;
5
+ type ActionSwapCascadeIconProps = Omit<ActionSwapIconProps, "animation">;
6
+ declare function ActionSwapCascadeButton(props: ActionSwapCascadeButtonProps): import("react").JSX.Element;
7
+ declare function ActionSwapCascadeText(props: ActionSwapCascadeTextProps): import("react").JSX.Element;
8
+ declare function ActionSwapCascadeIcon(props: ActionSwapCascadeIconProps): import("react").JSX.Element;
9
+ //#endregion
10
+ export { type ActionSwapButtonSize, type ActionSwapButtonVariant, ActionSwapCascadeButton, ActionSwapCascadeButtonProps, ActionSwapCascadeIcon, ActionSwapCascadeIconProps, ActionSwapCascadeText, ActionSwapCascadeTextProps, type ActionSwapItem };
11
+ //# sourceMappingURL=action-swap-cascade.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-swap-cascade.d.ts","names":[],"sources":["../../../src/components/motion/action-swap-cascade.tsx"],"mappings":";;KAiBY,+BAA+B,KAAK;KACpC,6BAA6B,KAAK;KAClC,6BAA6B,KAAK;iBAE9B,wBAAwB,OAAO,+CAA4B,IAAA;iBAI3D,sBAAsB,OAAO,6CAA0B,IAAA;iBAIvD,sBAAsB,OAAO,6CAA0B,IAAA"}
@@ -0,0 +1,26 @@
1
+ "use client";
2
+ import { ActionSwapButton, ActionSwapIcon, ActionSwapText } from "./action-swap.js";
3
+ import { jsx } from "react/jsx-runtime";
4
+ //#region src/components/motion/action-swap-cascade.tsx
5
+ function ActionSwapCascadeButton(props) {
6
+ return /* @__PURE__ */ jsx(ActionSwapButton, {
7
+ ...props,
8
+ animation: "cascade"
9
+ });
10
+ }
11
+ function ActionSwapCascadeText(props) {
12
+ return /* @__PURE__ */ jsx(ActionSwapText, {
13
+ ...props,
14
+ animation: "cascade"
15
+ });
16
+ }
17
+ function ActionSwapCascadeIcon(props) {
18
+ return /* @__PURE__ */ jsx(ActionSwapIcon, {
19
+ ...props,
20
+ animation: "cascade"
21
+ });
22
+ }
23
+ //#endregion
24
+ export { ActionSwapCascadeButton, ActionSwapCascadeIcon, ActionSwapCascadeText };
25
+
26
+ //# sourceMappingURL=action-swap-cascade.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-swap-cascade.js","names":[],"sources":["../../../src/components/motion/action-swap-cascade.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n ActionSwapButton,\n type ActionSwapButtonProps,\n ActionSwapIcon,\n type ActionSwapIconProps,\n ActionSwapText,\n type ActionSwapTextProps,\n} from \"./action-swap\";\n\nexport type {\n ActionSwapButtonSize,\n ActionSwapButtonVariant,\n ActionSwapItem,\n} from \"./action-swap\";\n\nexport type ActionSwapCascadeButtonProps = Omit<ActionSwapButtonProps, \"animation\">;\nexport type ActionSwapCascadeTextProps = Omit<ActionSwapTextProps, \"animation\">;\nexport type ActionSwapCascadeIconProps = Omit<ActionSwapIconProps, \"animation\">;\n\nexport function ActionSwapCascadeButton(props: ActionSwapCascadeButtonProps) {\n return <ActionSwapButton {...props} animation=\"cascade\" />;\n}\n\nexport function ActionSwapCascadeText(props: ActionSwapCascadeTextProps) {\n return <ActionSwapText {...props} animation=\"cascade\" />;\n}\n\nexport function ActionSwapCascadeIcon(props: ActionSwapCascadeIconProps) {\n return <ActionSwapIcon {...props} animation=\"cascade\" />;\n}\n"],"mappings":";;;;AAqBA,SAAgB,wBAAwB,OAAqC;CAC3E,OAAO,oBAAC,kBAAD;EAAkB,GAAI;EAAO,WAAU;CAAW,CAAA;AAC3D;AAEA,SAAgB,sBAAsB,OAAmC;CACvE,OAAO,oBAAC,gBAAD;EAAgB,GAAI;EAAO,WAAU;CAAW,CAAA;AACzD;AAEA,SAAgB,sBAAsB,OAAmC;CACvE,OAAO,oBAAC,gBAAD;EAAgB,GAAI;EAAO,WAAU;CAAW,CAAA;AACzD"}
@@ -0,0 +1,11 @@
1
+ import { ActionSwapButtonProps, ActionSwapButtonSize, ActionSwapButtonVariant, ActionSwapIconProps, ActionSwapItem, ActionSwapTextProps } from "./action-swap.js";
2
+ //#region src/components/motion/action-swap-roll.d.ts
3
+ type ActionSwapRollButtonProps = Omit<ActionSwapButtonProps, "animation">;
4
+ type ActionSwapRollTextProps = Omit<ActionSwapTextProps, "animation">;
5
+ type ActionSwapRollIconProps = Omit<ActionSwapIconProps, "animation">;
6
+ declare function ActionSwapRollButton(props: ActionSwapRollButtonProps): import("react").JSX.Element;
7
+ declare function ActionSwapRollText(props: ActionSwapRollTextProps): import("react").JSX.Element;
8
+ declare function ActionSwapRollIcon(props: ActionSwapRollIconProps): import("react").JSX.Element;
9
+ //#endregion
10
+ export { type ActionSwapButtonSize, type ActionSwapButtonVariant, type ActionSwapItem, ActionSwapRollButton, ActionSwapRollButtonProps, ActionSwapRollIcon, ActionSwapRollIconProps, ActionSwapRollText, ActionSwapRollTextProps };
11
+ //# sourceMappingURL=action-swap-roll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-swap-roll.d.ts","names":[],"sources":["../../../src/components/motion/action-swap-roll.tsx"],"mappings":";;KAiBY,4BAA4B,KAAK;KACjC,0BAA0B,KAAK;KAC/B,0BAA0B,KAAK;iBAE3B,qBAAqB,OAAO,4CAAyB,IAAA;iBAIrD,mBAAmB,OAAO,0CAAuB,IAAA;iBAIjD,mBAAmB,OAAO,0CAAuB,IAAA"}
@@ -0,0 +1,26 @@
1
+ "use client";
2
+ import { ActionSwapButton, ActionSwapIcon, ActionSwapText } from "./action-swap.js";
3
+ import { jsx } from "react/jsx-runtime";
4
+ //#region src/components/motion/action-swap-roll.tsx
5
+ function ActionSwapRollButton(props) {
6
+ return /* @__PURE__ */ jsx(ActionSwapButton, {
7
+ ...props,
8
+ animation: "roll"
9
+ });
10
+ }
11
+ function ActionSwapRollText(props) {
12
+ return /* @__PURE__ */ jsx(ActionSwapText, {
13
+ ...props,
14
+ animation: "roll"
15
+ });
16
+ }
17
+ function ActionSwapRollIcon(props) {
18
+ return /* @__PURE__ */ jsx(ActionSwapIcon, {
19
+ ...props,
20
+ animation: "roll"
21
+ });
22
+ }
23
+ //#endregion
24
+ export { ActionSwapRollButton, ActionSwapRollIcon, ActionSwapRollText };
25
+
26
+ //# sourceMappingURL=action-swap-roll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-swap-roll.js","names":[],"sources":["../../../src/components/motion/action-swap-roll.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n ActionSwapButton,\n type ActionSwapButtonProps,\n ActionSwapIcon,\n type ActionSwapIconProps,\n ActionSwapText,\n type ActionSwapTextProps,\n} from \"./action-swap\";\n\nexport type {\n ActionSwapButtonSize,\n ActionSwapButtonVariant,\n ActionSwapItem,\n} from \"./action-swap\";\n\nexport type ActionSwapRollButtonProps = Omit<ActionSwapButtonProps, \"animation\">;\nexport type ActionSwapRollTextProps = Omit<ActionSwapTextProps, \"animation\">;\nexport type ActionSwapRollIconProps = Omit<ActionSwapIconProps, \"animation\">;\n\nexport function ActionSwapRollButton(props: ActionSwapRollButtonProps) {\n return <ActionSwapButton {...props} animation=\"roll\" />;\n}\n\nexport function ActionSwapRollText(props: ActionSwapRollTextProps) {\n return <ActionSwapText {...props} animation=\"roll\" />;\n}\n\nexport function ActionSwapRollIcon(props: ActionSwapRollIconProps) {\n return <ActionSwapIcon {...props} animation=\"roll\" />;\n}\n"],"mappings":";;;;AAqBA,SAAgB,qBAAqB,OAAkC;CACrE,OAAO,oBAAC,kBAAD;EAAkB,GAAI;EAAO,WAAU;CAAQ,CAAA;AACxD;AAEA,SAAgB,mBAAmB,OAAgC;CACjE,OAAO,oBAAC,gBAAD;EAAgB,GAAI;EAAO,WAAU;CAAQ,CAAA;AACtD;AAEA,SAAgB,mBAAmB,OAAgC;CACjE,OAAO,oBAAC,gBAAD;EAAgB,GAAI;EAAO,WAAU;CAAQ,CAAA;AACtD"}
@@ -0,0 +1,41 @@
1
+ import { ReactNode } from "react";
2
+ import { HTMLMotionProps } from "motion/react";
3
+ //#region src/components/motion/action-swap.d.ts
4
+ type ActionSwapItem = {
5
+ id: string;
6
+ label: ReactNode;
7
+ icon?: ReactNode;
8
+ ariaLabel?: string;
9
+ };
10
+ type ActionSwapButtonVariant = "primary" | "secondary" | "outline" | "ghost";
11
+ type ActionSwapButtonSize = "sm" | "md" | "lg" | "icon";
12
+ type ActionSwapAnimation = "blur" | "roll" | "cascade";
13
+ interface ActionSwapButtonProps extends Omit<HTMLMotionProps<"button">, "children" | "onChange"> {
14
+ items: ActionSwapItem[];
15
+ value?: string;
16
+ defaultValue?: string;
17
+ onValueChange?: (value: string, item: ActionSwapItem) => void;
18
+ variant?: ActionSwapButtonVariant;
19
+ size?: ActionSwapButtonSize;
20
+ animation?: ActionSwapAnimation;
21
+ iconOnly?: boolean;
22
+ cycle?: boolean;
23
+ }
24
+ interface ActionSwapTextProps {
25
+ value: string;
26
+ children: ReactNode;
27
+ animation?: ActionSwapAnimation;
28
+ className?: string;
29
+ }
30
+ interface ActionSwapIconProps {
31
+ value: string;
32
+ children: ReactNode;
33
+ animation?: ActionSwapAnimation;
34
+ className?: string;
35
+ }
36
+ declare function ActionSwapText({ value, children, animation, className }: ActionSwapTextProps): import("react").JSX.Element;
37
+ declare function ActionSwapIcon({ value, children, animation, className }: ActionSwapIconProps): import("react").JSX.Element;
38
+ declare function ActionSwapButton({ items, value, defaultValue, onValueChange, variant, size, animation, iconOnly, cycle, className, disabled, onClick, ...rest }: ActionSwapButtonProps): import("react").JSX.Element | null;
39
+ //#endregion
40
+ export { ActionSwapAnimation, ActionSwapButton, ActionSwapButtonProps, ActionSwapButtonSize, ActionSwapButtonVariant, ActionSwapIcon, ActionSwapIconProps, ActionSwapItem, ActionSwapText, ActionSwapTextProps };
41
+ //# sourceMappingURL=action-swap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-swap.d.ts","names":[],"sources":["../../../src/components/motion/action-swap.tsx"],"mappings":";;;KAcY;EACV;EACA,OAAO;EACP,OAAO;EACP;;KAGU;KACA;KACA;UAKK,8BACP,KAAK;EACb,OAAO;EACP;EACA;EACA,iBAAiB,eAAe,MAAM;EACtC,UAAU;EACV,OAAO;EACP,YAAY;EACZ;EACA;;UAGe;EACf;EACA,UAAU;EACV,YAAY;EACZ;;UAGe;EACf;EACA,UAAU;EACV,YAAY;EACZ;;iBA+Gc,iBACd,OACA,UACA,WACA,aACC,sCAAmB,IAAA;iBA2EN,iBACd,OACA,UACA,WACA,aACC,sCAAmB,IAAA;iBA0BN,mBACd,OACA,OACA,cACA,eACA,SACA,MACA,WACA,UACA,OACA,WACA,UACA,YACG,QACF,wCAAqB,IAAA"}