@kumix/ui 0.6.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 +69 -47
- 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/components/agents/agent-activity/activity-row.d.ts +1 -1
- package/dist/components/agents/agent-activity/activity-row.d.ts.map +1 -1
- package/dist/components/agents/agent-activity/activity-row.js +31 -26
- package/dist/components/agents/agent-activity/activity-row.js.map +1 -1
- package/dist/components/agents/{agent-activity/index.d.ts → agent-activity.d.ts} +2 -2
- package/dist/components/agents/agent-activity.d.ts.map +1 -0
- package/dist/components/agents/{agent-activity/index.js → agent-activity.js} +13 -27
- 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 +42 -16
- 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 +15 -3
- 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 +2 -74
- package/dist/components/agents/ai-sidebar.d.ts.map +1 -1
- package/dist/components/agents/ai-sidebar.js +16 -332
- package/dist/components/agents/ai-sidebar.js.map +1 -1
- package/dist/components/agents/{approval-card/index.d.ts → approval-card.d.ts} +31 -1
- package/dist/components/agents/approval-card.d.ts.map +1 -0
- package/dist/components/agents/{approval-card/index.js → approval-card.js} +160 -80
- 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 +24 -1
- package/dist/components/agents/citations.d.ts.map +1 -1
- package/dist/components/agents/citations.js +54 -9
- 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 +11 -0
- package/dist/components/agents/code-block.d.ts.map +1 -1
- package/dist/components/agents/code-block.js +34 -26
- 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 +17 -0
- package/dist/components/agents/file-diff.d.ts.map +1 -1
- package/dist/components/agents/file-diff.js +114 -82
- 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 +10 -0
- package/dist/components/agents/image-generation.d.ts.map +1 -1
- package/dist/components/agents/image-generation.js +10 -6
- package/dist/components/agents/image-generation.js.map +1 -1
- package/dist/components/agents/loading-states/agent-progress.d.ts +1 -0
- package/dist/components/agents/loading-states/agent-progress.d.ts.map +1 -1
- package/dist/components/agents/loading-states/agent-progress.js.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.d.ts +1 -0
- package/dist/components/agents/loading-states/reasoning-text.d.ts.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.js +30 -7
- package/dist/components/agents/loading-states/reasoning-text.js.map +1 -1
- package/dist/components/agents/loading-states/thinking-shimmer.d.ts +1 -0
- package/dist/components/agents/loading-states/thinking-shimmer.d.ts.map +1 -1
- package/dist/components/agents/loading-states/thinking-shimmer.js.map +1 -1
- package/dist/components/agents/message-bubble.d.ts +10 -0
- package/dist/components/agents/message-bubble.d.ts.map +1 -1
- package/dist/components/agents/message-bubble.js +59 -39
- package/dist/components/agents/message-bubble.js.map +1 -1
- package/dist/components/agents/message-scroller.d.ts +10 -1
- package/dist/components/agents/message-scroller.d.ts.map +1 -1
- package/dist/components/agents/message-scroller.js +81 -16
- package/dist/components/agents/message-scroller.js.map +1 -1
- package/dist/components/agents/message.d.ts +3 -0
- package/dist/components/agents/message.d.ts.map +1 -1
- package/dist/components/agents/message.js +3 -3
- package/dist/components/agents/message.js.map +1 -1
- package/dist/components/agents/prompt-input.d.ts +41 -1
- package/dist/components/agents/prompt-input.d.ts.map +1 -1
- package/dist/components/agents/prompt-input.js +356 -93
- package/dist/components/agents/prompt-input.js.map +1 -1
- package/dist/components/agents/streaming-response.d.ts +12 -0
- package/dist/components/agents/streaming-response.d.ts.map +1 -1
- package/dist/components/agents/streaming-response.js +35 -28
- package/dist/components/agents/streaming-response.js.map +1 -1
- package/dist/components/agents/todo-list.d.ts +13 -0
- package/dist/components/agents/todo-list.d.ts.map +1 -1
- package/dist/components/agents/todo-list.js +114 -98
- package/dist/components/agents/todo-list.js.map +1 -1
- package/dist/components/agents/tool-approval.d.ts +18 -0
- package/dist/components/agents/tool-approval.d.ts.map +1 -1
- package/dist/components/agents/tool-approval.js +48 -22
- package/dist/components/agents/tool-approval.js.map +1 -1
- package/dist/components/agents/tool-result.d.ts +18 -0
- package/dist/components/agents/tool-result.d.ts.map +1 -1
- package/dist/components/agents/tool-result.js +48 -59
- 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/charts/bar-chart/context.d.ts +12 -4
- package/dist/components/charts/bar-chart/context.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/context.js +3 -1
- 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.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 +2 -2
- package/dist/components/charts/bar-chart/plot.js.map +1 -1
- package/dist/components/charts/bar-chart/tooltip.d.ts +2 -0
- package/dist/components/charts/bar-chart/tooltip.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/tooltip.js +1 -1
- package/dist/components/charts/bar-chart/tooltip.js.map +1 -1
- package/dist/components/charts/bar-chart.d.ts +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 +5 -5
- 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.js +5 -5
- package/dist/components/charts/bump-chart/point.js.map +1 -1
- package/dist/components/charts/bump-chart/series.d.ts +1 -1
- package/dist/components/charts/bump-chart/series.js +2 -2
- package/dist/components/charts/bump-chart/series.js.map +1 -1
- package/dist/components/charts/bump-chart.d.ts +1 -1
- package/dist/components/charts/bump-chart.js +2 -2
- package/dist/components/charts/candlestick-chart/context.d.ts +11 -0
- package/dist/components/charts/candlestick-chart/context.d.ts.map +1 -1
- package/dist/components/charts/candlestick-chart/context.js.map +1 -1
- package/dist/components/charts/candlestick-chart/plot.js +2 -2
- package/dist/components/charts/candlestick-chart/plot.js.map +1 -1
- package/dist/components/charts/composition-chart/context.d.ts +1 -1
- package/dist/components/charts/composition-chart/legend.js +1 -1
- package/dist/components/charts/composition-chart/legend.js.map +1 -1
- package/dist/components/charts/composition-chart/plot.js +1 -1
- package/dist/components/charts/composition-chart.d.ts +1 -1
- package/dist/components/charts/donut-chart/center.d.ts +1 -1
- package/dist/components/charts/donut-chart/context.d.ts +6 -1
- package/dist/components/charts/donut-chart/context.d.ts.map +1 -1
- package/dist/components/charts/donut-chart/legend.d.ts +1 -1
- package/dist/components/charts/donut-chart.d.ts +1 -1
- package/dist/components/charts/funnel-chart.d.ts +8 -0
- package/dist/components/charts/funnel-chart.d.ts.map +1 -1
- package/dist/components/charts/funnel-chart.js +8 -8
- package/dist/components/charts/funnel-chart.js.map +1 -1
- package/dist/components/charts/heat-calendar/grid.js +2 -2
- package/dist/components/charts/heat-calendar/grid.js.map +1 -1
- package/dist/components/charts/heat-calendar/legend.js +1 -1
- package/dist/components/charts/heat-calendar/tooltip.d.ts +1 -1
- package/dist/components/charts/heat-calendar/tooltip.js +2 -2
- package/dist/components/charts/heat-calendar.d.ts +1 -1
- package/dist/components/charts/heat-calendar.js +1 -1
- package/dist/components/charts/line-chart/context.d.ts +12 -4
- package/dist/components/charts/line-chart/context.d.ts.map +1 -1
- package/dist/components/charts/line-chart/context.js +3 -1
- 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.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 +3 -3
- package/dist/components/charts/line-chart/plot.js.map +1 -1
- package/dist/components/charts/line-chart/tooltip.d.ts +1 -0
- package/dist/components/charts/line-chart/tooltip.d.ts.map +1 -1
- package/dist/components/charts/line-chart/tooltip.js.map +1 -1
- package/dist/components/charts/line-chart.d.ts +1 -1
- package/dist/components/charts/liquidity-heatmap.d.ts +8 -0
- package/dist/components/charts/liquidity-heatmap.d.ts.map +1 -1
- package/dist/components/charts/liquidity-heatmap.js +4 -4
- 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.d.ts +14 -2
- package/dist/components/charts/order-book.d.ts.map +1 -1
- package/dist/components/charts/order-book.js +6 -6
- package/dist/components/charts/order-book.js.map +1 -1
- package/dist/components/charts/price-target-fan/header.js +2 -2
- package/dist/components/charts/price-target-fan/header.js.map +1 -1
- package/dist/components/charts/price-target-fan/plot.js +1 -1
- package/dist/components/charts/price-target-fan/series.js +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 +1 -1
- package/dist/components/charts/price-target-fan.js +1 -1
- package/dist/components/charts/returns-calendar/grid.js +10 -7
- 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 +2 -2
- package/dist/components/charts/returns-calendar/tooltip.js.map +1 -1
- package/dist/components/charts/returns-calendar.d.ts +1 -1
- package/dist/components/charts/returns-calendar.d.ts.map +1 -1
- package/dist/components/charts/returns-calendar.js +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 +10 -32
- 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 +2 -2
- package/dist/components/charts/sankey-chart/tooltip.js.map +1 -1
- package/dist/components/charts/sankey-chart.d.ts +1 -1
- package/dist/components/charts/sankey-chart.js +1 -1
- package/dist/components/charts/sparkline.d.ts +4 -0
- package/dist/components/charts/sparkline.d.ts.map +1 -1
- package/dist/components/charts/sparkline.js +3 -3
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/components/charts/status-bar.js +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 +1 -1
- 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 +3 -16
- 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 +3 -3
- 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 +2 -2
- package/dist/components/charts/treemap/tooltip.js.map +1 -1
- package/dist/components/charts/treemap.d.ts +10 -4
- package/dist/components/charts/treemap.d.ts.map +1 -1
- package/dist/components/charts/treemap.js +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 +4 -4
- package/dist/components/charts/volume-profile/plot.js.map +1 -1
- package/dist/components/charts/volume-profile/summary.js +2 -2
- 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 +2 -2
- package/dist/components/charts/volume-profile/tooltip.js.map +1 -1
- package/dist/components/charts/volume-profile.d.ts +12 -3
- package/dist/components/charts/volume-profile.d.ts.map +1 -1
- package/dist/components/charts/volume-profile.js +2 -2
- package/dist/components/charts/volume-profile.js.map +1 -1
- package/dist/components/charts/xy/data-table.d.ts +1 -1
- package/dist/components/charts/xy/legend.d.ts +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.map +1 -1
- package/dist/components/motion/adaptive-stepper.d.ts +13 -0
- package/dist/components/motion/adaptive-stepper.d.ts.map +1 -1
- package/dist/components/motion/adaptive-stepper.js +2 -7
- 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 +4 -0
- package/dist/components/motion/alert.d.ts.map +1 -1
- package/dist/components/motion/alert.js +2 -2
- 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 +2 -2
- 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.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 +17 -55
- package/dist/components/motion/animated-sidebar.d.ts.map +1 -1
- package/dist/components/motion/animated-sidebar.js +4 -628
- 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 -69
- package/dist/components/motion/animated-toast-stack.js +1 -307
- package/dist/components/motion/arc-picker.js +1 -1
- 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.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 +22 -50
- package/dist/components/motion/attachment-upload.d.ts.map +1 -1
- package/dist/components/motion/attachment-upload.js +16 -492
- package/dist/components/motion/attachment-upload.js.map +1 -1
- package/dist/components/motion/availability-scheduler/copy-menu.js +1 -1
- package/dist/components/motion/availability-scheduler/day-row.js +2 -2
- package/dist/components/motion/availability-scheduler/day-row.js.map +1 -1
- package/dist/components/motion/availability-scheduler/icon-button.js +1 -1
- package/dist/components/motion/availability-scheduler/icon-button.js.map +1 -1
- package/dist/components/motion/{availability-scheduler/index.d.ts → availability-scheduler.d.ts} +7 -3
- package/dist/components/motion/availability-scheduler.d.ts.map +1 -0
- package/dist/components/motion/{availability-scheduler/index.js → availability-scheduler.js} +4 -4
- package/dist/components/motion/availability-scheduler.js.map +1 -0
- package/dist/components/motion/avatar-group.d.ts +10 -1
- package/dist/components/motion/avatar-group.d.ts.map +1 -1
- package/dist/components/motion/avatar-group.js +3 -3
- package/dist/components/motion/avatar-group.js.map +1 -1
- package/dist/components/motion/before-after-slider.d.ts +3 -0
- package/dist/components/motion/before-after-slider.d.ts.map +1 -1
- package/dist/components/motion/before-after-slider.js +2 -3
- package/dist/components/motion/before-after-slider.js.map +1 -1
- package/dist/components/motion/bloom-menu.d.ts +5 -0
- package/dist/components/motion/bloom-menu.d.ts.map +1 -1
- package/dist/components/motion/bloom-menu.js +10 -24
- 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 +7 -0
- package/dist/components/motion/bookshelf.d.ts.map +1 -1
- package/dist/components/motion/bookshelf.js +3 -3
- package/dist/components/motion/bookshelf.js.map +1 -1
- package/dist/components/motion/bottom-sheet.d.ts +6 -0
- package/dist/components/motion/bottom-sheet.d.ts.map +1 -1
- package/dist/components/motion/bottom-sheet.js +6 -30
- package/dist/components/motion/bottom-sheet.js.map +1 -1
- package/dist/components/motion/bounce-sidebar.d.ts +16 -0
- package/dist/components/motion/bounce-sidebar.d.ts.map +1 -1
- 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 +2 -2
- package/dist/components/motion/bouncy-accordion.js.map +1 -1
- package/dist/components/motion/breadcrumb.d.ts +2 -0
- package/dist/components/motion/breadcrumb.d.ts.map +1 -1
- package/dist/components/motion/breadcrumb.js +5 -6
- 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 +15 -10
- package/dist/components/motion/button/base.js.map +1 -1
- package/dist/components/motion/button/metallic.d.ts.map +1 -1
- package/dist/components/motion/button/metallic.js +5 -4
- package/dist/components/motion/button/metallic.js.map +1 -1
- package/dist/components/motion/button/stateful.d.ts +5 -0
- package/dist/components/motion/button/stateful.d.ts.map +1 -1
- package/dist/components/motion/button/stateful.js +0 -1
- package/dist/components/motion/button/stateful.js.map +1 -1
- package/dist/components/motion/{button/index.d.ts → button.d.ts} +4 -4
- package/dist/components/motion/button.js +6 -0
- package/dist/components/motion/card-dealer.d.ts +2 -0
- package/dist/components/motion/card-dealer.d.ts.map +1 -1
- package/dist/components/motion/card-dealer.js +4 -4
- package/dist/components/motion/card-dealer.js.map +1 -1
- package/dist/components/motion/card-folder.d.ts +18 -0
- package/dist/components/motion/card-folder.d.ts.map +1 -1
- package/dist/components/motion/card-folder.js +9 -9
- package/dist/components/motion/card-folder.js.map +1 -1
- package/dist/components/motion/card.js +1 -1
- package/dist/components/motion/card.js.map +1 -1
- package/dist/components/motion/casino/game-parts.d.ts +1 -1
- package/dist/components/motion/casino/game-parts.js +5 -5
- package/dist/components/motion/casino/game-parts.js.map +1 -1
- package/dist/components/motion/center-morph-modal.d.ts +4 -0
- package/dist/components/motion/center-morph-modal.d.ts.map +1 -1
- package/dist/components/motion/center-morph-modal.js +64 -91
- package/dist/components/motion/center-morph-modal.js.map +1 -1
- package/dist/components/motion/checkbox.d.ts +8 -0
- package/dist/components/motion/checkbox.d.ts.map +1 -1
- package/dist/components/motion/checkbox.js.map +1 -1
- package/dist/components/motion/chromatic-text-reveal.js +3 -3
- 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 +1 -1
- package/dist/components/motion/collapsible.js.map +1 -1
- package/dist/components/motion/color-picker.d.ts +7 -21
- package/dist/components/motion/color-picker.d.ts.map +1 -1
- package/dist/components/motion/color-picker.js +7 -95
- 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.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 -2
- package/dist/components/motion/combobox/context.js +1 -1
- 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 +4 -4
- 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 +3 -2
- package/dist/components/motion/combobox/trigger.js.map +1 -1
- package/dist/components/motion/combobox.d.ts +1 -1
- package/dist/components/motion/combobox.js +1 -1
- package/dist/components/motion/command-palette.d.ts +29 -1
- package/dist/components/motion/command-palette.d.ts.map +1 -1
- package/dist/components/motion/command-palette.js +282 -124
- 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 +25 -0
- package/dist/components/motion/context-menu.d.ts.map +1 -1
- package/dist/components/motion/context-menu.js +110 -112
- 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 -2
- package/dist/components/motion/crash/crash-balloon.js +2 -2
- package/dist/components/motion/crash/crash-balloon.js.map +1 -1
- package/dist/components/motion/crash/crash-parts.d.ts +2 -2
- package/dist/components/motion/crash/crash-parts.js +1 -1
- package/dist/components/motion/crash/crash-tower.d.ts +2 -2
- package/dist/components/motion/crash/crash-tower.js +3 -3
- package/dist/components/motion/crash/crash-tower.js.map +1 -1
- package/dist/components/motion/crash.d.ts +2 -2
- package/dist/components/motion/crash.js +1 -1
- package/dist/components/motion/cylinder-carousel.d.ts +6 -3
- package/dist/components/motion/cylinder-carousel.d.ts.map +1 -1
- package/dist/components/motion/cylinder-carousel.js +1 -1
- 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 -116
- package/dist/components/motion/date-range-picker.d.ts.map +1 -1
- package/dist/components/motion/date-range-picker.js +14 -922
- 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.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 +2 -2
- 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 +9 -1
- package/dist/components/motion/drawer.d.ts.map +1 -1
- package/dist/components/motion/drawer.js +65 -15
- 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 +30 -18
- package/dist/components/motion/dropdown-menu.d.ts.map +1 -1
- package/dist/components/motion/dropdown-menu.js +113 -421
- package/dist/components/motion/dropdown-menu.js.map +1 -1
- 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.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 +5 -14
- 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 +1 -1
- package/dist/components/motion/expandable-control.js.map +1 -1
- package/dist/components/motion/expandable-tabs.d.ts +16 -1
- package/dist/components/motion/expandable-tabs.d.ts.map +1 -1
- package/dist/components/motion/expandable-tabs.js +3 -15
- 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 +3 -3
- package/dist/components/motion/expanding-arrow-button.js.map +1 -1
- package/dist/components/motion/feedback-widget.d.ts +6 -0
- package/dist/components/motion/feedback-widget.d.ts.map +1 -1
- package/dist/components/motion/feedback-widget.js +13 -29
- package/dist/components/motion/feedback-widget.js.map +1 -1
- package/dist/components/motion/file-tree.d.ts +24 -0
- package/dist/components/motion/file-tree.d.ts.map +1 -1
- package/dist/components/motion/file-tree.js +4 -4
- package/dist/components/motion/file-tree.js.map +1 -1
- package/dist/components/motion/file-upload.d.ts +34 -0
- package/dist/components/motion/file-upload.d.ts.map +1 -1
- package/dist/components/motion/file-upload.js +26 -17
- 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 +7 -0
- package/dist/components/motion/hold-action-button.d.ts.map +1 -1
- package/dist/components/motion/hold-action-button.js +1 -1
- package/dist/components/motion/hold-action-button.js.map +1 -1
- package/dist/components/motion/infinite-masonry.d.ts +22 -0
- package/dist/components/motion/infinite-masonry.d.ts.map +1 -1
- 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 +2 -1
- package/dist/components/motion/input.js.map +1 -1
- package/dist/components/motion/knockout-bracket.d.ts +11 -4
- package/dist/components/motion/knockout-bracket.d.ts.map +1 -1
- package/dist/components/motion/knockout-bracket.js +30 -21
- package/dist/components/motion/knockout-bracket.js.map +1 -1
- package/dist/components/motion/knockout-wheel.d.ts +9 -3
- package/dist/components/motion/knockout-wheel.d.ts.map +1 -1
- package/dist/components/motion/knockout-wheel.js +5 -5
- 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/loader.d.ts +1 -0
- package/dist/components/motion/loader.d.ts.map +1 -1
- 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/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 +2 -1
- package/dist/components/motion/mines.d.ts.map +1 -1
- package/dist/components/motion/mines.js +3 -3
- package/dist/components/motion/mines.js.map +1 -1
- package/dist/components/motion/morphing-lightbox.d.ts +16 -0
- package/dist/components/motion/morphing-lightbox.d.ts.map +1 -1
- package/dist/components/motion/morphing-lightbox.js +3 -3
- package/dist/components/motion/morphing-lightbox.js.map +1 -1
- package/dist/components/motion/morphing-modal.d.ts +2 -0
- package/dist/components/motion/morphing-modal.d.ts.map +1 -1
- package/dist/components/motion/morphing-modal.js +14 -13
- package/dist/components/motion/morphing-modal.js.map +1 -1
- package/dist/components/motion/morphing-search-chips.d.ts +12 -0
- package/dist/components/motion/morphing-search-chips.d.ts.map +1 -1
- package/dist/components/motion/morphing-search-chips.js +6 -16
- package/dist/components/motion/morphing-search-chips.js.map +1 -1
- package/dist/components/motion/morphing-search.d.ts +16 -0
- package/dist/components/motion/morphing-search.d.ts.map +1 -1
- package/dist/components/motion/morphing-search.js +9 -13
- package/dist/components/motion/morphing-search.js.map +1 -1
- package/dist/components/motion/morphing-tabs.d.ts +20 -0
- package/dist/components/motion/morphing-tabs.d.ts.map +1 -1
- 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 -2
- package/dist/components/motion/multi-select/context.js +1 -1
- 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 +5 -5
- 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 +5 -4
- package/dist/components/motion/multi-select/trigger.js.map +1 -1
- package/dist/components/motion/{multi-select/index.d.ts → multi-select.d.ts} +4 -4
- package/dist/components/motion/{multi-select/index.js → multi-select.js} +4 -4
- 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.js +2 -2
- package/dist/components/motion/not-found/glitch.js.map +1 -1
- package/dist/components/motion/not-found/magnetic.js +2 -2
- package/dist/components/motion/not-found/magnetic.js.map +1 -1
- package/dist/components/motion/not-found/shared.d.ts +7 -0
- package/dist/components/motion/not-found/shared.d.ts.map +1 -1
- package/dist/components/motion/not-found/shared.js.map +1 -1
- package/dist/components/motion/not-found/spotlight.js +4 -4
- package/dist/components/motion/not-found/spotlight.js.map +1 -1
- package/dist/components/motion/not-found/stacked.js +2 -2
- package/dist/components/motion/not-found/stacked.js.map +1 -1
- package/dist/components/motion/not-found/terminal.d.ts.map +1 -1
- package/dist/components/motion/not-found/terminal.js +1 -1
- 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 +23 -0
- package/dist/components/motion/notification-stack.d.ts.map +1 -1
- package/dist/components/motion/notification-stack.js.map +1 -1
- package/dist/components/motion/number-ticker.d.ts +6 -1
- package/dist/components/motion/number-ticker.d.ts.map +1 -1
- package/dist/components/motion/number-ticker.js.map +1 -1
- package/dist/components/motion/otp-input.d.ts +6 -0
- package/dist/components/motion/otp-input.d.ts.map +1 -1
- package/dist/components/motion/otp-input.js +3 -7
- package/dist/components/motion/otp-input.js.map +1 -1
- package/dist/components/motion/overflow-actions.d.ts +26 -0
- package/dist/components/motion/overflow-actions.d.ts.map +1 -1
- package/dist/components/motion/overflow-actions.js.map +1 -1
- package/dist/components/motion/pagination.d.ts +4 -0
- package/dist/components/motion/pagination.d.ts.map +1 -1
- package/dist/components/motion/pagination.js +2 -2
- 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.map +1 -1
- package/dist/components/motion/plinko.d.ts +1 -0
- package/dist/components/motion/plinko.d.ts.map +1 -1
- package/dist/components/motion/plinko.js +2 -2
- 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 +4 -24
- 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 +151 -99
- package/dist/components/motion/popover.js.map +1 -1
- package/dist/components/motion/prediction-market-card.d.ts +15 -0
- package/dist/components/motion/prediction-market-card.d.ts.map +1 -1
- package/dist/components/motion/prediction-market-card.js +8 -8
- package/dist/components/motion/prediction-market-card.js.map +1 -1
- package/dist/components/motion/prediction-market.d.ts +34 -0
- package/dist/components/motion/prediction-market.d.ts.map +1 -1
- package/dist/components/motion/prediction-market.js +10 -10
- package/dist/components/motion/prediction-market.js.map +1 -1
- package/dist/components/motion/preview-rail.d.ts +23 -0
- package/dist/components/motion/preview-rail.d.ts.map +1 -1
- package/dist/components/motion/preview-rail.js.map +1 -1
- package/dist/components/motion/project-folder.d.ts +16 -0
- package/dist/components/motion/project-folder.d.ts.map +1 -1
- package/dist/components/motion/project-folder.js +10 -40
- package/dist/components/motion/project-folder.js.map +1 -1
- package/dist/components/motion/pull-to-refresh.d.ts +8 -0
- package/dist/components/motion/pull-to-refresh.d.ts.map +1 -1
- package/dist/components/motion/pull-to-refresh.js +1 -1
- 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.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 +4 -4
- 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 +2 -2
- 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 +1 -1
- 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 +3 -3
- 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 +3 -3
- 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 +2 -2
- 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 +1 -1
- 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.map +1 -1
- package/dist/components/motion/scroll-to.d.ts +2 -1
- package/dist/components/motion/scroll-to.d.ts.map +1 -1
- package/dist/components/motion/scroll-to.js +1 -1
- package/dist/components/motion/scroll-to.js.map +1 -1
- package/dist/components/motion/select-morph.d.ts +16 -2
- package/dist/components/motion/select-morph.d.ts.map +1 -1
- package/dist/components/motion/select-morph.js +148 -85
- 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 +150 -61
- 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/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/signup-form.d.ts +24 -2
- package/dist/components/motion/signup-form.d.ts.map +1 -1
- package/dist/components/motion/signup-form.js +3 -3
- package/dist/components/motion/signup-form.js.map +1 -1
- package/dist/components/motion/slide-action-button.d.ts +6 -0
- package/dist/components/motion/slide-action-button.d.ts.map +1 -1
- package/dist/components/motion/slide-action-button.js.map +1 -1
- package/dist/components/motion/slide-game.d.ts +2 -1
- package/dist/components/motion/slide-game.d.ts.map +1 -1
- package/dist/components/motion/slide-game.js +9 -9
- package/dist/components/motion/slide-game.js.map +1 -1
- package/dist/components/motion/smooth-scroll.d.ts +3 -1
- package/dist/components/motion/smooth-scroll.d.ts.map +1 -1
- package/dist/components/motion/smooth-scroll.js.map +1 -1
- package/dist/components/motion/sortable-list.d.ts +8 -0
- package/dist/components/motion/sortable-list.d.ts.map +1 -1
- package/dist/components/motion/sortable-list.js +2 -2
- 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 +1 -1
- package/dist/components/motion/swap/controls.d.ts.map +1 -1
- package/dist/components/motion/swap/controls.js +20 -20
- package/dist/components/motion/swap/controls.js.map +1 -1
- package/dist/components/motion/swap/field.d.ts +1 -1
- package/dist/components/motion/swap/field.js +8 -7
- package/dist/components/motion/swap/field.js.map +1 -1
- package/dist/components/motion/swap/quote-row.d.ts +1 -1
- package/dist/components/motion/swap/quote-row.js +1 -1
- 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 +1 -1
- package/dist/components/motion/swap/token-picker.d.ts.map +1 -1
- package/dist/components/motion/swap/token-picker.js +21 -18
- package/dist/components/motion/swap/token-picker.js.map +1 -1
- package/dist/components/motion/swap.d.ts +7 -2
- package/dist/components/motion/swap.d.ts.map +1 -1
- package/dist/components/motion/swap.js +1 -1
- package/dist/components/motion/swap.js.map +1 -1
- package/dist/components/motion/swipeable-list.d.ts +38 -0
- package/dist/components/motion/swipeable-list.d.ts.map +1 -1
- 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 +11 -2
- package/dist/components/motion/switch.js.map +1 -1
- package/dist/components/motion/table/skeleton-rows.d.ts +1 -1
- package/dist/components/motion/table/table-header.d.ts +1 -1
- package/dist/components/motion/table/table-menu.d.ts.map +1 -1
- package/dist/components/motion/table/table-menu.js +15 -15
- package/dist/components/motion/table/table-menu.js.map +1 -1
- package/dist/components/motion/{table/index.d.ts → table.d.ts} +3 -3
- package/dist/components/motion/table.d.ts.map +1 -0
- package/dist/components/motion/{table/index.js → table.js} +10 -10
- package/dist/components/motion/table.js.map +1 -0
- package/dist/components/motion/tabs.d.ts +16 -4
- package/dist/components/motion/tabs.d.ts.map +1 -1
- package/dist/components/motion/tabs.js +23 -10
- 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 +1 -1
- 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.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.map +1 -1
- package/dist/components/motion/theme-toggle.d.ts +3 -0
- package/dist/components/motion/theme-toggle.d.ts.map +1 -1
- package/dist/components/motion/theme-toggle.js +4 -3
- 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.map +1 -1
- package/dist/components/motion/timeline.d.ts +7 -0
- package/dist/components/motion/timeline.d.ts.map +1 -1
- 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 -1
- package/dist/components/motion/tooltip-surface.d.ts.map +1 -1
- package/dist/components/motion/tooltip-surface.js +34 -24
- package/dist/components/motion/tooltip-surface.js.map +1 -1
- package/dist/components/motion/tooltip.d.ts +7 -1
- 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-switcher.d.ts +2 -2
- package/dist/components/motion/wallet-card/account-switcher.js +7 -7
- package/dist/components/motion/wallet-card/account-switcher.js.map +1 -1
- package/dist/components/motion/wallet-card/balance-delta.js +1 -1
- package/dist/components/motion/wallet-card/balance-delta.js.map +1 -1
- package/dist/components/motion/wallet-card/copy-button.js +1 -1
- package/dist/components/motion/wallet-card/copy-button.js.map +1 -1
- package/dist/components/motion/wallet-card/search-bar.d.ts +1 -1
- package/dist/components/motion/wallet-card/search-bar.js +8 -8
- package/dist/components/motion/wallet-card/search-bar.js.map +1 -1
- package/dist/components/motion/{wallet-card/index.d.ts → wallet-card.d.ts} +4 -4
- package/dist/components/motion/wallet-card.d.ts.map +1 -0
- package/dist/components/motion/{wallet-card/index.js → wallet-card.js} +11 -11
- 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 +12 -2
- package/dist/components/motion/wheel-picker.js.map +1 -1
- package/dist/components/reui/alert.d.ts +1 -1
- package/dist/components/reui/autocomplete.d.ts +1 -1
- package/dist/components/reui/badge.d.ts +2 -2
- package/dist/components/reui/color-picker.js +1 -1
- package/dist/components/reui/color-picker.js.map +1 -1
- package/dist/components/reui/file-type.d.ts +1 -1
- package/dist/components/reui/filters/filters-advanced.js.map +1 -1
- package/dist/components/reui/frame.d.ts +2 -2
- package/dist/components/reui/frame.js +1 -1
- package/dist/components/reui/frame.js.map +1 -1
- package/dist/components/reui/icon-tile.d.ts +2 -2
- package/dist/components/reui/number-field.d.ts +3 -3
- package/dist/components/reui/rating.d.ts +1 -1
- package/dist/components/ui/attachment.d.ts +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/bubble.d.ts +1 -1
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/calendar.js +1 -1
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/card.js +1 -1
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/combobox.js +2 -2
- package/dist/components/ui/combobox.js.map +1 -1
- package/dist/components/ui/empty.d.ts +1 -1
- package/dist/components/ui/input-group.d.ts +2 -2
- package/dist/components/ui/item.d.ts +2 -2
- package/dist/components/ui/marker.d.ts +1 -1
- package/dist/components/ui/questionnaire.js +2 -2
- package/dist/components/ui/questionnaire.js.map +1 -1
- package/dist/components/ui/sidebar.d.ts +1 -1
- package/dist/components/ui/sidebar.js +1 -1
- package/dist/components/ui/sidebar.js.map +1 -1
- package/dist/components/ui/toggle-group.js +1 -1
- package/dist/components/ui/toggle-group.js.map +1 -1
- package/dist/components/ui/toggle.d.ts +1 -1
- package/dist/components/ui/trace.js +1 -1
- package/dist/components/ui/trace.js.map +1 -1
- package/dist/{constants-CggcOqef.js → constants-DfbfCDSg.js} +3 -6
- package/dist/constants-DfbfCDSg.js.map +1 -0
- package/dist/{context-BrGWrRwa.d.ts → context-4tt2I7Qm.d.ts} +14 -4
- package/dist/context-4tt2I7Qm.d.ts.map +1 -0
- package/dist/{context-DWHy9EUW.js → context-B3BNuwGu.js} +8 -25
- package/dist/context-B3BNuwGu.js.map +1 -0
- package/dist/{context-BEYROlTB.d.ts → context-BFNkGCGz.d.ts} +18 -14
- package/dist/context-BFNkGCGz.d.ts.map +1 -0
- package/dist/{context-r3QNWoPh.js → context-BG1Wzdnj.js} +6 -10
- package/dist/context-BG1Wzdnj.js.map +1 -0
- package/dist/{context-Dae38FV_.js → context-Bx-OaIL8.js} +5 -9
- package/dist/context-Bx-OaIL8.js.map +1 -0
- package/dist/context-C92iQeLO.js.map +1 -1
- package/dist/{context-CmexbpIK.js → context-C9LHO4MN.js} +12 -27
- package/dist/context-C9LHO4MN.js.map +1 -0
- package/dist/context-CHXHCbuu.js.map +1 -1
- package/dist/{context-C5DO1oe1.js → context-CIzAPhXA.js} +37 -99
- package/dist/context-CIzAPhXA.js.map +1 -0
- package/dist/{context-B5NItr9C.d.ts → context-CP3spicY.d.ts} +20 -15
- package/dist/context-CP3spicY.d.ts.map +1 -0
- package/dist/{context-CwSk1WZR.js → context-Cg1VelQJ.js} +9 -25
- package/dist/context-Cg1VelQJ.js.map +1 -0
- package/dist/{context-BpHX6J1T.js → context-DDoVOc0D.js} +8 -25
- package/dist/context-DDoVOc0D.js.map +1 -0
- package/dist/{context-C1Z_5vew.d.ts → context-DMIy-rFm.d.ts} +15 -4
- 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-BLjAwZ5V.js → context-DcJtX6ht.js} +18 -95
- package/dist/context-DcJtX6ht.js.map +1 -0
- package/dist/{context-Cr2SLhVi.js → context-Dg48xMuG.js} +3 -7
- 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-C8M88I1F.js → context-cRAJSFxf.js} +4 -8
- package/dist/context-cRAJSFxf.js.map +1 -0
- package/dist/{context-CgRa89Bq.d.ts → context-jX-r_7EP.d.ts} +12 -7
- package/dist/context-jX-r_7EP.d.ts.map +1 -0
- package/dist/{copy-menu-BizTEv8v.js → copy-menu-Bgoo5oWq.js} +6 -6
- package/dist/copy-menu-Bgoo5oWq.js.map +1 -0
- package/dist/{crash-parts-Dg5WC8u4.js → crash-parts-BkrZ6iBE.js} +2 -2
- package/dist/crash-parts-BkrZ6iBE.js.map +1 -0
- package/dist/date-utils-DVDYcEA_.js +35 -0
- package/dist/date-utils-DVDYcEA_.js.map +1 -0
- package/dist/{ease-DnPhwGe6.d.ts → ease-D_-bhUDt.d.ts} +13 -6
- package/dist/ease-D_-bhUDt.d.ts.map +1 -0
- package/dist/formats-ColrL9Eg.js +58 -0
- package/dist/formats-ColrL9Eg.js.map +1 -0
- package/dist/{game-parts-hATtqY3s.d.ts → game-parts-B635BoSe.d.ts} +4 -4
- package/dist/{game-parts-hATtqY3s.d.ts.map → game-parts-B635BoSe.d.ts.map} +1 -1
- 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.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-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 +1 -1
- package/dist/hooks/use-highlighted-code.d.ts.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 +5 -5
- package/dist/hooks/use-hover-gesture.js.map +1 -1
- package/dist/hooks/use-listbox.d.ts +1 -0
- package/dist/hooks/use-listbox.js +2 -1
- package/dist/hooks/use-listbox.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-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.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/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.map +1 -1
- package/dist/lib/book-sounds.js +8 -9
- package/dist/lib/book-sounds.js.map +1 -1
- 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/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 +2 -2
- package/dist/lib/presence-gate.js.map +1 -1
- 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-D0lxgjNm.d.ts +31 -0
- package/dist/messages-D0lxgjNm.d.ts.map +1 -0
- package/dist/{model-Cqi9KKo1.d.ts → model-CHHE1lHQ.d.ts} +5 -1
- package/dist/{model-Cqi9KKo1.d.ts.map → model-CHHE1lHQ.d.ts.map} +1 -1
- package/dist/{model-DP6FsG__.d.ts → model-D6sI_4m9.d.ts} +5 -1
- package/dist/model-D6sI_4m9.d.ts.map +1 -0
- package/dist/{model-B_LLKNOs.d.ts → model-DUQnYLRU.d.ts} +3 -1
- package/dist/model-DUQnYLRU.d.ts.map +1 -0
- package/dist/{model-Cbzktxjx.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/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-B2aPWHib.js → plot-CSTtMo6j.js} +3 -3
- package/dist/{plot-B2aPWHib.js.map → plot-CSTtMo6j.js.map} +1 -1
- package/dist/popover-morph-CWb4N9ux.d.ts +55 -0
- package/dist/popover-morph-CWb4N9ux.d.ts.map +1 -0
- package/dist/{positioner-DY1vB4rF.js → positioner-CFR4mJg6.js} +112 -4
- 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/{use-inspection-DWk6TdY9.js → scale-JwdKsMkj.js} +2 -55
- package/dist/scale-JwdKsMkj.js.map +1 -0
- package/dist/theme.css +98 -4
- package/dist/{tooltip-UI0lMGya.d.ts → tooltip-CoAbjn9I.d.ts} +9 -1
- package/dist/tooltip-CoAbjn9I.d.ts.map +1 -0
- package/dist/{tooltip-CMtIWcUY.d.ts → tooltip-DI79u-1V.d.ts} +11 -2
- package/dist/tooltip-DI79u-1V.d.ts.map +1 -0
- package/dist/{tooltip-jQICwV_k.d.ts → tooltip-DPci40hM.d.ts} +9 -1
- package/dist/tooltip-DPci40hM.d.ts.map +1 -0
- package/dist/{tooltip-CJccRGy9.d.ts → tooltip-X7sMXf98.d.ts} +11 -2
- package/dist/tooltip-X7sMXf98.d.ts.map +1 -0
- package/dist/{tooltip-BUkacvMl.js → tooltip-gHv-6eOs.js} +54 -43
- package/dist/tooltip-gHv-6eOs.js.map +1 -0
- package/dist/{tooltip-DuPE_3Gi.d.ts → tooltip-gKOUHp_1.d.ts} +8 -1
- 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-DJ8z6gW8.d.ts → types-CbBZy33k.d.ts} +3 -1
- package/dist/{types-DJ8z6gW8.d.ts.map → types-CbBZy33k.d.ts.map} +1 -1
- package/dist/{types-C_v1N4fH.d.ts → types-ClKnPGuP.d.ts} +18 -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-DtUnNprK.d.ts +53 -0
- package/dist/types-DtUnNprK.d.ts.map +1 -0
- package/dist/{use-crash-game-DiGujbfH.d.ts → use-crash-game-C6JPLvAH.d.ts} +5 -2
- package/dist/{use-crash-game-DiGujbfH.d.ts.map → use-crash-game-C6JPLvAH.d.ts.map} +1 -1
- 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-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-position-B1lYvN8D.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-f7_cAAwc.js +55 -0
- package/dist/utils-f7_cAAwc.js.map +1 -0
- package/package.json +16 -16
- 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.map +0 -1
- 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.map +0 -1
- package/dist/components/motion/availability-scheduler/index.js.map +0 -1
- package/dist/components/motion/button/index.js +0 -6
- 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.map +0 -1
- package/dist/components/motion/wallet-card/index.js.map +0 -1
- package/dist/constants-CggcOqef.js.map +0 -1
- package/dist/context-B5NItr9C.d.ts.map +0 -1
- package/dist/context-BEYROlTB.d.ts.map +0 -1
- package/dist/context-BLjAwZ5V.js.map +0 -1
- package/dist/context-BpHX6J1T.js.map +0 -1
- package/dist/context-BrGWrRwa.d.ts.map +0 -1
- package/dist/context-C1Z_5vew.d.ts.map +0 -1
- package/dist/context-C5DO1oe1.js.map +0 -1
- package/dist/context-C8M88I1F.js.map +0 -1
- package/dist/context-CgRa89Bq.d.ts.map +0 -1
- package/dist/context-CmexbpIK.js.map +0 -1
- package/dist/context-Cr2SLhVi.js.map +0 -1
- package/dist/context-CwSk1WZR.js.map +0 -1
- package/dist/context-DWHy9EUW.js.map +0 -1
- package/dist/context-Dae38FV_.js.map +0 -1
- package/dist/context-r3QNWoPh.js.map +0 -1
- package/dist/copy-menu-BizTEv8v.js.map +0 -1
- package/dist/crash-parts-Dg5WC8u4.js.map +0 -1
- package/dist/ease-DnPhwGe6.d.ts.map +0 -1
- package/dist/model-B_LLKNOs.d.ts.map +0 -1
- package/dist/model-Cbzktxjx.d.ts.map +0 -1
- package/dist/model-DP6FsG__.d.ts.map +0 -1
- package/dist/positioner-DY1vB4rF.js.map +0 -1
- package/dist/tooltip-BUkacvMl.js.map +0 -1
- package/dist/tooltip-CJccRGy9.d.ts.map +0 -1
- package/dist/tooltip-CMtIWcUY.d.ts.map +0 -1
- package/dist/tooltip-DuPE_3Gi.d.ts.map +0 -1
- package/dist/tooltip-UI0lMGya.d.ts.map +0 -1
- package/dist/tooltip-jQICwV_k.d.ts.map +0 -1
- package/dist/types-C1WFGMvf.d.ts +0 -34
- package/dist/types-C1WFGMvf.d.ts.map +0 -1
- package/dist/types-C_v1N4fH.d.ts.map +0 -1
- package/dist/types-DROZkngo.d.ts +0 -20
- package/dist/types-DROZkngo.d.ts.map +0 -1
- package/dist/use-active-option-DbxnIM2n.js +0 -85
- package/dist/use-active-option-DbxnIM2n.js.map +0 -1
- package/dist/use-inspection-DWk6TdY9.js.map +0 -1
- package/dist/use-position-B1lYvN8D.d.ts.map +0 -1
- package/dist/use-width-Dmy1eT1-.js +0 -23
- package/dist/use-width-Dmy1eT1-.js.map +0 -1
package/dist/lib/game-sounds.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getAudioContext, retainAudioContext } from "./audio-context.js";
|
|
1
|
+
import { getAudioContext, playerGain, retainAudioContext } from "./audio-context.js";
|
|
2
2
|
// src/lib/game-sounds.ts
|
|
3
3
|
const MASTER_GAIN = .12;
|
|
4
4
|
const BASE = 783.99;
|
|
@@ -9,19 +9,11 @@ const SCALE = [
|
|
|
9
9
|
7,
|
|
10
10
|
9
|
|
11
11
|
];
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const ctx = getAudioContext();
|
|
15
|
-
if (ctx && master?.context !== ctx) {
|
|
16
|
-
master = ctx.createGain();
|
|
17
|
-
master.gain.value = MASTER_GAIN;
|
|
18
|
-
master.connect(ctx.destination);
|
|
19
|
-
}
|
|
20
|
-
return ctx;
|
|
21
|
-
}
|
|
12
|
+
/** This module's level on the shared context (lib/audio-context.ts). */
|
|
13
|
+
const masterFor = (context) => playerGain(context, "game", MASTER_GAIN);
|
|
22
14
|
/** A pitched tone with a fast attack and exponential decay. */
|
|
23
15
|
function tone(context, frequency, at, { duration = .18, type = "sine", gain = 1 } = {}) {
|
|
24
|
-
|
|
16
|
+
const master = masterFor(context);
|
|
25
17
|
const osc = context.createOscillator();
|
|
26
18
|
const env = context.createGain();
|
|
27
19
|
osc.type = type;
|
|
@@ -47,7 +39,7 @@ function note(step) {
|
|
|
47
39
|
function createGameSounds() {
|
|
48
40
|
const release = retainAudioContext();
|
|
49
41
|
let disposed = false;
|
|
50
|
-
const live = () => disposed ? null :
|
|
42
|
+
const live = () => disposed ? null : getAudioContext();
|
|
51
43
|
return {
|
|
52
44
|
prepare() {
|
|
53
45
|
live();
|
|
@@ -78,7 +70,8 @@ function createGameSounds() {
|
|
|
78
70
|
},
|
|
79
71
|
mine() {
|
|
80
72
|
const context = live();
|
|
81
|
-
if (!context
|
|
73
|
+
if (!context) return;
|
|
74
|
+
const master = masterFor(context);
|
|
82
75
|
const now = context.currentTime;
|
|
83
76
|
const length = Math.ceil(context.sampleRate * .45);
|
|
84
77
|
const buffer = context.createBuffer(1, length, context.sampleRate);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-sounds.js","names":[],"sources":["../../src/lib/game-sounds.ts"],"sourcesContent":["import { getAudioContext, retainAudioContext } from \"./audio-context\";\n\nconst MASTER_GAIN = 0.12;\n// Pentatonic steps from G5, so any run of gems stays in key. Two octaves of\n// climb tops out at G7, bright but not shrill.\nconst BASE = 783.99;\nconst SCALE = [0, 2, 4, 7, 9];\n\n
|
|
1
|
+
{"version":3,"file":"game-sounds.js","names":[],"sources":["../../src/lib/game-sounds.ts"],"sourcesContent":["import { getAudioContext, playerGain, retainAudioContext } from \"./audio-context\";\n\nconst MASTER_GAIN = 0.12;\n// Pentatonic steps from G5, so any run of gems stays in key. Two octaves of\n// climb tops out at G7, bright but not shrill.\nconst BASE = 783.99;\nconst SCALE = [0, 2, 4, 7, 9];\n\n/** This module's level on the shared context (lib/audio-context.ts). */\nconst masterFor = (context: AudioContext) => playerGain(context, \"game\", MASTER_GAIN);\n\n/** A pitched tone with a fast attack and exponential decay. */\nfunction tone(\n context: AudioContext,\n frequency: number,\n at: number,\n {\n duration = 0.18,\n type = \"sine\",\n gain = 1,\n }: { duration?: number; type?: OscillatorType; gain?: number } = {},\n) {\n const master = masterFor(context);\n const osc = context.createOscillator();\n const env = context.createGain();\n osc.type = type;\n osc.frequency.setValueAtTime(frequency, at);\n env.gain.setValueAtTime(0.0001, at);\n env.gain.exponentialRampToValueAtTime(gain, at + 0.005);\n env.gain.exponentialRampToValueAtTime(0.0001, at + duration);\n osc.connect(env).connect(master);\n osc.start(at);\n osc.stop(at + duration + 0.02);\n osc.onended = () => env.disconnect();\n}\n\nfunction note(step: number) {\n const octave = Math.floor(step / SCALE.length);\n const semitones = SCALE[step % SCALE.length] + octave * 12;\n return BASE * 2 ** (semitones / 12);\n}\n\nexport interface GameSounds {\n /** Unlock audio; call from a click or key handler. */\n prepare: () => void;\n /** A gem; `streak` counts gems in a row, from 1. */\n gem: (streak: number) => void;\n /** A mine. */\n mine: () => void;\n /** Cashing out. */\n cashOut: () => void;\n dispose: () => void;\n}\n\n/**\n * Lazily-initialized game sounds on the page's shared AudioContext. Nothing is created\n * until the first call. Safe during SSR and without Web Audio: every call\n * becomes a silent no-op.\n */\nexport function createGameSounds(): GameSounds {\n const release = retainAudioContext();\n let disposed = false;\n const live = () => (disposed ? null : getAudioContext());\n\n return {\n prepare() {\n live();\n },\n gem(streak) {\n const context = live();\n if (!context) return;\n const now = context.currentTime;\n // Every fifth gem in a row leads in with a quick two-note run, so the\n // chime waits for it. Notes can't start in the past.\n const run = streak % 5 === 0;\n const at = run ? now + 0.06 : now;\n if (run) {\n [-2, -1].forEach((offset, index) => {\n tone(context, note(Math.max(0, streak - 1 + offset)), now + index * 0.03, {\n gain: 0.35,\n duration: 0.08,\n });\n });\n }\n // Each gem in a row climbs the scale, capped two octaves up.\n const frequency = note(Math.min(streak - 1, SCALE.length * 2));\n // Glassy: a sine fundamental with a quiet triangle an octave up.\n tone(context, frequency, at, { gain: 0.9 });\n tone(context, frequency * 2, at, { type: \"triangle\", gain: 0.15, duration: 0.12 });\n // From the third gem in a row, a sparkle a fifth above answers the chime.\n if (streak >= 3) tone(context, frequency * 1.5, at + 0.05, { gain: 0.25, duration: 0.1 });\n },\n mine() {\n const context = live();\n if (!context) return;\n const master = masterFor(context);\n const now = context.currentTime;\n // A burst of noise swept down through a low-pass filter…\n const length = Math.ceil(context.sampleRate * 0.45);\n const buffer = context.createBuffer(1, length, context.sampleRate);\n const data = buffer.getChannelData(0);\n for (let i = 0; i < length; i++) data[i] = (Math.random() * 2 - 1) * (1 - i / length) ** 2;\n const noise = context.createBufferSource();\n noise.buffer = buffer;\n const filter = context.createBiquadFilter();\n filter.type = \"lowpass\";\n filter.frequency.setValueAtTime(1600, now);\n filter.frequency.exponentialRampToValueAtTime(180, now + 0.4);\n const env = context.createGain();\n env.gain.setValueAtTime(1.1, now);\n env.gain.exponentialRampToValueAtTime(0.0001, now + 0.45);\n noise.connect(filter).connect(env).connect(master);\n noise.start(now);\n noise.onended = () => env.disconnect();\n // …over a low thump that drops in pitch.\n const thump = context.createOscillator();\n const thumpEnv = context.createGain();\n thump.type = \"sine\";\n thump.frequency.setValueAtTime(110, now);\n thump.frequency.exponentialRampToValueAtTime(42, now + 0.3);\n thumpEnv.gain.setValueAtTime(1.4, now);\n thumpEnv.gain.exponentialRampToValueAtTime(0.0001, now + 0.32);\n thump.connect(thumpEnv).connect(master);\n thump.start(now);\n thump.stop(now + 0.34);\n thump.onended = () => thumpEnv.disconnect();\n },\n cashOut() {\n const context = live();\n if (!context) return;\n const now = context.currentTime;\n // A rising major arpeggio, C5 E5 G5 C6, ending on a held shimmer.\n [523.25, 659.25, 783.99, 1046.5].forEach((frequency, index) => {\n const last = index === 3;\n tone(context, frequency, now + index * 0.06, {\n type: \"triangle\",\n gain: 0.6,\n duration: last ? 0.45 : 0.14,\n });\n if (last) tone(context, frequency * 2, now + index * 0.06, { gain: 0.15, duration: 0.5 });\n });\n },\n dispose() {\n if (disposed) return;\n disposed = true;\n release();\n },\n };\n}\n"],"mappings":";;AAEA,MAAM,cAAc;AAGpB,MAAM,OAAO;AACb,MAAM,QAAQ;CAAC;CAAG;CAAG;CAAG;CAAG;AAAC;;AAG5B,MAAM,aAAa,YAA0B,WAAW,SAAS,QAAQ,WAAW;;AAGpF,SAAS,KACP,SACA,WACA,IACA,EACE,WAAW,KACX,OAAO,QACP,OAAO,MACwD,CAAC,GAClE;CACA,MAAM,SAAS,UAAU,OAAO;CAChC,MAAM,MAAM,QAAQ,iBAAiB;CACrC,MAAM,MAAM,QAAQ,WAAW;CAC/B,IAAI,OAAO;CACX,IAAI,UAAU,eAAe,WAAW,EAAE;CAC1C,IAAI,KAAK,eAAe,MAAQ,EAAE;CAClC,IAAI,KAAK,6BAA6B,MAAM,KAAK,IAAK;CACtD,IAAI,KAAK,6BAA6B,MAAQ,KAAK,QAAQ;CAC3D,IAAI,QAAQ,GAAG,CAAC,CAAC,QAAQ,MAAM;CAC/B,IAAI,MAAM,EAAE;CACZ,IAAI,KAAK,KAAK,WAAW,GAAI;CAC7B,IAAI,gBAAgB,IAAI,WAAW;AACrC;AAEA,SAAS,KAAK,MAAc;CAC1B,MAAM,SAAS,KAAK,MAAM,OAAO,MAAM,MAAM;CAC7C,MAAM,YAAY,MAAM,OAAO,MAAM,UAAU,SAAS;CACxD,OAAO,OAAO,MAAM,YAAY;AAClC;;;;;;AAmBA,SAAgB,mBAA+B;CAC7C,MAAM,UAAU,mBAAmB;CACnC,IAAI,WAAW;CACf,MAAM,aAAc,WAAW,OAAO,gBAAgB;CAEtD,OAAO;EACL,UAAU;GACR,KAAK;EACP;EACA,IAAI,QAAQ;GACV,MAAM,UAAU,KAAK;GACrB,IAAI,CAAC,SAAS;GACd,MAAM,MAAM,QAAQ;GAGpB,MAAM,MAAM,SAAS,MAAM;GAC3B,MAAM,KAAK,MAAM,MAAM,MAAO;GAC9B,IAAI,KACF,CAAC,IAAI,EAAE,CAAC,CAAC,SAAS,QAAQ,UAAU;IAClC,KAAK,SAAS,KAAK,KAAK,IAAI,GAAG,SAAS,IAAI,MAAM,CAAC,GAAG,MAAM,QAAQ,KAAM;KACxE,MAAM;KACN,UAAU;IACZ,CAAC;GACH,CAAC;GAGH,MAAM,YAAY,KAAK,KAAK,IAAI,SAAS,GAAG,MAAM,SAAS,CAAC,CAAC;GAE7D,KAAK,SAAS,WAAW,IAAI,EAAE,MAAM,GAAI,CAAC;GAC1C,KAAK,SAAS,YAAY,GAAG,IAAI;IAAE,MAAM;IAAY,MAAM;IAAM,UAAU;GAAK,CAAC;GAEjF,IAAI,UAAU,GAAG,KAAK,SAAS,YAAY,KAAK,KAAK,KAAM;IAAE,MAAM;IAAM,UAAU;GAAI,CAAC;EAC1F;EACA,OAAO;GACL,MAAM,UAAU,KAAK;GACrB,IAAI,CAAC,SAAS;GACd,MAAM,SAAS,UAAU,OAAO;GAChC,MAAM,MAAM,QAAQ;GAEpB,MAAM,SAAS,KAAK,KAAK,QAAQ,aAAa,GAAI;GAClD,MAAM,SAAS,QAAQ,aAAa,GAAG,QAAQ,QAAQ,UAAU;GACjE,MAAM,OAAO,OAAO,eAAe,CAAC;GACpC,KAAK,IAAI,IAAI,GAAG,IAAI,QAAQ,KAAK,KAAK,MAAM,KAAK,OAAO,IAAI,IAAI,MAAM,IAAI,IAAI,WAAW;GACzF,MAAM,QAAQ,QAAQ,mBAAmB;GACzC,MAAM,SAAS;GACf,MAAM,SAAS,QAAQ,mBAAmB;GAC1C,OAAO,OAAO;GACd,OAAO,UAAU,eAAe,MAAM,GAAG;GACzC,OAAO,UAAU,6BAA6B,KAAK,MAAM,EAAG;GAC5D,MAAM,MAAM,QAAQ,WAAW;GAC/B,IAAI,KAAK,eAAe,KAAK,GAAG;GAChC,IAAI,KAAK,6BAA6B,MAAQ,MAAM,GAAI;GACxD,MAAM,QAAQ,MAAM,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,QAAQ,MAAM;GACjD,MAAM,MAAM,GAAG;GACf,MAAM,gBAAgB,IAAI,WAAW;GAErC,MAAM,QAAQ,QAAQ,iBAAiB;GACvC,MAAM,WAAW,QAAQ,WAAW;GACpC,MAAM,OAAO;GACb,MAAM,UAAU,eAAe,KAAK,GAAG;GACvC,MAAM,UAAU,6BAA6B,IAAI,MAAM,EAAG;GAC1D,SAAS,KAAK,eAAe,KAAK,GAAG;GACrC,SAAS,KAAK,6BAA6B,MAAQ,MAAM,GAAI;GAC7D,MAAM,QAAQ,QAAQ,CAAC,CAAC,QAAQ,MAAM;GACtC,MAAM,MAAM,GAAG;GACf,MAAM,KAAK,MAAM,GAAI;GACrB,MAAM,gBAAgB,SAAS,WAAW;EAC5C;EACA,UAAU;GACR,MAAM,UAAU,KAAK;GACrB,IAAI,CAAC,SAAS;GACd,MAAM,MAAM,QAAQ;GAEpB;IAAC;IAAQ;IAAQ;IAAQ;GAAM,CAAC,CAAC,SAAS,WAAW,UAAU;IAC7D,MAAM,OAAO,UAAU;IACvB,KAAK,SAAS,WAAW,MAAM,QAAQ,KAAM;KAC3C,MAAM;KACN,MAAM;KACN,UAAU,OAAO,MAAO;IAC1B,CAAC;IACD,IAAI,MAAM,KAAK,SAAS,YAAY,GAAG,MAAM,QAAQ,KAAM;KAAE,MAAM;KAAM,UAAU;IAAI,CAAC;GAC1F,CAAC;EACH;EACA,UAAU;GACR,IAAI,UAAU;GACd,WAAW;GACX,QAAQ;EACV;CACF;AACF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface Layer {
|
|
2
|
+
/** Whether `target` belongs to this layer (its panel, portals, trigger). */
|
|
3
|
+
contains: (target: Node) => boolean;
|
|
4
|
+
/** True for focus traps and modal scopes, which pull stray focus back. */
|
|
5
|
+
traps?: boolean;
|
|
6
|
+
/** False for a layer that ignores Escape, so the key reaches the one below. */
|
|
7
|
+
escape?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/** Registers an open layer. Call the returned function when it closes. */
|
|
10
|
+
export declare function openLayer(layer: Layer): () => void;
|
|
11
|
+
/** Whether this Escape is `layer`'s to answer: it was innermost when the key went down. */
|
|
12
|
+
export declare function ownsEscape(layer: Layer, event: KeyboardEvent): boolean;
|
|
13
|
+
/** Whether `target` sits in a layer opened on top of `layer`. */
|
|
14
|
+
export declare function inLayerAbove(layer: Layer, target: Node): boolean;
|
|
15
|
+
/** Whether a focus trap is open on top of `layer`; stray focus is that one's to pull back. */
|
|
16
|
+
export declare function trapAbove(layer: Layer): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Whether `target` belongs to any open layer other than `layer`. Pass
|
|
19
|
+
* `traps: false` to count only dismissable overlays, not the traps under them.
|
|
20
|
+
*/
|
|
21
|
+
export declare function inOtherLayer(layer: Layer, target: Node, { traps }?: {
|
|
22
|
+
traps?: boolean | undefined;
|
|
23
|
+
}): boolean;
|
|
24
|
+
//# sourceMappingURL=layers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layers.d.ts","names":[],"sources":["../../src/lib/layers.ts"],"mappings":"A,iBAAiB;;EAEf,WAAW,QAAQ;;EAEnB;;EAEA;;;wBAqBc,UAAU,OAAO;;wBAajB,WAAW,OAAO,OAAO,OAAO;;wBAOhC,aAAa,OAAO,OAAO,QAAQ;;wBAMnC,UAAU,OAAO;;;;;wBASjB,aAAa,OAAO,OAAO,QAAQ,QAAQ"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// src/lib/layers.ts
|
|
2
|
+
const stack = [];
|
|
3
|
+
const escapeOwners = /* @__PURE__ */ new WeakMap();
|
|
4
|
+
let listening = false;
|
|
5
|
+
function innermostEscapeLayer() {
|
|
6
|
+
for (let index = stack.length - 1; index >= 0; index--) if (stack[index].escape !== false) return stack[index];
|
|
7
|
+
}
|
|
8
|
+
function recordEscapeOwner(event) {
|
|
9
|
+
if (event.key === "Escape") escapeOwners.set(event, innermostEscapeLayer());
|
|
10
|
+
}
|
|
11
|
+
/** Registers an open layer. Call the returned function when it closes. */
|
|
12
|
+
function openLayer(layer) {
|
|
13
|
+
if (!listening) {
|
|
14
|
+
document.addEventListener("keydown", recordEscapeOwner, true);
|
|
15
|
+
listening = true;
|
|
16
|
+
}
|
|
17
|
+
stack.push(layer);
|
|
18
|
+
return () => {
|
|
19
|
+
const index = stack.indexOf(layer);
|
|
20
|
+
if (index !== -1) stack.splice(index, 1);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/** Whether this Escape is `layer`'s to answer: it was innermost when the key went down. */
|
|
24
|
+
function ownsEscape(layer, event) {
|
|
25
|
+
if (event.defaultPrevented) return false;
|
|
26
|
+
return (escapeOwners.has(event) ? escapeOwners.get(event) : innermostEscapeLayer()) === layer;
|
|
27
|
+
}
|
|
28
|
+
/** Whether `target` sits in a layer opened on top of `layer`. */
|
|
29
|
+
function inLayerAbove(layer, target) {
|
|
30
|
+
const index = stack.indexOf(layer);
|
|
31
|
+
return stack.slice(index + 1).some((above) => above.contains(target));
|
|
32
|
+
}
|
|
33
|
+
/** Whether a focus trap is open on top of `layer`; stray focus is that one's to pull back. */
|
|
34
|
+
function trapAbove(layer) {
|
|
35
|
+
const index = stack.indexOf(layer);
|
|
36
|
+
return stack.slice(index + 1).some((above) => above.traps);
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Whether `target` belongs to any open layer other than `layer`. Pass
|
|
40
|
+
* `traps: false` to count only dismissable overlays, not the traps under them.
|
|
41
|
+
*/
|
|
42
|
+
function inOtherLayer(layer, target, { traps = true } = {}) {
|
|
43
|
+
return stack.some((other) => other !== layer && (traps || !other.traps) && other.contains(target));
|
|
44
|
+
}
|
|
45
|
+
export { inLayerAbove, inOtherLayer, openLayer, ownsEscape, trapAbove };
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=layers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layers.js","names":[],"sources":["../../src/lib/layers.ts"],"sourcesContent":["export interface Layer {\n /** Whether `target` belongs to this layer (its panel, portals, trigger). */\n contains: (target: Node) => boolean;\n /** True for focus traps and modal scopes, which pull stray focus back. */\n traps?: boolean;\n /** False for a layer that ignores Escape, so the key reaches the one below. */\n escape?: boolean;\n}\n\nconst stack: Layer[] = [];\n// The innermost layer when each Escape began, read before any handler runs,\n// so a layer that closes itself mid-event can't hand the key to the one below.\nconst escapeOwners = new WeakMap<Event, Layer | undefined>();\nlet listening = false;\n\nfunction innermostEscapeLayer() {\n for (let index = stack.length - 1; index >= 0; index--) {\n if (stack[index].escape !== false) return stack[index];\n }\n return undefined;\n}\n\nfunction recordEscapeOwner(event: KeyboardEvent) {\n if (event.key === \"Escape\") escapeOwners.set(event, innermostEscapeLayer());\n}\n\n/** Registers an open layer. Call the returned function when it closes. */\nexport function openLayer(layer: Layer) {\n if (!listening) {\n document.addEventListener(\"keydown\", recordEscapeOwner, true);\n listening = true;\n }\n stack.push(layer);\n return () => {\n const index = stack.indexOf(layer);\n if (index !== -1) stack.splice(index, 1);\n };\n}\n\n/** Whether this Escape is `layer`'s to answer: it was innermost when the key went down. */\nexport function ownsEscape(layer: Layer, event: KeyboardEvent) {\n if (event.defaultPrevented) return false;\n const owner = escapeOwners.has(event) ? escapeOwners.get(event) : innermostEscapeLayer();\n return owner === layer;\n}\n\n/** Whether `target` sits in a layer opened on top of `layer`. */\nexport function inLayerAbove(layer: Layer, target: Node) {\n const index = stack.indexOf(layer);\n return stack.slice(index + 1).some((above) => above.contains(target));\n}\n\n/** Whether a focus trap is open on top of `layer`; stray focus is that one's to pull back. */\nexport function trapAbove(layer: Layer) {\n const index = stack.indexOf(layer);\n return stack.slice(index + 1).some((above) => above.traps);\n}\n\n/**\n * Whether `target` belongs to any open layer other than `layer`. Pass\n * `traps: false` to count only dismissable overlays, not the traps under them.\n */\nexport function inOtherLayer(layer: Layer, target: Node, { traps = true } = {}) {\n return stack.some(\n (other) => other !== layer && (traps || !other.traps) && other.contains(target),\n );\n}\n"],"mappings":";AASA,MAAM,QAAiB,CAAC;AAGxB,MAAM,+BAAe,IAAI,QAAkC;AAC3D,IAAI,YAAY;AAEhB,SAAS,uBAAuB;CAC9B,KAAK,IAAI,QAAQ,MAAM,SAAS,GAAG,SAAS,GAAG,SAC7C,IAAI,MAAM,MAAM,CAAC,WAAW,OAAO,OAAO,MAAM;AAGpD;AAEA,SAAS,kBAAkB,OAAsB;CAC/C,IAAI,MAAM,QAAQ,UAAU,aAAa,IAAI,OAAO,qBAAqB,CAAC;AAC5E;;AAGA,SAAgB,UAAU,OAAc;CACtC,IAAI,CAAC,WAAW;EACd,SAAS,iBAAiB,WAAW,mBAAmB,IAAI;EAC5D,YAAY;CACd;CACA,MAAM,KAAK,KAAK;CAChB,aAAa;EACX,MAAM,QAAQ,MAAM,QAAQ,KAAK;EACjC,IAAI,UAAU,IAAI,MAAM,OAAO,OAAO,CAAC;CACzC;AACF;;AAGA,SAAgB,WAAW,OAAc,OAAsB;CAC7D,IAAI,MAAM,kBAAkB,OAAO;CAEnC,QADc,aAAa,IAAI,KAAK,IAAI,aAAa,IAAI,KAAK,IAAI,qBAAqB,OACtE;AACnB;;AAGA,SAAgB,aAAa,OAAc,QAAc;CACvD,MAAM,QAAQ,MAAM,QAAQ,KAAK;CACjC,OAAO,MAAM,MAAM,QAAQ,CAAC,CAAC,CAAC,MAAM,UAAU,MAAM,SAAS,MAAM,CAAC;AACtE;;AAGA,SAAgB,UAAU,OAAc;CACtC,MAAM,QAAQ,MAAM,QAAQ,KAAK;CACjC,OAAO,MAAM,MAAM,QAAQ,CAAC,CAAC,CAAC,MAAM,UAAU,MAAM,KAAK;AAC3D;;;;;AAMA,SAAgB,aAAa,OAAc,QAAc,EAAE,QAAQ,SAAS,CAAC,GAAG;CAC9E,OAAO,MAAM,MACV,UAAU,UAAU,UAAU,SAAS,CAAC,MAAM,UAAU,MAAM,SAAS,MAAM,CAChF;AACF"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Ref } from "react";
|
|
2
|
+
/** Points a callback or object ref at `value`. */
|
|
3
|
+
export declare function assignRef<T>(ref: Ref<T> | undefined, value: T | null): void;
|
|
4
|
+
/** One callback ref that sets every ref it is given. */
|
|
5
|
+
export declare function mergeRefs<T>(...refs: Array<Ref<T> | undefined>): (node: T | null) => void;
|
|
6
|
+
//# sourceMappingURL=merge-refs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge-refs.d.ts","names":[],"sources":["../../src/lib/merge-refs.ts"],"mappings":";;wBAGgB,UAAU,GAAG,KAAK,IAAI,gBAAgB,OAAO;;wBAM7C,UAAU,MAAM,MAAM,MAAM,IAAI,mBACtC,MAAM"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// src/lib/merge-refs.ts
|
|
2
|
+
/** Points a callback or object ref at `value`. */
|
|
3
|
+
function assignRef(ref, value) {
|
|
4
|
+
if (typeof ref === "function") ref(value);
|
|
5
|
+
else if (ref) ref.current = value;
|
|
6
|
+
}
|
|
7
|
+
/** One callback ref that sets every ref it is given. */
|
|
8
|
+
function mergeRefs(...refs) {
|
|
9
|
+
return (node) => {
|
|
10
|
+
for (const ref of refs) assignRef(ref, node);
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export { assignRef, mergeRefs };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=merge-refs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merge-refs.js","names":[],"sources":["../../src/lib/merge-refs.ts"],"sourcesContent":["import type { Ref } from \"react\";\n\n/** Points a callback or object ref at `value`. */\nexport function assignRef<T>(ref: Ref<T> | undefined, value: T | null) {\n if (typeof ref === \"function\") ref(value);\n else if (ref) ref.current = value;\n}\n\n/** One callback ref that sets every ref it is given. */\nexport function mergeRefs<T>(...refs: Array<Ref<T> | undefined>) {\n return (node: T | null) => {\n for (const ref of refs) assignRef(ref, node);\n };\n}\n"],"mappings":";;AAGA,SAAgB,UAAa,KAAyB,OAAiB;CACrE,IAAI,OAAO,QAAQ,YAAY,IAAI,KAAK;MACnC,IAAI,KAAK,IAAI,UAAU;AAC9B;;AAGA,SAAgB,UAAa,GAAG,MAAiC;CAC/D,QAAQ,SAAmB;EACzB,KAAK,MAAM,OAAO,MAAM,UAAU,KAAK,IAAI;CAC7C;AACF"}
|
|
@@ -4,7 +4,7 @@ export interface PresenceGateRenderProps {
|
|
|
4
4
|
* False from the render that starts the exit animation onward. An overlay
|
|
5
5
|
* kept in the tree by `AnimatePresence` is still the topmost thing on the
|
|
6
6
|
* page, so anything it decides from `open` alone stays true for the whole
|
|
7
|
-
* exit
|
|
7
|
+
* exit - this is the boolean that already knows the overlay is leaving.
|
|
8
8
|
*/
|
|
9
9
|
isPresent: boolean;
|
|
10
10
|
/**
|
|
@@ -12,7 +12,7 @@ export interface PresenceGateRenderProps {
|
|
|
12
12
|
* open. Interaction releases in the same commit that starts the exit while
|
|
13
13
|
* the visual exit keeps playing: pointer events stop landing, and `inert`
|
|
14
14
|
* drops the subtree from focus order, from tab order and from the
|
|
15
|
-
* accessibility tree
|
|
15
|
+
* accessibility tree - an exiting dialog is not a dialog you can still type
|
|
16
16
|
* into. A layer that never takes pointer events (a wrapper that only centres
|
|
17
17
|
* the panel) takes `inert={!isPresent}` alone, so its own
|
|
18
18
|
* `pointer-events-none` is not overwritten.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presence-gate.js","names":[],"sources":["../../src/lib/presence-gate.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { useIsPresent } from \"motion/react\";\n\nexport interface PresenceGateRenderProps {\n /**\n * False from the render that starts the exit animation onward. An overlay\n * kept in the tree by `AnimatePresence` is still the topmost thing on the\n * page, so anything it decides from `open` alone stays true for the whole\n * exit
|
|
1
|
+
{"version":3,"file":"presence-gate.js","names":[],"sources":["../../src/lib/presence-gate.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { useIsPresent } from \"motion/react\";\n\nexport interface PresenceGateRenderProps {\n /**\n * False from the render that starts the exit animation onward. An overlay\n * kept in the tree by `AnimatePresence` is still the topmost thing on the\n * page, so anything it decides from `open` alone stays true for the whole\n * exit - this is the boolean that already knows the overlay is leaving.\n */\n isPresent: boolean;\n /**\n * Spread onto every layer that takes pointer events while the overlay is\n * open. Interaction releases in the same commit that starts the exit while\n * the visual exit keeps playing: pointer events stop landing, and `inert`\n * drops the subtree from focus order, from tab order and from the\n * accessibility tree - an exiting dialog is not a dialog you can still type\n * into. A layer that never takes pointer events (a wrapper that only centres\n * the panel) takes `inert={!isPresent}` alone, so its own\n * `pointer-events-none` is not overwritten.\n */\n gate: {\n inert: boolean;\n style: { pointerEvents: \"auto\" | \"none\" };\n };\n}\n\nexport interface PresenceGateProps {\n children: (props: PresenceGateRenderProps) => ReactNode;\n}\n\n/**\n * Reads the presence of the subtree it renders and hands it down.\n *\n * `useIsPresent` only answers inside the `AnimatePresence` subtree, and the\n * components that own an overlay render the `AnimatePresence` themselves, so\n * the boolean has to be read one component further down: this is that\n * component, and the render prop is how it reaches the layers.\n */\nexport function PresenceGate({ children }: PresenceGateProps) {\n const isPresent = useIsPresent();\n\n return children({\n isPresent,\n gate: {\n inert: !isPresent,\n style: { pointerEvents: isPresent ? \"auto\" : \"none\" },\n },\n });\n}\n"],"mappings":";;;;;;;;;;;AAyCA,SAAgB,aAAa,EAAE,YAA+B;CAC5D,MAAM,YAAY,aAAa;CAE/B,OAAO,SAAS;EACd;EACA,MAAM;GACJ,OAAO,CAAC;GACR,OAAO,EAAE,eAAe,YAAY,SAAS,OAAO;EACtD;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface ScrollLockOptions {
|
|
2
|
+
/**
|
|
3
|
+
* Pin the body with `position: fixed` and restore the scroll offset on
|
|
4
|
+
* release. iOS Safari still scrolls an `overflow: hidden` body under a
|
|
5
|
+
* touch drag, so full-screen sheets that take touch gestures need this.
|
|
6
|
+
*/
|
|
7
|
+
fixed?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/** Locks page scroll. Call the returned function to release this lock. */
|
|
10
|
+
export declare function lockScroll(options?: ScrollLockOptions): () => void;
|
|
11
|
+
/** Locks page scroll while `locked` is true. */
|
|
12
|
+
export declare function useScrollLock(locked: boolean, { fixed }?: ScrollLockOptions): void;
|
|
13
|
+
//# sourceMappingURL=scroll-lock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scroll-lock.d.ts","names":[],"sources":["../../src/lib/scroll-lock.ts"],"mappings":"A,iBAIiB;;;;;;EAMf;;;wBAyCc,WAAW,UAAS;;wBAcpB,cAAc,mBAAmB,UAAiB"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useEffect } from "react";
|
|
3
|
+
// src/lib/scroll-lock.ts
|
|
4
|
+
let owners = 0;
|
|
5
|
+
let restore = null;
|
|
6
|
+
function apply({ fixed = false }) {
|
|
7
|
+
const root = document.documentElement;
|
|
8
|
+
const body = document.body;
|
|
9
|
+
const scrollY = window.scrollY;
|
|
10
|
+
const previous = {
|
|
11
|
+
rootOverflow: root.style.overflow,
|
|
12
|
+
overflow: body.style.overflow,
|
|
13
|
+
position: body.style.position,
|
|
14
|
+
top: body.style.top,
|
|
15
|
+
left: body.style.left,
|
|
16
|
+
right: body.style.right
|
|
17
|
+
};
|
|
18
|
+
root.style.overflow = "hidden";
|
|
19
|
+
body.style.overflow = "hidden";
|
|
20
|
+
if (fixed) {
|
|
21
|
+
body.style.position = "fixed";
|
|
22
|
+
body.style.top = `-${scrollY}px`;
|
|
23
|
+
body.style.left = "0";
|
|
24
|
+
body.style.right = "0";
|
|
25
|
+
}
|
|
26
|
+
return () => {
|
|
27
|
+
root.style.overflow = previous.rootOverflow;
|
|
28
|
+
body.style.overflow = previous.overflow;
|
|
29
|
+
if (!fixed) return;
|
|
30
|
+
body.style.position = previous.position;
|
|
31
|
+
body.style.top = previous.top;
|
|
32
|
+
body.style.left = previous.left;
|
|
33
|
+
body.style.right = previous.right;
|
|
34
|
+
window.scrollTo(0, scrollY);
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
/** Locks page scroll. Call the returned function to release this lock. */
|
|
38
|
+
function lockScroll(options = {}) {
|
|
39
|
+
if (owners++ === 0) restore = apply(options);
|
|
40
|
+
let released = false;
|
|
41
|
+
return () => {
|
|
42
|
+
if (released) return;
|
|
43
|
+
released = true;
|
|
44
|
+
if (--owners === 0) {
|
|
45
|
+
restore?.();
|
|
46
|
+
restore = null;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
/** Locks page scroll while `locked` is true. */
|
|
51
|
+
function useScrollLock(locked, { fixed = false } = {}) {
|
|
52
|
+
useEffect(() => {
|
|
53
|
+
if (!locked) return;
|
|
54
|
+
return lockScroll({ fixed });
|
|
55
|
+
}, [locked, fixed]);
|
|
56
|
+
}
|
|
57
|
+
export { lockScroll, useScrollLock };
|
|
58
|
+
|
|
59
|
+
//# sourceMappingURL=scroll-lock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scroll-lock.js","names":[],"sources":["../../src/lib/scroll-lock.ts"],"sourcesContent":["\"use client\";\n\nimport { useEffect } from \"react\";\n\nexport interface ScrollLockOptions {\n /**\n * Pin the body with `position: fixed` and restore the scroll offset on\n * release. iOS Safari still scrolls an `overflow: hidden` body under a\n * touch drag, so full-screen sheets that take touch gestures need this.\n */\n fixed?: boolean;\n}\n\n// Reference-counted, so overlays that close out of order never unlock the\n// page under one that is still open. The first lock picks the technique.\nlet owners = 0;\nlet restore: (() => void) | null = null;\n\nfunction apply({ fixed = false }: ScrollLockOptions) {\n const root = document.documentElement;\n const body = document.body;\n const scrollY = window.scrollY;\n const previous = {\n rootOverflow: root.style.overflow,\n overflow: body.style.overflow,\n position: body.style.position,\n top: body.style.top,\n left: body.style.left,\n right: body.style.right,\n };\n root.style.overflow = \"hidden\";\n body.style.overflow = \"hidden\";\n if (fixed) {\n body.style.position = \"fixed\";\n body.style.top = `-${scrollY}px`;\n body.style.left = \"0\";\n body.style.right = \"0\";\n }\n return () => {\n root.style.overflow = previous.rootOverflow;\n body.style.overflow = previous.overflow;\n if (!fixed) return;\n body.style.position = previous.position;\n body.style.top = previous.top;\n body.style.left = previous.left;\n body.style.right = previous.right;\n window.scrollTo(0, scrollY);\n };\n}\n\n/** Locks page scroll. Call the returned function to release this lock. */\nexport function lockScroll(options: ScrollLockOptions = {}) {\n if (owners++ === 0) restore = apply(options);\n let released = false;\n return () => {\n if (released) return;\n released = true;\n if (--owners === 0) {\n restore?.();\n restore = null;\n }\n };\n}\n\n/** Locks page scroll while `locked` is true. */\nexport function useScrollLock(locked: boolean, { fixed = false }: ScrollLockOptions = {}) {\n useEffect(() => {\n if (!locked) return;\n return lockScroll({ fixed });\n }, [locked, fixed]);\n}\n"],"mappings":";;;AAeA,IAAI,SAAS;AACb,IAAI,UAA+B;AAEnC,SAAS,MAAM,EAAE,QAAQ,SAA4B;CACnD,MAAM,OAAO,SAAS;CACtB,MAAM,OAAO,SAAS;CACtB,MAAM,UAAU,OAAO;CACvB,MAAM,WAAW;EACf,cAAc,KAAK,MAAM;EACzB,UAAU,KAAK,MAAM;EACrB,UAAU,KAAK,MAAM;EACrB,KAAK,KAAK,MAAM;EAChB,MAAM,KAAK,MAAM;EACjB,OAAO,KAAK,MAAM;CACpB;CACA,KAAK,MAAM,WAAW;CACtB,KAAK,MAAM,WAAW;CACtB,IAAI,OAAO;EACT,KAAK,MAAM,WAAW;EACtB,KAAK,MAAM,MAAM,IAAI,QAAQ;EAC7B,KAAK,MAAM,OAAO;EAClB,KAAK,MAAM,QAAQ;CACrB;CACA,aAAa;EACX,KAAK,MAAM,WAAW,SAAS;EAC/B,KAAK,MAAM,WAAW,SAAS;EAC/B,IAAI,CAAC,OAAO;EACZ,KAAK,MAAM,WAAW,SAAS;EAC/B,KAAK,MAAM,MAAM,SAAS;EAC1B,KAAK,MAAM,OAAO,SAAS;EAC3B,KAAK,MAAM,QAAQ,SAAS;EAC5B,OAAO,SAAS,GAAG,OAAO;CAC5B;AACF;;AAGA,SAAgB,WAAW,UAA6B,CAAC,GAAG;CAC1D,IAAI,aAAa,GAAG,UAAU,MAAM,OAAO;CAC3C,IAAI,WAAW;CACf,aAAa;EACX,IAAI,UAAU;EACd,WAAW;EACX,IAAI,EAAE,WAAW,GAAG;GAClB,UAAU;GACV,UAAU;EACZ;CACF;AACF;;AAGA,SAAgB,cAAc,QAAiB,EAAE,QAAQ,UAA6B,CAAC,GAAG;CACxF,gBAAgB;EACd,IAAI,CAAC,QAAQ;EACb,OAAO,WAAW,EAAE,MAAM,CAAC;CAC7B,GAAG,CAAC,QAAQ,KAAK,CAAC;AACpB"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { PlayOptions, Sound } from "./sounds/engine.js";
|
|
3
|
+
export interface SoundSettings {
|
|
4
|
+
/** False mutes every beUI sound under the provider. */
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
/** 0 to 1, scales every beUI sound. */
|
|
7
|
+
volume: number;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* App-wide sound settings. `enabled={false}` mutes every beUI sound, from
|
|
11
|
+
* component `sound` props and `useSound` to the games, Wheel Picker and
|
|
12
|
+
* Bookshelf, and `volume` scales them all. Without a provider, sounds play at
|
|
13
|
+
* full volume. A nested provider overrides the one around it.
|
|
14
|
+
*/
|
|
15
|
+
export declare function SoundProvider({ enabled, volume, children }: Partial<SoundSettings> & {
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
}): import("react").JSX.Element;
|
|
18
|
+
export declare function useSoundSettings(): SoundSettings;
|
|
19
|
+
export interface UseSoundOptions {
|
|
20
|
+
/** False makes `play` do nothing, for a component's `sound` prop. */
|
|
21
|
+
enabled?: boolean;
|
|
22
|
+
/** 0 to 1 for this sound, on top of the provider volume. */
|
|
23
|
+
volume?: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* A stable `play()` for one sound. It does nothing while disabled or muted,
|
|
27
|
+
* and keeps the shared audio context warm only while it can play.
|
|
28
|
+
*/
|
|
29
|
+
export declare function useSound(sound: Sound, { enabled, volume }?: UseSoundOptions): (options?: PlayOptions) => void;
|
|
30
|
+
//# sourceMappingURL=sound.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sound.d.ts","names":[],"sources":["../../src/lib/sound.tsx"],"mappings":";;iBAoBiB;;EAEf;;EAEA;;;;;;;;wBAec,gBACd,SACA,QACA,YACC,QAAQ;EAAmB,UAAU;oBAAW,IAAA;wBAuBnC,oBAAoB;iBAInB;;EAEf;;EAEA;;;;;;wBAOc,SAAS,OAAO,SAAS,SAAgB,WAAc,mBAAoB,UAe3D"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createContext, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef } from "react";
|
|
3
|
+
import { registerSoundSettings, retainAudioContext } from "./audio-context.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
// src/lib/sound.tsx
|
|
6
|
+
const SoundContext = createContext({
|
|
7
|
+
enabled: true,
|
|
8
|
+
volume: 1,
|
|
9
|
+
depth: 0
|
|
10
|
+
});
|
|
11
|
+
/**
|
|
12
|
+
* App-wide sound settings. `enabled={false}` mutes every beUI sound, from
|
|
13
|
+
* component `sound` props and `useSound` to the games, Wheel Picker and
|
|
14
|
+
* Bookshelf, and `volume` scales them all. Without a provider, sounds play at
|
|
15
|
+
* full volume. A nested provider overrides the one around it.
|
|
16
|
+
*/
|
|
17
|
+
function SoundProvider({ enabled = true, volume = 1, children }) {
|
|
18
|
+
const depth = useContext(SoundContext).depth + 1;
|
|
19
|
+
const value = useMemo(() => ({
|
|
20
|
+
enabled,
|
|
21
|
+
volume,
|
|
22
|
+
depth
|
|
23
|
+
}), [
|
|
24
|
+
enabled,
|
|
25
|
+
volume,
|
|
26
|
+
depth
|
|
27
|
+
]);
|
|
28
|
+
const entry = useRef({
|
|
29
|
+
depth,
|
|
30
|
+
enabled,
|
|
31
|
+
volume
|
|
32
|
+
});
|
|
33
|
+
const registration = useRef(null);
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
registration.current = registerSoundSettings(entry.current);
|
|
36
|
+
return () => {
|
|
37
|
+
registration.current?.release();
|
|
38
|
+
registration.current = null;
|
|
39
|
+
};
|
|
40
|
+
}, []);
|
|
41
|
+
useEffect(() => {
|
|
42
|
+
Object.assign(entry.current, {
|
|
43
|
+
depth,
|
|
44
|
+
enabled,
|
|
45
|
+
volume
|
|
46
|
+
});
|
|
47
|
+
registration.current?.update();
|
|
48
|
+
}, [
|
|
49
|
+
depth,
|
|
50
|
+
enabled,
|
|
51
|
+
volume
|
|
52
|
+
]);
|
|
53
|
+
return /* @__PURE__ */ jsx(SoundContext.Provider, {
|
|
54
|
+
value,
|
|
55
|
+
children
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
function useSoundSettings() {
|
|
59
|
+
return useContext(SoundContext);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* A stable `play()` for one sound. It does nothing while disabled or muted,
|
|
63
|
+
* and keeps the shared audio context warm only while it can play.
|
|
64
|
+
*/
|
|
65
|
+
function useSound(sound, { enabled = true, volume = 1 } = {}) {
|
|
66
|
+
const settings = useSoundSettings();
|
|
67
|
+
const on = enabled && settings.enabled && settings.volume > 0 && volume > 0;
|
|
68
|
+
const latest = useRef({
|
|
69
|
+
on,
|
|
70
|
+
volume,
|
|
71
|
+
sound
|
|
72
|
+
});
|
|
73
|
+
useLayoutEffect(() => {
|
|
74
|
+
latest.current = {
|
|
75
|
+
on,
|
|
76
|
+
volume,
|
|
77
|
+
sound
|
|
78
|
+
};
|
|
79
|
+
});
|
|
80
|
+
useEffect(() => {
|
|
81
|
+
if (!on) return;
|
|
82
|
+
return retainAudioContext();
|
|
83
|
+
}, [on]);
|
|
84
|
+
return useCallback((options) => {
|
|
85
|
+
const current = latest.current;
|
|
86
|
+
if (!current.on) return;
|
|
87
|
+
current.sound.play({
|
|
88
|
+
...options,
|
|
89
|
+
volume: (options?.volume ?? 1) * current.volume
|
|
90
|
+
});
|
|
91
|
+
}, []);
|
|
92
|
+
}
|
|
93
|
+
export { SoundProvider, useSound, useSoundSettings };
|
|
94
|
+
|
|
95
|
+
//# sourceMappingURL=sound.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sound.js","names":[],"sources":["../../src/lib/sound.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n createContext,\n type ReactNode,\n useCallback,\n useContext,\n useEffect,\n useLayoutEffect,\n useMemo,\n useRef,\n} from \"react\";\n\nimport {\n registerSoundSettings,\n retainAudioContext,\n type SoundSettingsEntry,\n} from \"./audio-context\";\nimport type { PlayOptions, Sound } from \"./sounds/engine\";\n\nexport interface SoundSettings {\n /** False mutes every beUI sound under the provider. */\n enabled: boolean;\n /** 0 to 1, scales every beUI sound. */\n volume: number;\n}\n\nconst SoundContext = createContext<SoundSettings & { depth: number }>({\n enabled: true,\n volume: 1,\n depth: 0,\n});\n\n/**\n * App-wide sound settings. `enabled={false}` mutes every beUI sound, from\n * component `sound` props and `useSound` to the games, Wheel Picker and\n * Bookshelf, and `volume` scales them all. Without a provider, sounds play at\n * full volume. A nested provider overrides the one around it.\n */\nexport function SoundProvider({\n enabled = true,\n volume = 1,\n children,\n}: Partial<SoundSettings> & { children: ReactNode }) {\n const depth = useContext(SoundContext).depth + 1;\n const value = useMemo(() => ({ enabled, volume, depth }), [enabled, volume, depth]);\n\n // Module-level as well (lib/audio-context.ts), so players outside React\n // and `sound.play()` obey it too.\n const entry = useRef<SoundSettingsEntry>({ depth, enabled, volume });\n const registration = useRef<ReturnType<typeof registerSoundSettings> | null>(null);\n useEffect(() => {\n registration.current = registerSoundSettings(entry.current);\n return () => {\n registration.current?.release();\n registration.current = null;\n };\n }, []);\n useEffect(() => {\n Object.assign(entry.current, { depth, enabled, volume });\n registration.current?.update();\n }, [depth, enabled, volume]);\n\n return <SoundContext.Provider value={value}>{children}</SoundContext.Provider>;\n}\n\nexport function useSoundSettings(): SoundSettings {\n return useContext(SoundContext);\n}\n\nexport interface UseSoundOptions {\n /** False makes `play` do nothing, for a component's `sound` prop. */\n enabled?: boolean;\n /** 0 to 1 for this sound, on top of the provider volume. */\n volume?: number;\n}\n\n/**\n * A stable `play()` for one sound. It does nothing while disabled or muted,\n * and keeps the shared audio context warm only while it can play.\n */\nexport function useSound(sound: Sound, { enabled = true, volume = 1 }: UseSoundOptions = {}) {\n const settings = useSoundSettings();\n const on = enabled && settings.enabled && settings.volume > 0 && volume > 0;\n // Read by the stable callback, so a caller's effects don't re-run when\n // the settings change.\n const latest = useRef({ on, volume, sound });\n useLayoutEffect(() => {\n latest.current = { on, volume, sound };\n });\n\n useEffect(() => {\n if (!on) return;\n return retainAudioContext();\n }, [on]);\n\n return useCallback((options?: PlayOptions) => {\n const current = latest.current;\n if (!current.on) return;\n current.sound.play({ ...options, volume: (options?.volume ?? 1) * current.volume });\n }, []);\n}\n"],"mappings":";;;;;AA2BA,MAAM,eAAe,cAAiD;CACpE,SAAS;CACT,QAAQ;CACR,OAAO;AACT,CAAC;;;;;;;AAQD,SAAgB,cAAc,EAC5B,UAAU,MACV,SAAS,GACT,YACmD;CACnD,MAAM,QAAQ,WAAW,YAAY,CAAC,CAAC,QAAQ;CAC/C,MAAM,QAAQ,eAAe;EAAE;EAAS;EAAQ;CAAM,IAAI;EAAC;EAAS;EAAQ;CAAK,CAAC;CAIlF,MAAM,QAAQ,OAA2B;EAAE;EAAO;EAAS;CAAO,CAAC;CACnE,MAAM,eAAe,OAAwD,IAAI;CACjF,gBAAgB;EACd,aAAa,UAAU,sBAAsB,MAAM,OAAO;EAC1D,aAAa;GACX,aAAa,SAAS,QAAQ;GAC9B,aAAa,UAAU;EACzB;CACF,GAAG,CAAC,CAAC;CACL,gBAAgB;EACd,OAAO,OAAO,MAAM,SAAS;GAAE;GAAO;GAAS;EAAO,CAAC;EACvD,aAAa,SAAS,OAAO;CAC/B,GAAG;EAAC;EAAO;EAAS;CAAM,CAAC;CAE3B,OAAO,oBAAC,aAAa,UAAd;EAA8B;EAAQ;CAAgC,CAAA;AAC/E;AAEA,SAAgB,mBAAkC;CAChD,OAAO,WAAW,YAAY;AAChC;;;;;AAaA,SAAgB,SAAS,OAAc,EAAE,UAAU,MAAM,SAAS,MAAuB,CAAC,GAAG;CAC3F,MAAM,WAAW,iBAAiB;CAClC,MAAM,KAAK,WAAW,SAAS,WAAW,SAAS,SAAS,KAAK,SAAS;CAG1E,MAAM,SAAS,OAAO;EAAE;EAAI;EAAQ;CAAM,CAAC;CAC3C,sBAAsB;EACpB,OAAO,UAAU;GAAE;GAAI;GAAQ;EAAM;CACvC,CAAC;CAED,gBAAgB;EACd,IAAI,CAAC,IAAI;EACT,OAAO,mBAAmB;CAC5B,GAAG,CAAC,EAAE,CAAC;CAEP,OAAO,aAAa,YAA0B;EAC5C,MAAM,UAAU,OAAO;EACvB,IAAI,CAAC,QAAQ,IAAI;EACjB,QAAQ,MAAM,KAAK;GAAE,GAAG;GAAS,SAAS,SAAS,UAAU,KAAK,QAAQ;EAAO,CAAC;CACpF,GAAG,CAAC,CAAC;AACP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bell.d.ts","names":["_$__engine0.Sound"],"sources":["../../../src/lib/sounds/bell.ts"],"mappings":";;qBAGa,WAAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineSound } from "./engine.js";
|
|
2
|
+
// src/lib/sounds/bell.ts
|
|
3
|
+
/** A resonant brass bell chime with rich natural partials, for alarms, timers and reminders. */
|
|
4
|
+
const bellSound = defineSound({
|
|
5
|
+
name: "Bell",
|
|
6
|
+
duration: .5,
|
|
7
|
+
room: .32,
|
|
8
|
+
build: (v) => {
|
|
9
|
+
v.click({
|
|
10
|
+
freq: 3800,
|
|
11
|
+
q: 1.4,
|
|
12
|
+
decay: .003,
|
|
13
|
+
gain: .18
|
|
14
|
+
});
|
|
15
|
+
v.strike({
|
|
16
|
+
freq: 659.25,
|
|
17
|
+
material: "bell",
|
|
18
|
+
bend: 1.003,
|
|
19
|
+
decay: .45,
|
|
20
|
+
gain: .5
|
|
21
|
+
});
|
|
22
|
+
v.tone({
|
|
23
|
+
freq: 1318.5,
|
|
24
|
+
decay: .3,
|
|
25
|
+
gain: .25
|
|
26
|
+
});
|
|
27
|
+
v.tone({
|
|
28
|
+
freq: 1977.75,
|
|
29
|
+
decay: .18,
|
|
30
|
+
gain: .12
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
export { bellSound };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=bell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bell.js","names":[],"sources":["../../../src/lib/sounds/bell.ts"],"sourcesContent":["import { defineSound } from \"./engine\";\n\n/** A resonant brass bell chime with rich natural partials, for alarms, timers and reminders. */\nexport const bellSound = defineSound({\n name: \"Bell\",\n duration: 0.5,\n room: 0.32,\n build: (v) => {\n v.click({ freq: 3800, q: 1.4, decay: 0.003, gain: 0.18 });\n v.strike({ freq: 659.25, material: \"bell\", bend: 1.003, decay: 0.45, gain: 0.5 });\n v.tone({ freq: 1318.5, decay: 0.3, gain: 0.25 });\n v.tone({ freq: 1977.75, decay: 0.18, gain: 0.12 });\n },\n});\n"],"mappings":";;;AAGA,MAAa,YAAY,YAAY;CACnC,MAAM;CACN,UAAU;CACV,MAAM;CACN,QAAQ,MAAM;EACZ,EAAE,MAAM;GAAE,MAAM;GAAM,GAAG;GAAK,OAAO;GAAO,MAAM;EAAK,CAAC;EACxD,EAAE,OAAO;GAAE,MAAM;GAAQ,UAAU;GAAQ,MAAM;GAAO,OAAO;GAAM,MAAM;EAAI,CAAC;EAChF,EAAE,KAAK;GAAE,MAAM;GAAQ,OAAO;GAAK,MAAM;EAAK,CAAC;EAC/C,EAAE,KAAK;GAAE,MAAM;GAAS,OAAO;GAAM,MAAM;EAAK,CAAC;CACnD;AACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bubble.d.ts","names":["_$__engine0.Sound"],"sources":["../../../src/lib/sounds/bubble.ts"],"mappings":";;qBAGa,aAAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineSound } from "./engine.js";
|
|
2
|
+
// src/lib/sounds/bubble.ts
|
|
3
|
+
/** A rounded liquid droplet pop, for incoming chat bubbles, reactions and comments. */
|
|
4
|
+
const bubbleSound = defineSound({
|
|
5
|
+
name: "Bubble",
|
|
6
|
+
duration: .07,
|
|
7
|
+
vary: .04,
|
|
8
|
+
room: .1,
|
|
9
|
+
build: (v) => {
|
|
10
|
+
v.click({
|
|
11
|
+
freq: 1600,
|
|
12
|
+
q: 1.2,
|
|
13
|
+
decay: .003,
|
|
14
|
+
gain: .25
|
|
15
|
+
});
|
|
16
|
+
v.tone({
|
|
17
|
+
freq: 420,
|
|
18
|
+
to: 1650,
|
|
19
|
+
glide: .045,
|
|
20
|
+
decay: .055,
|
|
21
|
+
gain: .65
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
export { bubbleSound };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=bubble.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bubble.js","names":[],"sources":["../../../src/lib/sounds/bubble.ts"],"sourcesContent":["import { defineSound } from \"./engine\";\n\n/** A rounded liquid droplet pop, for incoming chat bubbles, reactions and comments. */\nexport const bubbleSound = defineSound({\n name: \"Bubble\",\n duration: 0.07,\n vary: 0.04,\n room: 0.1,\n build: (v) => {\n v.click({ freq: 1600, q: 1.2, decay: 0.003, gain: 0.25 });\n v.tone({ freq: 420, to: 1650, glide: 0.045, decay: 0.055, gain: 0.65 });\n },\n});\n"],"mappings":";;;AAGA,MAAa,cAAc,YAAY;CACrC,MAAM;CACN,UAAU;CACV,MAAM;CACN,MAAM;CACN,QAAQ,MAAM;EACZ,EAAE,MAAM;GAAE,MAAM;GAAM,GAAG;GAAK,OAAO;GAAO,MAAM;EAAK,CAAC;EACxD,EAAE,KAAK;GAAE,MAAM;GAAK,IAAI;GAAM,OAAO;GAAO,OAAO;GAAO,MAAM;EAAK,CAAC;CACxE;AACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"burst.d.ts","names":["_$__engine0.Sound"],"sources":["../../../src/lib/sounds/burst.ts"],"mappings":";;qBAGa,YAAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineSound } from "./engine.js";
|
|
2
|
+
// src/lib/sounds/burst.ts
|
|
3
|
+
/** A celebratory triple-pop sparkle, for rewards, confetti celebrations and level-ups. */
|
|
4
|
+
const burstSound = defineSound({
|
|
5
|
+
name: "Burst",
|
|
6
|
+
duration: .28,
|
|
7
|
+
room: .25,
|
|
8
|
+
build: (v) => {
|
|
9
|
+
for (const [at, freq, gain] of [
|
|
10
|
+
[
|
|
11
|
+
0,
|
|
12
|
+
750,
|
|
13
|
+
.4
|
|
14
|
+
],
|
|
15
|
+
[
|
|
16
|
+
.035,
|
|
17
|
+
1150,
|
|
18
|
+
.45
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
.07,
|
|
22
|
+
1650,
|
|
23
|
+
.5
|
|
24
|
+
]
|
|
25
|
+
]) {
|
|
26
|
+
v.click({
|
|
27
|
+
freq: 3500,
|
|
28
|
+
q: 1.5,
|
|
29
|
+
at,
|
|
30
|
+
decay: .003,
|
|
31
|
+
gain: .18
|
|
32
|
+
});
|
|
33
|
+
v.strike({
|
|
34
|
+
freq,
|
|
35
|
+
material: "mallet",
|
|
36
|
+
at,
|
|
37
|
+
decay: .14,
|
|
38
|
+
gain
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export { burstSound };
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=burst.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"burst.js","names":[],"sources":["../../../src/lib/sounds/burst.ts"],"sourcesContent":["import { defineSound } from \"./engine\";\n\n/** A celebratory triple-pop sparkle, for rewards, confetti celebrations and level-ups. */\nexport const burstSound = defineSound({\n name: \"Burst\",\n duration: 0.28,\n room: 0.25,\n build: (v) => {\n for (const [at, freq, gain] of [\n [0.0, 750, 0.4],\n [0.035, 1150, 0.45],\n [0.07, 1650, 0.5],\n ] as const) {\n v.click({ freq: 3500, q: 1.5, at, decay: 0.003, gain: 0.18 });\n v.strike({ freq, material: \"mallet\", at, decay: 0.14, gain });\n }\n },\n});\n"],"mappings":";;;AAGA,MAAa,aAAa,YAAY;CACpC,MAAM;CACN,UAAU;CACV,MAAM;CACN,QAAQ,MAAM;EACZ,KAAK,MAAM,CAAC,IAAI,MAAM,SAAS;GAC7B;IAAC;IAAK;IAAK;GAAG;GACd;IAAC;IAAO;IAAM;GAAI;GAClB;IAAC;IAAM;IAAM;GAAG;EAClB,GAAY;GACV,EAAE,MAAM;IAAE,MAAM;IAAM,GAAG;IAAK;IAAI,OAAO;IAAO,MAAM;GAAK,CAAC;GAC5D,EAAE,OAAO;IAAE;IAAM,UAAU;IAAU;IAAI,OAAO;IAAM;GAAK,CAAC;EAC9D;CACF;AACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buzz.d.ts","names":["_$__engine0.Sound"],"sources":["../../../src/lib/sounds/buzz.ts"],"mappings":";;qBAGa,WAAAA"}
|