@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
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A copy action and a `copied` flag that holds for a moment after it works.
|
|
3
|
+
*
|
|
4
|
+
* `copy` runs `onCopy` when given, else writes `text` to the clipboard. The
|
|
5
|
+
* flag turns on only once that succeeded: no clipboard (an insecure origin),
|
|
6
|
+
* a refused write or a throwing `onCopy` leave it off rather than claiming a
|
|
7
|
+
* copy that never happened.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useCopy({ text, onCopy }: {
|
|
10
|
+
text?: string;
|
|
11
|
+
onCopy?: () => void | Promise<void>;
|
|
12
|
+
}): {
|
|
13
|
+
copied: boolean;
|
|
14
|
+
copy: () => Promise<void>;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=use-copy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-copy.d.ts","names":[],"sources":["../../src/hooks/use-copy.ts"],"mappings":";;;;;;;;wBAegB,UAAU,MAAM;EAAY;EAAe,sBAAsB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useCallback, useEffect, useRef, useState } from "react";
|
|
3
|
+
// src/hooks/use-copy.ts
|
|
4
|
+
/** How long the copied state holds after a copy, in ms. */
|
|
5
|
+
const COPIED_MS = 1600;
|
|
6
|
+
/**
|
|
7
|
+
* A copy action and a `copied` flag that holds for a moment after it works.
|
|
8
|
+
*
|
|
9
|
+
* `copy` runs `onCopy` when given, else writes `text` to the clipboard. The
|
|
10
|
+
* flag turns on only once that succeeded: no clipboard (an insecure origin),
|
|
11
|
+
* a refused write or a throwing `onCopy` leave it off rather than claiming a
|
|
12
|
+
* copy that never happened.
|
|
13
|
+
*/
|
|
14
|
+
function useCopy({ text, onCopy }) {
|
|
15
|
+
const [copied, setCopied] = useState(false);
|
|
16
|
+
const timer = useRef(void 0);
|
|
17
|
+
useEffect(() => () => clearTimeout(timer.current), []);
|
|
18
|
+
return {
|
|
19
|
+
copied,
|
|
20
|
+
copy: useCallback(async () => {
|
|
21
|
+
try {
|
|
22
|
+
if (onCopy) await onCopy();
|
|
23
|
+
else if (text !== void 0 && navigator.clipboard) await navigator.clipboard.writeText(text);
|
|
24
|
+
else return;
|
|
25
|
+
} catch {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
setCopied(true);
|
|
29
|
+
clearTimeout(timer.current);
|
|
30
|
+
timer.current = setTimeout(() => setCopied(false), COPIED_MS);
|
|
31
|
+
}, [onCopy, text])
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export { useCopy };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=use-copy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-copy.js","names":[],"sources":["../../src/hooks/use-copy.ts"],"sourcesContent":["\"use client\";\n\nimport { useCallback, useEffect, useRef, useState } from \"react\";\n\n/** How long the copied state holds after a copy, in ms. */\nconst COPIED_MS = 1600;\n\n/**\n * A copy action and a `copied` flag that holds for a moment after it works.\n *\n * `copy` runs `onCopy` when given, else writes `text` to the clipboard. The\n * flag turns on only once that succeeded: no clipboard (an insecure origin),\n * a refused write or a throwing `onCopy` leave it off rather than claiming a\n * copy that never happened.\n */\nexport function useCopy({ text, onCopy }: { text?: string; onCopy?: () => void | Promise<void> }) {\n const [copied, setCopied] = useState(false);\n const timer = useRef<ReturnType<typeof setTimeout> | undefined>(undefined);\n useEffect(() => () => clearTimeout(timer.current), []);\n\n const copy = useCallback(async () => {\n try {\n if (onCopy) await onCopy();\n else if (text !== undefined && navigator.clipboard) {\n await navigator.clipboard.writeText(text);\n } else return;\n } catch {\n return;\n }\n setCopied(true);\n clearTimeout(timer.current);\n timer.current = setTimeout(() => setCopied(false), COPIED_MS);\n }, [onCopy, text]);\n\n return { copied, copy };\n}\n"],"mappings":";;;;AAKA,MAAM,YAAY;;;;;;;;;AAUlB,SAAgB,QAAQ,EAAE,MAAM,UAAkE;CAChG,MAAM,CAAC,QAAQ,aAAa,SAAS,KAAK;CAC1C,MAAM,QAAQ,OAAkD,KAAA,CAAS;CACzE,sBAAsB,aAAa,MAAM,OAAO,GAAG,CAAC,CAAC;CAgBrD,OAAO;EAAE;EAAQ,MAdJ,YAAY,YAAY;GACnC,IAAI;IACF,IAAI,QAAQ,MAAM,OAAO;SACpB,IAAI,SAAS,KAAA,KAAa,UAAU,WACvC,MAAM,UAAU,UAAU,UAAU,IAAI;SACnC;GACT,QAAQ;IACN;GACF;GACA,UAAU,IAAI;GACd,aAAa,MAAM,OAAO;GAC1B,MAAM,UAAU,iBAAiB,UAAU,KAAK,GAAG,SAAS;EAC9D,GAAG,CAAC,QAAQ,IAAI,CAEI;CAAE;AACxB"}
|
|
@@ -5,16 +5,25 @@ import { RefObject } from "react";
|
|
|
5
5
|
* `"pass-through"` is the platform norm (native popover light-dismiss): the
|
|
6
6
|
* tap closes the overlay *and* activates whatever was under it. Use
|
|
7
7
|
* `"consume"` where the open overlay sits over or beside controls that would
|
|
8
|
-
* be costly to trigger by accident
|
|
8
|
+
* be costly to trigger by accident - the dismissal then swallows the
|
|
9
9
|
* activation too, so the gesture only closes.
|
|
10
10
|
*/
|
|
11
11
|
export type DismissBehavior = "pass-through" | "consume";
|
|
12
|
+
/** What closed the overlay: Escape, a pointerdown outside it, or focus leaving it. */
|
|
13
|
+
export type DismissReason = "escape" | "pointer" | "focus";
|
|
12
14
|
export interface DismissOptions {
|
|
13
15
|
/** Default `"pass-through"`. */
|
|
14
16
|
behavior?: DismissBehavior;
|
|
15
17
|
/** Dismiss on Escape as well. Default true. */
|
|
16
18
|
escape?: boolean;
|
|
17
|
-
/**
|
|
19
|
+
/** Dismiss when focus moves outside, as a combobox does on Tab. Default false. */
|
|
20
|
+
focusOutside?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Dismiss on a pointerdown outside. Default true. Turn it off for an overlay
|
|
23
|
+
* whose own backdrop handles presses and only needs Escape and layering.
|
|
24
|
+
*/
|
|
25
|
+
outsidePress?: boolean;
|
|
26
|
+
/** Return true for an outside target that should *not* dismiss. */
|
|
18
27
|
ignore?: (target: Element) => boolean;
|
|
19
28
|
}
|
|
20
29
|
/**
|
|
@@ -24,8 +33,11 @@ export interface DismissOptions {
|
|
|
24
33
|
*
|
|
25
34
|
* The pointerdown listener is capture-phase: a bubble-phase one is blinded by
|
|
26
35
|
* any handler in between that stops propagation, and an overlay cannot know
|
|
27
|
-
* what it is layered over.
|
|
28
|
-
*
|
|
36
|
+
* what it is layered over.
|
|
37
|
+
*
|
|
38
|
+
* Each open dismissal is a layer in `lib/layers.ts`, so only the innermost
|
|
39
|
+
* open overlay answers Escape (a menu inside a drawer closes, the drawer
|
|
40
|
+
* stays), and a drawer's focus trap leaves focus in a menu it portaled out.
|
|
29
41
|
*/
|
|
30
|
-
export declare function useDismiss(open: boolean, onDismiss: () => void, ref: RefObject<HTMLElement | SVGElement | null> | null, { behavior, escape: dismissOnEscape, ignore }?: DismissOptions): void;
|
|
42
|
+
export declare function useDismiss(open: boolean, onDismiss: (reason: DismissReason) => void, ref: RefObject<HTMLElement | SVGElement | null> | null, { behavior, escape: dismissOnEscape, focusOutside, outsidePress, ignore }?: DismissOptions): void;
|
|
31
43
|
//# sourceMappingURL=use-dismiss.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-dismiss.d.ts","names":[],"sources":["../../src/hooks/use-dismiss.ts"],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"use-dismiss.d.ts","names":[],"sources":["../../src/hooks/use-dismiss.ts"],"mappings":";;;;;;;;;;YAeY;;YAGA;iBAEK;;EAEf,WAAW;;EAEX;;EAEA;;;;;EAKA;;EAEA,UAAU,QAAQ;;;;;;;;;;;;;;;wBA8CJ,WACd,eACA,YAAY,QAAQ,wBACpB,KAAK,UAAU,cAAc,6BAE3B,UACA,QAAQ,iBACR,cACA,cACA,WACC"}
|
|
@@ -1,17 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useEffect } from "react";
|
|
2
|
+
import { useEffect, useLayoutEffect, useRef } from "react";
|
|
3
|
+
import { inLayerAbove, inOtherLayer, openLayer, ownsEscape } from "../lib/layers.js";
|
|
3
4
|
// src/hooks/use-dismiss.ts
|
|
4
|
-
/**
|
|
5
|
-
* What every currently open dismiss scope counts as inside itself. A consumed
|
|
6
|
-
* dismissal reads this to tell a stray gesture from one that belongs to an
|
|
7
|
-
* overlay in front of it: overlays have no shared z-order to consult, but the
|
|
8
|
-
* one the gesture landed in has said as much by registering it.
|
|
9
|
-
*/
|
|
10
|
-
const openScopes = /* @__PURE__ */ new Set();
|
|
11
|
-
function claimedByAnotherScope(self, target) {
|
|
12
|
-
for (const scope of openScopes) if (scope !== self && scope(target)) return true;
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
5
|
function consumeActivation(source) {
|
|
16
6
|
const swallow = (event) => {
|
|
17
7
|
event.preventDefault();
|
|
@@ -39,37 +29,59 @@ function consumeActivation(source) {
|
|
|
39
29
|
*
|
|
40
30
|
* The pointerdown listener is capture-phase: a bubble-phase one is blinded by
|
|
41
31
|
* any handler in between that stops propagation, and an overlay cannot know
|
|
42
|
-
* what it is layered over.
|
|
43
|
-
*
|
|
32
|
+
* what it is layered over.
|
|
33
|
+
*
|
|
34
|
+
* Each open dismissal is a layer in `lib/layers.ts`, so only the innermost
|
|
35
|
+
* open overlay answers Escape (a menu inside a drawer closes, the drawer
|
|
36
|
+
* stays), and a drawer's focus trap leaves focus in a menu it portaled out.
|
|
44
37
|
*/
|
|
45
|
-
function useDismiss(open, onDismiss, ref, { behavior = "pass-through", escape: dismissOnEscape = true, ignore } = {}) {
|
|
38
|
+
function useDismiss(open, onDismiss, ref, { behavior = "pass-through", escape: dismissOnEscape = true, focusOutside = false, outsidePress = true, ignore } = {}) {
|
|
39
|
+
const dismissRef = useRef(onDismiss);
|
|
40
|
+
const ignoreRef = useRef(ignore);
|
|
41
|
+
useLayoutEffect(() => {
|
|
42
|
+
dismissRef.current = onDismiss;
|
|
43
|
+
ignoreRef.current = ignore;
|
|
44
|
+
});
|
|
46
45
|
useEffect(() => {
|
|
47
46
|
if (!open) return;
|
|
48
|
-
const inside = (target) => Boolean(ref?.current?.contains(target)) || Boolean(
|
|
47
|
+
const inside = (target) => Boolean(ref?.current?.contains(target)) || target instanceof Element && Boolean(ignoreRef.current?.(target));
|
|
48
|
+
const layer = {
|
|
49
|
+
contains: inside,
|
|
50
|
+
escape: dismissOnEscape
|
|
51
|
+
};
|
|
52
|
+
const closeLayer = openLayer(layer);
|
|
49
53
|
const onKey = (event) => {
|
|
50
|
-
if (dismissOnEscape
|
|
54
|
+
if (!dismissOnEscape || event.key !== "Escape" || !ownsEscape(layer, event)) return;
|
|
55
|
+
event.preventDefault();
|
|
56
|
+
dismissRef.current("escape");
|
|
51
57
|
};
|
|
52
58
|
const onPointer = (event) => {
|
|
53
59
|
const target = event.target;
|
|
54
60
|
if (!target || inside(target)) return;
|
|
55
|
-
if (
|
|
56
|
-
|
|
61
|
+
if (inLayerAbove(layer, target)) return;
|
|
62
|
+
if (behavior === "consume" && !inOtherLayer(layer, target, { traps: false })) consumeActivation(event);
|
|
63
|
+
dismissRef.current("pointer");
|
|
64
|
+
};
|
|
65
|
+
const onFocus = (event) => {
|
|
66
|
+
const target = event.target;
|
|
67
|
+
if (target instanceof Node && !inside(target)) dismissRef.current("focus");
|
|
57
68
|
};
|
|
58
|
-
openScopes.add(inside);
|
|
59
69
|
window.addEventListener("keydown", onKey);
|
|
60
|
-
window.addEventListener("pointerdown", onPointer, true);
|
|
70
|
+
if (outsidePress) window.addEventListener("pointerdown", onPointer, true);
|
|
71
|
+
if (focusOutside) window.addEventListener("focusin", onFocus);
|
|
61
72
|
return () => {
|
|
62
|
-
|
|
73
|
+
closeLayer();
|
|
63
74
|
window.removeEventListener("keydown", onKey);
|
|
64
75
|
window.removeEventListener("pointerdown", onPointer, true);
|
|
76
|
+
window.removeEventListener("focusin", onFocus);
|
|
65
77
|
};
|
|
66
78
|
}, [
|
|
67
79
|
open,
|
|
68
|
-
onDismiss,
|
|
69
80
|
ref,
|
|
70
81
|
behavior,
|
|
71
82
|
dismissOnEscape,
|
|
72
|
-
|
|
83
|
+
focusOutside,
|
|
84
|
+
outsidePress
|
|
73
85
|
]);
|
|
74
86
|
}
|
|
75
87
|
export { useDismiss };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-dismiss.js","names":[],"sources":["../../src/hooks/use-dismiss.ts"],"sourcesContent":["\"use client\";\n\nimport { type RefObject, useEffect } from \"react\";\n\n/**\n * What the dismissing gesture does to the control it landed on.\n *\n * `\"pass-through\"` is the platform norm (native popover light-dismiss): the\n * tap closes the overlay *and* activates whatever was under it. Use\n * `\"consume\"` where the open overlay sits over or beside controls that would\n * be costly to trigger by accident
|
|
1
|
+
{"version":3,"file":"use-dismiss.js","names":[],"sources":["../../src/hooks/use-dismiss.ts"],"sourcesContent":["\"use client\";\n\nimport { type RefObject, useEffect, useLayoutEffect, useRef } from \"react\";\n\nimport { inLayerAbove, inOtherLayer, type Layer, openLayer, ownsEscape } from \"../lib/layers\";\n\n/**\n * What the dismissing gesture does to the control it landed on.\n *\n * `\"pass-through\"` is the platform norm (native popover light-dismiss): the\n * tap closes the overlay *and* activates whatever was under it. Use\n * `\"consume\"` where the open overlay sits over or beside controls that would\n * be costly to trigger by accident - the dismissal then swallows the\n * activation too, so the gesture only closes.\n */\nexport type DismissBehavior = \"pass-through\" | \"consume\";\n\n/** What closed the overlay: Escape, a pointerdown outside it, or focus leaving it. */\nexport type DismissReason = \"escape\" | \"pointer\" | \"focus\";\n\nexport interface DismissOptions {\n /** Default `\"pass-through\"`. */\n behavior?: DismissBehavior;\n /** Dismiss on Escape as well. Default true. */\n escape?: boolean;\n /** Dismiss when focus moves outside, as a combobox does on Tab. Default false. */\n focusOutside?: boolean;\n /**\n * Dismiss on a pointerdown outside. Default true. Turn it off for an overlay\n * whose own backdrop handles presses and only needs Escape and layering.\n */\n outsidePress?: boolean;\n /** Return true for an outside target that should *not* dismiss. */\n ignore?: (target: Element) => boolean;\n}\n\n// preventDefault on pointerdown does not suppress the click that follows, so\n// consuming a gesture means swallowing that click itself. The swallower\n// deliberately outlives the effect that installed it - the dismissal it\n// belongs to has already unmounted or re-rendered by the time the click lands.\n// It releases on that click, or on the next gesture if the pointer is dragged\n// away and no click ever arrives, so it can never eat a later one. A keydown\n// releases it too: a gesture that ends with neither a click nor a cancel would\n// otherwise leave it armed, and the click Enter synthesizes on some focused\n// control is not the one this dismissal was owed.\nfunction consumeActivation(source: Event) {\n const swallow = (event: MouseEvent) => {\n event.preventDefault();\n event.stopPropagation();\n release();\n };\n const restart = (event: Event) => {\n if (event !== source) release();\n };\n const release = () => {\n window.removeEventListener(\"click\", swallow, true);\n window.removeEventListener(\"pointerdown\", restart, true);\n window.removeEventListener(\"pointercancel\", restart, true);\n window.removeEventListener(\"keydown\", release, true);\n };\n window.addEventListener(\"click\", swallow, true);\n window.addEventListener(\"pointerdown\", restart, true);\n window.addEventListener(\"pointercancel\", restart, true);\n window.addEventListener(\"keydown\", release, true);\n}\n\n/**\n * Close an open overlay on Escape or a pointerdown outside `ref`. Pass `null`\n * for `ref` when what counts as inside isn't one element, and say so with\n * `ignore` instead.\n *\n * The pointerdown listener is capture-phase: a bubble-phase one is blinded by\n * any handler in between that stops propagation, and an overlay cannot know\n * what it is layered over.\n *\n * Each open dismissal is a layer in `lib/layers.ts`, so only the innermost\n * open overlay answers Escape (a menu inside a drawer closes, the drawer\n * stays), and a drawer's focus trap leaves focus in a menu it portaled out.\n */\nexport function useDismiss(\n open: boolean,\n onDismiss: (reason: DismissReason) => void,\n ref: RefObject<HTMLElement | SVGElement | null> | null,\n {\n behavior = \"pass-through\",\n escape: dismissOnEscape = true,\n focusOutside = false,\n outsidePress = true,\n ignore,\n }: DismissOptions = {},\n) {\n // Read through refs, so a callback rebuilt each render neither re-binds the\n // listeners nor moves this layer to the top of the stack.\n const dismissRef = useRef(onDismiss);\n const ignoreRef = useRef(ignore);\n useLayoutEffect(() => {\n dismissRef.current = onDismiss;\n ignoreRef.current = ignore;\n });\n\n useEffect(() => {\n if (!open) return;\n const inside = (target: Node) =>\n Boolean(ref?.current?.contains(target)) ||\n (target instanceof Element && Boolean(ignoreRef.current?.(target)));\n const layer: Layer = { contains: inside, escape: dismissOnEscape };\n const closeLayer = openLayer(layer);\n const onKey = (event: KeyboardEvent) => {\n if (!dismissOnEscape || event.key !== \"Escape\" || !ownsEscape(layer, event)) return;\n event.preventDefault();\n dismissRef.current(\"escape\");\n };\n const onPointer = (event: PointerEvent) => {\n const target = event.target as Element | null;\n if (!target || inside(target)) return;\n // A press in an overlay opened on top of this one (a tooltip or menu\n // portaled to the body) belongs to that overlay, not outside this one.\n if (inLayerAbove(layer, target)) return;\n // Outside this overlay, but inside another open one: the gesture is\n // that overlay's to answer, and swallowing its click from behind would\n // cost the user the control they actually aimed at.\n if (behavior === \"consume\" && !inOtherLayer(layer, target, { traps: false })) {\n consumeActivation(event);\n }\n dismissRef.current(\"pointer\");\n };\n const onFocus = (event: FocusEvent) => {\n const target = event.target;\n if (target instanceof Node && !inside(target)) dismissRef.current(\"focus\");\n };\n window.addEventListener(\"keydown\", onKey);\n if (outsidePress) window.addEventListener(\"pointerdown\", onPointer, true);\n if (focusOutside) window.addEventListener(\"focusin\", onFocus);\n return () => {\n closeLayer();\n window.removeEventListener(\"keydown\", onKey);\n window.removeEventListener(\"pointerdown\", onPointer, true);\n window.removeEventListener(\"focusin\", onFocus);\n };\n }, [open, ref, behavior, dismissOnEscape, focusOutside, outsidePress]);\n}\n"],"mappings":";;;;AA6CA,SAAS,kBAAkB,QAAe;CACxC,MAAM,WAAW,UAAsB;EACrC,MAAM,eAAe;EACrB,MAAM,gBAAgB;EACtB,QAAQ;CACV;CACA,MAAM,WAAW,UAAiB;EAChC,IAAI,UAAU,QAAQ,QAAQ;CAChC;CACA,MAAM,gBAAgB;EACpB,OAAO,oBAAoB,SAAS,SAAS,IAAI;EACjD,OAAO,oBAAoB,eAAe,SAAS,IAAI;EACvD,OAAO,oBAAoB,iBAAiB,SAAS,IAAI;EACzD,OAAO,oBAAoB,WAAW,SAAS,IAAI;CACrD;CACA,OAAO,iBAAiB,SAAS,SAAS,IAAI;CAC9C,OAAO,iBAAiB,eAAe,SAAS,IAAI;CACpD,OAAO,iBAAiB,iBAAiB,SAAS,IAAI;CACtD,OAAO,iBAAiB,WAAW,SAAS,IAAI;AAClD;;;;;;;;;;;;;;AAeA,SAAgB,WACd,MACA,WACA,KACA,EACE,WAAW,gBACX,QAAQ,kBAAkB,MAC1B,eAAe,OACf,eAAe,MACf,WACkB,CAAC,GACrB;CAGA,MAAM,aAAa,OAAO,SAAS;CACnC,MAAM,YAAY,OAAO,MAAM;CAC/B,sBAAsB;EACpB,WAAW,UAAU;EACrB,UAAU,UAAU;CACtB,CAAC;CAED,gBAAgB;EACd,IAAI,CAAC,MAAM;EACX,MAAM,UAAU,WACd,QAAQ,KAAK,SAAS,SAAS,MAAM,CAAC,KACrC,kBAAkB,WAAW,QAAQ,UAAU,UAAU,MAAM,CAAC;EACnE,MAAM,QAAe;GAAE,UAAU;GAAQ,QAAQ;EAAgB;EACjE,MAAM,aAAa,UAAU,KAAK;EAClC,MAAM,SAAS,UAAyB;GACtC,IAAI,CAAC,mBAAmB,MAAM,QAAQ,YAAY,CAAC,WAAW,OAAO,KAAK,GAAG;GAC7E,MAAM,eAAe;GACrB,WAAW,QAAQ,QAAQ;EAC7B;EACA,MAAM,aAAa,UAAwB;GACzC,MAAM,SAAS,MAAM;GACrB,IAAI,CAAC,UAAU,OAAO,MAAM,GAAG;GAG/B,IAAI,aAAa,OAAO,MAAM,GAAG;GAIjC,IAAI,aAAa,aAAa,CAAC,aAAa,OAAO,QAAQ,EAAE,OAAO,MAAM,CAAC,GACzE,kBAAkB,KAAK;GAEzB,WAAW,QAAQ,SAAS;EAC9B;EACA,MAAM,WAAW,UAAsB;GACrC,MAAM,SAAS,MAAM;GACrB,IAAI,kBAAkB,QAAQ,CAAC,OAAO,MAAM,GAAG,WAAW,QAAQ,OAAO;EAC3E;EACA,OAAO,iBAAiB,WAAW,KAAK;EACxC,IAAI,cAAc,OAAO,iBAAiB,eAAe,WAAW,IAAI;EACxE,IAAI,cAAc,OAAO,iBAAiB,WAAW,OAAO;EAC5D,aAAa;GACX,WAAW;GACX,OAAO,oBAAoB,WAAW,KAAK;GAC3C,OAAO,oBAAoB,eAAe,WAAW,IAAI;GACzD,OAAO,oBAAoB,WAAW,OAAO;EAC/C;CACF,GAAG;EAAC;EAAM;EAAK;EAAU;EAAiB;EAAc;CAAY,CAAC;AACvE"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { RefObject } from "react";
|
|
2
|
-
/** Elements inside `container` that Tab can reach, in DOM order. */
|
|
3
|
-
export declare function focusablesIn(container: Element | null): HTMLElement[];
|
|
4
2
|
export interface FocusTrapOptions {
|
|
5
|
-
/** Called on Escape while this is the innermost open
|
|
3
|
+
/** Called on Escape while this is the innermost open layer. */
|
|
6
4
|
onEscape?: () => void;
|
|
7
5
|
}
|
|
8
6
|
/**
|
|
@@ -10,6 +8,9 @@ export interface FocusTrapOptions {
|
|
|
10
8
|
* pulls focus back if it lands outside, and returns focus to whatever held it
|
|
11
9
|
* before opening once `open` turns false.
|
|
12
10
|
*
|
|
11
|
+
* Layers opened on top (a menu portaled out of a drawer, a sheet opened from
|
|
12
|
+
* it) keep focus and Escape until they close: see `lib/layers.ts`.
|
|
13
|
+
*
|
|
13
14
|
* For overlays rendered in place, where `useModalScope` cannot inert the rest
|
|
14
15
|
* of the page. Pass `open` rather than presence: an exiting panel is already
|
|
15
16
|
* inert through `PresenceGate`, so the trap releases with the same commit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-focus-trap.d.ts","names":[],"sources":["../../src/hooks/use-focus-trap.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-focus-trap.d.ts","names":[],"sources":["../../src/hooks/use-focus-trap.ts"],"mappings":";iBAOiB;;EAEf;;;;;;;;;;;;;;;;wBAiBc,aACd,eACA,OAAO,UAAU,uBACf,aAAY"}
|
|
@@ -1,22 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useEffect, useLayoutEffect, useRef } from "react";
|
|
3
|
+
import { cycleTab, focusFirstIn } from "../lib/focusable.js";
|
|
4
|
+
import { inLayerAbove, openLayer, ownsEscape, trapAbove } from "../lib/layers.js";
|
|
3
5
|
// src/hooks/use-focus-trap.ts
|
|
4
|
-
const FOCUSABLE = "button:not(:disabled), a[href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex=\"-1\"])";
|
|
5
|
-
/** Elements inside `container` that Tab can reach, in DOM order. */
|
|
6
|
-
function focusablesIn(container) {
|
|
7
|
-
return Array.from(container?.querySelectorAll(FOCUSABLE) ?? []).filter((element) => element.tabIndex >= 0 && !element.closest("[inert]"));
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Open traps, innermost last. Only the innermost one answers Tab, Escape and
|
|
11
|
-
* stray focus: a sheet opened from inside a drawer portals outside the drawer,
|
|
12
|
-
* and a drawer that still pulled focus home would fight the sheet for it.
|
|
13
|
-
*/
|
|
14
|
-
const traps = [];
|
|
15
6
|
/**
|
|
16
7
|
* Moves focus into `panel` when `open` turns true, keeps Tab cycling inside it,
|
|
17
8
|
* pulls focus back if it lands outside, and returns focus to whatever held it
|
|
18
9
|
* before opening once `open` turns false.
|
|
19
10
|
*
|
|
11
|
+
* Layers opened on top (a menu portaled out of a drawer, a sheet opened from
|
|
12
|
+
* it) keep focus and Escape until they close: see `lib/layers.ts`.
|
|
13
|
+
*
|
|
20
14
|
* For overlays rendered in place, where `useModalScope` cannot inert the rest
|
|
21
15
|
* of the page. Pass `open` rather than presence: an exiting panel is already
|
|
22
16
|
* inert through `PresenceGate`, so the trap releases with the same commit.
|
|
@@ -30,50 +24,44 @@ function useFocusTrap(open, panel, { onEscape } = {}) {
|
|
|
30
24
|
});
|
|
31
25
|
useEffect(() => {
|
|
32
26
|
if (!open || !panel.current) return;
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
const layer = {
|
|
28
|
+
contains: (target) => Boolean(panel.current?.contains(target)),
|
|
29
|
+
traps: true,
|
|
30
|
+
get escape() {
|
|
31
|
+
return Boolean(escapeRef.current);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const closeLayer = openLayer(layer);
|
|
36
35
|
const returnFocus = document.activeElement instanceof HTMLElement ? document.activeElement : null;
|
|
37
|
-
|
|
38
|
-
const focusFirst = () => (focusables()[0] ?? panel.current)?.focus({ preventScroll: true });
|
|
39
|
-
if (!panel.current.contains(document.activeElement)) focusFirst();
|
|
36
|
+
if (!panel.current.contains(document.activeElement)) focusFirstIn(panel.current);
|
|
40
37
|
const onFocus = (event) => {
|
|
41
|
-
|
|
42
|
-
if (
|
|
38
|
+
const target = event.target;
|
|
39
|
+
if (!(target instanceof Node) || !panel.current) return;
|
|
40
|
+
if (panel.current.closest("[inert]") || panel.current.contains(target)) return;
|
|
41
|
+
if (inLayerAbove(layer, target) || trapAbove(layer)) return;
|
|
42
|
+
focusFirstIn(panel.current);
|
|
43
43
|
};
|
|
44
44
|
const onKey = (event) => {
|
|
45
|
-
if (
|
|
46
|
-
|
|
45
|
+
if (event.key === "Escape") {
|
|
46
|
+
if (!escapeRef.current || !ownsEscape(layer, event)) return;
|
|
47
47
|
event.preventDefault();
|
|
48
48
|
escapeRef.current();
|
|
49
49
|
return;
|
|
50
50
|
}
|
|
51
|
-
if (event.key !== "Tab") return;
|
|
52
|
-
const elements = focusables();
|
|
53
|
-
const first = elements[0];
|
|
54
|
-
const last = elements[elements.length - 1];
|
|
55
51
|
const active = document.activeElement;
|
|
56
|
-
if (
|
|
57
|
-
|
|
58
|
-
panel.current?.focus({ preventScroll: true });
|
|
59
|
-
} else if (event.shiftKey && (active === first || active === panel.current)) {
|
|
60
|
-
event.preventDefault();
|
|
61
|
-
last.focus();
|
|
62
|
-
} else if (!event.shiftKey && active === last) {
|
|
63
|
-
event.preventDefault();
|
|
64
|
-
first.focus();
|
|
65
|
-
}
|
|
52
|
+
if (event.defaultPrevented || active && inLayerAbove(layer, active)) return;
|
|
53
|
+
cycleTab(event, panel.current);
|
|
66
54
|
};
|
|
67
55
|
document.addEventListener("focusin", onFocus);
|
|
68
56
|
document.addEventListener("keydown", onKey);
|
|
69
57
|
return () => {
|
|
70
58
|
document.removeEventListener("focusin", onFocus);
|
|
71
59
|
document.removeEventListener("keydown", onKey);
|
|
72
|
-
|
|
60
|
+
closeLayer();
|
|
73
61
|
if (returnFocus?.isConnected && !returnFocus.closest("[inert]")) returnFocus.focus({ preventScroll: true });
|
|
74
62
|
};
|
|
75
63
|
}, [open, panel]);
|
|
76
64
|
}
|
|
77
|
-
export {
|
|
65
|
+
export { useFocusTrap };
|
|
78
66
|
|
|
79
67
|
//# sourceMappingURL=use-focus-trap.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-focus-trap.js","names":[],"sources":["../../src/hooks/use-focus-trap.ts"],"sourcesContent":["\"use client\";\n\nimport { type RefObject, useEffect, useLayoutEffect, useRef } from \"react\";\n\
|
|
1
|
+
{"version":3,"file":"use-focus-trap.js","names":[],"sources":["../../src/hooks/use-focus-trap.ts"],"sourcesContent":["\"use client\";\n\nimport { type RefObject, useEffect, useLayoutEffect, useRef } from \"react\";\n\nimport { cycleTab, focusFirstIn } from \"../lib/focusable\";\nimport { inLayerAbove, type Layer, openLayer, ownsEscape, trapAbove } from \"../lib/layers\";\n\nexport interface FocusTrapOptions {\n /** Called on Escape while this is the innermost open layer. */\n onEscape?: () => void;\n}\n\n/**\n * Moves focus into `panel` when `open` turns true, keeps Tab cycling inside it,\n * pulls focus back if it lands outside, and returns focus to whatever held it\n * before opening once `open` turns false.\n *\n * Layers opened on top (a menu portaled out of a drawer, a sheet opened from\n * it) keep focus and Escape until they close: see `lib/layers.ts`.\n *\n * For overlays rendered in place, where `useModalScope` cannot inert the rest\n * of the page. Pass `open` rather than presence: an exiting panel is already\n * inert through `PresenceGate`, so the trap releases with the same commit.\n * Give the panel `tabIndex={-1}` so it can take focus when it holds nothing\n * focusable.\n */\nexport function useFocusTrap(\n open: boolean,\n panel: RefObject<HTMLElement | null>,\n { onEscape }: FocusTrapOptions = {},\n) {\n const escapeRef = useRef(onEscape);\n useLayoutEffect(() => {\n escapeRef.current = onEscape;\n });\n\n useEffect(() => {\n if (!open || !panel.current) return;\n const layer: Layer = {\n contains: (target) => Boolean(panel.current?.contains(target)),\n traps: true,\n get escape() {\n return Boolean(escapeRef.current);\n },\n };\n const closeLayer = openLayer(layer);\n const returnFocus =\n document.activeElement instanceof HTMLElement ? document.activeElement : null;\n if (!panel.current.contains(document.activeElement)) focusFirstIn(panel.current);\n\n const onFocus = (event: FocusEvent) => {\n const target = event.target;\n if (!(target instanceof Node) || !panel.current) return;\n if (panel.current.closest(\"[inert]\") || panel.current.contains(target)) return;\n if (inLayerAbove(layer, target) || trapAbove(layer)) return;\n focusFirstIn(panel.current);\n };\n const onKey = (event: KeyboardEvent) => {\n if (event.key === \"Escape\") {\n if (!escapeRef.current || !ownsEscape(layer, event)) return;\n event.preventDefault();\n escapeRef.current();\n return;\n }\n const active = document.activeElement;\n if (event.defaultPrevented || (active && inLayerAbove(layer, active))) return;\n cycleTab(event, panel.current);\n };\n document.addEventListener(\"focusin\", onFocus);\n document.addEventListener(\"keydown\", onKey);\n return () => {\n document.removeEventListener(\"focusin\", onFocus);\n document.removeEventListener(\"keydown\", onKey);\n closeLayer();\n if (returnFocus?.isConnected && !returnFocus.closest(\"[inert]\"))\n returnFocus.focus({ preventScroll: true });\n };\n }, [open, panel]);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA0BA,SAAgB,aACd,MACA,OACA,EAAE,aAA+B,CAAC,GAClC;CACA,MAAM,YAAY,OAAO,QAAQ;CACjC,sBAAsB;EACpB,UAAU,UAAU;CACtB,CAAC;CAED,gBAAgB;EACd,IAAI,CAAC,QAAQ,CAAC,MAAM,SAAS;EAC7B,MAAM,QAAe;GACnB,WAAW,WAAW,QAAQ,MAAM,SAAS,SAAS,MAAM,CAAC;GAC7D,OAAO;GACP,IAAI,SAAS;IACX,OAAO,QAAQ,UAAU,OAAO;GAClC;EACF;EACA,MAAM,aAAa,UAAU,KAAK;EAClC,MAAM,cACJ,SAAS,yBAAyB,cAAc,SAAS,gBAAgB;EAC3E,IAAI,CAAC,MAAM,QAAQ,SAAS,SAAS,aAAa,GAAG,aAAa,MAAM,OAAO;EAE/E,MAAM,WAAW,UAAsB;GACrC,MAAM,SAAS,MAAM;GACrB,IAAI,EAAE,kBAAkB,SAAS,CAAC,MAAM,SAAS;GACjD,IAAI,MAAM,QAAQ,QAAQ,SAAS,KAAK,MAAM,QAAQ,SAAS,MAAM,GAAG;GACxE,IAAI,aAAa,OAAO,MAAM,KAAK,UAAU,KAAK,GAAG;GACrD,aAAa,MAAM,OAAO;EAC5B;EACA,MAAM,SAAS,UAAyB;GACtC,IAAI,MAAM,QAAQ,UAAU;IAC1B,IAAI,CAAC,UAAU,WAAW,CAAC,WAAW,OAAO,KAAK,GAAG;IACrD,MAAM,eAAe;IACrB,UAAU,QAAQ;IAClB;GACF;GACA,MAAM,SAAS,SAAS;GACxB,IAAI,MAAM,oBAAqB,UAAU,aAAa,OAAO,MAAM,GAAI;GACvE,SAAS,OAAO,MAAM,OAAO;EAC/B;EACA,SAAS,iBAAiB,WAAW,OAAO;EAC5C,SAAS,iBAAiB,WAAW,KAAK;EAC1C,aAAa;GACX,SAAS,oBAAoB,WAAW,OAAO;GAC/C,SAAS,oBAAoB,WAAW,KAAK;GAC7C,WAAW;GACX,IAAI,aAAa,eAAe,CAAC,YAAY,QAAQ,SAAS,GAC5D,YAAY,MAAM,EAAE,eAAe,KAAK,CAAC;EAC7C;CACF,GAAG,CAAC,MAAM,KAAK,CAAC;AAClB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
export declare function useHighlightedCode(value: string, language: string): (string | number | bigint | boolean | React.
|
|
2
|
+
export declare function useHighlightedCode(value: string, language: string): (string | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element[] | null | undefined)[];
|
|
3
3
|
//# sourceMappingURL=use-highlighted-code.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-highlighted-code.d.ts","names":[],"sources":["../../src/hooks/use-highlighted-code.ts"],"mappings":";wBAMgB,mBAAmB,eAAe,yDAAgB,MAAA
|
|
1
|
+
{"version":3,"file":"use-highlighted-code.d.ts","names":[],"sources":["../../src/hooks/use-highlighted-code.ts"],"mappings":";wBAMgB,mBAAmB,eAAe,yDAAgB,MAAA,+BAAA,MAAA,8BAAA,SAAA,MAAA,aAAA,6CAAA,MAAA,cAAA,MAAA,+BAAA,MAAA,8BAAA,SAAA,MAAA,iCAAA,MAAA,IAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Returns true only on devices that have a true hover (mouse / trackpad).
|
|
3
3
|
* Touch devices fire phantom `:hover` on tap that sticks until tap-elsewhere
|
|
4
|
-
*
|
|
4
|
+
* - gate hover-only effects (scale lifts, magnetic pulls) behind this.
|
|
5
5
|
*/
|
|
6
6
|
export declare function useHoverCapable(): boolean;
|
|
7
7
|
//# sourceMappingURL=use-hover-capable.d.ts.map
|
|
@@ -4,7 +4,7 @@ import { useEffect, useState } from "react";
|
|
|
4
4
|
/**
|
|
5
5
|
* Returns true only on devices that have a true hover (mouse / trackpad).
|
|
6
6
|
* Touch devices fire phantom `:hover` on tap that sticks until tap-elsewhere
|
|
7
|
-
*
|
|
7
|
+
* - gate hover-only effects (scale lifts, magnetic pulls) behind this.
|
|
8
8
|
*/
|
|
9
9
|
function useHoverCapable() {
|
|
10
10
|
const [canHover, setCanHover] = useState(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-hover-capable.js","names":[],"sources":["../../src/hooks/use-hover-capable.ts"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState } from \"react\";\n\n/**\n * Returns true only on devices that have a true hover (mouse / trackpad).\n * Touch devices fire phantom `:hover` on tap that sticks until tap-elsewhere\n *
|
|
1
|
+
{"version":3,"file":"use-hover-capable.js","names":[],"sources":["../../src/hooks/use-hover-capable.ts"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState } from \"react\";\n\n/**\n * Returns true only on devices that have a true hover (mouse / trackpad).\n * Touch devices fire phantom `:hover` on tap that sticks until tap-elsewhere\n * - gate hover-only effects (scale lifts, magnetic pulls) behind this.\n */\nexport function useHoverCapable() {\n const [canHover, setCanHover] = useState(false);\n\n useEffect(() => {\n if (typeof window === \"undefined\" || !window.matchMedia) return;\n const mq = window.matchMedia(\"(hover: hover) and (pointer: fine)\");\n const update = () => setCanHover(mq.matches);\n update();\n mq.addEventListener?.(\"change\", update);\n return () => mq.removeEventListener?.(\"change\", update);\n }, []);\n\n return canHover;\n}\n"],"mappings":";;;;;;;;AASA,SAAgB,kBAAkB;CAChC,MAAM,CAAC,UAAU,eAAe,SAAS,KAAK;CAE9C,gBAAgB;EACd,IAAI,OAAO,WAAW,eAAe,CAAC,OAAO,YAAY;EACzD,MAAM,KAAK,OAAO,WAAW,oCAAoC;EACjE,MAAM,eAAe,YAAY,GAAG,OAAO;EAC3C,OAAO;EACP,GAAG,mBAAmB,UAAU,MAAM;EACtC,aAAa,GAAG,sBAAsB,UAAU,MAAM;CACxD,GAAG,CAAC,CAAC;CAEL,OAAO;AACT"}
|
|
@@ -12,14 +12,14 @@ export interface HoverGesture {
|
|
|
12
12
|
/**
|
|
13
13
|
* Pairs a surface's enter with its leave, per pointer.
|
|
14
14
|
*
|
|
15
|
-
* `isHoveringPointer` answers the question the *enter* asks
|
|
16
|
-
* resting on the surface or pressing it
|
|
15
|
+
* `isHoveringPointer` answers the question the *enter* asks - is this pointer
|
|
16
|
+
* resting on the surface or pressing it - and both boundary cases go wrong if
|
|
17
17
|
* the leave is asked the same question again:
|
|
18
18
|
*
|
|
19
19
|
* - A pen with no hover never rests. It arrives in contact, taps, and the spec
|
|
20
20
|
* then requires its boundary events after `pointerup`, so the leave carries
|
|
21
21
|
* `buttons: 0` and reads as a mouse gliding off. Hover teardown then undid
|
|
22
|
-
* the tap
|
|
22
|
+
* the tap - the panel the pen had just opened closed under it.
|
|
23
23
|
* - A mouse pressed on the surface and dragged off leaves with `buttons: 1`.
|
|
24
24
|
* Skipping teardown there strands the surface open: the release happens
|
|
25
25
|
* outside, and no second leave ever comes.
|
|
@@ -27,8 +27,8 @@ export interface HoverGesture {
|
|
|
27
27
|
* So the state a hover holds is released by the pointer that took it, whatever
|
|
28
28
|
* the buttons say at the boundary, and a pointer that arrived in contact never
|
|
29
29
|
* took it in the first place. Contact is the exception tracked here, not
|
|
30
|
-
* hover: a leave from a pointer this surface never saw enter
|
|
31
|
-
* the cursor, say
|
|
30
|
+
* hover: a leave from a pointer this surface never saw enter - mounted under
|
|
31
|
+
* the cursor, say - still counts, since the alternative is state with no way
|
|
32
32
|
* out.
|
|
33
33
|
*/
|
|
34
34
|
export declare function useHoverGesture(): HoverGesture;
|
|
@@ -5,14 +5,14 @@ import { isHoveringPointer } from "../lib/touch.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* Pairs a surface's enter with its leave, per pointer.
|
|
7
7
|
*
|
|
8
|
-
* `isHoveringPointer` answers the question the *enter* asks
|
|
9
|
-
* resting on the surface or pressing it
|
|
8
|
+
* `isHoveringPointer` answers the question the *enter* asks - is this pointer
|
|
9
|
+
* resting on the surface or pressing it - and both boundary cases go wrong if
|
|
10
10
|
* the leave is asked the same question again:
|
|
11
11
|
*
|
|
12
12
|
* - A pen with no hover never rests. It arrives in contact, taps, and the spec
|
|
13
13
|
* then requires its boundary events after `pointerup`, so the leave carries
|
|
14
14
|
* `buttons: 0` and reads as a mouse gliding off. Hover teardown then undid
|
|
15
|
-
* the tap
|
|
15
|
+
* the tap - the panel the pen had just opened closed under it.
|
|
16
16
|
* - A mouse pressed on the surface and dragged off leaves with `buttons: 1`.
|
|
17
17
|
* Skipping teardown there strands the surface open: the release happens
|
|
18
18
|
* outside, and no second leave ever comes.
|
|
@@ -20,8 +20,8 @@ import { isHoveringPointer } from "../lib/touch.js";
|
|
|
20
20
|
* So the state a hover holds is released by the pointer that took it, whatever
|
|
21
21
|
* the buttons say at the boundary, and a pointer that arrived in contact never
|
|
22
22
|
* took it in the first place. Contact is the exception tracked here, not
|
|
23
|
-
* hover: a leave from a pointer this surface never saw enter
|
|
24
|
-
* the cursor, say
|
|
23
|
+
* hover: a leave from a pointer this surface never saw enter - mounted under
|
|
24
|
+
* the cursor, say - still counts, since the alternative is state with no way
|
|
25
25
|
* out.
|
|
26
26
|
*/
|
|
27
27
|
function useHoverGesture() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-hover-gesture.js","names":[],"sources":["../../src/hooks/use-hover-gesture.ts"],"sourcesContent":["\"use client\";\n\nimport { useMemo, useRef } from \"react\";\n\nimport { isHoveringPointer } from \"../lib/touch\";\n\ninterface BoundaryEvent {\n pointerId: number;\n pointerType: string;\n buttons: number;\n}\n\nexport interface HoverGesture {\n /** True when this enter starts a hover: the pointer arrived resting, not pressing. */\n enter: (event: BoundaryEvent) => boolean;\n /** True when this leave ends a hover that entered as one. */\n leave: (event: BoundaryEvent) => boolean;\n}\n\n/**\n * Pairs a surface's enter with its leave, per pointer.\n *\n * `isHoveringPointer` answers the question the *enter* asks
|
|
1
|
+
{"version":3,"file":"use-hover-gesture.js","names":[],"sources":["../../src/hooks/use-hover-gesture.ts"],"sourcesContent":["\"use client\";\n\nimport { useMemo, useRef } from \"react\";\n\nimport { isHoveringPointer } from \"../lib/touch\";\n\ninterface BoundaryEvent {\n pointerId: number;\n pointerType: string;\n buttons: number;\n}\n\nexport interface HoverGesture {\n /** True when this enter starts a hover: the pointer arrived resting, not pressing. */\n enter: (event: BoundaryEvent) => boolean;\n /** True when this leave ends a hover that entered as one. */\n leave: (event: BoundaryEvent) => boolean;\n}\n\n/**\n * Pairs a surface's enter with its leave, per pointer.\n *\n * `isHoveringPointer` answers the question the *enter* asks - is this pointer\n * resting on the surface or pressing it - and both boundary cases go wrong if\n * the leave is asked the same question again:\n *\n * - A pen with no hover never rests. It arrives in contact, taps, and the spec\n * then requires its boundary events after `pointerup`, so the leave carries\n * `buttons: 0` and reads as a mouse gliding off. Hover teardown then undid\n * the tap - the panel the pen had just opened closed under it.\n * - A mouse pressed on the surface and dragged off leaves with `buttons: 1`.\n * Skipping teardown there strands the surface open: the release happens\n * outside, and no second leave ever comes.\n *\n * So the state a hover holds is released by the pointer that took it, whatever\n * the buttons say at the boundary, and a pointer that arrived in contact never\n * took it in the first place. Contact is the exception tracked here, not\n * hover: a leave from a pointer this surface never saw enter - mounted under\n * the cursor, say - still counts, since the alternative is state with no way\n * out.\n */\nexport function useHoverGesture(): HoverGesture {\n const contact = useRef(new Set<number>());\n\n return useMemo(\n () => ({\n enter: (event) => {\n if (isHoveringPointer(event)) {\n contact.current.delete(event.pointerId);\n return true;\n }\n contact.current.add(event.pointerId);\n return false;\n },\n leave: (event) => {\n const arrivedInContact = contact.current.delete(event.pointerId);\n return !arrivedInContact && event.pointerType !== \"touch\";\n },\n }),\n [],\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA,SAAgB,kBAAgC;CAC9C,MAAM,UAAU,uBAAO,IAAI,IAAY,CAAC;CAExC,OAAO,eACE;EACL,QAAQ,UAAU;GAChB,IAAI,kBAAkB,KAAK,GAAG;IAC5B,QAAQ,QAAQ,OAAO,MAAM,SAAS;IACtC,OAAO;GACT;GACA,QAAQ,QAAQ,IAAI,MAAM,SAAS;GACnC,OAAO;EACT;EACA,QAAQ,UAAU;GAEhB,OAAO,CADkB,QAAQ,QAAQ,OAAO,MAAM,SAC/B,KAAK,MAAM,gBAAgB;EACpD;CACF,IACA,CAAC,CACH;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-listbox.js","names":[],"sources":["../../src/hooks/use-listbox.ts"],"sourcesContent":["\"use client\";\n\nimport { type KeyboardEvent, type RefObject, useEffect, useMemo, useRef } from \"react\";\n\nimport { useOnOpen } from \"./use-on-open\";\nimport { useRowCursor } from \"./use-row-cursor\";\n\nexport interface ListboxRow {\n id: string;\n label: string;\n disabled?: boolean;\n}\n\n// How long typed characters keep building one typeahead query.\nconst TYPEAHEAD_MS = 500;\n\n/**\n * Keyboard model for a popup listbox whose options are focusable buttons.\n *\n * The active option is resolved during render through `useRowCursor`, so the\n * roving `tabIndex` and the next key press always agree with what is on\n * screen. Opening starts on the selected option, or the first enabled one.\n * Arrow keys, Home and End move between enabled options, and printable\n * characters jump to the next option whose label starts with what was typed.\n * DOM focus follows the active option while the list is open; each option\n * carries its id in `data-listbox-id` so the list can find it.\n */\nexport function useListbox({\n open,\n rows,\n selected,\n list,\n}: {\n open: boolean;\n rows: readonly ListboxRow[];\n selected: string | undefined;\n list: RefObject<HTMLElement | null>;\n}) {\n const enabled = useMemo(() => rows.filter((row) => !row.disabled), [rows]);\n const { activeIndex, moveTo, moveActive } = useRowCursor(enabled, \"\");\n useOnOpen(open, () =>\n moveTo(enabled.some((row) => row.id === selected) ? (selected ?? null) : null),\n );\n const activeId = enabled[activeIndex]?.id;\n const typed = useRef({ text: \"\", at: 0 });\n // A list rendered open does not take focus from the page on mount; focus\n // follows only once it has been opened, or once focus is already inside.\n const openedOnMount = useRef(open);\n useEffect(() => {\n if (!open) openedOnMount.current = false;\n }, [open]);\n\n useEffect(() => {\n if (!open || activeId === undefined) return;\n if (openedOnMount.current && !list.current?.contains(document.activeElement)) return;\n const option = Array.from(\n list.current?.querySelectorAll<HTMLElement>(\"[data-listbox-id]\") ?? [],\n ).find((element) => element.dataset.listboxId === activeId);\n option?.focus({ preventScroll: false });\n }, [open, activeId, list]);\n\n const onKeyDown = (event: KeyboardEvent) => {\n const { key } = event;\n if (key === \"ArrowDown\" || key === \"ArrowUp\") {\n event.preventDefault();\n moveActive(key === \"ArrowDown\" ? 1 : -1);\n } else if (key === \"Home\" || key === \"End\") {\n event.preventDefault();\n const row = key === \"Home\" ? enabled[0] : enabled[enabled.length - 1];\n if (row) moveTo(row.id);\n } else if (\n key.length === 1 &&\n key !== \" \" &&\n !event.ctrlKey &&\n !event.metaKey &&\n !event.altKey\n ) {\n const now = Date.now();\n const char = key.toLowerCase();\n const text = now - typed.current.at < TYPEAHEAD_MS ? typed.current.text + char : char;\n typed.current = { text, at: now };\n // A repeated single letter cycles through the options that start with it.\n const from = text.length === 1 ? activeIndex + 1 : activeIndex;\n for (let step = 0; step < enabled.length; step++) {\n const row = enabled[(from + step) % enabled.length];\n if (row.label.toLowerCase().startsWith(text)) {\n moveTo(row.id);\n break;\n }\n }\n }\n };\n\n return { activeId, onKeyDown };\n}\n"],"mappings":";;;;;AAcA,MAAM,eAAe;;;;;;;;;;;;AAarB,SAAgB,WAAW,EACzB,MACA,MACA,UACA,QAMC;CACD,MAAM,UAAU,cAAc,KAAK,QAAQ,QAAQ,CAAC,IAAI,QAAQ,GAAG,CAAC,IAAI,CAAC;CACzE,MAAM,EAAE,aAAa,QAAQ,eAAe,aAAa,SAAS,EAAE;CACpE,UAAU,YACR,OAAO,QAAQ,MAAM,QAAQ,IAAI,OAAO,QAAQ,IAAK,YAAY,OAAQ,IAAI,CAC/E;CACA,MAAM,WAAW,QAAQ,YAAY,EAAE;CACvC,MAAM,QAAQ,OAAO;EAAE,MAAM;EAAI,IAAI;CAAE,CAAC;CAGxC,MAAM,gBAAgB,OAAO,IAAI;CACjC,gBAAgB;EACd,IAAI,CAAC,MAAM,cAAc,UAAU;CACrC,GAAG,CAAC,IAAI,CAAC;CAET,gBAAgB;EACd,IAAI,CAAC,QAAQ,aAAa,KAAA,GAAW;EACrC,IAAI,cAAc,WAAW,CAAC,KAAK,SAAS,SAAS,SAAS,aAAa,GAAG;EAC/D,MAAM,KACnB,KAAK,SAAS,iBAA8B,mBAAmB,KAAK,CAAC,CACvE,CAAC,CAAC,MAAM,YAAY,QAAQ,QAAQ,cAAc,QAC7C,CAAC,EAAE,MAAM,EAAE,eAAe,MAAM,CAAC;CACxC,GAAG;EAAC;EAAM;EAAU;CAAI,CAAC;CAEzB,MAAM,aAAa,UAAyB;EAC1C,MAAM,EAAE,QAAQ;EAChB,IAAI,QAAQ,eAAe,QAAQ,WAAW;GAC5C,MAAM,eAAe;GACrB,WAAW,QAAQ,cAAc,IAAI,EAAE;EACzC,OAAO,IAAI,QAAQ,UAAU,QAAQ,OAAO;GAC1C,MAAM,eAAe;GACrB,MAAM,MAAM,QAAQ,SAAS,QAAQ,KAAK,QAAQ,QAAQ,SAAS;GACnE,IAAI,KAAK,OAAO,IAAI,EAAE;EACxB,OAAO,IACL,IAAI,WAAW,KACf,QAAQ,OACR,CAAC,MAAM,WACP,CAAC,MAAM,WACP,CAAC,MAAM,QACP;GACA,MAAM,MAAM,KAAK,IAAI;GACrB,MAAM,OAAO,IAAI,YAAY;GAC7B,MAAM,OAAO,MAAM,MAAM,QAAQ,KAAK,eAAe,MAAM,QAAQ,OAAO,OAAO;GACjF,MAAM,UAAU;IAAE;IAAM,IAAI;GAAI;GAEhC,MAAM,OAAO,KAAK,WAAW,IAAI,cAAc,IAAI;GACnD,KAAK,IAAI,OAAO,GAAG,OAAO,QAAQ,QAAQ,QAAQ;IAChD,MAAM,MAAM,SAAS,OAAO,QAAQ,QAAQ;IAC5C,IAAI,IAAI,MAAM,YAAY,CAAC,CAAC,WAAW,IAAI,GAAG;KAC5C,OAAO,IAAI,EAAE;KACb;IACF;GACF;EACF;CACF;
|
|
1
|
+
{"version":3,"file":"use-listbox.js","names":[],"sources":["../../src/hooks/use-listbox.ts"],"sourcesContent":["\"use client\";\n\nimport { type KeyboardEvent, type RefObject, useEffect, useMemo, useRef } from \"react\";\n\nimport { useOnOpen } from \"./use-on-open\";\nimport { useRowCursor } from \"./use-row-cursor\";\n\nexport interface ListboxRow {\n id: string;\n label: string;\n disabled?: boolean;\n}\n\n// How long typed characters keep building one typeahead query.\nconst TYPEAHEAD_MS = 500;\n\n/**\n * Keyboard model for a popup listbox whose options are focusable buttons.\n *\n * The active option is resolved during render through `useRowCursor`, so the\n * roving `tabIndex` and the next key press always agree with what is on\n * screen. Opening starts on the selected option, or the first enabled one.\n * Arrow keys, Home and End move between enabled options, and printable\n * characters jump to the next option whose label starts with what was typed.\n * DOM focus follows the active option while the list is open; each option\n * carries its id in `data-listbox-id` so the list can find it.\n */\nexport function useListbox({\n open,\n rows,\n selected,\n list,\n}: {\n open: boolean;\n rows: readonly ListboxRow[];\n selected: string | undefined;\n list: RefObject<HTMLElement | null>;\n}) {\n const enabled = useMemo(() => rows.filter((row) => !row.disabled), [rows]);\n const { activeIndex, moveTo, moveActive } = useRowCursor(enabled, \"\");\n useOnOpen(open, () =>\n moveTo(enabled.some((row) => row.id === selected) ? (selected ?? null) : null),\n );\n const activeId = enabled[activeIndex]?.id;\n const typed = useRef({ text: \"\", at: 0 });\n // A list rendered open does not take focus from the page on mount; focus\n // follows only once it has been opened, or once focus is already inside.\n const openedOnMount = useRef(open);\n useEffect(() => {\n if (!open) openedOnMount.current = false;\n }, [open]);\n\n useEffect(() => {\n if (!open || activeId === undefined) return;\n if (openedOnMount.current && !list.current?.contains(document.activeElement)) return;\n const option = Array.from(\n list.current?.querySelectorAll<HTMLElement>(\"[data-listbox-id]\") ?? [],\n ).find((element) => element.dataset.listboxId === activeId);\n option?.focus({ preventScroll: false });\n }, [open, activeId, list]);\n\n const onKeyDown = (event: KeyboardEvent) => {\n const { key } = event;\n if (key === \"ArrowDown\" || key === \"ArrowUp\") {\n event.preventDefault();\n moveActive(key === \"ArrowDown\" ? 1 : -1);\n } else if (key === \"Home\" || key === \"End\") {\n event.preventDefault();\n const row = key === \"Home\" ? enabled[0] : enabled[enabled.length - 1];\n if (row) moveTo(row.id);\n } else if (\n key.length === 1 &&\n key !== \" \" &&\n !event.ctrlKey &&\n !event.metaKey &&\n !event.altKey\n ) {\n const now = Date.now();\n const char = key.toLowerCase();\n const text = now - typed.current.at < TYPEAHEAD_MS ? typed.current.text + char : char;\n typed.current = { text, at: now };\n // A repeated single letter cycles through the options that start with it.\n const from = text.length === 1 ? activeIndex + 1 : activeIndex;\n for (let step = 0; step < enabled.length; step++) {\n const row = enabled[(from + step) % enabled.length];\n if (row.label.toLowerCase().startsWith(text)) {\n moveTo(row.id);\n break;\n }\n }\n }\n };\n\n // `moveTo` lets a pointer resting on an option make it the active one, so a\n // highlight drawn from `activeId` follows the mouse as well as the keys.\n return { activeId, onKeyDown, moveTo };\n}\n"],"mappings":";;;;;AAcA,MAAM,eAAe;;;;;;;;;;;;AAarB,SAAgB,WAAW,EACzB,MACA,MACA,UACA,QAMC;CACD,MAAM,UAAU,cAAc,KAAK,QAAQ,QAAQ,CAAC,IAAI,QAAQ,GAAG,CAAC,IAAI,CAAC;CACzE,MAAM,EAAE,aAAa,QAAQ,eAAe,aAAa,SAAS,EAAE;CACpE,UAAU,YACR,OAAO,QAAQ,MAAM,QAAQ,IAAI,OAAO,QAAQ,IAAK,YAAY,OAAQ,IAAI,CAC/E;CACA,MAAM,WAAW,QAAQ,YAAY,EAAE;CACvC,MAAM,QAAQ,OAAO;EAAE,MAAM;EAAI,IAAI;CAAE,CAAC;CAGxC,MAAM,gBAAgB,OAAO,IAAI;CACjC,gBAAgB;EACd,IAAI,CAAC,MAAM,cAAc,UAAU;CACrC,GAAG,CAAC,IAAI,CAAC;CAET,gBAAgB;EACd,IAAI,CAAC,QAAQ,aAAa,KAAA,GAAW;EACrC,IAAI,cAAc,WAAW,CAAC,KAAK,SAAS,SAAS,SAAS,aAAa,GAAG;EAC/D,MAAM,KACnB,KAAK,SAAS,iBAA8B,mBAAmB,KAAK,CAAC,CACvE,CAAC,CAAC,MAAM,YAAY,QAAQ,QAAQ,cAAc,QAC7C,CAAC,EAAE,MAAM,EAAE,eAAe,MAAM,CAAC;CACxC,GAAG;EAAC;EAAM;EAAU;CAAI,CAAC;CAEzB,MAAM,aAAa,UAAyB;EAC1C,MAAM,EAAE,QAAQ;EAChB,IAAI,QAAQ,eAAe,QAAQ,WAAW;GAC5C,MAAM,eAAe;GACrB,WAAW,QAAQ,cAAc,IAAI,EAAE;EACzC,OAAO,IAAI,QAAQ,UAAU,QAAQ,OAAO;GAC1C,MAAM,eAAe;GACrB,MAAM,MAAM,QAAQ,SAAS,QAAQ,KAAK,QAAQ,QAAQ,SAAS;GACnE,IAAI,KAAK,OAAO,IAAI,EAAE;EACxB,OAAO,IACL,IAAI,WAAW,KACf,QAAQ,OACR,CAAC,MAAM,WACP,CAAC,MAAM,WACP,CAAC,MAAM,QACP;GACA,MAAM,MAAM,KAAK,IAAI;GACrB,MAAM,OAAO,IAAI,YAAY;GAC7B,MAAM,OAAO,MAAM,MAAM,QAAQ,KAAK,eAAe,MAAM,QAAQ,OAAO,OAAO;GACjF,MAAM,UAAU;IAAE;IAAM,IAAI;GAAI;GAEhC,MAAM,OAAO,KAAK,WAAW,IAAI,cAAc,IAAI;GACnD,KAAK,IAAI,OAAO,GAAG,OAAO,QAAQ,QAAQ,QAAQ;IAChD,MAAM,MAAM,SAAS,OAAO,QAAQ,QAAQ;IAC5C,IAAI,IAAI,MAAM,YAAY,CAAC,CAAC,WAAW,IAAI,GAAG;KAC5C,OAAO,IAAI,EAAE;KACb;IACF;GACF;EACF;CACF;CAIA,OAAO;EAAE;EAAU;EAAW;CAAO;AACvC"}
|