@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
|
@@ -12,14 +12,14 @@ export interface CylinderCarouselProps {
|
|
|
12
12
|
itemSize?: number;
|
|
13
13
|
/** How many item slots span the container width. */
|
|
14
14
|
visibleItems?: number;
|
|
15
|
-
/** "concave" (default): inside of the cylinder
|
|
16
|
-
* dipped, growing toward the edges. "convex": outside of the cylinder
|
|
15
|
+
/** "concave" (default): inside of the cylinder - center ball smallest and
|
|
16
|
+
* dipped, growing toward the edges. "convex": outside of the cylinder -
|
|
17
17
|
* center ball biggest and raised, shrinking toward the edges. */
|
|
18
18
|
variant?: "concave" | "convex";
|
|
19
19
|
/** Scale of the smallest ball (center for concave, edges for convex);
|
|
20
20
|
* the biggest reaches 1. */
|
|
21
21
|
minScale?: number;
|
|
22
|
-
/** Items rolled per item-width dragged
|
|
22
|
+
/** Items rolled per item-width dragged - above 1 the wall outruns the
|
|
23
23
|
* pointer, which reads as a lighter, freer roll. */
|
|
24
24
|
dragSpeed?: number;
|
|
25
25
|
/** Curve depth in px: for concave, how far the edge balls ride above the
|
|
@@ -32,12 +32,15 @@ export interface CylinderCarouselProps {
|
|
|
32
32
|
autoRotate?: boolean;
|
|
33
33
|
/** Auto-roll speed in items per second. */
|
|
34
34
|
autoRotateSpeed?: number;
|
|
35
|
+
/** Zero-based index of the item centered at first. Default: 0 */
|
|
35
36
|
defaultIndex?: number;
|
|
37
|
+
/** Called with the zero-based index when a new item reaches the center. */
|
|
36
38
|
onIndexChange?: (index: number) => void;
|
|
37
39
|
/** Stage height in px. Defaults to `itemSize`. */
|
|
38
40
|
height?: number;
|
|
39
41
|
/** Override any built-in string. */
|
|
40
42
|
labels?: Partial<CylinderCarouselMessages>;
|
|
43
|
+
/** Classes merged onto the root element. */
|
|
41
44
|
className?: string;
|
|
42
45
|
}
|
|
43
46
|
export declare function CylinderCarousel({ children, itemSize, visibleItems, variant, minScale, dragSpeed, arc: arcProp, snap, autoRotate, autoRotateSpeed, defaultIndex, onIndexChange, height, labels, className }: CylinderCarouselProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cylinder-carousel.d.ts","names":[],"sources":["../../../src/components/motion/cylinder-carousel.tsx"],"mappings":";;qBA2Ba;;;YAID,kCAAkC;iBAU7B;EACf,UAAU;;;;EAIV;;EAEA;;;;EAIA;;;EAGA;;;EAGA;;;;EAIA;;EAEA;;EAEA;;EAEA
|
|
1
|
+
{"version":3,"file":"cylinder-carousel.d.ts","names":[],"sources":["../../../src/components/motion/cylinder-carousel.tsx"],"mappings":";;qBA2Ba;;;YAID,kCAAkC;iBAU7B;EACf,UAAU;;;;EAIV;;EAEA;;;;EAIA;;;EAGA;;;EAGA;;;;EAIA;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,iBAAiB;;EAEjB;;EAEA,SAAS,QAAQ;;EAEjB;;wBA4Gc,mBACd,UACA,UACA,cACA,SACA,UACA,WACA,KAAK,SACL,MACA,YACA,iBACA,cACA,eACA,QACA,QACA,aACC,wCAAqB,IAAA"}
|
|
@@ -23,7 +23,7 @@ const THETA_CLAMP = 95 * Math.PI / 180;
|
|
|
23
23
|
* above the ball line, so horizontal position, size and height all share one
|
|
24
24
|
* 1/(cosθ + k) depth term. Center = far wall: smallest, highest, moving
|
|
25
25
|
* slowest; edges = nearest: full size, level, moving fastest, sliding off to
|
|
26
|
-
* be clipped. Nothing overlaps, fades or reorders
|
|
26
|
+
* be clipped. Nothing overlaps, fades or reorders - the edge is the exit.
|
|
27
27
|
*/
|
|
28
28
|
function CarouselBall({ scroll, index, count, alpha, k, projection, gap, edgeOffset, minScale, convex, arc, halfWidth, itemSize, children }) {
|
|
29
29
|
const offset = useTransform(scroll, (s) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cylinder-carousel.js","names":[],"sources":["../../../src/components/motion/cylinder-carousel.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n Children,\n type ReactNode,\n type PointerEvent as ReactPointerEvent,\n type WheelEvent as ReactWheelEvent,\n useCallback,\n useEffect,\n useRef,\n useState,\n} from \"react\";\nimport {\n type AnimationPlaybackControls,\n animate,\n type MotionValue,\n motion,\n useMotionValue,\n useReducedMotion,\n useTransform,\n} from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { useMessages } from \"../../lib/i18n\";\nimport { capturePointer, releasePointer, TOUCH_GESTURE_CLASS } from \"../../lib/touch\";\n\n/** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */\nexport const cylinderCarouselMessages = {\n roleDescription: \"carousel\",\n};\n\nexport type CylinderCarouselMessages = typeof cylinderCarouselMessages;\n\n// Carousel-specific: a soft spring that receives the release velocity, so a\n// flick keeps rolling freely, drifts past the snap point and eases back.\nconst GLIDE_SPRING = { stiffness: 40, damping: 20, mass: 3 };\n\n// How far a flick keeps rolling: projected items = release velocity * momentum.\nconst FLICK_MOMENTUM = 0.45;\nconst MAX_FLICK_ITEMS = 6;\n\nexport interface CylinderCarouselProps {\n children: ReactNode;\n /** Max item box size in px (square) at full size, i.e. at the container\n * edge. Balls shrink below this automatically so the row keeps breathing\n * room in narrow containers. */\n itemSize?: number;\n /** How many item slots span the container width. */\n visibleItems?: number;\n /** \"concave\" (default): inside of the cylinder — center ball smallest and\n * dipped, growing toward the edges. \"convex\": outside of the cylinder —\n * center ball biggest and raised, shrinking toward the edges. */\n variant?: \"concave\" | \"convex\";\n /** Scale of the smallest ball (center for concave, edges for convex);\n * the biggest reaches 1. */\n minScale?: number;\n /** Items rolled per item-width dragged — above 1 the wall outruns the\n * pointer, which reads as a lighter, freer roll. */\n dragSpeed?: number;\n /** Curve depth in px: for concave, how far the edge balls ride above the\n * center one (valley); for convex, how far below (arch). 0 = flat line.\n * Defaults to 35% of the item size. */\n arc?: number;\n /** Snap to the nearest item when the roll settles. */\n snap?: boolean;\n /** Roll on its own until interacted with. */\n autoRotate?: boolean;\n /** Auto-roll speed in items per second. */\n autoRotateSpeed?: number;\n defaultIndex?: number;\n onIndexChange?: (index: number) => void;\n /** Stage height in px. Defaults to `itemSize`. */\n height?: number;\n /** Override any built-in string. */\n labels?: Partial<CylinderCarouselMessages>;\n className?: string;\n}\n\n// The frame edge sits at this wall angle; how far the wall curves in frame.\nconst THETA_EDGE = (72 * Math.PI) / 180;\n// Wall angle past which a ball is parked far off-stage (always hidden there).\nconst THETA_CLAMP = (95 * Math.PI) / 180;\n\n/**\n * One ball on the inside wall of the cylinder, rendered through a single\n * perspective projection: the ball sits at wall angle θ, the camera slightly\n * above the ball line, so horizontal position, size and height all share one\n * 1/(cosθ + k) depth term. Center = far wall: smallest, highest, moving\n * slowest; edges = nearest: full size, level, moving fastest, sliding off to\n * be clipped. Nothing overlaps, fades or reorders — the edge is the exit.\n */\nfunction CarouselBall({\n scroll,\n index,\n count,\n alpha,\n k,\n projection,\n gap,\n edgeOffset,\n minScale,\n convex,\n arc,\n halfWidth,\n itemSize,\n children,\n}: {\n scroll: MotionValue<number>;\n index: number;\n count: number;\n /** Wall angle per item step, in radians. */\n alpha: number;\n /** Camera distance term for the horizontal projection. */\n k: number;\n /** Projection strength: maps sinθ/(cosθ+k) to px so θE lands on the edge. */\n projection: number;\n /** Uniform slot width in px — convex spacing. */\n gap: number;\n /** Offset at which a ball's center sits on the container edge. */\n edgeOffset: number;\n minScale: number;\n convex: boolean;\n /** Curve depth in px between the center ball and the edge balls. */\n arc: number;\n halfWidth: number;\n itemSize: number;\n children: ReactNode;\n}) {\n // Nearest wrapped offset so items loop around continuously.\n const offset = useTransform(scroll, (s) => {\n let o = index - s;\n o -= Math.round(o / count) * count;\n return o;\n });\n // Concave spacing follows the interior perspective (slow, tight center);\n // convex pairs its big center balls with uniform spacing — the interior\n // projection would collapse them into each other.\n const x = useTransform(offset, (o) => {\n if (convex) return o * gap;\n const th = Math.max(-THETA_CLAMP, Math.min(THETA_CLAMP, o * alpha));\n return (projection * Math.sin(th)) / (Math.cos(th) + k);\n });\n // Linear in wall angle, not in depth (the depth curve is near-flat around\n // the center, which made the middle three read as equal): every step is\n // visibly bigger than the last — growing outward (concave) or inward\n // (convex).\n const scale = useTransform(offset, (o) => {\n const t = Math.min(Math.abs(o) / edgeOffset, THETA_CLAMP / THETA_EDGE);\n return convex ? 1 - (1 - minScale) * t : minScale + (1 - minScale) * t;\n });\n // Parabola centered on the stage — valley for concave (center ball dips\n // arc/2 below the midline, edges rise arc/2 above), arch for convex — and\n // deliberately unclamped: a ball keeps following the same curve as it\n // crosses the edge, so entries never pop.\n const y = useTransform(x, (px) => {\n const t = px / halfWidth;\n const valley = arc * (0.5 - t * t);\n return convex ? -valley : valley;\n });\n // Fully off-stage balls stop painting (matters for canvas/shader children).\n const visibility = useTransform(x, (px) =>\n Math.abs(px) > halfWidth + itemSize ? \"hidden\" : \"visible\",\n );\n\n return (\n <motion.div\n className=\"absolute top-1/2 left-1/2\"\n style={{\n x,\n y,\n scale,\n visibility,\n width: itemSize,\n height: itemSize,\n marginLeft: -itemSize / 2,\n marginTop: -itemSize / 2,\n }}\n >\n {children}\n </motion.div>\n );\n}\n\nexport function CylinderCarousel({\n children,\n itemSize = 200,\n visibleItems = 5,\n variant = \"concave\",\n minScale = 0.55,\n dragSpeed = 1.5,\n arc: arcProp,\n snap = true,\n autoRotate = false,\n autoRotateSpeed = 0.4,\n defaultIndex = 0,\n onIndexChange,\n height,\n labels,\n className,\n}: CylinderCarouselProps) {\n const reduce = useReducedMotion() ?? false;\n const t = useMessages(\"cylinderCarousel\", cylinderCarouselMessages, labels);\n const items = Children.toArray(children);\n const count = items.length;\n\n const stageRef = useRef<HTMLDivElement>(null);\n const [width, setWidth] = useState(0);\n useEffect(() => {\n const el = stageRef.current;\n if (!el) return;\n const ro = new ResizeObserver(([entry]) => {\n setWidth(entry.contentRect.width);\n });\n ro.observe(el);\n return () => ro.disconnect();\n }, []);\n // Sized so `visibleItems` balls sit fully in frame and the next one out on\n // each side straddles the container edge, half visible.\n const stageWidth = width || 800;\n const halfWidth = stageWidth / 2;\n const edgeOffset = (visibleItems + 1) / 2;\n\n // Fit: the resting row's diameters may take at most ~66% of the stage — the\n // rest is air between balls plus the half-visible ball on each edge.\n // `itemSize` only caps the result.\n const convex = variant === \"convex\";\n let scaleSum = 0;\n for (let i = 0; i < visibleItems; i++) {\n const t = Math.abs(i - (visibleItems - 1) / 2) / edgeOffset;\n scaleSum += convex ? 1 - (1 - minScale) * t : minScale + (1 - minScale) * t;\n }\n const size = Math.min(itemSize, (stageWidth * 0.65) / scaleSum);\n\n const gap = stageWidth / (visibleItems + 1);\n const arc = arcProp ?? size * 0.35;\n\n // Perspective constants. The ball one slot past the frame edge sits at wall\n // angle THETA_EDGE with its center right on the container edge — scale 1,\n // half of it in view; k falls out of the requested minScale (clamped so the\n // projection stays monotonic up to THETA_CLAMP).\n const alpha = THETA_EDGE / edgeOffset;\n const k = Math.max(0.2, (minScale - Math.cos(THETA_EDGE)) / (1 - minScale));\n const projection = (halfWidth * (Math.cos(THETA_EDGE) + k)) / Math.sin(THETA_EDGE);\n\n // scroll is in item units (continuous); item i sits at x = (i - scroll) * gap.\n // Drags write it 1:1 so the wall sticks to the pointer; releases hand the\n // pointer velocity to a soft spring so the roll glides on and settles free.\n const scroll = useMotionValue(defaultIndex);\n const indexRef = useRef(defaultIndex);\n const glideRef = useRef<AnimationPlaybackControls | null>(null);\n const draggingRef = useRef(false);\n const hoverRef = useRef(false);\n\n useEffect(() => {\n if (count === 0) return;\n const unsub = scroll.on(\"change\", (v) => {\n const idx = ((Math.round(v) % count) + count) % count;\n if (idx !== indexRef.current) {\n indexRef.current = idx;\n onIndexChange?.(idx);\n }\n });\n return unsub;\n }, [scroll, count, onIndexChange]);\n\n const stopGlide = useCallback(() => {\n glideRef.current?.stop();\n glideRef.current = null;\n }, []);\n\n // Spring toward `to`, carrying `velocity` (items/s) through so motion never\n // steps — the roll leaves the finger at finger speed.\n const glideTo = useCallback(\n (to: number, velocity: number) => {\n stopGlide();\n if (reduce) {\n scroll.set(to);\n return;\n }\n glideRef.current = animate(scroll, to, {\n type: \"spring\",\n ...GLIDE_SPRING,\n velocity,\n restDelta: 0.001,\n restSpeed: 0.005,\n });\n },\n [scroll, stopGlide, reduce],\n );\n\n const settle = useCallback(\n (velocity: number) => {\n const projected =\n scroll.get() +\n Math.max(-MAX_FLICK_ITEMS, Math.min(MAX_FLICK_ITEMS, velocity * FLICK_MOMENTUM));\n glideTo(snap ? Math.round(projected) : projected, velocity);\n },\n [scroll, snap, glideTo],\n );\n\n const drag = useRef({\n startX: 0,\n startScroll: 0,\n lastX: 0,\n lastT: 0,\n prevX: 0,\n prevT: 0,\n });\n\n const onPointerDown = useCallback(\n (e: ReactPointerEvent) => {\n e.preventDefault();\n stopGlide();\n draggingRef.current = true;\n capturePointer(e.currentTarget, e.pointerId);\n const now = performance.now();\n drag.current = {\n startX: e.clientX,\n startScroll: scroll.get(),\n lastX: e.clientX,\n lastT: now,\n prevX: e.clientX,\n prevT: now,\n };\n },\n [scroll, stopGlide],\n );\n\n const onPointerMove = useCallback(\n (e: ReactPointerEvent) => {\n if (!draggingRef.current) return;\n const d = drag.current;\n scroll.set(d.startScroll - ((e.clientX - d.startX) * dragSpeed) / gap);\n d.prevX = d.lastX;\n d.prevT = d.lastT;\n d.lastX = e.clientX;\n d.lastT = performance.now();\n },\n [scroll, gap, dragSpeed],\n );\n\n const onPointerUp = useCallback(\n (e: ReactPointerEvent) => {\n if (!draggingRef.current) return;\n draggingRef.current = false;\n releasePointer(e.currentTarget, e.pointerId);\n const d = drag.current;\n const dt = d.lastT - d.prevT;\n const vpx = dt > 0 ? (d.lastX - d.prevX) / dt : 0; // px per ms\n settle((-vpx * dragSpeed * 1000) / gap); // items per second\n },\n [settle, gap, dragSpeed],\n );\n\n const rollBy = useCallback(\n (dir: number) => {\n glideTo(Math.round(scroll.get()) + dir, scroll.getVelocity());\n },\n [scroll, glideTo],\n );\n\n const wheelSettleRef = useRef<number | undefined>(undefined);\n const onWheel = useCallback(\n (e: ReactWheelEvent) => {\n stopGlide();\n const delta = Math.abs(e.deltaX) > Math.abs(e.deltaY) ? e.deltaX : e.deltaY;\n scroll.set(scroll.get() + delta / gap);\n if (wheelSettleRef.current) window.clearTimeout(wheelSettleRef.current);\n wheelSettleRef.current = window.setTimeout(() => settle(scroll.getVelocity()), 140);\n },\n [scroll, gap, settle, stopGlide],\n );\n\n useEffect(\n () => () => {\n window.clearTimeout(wheelSettleRef.current);\n stopGlide();\n },\n [stopGlide],\n );\n\n useEffect(() => {\n if (!autoRotate || reduce || count === 0) return;\n let raf = 0;\n let last = performance.now();\n const tick = (now: number) => {\n const dt = (now - last) / 1000;\n last = now;\n if (!draggingRef.current && !hoverRef.current && !glideRef.current) {\n scroll.set(scroll.get() + autoRotateSpeed * dt);\n }\n raf = requestAnimationFrame(tick);\n };\n raf = requestAnimationFrame(tick);\n return () => cancelAnimationFrame(raf);\n }, [autoRotate, autoRotateSpeed, reduce, count, scroll]);\n\n const stageHeight = height ?? size;\n\n return (\n <div\n ref={stageRef}\n role=\"application\"\n aria-roledescription={t(\"roleDescription\")}\n // biome-ignore lint/a11y/noNoninteractiveTabindex: focusable custom carousel widget\n tabIndex={0}\n onKeyDown={(e) => {\n if (e.key === \"ArrowRight\") {\n e.preventDefault();\n rollBy(1);\n } else if (e.key === \"ArrowLeft\") {\n e.preventDefault();\n rollBy(-1);\n }\n }}\n onPointerDown={onPointerDown}\n onPointerMove={onPointerMove}\n onPointerUp={onPointerUp}\n onPointerCancel={onPointerUp}\n onWheel={onWheel}\n onPointerEnter={() => {\n hoverRef.current = true;\n }}\n onPointerLeave={() => {\n hoverRef.current = false;\n }}\n className={cn(\n // clip-path, not overflow: it also clips the GPU-composited balls\n \"relative w-full touch-none outline-none [clip-path:inset(0)]\",\n // The stage drives the roll from the press itself, so iOS must not\n // claim the same touch for its callout or a slide drag.\n TOUCH_GESTURE_CLASS,\n \"cursor-grab active:cursor-grabbing\",\n \"focus-visible:ring-foreground/20 focus-visible:ring-2\",\n className,\n )}\n style={{ height: stageHeight }}\n >\n {items.map((item, i) => (\n <CarouselBall\n key={i}\n scroll={scroll}\n index={i}\n count={count}\n alpha={alpha}\n k={k}\n projection={projection}\n gap={gap}\n edgeOffset={edgeOffset}\n minScale={minScale}\n convex={convex}\n arc={arc}\n halfWidth={halfWidth}\n itemSize={size}\n >\n {item}\n </CarouselBall>\n ))}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;AA2BA,MAAa,2BAA2B,EACtC,iBAAiB,WACnB;AAMA,MAAM,eAAe;CAAE,WAAW;CAAI,SAAS;CAAI,MAAM;AAAE;AAG3D,MAAM,iBAAiB;AACvB,MAAM,kBAAkB;AAwCxB,MAAM,aAAc,KAAK,KAAK,KAAM;AAEpC,MAAM,cAAe,KAAK,KAAK,KAAM;;;;;;;;;AAUrC,SAAS,aAAa,EACpB,QACA,OACA,OACA,OACA,GACA,YACA,KACA,YACA,UACA,QACA,KACA,WACA,UACA,YAsBC;CAED,MAAM,SAAS,aAAa,SAAS,MAAM;EACzC,IAAI,IAAI,QAAQ;EAChB,KAAK,KAAK,MAAM,IAAI,KAAK,IAAI;EAC7B,OAAO;CACT,CAAC;CAID,MAAM,IAAI,aAAa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A,MAAM,sBAAsB,IAAI;EAChC,aAAa,qBAAqB,GAAG;CACvC,GAAG;EAAC;EAAY;EAAiB;EAAQ;EAAO;CAAM,CAAC;CAEvD,MAAM,cAAc,UAAU;CAE9B,OACE,oBAAC,OAAD;EACE,KAAK;EACL,MAAK;EACL,wBAAsB,EAAE,iBAAiB;EAEzC,UAAU;EACV,YAAY,MAAM;GAChB,IAAI,EAAE,QAAQ,cAAc;IAC1B,EAAE,eAAe;IACjB,OAAO,CAAC;GACV,OAAO,IAAI,EAAE,QAAQ,aAAa;IAChC,EAAE,eAAe;IACjB,OAAO,EAAE;GACX;EACF;EACe;EACA;EACF;EACb,iBAAiB;EACR;EACT,sBAAsB;GACpB,SAAS,UAAU;EACrB;EACA,sBAAsB;GACpB,SAAS,UAAU;EACrB;EACA,WAAW,GAET,gEAGA,qBACA,sCACA,yDACA,SACF;EACA,OAAO,EAAE,QAAQ,YAAY;EAE5B,UAAA,MAAM,KAAK,MAAM,MAChB,oBAAC,cAAD;GAEU;GACR,OAAO;GACA;GACA;GACJ;GACS;GACP;GACO;GACF;GACF;GACH;GACM;GACX,UAAU;GAET,UAAA;EACW,GAhBP,CAgBO,CACf;CACE,CAAA;AAET"}
|
|
1
|
+
{"version":3,"file":"cylinder-carousel.js","names":[],"sources":["../../../src/components/motion/cylinder-carousel.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n Children,\n type ReactNode,\n type PointerEvent as ReactPointerEvent,\n type WheelEvent as ReactWheelEvent,\n useCallback,\n useEffect,\n useRef,\n useState,\n} from \"react\";\nimport {\n type AnimationPlaybackControls,\n animate,\n type MotionValue,\n motion,\n useMotionValue,\n useReducedMotion,\n useTransform,\n} from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { useMessages } from \"../../lib/i18n\";\nimport { capturePointer, releasePointer, TOUCH_GESTURE_CLASS } from \"../../lib/touch\";\n\n/** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */\nexport const cylinderCarouselMessages = {\n roleDescription: \"carousel\",\n};\n\nexport type CylinderCarouselMessages = typeof cylinderCarouselMessages;\n\n// Carousel-specific: a soft spring that receives the release velocity, so a\n// flick keeps rolling freely, drifts past the snap point and eases back.\nconst GLIDE_SPRING = { stiffness: 40, damping: 20, mass: 3 };\n\n// How far a flick keeps rolling: projected items = release velocity * momentum.\nconst FLICK_MOMENTUM = 0.45;\nconst MAX_FLICK_ITEMS = 6;\n\nexport interface CylinderCarouselProps {\n children: ReactNode;\n /** Max item box size in px (square) at full size, i.e. at the container\n * edge. Balls shrink below this automatically so the row keeps breathing\n * room in narrow containers. */\n itemSize?: number;\n /** How many item slots span the container width. */\n visibleItems?: number;\n /** \"concave\" (default): inside of the cylinder - center ball smallest and\n * dipped, growing toward the edges. \"convex\": outside of the cylinder -\n * center ball biggest and raised, shrinking toward the edges. */\n variant?: \"concave\" | \"convex\";\n /** Scale of the smallest ball (center for concave, edges for convex);\n * the biggest reaches 1. */\n minScale?: number;\n /** Items rolled per item-width dragged - above 1 the wall outruns the\n * pointer, which reads as a lighter, freer roll. */\n dragSpeed?: number;\n /** Curve depth in px: for concave, how far the edge balls ride above the\n * center one (valley); for convex, how far below (arch). 0 = flat line.\n * Defaults to 35% of the item size. */\n arc?: number;\n /** Snap to the nearest item when the roll settles. */\n snap?: boolean;\n /** Roll on its own until interacted with. */\n autoRotate?: boolean;\n /** Auto-roll speed in items per second. */\n autoRotateSpeed?: number;\n /** Zero-based index of the item centered at first. Default: 0 */\n defaultIndex?: number;\n /** Called with the zero-based index when a new item reaches the center. */\n onIndexChange?: (index: number) => void;\n /** Stage height in px. Defaults to `itemSize`. */\n height?: number;\n /** Override any built-in string. */\n labels?: Partial<CylinderCarouselMessages>;\n /** Classes merged onto the root element. */\n className?: string;\n}\n\n// The frame edge sits at this wall angle; how far the wall curves in frame.\nconst THETA_EDGE = (72 * Math.PI) / 180;\n// Wall angle past which a ball is parked far off-stage (always hidden there).\nconst THETA_CLAMP = (95 * Math.PI) / 180;\n\n/**\n * One ball on the inside wall of the cylinder, rendered through a single\n * perspective projection: the ball sits at wall angle θ, the camera slightly\n * above the ball line, so horizontal position, size and height all share one\n * 1/(cosθ + k) depth term. Center = far wall: smallest, highest, moving\n * slowest; edges = nearest: full size, level, moving fastest, sliding off to\n * be clipped. Nothing overlaps, fades or reorders - the edge is the exit.\n */\nfunction CarouselBall({\n scroll,\n index,\n count,\n alpha,\n k,\n projection,\n gap,\n edgeOffset,\n minScale,\n convex,\n arc,\n halfWidth,\n itemSize,\n children,\n}: {\n scroll: MotionValue<number>;\n index: number;\n count: number;\n /** Wall angle per item step, in radians. */\n alpha: number;\n /** Camera distance term for the horizontal projection. */\n k: number;\n /** Projection strength: maps sinθ/(cosθ+k) to px so θE lands on the edge. */\n projection: number;\n /** Uniform slot width in px - convex spacing. */\n gap: number;\n /** Offset at which a ball's center sits on the container edge. */\n edgeOffset: number;\n minScale: number;\n convex: boolean;\n /** Curve depth in px between the center ball and the edge balls. */\n arc: number;\n halfWidth: number;\n itemSize: number;\n children: ReactNode;\n}) {\n // Nearest wrapped offset so items loop around continuously.\n const offset = useTransform(scroll, (s) => {\n let o = index - s;\n o -= Math.round(o / count) * count;\n return o;\n });\n // Concave spacing follows the interior perspective (slow, tight center);\n // convex pairs its big center balls with uniform spacing - the interior\n // projection would collapse them into each other.\n const x = useTransform(offset, (o) => {\n if (convex) return o * gap;\n const th = Math.max(-THETA_CLAMP, Math.min(THETA_CLAMP, o * alpha));\n return (projection * Math.sin(th)) / (Math.cos(th) + k);\n });\n // Linear in wall angle, not in depth (the depth curve is near-flat around\n // the center, which made the middle three read as equal): every step is\n // visibly bigger than the last - growing outward (concave) or inward\n // (convex).\n const scale = useTransform(offset, (o) => {\n const t = Math.min(Math.abs(o) / edgeOffset, THETA_CLAMP / THETA_EDGE);\n return convex ? 1 - (1 - minScale) * t : minScale + (1 - minScale) * t;\n });\n // Parabola centered on the stage - valley for concave (center ball dips\n // arc/2 below the midline, edges rise arc/2 above), arch for convex - and\n // deliberately unclamped: a ball keeps following the same curve as it\n // crosses the edge, so entries never pop.\n const y = useTransform(x, (px) => {\n const t = px / halfWidth;\n const valley = arc * (0.5 - t * t);\n return convex ? -valley : valley;\n });\n // Fully off-stage balls stop painting (matters for canvas/shader children).\n const visibility = useTransform(x, (px) =>\n Math.abs(px) > halfWidth + itemSize ? \"hidden\" : \"visible\",\n );\n\n return (\n <motion.div\n className=\"absolute top-1/2 left-1/2\"\n style={{\n x,\n y,\n scale,\n visibility,\n width: itemSize,\n height: itemSize,\n marginLeft: -itemSize / 2,\n marginTop: -itemSize / 2,\n }}\n >\n {children}\n </motion.div>\n );\n}\n\nexport function CylinderCarousel({\n children,\n itemSize = 200,\n visibleItems = 5,\n variant = \"concave\",\n minScale = 0.55,\n dragSpeed = 1.5,\n arc: arcProp,\n snap = true,\n autoRotate = false,\n autoRotateSpeed = 0.4,\n defaultIndex = 0,\n onIndexChange,\n height,\n labels,\n className,\n}: CylinderCarouselProps) {\n const reduce = useReducedMotion() ?? false;\n const t = useMessages(\"cylinderCarousel\", cylinderCarouselMessages, labels);\n const items = Children.toArray(children);\n const count = items.length;\n\n const stageRef = useRef<HTMLDivElement>(null);\n const [width, setWidth] = useState(0);\n useEffect(() => {\n const el = stageRef.current;\n if (!el) return;\n const ro = new ResizeObserver(([entry]) => {\n setWidth(entry.contentRect.width);\n });\n ro.observe(el);\n return () => ro.disconnect();\n }, []);\n // Sized so `visibleItems` balls sit fully in frame and the next one out on\n // each side straddles the container edge, half visible.\n const stageWidth = width || 800;\n const halfWidth = stageWidth / 2;\n const edgeOffset = (visibleItems + 1) / 2;\n\n // Fit: the resting row's diameters may take at most ~66% of the stage - the\n // rest is air between balls plus the half-visible ball on each edge.\n // `itemSize` only caps the result.\n const convex = variant === \"convex\";\n let scaleSum = 0;\n for (let i = 0; i < visibleItems; i++) {\n const t = Math.abs(i - (visibleItems - 1) / 2) / edgeOffset;\n scaleSum += convex ? 1 - (1 - minScale) * t : minScale + (1 - minScale) * t;\n }\n const size = Math.min(itemSize, (stageWidth * 0.65) / scaleSum);\n\n const gap = stageWidth / (visibleItems + 1);\n const arc = arcProp ?? size * 0.35;\n\n // Perspective constants. The ball one slot past the frame edge sits at wall\n // angle THETA_EDGE with its center right on the container edge - scale 1,\n // half of it in view; k falls out of the requested minScale (clamped so the\n // projection stays monotonic up to THETA_CLAMP).\n const alpha = THETA_EDGE / edgeOffset;\n const k = Math.max(0.2, (minScale - Math.cos(THETA_EDGE)) / (1 - minScale));\n const projection = (halfWidth * (Math.cos(THETA_EDGE) + k)) / Math.sin(THETA_EDGE);\n\n // scroll is in item units (continuous); item i sits at x = (i - scroll) * gap.\n // Drags write it 1:1 so the wall sticks to the pointer; releases hand the\n // pointer velocity to a soft spring so the roll glides on and settles free.\n const scroll = useMotionValue(defaultIndex);\n const indexRef = useRef(defaultIndex);\n const glideRef = useRef<AnimationPlaybackControls | null>(null);\n const draggingRef = useRef(false);\n const hoverRef = useRef(false);\n\n useEffect(() => {\n if (count === 0) return;\n const unsub = scroll.on(\"change\", (v) => {\n const idx = ((Math.round(v) % count) + count) % count;\n if (idx !== indexRef.current) {\n indexRef.current = idx;\n onIndexChange?.(idx);\n }\n });\n return unsub;\n }, [scroll, count, onIndexChange]);\n\n const stopGlide = useCallback(() => {\n glideRef.current?.stop();\n glideRef.current = null;\n }, []);\n\n // Spring toward `to`, carrying `velocity` (items/s) through so motion never\n // steps - the roll leaves the finger at finger speed.\n const glideTo = useCallback(\n (to: number, velocity: number) => {\n stopGlide();\n if (reduce) {\n scroll.set(to);\n return;\n }\n glideRef.current = animate(scroll, to, {\n type: \"spring\",\n ...GLIDE_SPRING,\n velocity,\n restDelta: 0.001,\n restSpeed: 0.005,\n });\n },\n [scroll, stopGlide, reduce],\n );\n\n const settle = useCallback(\n (velocity: number) => {\n const projected =\n scroll.get() +\n Math.max(-MAX_FLICK_ITEMS, Math.min(MAX_FLICK_ITEMS, velocity * FLICK_MOMENTUM));\n glideTo(snap ? Math.round(projected) : projected, velocity);\n },\n [scroll, snap, glideTo],\n );\n\n const drag = useRef({\n startX: 0,\n startScroll: 0,\n lastX: 0,\n lastT: 0,\n prevX: 0,\n prevT: 0,\n });\n\n const onPointerDown = useCallback(\n (e: ReactPointerEvent) => {\n e.preventDefault();\n stopGlide();\n draggingRef.current = true;\n capturePointer(e.currentTarget, e.pointerId);\n const now = performance.now();\n drag.current = {\n startX: e.clientX,\n startScroll: scroll.get(),\n lastX: e.clientX,\n lastT: now,\n prevX: e.clientX,\n prevT: now,\n };\n },\n [scroll, stopGlide],\n );\n\n const onPointerMove = useCallback(\n (e: ReactPointerEvent) => {\n if (!draggingRef.current) return;\n const d = drag.current;\n scroll.set(d.startScroll - ((e.clientX - d.startX) * dragSpeed) / gap);\n d.prevX = d.lastX;\n d.prevT = d.lastT;\n d.lastX = e.clientX;\n d.lastT = performance.now();\n },\n [scroll, gap, dragSpeed],\n );\n\n const onPointerUp = useCallback(\n (e: ReactPointerEvent) => {\n if (!draggingRef.current) return;\n draggingRef.current = false;\n releasePointer(e.currentTarget, e.pointerId);\n const d = drag.current;\n const dt = d.lastT - d.prevT;\n const vpx = dt > 0 ? (d.lastX - d.prevX) / dt : 0; // px per ms\n settle((-vpx * dragSpeed * 1000) / gap); // items per second\n },\n [settle, gap, dragSpeed],\n );\n\n const rollBy = useCallback(\n (dir: number) => {\n glideTo(Math.round(scroll.get()) + dir, scroll.getVelocity());\n },\n [scroll, glideTo],\n );\n\n const wheelSettleRef = useRef<number | undefined>(undefined);\n const onWheel = useCallback(\n (e: ReactWheelEvent) => {\n stopGlide();\n const delta = Math.abs(e.deltaX) > Math.abs(e.deltaY) ? e.deltaX : e.deltaY;\n scroll.set(scroll.get() + delta / gap);\n if (wheelSettleRef.current) window.clearTimeout(wheelSettleRef.current);\n wheelSettleRef.current = window.setTimeout(() => settle(scroll.getVelocity()), 140);\n },\n [scroll, gap, settle, stopGlide],\n );\n\n useEffect(\n () => () => {\n window.clearTimeout(wheelSettleRef.current);\n stopGlide();\n },\n [stopGlide],\n );\n\n useEffect(() => {\n if (!autoRotate || reduce || count === 0) return;\n let raf = 0;\n let last = performance.now();\n const tick = (now: number) => {\n const dt = (now - last) / 1000;\n last = now;\n if (!draggingRef.current && !hoverRef.current && !glideRef.current) {\n scroll.set(scroll.get() + autoRotateSpeed * dt);\n }\n raf = requestAnimationFrame(tick);\n };\n raf = requestAnimationFrame(tick);\n return () => cancelAnimationFrame(raf);\n }, [autoRotate, autoRotateSpeed, reduce, count, scroll]);\n\n const stageHeight = height ?? size;\n\n return (\n <div\n ref={stageRef}\n role=\"application\"\n aria-roledescription={t(\"roleDescription\")}\n // biome-ignore lint/a11y/noNoninteractiveTabindex: focusable custom carousel widget\n tabIndex={0}\n onKeyDown={(e) => {\n if (e.key === \"ArrowRight\") {\n e.preventDefault();\n rollBy(1);\n } else if (e.key === \"ArrowLeft\") {\n e.preventDefault();\n rollBy(-1);\n }\n }}\n onPointerDown={onPointerDown}\n onPointerMove={onPointerMove}\n onPointerUp={onPointerUp}\n onPointerCancel={onPointerUp}\n onWheel={onWheel}\n onPointerEnter={() => {\n hoverRef.current = true;\n }}\n onPointerLeave={() => {\n hoverRef.current = false;\n }}\n className={cn(\n // clip-path, not overflow: it also clips the GPU-composited balls\n \"relative w-full touch-none outline-none [clip-path:inset(0)]\",\n // The stage drives the roll from the press itself, so iOS must not\n // claim the same touch for its callout or a slide drag.\n TOUCH_GESTURE_CLASS,\n \"cursor-grab active:cursor-grabbing\",\n \"focus-visible:ring-foreground/20 focus-visible:ring-2\",\n className,\n )}\n style={{ height: stageHeight }}\n >\n {items.map((item, i) => (\n <CarouselBall\n key={i}\n scroll={scroll}\n index={i}\n count={count}\n alpha={alpha}\n k={k}\n projection={projection}\n gap={gap}\n edgeOffset={edgeOffset}\n minScale={minScale}\n convex={convex}\n arc={arc}\n halfWidth={halfWidth}\n itemSize={size}\n >\n {item}\n </CarouselBall>\n ))}\n </div>\n );\n}\n"],"mappings":";;;;;;;;;AA2BA,MAAa,2B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
|
|
1
|
+
/** The month or year grid that replaces the days while choosing. */
|
|
2
|
+
export declare function CalendarChoices({ id, label, choices, selected, focusOnMount, reduce, onClose, onSelect }: {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
/** `label` is the full name; `short` is what the grid shows. */
|
|
6
|
+
choices: {
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
short: string;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
}[];
|
|
12
|
+
selected: string;
|
|
13
|
+
focusOnMount: boolean;
|
|
14
|
+
reduce: boolean;
|
|
15
|
+
onClose: () => void;
|
|
16
|
+
onSelect: (id: string) => void;
|
|
17
|
+
}): import("react").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=calendar-choices.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-choices.d.ts","names":[],"sources":["../../../../src/components/motion/date-range-picker/calendar-choices.tsx"],"mappings":";wBASgB,kBACd,IACA,OACA,SACA,UACA,cACA,QACA,SACA;EAEA;EACA;;EAEA;IAAW;IAAY;IAAe;IAAe;;EACrD;EACA;EACA;EACA;EACA,WAAW;oBACZ,IAAA"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useLayoutEffect, useRef, useState } from "react";
|
|
3
|
+
import { motion } from "motion/react";
|
|
4
|
+
import { cn } from "@kumix/utils";
|
|
5
|
+
import { SPRING_PRESS } from "../../../lib/ease.js";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
// src/components/motion/date-range-picker/calendar-choices.tsx
|
|
8
|
+
/** The month or year grid that replaces the days while choosing. */
|
|
9
|
+
function CalendarChoices({ id, label, choices, selected, focusOnMount, reduce, onClose, onSelect }) {
|
|
10
|
+
const enabled = choices.filter((choice) => !choice.disabled);
|
|
11
|
+
const [cursor, setCursor] = useState(selected);
|
|
12
|
+
const active = enabled.find((choice) => choice.id === cursor)?.id ?? enabled.find((choice) => choice.id === selected)?.id ?? enabled[0]?.id;
|
|
13
|
+
if (cursor !== null && cursor !== active) setCursor(active ?? null);
|
|
14
|
+
const root = useRef(null);
|
|
15
|
+
useLayoutEffect(() => {
|
|
16
|
+
if (focusOnMount) root.current?.querySelector("button[tabindex=\"0\"]")?.focus({ preventScroll: true });
|
|
17
|
+
}, [focusOnMount]);
|
|
18
|
+
const onKey = (event) => {
|
|
19
|
+
if (event.altKey || event.ctrlKey || event.metaKey) return;
|
|
20
|
+
const buttons = Array.from(root.current?.querySelectorAll("button") ?? []);
|
|
21
|
+
const index = buttons.indexOf(event.currentTarget);
|
|
22
|
+
const offset = event.key === "ArrowLeft" ? -1 : event.key === "ArrowRight" ? 1 : event.key === "ArrowUp" ? -3 : event.key === "ArrowDown" ? 3 : null;
|
|
23
|
+
let target = event.key === "Home" ? 0 : event.key === "End" ? buttons.length - 1 : offset === null ? null : index + offset;
|
|
24
|
+
if (event.key === "Escape") {
|
|
25
|
+
event.preventDefault();
|
|
26
|
+
event.stopPropagation();
|
|
27
|
+
onClose();
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if (target === null) return;
|
|
31
|
+
event.preventDefault();
|
|
32
|
+
const step = offset === null ? event.key === "Home" ? 1 : -1 : Math.sign(offset);
|
|
33
|
+
while (target >= 0 && target < buttons.length && buttons[target].disabled) target += step;
|
|
34
|
+
buttons[target]?.focus({ preventScroll: true });
|
|
35
|
+
};
|
|
36
|
+
return /* @__PURE__ */ jsx("fieldset", {
|
|
37
|
+
ref: root,
|
|
38
|
+
id,
|
|
39
|
+
"aria-label": label,
|
|
40
|
+
className: "grid min-h-[15.25rem] grid-cols-3 content-start gap-2 border-0 p-0 pt-1",
|
|
41
|
+
children: choices.map((choice) => /* @__PURE__ */ jsx(motion.button, {
|
|
42
|
+
type: "button",
|
|
43
|
+
disabled: choice.disabled,
|
|
44
|
+
"aria-label": choice.label === choice.short ? void 0 : choice.label,
|
|
45
|
+
"aria-pressed": choice.id === selected,
|
|
46
|
+
tabIndex: choice.id === active ? 0 : -1,
|
|
47
|
+
onFocus: () => setCursor(choice.id),
|
|
48
|
+
onKeyDown: onKey,
|
|
49
|
+
onClick: () => onSelect(choice.id),
|
|
50
|
+
whileTap: reduce ? void 0 : { scale: .96 },
|
|
51
|
+
transition: SPRING_PRESS,
|
|
52
|
+
className: "group flex h-13 items-center justify-center text-sm tabular-nums outline-none disabled:opacity-25",
|
|
53
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
54
|
+
className: cn("group-focus-visible:ring-ring group-focus-visible:ring-offset-card inline-flex h-9 min-w-14 items-center justify-center rounded-full px-3 transition-colors group-focus-visible:ring-2 group-focus-visible:ring-offset-2", choice.id === selected ? "bg-primary text-primary-foreground font-medium" : "text-foreground group-hover:bg-muted group-disabled:group-hover:bg-transparent"),
|
|
55
|
+
children: choice.short
|
|
56
|
+
})
|
|
57
|
+
}, choice.id))
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
export { CalendarChoices };
|
|
61
|
+
|
|
62
|
+
//# sourceMappingURL=calendar-choices.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-choices.js","names":[],"sources":["../../../../src/components/motion/date-range-picker/calendar-choices.tsx"],"sourcesContent":["\"use client\";\n\nimport { type KeyboardEvent, useLayoutEffect, useRef, useState } from \"react\";\nimport { motion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { SPRING_PRESS } from \"../../../lib/ease\";\n\n/** The month or year grid that replaces the days while choosing. */\nexport function CalendarChoices({\n id,\n label,\n choices,\n selected,\n focusOnMount,\n reduce,\n onClose,\n onSelect,\n}: {\n id: string;\n label: string;\n /** `label` is the full name; `short` is what the grid shows. */\n choices: { id: string; label: string; short: string; disabled: boolean }[];\n selected: string;\n focusOnMount: boolean;\n reduce: boolean;\n onClose: () => void;\n onSelect: (id: string) => void;\n}) {\n const enabled = choices.filter((choice) => !choice.disabled);\n const [cursor, setCursor] = useState<string | null>(selected);\n const active =\n enabled.find((choice) => choice.id === cursor)?.id ??\n enabled.find((choice) => choice.id === selected)?.id ??\n enabled[0]?.id;\n if (cursor !== null && cursor !== active) setCursor(active ?? null);\n const root = useRef<HTMLFieldSetElement>(null);\n useLayoutEffect(() => {\n if (focusOnMount)\n root.current\n ?.querySelector<HTMLButtonElement>('button[tabindex=\"0\"]')\n ?.focus({ preventScroll: true });\n }, [focusOnMount]);\n const onKey = (event: KeyboardEvent<HTMLButtonElement>) => {\n if (event.altKey || event.ctrlKey || event.metaKey) return;\n const buttons = Array.from(root.current?.querySelectorAll<HTMLButtonElement>(\"button\") ?? []);\n const index = buttons.indexOf(event.currentTarget);\n const offset =\n event.key === \"ArrowLeft\"\n ? -1\n : event.key === \"ArrowRight\"\n ? 1\n : event.key === \"ArrowUp\"\n ? -3\n : event.key === \"ArrowDown\"\n ? 3\n : null;\n let target =\n event.key === \"Home\"\n ? 0\n : event.key === \"End\"\n ? buttons.length - 1\n : offset === null\n ? null\n : index + offset;\n if (event.key === \"Escape\") {\n event.preventDefault();\n event.stopPropagation();\n onClose();\n return;\n }\n if (target === null) return;\n event.preventDefault();\n const step = offset === null ? (event.key === \"Home\" ? 1 : -1) : Math.sign(offset);\n while (target >= 0 && target < buttons.length && buttons[target].disabled) target += step;\n buttons[target]?.focus({ preventScroll: true });\n };\n return (\n <fieldset\n ref={root}\n id={id}\n aria-label={label}\n className=\"grid min-h-[15.25rem] grid-cols-3 content-start gap-2 border-0 p-0 pt-1\"\n >\n {choices.map((choice) => (\n <motion.button\n key={choice.id}\n type=\"button\"\n disabled={choice.disabled}\n aria-label={choice.label === choice.short ? undefined : choice.label}\n aria-pressed={choice.id === selected}\n tabIndex={choice.id === active ? 0 : -1}\n onFocus={() => setCursor(choice.id)}\n onKeyDown={onKey}\n onClick={() => onSelect(choice.id)}\n whileTap={reduce ? undefined : { scale: 0.96 }}\n transition={SPRING_PRESS}\n // The cell stays a full-size tap target that fills the grid; only the\n // pill inside it carries the selection, hover and focus.\n className=\"group flex h-13 items-center justify-center text-sm tabular-nums outline-none disabled:opacity-25\"\n >\n <span\n className={cn(\n \"group-focus-visible:ring-ring group-focus-visible:ring-offset-card inline-flex h-9 min-w-14 items-center justify-center rounded-full px-3 transition-colors group-focus-visible:ring-2 group-focus-visible:ring-offset-2\",\n choice.id === selected\n ? \"bg-primary text-primary-foreground font-medium\"\n : \"text-foreground group-hover:bg-muted group-disabled:group-hover:bg-transparent\",\n )}\n >\n {choice.short}\n </span>\n </motion.button>\n ))}\n </fieldset>\n );\n}\n"],"mappings":";;;;;;;;AASA,SAAgB,gBAAgB,EAC9B,IACA,OACA,SACA,UACA,cACA,QACA,SACA,YAWC;CACD,MAAM,UAAU,QAAQ,QAAQ,WAAW,CAAC,OAAO,QAAQ;CAC3D,MAAM,CAAC,QAAQ,aAAa,SAAwB,QAAQ;CAC5D,MAAM,SACJ,QAAQ,MAAM,WAAW,OAAO,OAAO,MAAM,CAAC,EAAE,MAChD,QAAQ,MAAM,WAAW,OAAO,OAAO,QAAQ,CAAC,EAAE,MAClD,QAAQ,EAAE,EAAE;CACd,IAAI,WAAW,QAAQ,WAAW,QAAQ,UAAU,UAAU,IAAI;CAClE,MAAM,OAAO,OAA4B,IAAI;CAC7C,sBAAsB;EACpB,IAAI,cACF,KAAK,SACD,cAAiC,wBAAsB,CAAC,EACxD,MAAM,EAAE,eAAe,KAAK,CAAC;CACrC,GAAG,CAAC,YAAY,CAAC;CACjB,MAAM,SAAS,UAA4C;EACzD,IAAI,MAAM,UAAU,MAAM,WAAW,MAAM,SAAS;EACpD,MAAM,UAAU,MAAM,KAAK,KAAK,SAAS,iBAAoC,QAAQ,KAAK,CAAC,CAAC;EAC5F,MAAM,QAAQ,QAAQ,QAAQ,MAAM,aAAa;EACjD,MAAM,SACJ,MAAM,QAAQ,cACV,KACA,MAAM,QAAQ,eACZ,IACA,MAAM,QAAQ,YACZ,KACA,MAAM,QAAQ,cACZ,IACA;EACZ,IAAI,SACF,MAAM,QAAQ,SACV,IACA,MAAM,QAAQ,QACZ,QAAQ,SAAS,IACjB,WAAW,OACT,OACA,QAAQ;EAClB,IAAI,MAAM,QAAQ,UAAU;GAC1B,MAAM,eAAe;GACrB,MAAM,gBAAgB;GACtB,QAAQ;GACR;EACF;EACA,IAAI,WAAW,MAAM;EACrB,MAAM,eAAe;EACrB,MAAM,OAAO,WAAW,OAAQ,MAAM,QAAQ,SAAS,IAAI,KAAM,KAAK,KAAK,MAAM;EACjF,OAAO,UAAU,KAAK,SAAS,QAAQ,UAAU,QAAQ,OAAO,CAAC,UAAU,UAAU;EACrF,QAAQ,OAAO,EAAE,MAAM,EAAE,eAAe,KAAK,CAAC;CAChD;CACA,OACE,oBAAC,YAAD;EACE,KAAK;EACD;EACJ,cAAY;EACZ,WAAU;EAET,UAAA,QAAQ,KAAK,WACZ,oBAAC,OAAO,QAAR;GAEE,MAAK;GACL,UAAU,OAAO;GACjB,cAAY,OAAO,UAAU,OAAO,QAAQ,KAAA,IAAY,OAAO;GAC/D,gBAAc,OAAO,OAAO;GAC5B,UAAU,OAAO,OAAO,SAAS,IAAI;GACrC,eAAe,UAAU,OAAO,EAAE;GAClC,WAAW;GACX,eAAe,SAAS,OAAO,EAAE;GACjC,UAAU,SAAS,KAAA,IAAY,EAAE,OAAO,IAAK;GAC7C,YAAY;GAGZ,WAAU;GAEV,UAAA,oBAAC,QAAD;IACE,WAAW,GACT,4NACA,OAAO,OAAO,WACV,mDACA,gFACN;IAEC,UAAA,OAAO;GACJ,CAAA;EACO,GAzBR,OAAO,EAyBC,CAChB;CACO,CAAA;AAEd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-presence.d.ts","names":[],"sources":["../../../../src/components/motion/date-range-picker/calendar-presence.tsx"],"mappings":";wBAMgB,mBAAmB;EAAc,UAAU;oBAAW,IAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useIsPresent } from "motion/react";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
// src/components/motion/date-range-picker/calendar-presence.tsx
|
|
5
|
+
function CalendarPresence({ children }) {
|
|
6
|
+
const present = useIsPresent();
|
|
7
|
+
return /* @__PURE__ */ jsx("div", {
|
|
8
|
+
inert: !present,
|
|
9
|
+
children
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
export { CalendarPresence };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=calendar-presence.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar-presence.js","names":[],"sources":["../../../../src/components/motion/date-range-picker/calendar-presence.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { useIsPresent } from \"motion/react\";\n\n// The departing month's grid must leave the tab order as soon as exit begins.\nexport function CalendarPresence({ children }: { children: ReactNode }) {\n const present = useIsPresent();\n return <div inert={!present}>{children}</div>;\n}\n"],"mappings":";;;;AAMA,SAAgB,iBAAiB,EAAE,YAAqC;CACtE,MAAM,UAAU,aAAa;CAC7B,OAAO,oBAAC,OAAD;EAAK,OAAO,CAAC;EAAU;CAAc,CAAA;AAC9C"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export interface DateRangePickerCalendarProps extends ComponentPropsWithoutRef<"section"> {
|
|
3
|
+
/** Show the selected range summary above the default layout. Default: the root's showSummary. */
|
|
4
|
+
showSummary?: boolean;
|
|
5
|
+
}
|
|
6
|
+
/** Calendar surface; arrange or omit its summary, header, grid and footer. */
|
|
7
|
+
export declare function DateRangePickerCalendar({ children, className, showSummary, ...props }: DateRangePickerCalendarProps): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=calendar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.d.ts","names":[],"sources":["../../../../src/components/motion/date-range-picker/calendar.tsx"],"mappings":";iBAYiB,qCAAqC;;EAEpD;;;wBAIc,0BACd,UACA,WACA,gBACG,SACF,+CAA4B,IAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "@kumix/utils";
|
|
3
|
+
import { n as useDateRangePickerContext } from "../../../context-DR6jkfea.js";
|
|
4
|
+
import { a as parse } from "../../../date-utils-DVDYcEA_.js";
|
|
5
|
+
import { DateRangePickerFooter } from "./footer.js";
|
|
6
|
+
import { DateRangePickerGrid } from "./grid.js";
|
|
7
|
+
import { DateRangePickerHeader } from "./header.js";
|
|
8
|
+
import { DateRangePickerSummary } from "./summary.js";
|
|
9
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
// src/components/motion/date-range-picker/calendar.tsx
|
|
11
|
+
/** Calendar surface; arrange or omit its summary, header, grid and footer. */
|
|
12
|
+
function DateRangePickerCalendar({ children, className, showSummary, ...props }) {
|
|
13
|
+
const ctx = useDateRangePickerContext("DateRangePickerCalendar");
|
|
14
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
15
|
+
...props,
|
|
16
|
+
"aria-label": props["aria-label"] ?? ctx.label,
|
|
17
|
+
className: cn("border-border bg-background w-80 max-w-full rounded-2xl border p-3.5", className),
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ jsx("h3", {
|
|
20
|
+
id: ctx.heading,
|
|
21
|
+
"aria-live": "polite",
|
|
22
|
+
className: "sr-only",
|
|
23
|
+
children: ctx.monthFormat.format(parse(ctx.month))
|
|
24
|
+
}),
|
|
25
|
+
children === void 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
26
|
+
(showSummary ?? ctx.showSummary) && /* @__PURE__ */ jsx(DateRangePickerSummary, {}),
|
|
27
|
+
/* @__PURE__ */ jsx(DateRangePickerHeader, {}),
|
|
28
|
+
/* @__PURE__ */ jsx(DateRangePickerGrid, {}),
|
|
29
|
+
/* @__PURE__ */ jsx(DateRangePickerFooter, {})
|
|
30
|
+
] }) : children,
|
|
31
|
+
/* @__PURE__ */ jsx("p", {
|
|
32
|
+
id: ctx.help,
|
|
33
|
+
className: "sr-only",
|
|
34
|
+
children: ctx.t("help")
|
|
35
|
+
}),
|
|
36
|
+
!ctx.single && /* @__PURE__ */ jsx("span", {
|
|
37
|
+
role: "status",
|
|
38
|
+
className: "sr-only",
|
|
39
|
+
children: ctx.announcement
|
|
40
|
+
})
|
|
41
|
+
]
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
export { DateRangePickerCalendar };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=calendar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendar.js","names":[],"sources":["../../../../src/components/motion/date-range-picker/calendar.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ComponentPropsWithoutRef } from \"react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { useDateRangePickerContext } from \"./context\";\nimport { parse } from \"./date-utils\";\nimport { DateRangePickerFooter } from \"./footer\";\nimport { DateRangePickerGrid } from \"./grid\";\nimport { DateRangePickerHeader } from \"./header\";\nimport { DateRangePickerSummary } from \"./summary\";\n\nexport interface DateRangePickerCalendarProps extends ComponentPropsWithoutRef<\"section\"> {\n /** Show the selected range summary above the default layout. Default: the root's showSummary. */\n showSummary?: boolean;\n}\n\n/** Calendar surface; arrange or omit its summary, header, grid and footer. */\nexport function DateRangePickerCalendar({\n children,\n className,\n showSummary,\n ...props\n}: DateRangePickerCalendarProps) {\n const ctx = useDateRangePickerContext(\"DateRangePickerCalendar\");\n return (\n <section\n {...props}\n aria-label={props[\"aria-label\"] ?? ctx.label}\n className={cn(\n \"border-border bg-background w-80 max-w-full rounded-2xl border p-3.5\",\n className,\n )}\n >\n <h3 id={ctx.heading} aria-live=\"polite\" className=\"sr-only\">\n {ctx.monthFormat.format(parse(ctx.month))}\n </h3>\n {children === undefined ? (\n <>\n {(showSummary ?? ctx.showSummary) && <DateRangePickerSummary />}\n <DateRangePickerHeader />\n <DateRangePickerGrid />\n <DateRangePickerFooter />\n </>\n ) : (\n children\n )}\n <p id={ctx.help} className=\"sr-only\">\n {ctx.t(\"help\")}\n </p>\n {!ctx.single && (\n <span role=\"status\" className=\"sr-only\">\n {ctx.announcement}\n </span>\n )}\n </section>\n );\n}\n"],"mappings":";;;;;;;;;;;AAkBA,SAAgB,wBAAwB,EACtC,UACA,WACA,aACA,GAAG,SAC4B;CAC/B,MAAM,MAAM,0BAA0B,yBAAyB;CAC/D,OACE,qBAAC,WAAD;EACE,GAAI;EACJ,cAAY,MAAM,iBAAiB,IAAI;EACvC,WAAW,GACT,wEACA,SACF;EANF,UAAA;GAQE,oBAAC,MAAD;IAAI,IAAI,IAAI;IAAS,aAAU;IAAS,WAAU;IAC/C,UAAA,IAAI,YAAY,OAAO,MAAM,IAAI,KAAK,CAAC;GACtC,CAAA;GACH,aAAa,KAAA,IACZ,qBAAA,UAAA,EAAA,UAAA;KACI,eAAe,IAAI,gBAAgB,oBAAC,wBAAD,CAAyB,CAAA;IAC9D,oBAAC,uBAAD,CAAwB,CAAA;IACxB,oBAAC,qBAAD,CAAsB,CAAA;IACtB,oBAAC,uBAAD,CAAwB,CAAA;GACxB,EAAA,CAAA,IAEF;GAEF,oBAAC,KAAD;IAAG,IAAI,IAAI;IAAM,WAAU;IACxB,UAAA,IAAI,EAAE,MAAM;GACZ,CAAA;GACF,CAAC,IAAI,UACJ,oBAAC,QAAD;IAAM,MAAK;IAAS,WAAU;IAC3B,UAAA,IAAI;GACD,CAAA;EAED;;AAEb"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from "react";
|
|
2
|
+
export type DateRangePickerClearProps = ComponentPropsWithRef<"button">;
|
|
3
|
+
export declare function DateRangePickerClear({ children, className, onClick, disabled, ...props }: DateRangePickerClearProps): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=clear.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clear.d.ts","names":[],"sources":["../../../../src/components/motion/date-range-picker/clear.tsx"],"mappings":";YAOY,4BAA4B;wBACxB,uBACd,UACA,WACA,SACA,aACG,SACF,4CAAyB,IAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "@kumix/utils";
|
|
3
|
+
import { n as useDateRangePickerContext } from "../../../context-DR6jkfea.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
// src/components/motion/date-range-picker/clear.tsx
|
|
6
|
+
function DateRangePickerClear({ children, className, onClick, disabled, ...props }) {
|
|
7
|
+
const ctx = useDateRangePickerContext("DateRangePickerClear");
|
|
8
|
+
return /* @__PURE__ */ jsx("button", {
|
|
9
|
+
...props,
|
|
10
|
+
type: "button",
|
|
11
|
+
"aria-label": props["aria-label"] ?? ctx.t(ctx.single ? "singleClearLabel" : "clearLabel"),
|
|
12
|
+
disabled: disabled || ctx.disabled || !ctx.value,
|
|
13
|
+
className: cn("text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:ring-ring rounded-full px-2.5 py-1 text-xs transition-colors focus-visible:ring-2 focus-visible:outline-none disabled:opacity-30", className),
|
|
14
|
+
onClick: (event) => {
|
|
15
|
+
onClick?.(event);
|
|
16
|
+
if (!event.defaultPrevented) ctx.clear();
|
|
17
|
+
},
|
|
18
|
+
children: children === void 0 ? ctx.t("clear") : children
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
export { DateRangePickerClear };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=clear.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clear.js","names":[],"sources":["../../../../src/components/motion/date-range-picker/clear.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ComponentPropsWithRef } from \"react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { useDateRangePickerContext } from \"./context\";\n\nexport type DateRangePickerClearProps = ComponentPropsWithRef<\"button\">;\nexport function DateRangePickerClear({\n children,\n className,\n onClick,\n disabled,\n ...props\n}: DateRangePickerClearProps) {\n const ctx = useDateRangePickerContext(\"DateRangePickerClear\");\n return (\n <button\n {...props}\n type=\"button\"\n aria-label={props[\"aria-label\"] ?? ctx.t(ctx.single ? \"singleClearLabel\" : \"clearLabel\")}\n disabled={disabled || ctx.disabled || !ctx.value}\n className={cn(\n \"text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:ring-ring rounded-full px-2.5 py-1 text-xs transition-colors focus-visible:ring-2 focus-visible:outline-none disabled:opacity-30\",\n className,\n )}\n onClick={(event) => {\n onClick?.(event);\n if (!event.defaultPrevented) ctx.clear();\n }}\n >\n {children === undefined ? ctx.t(\"clear\") : children}\n </button>\n );\n}\n"],"mappings":";;;;;AAQA,SAAgB,qBAAqB,EACnC,UACA,WACA,SACA,UACA,GAAG,SACyB;CAC5B,MAAM,MAAM,0BAA0B,sBAAsB;CAC5D,OACE,oBAAC,UAAD;EACE,GAAI;EACJ,MAAK;EACL,cAAY,MAAM,iBAAiB,IAAI,EAAE,IAAI,SAAS,qBAAqB,YAAY;EACvF,UAAU,YAAY,IAAI,YAAY,CAAC,IAAI;EAC3C,WAAW,GACT,6MACA,SACF;EACA,UAAU,UAAU;GAClB,UAAU,KAAK;GACf,IAAI,CAAC,MAAM,kBAAkB,IAAI,MAAM;EACzC;EAEC,UAAA,aAAa,KAAA,IAAY,IAAI,EAAE,OAAO,IAAI;CACrC,CAAA;AAEZ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { r as MorphPopoverContentProps } from "../../../popover-morph-CWb4N9ux.js";
|
|
2
|
+
export interface DateRangePickerContentProps extends MorphPopoverContentProps {
|
|
3
|
+
/** Move focus to the active calendar date when opened. Default true. */
|
|
4
|
+
autoFocus?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function DateRangePickerContent({ children, className, autoFocus, onOpenAutoFocus, ...props }: DateRangePickerContentProps): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.d.ts","names":[],"sources":["../../../../src/components/motion/date-range-picker/content.tsx"],"mappings":";iBAQiB,oCAAoC;;EAEnD;;wBAWc,yBACd,UACA,WACA,WACA,oBACG,SACF,8CAA2B,IAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useLayoutEffect } from "react";
|
|
3
|
+
import { cn } from "@kumix/utils";
|
|
4
|
+
import { MorphPopoverContent } from "../popover-morph.js";
|
|
5
|
+
import { n as useDateRangePickerContext } from "../../../context-DR6jkfea.js";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
// src/components/motion/date-range-picker/content.tsx
|
|
8
|
+
function focusCalendarDate(content) {
|
|
9
|
+
const grid = Array.from(content?.querySelectorAll("[role=\"grid\"]") ?? []).find((element) => !element.closest("[inert]"));
|
|
10
|
+
(grid?.querySelector("button[tabindex=\"0\"]") ?? grid)?.focus({ preventScroll: true });
|
|
11
|
+
}
|
|
12
|
+
function DateRangePickerContent({ children, className, autoFocus = true, onOpenAutoFocus, ...props }) {
|
|
13
|
+
const ctx = useDateRangePickerContext("DateRangePickerContent");
|
|
14
|
+
useLayoutEffect(() => {
|
|
15
|
+
if (ctx.open && autoFocus) focusCalendarDate(ctx.content.current);
|
|
16
|
+
}, [
|
|
17
|
+
ctx.open,
|
|
18
|
+
ctx.content,
|
|
19
|
+
autoFocus
|
|
20
|
+
]);
|
|
21
|
+
return /* @__PURE__ */ jsx(MorphPopoverContent, {
|
|
22
|
+
align: "start",
|
|
23
|
+
shadow: false,
|
|
24
|
+
...props,
|
|
25
|
+
className: cn("w-80 max-w-[calc(100vw-1.5rem)] max-sm:[clip-path:none]!", className),
|
|
26
|
+
onOpenAutoFocus: (content) => {
|
|
27
|
+
ctx.content.current = content;
|
|
28
|
+
if (autoFocus) focusCalendarDate(content);
|
|
29
|
+
onOpenAutoFocus?.(content);
|
|
30
|
+
},
|
|
31
|
+
children
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
export { DateRangePickerContent };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content.js","names":[],"sources":["../../../../src/components/motion/date-range-picker/content.tsx"],"sourcesContent":["\"use client\";\n\nimport { useLayoutEffect } from \"react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { MorphPopoverContent, type MorphPopoverContentProps } from \"../popover-morph\";\nimport { useDateRangePickerContext } from \"./context\";\n\nexport interface DateRangePickerContentProps extends MorphPopoverContentProps {\n /** Move focus to the active calendar date when opened. Default true. */\n autoFocus?: boolean;\n}\n\nfunction focusCalendarDate(content: HTMLDivElement | null) {\n const grid = Array.from(content?.querySelectorAll<HTMLElement>('[role=\"grid\"]') ?? []).find(\n (element) => !element.closest(\"[inert]\"),\n );\n const target = grid?.querySelector<HTMLElement>('button[tabindex=\"0\"]') ?? grid;\n target?.focus({ preventScroll: true });\n}\n\nexport function DateRangePickerContent({\n children,\n className,\n autoFocus = true,\n onOpenAutoFocus,\n ...props\n}: DateRangePickerContentProps) {\n const ctx = useDateRangePickerContext(\"DateRangePickerContent\");\n useLayoutEffect(() => {\n // A rapid reopen can revive the exiting surface before it unmounts.\n // That surface already ran its positioned callback, so focus it here too.\n if (ctx.open && autoFocus) focusCalendarDate(ctx.content.current);\n }, [ctx.open, ctx.content, autoFocus]);\n return (\n <MorphPopoverContent\n align=\"start\"\n shadow={false}\n {...props}\n className={cn(\n // On phones, fade the full calendar in so the clip cannot hide controls\n // or cut their tap targets while the panel is visible.\n \"w-80 max-w-[calc(100vw-1.5rem)] max-sm:[clip-path:none]!\",\n className,\n )}\n onOpenAutoFocus={(content) => {\n ctx.content.current = content;\n if (autoFocus) focusCalendarDate(content);\n onOpenAutoFocus?.(content);\n }}\n >\n {children}\n </MorphPopoverContent>\n );\n}\n"],"mappings":";;;;;;;AAaA,SAAS,kBAAkB,SAAgC;CACzD,MAAM,OAAO,MAAM,KAAK,SAAS,iBAA8B,iBAAe,KAAK,CAAC,CAAC,CAAC,CAAC,MACpF,YAAY,CAAC,QAAQ,QAAQ,SAAS,CACzC;CAEA,CADe,MAAM,cAA2B,wBAAsB,KAAK,KAAA,EACnE,MAAM,EAAE,eAAe,KAAK,CAAC;AACvC;AAEA,SAAgB,uBAAuB,EACrC,UACA,WACA,YAAY,MACZ,iBACA,GAAG,SAC2B;CAC9B,MAAM,MAAM,0BAA0B,wBAAwB;CAC9D,sBAAsB;EAGpB,IAAI,IAAI,QAAQ,WAAW,kBAAkB,IAAI,QAAQ,OAAO;CAClE,GAAG;EAAC,IAAI;EAAM,IAAI;EAAS;CAAS,CAAC;CACrC,OACE,oBAAC,qBAAD;EACE,OAAM;EACN,QAAQ;EACR,GAAI;EACJ,WAAW,GAGT,4DACA,SACF;EACA,kBAAkB,YAAY;GAC5B,IAAI,QAAQ,UAAU;GACtB,IAAI,WAAW,kBAAkB,OAAO;GACxC,kBAAkB,OAAO;EAC3B;EAEC;CACkB,CAAA;AAEzB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { n as DateRangePickerProps } from "../../../types-BnHpfLje.js";
|
|
2
|
+
export interface DateRangePickerDropdownProps extends Omit<DateRangePickerProps, "children"> {
|
|
3
|
+
/** Trigger text while no range is picked. Default: "Select dates" */
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
/** Classes merged onto the trigger button. */
|
|
6
|
+
triggerClassName?: string;
|
|
7
|
+
/** Classes merged onto the calendar. */
|
|
8
|
+
calendarClassName?: string;
|
|
9
|
+
}
|
|
10
|
+
/** Convenience composition of the root, trigger, content and calendar. */
|
|
11
|
+
export declare function DateRangePickerDropdown({ placeholder, triggerClassName, calendarClassName, autoFocus, showSummary, ...props }: DateRangePickerDropdownProps): import("react").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=dropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown.d.ts","names":[],"sources":["../../../../src/components/motion/date-range-picker/dropdown.tsx"],"mappings":";iBASiB,qCAAqC,KAAK;;EAEzD;;EAEA;;EAEA;;;wBAGc,0BACd,aACA,kBACA,mBACA,WACA,gBACG,SACF,+CAA4B,IAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "@kumix/utils";
|
|
3
|
+
import { DateRangePickerCalendar } from "./calendar.js";
|
|
4
|
+
import { DateRangePickerContent } from "./content.js";
|
|
5
|
+
import { t as DateRangePicker } from "../../../root-C1n8-uIA.js";
|
|
6
|
+
import { DateRangePickerTrigger } from "./trigger.js";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
// src/components/motion/date-range-picker/dropdown.tsx
|
|
9
|
+
/** Convenience composition of the root, trigger, content and calendar. */
|
|
10
|
+
function DateRangePickerDropdown({ placeholder, triggerClassName, calendarClassName, autoFocus = true, showSummary = false, ...props }) {
|
|
11
|
+
return /* @__PURE__ */ jsxs(DateRangePicker, {
|
|
12
|
+
...props,
|
|
13
|
+
autoFocus,
|
|
14
|
+
showSummary,
|
|
15
|
+
children: [/* @__PURE__ */ jsx(DateRangePickerTrigger, {
|
|
16
|
+
placeholder,
|
|
17
|
+
className: triggerClassName
|
|
18
|
+
}), /* @__PURE__ */ jsx(DateRangePickerContent, {
|
|
19
|
+
autoFocus,
|
|
20
|
+
children: /* @__PURE__ */ jsx(DateRangePickerCalendar, { className: cn("w-full rounded-none border-0", calendarClassName) })
|
|
21
|
+
})]
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
export { DateRangePickerDropdown };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=dropdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown.js","names":[],"sources":["../../../../src/components/motion/date-range-picker/dropdown.tsx"],"sourcesContent":["\"use client\";\n\nimport { cn } from \"@kumix/utils\";\nimport { DateRangePickerCalendar } from \"./calendar\";\nimport { DateRangePickerContent } from \"./content\";\nimport { DateRangePicker } from \"./root\";\nimport { DateRangePickerTrigger } from \"./trigger\";\nimport type { DateRangePickerProps } from \"./types\";\n\nexport interface DateRangePickerDropdownProps extends Omit<DateRangePickerProps, \"children\"> {\n /** Trigger text while no range is picked. Default: \"Select dates\" */\n placeholder?: string;\n /** Classes merged onto the trigger button. */\n triggerClassName?: string;\n /** Classes merged onto the calendar. */\n calendarClassName?: string;\n}\n/** Convenience composition of the root, trigger, content and calendar. */\nexport function DateRangePickerDropdown({\n placeholder,\n triggerClassName,\n calendarClassName,\n autoFocus = true,\n showSummary = false,\n ...props\n}: DateRangePickerDropdownProps) {\n return (\n <DateRangePicker {...props} autoFocus={autoFocus} showSummary={showSummary}>\n <DateRangePickerTrigger placeholder={placeholder} className={triggerClassName} />\n <DateRangePickerContent autoFocus={autoFocus}>\n <DateRangePickerCalendar\n className={cn(\"w-full rounded-none border-0\", calendarClassName)}\n />\n </DateRangePickerContent>\n </DateRangePicker>\n );\n}\n"],"mappings":";;;;;;;;;AAkBA,SAAgB,wBAAwB,EACtC,aACA,kBACA,mBACA,YAAY,MACZ,cAAc,OACd,GAAG,SAC4B;CAC/B,OACE,qBAAC,iBAAD;EAAiB,GAAI;EAAkB;EAAwB;EAA/D,UAAA,CACE,oBAAC,wBAAD;GAAqC;GAAa,WAAW;EAAmB,CAAA,GAChF,oBAAC,wBAAD;GAAmC;GACjC,UAAA,oBAAC,yBAAD,EACE,WAAW,GAAG,gCAAgC,iBAAiB,EAChE,CAAA;EACqB,CAAA,CACT;;AAErB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export type DateRangePickerFooterProps = ComponentPropsWithoutRef<"div">;
|
|
3
|
+
export declare function DateRangePickerFooter({ children, className, ...props }: DateRangePickerFooterProps): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=footer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footer.d.ts","names":[],"sources":["../../../../src/components/motion/date-range-picker/footer.tsx"],"mappings":";YASY,6BAA6B;wBACzB,wBACd,UACA,cACG,SACF,6CAA0B,IAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn } from "@kumix/utils";
|
|
3
|
+
import { DateRangePickerClear } from "./clear.js";
|
|
4
|
+
import { DateRangePickerPresets } from "./presets.js";
|
|
5
|
+
import { DateRangePickerSelection } from "./selection.js";
|
|
6
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
// src/components/motion/date-range-picker/footer.tsx
|
|
8
|
+
function DateRangePickerFooter({ children, className, ...props }) {
|
|
9
|
+
return /* @__PURE__ */ jsx("div", {
|
|
10
|
+
...props,
|
|
11
|
+
className: cn("border-border mt-2.5 border-t pt-2.5", className),
|
|
12
|
+
children: children === void 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("div", {
|
|
13
|
+
className: "flex items-center justify-between gap-2",
|
|
14
|
+
children: [/* @__PURE__ */ jsx(DateRangePickerSelection, {}), /* @__PURE__ */ jsx(DateRangePickerClear, { className: "ms-auto" })]
|
|
15
|
+
}), /* @__PURE__ */ jsx(DateRangePickerPresets, {})] }) : children
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
export { DateRangePickerFooter };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=footer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"footer.js","names":[],"sources":["../../../../src/components/motion/date-range-picker/footer.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ComponentPropsWithoutRef } from \"react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { DateRangePickerClear } from \"./clear\";\nimport { DateRangePickerPresets } from \"./presets\";\nimport { DateRangePickerSelection } from \"./selection\";\n\nexport type DateRangePickerFooterProps = ComponentPropsWithoutRef<\"div\">;\nexport function DateRangePickerFooter({\n children,\n className,\n ...props\n}: DateRangePickerFooterProps) {\n return (\n <div {...props} className={cn(\"border-border mt-2.5 border-t pt-2.5\", className)}>\n {children === undefined ? (\n <>\n <div className=\"flex items-center justify-between gap-2\">\n <DateRangePickerSelection />\n <DateRangePickerClear className=\"ms-auto\" />\n </div>\n <DateRangePickerPresets />\n </>\n ) : (\n children\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;;AAUA,SAAgB,sBAAsB,EACpC,UACA,WACA,GAAG,SAC0B;CAC7B,OACE,oBAAC,OAAD;EAAK,GAAI;EAAO,WAAW,GAAG,wCAAwC,SAAS;EAC5E,UAAA,aAAa,KAAA,IACZ,qBAAA,UAAA,EAAA,UAAA,CACE,qBAAC,OAAD;GAAK,WAAU;GAAf,UAAA,CACE,oBAAC,0BAAD,CAA2B,CAAA,GAC3B,oBAAC,sBAAD,EAAsB,WAAU,UAAW,CAAA,CACxC;EACL,CAAA,GAAA,oBAAC,wBAAD,CAAyB,CAAA,CACzB,EAAA,CAAA,IAEF;CAEC,CAAA;AAET"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
export type DateRangePickerGridProps = Omit<ComponentPropsWithoutRef<"div">, "children">;
|
|
3
|
+
export declare function DateRangePickerGrid({ className, onPointerLeave, ...props }: DateRangePickerGridProps): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.d.ts","names":[],"sources":["../../../../src/components/motion/date-range-picker/grid.tsx"],"mappings":";YAyBY,2BAA2B,KAAK;wBAC5B,sBACd,WACA,mBACG,SACF,2CAAwB,IAAA"}
|