@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,443 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useCallback, useEffect, useId, useRef, useState } from "react";
|
|
3
|
+
import { ChevronDown, LoaderCircle, Shrink, TriangleAlert } from "lucide-react";
|
|
4
|
+
import { AnimatePresence, animate, motion, useMotionValue, useReducedMotion, useTransform } from "motion/react";
|
|
5
|
+
import { cn } from "@kumix/utils";
|
|
6
|
+
import { useDismiss } from "../../hooks/use-dismiss.js";
|
|
7
|
+
import { EASE_OUT } from "../../lib/ease.js";
|
|
8
|
+
import { useMessages } from "../../lib/i18n.js";
|
|
9
|
+
import { PresenceGate } from "../../lib/presence-gate.js";
|
|
10
|
+
import { AnimatedNumber } from "../motion/animated-number.js";
|
|
11
|
+
import { t as Tooltip } from "../../tooltip-gHv-6eOs.js";
|
|
12
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
// src/components/agents/context-meter.tsx
|
|
14
|
+
/** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */
|
|
15
|
+
const contextMeterMessages = {
|
|
16
|
+
trigger: "Context window: {percent}% used, {used} of {limit} tokens",
|
|
17
|
+
collapse: "Hide context breakdown",
|
|
18
|
+
tokens: "/ {limit} tokens",
|
|
19
|
+
free: "Free",
|
|
20
|
+
warning: "Nearing the limit. Compact to free up space.",
|
|
21
|
+
danger: "Almost full. Older messages may be dropped.",
|
|
22
|
+
compact: "Compact",
|
|
23
|
+
compacting: "Compacting",
|
|
24
|
+
warningReached: "Context window {percent}% full"
|
|
25
|
+
};
|
|
26
|
+
const MORPH_OPEN = {
|
|
27
|
+
type: "spring",
|
|
28
|
+
duration: .5,
|
|
29
|
+
bounce: .2
|
|
30
|
+
};
|
|
31
|
+
const MORPH_CLOSE = {
|
|
32
|
+
type: "spring",
|
|
33
|
+
duration: .4,
|
|
34
|
+
bounce: .12
|
|
35
|
+
};
|
|
36
|
+
const INSTANT = { duration: 0 };
|
|
37
|
+
const FILL = {
|
|
38
|
+
type: "spring",
|
|
39
|
+
duration: .55,
|
|
40
|
+
bounce: .18
|
|
41
|
+
};
|
|
42
|
+
const BAR_DELAY = .12;
|
|
43
|
+
const BAR_STAGGER = .05;
|
|
44
|
+
const CONTENT_OUT = {
|
|
45
|
+
duration: .12,
|
|
46
|
+
ease: EASE_OUT
|
|
47
|
+
};
|
|
48
|
+
const PILL_RADIUS = 16;
|
|
49
|
+
const PANEL_RADIUS = 16;
|
|
50
|
+
const ROW = "flex h-8 items-center gap-1.5 pr-3 pl-2 text-xs font-medium";
|
|
51
|
+
const RING = 16;
|
|
52
|
+
const STROKE = 2;
|
|
53
|
+
const R = 7;
|
|
54
|
+
const SHADES = [
|
|
55
|
+
"bg-primary",
|
|
56
|
+
"bg-primary/65",
|
|
57
|
+
"bg-primary/40",
|
|
58
|
+
"bg-primary/25"
|
|
59
|
+
];
|
|
60
|
+
const LEVEL_TEXT = {
|
|
61
|
+
normal: "text-primary",
|
|
62
|
+
warning: "text-warning",
|
|
63
|
+
danger: "text-destructive"
|
|
64
|
+
};
|
|
65
|
+
const LIST = {
|
|
66
|
+
hidden: {},
|
|
67
|
+
show: { transition: {
|
|
68
|
+
staggerChildren: .03,
|
|
69
|
+
delayChildren: .06
|
|
70
|
+
} }
|
|
71
|
+
};
|
|
72
|
+
const ITEM = {
|
|
73
|
+
hidden: {
|
|
74
|
+
opacity: 0,
|
|
75
|
+
y: 4,
|
|
76
|
+
filter: "blur(2px)"
|
|
77
|
+
},
|
|
78
|
+
show: {
|
|
79
|
+
opacity: 1,
|
|
80
|
+
y: 0,
|
|
81
|
+
filter: "blur(0px)",
|
|
82
|
+
transition: {
|
|
83
|
+
duration: .22,
|
|
84
|
+
ease: EASE_OUT
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
const compactFormat = new Intl.NumberFormat("en", {
|
|
89
|
+
notation: "compact",
|
|
90
|
+
maximumFractionDigits: 1
|
|
91
|
+
});
|
|
92
|
+
function defaultFormat(tokens) {
|
|
93
|
+
return compactFormat.format(tokens).toLowerCase();
|
|
94
|
+
}
|
|
95
|
+
function shade(index) {
|
|
96
|
+
return SHADES[Math.min(index, SHADES.length - 1)];
|
|
97
|
+
}
|
|
98
|
+
function Ring({ progress, level }) {
|
|
99
|
+
const arcOpacity = useTransform(progress, (value) => value > .001 ? 1 : 0);
|
|
100
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
101
|
+
width: RING,
|
|
102
|
+
height: RING,
|
|
103
|
+
viewBox: `0 0 ${RING} ${RING}`,
|
|
104
|
+
"aria-hidden": "true",
|
|
105
|
+
className: cn("shrink-0 -rotate-90 transition-colors duration-200", LEVEL_TEXT[level]),
|
|
106
|
+
children: [/* @__PURE__ */ jsx("circle", {
|
|
107
|
+
cx: RING / 2,
|
|
108
|
+
cy: RING / 2,
|
|
109
|
+
r: R,
|
|
110
|
+
fill: "none",
|
|
111
|
+
stroke: "currentColor",
|
|
112
|
+
strokeWidth: STROKE,
|
|
113
|
+
className: "opacity-20"
|
|
114
|
+
}), /* @__PURE__ */ jsx(motion.circle, {
|
|
115
|
+
cx: RING / 2,
|
|
116
|
+
cy: RING / 2,
|
|
117
|
+
r: R,
|
|
118
|
+
fill: "none",
|
|
119
|
+
stroke: "currentColor",
|
|
120
|
+
strokeWidth: STROKE,
|
|
121
|
+
strokeLinecap: "round",
|
|
122
|
+
style: {
|
|
123
|
+
pathLength: progress,
|
|
124
|
+
opacity: arcOpacity
|
|
125
|
+
}
|
|
126
|
+
})]
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Each segment is a full-width layer scaled to where it ends, earlier ones on
|
|
131
|
+
* top, and the gaps between them ride on translateX, so the bar animates on
|
|
132
|
+
* transform alone. It mounts with each open, so the staggered spring out from
|
|
133
|
+
* zero plays once per open and later changes spring without a delay.
|
|
134
|
+
*/
|
|
135
|
+
function MeterBar({ segments, ends, fill, springIn }) {
|
|
136
|
+
const [entered, setEntered] = useState(!springIn);
|
|
137
|
+
const delay = (index) => entered ? 0 : BAR_DELAY + index * BAR_STAGGER;
|
|
138
|
+
const last = segments.length - 1;
|
|
139
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
140
|
+
"aria-hidden": "true",
|
|
141
|
+
className: "bg-muted relative h-2 overflow-hidden rounded-full",
|
|
142
|
+
children: [segments.map((segment, index) => ({
|
|
143
|
+
segment,
|
|
144
|
+
index
|
|
145
|
+
})).reverse().map(({ segment, index }) => /* @__PURE__ */ jsx(motion.div, {
|
|
146
|
+
className: cn("absolute inset-0 origin-left", shade(index)),
|
|
147
|
+
initial: springIn ? { scaleX: 0 } : false,
|
|
148
|
+
animate: { scaleX: ends[index] },
|
|
149
|
+
transition: {
|
|
150
|
+
...fill,
|
|
151
|
+
delay: delay(index)
|
|
152
|
+
},
|
|
153
|
+
onAnimationComplete: index === last ? () => setEntered(true) : void 0
|
|
154
|
+
}, segment.key)), segments.map((segment, index) => /* @__PURE__ */ jsx(motion.div, {
|
|
155
|
+
className: "absolute inset-0",
|
|
156
|
+
initial: springIn ? { x: "0%" } : false,
|
|
157
|
+
animate: { x: `${ends[index] * 100}%` },
|
|
158
|
+
transition: {
|
|
159
|
+
...fill,
|
|
160
|
+
delay: delay(index)
|
|
161
|
+
},
|
|
162
|
+
children: /* @__PURE__ */ jsx("span", { className: "bg-background absolute inset-y-0 -left-px w-0.5" })
|
|
163
|
+
}, segment.key))]
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* A pill with a ring that shows how much of a model's context window a chat
|
|
168
|
+
* uses. Pressing it grows the pill itself into a breakdown by segment with
|
|
169
|
+
* what is left and, near the limit, a Compact action; it folds back into the
|
|
170
|
+
* pill on close. The app owns the counting: pass the segments in and shrink
|
|
171
|
+
* them when it compacts.
|
|
172
|
+
*/
|
|
173
|
+
function ContextMeter({ segments, limit, warnAt = .8, dangerAt = .95, onCompact, compacting = false, formatTokens = defaultFormat, side = "top", align = "start", labels, className, ...props }) {
|
|
174
|
+
const t = useMessages("contextMeter", contextMeterMessages, labels);
|
|
175
|
+
const reduce = useReducedMotion() ?? false;
|
|
176
|
+
const baseId = useId();
|
|
177
|
+
const surfaceId = `${baseId}-surface`;
|
|
178
|
+
const panelId = `${baseId}-panel`;
|
|
179
|
+
const rootRef = useRef(null);
|
|
180
|
+
const triggerRef = useRef(null);
|
|
181
|
+
const headerRef = useRef(null);
|
|
182
|
+
const [open, setOpenState] = useState(false);
|
|
183
|
+
const [instant, setInstant] = useState(false);
|
|
184
|
+
const restoreFocus = useRef(false);
|
|
185
|
+
const used = segments.reduce((sum, segment) => sum + Math.max(0, segment.tokens), 0);
|
|
186
|
+
const share = limit > 0 ? Math.min(1, used / limit) : 0;
|
|
187
|
+
const percent = Math.round(share * 100);
|
|
188
|
+
const level = percent >= dangerAt * 100 ? "danger" : percent >= warnAt * 100 ? "warning" : "normal";
|
|
189
|
+
const usedText = formatTokens(used);
|
|
190
|
+
const limitText = formatTokens(limit);
|
|
191
|
+
const setOpen = useCallback((next, now) => {
|
|
192
|
+
if (!next && rootRef.current?.contains(document.activeElement)) restoreFocus.current = true;
|
|
193
|
+
setInstant(now);
|
|
194
|
+
setOpenState(next);
|
|
195
|
+
}, []);
|
|
196
|
+
const dismiss = useCallback((reason) => setOpen(false, reason === "escape"), [setOpen]);
|
|
197
|
+
useDismiss(open, dismiss, rootRef);
|
|
198
|
+
useEffect(() => {
|
|
199
|
+
if (open) {
|
|
200
|
+
if (instant) headerRef.current?.focus();
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
if (!restoreFocus.current) return;
|
|
204
|
+
restoreFocus.current = false;
|
|
205
|
+
triggerRef.current?.focus();
|
|
206
|
+
}, [open, instant]);
|
|
207
|
+
const progress = useMotionValue(share);
|
|
208
|
+
useEffect(() => {
|
|
209
|
+
if (reduce) {
|
|
210
|
+
progress.set(share);
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
const controls = animate(progress, share, FILL);
|
|
214
|
+
return () => controls.stop();
|
|
215
|
+
}, [
|
|
216
|
+
share,
|
|
217
|
+
reduce,
|
|
218
|
+
progress
|
|
219
|
+
]);
|
|
220
|
+
const [announcement, setAnnouncement] = useState("");
|
|
221
|
+
const lastLevel = useRef(level);
|
|
222
|
+
useEffect(() => {
|
|
223
|
+
if (level === lastLevel.current) return;
|
|
224
|
+
const rising = level !== "normal" && (lastLevel.current === "normal" || level === "danger");
|
|
225
|
+
lastLevel.current = level;
|
|
226
|
+
setAnnouncement(rising ? t("warningReached", { percent }) : "");
|
|
227
|
+
}, [
|
|
228
|
+
level,
|
|
229
|
+
percent,
|
|
230
|
+
t
|
|
231
|
+
]);
|
|
232
|
+
let running = 0;
|
|
233
|
+
const ends = segments.map((segment) => {
|
|
234
|
+
running += Math.max(0, segment.tokens);
|
|
235
|
+
return limit > 0 ? Math.min(1, running / limit) : 0;
|
|
236
|
+
});
|
|
237
|
+
const morph = reduce || instant ? INSTANT : MORPH_OPEN;
|
|
238
|
+
const fold = reduce || instant ? INSTANT : MORPH_CLOSE;
|
|
239
|
+
const fill = reduce ? INSTANT : FILL;
|
|
240
|
+
const anchor = cn("absolute", side === "top" ? "bottom-0" : "top-0", align === "start" ? "left-0" : "right-0");
|
|
241
|
+
const pillContent = /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Ring, {
|
|
242
|
+
progress,
|
|
243
|
+
level
|
|
244
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
245
|
+
className: "w-[4ch] text-right tabular-nums",
|
|
246
|
+
children: [percent, "%"]
|
|
247
|
+
})] });
|
|
248
|
+
const chevron = /* @__PURE__ */ jsx(ChevronDown, {
|
|
249
|
+
"aria-hidden": "true",
|
|
250
|
+
className: cn("text-muted-foreground size-4", side === "bottom" && "rotate-180")
|
|
251
|
+
});
|
|
252
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
253
|
+
ref: rootRef,
|
|
254
|
+
className: cn("relative inline-flex", className),
|
|
255
|
+
...props,
|
|
256
|
+
children: [
|
|
257
|
+
/* @__PURE__ */ jsx("div", {
|
|
258
|
+
"aria-hidden": true,
|
|
259
|
+
inert: true,
|
|
260
|
+
className: cn(ROW, "invisible rounded-full border border-transparent"),
|
|
261
|
+
children: pillContent
|
|
262
|
+
}),
|
|
263
|
+
/* @__PURE__ */ jsx(AnimatePresence, {
|
|
264
|
+
initial: false,
|
|
265
|
+
mode: "popLayout",
|
|
266
|
+
children: !open ? /* @__PURE__ */ jsx(motion.button, {
|
|
267
|
+
ref: triggerRef,
|
|
268
|
+
layoutId: surfaceId,
|
|
269
|
+
type: "button",
|
|
270
|
+
"aria-expanded": false,
|
|
271
|
+
"aria-controls": panelId,
|
|
272
|
+
"aria-label": t("trigger", {
|
|
273
|
+
percent,
|
|
274
|
+
used: usedText,
|
|
275
|
+
limit: limitText
|
|
276
|
+
}),
|
|
277
|
+
onClick: (event) => setOpen(true, event.detail === 0),
|
|
278
|
+
transition: fold,
|
|
279
|
+
style: { borderRadius: PILL_RADIUS },
|
|
280
|
+
className: cn(ROW, anchor, "border-border bg-background text-foreground hover:bg-muted/60 focus-visible:ring-ring z-10 border transition-colors outline-none focus-visible:ring-2"),
|
|
281
|
+
children: /* @__PURE__ */ jsx(motion.span, {
|
|
282
|
+
layout: "position",
|
|
283
|
+
className: "flex items-center gap-1.5",
|
|
284
|
+
children: pillContent
|
|
285
|
+
})
|
|
286
|
+
}, "pill") : /* @__PURE__ */ jsx(motion.div, {
|
|
287
|
+
layoutId: surfaceId,
|
|
288
|
+
transition: morph,
|
|
289
|
+
style: { borderRadius: PANEL_RADIUS },
|
|
290
|
+
className: cn(anchor, "border-border bg-background text-foreground pointer-events-none z-30 w-72 max-w-[calc(100vw-2rem)] overflow-hidden border"),
|
|
291
|
+
children: /* @__PURE__ */ jsx(PresenceGate, { children: ({ gate, isPresent }) => /* @__PURE__ */ jsxs("div", {
|
|
292
|
+
...gate,
|
|
293
|
+
id: panelId,
|
|
294
|
+
className: cn("flex", side === "top" ? "flex-col-reverse" : "flex-col"),
|
|
295
|
+
children: [/* @__PURE__ */ jsxs(motion.button, {
|
|
296
|
+
ref: headerRef,
|
|
297
|
+
type: "button",
|
|
298
|
+
layout: "position",
|
|
299
|
+
"aria-expanded": true,
|
|
300
|
+
"aria-controls": panelId,
|
|
301
|
+
"aria-label": t("collapse"),
|
|
302
|
+
onClick: (event) => setOpen(false, event.detail === 0),
|
|
303
|
+
className: cn(ROW, "focus-visible:bg-muted/60 w-full outline-none"),
|
|
304
|
+
children: [
|
|
305
|
+
align === "end" && chevron,
|
|
306
|
+
align === "end" && /* @__PURE__ */ jsx("span", { className: "flex-1" }),
|
|
307
|
+
pillContent,
|
|
308
|
+
align === "start" && /* @__PURE__ */ jsx("span", { className: "flex-1" }),
|
|
309
|
+
align === "start" && chevron
|
|
310
|
+
]
|
|
311
|
+
}), /* @__PURE__ */ jsx(motion.div, {
|
|
312
|
+
layout: "position",
|
|
313
|
+
initial: false,
|
|
314
|
+
animate: { opacity: isPresent ? 1 : 0 },
|
|
315
|
+
transition: {
|
|
316
|
+
layout: morph,
|
|
317
|
+
opacity: CONTENT_OUT
|
|
318
|
+
},
|
|
319
|
+
children: /* @__PURE__ */ jsxs(motion.div, {
|
|
320
|
+
initial: reduce || instant ? false : "hidden",
|
|
321
|
+
animate: "show",
|
|
322
|
+
variants: LIST,
|
|
323
|
+
className: "px-3 pt-1 pb-3",
|
|
324
|
+
children: [
|
|
325
|
+
/* @__PURE__ */ jsxs(motion.div, {
|
|
326
|
+
variants: ITEM,
|
|
327
|
+
className: "flex items-center gap-2",
|
|
328
|
+
children: [/* @__PURE__ */ jsxs("p", {
|
|
329
|
+
className: "flex min-w-0 flex-1 items-baseline gap-1.5 tabular-nums",
|
|
330
|
+
children: [/* @__PURE__ */ jsx(AnimatedNumber, {
|
|
331
|
+
value: used,
|
|
332
|
+
format: (tokens) => formatTokens(Math.round(tokens)),
|
|
333
|
+
duration: reduce || instant ? 0 : .6,
|
|
334
|
+
startOnView: false,
|
|
335
|
+
className: "text-xl font-semibold tracking-tight"
|
|
336
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
337
|
+
className: "text-muted-foreground text-xs",
|
|
338
|
+
children: t("tokens", { limit: limitText })
|
|
339
|
+
})]
|
|
340
|
+
}), onCompact && /* @__PURE__ */ jsx(Tooltip, {
|
|
341
|
+
content: compacting ? t("compacting") : t("compact"),
|
|
342
|
+
side: "top",
|
|
343
|
+
children: /* @__PURE__ */ jsx("button", {
|
|
344
|
+
type: "button",
|
|
345
|
+
disabled: compacting,
|
|
346
|
+
"aria-busy": compacting,
|
|
347
|
+
"aria-label": compacting ? t("compacting") : t("compact"),
|
|
348
|
+
onClick: onCompact,
|
|
349
|
+
className: cn("text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:ring-ring inline-flex size-7 shrink-0 items-center justify-center rounded-full transition-colors focus-visible:ring-2 focus-visible:outline-none disabled:pointer-events-none", level !== "normal" && LEVEL_TEXT[level]),
|
|
350
|
+
children: compacting ? /* @__PURE__ */ jsx(LoaderCircle, {
|
|
351
|
+
"aria-hidden": "true",
|
|
352
|
+
className: "size-4 animate-spin"
|
|
353
|
+
}) : /* @__PURE__ */ jsx(Shrink, {
|
|
354
|
+
"aria-hidden": "true",
|
|
355
|
+
className: "size-4"
|
|
356
|
+
})
|
|
357
|
+
})
|
|
358
|
+
})]
|
|
359
|
+
}),
|
|
360
|
+
/* @__PURE__ */ jsx(motion.div, {
|
|
361
|
+
variants: ITEM,
|
|
362
|
+
className: "mt-2",
|
|
363
|
+
children: /* @__PURE__ */ jsx(MeterBar, {
|
|
364
|
+
segments,
|
|
365
|
+
ends,
|
|
366
|
+
fill,
|
|
367
|
+
springIn: !(reduce || instant)
|
|
368
|
+
})
|
|
369
|
+
}),
|
|
370
|
+
/* @__PURE__ */ jsxs("ul", {
|
|
371
|
+
className: "mt-3 space-y-1.5 text-xs",
|
|
372
|
+
children: [segments.map((segment, index) => {
|
|
373
|
+
const tokens = Math.max(0, segment.tokens);
|
|
374
|
+
return /* @__PURE__ */ jsxs(motion.li, {
|
|
375
|
+
variants: ITEM,
|
|
376
|
+
className: "flex items-center gap-2",
|
|
377
|
+
children: [
|
|
378
|
+
/* @__PURE__ */ jsx("span", {
|
|
379
|
+
"aria-hidden": "true",
|
|
380
|
+
className: cn("size-2 shrink-0 rounded-full", shade(index))
|
|
381
|
+
}),
|
|
382
|
+
/* @__PURE__ */ jsx("span", {
|
|
383
|
+
className: "min-w-0 flex-1 truncate",
|
|
384
|
+
children: segment.label
|
|
385
|
+
}),
|
|
386
|
+
/* @__PURE__ */ jsx("span", {
|
|
387
|
+
className: "text-muted-foreground tabular-nums",
|
|
388
|
+
children: formatTokens(tokens)
|
|
389
|
+
}),
|
|
390
|
+
/* @__PURE__ */ jsxs("span", {
|
|
391
|
+
className: "text-muted-foreground w-[4ch] text-right tabular-nums",
|
|
392
|
+
children: [limit > 0 ? Math.round(tokens / limit * 100) : 0, "%"]
|
|
393
|
+
})
|
|
394
|
+
]
|
|
395
|
+
}, segment.key);
|
|
396
|
+
}), /* @__PURE__ */ jsxs(motion.li, {
|
|
397
|
+
variants: ITEM,
|
|
398
|
+
className: "text-muted-foreground flex items-center gap-2",
|
|
399
|
+
children: [
|
|
400
|
+
/* @__PURE__ */ jsx("span", {
|
|
401
|
+
"aria-hidden": "true",
|
|
402
|
+
className: "border-border size-2 shrink-0 rounded-full border"
|
|
403
|
+
}),
|
|
404
|
+
/* @__PURE__ */ jsx("span", {
|
|
405
|
+
className: "min-w-0 flex-1 truncate",
|
|
406
|
+
children: t("free")
|
|
407
|
+
}),
|
|
408
|
+
/* @__PURE__ */ jsx("span", {
|
|
409
|
+
className: "tabular-nums",
|
|
410
|
+
children: formatTokens(Math.max(0, limit - used))
|
|
411
|
+
}),
|
|
412
|
+
/* @__PURE__ */ jsxs("span", {
|
|
413
|
+
className: "w-[4ch] text-right tabular-nums",
|
|
414
|
+
children: [100 - percent, "%"]
|
|
415
|
+
})
|
|
416
|
+
]
|
|
417
|
+
})]
|
|
418
|
+
}),
|
|
419
|
+
level !== "normal" && /* @__PURE__ */ jsxs(motion.p, {
|
|
420
|
+
variants: ITEM,
|
|
421
|
+
className: cn("mt-3 flex items-start gap-1.5 text-xs", LEVEL_TEXT[level]),
|
|
422
|
+
children: [/* @__PURE__ */ jsx(TriangleAlert, {
|
|
423
|
+
"aria-hidden": "true",
|
|
424
|
+
className: "mt-px size-3.5 shrink-0"
|
|
425
|
+
}), level === "danger" ? t("danger") : t("warning")]
|
|
426
|
+
})
|
|
427
|
+
]
|
|
428
|
+
})
|
|
429
|
+
})]
|
|
430
|
+
}) })
|
|
431
|
+
}, "panel")
|
|
432
|
+
}),
|
|
433
|
+
/* @__PURE__ */ jsx("span", {
|
|
434
|
+
className: "sr-only",
|
|
435
|
+
"aria-live": "polite",
|
|
436
|
+
children: announcement
|
|
437
|
+
})
|
|
438
|
+
]
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
export { ContextMeter, contextMeterMessages };
|
|
442
|
+
|
|
443
|
+
//# sourceMappingURL=context-meter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context-meter.js","names":[],"sources":["../../../src/components/agents/context-meter.tsx"],"sourcesContent":["\"use client\";\n\nimport { type ComponentProps, useCallback, useEffect, useId, useRef, useState } from \"react\";\nimport { ChevronDown, LoaderCircle, Shrink, TriangleAlert } from \"lucide-react\";\nimport {\n AnimatePresence,\n animate,\n type MotionValue,\n motion,\n type Transition,\n useMotionValue,\n useReducedMotion,\n useTransform,\n type Variants,\n} from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { type DismissReason, useDismiss } from \"../../hooks/use-dismiss\";\nimport { EASE_OUT } from \"../../lib/ease\";\nimport { useMessages } from \"../../lib/i18n\";\nimport { PresenceGate } from \"../../lib/presence-gate\";\nimport { AnimatedNumber } from \"../motion/animated-number\";\nimport { Tooltip } from \"../motion/tooltip\";\n\n/** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */\nexport const contextMeterMessages = {\n trigger: \"Context window: {percent}% used, {used} of {limit} tokens\",\n collapse: \"Hide context breakdown\",\n tokens: \"/ {limit} tokens\",\n free: \"Free\",\n warning: \"Nearing the limit. Compact to free up space.\",\n danger: \"Almost full. Older messages may be dropped.\",\n compact: \"Compact\",\n compacting: \"Compacting\",\n warningReached: \"Context window {percent}% full\",\n};\n\nexport type ContextMeterMessages = typeof contextMeterMessages;\n\nexport interface ContextSegment {\n /** Stable id for the segment, used as its React key. */\n key: string;\n /** Name shown in the breakdown, e.g. \"System prompt\" or \"Messages\". */\n label: string;\n /** Tokens this segment takes up. */\n tokens: number;\n}\n\nexport interface ContextMeterProps extends Omit<ComponentProps<\"div\">, \"children\" | \"onChange\"> {\n /** What fills the context window, in display order. The meter shows their sum. */\n segments: ContextSegment[];\n /** Size of the context window in tokens. */\n limit: number;\n /** Share of the window (0 to 1) where the meter turns to the warning color. Default: 0.8 */\n warnAt?: number;\n /** Share of the window (0 to 1) where the meter turns to the danger color. Default: 0.95 */\n dangerAt?: number;\n /** Shows a Compact button in the panel and calls this when it is pressed. Shrink the segments yourself. */\n onCompact?: () => void;\n /** Shows the Compact button as busy and disables it while your compaction runs. Default: false */\n compacting?: boolean;\n /** Formats a token count for display. Default: compact notation, e.g. 42.1k */\n formatTokens?: (tokens: number) => string;\n /** Which way the pill grows into the panel. Default: \"top\" */\n side?: \"top\" | \"bottom\";\n /** The pill's edge the panel stays lined up with as it grows. Default: \"start\" */\n align?: \"start\" | \"end\";\n /** Override any built-in string, e.g. for translation. */\n labels?: Partial<ContextMeterMessages>;\n}\n\ntype Level = \"normal\" | \"warning\" | \"danger\";\n\n// The pill grows into the panel with a light overshoot that settles fast,\n// a touch springier than SPRING_MORPH because this panel is a small readout\n// rather than a menu. Local: only this morph wants it.\nconst MORPH_OPEN = { type: \"spring\", duration: 0.5, bounce: 0.2 } as const;\n// Folding back lands on the pill with just a hint of give. Gentler than\n// the open: the same bounce would pinch the 32px pill.\nconst MORPH_CLOSE = { type: \"spring\", duration: 0.4, bounce: 0.12 } as const;\n// From the keyboard, or with reduced motion: no morph at all.\nconst INSTANT = { duration: 0 } as const;\n// The ring and bar spring to new values with a slight settle. The bar's\n// track clips at 100%, so an overshoot near full never draws past the end.\nconst FILL = { type: \"spring\", duration: 0.55, bounce: 0.18 } as const;\n// On open the bar's segments spring out from zero one after another,\n// starting once the panel has mostly grown.\nconst BAR_DELAY = 0.12;\nconst BAR_STAGGER = 0.05;\n// The content fades out fast as the panel folds, so the fold reads clean.\nconst CONTENT_OUT = { duration: 0.12, ease: EASE_OUT } as const;\n// The closed pill is fully round (half its h-8); the panel is rounded-2xl.\nconst PILL_RADIUS = 16;\nconst PANEL_RADIUS = 16;\n// The pill and the panel's header share this row, so the morph is seamless.\nconst ROW = \"flex h-8 items-center gap-1.5 pr-3 pl-2 text-xs font-medium\";\n\n// Ring geometry, in px: a 16px icon with a 2px stroke.\nconst RING = 16;\nconst STROKE = 2;\nconst R = (RING - STROKE) / 2;\n\n// Segment shades, darkest first: one hue, so the meter matches any theme.\nconst SHADES = [\"bg-primary\", \"bg-primary/65\", \"bg-primary/40\", \"bg-primary/25\"];\n\nconst LEVEL_TEXT: Record<Level, string> = {\n normal: \"text-primary\",\n warning: \"text-warning\",\n danger: \"text-destructive\",\n};\n\nconst LIST: Variants = {\n hidden: {},\n show: { transition: { staggerChildren: 0.03, delayChildren: 0.06 } },\n};\nconst ITEM: Variants = {\n hidden: { opacity: 0, y: 4, filter: \"blur(2px)\" },\n show: { opacity: 1, y: 0, filter: \"blur(0px)\", transition: { duration: 0.22, ease: EASE_OUT } },\n};\n\nconst compactFormat = new Intl.NumberFormat(\"en\", {\n notation: \"compact\",\n maximumFractionDigits: 1,\n});\n\nfunction defaultFormat(tokens: number) {\n return compactFormat.format(tokens).toLowerCase();\n}\n\nfunction shade(index: number) {\n return SHADES[Math.min(index, SHADES.length - 1)];\n}\n\nfunction Ring({ progress, level }: { progress: MotionValue<number>; level: Level }) {\n // A round cap draws a dot at 0, so the arc hides until there is something to show.\n const arcOpacity = useTransform(progress, (value) => (value > 0.001 ? 1 : 0));\n return (\n <svg\n width={RING}\n height={RING}\n viewBox={`0 0 ${RING} ${RING}`}\n aria-hidden=\"true\"\n className={cn(\"shrink-0 -rotate-90 transition-colors duration-200\", LEVEL_TEXT[level])}\n >\n <circle\n cx={RING / 2}\n cy={RING / 2}\n r={R}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={STROKE}\n className=\"opacity-20\"\n />\n <motion.circle\n cx={RING / 2}\n cy={RING / 2}\n r={R}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={STROKE}\n strokeLinecap=\"round\"\n style={{ pathLength: progress, opacity: arcOpacity }}\n />\n </svg>\n );\n}\n\ninterface MeterBarProps {\n segments: ContextSegment[];\n /** Where each segment ends along the bar, 0 to 1. */\n ends: number[];\n fill: Transition;\n /** Spring each segment out from zero, one after another, as the bar mounts. */\n springIn: boolean;\n}\n\n/**\n * Each segment is a full-width layer scaled to where it ends, earlier ones on\n * top, and the gaps between them ride on translateX, so the bar animates on\n * transform alone. It mounts with each open, so the staggered spring out from\n * zero plays once per open and later changes spring without a delay.\n */\nfunction MeterBar({ segments, ends, fill, springIn }: MeterBarProps) {\n const [entered, setEntered] = useState(!springIn);\n const delay = (index: number) => (entered ? 0 : BAR_DELAY + index * BAR_STAGGER);\n const last = segments.length - 1;\n return (\n <div aria-hidden=\"true\" className=\"bg-muted relative h-2 overflow-hidden rounded-full\">\n {segments\n .map((segment, index) => ({ segment, index }))\n .reverse()\n .map(({ segment, index }) => (\n <motion.div\n key={segment.key}\n className={cn(\"absolute inset-0 origin-left\", shade(index))}\n initial={springIn ? { scaleX: 0 } : false}\n animate={{ scaleX: ends[index] }}\n transition={{ ...fill, delay: delay(index) }}\n onAnimationComplete={index === last ? () => setEntered(true) : undefined}\n />\n ))}\n {segments.map((segment, index) => (\n <motion.div\n key={segment.key}\n className=\"absolute inset-0\"\n initial={springIn ? { x: \"0%\" } : false}\n animate={{ x: `${ends[index] * 100}%` }}\n transition={{ ...fill, delay: delay(index) }}\n >\n <span className=\"bg-background absolute inset-y-0 -left-px w-0.5\" />\n </motion.div>\n ))}\n </div>\n );\n}\n\n/**\n * A pill with a ring that shows how much of a model's context window a chat\n * uses. Pressing it grows the pill itself into a breakdown by segment with\n * what is left and, near the limit, a Compact action; it folds back into the\n * pill on close. The app owns the counting: pass the segments in and shrink\n * them when it compacts.\n */\nexport function ContextMeter({\n segments,\n limit,\n warnAt = 0.8,\n dangerAt = 0.95,\n onCompact,\n compacting = false,\n formatTokens = defaultFormat,\n side = \"top\",\n align = \"start\",\n labels,\n className,\n ...props\n}: ContextMeterProps) {\n const t = useMessages(\"contextMeter\", contextMeterMessages, labels);\n const reduce = useReducedMotion() ?? false;\n const baseId = useId();\n const surfaceId = `${baseId}-surface`;\n const panelId = `${baseId}-panel`;\n const rootRef = useRef<HTMLDivElement>(null);\n const triggerRef = useRef<HTMLButtonElement>(null);\n const headerRef = useRef<HTMLButtonElement>(null);\n const [open, setOpenState] = useState(false);\n // Opened or closed from the keyboard: skip the morph and move focus.\n const [instant, setInstant] = useState(false);\n // Set when the panel closes holding focus: the pill is unmounted while\n // open, so focus can only go back once it has mounted again.\n const restoreFocus = useRef(false);\n\n const used = segments.reduce((sum, segment) => sum + Math.max(0, segment.tokens), 0);\n const share = limit > 0 ? Math.min(1, used / limit) : 0;\n const percent = Math.round(share * 100);\n // From the rounded percent, so the color always agrees with the number shown.\n const level: Level =\n percent >= dangerAt * 100 ? \"danger\" : percent >= warnAt * 100 ? \"warning\" : \"normal\";\n const usedText = formatTokens(used);\n const limitText = formatTokens(limit);\n\n const setOpen = useCallback((next: boolean, now: boolean) => {\n if (!next && rootRef.current?.contains(document.activeElement)) restoreFocus.current = true;\n setInstant(now);\n setOpenState(next);\n }, []);\n\n const dismiss = useCallback(\n (reason: DismissReason) => setOpen(false, reason === \"escape\"),\n [setOpen],\n );\n useDismiss(open, dismiss, rootRef);\n\n useEffect(() => {\n if (open) {\n if (instant) headerRef.current?.focus();\n return;\n }\n if (!restoreFocus.current) return;\n restoreFocus.current = false;\n triggerRef.current?.focus();\n }, [open, instant]);\n\n // The ring's arc follows the share on one tween; reduced motion jumps.\n const progress = useMotionValue(share);\n useEffect(() => {\n if (reduce) {\n progress.set(share);\n return;\n }\n const controls = animate(progress, share, FILL);\n return () => controls.stop();\n }, [share, reduce, progress]);\n\n // Announce crossing into warning or danger, not every change in between.\n const [announcement, setAnnouncement] = useState(\"\");\n const lastLevel = useRef(level);\n useEffect(() => {\n if (level === lastLevel.current) return;\n const rising = level !== \"normal\" && (lastLevel.current === \"normal\" || level === \"danger\");\n lastLevel.current = level;\n setAnnouncement(rising ? t(\"warningReached\", { percent }) : \"\");\n }, [level, percent, t]);\n\n // Where each segment ends along the bar, 0 to 1.\n let running = 0;\n const ends = segments.map((segment) => {\n running += Math.max(0, segment.tokens);\n return limit > 0 ? Math.min(1, running / limit) : 0;\n });\n\n const morph = reduce || instant ? INSTANT : MORPH_OPEN;\n const fold = reduce || instant ? INSTANT : MORPH_CLOSE;\n const fill = reduce ? INSTANT : FILL;\n // Both surfaces sit on the same corner, so the panel grows away from it.\n const anchor = cn(\n \"absolute\",\n side === \"top\" ? \"bottom-0\" : \"top-0\",\n align === \"start\" ? \"left-0\" : \"right-0\",\n );\n\n const pillContent = (\n <>\n <Ring progress={progress} level={level} />\n {/* Fixed width so 9% and 100% take the same room and nothing shifts. */}\n <span className=\"w-[4ch] text-right tabular-nums\">{percent}%</span>\n </>\n );\n // Points the way the panel folds back: down toward a pill below it, up otherwise.\n const chevron = (\n <ChevronDown\n aria-hidden=\"true\"\n className={cn(\"text-muted-foreground size-4\", side === \"bottom\" && \"rotate-180\")}\n />\n );\n\n return (\n <div ref={rootRef} className={cn(\"relative inline-flex\", className)} {...props}>\n {/* Reserves the pill's room: both surfaces are absolute, so the page\n around the meter never moves while it opens. */}\n <div\n aria-hidden\n inert\n className={cn(ROW, \"invisible rounded-full border border-transparent\")}\n >\n {pillContent}\n </div>\n\n <AnimatePresence initial={false} mode=\"popLayout\">\n {!open ? (\n <motion.button\n key=\"pill\"\n ref={triggerRef}\n layoutId={surfaceId}\n type=\"button\"\n aria-expanded={false}\n aria-controls={panelId}\n aria-label={t(\"trigger\", { percent, used: usedText, limit: limitText })}\n // `detail` is 0 for a click the keyboard made (Enter, Space): no morph.\n onClick={(event) => setOpen(true, event.detail === 0)}\n // The pill is what the panel folds back into, so its transition is the close.\n transition={fold}\n style={{ borderRadius: PILL_RADIUS }}\n className={cn(\n ROW,\n anchor,\n \"border-border bg-background text-foreground hover:bg-muted/60 focus-visible:ring-ring z-10 border transition-colors outline-none focus-visible:ring-2\",\n )}\n >\n <motion.span layout=\"position\" className=\"flex items-center gap-1.5\">\n {pillContent}\n </motion.span>\n </motion.button>\n ) : (\n <motion.div\n key=\"panel\"\n layoutId={surfaceId}\n transition={morph}\n style={{ borderRadius: PANEL_RADIUS }}\n className={cn(\n anchor,\n \"border-border bg-background text-foreground pointer-events-none z-30 w-72 max-w-[calc(100vw-2rem)] overflow-hidden border\",\n )}\n >\n {/* The panel covers the returning pill for the whole fold, so its\n contents stop taking clicks and focus as soon as it leaves. */}\n <PresenceGate>\n {({ gate, isPresent }) => (\n <div\n {...gate}\n id={panelId}\n className={cn(\"flex\", side === \"top\" ? \"flex-col-reverse\" : \"flex-col\")}\n >\n {/* Mirrors the pill on the edge it grew from, so the morph\n reads as one surface; pressing it folds the panel back. */}\n <motion.button\n ref={headerRef}\n type=\"button\"\n layout=\"position\"\n aria-expanded\n aria-controls={panelId}\n aria-label={t(\"collapse\")}\n onClick={(event) => setOpen(false, event.detail === 0)}\n className={cn(ROW, \"focus-visible:bg-muted/60 w-full outline-none\")}\n >\n {/* The ring and percent stay where they sat in the pill:\n at the start edge, or the end edge for align=\"end\". */}\n {align === \"end\" && chevron}\n {align === \"end\" && <span className=\"flex-1\" />}\n {pillContent}\n {align === \"start\" && <span className=\"flex-1\" />}\n {align === \"start\" && chevron}\n </motion.button>\n\n {/* layout=\"position\" keeps the content at its own size\n while the surface scales, so nothing squashes in the\n morph; it fades out fast as the panel folds back. */}\n <motion.div\n layout=\"position\"\n initial={false}\n animate={{ opacity: isPresent ? 1 : 0 }}\n transition={{ layout: morph, opacity: CONTENT_OUT }}\n >\n <motion.div\n // A keyboard open or reduced motion shows the rows at once.\n initial={reduce || instant ? false : \"hidden\"}\n animate=\"show\"\n variants={LIST}\n className=\"px-3 pt-1 pb-3\"\n >\n <motion.div variants={ITEM} className=\"flex items-center gap-2\">\n <p className=\"flex min-w-0 flex-1 items-baseline gap-1.5 tabular-nums\">\n <AnimatedNumber\n value={used}\n format={(tokens) => formatTokens(Math.round(tokens))}\n duration={reduce || instant ? 0 : 0.6}\n startOnView={false}\n className=\"text-xl font-semibold tracking-tight\"\n />\n <span className=\"text-muted-foreground text-xs\">\n {t(\"tokens\", { limit: limitText })}\n </span>\n </p>\n {onCompact && (\n <Tooltip content={compacting ? t(\"compacting\") : t(\"compact\")} side=\"top\">\n <button\n type=\"button\"\n disabled={compacting}\n aria-busy={compacting}\n aria-label={compacting ? t(\"compacting\") : t(\"compact\")}\n onClick={onCompact}\n className={cn(\n \"text-muted-foreground hover:bg-muted hover:text-foreground focus-visible:ring-ring inline-flex size-7 shrink-0 items-center justify-center rounded-full transition-colors focus-visible:ring-2 focus-visible:outline-none disabled:pointer-events-none\",\n level !== \"normal\" && LEVEL_TEXT[level],\n )}\n >\n {compacting ? (\n <LoaderCircle aria-hidden=\"true\" className=\"size-4 animate-spin\" />\n ) : (\n <Shrink aria-hidden=\"true\" className=\"size-4\" />\n )}\n </button>\n </Tooltip>\n )}\n </motion.div>\n\n <motion.div variants={ITEM} className=\"mt-2\">\n <MeterBar\n segments={segments}\n ends={ends}\n fill={fill}\n springIn={!(reduce || instant)}\n />\n </motion.div>\n\n <ul className=\"mt-3 space-y-1.5 text-xs\">\n {segments.map((segment, index) => {\n const tokens = Math.max(0, segment.tokens);\n return (\n <motion.li\n key={segment.key}\n variants={ITEM}\n className=\"flex items-center gap-2\"\n >\n <span\n aria-hidden=\"true\"\n className={cn(\"size-2 shrink-0 rounded-full\", shade(index))}\n />\n <span className=\"min-w-0 flex-1 truncate\">{segment.label}</span>\n <span className=\"text-muted-foreground tabular-nums\">\n {formatTokens(tokens)}\n </span>\n <span className=\"text-muted-foreground w-[4ch] text-right tabular-nums\">\n {limit > 0 ? Math.round((tokens / limit) * 100) : 0}%\n </span>\n </motion.li>\n );\n })}\n <motion.li\n variants={ITEM}\n className=\"text-muted-foreground flex items-center gap-2\"\n >\n <span\n aria-hidden=\"true\"\n className=\"border-border size-2 shrink-0 rounded-full border\"\n />\n <span className=\"min-w-0 flex-1 truncate\">{t(\"free\")}</span>\n <span className=\"tabular-nums\">\n {formatTokens(Math.max(0, limit - used))}\n </span>\n <span className=\"w-[4ch] text-right tabular-nums\">{100 - percent}%</span>\n </motion.li>\n </ul>\n\n {level !== \"normal\" && (\n <motion.p\n variants={ITEM}\n className={cn(\"mt-3 flex items-start gap-1.5 text-xs\", LEVEL_TEXT[level])}\n >\n <TriangleAlert aria-hidden=\"true\" className=\"mt-px size-3.5 shrink-0\" />\n {level === \"danger\" ? t(\"danger\") : t(\"warning\")}\n </motion.p>\n )}\n </motion.div>\n </motion.div>\n </div>\n )}\n </PresenceGate>\n </motion.div>\n )}\n </AnimatePresence>\n\n <span className=\"sr-only\" aria-live=\"polite\">\n {announcement}\n </span>\n </div>\n );\n}\n"],"mappings":"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"}
|
|
@@ -3,10 +3,15 @@ import { AgentCodeLanguage } from "./agent-code.js";
|
|
|
3
3
|
export type FileDiffStatus = "streaming" | "complete";
|
|
4
4
|
export type FileDiffLineType = "added" | "removed" | "context";
|
|
5
5
|
export interface FileDiffLine {
|
|
6
|
+
/** Stable key, so streamed lines keep their place. */
|
|
6
7
|
id: string;
|
|
8
|
+
/** Marks the line added (green, +), removed (red, −) or unchanged. Default: "context" */
|
|
7
9
|
type?: FileDiffLineType;
|
|
10
|
+
/** Line number in the old file, shown in the first gutter. Blank when not set. */
|
|
8
11
|
oldLine?: number;
|
|
12
|
+
/** Line number in the new file, shown in the second gutter. Blank when not set. */
|
|
9
13
|
newLine?: number;
|
|
14
|
+
/** The line's code, without the + or − marker. Syntax highlighted. */
|
|
10
15
|
content: string;
|
|
11
16
|
}
|
|
12
17
|
/** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */
|
|
@@ -19,19 +24,31 @@ export declare const fileDiffMessages: {
|
|
|
19
24
|
};
|
|
20
25
|
export type FileDiffMessages = typeof fileDiffMessages;
|
|
21
26
|
export interface FileDiffProps {
|
|
27
|
+
/** File name or path shown in the header. */
|
|
22
28
|
file: ReactNode;
|
|
29
|
+
/** Diff lines, each added, removed or context, with optional line numbers. */
|
|
23
30
|
lines: FileDiffLine[];
|
|
31
|
+
/** "streaming" while lines arrive, "complete" once the edit lands. Default: "streaming" */
|
|
24
32
|
status?: FileDiffStatus;
|
|
33
|
+
/** Whether the diff is expanded, for controlled use. */
|
|
25
34
|
open?: boolean;
|
|
35
|
+
/** Whether the diff starts expanded when uncontrolled. Default: true */
|
|
26
36
|
defaultOpen?: boolean;
|
|
37
|
+
/** Called with the new state when the diff expands or collapses. */
|
|
27
38
|
onOpenChange?: (open: boolean) => void;
|
|
39
|
+
/** Fold the diff when status moves from streaming to complete. Default: true */
|
|
28
40
|
collapseOnComplete?: boolean;
|
|
41
|
+
/** Tallest the line viewport grows before it scrolls (px). Default: 220 */
|
|
29
42
|
maxHeight?: number;
|
|
43
|
+
/** Language used for syntax highlighting. Default: "typescript" */
|
|
30
44
|
language?: AgentCodeLanguage;
|
|
45
|
+
/** Text the copy button writes to the clipboard. Shows the button when set. */
|
|
31
46
|
copyText?: string;
|
|
47
|
+
/** Runs instead of the clipboard write when the copy button is pressed. */
|
|
32
48
|
onCopy?: () => void | Promise<void>;
|
|
33
49
|
/** Override any built-in string. */
|
|
34
50
|
labels?: Partial<FileDiffMessages>;
|
|
51
|
+
/** Classes merged onto the root element. */
|
|
35
52
|
className?: string;
|
|
36
53
|
}
|
|
37
54
|
export declare function FileDiff({ file, lines, status, open, defaultOpen, onOpenChange, collapseOnComplete, maxHeight, language, copyText, onCopy, labels, className }: FileDiffProps): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-diff.d.ts","names":[],"sources":["../../../src/components/agents/file-diff.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"file-diff.d.ts","names":[],"sources":["../../../src/components/agents/file-diff.tsx"],"mappings":";;YAsBY;YACA;iBAEK;;EAEf;;EAEA,OAAO;;EAEP;;EAEA;;EAEA;;;qBAIW;;;;;;;YAQD,0BAA0B;iBAErB;;EAEf,MAAM;;EAEN,OAAO;;EAEP,SAAS;;EAET;;EAEA;;EAEA,gBAAgB;;EAEhB;;EAEA;;EAEA,WAAW;;EAEX;;EAEA,sBAAsB;;EAEtB,SAAS,QAAQ;;EAEjB;;wBA4Cc,WACd,MACA,OACA,QACA,MACA,aACA,cACA,oBACA,WACA,UACA,UACA,QACA,QACA,aACC,gCAAa,IAAA"}
|