@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-app.js","names":[],"sources":["../../../src/components/agents/chat-app.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useRef } from \"react\";\n\nimport { cn } from \"@kumix/utils\";\nimport {\n AnimatedSidebarProvider,\n type AnimatedSidebarProviderProps,\n useAnimatedSidebar,\n} from \"../motion/animated-sidebar\";\n\n/**\n * Shell width below which a docked sidebar leaves too little room for the\n * conversation: the default sidebar is 17rem, so under 600px the conversation\n * pane is left with barely 330px
|
|
1
|
+
{"version":3,"file":"chat-app.js","names":[],"sources":["../../../src/components/agents/chat-app.tsx"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useLayoutEffect, useRef } from \"react\";\n\nimport { cn } from \"@kumix/utils\";\nimport {\n AnimatedSidebarProvider,\n type AnimatedSidebarProviderProps,\n useAnimatedSidebar,\n} from \"../motion/animated-sidebar\";\n\n/**\n * Shell width below which a docked sidebar leaves too little room for the\n * conversation: the default sidebar is 17rem, so under 600px the conversation\n * pane is left with barely 330px - narrower than a phone.\n *\n * Deliberately not AnimatedSidebar's own 767px mobile query: that one asks\n * whether the *viewport* is a phone (and swaps the sidebar for an off-canvas\n * sheet), this one asks whether the *shell's own box* - which may be a column,\n * a split view or a panel inside a much wider page - still fits both panes.\n */\nconst MIN_DOCKED_WIDTH = 600;\n\nexport interface ChatAppProps extends AnimatedSidebarProviderProps {\n /** Docked sidebar width as a CSS length. Default `17rem`. */\n sidebarWidth?: string;\n /**\n * Shell width in px under which the sidebar folds off-canvas. Ignored while\n * `open` is controlled - the consumer owns the state then.\n */\n collapseSidebarBelow?: number;\n}\n\n/**\n * Folds the sidebar away while the shell is too narrow to carry both panes,\n * and brings it back when it isn't. Only crossings are acted on, so a manual\n * toggle at either size stays put until the shell actually changes shape.\n *\n * Mount is not a crossing in the opening direction: a shell that merely has\n * room says nothing about whether the caller wanted the sidebar open, so the\n * first measurement leaves `defaultOpen` alone. Too narrow at mount *is* the\n * fold condition itself, so that half applies immediately.\n */\nfunction ShellFit({ minWidth }: { minWidth: number }) {\n const { open, setOpen } = useAnimatedSidebar();\n const markerRef = useRef<HTMLDivElement>(null);\n const narrowRef = useRef<boolean | null>(null);\n const openRef = useRef(open);\n useLayoutEffect(() => {\n openRef.current = open;\n });\n\n useEffect(() => {\n const shell = markerRef.current?.parentElement;\n if (!shell) return;\n const observer = new ResizeObserver(([entry]) => {\n const narrow = entry.contentRect.width < minWidth;\n if (narrowRef.current === narrow) return;\n const first = narrowRef.current === null;\n narrowRef.current = narrow;\n if (first && !narrow) return;\n const wanted = !narrow;\n // Already where the shell wants it - saying so again would only be an\n // onOpenChange the caller never asked for.\n if (openRef.current === wanted) return;\n setOpen(wanted);\n });\n observer.observe(shell);\n return () => observer.disconnect();\n }, [minWidth, setOpen]);\n\n return <div ref={markerRef} className=\"hidden\" />;\n}\n\nexport function ChatApp({\n children,\n className,\n sidebarWidth = \"17rem\",\n collapseSidebarBelow = MIN_DOCKED_WIDTH,\n style,\n ...props\n}: ChatAppProps) {\n return (\n <AnimatedSidebarProvider\n {...props}\n style={{ ...style, \"--sidebar-width\": sidebarWidth }}\n className={cn(\n \"border-border bg-background min-h-0 w-full overflow-hidden rounded-2xl border\",\n className,\n )}\n >\n {/* A controlled `open` is the consumer's to change; fitting the shell\n would fire an onOpenChange they never asked for. */}\n {props.open === undefined ? <ShellFit minWidth={collapseSidebarBelow} /> : null}\n {children}\n </AnimatedSidebarProvider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAqBA,MAAM,mBAAmB;;;;;;;;;;;AAsBzB,SAAS,SAAS,EAAE,YAAkC;CACpD,MAAM,EAAE,MAAM,YAAY,mBAAmB;CAC7C,MAAM,YAAY,OAAuB,IAAI;CAC7C,MAAM,YAAY,OAAuB,IAAI;CAC7C,MAAM,UAAU,OAAO,IAAI;CAC3B,sBAAsB;EACpB,QAAQ,UAAU;CACpB,CAAC;CAED,gBAAgB;EACd,MAAM,QAAQ,UAAU,SAAS;EACjC,IAAI,CAAC,OAAO;EACZ,MAAM,WAAW,IAAI,gBAAgB,CAAC,WAAW;GAC/C,MAAM,SAAS,MAAM,YAAY,QAAQ;GACzC,IAAI,UAAU,YAAY,QAAQ;GAClC,MAAM,QAAQ,UAAU,YAAY;GACpC,UAAU,UAAU;GACpB,IAAI,SAAS,CAAC,QAAQ;GACtB,MAAM,SAAS,CAAC;GAGhB,IAAI,QAAQ,YAAY,QAAQ;GAChC,QAAQ,MAAM;EAChB,CAAC;EACD,SAAS,QAAQ,KAAK;EACtB,aAAa,SAAS,WAAW;CACnC,GAAG,CAAC,UAAU,OAAO,CAAC;CAEtB,OAAO,oBAAC,OAAD;EAAK,KAAK;EAAW,WAAU;CAAU,CAAA;AAClD;AAEA,SAAgB,QAAQ,EACtB,UACA,WACA,eAAe,SACf,uBAAuB,kBACvB,OACA,GAAG,SACY;CACf,OACE,qBAAC,yBAAD;EACE,GAAI;EACJ,OAAO;GAAE,GAAG;GAAO,mBAAmB;EAAa;EACnD,WAAW,GACT,iFACA,SACF;EANF,UAAA,CAUG,MAAM,SAAS,KAAA,IAAY,oBAAC,UAAD,EAAU,UAAU,qBAAuB,CAAA,IAAI,MAC1E,QACsB;;AAE7B"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
+
export declare const citationsMessages: {
|
|
3
|
+
title: string;
|
|
4
|
+
viewCitation: string;
|
|
5
|
+
};
|
|
6
|
+
export type CitationsMessages = typeof citationsMessages;
|
|
2
7
|
export interface CitationItem {
|
|
8
|
+
/** Unique key for the source, matched by a `Citation` marker's `citationId`. */
|
|
3
9
|
id: string;
|
|
10
|
+
/** Source name shown as the row's main text. */
|
|
4
11
|
title: ReactNode;
|
|
12
|
+
/** Muted text after the title, such as the site's host. */
|
|
5
13
|
domain?: ReactNode;
|
|
14
|
+
/** Link opened in a new tab and the favicon source. Omit for a plain row. */
|
|
6
15
|
url?: string;
|
|
7
16
|
/**
|
|
8
17
|
* Replaces the URL favicon, e.g. a document icon for non-web sources. An svg
|
|
@@ -11,16 +20,27 @@ export interface CitationItem {
|
|
|
11
20
|
icon?: ReactNode;
|
|
12
21
|
}
|
|
13
22
|
export interface CitationsProps {
|
|
23
|
+
/** Sources listed in order, numbered from 1. */
|
|
14
24
|
citations: CitationItem[];
|
|
25
|
+
/** Text of the toggle button. Default: "Sources" */
|
|
15
26
|
title?: ReactNode;
|
|
27
|
+
/** Whether the list is expanded, for controlled use. */
|
|
16
28
|
open?: boolean;
|
|
29
|
+
/** Whether the list starts expanded when uncontrolled. Default: false */
|
|
17
30
|
defaultOpen?: boolean;
|
|
31
|
+
/** Called with the new state when the list expands or collapses. */
|
|
18
32
|
onOpenChange?: (open: boolean) => void;
|
|
33
|
+
/** Prefix for row ids that `Citation` markers link to. Generated when omitted. */
|
|
19
34
|
idPrefix?: string;
|
|
35
|
+
/** Classes merged onto the root element. */
|
|
20
36
|
className?: string;
|
|
37
|
+
/** Override any built-in string. */
|
|
38
|
+
labels?: Partial<CitationsMessages>;
|
|
21
39
|
}
|
|
22
40
|
export interface CitationProps {
|
|
41
|
+
/** Id of the `CitationItem` this marker links to. */
|
|
23
42
|
citationId: string;
|
|
43
|
+
/** Number shown on the marker. */
|
|
24
44
|
index: number;
|
|
25
45
|
/** Must match the related Citations idPrefix. */
|
|
26
46
|
idPrefix: string;
|
|
@@ -29,26 +49,36 @@ export interface CitationProps {
|
|
|
29
49
|
* the index so voice control users can say the number they see.
|
|
30
50
|
*/
|
|
31
51
|
label?: string;
|
|
52
|
+
/** Classes merged onto the marker link. */
|
|
32
53
|
className?: string;
|
|
33
54
|
}
|
|
34
55
|
export interface CitationListProps {
|
|
56
|
+
/** Sources listed in order, numbered from 1. */
|
|
35
57
|
citations: CitationItem[];
|
|
58
|
+
/** Prefix for row ids that `Citation` markers link to. Generated when omitted. */
|
|
36
59
|
idPrefix?: string;
|
|
60
|
+
/** The citation a marker just led to; its row is lit. */
|
|
61
|
+
highlightedId?: string;
|
|
62
|
+
/** Classes merged onto the root element. */
|
|
37
63
|
className?: string;
|
|
38
64
|
}
|
|
39
65
|
export interface CitationStackProps {
|
|
66
|
+
/** Sources whose favicons are stacked. */
|
|
40
67
|
citations: CitationItem[];
|
|
68
|
+
/** Most favicons to show. Default: 3 */
|
|
41
69
|
limit?: number;
|
|
70
|
+
/** Classes merged onto the root element. */
|
|
42
71
|
className?: string;
|
|
43
72
|
}
|
|
44
73
|
export declare function Citation({ citationId, index, idPrefix, label, className }: CitationProps): import("react").JSX.Element;
|
|
45
74
|
export declare function CitationFavicon({ url, icon, className }: {
|
|
75
|
+
/** Page whose site favicon is shown. A globe icon shows when absent or broken. */
|
|
46
76
|
url?: string;
|
|
47
77
|
/** Drawn instead of the favicon when truthy. */
|
|
48
78
|
icon?: ReactNode;
|
|
49
79
|
className?: string;
|
|
50
80
|
}): import("react").JSX.Element;
|
|
51
81
|
export declare function CitationStack({ citations, limit, className }: CitationStackProps): import("react").JSX.Element;
|
|
52
|
-
export declare function CitationList({ citations, idPrefix, className }: CitationListProps): import("react").JSX.Element;
|
|
53
|
-
export declare function Citations({ citations, title, open, defaultOpen, onOpenChange, idPrefix, className }: CitationsProps): import("react").JSX.Element;
|
|
82
|
+
export declare function CitationList({ citations, idPrefix, highlightedId, className }: CitationListProps): import("react").JSX.Element;
|
|
83
|
+
export declare function Citations({ citations, title, open, defaultOpen, onOpenChange, idPrefix, className, labels }: CitationsProps): import("react").JSX.Element;
|
|
54
84
|
//# sourceMappingURL=citations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"citations.d.ts","names":[],"sources":["../../../src/components/agents/citations.tsx"],"mappings":";
|
|
1
|
+
{"version":3,"file":"citations.d.ts","names":[],"sources":["../../../src/components/agents/citations.tsx"],"mappings":";qBAoBa;;;;YAKD,2BAA2B;iBAEtB;;EAEf;;EAEA,OAAO;;EAEP,SAAS;;EAET;;;;;EAKA,OAAO;;iBAGQ;;EAEf,WAAW;;EAEX,QAAQ;;EAER;;EAEA;;EAEA,gBAAgB;;EAEhB;;EAEA;;EAEA,SAAS,QAAQ;;iBAGF;;EAEf;;EAEA;;EAEA;;;;;EAKA;;EAEA;;iBAGe;;EAEf,WAAW;;EAEX;;EAEA;;EAEA;;iBAGe;;EAEf,WAAW;;EAEX;;EAEA;;wBAOc,WAAW,YAAY,OAAO,UAAU,OAAO,aAAa,gCAAa,IAAA;wBAkBzE,kBACd,KACA,MACA;;EAGA;;EAEA,OAAO;EACP;oBACD,IAAA;wBA8Be,gBAAgB,WAAW,OAAW,aAAa,qCAAkB,IAAA;wBAoErE,eAAe,WAAW,UAAU,eAAe,aAAa,oCAAiB,IAAA;wBAsCjF,YACd,WACA,OACA,MACA,aACA,cACA,UACA,WACA,UACC,iCAAc,IAAA"}
|
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
3
|
+
import { BookOpenText, ChevronDown, ExternalLink, Globe2 } from "lucide-react";
|
|
4
|
+
import { AnimatePresence, motion, useReducedMotion } from "motion/react";
|
|
5
|
+
import { cn } from "@kumix/utils";
|
|
2
6
|
import { useFavicon } from "../../hooks/use-favicon.js";
|
|
3
7
|
import { EASE_OUT, SPRING_LAYOUT, SPRING_SWAP } from "../../lib/ease.js";
|
|
8
|
+
import { useMessages } from "../../lib/i18n.js";
|
|
4
9
|
import { AgentDisclosure } from "./agent-disclosure.js";
|
|
5
|
-
import { useCallback, useId, useState } from "react";
|
|
6
|
-
import { cn } from "@kumix/utils";
|
|
7
10
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { AnimatePresence, motion, useReducedMotion } from "motion/react";
|
|
9
|
-
import { BookOpenText, ChevronDown, ExternalLink, Globe2 } from "lucide-react";
|
|
10
11
|
// src/components/agents/citations.tsx
|
|
12
|
+
const citationsMessages = {
|
|
13
|
+
title: "Sources",
|
|
14
|
+
viewCitation: "View citation {index}"
|
|
15
|
+
};
|
|
11
16
|
function citationTargetId(prefix, citationId) {
|
|
12
17
|
return `${prefix}-${citationId.replace(/[^a-zA-Z0-9_-]/g, "-")}`;
|
|
13
18
|
}
|
|
14
19
|
function Citation({ citationId, index, idPrefix, label, className }) {
|
|
20
|
+
const t = useMessages("citations", citationsMessages);
|
|
15
21
|
return /* @__PURE__ */ jsx("a", {
|
|
16
22
|
href: `#${citationTargetId(idPrefix, citationId)}`,
|
|
17
|
-
"aria-label": label ??
|
|
18
|
-
className: cn("bg-
|
|
23
|
+
"aria-label": label ?? t("viewCitation", { index }),
|
|
24
|
+
className: cn("bg-foreground/[0.07] text-muted-foreground hover:bg-foreground/12 hover:text-foreground focus-visible:ring-ring mx-0.5 inline-flex min-w-4 -translate-y-0.5 items-center justify-center rounded-full px-1 py-0.5 text-[11px] leading-none font-medium no-underline transition-colors outline-none focus-visible:ring-2", className),
|
|
19
25
|
children: index
|
|
20
26
|
});
|
|
21
27
|
}
|
|
@@ -46,7 +52,7 @@ function CitationStack({ citations, limit = 3, className }) {
|
|
|
46
52
|
}, citation.id))
|
|
47
53
|
});
|
|
48
54
|
}
|
|
49
|
-
function CitationRow({ citation, index, idPrefix }) {
|
|
55
|
+
function CitationRow({ citation, index, idPrefix, highlighted }) {
|
|
50
56
|
const content = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
51
57
|
/* @__PURE__ */ jsx(CitationFavicon, {
|
|
52
58
|
url: citation.url,
|
|
@@ -65,12 +71,12 @@ function CitationRow({ citation, index, idPrefix }) {
|
|
|
65
71
|
/* @__PURE__ */ jsxs("span", {
|
|
66
72
|
className: "flex shrink-0 items-center gap-1.5",
|
|
67
73
|
children: [/* @__PURE__ */ jsx("span", {
|
|
68
|
-
className: "bg-foreground/5 text-muted-foreground grid size-5 place-items-center rounded-
|
|
74
|
+
className: "bg-foreground/5 text-muted-foreground grid size-5 place-items-center rounded-full text-[11px] font-medium tabular-nums",
|
|
69
75
|
children: index
|
|
70
76
|
}), citation.url ? /* @__PURE__ */ jsx(ExternalLink, { className: "text-muted-foreground/40 group-hover/citation:text-muted-foreground size-3.5 transition-colors" }) : null]
|
|
71
77
|
})
|
|
72
78
|
] });
|
|
73
|
-
const className = "group/citation flex items-center gap-2 rounded-
|
|
79
|
+
const className = cn("group/citation hover:bg-foreground/[0.04] focus-visible:ring-ring target:bg-foreground/[0.07] flex scroll-my-3 items-center gap-2 rounded-lg px-1.5 py-1 transition-colors duration-200 outline-none focus-visible:ring-2", highlighted && "bg-foreground/[0.07] hover:bg-foreground/[0.07]");
|
|
74
80
|
const id = citationTargetId(idPrefix, citation.id);
|
|
75
81
|
return citation.url ? /* @__PURE__ */ jsx("a", {
|
|
76
82
|
id,
|
|
@@ -85,7 +91,7 @@ function CitationRow({ citation, index, idPrefix }) {
|
|
|
85
91
|
children: content
|
|
86
92
|
});
|
|
87
93
|
}
|
|
88
|
-
function CitationList({ citations, idPrefix, className }) {
|
|
94
|
+
function CitationList({ citations, idPrefix, highlightedId, className }) {
|
|
89
95
|
const reduce = useReducedMotion() ?? false;
|
|
90
96
|
const baseId = useId();
|
|
91
97
|
const resolvedPrefix = idPrefix ?? `citation-list-${baseId.replace(/:/g, "")}`;
|
|
@@ -118,13 +124,15 @@ function CitationList({ citations, idPrefix, className }) {
|
|
|
118
124
|
children: /* @__PURE__ */ jsx(CitationRow, {
|
|
119
125
|
citation,
|
|
120
126
|
index: index + 1,
|
|
121
|
-
idPrefix: resolvedPrefix
|
|
127
|
+
idPrefix: resolvedPrefix,
|
|
128
|
+
highlighted: citation.id === highlightedId
|
|
122
129
|
})
|
|
123
130
|
}, citation.id))
|
|
124
131
|
})
|
|
125
132
|
});
|
|
126
133
|
}
|
|
127
|
-
function Citations({ citations, title
|
|
134
|
+
function Citations({ citations, title, open, defaultOpen = false, onOpenChange, idPrefix, className, labels }) {
|
|
135
|
+
const t = useMessages("citations", citationsMessages, labels);
|
|
128
136
|
const reduce = useReducedMotion() ?? false;
|
|
129
137
|
const baseId = useId();
|
|
130
138
|
const contentId = `${baseId}-content`;
|
|
@@ -135,6 +143,49 @@ function Citations({ citations, title = "Sources", open, defaultOpen = false, on
|
|
|
135
143
|
if (open === void 0) setInternalOpen(next);
|
|
136
144
|
onOpenChange?.(next);
|
|
137
145
|
}, [onOpenChange, open]);
|
|
146
|
+
const [highlightedId, setHighlightedId] = useState();
|
|
147
|
+
const latest = useRef({
|
|
148
|
+
currentOpen,
|
|
149
|
+
setOpen,
|
|
150
|
+
citations,
|
|
151
|
+
reduce
|
|
152
|
+
});
|
|
153
|
+
useLayoutEffect(() => {
|
|
154
|
+
latest.current = {
|
|
155
|
+
currentOpen,
|
|
156
|
+
setOpen,
|
|
157
|
+
citations,
|
|
158
|
+
reduce
|
|
159
|
+
};
|
|
160
|
+
});
|
|
161
|
+
useEffect(() => {
|
|
162
|
+
const reveal = (hash) => {
|
|
163
|
+
const now = latest.current;
|
|
164
|
+
const citation = now.citations.find((item) => citationTargetId(resolvedPrefix, item.id) === hash);
|
|
165
|
+
if (!citation) return false;
|
|
166
|
+
if (!now.currentOpen) now.setOpen(true);
|
|
167
|
+
setHighlightedId(citation.id);
|
|
168
|
+
window.setTimeout(() => {
|
|
169
|
+
document.getElementById(hash)?.scrollIntoView({
|
|
170
|
+
block: "nearest",
|
|
171
|
+
behavior: now.reduce ? "auto" : "smooth"
|
|
172
|
+
});
|
|
173
|
+
}, 0);
|
|
174
|
+
return true;
|
|
175
|
+
};
|
|
176
|
+
const onHash = () => reveal(decodeURIComponent(window.location.hash.slice(1)));
|
|
177
|
+
const onClick = (event) => {
|
|
178
|
+
const link = event.target?.closest?.("a[href^='#']");
|
|
179
|
+
if (!link) return;
|
|
180
|
+
if (reveal(decodeURIComponent(link.getAttribute("href")?.slice(1) ?? ""))) event.preventDefault();
|
|
181
|
+
};
|
|
182
|
+
window.addEventListener("hashchange", onHash);
|
|
183
|
+
document.addEventListener("click", onClick);
|
|
184
|
+
return () => {
|
|
185
|
+
window.removeEventListener("hashchange", onHash);
|
|
186
|
+
document.removeEventListener("click", onClick);
|
|
187
|
+
};
|
|
188
|
+
}, [resolvedPrefix]);
|
|
138
189
|
return /* @__PURE__ */ jsxs("div", {
|
|
139
190
|
className: cn("w-full text-sm", className),
|
|
140
191
|
children: [/* @__PURE__ */ jsxs("button", {
|
|
@@ -142,15 +193,15 @@ function Citations({ citations, title = "Sources", open, defaultOpen = false, on
|
|
|
142
193
|
"aria-expanded": currentOpen,
|
|
143
194
|
"aria-controls": contentId,
|
|
144
195
|
onClick: () => setOpen(!currentOpen),
|
|
145
|
-
className: "group text-muted-foreground hover:text-foreground focus-visible:ring-ring -ml-1 flex min-h-8 items-center gap-2 rounded-
|
|
196
|
+
className: "group text-muted-foreground hover:text-foreground focus-visible:ring-ring -ml-1 flex min-h-8 items-center gap-2 rounded-full px-1 text-left transition-colors outline-none focus-visible:ring-2",
|
|
146
197
|
children: [
|
|
147
198
|
/* @__PURE__ */ jsx(BookOpenText, { className: "size-4" }),
|
|
148
199
|
/* @__PURE__ */ jsx("span", {
|
|
149
200
|
className: "font-medium",
|
|
150
|
-
children: title
|
|
201
|
+
children: title ?? t("title")
|
|
151
202
|
}),
|
|
152
203
|
/* @__PURE__ */ jsx("span", {
|
|
153
|
-
className: "bg-
|
|
204
|
+
className: "bg-foreground/6 rounded-full px-1.5 py-0.5 text-[11px] font-medium tabular-nums",
|
|
154
205
|
children: citations.length
|
|
155
206
|
}),
|
|
156
207
|
/* @__PURE__ */ jsx(motion.span, {
|
|
@@ -167,11 +218,12 @@ function Citations({ citations, title = "Sources", open, defaultOpen = false, on
|
|
|
167
218
|
children: /* @__PURE__ */ jsx(CitationList, {
|
|
168
219
|
citations,
|
|
169
220
|
idPrefix: resolvedPrefix,
|
|
221
|
+
highlightedId,
|
|
170
222
|
className: "mt-1"
|
|
171
223
|
})
|
|
172
224
|
})]
|
|
173
225
|
});
|
|
174
226
|
}
|
|
175
|
-
export { Citation, CitationFavicon, CitationList, CitationStack, Citations };
|
|
227
|
+
export { Citation, CitationFavicon, CitationList, CitationStack, Citations, citationsMessages };
|
|
176
228
|
|
|
177
229
|
//# sourceMappingURL=citations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"citations.js","names":[],"sources":["../../../src/components/agents/citations.tsx"],"sourcesContent":["\"use client\";\n\nimport { type ReactNode, useCallback, useId, useState } from \"react\";\nimport { BookOpenText, ChevronDown, ExternalLink, Globe2 } from \"lucide-react\";\nimport { AnimatePresence, motion, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { useFavicon } from \"../../hooks/use-favicon\";\nimport { EASE_OUT, SPRING_LAYOUT, SPRING_SWAP } from \"../../lib/ease\";\nimport { AgentDisclosure } from \"./agent-disclosure\";\n\nexport interface CitationItem {\n id: string;\n title: ReactNode;\n domain?: ReactNode;\n url?: string;\n /**\n * Replaces the URL favicon, e.g. a document icon for non-web sources. An svg\n * child is sized to match the favicon; falsy values fall back to the favicon.\n */\n icon?: ReactNode;\n}\n\nexport interface CitationsProps {\n citations: CitationItem[];\n title?: ReactNode;\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n idPrefix?: string;\n className?: string;\n}\n\nexport interface CitationProps {\n citationId: string;\n index: number;\n /** Must match the related Citations idPrefix. */\n idPrefix: string;\n /**\n * Accessible name for the marker. Defaults to `View citation {index}`. Include\n * the index so voice control users can say the number they see.\n */\n label?: string;\n className?: string;\n}\n\nexport interface CitationListProps {\n citations: CitationItem[];\n idPrefix?: string;\n className?: string;\n}\n\nexport interface CitationStackProps {\n citations: CitationItem[];\n limit?: number;\n className?: string;\n}\n\nfunction citationTargetId(prefix: string, citationId: string) {\n return `${prefix}-${citationId.replace(/[^a-zA-Z0-9_-]/g, \"-\")}`;\n}\n\nexport function Citation({ citationId, index, idPrefix, label, className }: CitationProps) {\n return (\n <a\n href={`#${citationTargetId(idPrefix, citationId)}`}\n aria-label={label ?? `View citation ${index}`}\n className={cn(\n \"bg-muted/60 text-muted-foreground hover:text-foreground focus-visible:ring-ring mx-0.5 inline-flex min-w-4 -translate-y-0.5 items-center justify-center rounded-md px-1 py-0.5 text-[10px] leading-none font-semibold no-underline transition-colors outline-none focus-visible:ring-2\",\n className,\n )}\n >\n {index}\n </a>\n );\n}\n\nexport function CitationFavicon({\n url,\n icon,\n className,\n}: {\n url?: string;\n /** Drawn instead of the favicon when truthy. */\n icon?: ReactNode;\n className?: string;\n}) {\n const favicon = useFavicon(icon ? undefined : url);\n\n return (\n <span\n aria-hidden=\"true\"\n className={cn(\n \"text-muted-foreground grid size-5 shrink-0 place-items-center [&>svg]:size-3.5\",\n className,\n )}\n >\n {icon ? (\n icon\n ) : favicon.src ? (\n <img\n ref={favicon.ref}\n src={favicon.src}\n alt=\"\"\n width={16}\n height={16}\n referrerPolicy=\"no-referrer\"\n className=\"size-4 rounded-sm object-contain\"\n />\n ) : (\n <Globe2 className=\"size-3.5\" />\n )}\n </span>\n );\n}\n\nexport function CitationStack({ citations, limit = 3, className }: CitationStackProps) {\n return (\n <span aria-hidden=\"true\" className={cn(\"flex -space-x-1.5\", className)}>\n {citations.slice(0, limit).map((citation) => (\n <CitationFavicon\n key={citation.id}\n url={citation.url}\n icon={citation.icon}\n className=\"bg-background ring-background size-6 rounded-full ring-2\"\n />\n ))}\n </span>\n );\n}\n\nfunction CitationRow({\n citation,\n index,\n idPrefix,\n}: {\n citation: CitationItem;\n index: number;\n idPrefix: string;\n}) {\n const content = (\n <>\n <CitationFavicon url={citation.url} icon={citation.icon} />\n <span className=\"flex min-w-0 flex-1 flex-wrap items-baseline gap-x-2 gap-y-0.5\">\n <span className=\"text-foreground/80 group-hover/citation:text-foreground truncate text-sm font-medium transition-colors\">\n {citation.title}\n </span>\n {citation.domain ? (\n <span className=\"text-muted-foreground/60 min-w-0 truncate text-xs\">\n {citation.domain}\n </span>\n ) : null}\n </span>\n <span className=\"flex shrink-0 items-center gap-1.5\">\n <span className=\"bg-foreground/5 text-muted-foreground grid size-5 place-items-center rounded-md text-[10px] font-semibold tabular-nums\">\n {index}\n </span>\n {citation.url ? (\n <ExternalLink className=\"text-muted-foreground/40 group-hover/citation:text-muted-foreground size-3.5 transition-colors\" />\n ) : null}\n </span>\n </>\n );\n const className =\n \"group/citation flex items-center gap-2 rounded-md px-1.5 py-1 outline-none focus-visible:ring-2 focus-visible:ring-ring\";\n const id = citationTargetId(idPrefix, citation.id);\n\n return citation.url ? (\n <a id={id} href={citation.url} target=\"_blank\" rel=\"noreferrer noopener\" className={className}>\n {content}\n </a>\n ) : (\n <div id={id} className={className}>\n {content}\n </div>\n );\n}\n\nexport function CitationList({ citations, idPrefix, className }: CitationListProps) {\n const reduce = useReducedMotion() ?? false;\n const baseId = useId();\n const resolvedPrefix = idPrefix ?? `citation-list-${baseId.replace(/:/g, \"\")}`;\n\n return (\n <div className={cn(\"grid gap-0.5\", className)}>\n <AnimatePresence mode=\"popLayout\">\n {citations.map((citation, index) => (\n <motion.div\n layout=\"position\"\n key={citation.id}\n initial={reduce ? { opacity: 1 } : { opacity: 0, y: 6 }}\n animate={{ opacity: 1, y: 0 }}\n exit={reduce ? { opacity: 0 } : { opacity: 0, y: -3 }}\n transition={\n reduce\n ? { duration: 0 }\n : {\n opacity: { duration: 0.18, ease: EASE_OUT },\n y: SPRING_LAYOUT,\n layout: SPRING_LAYOUT,\n }\n }\n >\n <CitationRow citation={citation} index={index + 1} idPrefix={resolvedPrefix} />\n </motion.div>\n ))}\n </AnimatePresence>\n </div>\n );\n}\n\nexport function Citations({\n citations,\n title = \"Sources\",\n open,\n defaultOpen = false,\n onOpenChange,\n idPrefix,\n className,\n}: CitationsProps) {\n const reduce = useReducedMotion() ?? false;\n const baseId = useId();\n const contentId = `${baseId}-content`;\n const resolvedPrefix = idPrefix ?? `citation-${baseId.replace(/:/g, \"\")}`;\n const [internalOpen, setInternalOpen] = useState(defaultOpen);\n const currentOpen = open ?? internalOpen;\n const setOpen = useCallback(\n (next: boolean) => {\n if (open === undefined) setInternalOpen(next);\n onOpenChange?.(next);\n },\n [onOpenChange, open],\n );\n\n return (\n <div className={cn(\"w-full text-sm\", className)}>\n <button\n type=\"button\"\n aria-expanded={currentOpen}\n aria-controls={contentId}\n onClick={() => setOpen(!currentOpen)}\n className=\"group text-muted-foreground hover:text-foreground focus-visible:ring-ring -ml-1 flex min-h-8 items-center gap-2 rounded-lg px-1 text-left transition-colors outline-none focus-visible:ring-2\"\n >\n <BookOpenText className=\"size-4\" />\n <span className=\"font-medium\">{title}</span>\n <span className=\"bg-muted rounded-full px-1.5 py-0.5 text-[10px] font-semibold tabular-nums\">\n {citations.length}\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/60\"\n >\n <ChevronDown className=\"size-3.5\" />\n </motion.span>\n </button>\n\n <AgentDisclosure id={contentId} open={currentOpen}>\n <CitationList citations={citations} idPrefix={resolvedPrefix} className=\"mt-1\" />\n </AgentDisclosure>\n </div>\n );\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"citations.js","names":[],"sources":["../../../src/components/agents/citations.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 { BookOpenText, ChevronDown, ExternalLink, Globe2 } from \"lucide-react\";\nimport { AnimatePresence, motion, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { useFavicon } from \"../../hooks/use-favicon\";\nimport { EASE_OUT, SPRING_LAYOUT, SPRING_SWAP } from \"../../lib/ease\";\nimport { useMessages } from \"../../lib/i18n\";\nimport { AgentDisclosure } from \"./agent-disclosure\";\n\nexport const citationsMessages = {\n title: \"Sources\",\n viewCitation: \"View citation {index}\",\n};\n\nexport type CitationsMessages = typeof citationsMessages;\n\nexport interface CitationItem {\n /** Unique key for the source, matched by a `Citation` marker's `citationId`. */\n id: string;\n /** Source name shown as the row's main text. */\n title: ReactNode;\n /** Muted text after the title, such as the site's host. */\n domain?: ReactNode;\n /** Link opened in a new tab and the favicon source. Omit for a plain row. */\n url?: string;\n /**\n * Replaces the URL favicon, e.g. a document icon for non-web sources. An svg\n * child is sized to match the favicon; falsy values fall back to the favicon.\n */\n icon?: ReactNode;\n}\n\nexport interface CitationsProps {\n /** Sources listed in order, numbered from 1. */\n citations: CitationItem[];\n /** Text of the toggle button. Default: \"Sources\" */\n title?: ReactNode;\n /** Whether the list is expanded, for controlled use. */\n open?: boolean;\n /** Whether the list starts expanded when uncontrolled. Default: false */\n defaultOpen?: boolean;\n /** Called with the new state when the list expands or collapses. */\n onOpenChange?: (open: boolean) => void;\n /** Prefix for row ids that `Citation` markers link to. Generated when omitted. */\n idPrefix?: string;\n /** Classes merged onto the root element. */\n className?: string;\n /** Override any built-in string. */\n labels?: Partial<CitationsMessages>;\n}\n\nexport interface CitationProps {\n /** Id of the `CitationItem` this marker links to. */\n citationId: string;\n /** Number shown on the marker. */\n index: number;\n /** Must match the related Citations idPrefix. */\n idPrefix: string;\n /**\n * Accessible name for the marker. Defaults to `View citation {index}`. Include\n * the index so voice control users can say the number they see.\n */\n label?: string;\n /** Classes merged onto the marker link. */\n className?: string;\n}\n\nexport interface CitationListProps {\n /** Sources listed in order, numbered from 1. */\n citations: CitationItem[];\n /** Prefix for row ids that `Citation` markers link to. Generated when omitted. */\n idPrefix?: string;\n /** The citation a marker just led to; its row is lit. */\n highlightedId?: string;\n /** Classes merged onto the root element. */\n className?: string;\n}\n\nexport interface CitationStackProps {\n /** Sources whose favicons are stacked. */\n citations: CitationItem[];\n /** Most favicons to show. Default: 3 */\n limit?: number;\n /** Classes merged onto the root element. */\n className?: string;\n}\n\nfunction citationTargetId(prefix: string, citationId: string) {\n return `${prefix}-${citationId.replace(/[^a-zA-Z0-9_-]/g, \"-\")}`;\n}\n\nexport function Citation({ citationId, index, idPrefix, label, className }: CitationProps) {\n const t = useMessages(\"citations\", citationsMessages);\n return (\n <a\n href={`#${citationTargetId(idPrefix, citationId)}`}\n aria-label={label ?? t(\"viewCitation\", { index })}\n className={cn(\n // A foreground tint, not bg-muted: muted is the bubble colour, so a\n // muted marker would vanish inside a soft bubble.\n \"bg-foreground/[0.07] text-muted-foreground hover:bg-foreground/12 hover:text-foreground focus-visible:ring-ring mx-0.5 inline-flex min-w-4 -translate-y-0.5 items-center justify-center rounded-full px-1 py-0.5 text-[11px] leading-none font-medium no-underline transition-colors outline-none focus-visible:ring-2\",\n className,\n )}\n >\n {index}\n </a>\n );\n}\n\nexport function CitationFavicon({\n url,\n icon,\n className,\n}: {\n /** Page whose site favicon is shown. A globe icon shows when absent or broken. */\n url?: string;\n /** Drawn instead of the favicon when truthy. */\n icon?: ReactNode;\n className?: string;\n}) {\n const favicon = useFavicon(icon ? undefined : url);\n\n return (\n <span\n aria-hidden=\"true\"\n className={cn(\n \"text-muted-foreground grid size-5 shrink-0 place-items-center [&>svg]:size-3.5\",\n className,\n )}\n >\n {icon ? (\n icon\n ) : favicon.src ? (\n <img\n ref={favicon.ref}\n src={favicon.src}\n alt=\"\"\n width={16}\n height={16}\n referrerPolicy=\"no-referrer\"\n className=\"size-4 rounded-sm object-contain\"\n />\n ) : (\n <Globe2 className=\"size-3.5\" />\n )}\n </span>\n );\n}\n\nexport function CitationStack({ citations, limit = 3, className }: CitationStackProps) {\n return (\n <span aria-hidden=\"true\" className={cn(\"flex -space-x-1.5\", className)}>\n {citations.slice(0, limit).map((citation) => (\n <CitationFavicon\n key={citation.id}\n url={citation.url}\n icon={citation.icon}\n className=\"bg-background ring-background size-6 rounded-full ring-2\"\n />\n ))}\n </span>\n );\n}\n\nfunction CitationRow({\n citation,\n index,\n idPrefix,\n highlighted,\n}: {\n citation: CitationItem;\n index: number;\n idPrefix: string;\n highlighted: boolean;\n}) {\n const content = (\n <>\n <CitationFavicon url={citation.url} icon={citation.icon} />\n <span className=\"flex min-w-0 flex-1 flex-wrap items-baseline gap-x-2 gap-y-0.5\">\n <span className=\"text-foreground/80 group-hover/citation:text-foreground truncate text-sm font-medium transition-colors\">\n {citation.title}\n </span>\n {citation.domain ? (\n <span className=\"text-muted-foreground/60 min-w-0 truncate text-xs\">\n {citation.domain}\n </span>\n ) : null}\n </span>\n <span className=\"flex shrink-0 items-center gap-1.5\">\n <span className=\"bg-foreground/5 text-muted-foreground grid size-5 place-items-center rounded-full text-[11px] font-medium tabular-nums\">\n {index}\n </span>\n {citation.url ? (\n <ExternalLink className=\"text-muted-foreground/40 group-hover/citation:text-muted-foreground size-3.5 transition-colors\" />\n ) : null}\n </span>\n </>\n );\n // The row a marker just led to is lit, so the reader sees which source they\n // landed on: `highlighted` from Citations, or `:target` after a plain jump.\n const className = cn(\n \"group/citation hover:bg-foreground/[0.04] focus-visible:ring-ring target:bg-foreground/[0.07] flex scroll-my-3 items-center gap-2 rounded-lg px-1.5 py-1 transition-colors duration-200 outline-none focus-visible:ring-2\",\n highlighted && \"bg-foreground/[0.07] hover:bg-foreground/[0.07]\",\n );\n const id = citationTargetId(idPrefix, citation.id);\n\n return citation.url ? (\n <a id={id} href={citation.url} target=\"_blank\" rel=\"noreferrer noopener\" className={className}>\n {content}\n </a>\n ) : (\n <div id={id} className={className}>\n {content}\n </div>\n );\n}\n\nexport function CitationList({ citations, idPrefix, highlightedId, className }: CitationListProps) {\n const reduce = useReducedMotion() ?? false;\n const baseId = useId();\n const resolvedPrefix = idPrefix ?? `citation-list-${baseId.replace(/:/g, \"\")}`;\n\n return (\n <div className={cn(\"grid gap-0.5\", className)}>\n <AnimatePresence mode=\"popLayout\">\n {citations.map((citation, index) => (\n <motion.div\n layout=\"position\"\n key={citation.id}\n initial={reduce ? { opacity: 1 } : { opacity: 0, y: 6 }}\n animate={{ opacity: 1, y: 0 }}\n exit={reduce ? { opacity: 0 } : { opacity: 0, y: -3 }}\n transition={\n reduce\n ? { duration: 0 }\n : {\n opacity: { duration: 0.18, ease: EASE_OUT },\n y: SPRING_LAYOUT,\n layout: SPRING_LAYOUT,\n }\n }\n >\n <CitationRow\n citation={citation}\n index={index + 1}\n idPrefix={resolvedPrefix}\n highlighted={citation.id === highlightedId}\n />\n </motion.div>\n ))}\n </AnimatePresence>\n </div>\n );\n}\n\nexport function Citations({\n citations,\n title,\n open,\n defaultOpen = false,\n onOpenChange,\n idPrefix,\n className,\n labels,\n}: CitationsProps) {\n const t = useMessages(\"citations\", citationsMessages, labels);\n const reduce = useReducedMotion() ?? false;\n const baseId = useId();\n const contentId = `${baseId}-content`;\n const resolvedPrefix = idPrefix ?? `citation-${baseId.replace(/:/g, \"\")}`;\n const [internalOpen, setInternalOpen] = useState(defaultOpen);\n const currentOpen = open ?? internalOpen;\n const setOpen = useCallback(\n (next: boolean) => {\n if (open === undefined) setInternalOpen(next);\n onOpenChange?.(next);\n },\n [onOpenChange, open],\n );\n\n // A marker links to its source row. While the list is folded that row is\n // hidden, so the jump would land on nothing: open the list, then bring the\n // row into view once it is shown.\n const [highlightedId, setHighlightedId] = useState<string>();\n const latest = useRef({ currentOpen, setOpen, citations, reduce });\n useLayoutEffect(() => {\n latest.current = { currentOpen, setOpen, citations, reduce };\n });\n useEffect(() => {\n // Returns true when the hash names one of this list's sources.\n const reveal = (hash: string) => {\n const now = latest.current;\n const citation = now.citations.find(\n (item) => citationTargetId(resolvedPrefix, item.id) === hash,\n );\n if (!citation) return false;\n if (!now.currentOpen) now.setOpen(true);\n setHighlightedId(citation.id);\n // After the list has opened, bring the row just into view: no jump to\n // the top of the page, where a sticky header would cover it.\n window.setTimeout(() => {\n document.getElementById(hash)?.scrollIntoView({\n block: \"nearest\",\n behavior: now.reduce ? \"auto\" : \"smooth\",\n });\n }, 0);\n return true;\n };\n const onHash = () => reveal(decodeURIComponent(window.location.hash.slice(1)));\n // Marker clicks are handled here rather than as a plain jump, which\n // lands on nothing while the list is folded and pins the row under the\n // page header when it is open.\n const onClick = (event: MouseEvent) => {\n const link = (event.target as Element | null)?.closest?.(\"a[href^='#']\");\n if (!link) return;\n if (reveal(decodeURIComponent(link.getAttribute(\"href\")?.slice(1) ?? \"\"))) {\n event.preventDefault();\n }\n };\n window.addEventListener(\"hashchange\", onHash);\n document.addEventListener(\"click\", onClick);\n return () => {\n window.removeEventListener(\"hashchange\", onHash);\n document.removeEventListener(\"click\", onClick);\n };\n }, [resolvedPrefix]);\n\n return (\n <div className={cn(\"w-full text-sm\", className)}>\n <button\n type=\"button\"\n aria-expanded={currentOpen}\n aria-controls={contentId}\n onClick={() => setOpen(!currentOpen)}\n className=\"group text-muted-foreground hover:text-foreground focus-visible:ring-ring -ml-1 flex min-h-8 items-center gap-2 rounded-full px-1 text-left transition-colors outline-none focus-visible:ring-2\"\n >\n <BookOpenText className=\"size-4\" />\n <span className=\"font-medium\">{title ?? t(\"title\")}</span>\n <span className=\"bg-foreground/6 rounded-full px-1.5 py-0.5 text-[11px] font-medium tabular-nums\">\n {citations.length}\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/60\"\n >\n <ChevronDown className=\"size-3.5\" />\n </motion.span>\n </button>\n\n <AgentDisclosure id={contentId} open={currentOpen}>\n <CitationList\n citations={citations}\n idPrefix={resolvedPrefix}\n highlightedId={highlightedId}\n className=\"mt-1\"\n />\n </AgentDisclosure>\n </div>\n );\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from "react";
|
|
2
|
+
import { HTMLMotionProps } from "motion/react";
|
|
3
|
+
export interface ClipResizeFrameProps extends Omit<HTMLMotionProps<"div">, "children" | "style"> {
|
|
4
|
+
style?: CSSProperties;
|
|
5
|
+
/**
|
|
6
|
+
* Which size follows the content. "y": the bottom edge glides as the height
|
|
7
|
+
* changes. "x": both ends glide in or out from the centre as the width
|
|
8
|
+
* changes, on a morph spring, for pills and chips. Default: "y"
|
|
9
|
+
*/
|
|
10
|
+
axis?: "x" | "y";
|
|
11
|
+
/**
|
|
12
|
+
* With axis "y", which edge moves. "top" is for a panel anchored at its
|
|
13
|
+
* bottom, such as a list opening above an input: its top edge glides and its
|
|
14
|
+
* content stays against the bottom. Default: "bottom"
|
|
15
|
+
*/
|
|
16
|
+
edge?: "top" | "bottom";
|
|
17
|
+
/** Outer corner radius in px. The surface inside uses one less. */
|
|
18
|
+
radius?: number;
|
|
19
|
+
/** Classes for the content box (padding goes here). */
|
|
20
|
+
contentClassName?: string;
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A bordered card whose bottom edge glides when its content grows or shrinks,
|
|
25
|
+
* without animating height. The layout changes at once; a clip on the card
|
|
26
|
+
* hides the difference and slides it away. The border is the 1px gap between
|
|
27
|
+
* two clipped layers (the frame in the border colour, the surface inside it),
|
|
28
|
+
* so the bottom line travels with the edge instead of being clipped off.
|
|
29
|
+
*/
|
|
30
|
+
export declare function ClipResizeFrame({ axis, edge, radius, className, contentClassName, style, children, ...props }: ClipResizeFrameProps): import("react").JSX.Element;
|
|
31
|
+
//# sourceMappingURL=clip-resize-frame.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clip-resize-frame.d.ts","names":[],"sources":["../../../src/components/agents/clip-resize-frame.tsx"],"mappings":";;iBAqBiB,6BAA6B,KAAK;EACjD,QAAQ;;;;;;EAMR;;;;;;EAMA;;EAEA;;EAEA;EACA,UAAU;;;;;;;;;wBAUI,kBACd,MACA,MACA,QACA,WACA,kBACA,OACA,aACG,SACF,uCAAoB,IAAA"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useLayoutEffect, useRef } from "react";
|
|
3
|
+
import { animate, motion, useMotionValue, useReducedMotion, useTransform } from "motion/react";
|
|
4
|
+
import { cn } from "@kumix/utils";
|
|
5
|
+
import { EASE_OUT, SPRING_MORPH } from "../../lib/ease.js";
|
|
6
|
+
import { jsx } from "react/jsx-runtime";
|
|
7
|
+
// src/components/agents/clip-resize-frame.tsx
|
|
8
|
+
const GROW = {
|
|
9
|
+
duration: .3,
|
|
10
|
+
ease: EASE_OUT
|
|
11
|
+
};
|
|
12
|
+
const SHRINK = {
|
|
13
|
+
duration: .24,
|
|
14
|
+
ease: EASE_OUT
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* A bordered card whose bottom edge glides when its content grows or shrinks,
|
|
18
|
+
* without animating height. The layout changes at once; a clip on the card
|
|
19
|
+
* hides the difference and slides it away. The border is the 1px gap between
|
|
20
|
+
* two clipped layers (the frame in the border colour, the surface inside it),
|
|
21
|
+
* so the bottom line travels with the edge instead of being clipped off.
|
|
22
|
+
*/
|
|
23
|
+
function ClipResizeFrame({ axis = "y", edge = "bottom", radius = 16, className, contentClassName, style, children, ...props }) {
|
|
24
|
+
const reduce = useReducedMotion() ?? false;
|
|
25
|
+
const horizontal = axis === "x";
|
|
26
|
+
const fromTop = !horizontal && edge === "top";
|
|
27
|
+
const surfaceRef = useRef(null);
|
|
28
|
+
const contentRef = useRef(null);
|
|
29
|
+
const gap = useMotionValue(0);
|
|
30
|
+
const clip = (value, round) => horizontal ? `inset(0 ${value / 2}px 0 ${value / 2}px round ${round}px)` : fromTop ? `inset(${value}px 0 0 0 round ${round}px)` : `inset(0 0 ${value}px 0 round ${round}px)`;
|
|
31
|
+
const frameClip = useTransform(gap, (value) => Math.abs(value) > .5 ? clip(value, radius) : "none");
|
|
32
|
+
const surfaceClip = useTransform(gap, (value) => Math.abs(value) > .5 ? clip(value, radius - 1) : "none");
|
|
33
|
+
useLayoutEffect(() => {
|
|
34
|
+
const surface = surfaceRef.current;
|
|
35
|
+
const content = contentRef.current;
|
|
36
|
+
if (!surface || !content || typeof ResizeObserver === "undefined") return;
|
|
37
|
+
const measure = () => horizontal ? content.offsetWidth : content.offsetHeight;
|
|
38
|
+
const side = horizontal ? "width" : "height";
|
|
39
|
+
let last = measure();
|
|
40
|
+
let held = null;
|
|
41
|
+
let controls;
|
|
42
|
+
const release = () => {
|
|
43
|
+
held = null;
|
|
44
|
+
surface.style[side] = "";
|
|
45
|
+
gap.set(0);
|
|
46
|
+
};
|
|
47
|
+
const observer = new ResizeObserver(() => {
|
|
48
|
+
const next = measure();
|
|
49
|
+
if (next === last) return;
|
|
50
|
+
const visible = (held ?? last) - gap.get();
|
|
51
|
+
last = next;
|
|
52
|
+
controls?.stop();
|
|
53
|
+
if (reduce) {
|
|
54
|
+
release();
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const from = Math.max(next, visible);
|
|
58
|
+
held = from > next ? from : null;
|
|
59
|
+
surface.style[side] = held === null ? "" : `${held}px`;
|
|
60
|
+
gap.set(from - visible);
|
|
61
|
+
controls = animate(gap, from - next, {
|
|
62
|
+
...horizontal ? SPRING_MORPH : next < visible ? SHRINK : GROW,
|
|
63
|
+
onComplete: () => {
|
|
64
|
+
if (held !== null) release();
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
observer.observe(content);
|
|
69
|
+
return () => {
|
|
70
|
+
observer.disconnect();
|
|
71
|
+
controls?.stop();
|
|
72
|
+
};
|
|
73
|
+
}, [
|
|
74
|
+
gap,
|
|
75
|
+
reduce,
|
|
76
|
+
horizontal
|
|
77
|
+
]);
|
|
78
|
+
return /* @__PURE__ */ jsx(motion.div, {
|
|
79
|
+
...props,
|
|
80
|
+
style: {
|
|
81
|
+
...style,
|
|
82
|
+
borderRadius: radius,
|
|
83
|
+
clipPath: frameClip
|
|
84
|
+
},
|
|
85
|
+
className: cn("bg-border p-px", horizontal && "w-fit", className),
|
|
86
|
+
children: /* @__PURE__ */ jsx(motion.div, {
|
|
87
|
+
ref: surfaceRef,
|
|
88
|
+
style: {
|
|
89
|
+
borderRadius: radius - 1,
|
|
90
|
+
clipPath: surfaceClip
|
|
91
|
+
},
|
|
92
|
+
className: cn("bg-background overflow-hidden", horizontal && "flex justify-center", fromTop && "flex flex-col justify-end"),
|
|
93
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
94
|
+
ref: contentRef,
|
|
95
|
+
className: cn(horizontal && "w-max shrink-0", contentClassName),
|
|
96
|
+
children
|
|
97
|
+
})
|
|
98
|
+
})
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
export { ClipResizeFrame };
|
|
102
|
+
|
|
103
|
+
//# sourceMappingURL=clip-resize-frame.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clip-resize-frame.js","names":[],"sources":["../../../src/components/agents/clip-resize-frame.tsx"],"sourcesContent":["\"use client\";\n\nimport { type CSSProperties, type ReactNode, useLayoutEffect, useRef } from \"react\";\nimport {\n type AnimationPlaybackControls,\n animate,\n type HTMLMotionProps,\n motion,\n useMotionValue,\n useReducedMotion,\n useTransform,\n} from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_OUT, SPRING_MORPH } from \"../../lib/ease\";\n\n// The bottom edge glides to the new size; a little quicker when shrinking,\n// since the content inside has already gone.\nconst GROW = { duration: 0.3, ease: EASE_OUT } as const;\nconst SHRINK = { duration: 0.24, ease: EASE_OUT } as const;\n\nexport interface ClipResizeFrameProps extends Omit<HTMLMotionProps<\"div\">, \"children\" | \"style\"> {\n style?: CSSProperties;\n /**\n * Which size follows the content. \"y\": the bottom edge glides as the height\n * changes. \"x\": both ends glide in or out from the centre as the width\n * changes, on a morph spring, for pills and chips. Default: \"y\"\n */\n axis?: \"x\" | \"y\";\n /**\n * With axis \"y\", which edge moves. \"top\" is for a panel anchored at its\n * bottom, such as a list opening above an input: its top edge glides and its\n * content stays against the bottom. Default: \"bottom\"\n */\n edge?: \"top\" | \"bottom\";\n /** Outer corner radius in px. The surface inside uses one less. */\n radius?: number;\n /** Classes for the content box (padding goes here). */\n contentClassName?: string;\n children: ReactNode;\n}\n\n/**\n * A bordered card whose bottom edge glides when its content grows or shrinks,\n * without animating height. The layout changes at once; a clip on the card\n * hides the difference and slides it away. The border is the 1px gap between\n * two clipped layers (the frame in the border colour, the surface inside it),\n * so the bottom line travels with the edge instead of being clipped off.\n */\nexport function ClipResizeFrame({\n axis = \"y\",\n edge = \"bottom\",\n radius = 16,\n className,\n contentClassName,\n style,\n children,\n ...props\n}: ClipResizeFrameProps) {\n const reduce = useReducedMotion() ?? false;\n const horizontal = axis === \"x\";\n const fromTop = !horizontal && edge === \"top\";\n const surfaceRef = useRef<HTMLDivElement>(null);\n const contentRef = useRef<HTMLDivElement>(null);\n // How much of the surface (px) is hidden right now: at the moving edge, or\n // split evenly between the two ends.\n const gap = useMotionValue(0);\n const clip = (value: number, round: number) =>\n horizontal\n ? `inset(0 ${value / 2}px 0 ${value / 2}px round ${round}px)`\n : fromTop\n ? `inset(${value}px 0 0 0 round ${round}px)`\n : `inset(0 0 ${value}px 0 round ${round}px)`;\n const frameClip = useTransform(gap, (value) =>\n Math.abs(value) > 0.5 ? clip(value, radius) : \"none\",\n );\n const surfaceClip = useTransform(gap, (value) =>\n Math.abs(value) > 0.5 ? clip(value, radius - 1) : \"none\",\n );\n\n useLayoutEffect(() => {\n const surface = surfaceRef.current;\n const content = contentRef.current;\n if (!surface || !content || typeof ResizeObserver === \"undefined\") return;\n\n const measure = () => (horizontal ? content.offsetWidth : content.offsetHeight);\n const side = horizontal ? \"width\" : \"height\";\n let last = measure();\n // While shrinking, the surface keeps its old size so the edge has\n // somewhere to glide from; null when the surface sizes to its content.\n let held: number | null = null;\n let controls: AnimationPlaybackControls | undefined;\n\n const release = () => {\n held = null;\n surface.style[side] = \"\";\n gap.set(0);\n };\n\n // Runs after layout and before paint, so the held size lands in the\n // same frame as the content change: the edge never jumps.\n const observer = new ResizeObserver(() => {\n const next = measure();\n if (next === last) return;\n const visible = (held ?? last) - gap.get();\n last = next;\n controls?.stop();\n\n if (reduce) {\n release();\n return;\n }\n\n const from = Math.max(next, visible);\n held = from > next ? from : null;\n surface.style[side] = held === null ? \"\" : `${held}px`;\n gap.set(from - visible);\n controls = animate(gap, from - next, {\n ...(horizontal ? SPRING_MORPH : next < visible ? SHRINK : GROW),\n // The edge has reached the content: hand the size back to layout.\n onComplete: () => {\n if (held !== null) release();\n },\n });\n });\n observer.observe(content);\n return () => {\n observer.disconnect();\n controls?.stop();\n };\n }, [gap, reduce, horizontal]);\n\n return (\n <motion.div\n {...props}\n style={{ ...style, borderRadius: radius, clipPath: frameClip }}\n className={cn(\"bg-border p-px\", horizontal && \"w-fit\", className)}\n >\n <motion.div\n ref={surfaceRef}\n style={{ borderRadius: radius - 1, clipPath: surfaceClip }}\n // Held wider than its content while shrinking, the surface keeps the\n // content centred, so the two ends close in on it evenly.\n // Held taller than its content, a top-edge surface keeps the content\n // against its anchored bottom.\n className={cn(\n \"bg-background overflow-hidden\",\n horizontal && \"flex justify-center\",\n fromTop && \"flex flex-col justify-end\",\n )}\n >\n <div ref={contentRef} className={cn(horizontal && \"w-max shrink-0\", contentClassName)}>\n {children}\n </div>\n </motion.div>\n </motion.div>\n );\n}\n"],"mappings":";;;;;;;AAkBA,MAAM,OAAO;CAAE,UAAU;CAAK,MAAM;AAAS;AAC7C,MAAM,SAAS;CAAE,UAAU;CAAM,MAAM;AAAS;;;;;;;;AA8BhD,SAAgB,gBAAgB,EAC9B,OAAO,KACP,OAAO,UACP,SAAS,IACT,WACA,kBACA,OACA,UACA,GAAG,SACoB;CACvB,MAAM,SAAS,iBAAiB,KAAK;CACrC,MAAM,aAAa,SAAS;CAC5B,MAAM,UAAU,CAAC,cAAc,SAAS;CACxC,MAAM,aAAa,OAAuB,IAAI;CAC9C,MAAM,aAAa,OAAuB,IAAI;CAG9C,MAAM,MAAM,eAAe,CAAC;CAC5B,MAAM,QAAQ,OAAe,UAC3B,aACI,WAAW,QAAQ,EAAE,OAAO,QAAQ,EAAE,WAAW,MAAM,OACvD,UACE,SAAS,MAAM,iBAAiB,MAAM,OACtC,aAAa,MAAM,aAAa,MAAM;CAC9C,MAAM,YAAY,aAAa,MAAM,UACnC,KAAK,IAAI,KAAK,IAAI,KAAM,KAAK,OAAO,MAAM,IAAI,MAChD;CACA,MAAM,cAAc,aAAa,MAAM,UACrC,KAAK,IAAI,KAAK,IAAI,KAAM,KAAK,OAAO,SAAS,CAAC,IAAI,MACpD;CAEA,sBAAsB;EACpB,MAAM,UAAU,WAAW;EAC3B,MAAM,UAAU,WAAW;EAC3B,IAAI,CAAC,WAAW,CAAC,WAAW,OAAO,mBAAmB,aAAa;EAEnE,MAAM,gBAAiB,aAAa,QAAQ,cAAc,QAAQ;EAClE,MAAM,OAAO,aAAa,UAAU;EACpC,IAAI,OAAO,QAAQ;EAGnB,IAAI,OAAsB;EAC1B,IAAI;EAEJ,MAAM,gBAAgB;GACpB,OAAO;GACP,QAAQ,MAAM,QAAQ;GACtB,IAAI,IAAI,CAAC;EACX;EAIA,MAAM,WAAW,IAAI,qBAAqB;GACxC,MAAM,OAAO,QAAQ;GACrB,IAAI,SAAS,MAAM;GACnB,MAAM,WAAW,QAAQ,QAAQ,IAAI,IAAI;GACzC,OAAO;GACP,UAAU,KAAK;GAEf,IAAI,QAAQ;IACV,QAAQ;IACR;GACF;GAEA,MAAM,OAAO,KAAK,IAAI,MAAM,OAAO;GACnC,OAAO,OAAO,OAAO,OAAO;GAC5B,QAAQ,MAAM,QAAQ,SAAS,OAAO,KAAK,GAAG,KAAK;GACnD,IAAI,IAAI,OAAO,OAAO;GACtB,WAAW,QAAQ,KAAK,OAAO,MAAM;IACnC,GAAI,aAAa,eAAe,OAAO,UAAU,SAAS;IAE1D,kBAAkB;KAChB,IAAI,SAAS,MAAM,QAAQ;IAC7B;GACF,CAAC;EACH,CAAC;EACD,SAAS,QAAQ,OAAO;EACxB,aAAa;GACX,SAAS,WAAW;GACpB,UAAU,KAAK;EACjB;CACF,GAAG;EAAC;EAAK;EAAQ;CAAU,CAAC;CAE5B,OACE,oBAAC,OAAO,KAAR;EACE,GAAI;EACJ,OAAO;GAAE,GAAG;GAAO,cAAc;GAAQ,UAAU;EAAU;EAC7D,WAAW,GAAG,kBAAkB,cAAc,SAAS,SAAS;EAEhE,UAAA,oBAAC,OAAO,KAAR;GACE,KAAK;GACL,OAAO;IAAE,cAAc,SAAS;IAAG,UAAU;GAAY;GAKzD,WAAW,GACT,iCACA,cAAc,uBACd,WAAW,2BACb;GAEA,UAAA,oBAAC,OAAD;IAAK,KAAK;IAAY,WAAW,GAAG,cAAc,kBAAkB,gBAAgB;IACjF;GACE,CAAA;EACK,CAAA;CACF,CAAA;AAEhB"}
|
|
@@ -1,18 +1,38 @@
|
|
|
1
|
-
import { AgentCodeLanguage } from "./agent-code.js";
|
|
2
1
|
import { ReactNode } from "react";
|
|
2
|
+
import { AgentCodeLanguage } from "./agent-code.js";
|
|
3
|
+
export declare const codeBlockMessages: {
|
|
4
|
+
writing: string;
|
|
5
|
+
ready: string;
|
|
6
|
+
copy: string;
|
|
7
|
+
copied: string;
|
|
8
|
+
};
|
|
9
|
+
export type CodeBlockMessages = typeof codeBlockMessages;
|
|
3
10
|
export type CodeBlockStatus = "streaming" | "complete";
|
|
4
11
|
export interface CodeBlockProps {
|
|
12
|
+
/** The source code to show. May grow while `status` is "streaming". */
|
|
5
13
|
code: string;
|
|
14
|
+
/** Language for syntax highlighting, also shown in the header. Default: "typescript" */
|
|
6
15
|
language?: AgentCodeLanguage;
|
|
16
|
+
/** File name shown in the header. */
|
|
7
17
|
filename?: ReactNode;
|
|
18
|
+
/** "streaming" shows Writing and follows new lines, "complete" shows Ready. Default: "complete" */
|
|
8
19
|
status?: CodeBlockStatus;
|
|
20
|
+
/** Shows a line number gutter. Default: true */
|
|
9
21
|
showLineNumbers?: boolean;
|
|
22
|
+
/** 1-based line numbers to tint. */
|
|
10
23
|
highlightLines?: number[];
|
|
24
|
+
/** Height in px before the code scrolls. Default: 280 */
|
|
11
25
|
maxHeight?: number;
|
|
26
|
+
/** Wraps long lines instead of scrolling sideways. Default: false */
|
|
12
27
|
wrap?: boolean;
|
|
28
|
+
/** Shows the copy button. Default: true */
|
|
13
29
|
copyable?: boolean;
|
|
30
|
+
/** Runs in place of the clipboard write when copy is pressed. Shows the copy button. */
|
|
14
31
|
onCopy?: () => void | Promise<void>;
|
|
32
|
+
/** Classes merged onto the root element. */
|
|
15
33
|
className?: string;
|
|
34
|
+
/** Override any built-in string. */
|
|
35
|
+
labels?: Partial<CodeBlockMessages>;
|
|
16
36
|
}
|
|
17
|
-
export declare function CodeBlock({ code, language, filename, status, showLineNumbers, highlightLines, maxHeight, wrap, copyable, onCopy, className }: CodeBlockProps): import("react").JSX.Element;
|
|
37
|
+
export declare function CodeBlock({ code, language, filename, status, showLineNumbers, highlightLines, maxHeight, wrap, copyable, onCopy, className, labels }: CodeBlockProps): import("react").JSX.Element;
|
|
18
38
|
//# sourceMappingURL=code-block.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code-block.d.ts","names":[],"sources":["../../../src/components/agents/code-block.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"code-block.d.ts","names":[],"sources":["../../../src/components/agents/code-block.tsx"],"mappings":";;qBAea;;;;;;YAOD,2BAA2B;YAE3B;iBAKK;;EAEf;;EAEA,WAAW;;EAEX,WAAW;;EAEX,SAAS;;EAET;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,sBAAsB;;EAEtB;;EAEA,SAAS,QAAQ;;wBAGH,YACd,MACA,UACA,UACA,QACA,iBACA,gBACA,WACA,MACA,UACA,QACA,WACA,UACC,iCAAc,IAAA"}
|