@kumix/ui 0.6.0 → 0.8.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 +71 -48
- 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 +15 -7
- 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 +14 -3
- 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 +10 -4
- 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/qr-code.d.ts +42 -0
- package/dist/components/motion/qr-code.d.ts.map +1 -0
- package/dist/components/motion/qr-code.js +443 -0
- package/dist/components/motion/qr-code.js.map +1 -0
- 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/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 +3 -3
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/bubble.d.ts +1 -1
- package/dist/components/ui/button-group.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/field.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-C1Z_5vew.d.ts → context-Cyjsttyl.d.ts} +15 -4
- package/dist/context-Cyjsttyl.d.ts.map +1 -0
- package/dist/{context-CgRa89Bq.d.ts → context-D7eAawR3.d.ts} +12 -7
- package/dist/context-D7eAawR3.d.ts.map +1 -0
- package/dist/{context-BpHX6J1T.js → context-DDoVOc0D.js} +8 -25
- package/dist/context-DDoVOc0D.js.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/{copy-menu-BizTEv8v.js → copy-menu-Di77fZ9p.js} +6 -6
- package/dist/copy-menu-Di77fZ9p.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 +25 -5
- package/dist/hooks/use-dismiss.d.ts.map +1 -1
- package/dist/hooks/use-dismiss.js +39 -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-DByzjie0.js +290 -0
- package/dist/resource-row-DByzjie0.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-CJccRGy9.d.ts → tooltip-CwsBzl7m.d.ts} +12 -3
- package/dist/tooltip-CwsBzl7m.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-DuPE_3Gi.d.ts → tooltip-TdY1OH4j.d.ts} +9 -2
- package/dist/tooltip-TdY1OH4j.d.ts.map +1 -0
- package/dist/{tooltip-BUkacvMl.js → tooltip-eecPhLtC.js} +106 -48
- package/dist/tooltip-eecPhLtC.js.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 +23 -18
- 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,58 @@
|
|
|
1
|
+
// src/components/motion/date-range-picker/formats.ts
|
|
2
|
+
const cache = /* @__PURE__ */ new Map();
|
|
3
|
+
function buildFormats(locale) {
|
|
4
|
+
const format = (options) => new Intl.DateTimeFormat(locale, {
|
|
5
|
+
...options,
|
|
6
|
+
timeZone: "UTC"
|
|
7
|
+
});
|
|
8
|
+
const weekdayLong = format({ weekday: "long" });
|
|
9
|
+
const weekdayShort = format({ weekday: "short" });
|
|
10
|
+
return {
|
|
11
|
+
/** "March 2026": the grid heading. */
|
|
12
|
+
month: format({
|
|
13
|
+
month: "long",
|
|
14
|
+
year: "numeric"
|
|
15
|
+
}),
|
|
16
|
+
/** "March". */
|
|
17
|
+
monthName: format({ month: "long" }),
|
|
18
|
+
/** "Mar". */
|
|
19
|
+
shortMonthName: format({ month: "short" }),
|
|
20
|
+
/** "Tuesday, March 3, 2026": announced dates. */
|
|
21
|
+
date: format({
|
|
22
|
+
weekday: "long",
|
|
23
|
+
month: "long",
|
|
24
|
+
day: "numeric",
|
|
25
|
+
year: "numeric"
|
|
26
|
+
}),
|
|
27
|
+
/** "Mar 3, 2026". */
|
|
28
|
+
short: format({
|
|
29
|
+
month: "short",
|
|
30
|
+
day: "numeric",
|
|
31
|
+
year: "numeric"
|
|
32
|
+
}),
|
|
33
|
+
/** "Mar 3": a range start in the same year as its end. */
|
|
34
|
+
shortNoYear: format({
|
|
35
|
+
month: "short",
|
|
36
|
+
day: "numeric"
|
|
37
|
+
}),
|
|
38
|
+
/** Column headings, Sunday first (2026-01-04 was a Sunday). */
|
|
39
|
+
weekdays: Array.from({ length: 7 }, (_, index) => {
|
|
40
|
+
const day = Date.UTC(2026, 0, 4 + index);
|
|
41
|
+
return {
|
|
42
|
+
long: weekdayLong.format(day),
|
|
43
|
+
short: weekdayShort.format(day)
|
|
44
|
+
};
|
|
45
|
+
})
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function dateFormats(locale) {
|
|
49
|
+
let formats = cache.get(locale);
|
|
50
|
+
if (!formats) {
|
|
51
|
+
formats = buildFormats(locale);
|
|
52
|
+
cache.set(locale, formats);
|
|
53
|
+
}
|
|
54
|
+
return formats;
|
|
55
|
+
}
|
|
56
|
+
export { dateFormats as t };
|
|
57
|
+
|
|
58
|
+
//# sourceMappingURL=formats-ColrL9Eg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formats-ColrL9Eg.js","names":[],"sources":["../src/components/motion/date-range-picker/formats.ts"],"sourcesContent":["\"use client\";\n\nexport type DateFormats = ReturnType<typeof buildFormats>;\n\nconst cache = new Map<string, DateFormats>();\n\nfunction buildFormats(locale: string) {\n const format = (options: Intl.DateTimeFormatOptions) =>\n new Intl.DateTimeFormat(locale, { ...options, timeZone: \"UTC\" });\n const weekdayLong = format({ weekday: \"long\" });\n const weekdayShort = format({ weekday: \"short\" });\n return {\n /** \"March 2026\": the grid heading. */\n month: format({ month: \"long\", year: \"numeric\" }),\n /** \"March\". */\n monthName: format({ month: \"long\" }),\n /** \"Mar\". */\n shortMonthName: format({ month: \"short\" }),\n /** \"Tuesday, March 3, 2026\": announced dates. */\n date: format({ weekday: \"long\", month: \"long\", day: \"numeric\", year: \"numeric\" }),\n /** \"Mar 3, 2026\". */\n short: format({ month: \"short\", day: \"numeric\", year: \"numeric\" }),\n /** \"Mar 3\": a range start in the same year as its end. */\n shortNoYear: format({ month: \"short\", day: \"numeric\" }),\n /** Column headings, Sunday first (2026-01-04 was a Sunday). */\n weekdays: Array.from({ length: 7 }, (_, index) => {\n const day = Date.UTC(2026, 0, 4 + index);\n return { long: weekdayLong.format(day), short: weekdayShort.format(day) };\n }),\n };\n}\n\nexport function dateFormats(locale: string): DateFormats {\n let formats = cache.get(locale);\n if (!formats) {\n formats = buildFormats(locale);\n cache.set(locale, formats);\n }\n return formats;\n}\n"],"mappings":";AAIA,MAAM,wBAAQ,IAAI,IAAyB;AAE3C,SAAS,aAAa,QAAgB;CACpC,MAAM,UAAU,YACd,IAAI,KAAK,eAAe,QAAQ;EAAE,GAAG;EAAS,UAAU;CAAM,CAAC;CACjE,MAAM,cAAc,OAAO,EAAE,SAAS,OAAO,CAAC;CAC9C,MAAM,eAAe,OAAO,EAAE,SAAS,QAAQ,CAAC;CAChD,OAAO;;EAEL,OAAO,OAAO;GAAE,OAAO;GAAQ,MAAM;EAAU,CAAC;;EAEhD,WAAW,OAAO,EAAE,OAAO,OAAO,CAAC;;EAEnC,gBAAgB,OAAO,EAAE,OAAO,QAAQ,CAAC;;EAEzC,MAAM,OAAO;GAAE,SAAS;GAAQ,OAAO;GAAQ,KAAK;GAAW,MAAM;EAAU,CAAC;;EAEhF,OAAO,OAAO;GAAE,OAAO;GAAS,KAAK;GAAW,MAAM;EAAU,CAAC;;EAEjE,aAAa,OAAO;GAAE,OAAO;GAAS,KAAK;EAAU,CAAC;;EAEtD,UAAU,MAAM,KAAK,EAAE,QAAQ,EAAE,IAAI,GAAG,UAAU;GAChD,MAAM,MAAM,KAAK,IAAI,MAAM,GAAG,IAAI,KAAK;GACvC,OAAO;IAAE,MAAM,YAAY,OAAO,GAAG;IAAG,OAAO,aAAa,OAAO,GAAG;GAAE;EAC1E,CAAC;CACH;AACF;AAEA,SAAgB,YAAY,QAA6B;CACvD,IAAI,UAAU,MAAM,IAAI,MAAM;CAC9B,IAAI,CAAC,SAAS;EACZ,UAAU,aAAa,MAAM;EAC7B,MAAM,IAAI,QAAQ,OAAO;CAC3B;CACA,OAAO;AACT"}
|
|
@@ -30,14 +30,14 @@ declare const PRIMARY_TEXT = "text-[color:color-mix(in_oklab,var(--color-primary
|
|
|
30
30
|
declare function heat(multiplier: number): "hot" | "warm" | "cool";
|
|
31
31
|
declare const HEAT_TEXT: {
|
|
32
32
|
readonly cool: "text-foreground";
|
|
33
|
-
readonly warm: "text-
|
|
33
|
+
readonly warm: "text-emerald-700 dark:text-emerald-400";
|
|
34
34
|
readonly hot: "text-amber-700 dark:text-amber-400";
|
|
35
35
|
};
|
|
36
36
|
declare const HEAT_PILL: {
|
|
37
37
|
readonly cool: "bg-foreground/5 text-muted-foreground";
|
|
38
|
-
readonly warm: "bg-
|
|
38
|
+
readonly warm: "bg-emerald-500/15 text-emerald-700 dark:text-emerald-400";
|
|
39
39
|
readonly hot: "bg-amber-500/15 text-amber-700 dark:text-amber-400";
|
|
40
|
-
readonly jackpot: "bg-
|
|
40
|
+
readonly jackpot: "bg-rose-500/15 text-rose-700 dark:text-rose-400";
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
43
43
|
* A callback with one identity for the component's life that runs the latest
|
|
@@ -86,4 +86,4 @@ declare function GameEyebrow({ label, state, reduce, className }: {
|
|
|
86
86
|
className?: string;
|
|
87
87
|
}): import("react").JSX.Element;
|
|
88
88
|
export { heat as _, HEAT_PILL as a, PRIMARY_TEXT as c, SWAP as d, SoundToggle as f, formatShort as g, formatOdds as h, GameHistoryEntry as i, PULSE as l, formatMultiplier as m, GameEyebrow as n, HEAT_TEXT as o, floor2 as p, GameHistory as r, PRESS_GUARD as s, EXIT as t, SHAKE as u, useStable as v };
|
|
89
|
-
//# sourceMappingURL=game-parts-
|
|
89
|
+
//# sourceMappingURL=game-parts-B635BoSe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"game-parts-
|
|
1
|
+
{"version":3,"file":"game-parts-B635BoSe.d.ts","names":[],"sources":["../src/components/motion/casino/game-parts.tsx"],"mappings":"A,cAkBa;cAGA;;;;;cAEA;;;;cAEA;;;;cAEA;;;;;;;;;;cAOA;;;;;iBAOG,KAAK;cAMR;;;;;cAKA;;;;;;;;;;iBA8BG,UAAU,qBAAqB,GAAG,QAAQ,MAAM,MAAM,QAAC,MAKxC,MAAC;;iBAIhB,OAAO;;iBAKP,WAAW;;iBAKX,iBAAiB;;iBAKjB,YAAY;;cAKf,6BAAW,uBAAA,IAAA,UAAA;EAKtB;EACA;;EAEA;sBACD,IAAA;UAyBgB;EACf;EACA;;;cAIW,6BAAW,uBAAA,SAAA,QAAA,oBAAA,WAAA,YAAA;EAQtB,SAAS;EACT;;EAEA,QAAQ,+BAA+B;EACvC;;EAEA;EACA;sBACD,IAAA;;;;;iBA+Ce,cACd,OACA,OACA,QACA;EAEA;;EAEA;EACA;EACA;oBACD,IAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A value that is controlled when `value` is defined and uncontrolled
|
|
3
|
+
* otherwise. Returns the current value, a setter whose identity never changes,
|
|
4
|
+
* and the raw internal setter for callers that resolve state during render.
|
|
5
|
+
*
|
|
6
|
+
* The setter calls `onChange` only when the value actually changes, so a
|
|
7
|
+
* consumer is never told about a no-op.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useControllable<T>(value: T | undefined, defaultValue: T, onChange?: (next: T) => void): readonly [T, (next: T) => void, import("react").Dispatch<import("react").SetStateAction<T>>];
|
|
10
|
+
//# sourceMappingURL=use-controllable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-controllable.d.ts","names":[],"sources":["../../src/hooks/use-controllable.ts"],"mappings":";;;;;;;;wBAYgB,gBAAgB,GAC9B,OAAO,eACP,cAAc,GACd,YAAY,MAAM,uBAAU,IAAA,MAOG,4BAAC,yBAAA,eAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useCallback, useLayoutEffect, useRef, useState } from "react";
|
|
3
|
+
// src/hooks/use-controllable.ts
|
|
4
|
+
/**
|
|
5
|
+
* A value that is controlled when `value` is defined and uncontrolled
|
|
6
|
+
* otherwise. Returns the current value, a setter whose identity never changes,
|
|
7
|
+
* and the raw internal setter for callers that resolve state during render.
|
|
8
|
+
*
|
|
9
|
+
* The setter calls `onChange` only when the value actually changes, so a
|
|
10
|
+
* consumer is never told about a no-op.
|
|
11
|
+
*/
|
|
12
|
+
function useControllable(value, defaultValue, onChange) {
|
|
13
|
+
const [internal, setInternal] = useState(defaultValue);
|
|
14
|
+
const latest = useRef({
|
|
15
|
+
value,
|
|
16
|
+
internal,
|
|
17
|
+
onChange
|
|
18
|
+
});
|
|
19
|
+
useLayoutEffect(() => {
|
|
20
|
+
latest.current = {
|
|
21
|
+
value,
|
|
22
|
+
internal,
|
|
23
|
+
onChange
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
const set = useCallback((next) => {
|
|
27
|
+
const current = latest.current;
|
|
28
|
+
if (current.value === void 0) setInternal(next);
|
|
29
|
+
if ((current.value === void 0 ? current.internal : current.value) !== next) current.onChange?.(next);
|
|
30
|
+
}, []);
|
|
31
|
+
return [
|
|
32
|
+
value === void 0 ? internal : value,
|
|
33
|
+
set,
|
|
34
|
+
setInternal
|
|
35
|
+
];
|
|
36
|
+
}
|
|
37
|
+
export { useControllable };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=use-controllable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-controllable.js","names":[],"sources":["../../src/hooks/use-controllable.ts"],"sourcesContent":["\"use client\";\n\nimport { useCallback, useLayoutEffect, useRef, useState } from \"react\";\n\n/**\n * A value that is controlled when `value` is defined and uncontrolled\n * otherwise. Returns the current value, a setter whose identity never changes,\n * and the raw internal setter for callers that resolve state during render.\n *\n * The setter calls `onChange` only when the value actually changes, so a\n * consumer is never told about a no-op.\n */\nexport function useControllable<T>(\n value: T | undefined,\n defaultValue: T,\n onChange?: (next: T) => void,\n) {\n const [internal, setInternal] = useState(defaultValue);\n const latest = useRef({ value, internal, onChange });\n useLayoutEffect(() => {\n latest.current = { value, internal, onChange };\n });\n const set = useCallback((next: T) => {\n const current = latest.current;\n if (current.value === undefined) setInternal(next);\n if ((current.value === undefined ? current.internal : current.value) !== next)\n current.onChange?.(next);\n }, []);\n return [value === undefined ? internal : value, set, setInternal] as const;\n}\n"],"mappings":";;;;;;;;;;;AAYA,SAAgB,gBACd,OACA,cACA,UACA;CACA,MAAM,CAAC,UAAU,eAAe,SAAS,YAAY;CACrD,MAAM,SAAS,OAAO;EAAE;EAAO;EAAU;CAAS,CAAC;CACnD,sBAAsB;EACpB,OAAO,UAAU;GAAE;GAAO;GAAU;EAAS;CAC/C,CAAC;CACD,MAAM,MAAM,aAAa,SAAY;EACnC,MAAM,UAAU,OAAO;EACvB,IAAI,QAAQ,UAAU,KAAA,GAAW,YAAY,IAAI;EACjD,KAAK,QAAQ,UAAU,KAAA,IAAY,QAAQ,WAAW,QAAQ,WAAW,MACvE,QAAQ,WAAW,IAAI;CAC3B,GAAG,CAAC,CAAC;CACL,OAAO;EAAC,UAAU,KAAA,IAAY,WAAW;EAAO;EAAK;CAAW;AAClE"}
|
|
@@ -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,17 +5,32 @@ 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;
|
|
28
|
+
/**
|
|
29
|
+
* Element other overlays treat as part of this layer for outside presses
|
|
30
|
+
* and focus traps. When set, the layer uses this element alone.
|
|
31
|
+
* Default: the elements matched by `ref` and `ignore`.
|
|
32
|
+
*/
|
|
33
|
+
layerRef?: RefObject<HTMLElement | SVGElement | null>;
|
|
19
34
|
}
|
|
20
35
|
/**
|
|
21
36
|
* Close an open overlay on Escape or a pointerdown outside `ref`. Pass `null`
|
|
@@ -24,8 +39,13 @@ export interface DismissOptions {
|
|
|
24
39
|
*
|
|
25
40
|
* The pointerdown listener is capture-phase: a bubble-phase one is blinded by
|
|
26
41
|
* any handler in between that stops propagation, and an overlay cannot know
|
|
27
|
-
* what it is layered over.
|
|
28
|
-
*
|
|
42
|
+
* what it is layered over.
|
|
43
|
+
*
|
|
44
|
+
* Each open dismissal is a layer in `lib/layers.ts`, so only the innermost
|
|
45
|
+
* open overlay answers Escape (a menu inside a drawer closes, the drawer
|
|
46
|
+
* stays), and a drawer's focus trap leaves focus in a menu it portaled out.
|
|
47
|
+
* Pass `layerRef` when other overlays should recognize a different boundary.
|
|
48
|
+
* The hook still uses `ref` and `ignore` for its own dismissal checks.
|
|
29
49
|
*/
|
|
30
|
-
export declare function useDismiss(open: boolean, onDismiss: () => void, ref: RefObject<HTMLElement | SVGElement | null> | null, { behavior, escape: dismissOnEscape, ignore }?: DismissOptions): void;
|
|
50
|
+
export declare function useDismiss(open: boolean, onDismiss: (reason: DismissReason) => void, ref: RefObject<HTMLElement | SVGElement | null> | null, { behavior, escape: dismissOnEscape, focusOutside, outsidePress, ignore, layerRef }?: DismissOptions): void;
|
|
31
51
|
//# 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;;;;;;EAMlB,WAAW,UAAU,cAAc;;;;;;;;;;;;;;;;;wBAgDrB,WACd,eACA,YAAY,QAAQ,wBACpB,KAAK,UAAU,cAAc,6BAE3B,UACA,QAAQ,iBACR,cACA,cACA,QACA,aACC"}
|
|
@@ -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,62 @@ 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.
|
|
37
|
+
* Pass `layerRef` when other overlays should recognize a different boundary.
|
|
38
|
+
* The hook still uses `ref` and `ignore` for its own dismissal checks.
|
|
44
39
|
*/
|
|
45
|
-
function useDismiss(open, onDismiss, ref, { behavior = "pass-through", escape: dismissOnEscape = true, ignore } = {}) {
|
|
40
|
+
function useDismiss(open, onDismiss, ref, { behavior = "pass-through", escape: dismissOnEscape = true, focusOutside = false, outsidePress = true, ignore, layerRef } = {}) {
|
|
41
|
+
const dismissRef = useRef(onDismiss);
|
|
42
|
+
const ignoreRef = useRef(ignore);
|
|
43
|
+
useLayoutEffect(() => {
|
|
44
|
+
dismissRef.current = onDismiss;
|
|
45
|
+
ignoreRef.current = ignore;
|
|
46
|
+
});
|
|
46
47
|
useEffect(() => {
|
|
47
48
|
if (!open) return;
|
|
48
|
-
const inside = (target) => Boolean(ref?.current?.contains(target)) || Boolean(
|
|
49
|
+
const inside = (target) => Boolean(ref?.current?.contains(target)) || target instanceof Element && Boolean(ignoreRef.current?.(target));
|
|
50
|
+
const layer = {
|
|
51
|
+
contains: layerRef ? (target) => Boolean(layerRef.current?.contains(target)) : inside,
|
|
52
|
+
escape: dismissOnEscape
|
|
53
|
+
};
|
|
54
|
+
const closeLayer = openLayer(layer);
|
|
49
55
|
const onKey = (event) => {
|
|
50
|
-
if (dismissOnEscape
|
|
56
|
+
if (!dismissOnEscape || event.key !== "Escape" || !ownsEscape(layer, event)) return;
|
|
57
|
+
event.preventDefault();
|
|
58
|
+
dismissRef.current("escape");
|
|
51
59
|
};
|
|
52
60
|
const onPointer = (event) => {
|
|
53
61
|
const target = event.target;
|
|
54
62
|
if (!target || inside(target)) return;
|
|
55
|
-
if (
|
|
56
|
-
|
|
63
|
+
if (inLayerAbove(layer, target)) return;
|
|
64
|
+
if (behavior === "consume" && !inOtherLayer(layer, target, { traps: false })) consumeActivation(event);
|
|
65
|
+
dismissRef.current("pointer");
|
|
66
|
+
};
|
|
67
|
+
const onFocus = (event) => {
|
|
68
|
+
const target = event.target;
|
|
69
|
+
if (target instanceof Node && !inside(target)) dismissRef.current("focus");
|
|
57
70
|
};
|
|
58
|
-
openScopes.add(inside);
|
|
59
71
|
window.addEventListener("keydown", onKey);
|
|
60
|
-
window.addEventListener("pointerdown", onPointer, true);
|
|
72
|
+
if (outsidePress) window.addEventListener("pointerdown", onPointer, true);
|
|
73
|
+
if (focusOutside) window.addEventListener("focusin", onFocus);
|
|
61
74
|
return () => {
|
|
62
|
-
|
|
75
|
+
closeLayer();
|
|
63
76
|
window.removeEventListener("keydown", onKey);
|
|
64
77
|
window.removeEventListener("pointerdown", onPointer, true);
|
|
78
|
+
window.removeEventListener("focusin", onFocus);
|
|
65
79
|
};
|
|
66
80
|
}, [
|
|
67
81
|
open,
|
|
68
|
-
onDismiss,
|
|
69
82
|
ref,
|
|
70
83
|
behavior,
|
|
71
84
|
dismissOnEscape,
|
|
72
|
-
|
|
85
|
+
focusOutside,
|
|
86
|
+
outsidePress,
|
|
87
|
+
layerRef
|
|
73
88
|
]);
|
|
74
89
|
}
|
|
75
90
|
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 * Element other overlays treat as part of this layer for outside presses\n * and focus traps. When set, the layer uses this element alone.\n * Default: the elements matched by `ref` and `ignore`.\n */\n layerRef?: RefObject<HTMLElement | SVGElement | null>;\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 * Pass `layerRef` when other overlays should recognize a different boundary.\n * The hook still uses `ref` and `ignore` for its own dismissal checks.\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 layerRef,\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 = {\n contains: layerRef ? (target) => Boolean(layerRef.current?.contains(target)) : inside,\n escape: dismissOnEscape,\n };\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, layerRef]);\n}\n"],"mappings":";;;;AAmDA,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;;;;;;;;;;;;;;;;AAiBA,SAAgB,WACd,MACA,WACA,KACA,EACE,WAAW,gBACX,QAAQ,kBAAkB,MAC1B,eAAe,OACf,eAAe,MACf,QACA,aACkB,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;GACnB,UAAU,YAAY,WAAW,QAAQ,SAAS,SAAS,SAAS,MAAM,CAAC,IAAI;GAC/E,QAAQ;EACV;EACA,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;EAAc;CAAQ,CAAC;AACjF"}
|
|
@@ -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"}
|