@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,15 +1,24 @@
1
1
  "use client";
2
+ import { useEffect, useRef, useState } from "react";
3
+ import { Volume2, VolumeX, Zap, ZapOff } from "lucide-react";
4
+ import { AnimatePresence, motion, useAnimate, useReducedMotion } from "motion/react";
5
+ import { cn } from "@kumix/utils";
2
6
  import { EASE_IN, EASE_OUT } from "../../lib/ease.js";
7
+ import { useMessages } from "../../lib/i18n.js";
3
8
  import { createTickPlayer } from "../../lib/tick-sound.js";
4
9
  import { ActionSwapCascadeIcon } from "./action-swap-cascade.js";
5
10
  import { Button } from "./button/base.js";
6
- import { t as Tooltip } from "../../tooltip-CuHpilPN.js";
7
- import { useEffect, useRef, useState } from "react";
8
- import { cn } from "@kumix/utils";
11
+ import { t as Tooltip } from "../../tooltip-gHv-6eOs.js";
9
12
  import { jsx, jsxs } from "react/jsx-runtime";
10
- import { AnimatePresence, motion, useAnimate, useReducedMotion } from "motion/react";
11
- import { Volume2, VolumeX, Zap, ZapOff } from "lucide-react";
12
13
  // src/components/motion/plinko.tsx
14
+ /** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */
15
+ const plinkoMessages = {
16
+ board: "Plinko board",
17
+ drop: "Drop ball",
18
+ pegFlash: "Peg flash",
19
+ sound: "Sound",
20
+ landed: "Ball {ball} landed in slot {slot}: {value}"
21
+ };
13
22
  const GAP = 32;
14
23
  const ROW = 30;
15
24
  const PEG = 3.5;
