@kumix/ui 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2002) hide show
  1. package/README.md +72 -46
  2. package/dist/{account-avatar--0_0u0WW.js → account-avatar-BHh_21aQ.js} +1 -1
  3. package/dist/account-avatar-BHh_21aQ.js.map +1 -0
  4. package/dist/animated-sidebar-CPdrqoGi.js +310 -0
  5. package/dist/animated-sidebar-CPdrqoGi.js.map +1 -0
  6. package/dist/animated-toast-stack-Cbdphi9x.d.ts +62 -0
  7. package/dist/animated-toast-stack-Cbdphi9x.d.ts.map +1 -0
  8. package/dist/animated-toast-stack-YcjQ2Uaw.js +568 -0
  9. package/dist/animated-toast-stack-YcjQ2Uaw.js.map +1 -0
  10. package/dist/{cascader-types-Bh_kJ3Qw.d.ts → cascader-types-D2DFznHz.d.ts} +5 -5
  11. package/dist/cascader-types-D2DFznHz.d.ts.map +1 -0
  12. package/dist/components/agents/agent-activity/activity-row.d.ts +3 -2
  13. package/dist/components/agents/agent-activity/activity-row.d.ts.map +1 -1
  14. package/dist/components/agents/agent-activity/activity-row.js +54 -40
  15. package/dist/components/agents/agent-activity/activity-row.js.map +1 -1
  16. package/dist/components/agents/agent-activity.d.ts +4 -0
  17. package/dist/components/agents/agent-activity.d.ts.map +1 -0
  18. package/dist/components/agents/{agent-activity/index.js → agent-activity.js} +84 -52
  19. package/dist/components/agents/agent-activity.js.map +1 -0
  20. package/dist/components/agents/agent-code.d.ts.map +1 -1
  21. package/dist/components/agents/agent-code.js +43 -17
  22. package/dist/components/agents/agent-code.js.map +1 -1
  23. package/dist/components/agents/agent-disclosure.d.ts +7 -2
  24. package/dist/components/agents/agent-disclosure.d.ts.map +1 -1
  25. package/dist/components/agents/agent-disclosure.js +17 -5
  26. package/dist/components/agents/agent-disclosure.js.map +1 -1
  27. package/dist/components/agents/ai-sidebar/marquee-label.d.ts +6 -0
  28. package/dist/components/agents/ai-sidebar/marquee-label.d.ts.map +1 -0
  29. package/dist/components/agents/ai-sidebar/marquee-label.js +55 -0
  30. package/dist/components/agents/ai-sidebar/marquee-label.js.map +1 -0
  31. package/dist/components/agents/ai-sidebar/resource-menu-action.d.ts +8 -0
  32. package/dist/components/agents/ai-sidebar/resource-menu-action.d.ts.map +1 -0
  33. package/dist/components/agents/ai-sidebar/resource-menu-action.js +20 -0
  34. package/dist/components/agents/ai-sidebar/resource-menu-action.js.map +1 -0
  35. package/dist/components/agents/ai-sidebar/resource-row.d.ts +32 -0
  36. package/dist/components/agents/ai-sidebar/resource-row.d.ts.map +1 -0
  37. package/dist/components/agents/ai-sidebar/resource-row.js +2 -0
  38. package/dist/components/agents/ai-sidebar.d.ts +3 -53
  39. package/dist/components/agents/ai-sidebar.d.ts.map +1 -1
  40. package/dist/components/agents/ai-sidebar.js +54 -338
  41. package/dist/components/agents/ai-sidebar.js.map +1 -1
  42. package/dist/components/agents/approval-card.d.ts +101 -0
  43. package/dist/components/agents/approval-card.d.ts.map +1 -0
  44. package/dist/components/agents/approval-card.js +416 -0
  45. package/dist/components/agents/approval-card.js.map +1 -0
  46. package/dist/components/agents/chat-app.d.ts +1 -1
  47. package/dist/components/agents/chat-app.d.ts.map +1 -1
  48. package/dist/components/agents/chat-app.js +9 -6
  49. package/dist/components/agents/chat-app.js.map +1 -1
  50. package/dist/components/agents/citations.d.ts +32 -2
  51. package/dist/components/agents/citations.d.ts.map +1 -1
  52. package/dist/components/agents/citations.js +68 -16
  53. package/dist/components/agents/citations.js.map +1 -1
  54. package/dist/components/agents/clip-resize-frame.d.ts +31 -0
  55. package/dist/components/agents/clip-resize-frame.d.ts.map +1 -0
  56. package/dist/components/agents/clip-resize-frame.js +103 -0
  57. package/dist/components/agents/clip-resize-frame.js.map +1 -0
  58. package/dist/components/agents/code-block.d.ts +22 -2
  59. package/dist/components/agents/code-block.d.ts.map +1 -1
  60. package/dist/components/agents/code-block.js +49 -31
  61. package/dist/components/agents/code-block.js.map +1 -1
  62. package/dist/components/agents/context-meter.d.ts +53 -0
  63. package/dist/components/agents/context-meter.d.ts.map +1 -0
  64. package/dist/components/agents/context-meter.js +443 -0
  65. package/dist/components/agents/context-meter.js.map +1 -0
  66. package/dist/components/agents/file-diff.d.ts +30 -2
  67. package/dist/components/agents/file-diff.d.ts.map +1 -1
  68. package/dist/components/agents/file-diff.js +129 -86
  69. package/dist/components/agents/file-diff.js.map +1 -1
  70. package/dist/components/agents/icon-swap.d.ts +14 -0
  71. package/dist/components/agents/icon-swap.d.ts.map +1 -0
  72. package/dist/components/agents/icon-swap.js +41 -0
  73. package/dist/components/agents/icon-swap.js.map +1 -0
  74. package/dist/components/agents/image-generation.d.ts +25 -1
  75. package/dist/components/agents/image-generation.d.ts.map +1 -1
  76. package/dist/components/agents/image-generation.js +33 -23
  77. package/dist/components/agents/image-generation.js.map +1 -1
  78. package/dist/components/agents/loading-states/agent-progress.d.ts +5 -1
  79. package/dist/components/agents/loading-states/agent-progress.d.ts.map +1 -1
  80. package/dist/components/agents/loading-states/agent-progress.js +30 -9
  81. package/dist/components/agents/loading-states/agent-progress.js.map +1 -1
  82. package/dist/components/agents/loading-states/reasoning-text.d.ts +5 -1
  83. package/dist/components/agents/loading-states/reasoning-text.d.ts.map +1 -1
  84. package/dist/components/agents/loading-states/reasoning-text.js +44 -19
  85. package/dist/components/agents/loading-states/reasoning-text.js.map +1 -1
  86. package/dist/components/agents/loading-states/thinking-shimmer.d.ts +5 -1
  87. package/dist/components/agents/loading-states/thinking-shimmer.d.ts.map +1 -1
  88. package/dist/components/agents/loading-states/thinking-shimmer.js +6 -3
  89. package/dist/components/agents/loading-states/thinking-shimmer.js.map +1 -1
  90. package/dist/components/agents/message-bubble.d.ts +19 -1
  91. package/dist/components/agents/message-bubble.d.ts.map +1 -1
  92. package/dist/components/agents/message-bubble.js +74 -46
  93. package/dist/components/agents/message-bubble.js.map +1 -1
  94. package/dist/components/agents/message-scroller.d.ts +21 -1
  95. package/dist/components/agents/message-scroller.d.ts.map +1 -1
  96. package/dist/components/agents/message-scroller.js +108 -24
  97. package/dist/components/agents/message-scroller.js.map +1 -1
  98. package/dist/components/agents/message.d.ts +14 -3
  99. package/dist/components/agents/message.d.ts.map +1 -1
  100. package/dist/components/agents/message.js +20 -12
  101. package/dist/components/agents/message.js.map +1 -1
  102. package/dist/components/agents/prompt-input.d.ts +53 -1
  103. package/dist/components/agents/prompt-input.d.ts.map +1 -1
  104. package/dist/components/agents/prompt-input.js +371 -97
  105. package/dist/components/agents/prompt-input.js.map +1 -1
  106. package/dist/components/agents/streaming-response.d.ts +27 -2
  107. package/dist/components/agents/streaming-response.d.ts.map +1 -1
  108. package/dist/components/agents/streaming-response.js +59 -44
  109. package/dist/components/agents/streaming-response.js.map +1 -1
  110. package/dist/components/agents/todo-list.d.ts +28 -1
  111. package/dist/components/agents/todo-list.d.ts.map +1 -1
  112. package/dist/components/agents/todo-list.js +149 -121
  113. package/dist/components/agents/todo-list.js.map +1 -1
  114. package/dist/components/agents/tool-approval.d.ts +38 -2
  115. package/dist/components/agents/tool-approval.d.ts.map +1 -1
  116. package/dist/components/agents/tool-approval.js +75 -41
  117. package/dist/components/agents/tool-approval.js.map +1 -1
  118. package/dist/components/agents/tool-result.d.ts +33 -2
  119. package/dist/components/agents/tool-result.d.ts.map +1 -1
  120. package/dist/components/agents/tool-result.js +66 -71
  121. package/dist/components/agents/tool-result.js.map +1 -1
  122. package/dist/components/agents/voice-note.d.ts +37 -0
  123. package/dist/components/agents/voice-note.d.ts.map +1 -0
  124. package/dist/components/agents/voice-note.js +326 -0
  125. package/dist/components/agents/voice-note.js.map +1 -0
  126. package/dist/components/agents/voice-orb.d.ts +7 -1
  127. package/dist/components/agents/voice-orb.d.ts.map +1 -1
  128. package/dist/components/agents/voice-orb.js +8 -5
  129. package/dist/components/agents/voice-orb.js.map +1 -1
  130. package/dist/components/charts/bar-chart/context.d.ts +29 -6
  131. package/dist/components/charts/bar-chart/context.d.ts.map +1 -1
  132. package/dist/components/charts/bar-chart/context.js +18 -5
  133. package/dist/components/charts/bar-chart/context.js.map +1 -1
  134. package/dist/components/charts/bar-chart/legend.d.ts +1 -0
  135. package/dist/components/charts/bar-chart/legend.d.ts.map +1 -1
  136. package/dist/components/charts/bar-chart/legend.js +2 -2
  137. package/dist/components/charts/bar-chart/legend.js.map +1 -1
  138. package/dist/components/charts/bar-chart/plot.d.ts +2 -0
  139. package/dist/components/charts/bar-chart/plot.d.ts.map +1 -1
  140. package/dist/components/charts/bar-chart/plot.js +23 -13
  141. package/dist/components/charts/bar-chart/plot.js.map +1 -1
  142. package/dist/components/charts/bar-chart/tooltip.d.ts +3 -1
  143. package/dist/components/charts/bar-chart/tooltip.d.ts.map +1 -1
  144. package/dist/components/charts/bar-chart/tooltip.js +5 -4
  145. package/dist/components/charts/bar-chart/tooltip.js.map +1 -1
  146. package/dist/components/charts/bar-chart.d.ts +5 -4
  147. package/dist/components/charts/bar-chart.d.ts.map +1 -1
  148. package/dist/components/charts/bar-chart.js +9 -6
  149. package/dist/components/charts/bar-chart.js.map +1 -1
  150. package/dist/components/charts/bump-chart/context.d.ts +1 -1
  151. package/dist/components/charts/bump-chart/context.js +1 -1
  152. package/dist/components/charts/bump-chart/legend.js +8 -8
  153. package/dist/components/charts/bump-chart/legend.js.map +1 -1
  154. package/dist/components/charts/bump-chart/plot.js +1 -1
  155. package/dist/components/charts/bump-chart/point.d.ts +1 -1
  156. package/dist/components/charts/bump-chart/point.js +18 -16
  157. package/dist/components/charts/bump-chart/point.js.map +1 -1
  158. package/dist/components/charts/bump-chart/series.d.ts +2 -2
  159. package/dist/components/charts/bump-chart/series.js +4 -4
  160. package/dist/components/charts/bump-chart/series.js.map +1 -1
  161. package/dist/components/charts/bump-chart.d.ts +2 -2
  162. package/dist/components/charts/bump-chart.d.ts.map +1 -1
  163. package/dist/components/charts/bump-chart.js +4 -4
  164. package/dist/components/charts/bump-chart.js.map +1 -1
  165. package/dist/components/charts/candlestick-chart/context.d.ts +29 -1
  166. package/dist/components/charts/candlestick-chart/context.d.ts.map +1 -1
  167. package/dist/components/charts/candlestick-chart/context.js +17 -3
  168. package/dist/components/charts/candlestick-chart/context.js.map +1 -1
  169. package/dist/components/charts/candlestick-chart/legend.d.ts +1 -1
  170. package/dist/components/charts/candlestick-chart/legend.js +10 -10
  171. package/dist/components/charts/candlestick-chart/legend.js.map +1 -1
  172. package/dist/components/charts/candlestick-chart/plot.d.ts.map +1 -1
  173. package/dist/components/charts/candlestick-chart/plot.js +17 -18
  174. package/dist/components/charts/candlestick-chart/plot.js.map +1 -1
  175. package/dist/components/charts/candlestick-chart.d.ts +2 -2
  176. package/dist/components/charts/candlestick-chart.js +3 -3
  177. package/dist/components/charts/candlestick-chart.js.map +1 -1
  178. package/dist/components/charts/composition-chart/context.d.ts +1 -1
  179. package/dist/components/charts/composition-chart/context.js +1 -1
  180. package/dist/components/charts/composition-chart/legend.js +5 -5
  181. package/dist/components/charts/composition-chart/legend.js.map +1 -1
  182. package/dist/components/charts/composition-chart/plot.js +9 -9
  183. package/dist/components/charts/composition-chart/plot.js.map +1 -1
  184. package/dist/components/charts/composition-chart/tooltip-content.js +4 -4
  185. package/dist/components/charts/composition-chart/tooltip-content.js.map +1 -1
  186. package/dist/components/charts/composition-chart.d.ts +2 -2
  187. package/dist/components/charts/composition-chart.js +3 -3
  188. package/dist/components/charts/composition-chart.js.map +1 -1
  189. package/dist/components/charts/donut-chart/center.d.ts +1 -1
  190. package/dist/components/charts/donut-chart/center.d.ts.map +1 -1
  191. package/dist/components/charts/donut-chart/center.js +7 -7
  192. package/dist/components/charts/donut-chart/center.js.map +1 -1
  193. package/dist/components/charts/donut-chart/context.d.ts +18 -2
  194. package/dist/components/charts/donut-chart/context.d.ts.map +1 -1
  195. package/dist/components/charts/donut-chart/context.js +1 -1
  196. package/dist/components/charts/donut-chart/legend.d.ts +1 -1
  197. package/dist/components/charts/donut-chart/legend.js +3 -3
  198. package/dist/components/charts/donut-chart/plot.js +3 -3
  199. package/dist/components/charts/donut-chart.d.ts +3 -3
  200. package/dist/components/charts/donut-chart.js +3 -3
  201. package/dist/components/charts/donut-chart.js.map +1 -1
  202. package/dist/components/charts/funnel-chart.d.ts +27 -1
  203. package/dist/components/charts/funnel-chart.d.ts.map +1 -1
  204. package/dist/components/charts/funnel-chart.js +52 -37
  205. package/dist/components/charts/funnel-chart.js.map +1 -1
  206. package/dist/components/charts/heat-calendar/grid.js +13 -6
  207. package/dist/components/charts/heat-calendar/grid.js.map +1 -1
  208. package/dist/components/charts/heat-calendar/legend.js +9 -6
  209. package/dist/components/charts/heat-calendar/legend.js.map +1 -1
  210. package/dist/components/charts/heat-calendar/tooltip.d.ts +1 -1
  211. package/dist/components/charts/heat-calendar/tooltip.js +10 -7
  212. package/dist/components/charts/heat-calendar/tooltip.js.map +1 -1
  213. package/dist/components/charts/heat-calendar.d.ts +2 -2
  214. package/dist/components/charts/heat-calendar.js +3 -3
  215. package/dist/components/charts/heat-calendar.js.map +1 -1
  216. package/dist/components/charts/line-chart/context.d.ts +29 -4
  217. package/dist/components/charts/line-chart/context.d.ts.map +1 -1
  218. package/dist/components/charts/line-chart/context.js +21 -6
  219. package/dist/components/charts/line-chart/context.js.map +1 -1
  220. package/dist/components/charts/line-chart/legend.d.ts +1 -0
  221. package/dist/components/charts/line-chart/legend.d.ts.map +1 -1
  222. package/dist/components/charts/line-chart/legend.js +2 -2
  223. package/dist/components/charts/line-chart/legend.js.map +1 -1
  224. package/dist/components/charts/line-chart/plot.d.ts +2 -0
  225. package/dist/components/charts/line-chart/plot.d.ts.map +1 -1
  226. package/dist/components/charts/line-chart/plot.js +27 -17
  227. package/dist/components/charts/line-chart/plot.js.map +1 -1
  228. package/dist/components/charts/line-chart/tooltip.d.ts +2 -1
  229. package/dist/components/charts/line-chart/tooltip.d.ts.map +1 -1
  230. package/dist/components/charts/line-chart/tooltip.js +7 -6
  231. package/dist/components/charts/line-chart/tooltip.js.map +1 -1
  232. package/dist/components/charts/line-chart.d.ts +6 -5
  233. package/dist/components/charts/line-chart.d.ts.map +1 -1
  234. package/dist/components/charts/line-chart.js +9 -6
  235. package/dist/components/charts/line-chart.js.map +1 -1
  236. package/dist/components/charts/liquidity-heatmap.d.ts +25 -1
  237. package/dist/components/charts/liquidity-heatmap.d.ts.map +1 -1
  238. package/dist/components/charts/liquidity-heatmap.js +55 -30
  239. package/dist/components/charts/liquidity-heatmap.js.map +1 -1
  240. package/dist/components/charts/order-book/depth-row.d.ts +1 -1
  241. package/dist/components/charts/order-book/depth-row.js +2 -2
  242. package/dist/components/charts/order-book.d.ts +38 -1
  243. package/dist/components/charts/order-book.d.ts.map +1 -1
  244. package/dist/components/charts/order-book.js +88 -37
  245. package/dist/components/charts/order-book.js.map +1 -1
  246. package/dist/components/charts/price-target-fan/header.js +6 -6
  247. package/dist/components/charts/price-target-fan/header.js.map +1 -1
  248. package/dist/components/charts/price-target-fan/plot.d.ts.map +1 -1
  249. package/dist/components/charts/price-target-fan/plot.js +21 -11
  250. package/dist/components/charts/price-target-fan/plot.js.map +1 -1
  251. package/dist/components/charts/price-target-fan/series.d.ts.map +1 -1
  252. package/dist/components/charts/price-target-fan/series.js +11 -7
  253. package/dist/components/charts/price-target-fan/series.js.map +1 -1
  254. package/dist/components/charts/price-target-fan/tooltip.d.ts +1 -1
  255. package/dist/components/charts/price-target-fan/tooltip.js +3 -3
  256. package/dist/components/charts/price-target-fan/tooltip.js.map +1 -1
  257. package/dist/components/charts/price-target-fan.d.ts +2 -2
  258. package/dist/components/charts/price-target-fan.js +4 -4
  259. package/dist/components/charts/price-target-fan.js.map +1 -1
  260. package/dist/components/charts/returns-calendar/grid.js +25 -15
  261. package/dist/components/charts/returns-calendar/grid.js.map +1 -1
  262. package/dist/components/charts/returns-calendar/tooltip.d.ts +1 -1
  263. package/dist/components/charts/returns-calendar/tooltip.js +3 -3
  264. package/dist/components/charts/returns-calendar/tooltip.js.map +1 -1
  265. package/dist/components/charts/returns-calendar.d.ts +9 -2
  266. package/dist/components/charts/returns-calendar.d.ts.map +1 -1
  267. package/dist/components/charts/returns-calendar.js +3 -3
  268. package/dist/components/charts/returns-calendar.js.map +1 -1
  269. package/dist/components/charts/sankey-chart/context.d.ts +1 -1
  270. package/dist/components/charts/sankey-chart/context.js +1 -1
  271. package/dist/components/charts/sankey-chart/plot.d.ts.map +1 -1
  272. package/dist/components/charts/sankey-chart/plot.js +18 -37
  273. package/dist/components/charts/sankey-chart/plot.js.map +1 -1
  274. package/dist/components/charts/sankey-chart/tooltip.d.ts +3 -1
  275. package/dist/components/charts/sankey-chart/tooltip.d.ts.map +1 -1
  276. package/dist/components/charts/sankey-chart/tooltip.js +16 -19
  277. package/dist/components/charts/sankey-chart/tooltip.js.map +1 -1
  278. package/dist/components/charts/sankey-chart.d.ts +3 -3
  279. package/dist/components/charts/sankey-chart.d.ts.map +1 -1
  280. package/dist/components/charts/sankey-chart.js +16 -15
  281. package/dist/components/charts/sankey-chart.js.map +1 -1
  282. package/dist/components/charts/sparkline.d.ts +23 -2
  283. package/dist/components/charts/sparkline.d.ts.map +1 -1
  284. package/dist/components/charts/sparkline.js +36 -16
  285. package/dist/components/charts/sparkline.js.map +1 -1
  286. package/dist/components/charts/status-bar/legend.d.ts +1 -0
  287. package/dist/components/charts/status-bar/legend.d.ts.map +1 -1
  288. package/dist/components/charts/status-bar/legend.js +3 -3
  289. package/dist/components/charts/status-bar/legend.js.map +1 -1
  290. package/dist/components/charts/status-bar/plot.d.ts +2 -0
  291. package/dist/components/charts/status-bar/plot.d.ts.map +1 -1
  292. package/dist/components/charts/status-bar/plot.js +6 -6
  293. package/dist/components/charts/status-bar/plot.js.map +1 -1
  294. package/dist/components/charts/status-bar/tooltip.d.ts +1 -1
  295. package/dist/components/charts/status-bar/tooltip.js +2 -2
  296. package/dist/components/charts/status-bar/tooltip.js.map +1 -1
  297. package/dist/components/charts/status-bar.d.ts +3 -3
  298. package/dist/components/charts/status-bar.d.ts.map +1 -1
  299. package/dist/components/charts/status-bar.js +11 -9
  300. package/dist/components/charts/status-bar.js.map +1 -1
  301. package/dist/components/charts/treemap/legend.d.ts +2 -0
  302. package/dist/components/charts/treemap/legend.d.ts.map +1 -1
  303. package/dist/components/charts/treemap/legend.js +3 -3
  304. package/dist/components/charts/treemap/legend.js.map +1 -1
  305. package/dist/components/charts/treemap/plot.d.ts +2 -1
  306. package/dist/components/charts/treemap/plot.d.ts.map +1 -1
  307. package/dist/components/charts/treemap/plot.js +8 -21
  308. package/dist/components/charts/treemap/plot.js.map +1 -1
  309. package/dist/components/charts/treemap/tile.d.ts +1 -1
  310. package/dist/components/charts/treemap/tile.js +7 -7
  311. package/dist/components/charts/treemap/tile.js.map +1 -1
  312. package/dist/components/charts/treemap/tooltip.d.ts +3 -1
  313. package/dist/components/charts/treemap/tooltip.d.ts.map +1 -1
  314. package/dist/components/charts/treemap/tooltip.js +4 -4
  315. package/dist/components/charts/treemap/tooltip.js.map +1 -1
  316. package/dist/components/charts/treemap.d.ts +29 -6
  317. package/dist/components/charts/treemap.d.ts.map +1 -1
  318. package/dist/components/charts/treemap.js +12 -10
  319. package/dist/components/charts/treemap.js.map +1 -1
  320. package/dist/components/charts/volume-profile/plot.d.ts +2 -0
  321. package/dist/components/charts/volume-profile/plot.d.ts.map +1 -1
  322. package/dist/components/charts/volume-profile/plot.js +10 -10
  323. package/dist/components/charts/volume-profile/plot.js.map +1 -1
  324. package/dist/components/charts/volume-profile/summary.js +16 -22
  325. package/dist/components/charts/volume-profile/summary.js.map +1 -1
  326. package/dist/components/charts/volume-profile/tooltip.d.ts +1 -1
  327. package/dist/components/charts/volume-profile/tooltip.js +6 -6
  328. package/dist/components/charts/volume-profile/tooltip.js.map +1 -1
  329. package/dist/components/charts/volume-profile.d.ts +39 -5
  330. package/dist/components/charts/volume-profile.d.ts.map +1 -1
  331. package/dist/components/charts/volume-profile.js +18 -22
  332. package/dist/components/charts/volume-profile.js.map +1 -1
  333. package/dist/components/charts/xy/axis.js +1 -1
  334. package/dist/components/charts/xy/data-table.d.ts +4 -2
  335. package/dist/components/charts/xy/data-table.d.ts.map +1 -1
  336. package/dist/components/charts/xy/data-table.js +4 -4
  337. package/dist/components/charts/xy/data-table.js.map +1 -1
  338. package/dist/components/charts/xy/legend.d.ts +1 -1
  339. package/dist/components/charts/xy/tooltip-content.d.ts +1 -1
  340. package/dist/components/charts/xy/tooltip-content.js +5 -5
  341. package/dist/components/charts/xy/tooltip-content.js.map +1 -1
  342. package/dist/components/custom/confirm-dialog.js +1 -1
  343. package/dist/components/custom/toast.d.ts +2 -1
  344. package/dist/components/custom/toast.d.ts.map +1 -1
  345. package/dist/components/custom/toast.js +1 -1
  346. package/dist/components/motion/action-swap.d.ts +19 -0
  347. package/dist/components/motion/action-swap.d.ts.map +1 -1
  348. package/dist/components/motion/action-swap.js +2 -2
  349. package/dist/components/motion/action-swap.js.map +1 -1
  350. package/dist/components/motion/adaptive-stepper.d.ts +24 -1
  351. package/dist/components/motion/adaptive-stepper.d.ts.map +1 -1
  352. package/dist/components/motion/adaptive-stepper.js +28 -23
  353. package/dist/components/motion/adaptive-stepper.js.map +1 -1
  354. package/dist/components/motion/add-to-cart.d.ts +38 -0
  355. package/dist/components/motion/add-to-cart.d.ts.map +1 -0
  356. package/dist/components/motion/add-to-cart.js +228 -0
  357. package/dist/components/motion/add-to-cart.js.map +1 -0
  358. package/dist/components/motion/alert.d.ts +12 -1
  359. package/dist/components/motion/alert.d.ts.map +1 -1
  360. package/dist/components/motion/alert.js +18 -12
  361. package/dist/components/motion/alert.js.map +1 -1
  362. package/dist/components/motion/animated-badge.d.ts +6 -0
  363. package/dist/components/motion/animated-badge.d.ts.map +1 -1
  364. package/dist/components/motion/animated-badge.js +6 -6
  365. package/dist/components/motion/animated-badge.js.map +1 -1
  366. package/dist/components/motion/animated-number.d.ts +5 -0
  367. package/dist/components/motion/animated-number.d.ts.map +1 -1
  368. package/dist/components/motion/animated-number.js +2 -2
  369. package/dist/components/motion/animated-number.js.map +1 -1
  370. package/dist/components/motion/animated-sidebar/menu-button.d.ts +2 -0
  371. package/dist/components/motion/animated-sidebar/menu-button.js +95 -0
  372. package/dist/components/motion/animated-sidebar/menu-button.js.map +1 -0
  373. package/dist/components/motion/animated-sidebar/menu-sub-button.d.ts +2 -0
  374. package/dist/components/motion/animated-sidebar/menu-sub-button.js +52 -0
  375. package/dist/components/motion/animated-sidebar/menu-sub-button.js.map +1 -0
  376. package/dist/components/motion/animated-sidebar/mobile-sidebar.d.ts +9 -0
  377. package/dist/components/motion/animated-sidebar/mobile-sidebar.d.ts.map +1 -0
  378. package/dist/components/motion/animated-sidebar/mobile-sidebar.js +73 -0
  379. package/dist/components/motion/animated-sidebar/mobile-sidebar.js.map +1 -0
  380. package/dist/components/motion/animated-sidebar.d.ts +20 -47
  381. package/dist/components/motion/animated-sidebar.d.ts.map +1 -1
  382. package/dist/components/motion/animated-sidebar.js +5 -619
  383. package/dist/components/motion/animated-toast-stack/toast-body.d.ts +19 -0
  384. package/dist/components/motion/animated-toast-stack/toast-body.d.ts.map +1 -0
  385. package/dist/components/motion/animated-toast-stack/toast-body.js +154 -0
  386. package/dist/components/motion/animated-toast-stack/toast-body.js.map +1 -0
  387. package/dist/components/motion/animated-toast-stack.d.ts +3 -62
  388. package/dist/components/motion/animated-toast-stack.js +1 -302
  389. package/dist/components/motion/arc-picker.d.ts +11 -1
  390. package/dist/components/motion/arc-picker.d.ts.map +1 -1
  391. package/dist/components/motion/arc-picker.js +21 -14
  392. package/dist/components/motion/arc-picker.js.map +1 -1
  393. package/dist/components/motion/aspect-ratio.d.ts +1 -0
  394. package/dist/components/motion/aspect-ratio.d.ts.map +1 -1
  395. package/dist/components/motion/aspect-ratio.js +2 -2
  396. package/dist/components/motion/aspect-ratio.js.map +1 -1
  397. package/dist/components/motion/attachment-upload/attachment-row.d.ts +20 -0
  398. package/dist/components/motion/attachment-upload/attachment-row.d.ts.map +1 -0
  399. package/dist/components/motion/attachment-upload/attachment-row.js +224 -0
  400. package/dist/components/motion/attachment-upload/attachment-row.js.map +1 -0
  401. package/dist/components/motion/attachment-upload/image-preview-dialog.d.ts +10 -0
  402. package/dist/components/motion/attachment-upload/image-preview-dialog.d.ts.map +1 -0
  403. package/dist/components/motion/attachment-upload/image-preview-dialog.js +84 -0
  404. package/dist/components/motion/attachment-upload/image-preview-dialog.js.map +1 -0
  405. package/dist/components/motion/attachment-upload/image-thumbnail.d.ts +10 -0
  406. package/dist/components/motion/attachment-upload/image-thumbnail.d.ts.map +1 -0
  407. package/dist/components/motion/attachment-upload/image-thumbnail.js +53 -0
  408. package/dist/components/motion/attachment-upload/image-thumbnail.js.map +1 -0
  409. package/dist/components/motion/attachment-upload/row-action.d.ts +11 -0
  410. package/dist/components/motion/attachment-upload/row-action.d.ts.map +1 -0
  411. package/dist/components/motion/attachment-upload/row-action.js +98 -0
  412. package/dist/components/motion/attachment-upload/row-action.js.map +1 -0
  413. package/dist/components/motion/attachment-upload.d.ts +25 -22
  414. package/dist/components/motion/attachment-upload.d.ts.map +1 -1
  415. package/dist/components/motion/attachment-upload.js +59 -481
  416. package/dist/components/motion/attachment-upload.js.map +1 -1
  417. package/dist/components/motion/availability-scheduler/copy-menu.d.ts +5 -2
  418. package/dist/components/motion/availability-scheduler/copy-menu.d.ts.map +1 -1
  419. package/dist/components/motion/availability-scheduler/copy-menu.js +1 -1
  420. package/dist/components/motion/availability-scheduler/day-row.d.ts +4 -2
  421. package/dist/components/motion/availability-scheduler/day-row.d.ts.map +1 -1
  422. package/dist/components/motion/availability-scheduler/day-row.js +23 -15
  423. package/dist/components/motion/availability-scheduler/day-row.js.map +1 -1
  424. package/dist/components/motion/availability-scheduler/icon-button.js +3 -3
  425. package/dist/components/motion/availability-scheduler/icon-button.js.map +1 -1
  426. package/dist/components/motion/availability-scheduler/time-select.d.ts +1 -1
  427. package/dist/components/motion/availability-scheduler.d.ts +19 -0
  428. package/dist/components/motion/availability-scheduler.d.ts.map +1 -0
  429. package/dist/components/motion/{availability-scheduler/index.js → availability-scheduler.js} +31 -9
  430. package/dist/components/motion/availability-scheduler.js.map +1 -0
  431. package/dist/components/motion/avatar-group.d.ts +20 -2
  432. package/dist/components/motion/avatar-group.d.ts.map +1 -1
  433. package/dist/components/motion/avatar-group.js +20 -11
  434. package/dist/components/motion/avatar-group.js.map +1 -1
  435. package/dist/components/motion/before-after-slider.d.ts +38 -0
  436. package/dist/components/motion/before-after-slider.d.ts.map +1 -0
  437. package/dist/components/motion/before-after-slider.js +351 -0
  438. package/dist/components/motion/before-after-slider.js.map +1 -0
  439. package/dist/components/motion/bloom-menu.d.ts +20 -1
  440. package/dist/components/motion/bloom-menu.d.ts.map +1 -1
  441. package/dist/components/motion/bloom-menu.js +42 -35
  442. package/dist/components/motion/bloom-menu.js.map +1 -1
  443. package/dist/components/motion/bookmark-button.d.ts +30 -0
  444. package/dist/components/motion/bookmark-button.d.ts.map +1 -0
  445. package/dist/components/motion/bookmark-button.js +107 -0
  446. package/dist/components/motion/bookmark-button.js.map +1 -0
  447. package/dist/components/motion/bookshelf.d.ts +53 -0
  448. package/dist/components/motion/bookshelf.d.ts.map +1 -0
  449. package/dist/components/motion/bookshelf.js +518 -0
  450. package/dist/components/motion/bookshelf.js.map +1 -0
  451. package/dist/components/motion/bottom-sheet.d.ts +15 -1
  452. package/dist/components/motion/bottom-sheet.d.ts.map +1 -1
  453. package/dist/components/motion/bottom-sheet.js +22 -43
  454. package/dist/components/motion/bottom-sheet.js.map +1 -1
  455. package/dist/components/motion/bounce-sidebar.d.ts +24 -1
  456. package/dist/components/motion/bounce-sidebar.d.ts.map +1 -1
  457. package/dist/components/motion/bounce-sidebar.js +8 -4
  458. package/dist/components/motion/bounce-sidebar.js.map +1 -1
  459. package/dist/components/motion/bouncy-accordion.d.ts +20 -0
  460. package/dist/components/motion/bouncy-accordion.d.ts.map +1 -1
  461. package/dist/components/motion/bouncy-accordion.js +39 -16
  462. package/dist/components/motion/bouncy-accordion.js.map +1 -1
  463. package/dist/components/motion/breadcrumb.d.ts +13 -2
  464. package/dist/components/motion/breadcrumb.d.ts.map +1 -1
  465. package/dist/components/motion/breadcrumb.js +34 -20
  466. package/dist/components/motion/breadcrumb.js.map +1 -1
  467. package/dist/components/motion/button/base.d.ts +8 -0
  468. package/dist/components/motion/button/base.d.ts.map +1 -1
  469. package/dist/components/motion/button/base.js +17 -12
  470. package/dist/components/motion/button/base.js.map +1 -1
  471. package/dist/components/motion/button/magnetic.js +1 -1
  472. package/dist/components/motion/button/metallic.d.ts.map +1 -1
  473. package/dist/components/motion/button/metallic.js +11 -10
  474. package/dist/components/motion/button/metallic.js.map +1 -1
  475. package/dist/components/motion/button/stateful.d.ts +15 -1
  476. package/dist/components/motion/button/stateful.d.ts.map +1 -1
  477. package/dist/components/motion/button/stateful.js +14 -7
  478. package/dist/components/motion/button/stateful.js.map +1 -1
  479. package/dist/components/motion/button.d.ts +5 -0
  480. package/dist/components/motion/button.js +6 -0
  481. package/dist/components/motion/card-dealer.d.ts +10 -1
  482. package/dist/components/motion/card-dealer.d.ts.map +1 -1
  483. package/dist/components/motion/card-dealer.js +9 -5
  484. package/dist/components/motion/card-dealer.js.map +1 -1
  485. package/dist/components/motion/card-folder.d.ts +32 -1
  486. package/dist/components/motion/card-folder.d.ts.map +1 -1
  487. package/dist/components/motion/card-folder.js +36 -20
  488. package/dist/components/motion/card-folder.js.map +1 -1
  489. package/dist/components/motion/card.js +3 -3
  490. package/dist/components/motion/card.js.map +1 -1
  491. package/dist/components/motion/casino/game-parts.d.ts +2 -0
  492. package/dist/components/motion/casino/game-parts.js +207 -0
  493. package/dist/components/motion/casino/game-parts.js.map +1 -0
  494. package/dist/components/motion/center-morph-modal.d.ts +13 -1
  495. package/dist/components/motion/center-morph-modal.d.ts.map +1 -1
  496. package/dist/components/motion/center-morph-modal.js +85 -101
  497. package/dist/components/motion/center-morph-modal.js.map +1 -1
  498. package/dist/components/motion/checkbox.d.ts +17 -1
  499. package/dist/components/motion/checkbox.d.ts.map +1 -1
  500. package/dist/components/motion/checkbox.js +12 -5
  501. package/dist/components/motion/checkbox.js.map +1 -1
  502. package/dist/components/motion/chromatic-text-reveal.js +5 -5
  503. package/dist/components/motion/chromatic-text-reveal.js.map +1 -1
  504. package/dist/components/motion/click-burst.d.ts +24 -0
  505. package/dist/components/motion/click-burst.d.ts.map +1 -0
  506. package/dist/components/motion/click-burst.js +133 -0
  507. package/dist/components/motion/click-burst.js.map +1 -0
  508. package/dist/components/motion/collapsible.d.ts +4 -0
  509. package/dist/components/motion/collapsible.d.ts.map +1 -1
  510. package/dist/components/motion/collapsible.js +4 -4
  511. package/dist/components/motion/collapsible.js.map +1 -1
  512. package/dist/components/motion/color-picker.d.ts +29 -21
  513. package/dist/components/motion/color-picker.d.ts.map +1 -1
  514. package/dist/components/motion/color-picker.js +78 -131
  515. package/dist/components/motion/color-picker.js.map +1 -1
  516. package/dist/components/motion/color-selector.d.ts +5 -0
  517. package/dist/components/motion/color-selector.d.ts.map +1 -1
  518. package/dist/components/motion/color-selector.js +2 -2
  519. package/dist/components/motion/color-selector.js.map +1 -1
  520. package/dist/components/motion/combobox/content.d.ts +3 -10
  521. package/dist/components/motion/combobox/content.d.ts.map +1 -1
  522. package/dist/components/motion/combobox/content.js +14 -80
  523. package/dist/components/motion/combobox/content.js.map +1 -1
  524. package/dist/components/motion/combobox/context.d.ts +3 -66
  525. package/dist/components/motion/combobox/context.js +1 -216
  526. package/dist/components/motion/combobox/list.d.ts +12 -0
  527. package/dist/components/motion/combobox/list.d.ts.map +1 -1
  528. package/dist/components/motion/combobox/list.js +13 -12
  529. package/dist/components/motion/combobox/list.js.map +1 -1
  530. package/dist/components/motion/combobox/listbox-panel.d.ts +2 -0
  531. package/dist/components/motion/combobox/listbox-panel.js +99 -0
  532. package/dist/components/motion/combobox/listbox-panel.js.map +1 -0
  533. package/dist/components/motion/combobox/trigger.d.ts +5 -0
  534. package/dist/components/motion/combobox/trigger.d.ts.map +1 -1
  535. package/dist/components/motion/combobox/trigger.js +10 -8
  536. package/dist/components/motion/combobox/trigger.js.map +1 -1
  537. package/dist/components/motion/combobox.d.ts +2 -2
  538. package/dist/components/motion/combobox.js +2 -2
  539. package/dist/components/motion/command-palette.d.ts +41 -1
  540. package/dist/components/motion/command-palette.d.ts.map +1 -1
  541. package/dist/components/motion/command-palette.js +305 -132
  542. package/dist/components/motion/command-palette.js.map +1 -1
  543. package/dist/components/motion/confetti.d.ts +23 -0
  544. package/dist/components/motion/confetti.d.ts.map +1 -0
  545. package/dist/components/motion/confetti.js +154 -0
  546. package/dist/components/motion/confetti.js.map +1 -0
  547. package/dist/components/motion/context-menu.d.ts +33 -1
  548. package/dist/components/motion/context-menu.d.ts.map +1 -1
  549. package/dist/components/motion/context-menu.js +126 -122
  550. package/dist/components/motion/context-menu.js.map +1 -1
  551. package/dist/components/motion/copy-button.d.ts +27 -0
  552. package/dist/components/motion/copy-button.d.ts.map +1 -0
  553. package/dist/components/motion/copy-button.js +129 -0
  554. package/dist/components/motion/copy-button.js.map +1 -0
  555. package/dist/components/motion/crash/crash-balloon.d.ts +2 -1
  556. package/dist/components/motion/crash/crash-balloon.d.ts.map +1 -1
  557. package/dist/components/motion/crash/crash-balloon.js +13 -11
  558. package/dist/components/motion/crash/crash-balloon.js.map +1 -1
  559. package/dist/components/motion/crash/crash-parts.d.ts +3 -7
  560. package/dist/components/motion/crash/crash-parts.d.ts.map +1 -1
  561. package/dist/components/motion/crash/crash-parts.js +3 -1
  562. package/dist/components/motion/crash/crash-tower.d.ts +2 -1
  563. package/dist/components/motion/crash/crash-tower.d.ts.map +1 -1
  564. package/dist/components/motion/crash/crash-tower.js +10 -9
  565. package/dist/components/motion/crash/crash-tower.js.map +1 -1
  566. package/dist/components/motion/crash.d.ts +2 -1
  567. package/dist/components/motion/crash.d.ts.map +1 -1
  568. package/dist/components/motion/crash.js +11 -9
  569. package/dist/components/motion/crash.js.map +1 -1
  570. package/dist/components/motion/cylinder-carousel.d.ts +14 -4
  571. package/dist/components/motion/cylinder-carousel.d.ts.map +1 -1
  572. package/dist/components/motion/cylinder-carousel.js +14 -8
  573. package/dist/components/motion/cylinder-carousel.js.map +1 -1
  574. package/dist/components/motion/date-range-picker/calendar-choices.d.ts +18 -0
  575. package/dist/components/motion/date-range-picker/calendar-choices.d.ts.map +1 -0
  576. package/dist/components/motion/date-range-picker/calendar-choices.js +62 -0
  577. package/dist/components/motion/date-range-picker/calendar-choices.js.map +1 -0
  578. package/dist/components/motion/date-range-picker/calendar-presence.d.ts +5 -0
  579. package/dist/components/motion/date-range-picker/calendar-presence.d.ts.map +1 -0
  580. package/dist/components/motion/date-range-picker/calendar-presence.js +14 -0
  581. package/dist/components/motion/date-range-picker/calendar-presence.js.map +1 -0
  582. package/dist/components/motion/date-range-picker/calendar.d.ts +8 -0
  583. package/dist/components/motion/date-range-picker/calendar.d.ts.map +1 -0
  584. package/dist/components/motion/date-range-picker/calendar.js +46 -0
  585. package/dist/components/motion/date-range-picker/calendar.js.map +1 -0
  586. package/dist/components/motion/date-range-picker/clear.d.ts +4 -0
  587. package/dist/components/motion/date-range-picker/clear.d.ts.map +1 -0
  588. package/dist/components/motion/date-range-picker/clear.js +23 -0
  589. package/dist/components/motion/date-range-picker/clear.js.map +1 -0
  590. package/dist/components/motion/date-range-picker/content.d.ts +7 -0
  591. package/dist/components/motion/date-range-picker/content.d.ts.map +1 -0
  592. package/dist/components/motion/date-range-picker/content.js +36 -0
  593. package/dist/components/motion/date-range-picker/content.js.map +1 -0
  594. package/dist/components/motion/date-range-picker/dropdown.d.ts +12 -0
  595. package/dist/components/motion/date-range-picker/dropdown.d.ts.map +1 -0
  596. package/dist/components/motion/date-range-picker/dropdown.js +26 -0
  597. package/dist/components/motion/date-range-picker/dropdown.js.map +1 -0
  598. package/dist/components/motion/date-range-picker/footer.d.ts +4 -0
  599. package/dist/components/motion/date-range-picker/footer.d.ts.map +1 -0
  600. package/dist/components/motion/date-range-picker/footer.js +20 -0
  601. package/dist/components/motion/date-range-picker/footer.js.map +1 -0
  602. package/dist/components/motion/date-range-picker/grid.d.ts +4 -0
  603. package/dist/components/motion/date-range-picker/grid.d.ts.map +1 -0
  604. package/dist/components/motion/date-range-picker/grid.js +132 -0
  605. package/dist/components/motion/date-range-picker/grid.js.map +1 -0
  606. package/dist/components/motion/date-range-picker/header.d.ts +4 -0
  607. package/dist/components/motion/date-range-picker/header.d.ts.map +1 -0
  608. package/dist/components/motion/date-range-picker/header.js +85 -0
  609. package/dist/components/motion/date-range-picker/header.js.map +1 -0
  610. package/dist/components/motion/date-range-picker/preset.d.ts +10 -0
  611. package/dist/components/motion/date-range-picker/preset.d.ts.map +1 -0
  612. package/dist/components/motion/date-range-picker/preset.js +25 -0
  613. package/dist/components/motion/date-range-picker/preset.js.map +1 -0
  614. package/dist/components/motion/date-range-picker/presets.d.ts +4 -0
  615. package/dist/components/motion/date-range-picker/presets.d.ts.map +1 -0
  616. package/dist/components/motion/date-range-picker/presets.js +22 -0
  617. package/dist/components/motion/date-range-picker/presets.js.map +1 -0
  618. package/dist/components/motion/date-range-picker/root.d.ts +4 -0
  619. package/dist/components/motion/date-range-picker/root.d.ts.map +1 -0
  620. package/dist/components/motion/date-range-picker/root.js +3 -0
  621. package/dist/components/motion/date-range-picker/selection.d.ts +4 -0
  622. package/dist/components/motion/date-range-picker/selection.d.ts.map +1 -0
  623. package/dist/components/motion/date-range-picker/selection.js +17 -0
  624. package/dist/components/motion/date-range-picker/selection.js.map +1 -0
  625. package/dist/components/motion/date-range-picker/summary.d.ts +4 -0
  626. package/dist/components/motion/date-range-picker/summary.d.ts.map +1 -0
  627. package/dist/components/motion/date-range-picker/summary.js +40 -0
  628. package/dist/components/motion/date-range-picker/summary.js.map +1 -0
  629. package/dist/components/motion/date-range-picker/trigger.d.ts +7 -0
  630. package/dist/components/motion/date-range-picker/trigger.d.ts.map +1 -0
  631. package/dist/components/motion/date-range-picker/trigger.js +74 -0
  632. package/dist/components/motion/date-range-picker/trigger.js.map +1 -0
  633. package/dist/components/motion/date-range-picker.d.ts +16 -82
  634. package/dist/components/motion/date-range-picker.d.ts.map +1 -1
  635. package/dist/components/motion/date-range-picker.js +15 -875
  636. package/dist/components/motion/date-range-picker.js.map +1 -1
  637. package/dist/components/motion/delete-button.d.ts +31 -0
  638. package/dist/components/motion/delete-button.d.ts.map +1 -0
  639. package/dist/components/motion/delete-button.js +263 -0
  640. package/dist/components/motion/delete-button.js.map +1 -0
  641. package/dist/components/motion/digit-swap.d.ts +3 -0
  642. package/dist/components/motion/digit-swap.d.ts.map +1 -1
  643. package/dist/components/motion/digit-swap.js +2 -2
  644. package/dist/components/motion/digit-swap.js.map +1 -1
  645. package/dist/components/motion/dock.d.ts +4 -0
  646. package/dist/components/motion/dock.d.ts.map +1 -1
  647. package/dist/components/motion/dock.js +4 -4
  648. package/dist/components/motion/dock.js.map +1 -1
  649. package/dist/components/motion/download-button.d.ts +29 -0
  650. package/dist/components/motion/download-button.d.ts.map +1 -0
  651. package/dist/components/motion/download-button.js +305 -0
  652. package/dist/components/motion/download-button.js.map +1 -0
  653. package/dist/components/motion/drawer.d.ts +17 -2
  654. package/dist/components/motion/drawer.d.ts.map +1 -1
  655. package/dist/components/motion/drawer.js +74 -20
  656. package/dist/components/motion/drawer.js.map +1 -1
  657. package/dist/components/motion/dropdown-menu/item-base.d.ts +37 -0
  658. package/dist/components/motion/dropdown-menu/item-base.d.ts.map +1 -0
  659. package/dist/components/motion/dropdown-menu/item-base.js +78 -0
  660. package/dist/components/motion/dropdown-menu/item-base.js.map +1 -0
  661. package/dist/components/motion/dropdown-menu/menu-panel.d.ts +31 -0
  662. package/dist/components/motion/dropdown-menu/menu-panel.d.ts.map +1 -0
  663. package/dist/components/motion/dropdown-menu/menu-panel.js +201 -0
  664. package/dist/components/motion/dropdown-menu/menu-panel.js.map +1 -0
  665. package/dist/components/motion/dropdown-menu.d.ts +111 -0
  666. package/dist/components/motion/dropdown-menu.d.ts.map +1 -0
  667. package/dist/components/motion/dropdown-menu.js +400 -0
  668. package/dist/components/motion/dropdown-menu.js.map +1 -0
  669. package/dist/components/motion/dynamic-island.d.ts +2 -0
  670. package/dist/components/motion/dynamic-island.d.ts.map +1 -1
  671. package/dist/components/motion/dynamic-island.js +2 -2
  672. package/dist/components/motion/dynamic-island.js.map +1 -1
  673. package/dist/components/motion/expandable-action-bar.d.ts +28 -0
  674. package/dist/components/motion/expandable-action-bar.d.ts.map +1 -1
  675. package/dist/components/motion/expandable-action-bar.js +8 -17
  676. package/dist/components/motion/expandable-action-bar.js.map +1 -1
  677. package/dist/components/motion/expandable-control.d.ts +14 -0
  678. package/dist/components/motion/expandable-control.d.ts.map +1 -1
  679. package/dist/components/motion/expandable-control.js +6 -3
  680. package/dist/components/motion/expandable-control.js.map +1 -1
  681. package/dist/components/motion/expandable-tabs.d.ts +24 -2
  682. package/dist/components/motion/expandable-tabs.d.ts.map +1 -1
  683. package/dist/components/motion/expandable-tabs.js +12 -20
  684. package/dist/components/motion/expandable-tabs.js.map +1 -1
  685. package/dist/components/motion/expanding-arrow-button.d.ts +2 -0
  686. package/dist/components/motion/expanding-arrow-button.d.ts.map +1 -1
  687. package/dist/components/motion/expanding-arrow-button.js +6 -6
  688. package/dist/components/motion/expanding-arrow-button.js.map +1 -1
  689. package/dist/components/motion/feedback-widget.d.ts +24 -1
  690. package/dist/components/motion/feedback-widget.d.ts.map +1 -1
  691. package/dist/components/motion/feedback-widget.js +46 -44
  692. package/dist/components/motion/feedback-widget.js.map +1 -1
  693. package/dist/components/motion/file-tree.d.ts +32 -1
  694. package/dist/components/motion/file-tree.d.ts.map +1 -1
  695. package/dist/components/motion/file-tree.js +15 -15
  696. package/dist/components/motion/file-tree.js.map +1 -1
  697. package/dist/components/motion/file-upload.d.ts +54 -1
  698. package/dist/components/motion/file-upload.d.ts.map +1 -1
  699. package/dist/components/motion/file-upload.js +87 -46
  700. package/dist/components/motion/file-upload.js.map +1 -1
  701. package/dist/components/motion/follow-button.d.ts +31 -0
  702. package/dist/components/motion/follow-button.d.ts.map +1 -0
  703. package/dist/components/motion/follow-button.js +184 -0
  704. package/dist/components/motion/follow-button.js.map +1 -0
  705. package/dist/components/motion/hold-action-button.d.ts +15 -0
  706. package/dist/components/motion/hold-action-button.d.ts.map +1 -1
  707. package/dist/components/motion/hold-action-button.js +21 -9
  708. package/dist/components/motion/hold-action-button.js.map +1 -1
  709. package/dist/components/motion/infinite-masonry.d.ts +35 -1
  710. package/dist/components/motion/infinite-masonry.d.ts.map +1 -1
  711. package/dist/components/motion/infinite-masonry.js +30 -15
  712. package/dist/components/motion/infinite-masonry.js.map +1 -1
  713. package/dist/components/motion/input.d.ts +17 -0
  714. package/dist/components/motion/input.d.ts.map +1 -1
  715. package/dist/components/motion/input.js +3 -2
  716. package/dist/components/motion/input.js.map +1 -1
  717. package/dist/components/motion/knockout-bracket.d.ts +32 -6
  718. package/dist/components/motion/knockout-bracket.d.ts.map +1 -1
  719. package/dist/components/motion/knockout-bracket.js +104 -50
  720. package/dist/components/motion/knockout-bracket.js.map +1 -1
  721. package/dist/components/motion/knockout-wheel.d.ts +23 -4
  722. package/dist/components/motion/knockout-wheel.d.ts.map +1 -1
  723. package/dist/components/motion/knockout-wheel.js +50 -24
  724. package/dist/components/motion/knockout-wheel.js.map +1 -1
  725. package/dist/components/motion/like-button.d.ts +26 -0
  726. package/dist/components/motion/like-button.d.ts.map +1 -0
  727. package/dist/components/motion/like-button.js +128 -0
  728. package/dist/components/motion/like-button.js.map +1 -0
  729. package/dist/components/motion/liquid.js +4 -4
  730. package/dist/components/motion/liquid.js.map +1 -1
  731. package/dist/components/motion/loader.d.ts +11 -1
  732. package/dist/components/motion/loader.d.ts.map +1 -1
  733. package/dist/components/motion/loader.js +49 -34
  734. package/dist/components/motion/loader.js.map +1 -1
  735. package/dist/components/motion/lock-toggle.d.ts +29 -0
  736. package/dist/components/motion/lock-toggle.d.ts.map +1 -0
  737. package/dist/components/motion/lock-toggle.js +252 -0
  738. package/dist/components/motion/lock-toggle.js.map +1 -0
  739. package/dist/components/motion/magnetic.js +3 -3
  740. package/dist/components/motion/marquee.d.ts +6 -0
  741. package/dist/components/motion/marquee.d.ts.map +1 -1
  742. package/dist/components/motion/marquee.js.map +1 -1
  743. package/dist/components/motion/menu/menu-item-highlight.d.ts +16 -0
  744. package/dist/components/motion/menu/menu-item-highlight.d.ts.map +1 -0
  745. package/dist/components/motion/menu/menu-item-highlight.js +20 -0
  746. package/dist/components/motion/menu/menu-item-highlight.js.map +1 -0
  747. package/dist/components/motion/message-status.d.ts +26 -0
  748. package/dist/components/motion/message-status.d.ts.map +1 -0
  749. package/dist/components/motion/message-status.js +198 -0
  750. package/dist/components/motion/message-status.js.map +1 -0
  751. package/dist/components/motion/mines.d.ts +43 -3
  752. package/dist/components/motion/mines.d.ts.map +1 -1
  753. package/dist/components/motion/mines.js +92 -57
  754. package/dist/components/motion/mines.js.map +1 -1
  755. package/dist/components/motion/morphing-lightbox.d.ts +33 -1
  756. package/dist/components/motion/morphing-lightbox.d.ts.map +1 -1
  757. package/dist/components/motion/morphing-lightbox.js +42 -25
  758. package/dist/components/motion/morphing-lightbox.js.map +1 -1
  759. package/dist/components/motion/morphing-modal.d.ts +10 -1
  760. package/dist/components/motion/morphing-modal.d.ts.map +1 -1
  761. package/dist/components/motion/morphing-modal.js +25 -20
  762. package/dist/components/motion/morphing-modal.js.map +1 -1
  763. package/dist/components/motion/morphing-search-chips.d.ts +34 -1
  764. package/dist/components/motion/morphing-search-chips.d.ts.map +1 -1
  765. package/dist/components/motion/morphing-search-chips.js +47 -35
  766. package/dist/components/motion/morphing-search-chips.js.map +1 -1
  767. package/dist/components/motion/morphing-search.d.ts +28 -1
  768. package/dist/components/motion/morphing-search.d.ts.map +1 -1
  769. package/dist/components/motion/morphing-search.js +36 -26
  770. package/dist/components/motion/morphing-search.js.map +1 -1
  771. package/dist/components/motion/morphing-tabs.d.ts +29 -1
  772. package/dist/components/motion/morphing-tabs.d.ts.map +1 -1
  773. package/dist/components/motion/morphing-tabs.js +40 -16
  774. package/dist/components/motion/morphing-tabs.js.map +1 -1
  775. package/dist/components/motion/multi-select/content.d.ts +3 -10
  776. package/dist/components/motion/multi-select/content.d.ts.map +1 -1
  777. package/dist/components/motion/multi-select/content.js +14 -80
  778. package/dist/components/motion/multi-select/content.js.map +1 -1
  779. package/dist/components/motion/multi-select/context.d.ts +2 -61
  780. package/dist/components/motion/multi-select/context.js +1 -226
  781. package/dist/components/motion/multi-select/list.d.ts +12 -0
  782. package/dist/components/motion/multi-select/list.d.ts.map +1 -1
  783. package/dist/components/motion/multi-select/list.js +14 -13
  784. package/dist/components/motion/multi-select/list.js.map +1 -1
  785. package/dist/components/motion/multi-select/trigger.d.ts +6 -0
  786. package/dist/components/motion/multi-select/trigger.d.ts.map +1 -1
  787. package/dist/components/motion/multi-select/trigger.js +15 -13
  788. package/dist/components/motion/multi-select/trigger.js.map +1 -1
  789. package/dist/components/motion/{multi-select/index.d.ts → multi-select.d.ts} +5 -5
  790. package/dist/components/motion/{multi-select/index.js → multi-select.js} +5 -5
  791. package/dist/components/motion/mute-toggle.d.ts +25 -0
  792. package/dist/components/motion/mute-toggle.d.ts.map +1 -0
  793. package/dist/components/motion/mute-toggle.js +221 -0
  794. package/dist/components/motion/mute-toggle.js.map +1 -0
  795. package/dist/components/motion/not-found/glitch.d.ts +1 -1
  796. package/dist/components/motion/not-found/glitch.d.ts.map +1 -1
  797. package/dist/components/motion/not-found/glitch.js +10 -8
  798. package/dist/components/motion/not-found/glitch.js.map +1 -1
  799. package/dist/components/motion/not-found/magnetic.d.ts +1 -1
  800. package/dist/components/motion/not-found/magnetic.d.ts.map +1 -1
  801. package/dist/components/motion/not-found/magnetic.js +10 -8
  802. package/dist/components/motion/not-found/magnetic.js.map +1 -1
  803. package/dist/components/motion/not-found/shared.d.ts +23 -6
  804. package/dist/components/motion/not-found/shared.d.ts.map +1 -1
  805. package/dist/components/motion/not-found/shared.js +20 -9
  806. package/dist/components/motion/not-found/shared.js.map +1 -1
  807. package/dist/components/motion/not-found/spotlight.d.ts +1 -1
  808. package/dist/components/motion/not-found/spotlight.d.ts.map +1 -1
  809. package/dist/components/motion/not-found/spotlight.js +13 -11
  810. package/dist/components/motion/not-found/spotlight.js.map +1 -1
  811. package/dist/components/motion/not-found/stacked.d.ts +1 -1
  812. package/dist/components/motion/not-found/stacked.d.ts.map +1 -1
  813. package/dist/components/motion/not-found/stacked.js +11 -9
  814. package/dist/components/motion/not-found/stacked.js.map +1 -1
  815. package/dist/components/motion/not-found/terminal.d.ts +1 -1
  816. package/dist/components/motion/not-found/terminal.d.ts.map +1 -1
  817. package/dist/components/motion/not-found/terminal.js +9 -7
  818. package/dist/components/motion/not-found/terminal.js.map +1 -1
  819. package/dist/components/motion/notification-bell.d.ts +29 -0
  820. package/dist/components/motion/notification-bell.d.ts.map +1 -0
  821. package/dist/components/motion/notification-bell.js +274 -0
  822. package/dist/components/motion/notification-bell.js.map +1 -0
  823. package/dist/components/motion/notification-stack.d.ts +35 -1
  824. package/dist/components/motion/notification-stack.d.ts.map +1 -1
  825. package/dist/components/motion/notification-stack.js +23 -7
  826. package/dist/components/motion/notification-stack.js.map +1 -1
  827. package/dist/components/motion/number-ticker.d.ts +11 -3
  828. package/dist/components/motion/number-ticker.d.ts.map +1 -1
  829. package/dist/components/motion/number-ticker.js +7 -4
  830. package/dist/components/motion/number-ticker.js.map +1 -1
  831. package/dist/components/motion/otp-input.d.ts +22 -1
  832. package/dist/components/motion/otp-input.d.ts.map +1 -1
  833. package/dist/components/motion/otp-input.js +36 -15
  834. package/dist/components/motion/otp-input.js.map +1 -1
  835. package/dist/components/motion/overflow-actions.d.ts +35 -1
  836. package/dist/components/motion/overflow-actions.d.ts.map +1 -1
  837. package/dist/components/motion/overflow-actions.js +16 -8
  838. package/dist/components/motion/overflow-actions.js.map +1 -1
  839. package/dist/components/motion/pagination.d.ts +17 -1
  840. package/dist/components/motion/pagination.d.ts.map +1 -1
  841. package/dist/components/motion/pagination.js +24 -13
  842. package/dist/components/motion/pagination.js.map +1 -1
  843. package/dist/components/motion/parallax.d.ts +2 -0
  844. package/dist/components/motion/parallax.d.ts.map +1 -1
  845. package/dist/components/motion/parallax.js +1 -1
  846. package/dist/components/motion/parallax.js.map +1 -1
  847. package/dist/components/motion/plinko.d.ts +13 -1
  848. package/dist/components/motion/plinko.d.ts.map +1 -1
  849. package/dist/components/motion/plinko.js +32 -18
  850. package/dist/components/motion/plinko.js.map +1 -1
  851. package/dist/components/motion/poll-vote.d.ts +39 -0
  852. package/dist/components/motion/poll-vote.d.ts.map +1 -0
  853. package/dist/components/motion/poll-vote.js +209 -0
  854. package/dist/components/motion/poll-vote.js.map +1 -0
  855. package/dist/components/motion/popover-morph.d.ts +2 -50
  856. package/dist/components/motion/popover-morph.js +10 -30
  857. package/dist/components/motion/popover-morph.js.map +1 -1
  858. package/dist/components/motion/popover.d.ts +5 -2
  859. package/dist/components/motion/popover.d.ts.map +1 -1
  860. package/dist/components/motion/popover.js +155 -103
  861. package/dist/components/motion/popover.js.map +1 -1
  862. package/dist/components/motion/prediction-market-card.d.ts +30 -1
  863. package/dist/components/motion/prediction-market-card.d.ts.map +1 -1
  864. package/dist/components/motion/prediction-market-card.js +39 -22
  865. package/dist/components/motion/prediction-market-card.js.map +1 -1
  866. package/dist/components/motion/prediction-market.d.ts +58 -1
  867. package/dist/components/motion/prediction-market.d.ts.map +1 -1
  868. package/dist/components/motion/prediction-market.js +66 -47
  869. package/dist/components/motion/prediction-market.js.map +1 -1
  870. package/dist/components/motion/preview-rail.d.ts +31 -1
  871. package/dist/components/motion/preview-rail.d.ts.map +1 -1
  872. package/dist/components/motion/preview-rail.js +10 -5
  873. package/dist/components/motion/preview-rail.js.map +1 -1
  874. package/dist/components/motion/project-folder.d.ts +33 -1
  875. package/dist/components/motion/project-folder.d.ts.map +1 -1
  876. package/dist/components/motion/project-folder.js +31 -50
  877. package/dist/components/motion/project-folder.js.map +1 -1
  878. package/dist/components/motion/pull-to-refresh.d.ts +19 -1
  879. package/dist/components/motion/pull-to-refresh.d.ts.map +1 -1
  880. package/dist/components/motion/pull-to-refresh.js +22 -11
  881. package/dist/components/motion/pull-to-refresh.js.map +1 -1
  882. package/dist/components/motion/radio.d.ts +10 -0
  883. package/dist/components/motion/radio.d.ts.map +1 -1
  884. package/dist/components/motion/radio.js +2 -2
  885. package/dist/components/motion/radio.js.map +1 -1
  886. package/dist/components/motion/range-slider-bubble.d.ts +1 -0
  887. package/dist/components/motion/range-slider-bubble.d.ts.map +1 -1
  888. package/dist/components/motion/range-slider-bubble.js +7 -7
  889. package/dist/components/motion/range-slider-bubble.js.map +1 -1
  890. package/dist/components/motion/range-slider-fluid.d.ts +1 -0
  891. package/dist/components/motion/range-slider-fluid.d.ts.map +1 -1
  892. package/dist/components/motion/range-slider-fluid.js +5 -5
  893. package/dist/components/motion/range-slider-fluid.js.map +1 -1
  894. package/dist/components/motion/range-slider-inline.d.ts +1 -0
  895. package/dist/components/motion/range-slider-inline.d.ts.map +1 -1
  896. package/dist/components/motion/range-slider-inline.js +4 -4
  897. package/dist/components/motion/range-slider-inline.js.map +1 -1
  898. package/dist/components/motion/range-slider-ruler.d.ts +1 -0
  899. package/dist/components/motion/range-slider-ruler.d.ts.map +1 -1
  900. package/dist/components/motion/range-slider-ruler.js +6 -6
  901. package/dist/components/motion/range-slider-ruler.js.map +1 -1
  902. package/dist/components/motion/range-slider-wave.d.ts +1 -0
  903. package/dist/components/motion/range-slider-wave.d.ts.map +1 -1
  904. package/dist/components/motion/range-slider-wave.js +6 -6
  905. package/dist/components/motion/range-slider-wave.js.map +1 -1
  906. package/dist/components/motion/range-slider.d.ts +1 -0
  907. package/dist/components/motion/range-slider.d.ts.map +1 -1
  908. package/dist/components/motion/range-slider.js +5 -5
  909. package/dist/components/motion/range-slider.js.map +1 -1
  910. package/dist/components/motion/reaction-picker.d.ts +50 -0
  911. package/dist/components/motion/reaction-picker.d.ts.map +1 -0
  912. package/dist/components/motion/reaction-picker.js +516 -0
  913. package/dist/components/motion/reaction-picker.js.map +1 -0
  914. package/dist/components/motion/refresh-button.d.ts +24 -0
  915. package/dist/components/motion/refresh-button.d.ts.map +1 -0
  916. package/dist/components/motion/refresh-button.js +267 -0
  917. package/dist/components/motion/refresh-button.js.map +1 -0
  918. package/dist/components/motion/scroll-progress.d.ts +2 -0
  919. package/dist/components/motion/scroll-progress.d.ts.map +1 -1
  920. package/dist/components/motion/scroll-progress.js +3 -3
  921. package/dist/components/motion/scroll-progress.js.map +1 -1
  922. package/dist/components/motion/scroll-reveal.d.ts +2 -0
  923. package/dist/components/motion/scroll-reveal.d.ts.map +1 -1
  924. package/dist/components/motion/scroll-reveal.js +2 -2
  925. package/dist/components/motion/scroll-reveal.js.map +1 -1
  926. package/dist/components/motion/scroll-to.d.ts +3 -2
  927. package/dist/components/motion/scroll-to.d.ts.map +1 -1
  928. package/dist/components/motion/scroll-to.js +2 -2
  929. package/dist/components/motion/scroll-to.js.map +1 -1
  930. package/dist/components/motion/select-morph.d.ts +17 -3
  931. package/dist/components/motion/select-morph.d.ts.map +1 -1
  932. package/dist/components/motion/select-morph.js +152 -89
  933. package/dist/components/motion/select-morph.js.map +1 -1
  934. package/dist/components/motion/select.d.ts +16 -2
  935. package/dist/components/motion/select.d.ts.map +1 -1
  936. package/dist/components/motion/select.js +153 -64
  937. package/dist/components/motion/select.js.map +1 -1
  938. package/dist/components/motion/send-button.d.ts +23 -0
  939. package/dist/components/motion/send-button.d.ts.map +1 -0
  940. package/dist/components/motion/send-button.js +273 -0
  941. package/dist/components/motion/send-button.js.map +1 -0
  942. package/dist/components/motion/shader-background.js +2 -2
  943. package/dist/components/motion/share-button.d.ts +45 -0
  944. package/dist/components/motion/share-button.d.ts.map +1 -0
  945. package/dist/components/motion/share-button.js +324 -0
  946. package/dist/components/motion/share-button.js.map +1 -0
  947. package/dist/components/motion/shared-layout-bg.js +4 -4
  948. package/dist/components/motion/shared-layout-bg.js.map +1 -1
  949. package/dist/components/motion/signup-form.d.ts +62 -3
  950. package/dist/components/motion/signup-form.d.ts.map +1 -1
  951. package/dist/components/motion/signup-form.js +83 -40
  952. package/dist/components/motion/signup-form.js.map +1 -1
  953. package/dist/components/motion/slide-action-button.d.ts +15 -1
  954. package/dist/components/motion/slide-action-button.d.ts.map +1 -1
  955. package/dist/components/motion/slide-action-button.js +15 -9
  956. package/dist/components/motion/slide-action-button.js.map +1 -1
  957. package/dist/components/motion/slide-game.d.ts +92 -0
  958. package/dist/components/motion/slide-game.d.ts.map +1 -0
  959. package/dist/components/motion/slide-game.js +642 -0
  960. package/dist/components/motion/slide-game.js.map +1 -0
  961. package/dist/components/motion/smooth-scroll.d.ts +4 -2
  962. package/dist/components/motion/smooth-scroll.d.ts.map +1 -1
  963. package/dist/components/motion/smooth-scroll.js +5 -4
  964. package/dist/components/motion/smooth-scroll.js.map +1 -1
  965. package/dist/components/motion/sortable-list.d.ts +21 -1
  966. package/dist/components/motion/sortable-list.d.ts.map +1 -1
  967. package/dist/components/motion/sortable-list.js +41 -16
  968. package/dist/components/motion/sortable-list.js.map +1 -1
  969. package/dist/components/motion/star-rating.d.ts +35 -0
  970. package/dist/components/motion/star-rating.d.ts.map +1 -0
  971. package/dist/components/motion/star-rating.js +253 -0
  972. package/dist/components/motion/star-rating.js.map +1 -0
  973. package/dist/components/motion/status-icon.d.ts +31 -0
  974. package/dist/components/motion/status-icon.d.ts.map +1 -0
  975. package/dist/components/motion/status-icon.js +259 -0
  976. package/dist/components/motion/status-icon.js.map +1 -0
  977. package/dist/components/motion/swap/controls.d.ts +8 -4
  978. package/dist/components/motion/swap/controls.d.ts.map +1 -1
  979. package/dist/components/motion/swap/controls.js +38 -30
  980. package/dist/components/motion/swap/controls.js.map +1 -1
  981. package/dist/components/motion/swap/field.d.ts +4 -2
  982. package/dist/components/motion/swap/field.d.ts.map +1 -1
  983. package/dist/components/motion/swap/field.js +16 -13
  984. package/dist/components/motion/swap/field.js.map +1 -1
  985. package/dist/components/motion/swap/quote-row.d.ts +4 -2
  986. package/dist/components/motion/swap/quote-row.d.ts.map +1 -1
  987. package/dist/components/motion/swap/quote-row.js +10 -8
  988. package/dist/components/motion/swap/quote-row.js.map +1 -1
  989. package/dist/components/motion/swap/token-badges.d.ts +1 -1
  990. package/dist/components/motion/swap/token-badges.js +5 -6
  991. package/dist/components/motion/swap/token-badges.js.map +1 -1
  992. package/dist/components/motion/swap/token-picker.d.ts +4 -2
  993. package/dist/components/motion/swap/token-picker.d.ts.map +1 -1
  994. package/dist/components/motion/swap/token-picker.js +59 -54
  995. package/dist/components/motion/swap/token-picker.js.map +1 -1
  996. package/dist/components/motion/swap.d.ts +12 -4
  997. package/dist/components/motion/swap.d.ts.map +1 -1
  998. package/dist/components/motion/swap.js +31 -19
  999. package/dist/components/motion/swap.js.map +1 -1
  1000. package/dist/components/motion/swipeable-list.d.ts +47 -1
  1001. package/dist/components/motion/swipeable-list.d.ts.map +1 -1
  1002. package/dist/components/motion/swipeable-list.js +17 -9
  1003. package/dist/components/motion/swipeable-list.js.map +1 -1
  1004. package/dist/components/motion/switch.d.ts +9 -1
  1005. package/dist/components/motion/switch.d.ts.map +1 -1
  1006. package/dist/components/motion/switch.js +13 -8
  1007. package/dist/components/motion/switch.js.map +1 -1
  1008. package/dist/components/motion/table/editable-cell.d.ts +2 -1
  1009. package/dist/components/motion/table/editable-cell.d.ts.map +1 -1
  1010. package/dist/components/motion/table/editable-cell.js +2 -2
  1011. package/dist/components/motion/table/editable-cell.js.map +1 -1
  1012. package/dist/components/motion/table/row-handle.d.ts +3 -1
  1013. package/dist/components/motion/table/row-handle.d.ts.map +1 -1
  1014. package/dist/components/motion/table/row-handle.js +7 -7
  1015. package/dist/components/motion/table/row-handle.js.map +1 -1
  1016. package/dist/components/motion/table/skeleton-rows.d.ts +1 -1
  1017. package/dist/components/motion/table/skeleton-rows.js +1 -1
  1018. package/dist/components/motion/table/table-header.d.ts +4 -2
  1019. package/dist/components/motion/table/table-header.d.ts.map +1 -1
  1020. package/dist/components/motion/table/table-header.js +22 -19
  1021. package/dist/components/motion/table/table-header.js.map +1 -1
  1022. package/dist/components/motion/table/table-menu.d.ts.map +1 -1
  1023. package/dist/components/motion/table/table-menu.js +18 -18
  1024. package/dist/components/motion/table/table-menu.js.map +1 -1
  1025. package/dist/components/motion/{table/index.d.ts → table.d.ts} +5 -4
  1026. package/dist/components/motion/table.d.ts.map +1 -0
  1027. package/dist/components/motion/{table/index.js → table.js} +50 -19
  1028. package/dist/components/motion/table.js.map +1 -0
  1029. package/dist/components/motion/tabs.d.ts +24 -4
  1030. package/dist/components/motion/tabs.d.ts.map +1 -1
  1031. package/dist/components/motion/tabs.js +41 -19
  1032. package/dist/components/motion/tabs.js.map +1 -1
  1033. package/dist/components/motion/text-cascade.d.ts +2 -1
  1034. package/dist/components/motion/text-cascade.d.ts.map +1 -1
  1035. package/dist/components/motion/text-cascade.js +1 -1
  1036. package/dist/components/motion/text-cascade.js.map +1 -1
  1037. package/dist/components/motion/text-morph.d.ts +16 -0
  1038. package/dist/components/motion/text-morph.d.ts.map +1 -0
  1039. package/dist/components/motion/text-morph.js +239 -0
  1040. package/dist/components/motion/text-morph.js.map +1 -0
  1041. package/dist/components/motion/text-reveal.d.ts +11 -0
  1042. package/dist/components/motion/text-reveal.d.ts.map +1 -1
  1043. package/dist/components/motion/text-reveal.js +3 -3
  1044. package/dist/components/motion/text-reveal.js.map +1 -1
  1045. package/dist/components/motion/text-scramble.d.ts +2 -0
  1046. package/dist/components/motion/text-scramble.d.ts.map +1 -1
  1047. package/dist/components/motion/text-scramble.js +1 -1
  1048. package/dist/components/motion/text-scramble.js.map +1 -1
  1049. package/dist/components/motion/text-shimmer.d.ts +3 -0
  1050. package/dist/components/motion/text-shimmer.d.ts.map +1 -1
  1051. package/dist/components/motion/text-shimmer.js +1 -1
  1052. package/dist/components/motion/text-shimmer.js.map +1 -1
  1053. package/dist/components/motion/theme-toggle.d.ts +12 -1
  1054. package/dist/components/motion/theme-toggle.d.ts.map +1 -1
  1055. package/dist/components/motion/theme-toggle.js +19 -11
  1056. package/dist/components/motion/theme-toggle.js.map +1 -1
  1057. package/dist/components/motion/tilt-card.d.ts +3 -0
  1058. package/dist/components/motion/tilt-card.d.ts.map +1 -1
  1059. package/dist/components/motion/tilt-card.js +3 -3
  1060. package/dist/components/motion/tilt-card.js.map +1 -1
  1061. package/dist/components/motion/timeline.d.ts +16 -1
  1062. package/dist/components/motion/timeline.d.ts.map +1 -1
  1063. package/dist/components/motion/timeline.js +26 -7
  1064. package/dist/components/motion/timeline.js.map +1 -1
  1065. package/dist/components/motion/tooltip/positioner.d.ts +1 -1
  1066. package/dist/components/motion/tooltip/positioner.js +1 -1
  1067. package/dist/components/motion/tooltip-surface.d.ts +6 -2
  1068. package/dist/components/motion/tooltip-surface.d.ts.map +1 -1
  1069. package/dist/components/motion/tooltip-surface.js +36 -26
  1070. package/dist/components/motion/tooltip-surface.js.map +1 -1
  1071. package/dist/components/motion/tooltip.d.ts +9 -3
  1072. package/dist/components/motion/tooltip.d.ts.map +1 -1
  1073. package/dist/components/motion/tooltip.js +1 -1
  1074. package/dist/components/motion/upvote-button.d.ts +30 -0
  1075. package/dist/components/motion/upvote-button.d.ts.map +1 -0
  1076. package/dist/components/motion/upvote-button.js +144 -0
  1077. package/dist/components/motion/upvote-button.js.map +1 -0
  1078. package/dist/components/motion/wallet-card/account-avatar.d.ts +1 -1
  1079. package/dist/components/motion/wallet-card/account-avatar.js +1 -1
  1080. package/dist/components/motion/wallet-card/account-switcher.d.ts +5 -3
  1081. package/dist/components/motion/wallet-card/account-switcher.d.ts.map +1 -1
  1082. package/dist/components/motion/wallet-card/account-switcher.js +23 -16
  1083. package/dist/components/motion/wallet-card/account-switcher.js.map +1 -1
  1084. package/dist/components/motion/wallet-card/actions.d.ts +3 -1
  1085. package/dist/components/motion/wallet-card/actions.d.ts.map +1 -1
  1086. package/dist/components/motion/wallet-card/actions.js +33 -29
  1087. package/dist/components/motion/wallet-card/actions.js.map +1 -1
  1088. package/dist/components/motion/wallet-card/balance-delta.d.ts +2 -1
  1089. package/dist/components/motion/wallet-card/balance-delta.d.ts.map +1 -1
  1090. package/dist/components/motion/wallet-card/balance-delta.js +6 -6
  1091. package/dist/components/motion/wallet-card/balance-delta.js.map +1 -1
  1092. package/dist/components/motion/wallet-card/copy-button.d.ts +3 -1
  1093. package/dist/components/motion/wallet-card/copy-button.d.ts.map +1 -1
  1094. package/dist/components/motion/wallet-card/copy-button.js +13 -7
  1095. package/dist/components/motion/wallet-card/copy-button.js.map +1 -1
  1096. package/dist/components/motion/wallet-card/search-bar.d.ts +4 -2
  1097. package/dist/components/motion/wallet-card/search-bar.d.ts.map +1 -1
  1098. package/dist/components/motion/wallet-card/search-bar.js +21 -18
  1099. package/dist/components/motion/wallet-card/search-bar.js.map +1 -1
  1100. package/dist/components/motion/wallet-card.d.ts +16 -0
  1101. package/dist/components/motion/wallet-card.d.ts.map +1 -0
  1102. package/dist/components/motion/{wallet-card/index.js → wallet-card.js} +26 -19
  1103. package/dist/components/motion/wallet-card.js.map +1 -0
  1104. package/dist/components/motion/wave-reveal.d.ts +25 -0
  1105. package/dist/components/motion/wave-reveal.d.ts.map +1 -0
  1106. package/dist/components/motion/wave-reveal.js +630 -0
  1107. package/dist/components/motion/wave-reveal.js.map +1 -0
  1108. package/dist/components/motion/wheel-picker.d.ts +7 -0
  1109. package/dist/components/motion/wheel-picker.d.ts.map +1 -1
  1110. package/dist/components/motion/wheel-picker.js +15 -5
  1111. package/dist/components/motion/wheel-picker.js.map +1 -1
  1112. package/dist/components/reui/alert.d.ts +1 -1
  1113. package/dist/components/reui/alert.js +1 -1
  1114. package/dist/components/reui/autocomplete.d.ts +1 -1
  1115. package/dist/components/reui/autocomplete.js +4 -4
  1116. package/dist/components/reui/badge.d.ts +2 -2
  1117. package/dist/components/reui/badge.js +2 -2
  1118. package/dist/components/reui/cascader/cascader-async.d.ts +1 -1
  1119. package/dist/components/reui/cascader/cascader-async.js +37 -37
  1120. package/dist/components/reui/cascader/cascader-async.js.map +1 -1
  1121. package/dist/components/reui/cascader/cascader-columns.d.ts +6 -6
  1122. package/dist/components/reui/cascader/cascader-columns.d.ts.map +1 -1
  1123. package/dist/components/reui/cascader/cascader-columns.js +6 -6
  1124. package/dist/components/reui/cascader/cascader-columns.js.map +1 -1
  1125. package/dist/components/reui/cascader/cascader-context.d.ts +8 -8
  1126. package/dist/components/reui/cascader/cascader-context.d.ts.map +1 -1
  1127. package/dist/components/reui/cascader/cascader-context.js +10 -10
  1128. package/dist/components/reui/cascader/cascader-context.js.map +1 -1
  1129. package/dist/components/reui/cascader/cascader-footer.d.ts +14 -14
  1130. package/dist/components/reui/cascader/cascader-footer.d.ts.map +1 -1
  1131. package/dist/components/reui/cascader/cascader-footer.js +32 -33
  1132. package/dist/components/reui/cascader/cascader-footer.js.map +1 -1
  1133. package/dist/components/reui/cascader/cascader-i18n.d.ts +1 -1
  1134. package/dist/components/reui/cascader/cascader-item.d.ts +12 -12
  1135. package/dist/components/reui/cascader/cascader-item.d.ts.map +1 -1
  1136. package/dist/components/reui/cascader/cascader-item.js +27 -27
  1137. package/dist/components/reui/cascader/cascader-item.js.map +1 -1
  1138. package/dist/components/reui/cascader/cascader-lib.d.ts +1 -1
  1139. package/dist/components/reui/cascader/cascader-nav.d.ts +12 -12
  1140. package/dist/components/reui/cascader/cascader-nav.d.ts.map +1 -1
  1141. package/dist/components/reui/cascader/cascader-nav.js +12 -12
  1142. package/dist/components/reui/cascader/cascader-nav.js.map +1 -1
  1143. package/dist/components/reui/cascader/cascader-types.d.ts +1 -1
  1144. package/dist/components/reui/cascader/cascader-virtual.d.ts +4 -4
  1145. package/dist/components/reui/cascader/cascader-virtual.d.ts.map +1 -1
  1146. package/dist/components/reui/cascader/cascader-virtual.js +13 -13
  1147. package/dist/components/reui/cascader/cascader-virtual.js.map +1 -1
  1148. package/dist/components/reui/cascader/cascader.d.ts +24 -24
  1149. package/dist/components/reui/cascader/cascader.d.ts.map +1 -1
  1150. package/dist/components/reui/cascader/cascader.js +110 -110
  1151. package/dist/components/reui/cascader/cascader.js.map +1 -1
  1152. package/dist/components/reui/code-block/code-block.d.ts +1 -1
  1153. package/dist/components/reui/code-block/code-block.js +2 -2
  1154. package/dist/components/reui/code-block/code-block.js.map +1 -1
  1155. package/dist/components/reui/color-picker.d.ts +1 -1
  1156. package/dist/components/reui/color-picker.js +7 -7
  1157. package/dist/components/reui/color-picker.js.map +1 -1
  1158. package/dist/components/reui/data-grid/data-grid-cell-selection.d.ts +1 -1
  1159. package/dist/components/reui/data-grid/data-grid-cell-selection.js +4 -4
  1160. package/dist/components/reui/data-grid/data-grid-cell-selection.js.map +1 -1
  1161. package/dist/components/reui/data-grid/data-grid-column-filter.d.ts +1 -1
  1162. package/dist/components/reui/data-grid/data-grid-column-filter.js +3 -3
  1163. package/dist/components/reui/data-grid/data-grid-column-header.d.ts +1 -1
  1164. package/dist/components/reui/data-grid/data-grid-column-header.js +4 -4
  1165. package/dist/components/reui/data-grid/data-grid-column-visibility.d.ts +1 -1
  1166. package/dist/components/reui/data-grid/data-grid-i18n.d.ts +1 -1
  1167. package/dist/components/reui/data-grid/data-grid-pagination.js +2 -2
  1168. package/dist/components/reui/data-grid/data-grid-scroll-area.js +3 -3
  1169. package/dist/components/reui/data-grid/data-grid-table-dnd-rows.d.ts +1 -1
  1170. package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js +8 -8
  1171. package/dist/components/reui/data-grid/data-grid-table-dnd.js +6 -6
  1172. package/dist/components/reui/data-grid/data-grid-table-virtual.d.ts +2 -2
  1173. package/dist/components/reui/data-grid/data-grid-table-virtual.js +3 -3
  1174. package/dist/components/reui/data-grid/data-grid-table.d.ts +1 -1
  1175. package/dist/components/reui/data-grid/data-grid-table.d.ts.map +1 -1
  1176. package/dist/components/reui/data-grid/data-grid-table.js +4 -4
  1177. package/dist/components/reui/data-grid/data-grid-table.js.map +1 -1
  1178. package/dist/components/reui/data-grid/data-grid.d.ts +1 -1
  1179. package/dist/components/reui/data-grid/data-grid.js +2 -2
  1180. package/dist/components/reui/date-selector.js +4 -4
  1181. package/dist/components/reui/emoji-picker.d.ts +1 -1
  1182. package/dist/components/reui/emoji-picker.js +5 -5
  1183. package/dist/components/reui/emoji-picker.js.map +1 -1
  1184. package/dist/components/reui/event-calendar/event-calendar-agenda-view.js +6 -6
  1185. package/dist/components/reui/event-calendar/event-calendar-content.d.ts +1 -1
  1186. package/dist/components/reui/event-calendar/event-calendar-content.js +3 -3
  1187. package/dist/components/reui/event-calendar/event-calendar-dnd.js +2 -2
  1188. package/dist/components/reui/event-calendar/event-calendar-event.d.ts +1 -1
  1189. package/dist/components/reui/event-calendar/event-calendar-event.js +6 -6
  1190. package/dist/components/reui/event-calendar/event-calendar-i18n.d.ts +1 -1
  1191. package/dist/components/reui/event-calendar/event-calendar-lib.d.ts +1 -1
  1192. package/dist/components/reui/event-calendar/event-calendar-lib.js +4 -4
  1193. package/dist/components/reui/event-calendar/event-calendar-month-view.d.ts +1 -1
  1194. package/dist/components/reui/event-calendar/event-calendar-month-view.js +6 -6
  1195. package/dist/components/reui/event-calendar/event-calendar-nav.js +6 -6
  1196. package/dist/components/reui/event-calendar/event-calendar-recurrence.js +1 -1
  1197. package/dist/components/reui/event-calendar/event-calendar-resource-view.js +5 -5
  1198. package/dist/components/reui/event-calendar/event-calendar-time-grid.d.ts +1 -1
  1199. package/dist/components/reui/event-calendar/event-calendar-time-grid.js +5 -5
  1200. package/dist/components/reui/event-calendar/event-calendar.d.ts +3 -3
  1201. package/dist/components/reui/event-calendar/event-calendar.js +4 -4
  1202. package/dist/components/reui/event-calendar/event-calendar.js.map +1 -1
  1203. package/dist/components/reui/file-type.js +1 -1
  1204. package/dist/components/reui/filters/filters-advanced.d.ts +6 -6
  1205. package/dist/components/reui/filters/filters-advanced.d.ts.map +1 -1
  1206. package/dist/components/reui/filters/filters-advanced.js +35 -35
  1207. package/dist/components/reui/filters/filters-advanced.js.map +1 -1
  1208. package/dist/components/reui/filters/filters-builder.d.ts +5 -5
  1209. package/dist/components/reui/filters/filters-builder.d.ts.map +1 -1
  1210. package/dist/components/reui/filters/filters-builder.js +6 -6
  1211. package/dist/components/reui/filters/filters-builder.js.map +1 -1
  1212. package/dist/components/reui/filters/filters-chip.d.ts +10 -10
  1213. package/dist/components/reui/filters/filters-chip.d.ts.map +1 -1
  1214. package/dist/components/reui/filters/filters-chip.js +20 -20
  1215. package/dist/components/reui/filters/filters-chip.js.map +1 -1
  1216. package/dist/components/reui/filters/filters-context.d.ts +11 -11
  1217. package/dist/components/reui/filters/filters-context.d.ts.map +1 -1
  1218. package/dist/components/reui/filters/filters-context.js +27 -27
  1219. package/dist/components/reui/filters/filters-context.js.map +1 -1
  1220. package/dist/components/reui/filters/filters-dnd.d.ts +2 -2
  1221. package/dist/components/reui/filters/filters-dnd.d.ts.map +1 -1
  1222. package/dist/components/reui/filters/filters-dnd.js +5 -5
  1223. package/dist/components/reui/filters/filters-dnd.js.map +1 -1
  1224. package/dist/components/reui/filters/filters-draft.d.ts +1 -1
  1225. package/dist/components/reui/filters/filters-editors.d.ts +9 -9
  1226. package/dist/components/reui/filters/filters-editors.d.ts.map +1 -1
  1227. package/dist/components/reui/filters/filters-editors.js +41 -41
  1228. package/dist/components/reui/filters/filters-editors.js.map +1 -1
  1229. package/dist/components/reui/filters/filters-lib.d.ts +1 -1
  1230. package/dist/components/reui/filters/filters-types.d.ts +7 -7
  1231. package/dist/components/reui/filters/filters-types.d.ts.map +1 -1
  1232. package/dist/components/reui/filters/filters.d.ts +9 -9
  1233. package/dist/components/reui/filters/filters.d.ts.map +1 -1
  1234. package/dist/components/reui/filters/filters.js +56 -56
  1235. package/dist/components/reui/filters/filters.js.map +1 -1
  1236. package/dist/components/reui/frame.d.ts +1 -1
  1237. package/dist/components/reui/frame.js +2 -2
  1238. package/dist/components/reui/frame.js.map +1 -1
  1239. package/dist/components/reui/gantt/gantt-bar.d.ts +1 -1
  1240. package/dist/components/reui/gantt/gantt-bar.js +5 -5
  1241. package/dist/components/reui/gantt/gantt-dnd.js +5 -5
  1242. package/dist/components/reui/gantt/gantt-dnd.js.map +1 -1
  1243. package/dist/components/reui/gantt/gantt-i18n.d.ts +1 -1
  1244. package/dist/components/reui/gantt/gantt-lib.d.ts +1 -1
  1245. package/dist/components/reui/gantt/gantt-lib.js +4 -4
  1246. package/dist/components/reui/gantt/gantt-nav.d.ts +1 -1
  1247. package/dist/components/reui/gantt/gantt-nav.js +6 -6
  1248. package/dist/components/reui/gantt/gantt-recurrence.js +1 -1
  1249. package/dist/components/reui/gantt/gantt-view.js +11 -11
  1250. package/dist/components/reui/gantt/gantt-view.js.map +1 -1
  1251. package/dist/components/reui/gantt/gantt.d.ts +3 -3
  1252. package/dist/components/reui/gantt/gantt.js +4 -4
  1253. package/dist/components/reui/gantt/gantt.js.map +1 -1
  1254. package/dist/components/reui/icon-tile.d.ts +2 -2
  1255. package/dist/components/reui/icon-tile.js +2 -2
  1256. package/dist/components/reui/kanban.d.ts +11 -11
  1257. package/dist/components/reui/kanban.d.ts.map +1 -1
  1258. package/dist/components/reui/kanban.js +3 -3
  1259. package/dist/components/reui/number-field.d.ts +1 -1
  1260. package/dist/components/reui/number-field.js +4 -4
  1261. package/dist/components/reui/phone-input.js +5 -5
  1262. package/dist/components/reui/rating.js +2 -2
  1263. package/dist/components/reui/scrollspy.js +1 -1
  1264. package/dist/components/reui/signature-pad.d.ts +1 -1
  1265. package/dist/components/reui/signature-pad.js +7 -7
  1266. package/dist/components/reui/signature-pad.js.map +1 -1
  1267. package/dist/components/reui/sortable.d.ts +7 -7
  1268. package/dist/components/reui/sortable.d.ts.map +1 -1
  1269. package/dist/components/reui/sortable.js +3 -3
  1270. package/dist/components/reui/stepper.js +2 -2
  1271. package/dist/components/reui/time-picker.d.ts +1 -1
  1272. package/dist/components/reui/time-picker.js +4 -4
  1273. package/dist/components/reui/timeline.js +2 -2
  1274. package/dist/components/reui/tree.js +3 -3
  1275. package/dist/components/ui/accordion.js +2 -2
  1276. package/dist/components/ui/alert-dialog.d.ts +14 -14
  1277. package/dist/components/ui/alert-dialog.d.ts.map +1 -1
  1278. package/dist/components/ui/alert-dialog.js +2 -2
  1279. package/dist/components/ui/alert.d.ts +5 -5
  1280. package/dist/components/ui/alert.d.ts.map +1 -1
  1281. package/dist/components/ui/alert.js +1 -1
  1282. package/dist/components/ui/attachment.d.ts +14 -14
  1283. package/dist/components/ui/attachment.d.ts.map +1 -1
  1284. package/dist/components/ui/attachment.js +4 -4
  1285. package/dist/components/ui/avatar.d.ts +7 -7
  1286. package/dist/components/ui/avatar.d.ts.map +1 -1
  1287. package/dist/components/ui/avatar.js +1 -1
  1288. package/dist/components/ui/badge.d.ts +2 -2
  1289. package/dist/components/ui/badge.js +2 -2
  1290. package/dist/components/ui/breadcrumb.d.ts +8 -8
  1291. package/dist/components/ui/breadcrumb.d.ts.map +1 -1
  1292. package/dist/components/ui/breadcrumb.js +3 -3
  1293. package/dist/components/ui/bubble.d.ts +9 -9
  1294. package/dist/components/ui/bubble.d.ts.map +1 -1
  1295. package/dist/components/ui/bubble.js +3 -3
  1296. package/dist/components/ui/button-group.d.ts +3 -3
  1297. package/dist/components/ui/button-group.js +4 -4
  1298. package/dist/components/ui/button.d.ts +2 -2
  1299. package/dist/components/ui/button.js +2 -2
  1300. package/dist/components/ui/calendar.d.ts +7 -7
  1301. package/dist/components/ui/calendar.d.ts.map +1 -1
  1302. package/dist/components/ui/calendar.js +7 -7
  1303. package/dist/components/ui/calendar.js.map +1 -1
  1304. package/dist/components/ui/card.d.ts +9 -9
  1305. package/dist/components/ui/card.d.ts.map +1 -1
  1306. package/dist/components/ui/card.js +1 -1
  1307. package/dist/components/ui/card.js.map +1 -1
  1308. package/dist/components/ui/carousel.d.ts +7 -7
  1309. package/dist/components/ui/carousel.d.ts.map +1 -1
  1310. package/dist/components/ui/carousel.js +14 -14
  1311. package/dist/components/ui/carousel.js.map +1 -1
  1312. package/dist/components/ui/chart.d.ts +12 -12
  1313. package/dist/components/ui/chart.d.ts.map +1 -1
  1314. package/dist/components/ui/chart.js +6 -6
  1315. package/dist/components/ui/chart.js.map +1 -1
  1316. package/dist/components/ui/checkbox.js +2 -2
  1317. package/dist/components/ui/code-block.d.ts +13 -13
  1318. package/dist/components/ui/code-block.d.ts.map +1 -1
  1319. package/dist/components/ui/code-block.js +6 -6
  1320. package/dist/components/ui/code-block.js.map +1 -1
  1321. package/dist/components/ui/collapsible.js +1 -1
  1322. package/dist/components/ui/combobox.d.ts +16 -16
  1323. package/dist/components/ui/combobox.d.ts.map +1 -1
  1324. package/dist/components/ui/combobox.js +7 -7
  1325. package/dist/components/ui/combobox.js.map +1 -1
  1326. package/dist/components/ui/command.d.ts +13 -13
  1327. package/dist/components/ui/command.d.ts.map +1 -1
  1328. package/dist/components/ui/command.js +3 -3
  1329. package/dist/components/ui/context-menu.d.ts +16 -16
  1330. package/dist/components/ui/context-menu.d.ts.map +1 -1
  1331. package/dist/components/ui/context-menu.js +2 -2
  1332. package/dist/components/ui/dialog.d.ts +12 -12
  1333. package/dist/components/ui/dialog.d.ts.map +1 -1
  1334. package/dist/components/ui/dialog.js +3 -3
  1335. package/dist/components/ui/drawer.d.ts +12 -12
  1336. package/dist/components/ui/drawer.d.ts.map +1 -1
  1337. package/dist/components/ui/drawer.js +5 -5
  1338. package/dist/components/ui/drawer.js.map +1 -1
  1339. package/dist/components/ui/dropdown-menu.d.ts +16 -16
  1340. package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
  1341. package/dist/components/ui/dropdown-menu.js +2 -2
  1342. package/dist/components/ui/empty.js +1 -1
  1343. package/dist/components/ui/field.d.ts +2 -2
  1344. package/dist/components/ui/field.js +3 -3
  1345. package/dist/components/ui/hover-card.js +1 -1
  1346. package/dist/components/ui/input-group.d.ts +9 -9
  1347. package/dist/components/ui/input-group.d.ts.map +1 -1
  1348. package/dist/components/ui/input-group.js +2 -2
  1349. package/dist/components/ui/input-otp.d.ts +7 -7
  1350. package/dist/components/ui/input-otp.d.ts.map +1 -1
  1351. package/dist/components/ui/input-otp.js +4 -4
  1352. package/dist/components/ui/input-otp.js.map +1 -1
  1353. package/dist/components/ui/input.d.ts +2 -2
  1354. package/dist/components/ui/input.d.ts.map +1 -1
  1355. package/dist/components/ui/input.js +1 -1
  1356. package/dist/components/ui/item.d.ts +14 -14
  1357. package/dist/components/ui/item.d.ts.map +1 -1
  1358. package/dist/components/ui/item.js +4 -4
  1359. package/dist/components/ui/label.d.ts +2 -2
  1360. package/dist/components/ui/label.d.ts.map +1 -1
  1361. package/dist/components/ui/marker.d.ts +6 -6
  1362. package/dist/components/ui/marker.d.ts.map +1 -1
  1363. package/dist/components/ui/marker.js +3 -3
  1364. package/dist/components/ui/menubar.d.ts +20 -20
  1365. package/dist/components/ui/menubar.d.ts.map +1 -1
  1366. package/dist/components/ui/menubar.js +4 -4
  1367. package/dist/components/ui/message-scroller.d.ts +8 -8
  1368. package/dist/components/ui/message-scroller.d.ts.map +1 -1
  1369. package/dist/components/ui/message-scroller.js +3 -3
  1370. package/dist/components/ui/message.d.ts +8 -8
  1371. package/dist/components/ui/message.d.ts.map +1 -1
  1372. package/dist/components/ui/native-select.d.ts +5 -5
  1373. package/dist/components/ui/native-select.d.ts.map +1 -1
  1374. package/dist/components/ui/native-select.js +1 -1
  1375. package/dist/components/ui/navigation-menu.js +3 -3
  1376. package/dist/components/ui/pagination.d.ts +11 -11
  1377. package/dist/components/ui/pagination.d.ts.map +1 -1
  1378. package/dist/components/ui/pagination.js +2 -2
  1379. package/dist/components/ui/popover.d.ts +7 -7
  1380. package/dist/components/ui/popover.d.ts.map +1 -1
  1381. package/dist/components/ui/popover.js +1 -1
  1382. package/dist/components/ui/progress.js +1 -1
  1383. package/dist/components/ui/questionnaire.d.ts +17 -17
  1384. package/dist/components/ui/questionnaire.d.ts.map +1 -1
  1385. package/dist/components/ui/questionnaire.js +5 -5
  1386. package/dist/components/ui/questionnaire.js.map +1 -1
  1387. package/dist/components/ui/radio-group.js +2 -2
  1388. package/dist/components/ui/resizable.js +1 -1
  1389. package/dist/components/ui/scroll-area.js +1 -1
  1390. package/dist/components/ui/select.d.ts +10 -10
  1391. package/dist/components/ui/select.d.ts.map +1 -1
  1392. package/dist/components/ui/select.js +2 -2
  1393. package/dist/components/ui/separator.js +1 -1
  1394. package/dist/components/ui/sheet.d.ts +9 -9
  1395. package/dist/components/ui/sheet.d.ts.map +1 -1
  1396. package/dist/components/ui/sheet.js +3 -3
  1397. package/dist/components/ui/sidebar.d.ts +33 -33
  1398. package/dist/components/ui/sidebar.d.ts.map +1 -1
  1399. package/dist/components/ui/sidebar.js +16 -16
  1400. package/dist/components/ui/sidebar.js.map +1 -1
  1401. package/dist/components/ui/slider.js +1 -1
  1402. package/dist/components/ui/spinner.js +1 -1
  1403. package/dist/components/ui/switch.js +1 -1
  1404. package/dist/components/ui/table.d.ts +9 -9
  1405. package/dist/components/ui/table.d.ts.map +1 -1
  1406. package/dist/components/ui/tabs.d.ts +2 -2
  1407. package/dist/components/ui/tabs.js +2 -2
  1408. package/dist/components/ui/textarea.d.ts +2 -2
  1409. package/dist/components/ui/textarea.d.ts.map +1 -1
  1410. package/dist/components/ui/toast.d.ts +11 -11
  1411. package/dist/components/ui/toast.d.ts.map +1 -1
  1412. package/dist/components/ui/toast.js +3 -3
  1413. package/dist/components/ui/toggle-group.d.ts +5 -5
  1414. package/dist/components/ui/toggle-group.d.ts.map +1 -1
  1415. package/dist/components/ui/toggle-group.js +7 -7
  1416. package/dist/components/ui/toggle-group.js.map +1 -1
  1417. package/dist/components/ui/toggle.d.ts +1 -1
  1418. package/dist/components/ui/toggle.js +2 -2
  1419. package/dist/components/ui/tooltip.js +1 -1
  1420. package/dist/components/ui/trace.d.ts +12 -12
  1421. package/dist/components/ui/trace.d.ts.map +1 -1
  1422. package/dist/components/ui/trace.js +3 -3
  1423. package/dist/components/ui/trace.js.map +1 -1
  1424. package/dist/{constants-evLzfUhL.js → constants-DfbfCDSg.js} +3 -6
  1425. package/dist/constants-DfbfCDSg.js.map +1 -0
  1426. package/dist/{context-tv-kneJV.d.ts → context-4tt2I7Qm.d.ts} +39 -6
  1427. package/dist/context-4tt2I7Qm.d.ts.map +1 -0
  1428. package/dist/{context-C5TW-k6u.js → context-B3BNuwGu.js} +47 -31
  1429. package/dist/context-B3BNuwGu.js.map +1 -0
  1430. package/dist/context-BFNkGCGz.d.ts +82 -0
  1431. package/dist/context-BFNkGCGz.d.ts.map +1 -0
  1432. package/dist/{context-DUx44mGi.js → context-BG1Wzdnj.js} +34 -14
  1433. package/dist/context-BG1Wzdnj.js.map +1 -0
  1434. package/dist/{context-ChsuSih6.js → context-Bx-OaIL8.js} +36 -21
  1435. package/dist/context-Bx-OaIL8.js.map +1 -0
  1436. package/dist/{context-3i2_6ly8.js → context-C92iQeLO.js} +13 -5
  1437. package/dist/context-C92iQeLO.js.map +1 -0
  1438. package/dist/{context-CQbvWVnM.js → context-C9LHO4MN.js} +42 -35
  1439. package/dist/context-C9LHO4MN.js.map +1 -0
  1440. package/dist/{context-DdnKlMjE.js → context-CHXHCbuu.js} +18 -4
  1441. package/dist/context-CHXHCbuu.js.map +1 -0
  1442. package/dist/context-CIzAPhXA.js +170 -0
  1443. package/dist/context-CIzAPhXA.js.map +1 -0
  1444. package/dist/context-CP3spicY.d.ts +87 -0
  1445. package/dist/context-CP3spicY.d.ts.map +1 -0
  1446. package/dist/{context-DWXNECDe.js → context-Cg1VelQJ.js} +30 -28
  1447. package/dist/context-Cg1VelQJ.js.map +1 -0
  1448. package/dist/{context-CXlD0FcC.js → context-DDoVOc0D.js} +35 -28
  1449. package/dist/context-DDoVOc0D.js.map +1 -0
  1450. package/dist/{context-D-juVNr2.d.ts → context-DMIy-rFm.d.ts} +29 -3
  1451. package/dist/context-DMIy-rFm.d.ts.map +1 -0
  1452. package/dist/context-DR6jkfea.js +11 -0
  1453. package/dist/context-DR6jkfea.js.map +1 -0
  1454. package/dist/context-DcJtX6ht.js +166 -0
  1455. package/dist/context-DcJtX6ht.js.map +1 -0
  1456. package/dist/{context-i6Dwvi3T.js → context-Dg48xMuG.js} +47 -27
  1457. package/dist/context-Dg48xMuG.js.map +1 -0
  1458. package/dist/context-DnM-b9yO.js +23 -0
  1459. package/dist/context-DnM-b9yO.js.map +1 -0
  1460. package/dist/context-DtFeYksF.d.ts +28 -0
  1461. package/dist/context-DtFeYksF.d.ts.map +1 -0
  1462. package/dist/{context-Dk6C9IvC.js → context-cRAJSFxf.js} +51 -15
  1463. package/dist/context-cRAJSFxf.js.map +1 -0
  1464. package/dist/{context-mjP5wifG.d.ts → context-jX-r_7EP.d.ts} +37 -6
  1465. package/dist/context-jX-r_7EP.d.ts.map +1 -0
  1466. package/dist/{copy-menu-LU54Aruj.js → copy-menu-Bgoo5oWq.js} +46 -27
  1467. package/dist/copy-menu-Bgoo5oWq.js.map +1 -0
  1468. package/dist/{crash-parts-CUv5gFYQ.js → crash-parts-BkrZ6iBE.js} +109 -236
  1469. package/dist/crash-parts-BkrZ6iBE.js.map +1 -0
  1470. package/dist/{data-grid-i18n-BySPLTBy.d.ts → data-grid-i18n-BcJcbW5k.d.ts} +1 -1
  1471. package/dist/{data-grid-i18n-BySPLTBy.d.ts.map → data-grid-i18n-BcJcbW5k.d.ts.map} +1 -1
  1472. package/dist/date-utils-DVDYcEA_.js +35 -0
  1473. package/dist/date-utils-DVDYcEA_.js.map +1 -0
  1474. package/dist/{ease-DjhlGGZO.d.ts → ease-D_-bhUDt.d.ts} +13 -6
  1475. package/dist/ease-D_-bhUDt.d.ts.map +1 -0
  1476. package/dist/{filters-draft-COwwppZX.d.ts → filters-draft-b-BwSZb1.d.ts} +1 -1
  1477. package/dist/{filters-draft-COwwppZX.d.ts.map → filters-draft-b-BwSZb1.d.ts.map} +1 -1
  1478. package/dist/formats-ColrL9Eg.js +58 -0
  1479. package/dist/formats-ColrL9Eg.js.map +1 -0
  1480. package/dist/game-parts-B635BoSe.d.ts +89 -0
  1481. package/dist/game-parts-B635BoSe.d.ts.map +1 -0
  1482. package/dist/hooks/use-controllable.d.ts +10 -0
  1483. package/dist/hooks/use-controllable.d.ts.map +1 -0
  1484. package/dist/hooks/use-controllable.js +39 -0
  1485. package/dist/hooks/use-controllable.js.map +1 -0
  1486. package/dist/hooks/use-copy-to-clipboard.js +5 -5
  1487. package/dist/hooks/use-copy-to-clipboard.js.map +1 -1
  1488. package/dist/hooks/use-copy.d.ts +16 -0
  1489. package/dist/hooks/use-copy.d.ts.map +1 -0
  1490. package/dist/hooks/use-copy.js +36 -0
  1491. package/dist/hooks/use-copy.js.map +1 -0
  1492. package/dist/hooks/use-dismiss.d.ts +17 -5
  1493. package/dist/hooks/use-dismiss.d.ts.map +1 -1
  1494. package/dist/hooks/use-dismiss.js +36 -24
  1495. package/dist/hooks/use-dismiss.js.map +1 -1
  1496. package/dist/hooks/use-favicon.js +1 -1
  1497. package/dist/hooks/use-focus-trap.d.ts +4 -3
  1498. package/dist/hooks/use-focus-trap.d.ts.map +1 -1
  1499. package/dist/hooks/use-focus-trap.js +25 -37
  1500. package/dist/hooks/use-focus-trap.js.map +1 -1
  1501. package/dist/hooks/use-highlighted-code.d.ts +2 -2
  1502. package/dist/hooks/use-highlighted-code.d.ts.map +1 -1
  1503. package/dist/hooks/use-highlighted-code.js +6 -76
  1504. package/dist/hooks/use-highlighted-code.js.map +1 -1
  1505. package/dist/hooks/use-hover-capable.d.ts +1 -1
  1506. package/dist/hooks/use-hover-capable.js +1 -1
  1507. package/dist/hooks/use-hover-capable.js.map +1 -1
  1508. package/dist/hooks/use-hover-gesture.d.ts +5 -5
  1509. package/dist/hooks/use-hover-gesture.js +6 -6
  1510. package/dist/hooks/use-hover-gesture.js.map +1 -1
  1511. package/dist/hooks/use-intersection-observer.d.ts +2 -2
  1512. package/dist/hooks/use-intersection-observer.d.ts.map +1 -1
  1513. package/dist/hooks/use-intersection-observer.js +4 -4
  1514. package/dist/hooks/use-intersection-observer.js.map +1 -1
  1515. package/dist/hooks/use-listbox.d.ts +1 -0
  1516. package/dist/hooks/use-listbox.js +3 -2
  1517. package/dist/hooks/use-listbox.js.map +1 -1
  1518. package/dist/hooks/use-meta-color.js +7 -7
  1519. package/dist/hooks/use-meta-color.js.map +1 -1
  1520. package/dist/hooks/use-mobile.js +3 -3
  1521. package/dist/hooks/use-mobile.js.map +1 -1
  1522. package/dist/hooks/use-modal-scope.js +22 -26
  1523. package/dist/hooks/use-modal-scope.js.map +1 -1
  1524. package/dist/hooks/use-mutation-observer.d.ts +2 -2
  1525. package/dist/hooks/use-mutation-observer.d.ts.map +1 -1
  1526. package/dist/hooks/use-mutation-observer.js +2 -2
  1527. package/dist/hooks/use-mutation-observer.js.map +1 -1
  1528. package/dist/hooks/use-on-open.d.ts +3 -3
  1529. package/dist/hooks/use-on-open.js +3 -3
  1530. package/dist/hooks/use-on-open.js.map +1 -1
  1531. package/dist/hooks/use-row-cursor.d.ts +2 -2
  1532. package/dist/hooks/use-row-cursor.js +2 -2
  1533. package/dist/hooks/use-row-cursor.js.map +1 -1
  1534. package/dist/hooks/use-slider-input.d.ts +4 -4
  1535. package/dist/hooks/use-slider-input.d.ts.map +1 -1
  1536. package/dist/hooks/use-slider.d.ts +13 -3
  1537. package/dist/hooks/use-slider.d.ts.map +1 -1
  1538. package/dist/hooks/use-slider.js +23 -4
  1539. package/dist/hooks/use-slider.js.map +1 -1
  1540. package/dist/hooks/use-status-open.d.ts +26 -0
  1541. package/dist/hooks/use-status-open.d.ts.map +1 -0
  1542. package/dist/hooks/use-status-open.js +43 -0
  1543. package/dist/hooks/use-status-open.js.map +1 -0
  1544. package/dist/hooks/use-tap-gesture.d.ts +3 -3
  1545. package/dist/hooks/use-tap-gesture.js +3 -3
  1546. package/dist/hooks/use-tap-gesture.js.map +1 -1
  1547. package/dist/i18n-BRH0Y7Sm.d.ts +34 -0
  1548. package/dist/i18n-BRH0Y7Sm.d.ts.map +1 -0
  1549. package/dist/lib/audio-context.d.ts +27 -1
  1550. package/dist/lib/audio-context.d.ts.map +1 -1
  1551. package/dist/lib/audio-context.js +61 -2
  1552. package/dist/lib/audio-context.js.map +1 -1
  1553. package/dist/lib/book-sounds.d.ts +18 -0
  1554. package/dist/lib/book-sounds.d.ts.map +1 -0
  1555. package/dist/lib/book-sounds.js +201 -0
  1556. package/dist/lib/book-sounds.js.map +1 -0
  1557. package/dist/lib/color.d.ts +29 -0
  1558. package/dist/lib/color.d.ts.map +1 -0
  1559. package/dist/lib/color.js +93 -0
  1560. package/dist/lib/color.js.map +1 -0
  1561. package/dist/lib/command-search.d.ts +7 -1
  1562. package/dist/lib/command-search.d.ts.map +1 -1
  1563. package/dist/lib/command-search.js +42 -19
  1564. package/dist/lib/command-search.js.map +1 -1
  1565. package/dist/lib/ease.d.ts +2 -2
  1566. package/dist/lib/ease.js +12 -5
  1567. package/dist/lib/ease.js.map +1 -1
  1568. package/dist/lib/focusable.d.ts +10 -0
  1569. package/dist/lib/focusable.d.ts.map +1 -1
  1570. package/dist/lib/focusable.js +31 -1
  1571. package/dist/lib/focusable.js.map +1 -1
  1572. package/dist/lib/game-sounds.d.ts.map +1 -1
  1573. package/dist/lib/game-sounds.js +7 -14
  1574. package/dist/lib/game-sounds.js.map +1 -1
  1575. package/dist/lib/highlighter.d.ts +10 -0
  1576. package/dist/lib/highlighter.d.ts.map +1 -0
  1577. package/dist/lib/highlighter.js +78 -0
  1578. package/dist/lib/highlighter.js.map +1 -0
  1579. package/dist/lib/i18n.d.ts +2 -0
  1580. package/dist/lib/i18n.js +51 -0
  1581. package/dist/lib/i18n.js.map +1 -0
  1582. package/dist/lib/layers.d.ts +24 -0
  1583. package/dist/lib/layers.d.ts.map +1 -0
  1584. package/dist/lib/layers.js +47 -0
  1585. package/dist/lib/layers.js.map +1 -0
  1586. package/dist/lib/merge-refs.d.ts +6 -0
  1587. package/dist/lib/merge-refs.d.ts.map +1 -0
  1588. package/dist/lib/merge-refs.js +15 -0
  1589. package/dist/lib/merge-refs.js.map +1 -0
  1590. package/dist/lib/presence-gate.d.ts +39 -0
  1591. package/dist/lib/presence-gate.d.ts.map +1 -0
  1592. package/dist/{presence-gate-DC7yL1Ls.js → lib/presence-gate.js} +3 -2
  1593. package/dist/lib/presence-gate.js.map +1 -0
  1594. package/dist/lib/scroll-lock.d.ts +13 -0
  1595. package/dist/lib/scroll-lock.d.ts.map +1 -0
  1596. package/dist/lib/scroll-lock.js +59 -0
  1597. package/dist/lib/scroll-lock.js.map +1 -0
  1598. package/dist/lib/sound.d.ts +30 -0
  1599. package/dist/lib/sound.d.ts.map +1 -0
  1600. package/dist/lib/sound.js +95 -0
  1601. package/dist/lib/sound.js.map +1 -0
  1602. package/dist/lib/sounds/bell.d.ts +4 -0
  1603. package/dist/lib/sounds/bell.d.ts.map +1 -0
  1604. package/dist/lib/sounds/bell.js +36 -0
  1605. package/dist/lib/sounds/bell.js.map +1 -0
  1606. package/dist/lib/sounds/bubble.d.ts +4 -0
  1607. package/dist/lib/sounds/bubble.d.ts.map +1 -0
  1608. package/dist/lib/sounds/bubble.js +27 -0
  1609. package/dist/lib/sounds/bubble.js.map +1 -0
  1610. package/dist/lib/sounds/burst.d.ts +4 -0
  1611. package/dist/lib/sounds/burst.d.ts.map +1 -0
  1612. package/dist/lib/sounds/burst.js +45 -0
  1613. package/dist/lib/sounds/burst.js.map +1 -0
  1614. package/dist/lib/sounds/buzz.d.ts +4 -0
  1615. package/dist/lib/sounds/buzz.d.ts.map +1 -0
  1616. package/dist/lib/sounds/buzz.js +26 -0
  1617. package/dist/lib/sounds/buzz.js.map +1 -0
  1618. package/dist/lib/sounds/camera.d.ts +4 -0
  1619. package/dist/lib/sounds/camera.d.ts.map +1 -0
  1620. package/dist/lib/sounds/camera.js +40 -0
  1621. package/dist/lib/sounds/camera.js.map +1 -0
  1622. package/dist/lib/sounds/check.d.ts +4 -0
  1623. package/dist/lib/sounds/check.d.ts.map +1 -0
  1624. package/dist/lib/sounds/check.js +40 -0
  1625. package/dist/lib/sounds/check.js.map +1 -0
  1626. package/dist/lib/sounds/chime.d.ts +4 -0
  1627. package/dist/lib/sounds/chime.d.ts.map +1 -0
  1628. package/dist/lib/sounds/chime.js +33 -0
  1629. package/dist/lib/sounds/chime.js.map +1 -0
  1630. package/dist/lib/sounds/close.d.ts +4 -0
  1631. package/dist/lib/sounds/close.d.ts.map +1 -0
  1632. package/dist/lib/sounds/close.js +36 -0
  1633. package/dist/lib/sounds/close.js.map +1 -0
  1634. package/dist/lib/sounds/coin.d.ts +4 -0
  1635. package/dist/lib/sounds/coin.d.ts.map +1 -0
  1636. package/dist/lib/sounds/coin.js +31 -0
  1637. package/dist/lib/sounds/coin.js.map +1 -0
  1638. package/dist/lib/sounds/collapse.d.ts +4 -0
  1639. package/dist/lib/sounds/collapse.d.ts.map +1 -0
  1640. package/dist/lib/sounds/collapse.js +41 -0
  1641. package/dist/lib/sounds/collapse.js.map +1 -0
  1642. package/dist/lib/sounds/connect.d.ts +4 -0
  1643. package/dist/lib/sounds/connect.d.ts.map +1 -0
  1644. package/dist/lib/sounds/connect.js +39 -0
  1645. package/dist/lib/sounds/connect.js.map +1 -0
  1646. package/dist/lib/sounds/copy.d.ts +4 -0
  1647. package/dist/lib/sounds/copy.d.ts.map +1 -0
  1648. package/dist/lib/sounds/copy.js +39 -0
  1649. package/dist/lib/sounds/copy.js.map +1 -0
  1650. package/dist/lib/sounds/delete.d.ts +4 -0
  1651. package/dist/lib/sounds/delete.d.ts.map +1 -0
  1652. package/dist/lib/sounds/delete.js +39 -0
  1653. package/dist/lib/sounds/delete.js.map +1 -0
  1654. package/dist/lib/sounds/disconnect.d.ts +4 -0
  1655. package/dist/lib/sounds/disconnect.d.ts.map +1 -0
  1656. package/dist/lib/sounds/disconnect.js +39 -0
  1657. package/dist/lib/sounds/disconnect.js.map +1 -0
  1658. package/dist/lib/sounds/dismiss.d.ts +4 -0
  1659. package/dist/lib/sounds/dismiss.d.ts.map +1 -0
  1660. package/dist/lib/sounds/dismiss.js +27 -0
  1661. package/dist/lib/sounds/dismiss.js.map +1 -0
  1662. package/dist/lib/sounds/dock.d.ts +4 -0
  1663. package/dist/lib/sounds/dock.d.ts.map +1 -0
  1664. package/dist/lib/sounds/dock.js +32 -0
  1665. package/dist/lib/sounds/dock.js.map +1 -0
  1666. package/dist/lib/sounds/drop.d.ts +4 -0
  1667. package/dist/lib/sounds/drop.d.ts.map +1 -0
  1668. package/dist/lib/sounds/drop.js +48 -0
  1669. package/dist/lib/sounds/drop.js.map +1 -0
  1670. package/dist/lib/sounds/engine.d.ts +142 -0
  1671. package/dist/lib/sounds/engine.d.ts.map +1 -0
  1672. package/dist/lib/sounds/engine.js +210 -0
  1673. package/dist/lib/sounds/engine.js.map +1 -0
  1674. package/dist/lib/sounds/error.d.ts +4 -0
  1675. package/dist/lib/sounds/error.d.ts.map +1 -0
  1676. package/dist/lib/sounds/error.js +51 -0
  1677. package/dist/lib/sounds/error.js.map +1 -0
  1678. package/dist/lib/sounds/expand.d.ts +4 -0
  1679. package/dist/lib/sounds/expand.d.ts.map +1 -0
  1680. package/dist/lib/sounds/expand.js +28 -0
  1681. package/dist/lib/sounds/expand.js.map +1 -0
  1682. package/dist/lib/sounds/heart.d.ts +4 -0
  1683. package/dist/lib/sounds/heart.d.ts.map +1 -0
  1684. package/dist/lib/sounds/heart.js +39 -0
  1685. package/dist/lib/sounds/heart.js.map +1 -0
  1686. package/dist/lib/sounds/lift.d.ts +4 -0
  1687. package/dist/lib/sounds/lift.d.ts.map +1 -0
  1688. package/dist/lib/sounds/lift.js +34 -0
  1689. package/dist/lib/sounds/lift.js.map +1 -0
  1690. package/dist/lib/sounds/lock.d.ts +4 -0
  1691. package/dist/lib/sounds/lock.d.ts.map +1 -0
  1692. package/dist/lib/sounds/lock.js +32 -0
  1693. package/dist/lib/sounds/lock.js.map +1 -0
  1694. package/dist/lib/sounds/navigate.d.ts +4 -0
  1695. package/dist/lib/sounds/navigate.d.ts.map +1 -0
  1696. package/dist/lib/sounds/navigate.js +36 -0
  1697. package/dist/lib/sounds/navigate.js.map +1 -0
  1698. package/dist/lib/sounds/notify.d.ts +4 -0
  1699. package/dist/lib/sounds/notify.d.ts.map +1 -0
  1700. package/dist/lib/sounds/notify.js +31 -0
  1701. package/dist/lib/sounds/notify.js.map +1 -0
  1702. package/dist/lib/sounds/open.d.ts +4 -0
  1703. package/dist/lib/sounds/open.d.ts.map +1 -0
  1704. package/dist/lib/sounds/open.js +36 -0
  1705. package/dist/lib/sounds/open.js.map +1 -0
  1706. package/dist/lib/sounds/ping.d.ts +4 -0
  1707. package/dist/lib/sounds/ping.d.ts.map +1 -0
  1708. package/dist/lib/sounds/ping.js +30 -0
  1709. package/dist/lib/sounds/ping.js.map +1 -0
  1710. package/dist/lib/sounds/pop.d.ts +4 -0
  1711. package/dist/lib/sounds/pop.d.ts.map +1 -0
  1712. package/dist/lib/sounds/pop.js +27 -0
  1713. package/dist/lib/sounds/pop.js.map +1 -0
  1714. package/dist/lib/sounds/press.d.ts +4 -0
  1715. package/dist/lib/sounds/press.d.ts.map +1 -0
  1716. package/dist/lib/sounds/press.js +40 -0
  1717. package/dist/lib/sounds/press.js.map +1 -0
  1718. package/dist/lib/sounds/receive.d.ts +4 -0
  1719. package/dist/lib/sounds/receive.d.ts.map +1 -0
  1720. package/dist/lib/sounds/receive.js +39 -0
  1721. package/dist/lib/sounds/receive.js.map +1 -0
  1722. package/dist/lib/sounds/refresh.d.ts +4 -0
  1723. package/dist/lib/sounds/refresh.d.ts.map +1 -0
  1724. package/dist/lib/sounds/refresh.js +34 -0
  1725. package/dist/lib/sounds/refresh.js.map +1 -0
  1726. package/dist/lib/sounds/reveal.d.ts +4 -0
  1727. package/dist/lib/sounds/reveal.d.ts.map +1 -0
  1728. package/dist/lib/sounds/reveal.js +34 -0
  1729. package/dist/lib/sounds/reveal.js.map +1 -0
  1730. package/dist/lib/sounds/select.d.ts +4 -0
  1731. package/dist/lib/sounds/select.d.ts.map +1 -0
  1732. package/dist/lib/sounds/select.js +32 -0
  1733. package/dist/lib/sounds/select.js.map +1 -0
  1734. package/dist/lib/sounds/send.d.ts +4 -0
  1735. package/dist/lib/sounds/send.d.ts.map +1 -0
  1736. package/dist/lib/sounds/send.js +35 -0
  1737. package/dist/lib/sounds/send.js.map +1 -0
  1738. package/dist/lib/sounds/shutter.d.ts +4 -0
  1739. package/dist/lib/sounds/shutter.d.ts.map +1 -0
  1740. package/dist/lib/sounds/shutter.js +40 -0
  1741. package/dist/lib/sounds/shutter.js.map +1 -0
  1742. package/dist/lib/sounds/snap.d.ts +4 -0
  1743. package/dist/lib/sounds/snap.d.ts.map +1 -0
  1744. package/dist/lib/sounds/snap.js +33 -0
  1745. package/dist/lib/sounds/snap.js.map +1 -0
  1746. package/dist/lib/sounds/star.d.ts +4 -0
  1747. package/dist/lib/sounds/star.d.ts.map +1 -0
  1748. package/dist/lib/sounds/star.js +38 -0
  1749. package/dist/lib/sounds/star.js.map +1 -0
  1750. package/dist/lib/sounds/success.d.ts +4 -0
  1751. package/dist/lib/sounds/success.d.ts.map +1 -0
  1752. package/dist/lib/sounds/success.js +39 -0
  1753. package/dist/lib/sounds/success.js.map +1 -0
  1754. package/dist/lib/sounds/swipe.d.ts +4 -0
  1755. package/dist/lib/sounds/swipe.d.ts.map +1 -0
  1756. package/dist/lib/sounds/swipe.js +29 -0
  1757. package/dist/lib/sounds/swipe.js.map +1 -0
  1758. package/dist/lib/sounds/switch.d.ts +4 -0
  1759. package/dist/lib/sounds/switch.d.ts.map +1 -0
  1760. package/dist/lib/sounds/switch.js +40 -0
  1761. package/dist/lib/sounds/switch.js.map +1 -0
  1762. package/dist/lib/sounds/tap.d.ts +4 -0
  1763. package/dist/lib/sounds/tap.d.ts.map +1 -0
  1764. package/dist/lib/sounds/tap.js +33 -0
  1765. package/dist/lib/sounds/tap.js.map +1 -0
  1766. package/dist/lib/sounds/tick.d.ts +4 -0
  1767. package/dist/lib/sounds/tick.d.ts.map +1 -0
  1768. package/dist/lib/sounds/tick.js +26 -0
  1769. package/dist/lib/sounds/tick.js.map +1 -0
  1770. package/dist/lib/sounds/timer.d.ts +4 -0
  1771. package/dist/lib/sounds/timer.d.ts.map +1 -0
  1772. package/dist/lib/sounds/timer.js +26 -0
  1773. package/dist/lib/sounds/timer.js.map +1 -0
  1774. package/dist/lib/sounds/toggle.d.ts +6 -0
  1775. package/dist/lib/sounds/toggle.d.ts.map +1 -0
  1776. package/dist/lib/sounds/toggle.js +79 -0
  1777. package/dist/lib/sounds/toggle.js.map +1 -0
  1778. package/dist/lib/sounds/trash.d.ts +4 -0
  1779. package/dist/lib/sounds/trash.d.ts.map +1 -0
  1780. package/dist/lib/sounds/trash.js +40 -0
  1781. package/dist/lib/sounds/trash.js.map +1 -0
  1782. package/dist/lib/sounds/type.d.ts +4 -0
  1783. package/dist/lib/sounds/type.d.ts.map +1 -0
  1784. package/dist/lib/sounds/type.js +35 -0
  1785. package/dist/lib/sounds/type.js.map +1 -0
  1786. package/dist/lib/sounds/unlock.d.ts +4 -0
  1787. package/dist/lib/sounds/unlock.d.ts.map +1 -0
  1788. package/dist/lib/sounds/unlock.js +41 -0
  1789. package/dist/lib/sounds/unlock.js.map +1 -0
  1790. package/dist/lib/sounds/warning.d.ts +4 -0
  1791. package/dist/lib/sounds/warning.d.ts.map +1 -0
  1792. package/dist/lib/sounds/warning.js +29 -0
  1793. package/dist/lib/sounds/warning.js.map +1 -0
  1794. package/dist/lib/sounds/whisper.d.ts +4 -0
  1795. package/dist/lib/sounds/whisper.d.ts.map +1 -0
  1796. package/dist/lib/sounds/whisper.js +27 -0
  1797. package/dist/lib/sounds/whisper.js.map +1 -0
  1798. package/dist/lib/text-shimmer.d.ts +6 -0
  1799. package/dist/lib/text-shimmer.d.ts.map +1 -1
  1800. package/dist/lib/text-shimmer.js +7 -1
  1801. package/dist/lib/text-shimmer.js.map +1 -1
  1802. package/dist/lib/tick-sound.d.ts.map +1 -1
  1803. package/dist/lib/tick-sound.js +8 -11
  1804. package/dist/lib/tick-sound.js.map +1 -1
  1805. package/dist/lib/touch.d.ts +10 -10
  1806. package/dist/lib/touch.js +10 -10
  1807. package/dist/lib/touch.js.map +1 -1
  1808. package/dist/listbox-panel-BX74YCzI.d.ts +31 -0
  1809. package/dist/listbox-panel-BX74YCzI.d.ts.map +1 -0
  1810. package/dist/menu-button-CbEYps6k.d.ts +29 -0
  1811. package/dist/menu-button-CbEYps6k.d.ts.map +1 -0
  1812. package/dist/menu-sub-button-NgS4JryG.d.ts +25 -0
  1813. package/dist/menu-sub-button-NgS4JryG.d.ts.map +1 -0
  1814. package/dist/messages-BYMFNf5X.d.ts +13 -0
  1815. package/dist/messages-BYMFNf5X.d.ts.map +1 -0
  1816. package/dist/messages-CVaE8xc6.js +14 -0
  1817. package/dist/messages-CVaE8xc6.js.map +1 -0
  1818. package/dist/messages-CqyH8Hd7.js +21 -0
  1819. package/dist/messages-CqyH8Hd7.js.map +1 -0
  1820. package/dist/messages-CrtN5AXG.js +20 -0
  1821. package/dist/messages-CrtN5AXG.js.map +1 -0
  1822. package/dist/messages-D0lxgjNm.d.ts +31 -0
  1823. package/dist/messages-D0lxgjNm.d.ts.map +1 -0
  1824. package/dist/messages-D4axySpl.d.ts +21 -0
  1825. package/dist/messages-D4axySpl.d.ts.map +1 -0
  1826. package/dist/messages-Dyou6PVt.d.ts +23 -0
  1827. package/dist/messages-Dyou6PVt.d.ts.map +1 -0
  1828. package/dist/messages-azsh5xBO.d.ts +20 -0
  1829. package/dist/messages-azsh5xBO.d.ts.map +1 -0
  1830. package/dist/messages-ogb0tIIX.d.ts +23 -0
  1831. package/dist/messages-ogb0tIIX.d.ts.map +1 -0
  1832. package/dist/messages-tLRkxZwI.d.ts +33 -0
  1833. package/dist/messages-tLRkxZwI.d.ts.map +1 -0
  1834. package/dist/{model-BFZGhrnQ.d.ts → model-CHHE1lHQ.d.ts} +5 -1
  1835. package/dist/model-CHHE1lHQ.d.ts.map +1 -0
  1836. package/dist/{model-DuAc65oe.d.ts → model-D6sI_4m9.d.ts} +5 -1
  1837. package/dist/model-D6sI_4m9.d.ts.map +1 -0
  1838. package/dist/{model-mS4UXPwk.d.ts → model-DUQnYLRU.d.ts} +3 -1
  1839. package/dist/model-DUQnYLRU.d.ts.map +1 -0
  1840. package/dist/{model-CvWolJdo.d.ts → model-Dafi-gx6.d.ts} +2 -1
  1841. package/dist/model-Dafi-gx6.d.ts.map +1 -0
  1842. package/dist/motion-1TeD2tw9.js +67 -0
  1843. package/dist/motion-1TeD2tw9.js.map +1 -0
  1844. package/dist/{path-VEfFUowr.d.ts → path-DMP3rnd1.d.ts} +1 -1
  1845. package/dist/path-DMP3rnd1.d.ts.map +1 -0
  1846. package/dist/placement-BRE79jXm.d.ts +4 -0
  1847. package/dist/placement-BRE79jXm.d.ts.map +1 -0
  1848. package/dist/placement-Cg-Y5tLI.js +74 -0
  1849. package/dist/placement-Cg-Y5tLI.js.map +1 -0
  1850. package/dist/{plot-CTQFrQKi.js → plot-CSTtMo6j.js} +13 -13
  1851. package/dist/plot-CSTtMo6j.js.map +1 -0
  1852. package/dist/popover-morph-CWb4N9ux.d.ts +55 -0
  1853. package/dist/popover-morph-CWb4N9ux.d.ts.map +1 -0
  1854. package/dist/{popover-position-BaDNBZ-D.js → popover-position-U1ZMRPsY.js} +1 -1
  1855. package/dist/{popover-position-BaDNBZ-D.js.map → popover-position-U1ZMRPsY.js.map} +1 -1
  1856. package/dist/{positioner-MidjIUUT.js → positioner-CFR4mJg6.js} +117 -9
  1857. package/dist/positioner-CFR4mJg6.js.map +1 -0
  1858. package/dist/resource-row-PkgPS9Hk.js +290 -0
  1859. package/dist/resource-row-PkgPS9Hk.js.map +1 -0
  1860. package/dist/root-C1n8-uIA.js +420 -0
  1861. package/dist/root-C1n8-uIA.js.map +1 -0
  1862. package/dist/{scale-DSsaupNc.d.ts → scale-BLDMdHAp.d.ts} +1 -1
  1863. package/dist/scale-BLDMdHAp.d.ts.map +1 -0
  1864. package/dist/{use-inspection-CZhdpH8J.js → scale-JwdKsMkj.js} +2 -55
  1865. package/dist/scale-JwdKsMkj.js.map +1 -0
  1866. package/dist/theme.css +98 -4
  1867. package/dist/{tooltip-w0KptZat.d.ts → tooltip-CoAbjn9I.d.ts} +9 -1
  1868. package/dist/tooltip-CoAbjn9I.d.ts.map +1 -0
  1869. package/dist/{tooltip-CNEYdIX3.d.ts → tooltip-DI79u-1V.d.ts} +28 -2
  1870. package/dist/tooltip-DI79u-1V.d.ts.map +1 -0
  1871. package/dist/{tooltip-CMVyNolz.d.ts → tooltip-DPci40hM.d.ts} +21 -2
  1872. package/dist/tooltip-DPci40hM.d.ts.map +1 -0
  1873. package/dist/{tooltip-Cq46pSJ2.d.ts → tooltip-X7sMXf98.d.ts} +31 -3
  1874. package/dist/tooltip-X7sMXf98.d.ts.map +1 -0
  1875. package/dist/{tooltip-content-K0vPsEtI.d.ts → tooltip-content-Dr8bhW-q.d.ts} +4 -2
  1876. package/dist/tooltip-content-Dr8bhW-q.d.ts.map +1 -0
  1877. package/dist/{tooltip-CuHpilPN.js → tooltip-gHv-6eOs.js} +58 -47
  1878. package/dist/tooltip-gHv-6eOs.js.map +1 -0
  1879. package/dist/{tooltip-BVRmgnbZ.d.ts → tooltip-gKOUHp_1.d.ts} +28 -2
  1880. package/dist/tooltip-gKOUHp_1.d.ts.map +1 -0
  1881. package/dist/types-BhZ0FwDi.d.ts +33 -0
  1882. package/dist/types-BhZ0FwDi.d.ts.map +1 -0
  1883. package/dist/types-BnHpfLje.d.ts +111 -0
  1884. package/dist/types-BnHpfLje.d.ts.map +1 -0
  1885. package/dist/types-COoUai3R.d.ts +64 -0
  1886. package/dist/types-COoUai3R.d.ts.map +1 -0
  1887. package/dist/{types-D9hKqIzm.d.ts → types-CbBZy33k.d.ts} +34 -2
  1888. package/dist/types-CbBZy33k.d.ts.map +1 -0
  1889. package/dist/{types-BB61jXS_.d.ts → types-ClKnPGuP.d.ts} +21 -4
  1890. package/dist/types-ClKnPGuP.d.ts.map +1 -0
  1891. package/dist/types-DPKILbI9.d.ts +37 -0
  1892. package/dist/types-DPKILbI9.d.ts.map +1 -0
  1893. package/dist/types-Dbiy485_.d.ts +114 -0
  1894. package/dist/types-Dbiy485_.d.ts.map +1 -0
  1895. package/dist/{types-BSMELKE5.d.ts → types-DlSHf6nJ.d.ts} +1 -1
  1896. package/dist/types-DlSHf6nJ.d.ts.map +1 -0
  1897. package/dist/types-DtUnNprK.d.ts +53 -0
  1898. package/dist/types-DtUnNprK.d.ts.map +1 -0
  1899. package/dist/{use-crash-game-B3RHxFkm.d.ts → use-crash-game-C6JPLvAH.d.ts} +60 -5
  1900. package/dist/use-crash-game-C6JPLvAH.d.ts.map +1 -0
  1901. package/dist/use-filtered-options-3TcVsHzV.js +167 -0
  1902. package/dist/use-filtered-options-3TcVsHzV.js.map +1 -0
  1903. package/dist/use-filtered-options-BbXqmJmZ.d.ts +14 -0
  1904. package/dist/use-filtered-options-BbXqmJmZ.d.ts.map +1 -0
  1905. package/dist/{use-geometry-C84j2gUk.d.ts → use-geometry-BajLqxjC.d.ts} +1 -1
  1906. package/dist/use-geometry-BajLqxjC.d.ts.map +1 -0
  1907. package/dist/use-inspection-LoyxxJk8.js +31 -0
  1908. package/dist/use-inspection-LoyxxJk8.js.map +1 -0
  1909. package/dist/use-menu-navigation-B17_iK_B.js +57 -0
  1910. package/dist/use-menu-navigation-B17_iK_B.js.map +1 -0
  1911. package/dist/{use-points-C2jpElHh.js → use-points-y0l-9pdN.js} +1 -1
  1912. package/dist/use-points-y0l-9pdN.js.map +1 -0
  1913. package/dist/{use-position-CWSE4wCz.d.ts → use-position-ac-sSZRY.d.ts} +3 -1
  1914. package/dist/use-position-ac-sSZRY.d.ts.map +1 -0
  1915. package/dist/use-width-DZex74TT.js +45 -0
  1916. package/dist/use-width-DZex74TT.js.map +1 -0
  1917. package/dist/utils-Dve5wIjB.js +56 -0
  1918. package/dist/utils-Dve5wIjB.js.map +1 -0
  1919. package/dist/{utils-ZRfJ78Df.js → utils-F-hKjEFd.js} +1 -1
  1920. package/dist/utils-F-hKjEFd.js.map +1 -0
  1921. package/dist/utils-f7_cAAwc.js +55 -0
  1922. package/dist/utils-f7_cAAwc.js.map +1 -0
  1923. package/package.json +18 -18
  1924. package/dist/account-avatar--0_0u0WW.js.map +0 -1
  1925. package/dist/cascader-types-Bh_kJ3Qw.d.ts.map +0 -1
  1926. package/dist/components/agents/agent-activity/index.d.ts +0 -4
  1927. package/dist/components/agents/agent-activity/index.d.ts.map +0 -1
  1928. package/dist/components/agents/agent-activity/index.js.map +0 -1
  1929. package/dist/components/agents/approval-card/index.d.ts +0 -49
  1930. package/dist/components/agents/approval-card/index.d.ts.map +0 -1
  1931. package/dist/components/agents/approval-card/index.js +0 -314
  1932. package/dist/components/agents/approval-card/index.js.map +0 -1
  1933. package/dist/components/motion/animated-sidebar.js.map +0 -1
  1934. package/dist/components/motion/animated-toast-stack.d.ts.map +0 -1
  1935. package/dist/components/motion/animated-toast-stack.js.map +0 -1
  1936. package/dist/components/motion/availability-scheduler/index.d.ts +0 -12
  1937. package/dist/components/motion/availability-scheduler/index.d.ts.map +0 -1
  1938. package/dist/components/motion/availability-scheduler/index.js.map +0 -1
  1939. package/dist/components/motion/button/index.d.ts +0 -5
  1940. package/dist/components/motion/button/index.js +0 -6
  1941. package/dist/components/motion/combobox/context.d.ts.map +0 -1
  1942. package/dist/components/motion/combobox/context.js.map +0 -1
  1943. package/dist/components/motion/multi-select/context.d.ts.map +0 -1
  1944. package/dist/components/motion/multi-select/context.js.map +0 -1
  1945. package/dist/components/motion/popover-morph.d.ts.map +0 -1
  1946. package/dist/components/motion/table/index.d.ts.map +0 -1
  1947. package/dist/components/motion/table/index.js.map +0 -1
  1948. package/dist/components/motion/wallet-card/index.d.ts +0 -11
  1949. package/dist/components/motion/wallet-card/index.d.ts.map +0 -1
  1950. package/dist/components/motion/wallet-card/index.js.map +0 -1
  1951. package/dist/constants-evLzfUhL.js.map +0 -1
  1952. package/dist/context-3i2_6ly8.js.map +0 -1
  1953. package/dist/context-C5TW-k6u.js.map +0 -1
  1954. package/dist/context-CQbvWVnM.js.map +0 -1
  1955. package/dist/context-CXlD0FcC.js.map +0 -1
  1956. package/dist/context-ChsuSih6.js.map +0 -1
  1957. package/dist/context-D-juVNr2.d.ts.map +0 -1
  1958. package/dist/context-DUx44mGi.js.map +0 -1
  1959. package/dist/context-DWXNECDe.js.map +0 -1
  1960. package/dist/context-DdnKlMjE.js.map +0 -1
  1961. package/dist/context-Dk6C9IvC.js.map +0 -1
  1962. package/dist/context-i6Dwvi3T.js.map +0 -1
  1963. package/dist/context-mjP5wifG.d.ts.map +0 -1
  1964. package/dist/context-tv-kneJV.d.ts.map +0 -1
  1965. package/dist/copy-menu-LU54Aruj.js.map +0 -1
  1966. package/dist/crash-parts-CUv5gFYQ.js.map +0 -1
  1967. package/dist/ease-DjhlGGZO.d.ts.map +0 -1
  1968. package/dist/model-BFZGhrnQ.d.ts.map +0 -1
  1969. package/dist/model-CvWolJdo.d.ts.map +0 -1
  1970. package/dist/model-DuAc65oe.d.ts.map +0 -1
  1971. package/dist/model-mS4UXPwk.d.ts.map +0 -1
  1972. package/dist/path-VEfFUowr.d.ts.map +0 -1
  1973. package/dist/plot-CTQFrQKi.js.map +0 -1
  1974. package/dist/positioner-MidjIUUT.js.map +0 -1
  1975. package/dist/presence-gate-DC7yL1Ls.js.map +0 -1
  1976. package/dist/scale-DSsaupNc.d.ts.map +0 -1
  1977. package/dist/tooltip-BVRmgnbZ.d.ts.map +0 -1
  1978. package/dist/tooltip-CMVyNolz.d.ts.map +0 -1
  1979. package/dist/tooltip-CNEYdIX3.d.ts.map +0 -1
  1980. package/dist/tooltip-Cq46pSJ2.d.ts.map +0 -1
  1981. package/dist/tooltip-CuHpilPN.js.map +0 -1
  1982. package/dist/tooltip-content-K0vPsEtI.d.ts.map +0 -1
  1983. package/dist/tooltip-w0KptZat.d.ts.map +0 -1
  1984. package/dist/types-B0d0d7PF.d.ts +0 -34
  1985. package/dist/types-B0d0d7PF.d.ts.map +0 -1
  1986. package/dist/types-BB61jXS_.d.ts.map +0 -1
  1987. package/dist/types-BSMELKE5.d.ts.map +0 -1
  1988. package/dist/types-D9hKqIzm.d.ts.map +0 -1
  1989. package/dist/types-qTGsGdN1.d.ts +0 -20
  1990. package/dist/types-qTGsGdN1.d.ts.map +0 -1
  1991. package/dist/use-active-option-DerS-wGL.js +0 -85
  1992. package/dist/use-active-option-DerS-wGL.js.map +0 -1
  1993. package/dist/use-crash-game-B3RHxFkm.d.ts.map +0 -1
  1994. package/dist/use-geometry-C84j2gUk.d.ts.map +0 -1
  1995. package/dist/use-inspection-CZhdpH8J.js.map +0 -1
  1996. package/dist/use-points-C2jpElHh.js.map +0 -1
  1997. package/dist/use-position-CWSE4wCz.d.ts.map +0 -1
  1998. package/dist/use-width-CkKCh1b3.js +0 -23
  1999. package/dist/use-width-CkKCh1b3.js.map +0 -1
  2000. package/dist/utils-DMrlhG6M.js +0 -25
  2001. package/dist/utils-DMrlhG6M.js.map +0 -1
  2002. package/dist/utils-ZRfJ78Df.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"knockout-wheel.js","names":[],"sources":["../../../src/components/motion/knockout-wheel.tsx"],"sourcesContent":["\"use client\";\n\nimport { type KeyboardEvent, memo, useCallback, useId, useMemo, useRef, useState } from \"react\";\nimport { Shield } from \"lucide-react\";\nimport { motion, useInView, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { useDismiss } from \"../../hooks/use-dismiss\";\nimport { useHoverCapable } from \"../../hooks/use-hover-capable\";\nimport { useHoverGesture } from \"../../hooks/use-hover-gesture\";\nimport { useTapGesture } from \"../../hooks/use-tap-gesture\";\nimport { SPRING_PANEL } from \"../../lib/ease\";\nimport { Tooltip } from \"./tooltip\";\n\nexport type Team = {\n name: string;\n /**\n * Any square image URL — club crest, org mark, player photo. Wins over `code`.\n * Drawn as-is on the node's card-colored disc, so a transparent-background\n * mark inked for one theme disappears in the other: ship artwork that reads on\n * both, or pick the URL yourself from your theme state.\n */\n logo?: string;\n /** ISO 3166-1 alpha-2 code, loaded from flagcdn.com (England is gb-eng). Used when `logo` is absent. */\n code?: string;\n};\n\nexport type MatchSide = {\n team: Team | null;\n score: number | null;\n /** Present on both sides to render shootout scores — 1 (3). */\n penalties?: number | null;\n};\n\n/** Structurally compatible with the knockout bracket's Match, minus the fields\n * the wheel never draws (date, time, status). */\nexport type Match = {\n id: string;\n home: MatchSide;\n away: MatchSide;\n winner?: \"home\" | \"away\";\n};\n\nexport type Round = {\n /** Read out with the match in tooltips and the screen-reader list. */\n name: string;\n matches: Match[];\n};\n\nexport interface KnockoutWheelProps {\n /**\n * The whole draw, ordered widest round first — the same array the knockout\n * bracket takes. Any single-elimination tournament fits: each round holds half\n * the matches of the one before it (16 → 8 → 4 → 2 → 1) and `rounds[r].matches[k]`\n * is fed by matches `2k` and `2k + 1` of the round before it. Two rounds are\n * enough; the wheel grows a ring per round and sizes itself to the rim.\n */\n rounds: Round[];\n /**\n * Index of the outermost round to draw. Earlier rounds are dropped and the\n * kept round's own teams become the rim, so `1` on a 32-team draw opens at the\n * Round of 16. Defaults to 0 (the whole tree); clamped to the valid range.\n */\n initialRound?: number;\n className?: string;\n}\n\nconst SIZE = 760;\nconst CENTER = SIZE / 2;\n// Solid trophy glyph drawn in a 24-unit box.\nconst TROPHY_SIZE = 24;\nconst TROPHY_PATH =\n \"M5 1h12v3h3a2 2 0 0 1 2 2c0 3.3-2.2 5.6-5.2 6A6 6 0 0 1 12 15a6 6 0 0 1-4.8-2.9C4.2 11.6 2 9.3 2 6a2 2 0 0 1 2-2h1V1Zm0 5H4c0 1.9 1.1 3.2 2.6 3.7A12 12 0 0 1 5 6Zm14 0h-1a12 12 0 0 1-1.6 3.7C17.9 9.2 19 7.9 19 6ZM9 16.5h6V19h2.5v2h-11v-2H9v-2.5Z\";\n// Clears the hub's top edge. The hub's two feeders sit on the horizontal, so\n// the space directly above it is always free.\nconst TROPHY_GAP = 6;\n// Outermost ring. The remaining 62px of the box absorbs the largest node plus\n// its ring stroke, so nothing clips at the viewBox edge.\nconst OUTER_R = 318;\nconst HUB_R = 34;\n// Nodes grow outward so the crowded outer ring still reads at small sizes.\nconst NODE_MIN = 14.2;\nconst NODE_STEP = 2.2;\n// Initials floor, in viewBox units. The stage never goes below 32rem against a\n// 760-unit box (scale ~0.674), so 15 units is ~10px on screen — under that, two\n// letters are a smudge. `node.r * 0.8` alone puts the inner ring at 7.6px.\nconst INITIALS_MIN = 15;\n// Siblings pull slightly toward their parent, opening a lane between subtrees.\nconst SIBLING_GAP = 0.9;\n// Puts the hub's two feeders on the horizontal, where there's room for them.\nconst HUB_ANGLE = 90;\n\n// Module scope so the memoized marks keep a stable transition identity.\nconst DIM_TRANSITION = { duration: 0.18 } as const;\nconst NO_TRANSITION = { duration: 0 } as const;\n\n// Math.sin/cos are implementation-defined down in the last digits, so the SSR\n// engine and the browser disagree and React reports a hydration mismatch on\n// every coordinate. Quantizing well below sub-pixel makes both agree exactly.\nconst quantize = (n: number) => Math.round(n * 1e3) / 1e3;\n\nconst polar = (radius: number, deg: number) => {\n const rad = (deg * Math.PI) / 180;\n return {\n x: quantize(CENTER + radius * Math.cos(rad)),\n y: quantize(CENTER + radius * Math.sin(rad)),\n };\n};\n\nconst point = (radius: number, deg: number) => {\n const { x, y } = polar(radius, deg);\n return `${x.toFixed(2)} ${y.toFixed(2)}`;\n};\n\n// Fixed precision so the server and client render byte-identical style strings.\n// Raw floats serialize differently across the two and trip a hydration mismatch.\nconst pct = (value: number) => `${((value / SIZE) * 100).toFixed(4)}%`;\n\ntype WheelNode = {\n id: string;\n parentId: string | null;\n depth: number;\n /** Position around the wheel, in degrees. Orders arrow-key navigation. */\n angle: number;\n x: number;\n y: number;\n r: number;\n team: Team | null;\n label: string;\n /** Round the node's match belongs to; null on the rim, which holds teams. */\n round: string | null;\n};\n\ntype WheelLink = {\n id: string;\n d: string;\n depth: number;\n};\n\n// Names and round labels are single ideas, so they wrap as a unit. Without this\n// \"Round of 16\" strands a lone \"16\" on the next line.\nconst keepTogether = (text: string) => text.replace(/ /g, \" \");\n\nconst teamName = (side: MatchSide) => keepTogether(side.team?.name ?? \"TBD\");\n\n/** A `logo` is used as given; a country `code` loads a flag from flagcdn.com. */\nconst crestSrc = (team: Team) =>\n team.logo ?? (team.code ? `https://flagcdn.com/w80/${team.code}.png` : null);\n\n/** Two-letter stand-in when a team has no artwork — \"Real Madrid\" → RM.\n * Spread, not `word[0]`: an emoji or astral first character is a surrogate pair\n * and indexing it renders a replacement glyph. */\nconst initials = (name: string) =>\n name\n .split(/\\s+/)\n .slice(0, 2)\n .map((word) => [...word][0])\n .join(\"\")\n .toUpperCase();\n\n/** Teams · score, in the order they were played. The round is prepended by the\n * caller that has it, so the round list can reuse this without repeating it. */\nfunction matchLabel(match: Match) {\n const teams = `${teamName(match.home)} v ${teamName(match.away)}`;\n if (match.home.score == null || match.away.score == null) return teams;\n const pens =\n match.home.penalties != null && match.away.penalties != null\n ? ` (${match.home.penalties}–${match.away.penalties} pens)`\n : \"\";\n return `${teams} · ${match.home.score}–${match.away.score}${pens}`;\n}\n\n/** Walks the match tree from the final outward, laying every node on a ring and\n * splitting each parent's wedge between its two feeders. */\nfunction buildWheel(rounds: Round[]) {\n const nodes: WheelNode[] = [];\n const links: WheelLink[] = [];\n const layers = rounds.length;\n const ringR = (depth: number) => (depth / layers) * OUTER_R;\n const nodeR = (depth: number) => NODE_MIN + (depth - 1) * NODE_STEP;\n\n // An empty or malformed catalog renders nothing rather than throwing on the\n // way to the hub.\n const final = rounds[layers - 1]?.matches[0];\n if (!final) return { nodes, links, champion: null };\n\n const champion = final.winner ? final[final.winner].team : null;\n nodes.push({\n id: final.id,\n parentId: null,\n depth: 0,\n angle: HUB_ANGLE,\n x: CENTER,\n y: CENTER,\n r: HUB_R,\n team: champion,\n label: matchLabel(final),\n round: rounds[layers - 1].name,\n });\n\n // `roundIndex` is the round `match` belongs to; its two feeders live one round\n // out, or, past the first round, are the two teams that played it.\n const walk = (\n match: Match,\n roundIndex: number,\n index: number,\n parent: WheelNode,\n angle: number,\n wedge: number,\n ) => {\n const depth = parent.depth + 1;\n const radius = ringR(depth);\n const r = nodeR(depth);\n // The hub's two feeders sit opposite each other, so they get plain radial\n // lines; an arc between them would be a half circle.\n const offset = (wedge / 4) * (parent.depth === 0 ? 1 : SIBLING_GAP);\n const angles = [angle - offset, angle + offset];\n const sides = [\"home\", \"away\"] as const;\n\n const children = angles.map((childAngle, side) => {\n const { x, y } = polar(radius, childAngle);\n const feeder = roundIndex > 0 ? rounds[roundIndex - 1].matches[2 * index + side] : undefined;\n const node: WheelNode = feeder\n ? {\n id: feeder.id,\n parentId: parent.id,\n depth,\n angle: childAngle,\n x,\n y,\n r,\n team: feeder.winner ? feeder[feeder.winner].team : null,\n label: matchLabel(feeder),\n round: rounds[roundIndex - 1].name,\n }\n : {\n id: `${match.id}-${sides[side]}`,\n parentId: parent.id,\n depth,\n angle: childAngle,\n x,\n y,\n r,\n team: match[sides[side]].team,\n label: match[sides[side]].team?.name ?? \"TBD\",\n round: null,\n };\n nodes.push(node);\n return { node, angle: childAngle, feeder };\n });\n\n if (parent.depth === 0) {\n for (const child of children) {\n links.push({\n id: `${parent.id}-${child.node.id}`,\n d: `M ${point(radius, child.angle)} L ${CENTER} ${CENTER}`,\n depth,\n });\n }\n } else {\n const midR = (ringR(parent.depth) + radius) / 2;\n links.push({\n id: `${parent.id}-arc`,\n d: `M ${point(radius, angles[0])} L ${point(midR, angles[0])} A ${midR} ${midR} 0 0 1 ${point(midR, angles[1])} L ${point(radius, angles[1])}`,\n depth,\n });\n links.push({\n id: `${parent.id}-stem`,\n d: `M ${point(midR, angle)} L ${point(ringR(parent.depth), angle)}`,\n depth,\n });\n }\n\n for (const [side, child] of children.entries()) {\n if (child.feeder) {\n walk(child.feeder, roundIndex - 1, 2 * index + side, child.node, child.angle, wedge / 2);\n }\n }\n };\n\n walk(final, layers - 1, 0, nodes[0], HUB_ANGLE, 360);\n return { nodes, links, champion };\n}\n\n/** Match ids from the hub down to the champion's first-round win. */\nfunction championPath(rounds: Round[]) {\n const path = new Set<string>();\n let index = 0;\n for (let r = rounds.length - 1; r >= 0; r--) {\n const match = rounds[r].matches[index];\n if (!match?.winner) return path;\n path.add(match.id);\n if (r === 0) path.add(`${match.id}-${match.winner}`);\n index = 2 * index + (match.winner === \"home\" ? 0 : 1);\n }\n return path;\n}\n\nfunction TeamMark({\n node,\n clipId,\n lit,\n dimmed,\n loadFlag,\n transition,\n}: {\n node: WheelNode;\n clipId: string;\n lit: boolean;\n dimmed: boolean;\n loadFlag: boolean;\n transition: object;\n}) {\n // The failed URL, not a boolean: a corrected logo on the same node should be\n // tried again rather than stay initials for the life of the wheel.\n const [failedSrc, setFailedSrc] = useState<string | null>(null);\n const resolved = node.team ? crestSrc(node.team) : null;\n const src = resolved === failedSrc ? null : resolved;\n const showFlag = src != null && loadFlag;\n // A square logo is fitted whole; a 4:3 flag is cropped to fill the disc.\n const box = node.team?.logo\n ? { w: node.r * 1.44, h: node.r * 1.44, fit: \"xMidYMid meet\" }\n : { w: node.r * 2.68, h: node.r * 2, fit: \"xMidYMid slice\" };\n // Dimming rides on the mark itself rather than a scrim tinted with the page\n // background, so the wheel recedes correctly on any surface it's dropped on.\n const fade = { opacity: dimmed ? 0.38 : 1 };\n\n return (\n <>\n {/* Stays opaque at every state: links are routed underneath and would\n otherwise read straight through the flag. */}\n <circle cx={node.x} cy={node.y} r={node.r} className=\"fill-card\" />\n {showFlag && node.team ? (\n <>\n <clipPath id={clipId}>\n <circle cx={node.x} cy={node.y} r={node.r} />\n </clipPath>\n {/* Plain <image> — flags from flagcdn.com, logos from wherever you host\n them. A 4:3 flag is cropped to fill the disc; a logo is fitted whole\n inside it, since a crest cropped to a circle loses its shape. */}\n <motion.image\n href={src}\n x={node.x - box.w / 2}\n y={node.y - box.h / 2}\n width={box.w}\n height={box.h}\n clipPath={`url(#${clipId})`}\n preserveAspectRatio={box.fit}\n initial={false}\n animate={fade}\n transition={transition}\n onError={() => setFailedSrc(src)}\n />\n </>\n ) : node.team ? (\n // No artwork on this team — initials keep the ring readable.\n <motion.text\n x={node.x}\n y={node.y}\n textAnchor=\"middle\"\n dominantBaseline=\"central\"\n fontSize={Math.max(node.r * 0.8, INITIALS_MIN)}\n initial={false}\n animate={fade}\n transition={transition}\n className=\"fill-muted-foreground font-semibold\"\n >\n {initials(node.team.name)}\n </motion.text>\n ) : (\n // Same shield the knockout bracket uses for a TBD slot, so an\n // undecided place reads identically across both fixture styles.\n <motion.g initial={false} animate={fade} transition={transition}>\n <Shield\n x={node.x - node.r * 0.7}\n y={node.y - node.r * 0.7}\n width={node.r * 1.4}\n height={node.r * 1.4}\n className=\"text-muted-foreground/50 fill-current\"\n />\n </motion.g>\n )}\n <circle\n cx={node.x}\n cy={node.y}\n r={node.r}\n fill=\"none\"\n strokeWidth={lit ? 2 : 1}\n className={lit ? \"stroke-foreground\" : \"stroke-border\"}\n />\n </>\n );\n}\n\n/** Memoized so pointing at one flag re-renders two marks, not all 63. */\nconst WheelMark = memo(function WheelMark({\n node,\n isLit,\n dimmed,\n loadFlag,\n reduce,\n enter,\n showTrophy,\n clipId,\n}: {\n node: WheelNode;\n isLit: boolean;\n dimmed: boolean;\n loadFlag: boolean;\n reduce: boolean;\n enter: object;\n showTrophy: boolean;\n clipId: string;\n}) {\n return (\n <motion.g\n initial={reduce ? false : { opacity: 0, scale: 0.6 }}\n animate={{ opacity: 1, scale: 1 }}\n transition={enter}\n style={{ transformOrigin: `${node.x}px ${node.y}px` }}\n >\n {showTrophy && (\n <g\n transform={`translate(${CENTER - TROPHY_SIZE / 2}, ${CENTER - HUB_R - TROPHY_GAP - TROPHY_SIZE})`}\n >\n <path d={TROPHY_PATH} className=\"fill-warning\" />\n </g>\n )}\n <TeamMark\n node={node}\n clipId={clipId}\n lit={isLit}\n dimmed={dimmed}\n loadFlag={loadFlag}\n transition={reduce ? NO_TRANSITION : DIM_TRANSITION}\n />\n </motion.g>\n );\n});\n\n/** Invisible hit area over one flag: hover, tap, focus and arrow keys. */\nconst WheelAnchor = memo(function WheelAnchor({\n node,\n caption,\n isTabStop,\n isPinned,\n canHover,\n uid,\n onHover,\n onFocusNode,\n onToggle,\n onKey,\n}: {\n node: WheelNode;\n caption: string;\n isTabStop: boolean;\n isPinned: boolean;\n canHover: boolean;\n uid: string;\n onHover: (id: string | null) => void;\n onFocusNode: (id: string | null) => void;\n onToggle: (id: string) => void;\n onKey: (node: WheelNode, key: string) => void;\n}) {\n const size = pct(node.r * 2);\n // Capture-phase focus props, so a Tooltip cloning the child cannot overwrite\n // them. Both interaction paths are always attached: iPadOS answers the hover\n // query with true for a finger, so hanging the tap path off \"cannot hover\"\n // left it unreachable on the very device it was written for. The event says\n // which input arrived.\n const tap = useTapGesture<boolean>();\n const hover = useHoverGesture();\n const trigger = (\n <button\n type=\"button\"\n id={`${uid}-${node.id}`}\n tabIndex={isTabStop ? 0 : -1}\n aria-label={caption}\n onKeyDown={(event: KeyboardEvent) => {\n // A key press starts a keyboard activation, which never had a pointer\n // behind it: a gesture the platform took away must not be read as the\n // tap behind the click this press synthesizes.\n tap.drop();\n if (!event.key.startsWith(\"Arrow\")) return;\n // Arrows drive the wheel here, so they must not also scroll the page.\n event.preventDefault();\n onKey(node, event.key);\n }}\n onFocusCapture={() => onFocusNode(node.id)}\n onBlurCapture={() => onFocusNode(null)}\n onPointerEnter={(event) => {\n if (hover.enter(event)) onHover(node.id);\n }}\n onPointerLeave={(event) => {\n if (hover.leave(event)) onHover(null);\n }}\n onPointerDown={(event) => {\n tap.start(event, isPinned);\n }}\n onPointerCancel={tap.drop}\n // Click, not pointerdown: a tap focuses the button first, and unpinning\n // has to also drop that focus or the flag stays lit.\n onClick={(event) => {\n const gesture = tap.take();\n // A hovering pointer lit the flag on its way in and puts it out on the\n // way past; only a gesture without a hover pins one.\n if (!gesture || gesture.pointerType === \"mouse\") return;\n onToggle(node.id);\n if (gesture.state) event.currentTarget.blur();\n }}\n // ring-foreground, not the ring token: --ring is a 10% white hairline\n // that disappears over a flag. Focus has to be obvious.\n className=\"focus-visible:ring-foreground focus-visible:ring-offset-background block h-full w-full rounded-full outline-none focus-visible:ring-2 focus-visible:ring-offset-2\"\n />\n );\n\n return (\n <div\n className=\"absolute\"\n style={{\n left: pct(node.x - node.r),\n top: pct(node.y - node.r),\n width: size,\n height: size,\n }}\n >\n {/* Touch never opens a Tooltip, so those devices skip mounting one per\n flag and read the tapped label instead. */}\n {canHover ? (\n <Tooltip\n content={caption}\n side=\"top\"\n className=\"max-w-[20rem] text-center text-balance wrap-break-word whitespace-normal\"\n >\n {trigger}\n </Tooltip>\n ) : (\n trigger\n )}\n </div>\n );\n});\n\nexport function KnockoutWheel({ rounds, initialRound = 0, className }: KnockoutWheelProps) {\n const reduce = useReducedMotion();\n const canHover = useHoverCapable();\n const uid = useId().replace(/:/g, \"\");\n const ref = useRef<SVGSVGElement>(null);\n const stageRef = useRef<HTMLDivElement>(null);\n // 63 flags for a 32-team draw, and SVG <image> has no lazy attribute — so the\n // requests wait until the wheel is nearly on screen.\n const inView = useInView(ref, { once: true, margin: \"300px\" });\n // Hover, tap and focus are tracked apart. Sharing one slot let a stray mouse\n // move clear the isolation while a node still held focus, and a tap has to\n // outlive the pointerleave that a finger fires the moment it lifts.\n const [hovered, setHovered] = useState<string | null>(null);\n const [pinned, setPinned] = useState<string | null>(null);\n const [focused, setFocused] = useState<string | null>(null);\n const active = hovered ?? pinned ?? focused;\n\n // Everything downstream reads the trimmed catalog, so the kept round's own\n // teams become the rim and the sr-only list matches what's drawn.\n const visible = useMemo(() => {\n const from = Math.min(Math.max(initialRound, 0), Math.max(rounds.length - 1, 0));\n return from > 0 ? rounds.slice(from) : rounds;\n }, [rounds, initialRound]);\n\n const { nodes, links, champion } = useMemo(() => buildWheel(visible), [visible]);\n const winners = useMemo(() => championPath(visible), [visible]);\n const activeNode = useMemo(() => nodes.find((node) => node.id === active), [active, nodes]);\n // Pointing at one flag isolates that flag. Only at rest does the wheel fall\n // back to lighting the champion's whole run.\n const lit = useMemo(\n () => (activeNode ? new Set([activeNode.id]) : winners),\n [activeNode, winners],\n );\n\n // Stable identity, or every mark re-renders on each pointer move.\n const enter = useMemo(\n () =>\n reduce\n ? { duration: 0, opacity: { duration: 0 } }\n : { ...SPRING_PANEL, opacity: { duration: 0.24 } },\n [reduce],\n );\n\n // One transition object per ring, cached, so the ring-by-ring entrance delay\n // survives memoization instead of allocating 63 objects per render.\n const enterFor = useMemo(() => {\n const cache = new Map<number, object>();\n return (depth: number) => {\n const hit = cache.get(depth);\n if (hit) return hit;\n const value = { ...enter, delay: reduce ? 0 : depth * 0.06 };\n cache.set(depth, value);\n return value;\n };\n }, [enter, reduce]);\n\n // Tooltip is hover-only by design, so touch gets the same label anchored to\n // the tapped flag. It flips to the far side near the rim so it stays on stage.\n const tapped = canHover ? undefined : activeNode;\n const tapAbove = tapped ? tapped.y > CENTER : false;\n\n // Arrow keys follow the geometry: up walks toward the hub, down walks out to\n // a feeder, left/right go round the ring.\n const { ring, firstChild } = useMemo(() => {\n const byDepth = new Map<number, WheelNode[]>();\n const child = new Map<string, WheelNode>();\n for (const node of nodes) {\n const peers = byDepth.get(node.depth) ?? [];\n peers.push(node);\n byDepth.set(node.depth, peers);\n if (node.parentId && !child.has(node.parentId)) {\n child.set(node.parentId, node);\n }\n }\n for (const peers of byDepth.values()) {\n peers.sort((a, b) => a.angle - b.angle);\n }\n return { ring: byDepth, firstChild: child };\n }, [nodes]);\n\n const tabStop = activeNode?.id ?? nodes[0]?.id;\n\n // Stable callbacks so the memoized anchors don't re-render on every hover.\n const onKey = useCallback(\n (node: WheelNode, key: string) => {\n if (!key.startsWith(\"Arrow\")) return;\n const target =\n key === \"ArrowUp\"\n ? nodes.find((peer) => peer.id === node.parentId)\n : key === \"ArrowDown\"\n ? firstChild.get(node.id)\n : (() => {\n const peers = ring.get(node.depth) ?? [];\n if (peers.length < 2) return undefined;\n const at = peers.indexOf(node);\n const next = key === \"ArrowRight\" ? at + 1 : at - 1;\n return peers[(next + peers.length) % peers.length];\n })();\n if (!target) return;\n // Focus moves; the focus handler lights the node it lands on.\n document.getElementById(`${uid}-${target.id}`)?.focus();\n },\n [nodes, ring, firstChild, uid],\n );\n\n const onToggle = useCallback(\n (id: string) => setPinned((current) => (current === id ? null : id)),\n [],\n );\n\n // A tap on another flag hands the isolation over rather than ending it.\n const onFlag = useCallback(\n (target: Element) => Boolean(stageRef.current?.contains(target) && target.closest(\"button\")),\n [],\n );\n\n // A finger never leaves the flag it lit, so the isolation would hold for good\n // — and bare stage reports no pointer event of its own to end it. The next\n // pointerdown that isn't on a flag stands in for the pointer leaving; it is\n // consumed, since a wheel spanning the viewport makes tapping past it the\n // natural way out and there is no reason for that tap to do anything else.\n // Only a pinned flag arms this: a mouse ends its own hover, and the browser\n // drops focus on its own.\n const unpin = useCallback(() => {\n setPinned(null);\n const focus = document.activeElement;\n if (focus instanceof HTMLElement && stageRef.current?.contains(focus)) {\n focus.blur();\n }\n }, []);\n\n useDismiss(pinned !== null, unpin, null, {\n behavior: \"consume\",\n ignore: onFlag,\n });\n\n // Round · teams · score for a decided match; a rim node is just a team. A slot\n // whose team isn't known yet reads TBD, matching the shield drawn in its place.\n const captions = useMemo(\n () =>\n new Map(\n nodes.map((node) => [\n node.id,\n node.team == null\n ? \"TBD\"\n : node.round\n ? `${keepTogether(node.round)} · ${node.label}`\n : node.team.name,\n ]),\n ),\n [nodes],\n );\n\n return (\n <div className={cn(\"w-full max-w-full overflow-x-auto overscroll-x-contain\", className)}>\n {/* Below the min width the rim's marks collapse too small to tell apart or\n tap, so the wheel holds its size and pans instead. The floor is fixed,\n not rim-derived: node radius grows with depth, so a shallower draw has\n *smaller* marks and needs the width more, not less. */}\n <div ref={stageRef} className=\"relative mx-auto w-full max-w-[34rem] min-w-[32rem]\">\n <svg\n ref={ref}\n viewBox={`0 0 ${SIZE} ${SIZE}`}\n role=\"img\"\n aria-label={`Tournament wheel${champion ? `, won by ${champion.name}` : \"\"}`}\n className=\"h-auto w-full touch-manipulation\"\n >\n <defs>\n {/* Warm halo marking the champion. Kept faint: --warning is saturated\n enough that anything stronger drowns the connectors under it. */}\n <radialGradient id={`${uid}-glow`}>\n <stop offset=\"0%\" stopColor=\"var(--color-warning)\" stopOpacity=\"0.14\" />\n <stop offset=\"45%\" stopColor=\"var(--color-warning)\" stopOpacity=\"0.04\" />\n <stop offset=\"100%\" stopColor=\"var(--color-warning)\" stopOpacity=\"0\" />\n </radialGradient>\n </defs>\n\n {champion && (\n <circle cx={CENTER} cy={CENTER} r={OUTER_R * 0.62} fill={`url(#${uid}-glow)`} />\n )}\n\n {/* role=\"img\" on the svg prunes descendants from the accessibility tree,\n so the structure needs no aria-hidden of its own. */}\n <g>\n {links.map((link) => (\n <motion.path\n key={link.id}\n d={link.d}\n fill=\"none\"\n initial={reduce ? false : { opacity: 0 }}\n animate={{ opacity: 1 }}\n transition={{ duration: 0.3, delay: link.depth * 0.06 }}\n className=\"stroke-border-strong\"\n />\n ))}\n </g>\n\n {nodes.map((node) => (\n <WheelMark\n key={node.id}\n node={node}\n isLit={lit.has(node.id)}\n dimmed={lit.size > 0 && !lit.has(node.id)}\n loadFlag={inView}\n reduce={Boolean(reduce)}\n enter={enterFor(node.depth)}\n showTrophy={node.depth === 0 && champion != null}\n clipId={`${uid}-clip-${node.id}`}\n />\n ))}\n </svg>\n\n {/* An SVG <g> can't anchor a Tooltip, so each flag gets an invisible\n HTML hit area laid over it in percentage units, which track the\n wheel as it scales. */}\n {nodes.map((node) => (\n <WheelAnchor\n key={node.id}\n node={node}\n caption={captions.get(node.id) ?? \"\"}\n isTabStop={node.id === tabStop}\n isPinned={node.id === pinned}\n canHover={canHover}\n uid={uid}\n onHover={setHovered}\n onFocusNode={setFocused}\n onToggle={onToggle}\n onKey={onKey}\n />\n ))}\n\n {tapped && (\n <motion.p\n initial={reduce ? false : { opacity: 0, scale: 0.94 }}\n animate={{ opacity: 1, scale: 1 }}\n transition={reduce ? NO_TRANSITION : DIM_TRANSITION}\n style={{\n left: pct(tapped.x),\n top: pct(tapped.y + (tapAbove ? -tapped.r : tapped.r)),\n }}\n className={cn(\n \"border-border bg-background text-foreground pointer-events-none absolute z-10 w-max max-w-[min(18rem,80vw)] -translate-x-1/2 rounded-lg border px-2.5 py-1 text-center text-xs font-medium text-balance wrap-break-word shadow-lg\",\n tapAbove ? \"-translate-y-[calc(100%+8px)]\" : \"translate-y-2\",\n )}\n >\n {captions.get(tapped.id)}\n </motion.p>\n )}\n </div>\n\n {/* role=\"img\" prunes the svg's descendants, so every result is restated\n here for screen readers. */}\n {/* Named lists, not <section aria-label> — a named section is a landmark,\n and five of those would crowd real page landmarks. */}\n <div className=\"sr-only\">\n {visible\n .slice()\n .reverse()\n .map((round) => (\n <ul key={round.name} aria-label={round.name}>\n {round.matches.map((match) => (\n <li key={match.id}>{matchLabel(match)}</li>\n ))}\n </ul>\n ))}\n </div>\n </div>\n );\n}\n\n// ── Sample data ──────────────────────────────────────────────────────────────\n// A finished 32-team cup, here to demo the shape. Swap it for your own\n// tournament. Rounds run widest first and each holds half as many matches as the\n// one before it (16 → 8 → 4 → 2 → 1); `matches[k]` of a round is fed by matches\n// `2k` and `2k + 1` of the round before it, which is what pairs the branches.\n// Any draw works: pass fewer rounds for a smaller cup, give teams a `logo`\n// instead of a country `code`, or neither for initials. The knockout bracket\n// takes the same array, so one dataset feeds both fixture styles.\n\nexport const TEAMS = {\n spain: { name: \"Spain\", code: \"es\" },\n japan: { name: \"Japan\", code: \"jp\" },\n netherlands: { name: \"Netherlands\", code: \"nl\" },\n portugal: { name: \"Portugal\", code: \"pt\" },\n england: { name: \"England\", code: \"gb-eng\" },\n uruguay: { name: \"Uruguay\", code: \"uy\" },\n croatia: { name: \"Croatia\", code: \"hr\" },\n brazil: { name: \"Brazil\", code: \"br\" },\n france: { name: \"France\", code: \"fr\" },\n morocco: { name: \"Morocco\", code: \"ma\" },\n belgium: { name: \"Belgium\", code: \"be\" },\n italy: { name: \"Italy\", code: \"it\" },\n argentina: { name: \"Argentina\", code: \"ar\" },\n mexico: { name: \"Mexico\", code: \"mx\" },\n germany: { name: \"Germany\", code: \"de\" },\n norway: { name: \"Norway\", code: \"no\" },\n costaRica: { name: \"Costa Rica\", code: \"cr\" },\n serbia: { name: \"Serbia\", code: \"rs\" },\n ecuador: { name: \"Ecuador\", code: \"ec\" },\n ghana: { name: \"Ghana\", code: \"gh\" },\n wales: { name: \"Wales\", code: \"gb-wls\" },\n canada: { name: \"Canada\", code: \"ca\" },\n denmark: { name: \"Denmark\", code: \"dk\" },\n cameroon: { name: \"Cameroon\", code: \"cm\" },\n poland: { name: \"Poland\", code: \"pl\" },\n senegal: { name: \"Senegal\", code: \"sn\" },\n tunisia: { name: \"Tunisia\", code: \"tn\" },\n switzerland: { name: \"Switzerland\", code: \"ch\" },\n peru: { name: \"Peru\", code: \"pe\" },\n qatar: { name: \"Qatar\", code: \"qa\" },\n sweden: { name: \"Sweden\", code: \"se\" },\n austria: { name: \"Austria\", code: \"at\" },\n} satisfies Record<string, Team>;\n\nexport const ROUNDS: Round[] = [\n {\n name: \"Round of 32\",\n matches: [\n {\n id: \"w-r32-1\",\n home: { team: TEAMS.spain, score: 3 },\n away: { team: TEAMS.costaRica, score: 0 },\n winner: \"home\",\n },\n {\n id: \"w-r32-2\",\n home: { team: TEAMS.japan, score: 2 },\n away: { team: TEAMS.serbia, score: 1 },\n winner: \"home\",\n },\n {\n id: \"w-r32-3\",\n home: { team: TEAMS.netherlands, score: 2 },\n away: { team: TEAMS.ecuador, score: 0 },\n winner: \"home\",\n },\n {\n id: \"w-r32-4\",\n home: { team: TEAMS.ghana, score: 2 },\n away: { team: TEAMS.portugal, score: 3 },\n winner: \"away\",\n },\n {\n id: \"w-r32-5\",\n home: { team: TEAMS.england, score: 4 },\n away: { team: TEAMS.wales, score: 0 },\n winner: \"home\",\n },\n {\n id: \"w-r32-6\",\n home: { team: TEAMS.canada, score: 0 },\n away: { team: TEAMS.uruguay, score: 2 },\n winner: \"away\",\n },\n {\n id: \"w-r32-7\",\n home: { team: TEAMS.croatia, score: 1 },\n away: { team: TEAMS.denmark, score: 0 },\n winner: \"home\",\n },\n {\n id: \"w-r32-8\",\n home: { team: TEAMS.brazil, score: 3 },\n away: { team: TEAMS.cameroon, score: 1 },\n winner: \"home\",\n },\n {\n id: \"w-r32-9\",\n home: { team: TEAMS.france, score: 2 },\n away: { team: TEAMS.poland, score: 1 },\n winner: \"home\",\n },\n {\n id: \"w-r32-10\",\n home: { team: TEAMS.senegal, score: 0 },\n away: { team: TEAMS.morocco, score: 1 },\n winner: \"away\",\n },\n {\n id: \"w-r32-11\",\n home: { team: TEAMS.belgium, score: 2 },\n away: { team: TEAMS.tunisia, score: 0 },\n winner: \"home\",\n },\n {\n id: \"w-r32-12\",\n home: { team: TEAMS.switzerland, score: 1 },\n away: { team: TEAMS.italy, score: 3 },\n winner: \"away\",\n },\n {\n id: \"w-r32-13\",\n home: { team: TEAMS.argentina, score: 2 },\n away: { team: TEAMS.peru, score: 0 },\n winner: \"home\",\n },\n {\n id: \"w-r32-14\",\n home: { team: TEAMS.qatar, score: 0 },\n away: { team: TEAMS.mexico, score: 1 },\n winner: \"away\",\n },\n {\n id: \"w-r32-15\",\n home: { team: TEAMS.germany, score: 4 },\n away: { team: TEAMS.sweden, score: 2 },\n winner: \"home\",\n },\n {\n id: \"w-r32-16\",\n home: { team: TEAMS.austria, score: 1 },\n away: { team: TEAMS.norway, score: 2 },\n winner: \"away\",\n },\n ],\n },\n {\n name: \"Round of 16\",\n matches: [\n {\n id: \"w-r16-1\",\n home: { team: TEAMS.spain, score: 2 },\n away: { team: TEAMS.japan, score: 0 },\n winner: \"home\",\n },\n {\n id: \"w-r16-2\",\n home: { team: TEAMS.netherlands, score: 1 },\n away: { team: TEAMS.portugal, score: 3 },\n winner: \"away\",\n },\n {\n id: \"w-r16-3\",\n home: { team: TEAMS.england, score: 2 },\n away: { team: TEAMS.uruguay, score: 1 },\n winner: \"home\",\n },\n {\n id: \"w-r16-4\",\n home: { team: TEAMS.croatia, score: 0 },\n away: { team: TEAMS.brazil, score: 1 },\n winner: \"away\",\n },\n {\n id: \"w-r16-5\",\n home: { team: TEAMS.france, score: 3 },\n away: { team: TEAMS.morocco, score: 1 },\n winner: \"home\",\n },\n {\n id: \"w-r16-6\",\n home: { team: TEAMS.belgium, score: 1 },\n away: { team: TEAMS.italy, score: 2 },\n winner: \"away\",\n },\n {\n id: \"w-r16-7\",\n home: { team: TEAMS.argentina, score: 2 },\n away: { team: TEAMS.mexico, score: 0 },\n winner: \"home\",\n },\n {\n id: \"w-r16-8\",\n home: { team: TEAMS.germany, score: 1, penalties: 4 },\n away: { team: TEAMS.norway, score: 1, penalties: 2 },\n winner: \"home\",\n },\n ],\n },\n {\n name: \"Quarter-finals\",\n matches: [\n {\n id: \"w-qf-1\",\n home: { team: TEAMS.spain, score: 1 },\n away: { team: TEAMS.portugal, score: 0 },\n winner: \"home\",\n },\n {\n id: \"w-qf-2\",\n home: { team: TEAMS.england, score: 2 },\n away: { team: TEAMS.brazil, score: 3 },\n winner: \"away\",\n },\n {\n id: \"w-qf-3\",\n home: { team: TEAMS.france, score: 2 },\n away: { team: TEAMS.italy, score: 1 },\n winner: \"home\",\n },\n {\n id: \"w-qf-4\",\n home: { team: TEAMS.argentina, score: 3 },\n away: { team: TEAMS.germany, score: 1 },\n winner: \"home\",\n },\n ],\n },\n {\n name: \"Semi-finals\",\n matches: [\n {\n id: \"w-sf-1\",\n home: { team: TEAMS.spain, score: 2 },\n away: { team: TEAMS.brazil, score: 1 },\n winner: \"home\",\n },\n {\n id: \"w-sf-2\",\n home: { team: TEAMS.france, score: 0, penalties: 3 },\n away: { team: TEAMS.argentina, score: 0, penalties: 4 },\n winner: \"away\",\n },\n ],\n },\n {\n name: \"Final\",\n matches: [\n {\n id: \"w-f-1\",\n home: { team: TEAMS.spain, score: 2 },\n away: { team: TEAMS.argentina, score: 1 },\n winner: \"home\",\n },\n ],\n },\n];\n"],"mappings":";;;;;;;;;;;;;AAmEA,MAAM,OAAO;AACb,MAAM,SAAS,OAAO;AAEtB,MAAM,cAAc;AACpB,MAAM,cACJ;A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IAAI;GACJ,MAAM;IAAE,MAAM,MAAM;IAAQ,OAAO;IAAG,WAAW;GAAE;GACnD,MAAM;IAAE,MAAM,MAAM;IAAW,OAAO;IAAG,WAAW;GAAE;GACtD,QAAQ;EACV,CACF;CACF;CACA;EACE,MAAM;EACN,SAAS,CACP;GACE,IAAI;GACJ,MAAM;IAAE,MAAM,MAAM;IAAO,OAAO;GAAE;GACpC,MAAM;IAAE,MAAM,MAAM;IAAW,OAAO;GAAE;GACxC,QAAQ;EACV,CACF;CACF;AACF"}
