@kumix/ui 0.5.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 +72 -46
- package/dist/{account-avatar--0_0u0WW.js → account-avatar-BHh_21aQ.js} +1 -1
- package/dist/account-avatar-BHh_21aQ.js.map +1 -0
- 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/{cascader-types-Bh_kJ3Qw.d.ts → cascader-types-D2DFznHz.d.ts} +5 -5
- package/dist/cascader-types-D2DFznHz.d.ts.map +1 -0
- package/dist/components/agents/agent-activity/activity-row.d.ts +3 -2
- package/dist/components/agents/agent-activity/activity-row.d.ts.map +1 -1
- package/dist/components/agents/agent-activity/activity-row.js +54 -40
- package/dist/components/agents/agent-activity/activity-row.js.map +1 -1
- package/dist/components/agents/agent-activity.d.ts +4 -0
- package/dist/components/agents/agent-activity.d.ts.map +1 -0
- package/dist/components/agents/{agent-activity/index.js → agent-activity.js} +84 -52
- 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 +43 -17
- 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 +17 -5
- 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 +3 -53
- package/dist/components/agents/ai-sidebar.d.ts.map +1 -1
- package/dist/components/agents/ai-sidebar.js +54 -338
- package/dist/components/agents/ai-sidebar.js.map +1 -1
- package/dist/components/agents/approval-card.d.ts +101 -0
- package/dist/components/agents/approval-card.d.ts.map +1 -0
- package/dist/components/agents/approval-card.js +416 -0
- 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 +32 -2
- package/dist/components/agents/citations.d.ts.map +1 -1
- package/dist/components/agents/citations.js +68 -16
- 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 +22 -2
- package/dist/components/agents/code-block.d.ts.map +1 -1
- package/dist/components/agents/code-block.js +49 -31
- 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 +30 -2
- package/dist/components/agents/file-diff.d.ts.map +1 -1
- package/dist/components/agents/file-diff.js +129 -86
- 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 +25 -1
- package/dist/components/agents/image-generation.d.ts.map +1 -1
- package/dist/components/agents/image-generation.js +33 -23
- package/dist/components/agents/image-generation.js.map +1 -1
- package/dist/components/agents/loading-states/agent-progress.d.ts +5 -1
- package/dist/components/agents/loading-states/agent-progress.d.ts.map +1 -1
- package/dist/components/agents/loading-states/agent-progress.js +30 -9
- package/dist/components/agents/loading-states/agent-progress.js.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.d.ts +5 -1
- package/dist/components/agents/loading-states/reasoning-text.d.ts.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.js +44 -19
- package/dist/components/agents/loading-states/reasoning-text.js.map +1 -1
- package/dist/components/agents/loading-states/thinking-shimmer.d.ts +5 -1
- package/dist/components/agents/loading-states/thinking-shimmer.d.ts.map +1 -1
- package/dist/components/agents/loading-states/thinking-shimmer.js +6 -3
- package/dist/components/agents/loading-states/thinking-shimmer.js.map +1 -1
- package/dist/components/agents/message-bubble.d.ts +19 -1
- package/dist/components/agents/message-bubble.d.ts.map +1 -1
- package/dist/components/agents/message-bubble.js +74 -46
- package/dist/components/agents/message-bubble.js.map +1 -1
- package/dist/components/agents/message-scroller.d.ts +21 -1
- package/dist/components/agents/message-scroller.d.ts.map +1 -1
- package/dist/components/agents/message-scroller.js +108 -24
- package/dist/components/agents/message-scroller.js.map +1 -1
- package/dist/components/agents/message.d.ts +14 -3
- package/dist/components/agents/message.d.ts.map +1 -1
- package/dist/components/agents/message.js +20 -12
- package/dist/components/agents/message.js.map +1 -1
- package/dist/components/agents/prompt-input.d.ts +53 -1
- package/dist/components/agents/prompt-input.d.ts.map +1 -1
- package/dist/components/agents/prompt-input.js +371 -97
- package/dist/components/agents/prompt-input.js.map +1 -1
- package/dist/components/agents/streaming-response.d.ts +27 -2
- package/dist/components/agents/streaming-response.d.ts.map +1 -1
- package/dist/components/agents/streaming-response.js +59 -44
- package/dist/components/agents/streaming-response.js.map +1 -1
- package/dist/components/agents/todo-list.d.ts +28 -1
- package/dist/components/agents/todo-list.d.ts.map +1 -1
- package/dist/components/agents/todo-list.js +149 -121
- package/dist/components/agents/todo-list.js.map +1 -1
- package/dist/components/agents/tool-approval.d.ts +38 -2
- package/dist/components/agents/tool-approval.d.ts.map +1 -1
- package/dist/components/agents/tool-approval.js +75 -41
- package/dist/components/agents/tool-approval.js.map +1 -1
- package/dist/components/agents/tool-result.d.ts +33 -2
- package/dist/components/agents/tool-result.d.ts.map +1 -1
- package/dist/components/agents/tool-result.js +66 -71
- 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/agents/voice-orb.d.ts +7 -1
- package/dist/components/agents/voice-orb.d.ts.map +1 -1
- package/dist/components/agents/voice-orb.js +8 -5
- package/dist/components/agents/voice-orb.js.map +1 -1
- package/dist/components/charts/bar-chart/context.d.ts +29 -6
- package/dist/components/charts/bar-chart/context.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/context.js +18 -5
- 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 +2 -2
- 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 +23 -13
- package/dist/components/charts/bar-chart/plot.js.map +1 -1
- package/dist/components/charts/bar-chart/tooltip.d.ts +3 -1
- package/dist/components/charts/bar-chart/tooltip.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/tooltip.js +5 -4
- package/dist/components/charts/bar-chart/tooltip.js.map +1 -1
- package/dist/components/charts/bar-chart.d.ts +5 -4
- package/dist/components/charts/bar-chart.d.ts.map +1 -1
- package/dist/components/charts/bar-chart.js +9 -6
- package/dist/components/charts/bar-chart.js.map +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 +8 -8
- 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.d.ts +1 -1
- package/dist/components/charts/bump-chart/point.js +18 -16
- package/dist/components/charts/bump-chart/point.js.map +1 -1
- package/dist/components/charts/bump-chart/series.d.ts +2 -2
- package/dist/components/charts/bump-chart/series.js +4 -4
- package/dist/components/charts/bump-chart/series.js.map +1 -1
- package/dist/components/charts/bump-chart.d.ts +2 -2
- package/dist/components/charts/bump-chart.d.ts.map +1 -1
- package/dist/components/charts/bump-chart.js +4 -4
- package/dist/components/charts/bump-chart.js.map +1 -1
- package/dist/components/charts/candlestick-chart/context.d.ts +29 -1
- package/dist/components/charts/candlestick-chart/context.d.ts.map +1 -1
- package/dist/components/charts/candlestick-chart/context.js +17 -3
- package/dist/components/charts/candlestick-chart/context.js.map +1 -1
- package/dist/components/charts/candlestick-chart/legend.d.ts +1 -1
- package/dist/components/charts/candlestick-chart/legend.js +10 -10
- package/dist/components/charts/candlestick-chart/legend.js.map +1 -1
- package/dist/components/charts/candlestick-chart/plot.d.ts.map +1 -1
- package/dist/components/charts/candlestick-chart/plot.js +17 -18
- package/dist/components/charts/candlestick-chart/plot.js.map +1 -1
- package/dist/components/charts/candlestick-chart.d.ts +2 -2
- package/dist/components/charts/candlestick-chart.js +3 -3
- package/dist/components/charts/candlestick-chart.js.map +1 -1
- package/dist/components/charts/composition-chart/context.d.ts +1 -1
- package/dist/components/charts/composition-chart/context.js +1 -1
- package/dist/components/charts/composition-chart/legend.js +5 -5
- package/dist/components/charts/composition-chart/legend.js.map +1 -1
- package/dist/components/charts/composition-chart/plot.js +9 -9
- package/dist/components/charts/composition-chart/plot.js.map +1 -1
- package/dist/components/charts/composition-chart/tooltip-content.js +4 -4
- package/dist/components/charts/composition-chart/tooltip-content.js.map +1 -1
- package/dist/components/charts/composition-chart.d.ts +2 -2
- package/dist/components/charts/composition-chart.js +3 -3
- package/dist/components/charts/composition-chart.js.map +1 -1
- package/dist/components/charts/donut-chart/center.d.ts +1 -1
- package/dist/components/charts/donut-chart/center.d.ts.map +1 -1
- package/dist/components/charts/donut-chart/center.js +7 -7
- package/dist/components/charts/donut-chart/center.js.map +1 -1
- package/dist/components/charts/donut-chart/context.d.ts +18 -2
- package/dist/components/charts/donut-chart/context.d.ts.map +1 -1
- package/dist/components/charts/donut-chart/context.js +1 -1
- package/dist/components/charts/donut-chart/legend.d.ts +1 -1
- package/dist/components/charts/donut-chart/legend.js +3 -3
- package/dist/components/charts/donut-chart/plot.js +3 -3
- package/dist/components/charts/donut-chart.d.ts +3 -3
- package/dist/components/charts/donut-chart.js +3 -3
- package/dist/components/charts/donut-chart.js.map +1 -1
- package/dist/components/charts/funnel-chart.d.ts +27 -1
- package/dist/components/charts/funnel-chart.d.ts.map +1 -1
- package/dist/components/charts/funnel-chart.js +52 -37
- package/dist/components/charts/funnel-chart.js.map +1 -1
- package/dist/components/charts/heat-calendar/grid.js +13 -6
- package/dist/components/charts/heat-calendar/grid.js.map +1 -1
- package/dist/components/charts/heat-calendar/legend.js +9 -6
- package/dist/components/charts/heat-calendar/legend.js.map +1 -1
- package/dist/components/charts/heat-calendar/tooltip.d.ts +1 -1
- package/dist/components/charts/heat-calendar/tooltip.js +10 -7
- package/dist/components/charts/heat-calendar/tooltip.js.map +1 -1
- package/dist/components/charts/heat-calendar.d.ts +2 -2
- package/dist/components/charts/heat-calendar.js +3 -3
- package/dist/components/charts/heat-calendar.js.map +1 -1
- package/dist/components/charts/line-chart/context.d.ts +29 -4
- package/dist/components/charts/line-chart/context.d.ts.map +1 -1
- package/dist/components/charts/line-chart/context.js +21 -6
- 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 +2 -2
- 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 +27 -17
- package/dist/components/charts/line-chart/plot.js.map +1 -1
- package/dist/components/charts/line-chart/tooltip.d.ts +2 -1
- package/dist/components/charts/line-chart/tooltip.d.ts.map +1 -1
- package/dist/components/charts/line-chart/tooltip.js +7 -6
- package/dist/components/charts/line-chart/tooltip.js.map +1 -1
- package/dist/components/charts/line-chart.d.ts +6 -5
- package/dist/components/charts/line-chart.d.ts.map +1 -1
- package/dist/components/charts/line-chart.js +9 -6
- package/dist/components/charts/line-chart.js.map +1 -1
- package/dist/components/charts/liquidity-heatmap.d.ts +25 -1
- package/dist/components/charts/liquidity-heatmap.d.ts.map +1 -1
- package/dist/components/charts/liquidity-heatmap.js +55 -30
- 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/depth-row.js +2 -2
- package/dist/components/charts/order-book.d.ts +38 -1
- package/dist/components/charts/order-book.d.ts.map +1 -1
- package/dist/components/charts/order-book.js +88 -37
- package/dist/components/charts/order-book.js.map +1 -1
- package/dist/components/charts/price-target-fan/header.js +6 -6
- package/dist/components/charts/price-target-fan/header.js.map +1 -1
- package/dist/components/charts/price-target-fan/plot.d.ts.map +1 -1
- package/dist/components/charts/price-target-fan/plot.js +21 -11
- package/dist/components/charts/price-target-fan/plot.js.map +1 -1
- package/dist/components/charts/price-target-fan/series.d.ts.map +1 -1
- package/dist/components/charts/price-target-fan/series.js +11 -7
- package/dist/components/charts/price-target-fan/series.js.map +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 +2 -2
- package/dist/components/charts/price-target-fan.js +4 -4
- package/dist/components/charts/price-target-fan.js.map +1 -1
- package/dist/components/charts/returns-calendar/grid.js +25 -15
- 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 +3 -3
- package/dist/components/charts/returns-calendar/tooltip.js.map +1 -1
- package/dist/components/charts/returns-calendar.d.ts +9 -2
- package/dist/components/charts/returns-calendar.d.ts.map +1 -1
- package/dist/components/charts/returns-calendar.js +3 -3
- package/dist/components/charts/returns-calendar.js.map +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 +18 -37
- 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 +16 -19
- package/dist/components/charts/sankey-chart/tooltip.js.map +1 -1
- package/dist/components/charts/sankey-chart.d.ts +3 -3
- package/dist/components/charts/sankey-chart.d.ts.map +1 -1
- package/dist/components/charts/sankey-chart.js +16 -15
- package/dist/components/charts/sankey-chart.js.map +1 -1
- package/dist/components/charts/sparkline.d.ts +23 -2
- package/dist/components/charts/sparkline.d.ts.map +1 -1
- package/dist/components/charts/sparkline.js +36 -16
- 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 +3 -3
- 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 +6 -6
- 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 +3 -3
- package/dist/components/charts/status-bar.d.ts.map +1 -1
- package/dist/components/charts/status-bar.js +11 -9
- package/dist/components/charts/status-bar.js.map +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 +3 -3
- 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 +8 -21
- 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 +7 -7
- 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 +4 -4
- package/dist/components/charts/treemap/tooltip.js.map +1 -1
- package/dist/components/charts/treemap.d.ts +29 -6
- package/dist/components/charts/treemap.d.ts.map +1 -1
- package/dist/components/charts/treemap.js +12 -10
- package/dist/components/charts/treemap.js.map +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 +10 -10
- package/dist/components/charts/volume-profile/plot.js.map +1 -1
- package/dist/components/charts/volume-profile/summary.js +16 -22
- 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 +6 -6
- package/dist/components/charts/volume-profile/tooltip.js.map +1 -1
- package/dist/components/charts/volume-profile.d.ts +39 -5
- package/dist/components/charts/volume-profile.d.ts.map +1 -1
- package/dist/components/charts/volume-profile.js +18 -22
- package/dist/components/charts/volume-profile.js.map +1 -1
- package/dist/components/charts/xy/axis.js +1 -1
- package/dist/components/charts/xy/data-table.d.ts +4 -2
- package/dist/components/charts/xy/data-table.d.ts.map +1 -1
- package/dist/components/charts/xy/data-table.js +4 -4
- package/dist/components/charts/xy/data-table.js.map +1 -1
- package/dist/components/charts/xy/legend.d.ts +1 -1
- package/dist/components/charts/xy/tooltip-content.d.ts +1 -1
- package/dist/components/charts/xy/tooltip-content.js +5 -5
- package/dist/components/charts/xy/tooltip-content.js.map +1 -1
- package/dist/components/custom/confirm-dialog.js +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 +2 -2
- package/dist/components/motion/action-swap.js.map +1 -1
- package/dist/components/motion/adaptive-stepper.d.ts +24 -1
- package/dist/components/motion/adaptive-stepper.d.ts.map +1 -1
- package/dist/components/motion/adaptive-stepper.js +28 -23
- 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 +12 -1
- package/dist/components/motion/alert.d.ts.map +1 -1
- package/dist/components/motion/alert.js +18 -12
- 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 +6 -6
- 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 +2 -2
- 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 +20 -47
- package/dist/components/motion/animated-sidebar.d.ts.map +1 -1
- package/dist/components/motion/animated-sidebar.js +5 -619
- 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 -62
- package/dist/components/motion/animated-toast-stack.js +1 -302
- package/dist/components/motion/arc-picker.d.ts +11 -1
- package/dist/components/motion/arc-picker.d.ts.map +1 -1
- package/dist/components/motion/arc-picker.js +21 -14
- 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 +2 -2
- 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 +25 -22
- package/dist/components/motion/attachment-upload.d.ts.map +1 -1
- package/dist/components/motion/attachment-upload.js +59 -481
- package/dist/components/motion/attachment-upload.js.map +1 -1
- package/dist/components/motion/availability-scheduler/copy-menu.d.ts +5 -2
- package/dist/components/motion/availability-scheduler/copy-menu.d.ts.map +1 -1
- package/dist/components/motion/availability-scheduler/copy-menu.js +1 -1
- package/dist/components/motion/availability-scheduler/day-row.d.ts +4 -2
- package/dist/components/motion/availability-scheduler/day-row.d.ts.map +1 -1
- package/dist/components/motion/availability-scheduler/day-row.js +23 -15
- package/dist/components/motion/availability-scheduler/day-row.js.map +1 -1
- package/dist/components/motion/availability-scheduler/icon-button.js +3 -3
- package/dist/components/motion/availability-scheduler/icon-button.js.map +1 -1
- package/dist/components/motion/availability-scheduler/time-select.d.ts +1 -1
- package/dist/components/motion/availability-scheduler.d.ts +19 -0
- package/dist/components/motion/availability-scheduler.d.ts.map +1 -0
- package/dist/components/motion/{availability-scheduler/index.js → availability-scheduler.js} +31 -9
- package/dist/components/motion/availability-scheduler.js.map +1 -0
- package/dist/components/motion/avatar-group.d.ts +20 -2
- package/dist/components/motion/avatar-group.d.ts.map +1 -1
- package/dist/components/motion/avatar-group.js +20 -11
- package/dist/components/motion/avatar-group.js.map +1 -1
- package/dist/components/motion/before-after-slider.d.ts +38 -0
- package/dist/components/motion/before-after-slider.d.ts.map +1 -0
- package/dist/components/motion/before-after-slider.js +351 -0
- package/dist/components/motion/before-after-slider.js.map +1 -0
- package/dist/components/motion/bloom-menu.d.ts +20 -1
- package/dist/components/motion/bloom-menu.d.ts.map +1 -1
- package/dist/components/motion/bloom-menu.js +42 -35
- 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 +53 -0
- package/dist/components/motion/bookshelf.d.ts.map +1 -0
- package/dist/components/motion/bookshelf.js +518 -0
- package/dist/components/motion/bookshelf.js.map +1 -0
- package/dist/components/motion/bottom-sheet.d.ts +15 -1
- package/dist/components/motion/bottom-sheet.d.ts.map +1 -1
- package/dist/components/motion/bottom-sheet.js +22 -43
- package/dist/components/motion/bottom-sheet.js.map +1 -1
- package/dist/components/motion/bounce-sidebar.d.ts +24 -1
- package/dist/components/motion/bounce-sidebar.d.ts.map +1 -1
- package/dist/components/motion/bounce-sidebar.js +8 -4
- 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 +39 -16
- package/dist/components/motion/bouncy-accordion.js.map +1 -1
- package/dist/components/motion/breadcrumb.d.ts +13 -2
- package/dist/components/motion/breadcrumb.d.ts.map +1 -1
- package/dist/components/motion/breadcrumb.js +34 -20
- 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 +17 -12
- package/dist/components/motion/button/base.js.map +1 -1
- package/dist/components/motion/button/magnetic.js +1 -1
- package/dist/components/motion/button/metallic.d.ts.map +1 -1
- package/dist/components/motion/button/metallic.js +11 -10
- package/dist/components/motion/button/metallic.js.map +1 -1
- package/dist/components/motion/button/stateful.d.ts +15 -1
- package/dist/components/motion/button/stateful.d.ts.map +1 -1
- package/dist/components/motion/button/stateful.js +14 -7
- package/dist/components/motion/button/stateful.js.map +1 -1
- package/dist/components/motion/button.d.ts +5 -0
- package/dist/components/motion/button.js +6 -0
- package/dist/components/motion/card-dealer.d.ts +10 -1
- package/dist/components/motion/card-dealer.d.ts.map +1 -1
- package/dist/components/motion/card-dealer.js +9 -5
- package/dist/components/motion/card-dealer.js.map +1 -1
- package/dist/components/motion/card-folder.d.ts +32 -1
- package/dist/components/motion/card-folder.d.ts.map +1 -1
- package/dist/components/motion/card-folder.js +36 -20
- package/dist/components/motion/card-folder.js.map +1 -1
- package/dist/components/motion/card.js +3 -3
- package/dist/components/motion/card.js.map +1 -1
- package/dist/components/motion/casino/game-parts.d.ts +2 -0
- package/dist/components/motion/casino/game-parts.js +207 -0
- package/dist/components/motion/casino/game-parts.js.map +1 -0
- package/dist/components/motion/center-morph-modal.d.ts +13 -1
- package/dist/components/motion/center-morph-modal.d.ts.map +1 -1
- package/dist/components/motion/center-morph-modal.js +85 -101
- package/dist/components/motion/center-morph-modal.js.map +1 -1
- package/dist/components/motion/checkbox.d.ts +17 -1
- package/dist/components/motion/checkbox.d.ts.map +1 -1
- package/dist/components/motion/checkbox.js +12 -5
- package/dist/components/motion/checkbox.js.map +1 -1
- package/dist/components/motion/chromatic-text-reveal.js +5 -5
- 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 +4 -4
- package/dist/components/motion/collapsible.js.map +1 -1
- package/dist/components/motion/color-picker.d.ts +29 -21
- package/dist/components/motion/color-picker.d.ts.map +1 -1
- package/dist/components/motion/color-picker.js +78 -131
- 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 +2 -2
- 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 -66
- package/dist/components/motion/combobox/context.js +1 -216
- 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 +13 -12
- 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 +10 -8
- package/dist/components/motion/combobox/trigger.js.map +1 -1
- package/dist/components/motion/combobox.d.ts +2 -2
- package/dist/components/motion/combobox.js +2 -2
- package/dist/components/motion/command-palette.d.ts +41 -1
- package/dist/components/motion/command-palette.d.ts.map +1 -1
- package/dist/components/motion/command-palette.js +305 -132
- 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 +33 -1
- package/dist/components/motion/context-menu.d.ts.map +1 -1
- package/dist/components/motion/context-menu.js +126 -122
- 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 -1
- package/dist/components/motion/crash/crash-balloon.d.ts.map +1 -1
- package/dist/components/motion/crash/crash-balloon.js +13 -11
- package/dist/components/motion/crash/crash-balloon.js.map +1 -1
- package/dist/components/motion/crash/crash-parts.d.ts +3 -7
- package/dist/components/motion/crash/crash-parts.d.ts.map +1 -1
- package/dist/components/motion/crash/crash-parts.js +3 -1
- package/dist/components/motion/crash/crash-tower.d.ts +2 -1
- package/dist/components/motion/crash/crash-tower.d.ts.map +1 -1
- package/dist/components/motion/crash/crash-tower.js +10 -9
- package/dist/components/motion/crash/crash-tower.js.map +1 -1
- package/dist/components/motion/crash.d.ts +2 -1
- package/dist/components/motion/crash.d.ts.map +1 -1
- package/dist/components/motion/crash.js +11 -9
- package/dist/components/motion/crash.js.map +1 -1
- package/dist/components/motion/cylinder-carousel.d.ts +14 -4
- package/dist/components/motion/cylinder-carousel.d.ts.map +1 -1
- package/dist/components/motion/cylinder-carousel.js +14 -8
- 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 -82
- package/dist/components/motion/date-range-picker.d.ts.map +1 -1
- package/dist/components/motion/date-range-picker.js +15 -875
- 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 +2 -2
- 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 +4 -4
- 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 +17 -2
- package/dist/components/motion/drawer.d.ts.map +1 -1
- package/dist/components/motion/drawer.js +74 -20
- 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 +111 -0
- package/dist/components/motion/dropdown-menu.d.ts.map +1 -0
- package/dist/components/motion/dropdown-menu.js +400 -0
- package/dist/components/motion/dropdown-menu.js.map +1 -0
- 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 +2 -2
- 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 +8 -17
- 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 +6 -3
- package/dist/components/motion/expandable-control.js.map +1 -1
- package/dist/components/motion/expandable-tabs.d.ts +24 -2
- package/dist/components/motion/expandable-tabs.d.ts.map +1 -1
- package/dist/components/motion/expandable-tabs.js +12 -20
- 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 +6 -6
- package/dist/components/motion/expanding-arrow-button.js.map +1 -1
- package/dist/components/motion/feedback-widget.d.ts +24 -1
- package/dist/components/motion/feedback-widget.d.ts.map +1 -1
- package/dist/components/motion/feedback-widget.js +46 -44
- package/dist/components/motion/feedback-widget.js.map +1 -1
- package/dist/components/motion/file-tree.d.ts +32 -1
- package/dist/components/motion/file-tree.d.ts.map +1 -1
- package/dist/components/motion/file-tree.js +15 -15
- package/dist/components/motion/file-tree.js.map +1 -1
- package/dist/components/motion/file-upload.d.ts +54 -1
- package/dist/components/motion/file-upload.d.ts.map +1 -1
- package/dist/components/motion/file-upload.js +87 -46
- 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 +15 -0
- package/dist/components/motion/hold-action-button.d.ts.map +1 -1
- package/dist/components/motion/hold-action-button.js +21 -9
- package/dist/components/motion/hold-action-button.js.map +1 -1
- package/dist/components/motion/infinite-masonry.d.ts +35 -1
- package/dist/components/motion/infinite-masonry.d.ts.map +1 -1
- package/dist/components/motion/infinite-masonry.js +30 -15
- 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 +3 -2
- package/dist/components/motion/input.js.map +1 -1
- package/dist/components/motion/knockout-bracket.d.ts +32 -6
- package/dist/components/motion/knockout-bracket.d.ts.map +1 -1
- package/dist/components/motion/knockout-bracket.js +104 -50
- package/dist/components/motion/knockout-bracket.js.map +1 -1
- package/dist/components/motion/knockout-wheel.d.ts +23 -4
- package/dist/components/motion/knockout-wheel.d.ts.map +1 -1
- package/dist/components/motion/knockout-wheel.js +50 -24
- 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/liquid.js +4 -4
- package/dist/components/motion/liquid.js.map +1 -1
- package/dist/components/motion/loader.d.ts +11 -1
- package/dist/components/motion/loader.d.ts.map +1 -1
- package/dist/components/motion/loader.js +49 -34
- 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/magnetic.js +3 -3
- 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 +43 -3
- package/dist/components/motion/mines.d.ts.map +1 -1
- package/dist/components/motion/mines.js +92 -57
- package/dist/components/motion/mines.js.map +1 -1
- package/dist/components/motion/morphing-lightbox.d.ts +33 -1
- package/dist/components/motion/morphing-lightbox.d.ts.map +1 -1
- package/dist/components/motion/morphing-lightbox.js +42 -25
- package/dist/components/motion/morphing-lightbox.js.map +1 -1
- package/dist/components/motion/morphing-modal.d.ts +10 -1
- package/dist/components/motion/morphing-modal.d.ts.map +1 -1
- package/dist/components/motion/morphing-modal.js +25 -20
- package/dist/components/motion/morphing-modal.js.map +1 -1
- package/dist/components/motion/morphing-search-chips.d.ts +34 -1
- package/dist/components/motion/morphing-search-chips.d.ts.map +1 -1
- package/dist/components/motion/morphing-search-chips.js +47 -35
- package/dist/components/motion/morphing-search-chips.js.map +1 -1
- package/dist/components/motion/morphing-search.d.ts +28 -1
- package/dist/components/motion/morphing-search.d.ts.map +1 -1
- package/dist/components/motion/morphing-search.js +36 -26
- package/dist/components/motion/morphing-search.js.map +1 -1
- package/dist/components/motion/morphing-tabs.d.ts +29 -1
- package/dist/components/motion/morphing-tabs.d.ts.map +1 -1
- package/dist/components/motion/morphing-tabs.js +40 -16
- 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 -61
- package/dist/components/motion/multi-select/context.js +1 -226
- 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 +14 -13
- 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 +15 -13
- package/dist/components/motion/multi-select/trigger.js.map +1 -1
- package/dist/components/motion/{multi-select/index.d.ts → multi-select.d.ts} +5 -5
- package/dist/components/motion/{multi-select/index.js → multi-select.js} +5 -5
- 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.d.ts +1 -1
- package/dist/components/motion/not-found/glitch.d.ts.map +1 -1
- package/dist/components/motion/not-found/glitch.js +10 -8
- package/dist/components/motion/not-found/glitch.js.map +1 -1
- package/dist/components/motion/not-found/magnetic.d.ts +1 -1
- package/dist/components/motion/not-found/magnetic.d.ts.map +1 -1
- package/dist/components/motion/not-found/magnetic.js +10 -8
- package/dist/components/motion/not-found/magnetic.js.map +1 -1
- package/dist/components/motion/not-found/shared.d.ts +23 -6
- package/dist/components/motion/not-found/shared.d.ts.map +1 -1
- package/dist/components/motion/not-found/shared.js +20 -9
- package/dist/components/motion/not-found/shared.js.map +1 -1
- package/dist/components/motion/not-found/spotlight.d.ts +1 -1
- package/dist/components/motion/not-found/spotlight.d.ts.map +1 -1
- package/dist/components/motion/not-found/spotlight.js +13 -11
- package/dist/components/motion/not-found/spotlight.js.map +1 -1
- package/dist/components/motion/not-found/stacked.d.ts +1 -1
- package/dist/components/motion/not-found/stacked.d.ts.map +1 -1
- package/dist/components/motion/not-found/stacked.js +11 -9
- package/dist/components/motion/not-found/stacked.js.map +1 -1
- package/dist/components/motion/not-found/terminal.d.ts +1 -1
- package/dist/components/motion/not-found/terminal.d.ts.map +1 -1
- package/dist/components/motion/not-found/terminal.js +9 -7
- 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 +35 -1
- package/dist/components/motion/notification-stack.d.ts.map +1 -1
- package/dist/components/motion/notification-stack.js +23 -7
- package/dist/components/motion/notification-stack.js.map +1 -1
- package/dist/components/motion/number-ticker.d.ts +11 -3
- package/dist/components/motion/number-ticker.d.ts.map +1 -1
- package/dist/components/motion/number-ticker.js +7 -4
- package/dist/components/motion/number-ticker.js.map +1 -1
- package/dist/components/motion/otp-input.d.ts +22 -1
- package/dist/components/motion/otp-input.d.ts.map +1 -1
- package/dist/components/motion/otp-input.js +36 -15
- package/dist/components/motion/otp-input.js.map +1 -1
- package/dist/components/motion/overflow-actions.d.ts +35 -1
- package/dist/components/motion/overflow-actions.d.ts.map +1 -1
- package/dist/components/motion/overflow-actions.js +16 -8
- package/dist/components/motion/overflow-actions.js.map +1 -1
- package/dist/components/motion/pagination.d.ts +17 -1
- package/dist/components/motion/pagination.d.ts.map +1 -1
- package/dist/components/motion/pagination.js +24 -13
- 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 +1 -1
- package/dist/components/motion/parallax.js.map +1 -1
- package/dist/components/motion/plinko.d.ts +13 -1
- package/dist/components/motion/plinko.d.ts.map +1 -1
- package/dist/components/motion/plinko.js +32 -18
- 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 +10 -30
- 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 +155 -103
- package/dist/components/motion/popover.js.map +1 -1
- package/dist/components/motion/prediction-market-card.d.ts +30 -1
- package/dist/components/motion/prediction-market-card.d.ts.map +1 -1
- package/dist/components/motion/prediction-market-card.js +39 -22
- package/dist/components/motion/prediction-market-card.js.map +1 -1
- package/dist/components/motion/prediction-market.d.ts +58 -1
- package/dist/components/motion/prediction-market.d.ts.map +1 -1
- package/dist/components/motion/prediction-market.js +66 -47
- package/dist/components/motion/prediction-market.js.map +1 -1
- package/dist/components/motion/preview-rail.d.ts +31 -1
- package/dist/components/motion/preview-rail.d.ts.map +1 -1
- package/dist/components/motion/preview-rail.js +10 -5
- package/dist/components/motion/preview-rail.js.map +1 -1
- package/dist/components/motion/project-folder.d.ts +33 -1
- package/dist/components/motion/project-folder.d.ts.map +1 -1
- package/dist/components/motion/project-folder.js +31 -50
- package/dist/components/motion/project-folder.js.map +1 -1
- package/dist/components/motion/pull-to-refresh.d.ts +19 -1
- package/dist/components/motion/pull-to-refresh.d.ts.map +1 -1
- package/dist/components/motion/pull-to-refresh.js +22 -11
- 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 +2 -2
- 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 +7 -7
- 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 +5 -5
- 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 +4 -4
- 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 +6 -6
- 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 +6 -6
- 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 +5 -5
- 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 +3 -3
- 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 +2 -2
- package/dist/components/motion/scroll-reveal.js.map +1 -1
- package/dist/components/motion/scroll-to.d.ts +3 -2
- package/dist/components/motion/scroll-to.d.ts.map +1 -1
- package/dist/components/motion/scroll-to.js +2 -2
- package/dist/components/motion/scroll-to.js.map +1 -1
- package/dist/components/motion/select-morph.d.ts +17 -3
- package/dist/components/motion/select-morph.d.ts.map +1 -1
- package/dist/components/motion/select-morph.js +152 -89
- 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 +153 -64
- 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/shader-background.js +2 -2
- 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/shared-layout-bg.js +4 -4
- package/dist/components/motion/shared-layout-bg.js.map +1 -1
- package/dist/components/motion/signup-form.d.ts +62 -3
- package/dist/components/motion/signup-form.d.ts.map +1 -1
- package/dist/components/motion/signup-form.js +83 -40
- package/dist/components/motion/signup-form.js.map +1 -1
- package/dist/components/motion/slide-action-button.d.ts +15 -1
- package/dist/components/motion/slide-action-button.d.ts.map +1 -1
- package/dist/components/motion/slide-action-button.js +15 -9
- package/dist/components/motion/slide-action-button.js.map +1 -1
- package/dist/components/motion/slide-game.d.ts +92 -0
- package/dist/components/motion/slide-game.d.ts.map +1 -0
- package/dist/components/motion/slide-game.js +642 -0
- package/dist/components/motion/slide-game.js.map +1 -0
- package/dist/components/motion/smooth-scroll.d.ts +4 -2
- package/dist/components/motion/smooth-scroll.d.ts.map +1 -1
- package/dist/components/motion/smooth-scroll.js +5 -4
- package/dist/components/motion/smooth-scroll.js.map +1 -1
- package/dist/components/motion/sortable-list.d.ts +21 -1
- package/dist/components/motion/sortable-list.d.ts.map +1 -1
- package/dist/components/motion/sortable-list.js +41 -16
- 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 +8 -4
- package/dist/components/motion/swap/controls.d.ts.map +1 -1
- package/dist/components/motion/swap/controls.js +38 -30
- package/dist/components/motion/swap/controls.js.map +1 -1
- package/dist/components/motion/swap/field.d.ts +4 -2
- package/dist/components/motion/swap/field.d.ts.map +1 -1
- package/dist/components/motion/swap/field.js +16 -13
- package/dist/components/motion/swap/field.js.map +1 -1
- package/dist/components/motion/swap/quote-row.d.ts +4 -2
- package/dist/components/motion/swap/quote-row.d.ts.map +1 -1
- package/dist/components/motion/swap/quote-row.js +10 -8
- 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 +4 -2
- package/dist/components/motion/swap/token-picker.d.ts.map +1 -1
- package/dist/components/motion/swap/token-picker.js +59 -54
- package/dist/components/motion/swap/token-picker.js.map +1 -1
- package/dist/components/motion/swap.d.ts +12 -4
- package/dist/components/motion/swap.d.ts.map +1 -1
- package/dist/components/motion/swap.js +31 -19
- package/dist/components/motion/swap.js.map +1 -1
- package/dist/components/motion/swipeable-list.d.ts +47 -1
- package/dist/components/motion/swipeable-list.d.ts.map +1 -1
- package/dist/components/motion/swipeable-list.js +17 -9
- 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 +13 -8
- package/dist/components/motion/switch.js.map +1 -1
- package/dist/components/motion/table/editable-cell.d.ts +2 -1
- package/dist/components/motion/table/editable-cell.d.ts.map +1 -1
- package/dist/components/motion/table/editable-cell.js +2 -2
- package/dist/components/motion/table/editable-cell.js.map +1 -1
- package/dist/components/motion/table/row-handle.d.ts +3 -1
- package/dist/components/motion/table/row-handle.d.ts.map +1 -1
- package/dist/components/motion/table/row-handle.js +7 -7
- package/dist/components/motion/table/row-handle.js.map +1 -1
- package/dist/components/motion/table/skeleton-rows.d.ts +1 -1
- package/dist/components/motion/table/skeleton-rows.js +1 -1
- package/dist/components/motion/table/table-header.d.ts +4 -2
- package/dist/components/motion/table/table-header.d.ts.map +1 -1
- package/dist/components/motion/table/table-header.js +22 -19
- package/dist/components/motion/table/table-header.js.map +1 -1
- package/dist/components/motion/table/table-menu.d.ts.map +1 -1
- package/dist/components/motion/table/table-menu.js +18 -18
- package/dist/components/motion/table/table-menu.js.map +1 -1
- package/dist/components/motion/{table/index.d.ts → table.d.ts} +5 -4
- package/dist/components/motion/table.d.ts.map +1 -0
- package/dist/components/motion/{table/index.js → table.js} +50 -19
- package/dist/components/motion/table.js.map +1 -0
- package/dist/components/motion/tabs.d.ts +24 -4
- package/dist/components/motion/tabs.d.ts.map +1 -1
- package/dist/components/motion/tabs.js +41 -19
- 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 +3 -3
- 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 +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 +1 -1
- package/dist/components/motion/text-shimmer.js.map +1 -1
- package/dist/components/motion/theme-toggle.d.ts +12 -1
- package/dist/components/motion/theme-toggle.d.ts.map +1 -1
- package/dist/components/motion/theme-toggle.js +19 -11
- 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 +3 -3
- package/dist/components/motion/tilt-card.js.map +1 -1
- package/dist/components/motion/timeline.d.ts +16 -1
- package/dist/components/motion/timeline.d.ts.map +1 -1
- package/dist/components/motion/timeline.js +26 -7
- 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 -2
- package/dist/components/motion/tooltip-surface.d.ts.map +1 -1
- package/dist/components/motion/tooltip-surface.js +36 -26
- package/dist/components/motion/tooltip-surface.js.map +1 -1
- package/dist/components/motion/tooltip.d.ts +9 -3
- 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-avatar.js +1 -1
- package/dist/components/motion/wallet-card/account-switcher.d.ts +5 -3
- package/dist/components/motion/wallet-card/account-switcher.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/account-switcher.js +23 -16
- package/dist/components/motion/wallet-card/account-switcher.js.map +1 -1
- package/dist/components/motion/wallet-card/actions.d.ts +3 -1
- package/dist/components/motion/wallet-card/actions.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/actions.js +33 -29
- package/dist/components/motion/wallet-card/actions.js.map +1 -1
- package/dist/components/motion/wallet-card/balance-delta.d.ts +2 -1
- package/dist/components/motion/wallet-card/balance-delta.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/balance-delta.js +6 -6
- package/dist/components/motion/wallet-card/balance-delta.js.map +1 -1
- package/dist/components/motion/wallet-card/copy-button.d.ts +3 -1
- package/dist/components/motion/wallet-card/copy-button.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/copy-button.js +13 -7
- package/dist/components/motion/wallet-card/copy-button.js.map +1 -1
- package/dist/components/motion/wallet-card/search-bar.d.ts +4 -2
- package/dist/components/motion/wallet-card/search-bar.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/search-bar.js +21 -18
- package/dist/components/motion/wallet-card/search-bar.js.map +1 -1
- package/dist/components/motion/wallet-card.d.ts +16 -0
- package/dist/components/motion/wallet-card.d.ts.map +1 -0
- package/dist/components/motion/{wallet-card/index.js → wallet-card.js} +26 -19
- 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 +15 -5
- package/dist/components/motion/wheel-picker.js.map +1 -1
- package/dist/components/reui/alert.d.ts +1 -1
- package/dist/components/reui/alert.js +1 -1
- package/dist/components/reui/autocomplete.d.ts +1 -1
- package/dist/components/reui/autocomplete.js +4 -4
- package/dist/components/reui/badge.d.ts +2 -2
- package/dist/components/reui/badge.js +2 -2
- package/dist/components/reui/cascader/cascader-async.d.ts +1 -1
- package/dist/components/reui/cascader/cascader-async.js +37 -37
- package/dist/components/reui/cascader/cascader-async.js.map +1 -1
- package/dist/components/reui/cascader/cascader-columns.d.ts +6 -6
- package/dist/components/reui/cascader/cascader-columns.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-columns.js +6 -6
- package/dist/components/reui/cascader/cascader-columns.js.map +1 -1
- package/dist/components/reui/cascader/cascader-context.d.ts +8 -8
- package/dist/components/reui/cascader/cascader-context.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-context.js +10 -10
- package/dist/components/reui/cascader/cascader-context.js.map +1 -1
- package/dist/components/reui/cascader/cascader-footer.d.ts +14 -14
- package/dist/components/reui/cascader/cascader-footer.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-footer.js +32 -33
- package/dist/components/reui/cascader/cascader-footer.js.map +1 -1
- package/dist/components/reui/cascader/cascader-i18n.d.ts +1 -1
- package/dist/components/reui/cascader/cascader-item.d.ts +12 -12
- package/dist/components/reui/cascader/cascader-item.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-item.js +27 -27
- package/dist/components/reui/cascader/cascader-item.js.map +1 -1
- package/dist/components/reui/cascader/cascader-lib.d.ts +1 -1
- package/dist/components/reui/cascader/cascader-nav.d.ts +12 -12
- package/dist/components/reui/cascader/cascader-nav.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-nav.js +12 -12
- package/dist/components/reui/cascader/cascader-nav.js.map +1 -1
- package/dist/components/reui/cascader/cascader-types.d.ts +1 -1
- package/dist/components/reui/cascader/cascader-virtual.d.ts +4 -4
- package/dist/components/reui/cascader/cascader-virtual.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-virtual.js +13 -13
- package/dist/components/reui/cascader/cascader-virtual.js.map +1 -1
- package/dist/components/reui/cascader/cascader.d.ts +24 -24
- package/dist/components/reui/cascader/cascader.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader.js +110 -110
- package/dist/components/reui/cascader/cascader.js.map +1 -1
- package/dist/components/reui/code-block/code-block.d.ts +1 -1
- package/dist/components/reui/code-block/code-block.js +2 -2
- package/dist/components/reui/code-block/code-block.js.map +1 -1
- package/dist/components/reui/color-picker.d.ts +1 -1
- package/dist/components/reui/color-picker.js +7 -7
- package/dist/components/reui/color-picker.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-cell-selection.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-cell-selection.js +4 -4
- package/dist/components/reui/data-grid/data-grid-cell-selection.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-filter.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-column-filter.js +3 -3
- package/dist/components/reui/data-grid/data-grid-column-header.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-column-header.js +4 -4
- package/dist/components/reui/data-grid/data-grid-column-visibility.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-i18n.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-pagination.js +2 -2
- package/dist/components/reui/data-grid/data-grid-scroll-area.js +3 -3
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js +8 -8
- package/dist/components/reui/data-grid/data-grid-table-dnd.js +6 -6
- package/dist/components/reui/data-grid/data-grid-table-virtual.d.ts +2 -2
- package/dist/components/reui/data-grid/data-grid-table-virtual.js +3 -3
- package/dist/components/reui/data-grid/data-grid-table.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-table.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table.js +4 -4
- package/dist/components/reui/data-grid/data-grid-table.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid.js +2 -2
- package/dist/components/reui/date-selector.js +4 -4
- package/dist/components/reui/emoji-picker.d.ts +1 -1
- package/dist/components/reui/emoji-picker.js +5 -5
- package/dist/components/reui/emoji-picker.js.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-agenda-view.js +6 -6
- package/dist/components/reui/event-calendar/event-calendar-content.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-content.js +3 -3
- package/dist/components/reui/event-calendar/event-calendar-dnd.js +2 -2
- package/dist/components/reui/event-calendar/event-calendar-event.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-event.js +6 -6
- package/dist/components/reui/event-calendar/event-calendar-i18n.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-lib.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-lib.js +4 -4
- package/dist/components/reui/event-calendar/event-calendar-month-view.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-month-view.js +6 -6
- package/dist/components/reui/event-calendar/event-calendar-nav.js +6 -6
- package/dist/components/reui/event-calendar/event-calendar-recurrence.js +1 -1
- package/dist/components/reui/event-calendar/event-calendar-resource-view.js +5 -5
- package/dist/components/reui/event-calendar/event-calendar-time-grid.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-time-grid.js +5 -5
- package/dist/components/reui/event-calendar/event-calendar.d.ts +3 -3
- package/dist/components/reui/event-calendar/event-calendar.js +4 -4
- package/dist/components/reui/event-calendar/event-calendar.js.map +1 -1
- package/dist/components/reui/file-type.js +1 -1
- package/dist/components/reui/filters/filters-advanced.d.ts +6 -6
- package/dist/components/reui/filters/filters-advanced.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-advanced.js +35 -35
- package/dist/components/reui/filters/filters-advanced.js.map +1 -1
- package/dist/components/reui/filters/filters-builder.d.ts +5 -5
- package/dist/components/reui/filters/filters-builder.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-builder.js +6 -6
- package/dist/components/reui/filters/filters-builder.js.map +1 -1
- package/dist/components/reui/filters/filters-chip.d.ts +10 -10
- package/dist/components/reui/filters/filters-chip.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-chip.js +20 -20
- package/dist/components/reui/filters/filters-chip.js.map +1 -1
- package/dist/components/reui/filters/filters-context.d.ts +11 -11
- package/dist/components/reui/filters/filters-context.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-context.js +27 -27
- package/dist/components/reui/filters/filters-context.js.map +1 -1
- package/dist/components/reui/filters/filters-dnd.d.ts +2 -2
- package/dist/components/reui/filters/filters-dnd.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-dnd.js +5 -5
- package/dist/components/reui/filters/filters-dnd.js.map +1 -1
- package/dist/components/reui/filters/filters-draft.d.ts +1 -1
- package/dist/components/reui/filters/filters-editors.d.ts +9 -9
- package/dist/components/reui/filters/filters-editors.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-editors.js +41 -41
- package/dist/components/reui/filters/filters-editors.js.map +1 -1
- package/dist/components/reui/filters/filters-lib.d.ts +1 -1
- package/dist/components/reui/filters/filters-types.d.ts +7 -7
- package/dist/components/reui/filters/filters-types.d.ts.map +1 -1
- package/dist/components/reui/filters/filters.d.ts +9 -9
- package/dist/components/reui/filters/filters.d.ts.map +1 -1
- package/dist/components/reui/filters/filters.js +56 -56
- package/dist/components/reui/filters/filters.js.map +1 -1
- package/dist/components/reui/frame.d.ts +1 -1
- package/dist/components/reui/frame.js +2 -2
- package/dist/components/reui/frame.js.map +1 -1
- package/dist/components/reui/gantt/gantt-bar.d.ts +1 -1
- package/dist/components/reui/gantt/gantt-bar.js +5 -5
- package/dist/components/reui/gantt/gantt-dnd.js +5 -5
- package/dist/components/reui/gantt/gantt-dnd.js.map +1 -1
- package/dist/components/reui/gantt/gantt-i18n.d.ts +1 -1
- package/dist/components/reui/gantt/gantt-lib.d.ts +1 -1
- package/dist/components/reui/gantt/gantt-lib.js +4 -4
- package/dist/components/reui/gantt/gantt-nav.d.ts +1 -1
- package/dist/components/reui/gantt/gantt-nav.js +6 -6
- package/dist/components/reui/gantt/gantt-recurrence.js +1 -1
- package/dist/components/reui/gantt/gantt-view.js +11 -11
- package/dist/components/reui/gantt/gantt-view.js.map +1 -1
- package/dist/components/reui/gantt/gantt.d.ts +3 -3
- package/dist/components/reui/gantt/gantt.js +4 -4
- package/dist/components/reui/gantt/gantt.js.map +1 -1
- package/dist/components/reui/icon-tile.d.ts +2 -2
- package/dist/components/reui/icon-tile.js +2 -2
- package/dist/components/reui/kanban.d.ts +11 -11
- package/dist/components/reui/kanban.d.ts.map +1 -1
- package/dist/components/reui/kanban.js +3 -3
- package/dist/components/reui/number-field.d.ts +1 -1
- package/dist/components/reui/number-field.js +4 -4
- package/dist/components/reui/phone-input.js +5 -5
- package/dist/components/reui/rating.js +2 -2
- package/dist/components/reui/scrollspy.js +1 -1
- package/dist/components/reui/signature-pad.d.ts +1 -1
- package/dist/components/reui/signature-pad.js +7 -7
- package/dist/components/reui/signature-pad.js.map +1 -1
- package/dist/components/reui/sortable.d.ts +7 -7
- package/dist/components/reui/sortable.d.ts.map +1 -1
- package/dist/components/reui/sortable.js +3 -3
- package/dist/components/reui/stepper.js +2 -2
- package/dist/components/reui/time-picker.d.ts +1 -1
- package/dist/components/reui/time-picker.js +4 -4
- package/dist/components/reui/timeline.js +2 -2
- package/dist/components/reui/tree.js +3 -3
- package/dist/components/ui/accordion.js +2 -2
- package/dist/components/ui/alert-dialog.d.ts +14 -14
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.js +2 -2
- package/dist/components/ui/alert.d.ts +5 -5
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/alert.js +1 -1
- package/dist/components/ui/attachment.d.ts +14 -14
- package/dist/components/ui/attachment.d.ts.map +1 -1
- package/dist/components/ui/attachment.js +4 -4
- package/dist/components/ui/avatar.d.ts +7 -7
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/avatar.js +1 -1
- package/dist/components/ui/badge.d.ts +2 -2
- package/dist/components/ui/badge.js +2 -2
- package/dist/components/ui/breadcrumb.d.ts +8 -8
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.js +3 -3
- package/dist/components/ui/bubble.d.ts +9 -9
- package/dist/components/ui/bubble.d.ts.map +1 -1
- package/dist/components/ui/bubble.js +3 -3
- package/dist/components/ui/button-group.d.ts +3 -3
- package/dist/components/ui/button-group.js +4 -4
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/button.js +2 -2
- package/dist/components/ui/calendar.d.ts +7 -7
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar.js +7 -7
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/card.d.ts +9 -9
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/card.js +1 -1
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/carousel.d.ts +7 -7
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel.js +14 -14
- package/dist/components/ui/carousel.js.map +1 -1
- package/dist/components/ui/chart.d.ts +12 -12
- package/dist/components/ui/chart.d.ts.map +1 -1
- package/dist/components/ui/chart.js +6 -6
- package/dist/components/ui/chart.js.map +1 -1
- package/dist/components/ui/checkbox.js +2 -2
- package/dist/components/ui/code-block.d.ts +13 -13
- package/dist/components/ui/code-block.d.ts.map +1 -1
- package/dist/components/ui/code-block.js +6 -6
- package/dist/components/ui/code-block.js.map +1 -1
- package/dist/components/ui/collapsible.js +1 -1
- package/dist/components/ui/combobox.d.ts +16 -16
- package/dist/components/ui/combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox.js +7 -7
- package/dist/components/ui/combobox.js.map +1 -1
- package/dist/components/ui/command.d.ts +13 -13
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/command.js +3 -3
- package/dist/components/ui/context-menu.d.ts +16 -16
- package/dist/components/ui/context-menu.d.ts.map +1 -1
- package/dist/components/ui/context-menu.js +2 -2
- package/dist/components/ui/dialog.d.ts +12 -12
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.js +3 -3
- package/dist/components/ui/drawer.d.ts +12 -12
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/drawer.js +5 -5
- package/dist/components/ui/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +16 -16
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +2 -2
- package/dist/components/ui/empty.js +1 -1
- package/dist/components/ui/field.d.ts +2 -2
- package/dist/components/ui/field.js +3 -3
- package/dist/components/ui/hover-card.js +1 -1
- package/dist/components/ui/input-group.d.ts +9 -9
- package/dist/components/ui/input-group.d.ts.map +1 -1
- package/dist/components/ui/input-group.js +2 -2
- package/dist/components/ui/input-otp.d.ts +7 -7
- package/dist/components/ui/input-otp.d.ts.map +1 -1
- package/dist/components/ui/input-otp.js +4 -4
- package/dist/components/ui/input-otp.js.map +1 -1
- package/dist/components/ui/input.d.ts +2 -2
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/item.d.ts +14 -14
- package/dist/components/ui/item.d.ts.map +1 -1
- package/dist/components/ui/item.js +4 -4
- package/dist/components/ui/label.d.ts +2 -2
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/marker.d.ts +6 -6
- package/dist/components/ui/marker.d.ts.map +1 -1
- package/dist/components/ui/marker.js +3 -3
- package/dist/components/ui/menubar.d.ts +20 -20
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar.js +4 -4
- package/dist/components/ui/message-scroller.d.ts +8 -8
- package/dist/components/ui/message-scroller.d.ts.map +1 -1
- package/dist/components/ui/message-scroller.js +3 -3
- package/dist/components/ui/message.d.ts +8 -8
- package/dist/components/ui/message.d.ts.map +1 -1
- package/dist/components/ui/native-select.d.ts +5 -5
- package/dist/components/ui/native-select.d.ts.map +1 -1
- package/dist/components/ui/native-select.js +1 -1
- package/dist/components/ui/navigation-menu.js +3 -3
- package/dist/components/ui/pagination.d.ts +11 -11
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination.js +2 -2
- package/dist/components/ui/popover.d.ts +7 -7
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/progress.js +1 -1
- package/dist/components/ui/questionnaire.d.ts +17 -17
- package/dist/components/ui/questionnaire.d.ts.map +1 -1
- package/dist/components/ui/questionnaire.js +5 -5
- package/dist/components/ui/questionnaire.js.map +1 -1
- package/dist/components/ui/radio-group.js +2 -2
- package/dist/components/ui/resizable.js +1 -1
- package/dist/components/ui/scroll-area.js +1 -1
- package/dist/components/ui/select.d.ts +10 -10
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +2 -2
- package/dist/components/ui/separator.js +1 -1
- package/dist/components/ui/sheet.d.ts +9 -9
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet.js +3 -3
- package/dist/components/ui/sidebar.d.ts +33 -33
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/sidebar.js +16 -16
- package/dist/components/ui/sidebar.js.map +1 -1
- package/dist/components/ui/slider.js +1 -1
- package/dist/components/ui/spinner.js +1 -1
- package/dist/components/ui/switch.js +1 -1
- package/dist/components/ui/table.d.ts +9 -9
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/tabs.d.ts +2 -2
- package/dist/components/ui/tabs.js +2 -2
- package/dist/components/ui/textarea.d.ts +2 -2
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/toast.d.ts +11 -11
- package/dist/components/ui/toast.d.ts.map +1 -1
- package/dist/components/ui/toast.js +3 -3
- package/dist/components/ui/toggle-group.d.ts +5 -5
- package/dist/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle-group.js +7 -7
- package/dist/components/ui/toggle-group.js.map +1 -1
- package/dist/components/ui/toggle.d.ts +1 -1
- package/dist/components/ui/toggle.js +2 -2
- package/dist/components/ui/tooltip.js +1 -1
- package/dist/components/ui/trace.d.ts +12 -12
- package/dist/components/ui/trace.d.ts.map +1 -1
- package/dist/components/ui/trace.js +3 -3
- package/dist/components/ui/trace.js.map +1 -1
- package/dist/{constants-evLzfUhL.js → constants-DfbfCDSg.js} +3 -6
- package/dist/constants-DfbfCDSg.js.map +1 -0
- package/dist/{context-tv-kneJV.d.ts → context-4tt2I7Qm.d.ts} +39 -6
- package/dist/context-4tt2I7Qm.d.ts.map +1 -0
- package/dist/{context-C5TW-k6u.js → context-B3BNuwGu.js} +47 -31
- package/dist/context-B3BNuwGu.js.map +1 -0
- package/dist/context-BFNkGCGz.d.ts +82 -0
- package/dist/context-BFNkGCGz.d.ts.map +1 -0
- package/dist/{context-DUx44mGi.js → context-BG1Wzdnj.js} +34 -14
- package/dist/context-BG1Wzdnj.js.map +1 -0
- package/dist/{context-ChsuSih6.js → context-Bx-OaIL8.js} +36 -21
- package/dist/context-Bx-OaIL8.js.map +1 -0
- package/dist/{context-3i2_6ly8.js → context-C92iQeLO.js} +13 -5
- package/dist/context-C92iQeLO.js.map +1 -0
- package/dist/{context-CQbvWVnM.js → context-C9LHO4MN.js} +42 -35
- package/dist/context-C9LHO4MN.js.map +1 -0
- package/dist/{context-DdnKlMjE.js → context-CHXHCbuu.js} +18 -4
- package/dist/context-CHXHCbuu.js.map +1 -0
- package/dist/context-CIzAPhXA.js +170 -0
- package/dist/context-CIzAPhXA.js.map +1 -0
- package/dist/context-CP3spicY.d.ts +87 -0
- package/dist/context-CP3spicY.d.ts.map +1 -0
- package/dist/{context-DWXNECDe.js → context-Cg1VelQJ.js} +30 -28
- package/dist/context-Cg1VelQJ.js.map +1 -0
- package/dist/{context-CXlD0FcC.js → context-DDoVOc0D.js} +35 -28
- package/dist/context-DDoVOc0D.js.map +1 -0
- package/dist/{context-D-juVNr2.d.ts → context-DMIy-rFm.d.ts} +29 -3
- 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-DcJtX6ht.js +166 -0
- package/dist/context-DcJtX6ht.js.map +1 -0
- package/dist/{context-i6Dwvi3T.js → context-Dg48xMuG.js} +47 -27
- 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-Dk6C9IvC.js → context-cRAJSFxf.js} +51 -15
- package/dist/context-cRAJSFxf.js.map +1 -0
- package/dist/{context-mjP5wifG.d.ts → context-jX-r_7EP.d.ts} +37 -6
- package/dist/context-jX-r_7EP.d.ts.map +1 -0
- package/dist/{copy-menu-LU54Aruj.js → copy-menu-Bgoo5oWq.js} +46 -27
- package/dist/copy-menu-Bgoo5oWq.js.map +1 -0
- package/dist/{crash-parts-CUv5gFYQ.js → crash-parts-BkrZ6iBE.js} +109 -236
- package/dist/crash-parts-BkrZ6iBE.js.map +1 -0
- package/dist/{data-grid-i18n-BySPLTBy.d.ts → data-grid-i18n-BcJcbW5k.d.ts} +1 -1
- package/dist/{data-grid-i18n-BySPLTBy.d.ts.map → data-grid-i18n-BcJcbW5k.d.ts.map} +1 -1
- package/dist/date-utils-DVDYcEA_.js +35 -0
- package/dist/date-utils-DVDYcEA_.js.map +1 -0
- package/dist/{ease-DjhlGGZO.d.ts → ease-D_-bhUDt.d.ts} +13 -6
- package/dist/ease-D_-bhUDt.d.ts.map +1 -0
- package/dist/{filters-draft-COwwppZX.d.ts → filters-draft-b-BwSZb1.d.ts} +1 -1
- package/dist/{filters-draft-COwwppZX.d.ts.map → filters-draft-b-BwSZb1.d.ts.map} +1 -1
- package/dist/formats-ColrL9Eg.js +58 -0
- package/dist/formats-ColrL9Eg.js.map +1 -0
- package/dist/game-parts-B635BoSe.d.ts +89 -0
- package/dist/game-parts-B635BoSe.d.ts.map +1 -0
- 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-to-clipboard.js +5 -5
- package/dist/hooks/use-copy-to-clipboard.js.map +1 -1
- 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-favicon.js +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 +2 -2
- package/dist/hooks/use-highlighted-code.d.ts.map +1 -1
- package/dist/hooks/use-highlighted-code.js +6 -76
- package/dist/hooks/use-highlighted-code.js.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 +6 -6
- package/dist/hooks/use-hover-gesture.js.map +1 -1
- package/dist/hooks/use-intersection-observer.d.ts +2 -2
- package/dist/hooks/use-intersection-observer.d.ts.map +1 -1
- package/dist/hooks/use-intersection-observer.js +4 -4
- package/dist/hooks/use-intersection-observer.js.map +1 -1
- package/dist/hooks/use-listbox.d.ts +1 -0
- package/dist/hooks/use-listbox.js +3 -2
- package/dist/hooks/use-listbox.js.map +1 -1
- package/dist/hooks/use-meta-color.js +7 -7
- package/dist/hooks/use-meta-color.js.map +1 -1
- package/dist/hooks/use-mobile.js +3 -3
- package/dist/hooks/use-mobile.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-mutation-observer.d.ts +2 -2
- package/dist/hooks/use-mutation-observer.d.ts.map +1 -1
- package/dist/hooks/use-mutation-observer.js +2 -2
- package/dist/hooks/use-mutation-observer.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-input.d.ts +4 -4
- package/dist/hooks/use-slider-input.d.ts.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/i18n-BRH0Y7Sm.d.ts +34 -0
- package/dist/i18n-BRH0Y7Sm.d.ts.map +1 -0
- 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 +18 -0
- package/dist/lib/book-sounds.d.ts.map +1 -0
- package/dist/lib/book-sounds.js +201 -0
- package/dist/lib/book-sounds.js.map +1 -0
- 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/highlighter.d.ts +10 -0
- package/dist/lib/highlighter.d.ts.map +1 -0
- package/dist/lib/highlighter.js +78 -0
- package/dist/lib/highlighter.js.map +1 -0
- package/dist/lib/i18n.d.ts +2 -0
- package/dist/lib/i18n.js +51 -0
- package/dist/lib/i18n.js.map +1 -0
- 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 +39 -0
- package/dist/lib/presence-gate.d.ts.map +1 -0
- package/dist/{presence-gate-DC7yL1Ls.js → lib/presence-gate.js} +3 -2
- package/dist/lib/presence-gate.js.map +1 -0
- 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-BYMFNf5X.d.ts +13 -0
- package/dist/messages-BYMFNf5X.d.ts.map +1 -0
- package/dist/messages-CVaE8xc6.js +14 -0
- package/dist/messages-CVaE8xc6.js.map +1 -0
- package/dist/messages-CqyH8Hd7.js +21 -0
- package/dist/messages-CqyH8Hd7.js.map +1 -0
- package/dist/messages-CrtN5AXG.js +20 -0
- package/dist/messages-CrtN5AXG.js.map +1 -0
- package/dist/messages-D0lxgjNm.d.ts +31 -0
- package/dist/messages-D0lxgjNm.d.ts.map +1 -0
- package/dist/messages-D4axySpl.d.ts +21 -0
- package/dist/messages-D4axySpl.d.ts.map +1 -0
- package/dist/messages-Dyou6PVt.d.ts +23 -0
- package/dist/messages-Dyou6PVt.d.ts.map +1 -0
- package/dist/messages-azsh5xBO.d.ts +20 -0
- package/dist/messages-azsh5xBO.d.ts.map +1 -0
- package/dist/messages-ogb0tIIX.d.ts +23 -0
- package/dist/messages-ogb0tIIX.d.ts.map +1 -0
- package/dist/messages-tLRkxZwI.d.ts +33 -0
- package/dist/messages-tLRkxZwI.d.ts.map +1 -0
- package/dist/{model-BFZGhrnQ.d.ts → model-CHHE1lHQ.d.ts} +5 -1
- package/dist/model-CHHE1lHQ.d.ts.map +1 -0
- package/dist/{model-DuAc65oe.d.ts → model-D6sI_4m9.d.ts} +5 -1
- package/dist/model-D6sI_4m9.d.ts.map +1 -0
- package/dist/{model-mS4UXPwk.d.ts → model-DUQnYLRU.d.ts} +3 -1
- package/dist/model-DUQnYLRU.d.ts.map +1 -0
- package/dist/{model-CvWolJdo.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/{path-VEfFUowr.d.ts → path-DMP3rnd1.d.ts} +1 -1
- package/dist/path-DMP3rnd1.d.ts.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-CTQFrQKi.js → plot-CSTtMo6j.js} +13 -13
- package/dist/plot-CSTtMo6j.js.map +1 -0
- package/dist/popover-morph-CWb4N9ux.d.ts +55 -0
- package/dist/popover-morph-CWb4N9ux.d.ts.map +1 -0
- package/dist/{popover-position-BaDNBZ-D.js → popover-position-U1ZMRPsY.js} +1 -1
- package/dist/{popover-position-BaDNBZ-D.js.map → popover-position-U1ZMRPsY.js.map} +1 -1
- package/dist/{positioner-MidjIUUT.js → positioner-CFR4mJg6.js} +117 -9
- 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/{scale-DSsaupNc.d.ts → scale-BLDMdHAp.d.ts} +1 -1
- package/dist/scale-BLDMdHAp.d.ts.map +1 -0
- package/dist/{use-inspection-CZhdpH8J.js → scale-JwdKsMkj.js} +2 -55
- package/dist/scale-JwdKsMkj.js.map +1 -0
- package/dist/theme.css +98 -4
- package/dist/{tooltip-w0KptZat.d.ts → tooltip-CoAbjn9I.d.ts} +9 -1
- package/dist/tooltip-CoAbjn9I.d.ts.map +1 -0
- package/dist/{tooltip-CNEYdIX3.d.ts → tooltip-DI79u-1V.d.ts} +28 -2
- package/dist/tooltip-DI79u-1V.d.ts.map +1 -0
- package/dist/{tooltip-CMVyNolz.d.ts → tooltip-DPci40hM.d.ts} +21 -2
- package/dist/tooltip-DPci40hM.d.ts.map +1 -0
- package/dist/{tooltip-Cq46pSJ2.d.ts → tooltip-X7sMXf98.d.ts} +31 -3
- package/dist/tooltip-X7sMXf98.d.ts.map +1 -0
- package/dist/{tooltip-content-K0vPsEtI.d.ts → tooltip-content-Dr8bhW-q.d.ts} +4 -2
- package/dist/tooltip-content-Dr8bhW-q.d.ts.map +1 -0
- package/dist/{tooltip-CuHpilPN.js → tooltip-gHv-6eOs.js} +58 -47
- package/dist/tooltip-gHv-6eOs.js.map +1 -0
- package/dist/{tooltip-BVRmgnbZ.d.ts → tooltip-gKOUHp_1.d.ts} +28 -2
- 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-D9hKqIzm.d.ts → types-CbBZy33k.d.ts} +34 -2
- package/dist/types-CbBZy33k.d.ts.map +1 -0
- package/dist/{types-BB61jXS_.d.ts → types-ClKnPGuP.d.ts} +21 -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-BSMELKE5.d.ts → types-DlSHf6nJ.d.ts} +1 -1
- package/dist/types-DlSHf6nJ.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-B3RHxFkm.d.ts → use-crash-game-C6JPLvAH.d.ts} +60 -5
- package/dist/use-crash-game-C6JPLvAH.d.ts.map +1 -0
- 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-geometry-C84j2gUk.d.ts → use-geometry-BajLqxjC.d.ts} +1 -1
- package/dist/use-geometry-BajLqxjC.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-points-C2jpElHh.js → use-points-y0l-9pdN.js} +1 -1
- package/dist/use-points-y0l-9pdN.js.map +1 -0
- package/dist/{use-position-CWSE4wCz.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-Dve5wIjB.js +56 -0
- package/dist/utils-Dve5wIjB.js.map +1 -0
- package/dist/{utils-ZRfJ78Df.js → utils-F-hKjEFd.js} +1 -1
- package/dist/utils-F-hKjEFd.js.map +1 -0
- package/dist/utils-f7_cAAwc.js +55 -0
- package/dist/utils-f7_cAAwc.js.map +1 -0
- package/package.json +18 -18
- package/dist/account-avatar--0_0u0WW.js.map +0 -1
- package/dist/cascader-types-Bh_kJ3Qw.d.ts.map +0 -1
- package/dist/components/agents/agent-activity/index.d.ts +0 -4
- 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 +0 -49
- package/dist/components/agents/approval-card/index.d.ts.map +0 -1
- package/dist/components/agents/approval-card/index.js +0 -314
- 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 +0 -12
- 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.d.ts +0 -5
- package/dist/components/motion/button/index.js +0 -6
- package/dist/components/motion/combobox/context.d.ts.map +0 -1
- package/dist/components/motion/combobox/context.js.map +0 -1
- package/dist/components/motion/multi-select/context.d.ts.map +0 -1
- package/dist/components/motion/multi-select/context.js.map +0 -1
- 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 +0 -11
- 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-evLzfUhL.js.map +0 -1
- package/dist/context-3i2_6ly8.js.map +0 -1
- package/dist/context-C5TW-k6u.js.map +0 -1
- package/dist/context-CQbvWVnM.js.map +0 -1
- package/dist/context-CXlD0FcC.js.map +0 -1
- package/dist/context-ChsuSih6.js.map +0 -1
- package/dist/context-D-juVNr2.d.ts.map +0 -1
- package/dist/context-DUx44mGi.js.map +0 -1
- package/dist/context-DWXNECDe.js.map +0 -1
- package/dist/context-DdnKlMjE.js.map +0 -1
- package/dist/context-Dk6C9IvC.js.map +0 -1
- package/dist/context-i6Dwvi3T.js.map +0 -1
- package/dist/context-mjP5wifG.d.ts.map +0 -1
- package/dist/context-tv-kneJV.d.ts.map +0 -1
- package/dist/copy-menu-LU54Aruj.js.map +0 -1
- package/dist/crash-parts-CUv5gFYQ.js.map +0 -1
- package/dist/ease-DjhlGGZO.d.ts.map +0 -1
- package/dist/model-BFZGhrnQ.d.ts.map +0 -1
- package/dist/model-CvWolJdo.d.ts.map +0 -1
- package/dist/model-DuAc65oe.d.ts.map +0 -1
- package/dist/model-mS4UXPwk.d.ts.map +0 -1
- package/dist/path-VEfFUowr.d.ts.map +0 -1
- package/dist/plot-CTQFrQKi.js.map +0 -1
- package/dist/positioner-MidjIUUT.js.map +0 -1
- package/dist/presence-gate-DC7yL1Ls.js.map +0 -1
- package/dist/scale-DSsaupNc.d.ts.map +0 -1
- package/dist/tooltip-BVRmgnbZ.d.ts.map +0 -1
- package/dist/tooltip-CMVyNolz.d.ts.map +0 -1
- package/dist/tooltip-CNEYdIX3.d.ts.map +0 -1
- package/dist/tooltip-Cq46pSJ2.d.ts.map +0 -1
- package/dist/tooltip-CuHpilPN.js.map +0 -1
- package/dist/tooltip-content-K0vPsEtI.d.ts.map +0 -1
- package/dist/tooltip-w0KptZat.d.ts.map +0 -1
- package/dist/types-B0d0d7PF.d.ts +0 -34
- package/dist/types-B0d0d7PF.d.ts.map +0 -1
- package/dist/types-BB61jXS_.d.ts.map +0 -1
- package/dist/types-BSMELKE5.d.ts.map +0 -1
- package/dist/types-D9hKqIzm.d.ts.map +0 -1
- package/dist/types-qTGsGdN1.d.ts +0 -20
- package/dist/types-qTGsGdN1.d.ts.map +0 -1
- package/dist/use-active-option-DerS-wGL.js +0 -85
- package/dist/use-active-option-DerS-wGL.js.map +0 -1
- package/dist/use-crash-game-B3RHxFkm.d.ts.map +0 -1
- package/dist/use-geometry-C84j2gUk.d.ts.map +0 -1
- package/dist/use-inspection-CZhdpH8J.js.map +0 -1
- package/dist/use-points-C2jpElHh.js.map +0 -1
- package/dist/use-position-CWSE4wCz.d.ts.map +0 -1
- package/dist/use-width-CkKCh1b3.js +0 -23
- package/dist/use-width-CkKCh1b3.js.map +0 -1
- package/dist/utils-DMrlhG6M.js +0 -25
- package/dist/utils-DMrlhG6M.js.map +0 -1
- package/dist/utils-ZRfJ78Df.js.map +0 -1
|
@@ -1,53 +1,80 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { useId, useLayoutEffect, useRef } from "react";
|
|
3
|
+
import { Check, ChevronDown, Copy, FileCode2, LoaderCircle } from "lucide-react";
|
|
4
|
+
import { AnimatePresence, motion, useReducedMotion } from "motion/react";
|
|
5
|
+
import { EASE_OUT, SPRING_PRESS, SPRING_SWAP } from "../../lib/ease.js";
|
|
6
|
+
import { t as Tooltip } from "../../tooltip-gHv-6eOs.js";
|
|
3
7
|
import { AgentCodeLine, useAgentCodeTokens } from "./agent-code.js";
|
|
4
8
|
import { AgentDisclosure } from "./agent-disclosure.js";
|
|
5
|
-
import {
|
|
6
|
-
import { cn } from "@kumix/utils";
|
|
9
|
+
import { IconSwap } from "./icon-swap.js";
|
|
7
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
11
|
+
import { cn } from "@kumix/utils";
|
|
12
|
+
import { useCopy } from "../../hooks/use-copy.js";
|
|
13
|
+
import { useStatusOpen } from "../../hooks/use-status-open.js";
|
|
14
|
+
import { formatNumber, useLocale, useMessages } from "../../lib/i18n.js";
|
|
10
15
|
// src/components/agents/file-diff.tsx
|
|
16
|
+
const DIFFSTAT_BLOCKS = 5;
|
|
17
|
+
const LINE_IN = {
|
|
18
|
+
duration: .18,
|
|
19
|
+
ease: EASE_OUT
|
|
20
|
+
};
|
|
21
|
+
/** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */
|
|
22
|
+
const fileDiffMessages = {
|
|
23
|
+
applying: "Applying changes",
|
|
24
|
+
applied: "Changes applied",
|
|
25
|
+
changes: "File changes",
|
|
26
|
+
copy: "Copy diff",
|
|
27
|
+
copied: "Copied"
|
|
28
|
+
};
|
|
11
29
|
function ChangeCount({ value, type }) {
|
|
30
|
+
const { locale } = useLocale();
|
|
12
31
|
if (!value) return null;
|
|
13
32
|
return /* @__PURE__ */ jsxs("span", {
|
|
14
33
|
className: cn("font-mono text-xs tabular-nums", type === "added" ? "text-emerald-600 dark:text-emerald-400" : "text-rose-600 dark:text-rose-400"),
|
|
15
|
-
children: [type === "added" ? "+" : "−", value]
|
|
34
|
+
children: [type === "added" ? "+" : "−", formatNumber(value, locale)]
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Five blocks split between additions and deletions, so the size and shape
|
|
39
|
+
* of the change reads at a glance. The counts beside it carry the numbers.
|
|
40
|
+
*/
|
|
41
|
+
function DiffStat({ additions, deletions }) {
|
|
42
|
+
const total = additions + deletions;
|
|
43
|
+
if (!total) return null;
|
|
44
|
+
const added = Math.round(additions / total * DIFFSTAT_BLOCKS);
|
|
45
|
+
return /* @__PURE__ */ jsx("span", {
|
|
46
|
+
"aria-hidden": "true",
|
|
47
|
+
className: "flex shrink-0 gap-0.5",
|
|
48
|
+
children: Array.from({ length: DIFFSTAT_BLOCKS }, (_, index) => /* @__PURE__ */ jsx("span", { className: cn("size-1.5 rounded-[2px] transition-colors duration-200", index < added ? "bg-emerald-500" : "bg-rose-500") }, index))
|
|
16
49
|
});
|
|
17
50
|
}
|
|
18
|
-
function FileDiff({ file, lines, status = "streaming", open, defaultOpen = true, onOpenChange, collapseOnComplete = true, maxHeight = 220, language = "typescript", copyText, onCopy, className }) {
|
|
51
|
+
function FileDiff({ file, lines, status = "streaming", open, defaultOpen = true, onOpenChange, collapseOnComplete = true, maxHeight = 220, language = "typescript", copyText, onCopy, labels, className }) {
|
|
52
|
+
const t = useMessages("fileDiff", fileDiffMessages, labels);
|
|
19
53
|
const reduce = useReducedMotion() ?? false;
|
|
20
54
|
const baseId = useId();
|
|
21
55
|
const triggerId = `${baseId}-trigger`;
|
|
22
56
|
const contentId = `${baseId}-content`;
|
|
23
57
|
const viewportRef = useRef(null);
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const currentOpen =
|
|
58
|
+
const { copied, copy: handleCopy } = useCopy({
|
|
59
|
+
text: copyText,
|
|
60
|
+
onCopy
|
|
61
|
+
});
|
|
62
|
+
const [currentOpen, setOpen] = useStatusOpen({
|
|
63
|
+
status,
|
|
64
|
+
open,
|
|
65
|
+
defaultOpen,
|
|
66
|
+
onOpenChange,
|
|
67
|
+
decide: (previous, next) => {
|
|
68
|
+
if (previous !== "streaming" && next === "streaming") return true;
|
|
69
|
+
if (previous === "streaming" && next === "complete" && collapseOnComplete) return false;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
29
72
|
const streaming = status === "streaming";
|
|
30
73
|
const additions = lines.filter((line) => line.type === "added").length;
|
|
31
74
|
const deletions = lines.filter((line) => line.type === "removed").length;
|
|
32
75
|
const canCopy = Boolean(copyText || onCopy);
|
|
33
76
|
const code = lines.map((line) => line.content).join("\n");
|
|
34
77
|
const tokens = useAgentCodeTokens(code, language);
|
|
35
|
-
const setOpen = useCallback((next) => {
|
|
36
|
-
if (open === void 0) setInternalOpen(next);
|
|
37
|
-
onOpenChange?.(next);
|
|
38
|
-
}, [onOpenChange, open]);
|
|
39
|
-
useEffect(() => {
|
|
40
|
-
if (previousStatus.current !== "streaming" && status === "streaming") setOpen(true);
|
|
41
|
-
if (previousStatus.current === "streaming" && status === "complete" && collapseOnComplete) setOpen(false);
|
|
42
|
-
previousStatus.current = status;
|
|
43
|
-
}, [
|
|
44
|
-
collapseOnComplete,
|
|
45
|
-
setOpen,
|
|
46
|
-
status
|
|
47
|
-
]);
|
|
48
|
-
useEffect(() => () => {
|
|
49
|
-
if (copyTimer.current) window.clearTimeout(copyTimer.current);
|
|
50
|
-
}, []);
|
|
51
78
|
useLayoutEffect(() => {
|
|
52
79
|
const viewport = viewportRef.current;
|
|
53
80
|
if (!viewport || !currentOpen || !streaming) return;
|
|
@@ -61,13 +88,6 @@ function FileDiff({ file, lines, status = "streaming", open, defaultOpen = true,
|
|
|
61
88
|
});
|
|
62
89
|
return () => cancelAnimationFrame(frame);
|
|
63
90
|
});
|
|
64
|
-
const handleCopy = useCallback(async () => {
|
|
65
|
-
if (onCopy) await onCopy();
|
|
66
|
-
else if (copyText) await navigator.clipboard?.writeText(copyText);
|
|
67
|
-
setCopied(true);
|
|
68
|
-
if (copyTimer.current) window.clearTimeout(copyTimer.current);
|
|
69
|
-
copyTimer.current = window.setTimeout(() => setCopied(false), 1600);
|
|
70
|
-
}, [copyText, onCopy]);
|
|
71
91
|
return /* @__PURE__ */ jsxs("div", {
|
|
72
92
|
"data-state": status,
|
|
73
93
|
"aria-busy": streaming,
|
|
@@ -78,7 +98,7 @@ function FileDiff({ file, lines, status = "streaming", open, defaultOpen = true,
|
|
|
78
98
|
"aria-expanded": currentOpen,
|
|
79
99
|
"aria-controls": contentId,
|
|
80
100
|
onClick: () => setOpen(!currentOpen),
|
|
81
|
-
className: "group focus-visible:ring-ring focus-visible:ring-offset-background flex min-h-9 w-full items-center gap-2 rounded-
|
|
101
|
+
className: "group focus-visible:ring-ring focus-visible:ring-offset-background flex min-h-9 w-full items-center gap-2 rounded-full py-1 text-left outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
82
102
|
children: [
|
|
83
103
|
/* @__PURE__ */ jsx(FileCode2, {
|
|
84
104
|
"aria-hidden": "true",
|
|
@@ -90,22 +110,32 @@ function FileDiff({ file, lines, status = "streaming", open, defaultOpen = true,
|
|
|
90
110
|
}),
|
|
91
111
|
/* @__PURE__ */ jsxs("span", {
|
|
92
112
|
className: "flex shrink-0 items-center gap-2",
|
|
93
|
-
children: [
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
113
|
+
children: [
|
|
114
|
+
/* @__PURE__ */ jsx(ChangeCount, {
|
|
115
|
+
value: additions,
|
|
116
|
+
type: "added"
|
|
117
|
+
}),
|
|
118
|
+
/* @__PURE__ */ jsx(ChangeCount, {
|
|
119
|
+
value: deletions,
|
|
120
|
+
type: "removed"
|
|
121
|
+
}),
|
|
122
|
+
/* @__PURE__ */ jsx(DiffStat, {
|
|
123
|
+
additions,
|
|
124
|
+
deletions
|
|
125
|
+
})
|
|
126
|
+
]
|
|
100
127
|
}),
|
|
101
128
|
/* @__PURE__ */ jsx("span", {
|
|
102
129
|
className: "text-muted-foreground/60 grid size-4 shrink-0 place-items-center",
|
|
103
|
-
children:
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
130
|
+
children: /* @__PURE__ */ jsx(IconSwap, {
|
|
131
|
+
id: streaming ? "applying" : "applied",
|
|
132
|
+
children: streaming ? /* @__PURE__ */ jsx(LoaderCircle, {
|
|
133
|
+
"aria-label": t("applying"),
|
|
134
|
+
className: cn("size-3.5", !reduce && "animate-spin")
|
|
135
|
+
}) : /* @__PURE__ */ jsx(Check, {
|
|
136
|
+
"aria-label": t("applied"),
|
|
137
|
+
className: "size-3.5"
|
|
138
|
+
})
|
|
109
139
|
})
|
|
110
140
|
}),
|
|
111
141
|
/* @__PURE__ */ jsx(motion.span, {
|
|
@@ -124,7 +154,7 @@ function FileDiff({ file, lines, status = "streaming", open, defaultOpen = true,
|
|
|
124
154
|
children: /* @__PURE__ */ jsx("div", {
|
|
125
155
|
className: "pt-1.5 pl-6",
|
|
126
156
|
children: /* @__PURE__ */ jsxs("div", {
|
|
127
|
-
className: "bg-muted/80 overflow-hidden rounded-xl",
|
|
157
|
+
className: "group/diff bg-muted/80 relative overflow-hidden rounded-xl",
|
|
128
158
|
children: [/* @__PURE__ */ jsx("div", {
|
|
129
159
|
ref: viewportRef,
|
|
130
160
|
"data-slot": "file-diff-viewport",
|
|
@@ -135,44 +165,57 @@ function FileDiff({ file, lines, status = "streaming", open, defaultOpen = true,
|
|
|
135
165
|
className: "font-mono text-xs leading-5",
|
|
136
166
|
children: [/* @__PURE__ */ jsx("span", {
|
|
137
167
|
className: "sr-only",
|
|
138
|
-
children: "
|
|
139
|
-
}),
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
168
|
+
children: t("changes")
|
|
169
|
+
}), /* @__PURE__ */ jsx(AnimatePresence, {
|
|
170
|
+
initial: false,
|
|
171
|
+
children: lines.map((line, index) => {
|
|
172
|
+
const type = line.type ?? "context";
|
|
173
|
+
const ready = tokens === null || Boolean(tokens[index]);
|
|
174
|
+
return /* @__PURE__ */ jsxs(motion.div, {
|
|
175
|
+
initial: { opacity: 0 },
|
|
176
|
+
animate: { opacity: ready ? 1 : 0 },
|
|
177
|
+
transition: LINE_IN,
|
|
178
|
+
className: cn("grid grid-cols-[2.25rem_2.25rem_1rem_minmax(0,1fr)]", type === "added" && "bg-emerald-500/10 shadow-[inset_2px_0_0_var(--color-emerald-500)]", type === "removed" && "bg-rose-500/10 shadow-[inset_2px_0_0_var(--color-rose-500)]"),
|
|
179
|
+
children: [
|
|
180
|
+
/* @__PURE__ */ jsx("span", {
|
|
181
|
+
className: "text-muted-foreground/40 pr-2 text-right tabular-nums select-none",
|
|
182
|
+
children: line.oldLine
|
|
183
|
+
}),
|
|
184
|
+
/* @__PURE__ */ jsx("span", {
|
|
185
|
+
className: "text-muted-foreground/40 pr-2 text-right tabular-nums select-none",
|
|
186
|
+
children: line.newLine
|
|
187
|
+
}),
|
|
188
|
+
/* @__PURE__ */ jsx("span", {
|
|
189
|
+
className: cn("text-muted-foreground/45 text-center select-none", type === "added" && "text-emerald-600 dark:text-emerald-400", type === "removed" && "text-rose-600 dark:text-rose-400"),
|
|
190
|
+
children: type === "added" ? "+" : type === "removed" ? "−" : ""
|
|
191
|
+
}),
|
|
192
|
+
/* @__PURE__ */ jsx(AgentCodeLine, {
|
|
193
|
+
code: line.content,
|
|
194
|
+
tokens: tokens?.[index],
|
|
195
|
+
className: "min-w-0 px-1.5 whitespace-pre"
|
|
196
|
+
})
|
|
197
|
+
]
|
|
198
|
+
}, line.id);
|
|
199
|
+
})
|
|
163
200
|
})]
|
|
164
201
|
})
|
|
165
202
|
}), canCopy ? /* @__PURE__ */ jsx("div", {
|
|
166
|
-
className: "
|
|
167
|
-
children: /* @__PURE__ */ jsx(
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
203
|
+
className: cn("absolute top-1.5 right-1.5 transition-opacity duration-150 group-focus-within/diff:opacity-100 group-hover/diff:opacity-100 [@media(hover:none)]:opacity-100", copied ? "opacity-100" : "opacity-0"),
|
|
204
|
+
children: /* @__PURE__ */ jsx(Tooltip, {
|
|
205
|
+
content: copied ? t("copied") : t("copy"),
|
|
206
|
+
side: "top",
|
|
207
|
+
children: /* @__PURE__ */ jsx(motion.button, {
|
|
208
|
+
type: "button",
|
|
209
|
+
"aria-label": copied ? t("copied") : t("copy"),
|
|
210
|
+
onClick: handleCopy,
|
|
211
|
+
whileTap: reduce ? void 0 : { scale: .95 },
|
|
212
|
+
transition: SPRING_PRESS,
|
|
213
|
+
className: "border-border bg-background text-muted-foreground hover:text-foreground focus-visible:ring-ring grid size-7 place-items-center rounded-full border transition-colors outline-none focus-visible:ring-2",
|
|
214
|
+
children: /* @__PURE__ */ jsx(IconSwap, {
|
|
215
|
+
id: copied ? "copied" : "copy",
|
|
216
|
+
children: copied ? /* @__PURE__ */ jsx(Check, { className: "size-3.5" }) : /* @__PURE__ */ jsx(Copy, { className: "size-3.5" })
|
|
217
|
+
})
|
|
218
|
+
})
|
|
176
219
|
})
|
|
177
220
|
}) : null]
|
|
178
221
|
})
|
|
@@ -180,6 +223,6 @@ function FileDiff({ file, lines, status = "streaming", open, defaultOpen = true,
|
|
|
180
223
|
})]
|
|
181
224
|
});
|
|
182
225
|
}
|
|
183
|
-
export { FileDiff };
|
|
226
|
+
export { FileDiff, fileDiffMessages };
|
|
184
227
|
|
|
185
228
|
//# sourceMappingURL=file-diff.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-diff.js","names":[],"sources":["../../../src/components/agents/file-diff.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n type ReactNode,\n useCallback,\n useEffect,\n useId,\n useLayoutEffect,\n useRef,\n useState,\n} from \"react\";\nimport { Check, ChevronDown, Copy, FileCode2, LoaderCircle } from \"lucide-react\";\nimport { motion, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { SPRING_PRESS, SPRING_SWAP } from \"../../lib/ease\";\nimport { type AgentCodeLanguage, AgentCodeLine, useAgentCodeTokens } from \"./agent-code\";\nimport { AgentDisclosure } from \"./agent-disclosure\";\n\nexport type FileDiffStatus = \"streaming\" | \"complete\";\nexport type FileDiffLineType = \"added\" | \"removed\" | \"context\";\n\nexport interface FileDiffLine {\n id: string;\n type?: FileDiffLineType;\n oldLine?: number;\n newLine?: number;\n content: string;\n}\n\nexport interface FileDiffProps {\n file: ReactNode;\n lines: FileDiffLine[];\n status?: FileDiffStatus;\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n collapseOnComplete?: boolean;\n maxHeight?: number;\n language?: AgentCodeLanguage;\n copyText?: string;\n onCopy?: () => void | Promise<void>;\n className?: string;\n}\n\nfunction ChangeCount({ value, type }: { value: number; type: \"added\" | \"removed\" }) {\n if (!value) return null;\n return (\n <span\n className={cn(\n \"font-mono text-xs tabular-nums\",\n type === \"added\"\n ? \"text-emerald-600 dark:text-emerald-400\"\n : \"text-rose-600 dark:text-rose-400\",\n )}\n >\n {type === \"added\" ? \"+\" : \"−\"}\n {value}\n </span>\n );\n}\n\nexport function FileDiff({\n file,\n lines,\n status = \"streaming\",\n open,\n defaultOpen = true,\n onOpenChange,\n collapseOnComplete = true,\n maxHeight = 220,\n language = \"typescript\",\n copyText,\n onCopy,\n className,\n}: FileDiffProps) {\n const reduce = useReducedMotion() ?? false;\n const baseId = useId();\n const triggerId = `${baseId}-trigger`;\n const contentId = `${baseId}-content`;\n const viewportRef = useRef<HTMLDivElement>(null);\n const previousStatus = useRef(status);\n const copyTimer = useRef<number | undefined>(undefined);\n const [copied, setCopied] = useState(false);\n const [internalOpen, setInternalOpen] = useState(defaultOpen);\n const currentOpen = open ?? internalOpen;\n const streaming = status === \"streaming\";\n const additions = lines.filter((line) => line.type === \"added\").length;\n const deletions = lines.filter((line) => line.type === \"removed\").length;\n const canCopy = Boolean(copyText || onCopy);\n const code = lines.map((line) => line.content).join(\"\\n\");\n const tokens = useAgentCodeTokens(code, language);\n\n const setOpen = useCallback(\n (next: boolean) => {\n if (open === undefined) setInternalOpen(next);\n onOpenChange?.(next);\n },\n [onOpenChange, open],\n );\n\n useEffect(() => {\n if (previousStatus.current !== \"streaming\" && status === \"streaming\") {\n setOpen(true);\n }\n if (previousStatus.current === \"streaming\" && status === \"complete\" && collapseOnComplete) {\n setOpen(false);\n }\n previousStatus.current = status;\n }, [collapseOnComplete, setOpen, status]);\n\n useEffect(\n () => () => {\n if (copyTimer.current) window.clearTimeout(copyTimer.current);\n },\n [],\n );\n\n useLayoutEffect(() => {\n const viewport = viewportRef.current;\n if (!viewport || !currentOpen || !streaming) return;\n\n const frame = requestAnimationFrame(() => {\n if (viewport.scrollHeight <= viewport.clientHeight) return;\n if (typeof viewport.scrollTo === \"function\") {\n viewport.scrollTo({\n top: viewport.scrollHeight,\n behavior: reduce ? \"auto\" : \"smooth\",\n });\n } else {\n viewport.scrollTop = viewport.scrollHeight;\n }\n });\n return () => cancelAnimationFrame(frame);\n });\n\n const handleCopy = useCallback(async () => {\n if (onCopy) await onCopy();\n else if (copyText) await navigator.clipboard?.writeText(copyText);\n\n setCopied(true);\n if (copyTimer.current) window.clearTimeout(copyTimer.current);\n copyTimer.current = window.setTimeout(() => setCopied(false), 1600);\n }, [copyText, onCopy]);\n\n return (\n <div data-state={status} aria-busy={streaming} className={cn(\"w-full text-sm\", className)}>\n <button\n id={triggerId}\n type=\"button\"\n aria-expanded={currentOpen}\n aria-controls={contentId}\n onClick={() => setOpen(!currentOpen)}\n className=\"group focus-visible:ring-ring focus-visible:ring-offset-background flex min-h-9 w-full items-center gap-2 rounded-md py-1 text-left outline-none focus-visible:ring-2 focus-visible:ring-offset-2\"\n >\n <FileCode2 aria-hidden=\"true\" className=\"text-muted-foreground size-4 shrink-0\" />\n <span className=\"text-foreground/80 min-w-0 flex-1 truncate font-mono text-xs\">{file}</span>\n <span className=\"flex shrink-0 items-center gap-2\">\n <ChangeCount value={additions} type=\"added\" />\n <ChangeCount value={deletions} type=\"removed\" />\n </span>\n <span className=\"text-muted-foreground/60 grid size-4 shrink-0 place-items-center\">\n {streaming ? (\n <LoaderCircle\n aria-label=\"Applying changes\"\n className={cn(\"size-3.5\", !reduce && \"animate-spin\")}\n />\n ) : (\n <Check aria-label=\"Changes applied\" className=\"size-3.5\" />\n )}\n </span>\n <motion.span\n aria-hidden=\"true\"\n animate={{ rotate: currentOpen ? 180 : 0 }}\n transition={reduce ? { duration: 0 } : SPRING_SWAP}\n className=\"text-muted-foreground/45 group-hover:text-muted-foreground shrink-0 transition-colors\"\n >\n <ChevronDown className=\"size-3.5\" />\n </motion.span>\n </button>\n\n <AgentDisclosure id={contentId} role=\"region\" aria-labelledby={triggerId} open={currentOpen}>\n <div className=\"pt-1.5 pl-6\">\n <div className=\"bg-muted/80 overflow-hidden rounded-xl\">\n <div\n ref={viewportRef}\n data-slot=\"file-diff-viewport\"\n aria-live=\"polite\"\n className=\"scrollbar-hide overflow-auto\"\n style={{ maxHeight }}\n >\n <div className=\"font-mono text-xs leading-5\">\n <span className=\"sr-only\">File changes</span>\n {lines.map((line, index) => {\n const type = line.type ?? \"context\";\n return (\n <div\n key={line.id}\n className={cn(\n \"grid grid-cols-[2.25rem_2.25rem_1rem_minmax(0,1fr)]\",\n type === \"added\" && \"bg-emerald-500/[0.07]\",\n type === \"removed\" && \"bg-rose-500/[0.07]\",\n )}\n >\n <span className=\"text-muted-foreground/40 pr-2 text-right tabular-nums select-none\">\n {line.oldLine}\n </span>\n <span className=\"text-muted-foreground/40 pr-2 text-right tabular-nums select-none\">\n {line.newLine}\n </span>\n <span\n className={cn(\n \"text-muted-foreground/45 text-center select-none\",\n type === \"added\" && \"text-emerald-600 dark:text-emerald-400\",\n type === \"removed\" && \"text-rose-600 dark:text-rose-400\",\n )}\n >\n {type === \"added\" ? \"+\" : type === \"removed\" ? \"−\" : \"\"}\n </span>\n <AgentCodeLine\n code={line.content}\n tokens={tokens?.[index]}\n className=\"min-w-0 px-1.5 whitespace-pre\"\n />\n </div>\n );\n })}\n </div>\n </div>\n\n {canCopy ? (\n <div className=\"flex justify-end px-2 pt-1 pb-1.5\">\n <motion.button\n type=\"button\"\n aria-label={copied ? \"Copied\" : \"Copy diff\"}\n title={copied ? \"Copied\" : \"Copy diff\"}\n onClick={handleCopy}\n whileTap={reduce ? undefined : { scale: 0.9 }}\n transition={SPRING_PRESS}\n className=\"text-muted-foreground hover:bg-background/70 hover:text-foreground focus-visible:ring-ring grid size-7 place-items-center rounded-md transition-colors outline-none focus-visible:ring-2\"\n >\n {copied ? <Check className=\"size-3.5\" /> : <Copy className=\"size-3.5\" />}\n </motion.button>\n </div>\n ) : null}\n </div>\n </div>\n </AgentDisclosure>\n </div>\n );\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"file-diff.js","names":[],"sources":["../../../src/components/agents/file-diff.tsx"],"sourcesContent":["\"use client\";\n\nimport { type ReactNode, useId, useLayoutEffect, useRef } from \"react\";\nimport { Check, ChevronDown, Copy, FileCode2, LoaderCircle } from \"lucide-react\";\nimport { AnimatePresence, motion, useReducedMotion } from \"motion/react\";\n\nimport { EASE_OUT, SPRING_PRESS, SPRING_SWAP } from \"../../lib/ease\";\nimport { Tooltip } from \"../motion/tooltip\";\nimport { type AgentCodeLanguage, AgentCodeLine, useAgentCodeTokens } from \"./agent-code\";\nimport { AgentDisclosure } from \"./agent-disclosure\";\nimport { IconSwap } from \"./icon-swap\";\n\nconst DIFFSTAT_BLOCKS = 5;\n\n// A streamed line settles quickly: lines can arrive many times a second.\nconst LINE_IN = { duration: 0.18, ease: EASE_OUT } as const;\n\nimport { cn } from \"@kumix/utils\";\nimport { useCopy } from \"../../hooks/use-copy\";\nimport { useStatusOpen } from \"../../hooks/use-status-open\";\nimport { formatNumber, useLocale, useMessages } from \"../../lib/i18n\";\n\nexport type FileDiffStatus = \"streaming\" | \"complete\";\nexport type FileDiffLineType = \"added\" | \"removed\" | \"context\";\n\nexport interface FileDiffLine {\n /** Stable key, so streamed lines keep their place. */\n id: string;\n /** Marks the line added (green, +), removed (red, −) or unchanged. Default: \"context\" */\n type?: FileDiffLineType;\n /** Line number in the old file, shown in the first gutter. Blank when not set. */\n oldLine?: number;\n /** Line number in the new file, shown in the second gutter. Blank when not set. */\n newLine?: number;\n /** The line's code, without the + or − marker. Syntax highlighted. */\n content: string;\n}\n\n/** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */\nexport const fileDiffMessages = {\n applying: \"Applying changes\",\n applied: \"Changes applied\",\n changes: \"File changes\",\n copy: \"Copy diff\",\n copied: \"Copied\",\n};\n\nexport type FileDiffMessages = typeof fileDiffMessages;\n\nexport interface FileDiffProps {\n /** File name or path shown in the header. */\n file: ReactNode;\n /** Diff lines, each added, removed or context, with optional line numbers. */\n lines: FileDiffLine[];\n /** \"streaming\" while lines arrive, \"complete\" once the edit lands. Default: \"streaming\" */\n status?: FileDiffStatus;\n /** Whether the diff is expanded, for controlled use. */\n open?: boolean;\n /** Whether the diff starts expanded when uncontrolled. Default: true */\n defaultOpen?: boolean;\n /** Called with the new state when the diff expands or collapses. */\n onOpenChange?: (open: boolean) => void;\n /** Fold the diff when status moves from streaming to complete. Default: true */\n collapseOnComplete?: boolean;\n /** Tallest the line viewport grows before it scrolls (px). Default: 220 */\n maxHeight?: number;\n /** Language used for syntax highlighting. Default: \"typescript\" */\n language?: AgentCodeLanguage;\n /** Text the copy button writes to the clipboard. Shows the button when set. */\n copyText?: string;\n /** Runs instead of the clipboard write when the copy button is pressed. */\n onCopy?: () => void | Promise<void>;\n /** Override any built-in string. */\n labels?: Partial<FileDiffMessages>;\n /** Classes merged onto the root element. */\n className?: string;\n}\n\nfunction ChangeCount({ value, type }: { value: number; type: \"added\" | \"removed\" }) {\n const { locale } = useLocale();\n if (!value) return null;\n return (\n <span\n className={cn(\n \"font-mono text-xs tabular-nums\",\n type === \"added\"\n ? \"text-emerald-600 dark:text-emerald-400\"\n : \"text-rose-600 dark:text-rose-400\",\n )}\n >\n {type === \"added\" ? \"+\" : \"−\"}\n {formatNumber(value, locale)}\n </span>\n );\n}\n\n/**\n * Five blocks split between additions and deletions, so the size and shape\n * of the change reads at a glance. The counts beside it carry the numbers.\n */\nfunction DiffStat({ additions, deletions }: { additions: number; deletions: number }) {\n const total = additions + deletions;\n if (!total) return null;\n const added = Math.round((additions / total) * DIFFSTAT_BLOCKS);\n return (\n <span aria-hidden=\"true\" className=\"flex shrink-0 gap-0.5\">\n {Array.from({ length: DIFFSTAT_BLOCKS }, (_, index) => (\n <span\n key={index}\n className={cn(\n \"size-1.5 rounded-[2px] transition-colors duration-200\",\n index < added ? \"bg-emerald-500\" : \"bg-rose-500\",\n )}\n />\n ))}\n </span>\n );\n}\n\nexport function FileDiff({\n file,\n lines,\n status = \"streaming\",\n open,\n defaultOpen = true,\n onOpenChange,\n collapseOnComplete = true,\n maxHeight = 220,\n language = \"typescript\",\n copyText,\n onCopy,\n labels,\n className,\n}: FileDiffProps) {\n const t = useMessages(\"fileDiff\", fileDiffMessages, labels);\n const reduce = useReducedMotion() ?? false;\n const baseId = useId();\n const triggerId = `${baseId}-trigger`;\n const contentId = `${baseId}-content`;\n const viewportRef = useRef<HTMLDivElement>(null);\n const { copied, copy: handleCopy } = useCopy({ text: copyText, onCopy });\n // Opens when streaming starts; folds when it completes, if asked to.\n const [currentOpen, setOpen] = useStatusOpen({\n status,\n open,\n defaultOpen,\n onOpenChange,\n decide: (previous, next) => {\n if (previous !== \"streaming\" && next === \"streaming\") return true;\n if (previous === \"streaming\" && next === \"complete\" && collapseOnComplete) return false;\n return undefined;\n },\n });\n const streaming = status === \"streaming\";\n const additions = lines.filter((line) => line.type === \"added\").length;\n const deletions = lines.filter((line) => line.type === \"removed\").length;\n const canCopy = Boolean(copyText || onCopy);\n const code = lines.map((line) => line.content).join(\"\\n\");\n const tokens = useAgentCodeTokens(code, language);\n\n useLayoutEffect(() => {\n const viewport = viewportRef.current;\n if (!viewport || !currentOpen || !streaming) return;\n\n const frame = requestAnimationFrame(() => {\n if (viewport.scrollHeight <= viewport.clientHeight) return;\n if (typeof viewport.scrollTo === \"function\") {\n viewport.scrollTo({\n top: viewport.scrollHeight,\n behavior: reduce ? \"auto\" : \"smooth\",\n });\n } else {\n viewport.scrollTop = viewport.scrollHeight;\n }\n });\n return () => cancelAnimationFrame(frame);\n });\n\n return (\n <div data-state={status} aria-busy={streaming} className={cn(\"w-full text-sm\", className)}>\n <button\n id={triggerId}\n type=\"button\"\n aria-expanded={currentOpen}\n aria-controls={contentId}\n onClick={() => setOpen(!currentOpen)}\n className=\"group focus-visible:ring-ring focus-visible:ring-offset-background flex min-h-9 w-full items-center gap-2 rounded-full py-1 text-left outline-none focus-visible:ring-2 focus-visible:ring-offset-2\"\n >\n <FileCode2 aria-hidden=\"true\" className=\"text-muted-foreground size-4 shrink-0\" />\n <span className=\"text-foreground/80 min-w-0 flex-1 truncate font-mono text-xs\">{file}</span>\n <span className=\"flex shrink-0 items-center gap-2\">\n <ChangeCount value={additions} type=\"added\" />\n <ChangeCount value={deletions} type=\"removed\" />\n <DiffStat additions={additions} deletions={deletions} />\n </span>\n <span className=\"text-muted-foreground/60 grid size-4 shrink-0 place-items-center\">\n <IconSwap id={streaming ? \"applying\" : \"applied\"}>\n {streaming ? (\n <LoaderCircle\n aria-label={t(\"applying\")}\n className={cn(\"size-3.5\", !reduce && \"animate-spin\")}\n />\n ) : (\n <Check aria-label={t(\"applied\")} className=\"size-3.5\" />\n )}\n </IconSwap>\n </span>\n <motion.span\n aria-hidden=\"true\"\n animate={{ rotate: currentOpen ? 180 : 0 }}\n transition={reduce ? { duration: 0 } : SPRING_SWAP}\n className=\"text-muted-foreground/45 group-hover:text-muted-foreground shrink-0 transition-colors\"\n >\n <ChevronDown className=\"size-3.5\" />\n </motion.span>\n </button>\n\n <AgentDisclosure id={contentId} role=\"region\" aria-labelledby={triggerId} open={currentOpen}>\n <div className=\"pt-1.5 pl-6\">\n <div className=\"group/diff bg-muted/80 relative overflow-hidden rounded-xl\">\n <div\n ref={viewportRef}\n data-slot=\"file-diff-viewport\"\n aria-live=\"polite\"\n className=\"scrollbar-hide overflow-auto\"\n style={{ maxHeight }}\n >\n <div className=\"font-mono text-xs leading-5\">\n <span className=\"sr-only\">{t(\"changes\")}</span>\n {/* Lines that stream in fade in, opacity only: a moving line\n fights the auto-scroll that follows the stream. Lines\n already there when the diff mounts are simply shown. */}\n <AnimatePresence initial={false}>\n {lines.map((line, index) => {\n const type = line.type ?? \"context\";\n // A streamed line waits for its syntax colours before it\n // shows: shown at once, it would flash as plain text and\n // then recolour mid-fade. Before the highlighter has run at\n // all (`tokens` null), lines show plain.\n const ready = tokens === null || Boolean(tokens[index]);\n return (\n <motion.div\n key={line.id}\n initial={{ opacity: 0 }}\n animate={{ opacity: ready ? 1 : 0 }}\n transition={LINE_IN}\n className={cn(\n \"grid grid-cols-[2.25rem_2.25rem_1rem_minmax(0,1fr)]\",\n // A tint plus a 2px edge: the edge still marks the\n // line where a faint tint melts into the panel.\n type === \"added\" &&\n \"bg-emerald-500/10 shadow-[inset_2px_0_0_var(--color-emerald-500)]\",\n type === \"removed\" &&\n \"bg-rose-500/10 shadow-[inset_2px_0_0_var(--color-rose-500)]\",\n )}\n >\n <span className=\"text-muted-foreground/40 pr-2 text-right tabular-nums select-none\">\n {line.oldLine}\n </span>\n <span className=\"text-muted-foreground/40 pr-2 text-right tabular-nums select-none\">\n {line.newLine}\n </span>\n <span\n className={cn(\n \"text-muted-foreground/45 text-center select-none\",\n type === \"added\" && \"text-emerald-600 dark:text-emerald-400\",\n type === \"removed\" && \"text-rose-600 dark:text-rose-400\",\n )}\n >\n {type === \"added\" ? \"+\" : type === \"removed\" ? \"−\" : \"\"}\n </span>\n <AgentCodeLine\n code={line.content}\n tokens={tokens?.[index]}\n className=\"min-w-0 px-1.5 whitespace-pre\"\n />\n </motion.div>\n );\n })}\n </AnimatePresence>\n </div>\n </div>\n\n {canCopy ? (\n // Floats in the corner instead of taking a row of its own. It\n // shows on hover or focus where there is a pointer, always on\n // touch, and stays while \"Copied\" is showing.\n <div\n className={cn(\n \"absolute top-1.5 right-1.5 transition-opacity duration-150 group-focus-within/diff:opacity-100 group-hover/diff:opacity-100 [@media(hover:none)]:opacity-100\",\n copied ? \"opacity-100\" : \"opacity-0\",\n )}\n >\n <Tooltip content={copied ? t(\"copied\") : t(\"copy\")} side=\"top\">\n <motion.button\n type=\"button\"\n aria-label={copied ? t(\"copied\") : t(\"copy\")}\n onClick={handleCopy}\n whileTap={reduce ? undefined : { scale: 0.95 }}\n transition={SPRING_PRESS}\n className=\"border-border bg-background text-muted-foreground hover:text-foreground focus-visible:ring-ring grid size-7 place-items-center rounded-full border transition-colors outline-none focus-visible:ring-2\"\n >\n <IconSwap id={copied ? \"copied\" : \"copy\"}>\n {copied ? <Check className=\"size-3.5\" /> : <Copy className=\"size-3.5\" />}\n </IconSwap>\n </motion.button>\n </Tooltip>\n </div>\n ) : null}\n </div>\n </div>\n </AgentDisclosure>\n </div>\n );\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
export interface IconSwapProps {
|
|
3
|
+
/** Changes whenever the icon should change (copy → copied, running → done). */
|
|
4
|
+
id: string;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Crossfades one status icon into the next with a little scale and a 2px
|
|
10
|
+
* blur, so the change reads as one icon morphing rather than two crossing.
|
|
11
|
+
* Reduced motion keeps the fade and drops the scale.
|
|
12
|
+
*/
|
|
13
|
+
export declare function IconSwap({ id, children, className }: IconSwapProps): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=icon-swap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-swap.d.ts","names":[],"sources":["../../../src/components/agents/icon-swap.tsx"],"mappings":";iBAQiB;;EAEf;EACA,UAAU;EACV;;;;;;;wBAQc,WAAW,IAAI,UAAU,aAAa,gCAAa,IAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { AnimatePresence, motion, useReducedMotion } from "motion/react";
|
|
3
|
+
import { cn } from "@kumix/utils";
|
|
4
|
+
import { SPRING_SWAP } from "../../lib/ease.js";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
// src/components/agents/icon-swap.tsx
|
|
7
|
+
/**
|
|
8
|
+
* Crossfades one status icon into the next with a little scale and a 2px
|
|
9
|
+
* blur, so the change reads as one icon morphing rather than two crossing.
|
|
10
|
+
* Reduced motion keeps the fade and drops the scale.
|
|
11
|
+
*/
|
|
12
|
+
function IconSwap({ id, children, className }) {
|
|
13
|
+
const reduce = useReducedMotion() ?? false;
|
|
14
|
+
return /* @__PURE__ */ jsx(AnimatePresence, {
|
|
15
|
+
mode: "popLayout",
|
|
16
|
+
initial: false,
|
|
17
|
+
children: /* @__PURE__ */ jsx(motion.span, {
|
|
18
|
+
initial: reduce ? { opacity: 0 } : {
|
|
19
|
+
opacity: 0,
|
|
20
|
+
scale: .6,
|
|
21
|
+
filter: "blur(2px)"
|
|
22
|
+
},
|
|
23
|
+
animate: {
|
|
24
|
+
opacity: 1,
|
|
25
|
+
scale: 1,
|
|
26
|
+
filter: "blur(0px)"
|
|
27
|
+
},
|
|
28
|
+
exit: reduce ? { opacity: 0 } : {
|
|
29
|
+
opacity: 0,
|
|
30
|
+
scale: .6,
|
|
31
|
+
filter: "blur(2px)"
|
|
32
|
+
},
|
|
33
|
+
transition: reduce ? { duration: .12 } : SPRING_SWAP,
|
|
34
|
+
className: cn("grid place-items-center", className),
|
|
35
|
+
children
|
|
36
|
+
}, id)
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
export { IconSwap };
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=icon-swap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-swap.js","names":[],"sources":["../../../src/components/agents/icon-swap.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { AnimatePresence, motion, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { SPRING_SWAP } from \"../../lib/ease\";\n\nexport interface IconSwapProps {\n /** Changes whenever the icon should change (copy → copied, running → done). */\n id: string;\n children: ReactNode;\n className?: string;\n}\n\n/**\n * Crossfades one status icon into the next with a little scale and a 2px\n * blur, so the change reads as one icon morphing rather than two crossing.\n * Reduced motion keeps the fade and drops the scale.\n */\nexport function IconSwap({ id, children, className }: IconSwapProps) {\n const reduce = useReducedMotion() ?? false;\n return (\n <AnimatePresence mode=\"popLayout\" initial={false}>\n <motion.span\n key={id}\n initial={reduce ? { opacity: 0 } : { opacity: 0, scale: 0.6, filter: \"blur(2px)\" }}\n animate={{ opacity: 1, scale: 1, filter: \"blur(0px)\" }}\n exit={reduce ? { opacity: 0 } : { opacity: 0, scale: 0.6, filter: \"blur(2px)\" }}\n transition={reduce ? { duration: 0.12 } : SPRING_SWAP}\n className={cn(\"grid place-items-center\", className)}\n >\n {children}\n </motion.span>\n </AnimatePresence>\n );\n}\n"],"mappings":";;;;;;;;;;;AAoBA,SAAgB,SAAS,EAAE,IAAI,UAAU,aAA4B;CACnE,MAAM,SAAS,iBAAiB,KAAK;CACrC,OACE,oBAAC,iBAAD;EAAiB,MAAK;EAAY,SAAS;EACzC,UAAA,oBAAC,OAAO,MAAR;GAEE,SAAS,SAAS,EAAE,SAAS,EAAE,IAAI;IAAE,SAAS;IAAG,OAAO;IAAK,QAAQ;GAAY;GACjF,SAAS;IAAE,SAAS;IAAG,OAAO;IAAG,QAAQ;GAAY;GACrD,MAAM,SAAS,EAAE,SAAS,EAAE,IAAI;IAAE,SAAS;IAAG,OAAO;IAAK,QAAQ;GAAY;GAC9E,YAAY,SAAS,EAAE,UAAU,IAAK,IAAI;GAC1C,WAAW,GAAG,2BAA2B,SAAS;GAEjD;EACU,GARN,EAQM;CACE,CAAA;AAErB"}
|
|
@@ -3,22 +3,46 @@ export type ImageGenerationStatus = "queued" | "generating" | "refining" | "comp
|
|
|
3
3
|
export interface ImageGenerationProps {
|
|
4
4
|
/** The completed media. Pass an img, Next Image, canvas, video, or custom preview. */
|
|
5
5
|
children?: ReactNode;
|
|
6
|
+
/** Generation stage. Sets the dither overlay, media blur and status line. Default: "generating" */
|
|
6
7
|
status?: ImageGenerationStatus;
|
|
7
8
|
/** Accessible description. Defaults to a description derived from prompt. */
|
|
8
9
|
label?: string;
|
|
10
|
+
/** The prompt, shown in quotes under the status line. */
|
|
9
11
|
prompt?: string;
|
|
12
|
+
/** Badge in the top right corner. Default: "1024 × 1024" */
|
|
10
13
|
resolution?: string;
|
|
11
14
|
/** CSS aspect ratio reserved before generated media is available. */
|
|
12
15
|
aspectRatio?: CSSProperties["aspectRatio"];
|
|
16
|
+
/** "compact" caps the width at 208px, "fluid" fills the container. Default: "compact" */
|
|
13
17
|
size?: "compact" | "fluid";
|
|
14
18
|
/** Lets the active dither cluster follow fine-pointer movement. */
|
|
15
19
|
interactive?: boolean;
|
|
20
|
+
/** Replaces the built-in status line text for the current status. */
|
|
16
21
|
statusText?: string;
|
|
22
|
+
/** Shows the status line under the media. Default: true */
|
|
17
23
|
showStatus?: boolean;
|
|
24
|
+
/** Called from the retry button, which shows only when status is "error". */
|
|
18
25
|
onRetry?: () => void;
|
|
26
|
+
/** Override any built-in string. `{status}` and `{prompt}` fill `labelWithPrompt`; `{prompt}` fills `quotedPrompt`. */
|
|
27
|
+
labels?: Partial<ImageGenerationMessages>;
|
|
28
|
+
/** Classes merged onto the root element. */
|
|
19
29
|
className?: string;
|
|
30
|
+
/** Classes merged onto the layer that holds the media. */
|
|
20
31
|
mediaClassName?: string;
|
|
32
|
+
/** Classes merged onto the status line. */
|
|
21
33
|
statusClassName?: string;
|
|
22
34
|
}
|
|
23
|
-
|
|
35
|
+
/** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */
|
|
36
|
+
export declare const imageGenerationMessages: {
|
|
37
|
+
queued: string;
|
|
38
|
+
generating: string;
|
|
39
|
+
refining: string;
|
|
40
|
+
complete: string;
|
|
41
|
+
error: string;
|
|
42
|
+
labelWithPrompt: string;
|
|
43
|
+
quotedPrompt: string;
|
|
44
|
+
retry: string;
|
|
45
|
+
};
|
|
46
|
+
export type ImageGenerationMessages = typeof imageGenerationMessages;
|
|
47
|
+
export declare function ImageGeneration({ children, status, label, prompt, resolution, aspectRatio, size, interactive, statusText, showStatus, onRetry, labels, className, mediaClassName, statusClassName }: ImageGenerationProps): import("react").JSX.Element;
|
|
24
48
|
//# sourceMappingURL=image-generation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-generation.d.ts","names":[],"sources":["../../../src/components/agents/image-generation.tsx"],"mappings":";
|
|
1
|
+
{"version":3,"file":"image-generation.d.ts","names":[],"sources":["../../../src/components/agents/image-generation.tsx"],"mappings":";YAaY;iBAEK;;EAEf,WAAW;;EAEX,SAAS;;EAET;;EAEA;;EAEA;;EAEA,cAAc;;EAEd;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,SAAS,QAAQ;;EAEjB;;EAEA;;EAEA;;;qBAIW;;;;;;;;;;YAWD,iCAAiC;wBA6L7B,kBACd,UACA,QACA,OACA,QACA,YACA,aACA,MACA,aACA,YACA,YACA,SACA,QACA,WACA,gBACA,mBACC,uCAAoB,IAAA"}
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { useHoverCapable } from "../../hooks/use-hover-capable.js";
|
|
3
|
-
import { EASE_IN_OUT, EASE_OUT, SPRING_PRESS } from "../../lib/ease.js";
|
|
4
2
|
import { useEffect, useRef } from "react";
|
|
3
|
+
import { Check, CircleAlert, RotateCcw } from "lucide-react";
|
|
4
|
+
import { AnimatePresence, motion, useReducedMotion } from "motion/react";
|
|
5
5
|
import { cn } from "@kumix/utils";
|
|
6
|
+
import { useHoverCapable } from "../../hooks/use-hover-capable.js";
|
|
7
|
+
import { EASE_IN_OUT, EASE_OUT, SPRING_PRESS } from "../../lib/ease.js";
|
|
8
|
+
import { useMessages } from "../../lib/i18n.js";
|
|
9
|
+
import { IconSwap } from "./icon-swap.js";
|
|
6
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import { AnimatePresence, motion, useReducedMotion } from "motion/react";
|
|
8
|
-
import { Check, CircleAlert, RotateCcw } from "lucide-react";
|
|
9
11
|
// src/components/agents/image-generation.tsx
|
|
10
|
-
|
|
12
|
+
/** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */
|
|
13
|
+
const imageGenerationMessages = {
|
|
11
14
|
queued: "Waiting to generate",
|
|
12
15
|
generating: "Generating image",
|
|
13
16
|
refining: "Refining details",
|
|
14
17
|
complete: "Image ready",
|
|
15
|
-
error: "Generation failed"
|
|
18
|
+
error: "Generation failed",
|
|
19
|
+
labelWithPrompt: "{status}: {prompt}",
|
|
20
|
+
quotedPrompt: "“{prompt}”",
|
|
21
|
+
retry: "Try again"
|
|
16
22
|
};
|
|
17
23
|
const MEDIA_STATE = {
|
|
18
24
|
queued: {
|
|
@@ -108,6 +114,7 @@ function DitherField({ interactive, reduce, status }) {
|
|
|
108
114
|
pointer.y = height / 2;
|
|
109
115
|
pointer.targetX = pointer.x;
|
|
110
116
|
pointer.targetY = pointer.y;
|
|
117
|
+
if (reduce) draw(0);
|
|
111
118
|
};
|
|
112
119
|
const draw = (time) => {
|
|
113
120
|
context.clearRect(0, 0, width, height);
|
|
@@ -188,12 +195,16 @@ function DitherField({ interactive, reduce, status }) {
|
|
|
188
195
|
})
|
|
189
196
|
});
|
|
190
197
|
}
|
|
191
|
-
function ImageGeneration({ children, status = "generating", label, prompt, resolution = "1024 × 1024", aspectRatio = "1 / 1", size = "compact", interactive = true, statusText, showStatus = true, onRetry, className, mediaClassName, statusClassName }) {
|
|
198
|
+
function ImageGeneration({ children, status = "generating", label, prompt, resolution = "1024 × 1024", aspectRatio = "1 / 1", size = "compact", interactive = true, statusText, showStatus = true, onRetry, labels, className, mediaClassName, statusClassName }) {
|
|
192
199
|
const reduce = useReducedMotion() ?? false;
|
|
200
|
+
const t = useMessages("imageGeneration", imageGenerationMessages, labels);
|
|
193
201
|
const active = status === "queued" || status === "generating" || status === "refining";
|
|
194
202
|
const mediaState = MEDIA_STATE[status];
|
|
195
|
-
const resolvedStatusText = statusText ??
|
|
196
|
-
const resolvedLabel = label ?? (prompt ?
|
|
203
|
+
const resolvedStatusText = statusText ?? t(status);
|
|
204
|
+
const resolvedLabel = label ?? (prompt ? t("labelWithPrompt", {
|
|
205
|
+
status: resolvedStatusText,
|
|
206
|
+
prompt
|
|
207
|
+
}) : resolvedStatusText);
|
|
197
208
|
return /* @__PURE__ */ jsx("div", {
|
|
198
209
|
"data-slot": "image-generation",
|
|
199
210
|
"data-state": status,
|
|
@@ -206,7 +217,7 @@ function ImageGeneration({ children, status = "generating", label, prompt, resol
|
|
|
206
217
|
role: "img",
|
|
207
218
|
"aria-label": resolvedLabel,
|
|
208
219
|
style: { aspectRatio },
|
|
209
|
-
className: "bg-muted relative isolate w-full overflow-hidden rounded-
|
|
220
|
+
className: "bg-muted relative isolate w-full overflow-hidden rounded-2xl",
|
|
210
221
|
children: [
|
|
211
222
|
/* @__PURE__ */ jsx(motion.div, {
|
|
212
223
|
"aria-hidden": children ? void 0 : true,
|
|
@@ -242,7 +253,7 @@ function ImageGeneration({ children, status = "generating", label, prompt, resol
|
|
|
242
253
|
}, "dither-field") : null
|
|
243
254
|
}),
|
|
244
255
|
resolution ? /* @__PURE__ */ jsx("span", {
|
|
245
|
-
className: "bg-background/75 text-muted-foreground absolute top-2 right-2 z-10 rounded-full px-2 py-0.5 font-mono text-[
|
|
256
|
+
className: "bg-background/75 text-muted-foreground absolute top-2 right-2 z-10 rounded-full px-2 py-0.5 font-mono text-[11px] tabular-nums",
|
|
246
257
|
children: resolution
|
|
247
258
|
}) : null
|
|
248
259
|
]
|
|
@@ -252,9 +263,12 @@ function ImageGeneration({ children, status = "generating", label, prompt, resol
|
|
|
252
263
|
children: [showStatus ? /* @__PURE__ */ jsxs("div", {
|
|
253
264
|
"aria-live": "polite",
|
|
254
265
|
className: cn("text-foreground flex min-h-5 items-center gap-2 text-sm font-medium", status === "error" && "text-destructive", statusClassName),
|
|
255
|
-
children: [/* @__PURE__ */ jsx(
|
|
256
|
-
status,
|
|
257
|
-
|
|
266
|
+
children: [/* @__PURE__ */ jsx(IconSwap, {
|
|
267
|
+
id: active ? "active" : status,
|
|
268
|
+
children: /* @__PURE__ */ jsx(DitherMark, {
|
|
269
|
+
status,
|
|
270
|
+
reduce
|
|
271
|
+
})
|
|
258
272
|
}), /* @__PURE__ */ jsx(AnimatePresence, {
|
|
259
273
|
mode: "popLayout",
|
|
260
274
|
initial: false,
|
|
@@ -278,13 +292,9 @@ function ImageGeneration({ children, status = "generating", label, prompt, resol
|
|
|
278
292
|
children: resolvedStatusText
|
|
279
293
|
}, resolvedStatusText)
|
|
280
294
|
})]
|
|
281
|
-
}) : null, prompt ? /* @__PURE__ */
|
|
295
|
+
}) : null, prompt ? /* @__PURE__ */ jsx("p", {
|
|
282
296
|
className: "text-muted-foreground mt-0.5 truncate text-xs",
|
|
283
|
-
children:
|
|
284
|
-
"“",
|
|
285
|
-
prompt,
|
|
286
|
-
"”"
|
|
287
|
-
]
|
|
297
|
+
children: t("quotedPrompt", { prompt })
|
|
288
298
|
}) : null]
|
|
289
299
|
}) : null,
|
|
290
300
|
status === "error" && onRetry ? /* @__PURE__ */ jsxs(motion.button, {
|
|
@@ -292,16 +302,16 @@ function ImageGeneration({ children, status = "generating", label, prompt, resol
|
|
|
292
302
|
onClick: onRetry,
|
|
293
303
|
whileTap: reduce ? void 0 : { scale: .96 },
|
|
294
304
|
transition: SPRING_PRESS,
|
|
295
|
-
className: "text-foreground hover:bg-
|
|
305
|
+
className: "text-foreground hover:bg-foreground/6 focus-visible:ring-ring mt-3 inline-flex min-h-10 items-center gap-2 rounded-full px-3 text-sm font-medium transition-colors outline-none focus-visible:ring-2",
|
|
296
306
|
children: [/* @__PURE__ */ jsx(RotateCcw, {
|
|
297
307
|
"aria-hidden": "true",
|
|
298
308
|
className: "size-4"
|
|
299
|
-
}), "
|
|
309
|
+
}), t("retry")]
|
|
300
310
|
}) : null
|
|
301
311
|
]
|
|
302
312
|
})
|
|
303
313
|
});
|
|
304
314
|
}
|
|
305
|
-
export { ImageGeneration };
|
|
315
|
+
export { ImageGeneration, imageGenerationMessages };
|
|
306
316
|
|
|
307
317
|
//# sourceMappingURL=image-generation.js.map
|