@kumix/ui 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -47
- package/dist/animated-sidebar-CPdrqoGi.js +310 -0
- package/dist/animated-sidebar-CPdrqoGi.js.map +1 -0
- package/dist/animated-toast-stack-Cbdphi9x.d.ts +62 -0
- package/dist/animated-toast-stack-Cbdphi9x.d.ts.map +1 -0
- package/dist/animated-toast-stack-YcjQ2Uaw.js +568 -0
- package/dist/animated-toast-stack-YcjQ2Uaw.js.map +1 -0
- package/dist/components/agents/agent-activity/activity-row.d.ts +1 -1
- package/dist/components/agents/agent-activity/activity-row.d.ts.map +1 -1
- package/dist/components/agents/agent-activity/activity-row.js +31 -26
- package/dist/components/agents/agent-activity/activity-row.js.map +1 -1
- package/dist/components/agents/{agent-activity/index.d.ts → agent-activity.d.ts} +2 -2
- package/dist/components/agents/agent-activity.d.ts.map +1 -0
- package/dist/components/agents/{agent-activity/index.js → agent-activity.js} +13 -27
- package/dist/components/agents/agent-activity.js.map +1 -0
- package/dist/components/agents/agent-code.d.ts.map +1 -1
- package/dist/components/agents/agent-code.js +42 -16
- package/dist/components/agents/agent-code.js.map +1 -1
- package/dist/components/agents/agent-disclosure.d.ts +7 -2
- package/dist/components/agents/agent-disclosure.d.ts.map +1 -1
- package/dist/components/agents/agent-disclosure.js +15 -3
- package/dist/components/agents/agent-disclosure.js.map +1 -1
- package/dist/components/agents/ai-sidebar/marquee-label.d.ts +6 -0
- package/dist/components/agents/ai-sidebar/marquee-label.d.ts.map +1 -0
- package/dist/components/agents/ai-sidebar/marquee-label.js +55 -0
- package/dist/components/agents/ai-sidebar/marquee-label.js.map +1 -0
- package/dist/components/agents/ai-sidebar/resource-menu-action.d.ts +8 -0
- package/dist/components/agents/ai-sidebar/resource-menu-action.d.ts.map +1 -0
- package/dist/components/agents/ai-sidebar/resource-menu-action.js +20 -0
- package/dist/components/agents/ai-sidebar/resource-menu-action.js.map +1 -0
- package/dist/components/agents/ai-sidebar/resource-row.d.ts +32 -0
- package/dist/components/agents/ai-sidebar/resource-row.d.ts.map +1 -0
- package/dist/components/agents/ai-sidebar/resource-row.js +2 -0
- package/dist/components/agents/ai-sidebar.d.ts +2 -74
- package/dist/components/agents/ai-sidebar.d.ts.map +1 -1
- package/dist/components/agents/ai-sidebar.js +16 -332
- package/dist/components/agents/ai-sidebar.js.map +1 -1
- package/dist/components/agents/{approval-card/index.d.ts → approval-card.d.ts} +31 -1
- package/dist/components/agents/approval-card.d.ts.map +1 -0
- package/dist/components/agents/{approval-card/index.js → approval-card.js} +160 -80
- package/dist/components/agents/approval-card.js.map +1 -0
- package/dist/components/agents/chat-app.d.ts +1 -1
- package/dist/components/agents/chat-app.d.ts.map +1 -1
- package/dist/components/agents/chat-app.js +9 -6
- package/dist/components/agents/chat-app.js.map +1 -1
- package/dist/components/agents/citations.d.ts +24 -1
- package/dist/components/agents/citations.d.ts.map +1 -1
- package/dist/components/agents/citations.js +54 -9
- package/dist/components/agents/citations.js.map +1 -1
- package/dist/components/agents/clip-resize-frame.d.ts +31 -0
- package/dist/components/agents/clip-resize-frame.d.ts.map +1 -0
- package/dist/components/agents/clip-resize-frame.js +103 -0
- package/dist/components/agents/clip-resize-frame.js.map +1 -0
- package/dist/components/agents/code-block.d.ts +11 -0
- package/dist/components/agents/code-block.d.ts.map +1 -1
- package/dist/components/agents/code-block.js +34 -26
- package/dist/components/agents/code-block.js.map +1 -1
- package/dist/components/agents/context-meter.d.ts +53 -0
- package/dist/components/agents/context-meter.d.ts.map +1 -0
- package/dist/components/agents/context-meter.js +443 -0
- package/dist/components/agents/context-meter.js.map +1 -0
- package/dist/components/agents/file-diff.d.ts +17 -0
- package/dist/components/agents/file-diff.d.ts.map +1 -1
- package/dist/components/agents/file-diff.js +114 -82
- package/dist/components/agents/file-diff.js.map +1 -1
- package/dist/components/agents/icon-swap.d.ts +14 -0
- package/dist/components/agents/icon-swap.d.ts.map +1 -0
- package/dist/components/agents/icon-swap.js +41 -0
- package/dist/components/agents/icon-swap.js.map +1 -0
- package/dist/components/agents/image-generation.d.ts +10 -0
- package/dist/components/agents/image-generation.d.ts.map +1 -1
- package/dist/components/agents/image-generation.js +10 -6
- package/dist/components/agents/image-generation.js.map +1 -1
- package/dist/components/agents/loading-states/agent-progress.d.ts +1 -0
- package/dist/components/agents/loading-states/agent-progress.d.ts.map +1 -1
- package/dist/components/agents/loading-states/agent-progress.js.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.d.ts +1 -0
- package/dist/components/agents/loading-states/reasoning-text.d.ts.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.js +30 -7
- package/dist/components/agents/loading-states/reasoning-text.js.map +1 -1
- package/dist/components/agents/loading-states/thinking-shimmer.d.ts +1 -0
- package/dist/components/agents/loading-states/thinking-shimmer.d.ts.map +1 -1
- package/dist/components/agents/loading-states/thinking-shimmer.js.map +1 -1
- package/dist/components/agents/message-bubble.d.ts +10 -0
- package/dist/components/agents/message-bubble.d.ts.map +1 -1
- package/dist/components/agents/message-bubble.js +59 -39
- package/dist/components/agents/message-bubble.js.map +1 -1
- package/dist/components/agents/message-scroller.d.ts +10 -1
- package/dist/components/agents/message-scroller.d.ts.map +1 -1
- package/dist/components/agents/message-scroller.js +81 -16
- package/dist/components/agents/message-scroller.js.map +1 -1
- package/dist/components/agents/message.d.ts +3 -0
- package/dist/components/agents/message.d.ts.map +1 -1
- package/dist/components/agents/message.js +3 -3
- package/dist/components/agents/message.js.map +1 -1
- package/dist/components/agents/prompt-input.d.ts +41 -1
- package/dist/components/agents/prompt-input.d.ts.map +1 -1
- package/dist/components/agents/prompt-input.js +356 -93
- package/dist/components/agents/prompt-input.js.map +1 -1
- package/dist/components/agents/streaming-response.d.ts +12 -0
- package/dist/components/agents/streaming-response.d.ts.map +1 -1
- package/dist/components/agents/streaming-response.js +35 -28
- package/dist/components/agents/streaming-response.js.map +1 -1
- package/dist/components/agents/todo-list.d.ts +13 -0
- package/dist/components/agents/todo-list.d.ts.map +1 -1
- package/dist/components/agents/todo-list.js +114 -98
- package/dist/components/agents/todo-list.js.map +1 -1
- package/dist/components/agents/tool-approval.d.ts +18 -0
- package/dist/components/agents/tool-approval.d.ts.map +1 -1
- package/dist/components/agents/tool-approval.js +48 -22
- package/dist/components/agents/tool-approval.js.map +1 -1
- package/dist/components/agents/tool-result.d.ts +18 -0
- package/dist/components/agents/tool-result.d.ts.map +1 -1
- package/dist/components/agents/tool-result.js +48 -59
- package/dist/components/agents/tool-result.js.map +1 -1
- package/dist/components/agents/voice-note.d.ts +37 -0
- package/dist/components/agents/voice-note.d.ts.map +1 -0
- package/dist/components/agents/voice-note.js +326 -0
- package/dist/components/agents/voice-note.js.map +1 -0
- package/dist/components/charts/bar-chart/context.d.ts +12 -4
- package/dist/components/charts/bar-chart/context.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/context.js +3 -1
- package/dist/components/charts/bar-chart/context.js.map +1 -1
- package/dist/components/charts/bar-chart/legend.d.ts +1 -0
- package/dist/components/charts/bar-chart/legend.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/legend.js.map +1 -1
- package/dist/components/charts/bar-chart/plot.d.ts +2 -0
- package/dist/components/charts/bar-chart/plot.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/plot.js +2 -2
- package/dist/components/charts/bar-chart/plot.js.map +1 -1
- package/dist/components/charts/bar-chart/tooltip.d.ts +2 -0
- package/dist/components/charts/bar-chart/tooltip.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/tooltip.js +1 -1
- package/dist/components/charts/bar-chart/tooltip.js.map +1 -1
- package/dist/components/charts/bar-chart.d.ts +1 -1
- package/dist/components/charts/bump-chart/context.d.ts +1 -1
- package/dist/components/charts/bump-chart/context.js +1 -1
- package/dist/components/charts/bump-chart/legend.js +5 -5
- package/dist/components/charts/bump-chart/legend.js.map +1 -1
- package/dist/components/charts/bump-chart/plot.js +1 -1
- package/dist/components/charts/bump-chart/point.js +5 -5
- package/dist/components/charts/bump-chart/point.js.map +1 -1
- package/dist/components/charts/bump-chart/series.d.ts +1 -1
- package/dist/components/charts/bump-chart/series.js +2 -2
- package/dist/components/charts/bump-chart/series.js.map +1 -1
- package/dist/components/charts/bump-chart.d.ts +1 -1
- package/dist/components/charts/bump-chart.js +2 -2
- package/dist/components/charts/candlestick-chart/context.d.ts +11 -0
- package/dist/components/charts/candlestick-chart/context.d.ts.map +1 -1
- package/dist/components/charts/candlestick-chart/context.js.map +1 -1
- package/dist/components/charts/candlestick-chart/plot.js +2 -2
- package/dist/components/charts/candlestick-chart/plot.js.map +1 -1
- package/dist/components/charts/composition-chart/context.d.ts +1 -1
- package/dist/components/charts/composition-chart/legend.js +1 -1
- package/dist/components/charts/composition-chart/legend.js.map +1 -1
- package/dist/components/charts/composition-chart/plot.js +1 -1
- package/dist/components/charts/composition-chart.d.ts +1 -1
- package/dist/components/charts/donut-chart/center.d.ts +1 -1
- package/dist/components/charts/donut-chart/context.d.ts +6 -1
- package/dist/components/charts/donut-chart/context.d.ts.map +1 -1
- package/dist/components/charts/donut-chart/legend.d.ts +1 -1
- package/dist/components/charts/donut-chart.d.ts +1 -1
- package/dist/components/charts/funnel-chart.d.ts +8 -0
- package/dist/components/charts/funnel-chart.d.ts.map +1 -1
- package/dist/components/charts/funnel-chart.js +8 -8
- package/dist/components/charts/funnel-chart.js.map +1 -1
- package/dist/components/charts/heat-calendar/grid.js +2 -2
- package/dist/components/charts/heat-calendar/grid.js.map +1 -1
- package/dist/components/charts/heat-calendar/legend.js +1 -1
- package/dist/components/charts/heat-calendar/tooltip.d.ts +1 -1
- package/dist/components/charts/heat-calendar/tooltip.js +2 -2
- package/dist/components/charts/heat-calendar.d.ts +1 -1
- package/dist/components/charts/heat-calendar.js +1 -1
- package/dist/components/charts/line-chart/context.d.ts +12 -4
- package/dist/components/charts/line-chart/context.d.ts.map +1 -1
- package/dist/components/charts/line-chart/context.js +3 -1
- package/dist/components/charts/line-chart/context.js.map +1 -1
- package/dist/components/charts/line-chart/legend.d.ts +1 -0
- package/dist/components/charts/line-chart/legend.d.ts.map +1 -1
- package/dist/components/charts/line-chart/legend.js.map +1 -1
- package/dist/components/charts/line-chart/plot.d.ts +2 -0
- package/dist/components/charts/line-chart/plot.d.ts.map +1 -1
- package/dist/components/charts/line-chart/plot.js +3 -3
- package/dist/components/charts/line-chart/plot.js.map +1 -1
- package/dist/components/charts/line-chart/tooltip.d.ts +1 -0
- package/dist/components/charts/line-chart/tooltip.d.ts.map +1 -1
- package/dist/components/charts/line-chart/tooltip.js.map +1 -1
- package/dist/components/charts/line-chart.d.ts +1 -1
- package/dist/components/charts/liquidity-heatmap.d.ts +8 -0
- package/dist/components/charts/liquidity-heatmap.d.ts.map +1 -1
- package/dist/components/charts/liquidity-heatmap.js +4 -4
- package/dist/components/charts/liquidity-heatmap.js.map +1 -1
- package/dist/components/charts/order-book/depth-row.d.ts +1 -1
- package/dist/components/charts/order-book.d.ts +14 -2
- package/dist/components/charts/order-book.d.ts.map +1 -1
- package/dist/components/charts/order-book.js +6 -6
- package/dist/components/charts/order-book.js.map +1 -1
- package/dist/components/charts/price-target-fan/header.js +2 -2
- package/dist/components/charts/price-target-fan/header.js.map +1 -1
- package/dist/components/charts/price-target-fan/plot.js +1 -1
- package/dist/components/charts/price-target-fan/series.js +1 -1
- package/dist/components/charts/price-target-fan/tooltip.d.ts +1 -1
- package/dist/components/charts/price-target-fan/tooltip.js +3 -3
- package/dist/components/charts/price-target-fan/tooltip.js.map +1 -1
- package/dist/components/charts/price-target-fan.d.ts +1 -1
- package/dist/components/charts/price-target-fan.js +1 -1
- package/dist/components/charts/returns-calendar/grid.js +10 -7
- package/dist/components/charts/returns-calendar/grid.js.map +1 -1
- package/dist/components/charts/returns-calendar/tooltip.d.ts +1 -1
- package/dist/components/charts/returns-calendar/tooltip.js +2 -2
- package/dist/components/charts/returns-calendar/tooltip.js.map +1 -1
- package/dist/components/charts/returns-calendar.d.ts +1 -1
- package/dist/components/charts/returns-calendar.d.ts.map +1 -1
- package/dist/components/charts/returns-calendar.js +1 -1
- package/dist/components/charts/sankey-chart/context.d.ts +1 -1
- package/dist/components/charts/sankey-chart/context.js +1 -1
- package/dist/components/charts/sankey-chart/plot.d.ts.map +1 -1
- package/dist/components/charts/sankey-chart/plot.js +10 -32
- package/dist/components/charts/sankey-chart/plot.js.map +1 -1
- package/dist/components/charts/sankey-chart/tooltip.d.ts +3 -1
- package/dist/components/charts/sankey-chart/tooltip.d.ts.map +1 -1
- package/dist/components/charts/sankey-chart/tooltip.js +2 -2
- package/dist/components/charts/sankey-chart/tooltip.js.map +1 -1
- package/dist/components/charts/sankey-chart.d.ts +1 -1
- package/dist/components/charts/sankey-chart.js +1 -1
- package/dist/components/charts/sparkline.d.ts +4 -0
- package/dist/components/charts/sparkline.d.ts.map +1 -1
- package/dist/components/charts/sparkline.js +3 -3
- package/dist/components/charts/sparkline.js.map +1 -1
- package/dist/components/charts/status-bar/legend.d.ts +1 -0
- package/dist/components/charts/status-bar/legend.d.ts.map +1 -1
- package/dist/components/charts/status-bar/legend.js +1 -1
- package/dist/components/charts/status-bar/legend.js.map +1 -1
- package/dist/components/charts/status-bar/plot.d.ts +2 -0
- package/dist/components/charts/status-bar/plot.d.ts.map +1 -1
- package/dist/components/charts/status-bar/plot.js +1 -1
- package/dist/components/charts/status-bar/plot.js.map +1 -1
- package/dist/components/charts/status-bar/tooltip.d.ts +1 -1
- package/dist/components/charts/status-bar/tooltip.js +2 -2
- package/dist/components/charts/status-bar/tooltip.js.map +1 -1
- package/dist/components/charts/status-bar.d.ts +1 -1
- package/dist/components/charts/status-bar.js +1 -1
- package/dist/components/charts/treemap/legend.d.ts +2 -0
- package/dist/components/charts/treemap/legend.d.ts.map +1 -1
- package/dist/components/charts/treemap/legend.js +1 -1
- package/dist/components/charts/treemap/legend.js.map +1 -1
- package/dist/components/charts/treemap/plot.d.ts +2 -1
- package/dist/components/charts/treemap/plot.d.ts.map +1 -1
- package/dist/components/charts/treemap/plot.js +3 -16
- package/dist/components/charts/treemap/plot.js.map +1 -1
- package/dist/components/charts/treemap/tile.d.ts +1 -1
- package/dist/components/charts/treemap/tile.js +3 -3
- package/dist/components/charts/treemap/tile.js.map +1 -1
- package/dist/components/charts/treemap/tooltip.d.ts +3 -1
- package/dist/components/charts/treemap/tooltip.d.ts.map +1 -1
- package/dist/components/charts/treemap/tooltip.js +2 -2
- package/dist/components/charts/treemap/tooltip.js.map +1 -1
- package/dist/components/charts/treemap.d.ts +10 -4
- package/dist/components/charts/treemap.d.ts.map +1 -1
- package/dist/components/charts/treemap.js +1 -1
- package/dist/components/charts/volume-profile/plot.d.ts +2 -0
- package/dist/components/charts/volume-profile/plot.d.ts.map +1 -1
- package/dist/components/charts/volume-profile/plot.js +4 -4
- package/dist/components/charts/volume-profile/plot.js.map +1 -1
- package/dist/components/charts/volume-profile/summary.js +2 -2
- package/dist/components/charts/volume-profile/summary.js.map +1 -1
- package/dist/components/charts/volume-profile/tooltip.d.ts +1 -1
- package/dist/components/charts/volume-profile/tooltip.js +2 -2
- package/dist/components/charts/volume-profile/tooltip.js.map +1 -1
- package/dist/components/charts/volume-profile.d.ts +12 -3
- package/dist/components/charts/volume-profile.d.ts.map +1 -1
- package/dist/components/charts/volume-profile.js +2 -2
- package/dist/components/charts/volume-profile.js.map +1 -1
- package/dist/components/charts/xy/data-table.d.ts +1 -1
- package/dist/components/charts/xy/legend.d.ts +1 -1
- package/dist/components/custom/toast.d.ts +2 -1
- package/dist/components/custom/toast.d.ts.map +1 -1
- package/dist/components/custom/toast.js +1 -1
- package/dist/components/motion/action-swap.d.ts +19 -0
- package/dist/components/motion/action-swap.d.ts.map +1 -1
- package/dist/components/motion/action-swap.js.map +1 -1
- package/dist/components/motion/adaptive-stepper.d.ts +13 -0
- package/dist/components/motion/adaptive-stepper.d.ts.map +1 -1
- package/dist/components/motion/adaptive-stepper.js +2 -7
- package/dist/components/motion/adaptive-stepper.js.map +1 -1
- package/dist/components/motion/add-to-cart.d.ts +38 -0
- package/dist/components/motion/add-to-cart.d.ts.map +1 -0
- package/dist/components/motion/add-to-cart.js +228 -0
- package/dist/components/motion/add-to-cart.js.map +1 -0
- package/dist/components/motion/alert.d.ts +4 -0
- package/dist/components/motion/alert.d.ts.map +1 -1
- package/dist/components/motion/alert.js +2 -2
- package/dist/components/motion/alert.js.map +1 -1
- package/dist/components/motion/animated-badge.d.ts +6 -0
- package/dist/components/motion/animated-badge.d.ts.map +1 -1
- package/dist/components/motion/animated-badge.js +2 -2
- package/dist/components/motion/animated-badge.js.map +1 -1
- package/dist/components/motion/animated-number.d.ts +5 -0
- package/dist/components/motion/animated-number.d.ts.map +1 -1
- package/dist/components/motion/animated-number.js.map +1 -1
- package/dist/components/motion/animated-sidebar/menu-button.d.ts +2 -0
- package/dist/components/motion/animated-sidebar/menu-button.js +95 -0
- package/dist/components/motion/animated-sidebar/menu-button.js.map +1 -0
- package/dist/components/motion/animated-sidebar/menu-sub-button.d.ts +2 -0
- package/dist/components/motion/animated-sidebar/menu-sub-button.js +52 -0
- package/dist/components/motion/animated-sidebar/menu-sub-button.js.map +1 -0
- package/dist/components/motion/animated-sidebar/mobile-sidebar.d.ts +9 -0
- package/dist/components/motion/animated-sidebar/mobile-sidebar.d.ts.map +1 -0
- package/dist/components/motion/animated-sidebar/mobile-sidebar.js +73 -0
- package/dist/components/motion/animated-sidebar/mobile-sidebar.js.map +1 -0
- package/dist/components/motion/animated-sidebar.d.ts +17 -55
- package/dist/components/motion/animated-sidebar.d.ts.map +1 -1
- package/dist/components/motion/animated-sidebar.js +4 -628
- package/dist/components/motion/animated-toast-stack/toast-body.d.ts +19 -0
- package/dist/components/motion/animated-toast-stack/toast-body.d.ts.map +1 -0
- package/dist/components/motion/animated-toast-stack/toast-body.js +154 -0
- package/dist/components/motion/animated-toast-stack/toast-body.js.map +1 -0
- package/dist/components/motion/animated-toast-stack.d.ts +3 -69
- package/dist/components/motion/animated-toast-stack.js +1 -307
- package/dist/components/motion/arc-picker.js +1 -1
- package/dist/components/motion/arc-picker.js.map +1 -1
- package/dist/components/motion/aspect-ratio.d.ts +1 -0
- package/dist/components/motion/aspect-ratio.d.ts.map +1 -1
- package/dist/components/motion/aspect-ratio.js.map +1 -1
- package/dist/components/motion/attachment-upload/attachment-row.d.ts +20 -0
- package/dist/components/motion/attachment-upload/attachment-row.d.ts.map +1 -0
- package/dist/components/motion/attachment-upload/attachment-row.js +224 -0
- package/dist/components/motion/attachment-upload/attachment-row.js.map +1 -0
- package/dist/components/motion/attachment-upload/image-preview-dialog.d.ts +10 -0
- package/dist/components/motion/attachment-upload/image-preview-dialog.d.ts.map +1 -0
- package/dist/components/motion/attachment-upload/image-preview-dialog.js +84 -0
- package/dist/components/motion/attachment-upload/image-preview-dialog.js.map +1 -0
- package/dist/components/motion/attachment-upload/image-thumbnail.d.ts +10 -0
- package/dist/components/motion/attachment-upload/image-thumbnail.d.ts.map +1 -0
- package/dist/components/motion/attachment-upload/image-thumbnail.js +53 -0
- package/dist/components/motion/attachment-upload/image-thumbnail.js.map +1 -0
- package/dist/components/motion/attachment-upload/row-action.d.ts +11 -0
- package/dist/components/motion/attachment-upload/row-action.d.ts.map +1 -0
- package/dist/components/motion/attachment-upload/row-action.js +98 -0
- package/dist/components/motion/attachment-upload/row-action.js.map +1 -0
- package/dist/components/motion/attachment-upload.d.ts +22 -50
- package/dist/components/motion/attachment-upload.d.ts.map +1 -1
- package/dist/components/motion/attachment-upload.js +16 -492
- package/dist/components/motion/attachment-upload.js.map +1 -1
- package/dist/components/motion/availability-scheduler/copy-menu.js +1 -1
- package/dist/components/motion/availability-scheduler/day-row.js +2 -2
- package/dist/components/motion/availability-scheduler/day-row.js.map +1 -1
- package/dist/components/motion/availability-scheduler/icon-button.js +1 -1
- package/dist/components/motion/availability-scheduler/icon-button.js.map +1 -1
- package/dist/components/motion/{availability-scheduler/index.d.ts → availability-scheduler.d.ts} +7 -3
- package/dist/components/motion/availability-scheduler.d.ts.map +1 -0
- package/dist/components/motion/{availability-scheduler/index.js → availability-scheduler.js} +4 -4
- package/dist/components/motion/availability-scheduler.js.map +1 -0
- package/dist/components/motion/avatar-group.d.ts +10 -1
- package/dist/components/motion/avatar-group.d.ts.map +1 -1
- package/dist/components/motion/avatar-group.js +3 -3
- package/dist/components/motion/avatar-group.js.map +1 -1
- package/dist/components/motion/before-after-slider.d.ts +3 -0
- package/dist/components/motion/before-after-slider.d.ts.map +1 -1
- package/dist/components/motion/before-after-slider.js +2 -3
- package/dist/components/motion/before-after-slider.js.map +1 -1
- package/dist/components/motion/bloom-menu.d.ts +5 -0
- package/dist/components/motion/bloom-menu.d.ts.map +1 -1
- package/dist/components/motion/bloom-menu.js +10 -24
- package/dist/components/motion/bloom-menu.js.map +1 -1
- package/dist/components/motion/bookmark-button.d.ts +30 -0
- package/dist/components/motion/bookmark-button.d.ts.map +1 -0
- package/dist/components/motion/bookmark-button.js +107 -0
- package/dist/components/motion/bookmark-button.js.map +1 -0
- package/dist/components/motion/bookshelf.d.ts +7 -0
- package/dist/components/motion/bookshelf.d.ts.map +1 -1
- package/dist/components/motion/bookshelf.js +3 -3
- package/dist/components/motion/bookshelf.js.map +1 -1
- package/dist/components/motion/bottom-sheet.d.ts +6 -0
- package/dist/components/motion/bottom-sheet.d.ts.map +1 -1
- package/dist/components/motion/bottom-sheet.js +6 -30
- package/dist/components/motion/bottom-sheet.js.map +1 -1
- package/dist/components/motion/bounce-sidebar.d.ts +16 -0
- package/dist/components/motion/bounce-sidebar.d.ts.map +1 -1
- package/dist/components/motion/bounce-sidebar.js.map +1 -1
- package/dist/components/motion/bouncy-accordion.d.ts +20 -0
- package/dist/components/motion/bouncy-accordion.d.ts.map +1 -1
- package/dist/components/motion/bouncy-accordion.js +2 -2
- package/dist/components/motion/bouncy-accordion.js.map +1 -1
- package/dist/components/motion/breadcrumb.d.ts +2 -0
- package/dist/components/motion/breadcrumb.d.ts.map +1 -1
- package/dist/components/motion/breadcrumb.js +5 -6
- package/dist/components/motion/breadcrumb.js.map +1 -1
- package/dist/components/motion/button/base.d.ts +8 -0
- package/dist/components/motion/button/base.d.ts.map +1 -1
- package/dist/components/motion/button/base.js +15 -10
- package/dist/components/motion/button/base.js.map +1 -1
- package/dist/components/motion/button/metallic.d.ts.map +1 -1
- package/dist/components/motion/button/metallic.js +5 -4
- package/dist/components/motion/button/metallic.js.map +1 -1
- package/dist/components/motion/button/stateful.d.ts +5 -0
- package/dist/components/motion/button/stateful.d.ts.map +1 -1
- package/dist/components/motion/button/stateful.js +0 -1
- package/dist/components/motion/button/stateful.js.map +1 -1
- package/dist/components/motion/{button/index.d.ts → button.d.ts} +4 -4
- package/dist/components/motion/button.js +6 -0
- package/dist/components/motion/card-dealer.d.ts +2 -0
- package/dist/components/motion/card-dealer.d.ts.map +1 -1
- package/dist/components/motion/card-dealer.js +4 -4
- package/dist/components/motion/card-dealer.js.map +1 -1
- package/dist/components/motion/card-folder.d.ts +18 -0
- package/dist/components/motion/card-folder.d.ts.map +1 -1
- package/dist/components/motion/card-folder.js +9 -9
- package/dist/components/motion/card-folder.js.map +1 -1
- package/dist/components/motion/card.js +1 -1
- package/dist/components/motion/card.js.map +1 -1
- package/dist/components/motion/casino/game-parts.d.ts +1 -1
- package/dist/components/motion/casino/game-parts.js +5 -5
- package/dist/components/motion/casino/game-parts.js.map +1 -1
- package/dist/components/motion/center-morph-modal.d.ts +4 -0
- package/dist/components/motion/center-morph-modal.d.ts.map +1 -1
- package/dist/components/motion/center-morph-modal.js +64 -91
- package/dist/components/motion/center-morph-modal.js.map +1 -1
- package/dist/components/motion/checkbox.d.ts +8 -0
- package/dist/components/motion/checkbox.d.ts.map +1 -1
- package/dist/components/motion/checkbox.js.map +1 -1
- package/dist/components/motion/chromatic-text-reveal.js +3 -3
- package/dist/components/motion/chromatic-text-reveal.js.map +1 -1
- package/dist/components/motion/click-burst.d.ts +24 -0
- package/dist/components/motion/click-burst.d.ts.map +1 -0
- package/dist/components/motion/click-burst.js +133 -0
- package/dist/components/motion/click-burst.js.map +1 -0
- package/dist/components/motion/collapsible.d.ts +4 -0
- package/dist/components/motion/collapsible.d.ts.map +1 -1
- package/dist/components/motion/collapsible.js +1 -1
- package/dist/components/motion/collapsible.js.map +1 -1
- package/dist/components/motion/color-picker.d.ts +7 -21
- package/dist/components/motion/color-picker.d.ts.map +1 -1
- package/dist/components/motion/color-picker.js +7 -95
- package/dist/components/motion/color-picker.js.map +1 -1
- package/dist/components/motion/color-selector.d.ts +5 -0
- package/dist/components/motion/color-selector.d.ts.map +1 -1
- package/dist/components/motion/color-selector.js.map +1 -1
- package/dist/components/motion/combobox/content.d.ts +3 -10
- package/dist/components/motion/combobox/content.d.ts.map +1 -1
- package/dist/components/motion/combobox/content.js +14 -80
- package/dist/components/motion/combobox/content.js.map +1 -1
- package/dist/components/motion/combobox/context.d.ts +3 -2
- package/dist/components/motion/combobox/context.js +1 -1
- package/dist/components/motion/combobox/list.d.ts +12 -0
- package/dist/components/motion/combobox/list.d.ts.map +1 -1
- package/dist/components/motion/combobox/list.js +4 -4
- package/dist/components/motion/combobox/list.js.map +1 -1
- package/dist/components/motion/combobox/listbox-panel.d.ts +2 -0
- package/dist/components/motion/combobox/listbox-panel.js +99 -0
- package/dist/components/motion/combobox/listbox-panel.js.map +1 -0
- package/dist/components/motion/combobox/trigger.d.ts +5 -0
- package/dist/components/motion/combobox/trigger.d.ts.map +1 -1
- package/dist/components/motion/combobox/trigger.js +3 -2
- package/dist/components/motion/combobox/trigger.js.map +1 -1
- package/dist/components/motion/combobox.d.ts +1 -1
- package/dist/components/motion/combobox.js +1 -1
- package/dist/components/motion/command-palette.d.ts +29 -1
- package/dist/components/motion/command-palette.d.ts.map +1 -1
- package/dist/components/motion/command-palette.js +282 -124
- package/dist/components/motion/command-palette.js.map +1 -1
- package/dist/components/motion/confetti.d.ts +23 -0
- package/dist/components/motion/confetti.d.ts.map +1 -0
- package/dist/components/motion/confetti.js +154 -0
- package/dist/components/motion/confetti.js.map +1 -0
- package/dist/components/motion/context-menu.d.ts +25 -0
- package/dist/components/motion/context-menu.d.ts.map +1 -1
- package/dist/components/motion/context-menu.js +110 -112
- package/dist/components/motion/context-menu.js.map +1 -1
- package/dist/components/motion/copy-button.d.ts +27 -0
- package/dist/components/motion/copy-button.d.ts.map +1 -0
- package/dist/components/motion/copy-button.js +129 -0
- package/dist/components/motion/copy-button.js.map +1 -0
- package/dist/components/motion/crash/crash-balloon.d.ts +2 -2
- package/dist/components/motion/crash/crash-balloon.js +2 -2
- package/dist/components/motion/crash/crash-balloon.js.map +1 -1
- package/dist/components/motion/crash/crash-parts.d.ts +2 -2
- package/dist/components/motion/crash/crash-parts.js +1 -1
- package/dist/components/motion/crash/crash-tower.d.ts +2 -2
- package/dist/components/motion/crash/crash-tower.js +3 -3
- package/dist/components/motion/crash/crash-tower.js.map +1 -1
- package/dist/components/motion/crash.d.ts +2 -2
- package/dist/components/motion/crash.js +1 -1
- package/dist/components/motion/cylinder-carousel.d.ts +6 -3
- package/dist/components/motion/cylinder-carousel.d.ts.map +1 -1
- package/dist/components/motion/cylinder-carousel.js +1 -1
- package/dist/components/motion/cylinder-carousel.js.map +1 -1
- package/dist/components/motion/date-range-picker/calendar-choices.d.ts +18 -0
- package/dist/components/motion/date-range-picker/calendar-choices.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/calendar-choices.js +62 -0
- package/dist/components/motion/date-range-picker/calendar-choices.js.map +1 -0
- package/dist/components/motion/date-range-picker/calendar-presence.d.ts +5 -0
- package/dist/components/motion/date-range-picker/calendar-presence.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/calendar-presence.js +14 -0
- package/dist/components/motion/date-range-picker/calendar-presence.js.map +1 -0
- package/dist/components/motion/date-range-picker/calendar.d.ts +8 -0
- package/dist/components/motion/date-range-picker/calendar.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/calendar.js +46 -0
- package/dist/components/motion/date-range-picker/calendar.js.map +1 -0
- package/dist/components/motion/date-range-picker/clear.d.ts +4 -0
- package/dist/components/motion/date-range-picker/clear.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/clear.js +23 -0
- package/dist/components/motion/date-range-picker/clear.js.map +1 -0
- package/dist/components/motion/date-range-picker/content.d.ts +7 -0
- package/dist/components/motion/date-range-picker/content.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/content.js +36 -0
- package/dist/components/motion/date-range-picker/content.js.map +1 -0
- package/dist/components/motion/date-range-picker/dropdown.d.ts +12 -0
- package/dist/components/motion/date-range-picker/dropdown.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/dropdown.js +26 -0
- package/dist/components/motion/date-range-picker/dropdown.js.map +1 -0
- package/dist/components/motion/date-range-picker/footer.d.ts +4 -0
- package/dist/components/motion/date-range-picker/footer.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/footer.js +20 -0
- package/dist/components/motion/date-range-picker/footer.js.map +1 -0
- package/dist/components/motion/date-range-picker/grid.d.ts +4 -0
- package/dist/components/motion/date-range-picker/grid.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/grid.js +132 -0
- package/dist/components/motion/date-range-picker/grid.js.map +1 -0
- package/dist/components/motion/date-range-picker/header.d.ts +4 -0
- package/dist/components/motion/date-range-picker/header.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/header.js +85 -0
- package/dist/components/motion/date-range-picker/header.js.map +1 -0
- package/dist/components/motion/date-range-picker/preset.d.ts +10 -0
- package/dist/components/motion/date-range-picker/preset.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/preset.js +25 -0
- package/dist/components/motion/date-range-picker/preset.js.map +1 -0
- package/dist/components/motion/date-range-picker/presets.d.ts +4 -0
- package/dist/components/motion/date-range-picker/presets.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/presets.js +22 -0
- package/dist/components/motion/date-range-picker/presets.js.map +1 -0
- package/dist/components/motion/date-range-picker/root.d.ts +4 -0
- package/dist/components/motion/date-range-picker/root.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/root.js +3 -0
- package/dist/components/motion/date-range-picker/selection.d.ts +4 -0
- package/dist/components/motion/date-range-picker/selection.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/selection.js +17 -0
- package/dist/components/motion/date-range-picker/selection.js.map +1 -0
- package/dist/components/motion/date-range-picker/summary.d.ts +4 -0
- package/dist/components/motion/date-range-picker/summary.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/summary.js +40 -0
- package/dist/components/motion/date-range-picker/summary.js.map +1 -0
- package/dist/components/motion/date-range-picker/trigger.d.ts +7 -0
- package/dist/components/motion/date-range-picker/trigger.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/trigger.js +74 -0
- package/dist/components/motion/date-range-picker/trigger.js.map +1 -0
- package/dist/components/motion/date-range-picker.d.ts +16 -116
- package/dist/components/motion/date-range-picker.d.ts.map +1 -1
- package/dist/components/motion/date-range-picker.js +14 -922
- package/dist/components/motion/date-range-picker.js.map +1 -1
- package/dist/components/motion/delete-button.d.ts +31 -0
- package/dist/components/motion/delete-button.d.ts.map +1 -0
- package/dist/components/motion/delete-button.js +263 -0
- package/dist/components/motion/delete-button.js.map +1 -0
- package/dist/components/motion/digit-swap.d.ts +3 -0
- package/dist/components/motion/digit-swap.d.ts.map +1 -1
- package/dist/components/motion/digit-swap.js.map +1 -1
- package/dist/components/motion/dock.d.ts +4 -0
- package/dist/components/motion/dock.d.ts.map +1 -1
- package/dist/components/motion/dock.js +2 -2
- package/dist/components/motion/dock.js.map +1 -1
- package/dist/components/motion/download-button.d.ts +29 -0
- package/dist/components/motion/download-button.d.ts.map +1 -0
- package/dist/components/motion/download-button.js +305 -0
- package/dist/components/motion/download-button.js.map +1 -0
- package/dist/components/motion/drawer.d.ts +9 -1
- package/dist/components/motion/drawer.d.ts.map +1 -1
- package/dist/components/motion/drawer.js +65 -15
- package/dist/components/motion/drawer.js.map +1 -1
- package/dist/components/motion/dropdown-menu/item-base.d.ts +37 -0
- package/dist/components/motion/dropdown-menu/item-base.d.ts.map +1 -0
- package/dist/components/motion/dropdown-menu/item-base.js +78 -0
- package/dist/components/motion/dropdown-menu/item-base.js.map +1 -0
- package/dist/components/motion/dropdown-menu/menu-panel.d.ts +31 -0
- package/dist/components/motion/dropdown-menu/menu-panel.d.ts.map +1 -0
- package/dist/components/motion/dropdown-menu/menu-panel.js +201 -0
- package/dist/components/motion/dropdown-menu/menu-panel.js.map +1 -0
- package/dist/components/motion/dropdown-menu.d.ts +30 -18
- package/dist/components/motion/dropdown-menu.d.ts.map +1 -1
- package/dist/components/motion/dropdown-menu.js +113 -421
- package/dist/components/motion/dropdown-menu.js.map +1 -1
- package/dist/components/motion/dynamic-island.d.ts +2 -0
- package/dist/components/motion/dynamic-island.d.ts.map +1 -1
- package/dist/components/motion/dynamic-island.js.map +1 -1
- package/dist/components/motion/expandable-action-bar.d.ts +28 -0
- package/dist/components/motion/expandable-action-bar.d.ts.map +1 -1
- package/dist/components/motion/expandable-action-bar.js +5 -14
- package/dist/components/motion/expandable-action-bar.js.map +1 -1
- package/dist/components/motion/expandable-control.d.ts +14 -0
- package/dist/components/motion/expandable-control.d.ts.map +1 -1
- package/dist/components/motion/expandable-control.js +1 -1
- package/dist/components/motion/expandable-control.js.map +1 -1
- package/dist/components/motion/expandable-tabs.d.ts +16 -1
- package/dist/components/motion/expandable-tabs.d.ts.map +1 -1
- package/dist/components/motion/expandable-tabs.js +3 -15
- package/dist/components/motion/expandable-tabs.js.map +1 -1
- package/dist/components/motion/expanding-arrow-button.d.ts +2 -0
- package/dist/components/motion/expanding-arrow-button.d.ts.map +1 -1
- package/dist/components/motion/expanding-arrow-button.js +3 -3
- package/dist/components/motion/expanding-arrow-button.js.map +1 -1
- package/dist/components/motion/feedback-widget.d.ts +6 -0
- package/dist/components/motion/feedback-widget.d.ts.map +1 -1
- package/dist/components/motion/feedback-widget.js +13 -29
- package/dist/components/motion/feedback-widget.js.map +1 -1
- package/dist/components/motion/file-tree.d.ts +24 -0
- package/dist/components/motion/file-tree.d.ts.map +1 -1
- package/dist/components/motion/file-tree.js +4 -4
- package/dist/components/motion/file-tree.js.map +1 -1
- package/dist/components/motion/file-upload.d.ts +34 -0
- package/dist/components/motion/file-upload.d.ts.map +1 -1
- package/dist/components/motion/file-upload.js +26 -17
- package/dist/components/motion/file-upload.js.map +1 -1
- package/dist/components/motion/follow-button.d.ts +31 -0
- package/dist/components/motion/follow-button.d.ts.map +1 -0
- package/dist/components/motion/follow-button.js +184 -0
- package/dist/components/motion/follow-button.js.map +1 -0
- package/dist/components/motion/hold-action-button.d.ts +7 -0
- package/dist/components/motion/hold-action-button.d.ts.map +1 -1
- package/dist/components/motion/hold-action-button.js +1 -1
- package/dist/components/motion/hold-action-button.js.map +1 -1
- package/dist/components/motion/infinite-masonry.d.ts +22 -0
- package/dist/components/motion/infinite-masonry.d.ts.map +1 -1
- package/dist/components/motion/infinite-masonry.js.map +1 -1
- package/dist/components/motion/input.d.ts +17 -0
- package/dist/components/motion/input.d.ts.map +1 -1
- package/dist/components/motion/input.js +2 -1
- package/dist/components/motion/input.js.map +1 -1
- package/dist/components/motion/knockout-bracket.d.ts +11 -4
- package/dist/components/motion/knockout-bracket.d.ts.map +1 -1
- package/dist/components/motion/knockout-bracket.js +30 -21
- package/dist/components/motion/knockout-bracket.js.map +1 -1
- package/dist/components/motion/knockout-wheel.d.ts +9 -3
- package/dist/components/motion/knockout-wheel.d.ts.map +1 -1
- package/dist/components/motion/knockout-wheel.js +5 -5
- package/dist/components/motion/knockout-wheel.js.map +1 -1
- package/dist/components/motion/like-button.d.ts +26 -0
- package/dist/components/motion/like-button.d.ts.map +1 -0
- package/dist/components/motion/like-button.js +128 -0
- package/dist/components/motion/like-button.js.map +1 -0
- package/dist/components/motion/loader.d.ts +1 -0
- package/dist/components/motion/loader.d.ts.map +1 -1
- package/dist/components/motion/loader.js.map +1 -1
- package/dist/components/motion/lock-toggle.d.ts +29 -0
- package/dist/components/motion/lock-toggle.d.ts.map +1 -0
- package/dist/components/motion/lock-toggle.js +252 -0
- package/dist/components/motion/lock-toggle.js.map +1 -0
- package/dist/components/motion/marquee.d.ts +6 -0
- package/dist/components/motion/marquee.d.ts.map +1 -1
- package/dist/components/motion/marquee.js.map +1 -1
- package/dist/components/motion/menu/menu-item-highlight.d.ts +16 -0
- package/dist/components/motion/menu/menu-item-highlight.d.ts.map +1 -0
- package/dist/components/motion/menu/menu-item-highlight.js +20 -0
- package/dist/components/motion/menu/menu-item-highlight.js.map +1 -0
- package/dist/components/motion/message-status.d.ts +26 -0
- package/dist/components/motion/message-status.d.ts.map +1 -0
- package/dist/components/motion/message-status.js +198 -0
- package/dist/components/motion/message-status.js.map +1 -0
- package/dist/components/motion/mines.d.ts +2 -1
- package/dist/components/motion/mines.d.ts.map +1 -1
- package/dist/components/motion/mines.js +3 -3
- package/dist/components/motion/mines.js.map +1 -1
- package/dist/components/motion/morphing-lightbox.d.ts +16 -0
- package/dist/components/motion/morphing-lightbox.d.ts.map +1 -1
- package/dist/components/motion/morphing-lightbox.js +3 -3
- package/dist/components/motion/morphing-lightbox.js.map +1 -1
- package/dist/components/motion/morphing-modal.d.ts +2 -0
- package/dist/components/motion/morphing-modal.d.ts.map +1 -1
- package/dist/components/motion/morphing-modal.js +14 -13
- package/dist/components/motion/morphing-modal.js.map +1 -1
- package/dist/components/motion/morphing-search-chips.d.ts +12 -0
- package/dist/components/motion/morphing-search-chips.d.ts.map +1 -1
- package/dist/components/motion/morphing-search-chips.js +6 -16
- package/dist/components/motion/morphing-search-chips.js.map +1 -1
- package/dist/components/motion/morphing-search.d.ts +16 -0
- package/dist/components/motion/morphing-search.d.ts.map +1 -1
- package/dist/components/motion/morphing-search.js +9 -13
- package/dist/components/motion/morphing-search.js.map +1 -1
- package/dist/components/motion/morphing-tabs.d.ts +20 -0
- package/dist/components/motion/morphing-tabs.d.ts.map +1 -1
- package/dist/components/motion/morphing-tabs.js.map +1 -1
- package/dist/components/motion/multi-select/content.d.ts +3 -10
- package/dist/components/motion/multi-select/content.d.ts.map +1 -1
- package/dist/components/motion/multi-select/content.js +14 -80
- package/dist/components/motion/multi-select/content.js.map +1 -1
- package/dist/components/motion/multi-select/context.d.ts +2 -2
- package/dist/components/motion/multi-select/context.js +1 -1
- package/dist/components/motion/multi-select/list.d.ts +12 -0
- package/dist/components/motion/multi-select/list.d.ts.map +1 -1
- package/dist/components/motion/multi-select/list.js +5 -5
- package/dist/components/motion/multi-select/list.js.map +1 -1
- package/dist/components/motion/multi-select/trigger.d.ts +6 -0
- package/dist/components/motion/multi-select/trigger.d.ts.map +1 -1
- package/dist/components/motion/multi-select/trigger.js +5 -4
- package/dist/components/motion/multi-select/trigger.js.map +1 -1
- package/dist/components/motion/{multi-select/index.d.ts → multi-select.d.ts} +4 -4
- package/dist/components/motion/{multi-select/index.js → multi-select.js} +4 -4
- package/dist/components/motion/mute-toggle.d.ts +25 -0
- package/dist/components/motion/mute-toggle.d.ts.map +1 -0
- package/dist/components/motion/mute-toggle.js +221 -0
- package/dist/components/motion/mute-toggle.js.map +1 -0
- package/dist/components/motion/not-found/glitch.js +2 -2
- package/dist/components/motion/not-found/glitch.js.map +1 -1
- package/dist/components/motion/not-found/magnetic.js +2 -2
- package/dist/components/motion/not-found/magnetic.js.map +1 -1
- package/dist/components/motion/not-found/shared.d.ts +7 -0
- package/dist/components/motion/not-found/shared.d.ts.map +1 -1
- package/dist/components/motion/not-found/shared.js.map +1 -1
- package/dist/components/motion/not-found/spotlight.js +4 -4
- package/dist/components/motion/not-found/spotlight.js.map +1 -1
- package/dist/components/motion/not-found/stacked.js +2 -2
- package/dist/components/motion/not-found/stacked.js.map +1 -1
- package/dist/components/motion/not-found/terminal.d.ts.map +1 -1
- package/dist/components/motion/not-found/terminal.js +1 -1
- package/dist/components/motion/not-found/terminal.js.map +1 -1
- package/dist/components/motion/notification-bell.d.ts +29 -0
- package/dist/components/motion/notification-bell.d.ts.map +1 -0
- package/dist/components/motion/notification-bell.js +274 -0
- package/dist/components/motion/notification-bell.js.map +1 -0
- package/dist/components/motion/notification-stack.d.ts +23 -0
- package/dist/components/motion/notification-stack.d.ts.map +1 -1
- package/dist/components/motion/notification-stack.js.map +1 -1
- package/dist/components/motion/number-ticker.d.ts +6 -1
- package/dist/components/motion/number-ticker.d.ts.map +1 -1
- package/dist/components/motion/number-ticker.js.map +1 -1
- package/dist/components/motion/otp-input.d.ts +6 -0
- package/dist/components/motion/otp-input.d.ts.map +1 -1
- package/dist/components/motion/otp-input.js +3 -7
- package/dist/components/motion/otp-input.js.map +1 -1
- package/dist/components/motion/overflow-actions.d.ts +26 -0
- package/dist/components/motion/overflow-actions.d.ts.map +1 -1
- package/dist/components/motion/overflow-actions.js.map +1 -1
- package/dist/components/motion/pagination.d.ts +4 -0
- package/dist/components/motion/pagination.d.ts.map +1 -1
- package/dist/components/motion/pagination.js +2 -2
- package/dist/components/motion/pagination.js.map +1 -1
- package/dist/components/motion/parallax.d.ts +2 -0
- package/dist/components/motion/parallax.d.ts.map +1 -1
- package/dist/components/motion/parallax.js.map +1 -1
- package/dist/components/motion/plinko.d.ts +1 -0
- package/dist/components/motion/plinko.d.ts.map +1 -1
- package/dist/components/motion/plinko.js +2 -2
- package/dist/components/motion/plinko.js.map +1 -1
- package/dist/components/motion/poll-vote.d.ts +39 -0
- package/dist/components/motion/poll-vote.d.ts.map +1 -0
- package/dist/components/motion/poll-vote.js +209 -0
- package/dist/components/motion/poll-vote.js.map +1 -0
- package/dist/components/motion/popover-morph.d.ts +2 -50
- package/dist/components/motion/popover-morph.js +4 -24
- package/dist/components/motion/popover-morph.js.map +1 -1
- package/dist/components/motion/popover.d.ts +5 -2
- package/dist/components/motion/popover.d.ts.map +1 -1
- package/dist/components/motion/popover.js +151 -99
- package/dist/components/motion/popover.js.map +1 -1
- package/dist/components/motion/prediction-market-card.d.ts +15 -0
- package/dist/components/motion/prediction-market-card.d.ts.map +1 -1
- package/dist/components/motion/prediction-market-card.js +8 -8
- package/dist/components/motion/prediction-market-card.js.map +1 -1
- package/dist/components/motion/prediction-market.d.ts +34 -0
- package/dist/components/motion/prediction-market.d.ts.map +1 -1
- package/dist/components/motion/prediction-market.js +10 -10
- package/dist/components/motion/prediction-market.js.map +1 -1
- package/dist/components/motion/preview-rail.d.ts +23 -0
- package/dist/components/motion/preview-rail.d.ts.map +1 -1
- package/dist/components/motion/preview-rail.js.map +1 -1
- package/dist/components/motion/project-folder.d.ts +16 -0
- package/dist/components/motion/project-folder.d.ts.map +1 -1
- package/dist/components/motion/project-folder.js +10 -40
- package/dist/components/motion/project-folder.js.map +1 -1
- package/dist/components/motion/pull-to-refresh.d.ts +8 -0
- package/dist/components/motion/pull-to-refresh.d.ts.map +1 -1
- package/dist/components/motion/pull-to-refresh.js +1 -1
- package/dist/components/motion/pull-to-refresh.js.map +1 -1
- package/dist/components/motion/radio.d.ts +10 -0
- package/dist/components/motion/radio.d.ts.map +1 -1
- package/dist/components/motion/radio.js.map +1 -1
- package/dist/components/motion/range-slider-bubble.d.ts +1 -0
- package/dist/components/motion/range-slider-bubble.d.ts.map +1 -1
- package/dist/components/motion/range-slider-bubble.js +4 -4
- package/dist/components/motion/range-slider-bubble.js.map +1 -1
- package/dist/components/motion/range-slider-fluid.d.ts +1 -0
- package/dist/components/motion/range-slider-fluid.d.ts.map +1 -1
- package/dist/components/motion/range-slider-fluid.js +2 -2
- package/dist/components/motion/range-slider-fluid.js.map +1 -1
- package/dist/components/motion/range-slider-inline.d.ts +1 -0
- package/dist/components/motion/range-slider-inline.d.ts.map +1 -1
- package/dist/components/motion/range-slider-inline.js +1 -1
- package/dist/components/motion/range-slider-inline.js.map +1 -1
- package/dist/components/motion/range-slider-ruler.d.ts +1 -0
- package/dist/components/motion/range-slider-ruler.d.ts.map +1 -1
- package/dist/components/motion/range-slider-ruler.js +3 -3
- package/dist/components/motion/range-slider-ruler.js.map +1 -1
- package/dist/components/motion/range-slider-wave.d.ts +1 -0
- package/dist/components/motion/range-slider-wave.d.ts.map +1 -1
- package/dist/components/motion/range-slider-wave.js +3 -3
- package/dist/components/motion/range-slider-wave.js.map +1 -1
- package/dist/components/motion/range-slider.d.ts +1 -0
- package/dist/components/motion/range-slider.d.ts.map +1 -1
- package/dist/components/motion/range-slider.js +2 -2
- package/dist/components/motion/range-slider.js.map +1 -1
- package/dist/components/motion/reaction-picker.d.ts +50 -0
- package/dist/components/motion/reaction-picker.d.ts.map +1 -0
- package/dist/components/motion/reaction-picker.js +516 -0
- package/dist/components/motion/reaction-picker.js.map +1 -0
- package/dist/components/motion/refresh-button.d.ts +24 -0
- package/dist/components/motion/refresh-button.d.ts.map +1 -0
- package/dist/components/motion/refresh-button.js +267 -0
- package/dist/components/motion/refresh-button.js.map +1 -0
- package/dist/components/motion/scroll-progress.d.ts +2 -0
- package/dist/components/motion/scroll-progress.d.ts.map +1 -1
- package/dist/components/motion/scroll-progress.js +1 -1
- package/dist/components/motion/scroll-progress.js.map +1 -1
- package/dist/components/motion/scroll-reveal.d.ts +2 -0
- package/dist/components/motion/scroll-reveal.d.ts.map +1 -1
- package/dist/components/motion/scroll-reveal.js.map +1 -1
- package/dist/components/motion/scroll-to.d.ts +2 -1
- package/dist/components/motion/scroll-to.d.ts.map +1 -1
- package/dist/components/motion/scroll-to.js +1 -1
- package/dist/components/motion/scroll-to.js.map +1 -1
- package/dist/components/motion/select-morph.d.ts +16 -2
- package/dist/components/motion/select-morph.d.ts.map +1 -1
- package/dist/components/motion/select-morph.js +148 -85
- package/dist/components/motion/select-morph.js.map +1 -1
- package/dist/components/motion/select.d.ts +16 -2
- package/dist/components/motion/select.d.ts.map +1 -1
- package/dist/components/motion/select.js +150 -61
- package/dist/components/motion/select.js.map +1 -1
- package/dist/components/motion/send-button.d.ts +23 -0
- package/dist/components/motion/send-button.d.ts.map +1 -0
- package/dist/components/motion/send-button.js +273 -0
- package/dist/components/motion/send-button.js.map +1 -0
- package/dist/components/motion/share-button.d.ts +45 -0
- package/dist/components/motion/share-button.d.ts.map +1 -0
- package/dist/components/motion/share-button.js +324 -0
- package/dist/components/motion/share-button.js.map +1 -0
- package/dist/components/motion/signup-form.d.ts +24 -2
- package/dist/components/motion/signup-form.d.ts.map +1 -1
- package/dist/components/motion/signup-form.js +3 -3
- package/dist/components/motion/signup-form.js.map +1 -1
- package/dist/components/motion/slide-action-button.d.ts +6 -0
- package/dist/components/motion/slide-action-button.d.ts.map +1 -1
- package/dist/components/motion/slide-action-button.js.map +1 -1
- package/dist/components/motion/slide-game.d.ts +2 -1
- package/dist/components/motion/slide-game.d.ts.map +1 -1
- package/dist/components/motion/slide-game.js +9 -9
- package/dist/components/motion/slide-game.js.map +1 -1
- package/dist/components/motion/smooth-scroll.d.ts +3 -1
- package/dist/components/motion/smooth-scroll.d.ts.map +1 -1
- package/dist/components/motion/smooth-scroll.js.map +1 -1
- package/dist/components/motion/sortable-list.d.ts +8 -0
- package/dist/components/motion/sortable-list.d.ts.map +1 -1
- package/dist/components/motion/sortable-list.js +2 -2
- package/dist/components/motion/sortable-list.js.map +1 -1
- package/dist/components/motion/star-rating.d.ts +35 -0
- package/dist/components/motion/star-rating.d.ts.map +1 -0
- package/dist/components/motion/star-rating.js +253 -0
- package/dist/components/motion/star-rating.js.map +1 -0
- package/dist/components/motion/status-icon.d.ts +31 -0
- package/dist/components/motion/status-icon.d.ts.map +1 -0
- package/dist/components/motion/status-icon.js +259 -0
- package/dist/components/motion/status-icon.js.map +1 -0
- package/dist/components/motion/swap/controls.d.ts +1 -1
- package/dist/components/motion/swap/controls.d.ts.map +1 -1
- package/dist/components/motion/swap/controls.js +20 -20
- package/dist/components/motion/swap/controls.js.map +1 -1
- package/dist/components/motion/swap/field.d.ts +1 -1
- package/dist/components/motion/swap/field.js +8 -7
- package/dist/components/motion/swap/field.js.map +1 -1
- package/dist/components/motion/swap/quote-row.d.ts +1 -1
- package/dist/components/motion/swap/quote-row.js +1 -1
- package/dist/components/motion/swap/quote-row.js.map +1 -1
- package/dist/components/motion/swap/token-badges.d.ts +1 -1
- package/dist/components/motion/swap/token-badges.js +5 -6
- package/dist/components/motion/swap/token-badges.js.map +1 -1
- package/dist/components/motion/swap/token-picker.d.ts +1 -1
- package/dist/components/motion/swap/token-picker.d.ts.map +1 -1
- package/dist/components/motion/swap/token-picker.js +21 -18
- package/dist/components/motion/swap/token-picker.js.map +1 -1
- package/dist/components/motion/swap.d.ts +7 -2
- package/dist/components/motion/swap.d.ts.map +1 -1
- package/dist/components/motion/swap.js +1 -1
- package/dist/components/motion/swap.js.map +1 -1
- package/dist/components/motion/swipeable-list.d.ts +38 -0
- package/dist/components/motion/swipeable-list.d.ts.map +1 -1
- package/dist/components/motion/swipeable-list.js.map +1 -1
- package/dist/components/motion/switch.d.ts +9 -1
- package/dist/components/motion/switch.d.ts.map +1 -1
- package/dist/components/motion/switch.js +11 -2
- package/dist/components/motion/switch.js.map +1 -1
- package/dist/components/motion/table/skeleton-rows.d.ts +1 -1
- package/dist/components/motion/table/table-header.d.ts +1 -1
- package/dist/components/motion/table/table-menu.d.ts.map +1 -1
- package/dist/components/motion/table/table-menu.js +15 -15
- package/dist/components/motion/table/table-menu.js.map +1 -1
- package/dist/components/motion/{table/index.d.ts → table.d.ts} +3 -3
- package/dist/components/motion/table.d.ts.map +1 -0
- package/dist/components/motion/{table/index.js → table.js} +10 -10
- package/dist/components/motion/table.js.map +1 -0
- package/dist/components/motion/tabs.d.ts +16 -4
- package/dist/components/motion/tabs.d.ts.map +1 -1
- package/dist/components/motion/tabs.js +23 -10
- package/dist/components/motion/tabs.js.map +1 -1
- package/dist/components/motion/text-cascade.d.ts +2 -1
- package/dist/components/motion/text-cascade.d.ts.map +1 -1
- package/dist/components/motion/text-cascade.js +1 -1
- package/dist/components/motion/text-cascade.js.map +1 -1
- package/dist/components/motion/text-morph.d.ts +16 -0
- package/dist/components/motion/text-morph.d.ts.map +1 -0
- package/dist/components/motion/text-morph.js +239 -0
- package/dist/components/motion/text-morph.js.map +1 -0
- package/dist/components/motion/text-reveal.d.ts +11 -0
- package/dist/components/motion/text-reveal.d.ts.map +1 -1
- package/dist/components/motion/text-reveal.js +1 -1
- package/dist/components/motion/text-reveal.js.map +1 -1
- package/dist/components/motion/text-scramble.d.ts +2 -0
- package/dist/components/motion/text-scramble.d.ts.map +1 -1
- package/dist/components/motion/text-scramble.js.map +1 -1
- package/dist/components/motion/text-shimmer.d.ts +3 -0
- package/dist/components/motion/text-shimmer.d.ts.map +1 -1
- package/dist/components/motion/text-shimmer.js.map +1 -1
- package/dist/components/motion/theme-toggle.d.ts +3 -0
- package/dist/components/motion/theme-toggle.d.ts.map +1 -1
- package/dist/components/motion/theme-toggle.js +4 -3
- package/dist/components/motion/theme-toggle.js.map +1 -1
- package/dist/components/motion/tilt-card.d.ts +3 -0
- package/dist/components/motion/tilt-card.d.ts.map +1 -1
- package/dist/components/motion/tilt-card.js.map +1 -1
- package/dist/components/motion/timeline.d.ts +7 -0
- package/dist/components/motion/timeline.d.ts.map +1 -1
- package/dist/components/motion/timeline.js.map +1 -1
- package/dist/components/motion/tooltip/positioner.d.ts +1 -1
- package/dist/components/motion/tooltip/positioner.js +1 -1
- package/dist/components/motion/tooltip-surface.d.ts +6 -1
- package/dist/components/motion/tooltip-surface.d.ts.map +1 -1
- package/dist/components/motion/tooltip-surface.js +34 -24
- package/dist/components/motion/tooltip-surface.js.map +1 -1
- package/dist/components/motion/tooltip.d.ts +7 -1
- package/dist/components/motion/tooltip.d.ts.map +1 -1
- package/dist/components/motion/tooltip.js +1 -1
- package/dist/components/motion/upvote-button.d.ts +30 -0
- package/dist/components/motion/upvote-button.d.ts.map +1 -0
- package/dist/components/motion/upvote-button.js +144 -0
- package/dist/components/motion/upvote-button.js.map +1 -0
- package/dist/components/motion/wallet-card/account-avatar.d.ts +1 -1
- package/dist/components/motion/wallet-card/account-switcher.d.ts +2 -2
- package/dist/components/motion/wallet-card/account-switcher.js +7 -7
- package/dist/components/motion/wallet-card/account-switcher.js.map +1 -1
- package/dist/components/motion/wallet-card/balance-delta.js +1 -1
- package/dist/components/motion/wallet-card/balance-delta.js.map +1 -1
- package/dist/components/motion/wallet-card/copy-button.js +1 -1
- package/dist/components/motion/wallet-card/copy-button.js.map +1 -1
- package/dist/components/motion/wallet-card/search-bar.d.ts +1 -1
- package/dist/components/motion/wallet-card/search-bar.js +8 -8
- package/dist/components/motion/wallet-card/search-bar.js.map +1 -1
- package/dist/components/motion/{wallet-card/index.d.ts → wallet-card.d.ts} +4 -4
- package/dist/components/motion/wallet-card.d.ts.map +1 -0
- package/dist/components/motion/{wallet-card/index.js → wallet-card.js} +11 -11
- package/dist/components/motion/wallet-card.js.map +1 -0
- package/dist/components/motion/wave-reveal.d.ts +25 -0
- package/dist/components/motion/wave-reveal.d.ts.map +1 -0
- package/dist/components/motion/wave-reveal.js +630 -0
- package/dist/components/motion/wave-reveal.js.map +1 -0
- package/dist/components/motion/wheel-picker.d.ts +7 -0
- package/dist/components/motion/wheel-picker.d.ts.map +1 -1
- package/dist/components/motion/wheel-picker.js +12 -2
- package/dist/components/motion/wheel-picker.js.map +1 -1
- package/dist/components/reui/alert.d.ts +1 -1
- package/dist/components/reui/autocomplete.d.ts +1 -1
- package/dist/components/reui/badge.d.ts +2 -2
- package/dist/components/reui/color-picker.js +1 -1
- package/dist/components/reui/color-picker.js.map +1 -1
- package/dist/components/reui/file-type.d.ts +1 -1
- package/dist/components/reui/filters/filters-advanced.js.map +1 -1
- package/dist/components/reui/frame.d.ts +2 -2
- package/dist/components/reui/frame.js +1 -1
- package/dist/components/reui/frame.js.map +1 -1
- package/dist/components/reui/icon-tile.d.ts +2 -2
- package/dist/components/reui/number-field.d.ts +3 -3
- package/dist/components/reui/rating.d.ts +1 -1
- package/dist/components/ui/attachment.d.ts +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/bubble.d.ts +1 -1
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/calendar.js +1 -1
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/card.js +1 -1
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/combobox.js +2 -2
- package/dist/components/ui/combobox.js.map +1 -1
- package/dist/components/ui/empty.d.ts +1 -1
- package/dist/components/ui/input-group.d.ts +2 -2
- package/dist/components/ui/item.d.ts +2 -2
- package/dist/components/ui/marker.d.ts +1 -1
- package/dist/components/ui/questionnaire.js +2 -2
- package/dist/components/ui/questionnaire.js.map +1 -1
- package/dist/components/ui/sidebar.d.ts +1 -1
- package/dist/components/ui/sidebar.js +1 -1
- package/dist/components/ui/sidebar.js.map +1 -1
- package/dist/components/ui/toggle-group.js +1 -1
- package/dist/components/ui/toggle-group.js.map +1 -1
- package/dist/components/ui/toggle.d.ts +1 -1
- package/dist/components/ui/trace.js +1 -1
- package/dist/components/ui/trace.js.map +1 -1
- package/dist/{constants-CggcOqef.js → constants-DfbfCDSg.js} +3 -6
- package/dist/constants-DfbfCDSg.js.map +1 -0
- package/dist/{context-BrGWrRwa.d.ts → context-4tt2I7Qm.d.ts} +14 -4
- package/dist/context-4tt2I7Qm.d.ts.map +1 -0
- package/dist/{context-DWHy9EUW.js → context-B3BNuwGu.js} +8 -25
- package/dist/context-B3BNuwGu.js.map +1 -0
- package/dist/{context-BEYROlTB.d.ts → context-BFNkGCGz.d.ts} +18 -14
- package/dist/context-BFNkGCGz.d.ts.map +1 -0
- package/dist/{context-r3QNWoPh.js → context-BG1Wzdnj.js} +6 -10
- package/dist/context-BG1Wzdnj.js.map +1 -0
- package/dist/{context-Dae38FV_.js → context-Bx-OaIL8.js} +5 -9
- package/dist/context-Bx-OaIL8.js.map +1 -0
- package/dist/context-C92iQeLO.js.map +1 -1
- package/dist/{context-CmexbpIK.js → context-C9LHO4MN.js} +12 -27
- package/dist/context-C9LHO4MN.js.map +1 -0
- package/dist/context-CHXHCbuu.js.map +1 -1
- package/dist/{context-C5DO1oe1.js → context-CIzAPhXA.js} +37 -99
- package/dist/context-CIzAPhXA.js.map +1 -0
- package/dist/{context-B5NItr9C.d.ts → context-CP3spicY.d.ts} +20 -15
- package/dist/context-CP3spicY.d.ts.map +1 -0
- package/dist/{context-CwSk1WZR.js → context-Cg1VelQJ.js} +9 -25
- package/dist/context-Cg1VelQJ.js.map +1 -0
- package/dist/{context-BpHX6J1T.js → context-DDoVOc0D.js} +8 -25
- package/dist/context-DDoVOc0D.js.map +1 -0
- package/dist/{context-C1Z_5vew.d.ts → context-DMIy-rFm.d.ts} +15 -4
- package/dist/context-DMIy-rFm.d.ts.map +1 -0
- package/dist/context-DR6jkfea.js +11 -0
- package/dist/context-DR6jkfea.js.map +1 -0
- package/dist/{context-BLjAwZ5V.js → context-DcJtX6ht.js} +18 -95
- package/dist/context-DcJtX6ht.js.map +1 -0
- package/dist/{context-Cr2SLhVi.js → context-Dg48xMuG.js} +3 -7
- package/dist/context-Dg48xMuG.js.map +1 -0
- package/dist/context-DnM-b9yO.js +23 -0
- package/dist/context-DnM-b9yO.js.map +1 -0
- package/dist/context-DtFeYksF.d.ts +28 -0
- package/dist/context-DtFeYksF.d.ts.map +1 -0
- package/dist/{context-C8M88I1F.js → context-cRAJSFxf.js} +4 -8
- package/dist/context-cRAJSFxf.js.map +1 -0
- package/dist/{context-CgRa89Bq.d.ts → context-jX-r_7EP.d.ts} +12 -7
- package/dist/context-jX-r_7EP.d.ts.map +1 -0
- package/dist/{copy-menu-BizTEv8v.js → copy-menu-Bgoo5oWq.js} +6 -6
- package/dist/copy-menu-Bgoo5oWq.js.map +1 -0
- package/dist/{crash-parts-Dg5WC8u4.js → crash-parts-BkrZ6iBE.js} +2 -2
- package/dist/crash-parts-BkrZ6iBE.js.map +1 -0
- package/dist/date-utils-DVDYcEA_.js +35 -0
- package/dist/date-utils-DVDYcEA_.js.map +1 -0
- package/dist/{ease-DnPhwGe6.d.ts → ease-D_-bhUDt.d.ts} +13 -6
- package/dist/ease-D_-bhUDt.d.ts.map +1 -0
- package/dist/formats-ColrL9Eg.js +58 -0
- package/dist/formats-ColrL9Eg.js.map +1 -0
- package/dist/{game-parts-hATtqY3s.d.ts → game-parts-B635BoSe.d.ts} +4 -4
- package/dist/{game-parts-hATtqY3s.d.ts.map → game-parts-B635BoSe.d.ts.map} +1 -1
- package/dist/hooks/use-controllable.d.ts +10 -0
- package/dist/hooks/use-controllable.d.ts.map +1 -0
- package/dist/hooks/use-controllable.js +39 -0
- package/dist/hooks/use-controllable.js.map +1 -0
- package/dist/hooks/use-copy.d.ts +16 -0
- package/dist/hooks/use-copy.d.ts.map +1 -0
- package/dist/hooks/use-copy.js +36 -0
- package/dist/hooks/use-copy.js.map +1 -0
- package/dist/hooks/use-dismiss.d.ts +17 -5
- package/dist/hooks/use-dismiss.d.ts.map +1 -1
- package/dist/hooks/use-dismiss.js +36 -24
- package/dist/hooks/use-dismiss.js.map +1 -1
- package/dist/hooks/use-focus-trap.d.ts +4 -3
- package/dist/hooks/use-focus-trap.d.ts.map +1 -1
- package/dist/hooks/use-focus-trap.js +25 -37
- package/dist/hooks/use-focus-trap.js.map +1 -1
- package/dist/hooks/use-highlighted-code.d.ts +1 -1
- package/dist/hooks/use-highlighted-code.d.ts.map +1 -1
- package/dist/hooks/use-hover-capable.d.ts +1 -1
- package/dist/hooks/use-hover-capable.js +1 -1
- package/dist/hooks/use-hover-capable.js.map +1 -1
- package/dist/hooks/use-hover-gesture.d.ts +5 -5
- package/dist/hooks/use-hover-gesture.js +5 -5
- package/dist/hooks/use-hover-gesture.js.map +1 -1
- package/dist/hooks/use-listbox.d.ts +1 -0
- package/dist/hooks/use-listbox.js +2 -1
- package/dist/hooks/use-listbox.js.map +1 -1
- package/dist/hooks/use-modal-scope.js +22 -26
- package/dist/hooks/use-modal-scope.js.map +1 -1
- package/dist/hooks/use-on-open.d.ts +3 -3
- package/dist/hooks/use-on-open.js +3 -3
- package/dist/hooks/use-on-open.js.map +1 -1
- package/dist/hooks/use-row-cursor.d.ts +2 -2
- package/dist/hooks/use-row-cursor.js +2 -2
- package/dist/hooks/use-row-cursor.js.map +1 -1
- package/dist/hooks/use-slider.d.ts +13 -3
- package/dist/hooks/use-slider.d.ts.map +1 -1
- package/dist/hooks/use-slider.js +23 -4
- package/dist/hooks/use-slider.js.map +1 -1
- package/dist/hooks/use-status-open.d.ts +26 -0
- package/dist/hooks/use-status-open.d.ts.map +1 -0
- package/dist/hooks/use-status-open.js +43 -0
- package/dist/hooks/use-status-open.js.map +1 -0
- package/dist/hooks/use-tap-gesture.d.ts +3 -3
- package/dist/hooks/use-tap-gesture.js +3 -3
- package/dist/hooks/use-tap-gesture.js.map +1 -1
- package/dist/lib/audio-context.d.ts +27 -1
- package/dist/lib/audio-context.d.ts.map +1 -1
- package/dist/lib/audio-context.js +61 -2
- package/dist/lib/audio-context.js.map +1 -1
- package/dist/lib/book-sounds.d.ts.map +1 -1
- package/dist/lib/book-sounds.js +8 -9
- package/dist/lib/book-sounds.js.map +1 -1
- package/dist/lib/color.d.ts +29 -0
- package/dist/lib/color.d.ts.map +1 -0
- package/dist/lib/color.js +93 -0
- package/dist/lib/color.js.map +1 -0
- package/dist/lib/command-search.d.ts +7 -1
- package/dist/lib/command-search.d.ts.map +1 -1
- package/dist/lib/command-search.js +42 -19
- package/dist/lib/command-search.js.map +1 -1
- package/dist/lib/ease.d.ts +2 -2
- package/dist/lib/ease.js +12 -5
- package/dist/lib/ease.js.map +1 -1
- package/dist/lib/focusable.d.ts +10 -0
- package/dist/lib/focusable.d.ts.map +1 -1
- package/dist/lib/focusable.js +31 -1
- package/dist/lib/focusable.js.map +1 -1
- package/dist/lib/game-sounds.d.ts.map +1 -1
- package/dist/lib/game-sounds.js +7 -14
- package/dist/lib/game-sounds.js.map +1 -1
- package/dist/lib/layers.d.ts +24 -0
- package/dist/lib/layers.d.ts.map +1 -0
- package/dist/lib/layers.js +47 -0
- package/dist/lib/layers.js.map +1 -0
- package/dist/lib/merge-refs.d.ts +6 -0
- package/dist/lib/merge-refs.d.ts.map +1 -0
- package/dist/lib/merge-refs.js +15 -0
- package/dist/lib/merge-refs.js.map +1 -0
- package/dist/lib/presence-gate.d.ts +2 -2
- package/dist/lib/presence-gate.js.map +1 -1
- package/dist/lib/scroll-lock.d.ts +13 -0
- package/dist/lib/scroll-lock.d.ts.map +1 -0
- package/dist/lib/scroll-lock.js +59 -0
- package/dist/lib/scroll-lock.js.map +1 -0
- package/dist/lib/sound.d.ts +30 -0
- package/dist/lib/sound.d.ts.map +1 -0
- package/dist/lib/sound.js +95 -0
- package/dist/lib/sound.js.map +1 -0
- package/dist/lib/sounds/bell.d.ts +4 -0
- package/dist/lib/sounds/bell.d.ts.map +1 -0
- package/dist/lib/sounds/bell.js +36 -0
- package/dist/lib/sounds/bell.js.map +1 -0
- package/dist/lib/sounds/bubble.d.ts +4 -0
- package/dist/lib/sounds/bubble.d.ts.map +1 -0
- package/dist/lib/sounds/bubble.js +27 -0
- package/dist/lib/sounds/bubble.js.map +1 -0
- package/dist/lib/sounds/burst.d.ts +4 -0
- package/dist/lib/sounds/burst.d.ts.map +1 -0
- package/dist/lib/sounds/burst.js +45 -0
- package/dist/lib/sounds/burst.js.map +1 -0
- package/dist/lib/sounds/buzz.d.ts +4 -0
- package/dist/lib/sounds/buzz.d.ts.map +1 -0
- package/dist/lib/sounds/buzz.js +26 -0
- package/dist/lib/sounds/buzz.js.map +1 -0
- package/dist/lib/sounds/camera.d.ts +4 -0
- package/dist/lib/sounds/camera.d.ts.map +1 -0
- package/dist/lib/sounds/camera.js +40 -0
- package/dist/lib/sounds/camera.js.map +1 -0
- package/dist/lib/sounds/check.d.ts +4 -0
- package/dist/lib/sounds/check.d.ts.map +1 -0
- package/dist/lib/sounds/check.js +40 -0
- package/dist/lib/sounds/check.js.map +1 -0
- package/dist/lib/sounds/chime.d.ts +4 -0
- package/dist/lib/sounds/chime.d.ts.map +1 -0
- package/dist/lib/sounds/chime.js +33 -0
- package/dist/lib/sounds/chime.js.map +1 -0
- package/dist/lib/sounds/close.d.ts +4 -0
- package/dist/lib/sounds/close.d.ts.map +1 -0
- package/dist/lib/sounds/close.js +36 -0
- package/dist/lib/sounds/close.js.map +1 -0
- package/dist/lib/sounds/coin.d.ts +4 -0
- package/dist/lib/sounds/coin.d.ts.map +1 -0
- package/dist/lib/sounds/coin.js +31 -0
- package/dist/lib/sounds/coin.js.map +1 -0
- package/dist/lib/sounds/collapse.d.ts +4 -0
- package/dist/lib/sounds/collapse.d.ts.map +1 -0
- package/dist/lib/sounds/collapse.js +41 -0
- package/dist/lib/sounds/collapse.js.map +1 -0
- package/dist/lib/sounds/connect.d.ts +4 -0
- package/dist/lib/sounds/connect.d.ts.map +1 -0
- package/dist/lib/sounds/connect.js +39 -0
- package/dist/lib/sounds/connect.js.map +1 -0
- package/dist/lib/sounds/copy.d.ts +4 -0
- package/dist/lib/sounds/copy.d.ts.map +1 -0
- package/dist/lib/sounds/copy.js +39 -0
- package/dist/lib/sounds/copy.js.map +1 -0
- package/dist/lib/sounds/delete.d.ts +4 -0
- package/dist/lib/sounds/delete.d.ts.map +1 -0
- package/dist/lib/sounds/delete.js +39 -0
- package/dist/lib/sounds/delete.js.map +1 -0
- package/dist/lib/sounds/disconnect.d.ts +4 -0
- package/dist/lib/sounds/disconnect.d.ts.map +1 -0
- package/dist/lib/sounds/disconnect.js +39 -0
- package/dist/lib/sounds/disconnect.js.map +1 -0
- package/dist/lib/sounds/dismiss.d.ts +4 -0
- package/dist/lib/sounds/dismiss.d.ts.map +1 -0
- package/dist/lib/sounds/dismiss.js +27 -0
- package/dist/lib/sounds/dismiss.js.map +1 -0
- package/dist/lib/sounds/dock.d.ts +4 -0
- package/dist/lib/sounds/dock.d.ts.map +1 -0
- package/dist/lib/sounds/dock.js +32 -0
- package/dist/lib/sounds/dock.js.map +1 -0
- package/dist/lib/sounds/drop.d.ts +4 -0
- package/dist/lib/sounds/drop.d.ts.map +1 -0
- package/dist/lib/sounds/drop.js +48 -0
- package/dist/lib/sounds/drop.js.map +1 -0
- package/dist/lib/sounds/engine.d.ts +142 -0
- package/dist/lib/sounds/engine.d.ts.map +1 -0
- package/dist/lib/sounds/engine.js +210 -0
- package/dist/lib/sounds/engine.js.map +1 -0
- package/dist/lib/sounds/error.d.ts +4 -0
- package/dist/lib/sounds/error.d.ts.map +1 -0
- package/dist/lib/sounds/error.js +51 -0
- package/dist/lib/sounds/error.js.map +1 -0
- package/dist/lib/sounds/expand.d.ts +4 -0
- package/dist/lib/sounds/expand.d.ts.map +1 -0
- package/dist/lib/sounds/expand.js +28 -0
- package/dist/lib/sounds/expand.js.map +1 -0
- package/dist/lib/sounds/heart.d.ts +4 -0
- package/dist/lib/sounds/heart.d.ts.map +1 -0
- package/dist/lib/sounds/heart.js +39 -0
- package/dist/lib/sounds/heart.js.map +1 -0
- package/dist/lib/sounds/lift.d.ts +4 -0
- package/dist/lib/sounds/lift.d.ts.map +1 -0
- package/dist/lib/sounds/lift.js +34 -0
- package/dist/lib/sounds/lift.js.map +1 -0
- package/dist/lib/sounds/lock.d.ts +4 -0
- package/dist/lib/sounds/lock.d.ts.map +1 -0
- package/dist/lib/sounds/lock.js +32 -0
- package/dist/lib/sounds/lock.js.map +1 -0
- package/dist/lib/sounds/navigate.d.ts +4 -0
- package/dist/lib/sounds/navigate.d.ts.map +1 -0
- package/dist/lib/sounds/navigate.js +36 -0
- package/dist/lib/sounds/navigate.js.map +1 -0
- package/dist/lib/sounds/notify.d.ts +4 -0
- package/dist/lib/sounds/notify.d.ts.map +1 -0
- package/dist/lib/sounds/notify.js +31 -0
- package/dist/lib/sounds/notify.js.map +1 -0
- package/dist/lib/sounds/open.d.ts +4 -0
- package/dist/lib/sounds/open.d.ts.map +1 -0
- package/dist/lib/sounds/open.js +36 -0
- package/dist/lib/sounds/open.js.map +1 -0
- package/dist/lib/sounds/ping.d.ts +4 -0
- package/dist/lib/sounds/ping.d.ts.map +1 -0
- package/dist/lib/sounds/ping.js +30 -0
- package/dist/lib/sounds/ping.js.map +1 -0
- package/dist/lib/sounds/pop.d.ts +4 -0
- package/dist/lib/sounds/pop.d.ts.map +1 -0
- package/dist/lib/sounds/pop.js +27 -0
- package/dist/lib/sounds/pop.js.map +1 -0
- package/dist/lib/sounds/press.d.ts +4 -0
- package/dist/lib/sounds/press.d.ts.map +1 -0
- package/dist/lib/sounds/press.js +40 -0
- package/dist/lib/sounds/press.js.map +1 -0
- package/dist/lib/sounds/receive.d.ts +4 -0
- package/dist/lib/sounds/receive.d.ts.map +1 -0
- package/dist/lib/sounds/receive.js +39 -0
- package/dist/lib/sounds/receive.js.map +1 -0
- package/dist/lib/sounds/refresh.d.ts +4 -0
- package/dist/lib/sounds/refresh.d.ts.map +1 -0
- package/dist/lib/sounds/refresh.js +34 -0
- package/dist/lib/sounds/refresh.js.map +1 -0
- package/dist/lib/sounds/reveal.d.ts +4 -0
- package/dist/lib/sounds/reveal.d.ts.map +1 -0
- package/dist/lib/sounds/reveal.js +34 -0
- package/dist/lib/sounds/reveal.js.map +1 -0
- package/dist/lib/sounds/select.d.ts +4 -0
- package/dist/lib/sounds/select.d.ts.map +1 -0
- package/dist/lib/sounds/select.js +32 -0
- package/dist/lib/sounds/select.js.map +1 -0
- package/dist/lib/sounds/send.d.ts +4 -0
- package/dist/lib/sounds/send.d.ts.map +1 -0
- package/dist/lib/sounds/send.js +35 -0
- package/dist/lib/sounds/send.js.map +1 -0
- package/dist/lib/sounds/shutter.d.ts +4 -0
- package/dist/lib/sounds/shutter.d.ts.map +1 -0
- package/dist/lib/sounds/shutter.js +40 -0
- package/dist/lib/sounds/shutter.js.map +1 -0
- package/dist/lib/sounds/snap.d.ts +4 -0
- package/dist/lib/sounds/snap.d.ts.map +1 -0
- package/dist/lib/sounds/snap.js +33 -0
- package/dist/lib/sounds/snap.js.map +1 -0
- package/dist/lib/sounds/star.d.ts +4 -0
- package/dist/lib/sounds/star.d.ts.map +1 -0
- package/dist/lib/sounds/star.js +38 -0
- package/dist/lib/sounds/star.js.map +1 -0
- package/dist/lib/sounds/success.d.ts +4 -0
- package/dist/lib/sounds/success.d.ts.map +1 -0
- package/dist/lib/sounds/success.js +39 -0
- package/dist/lib/sounds/success.js.map +1 -0
- package/dist/lib/sounds/swipe.d.ts +4 -0
- package/dist/lib/sounds/swipe.d.ts.map +1 -0
- package/dist/lib/sounds/swipe.js +29 -0
- package/dist/lib/sounds/swipe.js.map +1 -0
- package/dist/lib/sounds/switch.d.ts +4 -0
- package/dist/lib/sounds/switch.d.ts.map +1 -0
- package/dist/lib/sounds/switch.js +40 -0
- package/dist/lib/sounds/switch.js.map +1 -0
- package/dist/lib/sounds/tap.d.ts +4 -0
- package/dist/lib/sounds/tap.d.ts.map +1 -0
- package/dist/lib/sounds/tap.js +33 -0
- package/dist/lib/sounds/tap.js.map +1 -0
- package/dist/lib/sounds/tick.d.ts +4 -0
- package/dist/lib/sounds/tick.d.ts.map +1 -0
- package/dist/lib/sounds/tick.js +26 -0
- package/dist/lib/sounds/tick.js.map +1 -0
- package/dist/lib/sounds/timer.d.ts +4 -0
- package/dist/lib/sounds/timer.d.ts.map +1 -0
- package/dist/lib/sounds/timer.js +26 -0
- package/dist/lib/sounds/timer.js.map +1 -0
- package/dist/lib/sounds/toggle.d.ts +6 -0
- package/dist/lib/sounds/toggle.d.ts.map +1 -0
- package/dist/lib/sounds/toggle.js +79 -0
- package/dist/lib/sounds/toggle.js.map +1 -0
- package/dist/lib/sounds/trash.d.ts +4 -0
- package/dist/lib/sounds/trash.d.ts.map +1 -0
- package/dist/lib/sounds/trash.js +40 -0
- package/dist/lib/sounds/trash.js.map +1 -0
- package/dist/lib/sounds/type.d.ts +4 -0
- package/dist/lib/sounds/type.d.ts.map +1 -0
- package/dist/lib/sounds/type.js +35 -0
- package/dist/lib/sounds/type.js.map +1 -0
- package/dist/lib/sounds/unlock.d.ts +4 -0
- package/dist/lib/sounds/unlock.d.ts.map +1 -0
- package/dist/lib/sounds/unlock.js +41 -0
- package/dist/lib/sounds/unlock.js.map +1 -0
- package/dist/lib/sounds/warning.d.ts +4 -0
- package/dist/lib/sounds/warning.d.ts.map +1 -0
- package/dist/lib/sounds/warning.js +29 -0
- package/dist/lib/sounds/warning.js.map +1 -0
- package/dist/lib/sounds/whisper.d.ts +4 -0
- package/dist/lib/sounds/whisper.d.ts.map +1 -0
- package/dist/lib/sounds/whisper.js +27 -0
- package/dist/lib/sounds/whisper.js.map +1 -0
- package/dist/lib/text-shimmer.d.ts +6 -0
- package/dist/lib/text-shimmer.d.ts.map +1 -1
- package/dist/lib/text-shimmer.js +7 -1
- package/dist/lib/text-shimmer.js.map +1 -1
- package/dist/lib/tick-sound.d.ts.map +1 -1
- package/dist/lib/tick-sound.js +8 -11
- package/dist/lib/tick-sound.js.map +1 -1
- package/dist/lib/touch.d.ts +10 -10
- package/dist/lib/touch.js +10 -10
- package/dist/lib/touch.js.map +1 -1
- package/dist/listbox-panel-BX74YCzI.d.ts +31 -0
- package/dist/listbox-panel-BX74YCzI.d.ts.map +1 -0
- package/dist/menu-button-CbEYps6k.d.ts +29 -0
- package/dist/menu-button-CbEYps6k.d.ts.map +1 -0
- package/dist/menu-sub-button-NgS4JryG.d.ts +25 -0
- package/dist/menu-sub-button-NgS4JryG.d.ts.map +1 -0
- package/dist/messages-D0lxgjNm.d.ts +31 -0
- package/dist/messages-D0lxgjNm.d.ts.map +1 -0
- package/dist/{model-Cqi9KKo1.d.ts → model-CHHE1lHQ.d.ts} +5 -1
- package/dist/{model-Cqi9KKo1.d.ts.map → model-CHHE1lHQ.d.ts.map} +1 -1
- package/dist/{model-DP6FsG__.d.ts → model-D6sI_4m9.d.ts} +5 -1
- package/dist/model-D6sI_4m9.d.ts.map +1 -0
- package/dist/{model-B_LLKNOs.d.ts → model-DUQnYLRU.d.ts} +3 -1
- package/dist/model-DUQnYLRU.d.ts.map +1 -0
- package/dist/{model-Cbzktxjx.d.ts → model-Dafi-gx6.d.ts} +2 -1
- package/dist/model-Dafi-gx6.d.ts.map +1 -0
- package/dist/motion-1TeD2tw9.js +67 -0
- package/dist/motion-1TeD2tw9.js.map +1 -0
- package/dist/placement-BRE79jXm.d.ts +4 -0
- package/dist/placement-BRE79jXm.d.ts.map +1 -0
- package/dist/placement-Cg-Y5tLI.js +74 -0
- package/dist/placement-Cg-Y5tLI.js.map +1 -0
- package/dist/{plot-B2aPWHib.js → plot-CSTtMo6j.js} +3 -3
- package/dist/{plot-B2aPWHib.js.map → plot-CSTtMo6j.js.map} +1 -1
- package/dist/popover-morph-CWb4N9ux.d.ts +55 -0
- package/dist/popover-morph-CWb4N9ux.d.ts.map +1 -0
- package/dist/{positioner-DY1vB4rF.js → positioner-CFR4mJg6.js} +112 -4
- package/dist/positioner-CFR4mJg6.js.map +1 -0
- package/dist/resource-row-PkgPS9Hk.js +290 -0
- package/dist/resource-row-PkgPS9Hk.js.map +1 -0
- package/dist/root-C1n8-uIA.js +420 -0
- package/dist/root-C1n8-uIA.js.map +1 -0
- package/dist/{use-inspection-DWk6TdY9.js → scale-JwdKsMkj.js} +2 -55
- package/dist/scale-JwdKsMkj.js.map +1 -0
- package/dist/theme.css +98 -4
- package/dist/{tooltip-UI0lMGya.d.ts → tooltip-CoAbjn9I.d.ts} +9 -1
- package/dist/tooltip-CoAbjn9I.d.ts.map +1 -0
- package/dist/{tooltip-CMtIWcUY.d.ts → tooltip-DI79u-1V.d.ts} +11 -2
- package/dist/tooltip-DI79u-1V.d.ts.map +1 -0
- package/dist/{tooltip-jQICwV_k.d.ts → tooltip-DPci40hM.d.ts} +9 -1
- package/dist/tooltip-DPci40hM.d.ts.map +1 -0
- package/dist/{tooltip-CJccRGy9.d.ts → tooltip-X7sMXf98.d.ts} +11 -2
- package/dist/tooltip-X7sMXf98.d.ts.map +1 -0
- package/dist/{tooltip-BUkacvMl.js → tooltip-gHv-6eOs.js} +54 -43
- package/dist/tooltip-gHv-6eOs.js.map +1 -0
- package/dist/{tooltip-DuPE_3Gi.d.ts → tooltip-gKOUHp_1.d.ts} +8 -1
- package/dist/tooltip-gKOUHp_1.d.ts.map +1 -0
- package/dist/types-BhZ0FwDi.d.ts +33 -0
- package/dist/types-BhZ0FwDi.d.ts.map +1 -0
- package/dist/types-BnHpfLje.d.ts +111 -0
- package/dist/types-BnHpfLje.d.ts.map +1 -0
- package/dist/types-COoUai3R.d.ts +64 -0
- package/dist/types-COoUai3R.d.ts.map +1 -0
- package/dist/{types-DJ8z6gW8.d.ts → types-CbBZy33k.d.ts} +3 -1
- package/dist/{types-DJ8z6gW8.d.ts.map → types-CbBZy33k.d.ts.map} +1 -1
- package/dist/{types-C_v1N4fH.d.ts → types-ClKnPGuP.d.ts} +18 -4
- package/dist/types-ClKnPGuP.d.ts.map +1 -0
- package/dist/types-DPKILbI9.d.ts +37 -0
- package/dist/types-DPKILbI9.d.ts.map +1 -0
- package/dist/types-Dbiy485_.d.ts +114 -0
- package/dist/types-Dbiy485_.d.ts.map +1 -0
- package/dist/types-DtUnNprK.d.ts +53 -0
- package/dist/types-DtUnNprK.d.ts.map +1 -0
- package/dist/{use-crash-game-DiGujbfH.d.ts → use-crash-game-C6JPLvAH.d.ts} +5 -2
- package/dist/{use-crash-game-DiGujbfH.d.ts.map → use-crash-game-C6JPLvAH.d.ts.map} +1 -1
- package/dist/use-filtered-options-3TcVsHzV.js +167 -0
- package/dist/use-filtered-options-3TcVsHzV.js.map +1 -0
- package/dist/use-filtered-options-BbXqmJmZ.d.ts +14 -0
- package/dist/use-filtered-options-BbXqmJmZ.d.ts.map +1 -0
- package/dist/use-inspection-LoyxxJk8.js +31 -0
- package/dist/use-inspection-LoyxxJk8.js.map +1 -0
- package/dist/use-menu-navigation-B17_iK_B.js +57 -0
- package/dist/use-menu-navigation-B17_iK_B.js.map +1 -0
- package/dist/{use-position-B1lYvN8D.d.ts → use-position-ac-sSZRY.d.ts} +3 -1
- package/dist/use-position-ac-sSZRY.d.ts.map +1 -0
- package/dist/use-width-DZex74TT.js +45 -0
- package/dist/use-width-DZex74TT.js.map +1 -0
- package/dist/utils-f7_cAAwc.js +55 -0
- package/dist/utils-f7_cAAwc.js.map +1 -0
- package/package.json +16 -16
- package/dist/components/agents/agent-activity/index.d.ts.map +0 -1
- package/dist/components/agents/agent-activity/index.js.map +0 -1
- package/dist/components/agents/approval-card/index.d.ts.map +0 -1
- package/dist/components/agents/approval-card/index.js.map +0 -1
- package/dist/components/motion/animated-sidebar.js.map +0 -1
- package/dist/components/motion/animated-toast-stack.d.ts.map +0 -1
- package/dist/components/motion/animated-toast-stack.js.map +0 -1
- package/dist/components/motion/availability-scheduler/index.d.ts.map +0 -1
- package/dist/components/motion/availability-scheduler/index.js.map +0 -1
- package/dist/components/motion/button/index.js +0 -6
- package/dist/components/motion/popover-morph.d.ts.map +0 -1
- package/dist/components/motion/table/index.d.ts.map +0 -1
- package/dist/components/motion/table/index.js.map +0 -1
- package/dist/components/motion/wallet-card/index.d.ts.map +0 -1
- package/dist/components/motion/wallet-card/index.js.map +0 -1
- package/dist/constants-CggcOqef.js.map +0 -1
- package/dist/context-B5NItr9C.d.ts.map +0 -1
- package/dist/context-BEYROlTB.d.ts.map +0 -1
- package/dist/context-BLjAwZ5V.js.map +0 -1
- package/dist/context-BpHX6J1T.js.map +0 -1
- package/dist/context-BrGWrRwa.d.ts.map +0 -1
- package/dist/context-C1Z_5vew.d.ts.map +0 -1
- package/dist/context-C5DO1oe1.js.map +0 -1
- package/dist/context-C8M88I1F.js.map +0 -1
- package/dist/context-CgRa89Bq.d.ts.map +0 -1
- package/dist/context-CmexbpIK.js.map +0 -1
- package/dist/context-Cr2SLhVi.js.map +0 -1
- package/dist/context-CwSk1WZR.js.map +0 -1
- package/dist/context-DWHy9EUW.js.map +0 -1
- package/dist/context-Dae38FV_.js.map +0 -1
- package/dist/context-r3QNWoPh.js.map +0 -1
- package/dist/copy-menu-BizTEv8v.js.map +0 -1
- package/dist/crash-parts-Dg5WC8u4.js.map +0 -1
- package/dist/ease-DnPhwGe6.d.ts.map +0 -1
- package/dist/model-B_LLKNOs.d.ts.map +0 -1
- package/dist/model-Cbzktxjx.d.ts.map +0 -1
- package/dist/model-DP6FsG__.d.ts.map +0 -1
- package/dist/positioner-DY1vB4rF.js.map +0 -1
- package/dist/tooltip-BUkacvMl.js.map +0 -1
- package/dist/tooltip-CJccRGy9.d.ts.map +0 -1
- package/dist/tooltip-CMtIWcUY.d.ts.map +0 -1
- package/dist/tooltip-DuPE_3Gi.d.ts.map +0 -1
- package/dist/tooltip-UI0lMGya.d.ts.map +0 -1
- package/dist/tooltip-jQICwV_k.d.ts.map +0 -1
- package/dist/types-C1WFGMvf.d.ts +0 -34
- package/dist/types-C1WFGMvf.d.ts.map +0 -1
- package/dist/types-C_v1N4fH.d.ts.map +0 -1
- package/dist/types-DROZkngo.d.ts +0 -20
- package/dist/types-DROZkngo.d.ts.map +0 -1
- package/dist/use-active-option-DbxnIM2n.js +0 -85
- package/dist/use-active-option-DbxnIM2n.js.map +0 -1
- package/dist/use-inspection-DWk6TdY9.js.map +0 -1
- package/dist/use-position-B1lYvN8D.d.ts.map +0 -1
- package/dist/use-width-Dmy1eT1-.js +0 -23
- package/dist/use-width-Dmy1eT1-.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dock.js","names":[],"sources":["../../../src/components/motion/dock.tsx"],"sourcesContent":["\"use client\";\n\nimport { createContext, type ReactNode, useContext, useId, useMemo } from \"react\";\nimport { motion, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { SPRING_LAYOUT } from \"../../lib/ease\";\n\ntype DockContextValue = {\n size: number;\n pillLayoutId: string;\n};\n\nconst DockContext = createContext<DockContextValue | null>(null);\n\nexport interface DockProps {\n children: ReactNode;\n className?: string;\n /** Size of each item in px. */\n size?: number;\n}\n\nexport function Dock({ children, size = 44, className }: DockProps) {\n const pillLayoutId = useId();\n const ctx = useMemo<DockContextValue>(() => ({ size, pillLayoutId }), [size, pillLayoutId]);\n\n return (\n <DockContext.Provider value={ctx}>\n <div\n className={cn(\n \"border-border bg-card/80 inline-flex h-auto items-end gap-1.5 rounded-
|
|
1
|
+
{"version":3,"file":"dock.js","names":[],"sources":["../../../src/components/motion/dock.tsx"],"sourcesContent":["\"use client\";\n\nimport { createContext, type ReactNode, useContext, useId, useMemo } from \"react\";\nimport { motion, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { SPRING_LAYOUT } from \"../../lib/ease\";\n\ntype DockContextValue = {\n size: number;\n pillLayoutId: string;\n};\n\nconst DockContext = createContext<DockContextValue | null>(null);\n\nexport interface DockProps {\n children: ReactNode;\n /** Classes merged onto the root element. */\n className?: string;\n /** Size of each item in px. */\n size?: number;\n}\n\nexport function Dock({ children, size = 44, className }: DockProps) {\n const pillLayoutId = useId();\n const ctx = useMemo<DockContextValue>(() => ({ size, pillLayoutId }), [size, pillLayoutId]);\n\n return (\n <DockContext.Provider value={ctx}>\n <div\n className={cn(\n \"border-border bg-card/80 inline-flex h-auto items-end gap-1.5 rounded-full border px-2 py-1 shadow-2xl backdrop-blur-xl\",\n className,\n )}\n >\n {children}\n </div>\n </DockContext.Provider>\n );\n}\n\nexport interface DockItemProps {\n children: ReactNode;\n /** Classes merged onto the item element. */\n className?: string;\n /** When set, the item renders as a <button>. Omit when children carry their own link or button. */\n onClick?: () => void;\n /** Moves the shared highlight pill to this item; sets `aria-pressed` on a button. */\n active?: boolean;\n /** Accessible name for the button rendered when `onClick` is set. */\n \"aria-label\"?: string;\n}\n\nexport function DockItem({ children, className, onClick, active, ...rest }: DockItemProps) {\n const dock = useContext(DockContext);\n const reduce = useReducedMotion();\n const size = dock?.size ?? 44;\n const pillLayoutId = dock?.pillLayoutId ?? \"dock-pill\";\n\n const pill = active ? (\n <motion.span\n layoutId={pillLayoutId}\n transition={reduce ? { duration: 0 } : SPRING_LAYOUT}\n className=\"bg-muted/60 absolute inset-0.5 -z-10 rounded-full\"\n />\n ) : null;\n const sharedStyle = { width: size, height: size };\n const sharedClass = cn(\n \"text-foreground relative flex shrink-0 items-center justify-center rounded-full\",\n className,\n );\n\n if (onClick) {\n return (\n <button\n type=\"button\"\n onClick={onClick}\n aria-label={rest[\"aria-label\"]}\n aria-pressed={active}\n style={sharedStyle}\n className={cn(\n sharedClass,\n \"cursor-pointer border-0 bg-transparent p-0 outline-none\",\n \"focus-visible:ring-ring focus-visible:ring-offset-background focus-visible:ring-2 focus-visible:ring-offset-2\",\n )}\n >\n {pill}\n {children}\n </button>\n );\n }\n\n // Children carry their own link or button (and its accessible name).\n return (\n <div style={sharedStyle} className={sharedClass}>\n {pill}\n {children}\n </div>\n );\n}\n\nexport function DockSeparator({ className }: { className?: string }) {\n return <span aria-hidden className={cn(\"bg-border mx-1 h-6 w-px self-center\", className)} />;\n}\n"],"mappings":";;;;;;;AAaA,MAAM,cAAc,cAAuC,IAAI;AAU/D,SAAgB,KAAK,EAAE,UAAU,OAAO,IAAI,aAAwB;CAClE,MAAM,eAAe,MAAM;CAC3B,MAAM,MAAM,eAAiC;EAAE;EAAM;CAAa,IAAI,CAAC,MAAM,YAAY,CAAC;CAE1F,OACE,oBAAC,YAAY,UAAb;EAAsB,OAAO;EAC3B,UAAA,oBAAC,OAAD;GACE,WAAW,GACT,2HACA,SACF;GAEC;EACE,CAAA;CACe,CAAA;AAE1B;AAcA,SAAgB,SAAS,EAAE,UAAU,WAAW,SAAS,QAAQ,GAAG,QAAuB;CACzF,MAAM,OAAO,WAAW,WAAW;CACnC,MAAM,SAAS,iBAAiB;CAChC,MAAM,OAAO,MAAM,QAAQ;CAC3B,MAAM,eAAe,MAAM,gBAAgB;CAE3C,MAAM,OAAO,SACX,oBAAC,OAAO,MAAR;EACE,UAAU;EACV,YAAY,SAAS,EAAE,UAAU,EAAE,IAAI;EACvC,WAAU;CACX,CAAA,IACC;CACJ,MAAM,cAAc;EAAE,OAAO;EAAM,QAAQ;CAAK;CAChD,MAAM,cAAc,GAClB,mFACA,SACF;CAEA,IAAI,SACF,OACE,qBAAC,UAAD;EACE,MAAK;EACI;EACT,cAAY,KAAK;EACjB,gBAAc;EACd,OAAO;EACP,WAAW,GACT,aACA,2DACA,+GACF;EAVF,UAAA,CAYG,MACA,QACK;;CAKZ,OACE,qBAAC,OAAD;EAAK,OAAO;EAAa,WAAW;EAApC,UAAA,CACG,MACA,QACE;;AAET;AAEA,SAAgB,cAAc,EAAE,aAAqC;CACnE,OAAO,oBAAC,QAAD;EAAM,eAAA;EAAY,WAAW,GAAG,uCAAuC,SAAS;CAAI,CAAA;AAC7F"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { HTMLMotionProps } from "motion/react";
|
|
2
|
+
export declare const downloadButtonMessages: {
|
|
3
|
+
download: string;
|
|
4
|
+
downloading: string;
|
|
5
|
+
downloaded: string;
|
|
6
|
+
progress: string;
|
|
7
|
+
};
|
|
8
|
+
export type DownloadButtonMessages = typeof downloadButtonMessages;
|
|
9
|
+
export interface DownloadButtonProps extends Omit<HTMLMotionProps<"button">, "children" | "onChange"> {
|
|
10
|
+
/**
|
|
11
|
+
* Runs the download. Call `report` with progress from 0 to 1 to move the
|
|
12
|
+
* fill; return a promise to finish when it settles. Without it the fill
|
|
13
|
+
* runs on its own, as a demo.
|
|
14
|
+
*/
|
|
15
|
+
onDownload?: (report: (progress: number) => void) => unknown;
|
|
16
|
+
/** Override any built-in string, e.g. for translation. */
|
|
17
|
+
labels?: Partial<DownloadButtonMessages>;
|
|
18
|
+
/** Play a tap on start and a success chime when done. Off by default; a `SoundProvider` can mute it app-wide. */
|
|
19
|
+
sound?: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A download where the whole button is the progress bar. Colour sweeps
|
|
23
|
+
* across the pill with a bright leading edge and drifting stripes, and the
|
|
24
|
+
* label and icon turn white exactly where the fill passes. When it is done
|
|
25
|
+
* the pill folds into a round badge where a check pops in, then opens back
|
|
26
|
+
* into the button as the colour drains away.
|
|
27
|
+
*/
|
|
28
|
+
export declare function DownloadButton({ onDownload, labels, sound, className, onClick, ...rest }: DownloadButtonProps): import("react").JSX.Element;
|
|
29
|
+
//# sourceMappingURL=download-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"download-button.d.ts","names":[],"sources":["../../../src/components/motion/download-button.tsx"],"mappings":";qBA+Ba;;;;;;YAOD,gCAAgC;iBAI3B,4BACP,KAAK;;;;;;EAMb,cAAc,SAAS;;EAEvB,SAAS,QAAQ;;EAEjB;;;;;;;;;wBA8Bc,iBACd,YACA,QACA,OACA,WACA,YACG,QACF,sCAAmB,IAAA"}
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useEffect, useRef, useState } from "react";
|
|
3
|
+
import { AnimatePresence, animate, motion, useMotionTemplate, useMotionValue, useReducedMotion, useSpring, useTransform } from "motion/react";
|
|
4
|
+
import { cn } from "@kumix/utils";
|
|
5
|
+
import { EASE_IN, EASE_IN_OUT, EASE_OUT, SPRING_GLIDE, SPRING_PRESS, SPRING_SWAP } from "../../lib/ease.js";
|
|
6
|
+
import { useMessages } from "../../lib/i18n.js";
|
|
7
|
+
import { useSound } from "../../lib/sound.js";
|
|
8
|
+
import { successSound } from "../../lib/sounds/success.js";
|
|
9
|
+
import { tapSound } from "../../lib/sounds/tap.js";
|
|
10
|
+
import { TextMorph } from "./text-morph.js";
|
|
11
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
+
// src/components/motion/download-button.tsx
|
|
13
|
+
const downloadButtonMessages = {
|
|
14
|
+
download: "Download",
|
|
15
|
+
downloading: "Downloading",
|
|
16
|
+
downloaded: "Downloaded",
|
|
17
|
+
progress: "Download progress"
|
|
18
|
+
};
|
|
19
|
+
const WIDE = 192;
|
|
20
|
+
const ROUND = 40;
|
|
21
|
+
const DONE_MS = 1300;
|
|
22
|
+
const DEMO_SECONDS = 2.4;
|
|
23
|
+
const EXIT = {
|
|
24
|
+
duration: .14,
|
|
25
|
+
ease: EASE_OUT
|
|
26
|
+
};
|
|
27
|
+
const FADE = {
|
|
28
|
+
duration: .16,
|
|
29
|
+
ease: EASE_OUT
|
|
30
|
+
};
|
|
31
|
+
const DRAW = {
|
|
32
|
+
duration: .32,
|
|
33
|
+
ease: EASE_OUT,
|
|
34
|
+
delay: .22
|
|
35
|
+
};
|
|
36
|
+
const POP = {
|
|
37
|
+
...SPRING_PRESS,
|
|
38
|
+
delay: .18
|
|
39
|
+
};
|
|
40
|
+
const DROP = {
|
|
41
|
+
duration: .9,
|
|
42
|
+
ease: EASE_IN,
|
|
43
|
+
repeat: Number.POSITIVE_INFINITY
|
|
44
|
+
};
|
|
45
|
+
const DRIFT = {
|
|
46
|
+
duration: .7,
|
|
47
|
+
ease: "linear",
|
|
48
|
+
repeat: Number.POSITIVE_INFINITY
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* A download where the whole button is the progress bar. Colour sweeps
|
|
52
|
+
* across the pill with a bright leading edge and drifting stripes, and the
|
|
53
|
+
* label and icon turn white exactly where the fill passes. When it is done
|
|
54
|
+
* the pill folds into a round badge where a check pops in, then opens back
|
|
55
|
+
* into the button as the colour drains away.
|
|
56
|
+
*/
|
|
57
|
+
function DownloadButton({ onDownload, labels, sound = false, className, onClick, ...rest }) {
|
|
58
|
+
const t = useMessages("DownloadButton", downloadButtonMessages, labels);
|
|
59
|
+
const playStart = useSound(tapSound, { enabled: sound });
|
|
60
|
+
const playDone = useSound(successSound, { enabled: sound });
|
|
61
|
+
const reduce = Boolean(useReducedMotion());
|
|
62
|
+
const [phase, setPhase] = useState("idle");
|
|
63
|
+
const [percent, setPercent] = useState(0);
|
|
64
|
+
const target = useMotionValue(0);
|
|
65
|
+
const smooth = useSpring(target, SPRING_GLIDE);
|
|
66
|
+
const progress = reduce ? target : smooth;
|
|
67
|
+
const right = useTransform(progress, (value) => `${(1 - value) * 100}%`);
|
|
68
|
+
const clip = useMotionTemplate`inset(0 ${right} 0 0)`;
|
|
69
|
+
const edgeX = useTransform(progress, (value) => `${(value - 1) * 100}%`);
|
|
70
|
+
const fillOpacity = useMotionValue(0);
|
|
71
|
+
const drainRef = useRef(null);
|
|
72
|
+
const report = (value) => {
|
|
73
|
+
const clamped = Math.min(1, Math.max(0, value));
|
|
74
|
+
target.set(clamped);
|
|
75
|
+
setPercent(Math.round(clamped * 100));
|
|
76
|
+
};
|
|
77
|
+
const reset = () => {
|
|
78
|
+
target.jump(0);
|
|
79
|
+
smooth.jump(0);
|
|
80
|
+
setPercent(0);
|
|
81
|
+
};
|
|
82
|
+
useEffect(() => {
|
|
83
|
+
if (phase !== "done") return;
|
|
84
|
+
const id = setTimeout(() => {
|
|
85
|
+
setPhase("idle");
|
|
86
|
+
const drain = animate(fillOpacity, 0, {
|
|
87
|
+
duration: .3,
|
|
88
|
+
ease: EASE_OUT
|
|
89
|
+
});
|
|
90
|
+
drainRef.current = drain;
|
|
91
|
+
drain.then(() => {
|
|
92
|
+
if (drainRef.current !== drain) return;
|
|
93
|
+
drainRef.current = null;
|
|
94
|
+
target.jump(0);
|
|
95
|
+
smooth.jump(0);
|
|
96
|
+
setPercent(0);
|
|
97
|
+
});
|
|
98
|
+
}, DONE_MS);
|
|
99
|
+
return () => clearTimeout(id);
|
|
100
|
+
}, [
|
|
101
|
+
phase,
|
|
102
|
+
fillOpacity,
|
|
103
|
+
target,
|
|
104
|
+
smooth
|
|
105
|
+
]);
|
|
106
|
+
const start = async () => {
|
|
107
|
+
drainRef.current?.stop();
|
|
108
|
+
drainRef.current = null;
|
|
109
|
+
reset();
|
|
110
|
+
fillOpacity.set(1);
|
|
111
|
+
setPhase("downloading");
|
|
112
|
+
try {
|
|
113
|
+
if (onDownload) await onDownload(report);
|
|
114
|
+
else await animate(0, 1, {
|
|
115
|
+
duration: DEMO_SECONDS,
|
|
116
|
+
ease: EASE_IN_OUT,
|
|
117
|
+
onUpdate: report
|
|
118
|
+
});
|
|
119
|
+
} catch {
|
|
120
|
+
fillOpacity.set(0);
|
|
121
|
+
reset();
|
|
122
|
+
setPhase("idle");
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
report(1);
|
|
126
|
+
playDone();
|
|
127
|
+
setPhase("done");
|
|
128
|
+
};
|
|
129
|
+
const instant = { duration: 0 };
|
|
130
|
+
const done = phase === "done";
|
|
131
|
+
const label = t(phase === "idle" ? "download" : phase === "downloading" ? "downloading" : "downloaded");
|
|
132
|
+
const content = (onFill) => /* @__PURE__ */ jsxs(motion.span, {
|
|
133
|
+
"aria-hidden": onFill || void 0,
|
|
134
|
+
className: "flex items-center justify-center gap-2 whitespace-nowrap",
|
|
135
|
+
initial: false,
|
|
136
|
+
animate: {
|
|
137
|
+
opacity: done ? 0 : 1,
|
|
138
|
+
scale: done && !reduce ? .9 : 1
|
|
139
|
+
},
|
|
140
|
+
transition: done ? FADE : {
|
|
141
|
+
...FADE,
|
|
142
|
+
delay: .12
|
|
143
|
+
},
|
|
144
|
+
children: [/* @__PURE__ */ jsxs("svg", {
|
|
145
|
+
viewBox: "0 0 24 24",
|
|
146
|
+
fill: "none",
|
|
147
|
+
stroke: "currentColor",
|
|
148
|
+
strokeWidth: 2,
|
|
149
|
+
strokeLinecap: "round",
|
|
150
|
+
strokeLinejoin: "round",
|
|
151
|
+
"aria-hidden": "true",
|
|
152
|
+
className: "size-4 shrink-0 overflow-hidden",
|
|
153
|
+
children: [/* @__PURE__ */ jsx("path", { d: "M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3" }), /* @__PURE__ */ jsxs(motion.g, {
|
|
154
|
+
initial: false,
|
|
155
|
+
animate: phase === "downloading" && !reduce ? {
|
|
156
|
+
y: [
|
|
157
|
+
-12,
|
|
158
|
+
0,
|
|
159
|
+
3
|
|
160
|
+
],
|
|
161
|
+
opacity: [
|
|
162
|
+
0,
|
|
163
|
+
1,
|
|
164
|
+
0
|
|
165
|
+
]
|
|
166
|
+
} : {
|
|
167
|
+
y: 0,
|
|
168
|
+
opacity: 1
|
|
169
|
+
},
|
|
170
|
+
transition: phase === "downloading" && !reduce ? {
|
|
171
|
+
...DROP,
|
|
172
|
+
times: [
|
|
173
|
+
0,
|
|
174
|
+
.6,
|
|
175
|
+
1
|
|
176
|
+
]
|
|
177
|
+
} : SPRING_PRESS,
|
|
178
|
+
children: [/* @__PURE__ */ jsx("path", { d: "M12 3v11" }), /* @__PURE__ */ jsx("path", { d: "M7.5 9.5L12 14l4.5-4.5" })]
|
|
179
|
+
})]
|
|
180
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
181
|
+
className: "inline-flex items-center gap-1",
|
|
182
|
+
children: [/* @__PURE__ */ jsx(TextMorph, { children: label }), phase === "downloading" ? /* @__PURE__ */ jsxs(motion.span, {
|
|
183
|
+
className: "inline-block w-[4ch] text-left tabular-nums",
|
|
184
|
+
initial: { opacity: 0 },
|
|
185
|
+
animate: { opacity: 1 },
|
|
186
|
+
transition: FADE,
|
|
187
|
+
children: [percent, "%"]
|
|
188
|
+
}) : null]
|
|
189
|
+
})]
|
|
190
|
+
});
|
|
191
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs(motion.button, {
|
|
192
|
+
type: "button",
|
|
193
|
+
"aria-busy": phase === "downloading" || void 0,
|
|
194
|
+
"aria-label": done ? t("downloaded") : void 0,
|
|
195
|
+
whileTap: reduce || phase !== "idle" ? void 0 : { scale: .96 },
|
|
196
|
+
initial: false,
|
|
197
|
+
animate: { width: done ? ROUND : WIDE },
|
|
198
|
+
transition: {
|
|
199
|
+
width: reduce ? instant : SPRING_SWAP,
|
|
200
|
+
scale: SPRING_PRESS
|
|
201
|
+
},
|
|
202
|
+
onClick: (event) => {
|
|
203
|
+
onClick?.(event);
|
|
204
|
+
if (event.defaultPrevented || phase !== "idle") return;
|
|
205
|
+
playStart();
|
|
206
|
+
start();
|
|
207
|
+
},
|
|
208
|
+
className: cn("border-border bg-background text-foreground relative isolate inline-flex h-10 items-center justify-center overflow-hidden rounded-full border text-sm font-medium transition-colors duration-200", "focus-visible:ring-ring/50 focus-visible:ring-2 focus-visible:outline-none", "disabled:pointer-events-none disabled:opacity-50", phase === "idle" && "hover:bg-muted/60", className),
|
|
209
|
+
...rest,
|
|
210
|
+
children: [
|
|
211
|
+
content(false),
|
|
212
|
+
/* @__PURE__ */ jsxs(motion.span, {
|
|
213
|
+
"aria-hidden": "true",
|
|
214
|
+
className: "bg-primary text-primary-foreground absolute inset-0 flex items-center justify-center overflow-hidden",
|
|
215
|
+
style: {
|
|
216
|
+
clipPath: clip,
|
|
217
|
+
opacity: fillOpacity
|
|
218
|
+
},
|
|
219
|
+
children: [
|
|
220
|
+
!reduce ? /* @__PURE__ */ jsx(motion.span, {
|
|
221
|
+
className: "absolute inset-y-0 -right-4 -left-4",
|
|
222
|
+
style: { backgroundImage: "repeating-linear-gradient(-45deg, transparent 0 6px, color-mix(in oklab, currentColor 12%, transparent) 6px 8px)" },
|
|
223
|
+
initial: false,
|
|
224
|
+
animate: phase === "downloading" ? {
|
|
225
|
+
x: [0, -16],
|
|
226
|
+
opacity: 1
|
|
227
|
+
} : {
|
|
228
|
+
x: 0,
|
|
229
|
+
opacity: 0
|
|
230
|
+
},
|
|
231
|
+
transition: phase === "downloading" ? {
|
|
232
|
+
x: DRIFT,
|
|
233
|
+
opacity: FADE
|
|
234
|
+
} : FADE
|
|
235
|
+
}) : null,
|
|
236
|
+
/* @__PURE__ */ jsx(motion.span, {
|
|
237
|
+
className: "absolute inset-0",
|
|
238
|
+
style: { x: edgeX },
|
|
239
|
+
children: /* @__PURE__ */ jsx(motion.span, {
|
|
240
|
+
className: "absolute inset-y-0 right-0 w-10 bg-gradient-to-r from-transparent to-white/30",
|
|
241
|
+
initial: false,
|
|
242
|
+
animate: { opacity: phase === "downloading" ? 1 : 0 },
|
|
243
|
+
transition: FADE
|
|
244
|
+
})
|
|
245
|
+
}),
|
|
246
|
+
/* @__PURE__ */ jsx("span", {
|
|
247
|
+
className: "relative",
|
|
248
|
+
children: content(true)
|
|
249
|
+
})
|
|
250
|
+
]
|
|
251
|
+
}),
|
|
252
|
+
/* @__PURE__ */ jsx(AnimatePresence, { children: done ? /* @__PURE__ */ jsx(motion.svg, {
|
|
253
|
+
viewBox: "0 0 24 24",
|
|
254
|
+
fill: "none",
|
|
255
|
+
stroke: "currentColor",
|
|
256
|
+
strokeWidth: 2.75,
|
|
257
|
+
strokeLinecap: "round",
|
|
258
|
+
strokeLinejoin: "round",
|
|
259
|
+
"aria-hidden": "true",
|
|
260
|
+
className: "text-primary-foreground absolute size-5",
|
|
261
|
+
initial: {
|
|
262
|
+
scale: reduce ? 1 : .4,
|
|
263
|
+
opacity: 0
|
|
264
|
+
},
|
|
265
|
+
animate: {
|
|
266
|
+
scale: 1,
|
|
267
|
+
opacity: 1
|
|
268
|
+
},
|
|
269
|
+
exit: {
|
|
270
|
+
scale: reduce ? 1 : .6,
|
|
271
|
+
opacity: 0,
|
|
272
|
+
transition: EXIT
|
|
273
|
+
},
|
|
274
|
+
transition: {
|
|
275
|
+
scale: reduce ? instant : POP,
|
|
276
|
+
opacity: {
|
|
277
|
+
...FADE,
|
|
278
|
+
delay: reduce ? 0 : .16
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
children: /* @__PURE__ */ jsx(motion.path, {
|
|
282
|
+
d: "M4.5 12.5l5 5L19.5 7",
|
|
283
|
+
initial: { pathLength: reduce ? 1 : 0 },
|
|
284
|
+
animate: { pathLength: 1 },
|
|
285
|
+
transition: reduce ? instant : DRAW
|
|
286
|
+
})
|
|
287
|
+
}, "check") : null }),
|
|
288
|
+
phase === "downloading" ? /* @__PURE__ */ jsx("span", {
|
|
289
|
+
role: "progressbar",
|
|
290
|
+
"aria-label": t("progress"),
|
|
291
|
+
"aria-valuemin": 0,
|
|
292
|
+
"aria-valuemax": 100,
|
|
293
|
+
"aria-valuenow": percent,
|
|
294
|
+
className: "sr-only"
|
|
295
|
+
}) : null
|
|
296
|
+
]
|
|
297
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
298
|
+
"aria-live": "polite",
|
|
299
|
+
className: "sr-only",
|
|
300
|
+
children: done ? t("downloaded") : ""
|
|
301
|
+
})] });
|
|
302
|
+
}
|
|
303
|
+
export { DownloadButton, downloadButtonMessages };
|
|
304
|
+
|
|
305
|
+
//# sourceMappingURL=download-button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"download-button.js","names":[],"sources":["../../../src/components/motion/download-button.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useRef, useState } from \"react\";\nimport {\n AnimatePresence,\n type AnimationPlaybackControls,\n animate,\n type HTMLMotionProps,\n motion,\n useMotionTemplate,\n useMotionValue,\n useReducedMotion,\n useSpring,\n useTransform,\n} from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport {\n EASE_IN,\n EASE_IN_OUT,\n EASE_OUT,\n SPRING_GLIDE,\n SPRING_PRESS,\n SPRING_SWAP,\n} from \"../../lib/ease\";\nimport { useMessages } from \"../../lib/i18n\";\nimport { useSound } from \"../../lib/sound\";\nimport { successSound } from \"../../lib/sounds/success\";\nimport { tapSound } from \"../../lib/sounds/tap\";\nimport { TextMorph } from \"./text-morph\";\n\nexport const downloadButtonMessages = {\n download: \"Download\",\n downloading: \"Downloading\",\n downloaded: \"Downloaded\",\n progress: \"Download progress\",\n};\n\nexport type DownloadButtonMessages = typeof downloadButtonMessages;\n\ntype Phase = \"idle\" | \"downloading\" | \"done\";\n\nexport interface DownloadButtonProps\n extends Omit<HTMLMotionProps<\"button\">, \"children\" | \"onChange\"> {\n /**\n * Runs the download. Call `report` with progress from 0 to 1 to move the\n * fill; return a promise to finish when it settles. Without it the fill\n * runs on its own, as a demo.\n */\n onDownload?: (report: (progress: number) => void) => unknown;\n /** Override any built-in string, e.g. for translation. */\n labels?: Partial<DownloadButtonMessages>;\n /** Play a tap on start and a success chime when done. Off by default; a `SoundProvider` can mute it app-wide. */\n sound?: boolean;\n}\n\n// The pill, and the round badge it folds into when the download is done.\nconst WIDE = 192;\nconst ROUND = 40;\n// The badge holds this long before it opens back into the button.\nconst DONE_MS = 1300;\n// Without onDownload, the fill runs over this long.\nconst DEMO_SECONDS = 2.4;\n// One stripe period, in px: the stripe layer slides this far per loop.\nconst STRIPE = 16;\n\nconst EXIT = { duration: 0.14, ease: EASE_OUT } as const;\nconst FADE = { duration: 0.16, ease: EASE_OUT } as const;\n// The check pops in a beat after the pill has folded.\nconst DRAW = { duration: 0.32, ease: EASE_OUT, delay: 0.22 } as const;\nconst POP = { ...SPRING_PRESS, delay: 0.18 } as const;\n// While it works, an arrow keeps dropping into the tray.\nconst DROP = { duration: 0.9, ease: EASE_IN, repeat: Number.POSITIVE_INFINITY } as const;\n// The stripes drift evenly; easing would make them pulse.\nconst DRIFT = { duration: 0.7, ease: \"linear\", repeat: Number.POSITIVE_INFINITY } as const;\n\n/**\n * A download where the whole button is the progress bar. Colour sweeps\n * across the pill with a bright leading edge and drifting stripes, and the\n * label and icon turn white exactly where the fill passes. When it is done\n * the pill folds into a round badge where a check pops in, then opens back\n * into the button as the colour drains away.\n */\nexport function DownloadButton({\n onDownload,\n labels,\n sound = false,\n className,\n onClick,\n ...rest\n}: DownloadButtonProps) {\n const t = useMessages(\"DownloadButton\", downloadButtonMessages, labels);\n const playStart = useSound(tapSound, { enabled: sound });\n const playDone = useSound(successSound, { enabled: sound });\n const reduce = Boolean(useReducedMotion());\n const [phase, setPhase] = useState<Phase>(\"idle\");\n const [percent, setPercent] = useState(0);\n\n // Progress drives one value; a critically damped spring smooths uneven\n // reports into a steady sweep, and the clip and the edge both read it.\n const target = useMotionValue(0);\n const smooth = useSpring(target, SPRING_GLIDE);\n const progress = reduce ? target : smooth;\n const right = useTransform(progress, (value) => `${(1 - value) * 100}%`);\n const clip = useMotionTemplate`inset(0 ${right} 0 0)`;\n // The leading edge rides the fill: a full-width layer whose right edge\n // sits at the progress, moved by transform only.\n const edgeX = useTransform(progress, (value) => `${(value - 1) * 100}%`);\n const fillOpacity = useMotionValue(0);\n const drainRef = useRef<AnimationPlaybackControls | null>(null);\n\n const report = (value: number) => {\n const clamped = Math.min(1, Math.max(0, value));\n target.set(clamped);\n setPercent(Math.round(clamped * 100));\n };\n\n const reset = () => {\n target.jump(0);\n smooth.jump(0);\n setPercent(0);\n };\n\n // Done: hold the badge, then open back into the button as the colour\n // drains, and reset the fill under it once it is gone.\n useEffect(() => {\n if (phase !== \"done\") return;\n const id = setTimeout(() => {\n setPhase(\"idle\");\n const drain = animate(fillOpacity, 0, { duration: 0.3, ease: EASE_OUT });\n drainRef.current = drain;\n drain.then(() => {\n if (drainRef.current !== drain) return;\n drainRef.current = null;\n target.jump(0);\n smooth.jump(0);\n setPercent(0);\n });\n }, DONE_MS);\n return () => clearTimeout(id);\n }, [phase, fillOpacity, target, smooth]);\n\n const start = async () => {\n // A press during the drain stops it, so it cannot pull the new fill to 0.\n drainRef.current?.stop();\n drainRef.current = null;\n reset();\n fillOpacity.set(1);\n setPhase(\"downloading\");\n try {\n if (onDownload) await onDownload(report);\n else await animate(0, 1, { duration: DEMO_SECONDS, ease: EASE_IN_OUT, onUpdate: report });\n } catch {\n fillOpacity.set(0);\n reset();\n setPhase(\"idle\");\n return;\n }\n report(1);\n playDone();\n setPhase(\"done\");\n };\n\n const instant = { duration: 0 };\n const done = phase === \"done\";\n const label = t(\n phase === \"idle\" ? \"download\" : phase === \"downloading\" ? \"downloading\" : \"downloaded\",\n );\n\n // The content is drawn twice, identically: in ink on the button, and in\n // white on the fill, clipped to the progress. Where the fill has reached,\n // you see the white copy.\n const content = (onFill: boolean) => (\n <motion.span\n aria-hidden={onFill || undefined}\n className=\"flex items-center justify-center gap-2 whitespace-nowrap\"\n initial={false}\n animate={{ opacity: done ? 0 : 1, scale: done && !reduce ? 0.9 : 1 }}\n transition={done ? FADE : { ...FADE, delay: 0.12 }}\n >\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n className=\"size-4 shrink-0 overflow-hidden\"\n >\n <path d=\"M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3\" />\n <motion.g\n initial={false}\n animate={\n phase === \"downloading\" && !reduce\n ? { y: [-12, 0, 3], opacity: [0, 1, 0] }\n : { y: 0, opacity: 1 }\n }\n transition={\n phase === \"downloading\" && !reduce ? { ...DROP, times: [0, 0.6, 1] } : SPRING_PRESS\n }\n >\n <path d=\"M12 3v11\" />\n <path d=\"M7.5 9.5L12 14l4.5-4.5\" />\n </motion.g>\n </svg>\n <span className=\"inline-flex items-center gap-1\">\n <TextMorph>{label}</TextMorph>\n {phase === \"downloading\" ? (\n // A fixed slot, so the label never shifts as the number grows.\n <motion.span\n className=\"inline-block w-[4ch] text-left tabular-nums\"\n initial={{ opacity: 0 }}\n animate={{ opacity: 1 }}\n transition={FADE}\n >\n {percent}%\n </motion.span>\n ) : null}\n </span>\n </motion.span>\n );\n\n return (\n <>\n <motion.button\n type=\"button\"\n aria-busy={phase === \"downloading\" || undefined}\n aria-label={done ? t(\"downloaded\") : undefined}\n whileTap={reduce || phase !== \"idle\" ? undefined : { scale: 0.96 }}\n initial={false}\n // Folds into a round badge when done, and opens back out after.\n animate={{ width: done ? ROUND : WIDE }}\n transition={{ width: reduce ? instant : SPRING_SWAP, scale: SPRING_PRESS }}\n onClick={(event) => {\n onClick?.(event);\n if (event.defaultPrevented || phase !== \"idle\") return;\n playStart();\n void start();\n }}\n className={cn(\n \"border-border bg-background text-foreground relative isolate inline-flex h-10 items-center justify-center overflow-hidden rounded-full border text-sm font-medium transition-colors duration-200\",\n \"focus-visible:ring-ring/50 focus-visible:ring-2 focus-visible:outline-none\",\n \"disabled:pointer-events-none disabled:opacity-50\",\n phase === \"idle\" && \"hover:bg-muted/60\",\n className,\n )}\n {...rest}\n >\n {content(false)}\n\n {/* The fill, clipped to the progress, with the white copy of the content on it. */}\n <motion.span\n aria-hidden=\"true\"\n className=\"bg-primary text-primary-foreground absolute inset-0 flex items-center justify-center overflow-hidden\"\n style={{ clipPath: clip, opacity: fillOpacity }}\n >\n {/* Fine stripes drifting through the fill while it works. */}\n {!reduce ? (\n <motion.span\n className=\"absolute inset-y-0 -right-4 -left-4\"\n style={{\n backgroundImage:\n \"repeating-linear-gradient(-45deg, transparent 0 6px, color-mix(in oklab, currentColor 12%, transparent) 6px 8px)\",\n }}\n initial={false}\n animate={\n phase === \"downloading\" ? { x: [0, -STRIPE], opacity: 1 } : { x: 0, opacity: 0 }\n }\n transition={phase === \"downloading\" ? { x: DRIFT, opacity: FADE } : FADE}\n />\n ) : null}\n {/* The bright leading edge, riding the front of the fill. */}\n <motion.span className=\"absolute inset-0\" style={{ x: edgeX }}>\n <motion.span\n className=\"absolute inset-y-0 right-0 w-10 bg-gradient-to-r from-transparent to-white/30\"\n initial={false}\n animate={{ opacity: phase === \"downloading\" ? 1 : 0 }}\n transition={FADE}\n />\n </motion.span>\n <span className=\"relative\">{content(true)}</span>\n </motion.span>\n\n {/* The badge's check, popping in once the pill has folded. */}\n <AnimatePresence>\n {done ? (\n <motion.svg\n key=\"check\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={2.75}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n className=\"text-primary-foreground absolute size-5\"\n initial={{ scale: reduce ? 1 : 0.4, opacity: 0 }}\n animate={{ scale: 1, opacity: 1 }}\n exit={{ scale: reduce ? 1 : 0.6, opacity: 0, transition: EXIT }}\n transition={{\n scale: reduce ? instant : POP,\n opacity: { ...FADE, delay: reduce ? 0 : 0.16 },\n }}\n >\n <motion.path\n d=\"M4.5 12.5l5 5L19.5 7\"\n initial={{ pathLength: reduce ? 1 : 0 }}\n animate={{ pathLength: 1 }}\n transition={reduce ? instant : DRAW}\n />\n </motion.svg>\n ) : null}\n </AnimatePresence>\n\n {phase === \"downloading\" ? (\n <span\n role=\"progressbar\"\n aria-label={t(\"progress\")}\n aria-valuemin={0}\n aria-valuemax={100}\n aria-valuenow={percent}\n className=\"sr-only\"\n />\n ) : null}\n </motion.button>\n <span aria-live=\"polite\" className=\"sr-only\">\n {done ? t(\"downloaded\") : \"\"}\n </span>\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;AA+BA,MAAa,yBAAyB;CACpC,UAAU;CACV,aAAa;CACb,YAAY;CACZ,UAAU;AACZ;AAqBA,MAAM,OAAO;AACb,MAAM,QAAQ;AAEd,MAAM,UAAU;AAEhB,MAAM,eAAe;AAIrB,MAAM,OAAO;CAAE,UAAU;CAAM,MAAM;AAAS;AAC9C,MAAM,OAAO;CAAE,UAAU;CAAM,MAAM;AAAS;AAE9C,MAAM,OAAO;CAAE,UAAU;CAAM,MAAM;CAAU,OAAO;AAAK;AAC3D,MAAM,MAAM;CAAE,GAAG;CAAc,OAAO;AAAK;AAE3C,MAAM,OAAO;CAAE,UAAU;CAAK,MAAM;CAAS,QAAQ,OAAO;AAAkB;AAE9E,MAAM,QAAQ;CAAE,UAAU;CAAK,MAAM;CAAU,QAAQ,OAAO;AAAkB;;;;;;;;AAShF,SAAgB,eAAe,EAC7B,YACA,QACA,QAAQ,OACR,WACA,SACA,GAAG,QACmB;CACtB,MAAM,IAAI,YAAY,kBAAkB,wBAAwB,MAAM;CACtE,MAAM,YAAY,SAAS,UAAU,EAAE,SAAS,MAAM,CAAC;CACvD,MAAM,WAAW,SAAS,cAAc,EAAE,SAAS,MAAM,CAAC;CAC1D,MAAM,SAAS,QAAQ,iBAAiB,CAAC;CACzC,MAAM,CAAC,OAAO,YAAY,SAAgB,MAAM;CAChD,MAAM,CAAC,SAAS,cAAc,SAAS,CAAC;CAIxC,MAAM,SAAS,eAAe,CAAC;CAC/B,MAAM,SAAS,UAAU,QAAQ,YAAY;CAC7C,MAAM,WAAW,SAAS,SAAS;CACnC,MAAM,QAAQ,aAAa,WAAW,UAAU,IAAI,IAAI,SAAS,IAAI,EAAE;CACvE,MAAM,OAAO,iBAAiB,WAAW,MAAM;CAG/C,MAAM,QAAQ,aAAa,WAAW,UAAU,IAAI,QAAQ,KAAK,IAAI,EAAE;CACvE,MAAM,cAAc,eAAe,CAAC;CACpC,MAAM,WAAW,OAAyC,IAAI;CAE9D,MAAM,UAAU,UAAkB;EAChC,MAAM,UAAU,KAAK,IAAI,GAAG,KAAK,IAAI,GAAG,KAAK,CAAC;EAC9C,OAAO,IAAI,OAAO;EAClB,WAAW,KAAK,MAAM,UAAU,GAAG,CAAC;CACtC;CAEA,MAAM,cAAc;EAClB,OAAO,KAAK,CAAC;EACb,OAAO,KAAK,CAAC;EACb,WAAW,CAAC;CACd;CAIA,gBAAgB;EACd,IAAI,UAAU,QAAQ;EACtB,MAAM,KAAK,iBAAiB;GAC1B,SAAS,MAAM;GACf,MAAM,QAAQ,QAAQ,aAAa,GAAG;IAAE,UAAU;IAAK,MAAM;GAAS,CAAC;GACvE,SAAS,UAAU;GACnB,MAAM,WAAW;IACf,IAAI,SAAS,YAAY,OAAO;IAChC,SAAS,UAAU;IACnB,OAAO,KAAK,CAAC;IACb,OAAO,KAAK,CAAC;IACb,WAAW,CAAC;GACd,CAAC;EACH,GAAG,OAAO;EACV,aAAa,aAAa,EAAE;CAC9B,GAAG;EAAC;EAAO;EAAa;EAAQ;CAAM,CAAC;CAEvC,MAAM,QAAQ,YAAY;EAExB,SAAS,SAAS,KAAK;EACvB,SAAS,UAAU;EACnB,MAAM;EACN,YAAY,IAAI,CAAC;EACjB,SAAS,aAAa;EACtB,IAAI;GACF,IAAI,YAAY,MAAM,WAAW,MAAM;QAClC,MAAM,QAAQ,GAAG,GAAG;IAAE,UAAU;IAAc,MAAM;IAAa,UAAU;GAAO,CAAC;EAC1F,QAAQ;GACN,YAAY,IAAI,CAAC;GACjB,MAAM;GACN,SAAS,MAAM;GACf;EACF;EACA,OAAO,CAAC;EACR,SAAS;EACT,SAAS,MAAM;CACjB;CAEA,MAAM,UAAU,EAAE,UAAU,EAAE;CAC9B,MAAM,OAAO,UAAU;CACvB,MAAM,QAAQ,EACZ,UAAU,SAAS,aAAa,UAAU,gBAAgB,gBAAgB,YAC5E;CAKA,MAAM,WAAW,WACf,qBAAC,OAAO,MAAR;EACE,eAAa,UAAU,KAAA;EACvB,WAAU;EACV,SAAS;EACT,SAAS;GAAE,SAAS,OAAO,IAAI;GAAG,OAAO,QAAQ,CAAC,SAAS,KAAM;EAAE;EACnE,YAAY,OAAO,OAAO;GAAE,GAAG;GAAM,OAAO;EAAK;EALnD,UAAA,CAOE,qBAAC,OAAD;GACE,SAAQ;GACR,MAAK;GACL,QAAO;GACP,aAAa;GACb,eAAc;GACd,gBAAe;GACf,eAAY;GACZ,WAAU;GARZ,UAAA,CAUE,oBAAC,QAAD,EAAM,GAAE,4CAA6C,CAAA,GACrD,qBAAC,OAAO,GAAR;IACE,SAAS;IACT,SACE,UAAU,iBAAiB,CAAC,SACxB;KAAE,GAAG;MAAC;MAAK;MAAG;KAAC;KAAG,SAAS;MAAC;MAAG;MAAG;KAAC;IAAE,IACrC;KAAE,GAAG;KAAG,SAAS;IAAE;IAEzB,YACE,UAAU,iBAAiB,CAAC,SAAS;KAAE,GAAG;KAAM,OAAO;MAAC;MAAG;MAAK;KAAC;IAAE,IAAI;IAR3E,UAAA,CAWE,oBAAC,QAAD,EAAM,GAAE,WAAY,CAAA,GACpB,oBAAC,QAAD,EAAM,GAAE,yBAA0B,CAAA,CAC1B;GACP,CAAA,CAAA;EACL,CAAA,GAAA,qBAAC,QAAD;GAAM,WAAU;GAAhB,UAAA,CACE,oBAAC,WAAD,EAAA,UAAY,MAAiB,CAAA,GAC5B,UAAU,gBAET,qBAAC,OAAO,MAAR;IACE,WAAU;IACV,SAAS,EAAE,SAAS,EAAE;IACtB,SAAS,EAAE,SAAS,EAAE;IACtB,YAAY;IAJd,UAAA,CAMG,SAAQ,GACE;GACX,CAAA,IAAA,IACA;EACK,CAAA,CAAA;;CAGf,OACE,qBAAA,YAAA,EAAA,UAAA,CACE,qBAAC,OAAO,QAAR;EACE,MAAK;EACL,aAAW,UAAU,iBAAiB,KAAA;EACtC,cAAY,OAAO,EAAE,YAAY,IAAI,KAAA;EACrC,UAAU,UAAU,UAAU,SAAS,KAAA,IAAY,EAAE,OAAO,IAAK;EACjE,SAAS;EAET,SAAS,EAAE,OAAO,OAAO,QAAQ,KAAK;EACtC,YAAY;GAAE,OAAO,SAAS,UAAU;GAAa,OAAO;EAAa;EACzE,UAAU,UAAU;GAClB,UAAU,KAAK;GACf,IAAI,MAAM,oBAAoB,UAAU,QAAQ;GAChD,UAAU;GACL,MAAM;EACb;EACA,WAAW,GACT,oMACA,8EACA,oDACA,UAAU,UAAU,qBACpB,SACF;EACA,GAAI;EAtBN,UAAA;GAwBG,QAAQ,KAAK;GAGd,qBAAC,OAAO,MAAR;IACE,eAAY;IACZ,WAAU;IACV,OAAO;KAAE,UAAU;KAAM,SAAS;IAAY;IAHhD,UAAA;KAMG,CAAC,SACA,oBAAC,OAAO,MAAR;MACE,WAAU;MACV,OAAO,EACL,iBACE,mHACJ;MACA,SAAS;MACT,SACE,UAAU,gBAAgB;OAAE,GAAG,CAAC,GAAG,GAAO;OAAG,SAAS;MAAE,IAAI;OAAE,GAAG;OAAG,SAAS;MAAE;MAEjF,YAAY,UAAU,gBAAgB;OAAE,GAAG;OAAO,SAAS;MAAK,IAAI;KACrE,CAAA,IACC;KAEJ,oBAAC,OAAO,MAAR;MAAa,WAAU;MAAmB,OAAO,EAAE,GAAG,MAAM;MAC1D,UAAA,oBAAC,OAAO,MAAR;OACE,WAAU;OACV,SAAS;OACT,SAAS,EAAE,SAAS,UAAU,gBAAgB,IAAI,EAAE;OACpD,YAAY;MACb,CAAA;KACU,CAAA;KACb,oBAAC,QAAD;MAAM,WAAU;MAAY,UAAA,QAAQ,IAAI;KAAQ,CAAA;IACrC;;GAGb,oBAAC,iBAAD,EAAA,UACG,OACC,oBAAC,OAAO,KAAR;IAEE,SAAQ;IACR,MAAK;IACL,QAAO;IACP,aAAa;IACb,eAAc;IACd,gBAAe;IACf,eAAY;IACZ,WAAU;IACV,SAAS;KAAE,OAAO,SAAS,IAAI;KAAK,SAAS;IAAE;IAC/C,SAAS;KAAE,OAAO;KAAG,SAAS;IAAE;IAChC,MAAM;KAAE,OAAO,SAAS,IAAI;KAAK,SAAS;KAAG,YAAY;IAAK;IAC9D,YAAY;KACV,OAAO,SAAS,UAAU;KAC1B,SAAS;MAAE,GAAG;MAAM,OAAO,SAAS,IAAI;KAAK;IAC/C;IAEA,UAAA,oBAAC,OAAO,MAAR;KACE,GAAE;KACF,SAAS,EAAE,YAAY,SAAS,IAAI,EAAE;KACtC,SAAS,EAAE,YAAY,EAAE;KACzB,YAAY,SAAS,UAAU;IAChC,CAAA;GACS,GAvBN,OAuBM,IACV,KACW,CAAA;GAEhB,UAAU,gBACT,oBAAC,QAAD;IACE,MAAK;IACL,cAAY,EAAE,UAAU;IACxB,iBAAe;IACf,iBAAe;IACf,iBAAe;IACf,WAAU;GACX,CAAA,IACC;EACS;CACf,CAAA,GAAA,oBAAC,QAAD;EAAM,aAAU;EAAS,WAAU;EAChC,UAAA,OAAO,EAAE,YAAY,IAAI;CACtB,CAAA,CACN,EAAA,CAAA;AAEN"}
|
|
@@ -5,16 +5,24 @@ export declare const drawerMessages: {
|
|
|
5
5
|
};
|
|
6
6
|
export type DrawerMessages = typeof drawerMessages;
|
|
7
7
|
export interface DrawerProps {
|
|
8
|
+
/** Whether the drawer is shown. */
|
|
8
9
|
open: boolean;
|
|
10
|
+
/** Called with false when the backdrop, Escape or a swipe closes the drawer. */
|
|
9
11
|
onOpenChange: (open: boolean) => void;
|
|
12
|
+
/** Edge of the viewport the panel slides in from. Default: "right" */
|
|
10
13
|
side?: "left" | "right";
|
|
11
14
|
children: ReactNode;
|
|
12
15
|
/** Class for the panel surface. */
|
|
13
16
|
className?: string;
|
|
14
17
|
/** Class for the backdrop. */
|
|
15
18
|
backdropClassName?: string;
|
|
19
|
+
/** Accessible name for the dialog panel. */
|
|
16
20
|
ariaLabel?: string;
|
|
17
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* Close when the backdrop is clicked, Escape is pressed, or the panel is
|
|
23
|
+
* swiped toward its edge. Default true. Mark content that must keep its own
|
|
24
|
+
* horizontal gestures with `data-drawer-no-drag`.
|
|
25
|
+
*/
|
|
18
26
|
dismissable?: boolean;
|
|
19
27
|
/** Override any built-in string. */
|
|
20
28
|
labels?: Partial<DrawerMessages>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.d.ts","names":[],"sources":["../../../src/components/motion/drawer.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"drawer.d.ts","names":[],"sources":["../../../src/components/motion/drawer.tsx"],"mappings":";;qBA+Ba;;;YAID,wBAAwB;iBAEnB;;EAEf;;EAEA,eAAe;;EAEf;EACA,UAAU;;EAEV;;EAEA;;EAEA;;;;;;EAMA;;EAEA,SAAS,QAAQ;;wBAGH,SACd,MACA,cACA,MACA,UACA,WACA,mBACA,WACA,aACA,UACC,8BAAW,IAAA"}
|
|
@@ -1,29 +1,47 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { AnimatePresence, motion, useReducedMotion } from "motion/react";
|
|
2
|
+
import { useRef } from "react";
|
|
3
|
+
import { AnimatePresence, motion, useDragControls, useReducedMotion } from "motion/react";
|
|
4
4
|
import { cn } from "@kumix/utils";
|
|
5
5
|
import { useFocusTrap } from "../../hooks/use-focus-trap.js";
|
|
6
|
-
import {
|
|
6
|
+
import { EASE_DRAWER, EASE_OUT } from "../../lib/ease.js";
|
|
7
7
|
import { useMessages } from "../../lib/i18n.js";
|
|
8
8
|
import { PresenceGate } from "../../lib/presence-gate.js";
|
|
9
|
+
import { useScrollLock } from "../../lib/scroll-lock.js";
|
|
9
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
11
|
// src/components/motion/drawer.tsx
|
|
12
|
+
const SLIDE_IN = {
|
|
13
|
+
duration: .45,
|
|
14
|
+
ease: EASE_DRAWER
|
|
15
|
+
};
|
|
16
|
+
const SLIDE_OUT = {
|
|
17
|
+
duration: .3,
|
|
18
|
+
ease: EASE_DRAWER
|
|
19
|
+
};
|
|
20
|
+
const FLING = 500;
|
|
21
|
+
const DISMISS_SHARE = .35;
|
|
22
|
+
const NO_DRAG = "input, textarea, select, [contenteditable='true'], [role='slider'], [data-drawer-no-drag]";
|
|
11
23
|
/** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */
|
|
12
24
|
const drawerMessages = { close: "Close" };
|
|
13
25
|
function Drawer({ open, onOpenChange, side = "right", children, className, backdropClassName, ariaLabel, dismissable = true, labels }) {
|
|
14
26
|
const t = useMessages("drawer", drawerMessages, labels);
|
|
15
27
|
const reduce = useReducedMotion();
|
|
16
28
|
const panelRef = useRef(null);
|
|
29
|
+
const dragControls = useDragControls();
|
|
17
30
|
useFocusTrap(open, panelRef, { onEscape: dismissable ? () => onOpenChange(false) : void 0 });
|
|
18
|
-
|
|
19
|
-
if (!open) return;
|
|
20
|
-
const prevOverflow = document.body.style.overflow;
|
|
21
|
-
document.body.style.overflow = "hidden";
|
|
22
|
-
return () => {
|
|
23
|
-
document.body.style.overflow = prevOverflow;
|
|
24
|
-
};
|
|
25
|
-
}, [open]);
|
|
31
|
+
useScrollLock(open);
|
|
26
32
|
const offscreen = side === "right" ? "100%" : "-100%";
|
|
33
|
+
const toward = side === "right" ? 1 : -1;
|
|
34
|
+
const startSwipe = (event) => {
|
|
35
|
+
if (!dismissable || event.pointerType === "mouse") return;
|
|
36
|
+
if (event.target.closest(NO_DRAG)) return;
|
|
37
|
+
dragControls.start(event);
|
|
38
|
+
};
|
|
39
|
+
const endSwipe = (_, info) => {
|
|
40
|
+
const distance = info.offset.x * toward;
|
|
41
|
+
const speed = info.velocity.x * toward;
|
|
42
|
+
const width = panelRef.current?.offsetWidth ?? 320;
|
|
43
|
+
if (speed > FLING || distance > width * DISMISS_SHARE) onOpenChange(false);
|
|
44
|
+
};
|
|
27
45
|
return /* @__PURE__ */ jsxs(AnimatePresence, { children: [open ? /* @__PURE__ */ jsx(PresenceGate, { children: ({ gate }) => /* @__PURE__ */ jsx(motion.button, {
|
|
28
46
|
type: "button",
|
|
29
47
|
"aria-label": t("close"),
|
|
@@ -31,7 +49,13 @@ function Drawer({ open, onOpenChange, side = "right", children, className, backd
|
|
|
31
49
|
onClick: () => dismissable && onOpenChange(false),
|
|
32
50
|
initial: { opacity: 0 },
|
|
33
51
|
animate: { opacity: 1 },
|
|
34
|
-
exit: {
|
|
52
|
+
exit: {
|
|
53
|
+
opacity: 0,
|
|
54
|
+
transition: {
|
|
55
|
+
duration: .2,
|
|
56
|
+
ease: EASE_OUT
|
|
57
|
+
}
|
|
58
|
+
},
|
|
35
59
|
transition: {
|
|
36
60
|
duration: .25,
|
|
37
61
|
ease: EASE_OUT
|
|
@@ -46,13 +70,39 @@ function Drawer({ open, onOpenChange, side = "right", children, className, backd
|
|
|
46
70
|
"aria-label": ariaLabel,
|
|
47
71
|
initial: reduce ? { opacity: 0 } : { x: offscreen },
|
|
48
72
|
animate: reduce ? { opacity: 1 } : { x: 0 },
|
|
49
|
-
exit: reduce ? {
|
|
73
|
+
exit: reduce ? {
|
|
74
|
+
opacity: 0,
|
|
75
|
+
transition: {
|
|
76
|
+
duration: .15,
|
|
77
|
+
ease: EASE_OUT
|
|
78
|
+
}
|
|
79
|
+
} : {
|
|
80
|
+
x: offscreen,
|
|
81
|
+
transition: SLIDE_OUT
|
|
82
|
+
},
|
|
50
83
|
transition: reduce ? {
|
|
51
84
|
duration: .2,
|
|
52
85
|
ease: EASE_OUT
|
|
53
|
-
} :
|
|
86
|
+
} : SLIDE_IN,
|
|
87
|
+
drag: "x",
|
|
88
|
+
dragControls,
|
|
89
|
+
dragListener: false,
|
|
90
|
+
dragConstraints: {
|
|
91
|
+
left: 0,
|
|
92
|
+
right: 0
|
|
93
|
+
},
|
|
94
|
+
dragElastic: side === "right" ? {
|
|
95
|
+
left: .04,
|
|
96
|
+
right: 1
|
|
97
|
+
} : {
|
|
98
|
+
left: 1,
|
|
99
|
+
right: .04
|
|
100
|
+
},
|
|
101
|
+
dragMomentum: false,
|
|
102
|
+
onPointerDown: startSwipe,
|
|
103
|
+
onDragEnd: endSwipe,
|
|
54
104
|
...gate,
|
|
55
|
-
className: cn("bg-background fixed inset-y-0 z-50 flex w-80 max-w-[85vw] flex-col shadow-
|
|
105
|
+
className: cn("bg-background fixed inset-y-0 z-50 flex w-80 max-w-[85vw] touch-pan-y flex-col shadow-[0_8px_24px_-8px_rgb(0_0_0/0.16)] outline-none", side === "right" ? "border-border right-0 rounded-l-2xl border-l" : "border-border left-0 rounded-r-2xl border-r", className),
|
|
56
106
|
children
|
|
57
107
|
}) }, "panel") : null] });
|
|
58
108
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drawer.js","names":[],"sources":["../../../src/components/motion/drawer.tsx"],"sourcesContent":["\"use client\";\n\nimport { type
|
|
1
|
+
{"version":3,"file":"drawer.js","names":[],"sources":["../../../src/components/motion/drawer.tsx"],"sourcesContent":["\"use client\";\n\nimport { type PointerEvent, type ReactNode, useRef } from \"react\";\nimport {\n AnimatePresence,\n motion,\n type PanInfo,\n useDragControls,\n useReducedMotion,\n} from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { useFocusTrap } from \"../../hooks/use-focus-trap\";\nimport { EASE_DRAWER, EASE_OUT } from \"../../lib/ease\";\nimport { useMessages } from \"../../lib/i18n\";\nimport { PresenceGate } from \"../../lib/presence-gate\";\nimport { useScrollLock } from \"../../lib/scroll-lock\";\n\n// The iOS sheet curve: one clean deceleration in, and a shorter one out, so\n// the panel leaves faster than it arrives.\nconst SLIDE_IN = { duration: 0.45, ease: EASE_DRAWER } as const;\nconst SLIDE_OUT = { duration: 0.3, ease: EASE_DRAWER } as const;\n// A flick this fast (px/s) toward the edge closes it, however short.\nconst FLING = 500;\n// Or a drag past this share of the panel's width.\nconst DISMISS_SHARE = 0.35;\n// A swipe never starts on something the finger is using.\nconst NO_DRAG =\n \"input, textarea, select, [contenteditable='true'], [role='slider'], [data-drawer-no-drag]\";\n\n/** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */\nexport const drawerMessages = {\n close: \"Close\",\n};\n\nexport type DrawerMessages = typeof drawerMessages;\n\nexport interface DrawerProps {\n /** Whether the drawer is shown. */\n open: boolean;\n /** Called with false when the backdrop, Escape or a swipe closes the drawer. */\n onOpenChange: (open: boolean) => void;\n /** Edge of the viewport the panel slides in from. Default: \"right\" */\n side?: \"left\" | \"right\";\n children: ReactNode;\n /** Class for the panel surface. */\n className?: string;\n /** Class for the backdrop. */\n backdropClassName?: string;\n /** Accessible name for the dialog panel. */\n ariaLabel?: string;\n /**\n * Close when the backdrop is clicked, Escape is pressed, or the panel is\n * swiped toward its edge. Default true. Mark content that must keep its own\n * horizontal gestures with `data-drawer-no-drag`.\n */\n dismissable?: boolean;\n /** Override any built-in string. */\n labels?: Partial<DrawerMessages>;\n}\n\nexport function Drawer({\n open,\n onOpenChange,\n side = \"right\",\n children,\n className,\n backdropClassName,\n ariaLabel,\n dismissable = true,\n labels,\n}: DrawerProps) {\n const t = useMessages(\"drawer\", drawerMessages, labels);\n const reduce = useReducedMotion();\n const panelRef = useRef<HTMLDivElement>(null);\n const dragControls = useDragControls();\n\n // Focus moves into the panel on open, Tab stays inside it, and focus returns\n // to the opener on close.\n useFocusTrap(open, panelRef, {\n onEscape: dismissable ? () => onOpenChange(false) : undefined,\n });\n\n useScrollLock(open);\n\n const offscreen = side === \"right\" ? \"100%\" : \"-100%\";\n // Positive means toward the edge the drawer leaves by.\n const toward = side === \"right\" ? 1 : -1;\n\n // Only a finger or pen swipes the panel shut; a mouse drag over it selects\n // text, as it should on a desktop.\n const startSwipe = (event: PointerEvent<HTMLDivElement>) => {\n if (!dismissable || event.pointerType === \"mouse\") return;\n if ((event.target as Element).closest(NO_DRAG)) return;\n dragControls.start(event);\n };\n\n const endSwipe = (_: unknown, info: PanInfo) => {\n const distance = info.offset.x * toward;\n const speed = info.velocity.x * toward;\n const width = panelRef.current?.offsetWidth ?? 320;\n // A quick flick is enough; a slow drag has to go a third of the way.\n if (speed > FLING || distance > width * DISMISS_SHARE) onOpenChange(false);\n };\n\n // Two fixed siblings, no wrapper: the backdrop spans the viewport edges but\n // paints the scrim, and the panel is inset off one side and paints its own\n // surface, so neither is a transparent edge-spanning layer. Both hang off\n // `PresenceGate`, so interaction releases in the same commit that starts the\n // exit rather than when it ends.\n return (\n <AnimatePresence>\n {open ? (\n <PresenceGate key=\"backdrop\">\n {({ gate }) => (\n <motion.button\n type=\"button\"\n aria-label={t(\"close\")}\n // Outside the panel, so the focus trap never lands on it; it is\n // a pointer target only.\n tabIndex={-1}\n onClick={() => dismissable && onOpenChange(false)}\n initial={{ opacity: 0 }}\n animate={{ opacity: 1 }}\n // The scrim clears faster than it settles, like the panel.\n exit={{ opacity: 0, transition: { duration: 0.2, ease: EASE_OUT } }}\n transition={{ duration: 0.25, ease: EASE_OUT }}\n {...gate}\n className={cn(\n \"fixed inset-0 z-50 h-full w-full cursor-default bg-black/40 backdrop-blur-sm\",\n backdropClassName,\n )}\n />\n )}\n </PresenceGate>\n ) : null}\n {open ? (\n <PresenceGate key=\"panel\">\n {({ gate }) => (\n <motion.div\n ref={panelRef}\n tabIndex={-1}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-label={ariaLabel}\n initial={reduce ? { opacity: 0 } : { x: offscreen }}\n animate={reduce ? { opacity: 1 } : { x: 0 }}\n exit={\n reduce\n ? { opacity: 0, transition: { duration: 0.15, ease: EASE_OUT } }\n : { x: offscreen, transition: SLIDE_OUT }\n }\n transition={reduce ? { duration: 0.2, ease: EASE_OUT } : SLIDE_IN}\n // Swipe toward the edge to close. Toward the page it meets\n // friction instead of a wall, and a short swipe springs back.\n drag=\"x\"\n dragControls={dragControls}\n dragListener={false}\n dragConstraints={{ left: 0, right: 0 }}\n dragElastic={side === \"right\" ? { left: 0.04, right: 1 } : { left: 1, right: 0.04 }}\n dragMomentum={false}\n onPointerDown={startSwipe}\n onDragEnd={endSwipe}\n {...gate}\n className={cn(\n // Vertical scrolling stays native; only a sideways swipe drags.\n \"bg-background fixed inset-y-0 z-50 flex w-80 max-w-[85vw] touch-pan-y flex-col shadow-[0_8px_24px_-8px_rgb(0_0_0/0.16)] outline-none\",\n // Only the corners facing the page are rounded; the edge\n // against the viewport stays square.\n side === \"right\"\n ? \"border-border right-0 rounded-l-2xl border-l\"\n : \"border-border left-0 rounded-r-2xl border-r\",\n className,\n )}\n >\n {children}\n </motion.div>\n )}\n </PresenceGate>\n ) : null}\n </AnimatePresence>\n );\n}\n"],"mappings":";;;;;;;;;;;AAoBA,MAAM,WAAW;CAAE,UAAU;CAAM,MAAM;AAAY;AACrD,MAAM,YAAY;CAAE,UAAU;CAAK,MAAM;AAAY;AAErD,MAAM,QAAQ;AAEd,MAAM,gBAAgB;AAEtB,MAAM,UACJ;;AAGF,MAAa,iBAAiB,EAC5B,OAAO,QACT;AA4BA,SAAgB,OAAO,EACrB,MACA,cACA,OAAO,SACP,UACA,WACA,mBACA,WACA,cAAc,MACd,UACc;CACd,MAAM,IAAI,YAAY,UAAU,gBAAgB,MAAM;CACtD,MAAM,SAAS,iBAAiB;CAChC,MAAM,WAAW,OAAuB,IAAI;CAC5C,MAAM,eAAe,gBAAgB;CAIrC,aAAa,MAAM,UAAU,EAC3B,UAAU,oBAAoB,aAAa,KAAK,IAAI,KAAA,EACtD,CAAC;CAED,cAAc,IAAI;CAElB,MAAM,YAAY,SAAS,UAAU,SAAS;CAE9C,MAAM,SAAS,SAAS,UAAU,IAAI;CAItC,MAAM,cAAc,UAAwC;EAC1D,IAAI,CAAC,eAAe,MAAM,gBAAgB,SAAS;EACnD,IAAK,MAAM,OAAmB,QAAQ,OAAO,GAAG;EAChD,aAAa,MAAM,KAAK;CAC1B;CAEA,MAAM,YAAY,GAAY,SAAkB;EAC9C,MAAM,WAAW,KAAK,OAAO,IAAI;EACjC,MAAM,QAAQ,KAAK,SAAS,IAAI;EAChC,MAAM,QAAQ,SAAS,SAAS,eAAe;EAE/C,IAAI,QAAQ,SAAS,WAAW,QAAQ,eAAe,aAAa,KAAK;CAC3E;CAOA,OACE,qBAAC,iBAAD,EAAA,UAAA,CACG,OACC,oBAAC,cAAD,EAAA,WACI,EAAE,WACF,oBAAC,OAAO,QAAR;EACE,MAAK;EACL,cAAY,EAAE,OAAO;EAGrB,UAAU;EACV,eAAe,eAAe,aAAa,KAAK;EAChD,SAAS,EAAE,SAAS,EAAE;EACtB,SAAS,EAAE,SAAS,EAAE;EAEtB,MAAM;GAAE,SAAS;GAAG,YAAY;IAAE,UAAU;IAAK,MAAM;GAAS;EAAE;EAClE,YAAY;GAAE,UAAU;GAAM,MAAM;EAAS;EAC7C,GAAI;EACJ,WAAW,GACT,gFACA,iBACF;CACD,CAAA,EAES,GArBI,UAqBJ,IACZ,MACH,OACC,oBAAC,cAAD,EAAA,WACI,EAAE,WACF,oBAAC,OAAO,KAAR;EACE,KAAK;EACL,UAAU;EACV,MAAK;EACL,cAAW;EACX,cAAY;EACZ,SAAS,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,UAAU;EAClD,SAAS,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,EAAE;EAC1C,MACE,SACI;GAAE,SAAS;GAAG,YAAY;IAAE,UAAU;IAAM,MAAM;GAAS;EAAE,IAC7D;GAAE,GAAG;GAAW,YAAY;EAAU;EAE5C,YAAY,SAAS;GAAE,UAAU;GAAK,MAAM;EAAS,IAAI;EAGzD,MAAK;EACS;EACd,cAAc;EACd,iBAAiB;GAAE,MAAM;GAAG,OAAO;EAAE;EACrC,aAAa,SAAS,UAAU;GAAE,MAAM;GAAM,OAAO;EAAE,IAAI;GAAE,MAAM;GAAG,OAAO;EAAK;EAClF,cAAc;EACd,eAAe;EACf,WAAW;EACX,GAAI;EACJ,WAAW,GAET,wIAGA,SAAS,UACL,iDACA,+CACJ,SACF;EAEC;CACS,CAAA,EAEF,GAzCI,OAyCJ,IACZ,IACW,EAAA,CAAA;AAErB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { KeyboardEvent, MutableRefObject, ReactNode } from "react";
|
|
2
|
+
type ItemTone = "default" | "destructive";
|
|
3
|
+
export interface DropdownMenuItemProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/** Called when the item is chosen by click, Enter or Space. */
|
|
6
|
+
onSelect?: () => void;
|
|
7
|
+
/** Dims the item and blocks selecting it. Default: false */
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
/** Close the whole menu after selecting. Default true. */
|
|
10
|
+
closeOnSelect?: boolean;
|
|
11
|
+
/** "destructive" tints the row for dangerous actions. Default: "default" */
|
|
12
|
+
tone?: ItemTone;
|
|
13
|
+
/** Indent to line up with rows that start with an icon. */
|
|
14
|
+
inset?: boolean;
|
|
15
|
+
/** Text matched by typeahead when the label is not plain text. */
|
|
16
|
+
textValue?: string;
|
|
17
|
+
/** Classes merged onto the item row. */
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
interface ItemBaseProps extends DropdownMenuItemProps {
|
|
21
|
+
role?: "menuitem" | "menuitemcheckbox" | "menuitemradio";
|
|
22
|
+
checked?: boolean;
|
|
23
|
+
subTrigger?: {
|
|
24
|
+
id: string;
|
|
25
|
+
open: boolean;
|
|
26
|
+
controls: string;
|
|
27
|
+
onPointerMove: (event: React.PointerEvent<HTMLButtonElement>) => void;
|
|
28
|
+
onPointerLeave: (event: React.PointerEvent<HTMLButtonElement>) => void;
|
|
29
|
+
onKeyDown: (event: KeyboardEvent<HTMLButtonElement>) => void;
|
|
30
|
+
onClick: () => void;
|
|
31
|
+
ref: MutableRefObject<HTMLElement | null>;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/** The row every item kind renders: plain, checkbox, radio and submenu trigger. */
|
|
35
|
+
export declare function ItemBase({ children, onSelect, disabled, closeOnSelect, tone, inset, textValue, className, role, checked, subTrigger }: ItemBaseProps): import("react").JSX.Element;
|
|
36
|
+
export {};
|
|
37
|
+
//# sourceMappingURL=item-base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item-base.d.ts","names":["ReactKeyboardEvent"],"sources":["../../../../src/components/motion/dropdown-menu/item-base.tsx"],"mappings":";KAcK;iBAEY;EACf,UAAU;;EAEV;;EAEA;;EAEA;;EAEA,OAAO;;EAEP;;EAEA;;EAEA;;UAGQ,sBAAsB;EAC9B;EACA;EACA;IACE;IACA;IACA;IACA,gBAAgB,OAAO,MAAM,aAAa;IAC1C,iBAAiB,OAAO,MAAM,aAAa;IAC3C,YAAY,OAAOA,cAAmB;IACtC;IACA,KAAK,iBAAiB;;;;wBAKV,WACd,UACA,UACA,UACA,eACA,MACA,OACA,WACA,WACA,MACA,SACA,cACC,gCAAa,IAAA"}
|