@@ -78,7 +87,8 @@ function plan(rows, width) {
78
87
  * brightens toward the rarer edge slots. With reduced motion a ball lands at
79
88
  * once.
80
89
  */
81
- function Plinko({ rows: rowsProp = 12, slots, onLand, maxBalls = 12, dropLabel = "Drop ball", pegFlash, defaultPegFlash = true, onPegFlashChange, pegFlashLabel = "Peg flash", sound, defaultSound = false, onSoundChange, soundLabel = "Sound", "aria-label": ariaLabel = "Plinko board", className }) {
90
+ function Plinko({ rows: rowsProp = 12, slots, onLand, maxBalls = 12, dropLabel, pegFlash, defaultPegFlash = true, onPegFlashChange, pegFlashLabel, sound, defaultSound = false, onSoundChange, soundLabel, "aria-label": ariaLabel, labels, className }) {
91
+ const t = useMessages("plinko", plinkoMessages, labels);
82
92
  const reduce = useReducedMotion() ?? false;
83
93
  const [scope, animate] = useAnimate();
84
94
  const [balls, setBalls] = useState([]);
@@ -113,9 +123,9 @@ function Plinko({ rows: rowsProp = 12, slots, onLand, maxBalls = 12, dropLabel =
113
123
  if (sound === void 0) setInternalSound(next);
114
124
  onSoundChange?.(next);
115
125
  };
116
- const labels = slots ?? plinkoSlots(rowsProp);
117
- const rows = labels.length - 1;
118
- const invalid = labels.length < 2;
126
+ const values = slots ?? plinkoSlots(rowsProp);
127
+ const rows = values.length - 1;
128
+ const invalid = values.length < 2;
119
129
  useEffect(() => {
120
130
  if (process.env.NODE_ENV !== "production" && invalid) console.warn("Plinko needs at least 2 slots; it renders nothing until it has them.");
121
131
  }, [invalid]);
@@ -140,8 +150,12 @@ function Plinko({ rows: rowsProp = 12, slots, onLand, maxBalls = 12, dropLabel =
140
150
  if (soundOn) getPlayers().landing.play(LANDING_RATE + LANDING_SPREAD * (Math.abs(slot - rows / 2) / (rows / 2)));
141
151
  setLastSlot(slot);
142
152
  landings.current++;
143
- setAnnouncement(`Ball ${landings.current} landed in slot ${slot + 1}: ${labels[slot]}`);
144
- onLand?.(slot, labels[slot]);
153
+ setAnnouncement(t("landed", {
154
+ ball: landings.current,
155
+ slot: slot + 1,
156
+ value: values[slot]
157
+ }));
158
+ onLand?.(slot, values[slot]);
145
159
  };
146
160
  const hitPegs = (ball, y) => {
147
161
  const rising = y < ball.y;
@@ -193,7 +207,7 @@ function Plinko({ rows: rowsProp = 12, slots, onLand, maxBalls = 12, dropLabel =
193
207
  };
194
208
  if (invalid) return null;
195
209
  return /* @__PURE__ */ jsxs("section", {
196
- "aria-label": ariaLabel,
210
+ "aria-label": ariaLabel ?? t("board"),
197
211
  className: cn("flex w-full flex-col items-center gap-4", className),
198
212
  children: [
199
213
  /* @__PURE__ */ jsxs("svg", {
@@ -210,7 +224,7 @@ function Plinko({ rows: rowsProp = 12, slots, onLand, maxBalls = 12, dropLabel =
210
224
  r: PEG,
211
225
  className: "fill-foreground origin-center opacity-40 transform-fill"
212
226
  }, peg.id)),
213
- labels.map((label, slot) => {
227
+ values.map((label, slot) => {
214
228
  const x = width / 2 + (slot - rows / 2) * GAP - GAP / 2;
215
229
  const y = TOP + rows * ROW;
216
230
  return /* @__PURE__ */ jsxs("g", { children: [
@@ -237,7 +251,7 @@ function Plinko({ rows: rowsProp = 12, slots, onLand, maxBalls = 12, dropLabel =
237
251
  textAnchor: "middle",
238
252
  dominantBaseline: "central",
239
253
  fontSize: Math.min(9, 24 / (String(label).length * .6)),
240
- className: cn("fill-foreground tabular-nums", slot === lastSlot ? "font-semibold" : "font-medium"),
254
+ className: "fill-foreground font-medium tabular-nums",
241
255
  children: label
242
256
  })
243
257
  ] }, slot);
@@ -307,19 +321,19 @@ function Plinko({ rows: rowsProp = 12, slots, onLand, maxBalls = 12, dropLabel =
307
321
  "aria-disabled": full || void 0,
308
322
  pressScale: .96,
309
323
  className: "aria-disabled:cursor-not-allowed aria-disabled:opacity-50",
310
- children: dropLabel
324
+ children: dropLabel ?? t("drop")
311
325
  }),
312
326
  reduce ? null : /* @__PURE__ */ jsx(ToggleButton, {
313
327
  on: flashOn,
314
328
  onToggle: togglePegFlash,
315
- label: pegFlashLabel,
329
+ label: pegFlashLabel ?? t("pegFlash"),
316
330
  onIcon: Zap,
317
331
  offIcon: ZapOff
318
332
  }),
319
333
  /* @__PURE__ */ jsx(ToggleButton, {
320
334
  on: soundOn,
321
335
  onToggle: toggleSound,
322
- label: soundLabel,
336
+ label: soundLabel ?? t("sound"),
323
337
  onIcon: Volume2,
324
338
  offIcon: VolumeX
325
339
  })
@@ -380,6 +394,6 @@ function ToggleButton({ on, onToggle, label, onIcon: OnIcon, offIcon: OffIcon })
380
394
  })
381
395
  });
382
396
  }
383
- export { Plinko, plinkoSlots };
397
+ export { Plinko, plinkoMessages, plinkoSlots };
384
398
 
385
399
  //# sourceMappingURL=plinko.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"plinko.js","names":[],"sources":["../../../src/components/motion/plinko.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useRef, useState } from \"react\";\nimport { type LucideIcon, Volume2, VolumeX, Zap, ZapOff } from \"lucide-react\";\nimport { AnimatePresence, motion, useAnimate, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_IN, EASE_OUT } from \"../../lib/ease\";\nimport { createTickPlayer } from \"../../lib/tick-sound\";\nimport { ActionSwapCascadeIcon } from \"./action-swap-cascade\";\nimport { Button } from \"./button\";\nimport { Tooltip } from \"./tooltip\";\n\nexport type PlinkoValue = string | number;\n\nexport interface PlinkoProps {\n /** Rows of pegs when `slots` isn't passed. Default 12. */\n rows?: number;\n /**\n * Slot values, left to right. Their count sets the board: n slots get\n * n - 1 rows of pegs, so `rows` is ignored when this is passed. Without it\n * the slots come from `plinkoSlots(rows)`. Fewer than 2 slots render nothing.\n */\n slots?: PlinkoValue[];\n /** Called with the slot index and its value when a ball lands. */\n onLand?: (slot: number, value: PlinkoValue) => void;\n /** Balls allowed in flight at once. Default 12. */\n maxBalls?: number;\n /** Label of the drop button. Default \"Drop ball\". */\n dropLabel?: string;\n /** Flash each peg as the ball hits it (controlled). Its button is hidden with reduced motion, where no pegs are hit. */\n pegFlash?: boolean;\n /** Initial peg flash state when uncontrolled. Default true. */\n defaultPegFlash?: boolean;\n /** Called when the peg flash button is toggled. */\n onPegFlashChange?: (pegFlash: boolean) => void;\n /** Tooltip and accessible name of the peg flash button. Default \"Peg flash\". */\n pegFlashLabel?: string;\n /** Click on every peg hit and landing (controlled). */\n sound?: boolean;\n /** Initial sound state when uncontrolled. Default false. */\n defaultSound?: boolean;\n /** Called when the sound button is toggled. */\n onSoundChange?: (sound: boolean) => void;\n /** Tooltip and accessible name of the sound button. Default \"Sound\". */\n soundLabel?: string;\n /** Accessible name for the board. Default \"Plinko board\". */\n \"aria-label\"?: string;\n className?: string;\n}\n\n// Board geometry in SVG units; the board scales to its container's width.\nconst GAP = 32; // horizontal space between pegs\nconst ROW = 30; // vertical space between peg rows\nconst PEG = 3.5;\nconst BALL = 7;\nconst TOP = 48; // first peg row\nconst SLOT = 34; // slot height\n\n// A ball falls between pegs under gravity and rises a little after each hit.\n// A drop speeds up (EASE_IN); RISE, its mirror, slows down like a hop and is\n// local because only a bounce needs it.\nconst RISE = [0, 0.55, 0.45, 1] as const;\nconst HOP_TIME = 0.09; // seconds rising after a peg\nconst DROP_TIME = 0.16; // seconds falling to the next peg\nconst HOP_HEIGHT = 7;\n// Landing tick playback rates: 0.55 in the centre slot, up to 0.95 at the edges.\nconst LANDING_RATE = 0.55;\nconst LANDING_SPREAD = 0.4;\n\ntype Ball = {\n id: number;\n path: { x: number; y: number }[];\n times: number[];\n slot: number;\n duration: number;\n /** Id of the peg hit on each row, top to bottom. */\n pegs: string[];\n /** Row of the last peg hit, -1 before the first. */\n lastRow: number;\n /** Last rendered y, to catch the frame the ball turns back up off a peg. */\n y: number;\n /** Moving up on the last frame: still on the hop from the last peg. */\n rising: boolean;\n /** Set once the ball reaches its slot; its exit fade must not land again. */\n landed?: boolean;\n};\n\nlet nextBall = 0;\n\n/** Height of the ball's centre where it touches a peg on `row`. */\nconst contactY = (row: number) => TOP + row * ROW - PEG - BALL;\n\n/** Random left/right steps from the top peg to a slot, as keyframes. */\nfunction plan(rows: number, width: number): Omit<Ball, \"id\" | \"lastRow\" | \"y\" | \"rising\"> {\n const center = width / 2;\n const points = [{ x: center, y: BALL }]; // enters fully inside the board\n const steps: number[] = [0.22]; // first fall from the chute to the top peg\n const pegs: string[] = [];\n let k = 0; // rightward steps so far\n for (let row = 0; row < rows; row++) {\n const x = center + (k - row / 2) * GAP;\n pegs.push(`${row}-${k}`);\n points.push({ x, y: contactY(row) });\n const right = Math.random() < 0.5;\n points.push({ x: x + (right ? GAP / 4 : -GAP / 4), y: contactY(row) - HOP_HEIGHT });\n steps.push(HOP_TIME, DROP_TIME);\n if (right) k++;\n }\n // Come to rest just inside the slot's top edge, clear of its label.\n const slotY = TOP + rows * ROW - BALL + 3;\n points.push({ x: center + (k - rows / 2) * GAP, y: slotY });\n const duration = steps.reduce((sum, step) => sum + step, 0);\n const times = [0];\n for (const step of steps) times.push(times[times.length - 1] + step / duration);\n return { path: points, times, slot: k, duration, pegs };\n}\n\n/**\n * A Plinko board: balls drop through rows of pegs, bounce left or right off\n * each one and land in a slot. Pegs flash when hit and the slot pulses on\n * landing. Optional sound clicks on every peg and lands with a thunk that\n * brightens toward the rarer edge slots. With reduced motion a ball lands at\n * once.\n */\nexport function Plinko({\n rows: rowsProp = 12,\n slots,\n onLand,\n maxBalls = 12,\n dropLabel = \"Drop ball\",\n pegFlash,\n defaultPegFlash = true,\n onPegFlashChange,\n pegFlashLabel = \"Peg flash\",\n sound,\n defaultSound = false,\n onSoundChange,\n soundLabel = \"Sound\",\n \"aria-label\": ariaLabel = \"Plinko board\",\n className,\n}: PlinkoProps) {\n const reduce = useReducedMotion() ?? false;\n const [scope, animate] = useAnimate();\n const [balls, setBalls] = useState<Ball[]>([]);\n const [announcement, setAnnouncement] = useState(\"\");\n // The last slot hit stays marked after its flash fades.\n const [lastSlot, setLastSlot] = useState<number | null>(null);\n const [internalSound, setInternalSound] = useState(defaultSound);\n const soundOn = sound ?? internalSound;\n const [internalFlash, setInternalFlash] = useState(defaultPegFlash);\n const flashOn = pegFlash ?? internalFlash;\n\n // Landings are numbered so a second ball in the same slot still changes\n // the live region's text and is announced again.\n const landings = useRef(0);\n // Each player cuts its own previous tick, so landings get their own player:\n // another ball's peg click would otherwise cut the longer landing thunk.\n const players = useRef<Record<\"peg\" | \"landing\", ReturnType<typeof createTickPlayer>> | null>(\n null,\n );\n const getPlayers = () => {\n if (!players.current)\n players.current = { peg: createTickPlayer(), landing: createTickPlayer() };\n return players.current;\n };\n useEffect(\n () => () => {\n players.current?.peg.dispose();\n players.current?.landing.dispose();\n players.current = null;\n },\n [],\n );\n\n const togglePegFlash = () => {\n const next = !flashOn;\n if (pegFlash === undefined) setInternalFlash(next);\n onPegFlashChange?.(next);\n };\n\n const toggleSound = () => {\n const next = !soundOn;\n // Unlock audio inside the click, where browsers allow it.\n if (next) getPlayers().peg.prepare();\n if (sound === undefined) setInternalSound(next);\n onSoundChange?.(next);\n };\n\n const labels = slots ?? plinkoSlots(rowsProp);\n const rows = labels.length - 1;\n const invalid = labels.length < 2;\n useEffect(() => {\n if (process.env.NODE_ENV !== \"production\" && invalid)\n console.warn(\"Plinko needs at least 2 slots; it renders nothing until it has them.\");\n }, [invalid]);\n\n // A new board size makes every ball in flight point at pegs that moved, so\n // drop them in the same render. Clearing them in an effect would mount them\n // in the new board first, and their exit would land in a slot that may not\n // exist any more.\n const [boardRows, setBoardRows] = useState(rows);\n if (boardRows !== rows) {\n setBoardRows(rows);\n setBalls([]);\n setLastSlot(null);\n }\n\n const width = (rows + 2) * GAP;\n const height = TOP + rows * ROW + SLOT;\n // Each row runs one peg past the ball's reach on both sides, so the board\n // reads as a triangle that widens down to the slots.\n const pegs = Array.from({ length: rows }, (_, row) =>\n Array.from({ length: row + 3 }, (_, i) => ({\n id: `${row}-${i - 1}`,\n x: width / 2 + (i - 1 - row / 2) * GAP,\n y: TOP + row * ROW,\n })),\n ).flat();\n\n const land = (slot: number) => {\n animate(`[data-slot=\"${slot}\"]`, { opacity: [0.9, 0] }, { duration: 0.3, ease: EASE_OUT });\n // A lower thunk than a peg hit marks the landing. It brightens toward\n // the edges, where landing is rarest, so a good drop is heard.\n if (soundOn)\n getPlayers().landing.play(\n LANDING_RATE + LANDING_SPREAD * (Math.abs(slot - rows / 2) / (rows / 2)),\n );\n setLastSlot(slot);\n landings.current++;\n setAnnouncement(`Ball ${landings.current} landed in slot ${slot + 1}: ${labels[slot]}`);\n onLand?.(slot, labels[slot]);\n };\n\n // Flash and click a peg on the frame the ball turns back up off it. Reading\n // the ball's own frames keeps both on its clock: a background tab pauses\n // them together. motion rebinds onUpdate every render, so the settings\n // read here are always current.\n const hitPegs = (ball: Ball, y: number) => {\n const rising = y < ball.y;\n // The row comes from where the ball turned, not from counting turns, so\n // a slow frame that skips a whole hop misses only that peg. Both frames\n // sit within a hop height above the contact, which rounds to its row.\n const row = Math.round((Math.max(ball.y, y) - contactY(0)) / ROW);\n if (rising && !ball.rising && row > ball.lastRow && row < ball.pegs.length) {\n ball.lastRow = row;\n const peg = ball.pegs[row];\n if (flashOn) {\n // Fast attack, slower decay: the pop peaks a third of the way in.\n animate(\n `[data-peg=\"${peg}\"]`,\n { scale: [1, 1.8, 1], opacity: [0.4, 1, 0.4] },\n { duration: 0.3, times: [0, 0.3, 1], ease: EASE_OUT },\n );\n }\n if (soundOn) getPlayers().peg.play();\n }\n ball.y = y;\n ball.rising = rising;\n };\n\n const full = balls.length >= maxBalls;\n const drop = () => {\n if (full) return;\n const ball: Ball = { id: nextBall++, lastRow: -1, y: 0, rising: false, ...plan(rows, width) };\n if (soundOn) getPlayers().peg.prepare();\n if (reduce) {\n land(ball.slot);\n return;\n }\n setBalls((current) => [...current, ball]);\n };\n\n if (invalid) return null;\n\n return (\n <section\n aria-label={ariaLabel}\n className={cn(\"flex w-full flex-col items-center gap-4\", className)}\n >\n <svg\n ref={scope}\n viewBox={`0 0 ${width} ${height}`}\n // Grow with the board so pegs keep the same on-screen spacing at any\n // row count, until the container's width runs out.\n style={{ maxWidth: width * 1.4 }}\n className=\"w-full\"\n aria-hidden=\"true\"\n >\n {pegs.map((peg) => (\n <circle\n key={peg.id}\n data-peg={peg.id}\n cx={peg.x}\n cy={peg.y}\n r={PEG}\n className=\"fill-foreground origin-center opacity-40 transform-fill\"\n />\n ))}\n\n {labels.map((label, slot) => {\n const x = width / 2 + (slot - rows / 2) * GAP - GAP / 2;\n const y = TOP + rows * ROW;\n return (\n <g key={slot}>\n <rect\n x={x + 2}\n y={y}\n width={GAP - 4}\n height={SLOT - 4}\n rx={6}\n className={slot === lastSlot ? \"fill-primary/20\" : \"fill-muted\"}\n />\n <rect\n data-slot={slot}\n x={x + 2}\n y={y}\n width={GAP - 4}\n height={SLOT - 4}\n rx={6}\n className=\"fill-primary opacity-0\"\n />\n <text\n x={x + GAP / 2}\n y={y + (SLOT - 4) / 2}\n textAnchor=\"middle\"\n dominantBaseline=\"central\"\n // Long values shrink to fit their slot.\n fontSize={Math.min(9, (GAP - 8) / (String(label).length * 0.6))}\n className={cn(\n \"fill-foreground tabular-nums\",\n slot === lastSlot ? \"font-semibold\" : \"font-medium\",\n )}\n >\n {label}\n </text>\n </g>\n );\n })}\n\n {/* Keyed by size: balls from a board that changed size leave at once. */}\n <AnimatePresence key={rows}>\n {balls.map((ball) => (\n <motion.circle\n key={ball.id}\n r={BALL}\n cx={0}\n cy={0}\n className=\"fill-primary\"\n // Enters from 90% scale and transparent, never from nothing. The\n // circle is drawn at 0,0 and placed by translate, so it scales\n // about its own centre.\n initial={{ x: ball.path[0].x, y: ball.path[0].y, opacity: 0, scale: 0.9 }}\n animate={{\n x: ball.path.map((point) => point.x),\n y: ball.path.map((point) => point.y),\n opacity: 1,\n scale: 1,\n }}\n // Settle into the slot: a short fade with a small drop.\n exit={{\n opacity: 0,\n y: (ball.path.at(-1)?.y ?? 0) + 4,\n transition: { duration: 0.12, ease: EASE_OUT },\n }}\n transition={{\n opacity: { duration: 0.15, ease: EASE_OUT },\n scale: { duration: 0.15, ease: EASE_OUT },\n x: { duration: ball.duration, times: ball.times, ease: \"linear\" },\n y: {\n duration: ball.duration,\n times: ball.times,\n // Fall into the first peg, then hop up and fall down per row.\n ease: ball.times.slice(1).map((_, i) => (i % 2 === 1 ? RISE : EASE_IN)),\n },\n }}\n onUpdate={(latest) => {\n if (typeof latest.y === \"number\") hitPegs(ball, latest.y);\n }}\n onAnimationComplete={() => {\n if (ball.landed) return;\n ball.landed = true;\n land(ball.slot);\n setBalls((current) => current.filter((other) => other.id !== ball.id));\n }}\n />\n ))}\n </AnimatePresence>\n </svg>\n\n <div className=\"flex items-center gap-2\">\n {/* aria-disabled, not disabled: a disabled button drops keyboard focus. */}\n <Button\n onClick={drop}\n aria-disabled={full || undefined}\n pressScale={0.96}\n className=\"aria-disabled:cursor-not-allowed aria-disabled:opacity-50\"\n >\n {dropLabel}\n </Button>\n {/* With reduced motion balls land at once and hit no pegs. */}\n {reduce ? null : (\n <ToggleButton\n on={flashOn}\n onToggle={togglePegFlash}\n label={pegFlashLabel}\n onIcon={Zap}\n offIcon={ZapOff}\n />\n )}\n <ToggleButton\n on={soundOn}\n onToggle={toggleSound}\n label={soundLabel}\n onIcon={Volume2}\n offIcon={VolumeX}\n />\n </div>\n <p aria-live=\"polite\" className=\"sr-only\">\n {announcement}\n </p>\n </section>\n );\n}\n\n/**\n * Slot values for a board of `rows`: `center` in the middle, growing evenly\n * (geometrically) to `edge` at both ends, where landing is rarest. Rounded to\n * readable numbers: 12 rows give 100, 50, 20, 10, 5, 2, 1, 2, 5, 10, 20, 50, 100.\n * Values from 1 to 10 round to whole numbers, the rest to one significant\n * figure, so fractional curves work: 8 rows with `center: 0.5, edge: 10`\n * give 10, 5, 2, 1, 0.5, 1, 2, 5, 10.\n * `rows` is rounded to at least 1, `center` raised to at least 0.01 and\n * `edge` to at least `center`.\n */\nexport function plinkoSlots(\n rowCount: number,\n options: { center?: number; edge?: number } = {},\n): number[] {\n const rows = Math.max(1, Math.round(rowCount) || 1);\n // Any positive center works; zero or below would divide by zero.\n const center = Math.max(0.01, options.center ?? 1);\n const edge = Math.max(center, options.edge ?? 100);\n const half = rows / 2;\n return Array.from({ length: rows + 1 }, (_, slot) => {\n const value = center * (edge / center) ** (Math.abs(slot - half) / half);\n if (value >= 1 && value < 10) return Math.round(value);\n // One significant figure: 46 reads as 50, 315 as 300, 0.46 as 0.5.\n return Number(value.toPrecision(1));\n });\n}\n\n/** An icon button that shows and toggles one on/off setting. */\nfunction ToggleButton({\n on,\n onToggle,\n label,\n onIcon: OnIcon,\n offIcon: OffIcon,\n}: {\n on: boolean;\n onToggle: () => void;\n label: string;\n onIcon: LucideIcon;\n offIcon: LucideIcon;\n}) {\n return (\n // aria-label names the button; the tooltip shows the same label on hover\n // and focus. Tooltip's asLabel would hydrate differently from the server.\n <Tooltip content={label} side=\"top\">\n <Button\n variant=\"secondary\"\n onClick={onToggle}\n aria-label={label}\n aria-pressed={on}\n pressScale={0.96}\n // Full strength when on, muted when off: the slash alone is a thin cue.\n className={cn(\"w-10 px-0\", on ? \"text-foreground\" : \"text-muted-foreground\")}\n >\n <ActionSwapCascadeIcon value={on ? \"on\" : \"off\"} className=\"size-4\">\n {on ? (\n <OnIcon aria-hidden=\"true\" className=\"size-4\" />\n ) : (\n <OffIcon aria-hidden=\"true\" className=\"size-4\" />\n )}\n </ActionSwapCascadeIcon>\n </Button>\n </Tooltip>\n );\n}\n"],"mappings":";;;;;;;;;;;;AAoDA,MAAM,MAAM;AACZ,MAAM,MAAM;AACZ,MAAM,MAAM;AACZ,MAAM,OAAO;AACb,MAAM,MAAM;AACZ,MAAM,OAAO;AAKb,MAAM,OAAO;CAAC;CAAG;CAAM;CAAM;AAAC;AAC9B,MA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SAAQ;GACR,SAAS;GACT,cAAY;GACZ,gBAAc;GACd,YAAY;GAEZ,WAAW,GAAG,aAAa,KAAK,oBAAoB,uBAAuB;GAE3E,UAAA,oBAAC,uBAAD;IAAuB,OAAO,KAAK,OAAO;IAAO,WAAU;IACxD,UAAA,KACC,oBAAC,QAAD;KAAQ,eAAY;KAAO,WAAU;IAAU,CAAA,IAE/C,oBAAC,SAAD;KAAS,eAAY;KAAO,WAAU;IAAU,CAAA;GAE7B,CAAA;EACjB,CAAA;CACD,CAAA;AAEb"}
1
+ {"version":3,"file":"plinko.js","names":[],"sources":["../../../src/components/motion/plinko.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useRef, useState } from \"react\";\nimport { type LucideIcon, Volume2, VolumeX, Zap, ZapOff } from \"lucide-react\";\nimport { AnimatePresence, motion, useAnimate, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_IN, EASE_OUT } from \"../../lib/ease\";\nimport { useMessages } from \"../../lib/i18n\";\nimport { createTickPlayer } from \"../../lib/tick-sound\";\nimport { ActionSwapCascadeIcon } from \"./action-swap-cascade\";\nimport { Button } from \"./button\";\nimport { Tooltip } from \"./tooltip\";\n\nexport type PlinkoValue = string | number;\n\n/** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */\nexport const plinkoMessages = {\n board: \"Plinko board\",\n drop: \"Drop ball\",\n pegFlash: \"Peg flash\",\n sound: \"Sound\",\n landed: \"Ball {ball} landed in slot {slot}: {value}\",\n};\nexport type PlinkoMessages = typeof plinkoMessages;\n\nexport interface PlinkoProps {\n /** Rows of pegs when `slots` isn't passed. Default 12. */\n rows?: number;\n /**\n * Slot values, left to right. Their count sets the board: n slots get\n * n - 1 rows of pegs, so `rows` is ignored when this is passed. Without it\n * the slots come from `plinkoSlots(rows)`. Fewer than 2 slots render nothing.\n */\n slots?: PlinkoValue[];\n /** Called with the slot index and its value when a ball lands. */\n onLand?: (slot: number, value: PlinkoValue) => void;\n /** Balls allowed in flight at once. Default 12. */\n maxBalls?: number;\n /** Label of the drop button. Default \"Drop ball\". */\n dropLabel?: string;\n /** Flash each peg as the ball hits it (controlled). Its button is hidden with reduced motion, where no pegs are hit. */\n pegFlash?: boolean;\n /** Initial peg flash state when uncontrolled. Default true. */\n defaultPegFlash?: boolean;\n /** Called when the peg flash button is toggled. */\n onPegFlashChange?: (pegFlash: boolean) => void;\n /** Tooltip and accessible name of the peg flash button. Default \"Peg flash\". */\n pegFlashLabel?: string;\n /** Click on every peg hit and landing (controlled). */\n sound?: boolean;\n /** Initial sound state when uncontrolled. Default false. */\n defaultSound?: boolean;\n /** Called when the sound button is toggled. */\n onSoundChange?: (sound: boolean) => void;\n /** Tooltip and accessible name of the sound button. Default \"Sound\". */\n soundLabel?: string;\n /** Accessible name for the board. Default \"Plinko board\". */\n \"aria-label\"?: string;\n /** Override built-in text for this instance. */\n labels?: Partial<PlinkoMessages>;\n /** Classes merged onto the root element. */\n className?: string;\n}\n\n// Board geometry in SVG units; the board scales to its container's width.\nconst GAP = 32; // horizontal space between pegs\nconst ROW = 30; // vertical space between peg rows\nconst PEG = 3.5;\nconst BALL = 7;\nconst TOP = 48; // first peg row\nconst SLOT = 34; // slot height\n\n// A ball falls between pegs under gravity and rises a little after each hit.\n// A drop speeds up (EASE_IN); RISE, its mirror, slows down like a hop and is\n// local because only a bounce needs it.\nconst RISE = [0, 0.55, 0.45, 1] as const;\nconst HOP_TIME = 0.09; // seconds rising after a peg\nconst DROP_TIME = 0.16; // seconds falling to the next peg\nconst HOP_HEIGHT = 7;\n// Landing tick playback rates: 0.55 in the centre slot, up to 0.95 at the edges.\nconst LANDING_RATE = 0.55;\nconst LANDING_SPREAD = 0.4;\n\ntype Ball = {\n id: number;\n path: { x: number; y: number }[];\n times: number[];\n slot: number;\n duration: number;\n /** Id of the peg hit on each row, top to bottom. */\n pegs: string[];\n /** Row of the last peg hit, -1 before the first. */\n lastRow: number;\n /** Last rendered y, to catch the frame the ball turns back up off a peg. */\n y: number;\n /** Moving up on the last frame: still on the hop from the last peg. */\n rising: boolean;\n /** Set once the ball reaches its slot; its exit fade must not land again. */\n landed?: boolean;\n};\n\nlet nextBall = 0;\n\n/** Height of the ball's centre where it touches a peg on `row`. */\nconst contactY = (row: number) => TOP + row * ROW - PEG - BALL;\n\n/** Random left/right steps from the top peg to a slot, as keyframes. */\nfunction plan(rows: number, width: number): Omit<Ball, \"id\" | \"lastRow\" | \"y\" | \"rising\"> {\n const center = width / 2;\n const points = [{ x: center, y: BALL }]; // enters fully inside the board\n const steps: number[] = [0.22]; // first fall from the chute to the top peg\n const pegs: string[] = [];\n let k = 0; // rightward steps so far\n for (let row = 0; row < rows; row++) {\n const x = center + (k - row / 2) * GAP;\n pegs.push(`${row}-${k}`);\n points.push({ x, y: contactY(row) });\n const right = Math.random() < 0.5;\n points.push({ x: x + (right ? GAP / 4 : -GAP / 4), y: contactY(row) - HOP_HEIGHT });\n steps.push(HOP_TIME, DROP_TIME);\n if (right) k++;\n }\n // Come to rest just inside the slot's top edge, clear of its label.\n const slotY = TOP + rows * ROW - BALL + 3;\n points.push({ x: center + (k - rows / 2) * GAP, y: slotY });\n const duration = steps.reduce((sum, step) => sum + step, 0);\n const times = [0];\n for (const step of steps) times.push(times[times.length - 1] + step / duration);\n return { path: points, times, slot: k, duration, pegs };\n}\n\n/**\n * A Plinko board: balls drop through rows of pegs, bounce left or right off\n * each one and land in a slot. Pegs flash when hit and the slot pulses on\n * landing. Optional sound clicks on every peg and lands with a thunk that\n * brightens toward the rarer edge slots. With reduced motion a ball lands at\n * once.\n */\nexport function Plinko({\n rows: rowsProp = 12,\n slots,\n onLand,\n maxBalls = 12,\n dropLabel,\n pegFlash,\n defaultPegFlash = true,\n onPegFlashChange,\n pegFlashLabel,\n sound,\n defaultSound = false,\n onSoundChange,\n soundLabel,\n \"aria-label\": ariaLabel,\n labels,\n className,\n}: PlinkoProps) {\n const t = useMessages(\"plinko\", plinkoMessages, labels);\n const reduce = useReducedMotion() ?? false;\n const [scope, animate] = useAnimate();\n const [balls, setBalls] = useState<Ball[]>([]);\n const [announcement, setAnnouncement] = useState(\"\");\n // The last slot hit stays marked after its flash fades.\n const [lastSlot, setLastSlot] = useState<number | null>(null);\n const [internalSound, setInternalSound] = useState(defaultSound);\n const soundOn = sound ?? internalSound;\n const [internalFlash, setInternalFlash] = useState(defaultPegFlash);\n const flashOn = pegFlash ?? internalFlash;\n\n // Landings are numbered so a second ball in the same slot still changes\n // the live region's text and is announced again.\n const landings = useRef(0);\n // Each player cuts its own previous tick, so landings get their own player:\n // another ball's peg click would otherwise cut the longer landing thunk.\n const players = useRef<Record<\"peg\" | \"landing\", ReturnType<typeof createTickPlayer>> | null>(\n null,\n );\n const getPlayers = () => {\n if (!players.current)\n players.current = { peg: createTickPlayer(), landing: createTickPlayer() };\n return players.current;\n };\n useEffect(\n () => () => {\n players.current?.peg.dispose();\n players.current?.landing.dispose();\n players.current = null;\n },\n [],\n );\n\n const togglePegFlash = () => {\n const next = !flashOn;\n if (pegFlash === undefined) setInternalFlash(next);\n onPegFlashChange?.(next);\n };\n\n const toggleSound = () => {\n const next = !soundOn;\n // Unlock audio inside the click, where browsers allow it.\n if (next) getPlayers().peg.prepare();\n if (sound === undefined) setInternalSound(next);\n onSoundChange?.(next);\n };\n\n const values = slots ?? plinkoSlots(rowsProp);\n const rows = values.length - 1;\n const invalid = values.length < 2;\n useEffect(() => {\n if (process.env.NODE_ENV !== \"production\" && invalid)\n console.warn(\"Plinko needs at least 2 slots; it renders nothing until it has them.\");\n }, [invalid]);\n\n // A new board size makes every ball in flight point at pegs that moved, so\n // drop them in the same render. Clearing them in an effect would mount them\n // in the new board first, and their exit would land in a slot that may not\n // exist any more.\n const [boardRows, setBoardRows] = useState(rows);\n if (boardRows !== rows) {\n setBoardRows(rows);\n setBalls([]);\n setLastSlot(null);\n }\n\n const width = (rows + 2) * GAP;\n const height = TOP + rows * ROW + SLOT;\n // Each row runs one peg past the ball's reach on both sides, so the board\n // reads as a triangle that widens down to the slots.\n const pegs = Array.from({ length: rows }, (_, row) =>\n Array.from({ length: row + 3 }, (_, i) => ({\n id: `${row}-${i - 1}`,\n x: width / 2 + (i - 1 - row / 2) * GAP,\n y: TOP + row * ROW,\n })),\n ).flat();\n\n const land = (slot: number) => {\n animate(`[data-slot=\"${slot}\"]`, { opacity: [0.9, 0] }, { duration: 0.3, ease: EASE_OUT });\n // A lower thunk than a peg hit marks the landing. It brightens toward\n // the edges, where landing is rarest, so a good drop is heard.\n if (soundOn)\n getPlayers().landing.play(\n LANDING_RATE + LANDING_SPREAD * (Math.abs(slot - rows / 2) / (rows / 2)),\n );\n setLastSlot(slot);\n landings.current++;\n setAnnouncement(t(\"landed\", { ball: landings.current, slot: slot + 1, value: values[slot] }));\n onLand?.(slot, values[slot]);\n };\n\n // Flash and click a peg on the frame the ball turns back up off it. Reading\n // the ball's own frames keeps both on its clock: a background tab pauses\n // them together. motion rebinds onUpdate every render, so the settings\n // read here are always current.\n const hitPegs = (ball: Ball, y: number) => {\n const rising = y < ball.y;\n // The row comes from where the ball turned, not from counting turns, so\n // a slow frame that skips a whole hop misses only that peg. Both frames\n // sit within a hop height above the contact, which rounds to its row.\n const row = Math.round((Math.max(ball.y, y) - contactY(0)) / ROW);\n if (rising && !ball.rising && row > ball.lastRow && row < ball.pegs.length) {\n ball.lastRow = row;\n const peg = ball.pegs[row];\n if (flashOn) {\n // Fast attack, slower decay: the pop peaks a third of the way in.\n animate(\n `[data-peg=\"${peg}\"]`,\n { scale: [1, 1.8, 1], opacity: [0.4, 1, 0.4] },\n { duration: 0.3, times: [0, 0.3, 1], ease: EASE_OUT },\n );\n }\n if (soundOn) getPlayers().peg.play();\n }\n ball.y = y;\n ball.rising = rising;\n };\n\n const full = balls.length >= maxBalls;\n const drop = () => {\n if (full) return;\n const ball: Ball = { id: nextBall++, lastRow: -1, y: 0, rising: false, ...plan(rows, width) };\n if (soundOn) getPlayers().peg.prepare();\n if (reduce) {\n land(ball.slot);\n return;\n }\n setBalls((current) => [...current, ball]);\n };\n\n if (invalid) return null;\n\n return (\n <section\n aria-label={ariaLabel ?? t(\"board\")}\n className={cn(\"flex w-full flex-col items-center gap-4\", className)}\n >\n <svg\n ref={scope}\n viewBox={`0 0 ${width} ${height}`}\n // Grow with the board so pegs keep the same on-screen spacing at any\n // row count, until the container's width runs out.\n style={{ maxWidth: width * 1.4 }}\n className=\"w-full\"\n aria-hidden=\"true\"\n >\n {pegs.map((peg) => (\n <circle\n key={peg.id}\n data-peg={peg.id}\n cx={peg.x}\n cy={peg.y}\n r={PEG}\n className=\"fill-foreground origin-center opacity-40 transform-fill\"\n />\n ))}\n\n {values.map((label, slot) => {\n const x = width / 2 + (slot - rows / 2) * GAP - GAP / 2;\n const y = TOP + rows * ROW;\n return (\n <g key={slot}>\n <rect\n x={x + 2}\n y={y}\n width={GAP - 4}\n height={SLOT - 4}\n rx={6}\n className={slot === lastSlot ? \"fill-primary/20\" : \"fill-muted\"}\n />\n <rect\n data-slot={slot}\n x={x + 2}\n y={y}\n width={GAP - 4}\n height={SLOT - 4}\n rx={6}\n className=\"fill-primary opacity-0\"\n />\n <text\n x={x + GAP / 2}\n y={y + (SLOT - 4) / 2}\n textAnchor=\"middle\"\n dominantBaseline=\"central\"\n // Long values shrink to fit their slot.\n fontSize={Math.min(9, (GAP - 8) / (String(label).length * 0.6))}\n className=\"fill-foreground font-medium tabular-nums\"\n >\n {label}\n </text>\n </g>\n );\n })}\n\n {/* Keyed by size: balls from a board that changed size leave at once. */}\n <AnimatePresence key={rows}>\n {balls.map((ball) => (\n <motion.circle\n key={ball.id}\n r={BALL}\n cx={0}\n cy={0}\n className=\"fill-primary\"\n // Enters from 90% scale and transparent, never from nothing. The\n // circle is drawn at 0,0 and placed by translate, so it scales\n // about its own centre.\n initial={{ x: ball.path[0].x, y: ball.path[0].y, opacity: 0, scale: 0.9 }}\n animate={{\n x: ball.path.map((point) => point.x),\n y: ball.path.map((point) => point.y),\n opacity: 1,\n scale: 1,\n }}\n // Settle into the slot: a short fade with a small drop.\n exit={{\n opacity: 0,\n y: (ball.path.at(-1)?.y ?? 0) + 4,\n transition: { duration: 0.12, ease: EASE_OUT },\n }}\n transition={{\n opacity: { duration: 0.15, ease: EASE_OUT },\n scale: { duration: 0.15, ease: EASE_OUT },\n x: { duration: ball.duration, times: ball.times, ease: \"linear\" },\n y: {\n duration: ball.duration,\n times: ball.times,\n // Fall into the first peg, then hop up and fall down per row.\n ease: ball.times.slice(1).map((_, i) => (i % 2 === 1 ? RISE : EASE_IN)),\n },\n }}\n onUpdate={(latest) => {\n if (typeof latest.y === \"number\") hitPegs(ball, latest.y);\n }}\n onAnimationComplete={() => {\n if (ball.landed) return;\n ball.landed = true;\n land(ball.slot);\n setBalls((current) => current.filter((other) => other.id !== ball.id));\n }}\n />\n ))}\n </AnimatePresence>\n </svg>\n\n <div className=\"flex items-center gap-2\">\n {/* aria-disabled, not disabled: a disabled button drops keyboard focus. */}\n <Button\n onClick={drop}\n aria-disabled={full || undefined}\n pressScale={0.96}\n className=\"aria-disabled:cursor-not-allowed aria-disabled:opacity-50\"\n >\n {dropLabel ?? t(\"drop\")}\n </Button>\n {/* With reduced motion balls land at once and hit no pegs. */}\n {reduce ? null : (\n <ToggleButton\n on={flashOn}\n onToggle={togglePegFlash}\n label={pegFlashLabel ?? t(\"pegFlash\")}\n onIcon={Zap}\n offIcon={ZapOff}\n />\n )}\n <ToggleButton\n on={soundOn}\n onToggle={toggleSound}\n label={soundLabel ?? t(\"sound\")}\n onIcon={Volume2}\n offIcon={VolumeX}\n />\n </div>\n <p aria-live=\"polite\" className=\"sr-only\">\n {announcement}\n </p>\n </section>\n );\n}\n\n/**\n * Slot values for a board of `rows`: `center` in the middle, growing evenly\n * (geometrically) to `edge` at both ends, where landing is rarest. Rounded to\n * readable numbers: 12 rows give 100, 50, 20, 10, 5, 2, 1, 2, 5, 10, 20, 50, 100.\n * Values from 1 to 10 round to whole numbers, the rest to one significant\n * figure, so fractional curves work: 8 rows with `center: 0.5, edge: 10`\n * give 10, 5, 2, 1, 0.5, 1, 2, 5, 10.\n * `rows` is rounded to at least 1, `center` raised to at least 0.01 and\n * `edge` to at least `center`.\n */\nexport function plinkoSlots(\n rowCount: number,\n options: { center?: number; edge?: number } = {},\n): number[] {\n const rows = Math.max(1, Math.round(rowCount) || 1);\n // Any positive center works; zero or below would divide by zero.\n const center = Math.max(0.01, options.center ?? 1);\n const edge = Math.max(center, options.edge ?? 100);\n const half = rows / 2;\n return Array.from({ length: rows + 1 }, (_, slot) => {\n const value = center * (edge / center) ** (Math.abs(slot - half) / half);\n if (value >= 1 && value < 10) return Math.round(value);\n // One significant figure: 46 reads as 50, 315 as 300, 0.46 as 0.5.\n return Number(value.toPrecision(1));\n });\n}\n\n/** An icon button that shows and toggles one on/off setting. */\nfunction ToggleButton({\n on,\n onToggle,\n label,\n onIcon: OnIcon,\n offIcon: OffIcon,\n}: {\n on: boolean;\n onToggle: () => void;\n label: string;\n onIcon: LucideIcon;\n offIcon: LucideIcon;\n}) {\n return (\n // aria-label names the button; the tooltip shows the same label on hover\n // and focus. Tooltip's asLabel would hydrate differently from the server.\n <Tooltip content={label} side=\"top\">\n <Button\n variant=\"secondary\"\n onClick={onToggle}\n aria-label={label}\n aria-pressed={on}\n pressScale={0.96}\n // Full strength when on, muted when off: the slash alone is a thin cue.\n className={cn(\"w-10 px-0\", on ? \"text-foreground\" : \"text-muted-foreground\")}\n >\n <ActionSwapCascadeIcon value={on ? \"on\" : \"off\"} className=\"size-4\">\n {on ? (\n <OnIcon aria-hidden=\"true\" className=\"size-4\" />\n ) : (\n <OffIcon aria-hidden=\"true\" className=\"size-4\" />\n )}\n </ActionSwapCascadeIcon>\n </Button>\n </Tooltip>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAiBA,MAAa,iBAAiB;CAC5B,OAAO;CACP,MAAM;CACN,UAAU;CACV,OAAO;CACP,QAAQ;AACV;AA2CA,MAAM,MAAM;AACZ,MAAM,MAA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,MAAM,KAAK;EAErD,OAAO,OAAO,MAAM,YAAY,CAAC,CAAC;CACpC,CAAC;AACH;;AAGA,SAAS,aAAa,EACpB,IACA,UACA,OACA,QAAQ,QACR,SAAS,WAOR;CACD,OAGE,oBAAC,SAAD;EAAS,SAAS;EAAO,MAAK;EAC5B,UAAA,oBAAC,QAAD;GACE,SAAQ;GACR,SAAS;GACT,cAAY;GACZ,gBAAc;GACd,YAAY;GAEZ,WAAW,GAAG,aAAa,KAAK,oBAAoB,uBAAuB;GAE3E,UAAA,oBAAC,uBAAD;IAAuB,OAAO,KAAK,OAAO;IAAO,WAAU;IACxD,UAAA,KACC,oBAAC,QAAD;KAAQ,eAAY;KAAO,WAAU;IAAU,CAAA,IAE/C,oBAAC,SAAD;KAAS,eAAY;KAAO,WAAU;IAAU,CAAA;GAE7B,CAAA;EACjB,CAAA;CACD,CAAA;AAEb"}
@@ -0,0 +1,39 @@
1
+ export declare const pollVoteMessages: {
2
+ poll: string;
3
+ percent: string;
4
+ voted: string;
5
+ votes: string;
6
+ };
7
+ export type PollVoteMessages = typeof pollVoteMessages;
8
+ export type PollOption = {
9
+ /** Unique key for the choice, passed to `onValueChange` on a vote. */
10
+ id: string;
11
+ /** Text shown on the choice's row. */
12
+ label: string;
13
+ /** Votes before the viewer's; their vote adds 1 to the share. */
14
+ votes: number;
15
+ };
16
+ export interface PollVoteProps {
17
+ /** The choices, each with an id, label and vote count before the viewer's vote. */
18
+ options: PollOption[];
19
+ /** The viewer's choice, or null before they vote. */
20
+ value?: string | null;
21
+ /** The initial choice when uncontrolled. Default: null */
22
+ defaultValue?: string | null;
23
+ /** Called with the option id when the viewer votes or changes their vote. */
24
+ onValueChange?: (value: string | null) => void;
25
+ /** Override any built-in string, e.g. for translation. */
26
+ labels?: Partial<PollVoteMessages>;
27
+ /** Play a crisp select on a vote. Off by default; a `SoundProvider` can mute it app-wide. */
28
+ sound?: boolean;
29
+ /** Classes merged onto the root fieldset. */
30
+ className?: string;
31
+ }
32
+ /**
33
+ * A poll you answer with one tap. Your pick's ring fills and draws a check,
34
+ * your bar fills first and the rest follow in a wave, each percentage slides
35
+ * in and counts up, and the vote total ticks over. Picking another option
36
+ * moves every bar at once.
37
+ */
38
+ export declare function PollVote({ options, value: valueProp, defaultValue, onValueChange, labels, sound, className }: PollVoteProps): import("react").JSX.Element;
39
+ //# sourceMappingURL=poll-vote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poll-vote.d.ts","names":[],"sources":["../../../src/components/motion/poll-vote.tsx"],"mappings":"A,qBAWa;;;;;;YAOD,0BAA0B;YAE1B;;EAEV;;EAEA;;EAEA;;iBAGe;;EAEf,SAAS;;EAET;;EAEA;;EAEA,iBAAiB;;EAEjB,SAAS,QAAQ;;EAEjB;;EAEA;;;;;;;;wBA0Ec,WACd,SACA,OAAO,WACP,cACA,eACA,QACA,OACA,aACC,gCAAa,IAAA"}
@@ -0,0 +1,209 @@
1
+ "use client";
2
+ import { useEffect, useState } from "react";
3
+ import { animate, motion, useMotionValue, useReducedMotion, useTransform } from "motion/react";
4
+ import { cn } from "@kumix/utils";
5
+ import { EASE_IN, EASE_OUT, SPRING_LAYOUT, SPRING_PRESS } from "../../lib/ease.js";
6
+ import { useMessages } from "../../lib/i18n.js";
7
+ import { useSound } from "../../lib/sound.js";
8
+ import { selectSound } from "../../lib/sounds/select.js";
9
+ import { jsx, jsxs } from "react/jsx-runtime";
10
+ // src/components/motion/poll-vote.tsx
11
+ const pollVoteMessages = {
12
+ poll: "Poll",
13
+ percent: "{label}, {percent}%",
14
+ voted: "You voted for {label}",
15
+ votes: "{count} votes"
16
+ };
17
+ const STAGGER = .06;
18
+ const COUNT = {
19
+ duration: .7,
20
+ ease: EASE_OUT
21
+ };
22
+ const DRAW = {
23
+ duration: .26,
24
+ ease: EASE_OUT,
25
+ delay: .08
26
+ };
27
+ const FADE = {
28
+ duration: .2,
29
+ ease: EASE_OUT
30
+ };
31
+ const DRAIN = {
32
+ duration: .22,
33
+ ease: EASE_IN
34
+ };
35
+ /** A number that counts up (or down) to its value. */
36
+ function Count({ value, delay, reduce, format }) {
37
+ const shown = useMotionValue(value);
38
+ const text = useTransform(shown, (current) => format(Math.round(current)));
39
+ useEffect(() => {
40
+ const controls = animate(shown, value, reduce ? { duration: 0 } : {
41
+ ...COUNT,
42
+ delay
43
+ });
44
+ return () => controls.stop();
45
+ }, [
46
+ value,
47
+ delay,
48
+ reduce,
49
+ shown
50
+ ]);
51
+ return /* @__PURE__ */ jsx(motion.span, {
52
+ className: "tabular-nums",
53
+ children: text
54
+ });
55
+ }
56
+ /** The radio ring: fills with a pop and draws a check when it is your pick. */
57
+ function Mark({ on, reduce }) {
58
+ return /* @__PURE__ */ jsxs("span", {
59
+ className: cn("relative grid size-4 shrink-0 place-items-center rounded-full border transition-colors duration-200", on ? "border-primary" : "border-muted-foreground/40"),
60
+ children: [/* @__PURE__ */ jsx(motion.span, {
61
+ className: "bg-primary absolute -inset-px rounded-full",
62
+ initial: false,
63
+ animate: {
64
+ scale: on || reduce ? 1 : 0,
65
+ opacity: on ? 1 : 0
66
+ },
67
+ transition: on ? {
68
+ scale: SPRING_PRESS,
69
+ opacity: FADE
70
+ } : {
71
+ duration: .14,
72
+ ease: EASE_IN
73
+ }
74
+ }), /* @__PURE__ */ jsx("svg", {
75
+ viewBox: "0 0 24 24",
76
+ fill: "none",
77
+ stroke: "currentColor",
78
+ strokeWidth: 3.5,
79
+ strokeLinecap: "round",
80
+ strokeLinejoin: "round",
81
+ "aria-hidden": "true",
82
+ className: "text-primary-foreground relative size-2.5",
83
+ children: /* @__PURE__ */ jsx(motion.path, {
84
+ d: "M5 12.5l4.5 4.5L19 7.5",
85
+ initial: false,
86
+ animate: {
87
+ pathLength: on ? 1 : 0,
88
+ opacity: on ? 1 : 0
89
+ },
90
+ transition: reduce ? { duration: 0 } : on ? DRAW : { duration: .1 }
91
+ })
92
+ })]
93
+ });
94
+ }
95
+ /**
96
+ * A poll you answer with one tap. Your pick's ring fills and draws a check,
97
+ * your bar fills first and the rest follow in a wave, each percentage slides
98
+ * in and counts up, and the vote total ticks over. Picking another option
99
+ * moves every bar at once.
100
+ */
101
+ function PollVote({ options, value: valueProp, defaultValue = null, onValueChange, labels, sound = false, className }) {
102
+ const t = useMessages("PollVote", pollVoteMessages, labels);
103
+ const reduce = Boolean(useReducedMotion());
104
+ const [internal, setInternal] = useState(defaultValue);
105
+ const value = valueProp === void 0 ? internal : valueProp;
106
+ const voted = value !== null;
107
+ const play = useSound(selectSound, { enabled: sound });
108
+ const [last, setLast] = useState(value);
109
+ const [from, setFrom] = useState(value);
110
+ if (last !== value) {
111
+ setFrom(last);
112
+ setLast(value);
113
+ }
114
+ const moved = from !== null && voted;
115
+ const total = options.reduce((sum, option) => sum + option.votes, 0) + (voted ? 1 : 0);
116
+ const share = (option) => total === 0 ? 0 : (option.votes + (option.id === value ? 1 : 0)) / total * 100;
117
+ const chosen = options.find((option) => option.id === value);
118
+ const chosenIndex = options.findIndex((option) => option.id === value);
119
+ return /* @__PURE__ */ jsxs("fieldset", {
120
+ "aria-label": t("poll"),
121
+ className: cn("flex w-full max-w-xs min-w-0 flex-col gap-2", className),
122
+ children: [
123
+ options.map((option, index) => {
124
+ const mine = option.id === value;
125
+ const percent = voted ? share(option) : 0;
126
+ const order = mine ? 0 : index < chosenIndex ? index + 1 : index;
127
+ const delay = reduce || moved || !voted ? 0 : order * STAGGER;
128
+ return /* @__PURE__ */ jsxs(motion.button, {
129
+ type: "button",
130
+ "aria-pressed": mine,
131
+ "aria-label": voted ? t("percent", {
132
+ label: option.label,
133
+ percent: Math.round(percent)
134
+ }) : option.label,
135
+ whileTap: reduce || mine ? void 0 : { scale: .98 },
136
+ transition: SPRING_PRESS,
137
+ onClick: () => {
138
+ if (mine) return;
139
+ play();
140
+ if (valueProp === void 0) setInternal(option.id);
141
+ onValueChange?.(option.id);
142
+ },
143
+ className: cn("relative isolate flex h-10 items-center justify-between gap-3 overflow-hidden rounded-full border px-3 text-left text-sm transition-colors duration-200", "focus-visible:ring-ring/50 focus-visible:ring-2 focus-visible:outline-none", mine ? "border-primary/40 text-foreground font-medium" : "border-border text-foreground", !voted && "hover:bg-muted/60"),
144
+ children: [
145
+ /* @__PURE__ */ jsx(motion.span, {
146
+ "aria-hidden": "true",
147
+ className: cn("absolute inset-0 -z-10 origin-left transition-colors duration-200", mine ? "bg-primary/15" : "bg-muted"),
148
+ initial: false,
149
+ animate: { scaleX: percent / 100 },
150
+ transition: reduce ? { duration: 0 } : voted ? {
151
+ ...SPRING_LAYOUT,
152
+ delay
153
+ } : DRAIN
154
+ }),
155
+ /* @__PURE__ */ jsxs("span", {
156
+ className: "flex min-w-0 items-center gap-2.5",
157
+ children: [/* @__PURE__ */ jsx(Mark, {
158
+ on: mine,
159
+ reduce
160
+ }), /* @__PURE__ */ jsx("span", {
161
+ className: "truncate",
162
+ children: option.label
163
+ })]
164
+ }),
165
+ /* @__PURE__ */ jsx(motion.span, {
166
+ "aria-hidden": "true",
167
+ className: cn("shrink-0", mine ? "text-primary" : "text-muted-foreground"),
168
+ initial: false,
169
+ animate: {
170
+ opacity: voted ? 1 : 0,
171
+ x: voted || reduce ? 0 : 6
172
+ },
173
+ transition: voted ? {
174
+ ...FADE,
175
+ delay
176
+ } : {
177
+ duration: .14,
178
+ ease: EASE_IN
179
+ },
180
+ children: /* @__PURE__ */ jsx(Count, {
181
+ value: percent,
182
+ delay,
183
+ reduce,
184
+ format: (current) => `${current}%`
185
+ })
186
+ })
187
+ ]
188
+ }, option.id);
189
+ }),
190
+ /* @__PURE__ */ jsx("span", {
191
+ className: "text-muted-foreground px-1 text-xs",
192
+ children: /* @__PURE__ */ jsx(Count, {
193
+ value: total,
194
+ delay: 0,
195
+ reduce,
196
+ format: (count) => t("votes", { count })
197
+ })
198
+ }),
199
+ /* @__PURE__ */ jsx("span", {
200
+ "aria-live": "polite",
201
+ className: "sr-only",
202
+ children: chosen ? t("voted", { label: chosen.label }) : ""
203
+ })
204
+ ]
205
+ });
206
+ }
207
+ export { PollVote, pollVoteMessages };
208
+
209
+ //# sourceMappingURL=poll-vote.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poll-vote.js","names":[],"sources":["../../../src/components/motion/poll-vote.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState } from \"react\";\nimport { animate, motion, useMotionValue, useReducedMotion, useTransform } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_IN, EASE_OUT, SPRING_LAYOUT, SPRING_PRESS } from \"../../lib/ease\";\nimport { useMessages } from \"../../lib/i18n\";\nimport { useSound } from \"../../lib/sound\";\nimport { selectSound } from \"../../lib/sounds/select\";\n\nexport const pollVoteMessages = {\n poll: \"Poll\",\n percent: \"{label}, {percent}%\",\n voted: \"You voted for {label}\",\n votes: \"{count} votes\",\n};\n\nexport type PollVoteMessages = typeof pollVoteMessages;\n\nexport type PollOption = {\n /** Unique key for the choice, passed to `onValueChange` on a vote. */\n id: string;\n /** Text shown on the choice's row. */\n label: string;\n /** Votes before the viewer's; their vote adds 1 to the share. */\n votes: number;\n};\n\nexport interface PollVoteProps {\n /** The choices, each with an id, label and vote count before the viewer's vote. */\n options: PollOption[];\n /** The viewer's choice, or null before they vote. */\n value?: string | null;\n /** The initial choice when uncontrolled. Default: null */\n defaultValue?: string | null;\n /** Called with the option id when the viewer votes or changes their vote. */\n onValueChange?: (value: string | null) => void;\n /** Override any built-in string, e.g. for translation. */\n labels?: Partial<PollVoteMessages>;\n /** Play a crisp select on a vote. Off by default; a `SoundProvider` can mute it app-wide. */\n sound?: boolean;\n /** Classes merged onto the root fieldset. */\n className?: string;\n}\n\n// After a first vote your bar fills first and the rest follow a beat apart.\nconst STAGGER = 0.06;\nconst COUNT = { duration: 0.7, ease: EASE_OUT } as const;\nconst DRAW = { duration: 0.26, ease: EASE_OUT, delay: 0.08 } as const;\nconst FADE = { duration: 0.2, ease: EASE_OUT } as const;\n// Clearing drains the bars quickly; exits are faster than entrances.\nconst DRAIN = { duration: 0.22, ease: EASE_IN } as const;\n\n/** A number that counts up (or down) to its value. */\nfunction Count({\n value,\n delay,\n reduce,\n format,\n}: {\n value: number;\n delay: number;\n reduce: boolean;\n format: (value: number) => string;\n}) {\n const shown = useMotionValue(value);\n const text = useTransform(shown, (current) => format(Math.round(current)));\n useEffect(() => {\n const controls = animate(shown, value, reduce ? { duration: 0 } : { ...COUNT, delay });\n return () => controls.stop();\n }, [value, delay, reduce, shown]);\n return <motion.span className=\"tabular-nums\">{text}</motion.span>;\n}\n\n/** The radio ring: fills with a pop and draws a check when it is your pick. */\nfunction Mark({ on, reduce }: { on: boolean; reduce: boolean }) {\n return (\n <span\n className={cn(\n \"relative grid size-4 shrink-0 place-items-center rounded-full border transition-colors duration-200\",\n on ? \"border-primary\" : \"border-muted-foreground/40\",\n )}\n >\n <motion.span\n className=\"bg-primary absolute -inset-px rounded-full\"\n initial={false}\n animate={{ scale: on || reduce ? 1 : 0, opacity: on ? 1 : 0 }}\n transition={on ? { scale: SPRING_PRESS, opacity: FADE } : { duration: 0.14, ease: EASE_IN }}\n />\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={3.5}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n className=\"text-primary-foreground relative size-2.5\"\n >\n <motion.path\n d=\"M5 12.5l4.5 4.5L19 7.5\"\n initial={false}\n animate={{ pathLength: on ? 1 : 0, opacity: on ? 1 : 0 }}\n transition={reduce ? { duration: 0 } : on ? DRAW : { duration: 0.1 }}\n />\n </svg>\n </span>\n );\n}\n\n/**\n * A poll you answer with one tap. Your pick's ring fills and draws a check,\n * your bar fills first and the rest follow in a wave, each percentage slides\n * in and counts up, and the vote total ticks over. Picking another option\n * moves every bar at once.\n */\nexport function PollVote({\n options,\n value: valueProp,\n defaultValue = null,\n onValueChange,\n labels,\n sound = false,\n className,\n}: PollVoteProps) {\n const t = useMessages(\"PollVote\", pollVoteMessages, labels);\n const reduce = Boolean(useReducedMotion());\n const [internal, setInternal] = useState<string | null>(defaultValue);\n const value = valueProp === undefined ? internal : valueProp;\n const voted = value !== null;\n const play = useSound(selectSound, { enabled: sound });\n\n // Remember the vote before this one: a first vote fills in a wave, a\n // moved vote shifts every bar together.\n const [last, setLast] = useState(value);\n const [from, setFrom] = useState<string | null>(value);\n if (last !== value) {\n setFrom(last);\n setLast(value);\n }\n const moved = from !== null && voted;\n\n const base = options.reduce((sum, option) => sum + option.votes, 0);\n const total = base + (voted ? 1 : 0);\n const share = (option: PollOption) =>\n total === 0 ? 0 : ((option.votes + (option.id === value ? 1 : 0)) / total) * 100;\n const chosen = options.find((option) => option.id === value);\n const chosenIndex = options.findIndex((option) => option.id === value);\n\n return (\n <fieldset\n aria-label={t(\"poll\")}\n className={cn(\"flex w-full max-w-xs min-w-0 flex-col gap-2\", className)}\n >\n {options.map((option, index) => {\n const mine = option.id === value;\n const percent = voted ? share(option) : 0;\n // Your row leads; the others follow in order.\n const order = mine ? 0 : index < chosenIndex ? index + 1 : index;\n const delay = reduce || moved || !voted ? 0 : order * STAGGER;\n return (\n <motion.button\n key={option.id}\n type=\"button\"\n aria-pressed={mine}\n aria-label={\n voted\n ? t(\"percent\", { label: option.label, percent: Math.round(percent) })\n : option.label\n }\n whileTap={reduce || mine ? undefined : { scale: 0.98 }}\n transition={SPRING_PRESS}\n onClick={() => {\n if (mine) return;\n play();\n if (valueProp === undefined) setInternal(option.id);\n onValueChange?.(option.id);\n }}\n className={cn(\n \"relative isolate flex h-10 items-center justify-between gap-3 overflow-hidden rounded-full border px-3 text-left text-sm transition-colors duration-200\",\n \"focus-visible:ring-ring/50 focus-visible:ring-2 focus-visible:outline-none\",\n mine\n ? \"border-primary/40 text-foreground font-medium\"\n : \"border-border text-foreground\",\n !voted && \"hover:bg-muted/60\",\n )}\n >\n {/* The bar: a full-width layer scaled from the left to its share. */}\n <motion.span\n aria-hidden=\"true\"\n className={cn(\n \"absolute inset-0 -z-10 origin-left transition-colors duration-200\",\n mine ? \"bg-primary/15\" : \"bg-muted\",\n )}\n initial={false}\n animate={{ scaleX: percent / 100 }}\n transition={reduce ? { duration: 0 } : voted ? { ...SPRING_LAYOUT, delay } : DRAIN}\n />\n <span className=\"flex min-w-0 items-center gap-2.5\">\n <Mark on={mine} reduce={reduce} />\n <span className=\"truncate\">{option.label}</span>\n </span>\n {/* The share slides in from the right as it starts counting. */}\n <motion.span\n aria-hidden=\"true\"\n className={cn(\"shrink-0\", mine ? \"text-primary\" : \"text-muted-foreground\")}\n initial={false}\n animate={{ opacity: voted ? 1 : 0, x: voted || reduce ? 0 : 6 }}\n transition={voted ? { ...FADE, delay } : { duration: 0.14, ease: EASE_IN }}\n >\n <Count\n value={percent}\n delay={delay}\n reduce={reduce}\n format={(current) => `${current}%`}\n />\n </motion.span>\n </motion.button>\n );\n })}\n <span className=\"text-muted-foreground px-1 text-xs\">\n <Count value={total} delay={0} reduce={reduce} format={(count) => t(\"votes\", { count })} />\n </span>\n <span aria-live=\"polite\" className=\"sr-only\">\n {chosen ? t(\"voted\", { label: chosen.label }) : \"\"}\n </span>\n </fieldset>\n );\n}\n"],"mappings":";;;;;;;;;;AAWA,MAAa,mBAAmB;CAC9B,MAAM;CACN,SAAS;CACT,OAAO;CACP,OAAO;AACT;AA+BA,MAAM,UAAU;AAChB,MAAM,QAAQ;CAAE,UAAU;CAAK,MAAM;AAAS;AAC9C,MAAM,OAAO;CAAE,UAAU;CAAM,MAAM;CAAU,OAAO;AAAK;AAC3D,MAAM,OAAO;CAAE,UAAU;CAAK,MAAM;AAAS;AAE7C,MAAM,QAAQ;CAAE,UAAU;CAAM,MAAM;AAAQ;;AAG9C,SAAS,MAAM,EACb,OACA,OACA,QACA,UAMC;CACD,MAAM,QAAQ,eAAe,KAAK;CAClC,MAAM,OAAO,aAAa,QAAQ,YAAY,OAAO,KAAK,MAAM,OAAO,CAAC,CAAC;CACzE,gBAAgB;EACd,MAAM,WAAW,QAAQ,OAAO,OAA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eAAY;OACZ,WAAW,GACT,qEACA,OAAO,kBAAkB,UAC3B;OACA,SAAS;OACT,SAAS,EAAE,QAAQ,UAAU,IAAI;OACjC,YAAY,SAAS,EAAE,UAAU,EAAE,IAAI,QAAQ;QAAE,GAAG;QAAe;OAAM,IAAI;MAC9E,CAAA;MACD,qBAAC,QAAD;OAAM,WAAU;OAAhB,UAAA,CACE,oBAAC,MAAD;QAAM,IAAI;QAAc;OAAS,CAAA,GACjC,oBAAC,QAAD;QAAM,WAAU;QAAY,UAAA,OAAO;OAAY,CAAA,CAC3C;;MAEN,oBAAC,OAAO,MAAR;OACE,eAAY;OACZ,WAAW,GAAG,YAAY,OAAO,iBAAiB,uBAAuB;OACzE,SAAS;OACT,SAAS;QAAE,SAAS,QAAQ,IAAI;QAAG,GAAG,SAAS,SAAS,IAAI;OAAE;OAC9D,YAAY,QAAQ;QAAE,GAAG;QAAM;OAAM,IAAI;QAAE,UAAU;QAAM,MAAM;OAAQ;OAEzE,UAAA,oBAAC,OAAD;QACE,OAAO;QACA;QACC;QACR,SAAS,YAAY,GAAG,QAAQ;OACjC,CAAA;MACU,CAAA;KACA;IAvDR,GAAA,OAAO,EAuDC;GAEnB,CAAC;GACD,oBAAC,QAAD;IAAM,WAAU;IACd,UAAA,oBAAC,OAAD;KAAO,OAAO;KAAO,OAAO;KAAW;KAAQ,SAAS,UAAU,EAAE,SAAS,EAAE,MAAM,CAAC;IAAI,CAAA;GACtF,CAAA;GACN,oBAAC,QAAD;IAAM,aAAU;IAAS,WAAU;IAChC,UAAA,SAAS,EAAE,SAAS,EAAE,OAAO,OAAO,MAAM,CAAC,IAAI;GAC5C,CAAA;EACE;;AAEd"}
@@ -1,50 +1,2 @@
1
- import { ReactElement, ReactNode, RefObject } from "react";
2
- type Side = "top" | "bottom";
3
- type Align = "start" | "end";
4
- export interface MorphPopoverProps {
5
- children: ReactNode;
6
- /** Controlled open state. */
7
- open?: boolean;
8
- /** Uncontrolled initial open state. */
9
- defaultOpen?: boolean;
10
- onOpenChange?: (open: boolean) => void;
11
- className?: string;
12
- }
13
- /**
14
- * A popover whose full-size panel reveals from the corner nearest the trigger
15
- * on one spring, then retraces the same clip on close. Content and surface
16
- * edges keep their size throughout. Closes on outside pointer / Escape.
17
- * Controlled or uncontrolled.
18
- */
19
- export declare function MorphPopover({ children, open: controlledOpen, defaultOpen, onOpenChange, className }: MorphPopoverProps): import("react").JSX.Element;
20
- export interface MorphPopoverTriggerProps {
21
- children: ReactElement;
22
- }
23
- /** Wraps a single element, toggling the popover on click. */
24
- export declare function MorphPopoverTrigger({ children }: MorphPopoverTriggerProps): ReactElement<Record<string, unknown>, string | import("react").JSXElementConstructor<any>>;
25
- export interface MorphPopoverContentProps {
26
- children: ReactNode;
27
- side?: Side;
28
- align?: Align;
29
- /** Gap between trigger and panel, in px. Default 8. */
30
- sideOffset?: number;
31
- /** Panel corner radius, in px. Default 16. */
32
- radius?: number;
33
- /** Draw the surface shadow. Default true. */
34
- shadow?: boolean;
35
- /**
36
- * Runs after the portalled surface is positioned and visible. Passing it
37
- * hands focus to the caller: the panel then moves no focus on its own.
38
- */
39
- onOpenAutoFocus?: (content: HTMLDivElement) => void;
40
- /**
41
- * Element to focus when the trigger opens the panel by keyboard. Defaults
42
- * to the first focusable element in the panel, or the panel itself. A
43
- * pointer open does not move focus. Ignored with `onOpenAutoFocus`.
44
- */
45
- initialFocus?: RefObject<HTMLElement | null>;
46
- className?: string;
47
- }
48
- export declare function MorphPopoverContent(props: MorphPopoverContentProps): import("react").ReactPortal | null;
49
- export {};
50
- //# sourceMappingURL=popover-morph.d.ts.map
1
+ import { a as MorphPopoverTrigger, i as MorphPopoverProps, n as MorphPopoverContent, o as MorphPopoverTriggerProps, r as MorphPopoverContentProps, t as MorphPopover } from "../../popover-morph-CWb4N9ux.js";
2
+ export { MorphPopover, MorphPopoverContent, MorphPopoverContentProps, MorphPopoverProps, MorphPopoverTrigger, MorphPopoverTriggerProps };