@kumix/ui 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -47
- package/dist/animated-sidebar-CPdrqoGi.js +310 -0
- package/dist/animated-sidebar-CPdrqoGi.js.map +1 -0
- package/dist/animated-toast-stack-Cbdphi9x.d.ts +62 -0
- package/dist/animated-toast-stack-Cbdphi9x.d.ts.map +1 -0
- package/dist/animated-toast-stack-YcjQ2Uaw.js +568 -0
- package/dist/animated-toast-stack-YcjQ2Uaw.js.map +1 -0
- package/dist/components/agents/agent-activity/activity-row.d.ts +1 -1
- package/dist/components/agents/agent-activity/activity-row.d.ts.map +1 -1
- package/dist/components/agents/agent-activity/activity-row.js +31 -26
- package/dist/components/agents/agent-activity/activity-row.js.map +1 -1
- package/dist/components/agents/{agent-activity/index.d.ts → agent-activity.d.ts} +2 -2
- package/dist/components/agents/agent-activity.d.ts.map +1 -0
- package/dist/components/agents/{agent-activity/index.js → agent-activity.js} +13 -27
- package/dist/components/agents/agent-activity.js.map +1 -0
- package/dist/components/agents/agent-code.d.ts.map +1 -1
- package/dist/components/agents/agent-code.js +42 -16
- package/dist/components/agents/agent-code.js.map +1 -1
- package/dist/components/agents/agent-disclosure.d.ts +7 -2
- package/dist/components/agents/agent-disclosure.d.ts.map +1 -1
- package/dist/components/agents/agent-disclosure.js +15 -3
- package/dist/components/agents/agent-disclosure.js.map +1 -1
- package/dist/components/agents/ai-sidebar/marquee-label.d.ts +6 -0
- package/dist/components/agents/ai-sidebar/marquee-label.d.ts.map +1 -0
- package/dist/components/agents/ai-sidebar/marquee-label.js +55 -0
- package/dist/components/agents/ai-sidebar/marquee-label.js.map +1 -0
- package/dist/components/agents/ai-sidebar/resource-menu-action.d.ts +8 -0
- package/dist/components/agents/ai-sidebar/resource-menu-action.d.ts.map +1 -0
- package/dist/components/agents/ai-sidebar/resource-menu-action.js +20 -0
- package/dist/components/agents/ai-sidebar/resource-menu-action.js.map +1 -0
- package/dist/components/agents/ai-sidebar/resource-row.d.ts +32 -0
- package/dist/components/agents/ai-sidebar/resource-row.d.ts.map +1 -0
- package/dist/components/agents/ai-sidebar/resource-row.js +2 -0
- package/dist/components/agents/ai-sidebar.d.ts +2 -74
- package/dist/components/agents/ai-sidebar.d.ts.map +1 -1
- package/dist/components/agents/ai-sidebar.js +16 -332
- package/dist/components/agents/ai-sidebar.js.map +1 -1
- package/dist/components/agents/{approval-card/index.d.ts → approval-card.d.ts} +31 -1
- package/dist/components/agents/approval-card.d.ts.map +1 -0
- package/dist/components/agents/{approval-card/index.js → approval-card.js} +160 -80
- package/dist/components/agents/approval-card.js.map +1 -0
- package/dist/components/agents/chat-app.d.ts +1 -1
- package/dist/components/agents/chat-app.d.ts.map +1 -1
- package/dist/components/agents/chat-app.js +9 -6
- package/dist/components/agents/chat-app.js.map +1 -1
- package/dist/components/agents/citations.d.ts +24 -1
- package/dist/components/agents/citations.d.ts.map +1 -1
- package/dist/components/agents/citations.js +54 -9
- package/dist/components/agents/citations.js.map +1 -1
- package/dist/components/agents/clip-resize-frame.d.ts +31 -0
- package/dist/components/agents/clip-resize-frame.d.ts.map +1 -0
- package/dist/components/agents/clip-resize-frame.js +103 -0
- package/dist/components/agents/clip-resize-frame.js.map +1 -0
- package/dist/components/agents/code-block.d.ts +11 -0
- package/dist/components/agents/code-block.d.ts.map +1 -1
- package/dist/components/agents/code-block.js +34 -26
- package/dist/components/agents/code-block.js.map +1 -1
- package/dist/components/agents/context-meter.d.ts +53 -0
- package/dist/components/agents/context-meter.d.ts.map +1 -0
- package/dist/components/agents/context-meter.js +443 -0
- package/dist/components/agents/context-meter.js.map +1 -0
- package/dist/components/agents/file-diff.d.ts +17 -0
- package/dist/components/agents/file-diff.d.ts.map +1 -1
- package/dist/components/agents/file-diff.js +114 -82
- package/dist/components/agents/file-diff.js.map +1 -1
- package/dist/components/agents/icon-swap.d.ts +14 -0
- package/dist/components/agents/icon-swap.d.ts.map +1 -0
- package/dist/components/agents/icon-swap.js +41 -0
- package/dist/components/agents/icon-swap.js.map +1 -0
- package/dist/components/agents/image-generation.d.ts +10 -0
- package/dist/components/agents/image-generation.d.ts.map +1 -1
- package/dist/components/agents/image-generation.js +10 -6
- package/dist/components/agents/image-generation.js.map +1 -1
- package/dist/components/agents/loading-states/agent-progress.d.ts +1 -0
- package/dist/components/agents/loading-states/agent-progress.d.ts.map +1 -1
- package/dist/components/agents/loading-states/agent-progress.js.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.d.ts +1 -0
- package/dist/components/agents/loading-states/reasoning-text.d.ts.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.js +30 -7
- package/dist/components/agents/loading-states/reasoning-text.js.map +1 -1
- package/dist/components/agents/loading-states/thinking-shimmer.d.ts +1 -0
- package/dist/components/agents/loading-states/thinking-shimmer.d.ts.map +1 -1
- package/dist/components/agents/loading-states/thinking-shimmer.js.map +1 -1
- package/dist/components/agents/message-bubble.d.ts +10 -0
- package/dist/components/agents/message-bubble.d.ts.map +1 -1
- package/dist/components/agents/message-bubble.js +59 -39
- package/dist/components/agents/message-bubble.js.map +1 -1
- package/dist/components/agents/message-scroller.d.ts +10 -1
- package/dist/components/agents/message-scroller.d.ts.map +1 -1
- package/dist/components/agents/message-scroller.js +81 -16
- package/dist/components/agents/message-scroller.js.map +1 -1
- package/dist/components/agents/message.d.ts +3 -0
- package/dist/components/agents/message.d.ts.map +1 -1
- package/dist/components/agents/message.js +3 -3
- package/dist/components/agents/message.js.map +1 -1
- package/dist/components/agents/prompt-input.d.ts +41 -1
- package/dist/components/agents/prompt-input.d.ts.map +1 -1
- package/dist/components/agents/prompt-input.js +356 -93
- package/dist/components/agents/prompt-input.js.map +1 -1
- package/dist/components/agents/streaming-response.d.ts +12 -0
- package/dist/components/agents/streaming-response.d.ts.map +1 -1
- package/dist/components/agents/streaming-response.js +35 -28
- package/dist/components/agents/streaming-response.js.map +1 -1
- package/dist/components/agents/todo-list.d.ts +13 -0
- package/dist/components/agents/todo-list.d.ts.map +1 -1
- package/dist/components/agents/todo-list.js +114 -98
- package/dist/components/agents/todo-list.js.map +1 -1
- package/dist/components/agents/tool-approval.d.ts +18 -0
- package/dist/components/agents/tool-approval.d.ts.map +1 -1
- package/dist/components/agents/tool-approval.js +48 -22
- package/dist/components/agents/tool-approval.js.map +1 -1
- package/dist/components/agents/tool-result.d.ts +18 -0
- package/dist/components/agents/tool-result.d.ts.map +1 -1
- package/dist/components/agents/tool-result.js +48 -59
- package/dist/components/agents/tool-result.js.map +1 -1
- package/dist/components/agents/voice-note.d.ts +37 -0
- package/dist/components/agents/voice-note.d.ts.map +1 -0
- package/dist/components/agents/voice-note.js +326 -0
- package/dist/components/agents/voice-note.js.map +1 -0
- package/dist/components/charts/bar-chart/context.d.ts +12 -4
- package/dist/components/charts/bar-chart/context.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/context.js +3 -1
- package/dist/components/charts/bar-chart/context.js.map +1 -1
- package/dist/components/charts/bar-chart/legend.d.ts +1 -0
- package/dist/components/charts/bar-chart/legend.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/legend.js.map +1 -1
- package/dist/components/charts/bar-chart/plot.d.ts +2 -0
- package/dist/components/charts/bar-chart/plot.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/plot.js +2 -2
- package/dist/components/charts/bar-chart/plot.js.map +1 -1
- package/dist/components/charts/bar-chart/tooltip.d.ts +2 -0
- package/dist/components/charts/bar-chart/tooltip.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/tooltip.js +1 -1
- package/dist/components/charts/bar-chart/tooltip.js.map +1 -1
- package/dist/components/charts/bar-chart.d.ts +1 -1
- package/dist/components/charts/bump-chart/context.d.ts +1 -1
- package/dist/components/charts/bump-chart/context.js +1 -1
- package/dist/components/charts/bump-chart/legend.js +5 -5
- package/dist/components/charts/bump-chart/legend.js.map +1 -1
- package/dist/components/charts/bump-chart/plot.js +1 -1
- package/dist/components/charts/bump-chart/point.js +5 -5
- package/dist/components/charts/bump-chart/point.js.map +1 -1
- package/dist/components/charts/bump-chart/series.d.ts +1 -1
- package/dist/components/charts/bump-chart/series.js +2 -2
- package/dist/components/charts/bump-chart/series.js.map +1 -1
- package/dist/components/charts/bump-chart.d.ts +1 -1
- package/dist/components/charts/bump-chart.js +2 -2
- package/dist/components/charts/candlestick-chart/context.d.ts +11 -0
- package/dist/components/charts/candlestick-chart/context.d.ts.map +1 -1
- package/dist/components/charts/candlestick-chart/context.js.map +1 -1
- package/dist/components/charts/candlestick-chart/plot.js +2 -2
- package/dist/components/charts/candlestick-chart/plot.js.map +1 -1
- package/dist/components/charts/composition-chart/context.d.ts +1 -1
- package/dist/components/charts/composition-chart/legend.js +1 -1
- package/dist/components/charts/composition-chart/legend.js.map +1 -1
- package/dist/components/charts/composition-chart/plot.js +1 -1
- package/dist/components/charts/composition-chart.d.ts +1 -1
- package/dist/components/charts/donut-chart/center.d.ts +1 -1
- package/dist/components/charts/donut-chart/context.d.ts +6 -1
- package/dist/components/charts/donut-chart/context.d.ts.map +1 -1
- package/dist/components/charts/donut-chart/legend.d.ts +1 -1
- package/dist/components/charts/donut-chart.d.ts +1 -1
- package/dist/components/charts/funnel-chart.d.ts +8 -0
- package/dist/components/charts/funnel-chart.d.ts.map +1 -1
- package/dist/components/charts/funnel-chart.js +8 -8
- package/dist/components/charts/funnel-chart.js.map +1 -1
- package/dist/components/charts/heat-calendar/grid.js +2 -2
- package/dist/components/charts/heat-calendar/grid.js.map +1 -1
- package/dist/components/charts/heat-calendar/legend.js +1 -1
- package/dist/components/charts/heat-calendar/tooltip.d.ts +1 -1
- package/dist/components/charts/heat-calendar/tooltip.js +2 -2
- package/dist/components/charts/heat-calendar.d.ts +1 -1
- package/dist/components/charts/heat-calendar.js +1 -1
- package/dist/components/charts/line-chart/context.d.ts +12 -4
- package/dist/components/charts/line-chart/context.d.ts.map +1 -1
- package/dist/components/charts/line-chart/context.js +3 -1
- package/dist/components/charts/line-chart/context.js.map +1 -1
- package/dist/components/charts/line-chart/legend.d.ts +1 -0
- package/dist/components/charts/line-chart/legend.d.ts.map +1 -1
- package/dist/components/charts/line-chart/legend.js.map +1 -1
- package/dist/components/charts/line-chart/plot.d.ts +2 -0
- package/dist/components/charts/line-chart/plot.d.ts.map +1 -1
- package/dist/components/charts/line-chart/plot.js +3 -3
- package/dist/components/charts/line-chart/plot.js.map +1 -1
- package/dist/components/charts/line-chart/tooltip.d.ts +1 -0
- package/dist/components/charts/line-chart/tooltip.d.ts.map +1 -1
- package/dist/components/charts/line-chart/tooltip.js.map +1 -1
- package/dist/components/charts/line-chart.d.ts +1 -1
- package/dist/components/charts/liquidity-heatmap.d.ts +8 -0
- package/dist/components/charts/liquidity-heatmap.d.ts.map +1 -1
- package/dist/components/charts/liquidity-heatmap.js +4 -4
- package/dist/components/charts/liquidity-heatmap.js.map +1 -1
- package/dist/components/charts/order-book/depth-row.d.ts +1 -1
- package/dist/components/charts/order-book.d.ts +14 -2
- package/dist/components/charts/order-book.d.ts.map +1 -1
- package/dist/components/charts/order-book.js +6 -6
- package/dist/components/charts/order-book.js.map +1 -1
- package/dist/components/charts/price-target-fan/header.js +2 -2
- package/dist/components/charts/price-target-fan/header.js.map +1 -1
- package/dist/components/charts/price-target-fan/plot.js +1 -1
- package/dist/components/charts/price-target-fan/series.js +1 -1
- package/dist/components/charts/price-target-fan/tooltip.d.ts +1 -1
- package/dist/components/charts/price-target-fan/tooltip.js +3 -3
- package/dist/components/charts/price-target-fan/tooltip.js.map +1 -1
- package/dist/components/charts/price-target-fan.d.ts +1 -1
- package/dist/components/charts/price-target-fan.js +1 -1
- package/dist/components/charts/returns-calendar/grid.js +10 -7
- package/dist/components/charts/returns-calendar/grid.js.map +1 -1
- package/dist/components/charts/returns-calendar/tooltip.d.ts +1 -1
- package/dist/components/charts/returns-calendar/tooltip.js +2 -2
- package/dist/components/charts/returns-calendar/tooltip.js.map +1 -1
- package/dist/components/charts/returns-calendar.d.ts +1 -1
- package/dist/components/charts/returns-calendar.d.ts.map +1 -1
- package/dist/components/charts/returns-calendar.js +1 -1
- package/dist/components/charts/sankey-chart/context.d.ts +1 -1
- package/dist/components/charts/sankey-chart/context.js +1 -1
- package/dist/components/charts/sankey-chart/plot.d.ts.map +1 -1
- package/dist/components/charts/sankey-chart/plot.js +10 -32
- package/dist/components/charts/sankey-chart/plot.js.map +1 -1
- package/dist/components/charts/sankey-chart/tooltip.d.ts +3 -1
- package/dist/components/charts/sankey-chart/tooltip.d.ts.map +1 -1
- package/dist/components/charts/sankey-chart/tooltip.js +2 -2
- package/dist/components/charts/sankey-chart/tooltip.js.map +1 -1
- package/dist/components/charts/sankey-chart.d.ts +1 -1
- package/dist/components/charts/sankey-chart.js +1 -1
- package/dist/components/charts/sparkline.d.ts +4 -0
- package/dist/components/charts/sparkline.d.ts.map +1 -1
- package/dist/components/charts/sparkline.js +3 -3
- package/dist/components/charts/sparkline.js.map +1 -1
- package/dist/components/charts/status-bar/legend.d.ts +1 -0
- package/dist/components/charts/status-bar/legend.d.ts.map +1 -1
- package/dist/components/charts/status-bar/legend.js +1 -1
- package/dist/components/charts/status-bar/legend.js.map +1 -1
- package/dist/components/charts/status-bar/plot.d.ts +2 -0
- package/dist/components/charts/status-bar/plot.d.ts.map +1 -1
- package/dist/components/charts/status-bar/plot.js +1 -1
- package/dist/components/charts/status-bar/plot.js.map +1 -1
- package/dist/components/charts/status-bar/tooltip.d.ts +1 -1
- package/dist/components/charts/status-bar/tooltip.js +2 -2
- package/dist/components/charts/status-bar/tooltip.js.map +1 -1
- package/dist/components/charts/status-bar.d.ts +1 -1
- package/dist/components/charts/status-bar.js +1 -1
- package/dist/components/charts/treemap/legend.d.ts +2 -0
- package/dist/components/charts/treemap/legend.d.ts.map +1 -1
- package/dist/components/charts/treemap/legend.js +1 -1
- package/dist/components/charts/treemap/legend.js.map +1 -1
- package/dist/components/charts/treemap/plot.d.ts +2 -1
- package/dist/components/charts/treemap/plot.d.ts.map +1 -1
- package/dist/components/charts/treemap/plot.js +3 -16
- package/dist/components/charts/treemap/plot.js.map +1 -1
- package/dist/components/charts/treemap/tile.d.ts +1 -1
- package/dist/components/charts/treemap/tile.js +3 -3
- package/dist/components/charts/treemap/tile.js.map +1 -1
- package/dist/components/charts/treemap/tooltip.d.ts +3 -1
- package/dist/components/charts/treemap/tooltip.d.ts.map +1 -1
- package/dist/components/charts/treemap/tooltip.js +2 -2
- package/dist/components/charts/treemap/tooltip.js.map +1 -1
- package/dist/components/charts/treemap.d.ts +10 -4
- package/dist/components/charts/treemap.d.ts.map +1 -1
- package/dist/components/charts/treemap.js +1 -1
- package/dist/components/charts/volume-profile/plot.d.ts +2 -0
- package/dist/components/charts/volume-profile/plot.d.ts.map +1 -1
- package/dist/components/charts/volume-profile/plot.js +4 -4
- package/dist/components/charts/volume-profile/plot.js.map +1 -1
- package/dist/components/charts/volume-profile/summary.js +2 -2
- package/dist/components/charts/volume-profile/summary.js.map +1 -1
- package/dist/components/charts/volume-profile/tooltip.d.ts +1 -1
- package/dist/components/charts/volume-profile/tooltip.js +2 -2
- package/dist/components/charts/volume-profile/tooltip.js.map +1 -1
- package/dist/components/charts/volume-profile.d.ts +12 -3
- package/dist/components/charts/volume-profile.d.ts.map +1 -1
- package/dist/components/charts/volume-profile.js +2 -2
- package/dist/components/charts/volume-profile.js.map +1 -1
- package/dist/components/charts/xy/data-table.d.ts +1 -1
- package/dist/components/charts/xy/legend.d.ts +1 -1
- package/dist/components/custom/toast.d.ts +2 -1
- package/dist/components/custom/toast.d.ts.map +1 -1
- package/dist/components/custom/toast.js +1 -1
- package/dist/components/motion/action-swap.d.ts +19 -0
- package/dist/components/motion/action-swap.d.ts.map +1 -1
- package/dist/components/motion/action-swap.js.map +1 -1
- package/dist/components/motion/adaptive-stepper.d.ts +13 -0
- package/dist/components/motion/adaptive-stepper.d.ts.map +1 -1
- package/dist/components/motion/adaptive-stepper.js +2 -7
- package/dist/components/motion/adaptive-stepper.js.map +1 -1
- package/dist/components/motion/add-to-cart.d.ts +38 -0
- package/dist/components/motion/add-to-cart.d.ts.map +1 -0
- package/dist/components/motion/add-to-cart.js +228 -0
- package/dist/components/motion/add-to-cart.js.map +1 -0
- package/dist/components/motion/alert.d.ts +4 -0
- package/dist/components/motion/alert.d.ts.map +1 -1
- package/dist/components/motion/alert.js +2 -2
- package/dist/components/motion/alert.js.map +1 -1
- package/dist/components/motion/animated-badge.d.ts +6 -0
- package/dist/components/motion/animated-badge.d.ts.map +1 -1
- package/dist/components/motion/animated-badge.js +2 -2
- package/dist/components/motion/animated-badge.js.map +1 -1
- package/dist/components/motion/animated-number.d.ts +5 -0
- package/dist/components/motion/animated-number.d.ts.map +1 -1
- package/dist/components/motion/animated-number.js.map +1 -1
- package/dist/components/motion/animated-sidebar/menu-button.d.ts +2 -0
- package/dist/components/motion/animated-sidebar/menu-button.js +95 -0
- package/dist/components/motion/animated-sidebar/menu-button.js.map +1 -0
- package/dist/components/motion/animated-sidebar/menu-sub-button.d.ts +2 -0
- package/dist/components/motion/animated-sidebar/menu-sub-button.js +52 -0
- package/dist/components/motion/animated-sidebar/menu-sub-button.js.map +1 -0
- package/dist/components/motion/animated-sidebar/mobile-sidebar.d.ts +9 -0
- package/dist/components/motion/animated-sidebar/mobile-sidebar.d.ts.map +1 -0
- package/dist/components/motion/animated-sidebar/mobile-sidebar.js +73 -0
- package/dist/components/motion/animated-sidebar/mobile-sidebar.js.map +1 -0
- package/dist/components/motion/animated-sidebar.d.ts +17 -55
- package/dist/components/motion/animated-sidebar.d.ts.map +1 -1
- package/dist/components/motion/animated-sidebar.js +4 -628
- package/dist/components/motion/animated-toast-stack/toast-body.d.ts +19 -0
- package/dist/components/motion/animated-toast-stack/toast-body.d.ts.map +1 -0
- package/dist/components/motion/animated-toast-stack/toast-body.js +154 -0
- package/dist/components/motion/animated-toast-stack/toast-body.js.map +1 -0
- package/dist/components/motion/animated-toast-stack.d.ts +3 -69
- package/dist/components/motion/animated-toast-stack.js +1 -307
- package/dist/components/motion/arc-picker.js +1 -1
- package/dist/components/motion/arc-picker.js.map +1 -1
- package/dist/components/motion/aspect-ratio.d.ts +1 -0
- package/dist/components/motion/aspect-ratio.d.ts.map +1 -1
- package/dist/components/motion/aspect-ratio.js.map +1 -1
- package/dist/components/motion/attachment-upload/attachment-row.d.ts +20 -0
- package/dist/components/motion/attachment-upload/attachment-row.d.ts.map +1 -0
- package/dist/components/motion/attachment-upload/attachment-row.js +224 -0
- package/dist/components/motion/attachment-upload/attachment-row.js.map +1 -0
- package/dist/components/motion/attachment-upload/image-preview-dialog.d.ts +10 -0
- package/dist/components/motion/attachment-upload/image-preview-dialog.d.ts.map +1 -0
- package/dist/components/motion/attachment-upload/image-preview-dialog.js +84 -0
- package/dist/components/motion/attachment-upload/image-preview-dialog.js.map +1 -0
- package/dist/components/motion/attachment-upload/image-thumbnail.d.ts +10 -0
- package/dist/components/motion/attachment-upload/image-thumbnail.d.ts.map +1 -0
- package/dist/components/motion/attachment-upload/image-thumbnail.js +53 -0
- package/dist/components/motion/attachment-upload/image-thumbnail.js.map +1 -0
- package/dist/components/motion/attachment-upload/row-action.d.ts +11 -0
- package/dist/components/motion/attachment-upload/row-action.d.ts.map +1 -0
- package/dist/components/motion/attachment-upload/row-action.js +98 -0
- package/dist/components/motion/attachment-upload/row-action.js.map +1 -0
- package/dist/components/motion/attachment-upload.d.ts +22 -50
- package/dist/components/motion/attachment-upload.d.ts.map +1 -1
- package/dist/components/motion/attachment-upload.js +16 -492
- package/dist/components/motion/attachment-upload.js.map +1 -1
- package/dist/components/motion/availability-scheduler/copy-menu.js +1 -1
- package/dist/components/motion/availability-scheduler/day-row.js +2 -2
- package/dist/components/motion/availability-scheduler/day-row.js.map +1 -1
- package/dist/components/motion/availability-scheduler/icon-button.js +1 -1
- package/dist/components/motion/availability-scheduler/icon-button.js.map +1 -1
- package/dist/components/motion/{availability-scheduler/index.d.ts → availability-scheduler.d.ts} +7 -3
- package/dist/components/motion/availability-scheduler.d.ts.map +1 -0
- package/dist/components/motion/{availability-scheduler/index.js → availability-scheduler.js} +4 -4
- package/dist/components/motion/availability-scheduler.js.map +1 -0
- package/dist/components/motion/avatar-group.d.ts +10 -1
- package/dist/components/motion/avatar-group.d.ts.map +1 -1
- package/dist/components/motion/avatar-group.js +3 -3
- package/dist/components/motion/avatar-group.js.map +1 -1
- package/dist/components/motion/before-after-slider.d.ts +3 -0
- package/dist/components/motion/before-after-slider.d.ts.map +1 -1
- package/dist/components/motion/before-after-slider.js +2 -3
- package/dist/components/motion/before-after-slider.js.map +1 -1
- package/dist/components/motion/bloom-menu.d.ts +5 -0
- package/dist/components/motion/bloom-menu.d.ts.map +1 -1
- package/dist/components/motion/bloom-menu.js +10 -24
- package/dist/components/motion/bloom-menu.js.map +1 -1
- package/dist/components/motion/bookmark-button.d.ts +30 -0
- package/dist/components/motion/bookmark-button.d.ts.map +1 -0
- package/dist/components/motion/bookmark-button.js +107 -0
- package/dist/components/motion/bookmark-button.js.map +1 -0
- package/dist/components/motion/bookshelf.d.ts +7 -0
- package/dist/components/motion/bookshelf.d.ts.map +1 -1
- package/dist/components/motion/bookshelf.js +3 -3
- package/dist/components/motion/bookshelf.js.map +1 -1
- package/dist/components/motion/bottom-sheet.d.ts +6 -0
- package/dist/components/motion/bottom-sheet.d.ts.map +1 -1
- package/dist/components/motion/bottom-sheet.js +6 -30
- package/dist/components/motion/bottom-sheet.js.map +1 -1
- package/dist/components/motion/bounce-sidebar.d.ts +16 -0
- package/dist/components/motion/bounce-sidebar.d.ts.map +1 -1
- package/dist/components/motion/bounce-sidebar.js.map +1 -1
- package/dist/components/motion/bouncy-accordion.d.ts +20 -0
- package/dist/components/motion/bouncy-accordion.d.ts.map +1 -1
- package/dist/components/motion/bouncy-accordion.js +2 -2
- package/dist/components/motion/bouncy-accordion.js.map +1 -1
- package/dist/components/motion/breadcrumb.d.ts +2 -0
- package/dist/components/motion/breadcrumb.d.ts.map +1 -1
- package/dist/components/motion/breadcrumb.js +5 -6
- package/dist/components/motion/breadcrumb.js.map +1 -1
- package/dist/components/motion/button/base.d.ts +8 -0
- package/dist/components/motion/button/base.d.ts.map +1 -1
- package/dist/components/motion/button/base.js +15 -10
- package/dist/components/motion/button/base.js.map +1 -1
- package/dist/components/motion/button/metallic.d.ts.map +1 -1
- package/dist/components/motion/button/metallic.js +5 -4
- package/dist/components/motion/button/metallic.js.map +1 -1
- package/dist/components/motion/button/stateful.d.ts +5 -0
- package/dist/components/motion/button/stateful.d.ts.map +1 -1
- package/dist/components/motion/button/stateful.js +0 -1
- package/dist/components/motion/button/stateful.js.map +1 -1
- package/dist/components/motion/{button/index.d.ts → button.d.ts} +4 -4
- package/dist/components/motion/button.js +6 -0
- package/dist/components/motion/card-dealer.d.ts +2 -0
- package/dist/components/motion/card-dealer.d.ts.map +1 -1
- package/dist/components/motion/card-dealer.js +4 -4
- package/dist/components/motion/card-dealer.js.map +1 -1
- package/dist/components/motion/card-folder.d.ts +18 -0
- package/dist/components/motion/card-folder.d.ts.map +1 -1
- package/dist/components/motion/card-folder.js +9 -9
- package/dist/components/motion/card-folder.js.map +1 -1
- package/dist/components/motion/card.js +1 -1
- package/dist/components/motion/card.js.map +1 -1
- package/dist/components/motion/casino/game-parts.d.ts +1 -1
- package/dist/components/motion/casino/game-parts.js +5 -5
- package/dist/components/motion/casino/game-parts.js.map +1 -1
- package/dist/components/motion/center-morph-modal.d.ts +4 -0
- package/dist/components/motion/center-morph-modal.d.ts.map +1 -1
- package/dist/components/motion/center-morph-modal.js +64 -91
- package/dist/components/motion/center-morph-modal.js.map +1 -1
- package/dist/components/motion/checkbox.d.ts +8 -0
- package/dist/components/motion/checkbox.d.ts.map +1 -1
- package/dist/components/motion/checkbox.js.map +1 -1
- package/dist/components/motion/chromatic-text-reveal.js +3 -3
- package/dist/components/motion/chromatic-text-reveal.js.map +1 -1
- package/dist/components/motion/click-burst.d.ts +24 -0
- package/dist/components/motion/click-burst.d.ts.map +1 -0
- package/dist/components/motion/click-burst.js +133 -0
- package/dist/components/motion/click-burst.js.map +1 -0
- package/dist/components/motion/collapsible.d.ts +4 -0
- package/dist/components/motion/collapsible.d.ts.map +1 -1
- package/dist/components/motion/collapsible.js +1 -1
- package/dist/components/motion/collapsible.js.map +1 -1
- package/dist/components/motion/color-picker.d.ts +7 -21
- package/dist/components/motion/color-picker.d.ts.map +1 -1
- package/dist/components/motion/color-picker.js +7 -95
- package/dist/components/motion/color-picker.js.map +1 -1
- package/dist/components/motion/color-selector.d.ts +5 -0
- package/dist/components/motion/color-selector.d.ts.map +1 -1
- package/dist/components/motion/color-selector.js.map +1 -1
- package/dist/components/motion/combobox/content.d.ts +3 -10
- package/dist/components/motion/combobox/content.d.ts.map +1 -1
- package/dist/components/motion/combobox/content.js +14 -80
- package/dist/components/motion/combobox/content.js.map +1 -1
- package/dist/components/motion/combobox/context.d.ts +3 -2
- package/dist/components/motion/combobox/context.js +1 -1
- package/dist/components/motion/combobox/list.d.ts +12 -0
- package/dist/components/motion/combobox/list.d.ts.map +1 -1
- package/dist/components/motion/combobox/list.js +4 -4
- package/dist/components/motion/combobox/list.js.map +1 -1
- package/dist/components/motion/combobox/listbox-panel.d.ts +2 -0
- package/dist/components/motion/combobox/listbox-panel.js +99 -0
- package/dist/components/motion/combobox/listbox-panel.js.map +1 -0
- package/dist/components/motion/combobox/trigger.d.ts +5 -0
- package/dist/components/motion/combobox/trigger.d.ts.map +1 -1
- package/dist/components/motion/combobox/trigger.js +3 -2
- package/dist/components/motion/combobox/trigger.js.map +1 -1
- package/dist/components/motion/combobox.d.ts +1 -1
- package/dist/components/motion/combobox.js +1 -1
- package/dist/components/motion/command-palette.d.ts +29 -1
- package/dist/components/motion/command-palette.d.ts.map +1 -1
- package/dist/components/motion/command-palette.js +282 -124
- package/dist/components/motion/command-palette.js.map +1 -1
- package/dist/components/motion/confetti.d.ts +23 -0
- package/dist/components/motion/confetti.d.ts.map +1 -0
- package/dist/components/motion/confetti.js +154 -0
- package/dist/components/motion/confetti.js.map +1 -0
- package/dist/components/motion/context-menu.d.ts +25 -0
- package/dist/components/motion/context-menu.d.ts.map +1 -1
- package/dist/components/motion/context-menu.js +110 -112
- package/dist/components/motion/context-menu.js.map +1 -1
- package/dist/components/motion/copy-button.d.ts +27 -0
- package/dist/components/motion/copy-button.d.ts.map +1 -0
- package/dist/components/motion/copy-button.js +129 -0
- package/dist/components/motion/copy-button.js.map +1 -0
- package/dist/components/motion/crash/crash-balloon.d.ts +2 -2
- package/dist/components/motion/crash/crash-balloon.js +2 -2
- package/dist/components/motion/crash/crash-balloon.js.map +1 -1
- package/dist/components/motion/crash/crash-parts.d.ts +2 -2
- package/dist/components/motion/crash/crash-parts.js +1 -1
- package/dist/components/motion/crash/crash-tower.d.ts +2 -2
- package/dist/components/motion/crash/crash-tower.js +3 -3
- package/dist/components/motion/crash/crash-tower.js.map +1 -1
- package/dist/components/motion/crash.d.ts +2 -2
- package/dist/components/motion/crash.js +1 -1
- package/dist/components/motion/cylinder-carousel.d.ts +6 -3
- package/dist/components/motion/cylinder-carousel.d.ts.map +1 -1
- package/dist/components/motion/cylinder-carousel.js +1 -1
- package/dist/components/motion/cylinder-carousel.js.map +1 -1
- package/dist/components/motion/date-range-picker/calendar-choices.d.ts +18 -0
- package/dist/components/motion/date-range-picker/calendar-choices.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/calendar-choices.js +62 -0
- package/dist/components/motion/date-range-picker/calendar-choices.js.map +1 -0
- package/dist/components/motion/date-range-picker/calendar-presence.d.ts +5 -0
- package/dist/components/motion/date-range-picker/calendar-presence.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/calendar-presence.js +14 -0
- package/dist/components/motion/date-range-picker/calendar-presence.js.map +1 -0
- package/dist/components/motion/date-range-picker/calendar.d.ts +8 -0
- package/dist/components/motion/date-range-picker/calendar.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/calendar.js +46 -0
- package/dist/components/motion/date-range-picker/calendar.js.map +1 -0
- package/dist/components/motion/date-range-picker/clear.d.ts +4 -0
- package/dist/components/motion/date-range-picker/clear.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/clear.js +23 -0
- package/dist/components/motion/date-range-picker/clear.js.map +1 -0
- package/dist/components/motion/date-range-picker/content.d.ts +7 -0
- package/dist/components/motion/date-range-picker/content.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/content.js +36 -0
- package/dist/components/motion/date-range-picker/content.js.map +1 -0
- package/dist/components/motion/date-range-picker/dropdown.d.ts +12 -0
- package/dist/components/motion/date-range-picker/dropdown.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/dropdown.js +26 -0
- package/dist/components/motion/date-range-picker/dropdown.js.map +1 -0
- package/dist/components/motion/date-range-picker/footer.d.ts +4 -0
- package/dist/components/motion/date-range-picker/footer.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/footer.js +20 -0
- package/dist/components/motion/date-range-picker/footer.js.map +1 -0
- package/dist/components/motion/date-range-picker/grid.d.ts +4 -0
- package/dist/components/motion/date-range-picker/grid.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/grid.js +132 -0
- package/dist/components/motion/date-range-picker/grid.js.map +1 -0
- package/dist/components/motion/date-range-picker/header.d.ts +4 -0
- package/dist/components/motion/date-range-picker/header.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/header.js +85 -0
- package/dist/components/motion/date-range-picker/header.js.map +1 -0
- package/dist/components/motion/date-range-picker/preset.d.ts +10 -0
- package/dist/components/motion/date-range-picker/preset.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/preset.js +25 -0
- package/dist/components/motion/date-range-picker/preset.js.map +1 -0
- package/dist/components/motion/date-range-picker/presets.d.ts +4 -0
- package/dist/components/motion/date-range-picker/presets.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/presets.js +22 -0
- package/dist/components/motion/date-range-picker/presets.js.map +1 -0
- package/dist/components/motion/date-range-picker/root.d.ts +4 -0
- package/dist/components/motion/date-range-picker/root.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/root.js +3 -0
- package/dist/components/motion/date-range-picker/selection.d.ts +4 -0
- package/dist/components/motion/date-range-picker/selection.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/selection.js +17 -0
- package/dist/components/motion/date-range-picker/selection.js.map +1 -0
- package/dist/components/motion/date-range-picker/summary.d.ts +4 -0
- package/dist/components/motion/date-range-picker/summary.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/summary.js +40 -0
- package/dist/components/motion/date-range-picker/summary.js.map +1 -0
- package/dist/components/motion/date-range-picker/trigger.d.ts +7 -0
- package/dist/components/motion/date-range-picker/trigger.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/trigger.js +74 -0
- package/dist/components/motion/date-range-picker/trigger.js.map +1 -0
- package/dist/components/motion/date-range-picker.d.ts +16 -116
- package/dist/components/motion/date-range-picker.d.ts.map +1 -1
- package/dist/components/motion/date-range-picker.js +14 -922
- package/dist/components/motion/date-range-picker.js.map +1 -1
- package/dist/components/motion/delete-button.d.ts +31 -0
- package/dist/components/motion/delete-button.d.ts.map +1 -0
- package/dist/components/motion/delete-button.js +263 -0
- package/dist/components/motion/delete-button.js.map +1 -0
- package/dist/components/motion/digit-swap.d.ts +3 -0
- package/dist/components/motion/digit-swap.d.ts.map +1 -1
- package/dist/components/motion/digit-swap.js.map +1 -1
- package/dist/components/motion/dock.d.ts +4 -0
- package/dist/components/motion/dock.d.ts.map +1 -1
- package/dist/components/motion/dock.js +2 -2
- package/dist/components/motion/dock.js.map +1 -1
- package/dist/components/motion/download-button.d.ts +29 -0
- package/dist/components/motion/download-button.d.ts.map +1 -0
- package/dist/components/motion/download-button.js +305 -0
- package/dist/components/motion/download-button.js.map +1 -0
- package/dist/components/motion/drawer.d.ts +9 -1
- package/dist/components/motion/drawer.d.ts.map +1 -1
- package/dist/components/motion/drawer.js +65 -15
- package/dist/components/motion/drawer.js.map +1 -1
- package/dist/components/motion/dropdown-menu/item-base.d.ts +37 -0
- package/dist/components/motion/dropdown-menu/item-base.d.ts.map +1 -0
- package/dist/components/motion/dropdown-menu/item-base.js +78 -0
- package/dist/components/motion/dropdown-menu/item-base.js.map +1 -0
- package/dist/components/motion/dropdown-menu/menu-panel.d.ts +31 -0
- package/dist/components/motion/dropdown-menu/menu-panel.d.ts.map +1 -0
- package/dist/components/motion/dropdown-menu/menu-panel.js +201 -0
- package/dist/components/motion/dropdown-menu/menu-panel.js.map +1 -0
- package/dist/components/motion/dropdown-menu.d.ts +30 -18
- package/dist/components/motion/dropdown-menu.d.ts.map +1 -1
- package/dist/components/motion/dropdown-menu.js +113 -421
- package/dist/components/motion/dropdown-menu.js.map +1 -1
- package/dist/components/motion/dynamic-island.d.ts +2 -0
- package/dist/components/motion/dynamic-island.d.ts.map +1 -1
- package/dist/components/motion/dynamic-island.js.map +1 -1
- package/dist/components/motion/expandable-action-bar.d.ts +28 -0
- package/dist/components/motion/expandable-action-bar.d.ts.map +1 -1
- package/dist/components/motion/expandable-action-bar.js +5 -14
- package/dist/components/motion/expandable-action-bar.js.map +1 -1
- package/dist/components/motion/expandable-control.d.ts +14 -0
- package/dist/components/motion/expandable-control.d.ts.map +1 -1
- package/dist/components/motion/expandable-control.js +1 -1
- package/dist/components/motion/expandable-control.js.map +1 -1
- package/dist/components/motion/expandable-tabs.d.ts +16 -1
- package/dist/components/motion/expandable-tabs.d.ts.map +1 -1
- package/dist/components/motion/expandable-tabs.js +3 -15
- package/dist/components/motion/expandable-tabs.js.map +1 -1
- package/dist/components/motion/expanding-arrow-button.d.ts +2 -0
- package/dist/components/motion/expanding-arrow-button.d.ts.map +1 -1
- package/dist/components/motion/expanding-arrow-button.js +3 -3
- package/dist/components/motion/expanding-arrow-button.js.map +1 -1
- package/dist/components/motion/feedback-widget.d.ts +6 -0
- package/dist/components/motion/feedback-widget.d.ts.map +1 -1
- package/dist/components/motion/feedback-widget.js +13 -29
- package/dist/components/motion/feedback-widget.js.map +1 -1
- package/dist/components/motion/file-tree.d.ts +24 -0
- package/dist/components/motion/file-tree.d.ts.map +1 -1
- package/dist/components/motion/file-tree.js +4 -4
- package/dist/components/motion/file-tree.js.map +1 -1
- package/dist/components/motion/file-upload.d.ts +34 -0
- package/dist/components/motion/file-upload.d.ts.map +1 -1
- package/dist/components/motion/file-upload.js +26 -17
- package/dist/components/motion/file-upload.js.map +1 -1
- package/dist/components/motion/follow-button.d.ts +31 -0
- package/dist/components/motion/follow-button.d.ts.map +1 -0
- package/dist/components/motion/follow-button.js +184 -0
- package/dist/components/motion/follow-button.js.map +1 -0
- package/dist/components/motion/hold-action-button.d.ts +7 -0
- package/dist/components/motion/hold-action-button.d.ts.map +1 -1
- package/dist/components/motion/hold-action-button.js +1 -1
- package/dist/components/motion/hold-action-button.js.map +1 -1
- package/dist/components/motion/infinite-masonry.d.ts +22 -0
- package/dist/components/motion/infinite-masonry.d.ts.map +1 -1
- package/dist/components/motion/infinite-masonry.js.map +1 -1
- package/dist/components/motion/input.d.ts +17 -0
- package/dist/components/motion/input.d.ts.map +1 -1
- package/dist/components/motion/input.js +2 -1
- package/dist/components/motion/input.js.map +1 -1
- package/dist/components/motion/knockout-bracket.d.ts +11 -4
- package/dist/components/motion/knockout-bracket.d.ts.map +1 -1
- package/dist/components/motion/knockout-bracket.js +30 -21
- package/dist/components/motion/knockout-bracket.js.map +1 -1
- package/dist/components/motion/knockout-wheel.d.ts +9 -3
- package/dist/components/motion/knockout-wheel.d.ts.map +1 -1
- package/dist/components/motion/knockout-wheel.js +5 -5
- package/dist/components/motion/knockout-wheel.js.map +1 -1
- package/dist/components/motion/like-button.d.ts +26 -0
- package/dist/components/motion/like-button.d.ts.map +1 -0
- package/dist/components/motion/like-button.js +128 -0
- package/dist/components/motion/like-button.js.map +1 -0
- package/dist/components/motion/loader.d.ts +1 -0
- package/dist/components/motion/loader.d.ts.map +1 -1
- package/dist/components/motion/loader.js.map +1 -1
- package/dist/components/motion/lock-toggle.d.ts +29 -0
- package/dist/components/motion/lock-toggle.d.ts.map +1 -0
- package/dist/components/motion/lock-toggle.js +252 -0
- package/dist/components/motion/lock-toggle.js.map +1 -0
- package/dist/components/motion/marquee.d.ts +6 -0
- package/dist/components/motion/marquee.d.ts.map +1 -1
- package/dist/components/motion/marquee.js.map +1 -1
- package/dist/components/motion/menu/menu-item-highlight.d.ts +16 -0
- package/dist/components/motion/menu/menu-item-highlight.d.ts.map +1 -0
- package/dist/components/motion/menu/menu-item-highlight.js +20 -0
- package/dist/components/motion/menu/menu-item-highlight.js.map +1 -0
- package/dist/components/motion/message-status.d.ts +26 -0
- package/dist/components/motion/message-status.d.ts.map +1 -0
- package/dist/components/motion/message-status.js +198 -0
- package/dist/components/motion/message-status.js.map +1 -0
- package/dist/components/motion/mines.d.ts +2 -1
- package/dist/components/motion/mines.d.ts.map +1 -1
- package/dist/components/motion/mines.js +3 -3
- package/dist/components/motion/mines.js.map +1 -1
- package/dist/components/motion/morphing-lightbox.d.ts +16 -0
- package/dist/components/motion/morphing-lightbox.d.ts.map +1 -1
- package/dist/components/motion/morphing-lightbox.js +3 -3
- package/dist/components/motion/morphing-lightbox.js.map +1 -1
- package/dist/components/motion/morphing-modal.d.ts +2 -0
- package/dist/components/motion/morphing-modal.d.ts.map +1 -1
- package/dist/components/motion/morphing-modal.js +14 -13
- package/dist/components/motion/morphing-modal.js.map +1 -1
- package/dist/components/motion/morphing-search-chips.d.ts +12 -0
- package/dist/components/motion/morphing-search-chips.d.ts.map +1 -1
- package/dist/components/motion/morphing-search-chips.js +6 -16
- package/dist/components/motion/morphing-search-chips.js.map +1 -1
- package/dist/components/motion/morphing-search.d.ts +16 -0
- package/dist/components/motion/morphing-search.d.ts.map +1 -1
- package/dist/components/motion/morphing-search.js +9 -13
- package/dist/components/motion/morphing-search.js.map +1 -1
- package/dist/components/motion/morphing-tabs.d.ts +20 -0
- package/dist/components/motion/morphing-tabs.d.ts.map +1 -1
- package/dist/components/motion/morphing-tabs.js.map +1 -1
- package/dist/components/motion/multi-select/content.d.ts +3 -10
- package/dist/components/motion/multi-select/content.d.ts.map +1 -1
- package/dist/components/motion/multi-select/content.js +14 -80
- package/dist/components/motion/multi-select/content.js.map +1 -1
- package/dist/components/motion/multi-select/context.d.ts +2 -2
- package/dist/components/motion/multi-select/context.js +1 -1
- package/dist/components/motion/multi-select/list.d.ts +12 -0
- package/dist/components/motion/multi-select/list.d.ts.map +1 -1
- package/dist/components/motion/multi-select/list.js +5 -5
- package/dist/components/motion/multi-select/list.js.map +1 -1
- package/dist/components/motion/multi-select/trigger.d.ts +6 -0
- package/dist/components/motion/multi-select/trigger.d.ts.map +1 -1
- package/dist/components/motion/multi-select/trigger.js +5 -4
- package/dist/components/motion/multi-select/trigger.js.map +1 -1
- package/dist/components/motion/{multi-select/index.d.ts → multi-select.d.ts} +4 -4
- package/dist/components/motion/{multi-select/index.js → multi-select.js} +4 -4
- package/dist/components/motion/mute-toggle.d.ts +25 -0
- package/dist/components/motion/mute-toggle.d.ts.map +1 -0
- package/dist/components/motion/mute-toggle.js +221 -0
- package/dist/components/motion/mute-toggle.js.map +1 -0
- package/dist/components/motion/not-found/glitch.js +2 -2
- package/dist/components/motion/not-found/glitch.js.map +1 -1
- package/dist/components/motion/not-found/magnetic.js +2 -2
- package/dist/components/motion/not-found/magnetic.js.map +1 -1
- package/dist/components/motion/not-found/shared.d.ts +7 -0
- package/dist/components/motion/not-found/shared.d.ts.map +1 -1
- package/dist/components/motion/not-found/shared.js.map +1 -1
- package/dist/components/motion/not-found/spotlight.js +4 -4
- package/dist/components/motion/not-found/spotlight.js.map +1 -1
- package/dist/components/motion/not-found/stacked.js +2 -2
- package/dist/components/motion/not-found/stacked.js.map +1 -1
- package/dist/components/motion/not-found/terminal.d.ts.map +1 -1
- package/dist/components/motion/not-found/terminal.js +1 -1
- package/dist/components/motion/not-found/terminal.js.map +1 -1
- package/dist/components/motion/notification-bell.d.ts +29 -0
- package/dist/components/motion/notification-bell.d.ts.map +1 -0
- package/dist/components/motion/notification-bell.js +274 -0
- package/dist/components/motion/notification-bell.js.map +1 -0
- package/dist/components/motion/notification-stack.d.ts +23 -0
- package/dist/components/motion/notification-stack.d.ts.map +1 -1
- package/dist/components/motion/notification-stack.js.map +1 -1
- package/dist/components/motion/number-ticker.d.ts +6 -1
- package/dist/components/motion/number-ticker.d.ts.map +1 -1
- package/dist/components/motion/number-ticker.js.map +1 -1
- package/dist/components/motion/otp-input.d.ts +6 -0
- package/dist/components/motion/otp-input.d.ts.map +1 -1
- package/dist/components/motion/otp-input.js +3 -7
- package/dist/components/motion/otp-input.js.map +1 -1
- package/dist/components/motion/overflow-actions.d.ts +26 -0
- package/dist/components/motion/overflow-actions.d.ts.map +1 -1
- package/dist/components/motion/overflow-actions.js.map +1 -1
- package/dist/components/motion/pagination.d.ts +4 -0
- package/dist/components/motion/pagination.d.ts.map +1 -1
- package/dist/components/motion/pagination.js +2 -2
- package/dist/components/motion/pagination.js.map +1 -1
- package/dist/components/motion/parallax.d.ts +2 -0
- package/dist/components/motion/parallax.d.ts.map +1 -1
- package/dist/components/motion/parallax.js.map +1 -1
- package/dist/components/motion/plinko.d.ts +1 -0
- package/dist/components/motion/plinko.d.ts.map +1 -1
- package/dist/components/motion/plinko.js +2 -2
- package/dist/components/motion/plinko.js.map +1 -1
- package/dist/components/motion/poll-vote.d.ts +39 -0
- package/dist/components/motion/poll-vote.d.ts.map +1 -0
- package/dist/components/motion/poll-vote.js +209 -0
- package/dist/components/motion/poll-vote.js.map +1 -0
- package/dist/components/motion/popover-morph.d.ts +2 -50
- package/dist/components/motion/popover-morph.js +4 -24
- package/dist/components/motion/popover-morph.js.map +1 -1
- package/dist/components/motion/popover.d.ts +5 -2
- package/dist/components/motion/popover.d.ts.map +1 -1
- package/dist/components/motion/popover.js +151 -99
- package/dist/components/motion/popover.js.map +1 -1
- package/dist/components/motion/prediction-market-card.d.ts +15 -0
- package/dist/components/motion/prediction-market-card.d.ts.map +1 -1
- package/dist/components/motion/prediction-market-card.js +8 -8
- package/dist/components/motion/prediction-market-card.js.map +1 -1
- package/dist/components/motion/prediction-market.d.ts +34 -0
- package/dist/components/motion/prediction-market.d.ts.map +1 -1
- package/dist/components/motion/prediction-market.js +10 -10
- package/dist/components/motion/prediction-market.js.map +1 -1
- package/dist/components/motion/preview-rail.d.ts +23 -0
- package/dist/components/motion/preview-rail.d.ts.map +1 -1
- package/dist/components/motion/preview-rail.js.map +1 -1
- package/dist/components/motion/project-folder.d.ts +16 -0
- package/dist/components/motion/project-folder.d.ts.map +1 -1
- package/dist/components/motion/project-folder.js +10 -40
- package/dist/components/motion/project-folder.js.map +1 -1
- package/dist/components/motion/pull-to-refresh.d.ts +8 -0
- package/dist/components/motion/pull-to-refresh.d.ts.map +1 -1
- package/dist/components/motion/pull-to-refresh.js +1 -1
- package/dist/components/motion/pull-to-refresh.js.map +1 -1
- package/dist/components/motion/radio.d.ts +10 -0
- package/dist/components/motion/radio.d.ts.map +1 -1
- package/dist/components/motion/radio.js.map +1 -1
- package/dist/components/motion/range-slider-bubble.d.ts +1 -0
- package/dist/components/motion/range-slider-bubble.d.ts.map +1 -1
- package/dist/components/motion/range-slider-bubble.js +4 -4
- package/dist/components/motion/range-slider-bubble.js.map +1 -1
- package/dist/components/motion/range-slider-fluid.d.ts +1 -0
- package/dist/components/motion/range-slider-fluid.d.ts.map +1 -1
- package/dist/components/motion/range-slider-fluid.js +2 -2
- package/dist/components/motion/range-slider-fluid.js.map +1 -1
- package/dist/components/motion/range-slider-inline.d.ts +1 -0
- package/dist/components/motion/range-slider-inline.d.ts.map +1 -1
- package/dist/components/motion/range-slider-inline.js +1 -1
- package/dist/components/motion/range-slider-inline.js.map +1 -1
- package/dist/components/motion/range-slider-ruler.d.ts +1 -0
- package/dist/components/motion/range-slider-ruler.d.ts.map +1 -1
- package/dist/components/motion/range-slider-ruler.js +3 -3
- package/dist/components/motion/range-slider-ruler.js.map +1 -1
- package/dist/components/motion/range-slider-wave.d.ts +1 -0
- package/dist/components/motion/range-slider-wave.d.ts.map +1 -1
- package/dist/components/motion/range-slider-wave.js +3 -3
- package/dist/components/motion/range-slider-wave.js.map +1 -1
- package/dist/components/motion/range-slider.d.ts +1 -0
- package/dist/components/motion/range-slider.d.ts.map +1 -1
- package/dist/components/motion/range-slider.js +2 -2
- package/dist/components/motion/range-slider.js.map +1 -1
- package/dist/components/motion/reaction-picker.d.ts +50 -0
- package/dist/components/motion/reaction-picker.d.ts.map +1 -0
- package/dist/components/motion/reaction-picker.js +516 -0
- package/dist/components/motion/reaction-picker.js.map +1 -0
- package/dist/components/motion/refresh-button.d.ts +24 -0
- package/dist/components/motion/refresh-button.d.ts.map +1 -0
- package/dist/components/motion/refresh-button.js +267 -0
- package/dist/components/motion/refresh-button.js.map +1 -0
- package/dist/components/motion/scroll-progress.d.ts +2 -0
- package/dist/components/motion/scroll-progress.d.ts.map +1 -1
- package/dist/components/motion/scroll-progress.js +1 -1
- package/dist/components/motion/scroll-progress.js.map +1 -1
- package/dist/components/motion/scroll-reveal.d.ts +2 -0
- package/dist/components/motion/scroll-reveal.d.ts.map +1 -1
- package/dist/components/motion/scroll-reveal.js.map +1 -1
- package/dist/components/motion/scroll-to.d.ts +2 -1
- package/dist/components/motion/scroll-to.d.ts.map +1 -1
- package/dist/components/motion/scroll-to.js +1 -1
- package/dist/components/motion/scroll-to.js.map +1 -1
- package/dist/components/motion/select-morph.d.ts +16 -2
- package/dist/components/motion/select-morph.d.ts.map +1 -1
- package/dist/components/motion/select-morph.js +148 -85
- package/dist/components/motion/select-morph.js.map +1 -1
- package/dist/components/motion/select.d.ts +16 -2
- package/dist/components/motion/select.d.ts.map +1 -1
- package/dist/components/motion/select.js +150 -61
- package/dist/components/motion/select.js.map +1 -1
- package/dist/components/motion/send-button.d.ts +23 -0
- package/dist/components/motion/send-button.d.ts.map +1 -0
- package/dist/components/motion/send-button.js +273 -0
- package/dist/components/motion/send-button.js.map +1 -0
- package/dist/components/motion/share-button.d.ts +45 -0
- package/dist/components/motion/share-button.d.ts.map +1 -0
- package/dist/components/motion/share-button.js +324 -0
- package/dist/components/motion/share-button.js.map +1 -0
- package/dist/components/motion/signup-form.d.ts +24 -2
- package/dist/components/motion/signup-form.d.ts.map +1 -1
- package/dist/components/motion/signup-form.js +3 -3
- package/dist/components/motion/signup-form.js.map +1 -1
- package/dist/components/motion/slide-action-button.d.ts +6 -0
- package/dist/components/motion/slide-action-button.d.ts.map +1 -1
- package/dist/components/motion/slide-action-button.js.map +1 -1
- package/dist/components/motion/slide-game.d.ts +2 -1
- package/dist/components/motion/slide-game.d.ts.map +1 -1
- package/dist/components/motion/slide-game.js +9 -9
- package/dist/components/motion/slide-game.js.map +1 -1
- package/dist/components/motion/smooth-scroll.d.ts +3 -1
- package/dist/components/motion/smooth-scroll.d.ts.map +1 -1
- package/dist/components/motion/smooth-scroll.js.map +1 -1
- package/dist/components/motion/sortable-list.d.ts +8 -0
- package/dist/components/motion/sortable-list.d.ts.map +1 -1
- package/dist/components/motion/sortable-list.js +2 -2
- package/dist/components/motion/sortable-list.js.map +1 -1
- package/dist/components/motion/star-rating.d.ts +35 -0
- package/dist/components/motion/star-rating.d.ts.map +1 -0
- package/dist/components/motion/star-rating.js +253 -0
- package/dist/components/motion/star-rating.js.map +1 -0
- package/dist/components/motion/status-icon.d.ts +31 -0
- package/dist/components/motion/status-icon.d.ts.map +1 -0
- package/dist/components/motion/status-icon.js +259 -0
- package/dist/components/motion/status-icon.js.map +1 -0
- package/dist/components/motion/swap/controls.d.ts +1 -1
- package/dist/components/motion/swap/controls.d.ts.map +1 -1
- package/dist/components/motion/swap/controls.js +20 -20
- package/dist/components/motion/swap/controls.js.map +1 -1
- package/dist/components/motion/swap/field.d.ts +1 -1
- package/dist/components/motion/swap/field.js +8 -7
- package/dist/components/motion/swap/field.js.map +1 -1
- package/dist/components/motion/swap/quote-row.d.ts +1 -1
- package/dist/components/motion/swap/quote-row.js +1 -1
- package/dist/components/motion/swap/quote-row.js.map +1 -1
- package/dist/components/motion/swap/token-badges.d.ts +1 -1
- package/dist/components/motion/swap/token-badges.js +5 -6
- package/dist/components/motion/swap/token-badges.js.map +1 -1
- package/dist/components/motion/swap/token-picker.d.ts +1 -1
- package/dist/components/motion/swap/token-picker.d.ts.map +1 -1
- package/dist/components/motion/swap/token-picker.js +21 -18
- package/dist/components/motion/swap/token-picker.js.map +1 -1
- package/dist/components/motion/swap.d.ts +7 -2
- package/dist/components/motion/swap.d.ts.map +1 -1
- package/dist/components/motion/swap.js +1 -1
- package/dist/components/motion/swap.js.map +1 -1
- package/dist/components/motion/swipeable-list.d.ts +38 -0
- package/dist/components/motion/swipeable-list.d.ts.map +1 -1
- package/dist/components/motion/swipeable-list.js.map +1 -1
- package/dist/components/motion/switch.d.ts +9 -1
- package/dist/components/motion/switch.d.ts.map +1 -1
- package/dist/components/motion/switch.js +11 -2
- package/dist/components/motion/switch.js.map +1 -1
- package/dist/components/motion/table/skeleton-rows.d.ts +1 -1
- package/dist/components/motion/table/table-header.d.ts +1 -1
- package/dist/components/motion/table/table-menu.d.ts.map +1 -1
- package/dist/components/motion/table/table-menu.js +15 -15
- package/dist/components/motion/table/table-menu.js.map +1 -1
- package/dist/components/motion/{table/index.d.ts → table.d.ts} +3 -3
- package/dist/components/motion/table.d.ts.map +1 -0
- package/dist/components/motion/{table/index.js → table.js} +10 -10
- package/dist/components/motion/table.js.map +1 -0
- package/dist/components/motion/tabs.d.ts +16 -4
- package/dist/components/motion/tabs.d.ts.map +1 -1
- package/dist/components/motion/tabs.js +23 -10
- package/dist/components/motion/tabs.js.map +1 -1
- package/dist/components/motion/text-cascade.d.ts +2 -1
- package/dist/components/motion/text-cascade.d.ts.map +1 -1
- package/dist/components/motion/text-cascade.js +1 -1
- package/dist/components/motion/text-cascade.js.map +1 -1
- package/dist/components/motion/text-morph.d.ts +16 -0
- package/dist/components/motion/text-morph.d.ts.map +1 -0
- package/dist/components/motion/text-morph.js +239 -0
- package/dist/components/motion/text-morph.js.map +1 -0
- package/dist/components/motion/text-reveal.d.ts +11 -0
- package/dist/components/motion/text-reveal.d.ts.map +1 -1
- package/dist/components/motion/text-reveal.js +1 -1
- package/dist/components/motion/text-reveal.js.map +1 -1
- package/dist/components/motion/text-scramble.d.ts +2 -0
- package/dist/components/motion/text-scramble.d.ts.map +1 -1
- package/dist/components/motion/text-scramble.js.map +1 -1
- package/dist/components/motion/text-shimmer.d.ts +3 -0
- package/dist/components/motion/text-shimmer.d.ts.map +1 -1
- package/dist/components/motion/text-shimmer.js.map +1 -1
- package/dist/components/motion/theme-toggle.d.ts +3 -0
- package/dist/components/motion/theme-toggle.d.ts.map +1 -1
- package/dist/components/motion/theme-toggle.js +4 -3
- package/dist/components/motion/theme-toggle.js.map +1 -1
- package/dist/components/motion/tilt-card.d.ts +3 -0
- package/dist/components/motion/tilt-card.d.ts.map +1 -1
- package/dist/components/motion/tilt-card.js.map +1 -1
- package/dist/components/motion/timeline.d.ts +7 -0
- package/dist/components/motion/timeline.d.ts.map +1 -1
- package/dist/components/motion/timeline.js.map +1 -1
- package/dist/components/motion/tooltip/positioner.d.ts +1 -1
- package/dist/components/motion/tooltip/positioner.js +1 -1
- package/dist/components/motion/tooltip-surface.d.ts +6 -1
- package/dist/components/motion/tooltip-surface.d.ts.map +1 -1
- package/dist/components/motion/tooltip-surface.js +34 -24
- package/dist/components/motion/tooltip-surface.js.map +1 -1
- package/dist/components/motion/tooltip.d.ts +7 -1
- package/dist/components/motion/tooltip.d.ts.map +1 -1
- package/dist/components/motion/tooltip.js +1 -1
- package/dist/components/motion/upvote-button.d.ts +30 -0
- package/dist/components/motion/upvote-button.d.ts.map +1 -0
- package/dist/components/motion/upvote-button.js +144 -0
- package/dist/components/motion/upvote-button.js.map +1 -0
- package/dist/components/motion/wallet-card/account-avatar.d.ts +1 -1
- package/dist/components/motion/wallet-card/account-switcher.d.ts +2 -2
- package/dist/components/motion/wallet-card/account-switcher.js +7 -7
- package/dist/components/motion/wallet-card/account-switcher.js.map +1 -1
- package/dist/components/motion/wallet-card/balance-delta.js +1 -1
- package/dist/components/motion/wallet-card/balance-delta.js.map +1 -1
- package/dist/components/motion/wallet-card/copy-button.js +1 -1
- package/dist/components/motion/wallet-card/copy-button.js.map +1 -1
- package/dist/components/motion/wallet-card/search-bar.d.ts +1 -1
- package/dist/components/motion/wallet-card/search-bar.js +8 -8
- package/dist/components/motion/wallet-card/search-bar.js.map +1 -1
- package/dist/components/motion/{wallet-card/index.d.ts → wallet-card.d.ts} +4 -4
- package/dist/components/motion/wallet-card.d.ts.map +1 -0
- package/dist/components/motion/{wallet-card/index.js → wallet-card.js} +11 -11
- package/dist/components/motion/wallet-card.js.map +1 -0
- package/dist/components/motion/wave-reveal.d.ts +25 -0
- package/dist/components/motion/wave-reveal.d.ts.map +1 -0
- package/dist/components/motion/wave-reveal.js +630 -0
- package/dist/components/motion/wave-reveal.js.map +1 -0
- package/dist/components/motion/wheel-picker.d.ts +7 -0
- package/dist/components/motion/wheel-picker.d.ts.map +1 -1
- package/dist/components/motion/wheel-picker.js +12 -2
- package/dist/components/motion/wheel-picker.js.map +1 -1
- package/dist/components/reui/alert.d.ts +1 -1
- package/dist/components/reui/autocomplete.d.ts +1 -1
- package/dist/components/reui/badge.d.ts +2 -2
- package/dist/components/reui/color-picker.js +1 -1
- package/dist/components/reui/color-picker.js.map +1 -1
- package/dist/components/reui/file-type.d.ts +1 -1
- package/dist/components/reui/filters/filters-advanced.js.map +1 -1
- package/dist/components/reui/frame.d.ts +2 -2
- package/dist/components/reui/frame.js +1 -1
- package/dist/components/reui/frame.js.map +1 -1
- package/dist/components/reui/icon-tile.d.ts +2 -2
- package/dist/components/reui/number-field.d.ts +3 -3
- package/dist/components/reui/rating.d.ts +1 -1
- package/dist/components/ui/attachment.d.ts +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/bubble.d.ts +1 -1
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/calendar.js +1 -1
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/card.js +1 -1
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/combobox.js +2 -2
- package/dist/components/ui/combobox.js.map +1 -1
- package/dist/components/ui/empty.d.ts +1 -1
- package/dist/components/ui/input-group.d.ts +2 -2
- package/dist/components/ui/item.d.ts +2 -2
- package/dist/components/ui/marker.d.ts +1 -1
- package/dist/components/ui/questionnaire.js +2 -2
- package/dist/components/ui/questionnaire.js.map +1 -1
- package/dist/components/ui/sidebar.d.ts +1 -1
- package/dist/components/ui/sidebar.js +1 -1
- package/dist/components/ui/sidebar.js.map +1 -1
- package/dist/components/ui/toggle-group.js +1 -1
- package/dist/components/ui/toggle-group.js.map +1 -1
- package/dist/components/ui/toggle.d.ts +1 -1
- package/dist/components/ui/trace.js +1 -1
- package/dist/components/ui/trace.js.map +1 -1
- package/dist/{constants-CggcOqef.js → constants-DfbfCDSg.js} +3 -6
- package/dist/constants-DfbfCDSg.js.map +1 -0
- package/dist/{context-BrGWrRwa.d.ts → context-4tt2I7Qm.d.ts} +14 -4
- package/dist/context-4tt2I7Qm.d.ts.map +1 -0
- package/dist/{context-DWHy9EUW.js → context-B3BNuwGu.js} +8 -25
- package/dist/context-B3BNuwGu.js.map +1 -0
- package/dist/{context-BEYROlTB.d.ts → context-BFNkGCGz.d.ts} +18 -14
- package/dist/context-BFNkGCGz.d.ts.map +1 -0
- package/dist/{context-r3QNWoPh.js → context-BG1Wzdnj.js} +6 -10
- package/dist/context-BG1Wzdnj.js.map +1 -0
- package/dist/{context-Dae38FV_.js → context-Bx-OaIL8.js} +5 -9
- package/dist/context-Bx-OaIL8.js.map +1 -0
- package/dist/context-C92iQeLO.js.map +1 -1
- package/dist/{context-CmexbpIK.js → context-C9LHO4MN.js} +12 -27
- package/dist/context-C9LHO4MN.js.map +1 -0
- package/dist/context-CHXHCbuu.js.map +1 -1
- package/dist/{context-C5DO1oe1.js → context-CIzAPhXA.js} +37 -99
- package/dist/context-CIzAPhXA.js.map +1 -0
- package/dist/{context-B5NItr9C.d.ts → context-CP3spicY.d.ts} +20 -15
- package/dist/context-CP3spicY.d.ts.map +1 -0
- package/dist/{context-CwSk1WZR.js → context-Cg1VelQJ.js} +9 -25
- package/dist/context-Cg1VelQJ.js.map +1 -0
- package/dist/{context-BpHX6J1T.js → context-DDoVOc0D.js} +8 -25
- package/dist/context-DDoVOc0D.js.map +1 -0
- package/dist/{context-C1Z_5vew.d.ts → context-DMIy-rFm.d.ts} +15 -4
- package/dist/context-DMIy-rFm.d.ts.map +1 -0
- package/dist/context-DR6jkfea.js +11 -0
- package/dist/context-DR6jkfea.js.map +1 -0
- package/dist/{context-BLjAwZ5V.js → context-DcJtX6ht.js} +18 -95
- package/dist/context-DcJtX6ht.js.map +1 -0
- package/dist/{context-Cr2SLhVi.js → context-Dg48xMuG.js} +3 -7
- package/dist/context-Dg48xMuG.js.map +1 -0
- package/dist/context-DnM-b9yO.js +23 -0
- package/dist/context-DnM-b9yO.js.map +1 -0
- package/dist/context-DtFeYksF.d.ts +28 -0
- package/dist/context-DtFeYksF.d.ts.map +1 -0
- package/dist/{context-C8M88I1F.js → context-cRAJSFxf.js} +4 -8
- package/dist/context-cRAJSFxf.js.map +1 -0
- package/dist/{context-CgRa89Bq.d.ts → context-jX-r_7EP.d.ts} +12 -7
- package/dist/context-jX-r_7EP.d.ts.map +1 -0
- package/dist/{copy-menu-BizTEv8v.js → copy-menu-Bgoo5oWq.js} +6 -6
- package/dist/copy-menu-Bgoo5oWq.js.map +1 -0
- package/dist/{crash-parts-Dg5WC8u4.js → crash-parts-BkrZ6iBE.js} +2 -2
- package/dist/crash-parts-BkrZ6iBE.js.map +1 -0
- package/dist/date-utils-DVDYcEA_.js +35 -0
- package/dist/date-utils-DVDYcEA_.js.map +1 -0
- package/dist/{ease-DnPhwGe6.d.ts → ease-D_-bhUDt.d.ts} +13 -6
- package/dist/ease-D_-bhUDt.d.ts.map +1 -0
- package/dist/formats-ColrL9Eg.js +58 -0
- package/dist/formats-ColrL9Eg.js.map +1 -0
- package/dist/{game-parts-hATtqY3s.d.ts → game-parts-B635BoSe.d.ts} +4 -4
- package/dist/{game-parts-hATtqY3s.d.ts.map → game-parts-B635BoSe.d.ts.map} +1 -1
- package/dist/hooks/use-controllable.d.ts +10 -0
- package/dist/hooks/use-controllable.d.ts.map +1 -0
- package/dist/hooks/use-controllable.js +39 -0
- package/dist/hooks/use-controllable.js.map +1 -0
- package/dist/hooks/use-copy.d.ts +16 -0
- package/dist/hooks/use-copy.d.ts.map +1 -0
- package/dist/hooks/use-copy.js +36 -0
- package/dist/hooks/use-copy.js.map +1 -0
- package/dist/hooks/use-dismiss.d.ts +17 -5
- package/dist/hooks/use-dismiss.d.ts.map +1 -1
- package/dist/hooks/use-dismiss.js +36 -24
- package/dist/hooks/use-dismiss.js.map +1 -1
- package/dist/hooks/use-focus-trap.d.ts +4 -3
- package/dist/hooks/use-focus-trap.d.ts.map +1 -1
- package/dist/hooks/use-focus-trap.js +25 -37
- package/dist/hooks/use-focus-trap.js.map +1 -1
- package/dist/hooks/use-highlighted-code.d.ts +1 -1
- package/dist/hooks/use-highlighted-code.d.ts.map +1 -1
- package/dist/hooks/use-hover-capable.d.ts +1 -1
- package/dist/hooks/use-hover-capable.js +1 -1
- package/dist/hooks/use-hover-capable.js.map +1 -1
- package/dist/hooks/use-hover-gesture.d.ts +5 -5
- package/dist/hooks/use-hover-gesture.js +5 -5
- package/dist/hooks/use-hover-gesture.js.map +1 -1
- package/dist/hooks/use-listbox.d.ts +1 -0
- package/dist/hooks/use-listbox.js +2 -1
- package/dist/hooks/use-listbox.js.map +1 -1
- package/dist/hooks/use-modal-scope.js +22 -26
- package/dist/hooks/use-modal-scope.js.map +1 -1
- package/dist/hooks/use-on-open.d.ts +3 -3
- package/dist/hooks/use-on-open.js +3 -3
- package/dist/hooks/use-on-open.js.map +1 -1
- package/dist/hooks/use-row-cursor.d.ts +2 -2
- package/dist/hooks/use-row-cursor.js +2 -2
- package/dist/hooks/use-row-cursor.js.map +1 -1
- package/dist/hooks/use-slider.d.ts +13 -3
- package/dist/hooks/use-slider.d.ts.map +1 -1
- package/dist/hooks/use-slider.js +23 -4
- package/dist/hooks/use-slider.js.map +1 -1
- package/dist/hooks/use-status-open.d.ts +26 -0
- package/dist/hooks/use-status-open.d.ts.map +1 -0
- package/dist/hooks/use-status-open.js +43 -0
- package/dist/hooks/use-status-open.js.map +1 -0
- package/dist/hooks/use-tap-gesture.d.ts +3 -3
- package/dist/hooks/use-tap-gesture.js +3 -3
- package/dist/hooks/use-tap-gesture.js.map +1 -1
- package/dist/lib/audio-context.d.ts +27 -1
- package/dist/lib/audio-context.d.ts.map +1 -1
- package/dist/lib/audio-context.js +61 -2
- package/dist/lib/audio-context.js.map +1 -1
- package/dist/lib/book-sounds.d.ts.map +1 -1
- package/dist/lib/book-sounds.js +8 -9
- package/dist/lib/book-sounds.js.map +1 -1
- package/dist/lib/color.d.ts +29 -0
- package/dist/lib/color.d.ts.map +1 -0
- package/dist/lib/color.js +93 -0
- package/dist/lib/color.js.map +1 -0
- package/dist/lib/command-search.d.ts +7 -1
- package/dist/lib/command-search.d.ts.map +1 -1
- package/dist/lib/command-search.js +42 -19
- package/dist/lib/command-search.js.map +1 -1
- package/dist/lib/ease.d.ts +2 -2
- package/dist/lib/ease.js +12 -5
- package/dist/lib/ease.js.map +1 -1
- package/dist/lib/focusable.d.ts +10 -0
- package/dist/lib/focusable.d.ts.map +1 -1
- package/dist/lib/focusable.js +31 -1
- package/dist/lib/focusable.js.map +1 -1
- package/dist/lib/game-sounds.d.ts.map +1 -1
- package/dist/lib/game-sounds.js +7 -14
- package/dist/lib/game-sounds.js.map +1 -1
- package/dist/lib/layers.d.ts +24 -0
- package/dist/lib/layers.d.ts.map +1 -0
- package/dist/lib/layers.js +47 -0
- package/dist/lib/layers.js.map +1 -0
- package/dist/lib/merge-refs.d.ts +6 -0
- package/dist/lib/merge-refs.d.ts.map +1 -0
- package/dist/lib/merge-refs.js +15 -0
- package/dist/lib/merge-refs.js.map +1 -0
- package/dist/lib/presence-gate.d.ts +2 -2
- package/dist/lib/presence-gate.js.map +1 -1
- package/dist/lib/scroll-lock.d.ts +13 -0
- package/dist/lib/scroll-lock.d.ts.map +1 -0
- package/dist/lib/scroll-lock.js +59 -0
- package/dist/lib/scroll-lock.js.map +1 -0
- package/dist/lib/sound.d.ts +30 -0
- package/dist/lib/sound.d.ts.map +1 -0
- package/dist/lib/sound.js +95 -0
- package/dist/lib/sound.js.map +1 -0
- package/dist/lib/sounds/bell.d.ts +4 -0
- package/dist/lib/sounds/bell.d.ts.map +1 -0
- package/dist/lib/sounds/bell.js +36 -0
- package/dist/lib/sounds/bell.js.map +1 -0
- package/dist/lib/sounds/bubble.d.ts +4 -0
- package/dist/lib/sounds/bubble.d.ts.map +1 -0
- package/dist/lib/sounds/bubble.js +27 -0
- package/dist/lib/sounds/bubble.js.map +1 -0
- package/dist/lib/sounds/burst.d.ts +4 -0
- package/dist/lib/sounds/burst.d.ts.map +1 -0
- package/dist/lib/sounds/burst.js +45 -0
- package/dist/lib/sounds/burst.js.map +1 -0
- package/dist/lib/sounds/buzz.d.ts +4 -0
- package/dist/lib/sounds/buzz.d.ts.map +1 -0
- package/dist/lib/sounds/buzz.js +26 -0
- package/dist/lib/sounds/buzz.js.map +1 -0
- package/dist/lib/sounds/camera.d.ts +4 -0
- package/dist/lib/sounds/camera.d.ts.map +1 -0
- package/dist/lib/sounds/camera.js +40 -0
- package/dist/lib/sounds/camera.js.map +1 -0
- package/dist/lib/sounds/check.d.ts +4 -0
- package/dist/lib/sounds/check.d.ts.map +1 -0
- package/dist/lib/sounds/check.js +40 -0
- package/dist/lib/sounds/check.js.map +1 -0
- package/dist/lib/sounds/chime.d.ts +4 -0
- package/dist/lib/sounds/chime.d.ts.map +1 -0
- package/dist/lib/sounds/chime.js +33 -0
- package/dist/lib/sounds/chime.js.map +1 -0
- package/dist/lib/sounds/close.d.ts +4 -0
- package/dist/lib/sounds/close.d.ts.map +1 -0
- package/dist/lib/sounds/close.js +36 -0
- package/dist/lib/sounds/close.js.map +1 -0
- package/dist/lib/sounds/coin.d.ts +4 -0
- package/dist/lib/sounds/coin.d.ts.map +1 -0
- package/dist/lib/sounds/coin.js +31 -0
- package/dist/lib/sounds/coin.js.map +1 -0
- package/dist/lib/sounds/collapse.d.ts +4 -0
- package/dist/lib/sounds/collapse.d.ts.map +1 -0
- package/dist/lib/sounds/collapse.js +41 -0
- package/dist/lib/sounds/collapse.js.map +1 -0
- package/dist/lib/sounds/connect.d.ts +4 -0
- package/dist/lib/sounds/connect.d.ts.map +1 -0
- package/dist/lib/sounds/connect.js +39 -0
- package/dist/lib/sounds/connect.js.map +1 -0
- package/dist/lib/sounds/copy.d.ts +4 -0
- package/dist/lib/sounds/copy.d.ts.map +1 -0
- package/dist/lib/sounds/copy.js +39 -0
- package/dist/lib/sounds/copy.js.map +1 -0
- package/dist/lib/sounds/delete.d.ts +4 -0
- package/dist/lib/sounds/delete.d.ts.map +1 -0
- package/dist/lib/sounds/delete.js +39 -0
- package/dist/lib/sounds/delete.js.map +1 -0
- package/dist/lib/sounds/disconnect.d.ts +4 -0
- package/dist/lib/sounds/disconnect.d.ts.map +1 -0
- package/dist/lib/sounds/disconnect.js +39 -0
- package/dist/lib/sounds/disconnect.js.map +1 -0
- package/dist/lib/sounds/dismiss.d.ts +4 -0
- package/dist/lib/sounds/dismiss.d.ts.map +1 -0
- package/dist/lib/sounds/dismiss.js +27 -0
- package/dist/lib/sounds/dismiss.js.map +1 -0
- package/dist/lib/sounds/dock.d.ts +4 -0
- package/dist/lib/sounds/dock.d.ts.map +1 -0
- package/dist/lib/sounds/dock.js +32 -0
- package/dist/lib/sounds/dock.js.map +1 -0
- package/dist/lib/sounds/drop.d.ts +4 -0
- package/dist/lib/sounds/drop.d.ts.map +1 -0
- package/dist/lib/sounds/drop.js +48 -0
- package/dist/lib/sounds/drop.js.map +1 -0
- package/dist/lib/sounds/engine.d.ts +142 -0
- package/dist/lib/sounds/engine.d.ts.map +1 -0
- package/dist/lib/sounds/engine.js +210 -0
- package/dist/lib/sounds/engine.js.map +1 -0
- package/dist/lib/sounds/error.d.ts +4 -0
- package/dist/lib/sounds/error.d.ts.map +1 -0
- package/dist/lib/sounds/error.js +51 -0
- package/dist/lib/sounds/error.js.map +1 -0
- package/dist/lib/sounds/expand.d.ts +4 -0
- package/dist/lib/sounds/expand.d.ts.map +1 -0
- package/dist/lib/sounds/expand.js +28 -0
- package/dist/lib/sounds/expand.js.map +1 -0
- package/dist/lib/sounds/heart.d.ts +4 -0
- package/dist/lib/sounds/heart.d.ts.map +1 -0
- package/dist/lib/sounds/heart.js +39 -0
- package/dist/lib/sounds/heart.js.map +1 -0
- package/dist/lib/sounds/lift.d.ts +4 -0
- package/dist/lib/sounds/lift.d.ts.map +1 -0
- package/dist/lib/sounds/lift.js +34 -0
- package/dist/lib/sounds/lift.js.map +1 -0
- package/dist/lib/sounds/lock.d.ts +4 -0
- package/dist/lib/sounds/lock.d.ts.map +1 -0
- package/dist/lib/sounds/lock.js +32 -0
- package/dist/lib/sounds/lock.js.map +1 -0
- package/dist/lib/sounds/navigate.d.ts +4 -0
- package/dist/lib/sounds/navigate.d.ts.map +1 -0
- package/dist/lib/sounds/navigate.js +36 -0
- package/dist/lib/sounds/navigate.js.map +1 -0
- package/dist/lib/sounds/notify.d.ts +4 -0
- package/dist/lib/sounds/notify.d.ts.map +1 -0
- package/dist/lib/sounds/notify.js +31 -0
- package/dist/lib/sounds/notify.js.map +1 -0
- package/dist/lib/sounds/open.d.ts +4 -0
- package/dist/lib/sounds/open.d.ts.map +1 -0
- package/dist/lib/sounds/open.js +36 -0
- package/dist/lib/sounds/open.js.map +1 -0
- package/dist/lib/sounds/ping.d.ts +4 -0
- package/dist/lib/sounds/ping.d.ts.map +1 -0
- package/dist/lib/sounds/ping.js +30 -0
- package/dist/lib/sounds/ping.js.map +1 -0
- package/dist/lib/sounds/pop.d.ts +4 -0
- package/dist/lib/sounds/pop.d.ts.map +1 -0
- package/dist/lib/sounds/pop.js +27 -0
- package/dist/lib/sounds/pop.js.map +1 -0
- package/dist/lib/sounds/press.d.ts +4 -0
- package/dist/lib/sounds/press.d.ts.map +1 -0
- package/dist/lib/sounds/press.js +40 -0
- package/dist/lib/sounds/press.js.map +1 -0
- package/dist/lib/sounds/receive.d.ts +4 -0
- package/dist/lib/sounds/receive.d.ts.map +1 -0
- package/dist/lib/sounds/receive.js +39 -0
- package/dist/lib/sounds/receive.js.map +1 -0
- package/dist/lib/sounds/refresh.d.ts +4 -0
- package/dist/lib/sounds/refresh.d.ts.map +1 -0
- package/dist/lib/sounds/refresh.js +34 -0
- package/dist/lib/sounds/refresh.js.map +1 -0
- package/dist/lib/sounds/reveal.d.ts +4 -0
- package/dist/lib/sounds/reveal.d.ts.map +1 -0
- package/dist/lib/sounds/reveal.js +34 -0
- package/dist/lib/sounds/reveal.js.map +1 -0
- package/dist/lib/sounds/select.d.ts +4 -0
- package/dist/lib/sounds/select.d.ts.map +1 -0
- package/dist/lib/sounds/select.js +32 -0
- package/dist/lib/sounds/select.js.map +1 -0
- package/dist/lib/sounds/send.d.ts +4 -0
- package/dist/lib/sounds/send.d.ts.map +1 -0
- package/dist/lib/sounds/send.js +35 -0
- package/dist/lib/sounds/send.js.map +1 -0
- package/dist/lib/sounds/shutter.d.ts +4 -0
- package/dist/lib/sounds/shutter.d.ts.map +1 -0
- package/dist/lib/sounds/shutter.js +40 -0
- package/dist/lib/sounds/shutter.js.map +1 -0
- package/dist/lib/sounds/snap.d.ts +4 -0
- package/dist/lib/sounds/snap.d.ts.map +1 -0
- package/dist/lib/sounds/snap.js +33 -0
- package/dist/lib/sounds/snap.js.map +1 -0
- package/dist/lib/sounds/star.d.ts +4 -0
- package/dist/lib/sounds/star.d.ts.map +1 -0
- package/dist/lib/sounds/star.js +38 -0
- package/dist/lib/sounds/star.js.map +1 -0
- package/dist/lib/sounds/success.d.ts +4 -0
- package/dist/lib/sounds/success.d.ts.map +1 -0
- package/dist/lib/sounds/success.js +39 -0
- package/dist/lib/sounds/success.js.map +1 -0
- package/dist/lib/sounds/swipe.d.ts +4 -0
- package/dist/lib/sounds/swipe.d.ts.map +1 -0
- package/dist/lib/sounds/swipe.js +29 -0
- package/dist/lib/sounds/swipe.js.map +1 -0
- package/dist/lib/sounds/switch.d.ts +4 -0
- package/dist/lib/sounds/switch.d.ts.map +1 -0
- package/dist/lib/sounds/switch.js +40 -0
- package/dist/lib/sounds/switch.js.map +1 -0
- package/dist/lib/sounds/tap.d.ts +4 -0
- package/dist/lib/sounds/tap.d.ts.map +1 -0
- package/dist/lib/sounds/tap.js +33 -0
- package/dist/lib/sounds/tap.js.map +1 -0
- package/dist/lib/sounds/tick.d.ts +4 -0
- package/dist/lib/sounds/tick.d.ts.map +1 -0
- package/dist/lib/sounds/tick.js +26 -0
- package/dist/lib/sounds/tick.js.map +1 -0
- package/dist/lib/sounds/timer.d.ts +4 -0
- package/dist/lib/sounds/timer.d.ts.map +1 -0
- package/dist/lib/sounds/timer.js +26 -0
- package/dist/lib/sounds/timer.js.map +1 -0
- package/dist/lib/sounds/toggle.d.ts +6 -0
- package/dist/lib/sounds/toggle.d.ts.map +1 -0
- package/dist/lib/sounds/toggle.js +79 -0
- package/dist/lib/sounds/toggle.js.map +1 -0
- package/dist/lib/sounds/trash.d.ts +4 -0
- package/dist/lib/sounds/trash.d.ts.map +1 -0
- package/dist/lib/sounds/trash.js +40 -0
- package/dist/lib/sounds/trash.js.map +1 -0
- package/dist/lib/sounds/type.d.ts +4 -0
- package/dist/lib/sounds/type.d.ts.map +1 -0
- package/dist/lib/sounds/type.js +35 -0
- package/dist/lib/sounds/type.js.map +1 -0
- package/dist/lib/sounds/unlock.d.ts +4 -0
- package/dist/lib/sounds/unlock.d.ts.map +1 -0
- package/dist/lib/sounds/unlock.js +41 -0
- package/dist/lib/sounds/unlock.js.map +1 -0
- package/dist/lib/sounds/warning.d.ts +4 -0
- package/dist/lib/sounds/warning.d.ts.map +1 -0
- package/dist/lib/sounds/warning.js +29 -0
- package/dist/lib/sounds/warning.js.map +1 -0
- package/dist/lib/sounds/whisper.d.ts +4 -0
- package/dist/lib/sounds/whisper.d.ts.map +1 -0
- package/dist/lib/sounds/whisper.js +27 -0
- package/dist/lib/sounds/whisper.js.map +1 -0
- package/dist/lib/text-shimmer.d.ts +6 -0
- package/dist/lib/text-shimmer.d.ts.map +1 -1
- package/dist/lib/text-shimmer.js +7 -1
- package/dist/lib/text-shimmer.js.map +1 -1
- package/dist/lib/tick-sound.d.ts.map +1 -1
- package/dist/lib/tick-sound.js +8 -11
- package/dist/lib/tick-sound.js.map +1 -1
- package/dist/lib/touch.d.ts +10 -10
- package/dist/lib/touch.js +10 -10
- package/dist/lib/touch.js.map +1 -1
- package/dist/listbox-panel-BX74YCzI.d.ts +31 -0
- package/dist/listbox-panel-BX74YCzI.d.ts.map +1 -0
- package/dist/menu-button-CbEYps6k.d.ts +29 -0
- package/dist/menu-button-CbEYps6k.d.ts.map +1 -0
- package/dist/menu-sub-button-NgS4JryG.d.ts +25 -0
- package/dist/menu-sub-button-NgS4JryG.d.ts.map +1 -0
- package/dist/messages-D0lxgjNm.d.ts +31 -0
- package/dist/messages-D0lxgjNm.d.ts.map +1 -0
- package/dist/{model-Cqi9KKo1.d.ts → model-CHHE1lHQ.d.ts} +5 -1
- package/dist/{model-Cqi9KKo1.d.ts.map → model-CHHE1lHQ.d.ts.map} +1 -1
- package/dist/{model-DP6FsG__.d.ts → model-D6sI_4m9.d.ts} +5 -1
- package/dist/model-D6sI_4m9.d.ts.map +1 -0
- package/dist/{model-B_LLKNOs.d.ts → model-DUQnYLRU.d.ts} +3 -1
- package/dist/model-DUQnYLRU.d.ts.map +1 -0
- package/dist/{model-Cbzktxjx.d.ts → model-Dafi-gx6.d.ts} +2 -1
- package/dist/model-Dafi-gx6.d.ts.map +1 -0
- package/dist/motion-1TeD2tw9.js +67 -0
- package/dist/motion-1TeD2tw9.js.map +1 -0
- package/dist/placement-BRE79jXm.d.ts +4 -0
- package/dist/placement-BRE79jXm.d.ts.map +1 -0
- package/dist/placement-Cg-Y5tLI.js +74 -0
- package/dist/placement-Cg-Y5tLI.js.map +1 -0
- package/dist/{plot-B2aPWHib.js → plot-CSTtMo6j.js} +3 -3
- package/dist/{plot-B2aPWHib.js.map → plot-CSTtMo6j.js.map} +1 -1
- package/dist/popover-morph-CWb4N9ux.d.ts +55 -0
- package/dist/popover-morph-CWb4N9ux.d.ts.map +1 -0
- package/dist/{positioner-DY1vB4rF.js → positioner-CFR4mJg6.js} +112 -4
- package/dist/positioner-CFR4mJg6.js.map +1 -0
- package/dist/resource-row-PkgPS9Hk.js +290 -0
- package/dist/resource-row-PkgPS9Hk.js.map +1 -0
- package/dist/root-C1n8-uIA.js +420 -0
- package/dist/root-C1n8-uIA.js.map +1 -0
- package/dist/{use-inspection-DWk6TdY9.js → scale-JwdKsMkj.js} +2 -55
- package/dist/scale-JwdKsMkj.js.map +1 -0
- package/dist/theme.css +98 -4
- package/dist/{tooltip-UI0lMGya.d.ts → tooltip-CoAbjn9I.d.ts} +9 -1
- package/dist/tooltip-CoAbjn9I.d.ts.map +1 -0
- package/dist/{tooltip-CMtIWcUY.d.ts → tooltip-DI79u-1V.d.ts} +11 -2
- package/dist/tooltip-DI79u-1V.d.ts.map +1 -0
- package/dist/{tooltip-jQICwV_k.d.ts → tooltip-DPci40hM.d.ts} +9 -1
- package/dist/tooltip-DPci40hM.d.ts.map +1 -0
- package/dist/{tooltip-CJccRGy9.d.ts → tooltip-X7sMXf98.d.ts} +11 -2
- package/dist/tooltip-X7sMXf98.d.ts.map +1 -0
- package/dist/{tooltip-BUkacvMl.js → tooltip-gHv-6eOs.js} +54 -43
- package/dist/tooltip-gHv-6eOs.js.map +1 -0
- package/dist/{tooltip-DuPE_3Gi.d.ts → tooltip-gKOUHp_1.d.ts} +8 -1
- package/dist/tooltip-gKOUHp_1.d.ts.map +1 -0
- package/dist/types-BhZ0FwDi.d.ts +33 -0
- package/dist/types-BhZ0FwDi.d.ts.map +1 -0
- package/dist/types-BnHpfLje.d.ts +111 -0
- package/dist/types-BnHpfLje.d.ts.map +1 -0
- package/dist/types-COoUai3R.d.ts +64 -0
- package/dist/types-COoUai3R.d.ts.map +1 -0
- package/dist/{types-DJ8z6gW8.d.ts → types-CbBZy33k.d.ts} +3 -1
- package/dist/{types-DJ8z6gW8.d.ts.map → types-CbBZy33k.d.ts.map} +1 -1
- package/dist/{types-C_v1N4fH.d.ts → types-ClKnPGuP.d.ts} +18 -4
- package/dist/types-ClKnPGuP.d.ts.map +1 -0
- package/dist/types-DPKILbI9.d.ts +37 -0
- package/dist/types-DPKILbI9.d.ts.map +1 -0
- package/dist/types-Dbiy485_.d.ts +114 -0
- package/dist/types-Dbiy485_.d.ts.map +1 -0
- package/dist/types-DtUnNprK.d.ts +53 -0
- package/dist/types-DtUnNprK.d.ts.map +1 -0
- package/dist/{use-crash-game-DiGujbfH.d.ts → use-crash-game-C6JPLvAH.d.ts} +5 -2
- package/dist/{use-crash-game-DiGujbfH.d.ts.map → use-crash-game-C6JPLvAH.d.ts.map} +1 -1
- package/dist/use-filtered-options-3TcVsHzV.js +167 -0
- package/dist/use-filtered-options-3TcVsHzV.js.map +1 -0
- package/dist/use-filtered-options-BbXqmJmZ.d.ts +14 -0
- package/dist/use-filtered-options-BbXqmJmZ.d.ts.map +1 -0
- package/dist/use-inspection-LoyxxJk8.js +31 -0
- package/dist/use-inspection-LoyxxJk8.js.map +1 -0
- package/dist/use-menu-navigation-B17_iK_B.js +57 -0
- package/dist/use-menu-navigation-B17_iK_B.js.map +1 -0
- package/dist/{use-position-B1lYvN8D.d.ts → use-position-ac-sSZRY.d.ts} +3 -1
- package/dist/use-position-ac-sSZRY.d.ts.map +1 -0
- package/dist/use-width-DZex74TT.js +45 -0
- package/dist/use-width-DZex74TT.js.map +1 -0
- package/dist/utils-f7_cAAwc.js +55 -0
- package/dist/utils-f7_cAAwc.js.map +1 -0
- package/package.json +16 -16
- package/dist/components/agents/agent-activity/index.d.ts.map +0 -1
- package/dist/components/agents/agent-activity/index.js.map +0 -1
- package/dist/components/agents/approval-card/index.d.ts.map +0 -1
- package/dist/components/agents/approval-card/index.js.map +0 -1
- package/dist/components/motion/animated-sidebar.js.map +0 -1
- package/dist/components/motion/animated-toast-stack.d.ts.map +0 -1
- package/dist/components/motion/animated-toast-stack.js.map +0 -1
- package/dist/components/motion/availability-scheduler/index.d.ts.map +0 -1
- package/dist/components/motion/availability-scheduler/index.js.map +0 -1
- package/dist/components/motion/button/index.js +0 -6
- package/dist/components/motion/popover-morph.d.ts.map +0 -1
- package/dist/components/motion/table/index.d.ts.map +0 -1
- package/dist/components/motion/table/index.js.map +0 -1
- package/dist/components/motion/wallet-card/index.d.ts.map +0 -1
- package/dist/components/motion/wallet-card/index.js.map +0 -1
- package/dist/constants-CggcOqef.js.map +0 -1
- package/dist/context-B5NItr9C.d.ts.map +0 -1
- package/dist/context-BEYROlTB.d.ts.map +0 -1
- package/dist/context-BLjAwZ5V.js.map +0 -1
- package/dist/context-BpHX6J1T.js.map +0 -1
- package/dist/context-BrGWrRwa.d.ts.map +0 -1
- package/dist/context-C1Z_5vew.d.ts.map +0 -1
- package/dist/context-C5DO1oe1.js.map +0 -1
- package/dist/context-C8M88I1F.js.map +0 -1
- package/dist/context-CgRa89Bq.d.ts.map +0 -1
- package/dist/context-CmexbpIK.js.map +0 -1
- package/dist/context-Cr2SLhVi.js.map +0 -1
- package/dist/context-CwSk1WZR.js.map +0 -1
- package/dist/context-DWHy9EUW.js.map +0 -1
- package/dist/context-Dae38FV_.js.map +0 -1
- package/dist/context-r3QNWoPh.js.map +0 -1
- package/dist/copy-menu-BizTEv8v.js.map +0 -1
- package/dist/crash-parts-Dg5WC8u4.js.map +0 -1
- package/dist/ease-DnPhwGe6.d.ts.map +0 -1
- package/dist/model-B_LLKNOs.d.ts.map +0 -1
- package/dist/model-Cbzktxjx.d.ts.map +0 -1
- package/dist/model-DP6FsG__.d.ts.map +0 -1
- package/dist/positioner-DY1vB4rF.js.map +0 -1
- package/dist/tooltip-BUkacvMl.js.map +0 -1
- package/dist/tooltip-CJccRGy9.d.ts.map +0 -1
- package/dist/tooltip-CMtIWcUY.d.ts.map +0 -1
- package/dist/tooltip-DuPE_3Gi.d.ts.map +0 -1
- package/dist/tooltip-UI0lMGya.d.ts.map +0 -1
- package/dist/tooltip-jQICwV_k.d.ts.map +0 -1
- package/dist/types-C1WFGMvf.d.ts +0 -34
- package/dist/types-C1WFGMvf.d.ts.map +0 -1
- package/dist/types-C_v1N4fH.d.ts.map +0 -1
- package/dist/types-DROZkngo.d.ts +0 -20
- package/dist/types-DROZkngo.d.ts.map +0 -1
- package/dist/use-active-option-DbxnIM2n.js +0 -85
- package/dist/use-active-option-DbxnIM2n.js.map +0 -1
- package/dist/use-inspection-DWk6TdY9.js.map +0 -1
- package/dist/use-position-B1lYvN8D.d.ts.map +0 -1
- package/dist/use-width-Dmy1eT1-.js +0 -23
- package/dist/use-width-Dmy1eT1-.js.map +0 -1
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
2
|
+
// src/components/motion/combobox/use-active-option.ts
|
|
3
|
+
const isEnabled = (enabledItems, candidate) => candidate !== void 0 && enabledItems.some((i) => i.value === candidate);
|
|
4
|
+
/**
|
|
5
|
+
* The cursor's option, or null once the query or the result set it was placed
|
|
6
|
+
* in has changed. A cursor that outlived either would steal Enter from the row
|
|
7
|
+
* the user is aiming at. The result-set half costs something: a live search
|
|
8
|
+
* that blanks its rows while fetching and returns the same ones loses the moved
|
|
9
|
+
* highlight. That is deliberate - a highlight visibly back at the top beats one
|
|
10
|
+
* silently in the wrong place.
|
|
11
|
+
*
|
|
12
|
+
* It is stamped with the query rather than with the identity of the visible
|
|
13
|
+
* list because callers routinely pass an inline `filter`, which makes that list
|
|
14
|
+
* a fresh array on every render.
|
|
15
|
+
*/
|
|
16
|
+
function liveCursorValue(cursor, options) {
|
|
17
|
+
if (cursor === null || cursor.query !== options.query) return null;
|
|
18
|
+
return isEnabled(options.enabledItems, cursor.value) ? cursor.value : null;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Where the highlight sits with no live cursor: the selection if it can be
|
|
22
|
+
* selected, otherwise the first option that can. Only enabled options qualify -
|
|
23
|
+
* an active disabled option would point `aria-activedescendant` at a row Enter
|
|
24
|
+
* then refuses to select.
|
|
25
|
+
*/
|
|
26
|
+
function fallbackActive({ value, enabledItems }) {
|
|
27
|
+
return isEnabled(enabledItems, value) ? value : enabledItems[0]?.value ?? null;
|
|
28
|
+
}
|
|
29
|
+
/** The active option, from a cursor that may or may not still be live. */
|
|
30
|
+
const resolveActive = (cursor, options) => liveCursorValue(cursor, options) ?? fallbackActive(options);
|
|
31
|
+
function useActiveOption({ open, ...options }) {
|
|
32
|
+
const { query, value, enabledItems } = options;
|
|
33
|
+
const [cursor, setCursor] = useState(null);
|
|
34
|
+
const live = liveCursorValue(cursor, options);
|
|
35
|
+
if (cursor !== null && live === null) setCursor(null);
|
|
36
|
+
const derived = live ?? fallbackActive(options);
|
|
37
|
+
const [opened, setOpened] = useState(open);
|
|
38
|
+
if (open && !opened) setOpened(true);
|
|
39
|
+
const activeValue = opened ? derived : null;
|
|
40
|
+
const latest = useRef({
|
|
41
|
+
open,
|
|
42
|
+
query,
|
|
43
|
+
value,
|
|
44
|
+
enabledItems
|
|
45
|
+
});
|
|
46
|
+
useLayoutEffect(() => {
|
|
47
|
+
latest.current = {
|
|
48
|
+
open,
|
|
49
|
+
query,
|
|
50
|
+
value,
|
|
51
|
+
enabledItems
|
|
52
|
+
};
|
|
53
|
+
});
|
|
54
|
+
return {
|
|
55
|
+
activeValue,
|
|
56
|
+
setActiveValue: useCallback((next) => {
|
|
57
|
+
setCursor(next === null ? null : {
|
|
58
|
+
value: next,
|
|
59
|
+
query: latest.current.query
|
|
60
|
+
});
|
|
61
|
+
}, []),
|
|
62
|
+
moveActive: useCallback((direction) => {
|
|
63
|
+
const options = latest.current;
|
|
64
|
+
if (!options.open) return;
|
|
65
|
+
const rows = options.enabledItems;
|
|
66
|
+
const last = rows.length - 1;
|
|
67
|
+
if (last < 0) {
|
|
68
|
+
setCursor(null);
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
setCursor((current) => {
|
|
72
|
+
const from = resolveActive(current, options);
|
|
73
|
+
const at = rows.findIndex((item) => item.value === from);
|
|
74
|
+
const index = direction === "first" ? 0 : direction === "last" ? last : (at + direction + rows.length) % rows.length;
|
|
75
|
+
return {
|
|
76
|
+
value: rows[index].value,
|
|
77
|
+
query: options.query
|
|
78
|
+
};
|
|
79
|
+
});
|
|
80
|
+
}, [])
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
// src/components/motion/combobox/use-filtered-options.ts
|
|
84
|
+
/** Fuzzy match: the query's characters appear in order in the value or a keyword. */
|
|
85
|
+
const defaultOptionFilter = (value, query, keywords) => {
|
|
86
|
+
const needle = query.trim().toLocaleLowerCase();
|
|
87
|
+
if (!needle) return true;
|
|
88
|
+
const haystack = [value, ...keywords].join(" ").toLocaleLowerCase();
|
|
89
|
+
let queryIndex = 0;
|
|
90
|
+
for (const character of haystack) {
|
|
91
|
+
if (character === needle[queryIndex]) queryIndex += 1;
|
|
92
|
+
if (queryIndex === needle.length) return true;
|
|
93
|
+
}
|
|
94
|
+
return false;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* The options a searchable list registers, filtered by its query, with the
|
|
98
|
+
* active option resolved during render and kept scrolled into view. Shared by
|
|
99
|
+
* Combobox and Multi Select, which differ only in what a pick does.
|
|
100
|
+
*/
|
|
101
|
+
function useFilteredOptions({ open, query, value, filter }) {
|
|
102
|
+
const [items, setItems] = useState(/* @__PURE__ */ new Map());
|
|
103
|
+
const registerItem = useCallback((item) => {
|
|
104
|
+
setItems((current) => {
|
|
105
|
+
const existing = current.get(item.value);
|
|
106
|
+
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;
|
|
107
|
+
const next = new Map(current);
|
|
108
|
+
next.set(item.value, item);
|
|
109
|
+
return next;
|
|
110
|
+
});
|
|
111
|
+
}, []);
|
|
112
|
+
const unregisterItem = useCallback((itemValue) => {
|
|
113
|
+
setItems((current) => {
|
|
114
|
+
if (!current.has(itemValue)) return current;
|
|
115
|
+
const next = new Map(current);
|
|
116
|
+
next.delete(itemValue);
|
|
117
|
+
return next;
|
|
118
|
+
});
|
|
119
|
+
}, []);
|
|
120
|
+
const [openQuery, setOpenQuery] = useState(query);
|
|
121
|
+
if (open && openQuery !== query) setOpenQuery(query);
|
|
122
|
+
const listQuery = open ? query : openQuery;
|
|
123
|
+
const visibleItems = useMemo(() => Array.from(items.values()).filter((item) => filter(item.value, listQuery, [item.label, ...item.keywords])), [
|
|
124
|
+
filter,
|
|
125
|
+
items,
|
|
126
|
+
listQuery
|
|
127
|
+
]);
|
|
128
|
+
const enabledVisibleItems = useMemo(() => visibleItems.filter((item) => !item.disabled), [visibleItems]);
|
|
129
|
+
const visibleValues = useMemo(() => new Set(visibleItems.map((item) => item.value)), [visibleItems]);
|
|
130
|
+
const visibleGroupIds = useMemo(() => new Set(visibleItems.map((item) => item.groupId)), [visibleItems]);
|
|
131
|
+
const { activeValue, setActiveValue, moveActive } = useActiveOption({
|
|
132
|
+
open,
|
|
133
|
+
query: listQuery,
|
|
134
|
+
value,
|
|
135
|
+
enabledItems: enabledVisibleItems
|
|
136
|
+
});
|
|
137
|
+
useEffect(() => {
|
|
138
|
+
if (!activeValue || !open) return;
|
|
139
|
+
const item = items.get(activeValue)?.ref.current;
|
|
140
|
+
const list = item?.closest("[role='listbox']");
|
|
141
|
+
if (!item || !list) return;
|
|
142
|
+
const itemRect = item.getBoundingClientRect();
|
|
143
|
+
const listRect = list.getBoundingClientRect();
|
|
144
|
+
if (itemRect.top < listRect.top) list.scrollTop -= listRect.top - itemRect.top;
|
|
145
|
+
else if (itemRect.bottom > listRect.bottom) list.scrollTop += itemRect.bottom - listRect.bottom;
|
|
146
|
+
}, [
|
|
147
|
+
activeValue,
|
|
148
|
+
items,
|
|
149
|
+
open
|
|
150
|
+
]);
|
|
151
|
+
return {
|
|
152
|
+
items,
|
|
153
|
+
registerItem,
|
|
154
|
+
unregisterItem,
|
|
155
|
+
listQuery,
|
|
156
|
+
visibleValues,
|
|
157
|
+
visibleGroupIds,
|
|
158
|
+
visibleCount: visibleItems.length,
|
|
159
|
+
activeValue,
|
|
160
|
+
setActiveValue,
|
|
161
|
+
moveActive,
|
|
162
|
+
activeItemId: activeValue ? items.get(activeValue)?.id : void 0
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
export { useFilteredOptions as n, defaultOptionFilter as t };
|
|
166
|
+
|
|
167
|
+
//# sourceMappingURL=use-filtered-options-3TcVsHzV.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-filtered-options-3TcVsHzV.js","names":[],"sources":["../src/components/motion/combobox/use-active-option.ts","../src/components/motion/combobox/use-filtered-options.ts"],"sourcesContent":["\"use client\";\n\nimport { useCallback, useLayoutEffect, useRef, useState } from \"react\";\n\n/**\n * Where the keyboard or the pointer last moved to, stamped with the query it\n * was placed under. Which option is *active* is resolved from this during\n * render, never in an effect: a passive effect runs after the commit, so a list\n * would briefly have none of its options active, and a key arriving in that\n * window would move from nowhere onto the row it was already about to\n * highlight.\n */\ntype ActiveCursor = { value: string; query: string };\n\ntype Options = {\n query: string;\n value: string | undefined;\n /** The enabled, visible options in list order - all this hook reads of them. */\n enabledItems: readonly { value: string }[];\n};\n\nconst isEnabled = (\n enabledItems: Options[\"enabledItems\"],\n candidate: string | undefined,\n): candidate is string =>\n candidate !== undefined && enabledItems.some((i) => i.value === candidate);\n\n/**\n * The cursor's option, or null once the query or the result set it was placed\n * in has changed. A cursor that outlived either would steal Enter from the row\n * the user is aiming at. The result-set half costs something: a live search\n * that blanks its rows while fetching and returns the same ones loses the moved\n * highlight. That is deliberate - a highlight visibly back at the top beats one\n * silently in the wrong place.\n *\n * It is stamped with the query rather than with the identity of the visible\n * list because callers routinely pass an inline `filter`, which makes that list\n * a fresh array on every render.\n */\nfunction liveCursorValue(cursor: ActiveCursor | null, options: Options) {\n if (cursor === null || cursor.query !== options.query) return null;\n return isEnabled(options.enabledItems, cursor.value) ? cursor.value : null;\n}\n\n/**\n * Where the highlight sits with no live cursor: the selection if it can be\n * selected, otherwise the first option that can. Only enabled options qualify -\n * an active disabled option would point `aria-activedescendant` at a row Enter\n * then refuses to select.\n */\nfunction fallbackActive({ value, enabledItems }: Options) {\n return isEnabled(enabledItems, value) ? value : (enabledItems[0]?.value ?? null);\n}\n\n/** The active option, from a cursor that may or may not still be live. */\nconst resolveActive = (cursor: ActiveCursor | null, options: Options) =>\n liveCursorValue(cursor, options) ?? fallbackActive(options);\n\nexport function useActiveOption({ open, ...options }: Options & { open: boolean }) {\n const { query, value, enabledItems } = options;\n const [cursor, setCursor] = useState<ActiveCursor | null>(null);\n\n const live = liveCursorValue(cursor, options);\n // Cleared rather than ignored: React re-runs this render with the cursor\n // gone, so a value that reappears later cannot revive it.\n if (cursor !== null && live === null) setCursor(null);\n const derived = live ?? fallbackActive(options);\n\n // Nothing is active until the list has been opened once. After that the\n // resolution above is already stable across a close - the list keeps\n // filtering by the query it was open with - so the highlight holds its row\n // through the exit without being frozen separately.\n const [opened, setOpened] = useState(open);\n if (open && !opened) setOpened(true);\n const activeValue = opened ? derived : null;\n\n // Both callbacks keep one identity for the life of the component, and read\n // the list through a ref to do it. A caller will put them in a `useMemo` or\n // an effect's dependencies - the exhaustive-deps rule makes it - and\n // `enabledItems` is a fresh array on every render for any consumer passing an\n // inline `filter`, so a callback keyed to it would be rebuilt every render.\n // Written after commit rather than during render: a render React discards\n // still runs the component body, and a handler reading this in that window\n // would step against a list the committed tree does not have.\n const latest = useRef({ open, query, value, enabledItems });\n useLayoutEffect(() => {\n latest.current = { open, query, value, enabledItems };\n });\n\n const setActiveValue = useCallback((next: string | null) => {\n setCursor(next === null ? null : { value: next, query: latest.current.query });\n }, []);\n\n // Steps from the option the cursor really resolves to, inside the update, so\n // that two keys landing in one batch move two rows rather than one.\n const moveActive = useCallback((direction: 1 | -1 | \"first\" | \"last\") => {\n const options = latest.current;\n // While closed the list is still filtering by the query it was open\n // with, so a step taken now would be measured against rows the next\n // render replaces. Opening is the caller's job; stepping waits for it.\n if (!options.open) return;\n const rows = options.enabledItems;\n const last = rows.length - 1;\n if (last < 0) {\n setCursor(null);\n return;\n }\n setCursor((current) => {\n // `resolveActive` always lands on a member of `enabledItems` once the\n // list is non-empty, which the early return above guarantees, so there\n // is always a row to step from.\n const from = resolveActive(current, options);\n const at = rows.findIndex((item) => item.value === from);\n const index =\n direction === \"first\"\n ? 0\n : direction === \"last\"\n ? last\n : (at + direction + rows.length) % rows.length;\n return { value: rows[index].value, query: options.query };\n });\n }, []);\n\n return { activeValue, setActiveValue, moveActive };\n}\n","\"use client\";\n\nimport { type MutableRefObject, useCallback, useEffect, useMemo, useState } from \"react\";\n\nimport { useActiveOption } from \"./use-active-option\";\n\n/** An option as it registers with its list. */\nexport type RegisteredItem = {\n value: string;\n label: string;\n keywords: string[];\n disabled: boolean;\n groupId: string | null;\n id: string;\n ref: MutableRefObject<HTMLButtonElement | null>;\n};\n\nexport type OptionFilter = (value: string, query: string, keywords: string[]) => boolean;\n\n/** Fuzzy match: the query's characters appear in order in the value or a keyword. */\nexport const defaultOptionFilter: OptionFilter = (value, query, keywords) => {\n const needle = query.trim().toLocaleLowerCase();\n if (!needle) return true;\n\n const haystack = [value, ...keywords].join(\" \").toLocaleLowerCase();\n let queryIndex = 0;\n for (const character of haystack) {\n if (character === needle[queryIndex]) queryIndex += 1;\n if (queryIndex === needle.length) return true;\n }\n return false;\n};\n\n/**\n * The options a searchable list registers, filtered by its query, with the\n * active option resolved during render and kept scrolled into view. Shared by\n * Combobox and Multi Select, which differ only in what a pick does.\n */\nexport function useFilteredOptions({\n open,\n query,\n value,\n filter,\n}: {\n open: boolean;\n query: string;\n /** The selected value the cursor starts on when the list opens. */\n value: string | undefined;\n filter: OptionFilter;\n}) {\n const [items, setItems] = useState<Map<string, RegisteredItem>>(new Map());\n\n const registerItem = useCallback((item: RegisteredItem) => {\n setItems((current) => {\n const existing = current.get(item.value);\n if (\n existing?.label === item.label &&\n existing.disabled === item.disabled &&\n existing.id === item.id &&\n existing.ref === item.ref &&\n existing.groupId === item.groupId &&\n existing.keywords.join(\"\\u0000\") === item.keywords.join(\"\\u0000\")\n ) {\n return current;\n }\n const next = new Map(current);\n next.set(item.value, item);\n return next;\n });\n }, []);\n\n const unregisterItem = useCallback((itemValue: string) => {\n setItems((current) => {\n if (!current.has(itemValue)) return current;\n const next = new Map(current);\n next.delete(itemValue);\n return next;\n });\n }, []);\n\n // The query the list filters by. Closing clears `query`, but the panel is\n // still on screen for its exit, so it keeps filtering by the query it was\n // open with rather than repopulating mid-collapse. The input already reads\n // `query` only while open, so nothing the user can see reads the other one.\n const [openQuery, setOpenQuery] = useState(query);\n if (open && openQuery !== query) setOpenQuery(query);\n const listQuery = open ? query : openQuery;\n\n const visibleItems = useMemo(\n () =>\n Array.from(items.values()).filter((item) =>\n filter(item.value, listQuery, [item.label, ...item.keywords]),\n ),\n [filter, items, listQuery],\n );\n const enabledVisibleItems = useMemo(\n () => visibleItems.filter((item) => !item.disabled),\n [visibleItems],\n );\n const visibleValues = useMemo(\n () => new Set(visibleItems.map((item) => item.value)),\n [visibleItems],\n );\n const visibleGroupIds = useMemo(\n () => new Set(visibleItems.map((item) => item.groupId)),\n [visibleItems],\n );\n\n const { activeValue, setActiveValue, moveActive } = useActiveOption({\n open,\n query: listQuery,\n value,\n enabledItems: enabledVisibleItems,\n });\n\n useEffect(() => {\n if (!activeValue || !open) return;\n const item = items.get(activeValue)?.ref.current;\n const list = item?.closest<HTMLElement>(\"[role='listbox']\");\n if (!item || !list) return;\n const itemRect = item.getBoundingClientRect();\n const listRect = list.getBoundingClientRect();\n if (itemRect.top < listRect.top) list.scrollTop -= listRect.top - itemRect.top;\n else if (itemRect.bottom > listRect.bottom) list.scrollTop += itemRect.bottom - listRect.bottom;\n }, [activeValue, items, open]);\n\n return {\n items,\n registerItem,\n unregisterItem,\n listQuery,\n visibleValues,\n visibleGroupIds,\n visibleCount: visibleItems.length,\n activeValue,\n setActiveValue,\n moveActive,\n activeItemId: activeValue ? items.get(activeValue)?.id : undefined,\n };\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MutableRefObject } from "react";
|
|
2
|
+
/** An option as it registers with its list. */
|
|
3
|
+
type RegisteredItem = {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
keywords: string[];
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
groupId: string | null;
|
|
9
|
+
id: string;
|
|
10
|
+
ref: MutableRefObject<HTMLButtonElement | null>;
|
|
11
|
+
};
|
|
12
|
+
type OptionFilter = (value: string, query: string, keywords: string[]) => boolean;
|
|
13
|
+
export { RegisteredItem as n, OptionFilter as t };
|
|
14
|
+
//# sourceMappingURL=use-filtered-options-BbXqmJmZ.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-filtered-options-BbXqmJmZ.d.ts","names":[],"sources":["../src/components/motion/combobox/use-filtered-options.ts"],"mappings":";;KAOY;EACV;EACA;EACA;EACA;EACA;EACA;EACA,KAAK,iBAAiB;;KAGZ,gBAAgB,eAAe,eAAe"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { useId, useRef, useState } from "react";
|
|
2
|
+
import { useControllable } from "./hooks/use-controllable.js";
|
|
3
|
+
// src/components/charts/xy/use-inspection.ts
|
|
4
|
+
/**
|
|
5
|
+
* The inspected category is held by id and resolved during render, so a
|
|
6
|
+
* category that leaves the data clears the cursor instead of landing on a
|
|
7
|
+
* neighbour, and one that comes back cannot revive it.
|
|
8
|
+
*/
|
|
9
|
+
function useInspection({ ids, activeId, defaultActiveId = null, onActiveChange }) {
|
|
10
|
+
const [requested, setActive, setInternal] = useControllable(activeId, defaultActiveId, onActiveChange);
|
|
11
|
+
if (activeId === void 0 && requested !== null && !ids.includes(requested)) setInternal(null);
|
|
12
|
+
const activeIndex = requested === null ? -1 : ids.indexOf(requested);
|
|
13
|
+
const [open, setOpen] = useState(false);
|
|
14
|
+
const [touching, setTouching] = useState(false);
|
|
15
|
+
const plotRef = useRef(null);
|
|
16
|
+
const tooltipId = useId();
|
|
17
|
+
return {
|
|
18
|
+
activeId: activeIndex >= 0 ? requested : null,
|
|
19
|
+
activeIndex,
|
|
20
|
+
setActive,
|
|
21
|
+
open,
|
|
22
|
+
setOpen,
|
|
23
|
+
touching,
|
|
24
|
+
setTouching,
|
|
25
|
+
plotRef,
|
|
26
|
+
tooltipId
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export { useInspection as t };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=use-inspection-LoyxxJk8.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-inspection-LoyxxJk8.js","names":[],"sources":["../src/components/charts/xy/use-inspection.ts"],"sourcesContent":["\"use client\";\n\nimport { useId, useRef, useState } from \"react\";\n\nimport { useControllable } from \"../../../hooks/use-controllable\";\n\nexport { useControllable };\n\n/**\n * The inspected category is held by id and resolved during render, so a\n * category that leaves the data clears the cursor instead of landing on a\n * neighbour, and one that comes back cannot revive it.\n */\nexport function useInspection({\n ids,\n activeId,\n defaultActiveId = null,\n onActiveChange,\n}: {\n ids: readonly string[];\n activeId?: string | null;\n defaultActiveId?: string | null;\n onActiveChange?: (id: string | null) => void;\n}) {\n const [requested, setActive, setInternal] = useControllable(\n activeId,\n defaultActiveId,\n onActiveChange,\n );\n if (activeId === undefined && requested !== null && !ids.includes(requested)) setInternal(null);\n const activeIndex = requested === null ? -1 : ids.indexOf(requested);\n const [open, setOpen] = useState(false);\n // A finger on the plot: inspection marks follow it directly instead of gliding.\n const [touching, setTouching] = useState(false);\n const plotRef = useRef<HTMLDivElement>(null);\n const tooltipId = useId();\n return {\n activeId: activeIndex >= 0 ? requested : null,\n activeIndex,\n setActive,\n open,\n setOpen,\n touching,\n setTouching,\n plotRef,\n tooltipId,\n };\n}\n"],"mappings":";;;;;;;;AAaA,SAAgB,cAAc,EAC5B,KACA,UACA,kBAAkB,MAClB,kBAMC;CACD,MAAM,CAAC,WAAW,WAAW,eAAe,gBAC1C,UACA,iBACA,cACF;CACA,IAAI,aAAa,KAAA,KAAa,cAAc,QAAQ,CAAC,IAAI,SAAS,SAAS,GAAG,YAAY,IAAI;CAC9F,MAAM,cAAc,cAAc,OAAO,KAAK,IAAI,QAAQ,SAAS;CACnE,MAAM,CAAC,MAAM,WAAW,SAAS,KAAK;CAEtC,MAAM,CAAC,UAAU,eAAe,SAAS,KAAK;CAC9C,MAAM,UAAU,OAAuB,IAAI;CAC3C,MAAM,YAAY,MAAM;CACxB,OAAO;EACL,UAAU,eAAe,IAAI,YAAY;EACzC;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { useCallback, useEffect, useRef } from "react";
|
|
2
|
+
// src/components/motion/menu/use-menu-navigation.ts
|
|
3
|
+
const TYPEAHEAD_RESET = 500;
|
|
4
|
+
/**
|
|
5
|
+
* The enabled rows of one menu panel, in order. Rows carry `data-menu-item`
|
|
6
|
+
* and the panel's `data-level`, so a submenu rendered inside the panel keeps
|
|
7
|
+
* its own rows to itself.
|
|
8
|
+
*/
|
|
9
|
+
function enabledItems(panel) {
|
|
10
|
+
if (!panel) return [];
|
|
11
|
+
return Array.from(panel.querySelectorAll(`[data-menu-item][data-level="${panel.dataset.level}"]:not([data-disabled])`));
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Arrow keys, Home, End and typeahead for a menu panel. The returned handler
|
|
15
|
+
* moves focus between the panel's rows and says whether it used the key.
|
|
16
|
+
* Typeahead matches a row's `data-text-value`, or its text.
|
|
17
|
+
*/
|
|
18
|
+
function useMenuNavigation() {
|
|
19
|
+
const query = useRef("");
|
|
20
|
+
const timer = useRef(null);
|
|
21
|
+
useEffect(() => () => {
|
|
22
|
+
if (timer.current) clearTimeout(timer.current);
|
|
23
|
+
}, []);
|
|
24
|
+
return useCallback((event, panel) => {
|
|
25
|
+
const items = enabledItems(panel);
|
|
26
|
+
const index = items.indexOf(event.target);
|
|
27
|
+
if (event.key === "ArrowDown" || event.key === "ArrowUp") {
|
|
28
|
+
event.preventDefault();
|
|
29
|
+
if (items.length === 0) return true;
|
|
30
|
+
const step = event.key === "ArrowDown" ? 1 : -1;
|
|
31
|
+
items[index < 0 ? step === 1 ? 0 : items.length - 1 : (index + step + items.length) % items.length]?.focus();
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
if (event.key === "Home" || event.key === "End") {
|
|
35
|
+
event.preventDefault();
|
|
36
|
+
items[event.key === "Home" ? 0 : items.length - 1]?.focus();
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
if (!(event.key.length === 1 && !event.ctrlKey && !event.metaKey && !event.altKey) || event.key === " " && query.current === "") return false;
|
|
40
|
+
query.current += event.key.toLocaleLowerCase();
|
|
41
|
+
if (timer.current) clearTimeout(timer.current);
|
|
42
|
+
timer.current = setTimeout(() => {
|
|
43
|
+
query.current = "";
|
|
44
|
+
}, TYPEAHEAD_RESET);
|
|
45
|
+
const ordered = [...items.slice(index + 1), ...items.slice(0, index + 1)];
|
|
46
|
+
const typedSoFar = query.current;
|
|
47
|
+
const needle = typedSoFar.length > 1 && [...typedSoFar].every((char) => char === typedSoFar[0]) ? typedSoFar[0] : typedSoFar;
|
|
48
|
+
const match = ordered.find((item) => (item.dataset.textValue ?? item.textContent ?? "").trim().toLocaleLowerCase().startsWith(needle));
|
|
49
|
+
if (!match) return false;
|
|
50
|
+
event.preventDefault();
|
|
51
|
+
match.focus();
|
|
52
|
+
return true;
|
|
53
|
+
}, []);
|
|
54
|
+
}
|
|
55
|
+
export { useMenuNavigation as n, enabledItems as t };
|
|
56
|
+
|
|
57
|
+
//# sourceMappingURL=use-menu-navigation-B17_iK_B.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-menu-navigation-B17_iK_B.js","names":[],"sources":["../src/components/motion/menu/use-menu-navigation.ts"],"sourcesContent":["\"use client\";\n\nimport { type KeyboardEvent, useCallback, useEffect, useRef } from \"react\";\n\nconst TYPEAHEAD_RESET = 500;\n\n/**\n * The enabled rows of one menu panel, in order. Rows carry `data-menu-item`\n * and the panel's `data-level`, so a submenu rendered inside the panel keeps\n * its own rows to itself.\n */\nexport function enabledItems(panel: HTMLElement | null) {\n if (!panel) return [];\n return Array.from(\n panel.querySelectorAll<HTMLElement>(\n `[data-menu-item][data-level=\"${panel.dataset.level}\"]:not([data-disabled])`,\n ),\n );\n}\n\n/**\n * Arrow keys, Home, End and typeahead for a menu panel. The returned handler\n * moves focus between the panel's rows and says whether it used the key.\n * Typeahead matches a row's `data-text-value`, or its text.\n */\nexport function useMenuNavigation() {\n const query = useRef(\"\");\n const timer = useRef<ReturnType<typeof setTimeout> | null>(null);\n\n useEffect(\n () => () => {\n if (timer.current) clearTimeout(timer.current);\n },\n [],\n );\n\n return useCallback((event: KeyboardEvent<HTMLElement>, panel: HTMLElement | null) => {\n const items = enabledItems(panel);\n const index = items.indexOf(event.target as HTMLElement);\n if (event.key === \"ArrowDown\" || event.key === \"ArrowUp\") {\n event.preventDefault();\n if (items.length === 0) return true;\n const step = event.key === \"ArrowDown\" ? 1 : -1;\n const next =\n index < 0\n ? step === 1\n ? 0\n : items.length - 1\n : (index + step + items.length) % items.length;\n items[next]?.focus();\n return true;\n }\n if (event.key === \"Home\" || event.key === \"End\") {\n event.preventDefault();\n items[event.key === \"Home\" ? 0 : items.length - 1]?.focus();\n return true;\n }\n const typed = event.key.length === 1 && !event.ctrlKey && !event.metaKey && !event.altKey;\n // A space with nothing typed yet presses the row instead.\n if (!typed || (event.key === \" \" && query.current === \"\")) return false;\n query.current += event.key.toLocaleLowerCase();\n if (timer.current) clearTimeout(timer.current);\n timer.current = setTimeout(() => {\n query.current = \"\";\n }, TYPEAHEAD_RESET);\n // Start after the current row, so repeating a letter cycles its matches.\n const ordered = [...items.slice(index + 1), ...items.slice(0, index + 1)];\n const typedSoFar = query.current;\n const repeated =\n typedSoFar.length > 1 && [...typedSoFar].every((char) => char === typedSoFar[0]);\n const needle = repeated ? typedSoFar[0] : typedSoFar;\n const match = ordered.find((item) =>\n (item.dataset.textValue ?? item.textContent ?? \"\")\n .trim()\n .toLocaleLowerCase()\n .startsWith(needle),\n );\n if (!match) return false;\n event.preventDefault();\n match.focus();\n return true;\n }, []);\n}\n"],"mappings":";;AAIA,MAAM,kBAAkB;;;;;;AAOxB,SAAgB,aAAa,OAA2B;CACtD,IAAI,CAAC,OAAO,OAAO,CAAC;CACpB,OAAO,MAAM,KACX,MAAM,iBACJ,gCAAgC,MAAM,QAAQ,MAAM,wBACtD,CACF;AACF;;;;;;AAOA,SAAgB,oBAAoB;CAClC,MAAM,QAAQ,OAAO,EAAE;CACvB,MAAM,QAAQ,OAA6C,IAAI;CAE/D,sBACc;EACV,IAAI,MAAM,SAAS,aAAa,MAAM,OAAO;CAC/C,GACA,CAAC,CACH;CAEA,OAAO,aAAa,OAAmC,UAA8B;EACnF,MAAM,QAAQ,aAAa,KAAK;EAChC,MAAM,QAAQ,MAAM,QAAQ,MAAM,MAAqB;EACvD,IAAI,MAAM,QAAQ,eAAe,MAAM,QAAQ,WAAW;GACxD,MAAM,eAAe;GACrB,IAAI,MAAM,WAAW,GAAG,OAAO;GAC/B,MAAM,OAAO,MAAM,QAAQ,cAAc,IAAI;GAO7C,MALE,QAAQ,IACJ,SAAS,IACP,IACA,MAAM,SAAS,KAChB,QAAQ,OAAO,MAAM,UAAU,MAAM,OACjC,EAAE,MAAM;GACnB,OAAO;EACT;EACA,IAAI,MAAM,QAAQ,UAAU,MAAM,QAAQ,OAAO;GAC/C,MAAM,eAAe;GACrB,MAAM,MAAM,QAAQ,SAAS,IAAI,MAAM,SAAS,EAAE,EAAE,MAAM;GAC1D,OAAO;EACT;EAGA,IAAI,EAFU,MAAM,IAAI,WAAW,KAAK,CAAC,MAAM,WAAW,CAAC,MAAM,WAAW,CAAC,MAAM,WAEpE,MAAM,QAAQ,OAAO,MAAM,YAAY,IAAK,OAAO;EAClE,MAAM,WAAW,MAAM,IAAI,kBAAkB;EAC7C,IAAI,MAAM,SAAS,aAAa,MAAM,OAAO;EAC7C,MAAM,UAAU,iBAAiB;GAC/B,MAAM,UAAU;EAClB,GAAG,eAAe;EAElB,MAAM,UAAU,CAAC,GAAG,MAAM,MAAM,QAAQ,CAAC,GAAG,GAAG,MAAM,MAAM,GAAG,QAAQ,CAAC,CAAC;EACxE,MAAM,aAAa,MAAM;EAGzB,MAAM,SADJ,WAAW,SAAS,KAAK,CAAC,GAAG,UAAU,CAAC,CAAC,OAAO,SAAS,SAAS,WAAW,EAAE,IACvD,WAAW,KAAK;EAC1C,MAAM,QAAQ,QAAQ,MAAM,UACzB,KAAK,QAAQ,aAAa,KAAK,eAAe,GAAA,CAC5C,KAAK,CAAC,CACN,kBAAkB,CAAC,CACnB,WAAW,MAAM,CACtB;EACA,IAAI,CAAC,OAAO,OAAO;EACnB,MAAM,eAAe;EACrB,MAAM,MAAM;EACZ,OAAO;CACT,GAAG,CAAC,CAAC;AACP"}
|
|
@@ -2,7 +2,9 @@ import { RefObject } from "react";
|
|
|
2
2
|
type TooltipSide = "top" | "right" | "bottom" | "left";
|
|
3
3
|
type TooltipAlign = "start" | "center" | "end";
|
|
4
4
|
type TooltipPoint = {
|
|
5
|
+
/** Horizontal position; for `anchorPoint`, a 0 to 1 fraction of the anchor's width. */
|
|
5
6
|
x: number;
|
|
7
|
+
/** Vertical position; for `anchorPoint`, a 0 to 1 fraction of the anchor's height. */
|
|
6
8
|
y: number;
|
|
7
9
|
};
|
|
8
10
|
type TooltipAnchor = HTMLElement | SVGElement;
|
|
@@ -27,4 +29,4 @@ declare function useTooltipPointer(anchor: TooltipAnchor | null, followCursor: b
|
|
|
27
29
|
onMove: RefObject<(() => void) | null>;
|
|
28
30
|
};
|
|
29
31
|
export { useTooltipPosition as a, TooltipSide as i, TooltipAnchor as n, TooltipPoint as r, TooltipAlign as t };
|
|
30
|
-
//# sourceMappingURL=use-position-
|
|
32
|
+
//# sourceMappingURL=use-position-ac-sSZRY.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-position-ac-sSZRY.d.ts","names":[],"sources":["../src/components/motion/tooltip/use-position.ts"],"mappings":";KAeY;KACA;KACA;;EAEV;;EAEA;;KAEU,gBAAgB,cAAc;;iBAkI1B,qBACd,MACA,QACA,aACA,UACA,aACA,cACA,MACA,OACA,YACA,WACA,YACA;EAEA;EACA,QAAQ;EACR,aAAa,UAAU;EACvB,WAAW,UAAU;EACrB,cAAc;EACd;EACA,MAAM;EACN,OAAO;EACP;EACA;EACA,aAAa,MAAM;EACnB,SAAS,kBAAkB;;;iBAuKb,kBAAkB,QAAQ,sBAAsB;;EAEjC,QAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { useLayoutEffect, useRef, useState } from "react";
|
|
2
|
+
// src/components/charts/xy/use-width.ts
|
|
3
|
+
/**
|
|
4
|
+
* Keeps `setSize` at `ref`'s rendered size. Zero sizes (a hidden plot) are
|
|
5
|
+
* skipped, and an unchanged size keeps the previous object, so nothing
|
|
6
|
+
* re-renders for a resize that changed nothing.
|
|
7
|
+
*/
|
|
8
|
+
function useElementSize(ref, setSize) {
|
|
9
|
+
useLayoutEffect(() => {
|
|
10
|
+
const node = ref.current;
|
|
11
|
+
if (!node) return;
|
|
12
|
+
const measure = () => {
|
|
13
|
+
const { width, height } = node.getBoundingClientRect();
|
|
14
|
+
if (width > 0 && height > 0) setSize((size) => size.width === width && size.height === height ? size : {
|
|
15
|
+
width,
|
|
16
|
+
height
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
measure();
|
|
20
|
+
const observer = new ResizeObserver(measure);
|
|
21
|
+
observer.observe(node);
|
|
22
|
+
return () => observer.disconnect();
|
|
23
|
+
}, [ref, setSize]);
|
|
24
|
+
}
|
|
25
|
+
/** Pixel geometry keeps dots round and strokes even; nothing renders before the first measure. */
|
|
26
|
+
function useElementWidth() {
|
|
27
|
+
const ref = useRef(null);
|
|
28
|
+
const [width, setWidth] = useState(0);
|
|
29
|
+
useLayoutEffect(() => {
|
|
30
|
+
const node = ref.current;
|
|
31
|
+
if (!node) return;
|
|
32
|
+
const update = () => setWidth(node.clientWidth);
|
|
33
|
+
update();
|
|
34
|
+
const observer = new ResizeObserver(update);
|
|
35
|
+
observer.observe(node);
|
|
36
|
+
return () => observer.disconnect();
|
|
37
|
+
}, []);
|
|
38
|
+
return {
|
|
39
|
+
ref,
|
|
40
|
+
width
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export { useElementWidth as n, useElementSize as t };
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=use-width-DZex74TT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-width-DZex74TT.js","names":[],"sources":["../src/components/charts/xy/use-width.ts"],"sourcesContent":["\"use client\";\n\nimport {\n type Dispatch,\n type RefObject,\n type SetStateAction,\n useLayoutEffect,\n useRef,\n useState,\n} from \"react\";\n\nexport type ElementSize = { width: number; height: number };\n\n/**\n * Keeps `setSize` at `ref`'s rendered size. Zero sizes (a hidden plot) are\n * skipped, and an unchanged size keeps the previous object, so nothing\n * re-renders for a resize that changed nothing.\n */\nexport function useElementSize(\n ref: RefObject<HTMLElement | null>,\n setSize: Dispatch<SetStateAction<ElementSize>>,\n) {\n useLayoutEffect(() => {\n const node = ref.current;\n if (!node) return;\n const measure = () => {\n const { width, height } = node.getBoundingClientRect();\n if (width > 0 && height > 0)\n setSize((size) =>\n size.width === width && size.height === height ? size : { width, height },\n );\n };\n measure();\n const observer = new ResizeObserver(measure);\n observer.observe(node);\n return () => observer.disconnect();\n }, [ref, setSize]);\n}\n\n/** Pixel geometry keeps dots round and strokes even; nothing renders before the first measure. */\nexport function useElementWidth<T extends HTMLElement>() {\n const ref = useRef<T>(null);\n const [width, setWidth] = useState(0);\n useLayoutEffect(() => {\n const node = ref.current;\n if (!node) return;\n const update = () => setWidth(node.clientWidth);\n update();\n const observer = new ResizeObserver(update);\n observer.observe(node);\n return () => observer.disconnect();\n }, []);\n return { ref, width };\n}\n"],"mappings":";;;;;;;AAkBA,SAAgB,eACd,KACA,SACA;CACA,sBAAsB;EACpB,MAAM,OAAO,IAAI;EACjB,IAAI,CAAC,MAAM;EACX,MAAM,gBAAgB;GACpB,MAAM,EAAE,OAAO,WAAW,KAAK,sBAAsB;GACrD,IAAI,QAAQ,KAAK,SAAS,GACxB,SAAS,SACP,KAAK,UAAU,SAAS,KAAK,WAAW,SAAS,OAAO;IAAE;IAAO;GAAO,CAC1E;EACJ;EACA,QAAQ;EACR,MAAM,WAAW,IAAI,eAAe,OAAO;EAC3C,SAAS,QAAQ,IAAI;EACrB,aAAa,SAAS,WAAW;CACnC,GAAG,CAAC,KAAK,OAAO,CAAC;AACnB;;AAGA,SAAgB,kBAAyC;CACvD,MAAM,MAAM,OAAU,IAAI;CAC1B,MAAM,CAAC,OAAO,YAAY,SAAS,CAAC;CACpC,sBAAsB;EACpB,MAAM,OAAO,IAAI;EACjB,IAAI,CAAC,MAAM;EACX,MAAM,eAAe,SAAS,KAAK,WAAW;EAC9C,OAAO;EACP,MAAM,WAAW,IAAI,eAAe,MAAM;EAC1C,SAAS,QAAQ,IAAI;EACrB,aAAa,SAAS,WAAW;CACnC,GAAG,CAAC,CAAC;CACL,OAAO;EAAE;EAAK;CAAM;AACtB"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { EASE_OUT } from "./lib/ease.js";
|
|
2
|
+
// src/components/motion/attachment-upload/utils.ts
|
|
3
|
+
const ITEM_TRANSITION = {
|
|
4
|
+
duration: .2,
|
|
5
|
+
ease: EASE_OUT
|
|
6
|
+
};
|
|
7
|
+
const DEFAULT_MAX_FILE_SIZE = 524288e3;
|
|
8
|
+
const UPLOAD_COMPLETE_HOLD_MS = 1e3;
|
|
9
|
+
const UNITS = [
|
|
10
|
+
"byte",
|
|
11
|
+
"kilobyte",
|
|
12
|
+
"megabyte",
|
|
13
|
+
"gigabyte"
|
|
14
|
+
];
|
|
15
|
+
/** `locale` localizes digits and unit names; without it the English `KB`/`MB` form stays. */
|
|
16
|
+
function formatUnit(value, unit, digits, locale) {
|
|
17
|
+
if (!locale) return `${value.toFixed(digits)} ${[
|
|
18
|
+
"B",
|
|
19
|
+
"KB",
|
|
20
|
+
"MB",
|
|
21
|
+
"GB"
|
|
22
|
+
][unit]}`;
|
|
23
|
+
return new Intl.NumberFormat(locale, {
|
|
24
|
+
style: "unit",
|
|
25
|
+
unit: UNITS[unit],
|
|
26
|
+
minimumFractionDigits: digits,
|
|
27
|
+
maximumFractionDigits: digits
|
|
28
|
+
}).format(value);
|
|
29
|
+
}
|
|
30
|
+
function formatBytes(bytes, locale) {
|
|
31
|
+
if (bytes === void 0 || !Number.isFinite(bytes) || bytes <= 0) return null;
|
|
32
|
+
const exponent = Math.min(Math.floor(Math.log(bytes) / Math.log(1024)), UNITS.length - 1);
|
|
33
|
+
const value = bytes / 1024 ** exponent;
|
|
34
|
+
return formatUnit(value, exponent, value >= 10 || exponent === 0 ? 0 : 1, locale);
|
|
35
|
+
}
|
|
36
|
+
function formatDuration(seconds) {
|
|
37
|
+
const safeSeconds = Math.max(0, Math.round(seconds ?? 0));
|
|
38
|
+
return `${Math.floor(safeSeconds / 60)}:${String(safeSeconds % 60).padStart(2, "0")}`;
|
|
39
|
+
}
|
|
40
|
+
function formatMaxSize(bytes, locale) {
|
|
41
|
+
const megabytes = bytes / 1048576;
|
|
42
|
+
return formatUnit(megabytes, 2, Number.isInteger(megabytes) ? 0 : 1, locale);
|
|
43
|
+
}
|
|
44
|
+
function inferKind(file) {
|
|
45
|
+
if (file.type.startsWith("image/")) return "image";
|
|
46
|
+
if (file.type.startsWith("audio/")) return "audio";
|
|
47
|
+
return "file";
|
|
48
|
+
}
|
|
49
|
+
function imageSource(item) {
|
|
50
|
+
if (item.kind !== "image") return void 0;
|
|
51
|
+
return item.previewUrl ?? item.href;
|
|
52
|
+
}
|
|
53
|
+
export { formatDuration as a, inferKind as c, formatBytes as i, ITEM_TRANSITION as n, formatMaxSize as o, UPLOAD_COMPLETE_HOLD_MS as r, imageSource as s, DEFAULT_MAX_FILE_SIZE as t };
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=utils-f7_cAAwc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils-f7_cAAwc.js","names":[],"sources":["../src/components/motion/attachment-upload/utils.ts"],"sourcesContent":["\"use client\";\n\nimport { EASE_OUT } from \"../../../lib/ease\";\nimport type { AttachmentUploadItem, AttachmentUploadKind } from \"./types\";\n\nexport const ITEM_TRANSITION = { duration: 0.2, ease: EASE_OUT } as const;\nexport const DEFAULT_MAX_FILE_SIZE = 500 * 1024 * 1024;\nexport const UPLOAD_PROGRESS_MS = 900;\nexport const UPLOAD_COMPLETE_HOLD_MS = 1000;\nexport const REMOVE_PENDING_MS = 420;\n\nconst UNITS = [\"byte\", \"kilobyte\", \"megabyte\", \"gigabyte\"] as const;\n\n/** `locale` localizes digits and unit names; without it the English `KB`/`MB` form stays. */\nfunction formatUnit(value: number, unit: number, digits: number, locale?: string) {\n if (!locale) return `${value.toFixed(digits)} ${[\"B\", \"KB\", \"MB\", \"GB\"][unit]}`;\n return new Intl.NumberFormat(locale, {\n style: \"unit\",\n unit: UNITS[unit],\n minimumFractionDigits: digits,\n maximumFractionDigits: digits,\n }).format(value);\n}\n\nexport function formatBytes(bytes: number | undefined, locale?: string) {\n if (bytes === undefined || !Number.isFinite(bytes) || bytes <= 0) {\n return null;\n }\n\n const exponent = Math.min(Math.floor(Math.log(bytes) / Math.log(1024)), UNITS.length - 1);\n const value = bytes / 1024 ** exponent;\n\n return formatUnit(value, exponent, value >= 10 || exponent === 0 ? 0 : 1, locale);\n}\n\nexport function formatDuration(seconds: number | undefined) {\n const safeSeconds = Math.max(0, Math.round(seconds ?? 0));\n const minutes = Math.floor(safeSeconds / 60);\n return `${minutes}:${String(safeSeconds % 60).padStart(2, \"0\")}`;\n}\n\nexport function formatMaxSize(bytes: number, locale?: string) {\n const megabytes = bytes / (1024 * 1024);\n return formatUnit(megabytes, 2, Number.isInteger(megabytes) ? 0 : 1, locale);\n}\n\nexport function inferKind(file: File): AttachmentUploadKind {\n if (file.type.startsWith(\"image/\")) return \"image\";\n if (file.type.startsWith(\"audio/\")) return \"audio\";\n return \"file\";\n}\n\nexport function imageSource(item: AttachmentUploadItem) {\n if (item.kind !== \"image\") return undefined;\n return item.previewUrl ?? item.href;\n}\n"],"mappings":";;AAKA,MAAa,kBAAkB;CAAE,UAAU;CAAK,MAAM;AAAS;AAC/D,MAAa,wBAAwB;AAErC,MAAa,0BAA0B;AAGvC,MAAM,QAAQ;CAAC;CAAQ;CAAY;CAAY;AAAU;;AAGzD,SAAS,WAAW,OAAe,MAAc,QAAgB,QAAiB;CAChF,IAAI,CAAC,QAAQ,OAAO,GAAG,MAAM,QAAQ,MAAM,EAAE,GAAG;EAAC;EAAK;EAAM;EAAM;CAAI,CAAC,CAAC;CACxE,OAAO,IAAI,KAAK,aAAa,QAAQ;EACnC,OAAO;EACP,MAAM,MAAM;EACZ,uBAAuB;EACvB,uBAAuB;CACzB,CAAC,CAAC,CAAC,OAAO,KAAK;AACjB;AAEA,SAAgB,YAAY,OAA2B,QAAiB;CACtE,IAAI,UAAU,KAAA,KAAa,CAAC,OAAO,SAAS,KAAK,KAAK,SAAS,GAC7D,OAAO;CAGT,MAAM,WAAW,KAAK,IAAI,KAAK,MAAM,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,IAAI,CAAC,GAAG,MAAM,SAAS,CAAC;CACxF,MAAM,QAAQ,QAAQ,QAAQ;CAE9B,OAAO,WAAW,OAAO,UAAU,SAAS,MAAM,aAAa,IAAI,IAAI,GAAG,MAAM;AAClF;AAEA,SAAgB,eAAe,SAA6B;CAC1D,MAAM,cAAc,KAAK,IAAI,GAAG,KAAK,MAAM,WAAW,CAAC,CAAC;CAExD,OAAO,GADS,KAAK,MAAM,cAAc,EACzB,EAAE,GAAG,OAAO,cAAc,EAAE,CAAC,CAAC,SAAS,GAAG,GAAG;AAC/D;AAEA,SAAgB,cAAc,OAAe,QAAiB;CAC5D,MAAM,YAAY,QAAS;CAC3B,OAAO,WAAW,WAAW,GAAG,OAAO,UAAU,SAAS,IAAI,IAAI,GAAG,MAAM;AAC7E;AAEA,SAAgB,UAAU,MAAkC;CAC1D,IAAI,KAAK,KAAK,WAAW,QAAQ,GAAG,OAAO;CAC3C,IAAI,KAAK,KAAK,WAAW,QAAQ,GAAG,OAAO;CAC3C,OAAO;AACT;AAEA,SAAgB,YAAY,MAA4B;CACtD,IAAI,KAAK,SAAS,SAAS,OAAO,KAAA;CAClC,OAAO,KAAK,cAAc,KAAK;AACjC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kumix/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Kumix React UI kit: shadcn/ui (Base UI, base-nova) + ReUI components, Tailwind tokens, and hooks. Per-file ESM exports.",
|
|
5
5
|
"author": "Kumix Labs <hai@kumix.io>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -73,47 +73,47 @@
|
|
|
73
73
|
"@dnd-kit/sortable": "^10.0.0",
|
|
74
74
|
"@dnd-kit/utilities": "^3.2.2",
|
|
75
75
|
"@floating-ui/dom": "^1.8.0",
|
|
76
|
-
"@headless-tree/core": "^1.8.
|
|
76
|
+
"@headless-tree/core": "^1.8.1",
|
|
77
77
|
"@kumix/tsconfig": "^0.1.0",
|
|
78
78
|
"@kumix/utils": "^0.3.0",
|
|
79
79
|
"@paper-design/shaders-react": "^0.0.82",
|
|
80
80
|
"@shadcn/react": "^0.3.1",
|
|
81
81
|
"@tanstack/react-table": "^9.3.1",
|
|
82
|
-
"@tanstack/react-virtual": "^3.14.
|
|
83
|
-
"@types/react": "^19.3.
|
|
82
|
+
"@tanstack/react-virtual": "^3.14.30",
|
|
83
|
+
"@types/react": "^19.3.3",
|
|
84
84
|
"class-variance-authority": "^0.7.1",
|
|
85
85
|
"clsx": "^2.1.1",
|
|
86
86
|
"cmdk": "^1.1.1",
|
|
87
87
|
"date-fns": "^4.4.0",
|
|
88
88
|
"embla-carousel-react": "^8.6.0",
|
|
89
89
|
"input-otp": "^1.5.0",
|
|
90
|
-
"lenis": "^1.3.
|
|
91
|
-
"lucide-react": "^1.
|
|
90
|
+
"lenis": "^1.3.29",
|
|
91
|
+
"lucide-react": "^1.84.0",
|
|
92
92
|
"motion": "^14.14.0",
|
|
93
93
|
"next-themes": "^0.4.6",
|
|
94
94
|
"react": "^19.3.1",
|
|
95
95
|
"react-day-picker": "^10.0.2",
|
|
96
96
|
"react-phone-number-input": "^3.4.18",
|
|
97
|
-
"react-resizable-panels": "^4.
|
|
98
|
-
"recharts": "3.11.
|
|
97
|
+
"react-resizable-panels": "^4.27.0",
|
|
98
|
+
"recharts": "3.11.3",
|
|
99
99
|
"shiki": "^4.6.0",
|
|
100
100
|
"tailwind-merge": "^3.7.1",
|
|
101
101
|
"tsdown": "^0.23.7",
|
|
102
102
|
"typescript": "6.0.3"
|
|
103
103
|
},
|
|
104
104
|
"peerDependencies": {
|
|
105
|
-
"@base-ui/react": ">=1.
|
|
105
|
+
"@base-ui/react": ">=1.9.0",
|
|
106
106
|
"@date-fns/tz": ">=1.5.0",
|
|
107
107
|
"@dnd-kit/core": ">=6.3.0",
|
|
108
108
|
"@dnd-kit/modifiers": ">=9.0.0",
|
|
109
109
|
"@dnd-kit/sortable": ">=10.0.0",
|
|
110
110
|
"@dnd-kit/utilities": ">=3.2.0",
|
|
111
111
|
"@floating-ui/dom": ">=1.8.0",
|
|
112
|
-
"@headless-tree/core": ">=1.
|
|
112
|
+
"@headless-tree/core": ">=1.8.0",
|
|
113
113
|
"@kumix/utils": ">=0.3.0",
|
|
114
|
-
"@paper-design/shaders-react": ">=0.0.
|
|
114
|
+
"@paper-design/shaders-react": ">=0.0.80",
|
|
115
115
|
"@shadcn/react": ">=0.3.0",
|
|
116
|
-
"@tanstack/react-table": ">=9.
|
|
116
|
+
"@tanstack/react-table": ">=9.3.0",
|
|
117
117
|
"@tanstack/react-virtual": ">=3.10.0",
|
|
118
118
|
"class-variance-authority": ">=0.7.0",
|
|
119
119
|
"cmdk": ">=1.1.0",
|
|
@@ -121,15 +121,15 @@
|
|
|
121
121
|
"embla-carousel-react": ">=8.6.0",
|
|
122
122
|
"input-otp": ">=1.5.0",
|
|
123
123
|
"lenis": ">=1.3.0",
|
|
124
|
-
"lucide-react": ">=1.
|
|
125
|
-
"motion": ">=14.
|
|
124
|
+
"lucide-react": ">=1.80.0",
|
|
125
|
+
"motion": ">=14.10.0",
|
|
126
126
|
"next-themes": ">=0.4.5",
|
|
127
127
|
"react": ">=18.0.0 || >=19.0.0-rc.0",
|
|
128
128
|
"react-day-picker": ">=10.0.0",
|
|
129
129
|
"react-phone-number-input": ">=3.4.0",
|
|
130
|
-
"react-resizable-panels": ">=4.
|
|
130
|
+
"react-resizable-panels": ">=4.20.0",
|
|
131
131
|
"recharts": ">=3.10.0",
|
|
132
|
-
"shiki": ">=4.
|
|
132
|
+
"shiki": ">=4.5.0"
|
|
133
133
|
},
|
|
134
134
|
"peerDependenciesMeta": {
|
|
135
135
|
"@date-fns/tz": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/components/agents/agent-activity/index.tsx"],"mappings":";wBAmIgB,gBACd,OACA,aAAa,oBACb,QACA,UACA,MACA,aACA,cACA,oBACA,aACA,SACA,qBACA,uBACA,WACA,QACA,WACA,oBACC,qCAAkB,IAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../../src/components/agents/agent-activity/messages.ts","../../../../src/components/agents/agent-activity/index.tsx"],"sourcesContent":["\"use client\";\n\nexport const agentActivityMessages = {\n thinking: \"Thinking…\",\n searching: \"Searching the web…\",\n runningTools: \"Running tools…\",\n workingTrace: \"Working through the run…\",\n workingMixed: \"Working through it…\",\n thoughtFor: \"Thought for {duration}\",\n seconds: \"{seconds}s\",\n minutes: \"{minutes}m\",\n minutesSeconds: \"{minutes}m {seconds}s\",\n searched: \"Searched the web\",\n ranToolsOne: \"Ran {count} tool\",\n ranToolsOther: \"Ran {count} tools\",\n traceSummary: \"{toolCalls}, {messages}\",\n toolCallsOne: \"{count} tool call\",\n toolCallsOther: \"{count} tool calls\",\n messagesOne: \"{count} message\",\n messagesOther: \"{count} messages\",\n completedStepsOne: \"Completed {count} step\",\n completedStepsOther: \"Completed {count} steps\",\n moreResults: \"+{count} more\",\n read: \"Read\",\n edit: \"Edit\",\n write: \"Write\",\n run: \"Run\",\n};\n\nexport type AgentActivityMessages = typeof agentActivityMessages;\n\nexport type AgentActivityTranslate = (\n key: keyof AgentActivityMessages,\n values?: Record<string, string | number>,\n) => string;\n","\"use client\";\n\nimport {\n type ReactNode,\n useCallback,\n useEffect,\n useId,\n useLayoutEffect,\n useRef,\n useState,\n} from \"react\";\nimport { ChevronDown } from \"lucide-react\";\nimport { AnimatePresence, motion, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_OUT, SPRING_LAYOUT, SPRING_SWAP } from \"../../../lib/ease\";\nimport { useMessages } from \"../../../lib/i18n\";\nimport { AgentDisclosure } from \"../agent-disclosure\";\nimport { ThinkingShimmer } from \"../loading-states/thinking-shimmer\";\nimport { ActivityRow } from \"./activity-row\";\nimport { type AgentActivityTranslate, agentActivityMessages } from \"./messages\";\nimport type { AgentActivityContentType, AgentActivityItem, AgentActivityProps } from \"./types\";\n\nexport {\n type AgentActivityMessages,\n agentActivityMessages,\n} from \"./messages\";\nexport type {\n AgentActivityContentType,\n AgentActivityItem,\n AgentActivityProps,\n AgentActivitySearch,\n AgentActivityStatus,\n AgentActivityStep,\n AgentActivityText,\n AgentActivityTool,\n AgentActivityTrace,\n AgentSearchResult,\n AgentStepStatus,\n AgentTraceKind,\n} from \"./types\";\n\nfunction formatDuration(duration: number, t: AgentActivityTranslate) {\n const seconds = Math.max(0, Math.round(duration));\n if (seconds < 60) return t(\"seconds\", { seconds });\n\n const minutes = Math.floor(seconds / 60);\n const remainder = seconds % 60;\n return remainder === 0\n ? t(\"minutes\", { minutes })\n : t(\"minutesSeconds\", { minutes, seconds: remainder });\n}\n\nfunction useControllableOpen({\n open,\n defaultOpen,\n onOpenChange,\n}: {\n open?: boolean;\n defaultOpen: boolean;\n onOpenChange?: (open: boolean) => void;\n}) {\n const [internalOpen, setInternalOpen] = useState(defaultOpen);\n const controlled = open !== undefined;\n const currentOpen = open ?? internalOpen;\n\n const setOpen = useCallback(\n (next: boolean) => {\n if (!controlled) setInternalOpen(next);\n onOpenChange?.(next);\n },\n [controlled, onOpenChange],\n );\n\n return [currentOpen, setOpen] as const;\n}\n\nfunction getContentType(items: AgentActivityItem[]): AgentActivityContentType {\n const first = items[0]?.type;\n return first && items.every((item) => item.type === first) ? first : \"mixed\";\n}\n\nfunction getActiveLabel(type: AgentActivityContentType, t: AgentActivityTranslate) {\n if (type === \"search\") return t(\"searching\");\n if (type === \"tool\") return t(\"runningTools\");\n if (type === \"trace\") return t(\"workingTrace\");\n if (type === \"mixed\") return t(\"workingMixed\");\n return t(\"thinking\");\n}\n\nfunction getSummary(\n type: AgentActivityContentType,\n items: AgentActivityItem[],\n duration: number,\n t: AgentActivityTranslate,\n): ReactNode {\n const count = items.length;\n if (type === \"step\" || type === \"text\") {\n // Raw template, split around the placeholder so the duration keeps its tabular figures.\n const [before, after = \"\"] = t(\"thoughtFor\").split(\"{duration}\");\n return (\n <>\n {before}\n <span className=\"tabular-nums\">{formatDuration(duration, t)}</span>\n {after}\n </>\n );\n }\n if (type === \"search\") return t(\"searched\");\n if (type === \"tool\") {\n return t(count === 1 ? \"ranToolsOne\" : \"ranToolsOther\", { count });\n }\n if (type === \"trace\") {\n const messages = items.filter(\n (item) => item.type === \"trace\" && (item.kind === \"thinking\" || item.kind === \"message\"),\n ).length;\n const tools = count - messages;\n return t(\"traceSummary\", {\n toolCalls: t(tools === 1 ? \"toolCallsOne\" : \"toolCallsOther\", {\n count: tools,\n }),\n messages: t(messages === 1 ? \"messagesOne\" : \"messagesOther\", {\n count: messages,\n }),\n });\n }\n return t(count === 1 ? \"completedStepsOne\" : \"completedStepsOther\", {\n count,\n });\n}\n\nexport function AgentActivity({\n items,\n contentType: initialContentType,\n status = \"working\",\n duration = 0,\n open,\n defaultOpen = false,\n onOpenChange,\n collapseOnComplete = true,\n activeLabel,\n summary,\n renderWorkingStatus,\n renderCompletedStatus,\n maxHeight = 208,\n labels,\n className,\n contentClassName,\n}: AgentActivityProps) {\n const reduce = useReducedMotion() ?? false;\n const t = useMessages(\"agentActivity\", agentActivityMessages, labels);\n const baseId = useId();\n const triggerId = `${baseId}-trigger`;\n const contentId = `${baseId}-content`;\n const contentRef = useRef<HTMLDivElement>(null);\n const viewportRef = useRef<HTMLDivElement>(null);\n const previousStatus = useRef(status);\n const [contentHeight, setContentHeight] = useState(0);\n const [currentOpen, setOpen] = useControllableOpen({\n open,\n defaultOpen,\n onOpenChange,\n });\n const working = status === \"working\";\n const expanded = working || currentOpen;\n const contentType = items.length ? getContentType(items) : (initialContentType ?? \"mixed\");\n const cappedHeight = Math.min(contentHeight, Math.max(0, maxHeight));\n const viewportHeight = working ? Math.max(0, maxHeight) : cappedHeight;\n const capped = contentHeight > maxHeight;\n const streamOffset = working ? Math.min(0, viewportHeight - contentHeight) : 0;\n\n useLayoutEffect(() => {\n const node = contentRef.current;\n if (!node) return;\n\n const measure = () => setContentHeight(node.offsetHeight);\n measure();\n\n if (typeof ResizeObserver === \"undefined\") return;\n const observer = new ResizeObserver(measure);\n observer.observe(node);\n return () => observer.disconnect();\n }, []);\n\n useEffect(() => {\n if (previousStatus.current === \"working\" && status === \"complete\") {\n setOpen(!collapseOnComplete);\n }\n previousStatus.current = status;\n }, [collapseOnComplete, setOpen, status]);\n\n const toggle = () => {\n const next = !currentOpen;\n setOpen(next);\n if (next) requestAnimationFrame(() => viewportRef.current?.scrollTo({ top: 0 }));\n };\n\n const liveLabel = activeLabel ?? getActiveLabel(contentType, t);\n const completedSummary = summary ?? getSummary(contentType, items, duration, t);\n const maskImage = capped\n ? working\n ? \"linear-gradient(to bottom, transparent, black 12px)\"\n : \"linear-gradient(to bottom, transparent, black 12px, black calc(100% - 12px), transparent)\"\n : undefined;\n\n return (\n <div\n data-state={working ? \"working\" : expanded ? \"open\" : \"closed\"}\n data-content={contentType}\n aria-busy={working}\n className={cn(\"w-full text-sm\", className)}\n >\n {working ? (\n <div\n id={triggerId}\n role=\"status\"\n className=\"text-muted-foreground flex h-7 min-w-0 items-center\"\n >\n {renderWorkingStatus ? (\n renderWorkingStatus({ label: liveLabel, duration })\n ) : (\n <ThinkingShimmer>{liveLabel}</ThinkingShimmer>\n )}\n </div>\n ) : (\n <button\n id={triggerId}\n type=\"button\"\n aria-expanded={expanded}\n aria-controls={contentId}\n onClick={toggle}\n className=\"group text-muted-foreground hover:text-foreground focus-visible:ring-ring focus-visible:ring-offset-background flex h-7 min-w-0 items-center gap-1.5 rounded-md text-left font-medium transition-colors outline-none focus-visible:ring-2 focus-visible:ring-offset-2\"\n >\n <span className=\"truncate\">\n {renderCompletedStatus\n ? renderCompletedStatus({ summary: completedSummary, duration })\n : completedSummary}\n </span>\n <motion.span\n aria-hidden=\"true\"\n animate={{ rotate: expanded ? 180 : 0 }}\n transition={reduce ? { duration: 0 } : SPRING_SWAP}\n className=\"text-muted-foreground/70 group-hover:text-foreground inline-flex shrink-0\"\n >\n <ChevronDown className=\"size-3.5\" />\n </motion.span>\n </button>\n )}\n\n <AgentDisclosure\n id={contentId}\n role=\"region\"\n aria-labelledby={triggerId}\n open={expanded}\n openHeight={viewportHeight}\n >\n <div\n ref={viewportRef}\n className={cn(\n \"scrollbar-hide pr-1\",\n capped && expanded && !working ? \"overflow-y-auto\" : \"overflow-y-hidden\",\n )}\n style={{ height: viewportHeight, maskImage, WebkitMaskImage: maskImage }}\n >\n <motion.div\n ref={contentRef}\n role=\"list\"\n initial={false}\n animate={{ y: streamOffset }}\n transition={reduce ? { duration: 0 } : SPRING_LAYOUT}\n className={cn(\"space-y-0.5 py-2\", contentClassName)}\n >\n <AnimatePresence mode=\"popLayout\">\n {items.map((item) => (\n <motion.div\n layout=\"position\"\n key={item.id}\n role=\"listitem\"\n initial={reduce ? { opacity: 1 } : { opacity: 0, y: 6 }}\n animate={{ opacity: 1, y: 0 }}\n exit={reduce ? { opacity: 0 } : { opacity: 0, y: -3 }}\n transition={\n reduce\n ? { duration: 0 }\n : {\n opacity: { duration: 0.18, ease: EASE_OUT },\n y: SPRING_LAYOUT,\n layout: SPRING_LAYOUT,\n }\n }\n >\n <ActivityRow item={item} t={t} />\n </motion.div>\n ))}\n </AnimatePresence>\n </motion.div>\n </div>\n </AgentDisclosure>\n </div>\n );\n}\n"],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../../src/components/agents/approval-card/messages.ts","../../../../src/components/agents/approval-card/types.ts","../../../../src/components/agents/approval-card/index.tsx"],"mappings":";qBAEa;;;;;;;;;;;;;;;;;;;KAoBD,8BAA8B;KChB9B;UAQK;EACf;EACA;;EAEA;EACA;;UAGe;EACf;EACA,OAAO;EACP,cAAc;EACd,UAAU;EACV;EACA;EACA;EACA;;UAGe;EACf;EACA;;KAGU,sBAAsB,eAAe;UAEhC;EACf,QAAQ;EACR,cAAc;EACd,WAAW;EACX,YAAY;EACZ,SAAS;EACT,UAAU;EACV,iBAAiB;EACjB,mBAAmB,SAAS;EAC5B;EACA;EACA,gBAAgB;EAChB,YAAY,SAAS;EACrB;EACA;EACA;EACA;EACA,eAAe;EACf,cAAc;EACd,SAAS;;EAET,SAAS,QAAQ;EACjB;;wBCkIc,eACd,OACA,aACA,UACA,WACA,QACA,SACA,gBACA,iBACA,MACA,aACA,cACA,UACA,WACA,UACA,kBACA,WACA,cACA,aACA,QACA,QACA,aACC,oCAAiB,IAAA"}
|