1
+ {"version":3,"file":"knockout-wheel.js","names":[],"sources":["../../../src/components/motion/knockout-wheel.tsx"],"sourcesContent":["\"use client\";\n\nimport { type KeyboardEvent, memo, useCallback, useId, useMemo, useRef, useState } from \"react\";\nimport { Shield } from \"lucide-react\";\nimport { motion, useInView, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { useDismiss } from \"../../hooks/use-dismiss\";\nimport { useHoverCapable } from \"../../hooks/use-hover-capable\";\nimport { useHoverGesture } from \"../../hooks/use-hover-gesture\";\nimport { useTapGesture } from \"../../hooks/use-tap-gesture\";\nimport { SPRING_PANEL } from \"../../lib/ease\";\nimport { useMessages } from \"../../lib/i18n\";\nimport { Tooltip } from \"./tooltip\";\n\n/** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */\nexport const knockoutWheelMessages = {\n label: \"Tournament wheel\",\n labelWithChampion: \"Tournament wheel, won by {team}\",\n tbd: \"TBD\",\n versus: \"{home} v {away}\",\n result: \"{teams} · {home}–{away}\",\n resultPenalties: \"{teams} · {home}–{away} ({homePenalties}–{awayPenalties} pens)\",\n caption: \"{round} · {match}\",\n};\n\nexport type KnockoutWheelMessages = typeof knockoutWheelMessages;\n\ntype Translate = (\n key: keyof KnockoutWheelMessages,\n values?: Record<string, string | number>,\n) => string;\n\nexport type Team = {\n name: string;\n /**\n * Any square image URL - club crest, org mark, player photo. Wins over `code`.\n * Drawn as-is on the node's card-colored disc, so a transparent-background\n * mark inked for one theme disappears in the other: ship artwork that reads on\n * both, or pick the URL yourself from your theme state.\n */\n logo?: string;\n /** ISO 3166-1 alpha-2 code, loaded from flagcdn.com (England is gb-eng). Used when `logo` is absent. */\n code?: string;\n};\n\nexport type MatchSide = {\n team: Team | null;\n score: number | null;\n /** Present on both sides to render shootout scores - 1 (3). */\n penalties?: number | null;\n};\n\n/** Structurally compatible with the knockout bracket's Match, minus the fields\n * the wheel never draws (date, time, status). */\nexport type Match = {\n /** Unique key for the match's node on the wheel. */\n id: string;\n /** First side: its team and score. Feeds from match `2k` of the round before. */\n home: MatchSide;\n /** Second side: its team and score. Feeds from match `2k + 1` of the round before. */\n away: MatchSide;\n /** Side that went through; its team fills the next ring. Unset while undecided. */\n winner?: \"home\" | \"away\";\n};\n\nexport type Round = {\n /** Read out with the match in tooltips and the screen-reader list. */\n name: string;\n /** The round's matches, in draw order; half as many as the round before. */\n matches: Match[];\n};\n\nexport interface KnockoutWheelProps {\n /**\n * The whole draw, ordered widest round first - the same array the knockout\n * bracket takes. Any single-elimination tournament fits: each round holds half\n * the matches of the one before it (16 → 8 → 4 → 2 → 1) and `rounds[r].matches[k]`\n * is fed by matches `2k` and `2k + 1` of the round before it. Two rounds are\n * enough; the wheel grows a ring per round and sizes itself to the rim.\n */\n rounds: Round[];\n /**\n * Index of the outermost round to draw. Earlier rounds are dropped and the\n * kept round's own teams become the rim, so `1` on a 32-team draw opens at the\n * Round of 16. Defaults to 0 (the whole tree); clamped to the valid range.\n */\n initialRound?: number;\n /** Classes merged onto the root scroll container. */\n className?: string;\n /** Override any built-in string. */\n labels?: Partial<KnockoutWheelMessages>;\n}\n\nconst SIZE = 760;\nconst CENTER = SIZE / 2;\n// Solid trophy glyph drawn in a 24-unit box.\nconst TROPHY_SIZE = 24;\nconst TROPHY_PATH =\n \"M5 1h12v3h3a2 2 0 0 1 2 2c0 3.3-2.2 5.6-5.2 6A6 6 0 0 1 12 15a6 6 0 0 1-4.8-2.9C4.2 11.6 2 9.3 2 6a2 2 0 0 1 2-2h1V1Zm0 5H4c0 1.9 1.1 3.2 2.6 3.7A12 12 0 0 1 5 6Zm14 0h-1a12 12 0 0 1-1.6 3.7C17.9 9.2 19 7.9 19 6ZM9 16.5h6V19h2.5v2h-11v-2H9v-2.5Z\";\n// Clears the hub's top edge. The hub's two feeders sit on the horizontal, so\n// the space directly above it is always free.\nconst TROPHY_GAP = 6;\n// Outermost ring. The remaining 62px of the box absorbs the largest node plus\n// its ring stroke, so nothing clips at the viewBox edge.\nconst OUTER_R = 318;\nconst HUB_R = 34;\n// Nodes grow outward so the crowded outer ring still reads at small sizes.\nconst NODE_MIN = 14.2;\nconst NODE_STEP = 2.2;\n// Initials floor, in viewBox units. The stage never goes below 32rem against a\n// 760-unit box (scale ~0.674), so 15 units is ~10px on screen - under that, two\n// letters are a smudge. `node.r * 0.8` alone puts the inner ring at 7.6px.\nconst INITIALS_MIN = 15;\n// Siblings pull slightly toward their parent, opening a lane between subtrees.\nconst SIBLING_GAP = 0.9;\n// Puts the hub's two feeders on the horizontal, where there's room for them.\nconst HUB_ANGLE = 90;\n\n// Module scope so the memoized marks keep a stable transition identity.\nconst DIM_TRANSITION = { duration: 0.18 } as const;\nconst NO_TRANSITION = { duration: 0 } as const;\n\n// Math.sin/cos are implementation-defined down in the last digits, so the SSR\n// engine and the browser disagree and React reports a hydration mismatch on\n// every coordinate. Quantizing well below sub-pixel makes both agree exactly.\nconst quantize = (n: number) => Math.round(n * 1e3) / 1e3;\n\nconst polar = (radius: number, deg: number) => {\n const rad = (deg * Math.PI) / 180;\n return {\n x: quantize(CENTER + radius * Math.cos(rad)),\n y: quantize(CENTER + radius * Math.sin(rad)),\n };\n};\n\nconst point = (radius: number, deg: number) => {\n const { x, y } = polar(radius, deg);\n return `${x.toFixed(2)} ${y.toFixed(2)}`;\n};\n\n// Fixed precision so the server and client render byte-identical style strings.\n// Raw floats serialize differently across the two and trip a hydration mismatch.\nconst pct = (value: number) => `${((value / SIZE) * 100).toFixed(4)}%`;\n\ntype WheelNode = {\n id: string;\n parentId: string | null;\n depth: number;\n /** Position around the wheel, in degrees. Orders arrow-key navigation. */\n angle: number;\n x: number;\n y: number;\n r: number;\n team: Team | null;\n label: string;\n /** Round the node's match belongs to; null on the rim, which holds teams. */\n round: string | null;\n};\n\ntype WheelLink = {\n id: string;\n d: string;\n depth: number;\n};\n\n// Names and round labels are single ideas, so they wrap as a unit. Without this\n// \"Round of 16\" strands a lone \"16\" on the next line.\nconst keepTogether = (text: string) => text.replace(/ /g, \" \");\n\nconst teamName = (side: MatchSide, t: Translate) => keepTogether(side.team?.name ?? t(\"tbd\"));\n\n/** A `logo` is used as given; a country `code` loads a flag from flagcdn.com. */\nconst crestSrc = (team: Team) =>\n team.logo ?? (team.code ? `https://flagcdn.com/w80/${team.code}.png` : null);\n\n/** Two-letter stand-in when a team has no artwork - \"Real Madrid\" → RM.\n * Spread, not `word[0]`: an emoji or astral first character is a surrogate pair\n * and indexing it renders a replacement glyph. */\nconst initials = (name: string) =>\n name\n .split(/\\s+/)\n .slice(0, 2)\n .map((word) => [...word][0])\n .join(\"\")\n .toUpperCase();\n\n/** Teams · score, in the order they were played. The round is prepended by the\n * caller that has it, so the round list can reuse this without repeating it. */\nfunction matchLabel(match: Match, t: Translate) {\n const teams = t(\"versus\", {\n home: teamName(match.home, t),\n away: teamName(match.away, t),\n });\n if (match.home.score == null || match.away.score == null) return teams;\n const score = { teams, home: match.home.score, away: match.away.score };\n return match.home.penalties != null && match.away.penalties != null\n ? t(\"resultPenalties\", {\n ...score,\n homePenalties: match.home.penalties,\n awayPenalties: match.away.penalties,\n })\n : t(\"result\", score);\n}\n\n/** Walks the match tree from the final outward, laying every node on a ring and\n * splitting each parent's wedge between its two feeders. */\nfunction buildWheel(rounds: Round[], t: Translate) {\n const nodes: WheelNode[] = [];\n const links: WheelLink[] = [];\n const layers = rounds.length;\n const ringR = (depth: number) => (depth / layers) * OUTER_R;\n const nodeR = (depth: number) => NODE_MIN + (depth - 1) * NODE_STEP;\n\n // An empty or malformed catalog renders nothing rather than throwing on the\n // way to the hub.\n const final = rounds[layers - 1]?.matches[0];\n if (!final) return { nodes, links, champion: null };\n\n const champion = final.winner ? final[final.winner].team : null;\n nodes.push({\n id: final.id,\n parentId: null,\n depth: 0,\n angle: HUB_ANGLE,\n x: CENTER,\n y: CENTER,\n r: HUB_R,\n team: champion,\n label: matchLabel(final, t),\n round: rounds[layers - 1].name,\n });\n\n // `roundIndex` is the round `match` belongs to; its two feeders live one round\n // out, or, past the first round, are the two teams that played it.\n const walk = (\n match: Match,\n roundIndex: number,\n index: number,\n parent: WheelNode,\n angle: number,\n wedge: number,\n ) => {\n const depth = parent.depth + 1;\n const radius = ringR(depth);\n const r = nodeR(depth);\n // The hub's two feeders sit opposite each other, so they get plain radial\n // lines; an arc between them would be a half circle.\n const offset = (wedge / 4) * (parent.depth === 0 ? 1 : SIBLING_GAP);\n const angles = [angle - offset, angle + offset];\n const sides = [\"home\", \"away\"] as const;\n\n const children = angles.map((childAngle, side) => {\n const { x, y } = polar(radius, childAngle);\n const feeder = roundIndex > 0 ? rounds[roundIndex - 1].matches[2 * index + side] : undefined;\n const node: WheelNode = feeder\n ? {\n id: feeder.id,\n parentId: parent.id,\n depth,\n angle: childAngle,\n x,\n y,\n r,\n team: feeder.winner ? feeder[feeder.winner].team : null,\n label: matchLabel(feeder, t),\n round: rounds[roundIndex - 1].name,\n }\n : {\n id: `${match.id}-${sides[side]}`,\n parentId: parent.id,\n depth,\n angle: childAngle,\n x,\n y,\n r,\n team: match[sides[side]].team,\n label: match[sides[side]].team?.name ?? t(\"tbd\"),\n round: null,\n };\n nodes.push(node);\n return { node, angle: childAngle, feeder };\n });\n\n if (parent.depth === 0) {\n for (const child of children) {\n links.push({\n id: `${parent.id}-${child.node.id}`,\n d: `M ${point(radius, child.angle)} L ${CENTER} ${CENTER}`,\n depth,\n });\n }\n } else {\n const midR = (ringR(parent.depth) + radius) / 2;\n links.push({\n id: `${parent.id}-arc`,\n d: `M ${point(radius, angles[0])} L ${point(midR, angles[0])} A ${midR} ${midR} 0 0 1 ${point(midR, angles[1])} L ${point(radius, angles[1])}`,\n depth,\n });\n links.push({\n id: `${parent.id}-stem`,\n d: `M ${point(midR, angle)} L ${point(ringR(parent.depth), angle)}`,\n depth,\n });\n }\n\n for (const [side, child] of children.entries()) {\n if (child.feeder) {\n walk(child.feeder, roundIndex - 1, 2 * index + side, child.node, child.angle, wedge / 2);\n }\n }\n };\n\n walk(final, layers - 1, 0, nodes[0], HUB_ANGLE, 360);\n return { nodes, links, champion };\n}\n\n/** Match ids from the hub down to the champion's first-round win. */\nfunction championPath(rounds: Round[]) {\n const path = new Set<string>();\n let index = 0;\n for (let r = rounds.length - 1; r >= 0; r--) {\n const match = rounds[r].matches[index];\n if (!match?.winner) return path;\n path.add(match.id);\n if (r === 0) path.add(`${match.id}-${match.winner}`);\n index = 2 * index + (match.winner === \"home\" ? 0 : 1);\n }\n return path;\n}\n\nfunction TeamMark({\n node,\n clipId,\n lit,\n dimmed,\n loadFlag,\n transition,\n}: {\n node: WheelNode;\n clipId: string;\n lit: boolean;\n dimmed: boolean;\n loadFlag: boolean;\n transition: object;\n}) {\n // The failed URL, not a boolean: a corrected logo on the same node should be\n // tried again rather than stay initials for the life of the wheel.\n const [failedSrc, setFailedSrc] = useState<string | null>(null);\n const resolved = node.team ? crestSrc(node.team) : null;\n const src = resolved === failedSrc ? null : resolved;\n const showFlag = src != null && loadFlag;\n // A square logo is fitted whole; a 4:3 flag is cropped to fill the disc.\n const box = node.team?.logo\n ? { w: node.r * 1.44, h: node.r * 1.44, fit: \"xMidYMid meet\" }\n : { w: node.r * 2.68, h: node.r * 2, fit: \"xMidYMid slice\" };\n // Dimming rides on the mark itself rather than a scrim tinted with the page\n // background, so the wheel recedes correctly on any surface it's dropped on.\n const fade = { opacity: dimmed ? 0.38 : 1 };\n\n return (\n <>\n {/* Stays opaque at every state: links are routed underneath and would\n otherwise read straight through the flag. */}\n <circle cx={node.x} cy={node.y} r={node.r} className=\"fill-card\" />\n {showFlag && node.team ? (\n <>\n <clipPath id={clipId}>\n <circle cx={node.x} cy={node.y} r={node.r} />\n </clipPath>\n {/* Plain <image> - flags from flagcdn.com, logos from wherever you host\n them. A 4:3 flag is cropped to fill the disc; a logo is fitted whole\n inside it, since a crest cropped to a circle loses its shape. */}\n <motion.image\n href={src}\n x={node.x - box.w / 2}\n y={node.y - box.h / 2}\n width={box.w}\n height={box.h}\n clipPath={`url(#${clipId})`}\n preserveAspectRatio={box.fit}\n initial={false}\n animate={fade}\n transition={transition}\n onError={() => setFailedSrc(src)}\n />\n </>\n ) : node.team ? (\n // No artwork on this team - initials keep the ring readable.\n <motion.text\n x={node.x}\n y={node.y}\n textAnchor=\"middle\"\n dominantBaseline=\"central\"\n fontSize={Math.max(node.r * 0.8, INITIALS_MIN)}\n initial={false}\n animate={fade}\n transition={transition}\n className=\"fill-muted-foreground font-medium\"\n >\n {initials(node.team.name)}\n </motion.text>\n ) : (\n // Same shield the knockout bracket uses for a TBD slot, so an\n // undecided place reads identically across both fixture styles.\n <motion.g initial={false} animate={fade} transition={transition}>\n <Shield\n x={node.x - node.r * 0.7}\n y={node.y - node.r * 0.7}\n width={node.r * 1.4}\n height={node.r * 1.4}\n className=\"text-muted-foreground/50 fill-current\"\n />\n </motion.g>\n )}\n <circle\n cx={node.x}\n cy={node.y}\n r={node.r}\n fill=\"none\"\n strokeWidth={lit ? 2 : 1}\n className={lit ? \"stroke-foreground\" : \"stroke-border\"}\n />\n </>\n );\n}\n\n/** Memoized so pointing at one flag re-renders two marks, not all 63. */\nconst WheelMark = memo(function WheelMark({\n node,\n isLit,\n dimmed,\n loadFlag,\n reduce,\n enter,\n showTrophy,\n clipId,\n}: {\n node: WheelNode;\n isLit: boolean;\n dimmed: boolean;\n loadFlag: boolean;\n reduce: boolean;\n enter: object;\n showTrophy: boolean;\n clipId: string;\n}) {\n return (\n <motion.g\n initial={reduce ? false : { opacity: 0, scale: 0.6 }}\n animate={{ opacity: 1, scale: 1 }}\n transition={enter}\n style={{ transformOrigin: `${node.x}px ${node.y}px` }}\n >\n {showTrophy && (\n <g\n transform={`translate(${CENTER - TROPHY_SIZE / 2}, ${CENTER - HUB_R - TROPHY_GAP - TROPHY_SIZE})`}\n >\n <path d={TROPHY_PATH} className=\"fill-warning\" />\n </g>\n )}\n <TeamMark\n node={node}\n clipId={clipId}\n lit={isLit}\n dimmed={dimmed}\n loadFlag={loadFlag}\n transition={reduce ? NO_TRANSITION : DIM_TRANSITION}\n />\n </motion.g>\n );\n});\n\n/** Invisible hit area over one flag: hover, tap, focus and arrow keys. */\nconst WheelAnchor = memo(function WheelAnchor({\n node,\n caption,\n isTabStop,\n isPinned,\n canHover,\n uid,\n onHover,\n onFocusNode,\n onToggle,\n onKey,\n}: {\n node: WheelNode;\n caption: string;\n isTabStop: boolean;\n isPinned: boolean;\n canHover: boolean;\n uid: string;\n onHover: (id: string | null) => void;\n onFocusNode: (id: string | null) => void;\n onToggle: (id: string) => void;\n onKey: (node: WheelNode, key: string) => void;\n}) {\n const size = pct(node.r * 2);\n // Capture-phase focus props, so a Tooltip cloning the child cannot overwrite\n // them. Both interaction paths are always attached: iPadOS answers the hover\n // query with true for a finger, so hanging the tap path off \"cannot hover\"\n // left it unreachable on the very device it was written for. The event says\n // which input arrived.\n const tap = useTapGesture<boolean>();\n const hover = useHoverGesture();\n const trigger = (\n <button\n type=\"button\"\n id={`${uid}-${node.id}`}\n tabIndex={isTabStop ? 0 : -1}\n aria-label={caption}\n onKeyDown={(event: KeyboardEvent) => {\n // A key press starts a keyboard activation, which never had a pointer\n // behind it: a gesture the platform took away must not be read as the\n // tap behind the click this press synthesizes.\n tap.drop();\n if (!event.key.startsWith(\"Arrow\")) return;\n // Arrows drive the wheel here, so they must not also scroll the page.\n event.preventDefault();\n onKey(node, event.key);\n }}\n onFocusCapture={() => onFocusNode(node.id)}\n onBlurCapture={() => onFocusNode(null)}\n onPointerEnter={(event) => {\n if (hover.enter(event)) onHover(node.id);\n }}\n onPointerLeave={(event) => {\n if (hover.leave(event)) onHover(null);\n }}\n onPointerDown={(event) => {\n tap.start(event, isPinned);\n }}\n onPointerCancel={tap.drop}\n // Click, not pointerdown: a tap focuses the button first, and unpinning\n // has to also drop that focus or the flag stays lit.\n onClick={(event) => {\n const gesture = tap.take();\n // A hovering pointer lit the flag on its way in and puts it out on the\n // way past; only a gesture without a hover pins one.\n if (!gesture || gesture.pointerType === \"mouse\") return;\n onToggle(node.id);\n if (gesture.state) event.currentTarget.blur();\n }}\n // ring-foreground, not the ring token: --ring is a 10% white hairline\n // that disappears over a flag. Focus has to be obvious.\n className=\"focus-visible:ring-foreground focus-visible:ring-offset-background block h-full w-full rounded-full outline-none focus-visible:ring-2 focus-visible:ring-offset-2\"\n />\n );\n\n return (\n <div\n className=\"absolute\"\n style={{\n left: pct(node.x - node.r),\n top: pct(node.y - node.r),\n width: size,\n height: size,\n }}\n >\n {/* Touch never opens a Tooltip, so those devices skip mounting one per\n flag and read the tapped label instead. */}\n {canHover ? (\n <Tooltip\n content={caption}\n side=\"top\"\n className=\"max-w-[20rem] text-center text-balance break-words whitespace-normal\"\n >\n {trigger}\n </Tooltip>\n ) : (\n trigger\n )}\n </div>\n );\n});\n\nexport function KnockoutWheel({ rounds, initialRound = 0, className, labels }: KnockoutWheelProps) {\n const t = useMessages(\"knockoutWheel\", knockoutWheelMessages, labels);\n const reduce = useReducedMotion();\n const canHover = useHoverCapable();\n const uid = useId().replace(/:/g, \"\");\n const ref = useRef<SVGSVGElement>(null);\n const stageRef = useRef<HTMLDivElement>(null);\n // 63 flags for a 32-team draw, and SVG <image> has no lazy attribute - so the\n // requests wait until the wheel is nearly on screen.\n const inView = useInView(ref, { once: true, margin: \"300px\" });\n // Hover, tap and focus are tracked apart. Sharing one slot let a stray mouse\n // move clear the isolation while a node still held focus, and a tap has to\n // outlive the pointerleave that a finger fires the moment it lifts.\n const [hovered, setHovered] = useState<string | null>(null);\n const [pinned, setPinned] = useState<string | null>(null);\n const [focused, setFocused] = useState<string | null>(null);\n const active = hovered ?? pinned ?? focused;\n\n // Everything downstream reads the trimmed catalog, so the kept round's own\n // teams become the rim and the sr-only list matches what's drawn.\n const visible = useMemo(() => {\n const from = Math.min(Math.max(initialRound, 0), Math.max(rounds.length - 1, 0));\n return from > 0 ? rounds.slice(from) : rounds;\n }, [rounds, initialRound]);\n\n const { nodes, links, champion } = useMemo(() => buildWheel(visible, t), [visible, t]);\n const winners = useMemo(() => championPath(visible), [visible]);\n const activeNode = useMemo(() => nodes.find((node) => node.id === active), [active, nodes]);\n // Pointing at one flag isolates that flag. Only at rest does the wheel fall\n // back to lighting the champion's whole run.\n const lit = useMemo(\n () => (activeNode ? new Set([activeNode.id]) : winners),\n [activeNode, winners],\n );\n\n // Stable identity, or every mark re-renders on each pointer move.\n const enter = useMemo(\n () =>\n reduce\n ? { duration: 0, opacity: { duration: 0 } }\n : { ...SPRING_PANEL, opacity: { duration: 0.24 } },\n [reduce],\n );\n\n // One transition object per ring, cached, so the ring-by-ring entrance delay\n // survives memoization instead of allocating 63 objects per render.\n const enterFor = useMemo(() => {\n const cache = new Map<number, object>();\n return (depth: number) => {\n const hit = cache.get(depth);\n if (hit) return hit;\n const value = { ...enter, delay: reduce ? 0 : depth * 0.06 };\n cache.set(depth, value);\n return value;\n };\n }, [enter, reduce]);\n\n // Tooltip is hover-only by design, so touch gets the same label anchored to\n // the tapped flag. It flips to the far side near the rim so it stays on stage.\n const tapped = canHover ? undefined : activeNode;\n const tapAbove = tapped ? tapped.y > CENTER : false;\n\n // Arrow keys follow the geometry: up walks toward the hub, down walks out to\n // a feeder, left/right go round the ring.\n const { ring, firstChild } = useMemo(() => {\n const byDepth = new Map<number, WheelNode[]>();\n const child = new Map<string, WheelNode>();\n for (const node of nodes) {\n const peers = byDepth.get(node.depth) ?? [];\n peers.push(node);\n byDepth.set(node.depth, peers);\n if (node.parentId && !child.has(node.parentId)) {\n child.set(node.parentId, node);\n }\n }\n for (const peers of byDepth.values()) {\n peers.sort((a, b) => a.angle - b.angle);\n }\n return { ring: byDepth, firstChild: child };\n }, [nodes]);\n\n const tabStop = activeNode?.id ?? nodes[0]?.id;\n\n // Stable callbacks so the memoized anchors don't re-render on every hover.\n const onKey = useCallback(\n (node: WheelNode, key: string) => {\n if (!key.startsWith(\"Arrow\")) return;\n const target =\n key === \"ArrowUp\"\n ? nodes.find((peer) => peer.id === node.parentId)\n : key === \"ArrowDown\"\n ? firstChild.get(node.id)\n : (() => {\n const peers = ring.get(node.depth) ?? [];\n if (peers.length < 2) return undefined;\n const at = peers.indexOf(node);\n const next = key === \"ArrowRight\" ? at + 1 : at - 1;\n return peers[(next + peers.length) % peers.length];\n })();\n if (!target) return;\n // Focus moves; the focus handler lights the node it lands on.\n document.getElementById(`${uid}-${target.id}`)?.focus();\n },\n [nodes, ring, firstChild, uid],\n );\n\n const onToggle = useCallback(\n (id: string) => setPinned((current) => (current === id ? null : id)),\n [],\n );\n\n // A tap on another flag hands the isolation over rather than ending it.\n const onFlag = useCallback(\n (target: Element) => Boolean(stageRef.current?.contains(target) && target.closest(\"button\")),\n [],\n );\n\n // A finger never leaves the flag it lit, so the isolation would hold for good\n // - and bare stage reports no pointer event of its own to end it. The next\n // pointerdown that isn't on a flag stands in for the pointer leaving; it is\n // consumed, since a wheel spanning the viewport makes tapping past it the\n // natural way out and there is no reason for that tap to do anything else.\n // Only a pinned flag arms this: a mouse ends its own hover, and the browser\n // drops focus on its own.\n const unpin = useCallback(() => {\n setPinned(null);\n const focus = document.activeElement;\n if (focus instanceof HTMLElement && stageRef.current?.contains(focus)) {\n focus.blur();\n }\n }, []);\n\n useDismiss(pinned !== null, unpin, null, {\n behavior: \"consume\",\n ignore: onFlag,\n });\n\n // Round · teams · score for a decided match; a rim node is just a team. A slot\n // whose team isn't known yet reads TBD, matching the shield drawn in its place.\n const captions = useMemo(\n () =>\n new Map(\n nodes.map((node) => [\n node.id,\n node.team == null\n ? t(\"tbd\")\n : node.round\n ? t(\"caption\", { round: keepTogether(node.round), match: node.label })\n : node.team.name,\n ]),\n ),\n [nodes, t],\n );\n\n return (\n <div className={cn(\"w-full max-w-full overflow-x-auto overscroll-x-contain\", className)}>\n {/* Below the min width the rim's marks collapse too small to tell apart or\n tap, so the wheel holds its size and pans instead. The floor is fixed,\n not rim-derived: node radius grows with depth, so a shallower draw has\n *smaller* marks and needs the width more, not less. */}\n <div ref={stageRef} className=\"relative mx-auto w-full max-w-[34rem] min-w-[32rem]\">\n <svg\n ref={ref}\n viewBox={`0 0 ${SIZE} ${SIZE}`}\n role=\"img\"\n aria-label={champion ? t(\"labelWithChampion\", { team: champion.name }) : t(\"label\")}\n className=\"h-auto w-full touch-manipulation\"\n >\n <defs>\n {/* Warm halo marking the champion. Kept faint: --warning is saturated\n enough that anything stronger drowns the connectors under it. */}\n <radialGradient id={`${uid}-glow`}>\n <stop offset=\"0%\" stopColor=\"var(--color-warning)\" stopOpacity=\"0.14\" />\n <stop offset=\"45%\" stopColor=\"var(--color-warning)\" stopOpacity=\"0.04\" />\n <stop offset=\"100%\" stopColor=\"var(--color-warning)\" stopOpacity=\"0\" />\n </radialGradient>\n </defs>\n\n {champion && (\n <circle cx={CENTER} cy={CENTER} r={OUTER_R * 0.62} fill={`url(#${uid}-glow)`} />\n )}\n\n {/* role=\"img\" on the svg prunes descendants from the accessibility tree,\n so the structure needs no aria-hidden of its own. */}\n <g>\n {links.map((link) => (\n <motion.path\n key={link.id}\n d={link.d}\n fill=\"none\"\n initial={reduce ? false : { opacity: 0 }}\n animate={{ opacity: 1 }}\n transition={{ duration: 0.3, delay: link.depth * 0.06 }}\n className=\"stroke-border-strong\"\n />\n ))}\n </g>\n\n {nodes.map((node) => (\n <WheelMark\n key={node.id}\n node={node}\n isLit={lit.has(node.id)}\n dimmed={lit.size > 0 && !lit.has(node.id)}\n loadFlag={inView}\n reduce={Boolean(reduce)}\n enter={enterFor(node.depth)}\n showTrophy={node.depth === 0 && champion != null}\n clipId={`${uid}-clip-${node.id}`}\n />\n ))}\n </svg>\n\n {/* An SVG <g> can't anchor a Tooltip, so each flag gets an invisible\n HTML hit area laid over it in percentage units, which track the\n wheel as it scales. */}\n {nodes.map((node) => (\n <WheelAnchor\n key={node.id}\n node={node}\n caption={captions.get(node.id) ?? \"\"}\n isTabStop={node.id === tabStop}\n isPinned={node.id === pinned}\n canHover={canHover}\n uid={uid}\n onHover={setHovered}\n onFocusNode={setFocused}\n onToggle={onToggle}\n onKey={onKey}\n />\n ))}\n\n {tapped && (\n <motion.p\n initial={reduce ? false : { opacity: 0, scale: 0.94 }}\n animate={{ opacity: 1, scale: 1 }}\n transition={reduce ? NO_TRANSITION : DIM_TRANSITION}\n style={{\n left: pct(tapped.x),\n top: pct(tapped.y + (tapAbove ? -tapped.r : tapped.r)),\n }}\n className={cn(\n \"border-border bg-background text-foreground pointer-events-none absolute z-10 w-max max-w-[min(18rem,80vw)] -translate-x-1/2 rounded-2xl border px-3 py-1 text-center text-xs font-medium text-balance break-words shadow-lg\",\n tapAbove ? \"-translate-y-[calc(100%+8px)]\" : \"translate-y-2\",\n )}\n >\n {captions.get(tapped.id)}\n </motion.p>\n )}\n </div>\n\n {/* role=\"img\" prunes the svg's descendants, so every result is restated\n here for screen readers. */}\n {/* Named lists, not <section aria-label> - a named section is a landmark,\n and five of those would crowd real page landmarks. */}\n <div className=\"sr-only\">\n {visible\n .slice()\n .reverse()\n .map((round) => (\n <ul key={round.name} aria-label={round.name}>\n {round.matches.map((match) => (\n <li key={match.id}>{matchLabel(match, t)}</li>\n ))}\n </ul>\n ))}\n </div>\n </div>\n );\n}\n\n// ── Sample data ──────────────────────────────────────────────────────────────\n// A finished 32-team cup, here to demo the shape. Swap it for your own\n// tournament. Rounds run widest first and each holds half as many matches as the\n// one before it (16 → 8 → 4 → 2 → 1); `matches[k]` of a round is fed by matches\n// `2k` and `2k + 1` of the round before it, which is what pairs the branches.\n// Any draw works: pass fewer rounds for a smaller cup, give teams a `logo`\n// instead of a country `code`, or neither for initials. The knockout bracket\n// takes the same array, so one dataset feeds both fixture styles.\n\nexport const TEAMS = {\n spain: { name: \"Spain\", code: \"es\" },\n japan: { name: \"Japan\", code: \"jp\" },\n netherlands: { name: \"Netherlands\", code: \"nl\" },\n portugal: { name: \"Portugal\", code: \"pt\" },\n england: { name: \"England\", code: \"gb-eng\" },\n uruguay: { name: \"Uruguay\", code: \"uy\" },\n croatia: { name: \"Croatia\", code: \"hr\" },\n brazil: { name: \"Brazil\", code: \"br\" },\n france: { name: \"France\", code: \"fr\" },\n morocco: { name: \"Morocco\", code: \"ma\" },\n belgium: { name: \"Belgium\", code: \"be\" },\n italy: { name: \"Italy\", code: \"it\" },\n argentina: { name: \"Argentina\", code: \"ar\" },\n mexico: { name: \"Mexico\", code: \"mx\" },\n germany: { name: \"Germany\", code: \"de\" },\n norway: { name: \"Norway\", code: \"no\" },\n costaRica: { name: \"Costa Rica\", code: \"cr\" },\n serbia: { name: \"Serbia\", code: \"rs\" },\n ecuador: { name: \"Ecuador\", code: \"ec\" },\n ghana: { name: \"Ghana\", code: \"gh\" },\n wales: { name: \"Wales\", code: \"gb-wls\" },\n canada: { name: \"Canada\", code: \"ca\" },\n denmark: { name: \"Denmark\", code: \"dk\" },\n cameroon: { name: \"Cameroon\", code: \"cm\" },\n poland: { name: \"Poland\", code: \"pl\" },\n senegal: { name: \"Senegal\", code: \"sn\" },\n tunisia: { name: \"Tunisia\", code: \"tn\" },\n switzerland: { name: \"Switzerland\", code: \"ch\" },\n peru: { name: \"Peru\", code: \"pe\" },\n qatar: { name: \"Qatar\", code: \"qa\" },\n sweden: { name: \"Sweden\", code: \"se\" },\n austria: { name: \"Austria\", code: \"at\" },\n} satisfies Record<string, Team>;\n\nexport const ROUNDS: Round[] = [\n {\n name: \"Round of 32\",\n matches: [\n {\n id: \"w-r32-1\",\n home: { team: TEAMS.spain, score: 3 },\n away: { team: TEAMS.costaRica, score: 0 },\n winner: \"home\",\n },\n {\n id: \"w-r32-2\",\n home: { team: TEAMS.japan, score: 2 },\n away: { team: TEAMS.serbia, score: 1 },\n winner: \"home\",\n },\n {\n id: \"w-r32-3\",\n home: { team: TEAMS.netherlands, score: 2 },\n away: { team: TEAMS.ecuador, score: 0 },\n winner: \"home\",\n },\n {\n id: \"w-r32-4\",\n home: { team: TEAMS.ghana, score: 2 },\n away: { team: TEAMS.portugal, score: 3 },\n winner: \"away\",\n },\n {\n id: \"w-r32-5\",\n home: { team: TEAMS.england, score: 4 },\n away: { team: TEAMS.wales, score: 0 },\n winner: \"home\",\n },\n {\n id: \"w-r32-6\",\n home: { team: TEAMS.canada, score: 0 },\n away: { team: TEAMS.uruguay, score: 2 },\n winner: \"away\",\n },\n {\n id: \"w-r32-7\",\n home: { team: TEAMS.croatia, score: 1 },\n away: { team: TEAMS.denmark, score: 0 },\n winner: \"home\",\n },\n {\n id: \"w-r32-8\",\n home: { team: TEAMS.brazil, score: 3 },\n away: { team: TEAMS.cameroon, score: 1 },\n winner: \"home\",\n },\n {\n id: \"w-r32-9\",\n home: { team: TEAMS.france, score: 2 },\n away: { team: TEAMS.poland, score: 1 },\n winner: \"home\",\n },\n {\n id: \"w-r32-10\",\n home: { team: TEAMS.senegal, score: 0 },\n away: { team: TEAMS.morocco, score: 1 },\n winner: \"away\",\n },\n {\n id: \"w-r32-11\",\n home: { team: TEAMS.belgium, score: 2 },\n away: { team: TEAMS.tunisia, score: 0 },\n winner: \"home\",\n },\n {\n id: \"w-r32-12\",\n home: { team: TEAMS.switzerland, score: 1 },\n away: { team: TEAMS.italy, score: 3 },\n winner: \"away\",\n },\n {\n id: \"w-r32-13\",\n home: { team: TEAMS.argentina, score: 2 },\n away: { team: TEAMS.peru, score: 0 },\n winner: \"home\",\n },\n {\n id: \"w-r32-14\",\n home: { team: TEAMS.qatar, score: 0 },\n away: { team: TEAMS.mexico, score: 1 },\n winner: \"away\",\n },\n {\n id: \"w-r32-15\",\n home: { team: TEAMS.germany, score: 4 },\n away: { team: TEAMS.sweden, score: 2 },\n winner: \"home\",\n },\n {\n id: \"w-r32-16\",\n home: { team: TEAMS.austria, score: 1 },\n away: { team: TEAMS.norway, score: 2 },\n winner: \"away\",\n },\n ],\n },\n {\n name: \"Round of 16\",\n matches: [\n {\n id: \"w-r16-1\",\n home: { team: TEAMS.spain, score: 2 },\n away: { team: TEAMS.japan, score: 0 },\n winner: \"home\",\n },\n {\n id: \"w-r16-2\",\n home: { team: TEAMS.netherlands, score: 1 },\n away: { team: TEAMS.portugal, score: 3 },\n winner: \"away\",\n },\n {\n id: \"w-r16-3\",\n home: { team: TEAMS.england, score: 2 },\n away: { team: TEAMS.uruguay, score: 1 },\n winner: \"home\",\n },\n {\n id: \"w-r16-4\",\n home: { team: TEAMS.croatia, score: 0 },\n away: { team: TEAMS.brazil, score: 1 },\n winner: \"away\",\n },\n {\n id: \"w-r16-5\",\n home: { team: TEAMS.france, score: 3 },\n away: { team: TEAMS.morocco, score: 1 },\n winner: \"home\",\n },\n {\n id: \"w-r16-6\",\n home: { team: TEAMS.belgium, score: 1 },\n away: { team: TEAMS.italy, score: 2 },\n winner: \"away\",\n },\n {\n id: \"w-r16-7\",\n home: { team: TEAMS.argentina, score: 2 },\n away: { team: TEAMS.mexico, score: 0 },\n winner: \"home\",\n },\n {\n id: \"w-r16-8\",\n home: { team: TEAMS.germany, score: 1, penalties: 4 },\n away: { team: TEAMS.norway, score: 1, penalties: 2 },\n winner: \"home\",\n },\n ],\n },\n {\n name: \"Quarter-finals\",\n matches: [\n {\n id: \"w-qf-1\",\n home: { team: TEAMS.spain, score: 1 },\n away: { team: TEAMS.portugal, score: 0 },\n winner: \"home\",\n },\n {\n id: \"w-qf-2\",\n home: { team: TEAMS.england, score: 2 },\n away: { team: TEAMS.brazil, score: 3 },\n winner: \"away\",\n },\n {\n id: \"w-qf-3\",\n home: { team: TEAMS.france, score: 2 },\n away: { team: TEAMS.italy, score: 1 },\n winner: \"home\",\n },\n {\n id: \"w-qf-4\",\n home: { team: TEAMS.argentina, score: 3 },\n away: { team: TEAMS.germany, score: 1 },\n winner: \"home\",\n },\n ],\n },\n {\n name: \"Semi-finals\",\n matches: [\n {\n id: \"w-sf-1\",\n home: { team: TEAMS.spain, score: 2 },\n away: { team: TEAMS.brazil, score: 1 },\n winner: \"home\",\n },\n {\n id: \"w-sf-2\",\n home: { team: TEAMS.france, score: 0, penalties: 3 },\n away: { team: TEAMS.argentina, score: 0, penalties: 4 },\n winner: \"away\",\n },\n ],\n },\n {\n name: \"Final\",\n matches: [\n {\n id: \"w-f-1\",\n home: { team: TEAMS.spain, score: 2 },\n away: { team: TEAMS.argentina, score: 1 },\n winner: \"home\",\n },\n ],\n },\n];\n"],"mappings":";;;;;;;;;;;;;;;AAgBA,MAAa,wBAAwB;CACnC,OAAO;CACP,mBAAmB;CACnB,KAAK;CACL,QAAQ;CACR,QAAQ;CACR,iBAAiB;CACjB,SAAS;AACX;AAsEA,MAAM,OAAO;AACb,MAAM,SAAS,OAAO;AAEtB,MAAM,cAAc;AACpB,MAAM,cACJ;AAMF,MAAM,UAAU;AAChB,MAAM,QAAQ;AAEd,MAAM,WAAW;AACjB,MAAM,YAAY;AAIlB,MAAM,eAAe;AAErB,MAAM,cAAc;AAEpB,MAAM,YAAY;AAGlB,MAAM,iBAAiB,EAAE,UAAU,IAAK;AACxC,MAAM,gBAAgB,EAAE,UAAU,EAAE;AAKpC,MAAM,YAAY,MAAc,KAAK,MAAM,IAAI,GAAG,IAAI;AAEtD,MAAM,SAAS,QAAgB,QAAgB;CAC7C,MAAM,MAAO,MAAM,KAAK,KAAM;CAC9B,OAAO;EACL,GAAG,SAAS,SAAS,SAAS,KAAK,IAAI,GAAG,CAAC;EAC3C,GAAG,SAAS,SAAS,SAAS,KAAK,IAAI,GAAG,CAAC;CAC7C;AACF;AAEA,MAAM,SAAS,QAAgB,QAAgB;CAC7C,MAAM,EAAE,GAAG,MAAM,MAAM,QAAQ,GAAG;CAClC,OAAO,GAAG,EAAE,QAAQ,CAAC,EAAE,G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,OAAO;GAAE;GACxC,QAAQ;EACV,CACF;CACF;AACF"}
@@ -0,0 +1,26 @@
1
+ import { ComponentPropsWithRef } from "react";
2
+ export declare const likeButtonMessages: {
3
+ like: string;
4
+ };
5
+ export type LikeButtonMessages = typeof likeButtonMessages;
6
+ export interface LikeButtonProps extends Omit<ComponentPropsWithRef<"button">, "children" | "onChange"> {
7
+ /** Whether the viewer has liked it, for controlled use. */
8
+ liked?: boolean;
9
+ /** Whether it starts liked when uncontrolled. Default: false */
10
+ defaultLiked?: boolean;
11
+ /** Called with the new state when the button is pressed. */
12
+ onLikedChange?: (liked: boolean) => void;
13
+ /** Likes from everyone else. The viewer's own like is added on top. */
14
+ count?: number;
15
+ /** Override any built-in string, e.g. for translation. */
16
+ labels?: Partial<LikeButtonMessages>;
17
+ /** Play a soft tap on like and unlike. Off by default; a `SoundProvider` can mute it app-wide. */
18
+ sound?: boolean;
19
+ }
20
+ /**
21
+ * A heart toggle. Liking dips the heart, blooms its fill out from the centre
22
+ * and throws a ring of sparks while the count rolls up; unliking drains the
23
+ * fill back to the centre.
24
+ */
25
+ export declare function LikeButton({ liked: likedProp, defaultLiked, onLikedChange, count, labels, sound, className, onClick, ...rest }: LikeButtonProps): import("react").JSX.Element;
26
+ //# sourceMappingURL=like-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"like-button.d.ts","names":[],"sources":["../../../src/components/motion/like-button.tsx"],"mappings":";qBAaa;;;YAID,4BAA4B;iBAEvB,wBACP,KAAK;;EAEb;;EAEA;;EAEA,iBAAiB;;EAEjB;;EAEA,SAAS,QAAQ;;EAEjB;;;;;;;wBA2Bc,aACd,OAAO,WACP,cACA,eACA,OACA,QACA,OACA,WACA,YACG,QACF,kCAAe,IAAA"}
@@ -0,0 +1,128 @@
1
+ "use client";
2
+ import { useState } from "react";
3
+ import { Heart } from "lucide-react";
4
+ import { motion, useReducedMotion } from "motion/react";
5
+ import { cn } from "@kumix/utils";
6
+ import { EASE_OUT, SPRING_PRESS } from "../../lib/ease.js";
7
+ import { useMessages } from "../../lib/i18n.js";
8
+ import { useSound } from "../../lib/sound.js";
9
+ import { tapSound } from "../../lib/sounds/tap.js";
10
+ import { DigitSwap } from "./digit-swap.js";
11
+ import { jsx, jsxs } from "react/jsx-runtime";
12
+ // src/components/motion/like-button.tsx
13
+ const likeButtonMessages = { like: "Like" };
14
+ const SPARKS = Array.from({ length: 8 }, (_, index) => {
15
+ const angle = index / 8 * Math.PI * 2 - Math.PI / 2;
16
+ const far = index % 2 === 0;
17
+ const distance = far ? 15 : 11;
18
+ return {
19
+ id: index,
20
+ x: Math.cos(angle) * distance,
21
+ y: Math.sin(angle) * distance,
22
+ size: far ? "size-1" : "size-[3px]",
23
+ delay: far ? .04 : .07
24
+ };
25
+ });
26
+ const BLOOM = {
27
+ duration: .32,
28
+ ease: EASE_OUT
29
+ };
30
+ const DRAIN = {
31
+ duration: .18,
32
+ ease: EASE_OUT
33
+ };
34
+ const SPARK = {
35
+ duration: .42,
36
+ ease: EASE_OUT
37
+ };
38
+ /**
39
+ * A heart toggle. Liking dips the heart, blooms its fill out from the centre
40
+ * and throws a ring of sparks while the count rolls up; unliking drains the
41
+ * fill back to the centre.
42
+ */
43
+ function LikeButton({ liked: likedProp, defaultLiked = false, onLikedChange, count, labels, sound = false, className, onClick, ...rest }) {
44
+ const t = useMessages("LikeButton", likeButtonMessages, labels);
45
+ const reduce = useReducedMotion();
46
+ const [internal, setInternal] = useState(defaultLiked);
47
+ const liked = likedProp ?? internal;
48
+ const [burst, setBurst] = useState(0);
49
+ const play = useSound(tapSound, { enabled: sound });
50
+ return /* @__PURE__ */ jsxs("button", {
51
+ type: "button",
52
+ "aria-pressed": liked,
53
+ "aria-label": t("like"),
54
+ onClick: (event) => {
55
+ onClick?.(event);
56
+ if (event.defaultPrevented) return;
57
+ const next = !liked;
58
+ play({ pitch: next ? 1.2 : .85 });
59
+ if (likedProp === void 0) setInternal(next);
60
+ if (next) setBurst((value) => value + 1);
61
+ onLikedChange?.(next);
62
+ },
63
+ className: cn("group inline-flex h-8 items-center gap-1.5 rounded-full px-2.5 text-sm tabular-nums transition-colors duration-200", "text-muted-foreground hover:bg-muted/60 hover:text-foreground", "focus-visible:ring-ring/50 focus-visible:ring-2 focus-visible:outline-none", "disabled:pointer-events-none disabled:opacity-50", liked && "text-rose-500 hover:text-rose-500", className),
64
+ ...rest,
65
+ children: [/* @__PURE__ */ jsxs("span", {
66
+ className: "relative inline-flex size-4 items-center justify-center",
67
+ children: [burst > 0 && !reduce ? /* @__PURE__ */ jsxs("span", {
68
+ "aria-hidden": "true",
69
+ className: "pointer-events-none absolute inset-0",
70
+ children: [/* @__PURE__ */ jsx(motion.span, {
71
+ className: "absolute inset-0 rounded-full border-2 border-rose-500/70",
72
+ initial: {
73
+ opacity: 1,
74
+ scale: .3
75
+ },
76
+ animate: {
77
+ opacity: 0,
78
+ scale: 1.9
79
+ },
80
+ transition: {
81
+ duration: .4,
82
+ ease: EASE_OUT
83
+ }
84
+ }), SPARKS.map((spark) => /* @__PURE__ */ jsx(motion.span, {
85
+ className: cn("absolute top-1/2 left-1/2 rounded-full bg-rose-500", spark.size),
86
+ style: { translate: "-50% -50%" },
87
+ initial: {
88
+ opacity: 0,
89
+ x: 0,
90
+ y: 0
91
+ },
92
+ animate: {
93
+ opacity: [
94
+ 0,
95
+ 1,
96
+ 0
97
+ ],
98
+ x: spark.x,
99
+ y: spark.y
100
+ },
101
+ transition: {
102
+ ...SPARK,
103
+ delay: spark.delay
104
+ }
105
+ }, spark.id))]
106
+ }, burst) : null, /* @__PURE__ */ jsxs(motion.span, {
107
+ "aria-hidden": "true",
108
+ className: "relative inline-flex",
109
+ initial: false,
110
+ animate: { scale: liked && !reduce ? [.7, 1] : 1 },
111
+ transition: SPRING_PRESS,
112
+ children: [/* @__PURE__ */ jsx(Heart, { className: "size-4" }), /* @__PURE__ */ jsx(motion.span, {
113
+ className: "absolute inset-0 inline-flex",
114
+ initial: false,
115
+ animate: { clipPath: liked ? "circle(75% at 50% 55%)" : "circle(0% at 50% 55%)" },
116
+ transition: reduce ? { duration: 0 } : liked ? BLOOM : DRAIN,
117
+ children: /* @__PURE__ */ jsx(Heart, { className: "size-4 fill-current" })
118
+ })]
119
+ })]
120
+ }), count === void 0 ? null : /* @__PURE__ */ jsx(DigitSwap, {
121
+ value: count + (liked ? 1 : 0),
122
+ direction: liked ? "up" : "down"
123
+ })]
124
+ });
125
+ }
126
+ export { LikeButton, likeButtonMessages };
127
+
128
+ //# sourceMappingURL=like-button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"like-button.js","names":[],"sources":["../../../src/components/motion/like-button.tsx"],"sourcesContent":["\"use client\";\n\nimport { type ComponentPropsWithRef, useState } from \"react\";\nimport { Heart } from \"lucide-react\";\nimport { motion, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_OUT, SPRING_PRESS } from \"../../lib/ease\";\nimport { useMessages } from \"../../lib/i18n\";\nimport { useSound } from \"../../lib/sound\";\nimport { tapSound } from \"../../lib/sounds/tap\";\nimport { DigitSwap } from \"./digit-swap\";\n\nexport const likeButtonMessages = {\n like: \"Like\",\n};\n\nexport type LikeButtonMessages = typeof likeButtonMessages;\n\nexport interface LikeButtonProps\n extends Omit<ComponentPropsWithRef<\"button\">, \"children\" | \"onChange\"> {\n /** Whether the viewer has liked it, for controlled use. */\n liked?: boolean;\n /** Whether it starts liked when uncontrolled. Default: false */\n defaultLiked?: boolean;\n /** Called with the new state when the button is pressed. */\n onLikedChange?: (liked: boolean) => void;\n /** Likes from everyone else. The viewer's own like is added on top. */\n count?: number;\n /** Override any built-in string, e.g. for translation. */\n labels?: Partial<LikeButtonMessages>;\n /** Play a soft tap on like and unlike. Off by default; a `SoundProvider` can mute it app-wide. */\n sound?: boolean;\n}\n\n// Eight sparks at even angles, alternating near and far so the burst reads as\n// a ring with depth rather than a flat star.\nconst SPARKS = Array.from({ length: 8 }, (_, index) => {\n const angle = (index / 8) * Math.PI * 2 - Math.PI / 2;\n const far = index % 2 === 0;\n const distance = far ? 15 : 11;\n return {\n id: index,\n x: Math.cos(angle) * distance,\n y: Math.sin(angle) * distance,\n size: far ? \"size-1\" : \"size-[3px]\",\n delay: far ? 0.04 : 0.07,\n };\n});\n\nconst BLOOM = { duration: 0.32, ease: EASE_OUT } as const;\nconst DRAIN = { duration: 0.18, ease: EASE_OUT } as const;\nconst SPARK = { duration: 0.42, ease: EASE_OUT } as const;\n\n/**\n * A heart toggle. Liking dips the heart, blooms its fill out from the centre\n * and throws a ring of sparks while the count rolls up; unliking drains the\n * fill back to the centre.\n */\nexport function LikeButton({\n liked: likedProp,\n defaultLiked = false,\n onLikedChange,\n count,\n labels,\n sound = false,\n className,\n onClick,\n ...rest\n}: LikeButtonProps) {\n const t = useMessages(\"LikeButton\", likeButtonMessages, labels);\n const reduce = useReducedMotion();\n const [internal, setInternal] = useState(defaultLiked);\n const liked = likedProp ?? internal;\n // Each like gets its own burst; 0 means none has played yet.\n const [burst, setBurst] = useState(0);\n const play = useSound(tapSound, { enabled: sound });\n\n return (\n <button\n type=\"button\"\n aria-pressed={liked}\n aria-label={t(\"like\")}\n onClick={(event) => {\n onClick?.(event);\n if (event.defaultPrevented) return;\n const next = !liked;\n play({ pitch: next ? 1.2 : 0.85 });\n if (likedProp === undefined) setInternal(next);\n if (next) setBurst((value) => value + 1);\n onLikedChange?.(next);\n }}\n className={cn(\n \"group inline-flex h-8 items-center gap-1.5 rounded-full px-2.5 text-sm tabular-nums transition-colors duration-200\",\n \"text-muted-foreground hover:bg-muted/60 hover:text-foreground\",\n \"focus-visible:ring-ring/50 focus-visible:ring-2 focus-visible:outline-none\",\n \"disabled:pointer-events-none disabled:opacity-50\",\n liked && \"text-rose-500 hover:text-rose-500\",\n className,\n )}\n {...rest}\n >\n <span className=\"relative inline-flex size-4 items-center justify-center\">\n {burst > 0 && !reduce ? (\n <span key={burst} aria-hidden=\"true\" className=\"pointer-events-none absolute inset-0\">\n <motion.span\n className=\"absolute inset-0 rounded-full border-2 border-rose-500/70\"\n initial={{ opacity: 1, scale: 0.3 }}\n animate={{ opacity: 0, scale: 1.9 }}\n transition={{ duration: 0.4, ease: EASE_OUT }}\n />\n {SPARKS.map((spark) => (\n <motion.span\n key={spark.id}\n className={cn(\"absolute top-1/2 left-1/2 rounded-full bg-rose-500\", spark.size)}\n style={{ translate: \"-50% -50%\" }}\n initial={{ opacity: 0, x: 0, y: 0 }}\n animate={{ opacity: [0, 1, 0], x: spark.x, y: spark.y }}\n transition={{ ...SPARK, delay: spark.delay }}\n />\n ))}\n </span>\n ) : null}\n <motion.span\n aria-hidden=\"true\"\n className=\"relative inline-flex\"\n // A quick dip on like, sprung back: the heart \"takes\" the press.\n // No remount, so the fill below keeps its own bloom.\n initial={false}\n animate={{ scale: liked && !reduce ? [0.7, 1] : 1 }}\n transition={SPRING_PRESS}\n >\n <Heart className=\"size-4\" />\n <motion.span\n className=\"absolute inset-0 inline-flex\"\n initial={false}\n animate={{ clipPath: liked ? \"circle(75% at 50% 55%)\" : \"circle(0% at 50% 55%)\" }}\n transition={reduce ? { duration: 0 } : liked ? BLOOM : DRAIN}\n >\n <Heart className=\"size-4 fill-current\" />\n </motion.span>\n </motion.span>\n </span>\n {count === undefined ? null : (\n <DigitSwap value={count + (liked ? 1 : 0)} direction={liked ? \"up\" : \"down\"} />\n )}\n </button>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAaA,MAAa,qBAAqB,EAChC,MAAM,OACR;AAsBA,MAAM,SAAS,MAAM,KAAK,EAAE,QAAQ,EAAE,IAAI,GAAG,UAAU;CACrD,MAAM,QAAS,QAAQ,IAAK,KAAK,KAAK,IAAI,KAAK,KAAK;CACpD,MAAM,MAAM,QAAQ,MAAM;CAC1B,MAAM,WAAW,MAAM,KAAK;CAC5B,OAAO;EACL,IAAI;EACJ,GAAG,KAAK,IAAI,KAAK,IAAI;EACrB,GAAG,KAAK,IAAI,KAAK,IAAI;EACrB,MAAM,MAAM,WA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OAAO,KAAK,UACX,oBAAC,OAAO,MAAR;KAEE,WAAW,GAAG,sDAAsD,MAAM,IAAI;KAC9E,OAAO,EAAE,WAAW,YAAY;KAChC,SAAS;MAAE,SAAS;MAAG,GAAG;MAAG,GAAG;KAAE;KAClC,SAAS;MAAE,SAAS;OAAC;OAAG;OAAG;MAAC;MAAG,GAAG,MAAM;MAAG,GAAG,MAAM;KAAE;KACtD,YAAY;MAAE,GAAG;MAAO,OAAO,MAAM;KAAM;IAC5C,GANM,MAAM,EAMZ,CACF,CACG;GAjBK,GAAA,KAiBL,IACJ,MACJ,qBAAC,OAAO,MAAR;IACE,eAAY;IACZ,WAAU;IAGV,SAAS;IACT,SAAS,EAAE,OAAO,SAAS,CAAC,SAAS,CAAC,IAAK,CAAC,IAAI,EAAE;IAClD,YAAY;IAPd,UAAA,CASE,oBAAC,OAAD,EAAO,WAAU,SAAU,CAAA,GAC3B,oBAAC,OAAO,MAAR;KACE,WAAU;KACV,SAAS;KACT,SAAS,EAAE,UAAU,QAAQ,2BAA2B,wBAAwB;KAChF,YAAY,SAAS,EAAE,UAAU,EAAE,IAAI,QAAQ,QAAQ;KAEvD,UAAA,oBAAC,OAAD,EAAO,WAAU,sBAAuB,CAAA;IAC7B,CAAA,CACF;GACT,CAAA,CAAA;EACL,CAAA,GAAA,UAAU,KAAA,IAAY,OACrB,oBAAC,WAAD;GAAW,OAAO,SAAS,QAAQ,IAAI;GAAI,WAAW,QAAQ,OAAO;EAAS,CAAA,CAE1E;;AAEZ"}
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { EASE_OUT } from "../../lib/ease.js";
3
2
  import { createContext, forwardRef, useCallback, useContext, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
3
+ import { useReducedMotion } from "motion/react";
4
4
  import { cn } from "@kumix/utils";
5
+ import { EASE_OUT } from "../../lib/ease.js";
5
6
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
6
- import { useReducedMotion } from "motion/react";
7
7
  // src/components/motion/liquid.tsx
8
8
  const LiquidContext = createContext(null);
9
9
  function useLiquidContext() {
@@ -127,7 +127,7 @@ const Liquid = forwardRef(function Liquid({ blur = 6, contrast = 18, fill = "var
127
127
  function mix(from, to, progress) {
128
128
  return from + (to - from) * progress;
129
129
  }
130
- function cubicBezier$1([x1, y1, x2, y2]) {
130
+ function cubicBezier([x1, y1, x2, y2]) {
131
131
  return (progress) => {
132
132
  if (progress <= 0) return 0;
133
133
  if (progress >= 1) return 1;
@@ -193,7 +193,7 @@ function LiquidItem({ children, x, y, width, height, radius = Math.min(width, he
193
193
  write(target);
194
194
  return;
195
195
  }
196
- const easing = cubicBezier$1([
196
+ const easing = cubicBezier([
197
197
  x1,
198
198
  y1,
199
199
  x2,
@@ -1 +1 @@
1
- {"version":3,"file":"liquid.js","names":["cubicBezier"],"sources":["../../../src/components/motion/liquid.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n createContext,\n forwardRef,\n type HTMLAttributes,\n type ReactNode,\n type Ref,\n useCallback,\n useContext,\n useId,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport { useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_OUT } from \"../../lib/ease\";\n\ntype LiquidContextValue = {\n getRoot: () => HTMLDivElement | null;\n getPortal: () => SVGGElement | null;\n};\n\nconst LiquidContext = createContext<LiquidContextValue | null>(null);\n\nfunction useLiquidContext() {\n const context = useContext(LiquidContext);\n if (!context) throw new Error(\"LiquidItem must be used within <Liquid>\");\n return context;\n}\n\nexport type LiquidEase = readonly [number, number, number, number];\n\nexport type LiquidTransition = {\n duration?: number;\n ease?: LiquidEase;\n};\n\nexport interface LiquidProps extends HTMLAttributes<HTMLDivElement> {\n blur?: number;\n contrast?: number;\n fill?: string;\n edgeColor?: string;\n edgeOpacity?: number;\n edgeWidth?: number;\n filterPadding?: number;\n}\n\nexport const Liquid = forwardRef<HTMLDivElement, LiquidProps>(function Liquid(\n {\n blur = 6,\n contrast = 18,\n fill = \"var(--background)\",\n edgeColor = \"var(--foreground)\",\n edgeOpacity = 0.08,\n edgeWidth = 1,\n filterPadding = 24,\n className,\n style,\n children,\n ...props\n },\n forwardedRef: Ref<HTMLDivElement>,\n) {\n const rootRef = useRef<HTMLDivElement>(null);\n const portalRef = useRef<SVGGElement>(null);\n const [size, setSize] = useState({ width: 0, height: 0 });\n const filterId = `liquid-${useId().replace(/[^a-zA-Z0-9_-]/g, \"\")}`;\n const intercept = Math.round((0.5 - contrast * (5 / 12)) * 100) / 100;\n const padding = Math.ceil(blur * 3 + filterPadding);\n\n const setRootRef = useCallback(\n (node: HTMLDivElement | null) => {\n rootRef.current = node;\n if (typeof forwardedRef === \"function\") forwardedRef(node);\n else if (forwardedRef) forwardedRef.current = node;\n },\n [forwardedRef],\n );\n\n useLayoutEffect(() => {\n const root = rootRef.current;\n if (!root) return;\n\n const measure = () => {\n const next = {\n width: root.offsetWidth,\n height: root.offsetHeight,\n };\n setSize((current) =>\n current.width === next.width && current.height === next.height ? current : next,\n );\n };\n\n measure();\n const observer = new ResizeObserver(measure);\n observer.observe(root);\n return () => observer.disconnect();\n }, []);\n\n const context = useMemo<LiquidContextValue>(\n () => ({\n getRoot: () => rootRef.current,\n getPortal: () => portalRef.current,\n }),\n [],\n );\n\n return (\n <div {...props} ref={setRootRef} className={cn(\"relative isolate\", className)} style={style}>\n <svg\n aria-hidden=\"true\"\n focusable=\"false\"\n className=\"pointer-events-none absolute inset-0 z-0 size-full overflow-visible\"\n >\n <defs>\n <filter\n id={filterId}\n x={-padding}\n y={-padding}\n width={size.width + padding * 2}\n height={size.height + padding * 2}\n filterUnits=\"userSpaceOnUse\"\n colorInterpolationFilters=\"sRGB\"\n >\n <feGaussianBlur in=\"SourceGraphic\" stdDeviation={blur} result=\"blur\" />\n <feColorMatrix\n in=\"blur\"\n type=\"matrix\"\n values={`1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 ${contrast} ${intercept}`}\n result=\"goo\"\n />\n <feComposite in=\"SourceGraphic\" in2=\"goo\" operator=\"atop\" result=\"shape\" />\n {edgeWidth > 0 ? (\n <>\n <feColorMatrix\n in=\"shape\"\n type=\"matrix\"\n values=\"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 60 -29.5\"\n result=\"solid-shape\"\n />\n <feMorphology\n in=\"solid-shape\"\n operator=\"erode\"\n radius={edgeWidth}\n result=\"inset-shape\"\n />\n <feComposite in=\"solid-shape\" in2=\"inset-shape\" operator=\"out\" result=\"edge-mask\" />\n <feFlood floodColor={edgeColor} floodOpacity={edgeOpacity} result=\"edge-color\" />\n <feComposite in=\"edge-color\" in2=\"edge-mask\" operator=\"in\" result=\"edge\" />\n <feMerge>\n <feMergeNode in=\"shape\" />\n <feMergeNode in=\"edge\" />\n </feMerge>\n </>\n ) : null}\n </filter>\n </defs>\n <g ref={portalRef} fill={fill} filter={`url(#${filterId})`} />\n </svg>\n <LiquidContext.Provider value={context}>{children}</LiquidContext.Provider>\n </div>\n );\n});\n\ntype LiquidBox = {\n x: number;\n y: number;\n width: number;\n height: number;\n radius: number;\n};\n\nexport interface LiquidItemProps extends Omit<HTMLAttributes<HTMLDivElement>, \"children\"> {\n children: ReactNode;\n x: number;\n y: number;\n width: number;\n height: number;\n radius?: number;\n transition?: LiquidTransition;\n}\n\nfunction mix(from: number, to: number, progress: number) {\n return from + (to - from) * progress;\n}\n\nfunction cubicBezier([x1, y1, x2, y2]: LiquidEase) {\n return (progress: number) => {\n if (progress <= 0) return 0;\n if (progress >= 1) return 1;\n\n let lower = 0;\n let upper = 1;\n for (let index = 0; index < 20; index++) {\n const time = (lower + upper) / 2;\n const inverse = 1 - time;\n const x = 3 * inverse * inverse * time * x1 + 3 * inverse * time * time * x2 + time ** 3;\n if (x < progress) lower = time;\n else upper = time;\n }\n\n const time = (lower + upper) / 2;\n const inverse = 1 - time;\n return 3 * inverse * inverse * time * y1 + 3 * inverse * time * time * y2 + time ** 3;\n };\n}\n\nexport function LiquidItem({\n children,\n x,\n y,\n width,\n height,\n radius = Math.min(width, height) / 2,\n transition,\n className,\n style,\n ...props\n}: LiquidItemProps) {\n const context = useLiquidContext();\n const reduce = useReducedMotion() ?? false;\n const wrapperRef = useRef<HTMLDivElement>(null);\n const [blob, setBlob] = useState<SVGRectElement | null>(null);\n const currentRef = useRef<LiquidBox | null>(null);\n const duration = reduce ? 0 : (transition?.duration ?? 280);\n const ease = transition?.ease ?? EASE_OUT;\n const [x1, y1, x2, y2] = ease;\n\n useLayoutEffect(() => {\n const portal = context.getPortal();\n if (!portal) return;\n\n const blob = document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\");\n blob.setAttribute(\"x\", \"0\");\n blob.setAttribute(\"y\", \"0\");\n blob.style.transformBox = \"fill-box\";\n blob.style.transformOrigin = \"center\";\n blob.style.willChange = \"transform\";\n portal.append(blob);\n setBlob(blob);\n\n return () => {\n blob.remove();\n };\n }, [context]);\n\n useLayoutEffect(() => {\n const wrapper = wrapperRef.current;\n if (!wrapper || !blob || !context.getRoot()) return;\n\n const target = { x, y, width, height, radius };\n const write = (box: LiquidBox) => {\n // Keep the interactive surface and its filtered silhouette on the same\n // frame so neither can visually outrun the other during a morph.\n const transform = `translate(${box.x}px, ${box.y}px)`;\n wrapper.style.transform = transform;\n wrapper.style.width = `${box.width}px`;\n wrapper.style.height = `${box.height}px`;\n blob.style.transform = transform;\n blob.setAttribute(\"width\", String(box.width));\n blob.setAttribute(\"height\", String(box.height));\n blob.setAttribute(\"rx\", String(box.radius));\n };\n\n const from = currentRef.current;\n if (!from || duration === 0) {\n currentRef.current = target;\n write(target);\n return;\n }\n\n const easing = cubicBezier([x1, y1, x2, y2]);\n const startedAt = performance.now();\n let frame = 0;\n\n const tick = (now: number) => {\n const progress = Math.min(1, (now - startedAt) / duration);\n const eased = easing(progress);\n const current = {\n x: mix(from.x, target.x, eased),\n y: mix(from.y, target.y, eased),\n width: mix(from.width, target.width, eased),\n height: mix(from.height, target.height, eased),\n radius: mix(from.radius, target.radius, eased),\n };\n currentRef.current = current;\n write(current);\n if (progress < 1) frame = requestAnimationFrame(tick);\n };\n\n frame = requestAnimationFrame(tick);\n return () => cancelAnimationFrame(frame);\n }, [blob, context, duration, height, radius, width, x, x1, x2, y, y1, y2]);\n\n return (\n <div\n {...props}\n ref={wrapperRef}\n className={cn(\"absolute top-0 left-0 z-10\", className)}\n style={{ ...style, willChange: \"transform, width, height\" }}\n >\n {children}\n </div>\n );\n}\n"],"mappings":";;;;;;;AA0BA,MAAM,gBAAgB,cAAyC,IAAI;AAEnE,SAAS,mBAAmB;CAC1B,MAAM,UAAU,WAAW,aAAa;CACxC,IAAI,CAAC,SAAS,MAAM,IAAI,MAAM,yCAAyC;CACvE,OAAO;AACT;AAmBA,MAAa,SAAS,WAAwC,SAAS,OACrE,EACE,OAAO,GACP,WAAW,IACX,OAAO,qBACP,YAAY,qBACZ,cAAc,KACd,YAAY,GACZ,gBAAgB,IAChB,WACA,OACA,UACA,GAAG,SAEL,cACA;CACA,MAAM,UAAU,OAAuB,IAAI;CAC3C,MAAM,YAAY,OAAoB,IAAI;CAC1C,MAAM,CAAC,MAAM,WAAW,SAAS;EAAE,OAAO;EAAG,QAAQ;CAAE,CAAC;CACxD,MAAM,WAAW,UAAU,MAAM,CAAC,CAAC,QAAQ,mBAAmB,EAAE;CAChE,MAAM,YAAY,KAAK,OAAO,KAAM,YAAY,IAAI,OAAO,GAAG,IAAI;CAClE,MAAM,UAAU,KAAK,KAAK,OAAO,IAAI,aAAa;CAElD,MAAM,aAAa,aAChB,SAAgC;EAC/B,QAAQ,UAAU;EAClB,IAAI,OAAO,iBAAiB,YAAY,aAAa,IAAI;OACpD,IAAI,cAAc,aAAa,UAAU;CAChD,GACA,CAAC,YAAY,CACf;CAEA,sBAAsB;EACpB,MAAM,OAAO,QAAQ;EACrB,IAAI,CAAC,MAAM;EAEX,MAAM,gBAAgB;GACpB,MAAM,OAAO;IACX,OAAO,KAAK;IACZ,QA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ACZ;EACF;EAEA,MAAM,SAASA,cAAY;GAAC;GAAI;GAAI;GAAI;EAAE,CAAC;EAC3C,MAAM,YAAY,YAAY,IAAI;EAClC,IAAI,QAAQ;EAEZ,MAAM,QAAQ,QAAgB;GAC5B,MAAM,WAAW,KAAK,IAAI,IAAI,MAAM,aAAa,QAAQ;GACzD,MAAM,QAAQ,OAAO,QAAQ;GAC7B,MAAM,UAAU;IACd,GAAG,IAAI,KAAK,GAAG,OAAO,GAAG,KAAK;IAC9B,GAAG,IAAI,KAAK,GAAG,OAAO,GAAG,KAAK;IAC9B,OAAO,IAAI,KAAK,OAAO,OAAO,OAAO,KAAK;IAC1C,QAAQ,IAAI,KAAK,QAAQ,OAAO,QAAQ,KAAK;IAC7C,QAAQ,IAAI,KAAK,QAAQ,OAAO,QAAQ,KAAK;GAC/C;GACA,WAAW,UAAU;GACrB,MAAM,OAAO;GACb,IAAI,WAAW,GAAG,QAAQ,sBAAsB,IAAI;EACtD;EAEA,QAAQ,sBAAsB,IAAI;EAClC,aAAa,qBAAqB,KAAK;CACzC,GAAG;EAAC;EAAM;EAAS;EAAU;EAAQ;EAAQ;EAAO;EAAG;EAAI;EAAI;EAAG;EAAI;CAAE,CAAC;CAEzE,OACE,oBAAC,OAAD;EACE,GAAI;EACJ,KAAK;EACL,WAAW,GAAG,8BAA8B,SAAS;EACrD,OAAO;GAAE,GAAG;GAAO,YAAY;EAA2B;EAEzD;CACE,CAAA;AAET"}
1
+ {"version":3,"file":"liquid.js","names":[],"sources":["../../../src/components/motion/liquid.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n createContext,\n forwardRef,\n type HTMLAttributes,\n type ReactNode,\n type Ref,\n useCallback,\n useContext,\n useId,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport { useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_OUT } from \"../../lib/ease\";\n\ntype LiquidContextValue = {\n getRoot: () => HTMLDivElement | null;\n getPortal: () => SVGGElement | null;\n};\n\nconst LiquidContext = createContext<LiquidContextValue | null>(null);\n\nfunction useLiquidContext() {\n const context = useContext(LiquidContext);\n if (!context) throw new Error(\"LiquidItem must be used within <Liquid>\");\n return context;\n}\n\nexport type LiquidEase = readonly [number, number, number, number];\n\nexport type LiquidTransition = {\n duration?: number;\n ease?: LiquidEase;\n};\n\nexport interface LiquidProps extends HTMLAttributes<HTMLDivElement> {\n blur?: number;\n contrast?: number;\n fill?: string;\n edgeColor?: string;\n edgeOpacity?: number;\n edgeWidth?: number;\n filterPadding?: number;\n}\n\nexport const Liquid = forwardRef<HTMLDivElement, LiquidProps>(function Liquid(\n {\n blur = 6,\n contrast = 18,\n fill = \"var(--background)\",\n edgeColor = \"var(--foreground)\",\n edgeOpacity = 0.08,\n edgeWidth = 1,\n filterPadding = 24,\n className,\n style,\n children,\n ...props\n },\n forwardedRef: Ref<HTMLDivElement>,\n) {\n const rootRef = useRef<HTMLDivElement>(null);\n const portalRef = useRef<SVGGElement>(null);\n const [size, setSize] = useState({ width: 0, height: 0 });\n const filterId = `liquid-${useId().replace(/[^a-zA-Z0-9_-]/g, \"\")}`;\n const intercept = Math.round((0.5 - contrast * (5 / 12)) * 100) / 100;\n const padding = Math.ceil(blur * 3 + filterPadding);\n\n const setRootRef = useCallback(\n (node: HTMLDivElement | null) => {\n rootRef.current = node;\n if (typeof forwardedRef === \"function\") forwardedRef(node);\n else if (forwardedRef) forwardedRef.current = node;\n },\n [forwardedRef],\n );\n\n useLayoutEffect(() => {\n const root = rootRef.current;\n if (!root) return;\n\n const measure = () => {\n const next = {\n width: root.offsetWidth,\n height: root.offsetHeight,\n };\n setSize((current) =>\n current.width === next.width && current.height === next.height ? current : next,\n );\n };\n\n measure();\n const observer = new ResizeObserver(measure);\n observer.observe(root);\n return () => observer.disconnect();\n }, []);\n\n const context = useMemo<LiquidContextValue>(\n () => ({\n getRoot: () => rootRef.current,\n getPortal: () => portalRef.current,\n }),\n [],\n );\n\n return (\n <div {...props} ref={setRootRef} className={cn(\"relative isolate\", className)} style={style}>\n <svg\n aria-hidden=\"true\"\n focusable=\"false\"\n className=\"pointer-events-none absolute inset-0 z-0 size-full overflow-visible\"\n >\n <defs>\n <filter\n id={filterId}\n x={-padding}\n y={-padding}\n width={size.width + padding * 2}\n height={size.height + padding * 2}\n filterUnits=\"userSpaceOnUse\"\n colorInterpolationFilters=\"sRGB\"\n >\n <feGaussianBlur in=\"SourceGraphic\" stdDeviation={blur} result=\"blur\" />\n <feColorMatrix\n in=\"blur\"\n type=\"matrix\"\n values={`1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 ${contrast} ${intercept}`}\n result=\"goo\"\n />\n <feComposite in=\"SourceGraphic\" in2=\"goo\" operator=\"atop\" result=\"shape\" />\n {edgeWidth > 0 ? (\n <>\n <feColorMatrix\n in=\"shape\"\n type=\"matrix\"\n values=\"1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 60 -29.5\"\n result=\"solid-shape\"\n />\n <feMorphology\n in=\"solid-shape\"\n operator=\"erode\"\n radius={edgeWidth}\n result=\"inset-shape\"\n />\n <feComposite in=\"solid-shape\" in2=\"inset-shape\" operator=\"out\" result=\"edge-mask\" />\n <feFlood floodColor={edgeColor} floodOpacity={edgeOpacity} result=\"edge-color\" />\n <feComposite in=\"edge-color\" in2=\"edge-mask\" operator=\"in\" result=\"edge\" />\n <feMerge>\n <feMergeNode in=\"shape\" />\n <feMergeNode in=\"edge\" />\n </feMerge>\n </>\n ) : null}\n </filter>\n </defs>\n <g ref={portalRef} fill={fill} filter={`url(#${filterId})`} />\n </svg>\n <LiquidContext.Provider value={context}>{children}</LiquidContext.Provider>\n </div>\n );\n});\n\ntype LiquidBox = {\n x: number;\n y: number;\n width: number;\n height: number;\n radius: number;\n};\n\nexport interface LiquidItemProps extends Omit<HTMLAttributes<HTMLDivElement>, \"children\"> {\n children: ReactNode;\n x: number;\n y: number;\n width: number;\n height: number;\n radius?: number;\n transition?: LiquidTransition;\n}\n\nfunction mix(from: number, to: number, progress: number) {\n return from + (to - from) * progress;\n}\n\nfunction cubicBezier([x1, y1, x2, y2]: LiquidEase) {\n return (progress: number) => {\n if (progress <= 0) return 0;\n if (progress >= 1) return 1;\n\n let lower = 0;\n let upper = 1;\n for (let index = 0; index < 20; index++) {\n const time = (lower + upper) / 2;\n const inverse = 1 - time;\n const x = 3 * inverse * inverse * time * x1 + 3 * inverse * time * time * x2 + time ** 3;\n if (x < progress) lower = time;\n else upper = time;\n }\n\n const time = (lower + upper) / 2;\n const inverse = 1 - time;\n return 3 * inverse * inverse * time * y1 + 3 * inverse * time * time * y2 + time ** 3;\n };\n}\n\nexport function LiquidItem({\n children,\n x,\n y,\n width,\n height,\n radius = Math.min(width, height) / 2,\n transition,\n className,\n style,\n ...props\n}: LiquidItemProps) {\n const context = useLiquidContext();\n const reduce = useReducedMotion() ?? false;\n const wrapperRef = useRef<HTMLDivElement>(null);\n const [blob, setBlob] = useState<SVGRectElement | null>(null);\n const currentRef = useRef<LiquidBox | null>(null);\n const duration = reduce ? 0 : (transition?.duration ?? 280);\n const ease = transition?.ease ?? EASE_OUT;\n const [x1, y1, x2, y2] = ease;\n\n useLayoutEffect(() => {\n const portal = context.getPortal();\n if (!portal) return;\n\n const blob = document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\");\n blob.setAttribute(\"x\", \"0\");\n blob.setAttribute(\"y\", \"0\");\n blob.style.transformBox = \"fill-box\";\n blob.style.transformOrigin = \"center\";\n blob.style.willChange = \"transform\";\n portal.append(blob);\n setBlob(blob);\n\n return () => {\n blob.remove();\n };\n }, [context]);\n\n useLayoutEffect(() => {\n const wrapper = wrapperRef.current;\n if (!wrapper || !blob || !context.getRoot()) return;\n\n const target = { x, y, width, height, radius };\n const write = (box: LiquidBox) => {\n // Keep the interactive surface and its filtered silhouette on the same\n // frame so neither can visually outrun the other during a morph.\n const transform = `translate(${box.x}px, ${box.y}px)`;\n wrapper.style.transform = transform;\n wrapper.style.width = `${box.width}px`;\n wrapper.style.height = `${box.height}px`;\n blob.style.transform = transform;\n blob.setAttribute(\"width\", String(box.width));\n blob.setAttribute(\"height\", String(box.height));\n blob.setAttribute(\"rx\", String(box.radius));\n };\n\n const from = currentRef.current;\n if (!from || duration === 0) {\n currentRef.current = target;\n write(target);\n return;\n }\n\n const easing = cubicBezier([x1, y1, x2, y2]);\n const startedAt = performance.now();\n let frame = 0;\n\n const tick = (now: number) => {\n const progress = Math.min(1, (now - startedAt) / duration);\n const eased = easing(progress);\n const current = {\n x: mix(from.x, target.x, eased),\n y: mix(from.y, target.y, eased),\n width: mix(from.width, target.width, eased),\n height: mix(from.height, target.height, eased),\n radius: mix(from.radius, target.radius, eased),\n };\n currentRef.current = current;\n write(current);\n if (progress < 1) frame = requestAnimationFrame(tick);\n };\n\n frame = requestAnimationFrame(tick);\n return () => cancelAnimationFrame(frame);\n }, [blob, context, duration, height, radius, width, x, x1, x2, y, y1, y2]);\n\n return (\n <div\n {...props}\n ref={wrapperRef}\n className={cn(\"absolute top-0 left-0 z-10\", className)}\n style={{ ...style, willChange: \"transform, width, height\" }}\n >\n {children}\n </div>\n );\n}\n"],"mappings":";;;;;;;AA0BA,MAAM,gBAAgB,cAAyC,IAAI;AAEnE,SAAS,mBAAmB;CAC1B,MAAM,UAAU,WAAW,aAAa;CACxC,IAAI,CAAC,SAAS,MAAM,IAAI,MAAM,yCAAyC;CACvE,OAAO;AACT;AAmBA,MAAa,SAAS,WAAwC,SAAS,OACrE,EACE,OAAO,GACP,WAAW,IACX,OAAO,qBACP,YAAY,qBACZ,cAAc,KACd,YAAY,GACZ,gBAAgB,IAChB,WACA,OACA,UACA,GAAG,SAEL,cACA;CACA,MAAM,UAAU,OAAuB,IAAI;CAC3C,MAAM,YAAY,OAAoB,IAAI;CAC1C,MAAM,CAAC,MAAM,WAAW,SAAS;EAAE,OAAO;EAAG,QAAQ;CAAE,CAAC;CACxD,MAAM,WAAW,UAAU,MAAM,CAAC,CAAC,QA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,8BAA8B,SAAS;EACrD,OAAO;GAAE,GAAG;GAAO,YAAY;EAA2B;EAEzD;CACE,CAAA;AAET"}
@@ -1,4 +1,11 @@
1
1
  export type LoaderVariant = "spinner" | "dots" | "bars" | "dot-matrix" | "dither" | "ascii" | "ascii-line" | "ascii-braille" | "ascii-blocks" | "ascii-bounce" | "morph" | "comet" | "scramble" | "metaballs" | "newton" | "helix" | "percent";
2
+ /** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */
3
+ export declare const loaderMessages: {
4
+ label: string;
5
+ /** The word the `scramble` variant resolves to. */
6
+ scramble: string;
7
+ };
8
+ export type LoaderMessages = typeof loaderMessages;
2
9
  export interface LoaderProps {
3
10
  /** Which animation to render. */
4
11
  variant?: LoaderVariant;
@@ -8,7 +15,10 @@ export interface LoaderProps {
8
15
  speed?: number;
9
16
  /** Accessible label announced to screen readers. */
10
17
  label?: string;
18
+ /** Override any built-in string. */
19
+ labels?: Partial<LoaderMessages>;
20
+ /** Classes merged onto the root element. */
11
21
  className?: string;
12
22
  }
13
- export declare function Loader({ variant, size, speed, label, className }: LoaderProps): import("react").JSX.Element;
23
+ export declare function Loader({ variant, size, speed, label: labelProp, labels, className }: LoaderProps): import("react").JSX.Element;
14
24
  //# sourceMappingURL=loader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"loader.d.ts","names":[],"sources":["../../../src/components/motion/loader.tsx"],"mappings":"A,YAQY;iBA4BK;;EAEf,UAAU;;EAEV;;EAEA;;EAEA;EACA;;wBASc,SACd,SACA,MACA,OACA,OACA,aACC,8BAAW,IAAA"}
1
+ {"version":3,"file":"loader.d.ts","names":[],"sources":["../../../src/components/motion/loader.tsx"],"mappings":"A,YASY;;qBA6BC;;;;;YAMD,wBAAwB;iBAEnB;;EAEf,UAAU;;EAEV;;EAEA;;EAEA;;EAEA,SAAS,QAAQ;;EAEjB;;wBASc,SACd,SACA,MACA,OACA,OAAO,WACP,QACA,aACC,8BAAW,IAAA"}