@kumix/ui 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -47
- package/dist/animated-sidebar-CPdrqoGi.js +310 -0
- package/dist/animated-sidebar-CPdrqoGi.js.map +1 -0
- package/dist/animated-toast-stack-Cbdphi9x.d.ts +62 -0
- package/dist/animated-toast-stack-Cbdphi9x.d.ts.map +1 -0
- package/dist/animated-toast-stack-YcjQ2Uaw.js +568 -0
- package/dist/animated-toast-stack-YcjQ2Uaw.js.map +1 -0
- package/dist/components/agents/agent-activity/activity-row.d.ts +1 -1
- package/dist/components/agents/agent-activity/activity-row.d.ts.map +1 -1
- package/dist/components/agents/agent-activity/activity-row.js +31 -26
- package/dist/components/agents/agent-activity/activity-row.js.map +1 -1
- package/dist/components/agents/{agent-activity/index.d.ts → agent-activity.d.ts} +2 -2
- package/dist/components/agents/agent-activity.d.ts.map +1 -0
- package/dist/components/agents/{agent-activity/index.js → agent-activity.js} +13 -27
- package/dist/components/agents/agent-activity.js.map +1 -0
- package/dist/components/agents/agent-code.d.ts.map +1 -1
- package/dist/components/agents/agent-code.js +42 -16
- package/dist/components/agents/agent-code.js.map +1 -1
- package/dist/components/agents/agent-disclosure.d.ts +7 -2
- package/dist/components/agents/agent-disclosure.d.ts.map +1 -1
- package/dist/components/agents/agent-disclosure.js +15 -3
- package/dist/components/agents/agent-disclosure.js.map +1 -1
- package/dist/components/agents/ai-sidebar/marquee-label.d.ts +6 -0
- package/dist/components/agents/ai-sidebar/marquee-label.d.ts.map +1 -0
- package/dist/components/agents/ai-sidebar/marquee-label.js +55 -0
- package/dist/components/agents/ai-sidebar/marquee-label.js.map +1 -0
- package/dist/components/agents/ai-sidebar/resource-menu-action.d.ts +8 -0
- package/dist/components/agents/ai-sidebar/resource-menu-action.d.ts.map +1 -0
- package/dist/components/agents/ai-sidebar/resource-menu-action.js +20 -0
- package/dist/components/agents/ai-sidebar/resource-menu-action.js.map +1 -0
- package/dist/components/agents/ai-sidebar/resource-row.d.ts +32 -0
- package/dist/components/agents/ai-sidebar/resource-row.d.ts.map +1 -0
- package/dist/components/agents/ai-sidebar/resource-row.js +2 -0
- package/dist/components/agents/ai-sidebar.d.ts +2 -74
- package/dist/components/agents/ai-sidebar.d.ts.map +1 -1
- package/dist/components/agents/ai-sidebar.js +16 -332
- package/dist/components/agents/ai-sidebar.js.map +1 -1
- package/dist/components/agents/{approval-card/index.d.ts → approval-card.d.ts} +31 -1
- package/dist/components/agents/approval-card.d.ts.map +1 -0
- package/dist/components/agents/{approval-card/index.js → approval-card.js} +160 -80
- package/dist/components/agents/approval-card.js.map +1 -0
- package/dist/components/agents/chat-app.d.ts +1 -1
- package/dist/components/agents/chat-app.d.ts.map +1 -1
- package/dist/components/agents/chat-app.js +9 -6
- package/dist/components/agents/chat-app.js.map +1 -1
- package/dist/components/agents/citations.d.ts +24 -1
- package/dist/components/agents/citations.d.ts.map +1 -1
- package/dist/components/agents/citations.js +54 -9
- package/dist/components/agents/citations.js.map +1 -1
- package/dist/components/agents/clip-resize-frame.d.ts +31 -0
- package/dist/components/agents/clip-resize-frame.d.ts.map +1 -0
- package/dist/components/agents/clip-resize-frame.js +103 -0
- package/dist/components/agents/clip-resize-frame.js.map +1 -0
- package/dist/components/agents/code-block.d.ts +11 -0
- package/dist/components/agents/code-block.d.ts.map +1 -1
- package/dist/components/agents/code-block.js +34 -26
- package/dist/components/agents/code-block.js.map +1 -1
- package/dist/components/agents/context-meter.d.ts +53 -0
- package/dist/components/agents/context-meter.d.ts.map +1 -0
- package/dist/components/agents/context-meter.js +443 -0
- package/dist/components/agents/context-meter.js.map +1 -0
- package/dist/components/agents/file-diff.d.ts +17 -0
- package/dist/components/agents/file-diff.d.ts.map +1 -1
- package/dist/components/agents/file-diff.js +114 -82
- package/dist/components/agents/file-diff.js.map +1 -1
- package/dist/components/agents/icon-swap.d.ts +14 -0
- package/dist/components/agents/icon-swap.d.ts.map +1 -0
- package/dist/components/agents/icon-swap.js +41 -0
- package/dist/components/agents/icon-swap.js.map +1 -0
- package/dist/components/agents/image-generation.d.ts +10 -0
- package/dist/components/agents/image-generation.d.ts.map +1 -1
- package/dist/components/agents/image-generation.js +10 -6
- package/dist/components/agents/image-generation.js.map +1 -1
- package/dist/components/agents/loading-states/agent-progress.d.ts +1 -0
- package/dist/components/agents/loading-states/agent-progress.d.ts.map +1 -1
- package/dist/components/agents/loading-states/agent-progress.js.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.d.ts +1 -0
- package/dist/components/agents/loading-states/reasoning-text.d.ts.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.js +30 -7
- package/dist/components/agents/loading-states/reasoning-text.js.map +1 -1
- package/dist/components/agents/loading-states/thinking-shimmer.d.ts +1 -0
- package/dist/components/agents/loading-states/thinking-shimmer.d.ts.map +1 -1
- package/dist/components/agents/loading-states/thinking-shimmer.js.map +1 -1
- package/dist/components/agents/message-bubble.d.ts +10 -0
- package/dist/components/agents/message-bubble.d.ts.map +1 -1
- package/dist/components/agents/message-bubble.js +59 -39
- package/dist/components/agents/message-bubble.js.map +1 -1
- package/dist/components/agents/message-scroller.d.ts +10 -1
- package/dist/components/agents/message-scroller.d.ts.map +1 -1
- package/dist/components/agents/message-scroller.js +81 -16
- package/dist/components/agents/message-scroller.js.map +1 -1
- package/dist/components/agents/message.d.ts +3 -0
- package/dist/components/agents/message.d.ts.map +1 -1
- package/dist/components/agents/message.js +3 -3
- package/dist/components/agents/message.js.map +1 -1
- package/dist/components/agents/prompt-input.d.ts +41 -1
- package/dist/components/agents/prompt-input.d.ts.map +1 -1
- package/dist/components/agents/prompt-input.js +356 -93
- package/dist/components/agents/prompt-input.js.map +1 -1
- package/dist/components/agents/streaming-response.d.ts +12 -0
- package/dist/components/agents/streaming-response.d.ts.map +1 -1
- package/dist/components/agents/streaming-response.js +35 -28
- package/dist/components/agents/streaming-response.js.map +1 -1
- package/dist/components/agents/todo-list.d.ts +13 -0
- package/dist/components/agents/todo-list.d.ts.map +1 -1
- package/dist/components/agents/todo-list.js +114 -98
- package/dist/components/agents/todo-list.js.map +1 -1
- package/dist/components/agents/tool-approval.d.ts +18 -0
- package/dist/components/agents/tool-approval.d.ts.map +1 -1
- package/dist/components/agents/tool-approval.js +48 -22
- package/dist/components/agents/tool-approval.js.map +1 -1
- package/dist/components/agents/tool-result.d.ts +18 -0
- package/dist/components/agents/tool-result.d.ts.map +1 -1
- package/dist/components/agents/tool-result.js +48 -59
- package/dist/components/agents/tool-result.js.map +1 -1
- package/dist/components/agents/voice-note.d.ts +37 -0
- package/dist/components/agents/voice-note.d.ts.map +1 -0
- package/dist/components/agents/voice-note.js +326 -0
- package/dist/components/agents/voice-note.js.map +1 -0
- package/dist/components/charts/bar-chart/context.d.ts +12 -4
- package/dist/components/charts/bar-chart/context.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/context.js +3 -1
- package/dist/components/charts/bar-chart/context.js.map +1 -1
- package/dist/components/charts/bar-chart/legend.d.ts +1 -0
- package/dist/components/charts/bar-chart/legend.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/legend.js.map +1 -1
- package/dist/components/charts/bar-chart/plot.d.ts +2 -0
- package/dist/components/charts/bar-chart/plot.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/plot.js +2 -2
- package/dist/components/charts/bar-chart/plot.js.map +1 -1
- package/dist/components/charts/bar-chart/tooltip.d.ts +2 -0
- package/dist/components/charts/bar-chart/tooltip.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/tooltip.js +1 -1
- package/dist/components/charts/bar-chart/tooltip.js.map +1 -1
- package/dist/components/charts/bar-chart.d.ts +1 -1
- package/dist/components/charts/bump-chart/context.d.ts +1 -1
- package/dist/components/charts/bump-chart/context.js +1 -1
- package/dist/components/charts/bump-chart/legend.js +5 -5
- package/dist/components/charts/bump-chart/legend.js.map +1 -1
- package/dist/components/charts/bump-chart/plot.js +1 -1
- package/dist/components/charts/bump-chart/point.js +5 -5
- package/dist/components/charts/bump-chart/point.js.map +1 -1
- package/dist/components/charts/bump-chart/series.d.ts +1 -1
- package/dist/components/charts/bump-chart/series.js +2 -2
- package/dist/components/charts/bump-chart/series.js.map +1 -1
- package/dist/components/charts/bump-chart.d.ts +1 -1
- package/dist/components/charts/bump-chart.js +2 -2
- package/dist/components/charts/candlestick-chart/context.d.ts +11 -0
- package/dist/components/charts/candlestick-chart/context.d.ts.map +1 -1
- package/dist/components/charts/candlestick-chart/context.js.map +1 -1
- package/dist/components/charts/candlestick-chart/plot.js +2 -2
- package/dist/components/charts/candlestick-chart/plot.js.map +1 -1
- package/dist/components/charts/composition-chart/context.d.ts +1 -1
- package/dist/components/charts/composition-chart/legend.js +1 -1
- package/dist/components/charts/composition-chart/legend.js.map +1 -1
- package/dist/components/charts/composition-chart/plot.js +1 -1
- package/dist/components/charts/composition-chart.d.ts +1 -1
- package/dist/components/charts/donut-chart/center.d.ts +1 -1
- package/dist/components/charts/donut-chart/context.d.ts +6 -1
- package/dist/components/charts/donut-chart/context.d.ts.map +1 -1
- package/dist/components/charts/donut-chart/legend.d.ts +1 -1
- package/dist/components/charts/donut-chart.d.ts +1 -1
- package/dist/components/charts/funnel-chart.d.ts +8 -0
- package/dist/components/charts/funnel-chart.d.ts.map +1 -1
- package/dist/components/charts/funnel-chart.js +8 -8
- package/dist/components/charts/funnel-chart.js.map +1 -1
- package/dist/components/charts/heat-calendar/grid.js +2 -2
- package/dist/components/charts/heat-calendar/grid.js.map +1 -1
- package/dist/components/charts/heat-calendar/legend.js +1 -1
- package/dist/components/charts/heat-calendar/tooltip.d.ts +1 -1
- package/dist/components/charts/heat-calendar/tooltip.js +2 -2
- package/dist/components/charts/heat-calendar.d.ts +1 -1
- package/dist/components/charts/heat-calendar.js +1 -1
- package/dist/components/charts/line-chart/context.d.ts +12 -4
- package/dist/components/charts/line-chart/context.d.ts.map +1 -1
- package/dist/components/charts/line-chart/context.js +3 -1
- package/dist/components/charts/line-chart/context.js.map +1 -1
- package/dist/components/charts/line-chart/legend.d.ts +1 -0
- package/dist/components/charts/line-chart/legend.d.ts.map +1 -1
- package/dist/components/charts/line-chart/legend.js.map +1 -1
- package/dist/components/charts/line-chart/plot.d.ts +2 -0
- package/dist/components/charts/line-chart/plot.d.ts.map +1 -1
- package/dist/components/charts/line-chart/plot.js +3 -3
- package/dist/components/charts/line-chart/plot.js.map +1 -1
- package/dist/components/charts/line-chart/tooltip.d.ts +1 -0
- package/dist/components/charts/line-chart/tooltip.d.ts.map +1 -1
- package/dist/components/charts/line-chart/tooltip.js.map +1 -1
- package/dist/components/charts/line-chart.d.ts +1 -1
- package/dist/components/charts/liquidity-heatmap.d.ts +8 -0
- package/dist/components/charts/liquidity-heatmap.d.ts.map +1 -1
- package/dist/components/charts/liquidity-heatmap.js +4 -4
- package/dist/components/charts/liquidity-heatmap.js.map +1 -1
- package/dist/components/charts/order-book/depth-row.d.ts +1 -1
- package/dist/components/charts/order-book.d.ts +14 -2
- package/dist/components/charts/order-book.d.ts.map +1 -1
- package/dist/components/charts/order-book.js +6 -6
- package/dist/components/charts/order-book.js.map +1 -1
- package/dist/components/charts/price-target-fan/header.js +2 -2
- package/dist/components/charts/price-target-fan/header.js.map +1 -1
- package/dist/components/charts/price-target-fan/plot.js +1 -1
- package/dist/components/charts/price-target-fan/series.js +1 -1
- package/dist/components/charts/price-target-fan/tooltip.d.ts +1 -1
- package/dist/components/charts/price-target-fan/tooltip.js +3 -3
- package/dist/components/charts/price-target-fan/tooltip.js.map +1 -1
- package/dist/components/charts/price-target-fan.d.ts +1 -1
- package/dist/components/charts/price-target-fan.js +1 -1
- package/dist/components/charts/returns-calendar/grid.js +10 -7
- package/dist/components/charts/returns-calendar/grid.js.map +1 -1
- package/dist/components/charts/returns-calendar/tooltip.d.ts +1 -1
- package/dist/components/charts/returns-calendar/tooltip.js +2 -2
- package/dist/components/charts/returns-calendar/tooltip.js.map +1 -1
- package/dist/components/charts/returns-calendar.d.ts +1 -1
- package/dist/components/charts/returns-calendar.d.ts.map +1 -1
- package/dist/components/charts/returns-calendar.js +1 -1
- package/dist/components/charts/sankey-chart/context.d.ts +1 -1
- package/dist/components/charts/sankey-chart/context.js +1 -1
- package/dist/components/charts/sankey-chart/plot.d.ts.map +1 -1
- package/dist/components/charts/sankey-chart/plot.js +10 -32
- package/dist/components/charts/sankey-chart/plot.js.map +1 -1
- package/dist/components/charts/sankey-chart/tooltip.d.ts +3 -1
- package/dist/components/charts/sankey-chart/tooltip.d.ts.map +1 -1
- package/dist/components/charts/sankey-chart/tooltip.js +2 -2
- package/dist/components/charts/sankey-chart/tooltip.js.map +1 -1
- package/dist/components/charts/sankey-chart.d.ts +1 -1
- package/dist/components/charts/sankey-chart.js +1 -1
- package/dist/components/charts/sparkline.d.ts +4 -0
- package/dist/components/charts/sparkline.d.ts.map +1 -1
- package/dist/components/charts/sparkline.js +3 -3
- package/dist/components/charts/sparkline.js.map +1 -1
- package/dist/components/charts/status-bar/legend.d.ts +1 -0
- package/dist/components/charts/status-bar/legend.d.ts.map +1 -1
- package/dist/components/charts/status-bar/legend.js +1 -1
- package/dist/components/charts/status-bar/legend.js.map +1 -1
- package/dist/components/charts/status-bar/plot.d.ts +2 -0
- package/dist/components/charts/status-bar/plot.d.ts.map +1 -1
- package/dist/components/charts/status-bar/plot.js +1 -1
- package/dist/components/charts/status-bar/plot.js.map +1 -1
- package/dist/components/charts/status-bar/tooltip.d.ts +1 -1
- package/dist/components/charts/status-bar/tooltip.js +2 -2
- package/dist/components/charts/status-bar/tooltip.js.map +1 -1
- package/dist/components/charts/status-bar.d.ts +1 -1
- package/dist/components/charts/status-bar.js +1 -1
- package/dist/components/charts/treemap/legend.d.ts +2 -0
- package/dist/components/charts/treemap/legend.d.ts.map +1 -1
- package/dist/components/charts/treemap/legend.js +1 -1
- package/dist/components/charts/treemap/legend.js.map +1 -1
- package/dist/components/charts/treemap/plot.d.ts +2 -1
- package/dist/components/charts/treemap/plot.d.ts.map +1 -1
- package/dist/components/charts/treemap/plot.js +3 -16
- package/dist/components/charts/treemap/plot.js.map +1 -1
- package/dist/components/charts/treemap/tile.d.ts +1 -1
- package/dist/components/charts/treemap/tile.js +3 -3
- package/dist/components/charts/treemap/tile.js.map +1 -1
- package/dist/components/charts/treemap/tooltip.d.ts +3 -1
- package/dist/components/charts/treemap/tooltip.d.ts.map +1 -1
- package/dist/components/charts/treemap/tooltip.js +2 -2
- package/dist/components/charts/treemap/tooltip.js.map +1 -1
- package/dist/components/charts/treemap.d.ts +10 -4
- package/dist/components/charts/treemap.d.ts.map +1 -1
- package/dist/components/charts/treemap.js +1 -1
- package/dist/components/charts/volume-profile/plot.d.ts +2 -0
- package/dist/components/charts/volume-profile/plot.d.ts.map +1 -1
- package/dist/components/charts/volume-profile/plot.js +4 -4
- package/dist/components/charts/volume-profile/plot.js.map +1 -1
- package/dist/components/charts/volume-profile/summary.js +2 -2
- package/dist/components/charts/volume-profile/summary.js.map +1 -1
- package/dist/components/charts/volume-profile/tooltip.d.ts +1 -1
- package/dist/components/charts/volume-profile/tooltip.js +2 -2
- package/dist/components/charts/volume-profile/tooltip.js.map +1 -1
- package/dist/components/charts/volume-profile.d.ts +12 -3
- package/dist/components/charts/volume-profile.d.ts.map +1 -1
- package/dist/components/charts/volume-profile.js +2 -2
- package/dist/components/charts/volume-profile.js.map +1 -1
- package/dist/components/charts/xy/data-table.d.ts +1 -1
- package/dist/components/charts/xy/legend.d.ts +1 -1
- package/dist/components/custom/toast.d.ts +2 -1
- package/dist/components/custom/toast.d.ts.map +1 -1
- package/dist/components/custom/toast.js +1 -1
- package/dist/components/motion/action-swap.d.ts +19 -0
- package/dist/components/motion/action-swap.d.ts.map +1 -1
- package/dist/components/motion/action-swap.js.map +1 -1
- package/dist/components/motion/adaptive-stepper.d.ts +13 -0
- package/dist/components/motion/adaptive-stepper.d.ts.map +1 -1
- package/dist/components/motion/adaptive-stepper.js +2 -7
- package/dist/components/motion/adaptive-stepper.js.map +1 -1
- package/dist/components/motion/add-to-cart.d.ts +38 -0
- package/dist/components/motion/add-to-cart.d.ts.map +1 -0
- package/dist/components/motion/add-to-cart.js +228 -0
- package/dist/components/motion/add-to-cart.js.map +1 -0
- package/dist/components/motion/alert.d.ts +4 -0
- package/dist/components/motion/alert.d.ts.map +1 -1
- package/dist/components/motion/alert.js +2 -2
- package/dist/components/motion/alert.js.map +1 -1
- package/dist/components/motion/animated-badge.d.ts +6 -0
- package/dist/components/motion/animated-badge.d.ts.map +1 -1
- package/dist/components/motion/animated-badge.js +2 -2
- package/dist/components/motion/animated-badge.js.map +1 -1
- package/dist/components/motion/animated-number.d.ts +5 -0
- package/dist/components/motion/animated-number.d.ts.map +1 -1
- package/dist/components/motion/animated-number.js.map +1 -1
- package/dist/components/motion/animated-sidebar/menu-button.d.ts +2 -0
- package/dist/components/motion/animated-sidebar/menu-button.js +95 -0
- package/dist/components/motion/animated-sidebar/menu-button.js.map +1 -0
- package/dist/components/motion/animated-sidebar/menu-sub-button.d.ts +2 -0
- package/dist/components/motion/animated-sidebar/menu-sub-button.js +52 -0
- package/dist/components/motion/animated-sidebar/menu-sub-button.js.map +1 -0
- package/dist/components/motion/animated-sidebar/mobile-sidebar.d.ts +9 -0
- package/dist/components/motion/animated-sidebar/mobile-sidebar.d.ts.map +1 -0
- package/dist/components/motion/animated-sidebar/mobile-sidebar.js +73 -0
- package/dist/components/motion/animated-sidebar/mobile-sidebar.js.map +1 -0
- package/dist/components/motion/animated-sidebar.d.ts +17 -55
- package/dist/components/motion/animated-sidebar.d.ts.map +1 -1
- package/dist/components/motion/animated-sidebar.js +4 -628
- package/dist/components/motion/animated-toast-stack/toast-body.d.ts +19 -0
- package/dist/components/motion/animated-toast-stack/toast-body.d.ts.map +1 -0
- package/dist/components/motion/animated-toast-stack/toast-body.js +154 -0
- package/dist/components/motion/animated-toast-stack/toast-body.js.map +1 -0
- package/dist/components/motion/animated-toast-stack.d.ts +3 -69
- package/dist/components/motion/animated-toast-stack.js +1 -307
- package/dist/components/motion/arc-picker.js +1 -1
- package/dist/components/motion/arc-picker.js.map +1 -1
- package/dist/components/motion/aspect-ratio.d.ts +1 -0
- package/dist/components/motion/aspect-ratio.d.ts.map +1 -1
- package/dist/components/motion/aspect-ratio.js.map +1 -1
- package/dist/components/motion/attachment-upload/attachment-row.d.ts +20 -0
- package/dist/components/motion/attachment-upload/attachment-row.d.ts.map +1 -0
- package/dist/components/motion/attachment-upload/attachment-row.js +224 -0
- package/dist/components/motion/attachment-upload/attachment-row.js.map +1 -0
- package/dist/components/motion/attachment-upload/image-preview-dialog.d.ts +10 -0
- package/dist/components/motion/attachment-upload/image-preview-dialog.d.ts.map +1 -0
- package/dist/components/motion/attachment-upload/image-preview-dialog.js +84 -0
- package/dist/components/motion/attachment-upload/image-preview-dialog.js.map +1 -0
- package/dist/components/motion/attachment-upload/image-thumbnail.d.ts +10 -0
- package/dist/components/motion/attachment-upload/image-thumbnail.d.ts.map +1 -0
- package/dist/components/motion/attachment-upload/image-thumbnail.js +53 -0
- package/dist/components/motion/attachment-upload/image-thumbnail.js.map +1 -0
- package/dist/components/motion/attachment-upload/row-action.d.ts +11 -0
- package/dist/components/motion/attachment-upload/row-action.d.ts.map +1 -0
- package/dist/components/motion/attachment-upload/row-action.js +98 -0
- package/dist/components/motion/attachment-upload/row-action.js.map +1 -0
- package/dist/components/motion/attachment-upload.d.ts +22 -50
- package/dist/components/motion/attachment-upload.d.ts.map +1 -1
- package/dist/components/motion/attachment-upload.js +16 -492
- package/dist/components/motion/attachment-upload.js.map +1 -1
- package/dist/components/motion/availability-scheduler/copy-menu.js +1 -1
- package/dist/components/motion/availability-scheduler/day-row.js +2 -2
- package/dist/components/motion/availability-scheduler/day-row.js.map +1 -1
- package/dist/components/motion/availability-scheduler/icon-button.js +1 -1
- package/dist/components/motion/availability-scheduler/icon-button.js.map +1 -1
- package/dist/components/motion/{availability-scheduler/index.d.ts → availability-scheduler.d.ts} +7 -3
- package/dist/components/motion/availability-scheduler.d.ts.map +1 -0
- package/dist/components/motion/{availability-scheduler/index.js → availability-scheduler.js} +4 -4
- package/dist/components/motion/availability-scheduler.js.map +1 -0
- package/dist/components/motion/avatar-group.d.ts +10 -1
- package/dist/components/motion/avatar-group.d.ts.map +1 -1
- package/dist/components/motion/avatar-group.js +3 -3
- package/dist/components/motion/avatar-group.js.map +1 -1
- package/dist/components/motion/before-after-slider.d.ts +3 -0
- package/dist/components/motion/before-after-slider.d.ts.map +1 -1
- package/dist/components/motion/before-after-slider.js +2 -3
- package/dist/components/motion/before-after-slider.js.map +1 -1
- package/dist/components/motion/bloom-menu.d.ts +5 -0
- package/dist/components/motion/bloom-menu.d.ts.map +1 -1
- package/dist/components/motion/bloom-menu.js +10 -24
- package/dist/components/motion/bloom-menu.js.map +1 -1
- package/dist/components/motion/bookmark-button.d.ts +30 -0
- package/dist/components/motion/bookmark-button.d.ts.map +1 -0
- package/dist/components/motion/bookmark-button.js +107 -0
- package/dist/components/motion/bookmark-button.js.map +1 -0
- package/dist/components/motion/bookshelf.d.ts +7 -0
- package/dist/components/motion/bookshelf.d.ts.map +1 -1
- package/dist/components/motion/bookshelf.js +3 -3
- package/dist/components/motion/bookshelf.js.map +1 -1
- package/dist/components/motion/bottom-sheet.d.ts +6 -0
- package/dist/components/motion/bottom-sheet.d.ts.map +1 -1
- package/dist/components/motion/bottom-sheet.js +6 -30
- package/dist/components/motion/bottom-sheet.js.map +1 -1
- package/dist/components/motion/bounce-sidebar.d.ts +16 -0
- package/dist/components/motion/bounce-sidebar.d.ts.map +1 -1
- package/dist/components/motion/bounce-sidebar.js.map +1 -1
- package/dist/components/motion/bouncy-accordion.d.ts +20 -0
- package/dist/components/motion/bouncy-accordion.d.ts.map +1 -1
- package/dist/components/motion/bouncy-accordion.js +2 -2
- package/dist/components/motion/bouncy-accordion.js.map +1 -1
- package/dist/components/motion/breadcrumb.d.ts +2 -0
- package/dist/components/motion/breadcrumb.d.ts.map +1 -1
- package/dist/components/motion/breadcrumb.js +5 -6
- package/dist/components/motion/breadcrumb.js.map +1 -1
- package/dist/components/motion/button/base.d.ts +8 -0
- package/dist/components/motion/button/base.d.ts.map +1 -1
- package/dist/components/motion/button/base.js +15 -10
- package/dist/components/motion/button/base.js.map +1 -1
- package/dist/components/motion/button/metallic.d.ts.map +1 -1
- package/dist/components/motion/button/metallic.js +5 -4
- package/dist/components/motion/button/metallic.js.map +1 -1
- package/dist/components/motion/button/stateful.d.ts +5 -0
- package/dist/components/motion/button/stateful.d.ts.map +1 -1
- package/dist/components/motion/button/stateful.js +0 -1
- package/dist/components/motion/button/stateful.js.map +1 -1
- package/dist/components/motion/{button/index.d.ts → button.d.ts} +4 -4
- package/dist/components/motion/button.js +6 -0
- package/dist/components/motion/card-dealer.d.ts +2 -0
- package/dist/components/motion/card-dealer.d.ts.map +1 -1
- package/dist/components/motion/card-dealer.js +4 -4
- package/dist/components/motion/card-dealer.js.map +1 -1
- package/dist/components/motion/card-folder.d.ts +18 -0
- package/dist/components/motion/card-folder.d.ts.map +1 -1
- package/dist/components/motion/card-folder.js +9 -9
- package/dist/components/motion/card-folder.js.map +1 -1
- package/dist/components/motion/card.js +1 -1
- package/dist/components/motion/card.js.map +1 -1
- package/dist/components/motion/casino/game-parts.d.ts +1 -1
- package/dist/components/motion/casino/game-parts.js +5 -5
- package/dist/components/motion/casino/game-parts.js.map +1 -1
- package/dist/components/motion/center-morph-modal.d.ts +4 -0
- package/dist/components/motion/center-morph-modal.d.ts.map +1 -1
- package/dist/components/motion/center-morph-modal.js +64 -91
- package/dist/components/motion/center-morph-modal.js.map +1 -1
- package/dist/components/motion/checkbox.d.ts +8 -0
- package/dist/components/motion/checkbox.d.ts.map +1 -1
- package/dist/components/motion/checkbox.js.map +1 -1
- package/dist/components/motion/chromatic-text-reveal.js +3 -3
- package/dist/components/motion/chromatic-text-reveal.js.map +1 -1
- package/dist/components/motion/click-burst.d.ts +24 -0
- package/dist/components/motion/click-burst.d.ts.map +1 -0
- package/dist/components/motion/click-burst.js +133 -0
- package/dist/components/motion/click-burst.js.map +1 -0
- package/dist/components/motion/collapsible.d.ts +4 -0
- package/dist/components/motion/collapsible.d.ts.map +1 -1
- package/dist/components/motion/collapsible.js +1 -1
- package/dist/components/motion/collapsible.js.map +1 -1
- package/dist/components/motion/color-picker.d.ts +7 -21
- package/dist/components/motion/color-picker.d.ts.map +1 -1
- package/dist/components/motion/color-picker.js +7 -95
- package/dist/components/motion/color-picker.js.map +1 -1
- package/dist/components/motion/color-selector.d.ts +5 -0
- package/dist/components/motion/color-selector.d.ts.map +1 -1
- package/dist/components/motion/color-selector.js.map +1 -1
- package/dist/components/motion/combobox/content.d.ts +3 -10
- package/dist/components/motion/combobox/content.d.ts.map +1 -1
- package/dist/components/motion/combobox/content.js +14 -80
- package/dist/components/motion/combobox/content.js.map +1 -1
- package/dist/components/motion/combobox/context.d.ts +3 -2
- package/dist/components/motion/combobox/context.js +1 -1
- package/dist/components/motion/combobox/list.d.ts +12 -0
- package/dist/components/motion/combobox/list.d.ts.map +1 -1
- package/dist/components/motion/combobox/list.js +4 -4
- package/dist/components/motion/combobox/list.js.map +1 -1
- package/dist/components/motion/combobox/listbox-panel.d.ts +2 -0
- package/dist/components/motion/combobox/listbox-panel.js +99 -0
- package/dist/components/motion/combobox/listbox-panel.js.map +1 -0
- package/dist/components/motion/combobox/trigger.d.ts +5 -0
- package/dist/components/motion/combobox/trigger.d.ts.map +1 -1
- package/dist/components/motion/combobox/trigger.js +3 -2
- package/dist/components/motion/combobox/trigger.js.map +1 -1
- package/dist/components/motion/combobox.d.ts +1 -1
- package/dist/components/motion/combobox.js +1 -1
- package/dist/components/motion/command-palette.d.ts +29 -1
- package/dist/components/motion/command-palette.d.ts.map +1 -1
- package/dist/components/motion/command-palette.js +282 -124
- package/dist/components/motion/command-palette.js.map +1 -1
- package/dist/components/motion/confetti.d.ts +23 -0
- package/dist/components/motion/confetti.d.ts.map +1 -0
- package/dist/components/motion/confetti.js +154 -0
- package/dist/components/motion/confetti.js.map +1 -0
- package/dist/components/motion/context-menu.d.ts +25 -0
- package/dist/components/motion/context-menu.d.ts.map +1 -1
- package/dist/components/motion/context-menu.js +110 -112
- package/dist/components/motion/context-menu.js.map +1 -1
- package/dist/components/motion/copy-button.d.ts +27 -0
- package/dist/components/motion/copy-button.d.ts.map +1 -0
- package/dist/components/motion/copy-button.js +129 -0
- package/dist/components/motion/copy-button.js.map +1 -0
- package/dist/components/motion/crash/crash-balloon.d.ts +2 -2
- package/dist/components/motion/crash/crash-balloon.js +2 -2
- package/dist/components/motion/crash/crash-balloon.js.map +1 -1
- package/dist/components/motion/crash/crash-parts.d.ts +2 -2
- package/dist/components/motion/crash/crash-parts.js +1 -1
- package/dist/components/motion/crash/crash-tower.d.ts +2 -2
- package/dist/components/motion/crash/crash-tower.js +3 -3
- package/dist/components/motion/crash/crash-tower.js.map +1 -1
- package/dist/components/motion/crash.d.ts +2 -2
- package/dist/components/motion/crash.js +1 -1
- package/dist/components/motion/cylinder-carousel.d.ts +6 -3
- package/dist/components/motion/cylinder-carousel.d.ts.map +1 -1
- package/dist/components/motion/cylinder-carousel.js +1 -1
- package/dist/components/motion/cylinder-carousel.js.map +1 -1
- package/dist/components/motion/date-range-picker/calendar-choices.d.ts +18 -0
- package/dist/components/motion/date-range-picker/calendar-choices.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/calendar-choices.js +62 -0
- package/dist/components/motion/date-range-picker/calendar-choices.js.map +1 -0
- package/dist/components/motion/date-range-picker/calendar-presence.d.ts +5 -0
- package/dist/components/motion/date-range-picker/calendar-presence.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/calendar-presence.js +14 -0
- package/dist/components/motion/date-range-picker/calendar-presence.js.map +1 -0
- package/dist/components/motion/date-range-picker/calendar.d.ts +8 -0
- package/dist/components/motion/date-range-picker/calendar.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/calendar.js +46 -0
- package/dist/components/motion/date-range-picker/calendar.js.map +1 -0
- package/dist/components/motion/date-range-picker/clear.d.ts +4 -0
- package/dist/components/motion/date-range-picker/clear.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/clear.js +23 -0
- package/dist/components/motion/date-range-picker/clear.js.map +1 -0
- package/dist/components/motion/date-range-picker/content.d.ts +7 -0
- package/dist/components/motion/date-range-picker/content.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/content.js +36 -0
- package/dist/components/motion/date-range-picker/content.js.map +1 -0
- package/dist/components/motion/date-range-picker/dropdown.d.ts +12 -0
- package/dist/components/motion/date-range-picker/dropdown.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/dropdown.js +26 -0
- package/dist/components/motion/date-range-picker/dropdown.js.map +1 -0
- package/dist/components/motion/date-range-picker/footer.d.ts +4 -0
- package/dist/components/motion/date-range-picker/footer.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/footer.js +20 -0
- package/dist/components/motion/date-range-picker/footer.js.map +1 -0
- package/dist/components/motion/date-range-picker/grid.d.ts +4 -0
- package/dist/components/motion/date-range-picker/grid.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/grid.js +132 -0
- package/dist/components/motion/date-range-picker/grid.js.map +1 -0
- package/dist/components/motion/date-range-picker/header.d.ts +4 -0
- package/dist/components/motion/date-range-picker/header.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/header.js +85 -0
- package/dist/components/motion/date-range-picker/header.js.map +1 -0
- package/dist/components/motion/date-range-picker/preset.d.ts +10 -0
- package/dist/components/motion/date-range-picker/preset.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/preset.js +25 -0
- package/dist/components/motion/date-range-picker/preset.js.map +1 -0
- package/dist/components/motion/date-range-picker/presets.d.ts +4 -0
- package/dist/components/motion/date-range-picker/presets.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/presets.js +22 -0
- package/dist/components/motion/date-range-picker/presets.js.map +1 -0
- package/dist/components/motion/date-range-picker/root.d.ts +4 -0
- package/dist/components/motion/date-range-picker/root.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/root.js +3 -0
- package/dist/components/motion/date-range-picker/selection.d.ts +4 -0
- package/dist/components/motion/date-range-picker/selection.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/selection.js +17 -0
- package/dist/components/motion/date-range-picker/selection.js.map +1 -0
- package/dist/components/motion/date-range-picker/summary.d.ts +4 -0
- package/dist/components/motion/date-range-picker/summary.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/summary.js +40 -0
- package/dist/components/motion/date-range-picker/summary.js.map +1 -0
- package/dist/components/motion/date-range-picker/trigger.d.ts +7 -0
- package/dist/components/motion/date-range-picker/trigger.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/trigger.js +74 -0
- package/dist/components/motion/date-range-picker/trigger.js.map +1 -0
- package/dist/components/motion/date-range-picker.d.ts +16 -116
- package/dist/components/motion/date-range-picker.d.ts.map +1 -1
- package/dist/components/motion/date-range-picker.js +14 -922
- package/dist/components/motion/date-range-picker.js.map +1 -1
- package/dist/components/motion/delete-button.d.ts +31 -0
- package/dist/components/motion/delete-button.d.ts.map +1 -0
- package/dist/components/motion/delete-button.js +263 -0
- package/dist/components/motion/delete-button.js.map +1 -0
- package/dist/components/motion/digit-swap.d.ts +3 -0
- package/dist/components/motion/digit-swap.d.ts.map +1 -1
- package/dist/components/motion/digit-swap.js.map +1 -1
- package/dist/components/motion/dock.d.ts +4 -0
- package/dist/components/motion/dock.d.ts.map +1 -1
- package/dist/components/motion/dock.js +2 -2
- package/dist/components/motion/dock.js.map +1 -1
- package/dist/components/motion/download-button.d.ts +29 -0
- package/dist/components/motion/download-button.d.ts.map +1 -0
- package/dist/components/motion/download-button.js +305 -0
- package/dist/components/motion/download-button.js.map +1 -0
- package/dist/components/motion/drawer.d.ts +9 -1
- package/dist/components/motion/drawer.d.ts.map +1 -1
- package/dist/components/motion/drawer.js +65 -15
- package/dist/components/motion/drawer.js.map +1 -1
- package/dist/components/motion/dropdown-menu/item-base.d.ts +37 -0
- package/dist/components/motion/dropdown-menu/item-base.d.ts.map +1 -0
- package/dist/components/motion/dropdown-menu/item-base.js +78 -0
- package/dist/components/motion/dropdown-menu/item-base.js.map +1 -0
- package/dist/components/motion/dropdown-menu/menu-panel.d.ts +31 -0
- package/dist/components/motion/dropdown-menu/menu-panel.d.ts.map +1 -0
- package/dist/components/motion/dropdown-menu/menu-panel.js +201 -0
- package/dist/components/motion/dropdown-menu/menu-panel.js.map +1 -0
- package/dist/components/motion/dropdown-menu.d.ts +30 -18
- package/dist/components/motion/dropdown-menu.d.ts.map +1 -1
- package/dist/components/motion/dropdown-menu.js +113 -421
- package/dist/components/motion/dropdown-menu.js.map +1 -1
- package/dist/components/motion/dynamic-island.d.ts +2 -0
- package/dist/components/motion/dynamic-island.d.ts.map +1 -1
- package/dist/components/motion/dynamic-island.js.map +1 -1
- package/dist/components/motion/expandable-action-bar.d.ts +28 -0
- package/dist/components/motion/expandable-action-bar.d.ts.map +1 -1
- package/dist/components/motion/expandable-action-bar.js +5 -14
- package/dist/components/motion/expandable-action-bar.js.map +1 -1
- package/dist/components/motion/expandable-control.d.ts +14 -0
- package/dist/components/motion/expandable-control.d.ts.map +1 -1
- package/dist/components/motion/expandable-control.js +1 -1
- package/dist/components/motion/expandable-control.js.map +1 -1
- package/dist/components/motion/expandable-tabs.d.ts +16 -1
- package/dist/components/motion/expandable-tabs.d.ts.map +1 -1
- package/dist/components/motion/expandable-tabs.js +3 -15
- package/dist/components/motion/expandable-tabs.js.map +1 -1
- package/dist/components/motion/expanding-arrow-button.d.ts +2 -0
- package/dist/components/motion/expanding-arrow-button.d.ts.map +1 -1
- package/dist/components/motion/expanding-arrow-button.js +3 -3
- package/dist/components/motion/expanding-arrow-button.js.map +1 -1
- package/dist/components/motion/feedback-widget.d.ts +6 -0
- package/dist/components/motion/feedback-widget.d.ts.map +1 -1
- package/dist/components/motion/feedback-widget.js +13 -29
- package/dist/components/motion/feedback-widget.js.map +1 -1
- package/dist/components/motion/file-tree.d.ts +24 -0
- package/dist/components/motion/file-tree.d.ts.map +1 -1
- package/dist/components/motion/file-tree.js +4 -4
- package/dist/components/motion/file-tree.js.map +1 -1
- package/dist/components/motion/file-upload.d.ts +34 -0
- package/dist/components/motion/file-upload.d.ts.map +1 -1
- package/dist/components/motion/file-upload.js +26 -17
- package/dist/components/motion/file-upload.js.map +1 -1
- package/dist/components/motion/follow-button.d.ts +31 -0
- package/dist/components/motion/follow-button.d.ts.map +1 -0
- package/dist/components/motion/follow-button.js +184 -0
- package/dist/components/motion/follow-button.js.map +1 -0
- package/dist/components/motion/hold-action-button.d.ts +7 -0
- package/dist/components/motion/hold-action-button.d.ts.map +1 -1
- package/dist/components/motion/hold-action-button.js +1 -1
- package/dist/components/motion/hold-action-button.js.map +1 -1
- package/dist/components/motion/infinite-masonry.d.ts +22 -0
- package/dist/components/motion/infinite-masonry.d.ts.map +1 -1
- package/dist/components/motion/infinite-masonry.js.map +1 -1
- package/dist/components/motion/input.d.ts +17 -0
- package/dist/components/motion/input.d.ts.map +1 -1
- package/dist/components/motion/input.js +2 -1
- package/dist/components/motion/input.js.map +1 -1
- package/dist/components/motion/knockout-bracket.d.ts +11 -4
- package/dist/components/motion/knockout-bracket.d.ts.map +1 -1
- package/dist/components/motion/knockout-bracket.js +30 -21
- package/dist/components/motion/knockout-bracket.js.map +1 -1
- package/dist/components/motion/knockout-wheel.d.ts +9 -3
- package/dist/components/motion/knockout-wheel.d.ts.map +1 -1
- package/dist/components/motion/knockout-wheel.js +5 -5
- package/dist/components/motion/knockout-wheel.js.map +1 -1
- package/dist/components/motion/like-button.d.ts +26 -0
- package/dist/components/motion/like-button.d.ts.map +1 -0
- package/dist/components/motion/like-button.js +128 -0
- package/dist/components/motion/like-button.js.map +1 -0
- package/dist/components/motion/loader.d.ts +1 -0
- package/dist/components/motion/loader.d.ts.map +1 -1
- package/dist/components/motion/loader.js.map +1 -1
- package/dist/components/motion/lock-toggle.d.ts +29 -0
- package/dist/components/motion/lock-toggle.d.ts.map +1 -0
- package/dist/components/motion/lock-toggle.js +252 -0
- package/dist/components/motion/lock-toggle.js.map +1 -0
- package/dist/components/motion/marquee.d.ts +6 -0
- package/dist/components/motion/marquee.d.ts.map +1 -1
- package/dist/components/motion/marquee.js.map +1 -1
- package/dist/components/motion/menu/menu-item-highlight.d.ts +16 -0
- package/dist/components/motion/menu/menu-item-highlight.d.ts.map +1 -0
- package/dist/components/motion/menu/menu-item-highlight.js +20 -0
- package/dist/components/motion/menu/menu-item-highlight.js.map +1 -0
- package/dist/components/motion/message-status.d.ts +26 -0
- package/dist/components/motion/message-status.d.ts.map +1 -0
- package/dist/components/motion/message-status.js +198 -0
- package/dist/components/motion/message-status.js.map +1 -0
- package/dist/components/motion/mines.d.ts +2 -1
- package/dist/components/motion/mines.d.ts.map +1 -1
- package/dist/components/motion/mines.js +3 -3
- package/dist/components/motion/mines.js.map +1 -1
- package/dist/components/motion/morphing-lightbox.d.ts +16 -0
- package/dist/components/motion/morphing-lightbox.d.ts.map +1 -1
- package/dist/components/motion/morphing-lightbox.js +3 -3
- package/dist/components/motion/morphing-lightbox.js.map +1 -1
- package/dist/components/motion/morphing-modal.d.ts +2 -0
- package/dist/components/motion/morphing-modal.d.ts.map +1 -1
- package/dist/components/motion/morphing-modal.js +14 -13
- package/dist/components/motion/morphing-modal.js.map +1 -1
- package/dist/components/motion/morphing-search-chips.d.ts +12 -0
- package/dist/components/motion/morphing-search-chips.d.ts.map +1 -1
- package/dist/components/motion/morphing-search-chips.js +6 -16
- package/dist/components/motion/morphing-search-chips.js.map +1 -1
- package/dist/components/motion/morphing-search.d.ts +16 -0
- package/dist/components/motion/morphing-search.d.ts.map +1 -1
- package/dist/components/motion/morphing-search.js +9 -13
- package/dist/components/motion/morphing-search.js.map +1 -1
- package/dist/components/motion/morphing-tabs.d.ts +20 -0
- package/dist/components/motion/morphing-tabs.d.ts.map +1 -1
- package/dist/components/motion/morphing-tabs.js.map +1 -1
- package/dist/components/motion/multi-select/content.d.ts +3 -10
- package/dist/components/motion/multi-select/content.d.ts.map +1 -1
- package/dist/components/motion/multi-select/content.js +14 -80
- package/dist/components/motion/multi-select/content.js.map +1 -1
- package/dist/components/motion/multi-select/context.d.ts +2 -2
- package/dist/components/motion/multi-select/context.js +1 -1
- package/dist/components/motion/multi-select/list.d.ts +12 -0
- package/dist/components/motion/multi-select/list.d.ts.map +1 -1
- package/dist/components/motion/multi-select/list.js +5 -5
- package/dist/components/motion/multi-select/list.js.map +1 -1
- package/dist/components/motion/multi-select/trigger.d.ts +6 -0
- package/dist/components/motion/multi-select/trigger.d.ts.map +1 -1
- package/dist/components/motion/multi-select/trigger.js +5 -4
- package/dist/components/motion/multi-select/trigger.js.map +1 -1
- package/dist/components/motion/{multi-select/index.d.ts → multi-select.d.ts} +4 -4
- package/dist/components/motion/{multi-select/index.js → multi-select.js} +4 -4
- package/dist/components/motion/mute-toggle.d.ts +25 -0
- package/dist/components/motion/mute-toggle.d.ts.map +1 -0
- package/dist/components/motion/mute-toggle.js +221 -0
- package/dist/components/motion/mute-toggle.js.map +1 -0
- package/dist/components/motion/not-found/glitch.js +2 -2
- package/dist/components/motion/not-found/glitch.js.map +1 -1
- package/dist/components/motion/not-found/magnetic.js +2 -2
- package/dist/components/motion/not-found/magnetic.js.map +1 -1
- package/dist/components/motion/not-found/shared.d.ts +7 -0
- package/dist/components/motion/not-found/shared.d.ts.map +1 -1
- package/dist/components/motion/not-found/shared.js.map +1 -1
- package/dist/components/motion/not-found/spotlight.js +4 -4
- package/dist/components/motion/not-found/spotlight.js.map +1 -1
- package/dist/components/motion/not-found/stacked.js +2 -2
- package/dist/components/motion/not-found/stacked.js.map +1 -1
- package/dist/components/motion/not-found/terminal.d.ts.map +1 -1
- package/dist/components/motion/not-found/terminal.js +1 -1
- package/dist/components/motion/not-found/terminal.js.map +1 -1
- package/dist/components/motion/notification-bell.d.ts +29 -0
- package/dist/components/motion/notification-bell.d.ts.map +1 -0
- package/dist/components/motion/notification-bell.js +274 -0
- package/dist/components/motion/notification-bell.js.map +1 -0
- package/dist/components/motion/notification-stack.d.ts +23 -0
- package/dist/components/motion/notification-stack.d.ts.map +1 -1
- package/dist/components/motion/notification-stack.js.map +1 -1
- package/dist/components/motion/number-ticker.d.ts +6 -1
- package/dist/components/motion/number-ticker.d.ts.map +1 -1
- package/dist/components/motion/number-ticker.js.map +1 -1
- package/dist/components/motion/otp-input.d.ts +6 -0
- package/dist/components/motion/otp-input.d.ts.map +1 -1
- package/dist/components/motion/otp-input.js +3 -7
- package/dist/components/motion/otp-input.js.map +1 -1
- package/dist/components/motion/overflow-actions.d.ts +26 -0
- package/dist/components/motion/overflow-actions.d.ts.map +1 -1
- package/dist/components/motion/overflow-actions.js.map +1 -1
- package/dist/components/motion/pagination.d.ts +4 -0
- package/dist/components/motion/pagination.d.ts.map +1 -1
- package/dist/components/motion/pagination.js +2 -2
- package/dist/components/motion/pagination.js.map +1 -1
- package/dist/components/motion/parallax.d.ts +2 -0
- package/dist/components/motion/parallax.d.ts.map +1 -1
- package/dist/components/motion/parallax.js.map +1 -1
- package/dist/components/motion/plinko.d.ts +1 -0
- package/dist/components/motion/plinko.d.ts.map +1 -1
- package/dist/components/motion/plinko.js +2 -2
- package/dist/components/motion/plinko.js.map +1 -1
- package/dist/components/motion/poll-vote.d.ts +39 -0
- package/dist/components/motion/poll-vote.d.ts.map +1 -0
- package/dist/components/motion/poll-vote.js +209 -0
- package/dist/components/motion/poll-vote.js.map +1 -0
- package/dist/components/motion/popover-morph.d.ts +2 -50
- package/dist/components/motion/popover-morph.js +4 -24
- package/dist/components/motion/popover-morph.js.map +1 -1
- package/dist/components/motion/popover.d.ts +5 -2
- package/dist/components/motion/popover.d.ts.map +1 -1
- package/dist/components/motion/popover.js +151 -99
- package/dist/components/motion/popover.js.map +1 -1
- package/dist/components/motion/prediction-market-card.d.ts +15 -0
- package/dist/components/motion/prediction-market-card.d.ts.map +1 -1
- package/dist/components/motion/prediction-market-card.js +8 -8
- package/dist/components/motion/prediction-market-card.js.map +1 -1
- package/dist/components/motion/prediction-market.d.ts +34 -0
- package/dist/components/motion/prediction-market.d.ts.map +1 -1
- package/dist/components/motion/prediction-market.js +10 -10
- package/dist/components/motion/prediction-market.js.map +1 -1
- package/dist/components/motion/preview-rail.d.ts +23 -0
- package/dist/components/motion/preview-rail.d.ts.map +1 -1
- package/dist/components/motion/preview-rail.js.map +1 -1
- package/dist/components/motion/project-folder.d.ts +16 -0
- package/dist/components/motion/project-folder.d.ts.map +1 -1
- package/dist/components/motion/project-folder.js +10 -40
- package/dist/components/motion/project-folder.js.map +1 -1
- package/dist/components/motion/pull-to-refresh.d.ts +8 -0
- package/dist/components/motion/pull-to-refresh.d.ts.map +1 -1
- package/dist/components/motion/pull-to-refresh.js +1 -1
- package/dist/components/motion/pull-to-refresh.js.map +1 -1
- package/dist/components/motion/radio.d.ts +10 -0
- package/dist/components/motion/radio.d.ts.map +1 -1
- package/dist/components/motion/radio.js.map +1 -1
- package/dist/components/motion/range-slider-bubble.d.ts +1 -0
- package/dist/components/motion/range-slider-bubble.d.ts.map +1 -1
- package/dist/components/motion/range-slider-bubble.js +4 -4
- package/dist/components/motion/range-slider-bubble.js.map +1 -1
- package/dist/components/motion/range-slider-fluid.d.ts +1 -0
- package/dist/components/motion/range-slider-fluid.d.ts.map +1 -1
- package/dist/components/motion/range-slider-fluid.js +2 -2
- package/dist/components/motion/range-slider-fluid.js.map +1 -1
- package/dist/components/motion/range-slider-inline.d.ts +1 -0
- package/dist/components/motion/range-slider-inline.d.ts.map +1 -1
- package/dist/components/motion/range-slider-inline.js +1 -1
- package/dist/components/motion/range-slider-inline.js.map +1 -1
- package/dist/components/motion/range-slider-ruler.d.ts +1 -0
- package/dist/components/motion/range-slider-ruler.d.ts.map +1 -1
- package/dist/components/motion/range-slider-ruler.js +3 -3
- package/dist/components/motion/range-slider-ruler.js.map +1 -1
- package/dist/components/motion/range-slider-wave.d.ts +1 -0
- package/dist/components/motion/range-slider-wave.d.ts.map +1 -1
- package/dist/components/motion/range-slider-wave.js +3 -3
- package/dist/components/motion/range-slider-wave.js.map +1 -1
- package/dist/components/motion/range-slider.d.ts +1 -0
- package/dist/components/motion/range-slider.d.ts.map +1 -1
- package/dist/components/motion/range-slider.js +2 -2
- package/dist/components/motion/range-slider.js.map +1 -1
- package/dist/components/motion/reaction-picker.d.ts +50 -0
- package/dist/components/motion/reaction-picker.d.ts.map +1 -0
- package/dist/components/motion/reaction-picker.js +516 -0
- package/dist/components/motion/reaction-picker.js.map +1 -0
- package/dist/components/motion/refresh-button.d.ts +24 -0
- package/dist/components/motion/refresh-button.d.ts.map +1 -0
- package/dist/components/motion/refresh-button.js +267 -0
- package/dist/components/motion/refresh-button.js.map +1 -0
- package/dist/components/motion/scroll-progress.d.ts +2 -0
- package/dist/components/motion/scroll-progress.d.ts.map +1 -1
- package/dist/components/motion/scroll-progress.js +1 -1
- package/dist/components/motion/scroll-progress.js.map +1 -1
- package/dist/components/motion/scroll-reveal.d.ts +2 -0
- package/dist/components/motion/scroll-reveal.d.ts.map +1 -1
- package/dist/components/motion/scroll-reveal.js.map +1 -1
- package/dist/components/motion/scroll-to.d.ts +2 -1
- package/dist/components/motion/scroll-to.d.ts.map +1 -1
- package/dist/components/motion/scroll-to.js +1 -1
- package/dist/components/motion/scroll-to.js.map +1 -1
- package/dist/components/motion/select-morph.d.ts +16 -2
- package/dist/components/motion/select-morph.d.ts.map +1 -1
- package/dist/components/motion/select-morph.js +148 -85
- package/dist/components/motion/select-morph.js.map +1 -1
- package/dist/components/motion/select.d.ts +16 -2
- package/dist/components/motion/select.d.ts.map +1 -1
- package/dist/components/motion/select.js +150 -61
- package/dist/components/motion/select.js.map +1 -1
- package/dist/components/motion/send-button.d.ts +23 -0
- package/dist/components/motion/send-button.d.ts.map +1 -0
- package/dist/components/motion/send-button.js +273 -0
- package/dist/components/motion/send-button.js.map +1 -0
- package/dist/components/motion/share-button.d.ts +45 -0
- package/dist/components/motion/share-button.d.ts.map +1 -0
- package/dist/components/motion/share-button.js +324 -0
- package/dist/components/motion/share-button.js.map +1 -0
- package/dist/components/motion/signup-form.d.ts +24 -2
- package/dist/components/motion/signup-form.d.ts.map +1 -1
- package/dist/components/motion/signup-form.js +3 -3
- package/dist/components/motion/signup-form.js.map +1 -1
- package/dist/components/motion/slide-action-button.d.ts +6 -0
- package/dist/components/motion/slide-action-button.d.ts.map +1 -1
- package/dist/components/motion/slide-action-button.js.map +1 -1
- package/dist/components/motion/slide-game.d.ts +2 -1
- package/dist/components/motion/slide-game.d.ts.map +1 -1
- package/dist/components/motion/slide-game.js +9 -9
- package/dist/components/motion/slide-game.js.map +1 -1
- package/dist/components/motion/smooth-scroll.d.ts +3 -1
- package/dist/components/motion/smooth-scroll.d.ts.map +1 -1
- package/dist/components/motion/smooth-scroll.js.map +1 -1
- package/dist/components/motion/sortable-list.d.ts +8 -0
- package/dist/components/motion/sortable-list.d.ts.map +1 -1
- package/dist/components/motion/sortable-list.js +2 -2
- package/dist/components/motion/sortable-list.js.map +1 -1
- package/dist/components/motion/star-rating.d.ts +35 -0
- package/dist/components/motion/star-rating.d.ts.map +1 -0
- package/dist/components/motion/star-rating.js +253 -0
- package/dist/components/motion/star-rating.js.map +1 -0
- package/dist/components/motion/status-icon.d.ts +31 -0
- package/dist/components/motion/status-icon.d.ts.map +1 -0
- package/dist/components/motion/status-icon.js +259 -0
- package/dist/components/motion/status-icon.js.map +1 -0
- package/dist/components/motion/swap/controls.d.ts +1 -1
- package/dist/components/motion/swap/controls.d.ts.map +1 -1
- package/dist/components/motion/swap/controls.js +20 -20
- package/dist/components/motion/swap/controls.js.map +1 -1
- package/dist/components/motion/swap/field.d.ts +1 -1
- package/dist/components/motion/swap/field.js +8 -7
- package/dist/components/motion/swap/field.js.map +1 -1
- package/dist/components/motion/swap/quote-row.d.ts +1 -1
- package/dist/components/motion/swap/quote-row.js +1 -1
- package/dist/components/motion/swap/quote-row.js.map +1 -1
- package/dist/components/motion/swap/token-badges.d.ts +1 -1
- package/dist/components/motion/swap/token-badges.js +5 -6
- package/dist/components/motion/swap/token-badges.js.map +1 -1
- package/dist/components/motion/swap/token-picker.d.ts +1 -1
- package/dist/components/motion/swap/token-picker.d.ts.map +1 -1
- package/dist/components/motion/swap/token-picker.js +21 -18
- package/dist/components/motion/swap/token-picker.js.map +1 -1
- package/dist/components/motion/swap.d.ts +7 -2
- package/dist/components/motion/swap.d.ts.map +1 -1
- package/dist/components/motion/swap.js +1 -1
- package/dist/components/motion/swap.js.map +1 -1
- package/dist/components/motion/swipeable-list.d.ts +38 -0
- package/dist/components/motion/swipeable-list.d.ts.map +1 -1
- package/dist/components/motion/swipeable-list.js.map +1 -1
- package/dist/components/motion/switch.d.ts +9 -1
- package/dist/components/motion/switch.d.ts.map +1 -1
- package/dist/components/motion/switch.js +11 -2
- package/dist/components/motion/switch.js.map +1 -1
- package/dist/components/motion/table/skeleton-rows.d.ts +1 -1
- package/dist/components/motion/table/table-header.d.ts +1 -1
- package/dist/components/motion/table/table-menu.d.ts.map +1 -1
- package/dist/components/motion/table/table-menu.js +15 -15
- package/dist/components/motion/table/table-menu.js.map +1 -1
- package/dist/components/motion/{table/index.d.ts → table.d.ts} +3 -3
- package/dist/components/motion/table.d.ts.map +1 -0
- package/dist/components/motion/{table/index.js → table.js} +10 -10
- package/dist/components/motion/table.js.map +1 -0
- package/dist/components/motion/tabs.d.ts +16 -4
- package/dist/components/motion/tabs.d.ts.map +1 -1
- package/dist/components/motion/tabs.js +23 -10
- package/dist/components/motion/tabs.js.map +1 -1
- package/dist/components/motion/text-cascade.d.ts +2 -1
- package/dist/components/motion/text-cascade.d.ts.map +1 -1
- package/dist/components/motion/text-cascade.js +1 -1
- package/dist/components/motion/text-cascade.js.map +1 -1
- package/dist/components/motion/text-morph.d.ts +16 -0
- package/dist/components/motion/text-morph.d.ts.map +1 -0
- package/dist/components/motion/text-morph.js +239 -0
- package/dist/components/motion/text-morph.js.map +1 -0
- package/dist/components/motion/text-reveal.d.ts +11 -0
- package/dist/components/motion/text-reveal.d.ts.map +1 -1
- package/dist/components/motion/text-reveal.js +1 -1
- package/dist/components/motion/text-reveal.js.map +1 -1
- package/dist/components/motion/text-scramble.d.ts +2 -0
- package/dist/components/motion/text-scramble.d.ts.map +1 -1
- package/dist/components/motion/text-scramble.js.map +1 -1
- package/dist/components/motion/text-shimmer.d.ts +3 -0
- package/dist/components/motion/text-shimmer.d.ts.map +1 -1
- package/dist/components/motion/text-shimmer.js.map +1 -1
- package/dist/components/motion/theme-toggle.d.ts +3 -0
- package/dist/components/motion/theme-toggle.d.ts.map +1 -1
- package/dist/components/motion/theme-toggle.js +4 -3
- package/dist/components/motion/theme-toggle.js.map +1 -1
- package/dist/components/motion/tilt-card.d.ts +3 -0
- package/dist/components/motion/tilt-card.d.ts.map +1 -1
- package/dist/components/motion/tilt-card.js.map +1 -1
- package/dist/components/motion/timeline.d.ts +7 -0
- package/dist/components/motion/timeline.d.ts.map +1 -1
- package/dist/components/motion/timeline.js.map +1 -1
- package/dist/components/motion/tooltip/positioner.d.ts +1 -1
- package/dist/components/motion/tooltip/positioner.js +1 -1
- package/dist/components/motion/tooltip-surface.d.ts +6 -1
- package/dist/components/motion/tooltip-surface.d.ts.map +1 -1
- package/dist/components/motion/tooltip-surface.js +34 -24
- package/dist/components/motion/tooltip-surface.js.map +1 -1
- package/dist/components/motion/tooltip.d.ts +7 -1
- package/dist/components/motion/tooltip.d.ts.map +1 -1
- package/dist/components/motion/tooltip.js +1 -1
- package/dist/components/motion/upvote-button.d.ts +30 -0
- package/dist/components/motion/upvote-button.d.ts.map +1 -0
- package/dist/components/motion/upvote-button.js +144 -0
- package/dist/components/motion/upvote-button.js.map +1 -0
- package/dist/components/motion/wallet-card/account-avatar.d.ts +1 -1
- package/dist/components/motion/wallet-card/account-switcher.d.ts +2 -2
- package/dist/components/motion/wallet-card/account-switcher.js +7 -7
- package/dist/components/motion/wallet-card/account-switcher.js.map +1 -1
- package/dist/components/motion/wallet-card/balance-delta.js +1 -1
- package/dist/components/motion/wallet-card/balance-delta.js.map +1 -1
- package/dist/components/motion/wallet-card/copy-button.js +1 -1
- package/dist/components/motion/wallet-card/copy-button.js.map +1 -1
- package/dist/components/motion/wallet-card/search-bar.d.ts +1 -1
- package/dist/components/motion/wallet-card/search-bar.js +8 -8
- package/dist/components/motion/wallet-card/search-bar.js.map +1 -1
- package/dist/components/motion/{wallet-card/index.d.ts → wallet-card.d.ts} +4 -4
- package/dist/components/motion/wallet-card.d.ts.map +1 -0
- package/dist/components/motion/{wallet-card/index.js → wallet-card.js} +11 -11
- package/dist/components/motion/wallet-card.js.map +1 -0
- package/dist/components/motion/wave-reveal.d.ts +25 -0
- package/dist/components/motion/wave-reveal.d.ts.map +1 -0
- package/dist/components/motion/wave-reveal.js +630 -0
- package/dist/components/motion/wave-reveal.js.map +1 -0
- package/dist/components/motion/wheel-picker.d.ts +7 -0
- package/dist/components/motion/wheel-picker.d.ts.map +1 -1
- package/dist/components/motion/wheel-picker.js +12 -2
- package/dist/components/motion/wheel-picker.js.map +1 -1
- package/dist/components/reui/alert.d.ts +1 -1
- package/dist/components/reui/autocomplete.d.ts +1 -1
- package/dist/components/reui/badge.d.ts +2 -2
- package/dist/components/reui/color-picker.js +1 -1
- package/dist/components/reui/color-picker.js.map +1 -1
- package/dist/components/reui/file-type.d.ts +1 -1
- package/dist/components/reui/filters/filters-advanced.js.map +1 -1
- package/dist/components/reui/frame.d.ts +2 -2
- package/dist/components/reui/frame.js +1 -1
- package/dist/components/reui/frame.js.map +1 -1
- package/dist/components/reui/icon-tile.d.ts +2 -2
- package/dist/components/reui/number-field.d.ts +3 -3
- package/dist/components/reui/rating.d.ts +1 -1
- package/dist/components/ui/attachment.d.ts +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/bubble.d.ts +1 -1
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/calendar.js +1 -1
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/card.js +1 -1
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/combobox.js +2 -2
- package/dist/components/ui/combobox.js.map +1 -1
- package/dist/components/ui/empty.d.ts +1 -1
- package/dist/components/ui/input-group.d.ts +2 -2
- package/dist/components/ui/item.d.ts +2 -2
- package/dist/components/ui/marker.d.ts +1 -1
- package/dist/components/ui/questionnaire.js +2 -2
- package/dist/components/ui/questionnaire.js.map +1 -1
- package/dist/components/ui/sidebar.d.ts +1 -1
- package/dist/components/ui/sidebar.js +1 -1
- package/dist/components/ui/sidebar.js.map +1 -1
- package/dist/components/ui/toggle-group.js +1 -1
- package/dist/components/ui/toggle-group.js.map +1 -1
- package/dist/components/ui/toggle.d.ts +1 -1
- package/dist/components/ui/trace.js +1 -1
- package/dist/components/ui/trace.js.map +1 -1
- package/dist/{constants-CggcOqef.js → constants-DfbfCDSg.js} +3 -6
- package/dist/constants-DfbfCDSg.js.map +1 -0
- package/dist/{context-BrGWrRwa.d.ts → context-4tt2I7Qm.d.ts} +14 -4
- package/dist/context-4tt2I7Qm.d.ts.map +1 -0
- package/dist/{context-DWHy9EUW.js → context-B3BNuwGu.js} +8 -25
- package/dist/context-B3BNuwGu.js.map +1 -0
- package/dist/{context-BEYROlTB.d.ts → context-BFNkGCGz.d.ts} +18 -14
- package/dist/context-BFNkGCGz.d.ts.map +1 -0
- package/dist/{context-r3QNWoPh.js → context-BG1Wzdnj.js} +6 -10
- package/dist/context-BG1Wzdnj.js.map +1 -0
- package/dist/{context-Dae38FV_.js → context-Bx-OaIL8.js} +5 -9
- package/dist/context-Bx-OaIL8.js.map +1 -0
- package/dist/context-C92iQeLO.js.map +1 -1
- package/dist/{context-CmexbpIK.js → context-C9LHO4MN.js} +12 -27
- package/dist/context-C9LHO4MN.js.map +1 -0
- package/dist/context-CHXHCbuu.js.map +1 -1
- package/dist/{context-C5DO1oe1.js → context-CIzAPhXA.js} +37 -99
- package/dist/context-CIzAPhXA.js.map +1 -0
- package/dist/{context-B5NItr9C.d.ts → context-CP3spicY.d.ts} +20 -15
- package/dist/context-CP3spicY.d.ts.map +1 -0
- package/dist/{context-CwSk1WZR.js → context-Cg1VelQJ.js} +9 -25
- package/dist/context-Cg1VelQJ.js.map +1 -0
- package/dist/{context-BpHX6J1T.js → context-DDoVOc0D.js} +8 -25
- package/dist/context-DDoVOc0D.js.map +1 -0
- package/dist/{context-C1Z_5vew.d.ts → context-DMIy-rFm.d.ts} +15 -4
- package/dist/context-DMIy-rFm.d.ts.map +1 -0
- package/dist/context-DR6jkfea.js +11 -0
- package/dist/context-DR6jkfea.js.map +1 -0
- package/dist/{context-BLjAwZ5V.js → context-DcJtX6ht.js} +18 -95
- package/dist/context-DcJtX6ht.js.map +1 -0
- package/dist/{context-Cr2SLhVi.js → context-Dg48xMuG.js} +3 -7
- package/dist/context-Dg48xMuG.js.map +1 -0
- package/dist/context-DnM-b9yO.js +23 -0
- package/dist/context-DnM-b9yO.js.map +1 -0
- package/dist/context-DtFeYksF.d.ts +28 -0
- package/dist/context-DtFeYksF.d.ts.map +1 -0
- package/dist/{context-C8M88I1F.js → context-cRAJSFxf.js} +4 -8
- package/dist/context-cRAJSFxf.js.map +1 -0
- package/dist/{context-CgRa89Bq.d.ts → context-jX-r_7EP.d.ts} +12 -7
- package/dist/context-jX-r_7EP.d.ts.map +1 -0
- package/dist/{copy-menu-BizTEv8v.js → copy-menu-Bgoo5oWq.js} +6 -6
- package/dist/copy-menu-Bgoo5oWq.js.map +1 -0
- package/dist/{crash-parts-Dg5WC8u4.js → crash-parts-BkrZ6iBE.js} +2 -2
- package/dist/crash-parts-BkrZ6iBE.js.map +1 -0
- package/dist/date-utils-DVDYcEA_.js +35 -0
- package/dist/date-utils-DVDYcEA_.js.map +1 -0
- package/dist/{ease-DnPhwGe6.d.ts → ease-D_-bhUDt.d.ts} +13 -6
- package/dist/ease-D_-bhUDt.d.ts.map +1 -0
- package/dist/formats-ColrL9Eg.js +58 -0
- package/dist/formats-ColrL9Eg.js.map +1 -0
- package/dist/{game-parts-hATtqY3s.d.ts → game-parts-B635BoSe.d.ts} +4 -4
- package/dist/{game-parts-hATtqY3s.d.ts.map → game-parts-B635BoSe.d.ts.map} +1 -1
- package/dist/hooks/use-controllable.d.ts +10 -0
- package/dist/hooks/use-controllable.d.ts.map +1 -0
- package/dist/hooks/use-controllable.js +39 -0
- package/dist/hooks/use-controllable.js.map +1 -0
- package/dist/hooks/use-copy.d.ts +16 -0
- package/dist/hooks/use-copy.d.ts.map +1 -0
- package/dist/hooks/use-copy.js +36 -0
- package/dist/hooks/use-copy.js.map +1 -0
- package/dist/hooks/use-dismiss.d.ts +17 -5
- package/dist/hooks/use-dismiss.d.ts.map +1 -1
- package/dist/hooks/use-dismiss.js +36 -24
- package/dist/hooks/use-dismiss.js.map +1 -1
- package/dist/hooks/use-focus-trap.d.ts +4 -3
- package/dist/hooks/use-focus-trap.d.ts.map +1 -1
- package/dist/hooks/use-focus-trap.js +25 -37
- package/dist/hooks/use-focus-trap.js.map +1 -1
- package/dist/hooks/use-highlighted-code.d.ts +1 -1
- package/dist/hooks/use-highlighted-code.d.ts.map +1 -1
- package/dist/hooks/use-hover-capable.d.ts +1 -1
- package/dist/hooks/use-hover-capable.js +1 -1
- package/dist/hooks/use-hover-capable.js.map +1 -1
- package/dist/hooks/use-hover-gesture.d.ts +5 -5
- package/dist/hooks/use-hover-gesture.js +5 -5
- package/dist/hooks/use-hover-gesture.js.map +1 -1
- package/dist/hooks/use-listbox.d.ts +1 -0
- package/dist/hooks/use-listbox.js +2 -1
- package/dist/hooks/use-listbox.js.map +1 -1
- package/dist/hooks/use-modal-scope.js +22 -26
- package/dist/hooks/use-modal-scope.js.map +1 -1
- package/dist/hooks/use-on-open.d.ts +3 -3
- package/dist/hooks/use-on-open.js +3 -3
- package/dist/hooks/use-on-open.js.map +1 -1
- package/dist/hooks/use-row-cursor.d.ts +2 -2
- package/dist/hooks/use-row-cursor.js +2 -2
- package/dist/hooks/use-row-cursor.js.map +1 -1
- package/dist/hooks/use-slider.d.ts +13 -3
- package/dist/hooks/use-slider.d.ts.map +1 -1
- package/dist/hooks/use-slider.js +23 -4
- package/dist/hooks/use-slider.js.map +1 -1
- package/dist/hooks/use-status-open.d.ts +26 -0
- package/dist/hooks/use-status-open.d.ts.map +1 -0
- package/dist/hooks/use-status-open.js +43 -0
- package/dist/hooks/use-status-open.js.map +1 -0
- package/dist/hooks/use-tap-gesture.d.ts +3 -3
- package/dist/hooks/use-tap-gesture.js +3 -3
- package/dist/hooks/use-tap-gesture.js.map +1 -1
- package/dist/lib/audio-context.d.ts +27 -1
- package/dist/lib/audio-context.d.ts.map +1 -1
- package/dist/lib/audio-context.js +61 -2
- package/dist/lib/audio-context.js.map +1 -1
- package/dist/lib/book-sounds.d.ts.map +1 -1
- package/dist/lib/book-sounds.js +8 -9
- package/dist/lib/book-sounds.js.map +1 -1
- package/dist/lib/color.d.ts +29 -0
- package/dist/lib/color.d.ts.map +1 -0
- package/dist/lib/color.js +93 -0
- package/dist/lib/color.js.map +1 -0
- package/dist/lib/command-search.d.ts +7 -1
- package/dist/lib/command-search.d.ts.map +1 -1
- package/dist/lib/command-search.js +42 -19
- package/dist/lib/command-search.js.map +1 -1
- package/dist/lib/ease.d.ts +2 -2
- package/dist/lib/ease.js +12 -5
- package/dist/lib/ease.js.map +1 -1
- package/dist/lib/focusable.d.ts +10 -0
- package/dist/lib/focusable.d.ts.map +1 -1
- package/dist/lib/focusable.js +31 -1
- package/dist/lib/focusable.js.map +1 -1
- package/dist/lib/game-sounds.d.ts.map +1 -1
- package/dist/lib/game-sounds.js +7 -14
- package/dist/lib/game-sounds.js.map +1 -1
- package/dist/lib/layers.d.ts +24 -0
- package/dist/lib/layers.d.ts.map +1 -0
- package/dist/lib/layers.js +47 -0
- package/dist/lib/layers.js.map +1 -0
- package/dist/lib/merge-refs.d.ts +6 -0
- package/dist/lib/merge-refs.d.ts.map +1 -0
- package/dist/lib/merge-refs.js +15 -0
- package/dist/lib/merge-refs.js.map +1 -0
- package/dist/lib/presence-gate.d.ts +2 -2
- package/dist/lib/presence-gate.js.map +1 -1
- package/dist/lib/scroll-lock.d.ts +13 -0
- package/dist/lib/scroll-lock.d.ts.map +1 -0
- package/dist/lib/scroll-lock.js +59 -0
- package/dist/lib/scroll-lock.js.map +1 -0
- package/dist/lib/sound.d.ts +30 -0
- package/dist/lib/sound.d.ts.map +1 -0
- package/dist/lib/sound.js +95 -0
- package/dist/lib/sound.js.map +1 -0
- package/dist/lib/sounds/bell.d.ts +4 -0
- package/dist/lib/sounds/bell.d.ts.map +1 -0
- package/dist/lib/sounds/bell.js +36 -0
- package/dist/lib/sounds/bell.js.map +1 -0
- package/dist/lib/sounds/bubble.d.ts +4 -0
- package/dist/lib/sounds/bubble.d.ts.map +1 -0
- package/dist/lib/sounds/bubble.js +27 -0
- package/dist/lib/sounds/bubble.js.map +1 -0
- package/dist/lib/sounds/burst.d.ts +4 -0
- package/dist/lib/sounds/burst.d.ts.map +1 -0
- package/dist/lib/sounds/burst.js +45 -0
- package/dist/lib/sounds/burst.js.map +1 -0
- package/dist/lib/sounds/buzz.d.ts +4 -0
- package/dist/lib/sounds/buzz.d.ts.map +1 -0
- package/dist/lib/sounds/buzz.js +26 -0
- package/dist/lib/sounds/buzz.js.map +1 -0
- package/dist/lib/sounds/camera.d.ts +4 -0
- package/dist/lib/sounds/camera.d.ts.map +1 -0
- package/dist/lib/sounds/camera.js +40 -0
- package/dist/lib/sounds/camera.js.map +1 -0
- package/dist/lib/sounds/check.d.ts +4 -0
- package/dist/lib/sounds/check.d.ts.map +1 -0
- package/dist/lib/sounds/check.js +40 -0
- package/dist/lib/sounds/check.js.map +1 -0
- package/dist/lib/sounds/chime.d.ts +4 -0
- package/dist/lib/sounds/chime.d.ts.map +1 -0
- package/dist/lib/sounds/chime.js +33 -0
- package/dist/lib/sounds/chime.js.map +1 -0
- package/dist/lib/sounds/close.d.ts +4 -0
- package/dist/lib/sounds/close.d.ts.map +1 -0
- package/dist/lib/sounds/close.js +36 -0
- package/dist/lib/sounds/close.js.map +1 -0
- package/dist/lib/sounds/coin.d.ts +4 -0
- package/dist/lib/sounds/coin.d.ts.map +1 -0
- package/dist/lib/sounds/coin.js +31 -0
- package/dist/lib/sounds/coin.js.map +1 -0
- package/dist/lib/sounds/collapse.d.ts +4 -0
- package/dist/lib/sounds/collapse.d.ts.map +1 -0
- package/dist/lib/sounds/collapse.js +41 -0
- package/dist/lib/sounds/collapse.js.map +1 -0
- package/dist/lib/sounds/connect.d.ts +4 -0
- package/dist/lib/sounds/connect.d.ts.map +1 -0
- package/dist/lib/sounds/connect.js +39 -0
- package/dist/lib/sounds/connect.js.map +1 -0
- package/dist/lib/sounds/copy.d.ts +4 -0
- package/dist/lib/sounds/copy.d.ts.map +1 -0
- package/dist/lib/sounds/copy.js +39 -0
- package/dist/lib/sounds/copy.js.map +1 -0
- package/dist/lib/sounds/delete.d.ts +4 -0
- package/dist/lib/sounds/delete.d.ts.map +1 -0
- package/dist/lib/sounds/delete.js +39 -0
- package/dist/lib/sounds/delete.js.map +1 -0
- package/dist/lib/sounds/disconnect.d.ts +4 -0
- package/dist/lib/sounds/disconnect.d.ts.map +1 -0
- package/dist/lib/sounds/disconnect.js +39 -0
- package/dist/lib/sounds/disconnect.js.map +1 -0
- package/dist/lib/sounds/dismiss.d.ts +4 -0
- package/dist/lib/sounds/dismiss.d.ts.map +1 -0
- package/dist/lib/sounds/dismiss.js +27 -0
- package/dist/lib/sounds/dismiss.js.map +1 -0
- package/dist/lib/sounds/dock.d.ts +4 -0
- package/dist/lib/sounds/dock.d.ts.map +1 -0
- package/dist/lib/sounds/dock.js +32 -0
- package/dist/lib/sounds/dock.js.map +1 -0
- package/dist/lib/sounds/drop.d.ts +4 -0
- package/dist/lib/sounds/drop.d.ts.map +1 -0
- package/dist/lib/sounds/drop.js +48 -0
- package/dist/lib/sounds/drop.js.map +1 -0
- package/dist/lib/sounds/engine.d.ts +142 -0
- package/dist/lib/sounds/engine.d.ts.map +1 -0
- package/dist/lib/sounds/engine.js +210 -0
- package/dist/lib/sounds/engine.js.map +1 -0
- package/dist/lib/sounds/error.d.ts +4 -0
- package/dist/lib/sounds/error.d.ts.map +1 -0
- package/dist/lib/sounds/error.js +51 -0
- package/dist/lib/sounds/error.js.map +1 -0
- package/dist/lib/sounds/expand.d.ts +4 -0
- package/dist/lib/sounds/expand.d.ts.map +1 -0
- package/dist/lib/sounds/expand.js +28 -0
- package/dist/lib/sounds/expand.js.map +1 -0
- package/dist/lib/sounds/heart.d.ts +4 -0
- package/dist/lib/sounds/heart.d.ts.map +1 -0
- package/dist/lib/sounds/heart.js +39 -0
- package/dist/lib/sounds/heart.js.map +1 -0
- package/dist/lib/sounds/lift.d.ts +4 -0
- package/dist/lib/sounds/lift.d.ts.map +1 -0
- package/dist/lib/sounds/lift.js +34 -0
- package/dist/lib/sounds/lift.js.map +1 -0
- package/dist/lib/sounds/lock.d.ts +4 -0
- package/dist/lib/sounds/lock.d.ts.map +1 -0
- package/dist/lib/sounds/lock.js +32 -0
- package/dist/lib/sounds/lock.js.map +1 -0
- package/dist/lib/sounds/navigate.d.ts +4 -0
- package/dist/lib/sounds/navigate.d.ts.map +1 -0
- package/dist/lib/sounds/navigate.js +36 -0
- package/dist/lib/sounds/navigate.js.map +1 -0
- package/dist/lib/sounds/notify.d.ts +4 -0
- package/dist/lib/sounds/notify.d.ts.map +1 -0
- package/dist/lib/sounds/notify.js +31 -0
- package/dist/lib/sounds/notify.js.map +1 -0
- package/dist/lib/sounds/open.d.ts +4 -0
- package/dist/lib/sounds/open.d.ts.map +1 -0
- package/dist/lib/sounds/open.js +36 -0
- package/dist/lib/sounds/open.js.map +1 -0
- package/dist/lib/sounds/ping.d.ts +4 -0
- package/dist/lib/sounds/ping.d.ts.map +1 -0
- package/dist/lib/sounds/ping.js +30 -0
- package/dist/lib/sounds/ping.js.map +1 -0
- package/dist/lib/sounds/pop.d.ts +4 -0
- package/dist/lib/sounds/pop.d.ts.map +1 -0
- package/dist/lib/sounds/pop.js +27 -0
- package/dist/lib/sounds/pop.js.map +1 -0
- package/dist/lib/sounds/press.d.ts +4 -0
- package/dist/lib/sounds/press.d.ts.map +1 -0
- package/dist/lib/sounds/press.js +40 -0
- package/dist/lib/sounds/press.js.map +1 -0
- package/dist/lib/sounds/receive.d.ts +4 -0
- package/dist/lib/sounds/receive.d.ts.map +1 -0
- package/dist/lib/sounds/receive.js +39 -0
- package/dist/lib/sounds/receive.js.map +1 -0
- package/dist/lib/sounds/refresh.d.ts +4 -0
- package/dist/lib/sounds/refresh.d.ts.map +1 -0
- package/dist/lib/sounds/refresh.js +34 -0
- package/dist/lib/sounds/refresh.js.map +1 -0
- package/dist/lib/sounds/reveal.d.ts +4 -0
- package/dist/lib/sounds/reveal.d.ts.map +1 -0
- package/dist/lib/sounds/reveal.js +34 -0
- package/dist/lib/sounds/reveal.js.map +1 -0
- package/dist/lib/sounds/select.d.ts +4 -0
- package/dist/lib/sounds/select.d.ts.map +1 -0
- package/dist/lib/sounds/select.js +32 -0
- package/dist/lib/sounds/select.js.map +1 -0
- package/dist/lib/sounds/send.d.ts +4 -0
- package/dist/lib/sounds/send.d.ts.map +1 -0
- package/dist/lib/sounds/send.js +35 -0
- package/dist/lib/sounds/send.js.map +1 -0
- package/dist/lib/sounds/shutter.d.ts +4 -0
- package/dist/lib/sounds/shutter.d.ts.map +1 -0
- package/dist/lib/sounds/shutter.js +40 -0
- package/dist/lib/sounds/shutter.js.map +1 -0
- package/dist/lib/sounds/snap.d.ts +4 -0
- package/dist/lib/sounds/snap.d.ts.map +1 -0
- package/dist/lib/sounds/snap.js +33 -0
- package/dist/lib/sounds/snap.js.map +1 -0
- package/dist/lib/sounds/star.d.ts +4 -0
- package/dist/lib/sounds/star.d.ts.map +1 -0
- package/dist/lib/sounds/star.js +38 -0
- package/dist/lib/sounds/star.js.map +1 -0
- package/dist/lib/sounds/success.d.ts +4 -0
- package/dist/lib/sounds/success.d.ts.map +1 -0
- package/dist/lib/sounds/success.js +39 -0
- package/dist/lib/sounds/success.js.map +1 -0
- package/dist/lib/sounds/swipe.d.ts +4 -0
- package/dist/lib/sounds/swipe.d.ts.map +1 -0
- package/dist/lib/sounds/swipe.js +29 -0
- package/dist/lib/sounds/swipe.js.map +1 -0
- package/dist/lib/sounds/switch.d.ts +4 -0
- package/dist/lib/sounds/switch.d.ts.map +1 -0
- package/dist/lib/sounds/switch.js +40 -0
- package/dist/lib/sounds/switch.js.map +1 -0
- package/dist/lib/sounds/tap.d.ts +4 -0
- package/dist/lib/sounds/tap.d.ts.map +1 -0
- package/dist/lib/sounds/tap.js +33 -0
- package/dist/lib/sounds/tap.js.map +1 -0
- package/dist/lib/sounds/tick.d.ts +4 -0
- package/dist/lib/sounds/tick.d.ts.map +1 -0
- package/dist/lib/sounds/tick.js +26 -0
- package/dist/lib/sounds/tick.js.map +1 -0
- package/dist/lib/sounds/timer.d.ts +4 -0
- package/dist/lib/sounds/timer.d.ts.map +1 -0
- package/dist/lib/sounds/timer.js +26 -0
- package/dist/lib/sounds/timer.js.map +1 -0
- package/dist/lib/sounds/toggle.d.ts +6 -0
- package/dist/lib/sounds/toggle.d.ts.map +1 -0
- package/dist/lib/sounds/toggle.js +79 -0
- package/dist/lib/sounds/toggle.js.map +1 -0
- package/dist/lib/sounds/trash.d.ts +4 -0
- package/dist/lib/sounds/trash.d.ts.map +1 -0
- package/dist/lib/sounds/trash.js +40 -0
- package/dist/lib/sounds/trash.js.map +1 -0
- package/dist/lib/sounds/type.d.ts +4 -0
- package/dist/lib/sounds/type.d.ts.map +1 -0
- package/dist/lib/sounds/type.js +35 -0
- package/dist/lib/sounds/type.js.map +1 -0
- package/dist/lib/sounds/unlock.d.ts +4 -0
- package/dist/lib/sounds/unlock.d.ts.map +1 -0
- package/dist/lib/sounds/unlock.js +41 -0
- package/dist/lib/sounds/unlock.js.map +1 -0
- package/dist/lib/sounds/warning.d.ts +4 -0
- package/dist/lib/sounds/warning.d.ts.map +1 -0
- package/dist/lib/sounds/warning.js +29 -0
- package/dist/lib/sounds/warning.js.map +1 -0
- package/dist/lib/sounds/whisper.d.ts +4 -0
- package/dist/lib/sounds/whisper.d.ts.map +1 -0
- package/dist/lib/sounds/whisper.js +27 -0
- package/dist/lib/sounds/whisper.js.map +1 -0
- package/dist/lib/text-shimmer.d.ts +6 -0
- package/dist/lib/text-shimmer.d.ts.map +1 -1
- package/dist/lib/text-shimmer.js +7 -1
- package/dist/lib/text-shimmer.js.map +1 -1
- package/dist/lib/tick-sound.d.ts.map +1 -1
- package/dist/lib/tick-sound.js +8 -11
- package/dist/lib/tick-sound.js.map +1 -1
- package/dist/lib/touch.d.ts +10 -10
- package/dist/lib/touch.js +10 -10
- package/dist/lib/touch.js.map +1 -1
- package/dist/listbox-panel-BX74YCzI.d.ts +31 -0
- package/dist/listbox-panel-BX74YCzI.d.ts.map +1 -0
- package/dist/menu-button-CbEYps6k.d.ts +29 -0
- package/dist/menu-button-CbEYps6k.d.ts.map +1 -0
- package/dist/menu-sub-button-NgS4JryG.d.ts +25 -0
- package/dist/menu-sub-button-NgS4JryG.d.ts.map +1 -0
- package/dist/messages-D0lxgjNm.d.ts +31 -0
- package/dist/messages-D0lxgjNm.d.ts.map +1 -0
- package/dist/{model-Cqi9KKo1.d.ts → model-CHHE1lHQ.d.ts} +5 -1
- package/dist/{model-Cqi9KKo1.d.ts.map → model-CHHE1lHQ.d.ts.map} +1 -1
- package/dist/{model-DP6FsG__.d.ts → model-D6sI_4m9.d.ts} +5 -1
- package/dist/model-D6sI_4m9.d.ts.map +1 -0
- package/dist/{model-B_LLKNOs.d.ts → model-DUQnYLRU.d.ts} +3 -1
- package/dist/model-DUQnYLRU.d.ts.map +1 -0
- package/dist/{model-Cbzktxjx.d.ts → model-Dafi-gx6.d.ts} +2 -1
- package/dist/model-Dafi-gx6.d.ts.map +1 -0
- package/dist/motion-1TeD2tw9.js +67 -0
- package/dist/motion-1TeD2tw9.js.map +1 -0
- package/dist/placement-BRE79jXm.d.ts +4 -0
- package/dist/placement-BRE79jXm.d.ts.map +1 -0
- package/dist/placement-Cg-Y5tLI.js +74 -0
- package/dist/placement-Cg-Y5tLI.js.map +1 -0
- package/dist/{plot-B2aPWHib.js → plot-CSTtMo6j.js} +3 -3
- package/dist/{plot-B2aPWHib.js.map → plot-CSTtMo6j.js.map} +1 -1
- package/dist/popover-morph-CWb4N9ux.d.ts +55 -0
- package/dist/popover-morph-CWb4N9ux.d.ts.map +1 -0
- package/dist/{positioner-DY1vB4rF.js → positioner-CFR4mJg6.js} +112 -4
- package/dist/positioner-CFR4mJg6.js.map +1 -0
- package/dist/resource-row-PkgPS9Hk.js +290 -0
- package/dist/resource-row-PkgPS9Hk.js.map +1 -0
- package/dist/root-C1n8-uIA.js +420 -0
- package/dist/root-C1n8-uIA.js.map +1 -0
- package/dist/{use-inspection-DWk6TdY9.js → scale-JwdKsMkj.js} +2 -55
- package/dist/scale-JwdKsMkj.js.map +1 -0
- package/dist/theme.css +98 -4
- package/dist/{tooltip-UI0lMGya.d.ts → tooltip-CoAbjn9I.d.ts} +9 -1
- package/dist/tooltip-CoAbjn9I.d.ts.map +1 -0
- package/dist/{tooltip-CMtIWcUY.d.ts → tooltip-DI79u-1V.d.ts} +11 -2
- package/dist/tooltip-DI79u-1V.d.ts.map +1 -0
- package/dist/{tooltip-jQICwV_k.d.ts → tooltip-DPci40hM.d.ts} +9 -1
- package/dist/tooltip-DPci40hM.d.ts.map +1 -0
- package/dist/{tooltip-CJccRGy9.d.ts → tooltip-X7sMXf98.d.ts} +11 -2
- package/dist/tooltip-X7sMXf98.d.ts.map +1 -0
- package/dist/{tooltip-BUkacvMl.js → tooltip-gHv-6eOs.js} +54 -43
- package/dist/tooltip-gHv-6eOs.js.map +1 -0
- package/dist/{tooltip-DuPE_3Gi.d.ts → tooltip-gKOUHp_1.d.ts} +8 -1
- package/dist/tooltip-gKOUHp_1.d.ts.map +1 -0
- package/dist/types-BhZ0FwDi.d.ts +33 -0
- package/dist/types-BhZ0FwDi.d.ts.map +1 -0
- package/dist/types-BnHpfLje.d.ts +111 -0
- package/dist/types-BnHpfLje.d.ts.map +1 -0
- package/dist/types-COoUai3R.d.ts +64 -0
- package/dist/types-COoUai3R.d.ts.map +1 -0
- package/dist/{types-DJ8z6gW8.d.ts → types-CbBZy33k.d.ts} +3 -1
- package/dist/{types-DJ8z6gW8.d.ts.map → types-CbBZy33k.d.ts.map} +1 -1
- package/dist/{types-C_v1N4fH.d.ts → types-ClKnPGuP.d.ts} +18 -4
- package/dist/types-ClKnPGuP.d.ts.map +1 -0
- package/dist/types-DPKILbI9.d.ts +37 -0
- package/dist/types-DPKILbI9.d.ts.map +1 -0
- package/dist/types-Dbiy485_.d.ts +114 -0
- package/dist/types-Dbiy485_.d.ts.map +1 -0
- package/dist/types-DtUnNprK.d.ts +53 -0
- package/dist/types-DtUnNprK.d.ts.map +1 -0
- package/dist/{use-crash-game-DiGujbfH.d.ts → use-crash-game-C6JPLvAH.d.ts} +5 -2
- package/dist/{use-crash-game-DiGujbfH.d.ts.map → use-crash-game-C6JPLvAH.d.ts.map} +1 -1
- package/dist/use-filtered-options-3TcVsHzV.js +167 -0
- package/dist/use-filtered-options-3TcVsHzV.js.map +1 -0
- package/dist/use-filtered-options-BbXqmJmZ.d.ts +14 -0
- package/dist/use-filtered-options-BbXqmJmZ.d.ts.map +1 -0
- package/dist/use-inspection-LoyxxJk8.js +31 -0
- package/dist/use-inspection-LoyxxJk8.js.map +1 -0
- package/dist/use-menu-navigation-B17_iK_B.js +57 -0
- package/dist/use-menu-navigation-B17_iK_B.js.map +1 -0
- package/dist/{use-position-B1lYvN8D.d.ts → use-position-ac-sSZRY.d.ts} +3 -1
- package/dist/use-position-ac-sSZRY.d.ts.map +1 -0
- package/dist/use-width-DZex74TT.js +45 -0
- package/dist/use-width-DZex74TT.js.map +1 -0
- package/dist/utils-f7_cAAwc.js +55 -0
- package/dist/utils-f7_cAAwc.js.map +1 -0
- package/package.json +16 -16
- package/dist/components/agents/agent-activity/index.d.ts.map +0 -1
- package/dist/components/agents/agent-activity/index.js.map +0 -1
- package/dist/components/agents/approval-card/index.d.ts.map +0 -1
- package/dist/components/agents/approval-card/index.js.map +0 -1
- package/dist/components/motion/animated-sidebar.js.map +0 -1
- package/dist/components/motion/animated-toast-stack.d.ts.map +0 -1
- package/dist/components/motion/animated-toast-stack.js.map +0 -1
- package/dist/components/motion/availability-scheduler/index.d.ts.map +0 -1
- package/dist/components/motion/availability-scheduler/index.js.map +0 -1
- package/dist/components/motion/button/index.js +0 -6
- package/dist/components/motion/popover-morph.d.ts.map +0 -1
- package/dist/components/motion/table/index.d.ts.map +0 -1
- package/dist/components/motion/table/index.js.map +0 -1
- package/dist/components/motion/wallet-card/index.d.ts.map +0 -1
- package/dist/components/motion/wallet-card/index.js.map +0 -1
- package/dist/constants-CggcOqef.js.map +0 -1
- package/dist/context-B5NItr9C.d.ts.map +0 -1
- package/dist/context-BEYROlTB.d.ts.map +0 -1
- package/dist/context-BLjAwZ5V.js.map +0 -1
- package/dist/context-BpHX6J1T.js.map +0 -1
- package/dist/context-BrGWrRwa.d.ts.map +0 -1
- package/dist/context-C1Z_5vew.d.ts.map +0 -1
- package/dist/context-C5DO1oe1.js.map +0 -1
- package/dist/context-C8M88I1F.js.map +0 -1
- package/dist/context-CgRa89Bq.d.ts.map +0 -1
- package/dist/context-CmexbpIK.js.map +0 -1
- package/dist/context-Cr2SLhVi.js.map +0 -1
- package/dist/context-CwSk1WZR.js.map +0 -1
- package/dist/context-DWHy9EUW.js.map +0 -1
- package/dist/context-Dae38FV_.js.map +0 -1
- package/dist/context-r3QNWoPh.js.map +0 -1
- package/dist/copy-menu-BizTEv8v.js.map +0 -1
- package/dist/crash-parts-Dg5WC8u4.js.map +0 -1
- package/dist/ease-DnPhwGe6.d.ts.map +0 -1
- package/dist/model-B_LLKNOs.d.ts.map +0 -1
- package/dist/model-Cbzktxjx.d.ts.map +0 -1
- package/dist/model-DP6FsG__.d.ts.map +0 -1
- package/dist/positioner-DY1vB4rF.js.map +0 -1
- package/dist/tooltip-BUkacvMl.js.map +0 -1
- package/dist/tooltip-CJccRGy9.d.ts.map +0 -1
- package/dist/tooltip-CMtIWcUY.d.ts.map +0 -1
- package/dist/tooltip-DuPE_3Gi.d.ts.map +0 -1
- package/dist/tooltip-UI0lMGya.d.ts.map +0 -1
- package/dist/tooltip-jQICwV_k.d.ts.map +0 -1
- package/dist/types-C1WFGMvf.d.ts +0 -34
- package/dist/types-C1WFGMvf.d.ts.map +0 -1
- package/dist/types-C_v1N4fH.d.ts.map +0 -1
- package/dist/types-DROZkngo.d.ts +0 -20
- package/dist/types-DROZkngo.d.ts.map +0 -1
- package/dist/use-active-option-DbxnIM2n.js +0 -85
- package/dist/use-active-option-DbxnIM2n.js.map +0 -1
- package/dist/use-inspection-DWk6TdY9.js.map +0 -1
- package/dist/use-position-B1lYvN8D.d.ts.map +0 -1
- package/dist/use-width-Dmy1eT1-.js +0 -23
- package/dist/use-width-Dmy1eT1-.js.map +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { createContext,
|
|
1
|
+
import { createContext, useContext, useMemo } from "react";
|
|
2
2
|
import { useReducedMotion } from "motion/react";
|
|
3
3
|
import { useHoverCapable } from "./hooks/use-hover-capable.js";
|
|
4
4
|
import { useMessages } from "./lib/i18n.js";
|
|
5
|
+
import { t as useInspection } from "./use-inspection-LoyxxJk8.js";
|
|
5
6
|
// src/components/charts/status-bar/messages.ts
|
|
6
7
|
const statusBarMessages = {
|
|
7
8
|
label: "Status history",
|
|
@@ -71,38 +72,20 @@ function useStatusBarModel({ data, statuses: customStatuses, label: customLabel,
|
|
|
71
72
|
};
|
|
72
73
|
});
|
|
73
74
|
}, [data, statuses]);
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
const requestedId = activeId === void 0 ? internalId : activeId;
|
|
77
|
-
const activeIndex = rows.findIndex(({ datum }) => datum.id === requestedId);
|
|
78
|
-
const active = rows[activeIndex] ?? null;
|
|
79
|
-
const [tooltipOpen, setTooltipOpen] = useState(false);
|
|
80
|
-
const plotRef = useRef(null);
|
|
81
|
-
const tooltipId = useId();
|
|
82
|
-
const latest = useRef({
|
|
75
|
+
const { activeIndex, setActive, open: tooltipOpen, setOpen: setTooltipOpen, plotRef, tooltipId } = useInspection({
|
|
76
|
+
ids: rows.map(({ datum }) => datum.id),
|
|
83
77
|
activeId,
|
|
84
|
-
|
|
78
|
+
defaultActiveId,
|
|
85
79
|
onActiveChange
|
|
86
80
|
});
|
|
87
|
-
useLayoutEffect(() => {
|
|
88
|
-
latest.current = {
|
|
89
|
-
activeId,
|
|
90
|
-
requestedId,
|
|
91
|
-
onActiveChange
|
|
92
|
-
};
|
|
93
|
-
});
|
|
94
81
|
return {
|
|
95
82
|
rows,
|
|
96
83
|
statuses,
|
|
97
84
|
label,
|
|
98
85
|
t,
|
|
99
|
-
active,
|
|
86
|
+
active: rows[activeIndex] ?? null,
|
|
100
87
|
activeIndex,
|
|
101
|
-
setActive
|
|
102
|
-
const current = latest.current;
|
|
103
|
-
if (current.activeId === void 0) setInternalId(id);
|
|
104
|
-
if (current.requestedId !== id) current.onActiveChange?.(id);
|
|
105
|
-
}, []),
|
|
88
|
+
setActive,
|
|
106
89
|
plotRef,
|
|
107
90
|
tooltipId,
|
|
108
91
|
tooltipOpen,
|
|
@@ -119,4 +102,4 @@ function useStatusBar() {
|
|
|
119
102
|
}
|
|
120
103
|
export { statusBarMessages as a, useStatusBarModel as i, StatusBarContext as n, useStatusBar as r, STATUS_BAR_STATUSES as t };
|
|
121
104
|
|
|
122
|
-
//# sourceMappingURL=context-
|
|
105
|
+
//# sourceMappingURL=context-DDoVOc0D.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-DDoVOc0D.js","names":[],"sources":["../src/components/charts/status-bar/messages.ts","../src/components/charts/status-bar/context.ts"],"sourcesContent":["\"use client\";\n\nexport const statusBarMessages = {\n label: \"Status history\",\n tableCaption: \"{label} data\",\n period: \"Period\",\n status: \"Status\",\n details: \"Details\",\n legend: \"Status legend\",\n inspect: \"{label}: inspect period\",\n empty: \"No status data\",\n operational: \"Operational\",\n degraded: \"Degraded\",\n outage: \"Outage\",\n maintenance: \"Maintenance\",\n unknown: \"No data\",\n};\n\nexport type StatusBarMessages = typeof statusBarMessages;\n","\"use client\";\n\nimport { type ComponentProps, createContext, useContext, useMemo } from \"react\";\nimport { useReducedMotion } from \"motion/react\";\n\nimport { useHoverCapable } from \"../../../hooks/use-hover-capable\";\nimport { useMessages } from \"../../../lib/i18n\";\nimport { useInspection } from \"../xy/use-inspection\";\nimport { type StatusBarMessages, statusBarMessages } from \"./messages\";\n\nexport interface StatusBarDatum {\n /** Stable, unique identity. Keep it when updating a period's status. */\n id: string;\n /** Consumer-formatted period, date, or event label. */\n label: string;\n /** Must match an ID in statuses. */\n status: string;\n /** Extra detail shown in the tooltip under the status, such as an incident note. */\n description?: string;\n}\n\nexport interface StatusBarStatus {\n /** Unique key that a datum's `status` points to. */\n id: string;\n /** Name shown in the legend and tooltip. */\n label: string;\n /** Any CSS color, including theme variables. */\n color: string;\n}\n\nexport const STATUS_BAR_STATUSES: readonly StatusBarStatus[] = [\n { id: \"operational\", label: \"Operational\", color: \"#059669\" },\n { id: \"degraded\", label: \"Degraded\", color: \"#d97706\" },\n { id: \"outage\", label: \"Outage\", color: \"#e11d48\" },\n { id: \"maintenance\", label: \"Maintenance\", color: \"#2563eb\" },\n { id: \"unknown\", label: \"No data\", color: \"var(--muted-foreground)\" },\n];\n\nexport interface StatusBarProps extends ComponentProps<\"section\"> {\n /** Observations in display order. The chart never generates or aggregates data. */\n data: readonly StatusBarDatum[];\n /** Override the default status labels and colors, or define your own states. */\n statuses?: readonly StatusBarStatus[];\n /** Accessible name for the chart. Default: \"Status history\" */\n label?: string;\n /** Id of the inspected period, for controlled use. Null clears it. */\n activeId?: string | null;\n /** The initial inspected period id when uncontrolled. Default: null */\n defaultActiveId?: string | null;\n /** Called with the period id, or null, when the inspected period changes. */\n onActiveChange?: (id: string | null) => void;\n /** Override any built-in string, including the default status labels. */\n labels?: Partial<StatusBarMessages>;\n}\n\nexport function useStatusBarModel({\n data,\n statuses: customStatuses,\n label: customLabel,\n activeId,\n defaultActiveId = null,\n onActiveChange,\n labels,\n}: StatusBarProps) {\n const t = useMessages(\"statusBar\", statusBarMessages, labels);\n const label = customLabel ?? t(\"label\");\n // Only the built-in states translate; consumer-defined statuses keep their own labels.\n const statuses = useMemo(\n () =>\n customStatuses ??\n STATUS_BAR_STATUSES.map((status) => ({\n ...status,\n // Built-in status ids double as message keys.\n label: t(status.id as keyof StatusBarMessages),\n })),\n [customStatuses, t],\n );\n const rows = useMemo(() => {\n const states = new Map<string, StatusBarStatus>();\n for (const status of statuses) {\n if (states.has(status.id)) throw new Error(`StatusBar: duplicate status ID \"${status.id}\".`);\n states.set(status.id, status);\n }\n const ids = new Set<string>();\n return data.map((datum) => {\n if (ids.has(datum.id)) throw new Error(`StatusBar: duplicate period ID \"${datum.id}\".`);\n ids.add(datum.id);\n const status = states.get(datum.status);\n if (!status) throw new Error(`StatusBar: define the status \"${datum.status}\" in statuses.`);\n return { datum, status };\n });\n }, [data, statuses]);\n const {\n activeIndex,\n setActive,\n open: tooltipOpen,\n setOpen: setTooltipOpen,\n plotRef,\n tooltipId,\n } = useInspection({\n ids: rows.map(({ datum }) => datum.id),\n activeId,\n defaultActiveId,\n onActiveChange,\n });\n const active = rows[activeIndex] ?? null;\n return {\n rows,\n statuses,\n label,\n t,\n active,\n activeIndex,\n setActive,\n plotRef,\n tooltipId,\n tooltipOpen,\n setTooltipOpen,\n reduce: useReducedMotion(),\n canHover: useHoverCapable(),\n };\n}\n\nexport const StatusBarContext = createContext<ReturnType<typeof useStatusBarModel> | null>(null);\n\nexport function useStatusBar() {\n const context = useContext(StatusBarContext);\n if (!context) throw new Error(\"Status bar parts must be rendered inside StatusBar.\");\n return context;\n}\n"],"mappings":";;;;;;AAEA,MAAa,oBAAoB;CAC/B,OAAO;CACP,cAAc;CACd,QAAQ;CACR,QAAQ;CACR,SAAS;CACT,QAAQ;CACR,SAA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QAAQ,CAAC;CACnB,MAAM,EACJ,aACA,WACA,MAAM,aACN,SAAS,gBACT,SACA,cACE,cAAc;EAChB,KAAK,KAAK,KAAK,EAAE,YAAY,MAAM,EAAE;EACrC;EACA;EACA;CACF,CAAC;CAED,OAAO;EACL;EACA;EACA;EACA;EACA,QANa,KAAK,gBAAgB;EAOlC;EACA;EACA;EACA;EACA;EACA;EACA,QAAQ,iBAAiB;EACzB,UAAU,gBAAgB;CAC5B;AACF;AAEA,MAAa,mBAAmB,cAA2D,IAAI;AAE/F,SAAgB,eAAe;CAC7B,MAAM,UAAU,WAAW,gBAAgB;CAC3C,IAAI,CAAC,SAAS,MAAM,IAAI,MAAM,qDAAqD;CACnF,OAAO;AACT"}
|
|
@@ -10,24 +10,35 @@ declare const compositionChartMessages: {
|
|
|
10
10
|
};
|
|
11
11
|
type CompositionChartMessages = typeof compositionChartMessages;
|
|
12
12
|
interface CompositionSeries {
|
|
13
|
+
/** Unique key, used to highlight the series. Later duplicates are dropped. */
|
|
13
14
|
id: string;
|
|
15
|
+
/** Series name shown in the legend and tooltip. */
|
|
14
16
|
name: string;
|
|
17
|
+
/** CSS color for the series' area, legend swatch and tooltip dot. */
|
|
15
18
|
color: string;
|
|
16
19
|
/** Nonnegative values aligned with periods. Missing/invalid values leave a gap. */
|
|
17
20
|
values: readonly (number | null)[];
|
|
18
21
|
}
|
|
19
22
|
interface CompositionChartProps {
|
|
23
|
+
/** Parts that stack to 100% in each period, each with a value per period. */
|
|
20
24
|
series: readonly CompositionSeries[];
|
|
21
25
|
/** Unique labels in chronological order. */
|
|
22
26
|
periods: readonly string[];
|
|
27
|
+
/** Draw stacked bars or a stacked area. Default: "bar" */
|
|
23
28
|
view?: "bar" | "area";
|
|
29
|
+
/** The inspected period, for controlled use. */
|
|
24
30
|
period?: string;
|
|
31
|
+
/** The initially inspected period when uncontrolled. Default: the last period */
|
|
25
32
|
defaultPeriod?: string;
|
|
33
|
+
/** Called with the period's label when a different period is inspected. */
|
|
26
34
|
onPeriodChange?: (period: string) => void;
|
|
35
|
+
/** Formats raw values in the legend and tooltip. */
|
|
27
36
|
formatValue?: (value: number) => string;
|
|
37
|
+
/** Accessible name for the chart. Default: "Composition over time" */
|
|
28
38
|
label?: string;
|
|
29
39
|
/** Override any built-in string. */
|
|
30
40
|
labels?: Partial<CompositionChartMessages>;
|
|
41
|
+
/** Classes merged onto the root element. */
|
|
31
42
|
className?: string;
|
|
32
43
|
children?: ReactNode;
|
|
33
44
|
}
|
|
@@ -49,7 +60,7 @@ declare function useCompositionModel({ series, periods, view, period, defaultPer
|
|
|
49
60
|
select: (next: string) => void;
|
|
50
61
|
view: "area" | "bar";
|
|
51
62
|
label: string;
|
|
52
|
-
t: (key: "
|
|
63
|
+
t: (key: "label" | "empty" | "highlight" | "noData" | "inspect" | "missingValue" | "incomplete", values?: Record<string, string | number>) => string;
|
|
53
64
|
formatValue: (value: number) => string;
|
|
54
65
|
pinned: string | null;
|
|
55
66
|
setPinned: import("react").Dispatch<import("react").SetStateAction<string | null>>;
|
|
@@ -91,7 +102,7 @@ declare const CompositionContext: import("react").Context<{
|
|
|
91
102
|
select: (next: string) => void;
|
|
92
103
|
view: "area" | "bar";
|
|
93
104
|
label: string;
|
|
94
|
-
t: (key: "
|
|
105
|
+
t: (key: "label" | "empty" | "highlight" | "noData" | "inspect" | "missingValue" | "incomplete", values?: Record<string, string | number>) => string;
|
|
95
106
|
formatValue: (value: number) => string;
|
|
96
107
|
pinned: string | null;
|
|
97
108
|
setPinned: import("react").Dispatch<import("react").SetStateAction<string | null>>;
|
|
@@ -133,7 +144,7 @@ declare function useCompositionChart(): {
|
|
|
133
144
|
select: (next: string) => void;
|
|
134
145
|
view: "area" | "bar";
|
|
135
146
|
label: string;
|
|
136
|
-
t: (key: "
|
|
147
|
+
t: (key: "label" | "empty" | "highlight" | "noData" | "inspect" | "missingValue" | "incomplete", values?: Record<string, string | number>) => string;
|
|
137
148
|
formatValue: (value: number) => string;
|
|
138
149
|
pinned: string | null;
|
|
139
150
|
setPinned: import("react").Dispatch<import("react").SetStateAction<string | null>>;
|
|
@@ -158,4 +169,4 @@ declare function useCompositionChart(): {
|
|
|
158
169
|
}[];
|
|
159
170
|
};
|
|
160
171
|
export { CompositionSeries as a, useCompositionModel as i, CompositionContext as n, CompositionChartMessages as o, useCompositionChart as r, compositionChartMessages as s, CompositionChartProps as t };
|
|
161
|
-
//# sourceMappingURL=context-
|
|
172
|
+
//# sourceMappingURL=context-DMIy-rFm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-DMIy-rFm.d.ts","names":[],"sources":["../src/components/charts/composition-chart/messages.ts","../src/components/charts/composition-chart/model.ts","../src/components/charts/composition-chart/context.tsx"],"mappings":";cAEa;;;;;;;;;KAUD,kCAAkC;UCV7B;;EAEf;;EAEA;;EAEA;;EAEA;;UCAe;;EAEf,iBAAiB;;EAEjB;;EAEA;;EAEA;;EAEA;;EAEA,kBAAkB;;EAElB,eAAe;;EAEf;;EAEA,SAAS,QAAQ;;EAEjB;EACA,WAAW;;iBAIG,sBACd,QACA,SACA,MACA,QACA,eACA,gBACA,aACA,OAAO,aACP,UACC;;;;;;;;;;;;;;;EAiBqB,SAAA;;;;EAtCA,cAAA;;;;;;;;;;;;;;;;;;;;;;;cA8DX,oCAAkB;;;;;;;;;;;;;;;EAxBP,SAAA;;;;EAtCA,cAAA;;;;;;;;;;;;;;;;;;;;;;;iBAiER;;;;;;;;;;;;;;;EA3BQ,SAAA;;;;EAtCA,cAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createContext, useContext } from "react";
|
|
2
|
+
// src/components/motion/date-range-picker/context.ts
|
|
3
|
+
const DateRangePickerContext = createContext(null);
|
|
4
|
+
function useDateRangePickerContext(part) {
|
|
5
|
+
const context = useContext(DateRangePickerContext);
|
|
6
|
+
if (!context) throw new Error(`${part} must be used within DateRangePicker`);
|
|
7
|
+
return context;
|
|
8
|
+
}
|
|
9
|
+
export { useDateRangePickerContext as n, DateRangePickerContext as t };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=context-DR6jkfea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-DR6jkfea.js","names":[],"sources":["../src/components/motion/date-range-picker/context.ts"],"sourcesContent":["\"use client\";\n\nimport { createContext, useContext } from \"react\";\n\nimport type { useDateRangePickerController } from \"./use-date-range-picker\";\n\ntype DateRangePickerContextValue = ReturnType<typeof useDateRangePickerController>;\nexport const DateRangePickerContext = createContext<DateRangePickerContextValue | null>(null);\nexport function useDateRangePickerContext(part: string) {\n const context = useContext(DateRangePickerContext);\n if (!context) throw new Error(`${part} must be used within DateRangePicker`);\n return context;\n}\n"],"mappings":";;AAOA,MAAa,yBAAyB,cAAkD,IAAI;AAC5F,SAAgB,0BAA0B,MAAc;CACtD,MAAM,UAAU,WAAW,sBAAsB;CACjD,IAAI,CAAC,SAAS,MAAM,IAAI,MAAM,GAAG,KAAK,qCAAqC;CAC3E,OAAO;AACT"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { createContext, useCallback, useContext, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
2
2
|
import { useReducedMotion } from "motion/react";
|
|
3
3
|
import { cn } from "@kumix/utils";
|
|
4
|
+
import { useDismiss } from "./hooks/use-dismiss.js";
|
|
4
5
|
import { useMessages } from "./lib/i18n.js";
|
|
5
|
-
import { t as
|
|
6
|
+
import { n as useFilteredOptions, t as defaultOptionFilter } from "./use-filtered-options-3TcVsHzV.js";
|
|
6
7
|
import { jsx } from "react/jsx-runtime";
|
|
7
8
|
// src/components/motion/multi-select/messages.ts
|
|
8
9
|
/** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */
|
|
@@ -15,17 +16,6 @@ const multiSelectMessages = {
|
|
|
15
16
|
empty: "No options found."
|
|
16
17
|
};
|
|
17
18
|
// src/components/motion/multi-select/context.tsx
|
|
18
|
-
const defaultFilter = (value, query, keywords) => {
|
|
19
|
-
const needle = query.trim().toLocaleLowerCase();
|
|
20
|
-
if (!needle) return true;
|
|
21
|
-
const haystack = [value, ...keywords].join(" ").toLocaleLowerCase();
|
|
22
|
-
let queryIndex = 0;
|
|
23
|
-
for (const character of haystack) {
|
|
24
|
-
if (character === needle[queryIndex]) queryIndex += 1;
|
|
25
|
-
if (queryIndex === needle.length) return true;
|
|
26
|
-
}
|
|
27
|
-
return false;
|
|
28
|
-
};
|
|
29
19
|
const MultiSelectContext = createContext(null);
|
|
30
20
|
const MultiSelectGroupContext = createContext(null);
|
|
31
21
|
function useMultiSelectContext(component) {
|
|
@@ -33,13 +23,7 @@ function useMultiSelectContext(component) {
|
|
|
33
23
|
if (!context) throw new Error(`${component} must be used within <MultiSelect>`);
|
|
34
24
|
return context;
|
|
35
25
|
}
|
|
36
|
-
function
|
|
37
|
-
return (node) => {
|
|
38
|
-
for (const ref of refs) if (typeof ref === "function") ref(node);
|
|
39
|
-
else if (ref && typeof ref === "object") ref.current = node;
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
function MultiSelect({ children, value: controlledValue, defaultValue = [], onValueChange, open: controlledOpen, defaultOpen = false, onOpenChange, query: controlledQuery, defaultQuery = "", onQueryChange, filter = defaultFilter, disabled = false, className, labels }) {
|
|
26
|
+
function MultiSelect({ children, value: controlledValue, defaultValue = [], onValueChange, open: controlledOpen, defaultOpen = false, onOpenChange, query: controlledQuery, defaultQuery = "", onQueryChange, filter = defaultOptionFilter, disabled = false, className, labels }) {
|
|
43
27
|
const t = useMessages("multiSelect", multiSelectMessages, labels);
|
|
44
28
|
const reduce = useReducedMotion() ?? false;
|
|
45
29
|
const baseId = useId();
|
|
@@ -50,7 +34,6 @@ function MultiSelect({ children, value: controlledValue, defaultValue = [], onVa
|
|
|
50
34
|
const [internalValue, setInternalValue] = useState(defaultValue);
|
|
51
35
|
const [internalOpen, setInternalOpen] = useState(defaultOpen);
|
|
52
36
|
const [internalQuery, setInternalQuery] = useState(defaultQuery);
|
|
53
|
-
const [items, setItems] = useState(/* @__PURE__ */ new Map());
|
|
54
37
|
const valueControlled = controlledValue !== void 0;
|
|
55
38
|
const openControlled = controlledOpen !== void 0;
|
|
56
39
|
const queryControlled = controlledQuery !== void 0;
|
|
@@ -76,39 +59,11 @@ function MultiSelect({ children, value: controlledValue, defaultValue = [], onVa
|
|
|
76
59
|
openControlled,
|
|
77
60
|
updateQuery
|
|
78
61
|
]);
|
|
79
|
-
const registerItem =
|
|
80
|
-
setItems((current) => {
|
|
81
|
-
const existing = current.get(item.value);
|
|
82
|
-
if (existing?.label === item.label && existing.disabled === item.disabled && existing.id === item.id && existing.ref === item.ref && existing.groupId === item.groupId && existing.keywords.join("\0") === item.keywords.join("\0")) return current;
|
|
83
|
-
const next = new Map(current);
|
|
84
|
-
next.set(item.value, item);
|
|
85
|
-
return next;
|
|
86
|
-
});
|
|
87
|
-
}, []);
|
|
88
|
-
const unregisterItem = useCallback((itemValue) => {
|
|
89
|
-
setItems((current) => {
|
|
90
|
-
if (!current.has(itemValue)) return current;
|
|
91
|
-
const next = new Map(current);
|
|
92
|
-
next.delete(itemValue);
|
|
93
|
-
return next;
|
|
94
|
-
});
|
|
95
|
-
}, []);
|
|
96
|
-
const [openQuery, setOpenQuery] = useState(query);
|
|
97
|
-
if (open && openQuery !== query) setOpenQuery(query);
|
|
98
|
-
const listQuery = open ? query : openQuery;
|
|
99
|
-
const visibleItems = useMemo(() => Array.from(items.values()).filter((item) => filter(item.value, listQuery, [item.label, ...item.keywords])), [
|
|
100
|
-
filter,
|
|
101
|
-
items,
|
|
102
|
-
listQuery
|
|
103
|
-
]);
|
|
104
|
-
const enabledVisibleItems = useMemo(() => visibleItems.filter((item) => !item.disabled), [visibleItems]);
|
|
105
|
-
const visibleValues = useMemo(() => new Set(visibleItems.map((item) => item.value)), [visibleItems]);
|
|
106
|
-
const visibleGroupIds = useMemo(() => new Set(visibleItems.map((item) => item.groupId)), [visibleItems]);
|
|
107
|
-
const { activeValue, setActiveValue, moveActive } = useActiveOption({
|
|
62
|
+
const { items, registerItem, unregisterItem, listQuery, visibleValues, visibleGroupIds, visibleCount, activeValue, setActiveValue, moveActive, activeItemId } = useFilteredOptions({
|
|
108
63
|
open,
|
|
109
|
-
query
|
|
64
|
+
query,
|
|
110
65
|
value: values[0],
|
|
111
|
-
|
|
66
|
+
filter
|
|
112
67
|
});
|
|
113
68
|
const commitValue = useCallback((next) => {
|
|
114
69
|
if (!valueControlled) setInternalValue(next);
|
|
@@ -137,44 +92,12 @@ function MultiSelect({ children, value: controlledValue, defaultValue = [], onVa
|
|
|
137
92
|
const frame = requestAnimationFrame(() => inputRef.current?.focus({ preventScroll: true }));
|
|
138
93
|
return () => cancelAnimationFrame(frame);
|
|
139
94
|
}, [open]);
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
const listRect = list.getBoundingClientRect();
|
|
147
|
-
if (itemRect.top < listRect.top) list.scrollTop -= listRect.top - itemRect.top;
|
|
148
|
-
else if (itemRect.bottom > listRect.bottom) list.scrollTop += itemRect.bottom - listRect.bottom;
|
|
149
|
-
}, [
|
|
150
|
-
activeValue,
|
|
151
|
-
items,
|
|
152
|
-
open
|
|
153
|
-
]);
|
|
154
|
-
useEffect(() => {
|
|
155
|
-
if (!open) return;
|
|
156
|
-
const isInside = (target) => rootRef.current?.contains(target) || contentRef.current?.contains(target);
|
|
157
|
-
const onPointerDown = (event) => {
|
|
158
|
-
if (!isInside(event.target)) updateOpen(false);
|
|
159
|
-
};
|
|
160
|
-
const onFocusIn = (event) => {
|
|
161
|
-
if (!isInside(event.target)) updateOpen(false);
|
|
162
|
-
};
|
|
163
|
-
const onKeyDown = (event) => {
|
|
164
|
-
if (event.key !== "Escape") return;
|
|
165
|
-
event.preventDefault();
|
|
166
|
-
updateOpen(false, true);
|
|
167
|
-
};
|
|
168
|
-
window.addEventListener("pointerdown", onPointerDown);
|
|
169
|
-
window.addEventListener("focusin", onFocusIn);
|
|
170
|
-
window.addEventListener("keydown", onKeyDown);
|
|
171
|
-
return () => {
|
|
172
|
-
window.removeEventListener("pointerdown", onPointerDown);
|
|
173
|
-
window.removeEventListener("focusin", onFocusIn);
|
|
174
|
-
window.removeEventListener("keydown", onKeyDown);
|
|
175
|
-
};
|
|
176
|
-
}, [open, updateOpen]);
|
|
177
|
-
const activeItem = activeValue ? items.get(activeValue) : void 0;
|
|
95
|
+
const insideContent = useCallback((target) => Boolean(contentRef.current?.contains(target)), []);
|
|
96
|
+
const dismiss = useCallback((reason) => updateOpen(false, reason === "escape"), [updateOpen]);
|
|
97
|
+
useDismiss(open, dismiss, rootRef, {
|
|
98
|
+
focusOutside: true,
|
|
99
|
+
ignore: insideContent
|
|
100
|
+
});
|
|
178
101
|
const context = useMemo(() => ({
|
|
179
102
|
open,
|
|
180
103
|
setOpen: updateOpen,
|
|
@@ -192,8 +115,8 @@ function MultiSelect({ children, value: controlledValue, defaultValue = [], onVa
|
|
|
192
115
|
labelFor: (itemValue) => items.get(itemValue)?.label ?? itemValue,
|
|
193
116
|
isVisible: (itemValue) => !listQuery.trim() || visibleValues.has(itemValue),
|
|
194
117
|
hasVisibleItems: (groupId) => visibleGroupIds.has(groupId),
|
|
195
|
-
visibleCount
|
|
196
|
-
activeItemId
|
|
118
|
+
visibleCount,
|
|
119
|
+
activeItemId,
|
|
197
120
|
triggerId: `${baseId}-trigger`,
|
|
198
121
|
listId: `${baseId}-list`,
|
|
199
122
|
inputId: `${baseId}-input`,
|
|
@@ -205,7 +128,7 @@ function MultiSelect({ children, value: controlledValue, defaultValue = [], onVa
|
|
|
205
128
|
activeLayoutId: `${baseId}-active`,
|
|
206
129
|
t
|
|
207
130
|
}), [
|
|
208
|
-
|
|
131
|
+
activeItemId,
|
|
209
132
|
activeValue,
|
|
210
133
|
baseId,
|
|
211
134
|
disabled,
|
|
@@ -226,7 +149,7 @@ function MultiSelect({ children, value: controlledValue, defaultValue = [], onVa
|
|
|
226
149
|
updateQuery,
|
|
227
150
|
values,
|
|
228
151
|
visibleGroupIds,
|
|
229
|
-
|
|
152
|
+
visibleCount,
|
|
230
153
|
visibleValues
|
|
231
154
|
]);
|
|
232
155
|
return /* @__PURE__ */ jsx(MultiSelectContext.Provider, {
|
|
@@ -238,6 +161,6 @@ function MultiSelect({ children, value: controlledValue, defaultValue = [], onVa
|
|
|
238
161
|
})
|
|
239
162
|
});
|
|
240
163
|
}
|
|
241
|
-
export {
|
|
164
|
+
export { multiSelectMessages as a, useMultiSelectContext as i, MultiSelectContext as n, MultiSelectGroupContext as r, MultiSelect as t };
|
|
242
165
|
|
|
243
|
-
//# sourceMappingURL=context-
|
|
166
|
+
//# sourceMappingURL=context-DcJtX6ht.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-DcJtX6ht.js","names":[],"sources":["../src/components/motion/multi-select/messages.ts","../src/components/motion/multi-select/context.tsx"],"sourcesContent":["\"use client\";\n\nimport type { useMessages } from \"../../../lib/i18n\";\n\n/** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */\nexport const multiSelectMessages = {\n valuePlaceholder: \"Select options\",\n removeValue: \"Remove {label}\",\n inputLabel: \"Search options\",\n inputPlaceholder: \"Search…\",\n listLabel: \"Options\",\n empty: \"No options found.\",\n};\n\nexport type MultiSelectMessages = typeof multiSelectMessages;\n\n/** The resolved translator the root hands to its parts. */\nexport type MultiSelectTranslate = ReturnType<typeof useMessages<MultiSelectMessages>>;\n","\"use client\";\n\nimport {\n createContext,\n type MutableRefObject,\n type ReactNode,\n useCallback,\n useContext,\n useEffect,\n useId,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport { useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { type DismissReason, useDismiss } from \"../../../hooks/use-dismiss\";\nimport { useMessages } from \"../../../lib/i18n\";\nimport {\n defaultOptionFilter,\n type OptionFilter,\n type RegisteredItem,\n useFilteredOptions,\n} from \"../combobox/use-filtered-options\";\nimport {\n type MultiSelectMessages,\n type MultiSelectTranslate,\n multiSelectMessages,\n} from \"./messages\";\n\nexport type RegisteredMultiSelectItem = RegisteredItem;\n\nexport type MultiSelectFilter = OptionFilter;\n\nexport type MultiSelectContextValue = {\n open: boolean;\n setOpen: (open: boolean, restoreFocus?: boolean) => void;\n values: string[];\n toggle: (value: string) => void;\n remove: (value: string) => void;\n query: string;\n setQuery: (query: string) => void;\n activeValue: string | null;\n setActiveValue: (value: string | null) => void;\n moveActive: (direction: 1 | -1 | \"first\" | \"last\") => void;\n toggleActive: () => void;\n registerItem: (item: RegisteredMultiSelectItem) => void;\n unregisterItem: (value: string) => void;\n labelFor: (value: string) => string;\n isVisible: (value: string) => boolean;\n hasVisibleItems: (groupId: string) => boolean;\n visibleCount: number;\n activeItemId: string | undefined;\n triggerId: string;\n listId: string;\n inputId: string;\n disabled: boolean;\n reduce: boolean;\n triggerRef: MutableRefObject<HTMLDivElement | null>;\n contentRef: MutableRefObject<HTMLDivElement | null>;\n inputRef: MutableRefObject<HTMLInputElement | null>;\n activeLayoutId: string;\n t: MultiSelectTranslate;\n};\n\nexport const MultiSelectContext = createContext<MultiSelectContextValue | null>(null);\nexport const MultiSelectGroupContext = createContext<string | null>(null);\n\nexport function useMultiSelectContext(component: string) {\n const context = useContext(MultiSelectContext);\n if (!context) {\n throw new Error(`${component} must be used within <MultiSelect>`);\n }\n return context;\n}\n\nexport interface MultiSelectProps {\n children: ReactNode;\n /** The selected values, for controlled use. */\n value?: string[];\n /** The initial selected values when uncontrolled. Default: [] */\n defaultValue?: string[];\n /** Called with the new list of values when an option is added or removed. */\n onValueChange?: (value: string[]) => void;\n /** Whether the list is open, for controlled use. */\n open?: boolean;\n /** Whether the list starts open when uncontrolled. Default: false */\n defaultOpen?: boolean;\n /** Called with the new state when the list opens or closes. */\n onOpenChange?: (open: boolean) => void;\n /** The search text, for controlled use. */\n query?: string;\n /** The initial search text when uncontrolled. Default: \"\" */\n defaultQuery?: string;\n /** Called with the new text when the search input changes. */\n onQueryChange?: (query: string) => void;\n /** Decides which options match the search text. */\n filter?: MultiSelectFilter;\n /** Blocks opening and changing the selection. Default: false */\n disabled?: boolean;\n /** Classes merged onto the root element. */\n className?: string;\n /** Override any built-in string. `{label}` fills the option label. */\n labels?: Partial<MultiSelectMessages>;\n}\n\nexport function MultiSelect({\n children,\n value: controlledValue,\n defaultValue = [],\n onValueChange,\n open: controlledOpen,\n defaultOpen = false,\n onOpenChange,\n query: controlledQuery,\n defaultQuery = \"\",\n onQueryChange,\n filter = defaultOptionFilter,\n disabled = false,\n className,\n labels,\n}: MultiSelectProps) {\n const t = useMessages(\"multiSelect\", multiSelectMessages, labels);\n const reduce = useReducedMotion() ?? false;\n const baseId = useId();\n const rootRef = useRef<HTMLDivElement>(null);\n const triggerRef = useRef<HTMLDivElement>(null);\n const contentRef = useRef<HTMLDivElement>(null);\n const inputRef = useRef<HTMLInputElement>(null);\n const [internalValue, setInternalValue] = useState(defaultValue);\n const [internalOpen, setInternalOpen] = useState(defaultOpen);\n const [internalQuery, setInternalQuery] = useState(defaultQuery);\n\n const valueControlled = controlledValue !== undefined;\n const openControlled = controlledOpen !== undefined;\n const queryControlled = controlledQuery !== undefined;\n const values = controlledValue ?? internalValue;\n const open = controlledOpen ?? internalOpen;\n const query = controlledQuery ?? internalQuery;\n\n const updateQuery = useCallback(\n (next: string) => {\n if (!queryControlled) setInternalQuery(next);\n onQueryChange?.(next);\n },\n [onQueryChange, queryControlled],\n );\n\n const updateOpen = useCallback(\n (next: boolean, restoreFocus = false) => {\n if (disabled && next) return;\n if (next !== open) {\n if (!openControlled) setInternalOpen(next);\n onOpenChange?.(next);\n }\n if (!next) updateQuery(\"\");\n if (restoreFocus) {\n requestAnimationFrame(() => inputRef.current?.focus({ preventScroll: true }));\n }\n },\n [disabled, onOpenChange, open, openControlled, updateQuery],\n );\n\n const {\n items,\n registerItem,\n unregisterItem,\n listQuery,\n visibleValues,\n visibleGroupIds,\n visibleCount,\n activeValue,\n setActiveValue,\n moveActive,\n activeItemId,\n } = useFilteredOptions({ open, query, value: values[0], filter });\n\n const commitValue = useCallback(\n (next: string[]) => {\n if (!valueControlled) setInternalValue(next);\n onValueChange?.(next);\n },\n [onValueChange, valueControlled],\n );\n\n const toggle = useCallback(\n (next: string) => {\n if (items.get(next)?.disabled) return;\n commitValue(\n values.includes(next) ? values.filter((value) => value !== next) : [...values, next],\n );\n updateQuery(\"\");\n requestAnimationFrame(() => inputRef.current?.focus({ preventScroll: true }));\n },\n [commitValue, items, updateQuery, values],\n );\n\n const remove = useCallback(\n (itemValue: string) => {\n if (!values.includes(itemValue)) return;\n commitValue(values.filter((value) => value !== itemValue));\n },\n [commitValue, values],\n );\n\n const toggleActive = useCallback(() => {\n if (activeValue) toggle(activeValue);\n }, [activeValue, toggle]);\n\n useEffect(() => {\n if (!open) return;\n const frame = requestAnimationFrame(() => inputRef.current?.focus({ preventScroll: true }));\n return () => cancelAnimationFrame(frame);\n }, [open]);\n\n const insideContent = useCallback(\n (target: Element) => Boolean(contentRef.current?.contains(target)),\n [],\n );\n const dismiss = useCallback(\n (reason: DismissReason) => updateOpen(false, reason === \"escape\"),\n [updateOpen],\n );\n useDismiss(open, dismiss, rootRef, { focusOutside: true, ignore: insideContent });\n\n const context = useMemo<MultiSelectContextValue>(\n () => ({\n open,\n setOpen: updateOpen,\n values,\n toggle,\n remove,\n query,\n setQuery: updateQuery,\n activeValue,\n setActiveValue,\n moveActive,\n toggleActive,\n registerItem,\n unregisterItem,\n labelFor: (itemValue) => items.get(itemValue)?.label ?? itemValue,\n isVisible: (itemValue) => !listQuery.trim() || visibleValues.has(itemValue),\n hasVisibleItems: (groupId) => visibleGroupIds.has(groupId),\n visibleCount,\n activeItemId,\n triggerId: `${baseId}-trigger`,\n listId: `${baseId}-list`,\n inputId: `${baseId}-input`,\n disabled,\n reduce,\n triggerRef,\n contentRef,\n inputRef,\n activeLayoutId: `${baseId}-active`,\n t,\n }),\n [\n activeItemId,\n activeValue,\n baseId,\n disabled,\n items,\n listQuery,\n moveActive,\n open,\n query,\n reduce,\n registerItem,\n remove,\n setActiveValue,\n t,\n toggle,\n toggleActive,\n unregisterItem,\n updateOpen,\n updateQuery,\n values,\n visibleGroupIds,\n visibleCount,\n visibleValues,\n ],\n );\n\n return (\n <MultiSelectContext.Provider value={context}>\n <div ref={rootRef} className={cn(\"relative w-full\", className)}>\n {children}\n </div>\n </MultiSelectContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;AAKA,MAAa,sBAAsB;CACjC,kBAAkB;CAClB,aAAa;CACb,YAAY;CACZ,kBAAkB;CAClB,WAAW;CACX,OAAO;AACT;;ACsDA,MAAa,qBAAqB,cAA8C,IAAI;AACpF,MAAa,0BAA0B,cAA6B,IAAI;AAExE,SAAgB,sBAAsB,WAAmB;CACvD,MAAM,UAAU,WAAW,kBAAkB;CAC7C,IAAI,CAAC,SACH,MAAM,IAAI,MAAM,GAAG,UAAU,mCAAmC;CAElE,OAAO;AACT;AAgCA,SAAgB,YAAY,EAC1B,UACA,OAAO,iBACP,eAAe,CAAC,GAChB,eACA,MAAM,gBACN,cAAc,OACd,cACA,OAAO,iBACP,eAAe,IACf,eACA,SAAS,qBACT,WAAW,OACX,WACA,UACmB;CACnB,MAAM,IAAI,YAAY,eAAe,qBAAqB,MAAM;CAChE,MAAM,SAAS,iBAAiB,KAAK;CACrC,MAAM,SAAS,MAAM;CACrB,MAAM,UAAU,OAAuB,IAAI;CAC3C,MAAM,aAAa,OAAuB,IAAI;CAC9C,MAAM,aAAa,OAAuB,IAAI;CAC9C,MAAM,WAAW,OAAyB,IAAI;CAC9C,MAAM,CAAC,eAAe,oBAAoB,SAAS,YAAY;CAC/D,MAAM,CAAC,cAAc,mBAAmB,SAAS,WAAW;CAC5D,MAAM,CAAC,eAAe,oBAAoB,SAAS,YAAY;CAE/D,MAAM,kBAAkB,oBAAoB,KAAA;CAC5C,MAAM,iBAAiB,mBAAmB,KAAA;CAC1C,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}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createContext, useContext, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
2
2
|
import { useReducedMotion } from "motion/react";
|
|
3
|
+
import { useControllable } from "./hooks/use-controllable.js";
|
|
3
4
|
import { useHoverCapable } from "./hooks/use-hover-capable.js";
|
|
4
5
|
import { useLocale, useMessages } from "./lib/i18n.js";
|
|
5
6
|
// src/components/charts/heat-calendar/messages.ts
|
|
@@ -82,12 +83,7 @@ function useHeatCalendarModel({ unit, weeks = 16, maxCount = 14, values, endDate
|
|
|
82
83
|
const reduce = useReducedMotion();
|
|
83
84
|
const canHover = useHoverCapable();
|
|
84
85
|
const [storedHover, setHover] = useState(null);
|
|
85
|
-
const [
|
|
86
|
-
const requestedSelection = controlledSelection === void 0 ? internalSelection : controlledSelection;
|
|
87
|
-
const setSelection = (next) => {
|
|
88
|
-
if (controlledSelection === void 0) setInternalSelection(next);
|
|
89
|
-
onSelectionChange?.(next);
|
|
90
|
-
};
|
|
86
|
+
const [requestedSelection, setSelection, setInternalSelection] = useControllable(controlledSelection, defaultSelection, onSelectionChange);
|
|
91
87
|
const gridRef = useRef(null);
|
|
92
88
|
const tooltipId = useId();
|
|
93
89
|
const [step, setStep] = useState(null);
|
|
@@ -223,4 +219,4 @@ function useHeatCalendar() {
|
|
|
223
219
|
}
|
|
224
220
|
export { LIFT as a, DAYS as i, useHeatCalendar as n, STEPS as o, useHeatCalendarModel as r, heatCalendarMessages as s, HeatCalendarContext as t };
|
|
225
221
|
|
|
226
|
-
//# sourceMappingURL=context-
|
|
222
|
+
//# sourceMappingURL=context-Dg48xMuG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-Dg48xMuG.js","names":[],"sources":["../src/components/charts/heat-calendar/messages.ts","../src/components/charts/heat-calendar/utils.ts","../src/components/charts/heat-calendar/context.ts"],"sourcesContent":["\"use client\";\n\nexport const heatCalendarMessages = {\n unit: \"commits\",\n cell: \"{count} {unit} on {date}\",\n cellUndated: \"{count} {unit}\",\n range: \"{start} – {end}\",\n days: \"{days} days\",\n less: \"less\",\n more: \"more\",\n level: \"Show activity level {level}\",\n};\nexport type HeatCalendarMessages = typeof heatCalendarMessages;\n","\"use client\";\n\nexport const STEPS = [0, 24, 46, 70, 94] as const;\n\nexport const EMPTY = \"color-mix(in srgb, var(--foreground) 6%, transparent)\";\n\n/** Cell size and gap; every position in the grid and the tooltip derive from these. */\nexport const CELL = 16;\n\nexport const GAP = 4;\n\nexport const PITCH = CELL + GAP;\n\nexport const MONTH_ROW = 12;\n\nexport const DAYS = Array.from({ length: 7 }, (_, d) => ({ id: `d${d}`, d }));\n\n/** How far a cell rises when it is the hovered one, its neighbour, or two away. */\nexport const LIFT = [1.3, 1.08, 1.03];\n\nexport const startOfDay = (d: Date) => {\n const x = new Date(d);\n x.setUTCHours(0, 0, 0, 0);\n return x;\n};\n\nexport const addDays = (d: Date, n: number) => {\n const x = new Date(d);\n x.setUTCDate(x.getUTCDate() + n);\n return x;\n};\n\n/** Monday on or before `d`, so every column reads Mon to Sun, top to bottom. */\nexport const mondayOf = (d: Date) => addDays(startOfDay(d), -((d.getUTCDay() + 6) % 7));\n\n/** Without a locale, dates stay in English so server and client render the same text. */\nexport const dateFormats = (locale = \"en-US\") => ({\n day: new Intl.DateTimeFormat(locale, {\n timeZone: \"UTC\",\n weekday: \"short\",\n month: \"short\",\n day: \"numeric\",\n }),\n month: new Intl.DateTimeFormat(locale, { timeZone: \"UTC\", month: \"short\" }),\n range: new Intl.DateTimeFormat(locale, { timeZone: \"UTC\", month: \"short\", day: \"numeric\" }),\n});\n","\"use client\";\n\nimport { createContext, useContext, useEffect, useId, useMemo, useRef, useState } from \"react\";\nimport { useReducedMotion } from \"motion/react\";\n\nimport { useControllable } from \"../../../hooks/use-controllable\";\nimport { useHoverCapable } from \"../../../hooks/use-hover-capable\";\nimport { useLocale, useMessages } from \"../../../lib/i18n\";\nimport { heatCalendarMessages } from \"./messages\";\nimport type { HeatCalendarCell, HeatCalendarProps, HeatCalendarSelection } from \"./types\";\nimport {\n addDays,\n CELL,\n dateFormats,\n EMPTY,\n GAP,\n MONTH_ROW,\n mondayOf,\n PITCH,\n STEPS,\n startOfDay,\n} from \"./utils\";\n\n/**\n * Weeks of activity as a single-hue grid with month labels, so\n * magnitude reads as the strength of one color and the eye needs no legend\n * to find a date. Cells spring in on a diagonal wave. Hovering one lifts it\n * and its neighbours in a small ripple and glides a tooltip with its date and\n * exact count; clicking pins the cell so touch and keyboard get the same\n * readout; from there the grid dims and hovering previews the span from that\n * cell to the pointer with its total, a second click locks it and a third\n * clears it; hovering a legend step filters\n * the grid to that level. Hover lifts are gated to pointer devices, and\n * reduced motion keeps the fades only.\n */\nexport function useHeatCalendarModel({\n unit,\n weeks = 16,\n maxCount = 14,\n values,\n endDate,\n color = \"var(--accent)\",\n selection: controlledSelection,\n defaultSelection = null,\n onSelectionChange,\n labels,\n}: HeatCalendarProps) {\n const t = useMessages(\"heatCalendar\", heatCalendarMessages, labels);\n const { locale } = useLocale();\n const formats = useMemo(() => dateFormats(locale), [locale]);\n const reduce = useReducedMotion();\n const canHover = useHoverCapable();\n const [storedHover, setHover] = useState<HeatCalendarCell | null>(null);\n const [requestedSelection, setSelection, setInternalSelection] =\n useControllable<HeatCalendarSelection | null>(\n controlledSelection,\n defaultSelection,\n onSelectionChange,\n );\n const gridRef = useRef<HTMLDivElement>(null);\n const tooltipId = useId();\n const [step, setStep] = useState<number | null>(null);\n // the entrance wave owns the cells until it has landed; the ripple takes over after\n const [settled, setSettled] = useState(false);\n useEffect(() => {\n const t = setTimeout(() => setSettled(true), reduce ? 0 : (weeks + 7) * 18 + 500);\n return () => clearTimeout(t);\n }, [weeks, reduce]);\n\n // \"today\" is read after mount: the server and a viewer on another calendar\n // day must produce the same HTML, so the grid renders first and its dates\n // fill in on the client. An explicit `endDate` is deterministic and skips this.\n const [today, setToday] = useState<Date | null>(null);\n useEffect(() => setToday(startOfDay(new Date())), []);\n const end = useMemo(() => (endDate ? startOfDay(endDate) : today), [endDate, today]);\n const start = useMemo(\n () => (end ? addDays(mondayOf(end), -(weeks - 1) * 7) : null),\n [end, weeks],\n );\n\n const level = (w: number, d: number) => Math.max(0, Math.min(1, values?.[w]?.[d] ?? 0));\n const bucket = (v: number) => Math.min(4, Math.floor(v * 5));\n const fill = (b: number) =>\n b === 0 ? EMPTY : `color-mix(in srgb, ${color} ${STEPS[b]}%, transparent)`;\n const count = (v: number) => Math.round(v * maxCount);\n const dateOf = (w: number, d: number) => (start ? addDays(start, w * 7 + d) : null);\n const future = (w: number, d: number) => {\n const date = dateOf(w, d);\n return end !== null && date !== null && date > end;\n };\n\n const validCell = (cell: HeatCalendarCell) =>\n Number.isInteger(cell.w) &&\n Number.isInteger(cell.d) &&\n cell.w >= 0 &&\n cell.w < weeks &&\n cell.d >= 0 &&\n cell.d < 7 &&\n !future(cell.w, cell.d);\n const selection =\n requestedSelection &&\n validCell(requestedSelection.start) &&\n (!requestedSelection.end || validCell(requestedSelection.end))\n ? requestedSelection\n : null;\n if (requestedSelection && !selection && controlledSelection === undefined)\n setInternalSelection(null);\n const pinned = selection?.start ?? null;\n const spanEnd = selection?.end ?? null;\n const hover = storedHover && validCell(storedHover) ? storedHover : null;\n if (storedHover && !hover) setHover(null);\n\n // one label per month, at its first column; the leading label yields if the\n // next month starts within two columns, so two labels never overlap\n const cols = useMemo(() => {\n const list = Array.from({ length: weeks }, (_, w) => {\n const date = start ? addDays(start, w * 7) : null;\n const m = date ? date.getUTCMonth() : -1;\n const fresh =\n start !== null &&\n date !== null &&\n (w === 0 || addDays(start, (w - 1) * 7).getUTCMonth() !== m);\n return { id: `w${w}`, w, m, label: fresh && date ? formats.month.format(date) : null };\n });\n if (list[1]?.label || list[2]?.label) list[0].label = null;\n return list;\n }, [start, weeks, formats]);\n\n // one click anchors a span and dims everything else; hovering then previews\n // the run from the anchor to the pointer and totals it live, and a second\n // click locks it so the number stays on screen while the pointer moves on\n const idx = (c: HeatCalendarCell) => c.w * 7 + c.d;\n const clear = () => {\n setSelection(null);\n };\n const spanTo = spanEnd ?? (pinned ? (hover ?? pinned) : null);\n const span =\n pinned && spanTo\n ? { lo: Math.min(idx(pinned), idx(spanTo)), hi: Math.max(idx(pinned), idx(spanTo)) }\n : null;\n let spanTotal = 0;\n if (span) {\n for (let i = span.lo; i <= span.hi; i++) {\n if (future(Math.floor(i / 7), i % 7)) break;\n spanTotal += count(level(Math.floor(i / 7), i % 7));\n }\n }\n const select = (cell: HeatCalendarCell) => {\n // a locked span clears on the next click anywhere, so leaving it is one press\n if (spanEnd) {\n clear();\n } else if (pinned && idx(pinned) === idx(cell)) {\n setSelection(null);\n } else if (pinned) {\n setSelection({ start: pinned, end: cell });\n } else {\n setSelection({ start: cell });\n }\n };\n /** the cell the grid reacts to: lift, ripple and label highlight follow the pointer */\n const hot = hover ?? spanEnd ?? pinned;\n /** the cell the tooltip hangs from: a locked span keeps it on its end */\n const tip = spanEnd ?? hover ?? pinned;\n const tipDate = tip ? dateOf(tip.w, tip.d) : null;\n const hotMonth = hot ? (dateOf(hot.w, hot.d)?.getUTCMonth() ?? null) : null;\n const tipX = tip ? tip.w * PITCH + CELL / 2 : 0;\n const tipY = tip ? MONTH_ROW + GAP + tip.d * PITCH : 0;\n const tooltip =\n tip && tipDate\n ? {\n date: tipDate,\n count: count(level(tip.w, tip.d)),\n total: spanTotal,\n startDate: start && span ? addDays(start, span.lo) : tipDate,\n endDate: start && span ? addDays(start, span.hi) : tipDate,\n days: span ? span.hi - span.lo + 1 : 1,\n }\n : null;\n\n return {\n unit: unit ?? t(\"unit\"),\n t,\n formats,\n weeks,\n reduce,\n canHover,\n hover,\n pinned,\n spanEnd,\n step,\n setStep,\n settled,\n start,\n end,\n level,\n bucket,\n fill,\n count,\n dateOf,\n future,\n cols,\n clear,\n span,\n spanTotal,\n select,\n hot,\n tip,\n tipDate,\n hotMonth,\n tipX,\n tipY,\n setHover,\n gridRef,\n tooltipId,\n tooltip,\n selection,\n setSelection,\n };\n}\n\nexport const HeatCalendarContext = createContext<ReturnType<typeof useHeatCalendarModel> | null>(\n null,\n);\n\n/** Read the shared data and selection from any descendant of HeatCalendar. */\nexport function useHeatCalendar() {\n const context = useContext(HeatCalendarContext);\n if (!context) throw new Error(\"HeatCalendar parts must be inside HeatCalendar\");\n return context;\n}\n"],"mappings":";;;;;;AAEA,MAAa,uBAAuB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,MAAM;CACN,MAAM;CACN,MAAM;CACN,OAAO;AACT;;ACTA,MAAa,QAAQ;CAAC;CAAG;CAAI;CAAI;CAAI;AAAE;AAEvC,MAAa,QAAQ;AAWrB,MAAa,OAAO,MAAM,KAAK,EAAE,QAAQ,EAAE,IAAI,GAAG,OAAO;CAAE,IAAI,IAAI;CAAK;AAAE,EAAE;;AAG5E,MAAa,OAAO;CAAC;CAAK;CAAM;AAAI;AAEpC,MAAa,cAAc,MAAY;CACrC,MAAM,IAAI,IAAI,KAAK,CAAC;CACpB,EAAE,YAAY,GAAG,GAAG,GAAG,CAAC;CACxB,OAAO;AACT;AAEA,MAAa,WAAW,GAAS,MAAc;CAC7C,MAAM,IAAI,IAAI,KAAK,CAAC;CACpB,EAAE,WAAW,EAAE,WAAW,IAAI,CAAC;CAC/B,OAAO;AACT;;AAGA,MAAa,YAAY,MAAY,QAAQ,WAAW,CAAC,GAAG,GAAG,EAAE,UAAU,IAAI,KAAK,EAAE;;AAGtF,MAAa,eAAe,SAAS,aAAa;CAChD,KAAK,IAAI,KAAK,eAAe,QAAQ;EACnC,UAAU;EACV,SAAS;EACT,OAAO;EACP,KAAK;CACP,CAAC;CACD,OAAO,IAAI,KAAK,eAAe,QAAQ;EAAE,UAAU;EAAO,OAAO;CAAQ,CAAC;CAC1E,OAAO,IAAI,KAAK,eAAe,QAAQ;EAAE,UAAU;EAAO,OAAO;EAAS,KAAK;CAAU,CAAC;AAC5F;;;;;;;;;;;;;;ACVA,SAAgB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IAAI,GAAG,IAAI,CAAC,CAAC;EAChC,OAAO;EACP,WAAW,SAAS,OAAO,QAAQ,OAAO,KAAK,EAAE,IAAI;EACrD,SAAS,SAAS,OAAO,QAAQ,OAAO,KAAK,EAAE,IAAI;EACnD,MAAM,OAAO,KAAK,KAAK,KAAK,KAAK,IAAI;CACvC,IACA;CAEN,OAAO;EACL,MAAM,QAAQ,EAAE,MAAM;EACtB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;AACF;AAEA,MAAa,sBAAsB,cACjC,IACF;;AAGA,SAAgB,kBAAkB;CAChC,MAAM,UAAU,WAAW,mBAAmB;CAC9C,IAAI,CAAC,SAAS,MAAM,IAAI,MAAM,gDAAgD;CAC9E,OAAO;AACT"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createContext, useContext } from "react";
|
|
2
|
+
// src/components/motion/animated-sidebar/context.ts
|
|
3
|
+
/** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */
|
|
4
|
+
const animatedSidebarMessages = {
|
|
5
|
+
label: "Sidebar",
|
|
6
|
+
toggle: "Toggle sidebar",
|
|
7
|
+
close: "Close sidebar"
|
|
8
|
+
};
|
|
9
|
+
const AnimatedSidebarContext = createContext(null);
|
|
10
|
+
const AnimatedSidebarPanelContext = createContext(null);
|
|
11
|
+
function useAnimatedSidebar() {
|
|
12
|
+
const context = useContext(AnimatedSidebarContext);
|
|
13
|
+
if (!context) throw new Error("useAnimatedSidebar must be used inside AnimatedSidebarProvider.");
|
|
14
|
+
return context;
|
|
15
|
+
}
|
|
16
|
+
function useAnimatedSidebarPanel() {
|
|
17
|
+
const context = useContext(AnimatedSidebarPanelContext);
|
|
18
|
+
if (!context) throw new Error("Animated Sidebar parts must be used inside AnimatedSidebar.");
|
|
19
|
+
return context;
|
|
20
|
+
}
|
|
21
|
+
export { useAnimatedSidebarPanel as a, useAnimatedSidebar as i, AnimatedSidebarPanelContext as n, animatedSidebarMessages as r, AnimatedSidebarContext as t };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=context-DnM-b9yO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-DnM-b9yO.js","names":[],"sources":["../src/components/motion/animated-sidebar/context.ts"],"sourcesContent":["\"use client\";\n\nimport { createContext, useContext } from \"react\";\n\nimport type { useMessages } from \"../../../lib/i18n\";\n\nexport type SidebarState = \"expanded\" | \"collapsed\";\nexport type SidebarSide = \"left\" | \"right\";\nexport type SidebarVariant = \"sidebar\" | \"floating\" | \"inset\";\nexport type SidebarCollapsible = \"offcanvas\" | \"icon\" | \"none\";\n\n/** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */\nexport const animatedSidebarMessages = {\n label: \"Sidebar\",\n toggle: \"Toggle sidebar\",\n close: \"Close sidebar\",\n};\n\nexport type AnimatedSidebarMessages = typeof animatedSidebarMessages;\n\ninterface AnimatedSidebarContextValue {\n isMobile: boolean;\n layoutId: string;\n open: boolean;\n openMobile: boolean;\n reduce: boolean;\n setOpen: (open: boolean) => void;\n setOpenMobile: (open: boolean) => void;\n state: SidebarState;\n toggleSidebar: () => void;\n triggerRef: React.RefObject<HTMLButtonElement | null>;\n t: ReturnType<typeof useMessages<AnimatedSidebarMessages>>;\n}\n\nexport const AnimatedSidebarContext = createContext<AnimatedSidebarContextValue | null>(null);\n\ninterface AnimatedSidebarPanelContextValue {\n collapsed: boolean;\n collapsible: SidebarCollapsible;\n side: SidebarSide;\n}\n\nexport const AnimatedSidebarPanelContext = createContext<AnimatedSidebarPanelContextValue | null>(\n null,\n);\n\nexport function useAnimatedSidebar() {\n const context = useContext(AnimatedSidebarContext);\n if (!context) {\n throw new Error(\"useAnimatedSidebar must be used inside AnimatedSidebarProvider.\");\n }\n return context;\n}\n\nexport function useAnimatedSidebarPanel() {\n const context = useContext(AnimatedSidebarPanelContext);\n if (!context) {\n throw new Error(\"Animated Sidebar parts must be used inside AnimatedSidebar.\");\n }\n return context;\n}\n"],"mappings":";;;AAYA,MAAa,0BAA0B;CACrC,OAAO;CACP,QAAQ;CACR,OAAO;AACT;AAkBA,MAAa,yBAAyB,cAAkD,IAAI;AAQ5F,MAAa,8BAA8B,cACzC,IACF;AAEA,SAAgB,qBAAqB;CACnC,MAAM,UAAU,WAAW,sBAAsB;CACjD,IAAI,CAAC,SACH,MAAM,IAAI,MAAM,iEAAiE;CAEnF,OAAO;AACT;AAEA,SAAgB,0BAA0B;CACxC,MAAM,UAAU,WAAW,2BAA2B;CACtD,IAAI,CAAC,SACH,MAAM,IAAI,MAAM,6DAA6D;CAE/E,OAAO;AACT"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { s as useMessages } from "./i18n-BRH0Y7Sm.js";
|
|
2
|
+
type SidebarState = "expanded" | "collapsed";
|
|
3
|
+
type SidebarSide = "left" | "right";
|
|
4
|
+
type SidebarVariant = "sidebar" | "floating" | "inset";
|
|
5
|
+
type SidebarCollapsible = "offcanvas" | "icon" | "none";
|
|
6
|
+
/** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */
|
|
7
|
+
declare const animatedSidebarMessages: {
|
|
8
|
+
label: string;
|
|
9
|
+
toggle: string;
|
|
10
|
+
close: string;
|
|
11
|
+
};
|
|
12
|
+
type AnimatedSidebarMessages = typeof animatedSidebarMessages;
|
|
13
|
+
interface AnimatedSidebarContextValue {
|
|
14
|
+
isMobile: boolean;
|
|
15
|
+
layoutId: string;
|
|
16
|
+
open: boolean;
|
|
17
|
+
openMobile: boolean;
|
|
18
|
+
reduce: boolean;
|
|
19
|
+
setOpen: (open: boolean) => void;
|
|
20
|
+
setOpenMobile: (open: boolean) => void;
|
|
21
|
+
state: SidebarState;
|
|
22
|
+
toggleSidebar: () => void;
|
|
23
|
+
triggerRef: React.RefObject<HTMLButtonElement | null>;
|
|
24
|
+
t: ReturnType<typeof useMessages<AnimatedSidebarMessages>>;
|
|
25
|
+
}
|
|
26
|
+
declare function useAnimatedSidebar(): AnimatedSidebarContextValue;
|
|
27
|
+
export { animatedSidebarMessages as a, SidebarVariant as i, SidebarCollapsible as n, useAnimatedSidebar as o, SidebarSide as r, AnimatedSidebarMessages as t };
|
|
28
|
+
//# sourceMappingURL=context-DtFeYksF.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-DtFeYksF.d.ts","names":[],"sources":["../src/components/motion/animated-sidebar/context.ts"],"mappings":";KAMY;KACA;KACA;KACA;;cAGC;;;;;KAMD,iCAAiC;UAEnC;EACR;EACA;EACA;EACA;EACA;EACA,UAAU;EACV,gBAAgB;EAChB,OAAO;EACP;EACA,YAAY,MAAM,UAAU;EAC5B,GAAG,kBAAkB,YAAY;;iBAenB,sBAAkB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createContext, useContext, useEffect, useId, useMemo, useRef, useState } from "react";
|
|
2
2
|
import { useReducedMotion } from "motion/react";
|
|
3
|
+
import { useControllable } from "./hooks/use-controllable.js";
|
|
3
4
|
import { useHoverCapable } from "./hooks/use-hover-capable.js";
|
|
4
5
|
import { useLocale, useMessages } from "./lib/i18n.js";
|
|
5
6
|
// src/components/charts/returns-calendar/messages.ts
|
|
@@ -75,7 +76,7 @@ const RING = "inset 0 0 0 1.5px var(--foreground)";
|
|
|
75
76
|
* hovering a year total replays that row month by month. Clicking a month
|
|
76
77
|
* anchors a span: the grid dims, hovering previews the run from that month to
|
|
77
78
|
* the pointer with its compounded return, a second click locks it and a third
|
|
78
|
-
* clears it. The Year column selects the same way but by whole years
|
|
79
|
+
* clears it. The Year column selects the same way but by whole years - anchor a
|
|
79
80
|
* year, a second year spans every month between them. Hover lifts are gated to
|
|
80
81
|
* pointer devices, and reduced motion keeps the fades only.
|
|
81
82
|
*/
|
|
@@ -86,8 +87,7 @@ function useReturnsCalendarModel({ years = [], returns = [], selection: controll
|
|
|
86
87
|
const reduce = useReducedMotion();
|
|
87
88
|
const canHover = useHoverCapable();
|
|
88
89
|
const [storedHover, setHover] = useState(null);
|
|
89
|
-
const [
|
|
90
|
-
const requestedSelection = controlledSelection === void 0 ? internalSelection : controlledSelection;
|
|
90
|
+
const [requestedSelection, setSelection, setInternalSelection] = useControllable(controlledSelection, defaultSelection, onSelectionChange);
|
|
91
91
|
const validCell = (cell) => Number.isInteger(cell.y) && Number.isInteger(cell.m) && cell.y >= 0 && cell.y < years.length && cell.m >= 0 && cell.m <= 12;
|
|
92
92
|
const selection = requestedSelection && validCell(requestedSelection.start) && (!requestedSelection.end || validCell(requestedSelection.end) && requestedSelection.start.m === 12 === (requestedSelection.end.m === 12)) ? requestedSelection : null;
|
|
93
93
|
if (requestedSelection && !selection && controlledSelection === void 0) setInternalSelection(null);
|
|
@@ -95,10 +95,6 @@ function useReturnsCalendarModel({ years = [], returns = [], selection: controll
|
|
|
95
95
|
if (storedHover && !hover) setHover(null);
|
|
96
96
|
const pinned = selection?.start ?? null;
|
|
97
97
|
const spanEnd = selection?.end ?? null;
|
|
98
|
-
const setSelection = (next) => {
|
|
99
|
-
if (controlledSelection === void 0) setInternalSelection(next);
|
|
100
|
-
onSelectionChange?.(next);
|
|
101
|
-
};
|
|
102
98
|
const gridRef = useRef(null);
|
|
103
99
|
const tooltipId = useId();
|
|
104
100
|
const [settled, setSettled] = useState(false);
|
|
@@ -204,4 +200,4 @@ function useReturnsCalendar() {
|
|
|
204
200
|
}
|
|
205
201
|
export { RING as a, same as c, returnsCalendarMessages as d, DOWN as i, signed as l, useReturnsCalendar as n, UP as o, useReturnsCalendarModel as r, ink as s, ReturnsCalendarContext as t, tint as u };
|
|
206
202
|
|
|
207
|
-
//# sourceMappingURL=context-
|
|
203
|
+
//# sourceMappingURL=context-cRAJSFxf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-cRAJSFxf.js","names":[],"sources":["../src/components/charts/returns-calendar/messages.ts","../src/components/charts/returns-calendar/utils.ts","../src/components/charts/returns-calendar/context.ts"],"sourcesContent":["\"use client\";\n\nexport const returnsCalendarMessages = {\n year: \"Year\",\n monthCell: \"{month} {year} {value}%\",\n yearCell: \"{year} {value}% for the year\",\n years: \"{count} years\",\n months: \"{count} months\",\n forYear: \"for the year\",\n};\n\nexport type ReturnsCalendarMessages = typeof returnsCalendarMessages;\n","\"use client\";\n\nimport type { ReturnsCalendarCell } from \"./types\";\n\nexport const UP = \"var(--success)\";\n\nexport const DOWN = \"var(--destructive)\";\n\nexport const MONTHS = [\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"May\",\n \"Jun\",\n \"Jul\",\n \"Aug\",\n \"Sep\",\n \"Oct\",\n \"Nov\",\n \"Dec\",\n];\n\nexport const COLS = MONTHS.map((name, m) => ({ name, initial: name[0], m }));\n\n/** Month names and column initials; without a locale they stay English so server and client match. */\nexport const monthColumns = (locale?: string) => {\n if (!locale) return { months: MONTHS, cols: COLS };\n const short = new Intl.DateTimeFormat(locale, { timeZone: \"UTC\", month: \"short\" });\n const narrow = new Intl.DateTimeFormat(locale, { timeZone: \"UTC\", month: \"narrow\" });\n const dates = MONTHS.map((_, m) => new Date(Date.UTC(2000, m, 1)));\n return {\n months: dates.map((date) => short.format(date)),\n cols: dates.map((date, m) => ({ name: short.format(date), initial: narrow.format(date), m })),\n };\n};\n\n/** The compounded column, addressed like a thirteenth month. */\nexport const YEAR = 12;\n\n/** Compounded return of a run of percentages, in percent. */\nexport const compound = (run: number[]) =>\n (run.reduce((acc, r) => acc * (1 + r / 100), 1) - 1) * 100;\n\nexport const signed = (v: number, dp: number) => `${v >= 0 ? \"+\" : \"−\"}${Math.abs(v).toFixed(dp)}`;\n\n/** A hue as text: on the light page its lightness is capped so 11px numbers reach AA while the chroma stays, in dark it is native (`--ink-l` flips per theme on the root). */\nexport const ink = (c: string) => `oklch(from ${c} min(l, var(--ink-l, 1)) c h)`;\n\n/** magnitude → strength of the one up or down hue, never a second color */\nexport const tint = (v: number, range: number, on: boolean) =>\n `color-mix(in srgb, ${v >= 0 ? UP : DOWN} ${Math.round(Math.min(Math.abs(v) / range, 1) * 55 + (on ? 24 : 8))}%, transparent)`;\n\nexport const same = (a: ReturnsCalendarCell | null, y: number, m: number) =>\n a?.y === y && a?.m === m;\n\nexport const RING = \"inset 0 0 0 1.5px var(--foreground)\";\n","\"use client\";\n\nimport { createContext, useContext, useEffect, useId, useMemo, useRef, useState } from \"react\";\nimport { useReducedMotion } from \"motion/react\";\n\nimport { useControllable } from \"../../../hooks/use-controllable\";\nimport { useHoverCapable } from \"../../../hooks/use-hover-capable\";\nimport { useLocale, useMessages } from \"../../../lib/i18n\";\nimport { returnsCalendarMessages } from \"./messages\";\nimport type { ReturnsCalendarCell, ReturnsCalendarProps, ReturnsCalendarSelection } from \"./types\";\nimport { compound, MONTHS, monthColumns, same, YEAR } from \"./utils\";\n\n/**\n * Monthly returns as a years by months grid. Each cell tints toward the up or\n * down color by magnitude, and a compounded year column closes every row.\n * Cells spring in on a diagonal wave. Hovering a month glides a tooltip with\n * its value and dims everything that shares neither its row nor its column;\n * hovering a year total replays that row month by month. Clicking a month\n * anchors a span: the grid dims, hovering previews the run from that month to\n * the pointer with its compounded return, a second click locks it and a third\n * clears it. The Year column selects the same way but by whole years - anchor a\n * year, a second year spans every month between them. Hover lifts are gated to\n * pointer devices, and reduced motion keeps the fades only.\n */\nexport function useReturnsCalendarModel({\n years = [],\n returns = [],\n selection: controlledSelection,\n defaultSelection = null,\n onSelectionChange,\n labels,\n}: ReturnsCalendarProps) {\n const t = useMessages(\"returnsCalendar\", returnsCalendarMessages, labels);\n const { locale } = useLocale();\n const { months, cols } = useMemo(() => monthColumns(locale), [locale]);\n const reduce = useReducedMotion();\n const canHover = useHoverCapable();\n const [storedHover, setHover] = useState<ReturnsCalendarCell | null>(null);\n const [requestedSelection, setSelection, setInternalSelection] =\n useControllable<ReturnsCalendarSelection | null>(\n controlledSelection,\n defaultSelection,\n onSelectionChange,\n );\n const validCell = (cell: ReturnsCalendarCell) =>\n Number.isInteger(cell.y) &&\n Number.isInteger(cell.m) &&\n cell.y >= 0 &&\n cell.y < years.length &&\n cell.m >= 0 &&\n cell.m <= YEAR;\n const selection =\n requestedSelection &&\n validCell(requestedSelection.start) &&\n (!requestedSelection.end ||\n (validCell(requestedSelection.end) &&\n (requestedSelection.start.m === YEAR) === (requestedSelection.end.m === YEAR)))\n ? requestedSelection\n : null;\n if (requestedSelection && !selection && controlledSelection === undefined)\n setInternalSelection(null);\n const hover = storedHover && validCell(storedHover) ? storedHover : null;\n if (storedHover && !hover) setHover(null);\n const pinned = selection?.start ?? null;\n const spanEnd = selection?.end ?? null;\n const gridRef = useRef<HTMLDivElement>(null);\n const tooltipId = useId();\n // the entrance wave owns the cells until it has landed; hover lifts take over after\n const [settled, setSettled] = useState(false);\n useEffect(() => {\n const timer = setTimeout(() => setSettled(true), reduce ? 0 : (years.length + 13) * 20 + 500);\n return () => clearTimeout(timer);\n }, [years.length, reduce]);\n\n // Normalize each displayed row to twelve months so missing values never\n // shift the following year's positions when a span is compounded.\n const rows = useMemo(\n () => years.map((_, y) => MONTHS.map((_, m) => returns[y]?.[m] ?? 0)),\n [years, returns],\n );\n const totals = useMemo(() => rows.map(compound), [rows]);\n /** every month in order, so a span is one slice */\n const flat = useMemo(() => rows.flat(), [rows]);\n\n const valueAt = (y: number, m: number) => returns[y]?.[m] ?? 0;\n /** percent that saturates a month's tint */\n const range = 8;\n\n // one click on a month anchors a span and dims everything else; hovering then\n // previews the run from the anchor to the pointer and compounds it live, a\n // second click locks it, and the next click anywhere clears it\n const ci = (c: ReturnsCalendarCell) => c.y * 12 + c.m;\n const clear = () => {\n setSelection(null);\n };\n const anchored = pinned !== null && pinned.m !== YEAR;\n const spanTo = spanEnd ?? (anchored && hover && hover.m !== YEAR ? hover : null);\n const span =\n anchored && pinned\n ? spanTo\n ? { lo: Math.min(ci(pinned), ci(spanTo)), hi: Math.max(ci(pinned), ci(spanTo)) }\n : { lo: ci(pinned), hi: ci(pinned) }\n : null;\n const spanValue = span ? compound(flat.slice(span.lo, span.hi + 1)) : 0;\n\n // the Year column runs its own selection: anchor a year, then a second year\n // spans whole years and compounds every month between them\n const yearAnchored = pinned !== null && pinned.m === YEAR;\n const yearTo = spanEnd ?? (yearAnchored && hover && hover.m === YEAR ? hover : null);\n const yearSpan =\n yearAnchored && pinned\n ? {\n lo: Math.min(pinned.y, (yearTo ?? pinned).y),\n hi: Math.max(pinned.y, (yearTo ?? pinned).y),\n }\n : null;\n const yearSpanValue = yearSpan\n ? compound(flat.slice(yearSpan.lo * 12, (yearSpan.hi + 1) * 12))\n : 0;\n\n const select = (cell: ReturnsCalendarCell) => {\n if (spanEnd || same(pinned, cell.y, cell.m)) clear();\n // extend within the same track - month→month or year→year; a different track re-anchors\n else if (pinned && (pinned.m === YEAR) === (cell.m === YEAR))\n setSelection({ start: pinned, end: cell });\n else {\n setSelection({ start: cell });\n }\n };\n\n /** the cell the grid reacts to: lift, labels and the year replay follow the pointer */\n const hot = hover ?? spanEnd ?? pinned;\n /** the cell the tooltip hangs from: a locked span keeps it on its end */\n const tip = spanEnd ?? hover ?? pinned;\n // the year replay is a plain-hover flourish; hold it back while a year span is being built\n const sweepRow = !yearAnchored && hot?.m === YEAR ? hot.y : null;\n const showSpan = span !== null && span.lo !== span.hi;\n const showYearSpan = yearSpan !== null && yearSpan.lo !== yearSpan.hi;\n const tipValue = showYearSpan\n ? yearSpanValue\n : showSpan && span\n ? spanValue\n : tip\n ? tip.m === YEAR\n ? totals[tip.y]\n : valueAt(tip.y, tip.m)\n : 0;\n const tipLabel =\n showYearSpan && yearSpan\n ? `${years[yearSpan.lo]} – ${years[yearSpan.hi]}`\n : showSpan && span\n ? `${months[span.lo % 12]} ${years[Math.floor(span.lo / 12)]} – ${months[span.hi % 12]} ${years[Math.floor(span.hi / 12)]}`\n : tip\n ? tip.m === YEAR\n ? `${years[tip.y]}`\n : `${months[tip.m]} ${years[tip.y]}`\n : \"\";\n const tipNote =\n showYearSpan && yearSpan\n ? t(\"years\", { count: yearSpan.hi - yearSpan.lo + 1 })\n : showSpan && span\n ? t(\"months\", { count: span.hi - span.lo + 1 })\n : tip?.m === YEAR\n ? t(\"forYear\")\n : null;\n const enter = (y: number, m: number) => () => setHover({ y, m });\n const press = (y: number, m: number) => () => select({ y, m });\n const clearOnEscape = (e: { key: string }) => {\n if (e.key === \"Escape\") clear();\n };\n\n return {\n years,\n months,\n cols,\n t,\n reduce,\n canHover,\n hover,\n pinned,\n spanEnd,\n settled,\n totals,\n valueAt,\n range,\n clear,\n span,\n yearSpan,\n hot,\n tip,\n sweepRow,\n tipValue,\n tipLabel,\n tipNote,\n enter,\n press,\n clearOnEscape,\n setHover,\n gridRef,\n tooltipId,\n selection,\n setSelection,\n };\n}\n\nexport const ReturnsCalendarContext = createContext<ReturnType<\n typeof useReturnsCalendarModel\n> | null>(null);\n\nexport function useReturnsCalendar() {\n const context = useContext(ReturnsCalendarContext);\n if (!context) throw new Error(\"ReturnsCalendar parts must be inside ReturnsCalendar\");\n return context;\n}\n"],"mappings":";;;;;;AAEA,MAAa,0BAA0B;CACrC,MAAM;CACN,WAAW;CACX,UAAU;CACV,OAAO;CACP,QAAQ;CACR,SAAS;AACX;;ACLA,MAAa,KAAK;AAElB,MAAa,OAAO;AAEpB,MAAa,SAAS;CACpB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAa,OAAO,OAAO,KAAK,MAAM,OAAO;CAAE;CAAM,SAAS,KAAK;CAAI;AAAE,EAAE;;AAG3E,MAAa,gBAAgB,WAAoB;CAC/C,IAAI,CAAC,QAAQ,OAAO;EAAE,QAAQ;EAAQ,MAAM;CAAK;CACjD,MAAM,QAAQ,IAAI,KAAK,eAAe,QAAQ;EAAE,UAAU;EAAO,OAAO;CAAQ,CAAC;CACjF,MAAM,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