@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.
- package/README.md +72 -46
- package/dist/{account-avatar--0_0u0WW.js → account-avatar-BHh_21aQ.js} +1 -1
- package/dist/account-avatar-BHh_21aQ.js.map +1 -0
- package/dist/animated-sidebar-CPdrqoGi.js +310 -0
- package/dist/animated-sidebar-CPdrqoGi.js.map +1 -0
- package/dist/animated-toast-stack-Cbdphi9x.d.ts +62 -0
- package/dist/animated-toast-stack-Cbdphi9x.d.ts.map +1 -0
- package/dist/animated-toast-stack-YcjQ2Uaw.js +568 -0
- package/dist/animated-toast-stack-YcjQ2Uaw.js.map +1 -0
- package/dist/{cascader-types-Bh_kJ3Qw.d.ts → cascader-types-D2DFznHz.d.ts} +5 -5
- package/dist/cascader-types-D2DFznHz.d.ts.map +1 -0
- package/dist/components/agents/agent-activity/activity-row.d.ts +3 -2
- package/dist/components/agents/agent-activity/activity-row.d.ts.map +1 -1
- package/dist/components/agents/agent-activity/activity-row.js +54 -40
- package/dist/components/agents/agent-activity/activity-row.js.map +1 -1
- package/dist/components/agents/agent-activity.d.ts +4 -0
- package/dist/components/agents/agent-activity.d.ts.map +1 -0
- package/dist/components/agents/{agent-activity/index.js → agent-activity.js} +84 -52
- package/dist/components/agents/agent-activity.js.map +1 -0
- package/dist/components/agents/agent-code.d.ts.map +1 -1
- package/dist/components/agents/agent-code.js +43 -17
- package/dist/components/agents/agent-code.js.map +1 -1
- package/dist/components/agents/agent-disclosure.d.ts +7 -2
- package/dist/components/agents/agent-disclosure.d.ts.map +1 -1
- package/dist/components/agents/agent-disclosure.js +17 -5
- package/dist/components/agents/agent-disclosure.js.map +1 -1
- package/dist/components/agents/ai-sidebar/marquee-label.d.ts +6 -0
- package/dist/components/agents/ai-sidebar/marquee-label.d.ts.map +1 -0
- package/dist/components/agents/ai-sidebar/marquee-label.js +55 -0
- package/dist/components/agents/ai-sidebar/marquee-label.js.map +1 -0
- package/dist/components/agents/ai-sidebar/resource-menu-action.d.ts +8 -0
- package/dist/components/agents/ai-sidebar/resource-menu-action.d.ts.map +1 -0
- package/dist/components/agents/ai-sidebar/resource-menu-action.js +20 -0
- package/dist/components/agents/ai-sidebar/resource-menu-action.js.map +1 -0
- package/dist/components/agents/ai-sidebar/resource-row.d.ts +32 -0
- package/dist/components/agents/ai-sidebar/resource-row.d.ts.map +1 -0
- package/dist/components/agents/ai-sidebar/resource-row.js +2 -0
- package/dist/components/agents/ai-sidebar.d.ts +3 -53
- package/dist/components/agents/ai-sidebar.d.ts.map +1 -1
- package/dist/components/agents/ai-sidebar.js +54 -338
- package/dist/components/agents/ai-sidebar.js.map +1 -1
- package/dist/components/agents/approval-card.d.ts +101 -0
- package/dist/components/agents/approval-card.d.ts.map +1 -0
- package/dist/components/agents/approval-card.js +416 -0
- package/dist/components/agents/approval-card.js.map +1 -0
- package/dist/components/agents/chat-app.d.ts +1 -1
- package/dist/components/agents/chat-app.d.ts.map +1 -1
- package/dist/components/agents/chat-app.js +9 -6
- package/dist/components/agents/chat-app.js.map +1 -1
- package/dist/components/agents/citations.d.ts +32 -2
- package/dist/components/agents/citations.d.ts.map +1 -1
- package/dist/components/agents/citations.js +68 -16
- package/dist/components/agents/citations.js.map +1 -1
- package/dist/components/agents/clip-resize-frame.d.ts +31 -0
- package/dist/components/agents/clip-resize-frame.d.ts.map +1 -0
- package/dist/components/agents/clip-resize-frame.js +103 -0
- package/dist/components/agents/clip-resize-frame.js.map +1 -0
- package/dist/components/agents/code-block.d.ts +22 -2
- package/dist/components/agents/code-block.d.ts.map +1 -1
- package/dist/components/agents/code-block.js +49 -31
- package/dist/components/agents/code-block.js.map +1 -1
- package/dist/components/agents/context-meter.d.ts +53 -0
- package/dist/components/agents/context-meter.d.ts.map +1 -0
- package/dist/components/agents/context-meter.js +443 -0
- package/dist/components/agents/context-meter.js.map +1 -0
- package/dist/components/agents/file-diff.d.ts +30 -2
- package/dist/components/agents/file-diff.d.ts.map +1 -1
- package/dist/components/agents/file-diff.js +129 -86
- package/dist/components/agents/file-diff.js.map +1 -1
- package/dist/components/agents/icon-swap.d.ts +14 -0
- package/dist/components/agents/icon-swap.d.ts.map +1 -0
- package/dist/components/agents/icon-swap.js +41 -0
- package/dist/components/agents/icon-swap.js.map +1 -0
- package/dist/components/agents/image-generation.d.ts +25 -1
- package/dist/components/agents/image-generation.d.ts.map +1 -1
- package/dist/components/agents/image-generation.js +33 -23
- package/dist/components/agents/image-generation.js.map +1 -1
- package/dist/components/agents/loading-states/agent-progress.d.ts +5 -1
- package/dist/components/agents/loading-states/agent-progress.d.ts.map +1 -1
- package/dist/components/agents/loading-states/agent-progress.js +30 -9
- package/dist/components/agents/loading-states/agent-progress.js.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.d.ts +5 -1
- package/dist/components/agents/loading-states/reasoning-text.d.ts.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.js +44 -19
- package/dist/components/agents/loading-states/reasoning-text.js.map +1 -1
- package/dist/components/agents/loading-states/thinking-shimmer.d.ts +5 -1
- package/dist/components/agents/loading-states/thinking-shimmer.d.ts.map +1 -1
- package/dist/components/agents/loading-states/thinking-shimmer.js +6 -3
- package/dist/components/agents/loading-states/thinking-shimmer.js.map +1 -1
- package/dist/components/agents/message-bubble.d.ts +19 -1
- package/dist/components/agents/message-bubble.d.ts.map +1 -1
- package/dist/components/agents/message-bubble.js +74 -46
- package/dist/components/agents/message-bubble.js.map +1 -1
- package/dist/components/agents/message-scroller.d.ts +21 -1
- package/dist/components/agents/message-scroller.d.ts.map +1 -1
- package/dist/components/agents/message-scroller.js +108 -24
- package/dist/components/agents/message-scroller.js.map +1 -1
- package/dist/components/agents/message.d.ts +14 -3
- package/dist/components/agents/message.d.ts.map +1 -1
- package/dist/components/agents/message.js +20 -12
- package/dist/components/agents/message.js.map +1 -1
- package/dist/components/agents/prompt-input.d.ts +53 -1
- package/dist/components/agents/prompt-input.d.ts.map +1 -1
- package/dist/components/agents/prompt-input.js +371 -97
- package/dist/components/agents/prompt-input.js.map +1 -1
- package/dist/components/agents/streaming-response.d.ts +27 -2
- package/dist/components/agents/streaming-response.d.ts.map +1 -1
- package/dist/components/agents/streaming-response.js +59 -44
- package/dist/components/agents/streaming-response.js.map +1 -1
- package/dist/components/agents/todo-list.d.ts +28 -1
- package/dist/components/agents/todo-list.d.ts.map +1 -1
- package/dist/components/agents/todo-list.js +149 -121
- package/dist/components/agents/todo-list.js.map +1 -1
- package/dist/components/agents/tool-approval.d.ts +38 -2
- package/dist/components/agents/tool-approval.d.ts.map +1 -1
- package/dist/components/agents/tool-approval.js +75 -41
- package/dist/components/agents/tool-approval.js.map +1 -1
- package/dist/components/agents/tool-result.d.ts +33 -2
- package/dist/components/agents/tool-result.d.ts.map +1 -1
- package/dist/components/agents/tool-result.js +66 -71
- package/dist/components/agents/tool-result.js.map +1 -1
- package/dist/components/agents/voice-note.d.ts +37 -0
- package/dist/components/agents/voice-note.d.ts.map +1 -0
- package/dist/components/agents/voice-note.js +326 -0
- package/dist/components/agents/voice-note.js.map +1 -0
- package/dist/components/agents/voice-orb.d.ts +7 -1
- package/dist/components/agents/voice-orb.d.ts.map +1 -1
- package/dist/components/agents/voice-orb.js +8 -5
- package/dist/components/agents/voice-orb.js.map +1 -1
- package/dist/components/charts/bar-chart/context.d.ts +29 -6
- package/dist/components/charts/bar-chart/context.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/context.js +18 -5
- package/dist/components/charts/bar-chart/context.js.map +1 -1
- package/dist/components/charts/bar-chart/legend.d.ts +1 -0
- package/dist/components/charts/bar-chart/legend.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/legend.js +2 -2
- package/dist/components/charts/bar-chart/legend.js.map +1 -1
- package/dist/components/charts/bar-chart/plot.d.ts +2 -0
- package/dist/components/charts/bar-chart/plot.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/plot.js +23 -13
- package/dist/components/charts/bar-chart/plot.js.map +1 -1
- package/dist/components/charts/bar-chart/tooltip.d.ts +3 -1
- package/dist/components/charts/bar-chart/tooltip.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/tooltip.js +5 -4
- package/dist/components/charts/bar-chart/tooltip.js.map +1 -1
- package/dist/components/charts/bar-chart.d.ts +5 -4
- package/dist/components/charts/bar-chart.d.ts.map +1 -1
- package/dist/components/charts/bar-chart.js +9 -6
- package/dist/components/charts/bar-chart.js.map +1 -1
- package/dist/components/charts/bump-chart/context.d.ts +1 -1
- package/dist/components/charts/bump-chart/context.js +1 -1
- package/dist/components/charts/bump-chart/legend.js +8 -8
- package/dist/components/charts/bump-chart/legend.js.map +1 -1
- package/dist/components/charts/bump-chart/plot.js +1 -1
- package/dist/components/charts/bump-chart/point.d.ts +1 -1
- package/dist/components/charts/bump-chart/point.js +18 -16
- package/dist/components/charts/bump-chart/point.js.map +1 -1
- package/dist/components/charts/bump-chart/series.d.ts +2 -2
- package/dist/components/charts/bump-chart/series.js +4 -4
- package/dist/components/charts/bump-chart/series.js.map +1 -1
- package/dist/components/charts/bump-chart.d.ts +2 -2
- package/dist/components/charts/bump-chart.d.ts.map +1 -1
- package/dist/components/charts/bump-chart.js +4 -4
- package/dist/components/charts/bump-chart.js.map +1 -1
- package/dist/components/charts/candlestick-chart/context.d.ts +29 -1
- package/dist/components/charts/candlestick-chart/context.d.ts.map +1 -1
- package/dist/components/charts/candlestick-chart/context.js +17 -3
- package/dist/components/charts/candlestick-chart/context.js.map +1 -1
- package/dist/components/charts/candlestick-chart/legend.d.ts +1 -1
- package/dist/components/charts/candlestick-chart/legend.js +10 -10
- package/dist/components/charts/candlestick-chart/legend.js.map +1 -1
- package/dist/components/charts/candlestick-chart/plot.d.ts.map +1 -1
- package/dist/components/charts/candlestick-chart/plot.js +17 -18
- package/dist/components/charts/candlestick-chart/plot.js.map +1 -1
- package/dist/components/charts/candlestick-chart.d.ts +2 -2
- package/dist/components/charts/candlestick-chart.js +3 -3
- package/dist/components/charts/candlestick-chart.js.map +1 -1
- package/dist/components/charts/composition-chart/context.d.ts +1 -1
- package/dist/components/charts/composition-chart/context.js +1 -1
- package/dist/components/charts/composition-chart/legend.js +5 -5
- package/dist/components/charts/composition-chart/legend.js.map +1 -1
- package/dist/components/charts/composition-chart/plot.js +9 -9
- package/dist/components/charts/composition-chart/plot.js.map +1 -1
- package/dist/components/charts/composition-chart/tooltip-content.js +4 -4
- package/dist/components/charts/composition-chart/tooltip-content.js.map +1 -1
- package/dist/components/charts/composition-chart.d.ts +2 -2
- package/dist/components/charts/composition-chart.js +3 -3
- package/dist/components/charts/composition-chart.js.map +1 -1
- package/dist/components/charts/donut-chart/center.d.ts +1 -1
- package/dist/components/charts/donut-chart/center.d.ts.map +1 -1
- package/dist/components/charts/donut-chart/center.js +7 -7
- package/dist/components/charts/donut-chart/center.js.map +1 -1
- package/dist/components/charts/donut-chart/context.d.ts +18 -2
- package/dist/components/charts/donut-chart/context.d.ts.map +1 -1
- package/dist/components/charts/donut-chart/context.js +1 -1
- package/dist/components/charts/donut-chart/legend.d.ts +1 -1
- package/dist/components/charts/donut-chart/legend.js +3 -3
- package/dist/components/charts/donut-chart/plot.js +3 -3
- package/dist/components/charts/donut-chart.d.ts +3 -3
- package/dist/components/charts/donut-chart.js +3 -3
- package/dist/components/charts/donut-chart.js.map +1 -1
- package/dist/components/charts/funnel-chart.d.ts +27 -1
- package/dist/components/charts/funnel-chart.d.ts.map +1 -1
- package/dist/components/charts/funnel-chart.js +52 -37
- package/dist/components/charts/funnel-chart.js.map +1 -1
- package/dist/components/charts/heat-calendar/grid.js +13 -6
- package/dist/components/charts/heat-calendar/grid.js.map +1 -1
- package/dist/components/charts/heat-calendar/legend.js +9 -6
- package/dist/components/charts/heat-calendar/legend.js.map +1 -1
- package/dist/components/charts/heat-calendar/tooltip.d.ts +1 -1
- package/dist/components/charts/heat-calendar/tooltip.js +10 -7
- package/dist/components/charts/heat-calendar/tooltip.js.map +1 -1
- package/dist/components/charts/heat-calendar.d.ts +2 -2
- package/dist/components/charts/heat-calendar.js +3 -3
- package/dist/components/charts/heat-calendar.js.map +1 -1
- package/dist/components/charts/line-chart/context.d.ts +29 -4
- package/dist/components/charts/line-chart/context.d.ts.map +1 -1
- package/dist/components/charts/line-chart/context.js +21 -6
- package/dist/components/charts/line-chart/context.js.map +1 -1
- package/dist/components/charts/line-chart/legend.d.ts +1 -0
- package/dist/components/charts/line-chart/legend.d.ts.map +1 -1
- package/dist/components/charts/line-chart/legend.js +2 -2
- package/dist/components/charts/line-chart/legend.js.map +1 -1
- package/dist/components/charts/line-chart/plot.d.ts +2 -0
- package/dist/components/charts/line-chart/plot.d.ts.map +1 -1
- package/dist/components/charts/line-chart/plot.js +27 -17
- package/dist/components/charts/line-chart/plot.js.map +1 -1
- package/dist/components/charts/line-chart/tooltip.d.ts +2 -1
- package/dist/components/charts/line-chart/tooltip.d.ts.map +1 -1
- package/dist/components/charts/line-chart/tooltip.js +7 -6
- package/dist/components/charts/line-chart/tooltip.js.map +1 -1
- package/dist/components/charts/line-chart.d.ts +6 -5
- package/dist/components/charts/line-chart.d.ts.map +1 -1
- package/dist/components/charts/line-chart.js +9 -6
- package/dist/components/charts/line-chart.js.map +1 -1
- package/dist/components/charts/liquidity-heatmap.d.ts +25 -1
- package/dist/components/charts/liquidity-heatmap.d.ts.map +1 -1
- package/dist/components/charts/liquidity-heatmap.js +55 -30
- package/dist/components/charts/liquidity-heatmap.js.map +1 -1
- package/dist/components/charts/order-book/depth-row.d.ts +1 -1
- package/dist/components/charts/order-book/depth-row.js +2 -2
- package/dist/components/charts/order-book.d.ts +38 -1
- package/dist/components/charts/order-book.d.ts.map +1 -1
- package/dist/components/charts/order-book.js +88 -37
- package/dist/components/charts/order-book.js.map +1 -1
- package/dist/components/charts/price-target-fan/header.js +6 -6
- package/dist/components/charts/price-target-fan/header.js.map +1 -1
- package/dist/components/charts/price-target-fan/plot.d.ts.map +1 -1
- package/dist/components/charts/price-target-fan/plot.js +21 -11
- package/dist/components/charts/price-target-fan/plot.js.map +1 -1
- package/dist/components/charts/price-target-fan/series.d.ts.map +1 -1
- package/dist/components/charts/price-target-fan/series.js +11 -7
- package/dist/components/charts/price-target-fan/series.js.map +1 -1
- package/dist/components/charts/price-target-fan/tooltip.d.ts +1 -1
- package/dist/components/charts/price-target-fan/tooltip.js +3 -3
- package/dist/components/charts/price-target-fan/tooltip.js.map +1 -1
- package/dist/components/charts/price-target-fan.d.ts +2 -2
- package/dist/components/charts/price-target-fan.js +4 -4
- package/dist/components/charts/price-target-fan.js.map +1 -1
- package/dist/components/charts/returns-calendar/grid.js +25 -15
- package/dist/components/charts/returns-calendar/grid.js.map +1 -1
- package/dist/components/charts/returns-calendar/tooltip.d.ts +1 -1
- package/dist/components/charts/returns-calendar/tooltip.js +3 -3
- package/dist/components/charts/returns-calendar/tooltip.js.map +1 -1
- package/dist/components/charts/returns-calendar.d.ts +9 -2
- package/dist/components/charts/returns-calendar.d.ts.map +1 -1
- package/dist/components/charts/returns-calendar.js +3 -3
- package/dist/components/charts/returns-calendar.js.map +1 -1
- package/dist/components/charts/sankey-chart/context.d.ts +1 -1
- package/dist/components/charts/sankey-chart/context.js +1 -1
- package/dist/components/charts/sankey-chart/plot.d.ts.map +1 -1
- package/dist/components/charts/sankey-chart/plot.js +18 -37
- package/dist/components/charts/sankey-chart/plot.js.map +1 -1
- package/dist/components/charts/sankey-chart/tooltip.d.ts +3 -1
- package/dist/components/charts/sankey-chart/tooltip.d.ts.map +1 -1
- package/dist/components/charts/sankey-chart/tooltip.js +16 -19
- package/dist/components/charts/sankey-chart/tooltip.js.map +1 -1
- package/dist/components/charts/sankey-chart.d.ts +3 -3
- package/dist/components/charts/sankey-chart.d.ts.map +1 -1
- package/dist/components/charts/sankey-chart.js +16 -15
- package/dist/components/charts/sankey-chart.js.map +1 -1
- package/dist/components/charts/sparkline.d.ts +23 -2
- package/dist/components/charts/sparkline.d.ts.map +1 -1
- package/dist/components/charts/sparkline.js +36 -16
- package/dist/components/charts/sparkline.js.map +1 -1
- package/dist/components/charts/status-bar/legend.d.ts +1 -0
- package/dist/components/charts/status-bar/legend.d.ts.map +1 -1
- package/dist/components/charts/status-bar/legend.js +3 -3
- package/dist/components/charts/status-bar/legend.js.map +1 -1
- package/dist/components/charts/status-bar/plot.d.ts +2 -0
- package/dist/components/charts/status-bar/plot.d.ts.map +1 -1
- package/dist/components/charts/status-bar/plot.js +6 -6
- package/dist/components/charts/status-bar/plot.js.map +1 -1
- package/dist/components/charts/status-bar/tooltip.d.ts +1 -1
- package/dist/components/charts/status-bar/tooltip.js +2 -2
- package/dist/components/charts/status-bar/tooltip.js.map +1 -1
- package/dist/components/charts/status-bar.d.ts +3 -3
- package/dist/components/charts/status-bar.d.ts.map +1 -1
- package/dist/components/charts/status-bar.js +11 -9
- package/dist/components/charts/status-bar.js.map +1 -1
- package/dist/components/charts/treemap/legend.d.ts +2 -0
- package/dist/components/charts/treemap/legend.d.ts.map +1 -1
- package/dist/components/charts/treemap/legend.js +3 -3
- package/dist/components/charts/treemap/legend.js.map +1 -1
- package/dist/components/charts/treemap/plot.d.ts +2 -1
- package/dist/components/charts/treemap/plot.d.ts.map +1 -1
- package/dist/components/charts/treemap/plot.js +8 -21
- package/dist/components/charts/treemap/plot.js.map +1 -1
- package/dist/components/charts/treemap/tile.d.ts +1 -1
- package/dist/components/charts/treemap/tile.js +7 -7
- package/dist/components/charts/treemap/tile.js.map +1 -1
- package/dist/components/charts/treemap/tooltip.d.ts +3 -1
- package/dist/components/charts/treemap/tooltip.d.ts.map +1 -1
- package/dist/components/charts/treemap/tooltip.js +4 -4
- package/dist/components/charts/treemap/tooltip.js.map +1 -1
- package/dist/components/charts/treemap.d.ts +29 -6
- package/dist/components/charts/treemap.d.ts.map +1 -1
- package/dist/components/charts/treemap.js +12 -10
- package/dist/components/charts/treemap.js.map +1 -1
- package/dist/components/charts/volume-profile/plot.d.ts +2 -0
- package/dist/components/charts/volume-profile/plot.d.ts.map +1 -1
- package/dist/components/charts/volume-profile/plot.js +10 -10
- package/dist/components/charts/volume-profile/plot.js.map +1 -1
- package/dist/components/charts/volume-profile/summary.js +16 -22
- package/dist/components/charts/volume-profile/summary.js.map +1 -1
- package/dist/components/charts/volume-profile/tooltip.d.ts +1 -1
- package/dist/components/charts/volume-profile/tooltip.js +6 -6
- package/dist/components/charts/volume-profile/tooltip.js.map +1 -1
- package/dist/components/charts/volume-profile.d.ts +39 -5
- package/dist/components/charts/volume-profile.d.ts.map +1 -1
- package/dist/components/charts/volume-profile.js +18 -22
- package/dist/components/charts/volume-profile.js.map +1 -1
- package/dist/components/charts/xy/axis.js +1 -1
- package/dist/components/charts/xy/data-table.d.ts +4 -2
- package/dist/components/charts/xy/data-table.d.ts.map +1 -1
- package/dist/components/charts/xy/data-table.js +4 -4
- package/dist/components/charts/xy/data-table.js.map +1 -1
- package/dist/components/charts/xy/legend.d.ts +1 -1
- package/dist/components/charts/xy/tooltip-content.d.ts +1 -1
- package/dist/components/charts/xy/tooltip-content.js +5 -5
- package/dist/components/charts/xy/tooltip-content.js.map +1 -1
- package/dist/components/custom/confirm-dialog.js +1 -1
- package/dist/components/custom/toast.d.ts +2 -1
- package/dist/components/custom/toast.d.ts.map +1 -1
- package/dist/components/custom/toast.js +1 -1
- package/dist/components/motion/action-swap.d.ts +19 -0
- package/dist/components/motion/action-swap.d.ts.map +1 -1
- package/dist/components/motion/action-swap.js +2 -2
- package/dist/components/motion/action-swap.js.map +1 -1
- package/dist/components/motion/adaptive-stepper.d.ts +24 -1
- package/dist/components/motion/adaptive-stepper.d.ts.map +1 -1
- package/dist/components/motion/adaptive-stepper.js +28 -23
- package/dist/components/motion/adaptive-stepper.js.map +1 -1
- package/dist/components/motion/add-to-cart.d.ts +38 -0
- package/dist/components/motion/add-to-cart.d.ts.map +1 -0
- package/dist/components/motion/add-to-cart.js +228 -0
- package/dist/components/motion/add-to-cart.js.map +1 -0
- package/dist/components/motion/alert.d.ts +12 -1
- package/dist/components/motion/alert.d.ts.map +1 -1
- package/dist/components/motion/alert.js +18 -12
- package/dist/components/motion/alert.js.map +1 -1
- package/dist/components/motion/animated-badge.d.ts +6 -0
- package/dist/components/motion/animated-badge.d.ts.map +1 -1
- package/dist/components/motion/animated-badge.js +6 -6
- package/dist/components/motion/animated-badge.js.map +1 -1
- package/dist/components/motion/animated-number.d.ts +5 -0
- package/dist/components/motion/animated-number.d.ts.map +1 -1
- package/dist/components/motion/animated-number.js +2 -2
- package/dist/components/motion/animated-number.js.map +1 -1
- package/dist/components/motion/animated-sidebar/menu-button.d.ts +2 -0
- package/dist/components/motion/animated-sidebar/menu-button.js +95 -0
- package/dist/components/motion/animated-sidebar/menu-button.js.map +1 -0
- package/dist/components/motion/animated-sidebar/menu-sub-button.d.ts +2 -0
- package/dist/components/motion/animated-sidebar/menu-sub-button.js +52 -0
- package/dist/components/motion/animated-sidebar/menu-sub-button.js.map +1 -0
- package/dist/components/motion/animated-sidebar/mobile-sidebar.d.ts +9 -0
- package/dist/components/motion/animated-sidebar/mobile-sidebar.d.ts.map +1 -0
- package/dist/components/motion/animated-sidebar/mobile-sidebar.js +73 -0
- package/dist/components/motion/animated-sidebar/mobile-sidebar.js.map +1 -0
- package/dist/components/motion/animated-sidebar.d.ts +20 -47
- package/dist/components/motion/animated-sidebar.d.ts.map +1 -1
- package/dist/components/motion/animated-sidebar.js +5 -619
- package/dist/components/motion/animated-toast-stack/toast-body.d.ts +19 -0
- package/dist/components/motion/animated-toast-stack/toast-body.d.ts.map +1 -0
- package/dist/components/motion/animated-toast-stack/toast-body.js +154 -0
- package/dist/components/motion/animated-toast-stack/toast-body.js.map +1 -0
- package/dist/components/motion/animated-toast-stack.d.ts +3 -62
- package/dist/components/motion/animated-toast-stack.js +1 -302
- package/dist/components/motion/arc-picker.d.ts +11 -1
- package/dist/components/motion/arc-picker.d.ts.map +1 -1
- package/dist/components/motion/arc-picker.js +21 -14
- package/dist/components/motion/arc-picker.js.map +1 -1
- package/dist/components/motion/aspect-ratio.d.ts +1 -0
- package/dist/components/motion/aspect-ratio.d.ts.map +1 -1
- package/dist/components/motion/aspect-ratio.js +2 -2
- package/dist/components/motion/aspect-ratio.js.map +1 -1
- package/dist/components/motion/attachment-upload/attachment-row.d.ts +20 -0
- package/dist/components/motion/attachment-upload/attachment-row.d.ts.map +1 -0
- package/dist/components/motion/attachment-upload/attachment-row.js +224 -0
- package/dist/components/motion/attachment-upload/attachment-row.js.map +1 -0
- package/dist/components/motion/attachment-upload/image-preview-dialog.d.ts +10 -0
- package/dist/components/motion/attachment-upload/image-preview-dialog.d.ts.map +1 -0
- package/dist/components/motion/attachment-upload/image-preview-dialog.js +84 -0
- package/dist/components/motion/attachment-upload/image-preview-dialog.js.map +1 -0
- package/dist/components/motion/attachment-upload/image-thumbnail.d.ts +10 -0
- package/dist/components/motion/attachment-upload/image-thumbnail.d.ts.map +1 -0
- package/dist/components/motion/attachment-upload/image-thumbnail.js +53 -0
- package/dist/components/motion/attachment-upload/image-thumbnail.js.map +1 -0
- package/dist/components/motion/attachment-upload/row-action.d.ts +11 -0
- package/dist/components/motion/attachment-upload/row-action.d.ts.map +1 -0
- package/dist/components/motion/attachment-upload/row-action.js +98 -0
- package/dist/components/motion/attachment-upload/row-action.js.map +1 -0
- package/dist/components/motion/attachment-upload.d.ts +25 -22
- package/dist/components/motion/attachment-upload.d.ts.map +1 -1
- package/dist/components/motion/attachment-upload.js +59 -481
- package/dist/components/motion/attachment-upload.js.map +1 -1
- package/dist/components/motion/availability-scheduler/copy-menu.d.ts +5 -2
- package/dist/components/motion/availability-scheduler/copy-menu.d.ts.map +1 -1
- package/dist/components/motion/availability-scheduler/copy-menu.js +1 -1
- package/dist/components/motion/availability-scheduler/day-row.d.ts +4 -2
- package/dist/components/motion/availability-scheduler/day-row.d.ts.map +1 -1
- package/dist/components/motion/availability-scheduler/day-row.js +23 -15
- package/dist/components/motion/availability-scheduler/day-row.js.map +1 -1
- package/dist/components/motion/availability-scheduler/icon-button.js +3 -3
- package/dist/components/motion/availability-scheduler/icon-button.js.map +1 -1
- package/dist/components/motion/availability-scheduler/time-select.d.ts +1 -1
- package/dist/components/motion/availability-scheduler.d.ts +19 -0
- package/dist/components/motion/availability-scheduler.d.ts.map +1 -0
- package/dist/components/motion/{availability-scheduler/index.js → availability-scheduler.js} +31 -9
- package/dist/components/motion/availability-scheduler.js.map +1 -0
- package/dist/components/motion/avatar-group.d.ts +20 -2
- package/dist/components/motion/avatar-group.d.ts.map +1 -1
- package/dist/components/motion/avatar-group.js +20 -11
- package/dist/components/motion/avatar-group.js.map +1 -1
- package/dist/components/motion/before-after-slider.d.ts +38 -0
- package/dist/components/motion/before-after-slider.d.ts.map +1 -0
- package/dist/components/motion/before-after-slider.js +351 -0
- package/dist/components/motion/before-after-slider.js.map +1 -0
- package/dist/components/motion/bloom-menu.d.ts +20 -1
- package/dist/components/motion/bloom-menu.d.ts.map +1 -1
- package/dist/components/motion/bloom-menu.js +42 -35
- package/dist/components/motion/bloom-menu.js.map +1 -1
- package/dist/components/motion/bookmark-button.d.ts +30 -0
- package/dist/components/motion/bookmark-button.d.ts.map +1 -0
- package/dist/components/motion/bookmark-button.js +107 -0
- package/dist/components/motion/bookmark-button.js.map +1 -0
- package/dist/components/motion/bookshelf.d.ts +53 -0
- package/dist/components/motion/bookshelf.d.ts.map +1 -0
- package/dist/components/motion/bookshelf.js +518 -0
- package/dist/components/motion/bookshelf.js.map +1 -0
- package/dist/components/motion/bottom-sheet.d.ts +15 -1
- package/dist/components/motion/bottom-sheet.d.ts.map +1 -1
- package/dist/components/motion/bottom-sheet.js +22 -43
- package/dist/components/motion/bottom-sheet.js.map +1 -1
- package/dist/components/motion/bounce-sidebar.d.ts +24 -1
- package/dist/components/motion/bounce-sidebar.d.ts.map +1 -1
- package/dist/components/motion/bounce-sidebar.js +8 -4
- package/dist/components/motion/bounce-sidebar.js.map +1 -1
- package/dist/components/motion/bouncy-accordion.d.ts +20 -0
- package/dist/components/motion/bouncy-accordion.d.ts.map +1 -1
- package/dist/components/motion/bouncy-accordion.js +39 -16
- package/dist/components/motion/bouncy-accordion.js.map +1 -1
- package/dist/components/motion/breadcrumb.d.ts +13 -2
- package/dist/components/motion/breadcrumb.d.ts.map +1 -1
- package/dist/components/motion/breadcrumb.js +34 -20
- package/dist/components/motion/breadcrumb.js.map +1 -1
- package/dist/components/motion/button/base.d.ts +8 -0
- package/dist/components/motion/button/base.d.ts.map +1 -1
- package/dist/components/motion/button/base.js +17 -12
- package/dist/components/motion/button/base.js.map +1 -1
- package/dist/components/motion/button/magnetic.js +1 -1
- package/dist/components/motion/button/metallic.d.ts.map +1 -1
- package/dist/components/motion/button/metallic.js +11 -10
- package/dist/components/motion/button/metallic.js.map +1 -1
- package/dist/components/motion/button/stateful.d.ts +15 -1
- package/dist/components/motion/button/stateful.d.ts.map +1 -1
- package/dist/components/motion/button/stateful.js +14 -7
- package/dist/components/motion/button/stateful.js.map +1 -1
- package/dist/components/motion/button.d.ts +5 -0
- package/dist/components/motion/button.js +6 -0
- package/dist/components/motion/card-dealer.d.ts +10 -1
- package/dist/components/motion/card-dealer.d.ts.map +1 -1
- package/dist/components/motion/card-dealer.js +9 -5
- package/dist/components/motion/card-dealer.js.map +1 -1
- package/dist/components/motion/card-folder.d.ts +32 -1
- package/dist/components/motion/card-folder.d.ts.map +1 -1
- package/dist/components/motion/card-folder.js +36 -20
- package/dist/components/motion/card-folder.js.map +1 -1
- package/dist/components/motion/card.js +3 -3
- package/dist/components/motion/card.js.map +1 -1
- package/dist/components/motion/casino/game-parts.d.ts +2 -0
- package/dist/components/motion/casino/game-parts.js +207 -0
- package/dist/components/motion/casino/game-parts.js.map +1 -0
- package/dist/components/motion/center-morph-modal.d.ts +13 -1
- package/dist/components/motion/center-morph-modal.d.ts.map +1 -1
- package/dist/components/motion/center-morph-modal.js +85 -101
- package/dist/components/motion/center-morph-modal.js.map +1 -1
- package/dist/components/motion/checkbox.d.ts +17 -1
- package/dist/components/motion/checkbox.d.ts.map +1 -1
- package/dist/components/motion/checkbox.js +12 -5
- package/dist/components/motion/checkbox.js.map +1 -1
- package/dist/components/motion/chromatic-text-reveal.js +5 -5
- package/dist/components/motion/chromatic-text-reveal.js.map +1 -1
- package/dist/components/motion/click-burst.d.ts +24 -0
- package/dist/components/motion/click-burst.d.ts.map +1 -0
- package/dist/components/motion/click-burst.js +133 -0
- package/dist/components/motion/click-burst.js.map +1 -0
- package/dist/components/motion/collapsible.d.ts +4 -0
- package/dist/components/motion/collapsible.d.ts.map +1 -1
- package/dist/components/motion/collapsible.js +4 -4
- package/dist/components/motion/collapsible.js.map +1 -1
- package/dist/components/motion/color-picker.d.ts +29 -21
- package/dist/components/motion/color-picker.d.ts.map +1 -1
- package/dist/components/motion/color-picker.js +78 -131
- package/dist/components/motion/color-picker.js.map +1 -1
- package/dist/components/motion/color-selector.d.ts +5 -0
- package/dist/components/motion/color-selector.d.ts.map +1 -1
- package/dist/components/motion/color-selector.js +2 -2
- package/dist/components/motion/color-selector.js.map +1 -1
- package/dist/components/motion/combobox/content.d.ts +3 -10
- package/dist/components/motion/combobox/content.d.ts.map +1 -1
- package/dist/components/motion/combobox/content.js +14 -80
- package/dist/components/motion/combobox/content.js.map +1 -1
- package/dist/components/motion/combobox/context.d.ts +3 -66
- package/dist/components/motion/combobox/context.js +1 -216
- package/dist/components/motion/combobox/list.d.ts +12 -0
- package/dist/components/motion/combobox/list.d.ts.map +1 -1
- package/dist/components/motion/combobox/list.js +13 -12
- package/dist/components/motion/combobox/list.js.map +1 -1
- package/dist/components/motion/combobox/listbox-panel.d.ts +2 -0
- package/dist/components/motion/combobox/listbox-panel.js +99 -0
- package/dist/components/motion/combobox/listbox-panel.js.map +1 -0
- package/dist/components/motion/combobox/trigger.d.ts +5 -0
- package/dist/components/motion/combobox/trigger.d.ts.map +1 -1
- package/dist/components/motion/combobox/trigger.js +10 -8
- package/dist/components/motion/combobox/trigger.js.map +1 -1
- package/dist/components/motion/combobox.d.ts +2 -2
- package/dist/components/motion/combobox.js +2 -2
- package/dist/components/motion/command-palette.d.ts +41 -1
- package/dist/components/motion/command-palette.d.ts.map +1 -1
- package/dist/components/motion/command-palette.js +305 -132
- package/dist/components/motion/command-palette.js.map +1 -1
- package/dist/components/motion/confetti.d.ts +23 -0
- package/dist/components/motion/confetti.d.ts.map +1 -0
- package/dist/components/motion/confetti.js +154 -0
- package/dist/components/motion/confetti.js.map +1 -0
- package/dist/components/motion/context-menu.d.ts +33 -1
- package/dist/components/motion/context-menu.d.ts.map +1 -1
- package/dist/components/motion/context-menu.js +126 -122
- package/dist/components/motion/context-menu.js.map +1 -1
- package/dist/components/motion/copy-button.d.ts +27 -0
- package/dist/components/motion/copy-button.d.ts.map +1 -0
- package/dist/components/motion/copy-button.js +129 -0
- package/dist/components/motion/copy-button.js.map +1 -0
- package/dist/components/motion/crash/crash-balloon.d.ts +2 -1
- package/dist/components/motion/crash/crash-balloon.d.ts.map +1 -1
- package/dist/components/motion/crash/crash-balloon.js +13 -11
- package/dist/components/motion/crash/crash-balloon.js.map +1 -1
- package/dist/components/motion/crash/crash-parts.d.ts +3 -7
- package/dist/components/motion/crash/crash-parts.d.ts.map +1 -1
- package/dist/components/motion/crash/crash-parts.js +3 -1
- package/dist/components/motion/crash/crash-tower.d.ts +2 -1
- package/dist/components/motion/crash/crash-tower.d.ts.map +1 -1
- package/dist/components/motion/crash/crash-tower.js +10 -9
- package/dist/components/motion/crash/crash-tower.js.map +1 -1
- package/dist/components/motion/crash.d.ts +2 -1
- package/dist/components/motion/crash.d.ts.map +1 -1
- package/dist/components/motion/crash.js +11 -9
- package/dist/components/motion/crash.js.map +1 -1
- package/dist/components/motion/cylinder-carousel.d.ts +14 -4
- package/dist/components/motion/cylinder-carousel.d.ts.map +1 -1
- package/dist/components/motion/cylinder-carousel.js +14 -8
- package/dist/components/motion/cylinder-carousel.js.map +1 -1
- package/dist/components/motion/date-range-picker/calendar-choices.d.ts +18 -0
- package/dist/components/motion/date-range-picker/calendar-choices.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/calendar-choices.js +62 -0
- package/dist/components/motion/date-range-picker/calendar-choices.js.map +1 -0
- package/dist/components/motion/date-range-picker/calendar-presence.d.ts +5 -0
- package/dist/components/motion/date-range-picker/calendar-presence.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/calendar-presence.js +14 -0
- package/dist/components/motion/date-range-picker/calendar-presence.js.map +1 -0
- package/dist/components/motion/date-range-picker/calendar.d.ts +8 -0
- package/dist/components/motion/date-range-picker/calendar.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/calendar.js +46 -0
- package/dist/components/motion/date-range-picker/calendar.js.map +1 -0
- package/dist/components/motion/date-range-picker/clear.d.ts +4 -0
- package/dist/components/motion/date-range-picker/clear.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/clear.js +23 -0
- package/dist/components/motion/date-range-picker/clear.js.map +1 -0
- package/dist/components/motion/date-range-picker/content.d.ts +7 -0
- package/dist/components/motion/date-range-picker/content.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/content.js +36 -0
- package/dist/components/motion/date-range-picker/content.js.map +1 -0
- package/dist/components/motion/date-range-picker/dropdown.d.ts +12 -0
- package/dist/components/motion/date-range-picker/dropdown.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/dropdown.js +26 -0
- package/dist/components/motion/date-range-picker/dropdown.js.map +1 -0
- package/dist/components/motion/date-range-picker/footer.d.ts +4 -0
- package/dist/components/motion/date-range-picker/footer.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/footer.js +20 -0
- package/dist/components/motion/date-range-picker/footer.js.map +1 -0
- package/dist/components/motion/date-range-picker/grid.d.ts +4 -0
- package/dist/components/motion/date-range-picker/grid.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/grid.js +132 -0
- package/dist/components/motion/date-range-picker/grid.js.map +1 -0
- package/dist/components/motion/date-range-picker/header.d.ts +4 -0
- package/dist/components/motion/date-range-picker/header.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/header.js +85 -0
- package/dist/components/motion/date-range-picker/header.js.map +1 -0
- package/dist/components/motion/date-range-picker/preset.d.ts +10 -0
- package/dist/components/motion/date-range-picker/preset.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/preset.js +25 -0
- package/dist/components/motion/date-range-picker/preset.js.map +1 -0
- package/dist/components/motion/date-range-picker/presets.d.ts +4 -0
- package/dist/components/motion/date-range-picker/presets.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/presets.js +22 -0
- package/dist/components/motion/date-range-picker/presets.js.map +1 -0
- package/dist/components/motion/date-range-picker/root.d.ts +4 -0
- package/dist/components/motion/date-range-picker/root.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/root.js +3 -0
- package/dist/components/motion/date-range-picker/selection.d.ts +4 -0
- package/dist/components/motion/date-range-picker/selection.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/selection.js +17 -0
- package/dist/components/motion/date-range-picker/selection.js.map +1 -0
- package/dist/components/motion/date-range-picker/summary.d.ts +4 -0
- package/dist/components/motion/date-range-picker/summary.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/summary.js +40 -0
- package/dist/components/motion/date-range-picker/summary.js.map +1 -0
- package/dist/components/motion/date-range-picker/trigger.d.ts +7 -0
- package/dist/components/motion/date-range-picker/trigger.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/trigger.js +74 -0
- package/dist/components/motion/date-range-picker/trigger.js.map +1 -0
- package/dist/components/motion/date-range-picker.d.ts +16 -82
- package/dist/components/motion/date-range-picker.d.ts.map +1 -1
- package/dist/components/motion/date-range-picker.js +15 -875
- package/dist/components/motion/date-range-picker.js.map +1 -1
- package/dist/components/motion/delete-button.d.ts +31 -0
- package/dist/components/motion/delete-button.d.ts.map +1 -0
- package/dist/components/motion/delete-button.js +263 -0
- package/dist/components/motion/delete-button.js.map +1 -0
- package/dist/components/motion/digit-swap.d.ts +3 -0
- package/dist/components/motion/digit-swap.d.ts.map +1 -1
- package/dist/components/motion/digit-swap.js +2 -2
- package/dist/components/motion/digit-swap.js.map +1 -1
- package/dist/components/motion/dock.d.ts +4 -0
- package/dist/components/motion/dock.d.ts.map +1 -1
- package/dist/components/motion/dock.js +4 -4
- package/dist/components/motion/dock.js.map +1 -1
- package/dist/components/motion/download-button.d.ts +29 -0
- package/dist/components/motion/download-button.d.ts.map +1 -0
- package/dist/components/motion/download-button.js +305 -0
- package/dist/components/motion/download-button.js.map +1 -0
- package/dist/components/motion/drawer.d.ts +17 -2
- package/dist/components/motion/drawer.d.ts.map +1 -1
- package/dist/components/motion/drawer.js +74 -20
- package/dist/components/motion/drawer.js.map +1 -1
- package/dist/components/motion/dropdown-menu/item-base.d.ts +37 -0
- package/dist/components/motion/dropdown-menu/item-base.d.ts.map +1 -0
- package/dist/components/motion/dropdown-menu/item-base.js +78 -0
- package/dist/components/motion/dropdown-menu/item-base.js.map +1 -0
- package/dist/components/motion/dropdown-menu/menu-panel.d.ts +31 -0
- package/dist/components/motion/dropdown-menu/menu-panel.d.ts.map +1 -0
- package/dist/components/motion/dropdown-menu/menu-panel.js +201 -0
- package/dist/components/motion/dropdown-menu/menu-panel.js.map +1 -0
- package/dist/components/motion/dropdown-menu.d.ts +111 -0
- package/dist/components/motion/dropdown-menu.d.ts.map +1 -0
- package/dist/components/motion/dropdown-menu.js +400 -0
- package/dist/components/motion/dropdown-menu.js.map +1 -0
- package/dist/components/motion/dynamic-island.d.ts +2 -0
- package/dist/components/motion/dynamic-island.d.ts.map +1 -1
- package/dist/components/motion/dynamic-island.js +2 -2
- package/dist/components/motion/dynamic-island.js.map +1 -1
- package/dist/components/motion/expandable-action-bar.d.ts +28 -0
- package/dist/components/motion/expandable-action-bar.d.ts.map +1 -1
- package/dist/components/motion/expandable-action-bar.js +8 -17
- package/dist/components/motion/expandable-action-bar.js.map +1 -1
- package/dist/components/motion/expandable-control.d.ts +14 -0
- package/dist/components/motion/expandable-control.d.ts.map +1 -1
- package/dist/components/motion/expandable-control.js +6 -3
- package/dist/components/motion/expandable-control.js.map +1 -1
- package/dist/components/motion/expandable-tabs.d.ts +24 -2
- package/dist/components/motion/expandable-tabs.d.ts.map +1 -1
- package/dist/components/motion/expandable-tabs.js +12 -20
- package/dist/components/motion/expandable-tabs.js.map +1 -1
- package/dist/components/motion/expanding-arrow-button.d.ts +2 -0
- package/dist/components/motion/expanding-arrow-button.d.ts.map +1 -1
- package/dist/components/motion/expanding-arrow-button.js +6 -6
- package/dist/components/motion/expanding-arrow-button.js.map +1 -1
- package/dist/components/motion/feedback-widget.d.ts +24 -1
- package/dist/components/motion/feedback-widget.d.ts.map +1 -1
- package/dist/components/motion/feedback-widget.js +46 -44
- package/dist/components/motion/feedback-widget.js.map +1 -1
- package/dist/components/motion/file-tree.d.ts +32 -1
- package/dist/components/motion/file-tree.d.ts.map +1 -1
- package/dist/components/motion/file-tree.js +15 -15
- package/dist/components/motion/file-tree.js.map +1 -1
- package/dist/components/motion/file-upload.d.ts +54 -1
- package/dist/components/motion/file-upload.d.ts.map +1 -1
- package/dist/components/motion/file-upload.js +87 -46
- package/dist/components/motion/file-upload.js.map +1 -1
- package/dist/components/motion/follow-button.d.ts +31 -0
- package/dist/components/motion/follow-button.d.ts.map +1 -0
- package/dist/components/motion/follow-button.js +184 -0
- package/dist/components/motion/follow-button.js.map +1 -0
- package/dist/components/motion/hold-action-button.d.ts +15 -0
- package/dist/components/motion/hold-action-button.d.ts.map +1 -1
- package/dist/components/motion/hold-action-button.js +21 -9
- package/dist/components/motion/hold-action-button.js.map +1 -1
- package/dist/components/motion/infinite-masonry.d.ts +35 -1
- package/dist/components/motion/infinite-masonry.d.ts.map +1 -1
- package/dist/components/motion/infinite-masonry.js +30 -15
- package/dist/components/motion/infinite-masonry.js.map +1 -1
- package/dist/components/motion/input.d.ts +17 -0
- package/dist/components/motion/input.d.ts.map +1 -1
- package/dist/components/motion/input.js +3 -2
- package/dist/components/motion/input.js.map +1 -1
- package/dist/components/motion/knockout-bracket.d.ts +32 -6
- package/dist/components/motion/knockout-bracket.d.ts.map +1 -1
- package/dist/components/motion/knockout-bracket.js +104 -50
- package/dist/components/motion/knockout-bracket.js.map +1 -1
- package/dist/components/motion/knockout-wheel.d.ts +23 -4
- package/dist/components/motion/knockout-wheel.d.ts.map +1 -1
- package/dist/components/motion/knockout-wheel.js +50 -24
- package/dist/components/motion/knockout-wheel.js.map +1 -1
- package/dist/components/motion/like-button.d.ts +26 -0
- package/dist/components/motion/like-button.d.ts.map +1 -0
- package/dist/components/motion/like-button.js +128 -0
- package/dist/components/motion/like-button.js.map +1 -0
- package/dist/components/motion/liquid.js +4 -4
- package/dist/components/motion/liquid.js.map +1 -1
- package/dist/components/motion/loader.d.ts +11 -1
- package/dist/components/motion/loader.d.ts.map +1 -1
- package/dist/components/motion/loader.js +49 -34
- package/dist/components/motion/loader.js.map +1 -1
- package/dist/components/motion/lock-toggle.d.ts +29 -0
- package/dist/components/motion/lock-toggle.d.ts.map +1 -0
- package/dist/components/motion/lock-toggle.js +252 -0
- package/dist/components/motion/lock-toggle.js.map +1 -0
- package/dist/components/motion/magnetic.js +3 -3
- package/dist/components/motion/marquee.d.ts +6 -0
- package/dist/components/motion/marquee.d.ts.map +1 -1
- package/dist/components/motion/marquee.js.map +1 -1
- package/dist/components/motion/menu/menu-item-highlight.d.ts +16 -0
- package/dist/components/motion/menu/menu-item-highlight.d.ts.map +1 -0
- package/dist/components/motion/menu/menu-item-highlight.js +20 -0
- package/dist/components/motion/menu/menu-item-highlight.js.map +1 -0
- package/dist/components/motion/message-status.d.ts +26 -0
- package/dist/components/motion/message-status.d.ts.map +1 -0
- package/dist/components/motion/message-status.js +198 -0
- package/dist/components/motion/message-status.js.map +1 -0
- package/dist/components/motion/mines.d.ts +43 -3
- package/dist/components/motion/mines.d.ts.map +1 -1
- package/dist/components/motion/mines.js +92 -57
- package/dist/components/motion/mines.js.map +1 -1
- package/dist/components/motion/morphing-lightbox.d.ts +33 -1
- package/dist/components/motion/morphing-lightbox.d.ts.map +1 -1
- package/dist/components/motion/morphing-lightbox.js +42 -25
- package/dist/components/motion/morphing-lightbox.js.map +1 -1
- package/dist/components/motion/morphing-modal.d.ts +10 -1
- package/dist/components/motion/morphing-modal.d.ts.map +1 -1
- package/dist/components/motion/morphing-modal.js +25 -20
- package/dist/components/motion/morphing-modal.js.map +1 -1
- package/dist/components/motion/morphing-search-chips.d.ts +34 -1
- package/dist/components/motion/morphing-search-chips.d.ts.map +1 -1
- package/dist/components/motion/morphing-search-chips.js +47 -35
- package/dist/components/motion/morphing-search-chips.js.map +1 -1
- package/dist/components/motion/morphing-search.d.ts +28 -1
- package/dist/components/motion/morphing-search.d.ts.map +1 -1
- package/dist/components/motion/morphing-search.js +36 -26
- package/dist/components/motion/morphing-search.js.map +1 -1
- package/dist/components/motion/morphing-tabs.d.ts +29 -1
- package/dist/components/motion/morphing-tabs.d.ts.map +1 -1
- package/dist/components/motion/morphing-tabs.js +40 -16
- package/dist/components/motion/morphing-tabs.js.map +1 -1
- package/dist/components/motion/multi-select/content.d.ts +3 -10
- package/dist/components/motion/multi-select/content.d.ts.map +1 -1
- package/dist/components/motion/multi-select/content.js +14 -80
- package/dist/components/motion/multi-select/content.js.map +1 -1
- package/dist/components/motion/multi-select/context.d.ts +2 -61
- package/dist/components/motion/multi-select/context.js +1 -226
- package/dist/components/motion/multi-select/list.d.ts +12 -0
- package/dist/components/motion/multi-select/list.d.ts.map +1 -1
- package/dist/components/motion/multi-select/list.js +14 -13
- package/dist/components/motion/multi-select/list.js.map +1 -1
- package/dist/components/motion/multi-select/trigger.d.ts +6 -0
- package/dist/components/motion/multi-select/trigger.d.ts.map +1 -1
- package/dist/components/motion/multi-select/trigger.js +15 -13
- package/dist/components/motion/multi-select/trigger.js.map +1 -1
- package/dist/components/motion/{multi-select/index.d.ts → multi-select.d.ts} +5 -5
- package/dist/components/motion/{multi-select/index.js → multi-select.js} +5 -5
- package/dist/components/motion/mute-toggle.d.ts +25 -0
- package/dist/components/motion/mute-toggle.d.ts.map +1 -0
- package/dist/components/motion/mute-toggle.js +221 -0
- package/dist/components/motion/mute-toggle.js.map +1 -0
- package/dist/components/motion/not-found/glitch.d.ts +1 -1
- package/dist/components/motion/not-found/glitch.d.ts.map +1 -1
- package/dist/components/motion/not-found/glitch.js +10 -8
- package/dist/components/motion/not-found/glitch.js.map +1 -1
- package/dist/components/motion/not-found/magnetic.d.ts +1 -1
- package/dist/components/motion/not-found/magnetic.d.ts.map +1 -1
- package/dist/components/motion/not-found/magnetic.js +10 -8
- package/dist/components/motion/not-found/magnetic.js.map +1 -1
- package/dist/components/motion/not-found/shared.d.ts +23 -6
- package/dist/components/motion/not-found/shared.d.ts.map +1 -1
- package/dist/components/motion/not-found/shared.js +20 -9
- package/dist/components/motion/not-found/shared.js.map +1 -1
- package/dist/components/motion/not-found/spotlight.d.ts +1 -1
- package/dist/components/motion/not-found/spotlight.d.ts.map +1 -1
- package/dist/components/motion/not-found/spotlight.js +13 -11
- package/dist/components/motion/not-found/spotlight.js.map +1 -1
- package/dist/components/motion/not-found/stacked.d.ts +1 -1
- package/dist/components/motion/not-found/stacked.d.ts.map +1 -1
- package/dist/components/motion/not-found/stacked.js +11 -9
- package/dist/components/motion/not-found/stacked.js.map +1 -1
- package/dist/components/motion/not-found/terminal.d.ts +1 -1
- package/dist/components/motion/not-found/terminal.d.ts.map +1 -1
- package/dist/components/motion/not-found/terminal.js +9 -7
- package/dist/components/motion/not-found/terminal.js.map +1 -1
- package/dist/components/motion/notification-bell.d.ts +29 -0
- package/dist/components/motion/notification-bell.d.ts.map +1 -0
- package/dist/components/motion/notification-bell.js +274 -0
- package/dist/components/motion/notification-bell.js.map +1 -0
- package/dist/components/motion/notification-stack.d.ts +35 -1
- package/dist/components/motion/notification-stack.d.ts.map +1 -1
- package/dist/components/motion/notification-stack.js +23 -7
- package/dist/components/motion/notification-stack.js.map +1 -1
- package/dist/components/motion/number-ticker.d.ts +11 -3
- package/dist/components/motion/number-ticker.d.ts.map +1 -1
- package/dist/components/motion/number-ticker.js +7 -4
- package/dist/components/motion/number-ticker.js.map +1 -1
- package/dist/components/motion/otp-input.d.ts +22 -1
- package/dist/components/motion/otp-input.d.ts.map +1 -1
- package/dist/components/motion/otp-input.js +36 -15
- package/dist/components/motion/otp-input.js.map +1 -1
- package/dist/components/motion/overflow-actions.d.ts +35 -1
- package/dist/components/motion/overflow-actions.d.ts.map +1 -1
- package/dist/components/motion/overflow-actions.js +16 -8
- package/dist/components/motion/overflow-actions.js.map +1 -1
- package/dist/components/motion/pagination.d.ts +17 -1
- package/dist/components/motion/pagination.d.ts.map +1 -1
- package/dist/components/motion/pagination.js +24 -13
- package/dist/components/motion/pagination.js.map +1 -1
- package/dist/components/motion/parallax.d.ts +2 -0
- package/dist/components/motion/parallax.d.ts.map +1 -1
- package/dist/components/motion/parallax.js +1 -1
- package/dist/components/motion/parallax.js.map +1 -1
- package/dist/components/motion/plinko.d.ts +13 -1
- package/dist/components/motion/plinko.d.ts.map +1 -1
- package/dist/components/motion/plinko.js +32 -18
- package/dist/components/motion/plinko.js.map +1 -1
- package/dist/components/motion/poll-vote.d.ts +39 -0
- package/dist/components/motion/poll-vote.d.ts.map +1 -0
- package/dist/components/motion/poll-vote.js +209 -0
- package/dist/components/motion/poll-vote.js.map +1 -0
- package/dist/components/motion/popover-morph.d.ts +2 -50
- package/dist/components/motion/popover-morph.js +10 -30
- package/dist/components/motion/popover-morph.js.map +1 -1
- package/dist/components/motion/popover.d.ts +5 -2
- package/dist/components/motion/popover.d.ts.map +1 -1
- package/dist/components/motion/popover.js +155 -103
- package/dist/components/motion/popover.js.map +1 -1
- package/dist/components/motion/prediction-market-card.d.ts +30 -1
- package/dist/components/motion/prediction-market-card.d.ts.map +1 -1
- package/dist/components/motion/prediction-market-card.js +39 -22
- package/dist/components/motion/prediction-market-card.js.map +1 -1
- package/dist/components/motion/prediction-market.d.ts +58 -1
- package/dist/components/motion/prediction-market.d.ts.map +1 -1
- package/dist/components/motion/prediction-market.js +66 -47
- package/dist/components/motion/prediction-market.js.map +1 -1
- package/dist/components/motion/preview-rail.d.ts +31 -1
- package/dist/components/motion/preview-rail.d.ts.map +1 -1
- package/dist/components/motion/preview-rail.js +10 -5
- package/dist/components/motion/preview-rail.js.map +1 -1
- package/dist/components/motion/project-folder.d.ts +33 -1
- package/dist/components/motion/project-folder.d.ts.map +1 -1
- package/dist/components/motion/project-folder.js +31 -50
- package/dist/components/motion/project-folder.js.map +1 -1
- package/dist/components/motion/pull-to-refresh.d.ts +19 -1
- package/dist/components/motion/pull-to-refresh.d.ts.map +1 -1
- package/dist/components/motion/pull-to-refresh.js +22 -11
- package/dist/components/motion/pull-to-refresh.js.map +1 -1
- package/dist/components/motion/radio.d.ts +10 -0
- package/dist/components/motion/radio.d.ts.map +1 -1
- package/dist/components/motion/radio.js +2 -2
- package/dist/components/motion/radio.js.map +1 -1
- package/dist/components/motion/range-slider-bubble.d.ts +1 -0
- package/dist/components/motion/range-slider-bubble.d.ts.map +1 -1
- package/dist/components/motion/range-slider-bubble.js +7 -7
- package/dist/components/motion/range-slider-bubble.js.map +1 -1
- package/dist/components/motion/range-slider-fluid.d.ts +1 -0
- package/dist/components/motion/range-slider-fluid.d.ts.map +1 -1
- package/dist/components/motion/range-slider-fluid.js +5 -5
- package/dist/components/motion/range-slider-fluid.js.map +1 -1
- package/dist/components/motion/range-slider-inline.d.ts +1 -0
- package/dist/components/motion/range-slider-inline.d.ts.map +1 -1
- package/dist/components/motion/range-slider-inline.js +4 -4
- package/dist/components/motion/range-slider-inline.js.map +1 -1
- package/dist/components/motion/range-slider-ruler.d.ts +1 -0
- package/dist/components/motion/range-slider-ruler.d.ts.map +1 -1
- package/dist/components/motion/range-slider-ruler.js +6 -6
- package/dist/components/motion/range-slider-ruler.js.map +1 -1
- package/dist/components/motion/range-slider-wave.d.ts +1 -0
- package/dist/components/motion/range-slider-wave.d.ts.map +1 -1
- package/dist/components/motion/range-slider-wave.js +6 -6
- package/dist/components/motion/range-slider-wave.js.map +1 -1
- package/dist/components/motion/range-slider.d.ts +1 -0
- package/dist/components/motion/range-slider.d.ts.map +1 -1
- package/dist/components/motion/range-slider.js +5 -5
- package/dist/components/motion/range-slider.js.map +1 -1
- package/dist/components/motion/reaction-picker.d.ts +50 -0
- package/dist/components/motion/reaction-picker.d.ts.map +1 -0
- package/dist/components/motion/reaction-picker.js +516 -0
- package/dist/components/motion/reaction-picker.js.map +1 -0
- package/dist/components/motion/refresh-button.d.ts +24 -0
- package/dist/components/motion/refresh-button.d.ts.map +1 -0
- package/dist/components/motion/refresh-button.js +267 -0
- package/dist/components/motion/refresh-button.js.map +1 -0
- package/dist/components/motion/scroll-progress.d.ts +2 -0
- package/dist/components/motion/scroll-progress.d.ts.map +1 -1
- package/dist/components/motion/scroll-progress.js +3 -3
- package/dist/components/motion/scroll-progress.js.map +1 -1
- package/dist/components/motion/scroll-reveal.d.ts +2 -0
- package/dist/components/motion/scroll-reveal.d.ts.map +1 -1
- package/dist/components/motion/scroll-reveal.js +2 -2
- package/dist/components/motion/scroll-reveal.js.map +1 -1
- package/dist/components/motion/scroll-to.d.ts +3 -2
- package/dist/components/motion/scroll-to.d.ts.map +1 -1
- package/dist/components/motion/scroll-to.js +2 -2
- package/dist/components/motion/scroll-to.js.map +1 -1
- package/dist/components/motion/select-morph.d.ts +17 -3
- package/dist/components/motion/select-morph.d.ts.map +1 -1
- package/dist/components/motion/select-morph.js +152 -89
- package/dist/components/motion/select-morph.js.map +1 -1
- package/dist/components/motion/select.d.ts +16 -2
- package/dist/components/motion/select.d.ts.map +1 -1
- package/dist/components/motion/select.js +153 -64
- package/dist/components/motion/select.js.map +1 -1
- package/dist/components/motion/send-button.d.ts +23 -0
- package/dist/components/motion/send-button.d.ts.map +1 -0
- package/dist/components/motion/send-button.js +273 -0
- package/dist/components/motion/send-button.js.map +1 -0
- package/dist/components/motion/shader-background.js +2 -2
- package/dist/components/motion/share-button.d.ts +45 -0
- package/dist/components/motion/share-button.d.ts.map +1 -0
- package/dist/components/motion/share-button.js +324 -0
- package/dist/components/motion/share-button.js.map +1 -0
- package/dist/components/motion/shared-layout-bg.js +4 -4
- package/dist/components/motion/shared-layout-bg.js.map +1 -1
- package/dist/components/motion/signup-form.d.ts +62 -3
- package/dist/components/motion/signup-form.d.ts.map +1 -1
- package/dist/components/motion/signup-form.js +83 -40
- package/dist/components/motion/signup-form.js.map +1 -1
- package/dist/components/motion/slide-action-button.d.ts +15 -1
- package/dist/components/motion/slide-action-button.d.ts.map +1 -1
- package/dist/components/motion/slide-action-button.js +15 -9
- package/dist/components/motion/slide-action-button.js.map +1 -1
- package/dist/components/motion/slide-game.d.ts +92 -0
- package/dist/components/motion/slide-game.d.ts.map +1 -0
- package/dist/components/motion/slide-game.js +642 -0
- package/dist/components/motion/slide-game.js.map +1 -0
- package/dist/components/motion/smooth-scroll.d.ts +4 -2
- package/dist/components/motion/smooth-scroll.d.ts.map +1 -1
- package/dist/components/motion/smooth-scroll.js +5 -4
- package/dist/components/motion/smooth-scroll.js.map +1 -1
- package/dist/components/motion/sortable-list.d.ts +21 -1
- package/dist/components/motion/sortable-list.d.ts.map +1 -1
- package/dist/components/motion/sortable-list.js +41 -16
- package/dist/components/motion/sortable-list.js.map +1 -1
- package/dist/components/motion/star-rating.d.ts +35 -0
- package/dist/components/motion/star-rating.d.ts.map +1 -0
- package/dist/components/motion/star-rating.js +253 -0
- package/dist/components/motion/star-rating.js.map +1 -0
- package/dist/components/motion/status-icon.d.ts +31 -0
- package/dist/components/motion/status-icon.d.ts.map +1 -0
- package/dist/components/motion/status-icon.js +259 -0
- package/dist/components/motion/status-icon.js.map +1 -0
- package/dist/components/motion/swap/controls.d.ts +8 -4
- package/dist/components/motion/swap/controls.d.ts.map +1 -1
- package/dist/components/motion/swap/controls.js +38 -30
- package/dist/components/motion/swap/controls.js.map +1 -1
- package/dist/components/motion/swap/field.d.ts +4 -2
- package/dist/components/motion/swap/field.d.ts.map +1 -1
- package/dist/components/motion/swap/field.js +16 -13
- package/dist/components/motion/swap/field.js.map +1 -1
- package/dist/components/motion/swap/quote-row.d.ts +4 -2
- package/dist/components/motion/swap/quote-row.d.ts.map +1 -1
- package/dist/components/motion/swap/quote-row.js +10 -8
- package/dist/components/motion/swap/quote-row.js.map +1 -1
- package/dist/components/motion/swap/token-badges.d.ts +1 -1
- package/dist/components/motion/swap/token-badges.js +5 -6
- package/dist/components/motion/swap/token-badges.js.map +1 -1
- package/dist/components/motion/swap/token-picker.d.ts +4 -2
- package/dist/components/motion/swap/token-picker.d.ts.map +1 -1
- package/dist/components/motion/swap/token-picker.js +59 -54
- package/dist/components/motion/swap/token-picker.js.map +1 -1
- package/dist/components/motion/swap.d.ts +12 -4
- package/dist/components/motion/swap.d.ts.map +1 -1
- package/dist/components/motion/swap.js +31 -19
- package/dist/components/motion/swap.js.map +1 -1
- package/dist/components/motion/swipeable-list.d.ts +47 -1
- package/dist/components/motion/swipeable-list.d.ts.map +1 -1
- package/dist/components/motion/swipeable-list.js +17 -9
- package/dist/components/motion/swipeable-list.js.map +1 -1
- package/dist/components/motion/switch.d.ts +9 -1
- package/dist/components/motion/switch.d.ts.map +1 -1
- package/dist/components/motion/switch.js +13 -8
- package/dist/components/motion/switch.js.map +1 -1
- package/dist/components/motion/table/editable-cell.d.ts +2 -1
- package/dist/components/motion/table/editable-cell.d.ts.map +1 -1
- package/dist/components/motion/table/editable-cell.js +2 -2
- package/dist/components/motion/table/editable-cell.js.map +1 -1
- package/dist/components/motion/table/row-handle.d.ts +3 -1
- package/dist/components/motion/table/row-handle.d.ts.map +1 -1
- package/dist/components/motion/table/row-handle.js +7 -7
- package/dist/components/motion/table/row-handle.js.map +1 -1
- package/dist/components/motion/table/skeleton-rows.d.ts +1 -1
- package/dist/components/motion/table/skeleton-rows.js +1 -1
- package/dist/components/motion/table/table-header.d.ts +4 -2
- package/dist/components/motion/table/table-header.d.ts.map +1 -1
- package/dist/components/motion/table/table-header.js +22 -19
- package/dist/components/motion/table/table-header.js.map +1 -1
- package/dist/components/motion/table/table-menu.d.ts.map +1 -1
- package/dist/components/motion/table/table-menu.js +18 -18
- package/dist/components/motion/table/table-menu.js.map +1 -1
- package/dist/components/motion/{table/index.d.ts → table.d.ts} +5 -4
- package/dist/components/motion/table.d.ts.map +1 -0
- package/dist/components/motion/{table/index.js → table.js} +50 -19
- package/dist/components/motion/table.js.map +1 -0
- package/dist/components/motion/tabs.d.ts +24 -4
- package/dist/components/motion/tabs.d.ts.map +1 -1
- package/dist/components/motion/tabs.js +41 -19
- package/dist/components/motion/tabs.js.map +1 -1
- package/dist/components/motion/text-cascade.d.ts +2 -1
- package/dist/components/motion/text-cascade.d.ts.map +1 -1
- package/dist/components/motion/text-cascade.js +1 -1
- package/dist/components/motion/text-cascade.js.map +1 -1
- package/dist/components/motion/text-morph.d.ts +16 -0
- package/dist/components/motion/text-morph.d.ts.map +1 -0
- package/dist/components/motion/text-morph.js +239 -0
- package/dist/components/motion/text-morph.js.map +1 -0
- package/dist/components/motion/text-reveal.d.ts +11 -0
- package/dist/components/motion/text-reveal.d.ts.map +1 -1
- package/dist/components/motion/text-reveal.js +3 -3
- package/dist/components/motion/text-reveal.js.map +1 -1
- package/dist/components/motion/text-scramble.d.ts +2 -0
- package/dist/components/motion/text-scramble.d.ts.map +1 -1
- package/dist/components/motion/text-scramble.js +1 -1
- package/dist/components/motion/text-scramble.js.map +1 -1
- package/dist/components/motion/text-shimmer.d.ts +3 -0
- package/dist/components/motion/text-shimmer.d.ts.map +1 -1
- package/dist/components/motion/text-shimmer.js +1 -1
- package/dist/components/motion/text-shimmer.js.map +1 -1
- package/dist/components/motion/theme-toggle.d.ts +12 -1
- package/dist/components/motion/theme-toggle.d.ts.map +1 -1
- package/dist/components/motion/theme-toggle.js +19 -11
- package/dist/components/motion/theme-toggle.js.map +1 -1
- package/dist/components/motion/tilt-card.d.ts +3 -0
- package/dist/components/motion/tilt-card.d.ts.map +1 -1
- package/dist/components/motion/tilt-card.js +3 -3
- package/dist/components/motion/tilt-card.js.map +1 -1
- package/dist/components/motion/timeline.d.ts +16 -1
- package/dist/components/motion/timeline.d.ts.map +1 -1
- package/dist/components/motion/timeline.js +26 -7
- package/dist/components/motion/timeline.js.map +1 -1
- package/dist/components/motion/tooltip/positioner.d.ts +1 -1
- package/dist/components/motion/tooltip/positioner.js +1 -1
- package/dist/components/motion/tooltip-surface.d.ts +6 -2
- package/dist/components/motion/tooltip-surface.d.ts.map +1 -1
- package/dist/components/motion/tooltip-surface.js +36 -26
- package/dist/components/motion/tooltip-surface.js.map +1 -1
- package/dist/components/motion/tooltip.d.ts +9 -3
- package/dist/components/motion/tooltip.d.ts.map +1 -1
- package/dist/components/motion/tooltip.js +1 -1
- package/dist/components/motion/upvote-button.d.ts +30 -0
- package/dist/components/motion/upvote-button.d.ts.map +1 -0
- package/dist/components/motion/upvote-button.js +144 -0
- package/dist/components/motion/upvote-button.js.map +1 -0
- package/dist/components/motion/wallet-card/account-avatar.d.ts +1 -1
- package/dist/components/motion/wallet-card/account-avatar.js +1 -1
- package/dist/components/motion/wallet-card/account-switcher.d.ts +5 -3
- package/dist/components/motion/wallet-card/account-switcher.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/account-switcher.js +23 -16
- package/dist/components/motion/wallet-card/account-switcher.js.map +1 -1
- package/dist/components/motion/wallet-card/actions.d.ts +3 -1
- package/dist/components/motion/wallet-card/actions.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/actions.js +33 -29
- package/dist/components/motion/wallet-card/actions.js.map +1 -1
- package/dist/components/motion/wallet-card/balance-delta.d.ts +2 -1
- package/dist/components/motion/wallet-card/balance-delta.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/balance-delta.js +6 -6
- package/dist/components/motion/wallet-card/balance-delta.js.map +1 -1
- package/dist/components/motion/wallet-card/copy-button.d.ts +3 -1
- package/dist/components/motion/wallet-card/copy-button.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/copy-button.js +13 -7
- package/dist/components/motion/wallet-card/copy-button.js.map +1 -1
- package/dist/components/motion/wallet-card/search-bar.d.ts +4 -2
- package/dist/components/motion/wallet-card/search-bar.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/search-bar.js +21 -18
- package/dist/components/motion/wallet-card/search-bar.js.map +1 -1
- package/dist/components/motion/wallet-card.d.ts +16 -0
- package/dist/components/motion/wallet-card.d.ts.map +1 -0
- package/dist/components/motion/{wallet-card/index.js → wallet-card.js} +26 -19
- package/dist/components/motion/wallet-card.js.map +1 -0
- package/dist/components/motion/wave-reveal.d.ts +25 -0
- package/dist/components/motion/wave-reveal.d.ts.map +1 -0
- package/dist/components/motion/wave-reveal.js +630 -0
- package/dist/components/motion/wave-reveal.js.map +1 -0
- package/dist/components/motion/wheel-picker.d.ts +7 -0
- package/dist/components/motion/wheel-picker.d.ts.map +1 -1
- package/dist/components/motion/wheel-picker.js +15 -5
- package/dist/components/motion/wheel-picker.js.map +1 -1
- package/dist/components/reui/alert.d.ts +1 -1
- package/dist/components/reui/alert.js +1 -1
- package/dist/components/reui/autocomplete.d.ts +1 -1
- package/dist/components/reui/autocomplete.js +4 -4
- package/dist/components/reui/badge.d.ts +2 -2
- package/dist/components/reui/badge.js +2 -2
- package/dist/components/reui/cascader/cascader-async.d.ts +1 -1
- package/dist/components/reui/cascader/cascader-async.js +37 -37
- package/dist/components/reui/cascader/cascader-async.js.map +1 -1
- package/dist/components/reui/cascader/cascader-columns.d.ts +6 -6
- package/dist/components/reui/cascader/cascader-columns.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-columns.js +6 -6
- package/dist/components/reui/cascader/cascader-columns.js.map +1 -1
- package/dist/components/reui/cascader/cascader-context.d.ts +8 -8
- package/dist/components/reui/cascader/cascader-context.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-context.js +10 -10
- package/dist/components/reui/cascader/cascader-context.js.map +1 -1
- package/dist/components/reui/cascader/cascader-footer.d.ts +14 -14
- package/dist/components/reui/cascader/cascader-footer.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-footer.js +32 -33
- package/dist/components/reui/cascader/cascader-footer.js.map +1 -1
- package/dist/components/reui/cascader/cascader-i18n.d.ts +1 -1
- package/dist/components/reui/cascader/cascader-item.d.ts +12 -12
- package/dist/components/reui/cascader/cascader-item.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-item.js +27 -27
- package/dist/components/reui/cascader/cascader-item.js.map +1 -1
- package/dist/components/reui/cascader/cascader-lib.d.ts +1 -1
- package/dist/components/reui/cascader/cascader-nav.d.ts +12 -12
- package/dist/components/reui/cascader/cascader-nav.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-nav.js +12 -12
- package/dist/components/reui/cascader/cascader-nav.js.map +1 -1
- package/dist/components/reui/cascader/cascader-types.d.ts +1 -1
- package/dist/components/reui/cascader/cascader-virtual.d.ts +4 -4
- package/dist/components/reui/cascader/cascader-virtual.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-virtual.js +13 -13
- package/dist/components/reui/cascader/cascader-virtual.js.map +1 -1
- package/dist/components/reui/cascader/cascader.d.ts +24 -24
- package/dist/components/reui/cascader/cascader.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader.js +110 -110
- package/dist/components/reui/cascader/cascader.js.map +1 -1
- package/dist/components/reui/code-block/code-block.d.ts +1 -1
- package/dist/components/reui/code-block/code-block.js +2 -2
- package/dist/components/reui/code-block/code-block.js.map +1 -1
- package/dist/components/reui/color-picker.d.ts +1 -1
- package/dist/components/reui/color-picker.js +7 -7
- package/dist/components/reui/color-picker.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-cell-selection.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-cell-selection.js +4 -4
- package/dist/components/reui/data-grid/data-grid-cell-selection.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-filter.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-column-filter.js +3 -3
- package/dist/components/reui/data-grid/data-grid-column-header.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-column-header.js +4 -4
- package/dist/components/reui/data-grid/data-grid-column-visibility.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-i18n.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-pagination.js +2 -2
- package/dist/components/reui/data-grid/data-grid-scroll-area.js +3 -3
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js +8 -8
- package/dist/components/reui/data-grid/data-grid-table-dnd.js +6 -6
- package/dist/components/reui/data-grid/data-grid-table-virtual.d.ts +2 -2
- package/dist/components/reui/data-grid/data-grid-table-virtual.js +3 -3
- package/dist/components/reui/data-grid/data-grid-table.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-table.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table.js +4 -4
- package/dist/components/reui/data-grid/data-grid-table.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid.js +2 -2
- package/dist/components/reui/date-selector.js +4 -4
- package/dist/components/reui/emoji-picker.d.ts +1 -1
- package/dist/components/reui/emoji-picker.js +5 -5
- package/dist/components/reui/emoji-picker.js.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-agenda-view.js +6 -6
- package/dist/components/reui/event-calendar/event-calendar-content.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-content.js +3 -3
- package/dist/components/reui/event-calendar/event-calendar-dnd.js +2 -2
- package/dist/components/reui/event-calendar/event-calendar-event.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-event.js +6 -6
- package/dist/components/reui/event-calendar/event-calendar-i18n.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-lib.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-lib.js +4 -4
- package/dist/components/reui/event-calendar/event-calendar-month-view.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-month-view.js +6 -6
- package/dist/components/reui/event-calendar/event-calendar-nav.js +6 -6
- package/dist/components/reui/event-calendar/event-calendar-recurrence.js +1 -1
- package/dist/components/reui/event-calendar/event-calendar-resource-view.js +5 -5
- package/dist/components/reui/event-calendar/event-calendar-time-grid.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-time-grid.js +5 -5
- package/dist/components/reui/event-calendar/event-calendar.d.ts +3 -3
- package/dist/components/reui/event-calendar/event-calendar.js +4 -4
- package/dist/components/reui/event-calendar/event-calendar.js.map +1 -1
- package/dist/components/reui/file-type.js +1 -1
- package/dist/components/reui/filters/filters-advanced.d.ts +6 -6
- package/dist/components/reui/filters/filters-advanced.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-advanced.js +35 -35
- package/dist/components/reui/filters/filters-advanced.js.map +1 -1
- package/dist/components/reui/filters/filters-builder.d.ts +5 -5
- package/dist/components/reui/filters/filters-builder.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-builder.js +6 -6
- package/dist/components/reui/filters/filters-builder.js.map +1 -1
- package/dist/components/reui/filters/filters-chip.d.ts +10 -10
- package/dist/components/reui/filters/filters-chip.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-chip.js +20 -20
- package/dist/components/reui/filters/filters-chip.js.map +1 -1
- package/dist/components/reui/filters/filters-context.d.ts +11 -11
- package/dist/components/reui/filters/filters-context.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-context.js +27 -27
- package/dist/components/reui/filters/filters-context.js.map +1 -1
- package/dist/components/reui/filters/filters-dnd.d.ts +2 -2
- package/dist/components/reui/filters/filters-dnd.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-dnd.js +5 -5
- package/dist/components/reui/filters/filters-dnd.js.map +1 -1
- package/dist/components/reui/filters/filters-draft.d.ts +1 -1
- package/dist/components/reui/filters/filters-editors.d.ts +9 -9
- package/dist/components/reui/filters/filters-editors.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-editors.js +41 -41
- package/dist/components/reui/filters/filters-editors.js.map +1 -1
- package/dist/components/reui/filters/filters-lib.d.ts +1 -1
- package/dist/components/reui/filters/filters-types.d.ts +7 -7
- package/dist/components/reui/filters/filters-types.d.ts.map +1 -1
- package/dist/components/reui/filters/filters.d.ts +9 -9
- package/dist/components/reui/filters/filters.d.ts.map +1 -1
- package/dist/components/reui/filters/filters.js +56 -56
- package/dist/components/reui/filters/filters.js.map +1 -1
- package/dist/components/reui/frame.d.ts +1 -1
- package/dist/components/reui/frame.js +2 -2
- package/dist/components/reui/frame.js.map +1 -1
- package/dist/components/reui/gantt/gantt-bar.d.ts +1 -1
- package/dist/components/reui/gantt/gantt-bar.js +5 -5
- package/dist/components/reui/gantt/gantt-dnd.js +5 -5
- package/dist/components/reui/gantt/gantt-dnd.js.map +1 -1
- package/dist/components/reui/gantt/gantt-i18n.d.ts +1 -1
- package/dist/components/reui/gantt/gantt-lib.d.ts +1 -1
- package/dist/components/reui/gantt/gantt-lib.js +4 -4
- package/dist/components/reui/gantt/gantt-nav.d.ts +1 -1
- package/dist/components/reui/gantt/gantt-nav.js +6 -6
- package/dist/components/reui/gantt/gantt-recurrence.js +1 -1
- package/dist/components/reui/gantt/gantt-view.js +11 -11
- package/dist/components/reui/gantt/gantt-view.js.map +1 -1
- package/dist/components/reui/gantt/gantt.d.ts +3 -3
- package/dist/components/reui/gantt/gantt.js +4 -4
- package/dist/components/reui/gantt/gantt.js.map +1 -1
- package/dist/components/reui/icon-tile.d.ts +2 -2
- package/dist/components/reui/icon-tile.js +2 -2
- package/dist/components/reui/kanban.d.ts +11 -11
- package/dist/components/reui/kanban.d.ts.map +1 -1
- package/dist/components/reui/kanban.js +3 -3
- package/dist/components/reui/number-field.d.ts +1 -1
- package/dist/components/reui/number-field.js +4 -4
- package/dist/components/reui/phone-input.js +5 -5
- package/dist/components/reui/rating.js +2 -2
- package/dist/components/reui/scrollspy.js +1 -1
- package/dist/components/reui/signature-pad.d.ts +1 -1
- package/dist/components/reui/signature-pad.js +7 -7
- package/dist/components/reui/signature-pad.js.map +1 -1
- package/dist/components/reui/sortable.d.ts +7 -7
- package/dist/components/reui/sortable.d.ts.map +1 -1
- package/dist/components/reui/sortable.js +3 -3
- package/dist/components/reui/stepper.js +2 -2
- package/dist/components/reui/time-picker.d.ts +1 -1
- package/dist/components/reui/time-picker.js +4 -4
- package/dist/components/reui/timeline.js +2 -2
- package/dist/components/reui/tree.js +3 -3
- package/dist/components/ui/accordion.js +2 -2
- package/dist/components/ui/alert-dialog.d.ts +14 -14
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.js +2 -2
- package/dist/components/ui/alert.d.ts +5 -5
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/alert.js +1 -1
- package/dist/components/ui/attachment.d.ts +14 -14
- package/dist/components/ui/attachment.d.ts.map +1 -1
- package/dist/components/ui/attachment.js +4 -4
- package/dist/components/ui/avatar.d.ts +7 -7
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/avatar.js +1 -1
- package/dist/components/ui/badge.d.ts +2 -2
- package/dist/components/ui/badge.js +2 -2
- package/dist/components/ui/breadcrumb.d.ts +8 -8
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.js +3 -3
- package/dist/components/ui/bubble.d.ts +9 -9
- package/dist/components/ui/bubble.d.ts.map +1 -1
- package/dist/components/ui/bubble.js +3 -3
- package/dist/components/ui/button-group.d.ts +3 -3
- package/dist/components/ui/button-group.js +4 -4
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/button.js +2 -2
- package/dist/components/ui/calendar.d.ts +7 -7
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar.js +7 -7
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/card.d.ts +9 -9
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/card.js +1 -1
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/carousel.d.ts +7 -7
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel.js +14 -14
- package/dist/components/ui/carousel.js.map +1 -1
- package/dist/components/ui/chart.d.ts +12 -12
- package/dist/components/ui/chart.d.ts.map +1 -1
- package/dist/components/ui/chart.js +6 -6
- package/dist/components/ui/chart.js.map +1 -1
- package/dist/components/ui/checkbox.js +2 -2
- package/dist/components/ui/code-block.d.ts +13 -13
- package/dist/components/ui/code-block.d.ts.map +1 -1
- package/dist/components/ui/code-block.js +6 -6
- package/dist/components/ui/code-block.js.map +1 -1
- package/dist/components/ui/collapsible.js +1 -1
- package/dist/components/ui/combobox.d.ts +16 -16
- package/dist/components/ui/combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox.js +7 -7
- package/dist/components/ui/combobox.js.map +1 -1
- package/dist/components/ui/command.d.ts +13 -13
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/command.js +3 -3
- package/dist/components/ui/context-menu.d.ts +16 -16
- package/dist/components/ui/context-menu.d.ts.map +1 -1
- package/dist/components/ui/context-menu.js +2 -2
- package/dist/components/ui/dialog.d.ts +12 -12
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.js +3 -3
- package/dist/components/ui/drawer.d.ts +12 -12
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/drawer.js +5 -5
- package/dist/components/ui/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +16 -16
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +2 -2
- package/dist/components/ui/empty.js +1 -1
- package/dist/components/ui/field.d.ts +2 -2
- package/dist/components/ui/field.js +3 -3
- package/dist/components/ui/hover-card.js +1 -1
- package/dist/components/ui/input-group.d.ts +9 -9
- package/dist/components/ui/input-group.d.ts.map +1 -1
- package/dist/components/ui/input-group.js +2 -2
- package/dist/components/ui/input-otp.d.ts +7 -7
- package/dist/components/ui/input-otp.d.ts.map +1 -1
- package/dist/components/ui/input-otp.js +4 -4
- package/dist/components/ui/input-otp.js.map +1 -1
- package/dist/components/ui/input.d.ts +2 -2
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/item.d.ts +14 -14
- package/dist/components/ui/item.d.ts.map +1 -1
- package/dist/components/ui/item.js +4 -4
- package/dist/components/ui/label.d.ts +2 -2
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/marker.d.ts +6 -6
- package/dist/components/ui/marker.d.ts.map +1 -1
- package/dist/components/ui/marker.js +3 -3
- package/dist/components/ui/menubar.d.ts +20 -20
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar.js +4 -4
- package/dist/components/ui/message-scroller.d.ts +8 -8
- package/dist/components/ui/message-scroller.d.ts.map +1 -1
- package/dist/components/ui/message-scroller.js +3 -3
- package/dist/components/ui/message.d.ts +8 -8
- package/dist/components/ui/message.d.ts.map +1 -1
- package/dist/components/ui/native-select.d.ts +5 -5
- package/dist/components/ui/native-select.d.ts.map +1 -1
- package/dist/components/ui/native-select.js +1 -1
- package/dist/components/ui/navigation-menu.js +3 -3
- package/dist/components/ui/pagination.d.ts +11 -11
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination.js +2 -2
- package/dist/components/ui/popover.d.ts +7 -7
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/progress.js +1 -1
- package/dist/components/ui/questionnaire.d.ts +17 -17
- package/dist/components/ui/questionnaire.d.ts.map +1 -1
- package/dist/components/ui/questionnaire.js +5 -5
- package/dist/components/ui/questionnaire.js.map +1 -1
- package/dist/components/ui/radio-group.js +2 -2
- package/dist/components/ui/resizable.js +1 -1
- package/dist/components/ui/scroll-area.js +1 -1
- package/dist/components/ui/select.d.ts +10 -10
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +2 -2
- package/dist/components/ui/separator.js +1 -1
- package/dist/components/ui/sheet.d.ts +9 -9
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet.js +3 -3
- package/dist/components/ui/sidebar.d.ts +33 -33
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/sidebar.js +16 -16
- package/dist/components/ui/sidebar.js.map +1 -1
- package/dist/components/ui/slider.js +1 -1
- package/dist/components/ui/spinner.js +1 -1
- package/dist/components/ui/switch.js +1 -1
- package/dist/components/ui/table.d.ts +9 -9
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/tabs.d.ts +2 -2
- package/dist/components/ui/tabs.js +2 -2
- package/dist/components/ui/textarea.d.ts +2 -2
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/toast.d.ts +11 -11
- package/dist/components/ui/toast.d.ts.map +1 -1
- package/dist/components/ui/toast.js +3 -3
- package/dist/components/ui/toggle-group.d.ts +5 -5
- package/dist/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle-group.js +7 -7
- package/dist/components/ui/toggle-group.js.map +1 -1
- package/dist/components/ui/toggle.d.ts +1 -1
- package/dist/components/ui/toggle.js +2 -2
- package/dist/components/ui/tooltip.js +1 -1
- package/dist/components/ui/trace.d.ts +12 -12
- package/dist/components/ui/trace.d.ts.map +1 -1
- package/dist/components/ui/trace.js +3 -3
- package/dist/components/ui/trace.js.map +1 -1
- package/dist/{constants-evLzfUhL.js → constants-DfbfCDSg.js} +3 -6
- package/dist/constants-DfbfCDSg.js.map +1 -0
- package/dist/{context-tv-kneJV.d.ts → context-4tt2I7Qm.d.ts} +39 -6
- package/dist/context-4tt2I7Qm.d.ts.map +1 -0
- package/dist/{context-C5TW-k6u.js → context-B3BNuwGu.js} +47 -31
- package/dist/context-B3BNuwGu.js.map +1 -0
- package/dist/context-BFNkGCGz.d.ts +82 -0
- package/dist/context-BFNkGCGz.d.ts.map +1 -0
- package/dist/{context-DUx44mGi.js → context-BG1Wzdnj.js} +34 -14
- package/dist/context-BG1Wzdnj.js.map +1 -0
- package/dist/{context-ChsuSih6.js → context-Bx-OaIL8.js} +36 -21
- package/dist/context-Bx-OaIL8.js.map +1 -0
- package/dist/{context-3i2_6ly8.js → context-C92iQeLO.js} +13 -5
- package/dist/context-C92iQeLO.js.map +1 -0
- package/dist/{context-CQbvWVnM.js → context-C9LHO4MN.js} +42 -35
- package/dist/context-C9LHO4MN.js.map +1 -0
- package/dist/{context-DdnKlMjE.js → context-CHXHCbuu.js} +18 -4
- package/dist/context-CHXHCbuu.js.map +1 -0
- package/dist/context-CIzAPhXA.js +170 -0
- package/dist/context-CIzAPhXA.js.map +1 -0
- package/dist/context-CP3spicY.d.ts +87 -0
- package/dist/context-CP3spicY.d.ts.map +1 -0
- package/dist/{context-DWXNECDe.js → context-Cg1VelQJ.js} +30 -28
- package/dist/context-Cg1VelQJ.js.map +1 -0
- package/dist/{context-CXlD0FcC.js → context-DDoVOc0D.js} +35 -28
- package/dist/context-DDoVOc0D.js.map +1 -0
- package/dist/{context-D-juVNr2.d.ts → context-DMIy-rFm.d.ts} +29 -3
- package/dist/context-DMIy-rFm.d.ts.map +1 -0
- package/dist/context-DR6jkfea.js +11 -0
- package/dist/context-DR6jkfea.js.map +1 -0
- package/dist/context-DcJtX6ht.js +166 -0
- package/dist/context-DcJtX6ht.js.map +1 -0
- package/dist/{context-i6Dwvi3T.js → context-Dg48xMuG.js} +47 -27
- package/dist/context-Dg48xMuG.js.map +1 -0
- package/dist/context-DnM-b9yO.js +23 -0
- package/dist/context-DnM-b9yO.js.map +1 -0
- package/dist/context-DtFeYksF.d.ts +28 -0
- package/dist/context-DtFeYksF.d.ts.map +1 -0
- package/dist/{context-Dk6C9IvC.js → context-cRAJSFxf.js} +51 -15
- package/dist/context-cRAJSFxf.js.map +1 -0
- package/dist/{context-mjP5wifG.d.ts → context-jX-r_7EP.d.ts} +37 -6
- package/dist/context-jX-r_7EP.d.ts.map +1 -0
- package/dist/{copy-menu-LU54Aruj.js → copy-menu-Bgoo5oWq.js} +46 -27
- package/dist/copy-menu-Bgoo5oWq.js.map +1 -0
- package/dist/{crash-parts-CUv5gFYQ.js → crash-parts-BkrZ6iBE.js} +109 -236
- package/dist/crash-parts-BkrZ6iBE.js.map +1 -0
- package/dist/{data-grid-i18n-BySPLTBy.d.ts → data-grid-i18n-BcJcbW5k.d.ts} +1 -1
- package/dist/{data-grid-i18n-BySPLTBy.d.ts.map → data-grid-i18n-BcJcbW5k.d.ts.map} +1 -1
- package/dist/date-utils-DVDYcEA_.js +35 -0
- package/dist/date-utils-DVDYcEA_.js.map +1 -0
- package/dist/{ease-DjhlGGZO.d.ts → ease-D_-bhUDt.d.ts} +13 -6
- package/dist/ease-D_-bhUDt.d.ts.map +1 -0
- package/dist/{filters-draft-COwwppZX.d.ts → filters-draft-b-BwSZb1.d.ts} +1 -1
- package/dist/{filters-draft-COwwppZX.d.ts.map → filters-draft-b-BwSZb1.d.ts.map} +1 -1
- package/dist/formats-ColrL9Eg.js +58 -0
- package/dist/formats-ColrL9Eg.js.map +1 -0
- package/dist/game-parts-B635BoSe.d.ts +89 -0
- package/dist/game-parts-B635BoSe.d.ts.map +1 -0
- package/dist/hooks/use-controllable.d.ts +10 -0
- package/dist/hooks/use-controllable.d.ts.map +1 -0
- package/dist/hooks/use-controllable.js +39 -0
- package/dist/hooks/use-controllable.js.map +1 -0
- package/dist/hooks/use-copy-to-clipboard.js +5 -5
- package/dist/hooks/use-copy-to-clipboard.js.map +1 -1
- package/dist/hooks/use-copy.d.ts +16 -0
- package/dist/hooks/use-copy.d.ts.map +1 -0
- package/dist/hooks/use-copy.js +36 -0
- package/dist/hooks/use-copy.js.map +1 -0
- package/dist/hooks/use-dismiss.d.ts +17 -5
- package/dist/hooks/use-dismiss.d.ts.map +1 -1
- package/dist/hooks/use-dismiss.js +36 -24
- package/dist/hooks/use-dismiss.js.map +1 -1
- package/dist/hooks/use-favicon.js +1 -1
- package/dist/hooks/use-focus-trap.d.ts +4 -3
- package/dist/hooks/use-focus-trap.d.ts.map +1 -1
- package/dist/hooks/use-focus-trap.js +25 -37
- package/dist/hooks/use-focus-trap.js.map +1 -1
- package/dist/hooks/use-highlighted-code.d.ts +2 -2
- package/dist/hooks/use-highlighted-code.d.ts.map +1 -1
- package/dist/hooks/use-highlighted-code.js +6 -76
- package/dist/hooks/use-highlighted-code.js.map +1 -1
- package/dist/hooks/use-hover-capable.d.ts +1 -1
- package/dist/hooks/use-hover-capable.js +1 -1
- package/dist/hooks/use-hover-capable.js.map +1 -1
- package/dist/hooks/use-hover-gesture.d.ts +5 -5
- package/dist/hooks/use-hover-gesture.js +6 -6
- package/dist/hooks/use-hover-gesture.js.map +1 -1
- package/dist/hooks/use-intersection-observer.d.ts +2 -2
- package/dist/hooks/use-intersection-observer.d.ts.map +1 -1
- package/dist/hooks/use-intersection-observer.js +4 -4
- package/dist/hooks/use-intersection-observer.js.map +1 -1
- package/dist/hooks/use-listbox.d.ts +1 -0
- package/dist/hooks/use-listbox.js +3 -2
- package/dist/hooks/use-listbox.js.map +1 -1
- package/dist/hooks/use-meta-color.js +7 -7
- package/dist/hooks/use-meta-color.js.map +1 -1
- package/dist/hooks/use-mobile.js +3 -3
- package/dist/hooks/use-mobile.js.map +1 -1
- package/dist/hooks/use-modal-scope.js +22 -26
- package/dist/hooks/use-modal-scope.js.map +1 -1
- package/dist/hooks/use-mutation-observer.d.ts +2 -2
- package/dist/hooks/use-mutation-observer.d.ts.map +1 -1
- package/dist/hooks/use-mutation-observer.js +2 -2
- package/dist/hooks/use-mutation-observer.js.map +1 -1
- package/dist/hooks/use-on-open.d.ts +3 -3
- package/dist/hooks/use-on-open.js +3 -3
- package/dist/hooks/use-on-open.js.map +1 -1
- package/dist/hooks/use-row-cursor.d.ts +2 -2
- package/dist/hooks/use-row-cursor.js +2 -2
- package/dist/hooks/use-row-cursor.js.map +1 -1
- package/dist/hooks/use-slider-input.d.ts +4 -4
- package/dist/hooks/use-slider-input.d.ts.map +1 -1
- package/dist/hooks/use-slider.d.ts +13 -3
- package/dist/hooks/use-slider.d.ts.map +1 -1
- package/dist/hooks/use-slider.js +23 -4
- package/dist/hooks/use-slider.js.map +1 -1
- package/dist/hooks/use-status-open.d.ts +26 -0
- package/dist/hooks/use-status-open.d.ts.map +1 -0
- package/dist/hooks/use-status-open.js +43 -0
- package/dist/hooks/use-status-open.js.map +1 -0
- package/dist/hooks/use-tap-gesture.d.ts +3 -3
- package/dist/hooks/use-tap-gesture.js +3 -3
- package/dist/hooks/use-tap-gesture.js.map +1 -1
- package/dist/i18n-BRH0Y7Sm.d.ts +34 -0
- package/dist/i18n-BRH0Y7Sm.d.ts.map +1 -0
- package/dist/lib/audio-context.d.ts +27 -1
- package/dist/lib/audio-context.d.ts.map +1 -1
- package/dist/lib/audio-context.js +61 -2
- package/dist/lib/audio-context.js.map +1 -1
- package/dist/lib/book-sounds.d.ts +18 -0
- package/dist/lib/book-sounds.d.ts.map +1 -0
- package/dist/lib/book-sounds.js +201 -0
- package/dist/lib/book-sounds.js.map +1 -0
- package/dist/lib/color.d.ts +29 -0
- package/dist/lib/color.d.ts.map +1 -0
- package/dist/lib/color.js +93 -0
- package/dist/lib/color.js.map +1 -0
- package/dist/lib/command-search.d.ts +7 -1
- package/dist/lib/command-search.d.ts.map +1 -1
- package/dist/lib/command-search.js +42 -19
- package/dist/lib/command-search.js.map +1 -1
- package/dist/lib/ease.d.ts +2 -2
- package/dist/lib/ease.js +12 -5
- package/dist/lib/ease.js.map +1 -1
- package/dist/lib/focusable.d.ts +10 -0
- package/dist/lib/focusable.d.ts.map +1 -1
- package/dist/lib/focusable.js +31 -1
- package/dist/lib/focusable.js.map +1 -1
- package/dist/lib/game-sounds.d.ts.map +1 -1
- package/dist/lib/game-sounds.js +7 -14
- package/dist/lib/game-sounds.js.map +1 -1
- package/dist/lib/highlighter.d.ts +10 -0
- package/dist/lib/highlighter.d.ts.map +1 -0
- package/dist/lib/highlighter.js +78 -0
- package/dist/lib/highlighter.js.map +1 -0
- package/dist/lib/i18n.d.ts +2 -0
- package/dist/lib/i18n.js +51 -0
- package/dist/lib/i18n.js.map +1 -0
- package/dist/lib/layers.d.ts +24 -0
- package/dist/lib/layers.d.ts.map +1 -0
- package/dist/lib/layers.js +47 -0
- package/dist/lib/layers.js.map +1 -0
- package/dist/lib/merge-refs.d.ts +6 -0
- package/dist/lib/merge-refs.d.ts.map +1 -0
- package/dist/lib/merge-refs.js +15 -0
- package/dist/lib/merge-refs.js.map +1 -0
- package/dist/lib/presence-gate.d.ts +39 -0
- package/dist/lib/presence-gate.d.ts.map +1 -0
- package/dist/{presence-gate-DC7yL1Ls.js → lib/presence-gate.js} +3 -2
- package/dist/lib/presence-gate.js.map +1 -0
- package/dist/lib/scroll-lock.d.ts +13 -0
- package/dist/lib/scroll-lock.d.ts.map +1 -0
- package/dist/lib/scroll-lock.js +59 -0
- package/dist/lib/scroll-lock.js.map +1 -0
- package/dist/lib/sound.d.ts +30 -0
- package/dist/lib/sound.d.ts.map +1 -0
- package/dist/lib/sound.js +95 -0
- package/dist/lib/sound.js.map +1 -0
- package/dist/lib/sounds/bell.d.ts +4 -0
- package/dist/lib/sounds/bell.d.ts.map +1 -0
- package/dist/lib/sounds/bell.js +36 -0
- package/dist/lib/sounds/bell.js.map +1 -0
- package/dist/lib/sounds/bubble.d.ts +4 -0
- package/dist/lib/sounds/bubble.d.ts.map +1 -0
- package/dist/lib/sounds/bubble.js +27 -0
- package/dist/lib/sounds/bubble.js.map +1 -0
- package/dist/lib/sounds/burst.d.ts +4 -0
- package/dist/lib/sounds/burst.d.ts.map +1 -0
- package/dist/lib/sounds/burst.js +45 -0
- package/dist/lib/sounds/burst.js.map +1 -0
- package/dist/lib/sounds/buzz.d.ts +4 -0
- package/dist/lib/sounds/buzz.d.ts.map +1 -0
- package/dist/lib/sounds/buzz.js +26 -0
- package/dist/lib/sounds/buzz.js.map +1 -0
- package/dist/lib/sounds/camera.d.ts +4 -0
- package/dist/lib/sounds/camera.d.ts.map +1 -0
- package/dist/lib/sounds/camera.js +40 -0
- package/dist/lib/sounds/camera.js.map +1 -0
- package/dist/lib/sounds/check.d.ts +4 -0
- package/dist/lib/sounds/check.d.ts.map +1 -0
- package/dist/lib/sounds/check.js +40 -0
- package/dist/lib/sounds/check.js.map +1 -0
- package/dist/lib/sounds/chime.d.ts +4 -0
- package/dist/lib/sounds/chime.d.ts.map +1 -0
- package/dist/lib/sounds/chime.js +33 -0
- package/dist/lib/sounds/chime.js.map +1 -0
- package/dist/lib/sounds/close.d.ts +4 -0
- package/dist/lib/sounds/close.d.ts.map +1 -0
- package/dist/lib/sounds/close.js +36 -0
- package/dist/lib/sounds/close.js.map +1 -0
- package/dist/lib/sounds/coin.d.ts +4 -0
- package/dist/lib/sounds/coin.d.ts.map +1 -0
- package/dist/lib/sounds/coin.js +31 -0
- package/dist/lib/sounds/coin.js.map +1 -0
- package/dist/lib/sounds/collapse.d.ts +4 -0
- package/dist/lib/sounds/collapse.d.ts.map +1 -0
- package/dist/lib/sounds/collapse.js +41 -0
- package/dist/lib/sounds/collapse.js.map +1 -0
- package/dist/lib/sounds/connect.d.ts +4 -0
- package/dist/lib/sounds/connect.d.ts.map +1 -0
- package/dist/lib/sounds/connect.js +39 -0
- package/dist/lib/sounds/connect.js.map +1 -0
- package/dist/lib/sounds/copy.d.ts +4 -0
- package/dist/lib/sounds/copy.d.ts.map +1 -0
- package/dist/lib/sounds/copy.js +39 -0
- package/dist/lib/sounds/copy.js.map +1 -0
- package/dist/lib/sounds/delete.d.ts +4 -0
- package/dist/lib/sounds/delete.d.ts.map +1 -0
- package/dist/lib/sounds/delete.js +39 -0
- package/dist/lib/sounds/delete.js.map +1 -0
- package/dist/lib/sounds/disconnect.d.ts +4 -0
- package/dist/lib/sounds/disconnect.d.ts.map +1 -0
- package/dist/lib/sounds/disconnect.js +39 -0
- package/dist/lib/sounds/disconnect.js.map +1 -0
- package/dist/lib/sounds/dismiss.d.ts +4 -0
- package/dist/lib/sounds/dismiss.d.ts.map +1 -0
- package/dist/lib/sounds/dismiss.js +27 -0
- package/dist/lib/sounds/dismiss.js.map +1 -0
- package/dist/lib/sounds/dock.d.ts +4 -0
- package/dist/lib/sounds/dock.d.ts.map +1 -0
- package/dist/lib/sounds/dock.js +32 -0
- package/dist/lib/sounds/dock.js.map +1 -0
- package/dist/lib/sounds/drop.d.ts +4 -0
- package/dist/lib/sounds/drop.d.ts.map +1 -0
- package/dist/lib/sounds/drop.js +48 -0
- package/dist/lib/sounds/drop.js.map +1 -0
- package/dist/lib/sounds/engine.d.ts +142 -0
- package/dist/lib/sounds/engine.d.ts.map +1 -0
- package/dist/lib/sounds/engine.js +210 -0
- package/dist/lib/sounds/engine.js.map +1 -0
- package/dist/lib/sounds/error.d.ts +4 -0
- package/dist/lib/sounds/error.d.ts.map +1 -0
- package/dist/lib/sounds/error.js +51 -0
- package/dist/lib/sounds/error.js.map +1 -0
- package/dist/lib/sounds/expand.d.ts +4 -0
- package/dist/lib/sounds/expand.d.ts.map +1 -0
- package/dist/lib/sounds/expand.js +28 -0
- package/dist/lib/sounds/expand.js.map +1 -0
- package/dist/lib/sounds/heart.d.ts +4 -0
- package/dist/lib/sounds/heart.d.ts.map +1 -0
- package/dist/lib/sounds/heart.js +39 -0
- package/dist/lib/sounds/heart.js.map +1 -0
- package/dist/lib/sounds/lift.d.ts +4 -0
- package/dist/lib/sounds/lift.d.ts.map +1 -0
- package/dist/lib/sounds/lift.js +34 -0
- package/dist/lib/sounds/lift.js.map +1 -0
- package/dist/lib/sounds/lock.d.ts +4 -0
- package/dist/lib/sounds/lock.d.ts.map +1 -0
- package/dist/lib/sounds/lock.js +32 -0
- package/dist/lib/sounds/lock.js.map +1 -0
- package/dist/lib/sounds/navigate.d.ts +4 -0
- package/dist/lib/sounds/navigate.d.ts.map +1 -0
- package/dist/lib/sounds/navigate.js +36 -0
- package/dist/lib/sounds/navigate.js.map +1 -0
- package/dist/lib/sounds/notify.d.ts +4 -0
- package/dist/lib/sounds/notify.d.ts.map +1 -0
- package/dist/lib/sounds/notify.js +31 -0
- package/dist/lib/sounds/notify.js.map +1 -0
- package/dist/lib/sounds/open.d.ts +4 -0
- package/dist/lib/sounds/open.d.ts.map +1 -0
- package/dist/lib/sounds/open.js +36 -0
- package/dist/lib/sounds/open.js.map +1 -0
- package/dist/lib/sounds/ping.d.ts +4 -0
- package/dist/lib/sounds/ping.d.ts.map +1 -0
- package/dist/lib/sounds/ping.js +30 -0
- package/dist/lib/sounds/ping.js.map +1 -0
- package/dist/lib/sounds/pop.d.ts +4 -0
- package/dist/lib/sounds/pop.d.ts.map +1 -0
- package/dist/lib/sounds/pop.js +27 -0
- package/dist/lib/sounds/pop.js.map +1 -0
- package/dist/lib/sounds/press.d.ts +4 -0
- package/dist/lib/sounds/press.d.ts.map +1 -0
- package/dist/lib/sounds/press.js +40 -0
- package/dist/lib/sounds/press.js.map +1 -0
- package/dist/lib/sounds/receive.d.ts +4 -0
- package/dist/lib/sounds/receive.d.ts.map +1 -0
- package/dist/lib/sounds/receive.js +39 -0
- package/dist/lib/sounds/receive.js.map +1 -0
- package/dist/lib/sounds/refresh.d.ts +4 -0
- package/dist/lib/sounds/refresh.d.ts.map +1 -0
- package/dist/lib/sounds/refresh.js +34 -0
- package/dist/lib/sounds/refresh.js.map +1 -0
- package/dist/lib/sounds/reveal.d.ts +4 -0
- package/dist/lib/sounds/reveal.d.ts.map +1 -0
- package/dist/lib/sounds/reveal.js +34 -0
- package/dist/lib/sounds/reveal.js.map +1 -0
- package/dist/lib/sounds/select.d.ts +4 -0
- package/dist/lib/sounds/select.d.ts.map +1 -0
- package/dist/lib/sounds/select.js +32 -0
- package/dist/lib/sounds/select.js.map +1 -0
- package/dist/lib/sounds/send.d.ts +4 -0
- package/dist/lib/sounds/send.d.ts.map +1 -0
- package/dist/lib/sounds/send.js +35 -0
- package/dist/lib/sounds/send.js.map +1 -0
- package/dist/lib/sounds/shutter.d.ts +4 -0
- package/dist/lib/sounds/shutter.d.ts.map +1 -0
- package/dist/lib/sounds/shutter.js +40 -0
- package/dist/lib/sounds/shutter.js.map +1 -0
- package/dist/lib/sounds/snap.d.ts +4 -0
- package/dist/lib/sounds/snap.d.ts.map +1 -0
- package/dist/lib/sounds/snap.js +33 -0
- package/dist/lib/sounds/snap.js.map +1 -0
- package/dist/lib/sounds/star.d.ts +4 -0
- package/dist/lib/sounds/star.d.ts.map +1 -0
- package/dist/lib/sounds/star.js +38 -0
- package/dist/lib/sounds/star.js.map +1 -0
- package/dist/lib/sounds/success.d.ts +4 -0
- package/dist/lib/sounds/success.d.ts.map +1 -0
- package/dist/lib/sounds/success.js +39 -0
- package/dist/lib/sounds/success.js.map +1 -0
- package/dist/lib/sounds/swipe.d.ts +4 -0
- package/dist/lib/sounds/swipe.d.ts.map +1 -0
- package/dist/lib/sounds/swipe.js +29 -0
- package/dist/lib/sounds/swipe.js.map +1 -0
- package/dist/lib/sounds/switch.d.ts +4 -0
- package/dist/lib/sounds/switch.d.ts.map +1 -0
- package/dist/lib/sounds/switch.js +40 -0
- package/dist/lib/sounds/switch.js.map +1 -0
- package/dist/lib/sounds/tap.d.ts +4 -0
- package/dist/lib/sounds/tap.d.ts.map +1 -0
- package/dist/lib/sounds/tap.js +33 -0
- package/dist/lib/sounds/tap.js.map +1 -0
- package/dist/lib/sounds/tick.d.ts +4 -0
- package/dist/lib/sounds/tick.d.ts.map +1 -0
- package/dist/lib/sounds/tick.js +26 -0
- package/dist/lib/sounds/tick.js.map +1 -0
- package/dist/lib/sounds/timer.d.ts +4 -0
- package/dist/lib/sounds/timer.d.ts.map +1 -0
- package/dist/lib/sounds/timer.js +26 -0
- package/dist/lib/sounds/timer.js.map +1 -0
- package/dist/lib/sounds/toggle.d.ts +6 -0
- package/dist/lib/sounds/toggle.d.ts.map +1 -0
- package/dist/lib/sounds/toggle.js +79 -0
- package/dist/lib/sounds/toggle.js.map +1 -0
- package/dist/lib/sounds/trash.d.ts +4 -0
- package/dist/lib/sounds/trash.d.ts.map +1 -0
- package/dist/lib/sounds/trash.js +40 -0
- package/dist/lib/sounds/trash.js.map +1 -0
- package/dist/lib/sounds/type.d.ts +4 -0
- package/dist/lib/sounds/type.d.ts.map +1 -0
- package/dist/lib/sounds/type.js +35 -0
- package/dist/lib/sounds/type.js.map +1 -0
- package/dist/lib/sounds/unlock.d.ts +4 -0
- package/dist/lib/sounds/unlock.d.ts.map +1 -0
- package/dist/lib/sounds/unlock.js +41 -0
- package/dist/lib/sounds/unlock.js.map +1 -0
- package/dist/lib/sounds/warning.d.ts +4 -0
- package/dist/lib/sounds/warning.d.ts.map +1 -0
- package/dist/lib/sounds/warning.js +29 -0
- package/dist/lib/sounds/warning.js.map +1 -0
- package/dist/lib/sounds/whisper.d.ts +4 -0
- package/dist/lib/sounds/whisper.d.ts.map +1 -0
- package/dist/lib/sounds/whisper.js +27 -0
- package/dist/lib/sounds/whisper.js.map +1 -0
- package/dist/lib/text-shimmer.d.ts +6 -0
- package/dist/lib/text-shimmer.d.ts.map +1 -1
- package/dist/lib/text-shimmer.js +7 -1
- package/dist/lib/text-shimmer.js.map +1 -1
- package/dist/lib/tick-sound.d.ts.map +1 -1
- package/dist/lib/tick-sound.js +8 -11
- package/dist/lib/tick-sound.js.map +1 -1
- package/dist/lib/touch.d.ts +10 -10
- package/dist/lib/touch.js +10 -10
- package/dist/lib/touch.js.map +1 -1
- package/dist/listbox-panel-BX74YCzI.d.ts +31 -0
- package/dist/listbox-panel-BX74YCzI.d.ts.map +1 -0
- package/dist/menu-button-CbEYps6k.d.ts +29 -0
- package/dist/menu-button-CbEYps6k.d.ts.map +1 -0
- package/dist/menu-sub-button-NgS4JryG.d.ts +25 -0
- package/dist/menu-sub-button-NgS4JryG.d.ts.map +1 -0
- package/dist/messages-BYMFNf5X.d.ts +13 -0
- package/dist/messages-BYMFNf5X.d.ts.map +1 -0
- package/dist/messages-CVaE8xc6.js +14 -0
- package/dist/messages-CVaE8xc6.js.map +1 -0
- package/dist/messages-CqyH8Hd7.js +21 -0
- package/dist/messages-CqyH8Hd7.js.map +1 -0
- package/dist/messages-CrtN5AXG.js +20 -0
- package/dist/messages-CrtN5AXG.js.map +1 -0
- package/dist/messages-D0lxgjNm.d.ts +31 -0
- package/dist/messages-D0lxgjNm.d.ts.map +1 -0
- package/dist/messages-D4axySpl.d.ts +21 -0
- package/dist/messages-D4axySpl.d.ts.map +1 -0
- package/dist/messages-Dyou6PVt.d.ts +23 -0
- package/dist/messages-Dyou6PVt.d.ts.map +1 -0
- package/dist/messages-azsh5xBO.d.ts +20 -0
- package/dist/messages-azsh5xBO.d.ts.map +1 -0
- package/dist/messages-ogb0tIIX.d.ts +23 -0
- package/dist/messages-ogb0tIIX.d.ts.map +1 -0
- package/dist/messages-tLRkxZwI.d.ts +33 -0
- package/dist/messages-tLRkxZwI.d.ts.map +1 -0
- package/dist/{model-BFZGhrnQ.d.ts → model-CHHE1lHQ.d.ts} +5 -1
- package/dist/model-CHHE1lHQ.d.ts.map +1 -0
- package/dist/{model-DuAc65oe.d.ts → model-D6sI_4m9.d.ts} +5 -1
- package/dist/model-D6sI_4m9.d.ts.map +1 -0
- package/dist/{model-mS4UXPwk.d.ts → model-DUQnYLRU.d.ts} +3 -1
- package/dist/model-DUQnYLRU.d.ts.map +1 -0
- package/dist/{model-CvWolJdo.d.ts → model-Dafi-gx6.d.ts} +2 -1
- package/dist/model-Dafi-gx6.d.ts.map +1 -0
- package/dist/motion-1TeD2tw9.js +67 -0
- package/dist/motion-1TeD2tw9.js.map +1 -0
- package/dist/{path-VEfFUowr.d.ts → path-DMP3rnd1.d.ts} +1 -1
- package/dist/path-DMP3rnd1.d.ts.map +1 -0
- package/dist/placement-BRE79jXm.d.ts +4 -0
- package/dist/placement-BRE79jXm.d.ts.map +1 -0
- package/dist/placement-Cg-Y5tLI.js +74 -0
- package/dist/placement-Cg-Y5tLI.js.map +1 -0
- package/dist/{plot-CTQFrQKi.js → plot-CSTtMo6j.js} +13 -13
- package/dist/plot-CSTtMo6j.js.map +1 -0
- package/dist/popover-morph-CWb4N9ux.d.ts +55 -0
- package/dist/popover-morph-CWb4N9ux.d.ts.map +1 -0
- package/dist/{popover-position-BaDNBZ-D.js → popover-position-U1ZMRPsY.js} +1 -1
- package/dist/{popover-position-BaDNBZ-D.js.map → popover-position-U1ZMRPsY.js.map} +1 -1
- package/dist/{positioner-MidjIUUT.js → positioner-CFR4mJg6.js} +117 -9
- package/dist/positioner-CFR4mJg6.js.map +1 -0
- package/dist/resource-row-PkgPS9Hk.js +290 -0
- package/dist/resource-row-PkgPS9Hk.js.map +1 -0
- package/dist/root-C1n8-uIA.js +420 -0
- package/dist/root-C1n8-uIA.js.map +1 -0
- package/dist/{scale-DSsaupNc.d.ts → scale-BLDMdHAp.d.ts} +1 -1
- package/dist/scale-BLDMdHAp.d.ts.map +1 -0
- package/dist/{use-inspection-CZhdpH8J.js → scale-JwdKsMkj.js} +2 -55
- package/dist/scale-JwdKsMkj.js.map +1 -0
- package/dist/theme.css +98 -4
- package/dist/{tooltip-w0KptZat.d.ts → tooltip-CoAbjn9I.d.ts} +9 -1
- package/dist/tooltip-CoAbjn9I.d.ts.map +1 -0
- package/dist/{tooltip-CNEYdIX3.d.ts → tooltip-DI79u-1V.d.ts} +28 -2
- package/dist/tooltip-DI79u-1V.d.ts.map +1 -0
- package/dist/{tooltip-CMVyNolz.d.ts → tooltip-DPci40hM.d.ts} +21 -2
- package/dist/tooltip-DPci40hM.d.ts.map +1 -0
- package/dist/{tooltip-Cq46pSJ2.d.ts → tooltip-X7sMXf98.d.ts} +31 -3
- package/dist/tooltip-X7sMXf98.d.ts.map +1 -0
- package/dist/{tooltip-content-K0vPsEtI.d.ts → tooltip-content-Dr8bhW-q.d.ts} +4 -2
- package/dist/tooltip-content-Dr8bhW-q.d.ts.map +1 -0
- package/dist/{tooltip-CuHpilPN.js → tooltip-gHv-6eOs.js} +58 -47
- package/dist/tooltip-gHv-6eOs.js.map +1 -0
- package/dist/{tooltip-BVRmgnbZ.d.ts → tooltip-gKOUHp_1.d.ts} +28 -2
- package/dist/tooltip-gKOUHp_1.d.ts.map +1 -0
- package/dist/types-BhZ0FwDi.d.ts +33 -0
- package/dist/types-BhZ0FwDi.d.ts.map +1 -0
- package/dist/types-BnHpfLje.d.ts +111 -0
- package/dist/types-BnHpfLje.d.ts.map +1 -0
- package/dist/types-COoUai3R.d.ts +64 -0
- package/dist/types-COoUai3R.d.ts.map +1 -0
- package/dist/{types-D9hKqIzm.d.ts → types-CbBZy33k.d.ts} +34 -2
- package/dist/types-CbBZy33k.d.ts.map +1 -0
- package/dist/{types-BB61jXS_.d.ts → types-ClKnPGuP.d.ts} +21 -4
- package/dist/types-ClKnPGuP.d.ts.map +1 -0
- package/dist/types-DPKILbI9.d.ts +37 -0
- package/dist/types-DPKILbI9.d.ts.map +1 -0
- package/dist/types-Dbiy485_.d.ts +114 -0
- package/dist/types-Dbiy485_.d.ts.map +1 -0
- package/dist/{types-BSMELKE5.d.ts → types-DlSHf6nJ.d.ts} +1 -1
- package/dist/types-DlSHf6nJ.d.ts.map +1 -0
- package/dist/types-DtUnNprK.d.ts +53 -0
- package/dist/types-DtUnNprK.d.ts.map +1 -0
- package/dist/{use-crash-game-B3RHxFkm.d.ts → use-crash-game-C6JPLvAH.d.ts} +60 -5
- package/dist/use-crash-game-C6JPLvAH.d.ts.map +1 -0
- package/dist/use-filtered-options-3TcVsHzV.js +167 -0
- package/dist/use-filtered-options-3TcVsHzV.js.map +1 -0
- package/dist/use-filtered-options-BbXqmJmZ.d.ts +14 -0
- package/dist/use-filtered-options-BbXqmJmZ.d.ts.map +1 -0
- package/dist/{use-geometry-C84j2gUk.d.ts → use-geometry-BajLqxjC.d.ts} +1 -1
- package/dist/use-geometry-BajLqxjC.d.ts.map +1 -0
- package/dist/use-inspection-LoyxxJk8.js +31 -0
- package/dist/use-inspection-LoyxxJk8.js.map +1 -0
- package/dist/use-menu-navigation-B17_iK_B.js +57 -0
- package/dist/use-menu-navigation-B17_iK_B.js.map +1 -0
- package/dist/{use-points-C2jpElHh.js → use-points-y0l-9pdN.js} +1 -1
- package/dist/use-points-y0l-9pdN.js.map +1 -0
- package/dist/{use-position-CWSE4wCz.d.ts → use-position-ac-sSZRY.d.ts} +3 -1
- package/dist/use-position-ac-sSZRY.d.ts.map +1 -0
- package/dist/use-width-DZex74TT.js +45 -0
- package/dist/use-width-DZex74TT.js.map +1 -0
- package/dist/utils-Dve5wIjB.js +56 -0
- package/dist/utils-Dve5wIjB.js.map +1 -0
- package/dist/{utils-ZRfJ78Df.js → utils-F-hKjEFd.js} +1 -1
- package/dist/utils-F-hKjEFd.js.map +1 -0
- package/dist/utils-f7_cAAwc.js +55 -0
- package/dist/utils-f7_cAAwc.js.map +1 -0
- package/package.json +18 -18
- package/dist/account-avatar--0_0u0WW.js.map +0 -1
- package/dist/cascader-types-Bh_kJ3Qw.d.ts.map +0 -1
- package/dist/components/agents/agent-activity/index.d.ts +0 -4
- package/dist/components/agents/agent-activity/index.d.ts.map +0 -1
- package/dist/components/agents/agent-activity/index.js.map +0 -1
- package/dist/components/agents/approval-card/index.d.ts +0 -49
- package/dist/components/agents/approval-card/index.d.ts.map +0 -1
- package/dist/components/agents/approval-card/index.js +0 -314
- package/dist/components/agents/approval-card/index.js.map +0 -1
- package/dist/components/motion/animated-sidebar.js.map +0 -1
- package/dist/components/motion/animated-toast-stack.d.ts.map +0 -1
- package/dist/components/motion/animated-toast-stack.js.map +0 -1
- package/dist/components/motion/availability-scheduler/index.d.ts +0 -12
- package/dist/components/motion/availability-scheduler/index.d.ts.map +0 -1
- package/dist/components/motion/availability-scheduler/index.js.map +0 -1
- package/dist/components/motion/button/index.d.ts +0 -5
- package/dist/components/motion/button/index.js +0 -6
- package/dist/components/motion/combobox/context.d.ts.map +0 -1
- package/dist/components/motion/combobox/context.js.map +0 -1
- package/dist/components/motion/multi-select/context.d.ts.map +0 -1
- package/dist/components/motion/multi-select/context.js.map +0 -1
- package/dist/components/motion/popover-morph.d.ts.map +0 -1
- package/dist/components/motion/table/index.d.ts.map +0 -1
- package/dist/components/motion/table/index.js.map +0 -1
- package/dist/components/motion/wallet-card/index.d.ts +0 -11
- package/dist/components/motion/wallet-card/index.d.ts.map +0 -1
- package/dist/components/motion/wallet-card/index.js.map +0 -1
- package/dist/constants-evLzfUhL.js.map +0 -1
- package/dist/context-3i2_6ly8.js.map +0 -1
- package/dist/context-C5TW-k6u.js.map +0 -1
- package/dist/context-CQbvWVnM.js.map +0 -1
- package/dist/context-CXlD0FcC.js.map +0 -1
- package/dist/context-ChsuSih6.js.map +0 -1
- package/dist/context-D-juVNr2.d.ts.map +0 -1
- package/dist/context-DUx44mGi.js.map +0 -1
- package/dist/context-DWXNECDe.js.map +0 -1
- package/dist/context-DdnKlMjE.js.map +0 -1
- package/dist/context-Dk6C9IvC.js.map +0 -1
- package/dist/context-i6Dwvi3T.js.map +0 -1
- package/dist/context-mjP5wifG.d.ts.map +0 -1
- package/dist/context-tv-kneJV.d.ts.map +0 -1
- package/dist/copy-menu-LU54Aruj.js.map +0 -1
- package/dist/crash-parts-CUv5gFYQ.js.map +0 -1
- package/dist/ease-DjhlGGZO.d.ts.map +0 -1
- package/dist/model-BFZGhrnQ.d.ts.map +0 -1
- package/dist/model-CvWolJdo.d.ts.map +0 -1
- package/dist/model-DuAc65oe.d.ts.map +0 -1
- package/dist/model-mS4UXPwk.d.ts.map +0 -1
- package/dist/path-VEfFUowr.d.ts.map +0 -1
- package/dist/plot-CTQFrQKi.js.map +0 -1
- package/dist/positioner-MidjIUUT.js.map +0 -1
- package/dist/presence-gate-DC7yL1Ls.js.map +0 -1
- package/dist/scale-DSsaupNc.d.ts.map +0 -1
- package/dist/tooltip-BVRmgnbZ.d.ts.map +0 -1
- package/dist/tooltip-CMVyNolz.d.ts.map +0 -1
- package/dist/tooltip-CNEYdIX3.d.ts.map +0 -1
- package/dist/tooltip-Cq46pSJ2.d.ts.map +0 -1
- package/dist/tooltip-CuHpilPN.js.map +0 -1
- package/dist/tooltip-content-K0vPsEtI.d.ts.map +0 -1
- package/dist/tooltip-w0KptZat.d.ts.map +0 -1
- package/dist/types-B0d0d7PF.d.ts +0 -34
- package/dist/types-B0d0d7PF.d.ts.map +0 -1
- package/dist/types-BB61jXS_.d.ts.map +0 -1
- package/dist/types-BSMELKE5.d.ts.map +0 -1
- package/dist/types-D9hKqIzm.d.ts.map +0 -1
- package/dist/types-qTGsGdN1.d.ts +0 -20
- package/dist/types-qTGsGdN1.d.ts.map +0 -1
- package/dist/use-active-option-DerS-wGL.js +0 -85
- package/dist/use-active-option-DerS-wGL.js.map +0 -1
- package/dist/use-crash-game-B3RHxFkm.d.ts.map +0 -1
- package/dist/use-geometry-C84j2gUk.d.ts.map +0 -1
- package/dist/use-inspection-CZhdpH8J.js.map +0 -1
- package/dist/use-points-C2jpElHh.js.map +0 -1
- package/dist/use-position-CWSE4wCz.d.ts.map +0 -1
- package/dist/use-width-CkKCh1b3.js +0 -23
- package/dist/use-width-CkKCh1b3.js.map +0 -1
- package/dist/utils-DMrlhG6M.js +0 -25
- package/dist/utils-DMrlhG6M.js.map +0 -1
- package/dist/utils-ZRfJ78Df.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reaction-picker.js","names":[],"sources":["../../../src/components/motion/reaction-picker.tsx"],"sourcesContent":["\"use client\";\n\nimport { type KeyboardEvent, type ReactNode, useEffect, useRef, useState } from \"react\";\nimport { Flame, Heart, Laugh, PartyPopper, SmilePlus, ThumbsUp } from \"lucide-react\";\nimport {\n AnimatePresence,\n animate,\n motion,\n useMotionTemplate,\n useMotionValue,\n useReducedMotion,\n useSpring,\n useTransform,\n useVelocity,\n} from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { useDismiss } from \"../../hooks/use-dismiss\";\nimport { useHoverCapable } from \"../../hooks/use-hover-capable\";\nimport { EASE_IN, EASE_IN_OUT, EASE_OUT, SPRING_PANEL, SPRING_PRESS } from \"../../lib/ease\";\nimport { useMessages } from \"../../lib/i18n\";\nimport { PresenceGate } from \"../../lib/presence-gate\";\nimport { useSound } from \"../../lib/sound\";\nimport { closeSound } from \"../../lib/sounds/close\";\nimport { openSound } from \"../../lib/sounds/open\";\nimport { selectSound } from \"../../lib/sounds/select\";\nimport { DigitSwap } from \"./digit-swap\";\n\nexport const reactionPickerMessages = {\n react: \"Add reaction\",\n reacted: \"Reacted with {reaction}\",\n reactions: \"Reactions\",\n like: \"Like\",\n love: \"Love\",\n haha: \"Haha\",\n fire: \"Fire\",\n party: \"Party\",\n};\n\nexport type ReactionPickerMessages = typeof reactionPickerMessages;\n\nexport type Reaction = {\n /** Unique key, used as the picker's value. */\n id: string;\n /** Name shown above the reaction on hover and used as its accessible name. */\n label: string;\n /** Icon or emoji in the tray, which flies to the trigger once picked. */\n icon: ReactNode;\n /** Text colour class for the icon, e.g. \"text-rose-500\". */\n color?: string;\n /** Classes for the button once this reaction is picked. */\n tint?: string;\n};\n\nexport interface ReactionPickerProps {\n /** The choices, in order. Defaults to like, love, haha, fire and party. */\n reactions?: Reaction[];\n /** The viewer's reaction id, or null for none. */\n value?: string | null;\n /** The initial reaction id when uncontrolled. Default: null */\n defaultValue?: string | null;\n /** Called with the picked reaction id, or null when the same one is picked again. */\n onValueChange?: (value: string | null) => void;\n /** Reactions from everyone else. The viewer's own is added on top. */\n count?: number;\n /** Override any built-in string, e.g. for translation. */\n labels?: Partial<ReactionPickerMessages>;\n /** Play open and close swishes for the tray and a select on a pick. Off by default; a `SoundProvider` can mute it app-wide. */\n sound?: boolean;\n /** Classes merged onto the root element. */\n className?: string;\n}\n\n// Each reaction rises into the tray a beat after the one before it.\nconst STAGGER = 0.035;\nconst RISE = 12;\n// Looser than SPRING_SWAP on purpose: each icon lands with a small settle.\nconst SPRING_RISE = { type: \"spring\", stiffness: 520, damping: 22, mass: 0.6 } as const;\n// The hovered reaction lifts and grows quickly, and settles back as quickly.\nconst SPRING_HOVER = { type: \"spring\", stiffness: 600, damping: 26, mass: 0.5 } as const;\nconst OUT = { duration: 0.14, ease: EASE_OUT } as const;\n// The flight: across evenly, up slowing into the peak and down speeding out\n// of it, so it traces one smooth arc instead of stalling at the top.\nconst FLIGHT_SECONDS = 0.46;\nconst LIFT_SCALE = 1.25;\n// It lands a touch large and the button's icon settles from there.\nconst LAND_SCALE = 1.15;\n// The tray morphs out of the button: a pill clip that springs open from a\n// circle the tray's height over the icon. Near critical, so it never snaps\n// past open.\nconst SPRING_REVEAL = { type: \"spring\", stiffness: 340, damping: 32, mass: 0.8 } as const;\nconst TRAY_HEIGHT = 46;\n// The hover blob glides between reactions, stretching with its speed.\nconst SPRING_BLOB = { stiffness: 520, damping: 34, mass: 0.6 } as const;\n// One reaction slot: a 36px button plus the 2px gap.\nconst SLOT = 38;\n// The catch: the icon lands squashed and wobbles back to shape.\nconst SPRING_JELLY = { type: \"spring\", stiffness: 620, damping: 14, mass: 0.6 } as const;\nconst SQUASH = { scaleX: 1.3, scaleY: 0.78 } as const;\n\n// Sparks from the button when it catches a reaction, alternating near and far.\nconst SPARKS = Array.from({ length: 8 }, (_, index) => {\n const angle = (index / 8) * Math.PI * 2;\n const far = index % 2 === 0;\n return {\n id: index,\n x: Math.cos(angle) * (far ? 18 : 13),\n y: Math.sin(angle) * (far ? 18 : 13),\n far,\n };\n});\n\ntype Point = { x: number; y: number };\n/** A reaction in the air, and what the button showed before it was picked. */\ntype Flight = {\n id: number;\n reaction: Reaction;\n previous: Reaction | null;\n from: Point;\n to: Point;\n scale: number;\n};\n\n/** The centre of an element, relative to an origin rect. */\nfunction centre(el: Element | null | undefined, origin: DOMRect): Point | null {\n if (!el) return null;\n const rect = el.getBoundingClientRect();\n return {\n x: rect.left + rect.width / 2 - origin.left,\n y: rect.top + rect.height / 2 - origin.top,\n };\n}\n\n/**\n * A reaction button. Pressing it grows a tray out of the button with each\n * reaction rising in turn; hovering one lifts it and shows its name. The one\n * you pick arcs down onto the button, which catches it with a pop and a burst\n * in the reaction's colour as the count rolls. Picking it again takes it back.\n */\nexport function ReactionPicker({\n reactions: reactionsProp,\n value: valueProp,\n defaultValue = null,\n onValueChange,\n count = 0,\n labels,\n sound = false,\n className,\n}: ReactionPickerProps) {\n const t = useMessages(\"ReactionPicker\", reactionPickerMessages, labels);\n const playOpen = useSound(openSound, { enabled: sound });\n const playClose = useSound(closeSound, { enabled: sound });\n const playPick = useSound(selectSound, { enabled: sound });\n const reduce = Boolean(useReducedMotion());\n const canHover = useHoverCapable();\n const [internal, setInternal] = useState<string | null>(defaultValue);\n const value = valueProp === undefined ? internal : valueProp;\n const [open, setOpen] = useState(false);\n const [active, setActive] = useState<string | null>(null);\n const [flight, setFlight] = useState<Flight | null>(null);\n // Counts catches, so each landing replays the pop and the sparks.\n const [catches, setCatches] = useState(0);\n\n const reactions: Reaction[] = reactionsProp ?? [\n {\n id: \"like\",\n label: t(\"like\"),\n icon: <ThumbsUp className=\"size-5\" />,\n color: \"text-sky-500\",\n tint: \"border-sky-500/30 bg-sky-500/10 text-sky-600 dark:text-sky-400\",\n },\n {\n id: \"love\",\n label: t(\"love\"),\n icon: <Heart className=\"size-5\" />,\n color: \"text-rose-500\",\n tint: \"border-rose-500/30 bg-rose-500/10 text-rose-600 dark:text-rose-400\",\n },\n {\n id: \"haha\",\n label: t(\"haha\"),\n icon: <Laugh className=\"size-5\" />,\n color: \"text-amber-500\",\n tint: \"border-amber-500/30 bg-amber-500/10 text-amber-600 dark:text-amber-400\",\n },\n {\n id: \"fire\",\n label: t(\"fire\"),\n icon: <Flame className=\"size-5\" />,\n color: \"text-orange-500\",\n tint: \"border-orange-500/30 bg-orange-500/10 text-orange-600 dark:text-orange-400\",\n },\n {\n id: \"party\",\n label: t(\"party\"),\n icon: <PartyPopper className=\"size-5\" />,\n color: \"text-emerald-500\",\n tint: \"border-emerald-500/30 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400\",\n },\n ];\n const chosen = reactions.find((reaction) => reaction.id === value) ?? null;\n // While a reaction is in the air, the button still shows what it had, so\n // nothing changes on it until the catch.\n const shown = flight ? flight.previous : chosen;\n\n const rootRef = useRef<HTMLDivElement>(null);\n const triggerRef = useRef<HTMLButtonElement>(null);\n const iconRef = useRef<HTMLSpanElement>(null);\n const optionRefs = useRef<(HTMLButtonElement | null)[]>([]);\n const optionIconRefs = useRef<(HTMLSpanElement | null)[]>([]);\n\n // The tray's reveal: 1 is a circle over the icon, 0 is fully open. It\n // springs open on open and morphs back into the circle as the tray leaves,\n // so it is already closed when the next tray mounts and never flashes open\n // for a frame (motion writes a reset value only on its next frame).\n const reveal = useMotionValue(reduce ? 0 : 1);\n const trayClip = useMotionTemplate`inset(0 calc((100% - ${TRAY_HEIGHT}px) * ${reveal}) 0 0 round 999px)`;\n useEffect(() => {\n if (reduce) {\n reveal.jump(0);\n return;\n }\n const controls = open ? animate(reveal, 0, SPRING_REVEAL) : animate(reveal, 1, OUT);\n return () => controls.stop();\n }, [open, reduce, reveal]);\n\n // The hover blob: springs between slots and stretches with its speed.\n const blobX = useSpring(0, SPRING_BLOB);\n const blobSpeed = useVelocity(blobX);\n const blobScaleX = useTransform(blobSpeed, (speed) => 1 + Math.min(Math.abs(speed) / 2200, 0.45));\n const blobScaleY = useTransform(blobScaleX, (stretch) => 1 - (stretch - 1) * 0.35);\n const activeIndex = reactions.findIndex((reaction) => reaction.id === active);\n // Move the blob with the hover: it appears in place, then glides.\n const hover = (id: string) => {\n const index = reactions.findIndex((reaction) => reaction.id === id);\n if (active === null || reduce) blobX.jump(index * SLOT);\n else blobX.set(index * SLOT);\n setActive(id);\n };\n\n // Close and hand focus back to the button when it was inside the tray.\n const close = () => {\n if (rootRef.current?.contains(document.activeElement)) triggerRef.current?.focus();\n setOpen(false);\n setActive(null);\n };\n // Closing without a pick; a pick closes quietly behind its own sound.\n const dismiss = () => {\n playClose();\n close();\n };\n useDismiss(open, dismiss, rootRef);\n\n // Opening by keyboard moves focus to the current reaction, or the first.\n const focusOnOpen = useRef(false);\n const startIndex = Math.max(\n 0,\n reactions.findIndex((reaction) => reaction.id === value),\n );\n useEffect(() => {\n if (!open || !focusOnOpen.current) return;\n focusOnOpen.current = false;\n optionRefs.current[startIndex]?.focus();\n }, [open, startIndex]);\n\n const pick = (reaction: Reaction, index: number) => {\n const next = reaction.id === value ? null : reaction.id;\n playPick({ pitch: next ? 1.1 : 0.85 });\n // Measure both ends now, from the event, while the tray is still open:\n // the icon itself, so a lifted one leaves from where it is drawn.\n const root = rootRef.current?.getBoundingClientRect();\n const source = optionIconRefs.current[index];\n const from = root && centre(source, root);\n const to = root && centre(iconRef.current, root);\n if (next && from && to && !reduce) {\n const scale = active === reaction.id ? LIFT_SCALE : 1;\n setFlight({ id: Date.now(), reaction, previous: chosen, from, to, scale });\n // The flying copy takes over from here; hide the original so it does\n // not shrink away inside the closing tray beside it.\n if (source) source.style.visibility = \"hidden\";\n } else if (next) setCatches((value) => value + 1);\n if (valueProp === undefined) setInternal(next);\n onValueChange?.(next);\n close();\n };\n\n const onTrayKeyDown = (event: KeyboardEvent<HTMLDivElement>) => {\n const index = optionRefs.current.indexOf(document.activeElement as HTMLButtonElement);\n const step = event.key === \"ArrowRight\" ? 1 : event.key === \"ArrowLeft\" ? -1 : 0;\n if (!step || index === -1) return;\n event.preventDefault();\n optionRefs.current[(index + step + reactions.length) % reactions.length]?.focus();\n };\n\n const total = count + (value ? 1 : 0);\n\n return (\n <div ref={rootRef} className={cn(\"relative inline-flex\", className)}>\n <motion.button\n ref={triggerRef}\n type=\"button\"\n aria-haspopup=\"true\"\n aria-expanded={open}\n aria-label={chosen ? t(\"reacted\", { reaction: chosen.label }) : t(\"react\")}\n whileTap={reduce ? undefined : { scale: 0.94 }}\n transition={SPRING_PRESS}\n onClick={() => {\n if (open) return dismiss();\n playOpen();\n setOpen(true);\n }}\n onKeyDown={(event) => {\n if (event.key === \"Enter\" || event.key === \" \" || event.key === \"ArrowUp\")\n focusOnOpen.current = true;\n if (event.key === \"ArrowUp\" && !open) {\n event.preventDefault();\n playOpen();\n setOpen(true);\n }\n }}\n className={cn(\n \"relative inline-flex h-9 items-center gap-1.5 rounded-full border pr-3.5 pl-2.5 text-sm font-medium tabular-nums transition-colors duration-200\",\n \"focus-visible:ring-ring/50 focus-visible:ring-2 focus-visible:outline-none\",\n shown?.tint ??\n \"border-border text-muted-foreground hover:bg-muted/60 hover:text-foreground\",\n )}\n >\n <span\n ref={iconRef}\n aria-hidden=\"true\"\n className=\"relative inline-flex size-5 items-center justify-center\"\n >\n {/* The catch: sparks in the reaction's colour from where it lands. */}\n {catches > 0 && !reduce && chosen ? (\n <span\n key={catches}\n className={cn(\"pointer-events-none absolute inset-0\", chosen.color)}\n >\n {SPARKS.map((spark) => (\n <motion.span\n key={spark.id}\n className={cn(\n \"absolute top-1/2 left-1/2 rounded-full bg-current\",\n spark.far ? \"size-1\" : \"size-[3px]\",\n )}\n style={{ translate: \"-50% -50%\" }}\n initial={{ opacity: 0, x: 0, y: 0 }}\n animate={{ opacity: [0, 1, 0], x: spark.x, y: spark.y }}\n transition={{ duration: 0.5, ease: EASE_OUT, delay: spark.far ? 0 : 0.04 }}\n />\n ))}\n </span>\n ) : null}\n <AnimatePresence initial={false} mode=\"popLayout\">\n <motion.span\n key={`${shown?.id ?? \"none\"}-${shown ? catches : 0}`}\n className=\"inline-flex\"\n // A caught reaction takes over from the flying copy at its size\n // and settles; the smiley comes back from above.\n initial={\n reduce\n ? { opacity: 0 }\n : shown\n ? {\n opacity: 1,\n scaleX: LAND_SCALE * SQUASH.scaleX,\n scaleY: LAND_SCALE * SQUASH.scaleY,\n y: 0,\n }\n : { opacity: 0, scaleX: 0.5, scaleY: 0.5, y: -6 }\n }\n animate={{ opacity: 1, scaleX: 1, scaleY: 1, y: 0 }}\n exit={\n reduce\n ? { opacity: 0, transition: OUT }\n : { opacity: 0, y: 6, scaleX: 0.8, scaleY: 0.8, transition: OUT }\n }\n // A caught reaction wobbles back from the squash; the smiley just settles.\n transition={shown ? SPRING_JELLY : SPRING_PRESS}\n >\n {shown ? shown.icon : <SmilePlus className=\"size-5\" />}\n </motion.span>\n </AnimatePresence>\n </span>\n {total > 0 ? <DigitSwap value={total} direction={value ? \"up\" : \"down\"} /> : null}\n </motion.button>\n\n <AnimatePresence>\n {open ? (\n <PresenceGate>\n {({ gate }) => (\n <motion.div\n role=\"group\"\n aria-label={t(\"reactions\")}\n onKeyDown={onTrayKeyDown}\n onPointerLeave={() => setActive(null)}\n // Rises out of the button's icon and sinks back into it: 20px in\n // (padding plus half the icon), 26px below the tray (gap plus half the button).\n style={{\n transformOrigin: \"20px calc(100% + 26px)\",\n clipPath: trayClip,\n ...gate.style,\n }}\n inert={gate.inert}\n className=\"border-border bg-background absolute bottom-full left-0 z-20 mb-2 flex items-center gap-0.5 rounded-full border p-1\"\n initial={reduce ? { opacity: 0 } : { opacity: 0, scale: 0.85, y: 8 }}\n animate={{ opacity: 1, scale: 1, y: 0 }}\n exit={\n reduce\n ? { opacity: 0, transition: OUT }\n : { opacity: 0, scale: 0.85, y: 6, transition: OUT }\n }\n transition={{ ...SPRING_PANEL, opacity: { duration: 0.12, ease: EASE_OUT } }}\n >\n {/* The hover blob, gliding under whichever reaction is lifted. */}\n <motion.span\n aria-hidden=\"true\"\n className=\"bg-muted pointer-events-none absolute top-1 left-1 size-9 rounded-full\"\n style={{ x: blobX, scaleX: blobScaleX, scaleY: blobScaleY }}\n initial={false}\n animate={{ opacity: active ? 1 : 0 }}\n transition={{ duration: 0.14, ease: EASE_OUT }}\n />\n {reactions.map((reaction, index) => {\n const lifted = active === reaction.id && !reduce;\n // The reactions either side lean in a little, like a dock.\n const near = !reduce && activeIndex !== -1 && Math.abs(index - activeIndex) === 1;\n return (\n <motion.button\n key={reaction.id}\n ref={(node) => {\n optionRefs.current[index] = node;\n }}\n type=\"button\"\n aria-label={reaction.label}\n aria-pressed={reaction.id === value}\n tabIndex={index === startIndex ? 0 : -1}\n onClick={() => pick(reaction, index)}\n onPointerEnter={() => canHover && hover(reaction.id)}\n onFocus={() => hover(reaction.id)}\n onBlur={() =>\n setActive((current) => (current === reaction.id ? null : current))\n }\n className={cn(\n \"relative inline-flex size-9 items-center justify-center rounded-full transition-colors\",\n \"focus-visible:ring-ring/50 focus-visible:ring-2 focus-visible:outline-none\",\n reaction.color,\n reaction.id === value && \"bg-muted\",\n )}\n initial={{ opacity: 0, y: reduce ? 0 : RISE }}\n animate={{ opacity: 1, y: 0 }}\n transition={{\n opacity: {\n duration: 0.12,\n ease: EASE_OUT,\n delay: reduce ? 0 : index * STAGGER,\n },\n y: { ...SPRING_RISE, delay: reduce ? 0 : index * STAGGER },\n }}\n >\n {/* Only the icon lifts and grows, so the name chip stays crisp. */}\n <motion.span\n ref={(node) => {\n optionIconRefs.current[index] = node;\n }}\n className=\"inline-flex\"\n initial={false}\n animate={{\n y: lifted ? -6 : near ? -2 : 0,\n scale: lifted ? LIFT_SCALE : near ? 1.08 : 1,\n }}\n transition={SPRING_HOVER}\n >\n {reaction.icon}\n </motion.span>\n {/* The name rides above the lifted reaction. */}\n <AnimatePresence>\n {lifted ? (\n <motion.span\n aria-hidden=\"true\"\n className=\"border-border bg-background text-foreground pointer-events-none absolute bottom-full left-1/2 mb-2.5 rounded-full border px-2 py-0.5 text-[11px] font-medium whitespace-nowrap\"\n style={{ translate: \"-50% 0\" }}\n initial={{ opacity: 0, y: 4 }}\n animate={{ opacity: 1, y: 0 }}\n exit={{ opacity: 0, y: 4, transition: OUT }}\n transition={SPRING_HOVER}\n >\n {reaction.label}\n </motion.span>\n ) : null}\n </AnimatePresence>\n </motion.button>\n );\n })}\n </motion.div>\n )}\n </PresenceGate>\n ) : null}\n </AnimatePresence>\n\n {/* The picked reaction in the air: across on one curve, up then down on another. */}\n {flight ? (\n <motion.span\n key={flight.id}\n aria-hidden=\"true\"\n className={cn(\n \"pointer-events-none absolute top-0 left-0 z-30 inline-flex\",\n flight.reaction.color,\n )}\n style={{ translate: \"-50% -50%\" }}\n initial={{ x: flight.from.x, y: flight.from.y, scale: flight.scale }}\n animate={{\n x: flight.to.x,\n y: [flight.from.y, Math.min(flight.from.y, flight.to.y) - 18, flight.to.y],\n scale: [flight.scale, 1.4, LAND_SCALE],\n // It tips back on the way up and levels out to land.\n rotate: [0, -12, 0],\n }}\n transition={{\n x: { duration: FLIGHT_SECONDS, ease: EASE_IN_OUT },\n y: { duration: FLIGHT_SECONDS, ease: [EASE_OUT, EASE_IN], times: [0, 0.4, 1] },\n scale: { duration: FLIGHT_SECONDS, ease: [EASE_OUT, EASE_IN], times: [0, 0.4, 1] },\n rotate: { duration: FLIGHT_SECONDS, ease: [EASE_OUT, EASE_IN_OUT], times: [0, 0.4, 1] },\n }}\n onAnimationComplete={() => {\n setFlight(null);\n setCatches((value) => value + 1);\n }}\n >\n {flight.reaction.icon}\n </motion.span>\n ) : null}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AA4BA,MAAa,yBAAyB;CACpC,OAAO;CACP,SAAS;CACT,WAAW;CACX,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,OAAO;AACT;AAqCA,MAAM,UAAU;AAChB,MAAM,OAAO;AAEb,MAAM,cAAc;CAAE,MAAM;CAAU,WAAW;CAAK,SAAS;CAAI,MAAM;AAAI;AAE7E,MAAM,eAAe;CAAE,MAAM;CAAU,WAAW;CAAK,SAAS;CAAI,MAAM;AAAI;AAC9E,MAAM,MAAM;CAAE,UAAU;CAAM,MAAM;AAAS;AAG7C,MAAM,iBAAiB;AACvB,MAAM,aAAa;AAEnB,MAAM,aAAa;AAInB,MAAM,gBAAgB;CAAE,MAAM;CAAU,WAAW;CAAK,SAAS;CAAI,MAAM;AAAI;AAC/E,MAAM,cAAc;AAEpB,MAAM,cAAc;CAAE,WAAW;CAAK,SAAS;CAAI,MAAM;AAAI;AAE7D,MAAM,OAAO;AAEb,MAAM,eAAe;CAAE,MAAM;CAAU,WAAW;CAAK,SAAS;CAAI,MAAM;AAAI;AAC9E,MAAM,SAAS;CAAE,QAAQ;CAAK,QAAQ;AAAK;AAG3C,MAAM,SAAS,MAAM,KAAK,EAAE,QAAQ,EAAE,IAAI,GAAG,UAAU;CAC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I;MAAI,OAAO,GAAG;KAAC;KACzE,OAAO;MAAC,OAAO;MAAO;MAAK;KAAU;KAErC,QAAQ;MAAC;MAAG;MAAK;KAAC;IACpB;IACA,YAAY;KACV,GAAG;MAAE,UAAU;MAAgB,MAAM;KAAY;KACjD,GAAG;MAAE,UAAU;MAAgB,MAAM,CAAC,UAAU,OAAO;MAAG,OAAO;OAAC;OAAG;OAAK;MAAC;KAAE;KAC7E,OAAO;MAAE,UAAU;MAAgB,MAAM,CAAC,UAAU,OAAO;MAAG,OAAO;OAAC;OAAG;OAAK;MAAC;KAAE;KACjF,QAAQ;MAAE,UAAU;MAAgB,MAAM,CAAC,UAAU,WAAW;MAAG,OAAO;OAAC;OAAG;OAAK;MAAC;KAAE;IACxF;IACA,2BAA2B;KACzB,UAAU,IAAI;KACd,YAAY,UAAU,QAAQ,CAAC;IACjC;IAEC,UAAA,OAAO,SAAS;GACN,GA3BN,OAAO,EA2BD,IACX;EACD;;AAET"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { HTMLMotionProps } from "motion/react";
|
|
2
|
+
export declare const refreshButtonMessages: {
|
|
3
|
+
refresh: string;
|
|
4
|
+
refreshing: string;
|
|
5
|
+
updated: string;
|
|
6
|
+
};
|
|
7
|
+
export type RefreshButtonMessages = typeof refreshButtonMessages;
|
|
8
|
+
export interface RefreshButtonProps extends Omit<HTMLMotionProps<"button">, "children" | "onChange"> {
|
|
9
|
+
/** Runs the refresh. Return a promise to keep spinning until it settles. */
|
|
10
|
+
onRefresh?: () => unknown;
|
|
11
|
+
/** Override any built-in string, e.g. for translation. */
|
|
12
|
+
labels?: Partial<RefreshButtonMessages>;
|
|
13
|
+
/** Play a tap on refresh and a crisp select once updated. Off by default; a `SoundProvider` can mute it app-wide. */
|
|
14
|
+
sound?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A refresh that finishes cleanly. Pressing winds the arrows back, then
|
|
18
|
+
* they spin up from rest; while it works the arrowhead tucks away and the
|
|
19
|
+
* arc breathes like a spinner. On finish the spin coasts to land upright,
|
|
20
|
+
* the arc closes and the arrowhead clicks back in, then a check takes over
|
|
21
|
+
* as Refresh morphs to Refreshing and Updated.
|
|
22
|
+
*/
|
|
23
|
+
export declare function RefreshButton({ onRefresh, labels, sound, className, onClick, ...rest }: RefreshButtonProps): import("react").JSX.Element;
|
|
24
|
+
//# sourceMappingURL=refresh-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refresh-button.d.ts","names":[],"sources":["../../../src/components/motion/refresh-button.tsx"],"mappings":";qBAqBa;;;;;YAMD,+BAA+B;iBAI1B,2BACP,KAAK;;EAEb;;EAEA,SAAS,QAAQ;;EAEjB;;;;;;;;;wBA2Bc,gBACd,WACA,QACA,OACA,WACA,YACG,QACF,qCAAkB,IAAA"}
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useEffect, useRef, useState } from "react";
|
|
3
|
+
import { AnimatePresence, animate, motion, useMotionValue, useReducedMotion } from "motion/react";
|
|
4
|
+
import { cn } from "@kumix/utils";
|
|
5
|
+
import { EASE_IN, EASE_IN_OUT, EASE_OUT, 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 { tapSound } from "../../lib/sounds/tap.js";
|
|
10
|
+
import { TextMorph } from "./text-morph.js";
|
|
11
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
// src/components/motion/refresh-button.tsx
|
|
13
|
+
const refreshButtonMessages = {
|
|
14
|
+
refresh: "Refresh",
|
|
15
|
+
refreshing: "Refreshing",
|
|
16
|
+
updated: "Updated"
|
|
17
|
+
};
|
|
18
|
+
const REFRESHING_MS = 1100;
|
|
19
|
+
const UPDATED_MS = 1600;
|
|
20
|
+
const EXIT = {
|
|
21
|
+
duration: .14,
|
|
22
|
+
ease: EASE_OUT
|
|
23
|
+
};
|
|
24
|
+
const FADE = {
|
|
25
|
+
duration: .16,
|
|
26
|
+
ease: EASE_OUT
|
|
27
|
+
};
|
|
28
|
+
const DRAW = {
|
|
29
|
+
duration: .28,
|
|
30
|
+
ease: EASE_OUT,
|
|
31
|
+
delay: .06
|
|
32
|
+
};
|
|
33
|
+
const WIND = {
|
|
34
|
+
angle: -40,
|
|
35
|
+
duration: .18
|
|
36
|
+
};
|
|
37
|
+
const SPIN_UP = {
|
|
38
|
+
duration: .5,
|
|
39
|
+
ease: EASE_IN
|
|
40
|
+
};
|
|
41
|
+
const TURN_SECONDS = .6;
|
|
42
|
+
const SETTLE = {
|
|
43
|
+
duration: .65,
|
|
44
|
+
ease: EASE_OUT
|
|
45
|
+
};
|
|
46
|
+
const BREATHE = {
|
|
47
|
+
duration: 1.1,
|
|
48
|
+
ease: EASE_IN_OUT,
|
|
49
|
+
repeat: Number.POSITIVE_INFINITY
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* A refresh that finishes cleanly. Pressing winds the arrows back, then
|
|
53
|
+
* they spin up from rest; while it works the arrowhead tucks away and the
|
|
54
|
+
* arc breathes like a spinner. On finish the spin coasts to land upright,
|
|
55
|
+
* the arc closes and the arrowhead clicks back in, then a check takes over
|
|
56
|
+
* as Refresh morphs to Refreshing and Updated.
|
|
57
|
+
*/
|
|
58
|
+
function RefreshButton({ onRefresh, labels, sound = false, className, onClick, ...rest }) {
|
|
59
|
+
const t = useMessages("RefreshButton", refreshButtonMessages, labels);
|
|
60
|
+
const playStart = useSound(tapSound, { enabled: sound });
|
|
61
|
+
const playUpdated = useSound(selectSound, { enabled: sound });
|
|
62
|
+
const reduce = Boolean(useReducedMotion());
|
|
63
|
+
const [phase, setPhase] = useState("idle");
|
|
64
|
+
const rotate = useMotionValue(0);
|
|
65
|
+
const spin = useRef(null);
|
|
66
|
+
useEffect(() => {
|
|
67
|
+
if (phase === "refreshing" && !reduce) {
|
|
68
|
+
let cancelled = false;
|
|
69
|
+
const run = async () => {
|
|
70
|
+
spin.current = animate(rotate, WIND.angle, {
|
|
71
|
+
duration: WIND.duration,
|
|
72
|
+
ease: EASE_OUT
|
|
73
|
+
});
|
|
74
|
+
await spin.current;
|
|
75
|
+
if (cancelled) return;
|
|
76
|
+
spin.current = animate(rotate, 360, SPIN_UP);
|
|
77
|
+
await spin.current;
|
|
78
|
+
if (cancelled) return;
|
|
79
|
+
spin.current = animate(rotate, [360, 720], {
|
|
80
|
+
duration: TURN_SECONDS,
|
|
81
|
+
ease: "linear",
|
|
82
|
+
repeat: Number.POSITIVE_INFINITY
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
run();
|
|
86
|
+
return () => {
|
|
87
|
+
cancelled = true;
|
|
88
|
+
spin.current?.stop();
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
if (phase === "settling") {
|
|
92
|
+
if (reduce) {
|
|
93
|
+
setPhase("updated");
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
const target = Math.ceil((rotate.get() + 180) / 360) * 360;
|
|
97
|
+
const controls = animate(rotate, target, SETTLE);
|
|
98
|
+
controls.then(() => setPhase("updated"));
|
|
99
|
+
return () => controls.stop();
|
|
100
|
+
}
|
|
101
|
+
if (phase === "updated") {
|
|
102
|
+
playUpdated();
|
|
103
|
+
const id = setTimeout(() => {
|
|
104
|
+
rotate.set(0);
|
|
105
|
+
setPhase("idle");
|
|
106
|
+
}, UPDATED_MS);
|
|
107
|
+
return () => clearTimeout(id);
|
|
108
|
+
}
|
|
109
|
+
}, [
|
|
110
|
+
phase,
|
|
111
|
+
reduce,
|
|
112
|
+
rotate,
|
|
113
|
+
playUpdated
|
|
114
|
+
]);
|
|
115
|
+
const refresh = async () => {
|
|
116
|
+
setPhase("refreshing");
|
|
117
|
+
const started = Date.now();
|
|
118
|
+
try {
|
|
119
|
+
await onRefresh?.();
|
|
120
|
+
} catch {
|
|
121
|
+
setPhase("idle");
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
const wait = Math.max(0, REFRESHING_MS - (Date.now() - started));
|
|
125
|
+
setTimeout(() => setPhase("settling"), wait);
|
|
126
|
+
};
|
|
127
|
+
const instant = { duration: 0 };
|
|
128
|
+
const working = phase === "refreshing" && !reduce;
|
|
129
|
+
const label = phase === "idle" ? "refresh" : phase === "updated" ? "updated" : "refreshing";
|
|
130
|
+
return /* @__PURE__ */ jsxs(motion.button, {
|
|
131
|
+
type: "button",
|
|
132
|
+
"aria-busy": phase === "refreshing" || phase === "settling" || void 0,
|
|
133
|
+
whileTap: reduce || phase !== "idle" ? void 0 : { scale: .95 },
|
|
134
|
+
transition: SPRING_PRESS,
|
|
135
|
+
onClick: (event) => {
|
|
136
|
+
onClick?.(event);
|
|
137
|
+
if (event.defaultPrevented || phase !== "idle") return;
|
|
138
|
+
playStart();
|
|
139
|
+
refresh();
|
|
140
|
+
},
|
|
141
|
+
className: cn("inline-flex h-9 items-center rounded-full border pr-2.5 pl-3 text-sm font-medium transition-colors duration-200", "focus-visible:ring-ring/50 focus-visible:ring-2 focus-visible:outline-none", "disabled:pointer-events-none disabled:opacity-50", phase === "idle" && "border-border text-foreground hover:bg-muted/60", phase === "updated" && "border-primary/30 bg-primary/10 text-primary", (phase === "refreshing" || phase === "settling") && "border-border text-muted-foreground", className),
|
|
142
|
+
...rest,
|
|
143
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
144
|
+
className: "relative inline-flex size-4 shrink-0",
|
|
145
|
+
children: /* @__PURE__ */ jsx(AnimatePresence, {
|
|
146
|
+
initial: false,
|
|
147
|
+
children: phase === "updated" ? /* @__PURE__ */ jsx(motion.svg, {
|
|
148
|
+
viewBox: "0 0 24 24",
|
|
149
|
+
fill: "none",
|
|
150
|
+
stroke: "currentColor",
|
|
151
|
+
strokeWidth: 2.5,
|
|
152
|
+
strokeLinecap: "round",
|
|
153
|
+
strokeLinejoin: "round",
|
|
154
|
+
"aria-hidden": "true",
|
|
155
|
+
className: "absolute inset-0 size-4",
|
|
156
|
+
initial: reduce ? { opacity: 0 } : {
|
|
157
|
+
opacity: 0,
|
|
158
|
+
scale: .5
|
|
159
|
+
},
|
|
160
|
+
animate: {
|
|
161
|
+
opacity: 1,
|
|
162
|
+
scale: 1
|
|
163
|
+
},
|
|
164
|
+
exit: reduce ? {
|
|
165
|
+
opacity: 0,
|
|
166
|
+
transition: EXIT
|
|
167
|
+
} : {
|
|
168
|
+
opacity: 0,
|
|
169
|
+
scale: .6,
|
|
170
|
+
transition: EXIT
|
|
171
|
+
},
|
|
172
|
+
transition: reduce ? FADE : {
|
|
173
|
+
scale: SPRING_PRESS,
|
|
174
|
+
opacity: FADE
|
|
175
|
+
},
|
|
176
|
+
children: /* @__PURE__ */ jsx(motion.path, {
|
|
177
|
+
d: "M4.5 12.5l5 5L19.5 7",
|
|
178
|
+
initial: { pathLength: reduce ? 1 : 0 },
|
|
179
|
+
animate: { pathLength: 1 },
|
|
180
|
+
transition: reduce ? instant : DRAW
|
|
181
|
+
})
|
|
182
|
+
}, "updated") : /* @__PURE__ */ jsxs(motion.svg, {
|
|
183
|
+
viewBox: "0 0 24 24",
|
|
184
|
+
fill: "none",
|
|
185
|
+
stroke: "currentColor",
|
|
186
|
+
strokeWidth: 2,
|
|
187
|
+
strokeLinecap: "round",
|
|
188
|
+
strokeLinejoin: "round",
|
|
189
|
+
"aria-hidden": "true",
|
|
190
|
+
className: "absolute inset-0 size-4",
|
|
191
|
+
style: { rotate },
|
|
192
|
+
initial: reduce ? { opacity: 0 } : {
|
|
193
|
+
opacity: 0,
|
|
194
|
+
scale: .6
|
|
195
|
+
},
|
|
196
|
+
animate: {
|
|
197
|
+
opacity: 1,
|
|
198
|
+
scale: 1
|
|
199
|
+
},
|
|
200
|
+
exit: reduce ? {
|
|
201
|
+
opacity: 0,
|
|
202
|
+
transition: EXIT
|
|
203
|
+
} : {
|
|
204
|
+
opacity: 0,
|
|
205
|
+
scale: .6,
|
|
206
|
+
transition: EXIT
|
|
207
|
+
},
|
|
208
|
+
transition: reduce ? FADE : {
|
|
209
|
+
scale: SPRING_PRESS,
|
|
210
|
+
opacity: FADE
|
|
211
|
+
},
|
|
212
|
+
children: [/* @__PURE__ */ jsx(motion.path, {
|
|
213
|
+
d: "M21 12a9 9 0 1 1-2.64-6.36L21 8",
|
|
214
|
+
initial: false,
|
|
215
|
+
animate: working ? { pathLength: [
|
|
216
|
+
.9,
|
|
217
|
+
.3,
|
|
218
|
+
.9
|
|
219
|
+
] } : { pathLength: 1 },
|
|
220
|
+
transition: working ? {
|
|
221
|
+
...BREATHE,
|
|
222
|
+
delay: WIND.duration
|
|
223
|
+
} : {
|
|
224
|
+
duration: .3,
|
|
225
|
+
ease: EASE_OUT
|
|
226
|
+
}
|
|
227
|
+
}), /* @__PURE__ */ jsx(motion.path, {
|
|
228
|
+
d: "M21 3v5h-5",
|
|
229
|
+
style: {
|
|
230
|
+
transformBox: "fill-box",
|
|
231
|
+
originX: 1,
|
|
232
|
+
originY: 1
|
|
233
|
+
},
|
|
234
|
+
initial: false,
|
|
235
|
+
animate: working ? {
|
|
236
|
+
opacity: 0,
|
|
237
|
+
scale: .4
|
|
238
|
+
} : {
|
|
239
|
+
opacity: 1,
|
|
240
|
+
scale: 1
|
|
241
|
+
},
|
|
242
|
+
transition: working ? {
|
|
243
|
+
duration: .14,
|
|
244
|
+
ease: EASE_IN,
|
|
245
|
+
delay: WIND.duration
|
|
246
|
+
} : {
|
|
247
|
+
scale: {
|
|
248
|
+
...SPRING_PRESS,
|
|
249
|
+
delay: .3
|
|
250
|
+
},
|
|
251
|
+
opacity: {
|
|
252
|
+
...FADE,
|
|
253
|
+
delay: .3
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
})]
|
|
257
|
+
}, "arrows")
|
|
258
|
+
})
|
|
259
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
260
|
+
className: "px-1.5",
|
|
261
|
+
children: /* @__PURE__ */ jsx(TextMorph, { children: t(label) })
|
|
262
|
+
})]
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
export { RefreshButton, refreshButtonMessages };
|
|
266
|
+
|
|
267
|
+
//# sourceMappingURL=refresh-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refresh-button.js","names":[],"sources":["../../../src/components/motion/refresh-button.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useRef, useState } from \"react\";\nimport {\n AnimatePresence,\n type AnimationPlaybackControls,\n animate,\n type HTMLMotionProps,\n motion,\n useMotionValue,\n useReducedMotion,\n} from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_IN, EASE_IN_OUT, EASE_OUT, SPRING_PRESS } from \"../../lib/ease\";\nimport { useMessages } from \"../../lib/i18n\";\nimport { useSound } from \"../../lib/sound\";\nimport { selectSound } from \"../../lib/sounds/select\";\nimport { tapSound } from \"../../lib/sounds/tap\";\nimport { TextMorph } from \"./text-morph\";\n\nexport const refreshButtonMessages = {\n refresh: \"Refresh\",\n refreshing: \"Refreshing\",\n updated: \"Updated\",\n};\n\nexport type RefreshButtonMessages = typeof refreshButtonMessages;\n\ntype Phase = \"idle\" | \"refreshing\" | \"settling\" | \"updated\";\n\nexport interface RefreshButtonProps\n extends Omit<HTMLMotionProps<\"button\">, \"children\" | \"onChange\"> {\n /** Runs the refresh. Return a promise to keep spinning until it settles. */\n onRefresh?: () => unknown;\n /** Override any built-in string, e.g. for translation. */\n labels?: Partial<RefreshButtonMessages>;\n /** Play a tap on refresh and a crisp select once updated. Off by default; a `SoundProvider` can mute it app-wide. */\n sound?: boolean;\n}\n\n// Spins at least this long, so a quick refresh still reads as one.\nconst REFRESHING_MS = 1100;\nconst UPDATED_MS = 1600;\n\nconst EXIT = { duration: 0.14, ease: EASE_OUT } as const;\nconst FADE = { duration: 0.16, ease: EASE_OUT } as const;\nconst DRAW = { duration: 0.28, ease: EASE_OUT, delay: 0.06 } as const;\n// A short pull back before it goes, like winding a cord.\nconst WIND = { angle: -40, duration: 0.18 } as const;\n// The first turn speeds up from rest; after that it turns evenly.\nconst SPIN_UP = { duration: 0.5, ease: EASE_IN } as const;\nconst TURN_SECONDS = 0.6;\n// The spin coasts to a stop and lands upright.\nconst SETTLE = { duration: 0.65, ease: EASE_OUT } as const;\n// While it works the arc breathes, long and short, like a spinner.\nconst BREATHE = { duration: 1.1, ease: EASE_IN_OUT, repeat: Number.POSITIVE_INFINITY } as const;\n\n/**\n * A refresh that finishes cleanly. Pressing winds the arrows back, then\n * they spin up from rest; while it works the arrowhead tucks away and the\n * arc breathes like a spinner. On finish the spin coasts to land upright,\n * the arc closes and the arrowhead clicks back in, then a check takes over\n * as Refresh morphs to Refreshing and Updated.\n */\nexport function RefreshButton({\n onRefresh,\n labels,\n sound = false,\n className,\n onClick,\n ...rest\n}: RefreshButtonProps) {\n const t = useMessages(\"RefreshButton\", refreshButtonMessages, labels);\n const playStart = useSound(tapSound, { enabled: sound });\n const playUpdated = useSound(selectSound, { enabled: sound });\n const reduce = Boolean(useReducedMotion());\n const [phase, setPhase] = useState<Phase>(\"idle\");\n const rotate = useMotionValue(0);\n const spin = useRef<AnimationPlaybackControls | null>(null);\n\n // Driven from the phase, so a parent re-render never restarts the spin.\n useEffect(() => {\n if (phase === \"refreshing\" && !reduce) {\n let cancelled = false;\n const run = async () => {\n spin.current = animate(rotate, WIND.angle, { duration: WIND.duration, ease: EASE_OUT });\n await spin.current;\n if (cancelled) return;\n spin.current = animate(rotate, 360, SPIN_UP);\n await spin.current;\n if (cancelled) return;\n spin.current = animate(rotate, [360, 720], {\n duration: TURN_SECONDS,\n ease: \"linear\",\n repeat: Number.POSITIVE_INFINITY,\n });\n };\n void run();\n return () => {\n cancelled = true;\n spin.current?.stop();\n };\n }\n if (phase === \"settling\") {\n if (reduce) {\n setPhase(\"updated\");\n return;\n }\n // At least half a turn more, so the stop always reads as coasting.\n const target = Math.ceil((rotate.get() + 180) / 360) * 360;\n const controls = animate(rotate, target, SETTLE);\n controls.then(() => setPhase(\"updated\"));\n return () => controls.stop();\n }\n if (phase === \"updated\") {\n playUpdated();\n const id = setTimeout(() => {\n rotate.set(0);\n setPhase(\"idle\");\n }, UPDATED_MS);\n return () => clearTimeout(id);\n }\n }, [phase, reduce, rotate, playUpdated]);\n\n const refresh = async () => {\n setPhase(\"refreshing\");\n const started = Date.now();\n try {\n await onRefresh?.();\n } catch {\n setPhase(\"idle\");\n return;\n }\n const wait = Math.max(0, REFRESHING_MS - (Date.now() - started));\n setTimeout(() => setPhase(\"settling\"), wait);\n };\n\n const instant = { duration: 0 };\n const working = phase === \"refreshing\" && !reduce;\n const label = phase === \"idle\" ? \"refresh\" : phase === \"updated\" ? \"updated\" : \"refreshing\";\n\n return (\n <motion.button\n type=\"button\"\n aria-busy={phase === \"refreshing\" || phase === \"settling\" || undefined}\n whileTap={reduce || phase !== \"idle\" ? undefined : { scale: 0.95 }}\n transition={SPRING_PRESS}\n onClick={(event) => {\n onClick?.(event);\n if (event.defaultPrevented || phase !== \"idle\") return;\n playStart();\n void refresh();\n }}\n className={cn(\n \"inline-flex h-9 items-center rounded-full border pr-2.5 pl-3 text-sm font-medium transition-colors duration-200\",\n \"focus-visible:ring-ring/50 focus-visible:ring-2 focus-visible:outline-none\",\n \"disabled:pointer-events-none disabled:opacity-50\",\n phase === \"idle\" && \"border-border text-foreground hover:bg-muted/60\",\n phase === \"updated\" && \"border-primary/30 bg-primary/10 text-primary\",\n (phase === \"refreshing\" || phase === \"settling\") && \"border-border text-muted-foreground\",\n className,\n )}\n {...rest}\n >\n <span className=\"relative inline-flex size-4 shrink-0\">\n <AnimatePresence initial={false}>\n {phase === \"updated\" ? (\n <motion.svg\n key=\"updated\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={2.5}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n className=\"absolute inset-0 size-4\"\n initial={reduce ? { opacity: 0 } : { opacity: 0, scale: 0.5 }}\n animate={{ opacity: 1, scale: 1 }}\n exit={\n reduce\n ? { opacity: 0, transition: EXIT }\n : { opacity: 0, scale: 0.6, transition: EXIT }\n }\n transition={reduce ? FADE : { scale: SPRING_PRESS, opacity: FADE }}\n >\n <motion.path\n d=\"M4.5 12.5l5 5L19.5 7\"\n initial={{ pathLength: reduce ? 1 : 0 }}\n animate={{ pathLength: 1 }}\n transition={reduce ? instant : DRAW}\n />\n </motion.svg>\n ) : (\n <motion.svg\n key=\"arrows\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n className=\"absolute inset-0 size-4\"\n style={{ rotate }}\n initial={reduce ? { opacity: 0 } : { opacity: 0, scale: 0.6 }}\n animate={{ opacity: 1, scale: 1 }}\n exit={\n reduce\n ? { opacity: 0, transition: EXIT }\n : { opacity: 0, scale: 0.6, transition: EXIT }\n }\n transition={reduce ? FADE : { scale: SPRING_PRESS, opacity: FADE }}\n >\n <motion.path\n d=\"M21 12a9 9 0 1 1-2.64-6.36L21 8\"\n initial={false}\n animate={working ? { pathLength: [0.9, 0.3, 0.9] } : { pathLength: 1 }}\n transition={\n working ? { ...BREATHE, delay: WIND.duration } : { duration: 0.3, ease: EASE_OUT }\n }\n />\n {/* The arrowhead tucks away while it spins and clicks back in at the end. */}\n <motion.path\n d=\"M21 3v5h-5\"\n style={{ transformBox: \"fill-box\", originX: 1, originY: 1 }}\n initial={false}\n animate={working ? { opacity: 0, scale: 0.4 } : { opacity: 1, scale: 1 }}\n transition={\n working\n ? { duration: 0.14, ease: EASE_IN, delay: WIND.duration }\n : { scale: { ...SPRING_PRESS, delay: 0.3 }, opacity: { ...FADE, delay: 0.3 } }\n }\n />\n </motion.svg>\n )}\n </AnimatePresence>\n </span>\n <span className=\"px-1.5\">\n <TextMorph>{t(label)}</TextMor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nE,UAAA,CAoBE,oBAAC,OAAO,MAAR;MACE,GAAE;MACF,SAAS;MACT,SAAS,UAAU,EAAE,YAAY;OAAC;OAAK;OAAK;MAAG,EAAE,IAAI,EAAE,YAAY,EAAE;MACrE,YACE,UAAU;OAAE,GAAG;OAAS,OAAO,KAAK;MAAS,IAAI;OAAE,UAAU;OAAK,MAAM;MAAS;KAEpF,CAAA,GAED,oBAAC,OAAO,MAAR;MACE,GAAE;MACF,OAAO;OAAE,cAAc;OAAY,SAAS;OAAG,SAAS;MAAE;MAC1D,SAAS;MACT,SAAS,UAAU;OAAE,SAAS;OAAG,OAAO;MAAI,IAAI;OAAE,SAAS;OAAG,OAAO;MAAE;MACvE,YACE,UACI;OAAE,UAAU;OAAM,MAAM;OAAS,OAAO,KAAK;MAAS,IACtD;OAAE,OAAO;QAAE,GAAG;QAAc,OAAO;OAAI;OAAG,SAAS;QAAE,GAAG;QAAM,OAAO;OAAI;MAAE;KAElF,CAAA,CACS;IAvCN,GAAA,QAuCM;GAEC,CAAA;EACb,CAAA,GACN,oBAAC,QAAD;GAAM,WAAU;GACd,UAAA,oBAAC,WAAD,EAAA,UAAY,EAAE,KAAK,EAAa,CAAA;EAC5B,CAAA,CACO;;AAEnB"}
|
|
@@ -7,7 +7,9 @@ type CommonProps = {
|
|
|
7
7
|
className?: string;
|
|
8
8
|
};
|
|
9
9
|
export interface ScrollProgressBarProps extends CommonProps {
|
|
10
|
+
/** A thin horizontal bar, or "circle" for a ring. Default: "bar" */
|
|
10
11
|
variant?: "bar";
|
|
12
|
+
/** Edge the bar sits on. Default: "top" */
|
|
11
13
|
position?: "top" | "bottom";
|
|
12
14
|
/** Bar thickness in px. */
|
|
13
15
|
height?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-progress.d.ts","names":[],"sources":["../../../src/components/motion/scroll-progress.tsx"],"mappings":";KAWK;;EAEH,WAAW;;EAEX;EACA;;iBAGe,+BAA+B
|
|
1
|
+
{"version":3,"file":"scroll-progress.d.ts","names":[],"sources":["../../../src/components/motion/scroll-progress.tsx"],"mappings":";KAWK;;EAEH,WAAW;;EAEX;EACA;;iBAGe,+BAA+B;;EAE9C;;EAEA;;EAEA;;EAEA;;iBAGe,kCAAkC;EACjD;;EAEA;;EAEA;;YAGU,sBAAsB,yBAAyB;wBAU3C,eAAe,OAAO,sCAAmB,IAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { motion, useReducedMotion, useSpring, useTransform } from "motion/react";
|
|
3
3
|
import { cn } from "@kumix/utils";
|
|
4
|
+
import { useSmoothScroll } from "./smooth-scroll.js";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { motion, useReducedMotion, useSpring, useTransform } from "motion/react";
|
|
6
6
|
// src/components/motion/scroll-progress.tsx
|
|
7
7
|
const PROGRESS_SPRING = {
|
|
8
8
|
stiffness: 120,
|
|
@@ -28,7 +28,7 @@ function ScrollProgressBar({ progress, spring = true, position = "top", height =
|
|
|
28
28
|
height,
|
|
29
29
|
scaleX: value
|
|
30
30
|
},
|
|
31
|
-
className: cn("bg-
|
|
31
|
+
className: cn("bg-primary right-0 left-0 z-50 origin-left", fixed ? "fixed" : "absolute", position === "top" ? "top-0" : "bottom-0", className)
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
function ScrollProgressCircle({ progress, spring = true, size = 40, thickness = 3, className }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-progress.js","names":[],"sources":["../../../src/components/motion/scroll-progress.tsx"],"sourcesContent":["\"use client\";\n\nimport { type MotionValue, motion, useReducedMotion, useSpring, useTransform } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { useSmoothScroll } from \"./smooth-scroll\";\n\n// Soft follow so the indicator trails the scroll smoothly instead of snapping;\n// looser than the UI springs in lib/ease.ts on purpose.\nconst PROGRESS_SPRING = { stiffness: 120, damping: 30, mass: 0.6 };\n\ntype CommonProps = {\n /** Override the scroll source. Defaults to the page via useSmoothScroll. */\n progress?: MotionValue<number>;\n /** Spring-smooth the value. Disabled automatically under reduced motion. */\n spring?: boolean;\n className?: string;\n};\n\nexport interface ScrollProgressBarProps extends CommonProps {\n variant?: \"bar\";\n position?: \"top\" | \"bottom\";\n /** Bar thickness in px. */\n height?: number;\n /** Position the bar with `fixed` (page) or `absolute` (embedded). */\n fixed?: boolean;\n}\n\nexport interface ScrollProgressCircleProps extends CommonProps {\n variant: \"circle\";\n /** Diameter in px. */\n size?: number;\n /** Stroke width in px. */\n thickness?: number;\n}\n\nexport type ScrollProgressProps = ScrollProgressBarProps | ScrollProgressCircleProps;\n\nfunction useProgressValue(source: MotionValue<number> | undefined, spring: boolean) {\n const reduce = useReducedMotion();\n const fallback = useSmoothScroll().progress;\n const raw = source ?? fallback;\n const smoothed = useSpring(raw, PROGRESS_SPRING);\n return spring && !reduce ? smoothed : raw;\n}\n\nexport function ScrollProgress(props: ScrollProgressProps) {\n if (props.variant === \"circle\") return <ScrollProgressCircle {...props} />;\n return <ScrollProgressBar {...props} />;\n}\n\nfunction ScrollProgressBar({\n progress,\n spring = true,\n position = \"top\",\n height = 2,\n fixed = true,\n className,\n}: ScrollProgressBarProps) {\n const value = useProgressValue(progress, spring);\n return (\n <motion.div\n aria-hidden\n style={{ height, scaleX: value }}\n className={cn(\n \"bg-
|
|
1
|
+
{"version":3,"file":"scroll-progress.js","names":[],"sources":["../../../src/components/motion/scroll-progress.tsx"],"sourcesContent":["\"use client\";\n\nimport { type MotionValue, motion, useReducedMotion, useSpring, useTransform } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { useSmoothScroll } from \"./smooth-scroll\";\n\n// Soft follow so the indicator trails the scroll smoothly instead of snapping;\n// looser than the UI springs in lib/ease.ts on purpose.\nconst PROGRESS_SPRING = { stiffness: 120, damping: 30, mass: 0.6 };\n\ntype CommonProps = {\n /** Override the scroll source. Defaults to the page via useSmoothScroll. */\n progress?: MotionValue<number>;\n /** Spring-smooth the value. Disabled automatically under reduced motion. */\n spring?: boolean;\n className?: string;\n};\n\nexport interface ScrollProgressBarProps extends CommonProps {\n /** A thin horizontal bar, or \"circle\" for a ring. Default: \"bar\" */\n variant?: \"bar\";\n /** Edge the bar sits on. Default: \"top\" */\n position?: \"top\" | \"bottom\";\n /** Bar thickness in px. */\n height?: number;\n /** Position the bar with `fixed` (page) or `absolute` (embedded). */\n fixed?: boolean;\n}\n\nexport interface ScrollProgressCircleProps extends CommonProps {\n variant: \"circle\";\n /** Diameter in px. */\n size?: number;\n /** Stroke width in px. */\n thickness?: number;\n}\n\nexport type ScrollProgressProps = ScrollProgressBarProps | ScrollProgressCircleProps;\n\nfunction useProgressValue(source: MotionValue<number> | undefined, spring: boolean) {\n const reduce = useReducedMotion();\n const fallback = useSmoothScroll().progress;\n const raw = source ?? fallback;\n const smoothed = useSpring(raw, PROGRESS_SPRING);\n return spring && !reduce ? smoothed : raw;\n}\n\nexport function ScrollProgress(props: ScrollProgressProps) {\n if (props.variant === \"circle\") return <ScrollProgressCircle {...props} />;\n return <ScrollProgressBar {...props} />;\n}\n\nfunction ScrollProgressBar({\n progress,\n spring = true,\n position = \"top\",\n height = 2,\n fixed = true,\n className,\n}: ScrollProgressBarProps) {\n const value = useProgressValue(progress, spring);\n return (\n <motion.div\n aria-hidden\n style={{ height, scaleX: value }}\n className={cn(\n \"bg-primary right-0 left-0 z-50 origin-left\",\n fixed ? \"fixed\" : \"absolute\",\n position === \"top\" ? \"top-0\" : \"bottom-0\",\n className,\n )}\n />\n );\n}\n\nfunction ScrollProgressCircle({\n progress,\n spring = true,\n size = 40,\n thickness = 3,\n className,\n}: ScrollProgressCircleProps) {\n const value = useProgressValue(progress, spring);\n const radius = (size - thickness) / 2;\n const circumference = 2 * Math.PI * radius;\n const offset = useTransform(value, (v) => circumference * (1 - v));\n\n return (\n <svg\n aria-hidden=\"true\"\n focusable=\"false\"\n role=\"presentation\"\n width={size}\n height={size}\n viewBox={`0 0 ${size} ${size}`}\n className={cn(\"text-foreground\", className)}\n >\n <circle\n cx={size / 2}\n cy={size / 2}\n r={radius}\n fill=\"none\"\n strokeWidth={thickness}\n className=\"stroke-current opacity-15\"\n />\n <motion.circle\n cx={size / 2}\n cy={size / 2}\n r={radius}\n fill=\"none\"\n strokeWidth={thickness}\n strokeLinecap=\"round\"\n className=\"stroke-current\"\n strokeDasharray={circumference}\n style={{ strokeDashoffset: offset }}\n transform={`rotate(-90 ${size / 2} ${size / 2})`}\n />\n </svg>\n );\n}\n"],"mappings":";;;;;;AASA,MAAM,kBAAkB;CAAE,WAAW;CAAK,SAAS;CAAI,MAAM;AAAI;AA+BjE,SAAS,iBAAiB,QAAyC,QAAiB;CAClF,MAAM,SAAS,iBAAiB;CAChC,MAAM,WAAW,gBAAgB,CAAC,CAAC;CACnC,MAAM,MAAM,UAAU;CACtB,MAAM,WAAW,UAAU,KAAK,eAAe;CAC/C,OAAO,UAAU,CAAC,SAAS,WAAW;AACxC;AAEA,SAAgB,eAAe,OAA4B;CACzD,IAAI,MAAM,YAAY,UAAU,OAAO,oBAAC,sBAAD,EAAsB,GAAI,MAAQ,CAAA;CACzE,OAAO,oBAAC,mBAAD,EAAmB,GAAI,MAAQ,CAAA;AACxC;AAEA,SAAS,kBAAkB,EACzB,UACA,SAAS,MACT,WAAW,OACX,SAAS,GACT,QAAQ,MACR,aACyB;CACzB,MAAM,QAAQ,iBAAiB,UAAU,MAAM;CAC/C,OACE,oBAAC,OAAO,KAAR;EACE,eAAA;EACA,OAAO;GAAE;GAAQ,QAAQ;EAAM;EAC/B,WAAW,GACT,8CACA,QAAQ,UAAU,YAClB,aAAa,QAAQ,UAAU,YAC/B,SACF;CACD,CAAA;AAEL;AAEA,SAAS,qBAAqB,EAC5B,UACA,SAAS,MACT,OAAO,IACP,YAAY,GACZ,aAC4B;CAC5B,MAAM,QAAQ,iBAAiB,UAAU,MAAM;CAC/C,MAAM,UAAU,OAAO,aAAa;CACpC,MAAM,gBAAgB,IAAI,KAAK,KAAK;CACpC,MAAM,SAAS,aAAa,QAAQ,MAAM,iBAAiB,IAAI,EAAE;CAEjE,OACE,qBAAC,OAAD;EACE,eAAY;EACZ,WAAU;EACV,MAAK;EACL,OAAO;EACP,QAAQ;EACR,SAAS,OAAO,KAAK,GAAG;EACxB,WAAW,GAAG,mBAAmB,SAAS;EAP5C,UAAA,CASE,oBAAC,UAAD;GACE,IAAI,OAAO;GACX,IAAI,OAAO;GACX,GAAG;GACH,MAAK;GACL,aAAa;GACb,WAAU;EACX,CAAA,GACD,oBAAC,OAAO,QAAR;GACE,IAAI,OAAO;GACX,IAAI,OAAO;GACX,GAAG;GACH,MAAK;GACL,aAAa;GACb,eAAc;GACd,WAAU;GACV,iBAAiB;GACjB,OAAO,EAAE,kBAAkB,OAAO;GAClC,WAAW,cAAc,OAAO,EAAE,GAAG,OAAO,EAAE;EAC/C,CAAA,CACE;;AAET"}
|
|
@@ -7,6 +7,7 @@ export interface ScrollRevealProps {
|
|
|
7
7
|
blur?: number;
|
|
8
8
|
/** Reveal duration in seconds. */
|
|
9
9
|
duration?: number;
|
|
10
|
+
/** Wait before the reveal starts, in seconds. Default: 0 */
|
|
10
11
|
delay?: number;
|
|
11
12
|
/** Reveal only once (default) or every time it enters view. */
|
|
12
13
|
once?: boolean;
|
|
@@ -14,6 +15,7 @@ export interface ScrollRevealProps {
|
|
|
14
15
|
amount?: "some" | "all" | number;
|
|
15
16
|
/** Scroll root for contained scroll areas. Defaults to the viewport. */
|
|
16
17
|
root?: RefObject<Element | null>;
|
|
18
|
+
/** Classes merged onto the wrapper element. */
|
|
17
19
|
className?: string;
|
|
18
20
|
}
|
|
19
21
|
export declare function ScrollReveal({ children, y, blur, duration, delay, once, amount, root, className }: ScrollRevealProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-reveal.d.ts","names":[],"sources":["../../../src/components/motion/scroll-reveal.tsx"],"mappings":";iBAQiB;EACf,UAAU;;EAEV;;EAEA;;EAEA
|
|
1
|
+
{"version":3,"file":"scroll-reveal.d.ts","names":[],"sources":["../../../src/components/motion/scroll-reveal.tsx"],"mappings":";iBAQiB;EACf,UAAU;;EAEV;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,OAAO,UAAU;;EAEjB;;wBAGc,eACd,UACA,GACA,MACA,UACA,OACA,MACA,QACA,MACA,aACC,oCAAiB,IAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { EASE_OUT } from "../../lib/ease.js";
|
|
3
2
|
import { useRef } from "react";
|
|
3
|
+
import { motion, useInView, useReducedMotion } from "motion/react";
|
|
4
4
|
import { cn } from "@kumix/utils";
|
|
5
|
+
import { EASE_OUT } from "../../lib/ease.js";
|
|
5
6
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
import { motion, useInView, useReducedMotion } from "motion/react";
|
|
7
7
|
// src/components/motion/scroll-reveal.tsx
|
|
8
8
|
function ScrollReveal({ children, y = 16, blur = 8, duration = .6, delay = 0, once = true, amount = .3, root, className }) {
|
|
9
9
|
const reduce = useReducedMotion();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-reveal.js","names":[],"sources":["../../../src/components/motion/scroll-reveal.tsx"],"sourcesContent":["\"use client\";\n\nimport { type ReactNode, type RefObject, useRef } from \"react\";\nimport { motion, useInView, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_OUT } from \"../../lib/ease\";\n\nexport interface ScrollRevealProps {\n children: ReactNode;\n /** Slide distance in px before reveal. */\n y?: number;\n /** Enter blur in px (kept ≤ 10 per motion conventions). */\n blur?: number;\n /** Reveal duration in seconds. */\n duration?: number;\n delay?: number;\n /** Reveal only once (default) or every time it enters view. */\n once?: boolean;\n /** Portion of the element that must be visible to trigger. */\n amount?: \"some\" | \"all\" | number;\n /** Scroll root for contained scroll areas. Defaults to the viewport. */\n root?: RefObject<Element | null>;\n className?: string;\n}\n\nexport function ScrollReveal({\n children,\n y = 16,\n blur = 8,\n duration = 0.6,\n delay = 0,\n once = true,\n amount = 0.3,\n root,\n className,\n}: ScrollRevealProps) {\n const reduce = useReducedMotion();\n const ref = useRef<HTMLDivElement>(null);\n const inView = useInView(ref, { root, once, amount });\n\n const hidden = reduce ? { opacity: 0 } : { opacity: 0, y, filter: `blur(${blur}px)` };\n const shown = reduce ? { opacity: 1 } : { opacity: 1, y: 0, filter: \"blur(0px)\" };\n\n return (\n <motion.div\n ref={ref}\n initial={hidden}\n animate={inView ? shown : hidden}\n transition={{ duration, ease: EASE_OUT, delay }}\n className={cn(className)}\n >\n {children}\n </motion.div>\n );\n}\n"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"scroll-reveal.js","names":[],"sources":["../../../src/components/motion/scroll-reveal.tsx"],"sourcesContent":["\"use client\";\n\nimport { type ReactNode, type RefObject, useRef } from \"react\";\nimport { motion, useInView, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_OUT } from \"../../lib/ease\";\n\nexport interface ScrollRevealProps {\n children: ReactNode;\n /** Slide distance in px before reveal. */\n y?: number;\n /** Enter blur in px (kept ≤ 10 per motion conventions). */\n blur?: number;\n /** Reveal duration in seconds. */\n duration?: number;\n /** Wait before the reveal starts, in seconds. Default: 0 */\n delay?: number;\n /** Reveal only once (default) or every time it enters view. */\n once?: boolean;\n /** Portion of the element that must be visible to trigger. */\n amount?: \"some\" | \"all\" | number;\n /** Scroll root for contained scroll areas. Defaults to the viewport. */\n root?: RefObject<Element | null>;\n /** Classes merged onto the wrapper element. */\n className?: string;\n}\n\nexport function ScrollReveal({\n children,\n y = 16,\n blur = 8,\n duration = 0.6,\n delay = 0,\n once = true,\n amount = 0.3,\n root,\n className,\n}: ScrollRevealProps) {\n const reduce = useReducedMotion();\n const ref = useRef<HTMLDivElement>(null);\n const inView = useInView(ref, { root, once, amount });\n\n const hidden = reduce ? { opacity: 0 } : { opacity: 0, y, filter: `blur(${blur}px)` };\n const shown = reduce ? { opacity: 1 } : { opacity: 1, y: 0, filter: \"blur(0px)\" };\n\n return (\n <motion.div\n ref={ref}\n initial={hidden}\n animate={inView ? shown : hidden}\n transition={{ duration, ease: EASE_OUT, delay }}\n className={cn(className)}\n >\n {children}\n </motion.div>\n );\n}\n"],"mappings":";;;;;;;AA4BA,SAAgB,aAAa,EAC3B,UACA,IAAI,IACJ,OAAO,GACP,WAAW,IACX,QAAQ,GACR,OAAO,MACP,SAAS,IACT,MACA,aACoB;CACpB,MAAM,SAAS,iBAAiB;CAChC,MAAM,MAAM,OAAuB,IAAI;CACvC,MAAM,SAAS,UAAU,KAAK;EAAE;EAAM;EAAM;CAAO,CAAC;CAEpD,MAAM,SAAS,SAAS,EAAE,SAAS,EAAE,IAAI;EAAE,SAAS;EAAG;EAAG,QAAQ,QAAQ,KAAK;CAAK;CACpF,MAAM,QAAQ,SAAS,EAAE,SAAS,EAAE,IAAI;EAAE,SAAS;EAAG,GAAG;EAAG,QAAQ;CAAY;CAEhF,OACE,oBAAC,OAAO,KAAR;EACO;EACL,SAAS;EACT,SAAS,SAAS,QAAQ;EAC1B,YAAY;GAAE;GAAU,MAAM;GAAU;EAAM;EAC9C,WAAW,GAAG,SAAS;EAEtB;CACS,CAAA;AAEhB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ScrollTarget } from "./smooth-scroll.js";
|
|
2
1
|
import { ButtonHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import { ScrollTarget } from "./smooth-scroll.js";
|
|
3
3
|
export interface ScrollToProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onClick"> {
|
|
4
4
|
/** Where to scroll: px offset, selector string or element. */
|
|
5
5
|
to: ScrollTarget;
|
|
@@ -8,11 +8,12 @@ export interface ScrollToProps extends Omit<ButtonHTMLAttributes<HTMLButtonEleme
|
|
|
8
8
|
/** Override the ease duration in seconds. */
|
|
9
9
|
duration?: number;
|
|
10
10
|
children: ReactNode;
|
|
11
|
+
/** Classes merged onto the button. */
|
|
11
12
|
className?: string;
|
|
12
13
|
}
|
|
13
14
|
/**
|
|
14
15
|
* Button that smooth-scrolls to a target via the active SmoothScroll provider
|
|
15
|
-
* (or native scroll as a fallback). Respects reduced motion
|
|
16
|
+
* (or native scroll as a fallback). Respects reduced motion - jumps instantly.
|
|
16
17
|
*/
|
|
17
18
|
export declare function ScrollTo({ to, offset, duration, children, className, ...rest }: ScrollToProps): import("react").JSX.Element;
|
|
18
19
|
//# sourceMappingURL=scroll-to.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-to.d.ts","names":[],"sources":["../../../src/components/motion/scroll-to.tsx"],"mappings":";;iBAOiB,sBAAsB,KAAK,qBAAqB;;EAE/D,IAAI;;EAEJ;;EAEA;EACA,UAAU
|
|
1
|
+
{"version":3,"file":"scroll-to.d.ts","names":[],"sources":["../../../src/components/motion/scroll-to.tsx"],"mappings":";;iBAOiB,sBAAsB,KAAK,qBAAqB;;EAE/D,IAAI;;EAEJ;;EAEA;EACA,UAAU;;EAEV;;;;;;wBAOc,WAAW,IAAI,QAAQ,UAAU,UAAU,cAAc,QAAQ,gCAAa,IAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useSmoothScroll } from "./smooth-scroll.js";
|
|
3
2
|
import { cn } from "@kumix/utils";
|
|
3
|
+
import { useSmoothScroll } from "./smooth-scroll.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
// src/components/motion/scroll-to.tsx
|
|
6
6
|
/**
|
|
7
7
|
* Button that smooth-scrolls to a target via the active SmoothScroll provider
|
|
8
|
-
* (or native scroll as a fallback). Respects reduced motion
|
|
8
|
+
* (or native scroll as a fallback). Respects reduced motion - jumps instantly.
|
|
9
9
|
*/
|
|
10
10
|
function ScrollTo({ to, offset, duration, children, className, ...rest }) {
|
|
11
11
|
const { scrollTo } = useSmoothScroll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-to.js","names":[],"sources":["../../../src/components/motion/scroll-to.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ButtonHTMLAttributes, ReactNode } from \"react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { type ScrollTarget, type ScrollToOptions, useSmoothScroll } from \"./smooth-scroll\";\n\nexport interface ScrollToProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, \"onClick\"> {\n /** Where to scroll: px offset, selector string or element. */\n to: ScrollTarget;\n /** Extra px offset from the target (e.g. to clear a sticky header). */\n offset?: number;\n /** Override the ease duration in seconds. */\n duration?: number;\n children: ReactNode;\n className?: string;\n}\n\n/**\n * Button that smooth-scrolls to a target via the active SmoothScroll provider\n * (or native scroll as a fallback). Respects reduced motion
|
|
1
|
+
{"version":3,"file":"scroll-to.js","names":[],"sources":["../../../src/components/motion/scroll-to.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ButtonHTMLAttributes, ReactNode } from \"react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { type ScrollTarget, type ScrollToOptions, useSmoothScroll } from \"./smooth-scroll\";\n\nexport interface ScrollToProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, \"onClick\"> {\n /** Where to scroll: px offset, selector string or element. */\n to: ScrollTarget;\n /** Extra px offset from the target (e.g. to clear a sticky header). */\n offset?: number;\n /** Override the ease duration in seconds. */\n duration?: number;\n children: ReactNode;\n /** Classes merged onto the button. */\n className?: string;\n}\n\n/**\n * Button that smooth-scrolls to a target via the active SmoothScroll provider\n * (or native scroll as a fallback). Respects reduced motion - jumps instantly.\n */\nexport function ScrollTo({ to, offset, duration, children, className, ...rest }: ScrollToProps) {\n const { scrollTo } = useSmoothScroll();\n const options: ScrollToOptions = { offset, duration };\n return (\n <button type=\"button\" onClick={() => scrollTo(to, options)} className={cn(className)} {...rest}>\n {children}\n </button>\n );\n}\n"],"mappings":";;;;;;;;;AAuBA,SAAgB,SAAS,EAAE,IAAI,QAAQ,UAAU,UAAU,WAAW,GAAG,QAAuB;CAC9F,MAAM,EAAE,aAAa,gBAAgB;CACrC,MAAM,UAA2B;EAAE;EAAQ;CAAS;CACpD,OACE,oBAAC,UAAD;EAAQ,MAAK;EAAS,eAAe,SAAS,IAAI,OAAO;EAAG,WAAW,GAAG,SAAS;EAAG,GAAI;EACvF;CACK,CAAA;AAEZ"}
|
|
@@ -1,36 +1,50 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
export interface MorphSelectProps {
|
|
3
|
+
/** The selected value, for controlled use. */
|
|
3
4
|
value?: string;
|
|
5
|
+
/** The initial value when uncontrolled. */
|
|
4
6
|
defaultValue?: string;
|
|
7
|
+
/** Called with the option's value when the user picks one. */
|
|
5
8
|
onValueChange?: (value: string) => void;
|
|
9
|
+
/** Disable the trigger so the panel cannot open. Default: false */
|
|
6
10
|
disabled?: boolean;
|
|
11
|
+
/** Play open and close swishes and a select on a pick. Off by default; a `SoundProvider` can mute it app-wide. */
|
|
12
|
+
sound?: boolean;
|
|
13
|
+
/** Classes merged onto the root element. */
|
|
7
14
|
className?: string;
|
|
8
15
|
children: ReactNode;
|
|
9
16
|
}
|
|
10
17
|
/**
|
|
11
|
-
* Select whose trigger morphs into the panel via a shared layoutId
|
|
18
|
+
* Select whose trigger morphs into the panel via a shared layoutId - instead of
|
|
12
19
|
* a separate dropdown opening, the trigger itself grows into the menu and
|
|
13
|
-
* shrinks back, never detaching. Composable like `Select` (the
|
|
20
|
+
* shrinks back, never detaching. Composable like `Select` (the unfold variant).
|
|
14
21
|
*/
|
|
15
|
-
export declare function MorphSelect({ value, defaultValue, onValueChange, disabled, className, children }: MorphSelectProps): import("react").JSX.Element;
|
|
22
|
+
export declare function MorphSelect({ value, defaultValue, onValueChange, disabled, sound, className, children }: MorphSelectProps): import("react").JSX.Element;
|
|
16
23
|
export interface MorphSelectValueProps {
|
|
24
|
+
/** Text shown in the trigger and panel header before anything is picked. Default: "Select" */
|
|
17
25
|
placeholder?: string;
|
|
26
|
+
/** Classes merged onto the value text. */
|
|
18
27
|
className?: string;
|
|
19
28
|
}
|
|
20
29
|
export declare function MorphSelectValue({ placeholder, className }: MorphSelectValueProps): import("react").JSX.Element;
|
|
21
30
|
export interface MorphSelectTriggerProps {
|
|
31
|
+
/** Classes merged onto the trigger button. */
|
|
22
32
|
className?: string;
|
|
23
33
|
children: ReactNode;
|
|
24
34
|
}
|
|
25
35
|
export declare function MorphSelectTrigger({ className, children }: MorphSelectTriggerProps): import("react").JSX.Element;
|
|
26
36
|
export interface MorphSelectContentProps {
|
|
37
|
+
/** Classes merged onto the open panel. */
|
|
27
38
|
className?: string;
|
|
28
39
|
children: ReactNode;
|
|
29
40
|
}
|
|
30
41
|
export declare function MorphSelectContent({ className, children }: MorphSelectContentProps): import("react").JSX.Element;
|
|
31
42
|
export interface MorphSelectItemProps {
|
|
43
|
+
/** Value reported when this option is picked. */
|
|
32
44
|
value: string;
|
|
45
|
+
/** Make the option unselectable and skip it in keyboard navigation. Default: false */
|
|
33
46
|
disabled?: boolean;
|
|
47
|
+
/** Classes merged onto the option button. */
|
|
34
48
|
className?: string;
|
|
35
49
|
children: ReactNode;
|
|
36
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-morph.d.ts","names":[],"sources":["../../../src/components/motion/select-morph.tsx"],"mappings":";
|
|
1
|
+
{"version":3,"file":"select-morph.d.ts","names":[],"sources":["../../../src/components/motion/select-morph.tsx"],"mappings":";iBAsGiB;;EAEf;;EAEA;;EAEA,iBAAiB;;EAEjB;;EAEA;;EAEA;EACA,UAAU;;;;;;;wBAQI,cACd,OACA,cACA,eACA,UACA,OACA,WACA,YACC,mCAAgB,IAAA;iBAmJF;;EAEf;;EAEA;;wBAGc,mBAAmB,aAAa,aAAa,wCAAqB,IAAA;iBAcjE;;EAEf;EACA,UAAU;;wBAGI,qBAAqB,WAAW,YAAY,0CAAuB,IAAA;iBAwDlE;;EAEf;EACA,UAAU;;wBAGI,qBAAqB,WAAW,YAAY,0CAAuB,IAAA;iBAgHlE;;EAEf;;EAEA;;EAEA;EACA,UAAU;;wBAGI,kBACd,OACA,UACA,WACA,YACC,uCAAoB,IAAA"}
|