@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
@@ -0,0 +1,791 @@
1
+ "use client";
2
+ import { EASE_IN_OUT } from "../../lib/ease.js";
3
+ import { useEffect, useId, useState } from "react";
4
+ import { cn } from "@kumix/utils";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { motion, useReducedMotion } from "motion/react";
7
+ //#region src/components/motion/loader.tsx
8
+ const ASCII_SETS = {
9
+ ascii: [
10
+ "⠋",
11
+ "⠙",
12
+ "⠹",
13
+ "⠸",
14
+ "⠼",
15
+ "⠴",
16
+ "⠦",
17
+ "⠧",
18
+ "⠇",
19
+ "⠏"
20
+ ],
21
+ "ascii-line": [
22
+ "|",
23
+ "/",
24
+ "-",
25
+ "\\"
26
+ ],
27
+ "ascii-braille": [
28
+ "⣾",
29
+ "⣽",
30
+ "⣻",
31
+ "⢿",
32
+ "⡿",
33
+ "⣟",
34
+ "⣯",
35
+ "⣷"
36
+ ],
37
+ "ascii-blocks": [
38
+ "▁",
39
+ "▂",
40
+ "▃",
41
+ "▄",
42
+ "▅",
43
+ "▆",
44
+ "▇",
45
+ "█",
46
+ "▇",
47
+ "▆",
48
+ "▅",
49
+ "▄",
50
+ "▃",
51
+ "▂"
52
+ ],
53
+ "ascii-bounce": [
54
+ "⠁",
55
+ "⠂",
56
+ "⠄",
57
+ "⡀",
58
+ "⢀",
59
+ "⠠",
60
+ "⠐",
61
+ "⠈"
62
+ ]
63
+ };
64
+ const REDUCED = {
65
+ animate: { opacity: [
66
+ 1,
67
+ .4,
68
+ 1
69
+ ] },
70
+ transition: {
71
+ duration: 1.4,
72
+ ease: EASE_IN_OUT,
73
+ repeat: Infinity
74
+ }
75
+ };
76
+ function Loader({ variant = "spinner", size = 32, speed = 1, label = "Loading", className }) {
77
+ const reduce = useReducedMotion() ?? false;
78
+ return /* @__PURE__ */ jsxs("span", {
79
+ role: "status",
80
+ "aria-label": label,
81
+ className: cn("inline-flex items-center justify-center text-foreground", className),
82
+ children: [
83
+ variant === "spinner" && /* @__PURE__ */ jsx(Spinner, {
84
+ size,
85
+ speed,
86
+ reduce
87
+ }),
88
+ variant === "dots" && /* @__PURE__ */ jsx(Dots, {
89
+ size,
90
+ speed,
91
+ reduce
92
+ }),
93
+ variant === "bars" && /* @__PURE__ */ jsx(Bars, {
94
+ size,
95
+ speed,
96
+ reduce
97
+ }),
98
+ variant === "dot-matrix" && /* @__PURE__ */ jsx(DotMatrix, {
99
+ size,
100
+ speed,
101
+ reduce
102
+ }),
103
+ variant === "dither" && /* @__PURE__ */ jsx(Dither, {
104
+ size,
105
+ speed,
106
+ reduce
107
+ }),
108
+ ASCII_SETS[variant] && /* @__PURE__ */ jsx(Ascii, {
109
+ frames: ASCII_SETS[variant],
110
+ size,
111
+ speed,
112
+ reduce
113
+ }),
114
+ variant === "morph" && /* @__PURE__ */ jsx(Morph, {
115
+ size,
116
+ speed,
117
+ reduce
118
+ }),
119
+ variant === "comet" && /* @__PURE__ */ jsx(Comet, {
120
+ size,
121
+ speed,
122
+ reduce
123
+ }),
124
+ variant === "scramble" && /* @__PURE__ */ jsx(Scramble, {
125
+ size,
126
+ speed,
127
+ reduce
128
+ }),
129
+ variant === "metaballs" && /* @__PURE__ */ jsx(Metaballs, {
130
+ size,
131
+ speed,
132
+ reduce
133
+ }),
134
+ variant === "newton" && /* @__PURE__ */ jsx(Newton, {
135
+ size,
136
+ speed,
137
+ reduce
138
+ }),
139
+ variant === "helix" && /* @__PURE__ */ jsx(Helix, {
140
+ size,
141
+ speed,
142
+ reduce
143
+ }),
144
+ variant === "percent" && /* @__PURE__ */ jsx(Percent, {
145
+ size,
146
+ speed,
147
+ reduce
148
+ }),
149
+ /* @__PURE__ */ jsx("span", {
150
+ className: "sr-only",
151
+ children: label
152
+ })
153
+ ]
154
+ });
155
+ }
156
+ function Spinner({ size, speed, reduce }) {
157
+ const stroke = Math.max(2, size * .09);
158
+ const r = (size - stroke) / 2;
159
+ return /* @__PURE__ */ jsxs(motion.svg, {
160
+ width: size,
161
+ height: size,
162
+ viewBox: `0 0 ${size} ${size}`,
163
+ animate: reduce ? REDUCED.animate : { rotate: 360 },
164
+ transition: reduce ? REDUCED.transition : {
165
+ duration: speed,
166
+ ease: "linear",
167
+ repeat: Infinity
168
+ },
169
+ children: [/* @__PURE__ */ jsx("circle", {
170
+ cx: size / 2,
171
+ cy: size / 2,
172
+ r,
173
+ fill: "none",
174
+ stroke: "currentColor",
175
+ strokeOpacity: .2,
176
+ strokeWidth: stroke
177
+ }), /* @__PURE__ */ jsx("path", {
178
+ d: `M ${size / 2} ${size / 2 - r} A ${r} ${r} 0 0 1 ${size / 2 + r} ${size / 2}`,
179
+ fill: "none",
180
+ stroke: "currentColor",
181
+ strokeWidth: stroke,
182
+ strokeLinecap: "round"
183
+ })]
184
+ });
185
+ }
186
+ function Dots({ size, speed, reduce }) {
187
+ const dot = size * .24;
188
+ return /* @__PURE__ */ jsx("span", {
189
+ className: "flex items-center",
190
+ style: { gap: size * .14 },
191
+ children: [
192
+ 0,
193
+ 1,
194
+ 2
195
+ ].map((i) => /* @__PURE__ */ jsx(motion.span, {
196
+ className: "rounded-full bg-current",
197
+ style: {
198
+ width: dot,
199
+ height: dot
200
+ },
201
+ animate: reduce ? { opacity: [
202
+ .4,
203
+ 1,
204
+ .4
205
+ ] } : {
206
+ y: [
207
+ 0,
208
+ -size * .3,
209
+ 0
210
+ ],
211
+ opacity: [
212
+ .5,
213
+ 1,
214
+ .5
215
+ ]
216
+ },
217
+ transition: {
218
+ duration: speed,
219
+ ease: EASE_IN_OUT,
220
+ repeat: Infinity,
221
+ delay: i * speed * .16
222
+ }
223
+ }, i))
224
+ });
225
+ }
226
+ function Ascii({ frames, size, speed, reduce }) {
227
+ const [frame, setFrame] = useState(0);
228
+ useEffect(() => {
229
+ const step = (reduce ? speed * 2.5 : speed) / frames.length * 1e3;
230
+ const id = setInterval(() => setFrame((f) => (f + 1) % frames.length), step);
231
+ return () => clearInterval(id);
232
+ }, [
233
+ frames.length,
234
+ speed,
235
+ reduce
236
+ ]);
237
+ return /* @__PURE__ */ jsx("span", {
238
+ className: "font-mono tabular-nums leading-none",
239
+ style: {
240
+ fontSize: size,
241
+ lineHeight: 1
242
+ },
243
+ children: frames[frame % frames.length]
244
+ });
245
+ }
246
+ const MORPH_POINTS = 24;
247
+ function ngonRadius(ang, n, phase = 0) {
248
+ const seg = 2 * Math.PI / n;
249
+ const local = ((ang - phase) % seg + seg) % seg - seg / 2;
250
+ return Math.cos(Math.PI / n) / Math.cos(local);
251
+ }
252
+ function morphPath(radiusAt) {
253
+ const parts = [];
254
+ for (let i = 0; i < MORPH_POINTS; i++) {
255
+ const ang = i / MORPH_POINTS * 2 * Math.PI - Math.PI / 2;
256
+ const r = Math.min(1.05, radiusAt(ang));
257
+ const x = (50 + Math.cos(ang) * 46 * r).toFixed(2);
258
+ const y = (50 + Math.sin(ang) * 46 * r).toFixed(2);
259
+ parts.push(`${i === 0 ? "M" : "L"}${x} ${y}`);
260
+ }
261
+ return `${parts.join(" ")} Z`;
262
+ }
263
+ const MORPH_PATHS = [
264
+ morphPath(() => 1),
265
+ morphPath((a) => ngonRadius(a, 4, Math.PI / 4)),
266
+ morphPath((a) => ngonRadius(a, 3)),
267
+ morphPath((a) => ngonRadius(a, 6)),
268
+ morphPath((a) => ngonRadius(a, 4))
269
+ ];
270
+ const MORPH_SEQ = [...MORPH_PATHS.flatMap((p) => [p, p]), MORPH_PATHS[0]];
271
+ const MORPH_ROT = [
272
+ 0,
273
+ 0,
274
+ 72,
275
+ 72,
276
+ 144,
277
+ 144,
278
+ 216,
279
+ 216,
280
+ 288,
281
+ 288,
282
+ 360
283
+ ];
284
+ const MORPH_SCALE = [
285
+ 1,
286
+ 1,
287
+ .88,
288
+ .88,
289
+ 1,
290
+ 1,
291
+ .88,
292
+ .88,
293
+ 1,
294
+ 1,
295
+ 1
296
+ ];
297
+ function Morph({ size, speed, reduce }) {
298
+ return /* @__PURE__ */ jsxs("svg", {
299
+ width: size,
300
+ height: size,
301
+ viewBox: "0 0 100 100",
302
+ role: "img",
303
+ children: [/* @__PURE__ */ jsx("title", { children: "Loading" }), /* @__PURE__ */ jsx(motion.path, {
304
+ fill: "currentColor",
305
+ d: MORPH_PATHS[0],
306
+ initial: false,
307
+ style: {
308
+ transformBox: "fill-box",
309
+ transformOrigin: "center"
310
+ },
311
+ animate: reduce ? { opacity: [
312
+ 1,
313
+ .4,
314
+ 1
315
+ ] } : {
316
+ d: MORPH_SEQ,
317
+ rotate: MORPH_ROT,
318
+ scale: MORPH_SCALE
319
+ },
320
+ transition: reduce ? {
321
+ duration: 1.4,
322
+ ease: EASE_IN_OUT,
323
+ repeat: Infinity
324
+ } : {
325
+ duration: speed * 5,
326
+ ease: EASE_IN_OUT,
327
+ repeat: Infinity
328
+ }
329
+ })]
330
+ });
331
+ }
332
+ const COMET_TRAIL = [
333
+ 0,
334
+ 1,
335
+ 2,
336
+ 3,
337
+ 4,
338
+ 5
339
+ ];
340
+ function Comet({ size, speed, reduce }) {
341
+ const head = size * .2;
342
+ const r = size / 2 - head / 2;
343
+ return /* @__PURE__ */ jsx("span", {
344
+ className: "relative",
345
+ style: {
346
+ width: size,
347
+ height: size
348
+ },
349
+ children: /* @__PURE__ */ jsx(motion.span, {
350
+ className: "absolute inset-0",
351
+ animate: reduce ? REDUCED.animate : { rotate: 360 },
352
+ transition: reduce ? REDUCED.transition : {
353
+ duration: speed,
354
+ ease: "linear",
355
+ repeat: Infinity
356
+ },
357
+ children: COMET_TRAIL.map((i) => {
358
+ const scale = 1 - i * .13;
359
+ const sz = head * scale;
360
+ return /* @__PURE__ */ jsx("span", {
361
+ className: "absolute top-1/2 left-1/2 rounded-full bg-current",
362
+ style: {
363
+ width: sz,
364
+ height: sz,
365
+ marginLeft: -sz / 2,
366
+ marginTop: -sz / 2,
367
+ opacity: 1 - i * .16,
368
+ transform: `rotate(${-i * 15}deg) translateY(${-r}px)`
369
+ }
370
+ }, i);
371
+ })
372
+ })
373
+ });
374
+ }
375
+ const SCRAMBLE_TARGET = "LOADING";
376
+ const SCRAMBLE_GLYPHS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789<>/*#@";
377
+ function Scramble({ size, speed, reduce }) {
378
+ const [text, setText] = useState(SCRAMBLE_TARGET);
379
+ useEffect(() => {
380
+ if (reduce) {
381
+ setText(SCRAMBLE_TARGET);
382
+ return;
383
+ }
384
+ let tick = 0;
385
+ const total = 11;
386
+ const id = setInterval(() => {
387
+ const reveal = tick % total;
388
+ let s = "";
389
+ for (let i = 0; i < 7; i++) s += i < reveal ? SCRAMBLE_TARGET[i] : SCRAMBLE_GLYPHS[Math.floor(Math.random() * 42)];
390
+ setText(s);
391
+ tick++;
392
+ }, speed / 7 * 1e3 * .55);
393
+ return () => clearInterval(id);
394
+ }, [speed, reduce]);
395
+ return /* @__PURE__ */ jsx("span", {
396
+ className: "font-medium font-mono tabular-nums tracking-[0.2em]",
397
+ style: { fontSize: size * .42 },
398
+ children: text
399
+ });
400
+ }
401
+ function Metaballs({ size, speed, reduce }) {
402
+ const id = useId().replace(/:/g, "");
403
+ return /* @__PURE__ */ jsxs("svg", {
404
+ width: size,
405
+ height: size,
406
+ viewBox: "0 0 100 100",
407
+ role: "img",
408
+ children: [
409
+ /* @__PURE__ */ jsx("title", { children: "Loading" }),
410
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("filter", {
411
+ id,
412
+ children: [/* @__PURE__ */ jsx("feGaussianBlur", {
413
+ in: "SourceGraphic",
414
+ stdDeviation: "5",
415
+ result: "b"
416
+ }), /* @__PURE__ */ jsx("feColorMatrix", {
417
+ in: "b",
418
+ values: "1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 20 -8"
419
+ })]
420
+ }) }),
421
+ /* @__PURE__ */ jsxs("g", {
422
+ filter: `url(#${id})`,
423
+ fill: "currentColor",
424
+ children: [/* @__PURE__ */ jsx(motion.circle, {
425
+ cy: "50",
426
+ r: "15",
427
+ initial: false,
428
+ animate: reduce ? { opacity: [
429
+ .4,
430
+ 1,
431
+ .4
432
+ ] } : { cx: [
433
+ 30,
434
+ 70,
435
+ 30
436
+ ] },
437
+ transition: {
438
+ duration: speed * 1.6,
439
+ ease: EASE_IN_OUT,
440
+ repeat: Infinity
441
+ },
442
+ cx: reduce ? 40 : 30
443
+ }), /* @__PURE__ */ jsx(motion.circle, {
444
+ cy: "50",
445
+ r: "15",
446
+ initial: false,
447
+ animate: reduce ? { opacity: [
448
+ .4,
449
+ 1,
450
+ .4
451
+ ] } : { cx: [
452
+ 70,
453
+ 30,
454
+ 70
455
+ ] },
456
+ transition: {
457
+ duration: speed * 1.6,
458
+ ease: EASE_IN_OUT,
459
+ repeat: Infinity
460
+ },
461
+ cx: reduce ? 60 : 70
462
+ })]
463
+ })
464
+ ]
465
+ });
466
+ }
467
+ const NEWTON_BALLS = [
468
+ 0,
469
+ 1,
470
+ 2,
471
+ 3,
472
+ 4
473
+ ];
474
+ function Newton({ size, speed, reduce }) {
475
+ const d = size * .2;
476
+ const out = d * 1.1;
477
+ const moves = {
478
+ 0: {
479
+ x: [
480
+ 0,
481
+ -out,
482
+ 0,
483
+ 0
484
+ ],
485
+ times: [
486
+ 0,
487
+ .28,
488
+ .5,
489
+ 1
490
+ ]
491
+ },
492
+ 4: {
493
+ x: [
494
+ 0,
495
+ 0,
496
+ out,
497
+ 0
498
+ ],
499
+ times: [
500
+ 0,
501
+ .5,
502
+ .78,
503
+ 1
504
+ ]
505
+ }
506
+ };
507
+ return /* @__PURE__ */ jsx("span", {
508
+ className: "flex items-center justify-center",
509
+ style: { height: d },
510
+ children: NEWTON_BALLS.map((i) => {
511
+ const move = moves[i];
512
+ return /* @__PURE__ */ jsx(motion.span, {
513
+ className: "rounded-full bg-current",
514
+ style: {
515
+ width: d,
516
+ height: d
517
+ },
518
+ animate: reduce || !move ? void 0 : { x: move.x },
519
+ transition: reduce || !move ? void 0 : {
520
+ duration: speed * 1.5,
521
+ ease: EASE_IN_OUT,
522
+ repeat: Infinity,
523
+ times: move.times
524
+ }
525
+ }, i);
526
+ })
527
+ });
528
+ }
529
+ function Helix({ size, speed, reduce }) {
530
+ const rows = 7;
531
+ const dot = size * .14;
532
+ const amp = size * .32;
533
+ return /* @__PURE__ */ jsx("span", {
534
+ className: "relative",
535
+ style: {
536
+ width: size,
537
+ height: size
538
+ },
539
+ children: Array.from({ length: rows }, (_, r) => {
540
+ const top = r / 6 * (size - dot);
541
+ const delay = r / rows * speed;
542
+ return /* @__PURE__ */ jsxs("span", { children: [/* @__PURE__ */ jsx(motion.span, {
543
+ className: "absolute rounded-full bg-current",
544
+ style: {
545
+ width: dot,
546
+ height: dot,
547
+ left: size / 2 - dot / 2,
548
+ top
549
+ },
550
+ animate: reduce ? { opacity: [
551
+ .4,
552
+ 1,
553
+ .4
554
+ ] } : {
555
+ x: [
556
+ amp,
557
+ -amp,
558
+ amp
559
+ ],
560
+ scale: [
561
+ 1,
562
+ .5,
563
+ 1
564
+ ],
565
+ opacity: [
566
+ 1,
567
+ .45,
568
+ 1
569
+ ]
570
+ },
571
+ transition: {
572
+ duration: speed,
573
+ ease: EASE_IN_OUT,
574
+ repeat: Infinity,
575
+ delay
576
+ }
577
+ }), /* @__PURE__ */ jsx(motion.span, {
578
+ className: "absolute rounded-full bg-current",
579
+ style: {
580
+ width: dot,
581
+ height: dot,
582
+ left: size / 2 - dot / 2,
583
+ top
584
+ },
585
+ animate: reduce ? { opacity: [
586
+ .4,
587
+ 1,
588
+ .4
589
+ ] } : {
590
+ x: [
591
+ -amp,
592
+ amp,
593
+ -amp
594
+ ],
595
+ scale: [
596
+ .5,
597
+ 1,
598
+ .5
599
+ ],
600
+ opacity: [
601
+ .45,
602
+ 1,
603
+ .45
604
+ ]
605
+ },
606
+ transition: {
607
+ duration: speed,
608
+ ease: EASE_IN_OUT,
609
+ repeat: Infinity,
610
+ delay
611
+ }
612
+ })] }, `row-${top}`);
613
+ })
614
+ });
615
+ }
616
+ function Percent({ size, speed, reduce }) {
617
+ const [p, setP] = useState(0);
618
+ useEffect(() => {
619
+ const dur = (reduce ? speed * 2 : speed) * 1e3;
620
+ const start = { t: 0 };
621
+ const tickMs = 40;
622
+ const id = setInterval(() => {
623
+ start.t += tickMs;
624
+ const next = Math.min(100, Math.round(start.t / dur * 100));
625
+ setP(next);
626
+ if (next >= 100) start.t = 0;
627
+ }, tickMs);
628
+ return () => clearInterval(id);
629
+ }, [speed, reduce]);
630
+ return /* @__PURE__ */ jsxs("span", {
631
+ className: "flex flex-col items-center",
632
+ style: {
633
+ gap: size * .14,
634
+ width: size * 1.4
635
+ },
636
+ children: [/* @__PURE__ */ jsxs("span", {
637
+ className: "font-medium font-mono tabular-nums",
638
+ style: {
639
+ fontSize: size * .42,
640
+ lineHeight: 1
641
+ },
642
+ children: [p, "%"]
643
+ }), /* @__PURE__ */ jsx("span", {
644
+ className: "w-full overflow-hidden rounded-full bg-current/15",
645
+ style: { height: Math.max(3, size * .1) },
646
+ children: /* @__PURE__ */ jsx("span", {
647
+ className: "block h-full rounded-full bg-current",
648
+ style: { width: `${p}%` }
649
+ })
650
+ })]
651
+ });
652
+ }
653
+ function Bars({ size, speed, reduce }) {
654
+ const bar = size * .16;
655
+ return /* @__PURE__ */ jsx("span", {
656
+ className: "flex items-center",
657
+ style: {
658
+ gap: size * .1,
659
+ height: size
660
+ },
661
+ children: [
662
+ 0,
663
+ 1,
664
+ 2,
665
+ 3
666
+ ].map((i) => /* @__PURE__ */ jsx(motion.span, {
667
+ className: "rounded-full bg-current",
668
+ style: {
669
+ width: bar,
670
+ height: size,
671
+ originY: 1
672
+ },
673
+ animate: reduce ? { opacity: [
674
+ .4,
675
+ 1,
676
+ .4
677
+ ] } : { scaleY: [
678
+ .3,
679
+ 1,
680
+ .3
681
+ ] },
682
+ transition: {
683
+ duration: speed,
684
+ ease: EASE_IN_OUT,
685
+ repeat: Infinity,
686
+ delay: i * speed * .12
687
+ }
688
+ }, i))
689
+ });
690
+ }
691
+ function DotMatrix({ size, speed, reduce }) {
692
+ const n = 3;
693
+ const gap = size * .14;
694
+ const dot = (size - gap * 2) / n;
695
+ const cells = Array.from({ length: 9 }, (_, idx) => idx);
696
+ return /* @__PURE__ */ jsx("span", {
697
+ className: "grid",
698
+ style: {
699
+ gap,
700
+ gridTemplateColumns: `repeat(${n}, ${dot}px)`
701
+ },
702
+ children: cells.map((idx) => {
703
+ const delay = (idx % n + Math.floor(idx / n)) / 4 * speed;
704
+ return /* @__PURE__ */ jsx(motion.span, {
705
+ className: "rounded-full bg-current",
706
+ style: {
707
+ width: dot,
708
+ height: dot
709
+ },
710
+ animate: reduce ? { opacity: [
711
+ .3,
712
+ 1,
713
+ .3
714
+ ] } : {
715
+ opacity: [
716
+ .2,
717
+ 1,
718
+ .2
719
+ ],
720
+ scale: [
721
+ .7,
722
+ 1,
723
+ .7
724
+ ]
725
+ },
726
+ transition: {
727
+ duration: speed,
728
+ ease: EASE_IN_OUT,
729
+ repeat: Infinity,
730
+ delay
731
+ }
732
+ }, idx);
733
+ })
734
+ });
735
+ }
736
+ const BAYER_4 = [
737
+ 0,
738
+ 8,
739
+ 2,
740
+ 10,
741
+ 12,
742
+ 4,
743
+ 14,
744
+ 6,
745
+ 3,
746
+ 11,
747
+ 1,
748
+ 9,
749
+ 15,
750
+ 7,
751
+ 13,
752
+ 5
753
+ ];
754
+ function Dither({ size, speed, reduce }) {
755
+ const n = 4;
756
+ const gap = Math.max(1, size * .05);
757
+ const cell = (size - gap * 3) / n;
758
+ return /* @__PURE__ */ jsx("span", {
759
+ className: "grid",
760
+ style: {
761
+ gap,
762
+ gridTemplateColumns: `repeat(${n}, ${cell}px)`
763
+ },
764
+ children: BAYER_4.map((order, idx) => /* @__PURE__ */ jsx(motion.span, {
765
+ className: "bg-current",
766
+ style: {
767
+ width: cell,
768
+ height: cell
769
+ },
770
+ animate: reduce ? { opacity: [
771
+ .3,
772
+ 1,
773
+ .3
774
+ ] } : { opacity: [
775
+ .1,
776
+ 1,
777
+ .1
778
+ ] },
779
+ transition: {
780
+ duration: speed,
781
+ ease: EASE_IN_OUT,
782
+ repeat: Infinity,
783
+ delay: order / BAYER_4.length * speed
784
+ }
785
+ }, idx))
786
+ });
787
+ }
788
+ //#endregion
789
+ export { Loader };
790
+
791
+ //# sourceMappingURL=loader.js.map