@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,7 +1,9 @@
|
|
|
1
|
-
import { n as DepthSummary, t as DepthLevel } from "../../model-DuAc65oe.js";
|
|
2
1
|
import { ReactNode } from "react";
|
|
2
|
+
import { n as DepthSummary, t as DepthLevel } from "../../model-D6sI_4m9.js";
|
|
3
3
|
export type OrderBookLevel = {
|
|
4
|
+
/** Price of the level, in the quote asset. */
|
|
4
5
|
price: number;
|
|
6
|
+
/** Amount resting at this price, in the base asset. */
|
|
5
7
|
size: number;
|
|
6
8
|
};
|
|
7
9
|
/** A level identified by its side and price, so it survives snapshot updates. */
|
|
@@ -9,6 +11,28 @@ export type OrderBookActiveLevel = {
|
|
|
9
11
|
side: "bid" | "ask";
|
|
10
12
|
price: number;
|
|
11
13
|
} | null;
|
|
14
|
+
/** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */
|
|
15
|
+
export declare const orderBookMessages: {
|
|
16
|
+
label: string;
|
|
17
|
+
price: string;
|
|
18
|
+
size: string;
|
|
19
|
+
total: string;
|
|
20
|
+
cumulativeTotal: string;
|
|
21
|
+
asksTable: string;
|
|
22
|
+
bidsTable: string;
|
|
23
|
+
noAsks: string;
|
|
24
|
+
noBids: string;
|
|
25
|
+
referencePrice: string;
|
|
26
|
+
spreadUnavailable: string;
|
|
27
|
+
crossedBook: string;
|
|
28
|
+
spread: string;
|
|
29
|
+
bids: string;
|
|
30
|
+
asks: string;
|
|
31
|
+
visibleDepth: string;
|
|
32
|
+
depthPlaceholder: string;
|
|
33
|
+
average: string;
|
|
34
|
+
};
|
|
35
|
+
export type OrderBookMessages = typeof orderBookMessages;
|
|
12
36
|
export interface OrderBookProps {
|
|
13
37
|
/** Snapshot of buy levels. Equal prices are combined; invalid and zero sizes are omitted. */
|
|
14
38
|
bids: readonly OrderBookLevel[];
|
|
@@ -18,21 +42,31 @@ export interface OrderBookProps {
|
|
|
18
42
|
levels?: number;
|
|
19
43
|
/** Last traded price. Omit to show the midpoint of the best bid and ask. */
|
|
20
44
|
lastPrice?: number;
|
|
45
|
+
/** Accessible name for the book. Default: "Order book" */
|
|
21
46
|
label?: string;
|
|
47
|
+
/** Symbol of the traded asset, shown beside sizes. Default: "" */
|
|
22
48
|
baseSymbol?: string;
|
|
49
|
+
/** Symbol prices are quoted in, shown beside prices. Default: "USD" */
|
|
23
50
|
quoteSymbol?: string;
|
|
51
|
+
/** Formats prices, the spread and averages. Defaults to 2 decimal places. */
|
|
24
52
|
formatPrice?: (value: number) => string;
|
|
53
|
+
/** Formats sizes and totals. Defaults to compact notation, e.g. 1.2K. */
|
|
25
54
|
formatSize?: (value: number) => string;
|
|
26
55
|
/**
|
|
27
56
|
* The level whose depth is inspected: it and every better level on its side
|
|
28
57
|
* are highlighted, and `OrderBookDepthSummary` totals them. Controlled.
|
|
29
58
|
*/
|
|
30
59
|
activeLevel?: OrderBookActiveLevel;
|
|
60
|
+
/** The initial inspected level when uncontrolled. Default: null */
|
|
31
61
|
defaultActiveLevel?: OrderBookActiveLevel;
|
|
62
|
+
/** Called with the level, or null, when the inspected level changes. */
|
|
32
63
|
onActiveLevelChange?: (level: OrderBookActiveLevel) => void;
|
|
33
64
|
/** Makes each price a button, for example to fill an order ticket. */
|
|
34
65
|
onLevelSelect?: (level: DepthLevel, side: "bid" | "ask") => void;
|
|
66
|
+
/** Override any built-in string. */
|
|
67
|
+
labels?: Partial<OrderBookMessages>;
|
|
35
68
|
children?: ReactNode;
|
|
69
|
+
/** Classes merged onto the root element. */
|
|
36
70
|
className?: string;
|
|
37
71
|
}
|
|
38
72
|
export declare function useOrderBook(): {
|
|
@@ -48,6 +82,7 @@ export declare function useOrderBook(): {
|
|
|
48
82
|
quoteSymbol: string;
|
|
49
83
|
formatPrice: (value: number) => string;
|
|
50
84
|
formatSize: (value: number) => string;
|
|
85
|
+
t: (key: "label" | "size" | "price" | "total" | "cumulativeTotal" | "asksTable" | "bidsTable" | "noAsks" | "noBids" | "referencePrice" | "spreadUnavailable" | "crossedBook" | "spread" | "bids" | "asks" | "visibleDepth" | "depthPlaceholder" | "average", values?: Record<string, string | number>) => string;
|
|
51
86
|
reduce: boolean | null;
|
|
52
87
|
bids: DepthLevel[];
|
|
53
88
|
asks: DepthLevel[];
|
|
@@ -63,6 +98,7 @@ export declare function OrderBookHeader({ className }: {
|
|
|
63
98
|
className?: string;
|
|
64
99
|
}): import("react").JSX.Element;
|
|
65
100
|
export declare function OrderBookSide({ side, className }: {
|
|
101
|
+
/** Which levels the table lists: bids, or asks with the best ask last. */
|
|
66
102
|
side: "bid" | "ask";
|
|
67
103
|
className?: string;
|
|
68
104
|
}): import("react").JSX.Element;
|
|
@@ -78,6 +114,7 @@ export declare function OrderBookBalance({ className }: {
|
|
|
78
114
|
* level on its side, as the cost of filling an order up to that price.
|
|
79
115
|
*/
|
|
80
116
|
export declare function OrderBookDepthSummary({ placeholder, children, className }: {
|
|
117
|
+
/** Shown while no level is inspected. Default: "Hover a level to see the cost of filling up to it" */
|
|
81
118
|
placeholder?: ReactNode;
|
|
82
119
|
/** Custom readout for the inspected levels. */
|
|
83
120
|
children?: (summary: NonNullable<ReturnType<typeof useOrderBook>["summary"]>) => ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-book.d.ts","names":["_$__order_book0.OrderBookDepthSummaryData"],"sources":["../../../src/components/charts/order-book.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"order-book.d.ts","names":["_$__order_book0.OrderBookDepthSummaryData"],"sources":["../../../src/components/charts/order-book.tsx"],"mappings":";;YAmBY;;EAEV;;EAEA;;;YAQU;EAAyB;EAAqB;;;qBAG7C;;;;;;;;;;;;;;;;;;;;YAqBD,2BAA2B;iBAEtB;;EAEf,eAAe;;EAEf,eAAe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA;;EAEA,eAAe;;EAEf,cAAc;;;;;EAKd,cAAc;;EAEd,qBAAqB;;EAErB,uBAAuB,OAAO;;EAE9B,iBAAiB,OAAO,YAAY;;EAEpC,SAAS,QAAQ;EACjB,WAAW;;EAEX;;wBA4Ec;;;;;E,SAAAA;EA5B6B,iBAAA,OAAA;EArDnB,iBAAA,OAAA,YAAU;;;;EAbZ,cAAA;EAED,aAAA;;;;;;;;;;;;wBAmGP,YAAY,UAAU,WAAW,UAAU,SAAS,iCAAc,IAAA;wBA2BlE,kBAAkB;EAAe;oBAAoB,IAAA;wBAuBrD,gBACd,MACA;;EAGA;EACA;oBACD,IAAA;wBAoEe,kBAAkB;EAAe;oBAAoB,IAAA;;wBA4BrD,mBAAmB;EAAe;oBAAoB,IAAA;;;;;wBA+BtD,wBACd,aACA,UACA;;EAGA,cAAc;;EAEd,YAAY,SAAS,YAAY,kBAAkB,8BAA8B;EACjF;oBACD,IAAA"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { SPRING_PANEL } from "../../lib/ease.js";
|
|
3
|
-
import { OrderBookDepthRow } from "./order-book/depth-row.js";
|
|
4
2
|
import { createContext, useCallback, useContext, useLayoutEffect, useRef, useState } from "react";
|
|
3
|
+
import { motion, useReducedMotion } from "motion/react";
|
|
5
4
|
import { cn } from "@kumix/utils";
|
|
5
|
+
import { SPRING_PANEL } from "../../lib/ease.js";
|
|
6
|
+
import { useMessages } from "../../lib/i18n.js";
|
|
7
|
+
import { OrderBookDepthRow } from "./order-book/depth-row.js";
|
|
6
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import { motion, useReducedMotion } from "motion/react";
|
|
8
9
|
// src/components/charts/order-book/model.ts
|
|
9
10
|
function prepare(levels, side, limit) {
|
|
10
11
|
const prices = /* @__PURE__ */ new Map();
|
|
@@ -56,6 +57,27 @@ function buildOrderBook(bids, asks, levels) {
|
|
|
56
57
|
};
|
|
57
58
|
}
|
|
58
59
|
// src/components/charts/order-book.tsx
|
|
60
|
+
/** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */
|
|
61
|
+
const orderBookMessages = {
|
|
62
|
+
label: "Order book",
|
|
63
|
+
price: "Price",
|
|
64
|
+
size: "Size",
|
|
65
|
+
total: "Total",
|
|
66
|
+
cumulativeTotal: "Cumulative total",
|
|
67
|
+
asksTable: "Asks · sell orders",
|
|
68
|
+
bidsTable: "Bids · buy orders",
|
|
69
|
+
noAsks: "No asks",
|
|
70
|
+
noBids: "No bids",
|
|
71
|
+
referencePrice: "Reference price:",
|
|
72
|
+
spreadUnavailable: "Spread unavailable",
|
|
73
|
+
crossedBook: "Crossed book",
|
|
74
|
+
spread: "Spread {spread} · {percent}%",
|
|
75
|
+
bids: "Bids",
|
|
76
|
+
asks: "Asks",
|
|
77
|
+
visibleDepth: "Visible depth",
|
|
78
|
+
depthPlaceholder: "Hover a level to see the cost of filling up to it",
|
|
79
|
+
average: "Avg"
|
|
80
|
+
};
|
|
59
81
|
const priceFormatter = new Intl.NumberFormat("en-US", {
|
|
60
82
|
minimumFractionDigits: 2,
|
|
61
83
|
maximumFractionDigits: 2
|
|
@@ -66,7 +88,8 @@ const sizeFormatter = new Intl.NumberFormat("en-US", {
|
|
|
66
88
|
});
|
|
67
89
|
const defaultPrice = (value) => priceFormatter.format(value);
|
|
68
90
|
const defaultSize = (value) => sizeFormatter.format(value);
|
|
69
|
-
function useOrderBookModel({ bids, asks, levels = 9, lastPrice, baseSymbol = "", quoteSymbol = "USD", formatPrice = defaultPrice, formatSize = defaultSize, activeLevel, defaultActiveLevel = null, onActiveLevelChange, onLevelSelect }) {
|
|
91
|
+
function useOrderBookModel({ bids, asks, levels = 9, lastPrice, baseSymbol = "", quoteSymbol = "USD", formatPrice = defaultPrice, formatSize = defaultSize, activeLevel, defaultActiveLevel = null, onActiveLevelChange, onLevelSelect, labels }) {
|
|
92
|
+
const t = useMessages("orderBook", orderBookMessages, labels);
|
|
70
93
|
const book = buildOrderBook(bids, asks, levels);
|
|
71
94
|
const [internalActive, setInternalActive] = useState(defaultActiveLevel);
|
|
72
95
|
const rawActive = activeLevel === void 0 ? internalActive : activeLevel;
|
|
@@ -100,6 +123,7 @@ function useOrderBookModel({ bids, asks, levels = 9, lastPrice, baseSymbol = "",
|
|
|
100
123
|
quoteSymbol,
|
|
101
124
|
formatPrice,
|
|
102
125
|
formatSize,
|
|
126
|
+
t,
|
|
103
127
|
reduce: useReducedMotion()
|
|
104
128
|
};
|
|
105
129
|
}
|
|
@@ -110,12 +134,12 @@ function useOrderBook() {
|
|
|
110
134
|
return context;
|
|
111
135
|
}
|
|
112
136
|
/** A snapshot-driven depth ladder. No timers or invented market data live in the chart. */
|
|
113
|
-
function OrderBook({ children, className, label
|
|
137
|
+
function OrderBook({ children, className, label, ...props }) {
|
|
114
138
|
const model = useOrderBookModel(props);
|
|
115
139
|
return /* @__PURE__ */ jsx(OrderBookContext.Provider, {
|
|
116
140
|
value: model,
|
|
117
141
|
children: /* @__PURE__ */ jsx("section", {
|
|
118
|
-
"aria-label": label,
|
|
142
|
+
"aria-label": label ?? model.t("label"),
|
|
119
143
|
className: cn("border-border bg-background w-full max-w-[560px] overflow-hidden rounded-2xl border font-mono text-xs tabular-nums", className),
|
|
120
144
|
children: children === void 0 ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
121
145
|
/* @__PURE__ */ jsx(OrderBookHeader, {}),
|
|
@@ -128,55 +152,67 @@ function OrderBook({ children, className, label = "Order book", ...props }) {
|
|
|
128
152
|
});
|
|
129
153
|
}
|
|
130
154
|
function OrderBookHeader({ className }) {
|
|
131
|
-
const { baseSymbol, quoteSymbol } = useOrderBook();
|
|
155
|
+
const { baseSymbol, quoteSymbol, t } = useOrderBook();
|
|
132
156
|
return /* @__PURE__ */ jsxs("div", {
|
|
133
157
|
"aria-hidden": "true",
|
|
134
|
-
className: cn("text-muted-foreground grid grid-cols-3 py-3 text-[
|
|
158
|
+
className: cn("text-muted-foreground grid grid-cols-3 py-3 text-[11px] tracking-wider uppercase", className),
|
|
135
159
|
children: [
|
|
136
160
|
/* @__PURE__ */ jsxs("span", {
|
|
137
161
|
className: "px-4",
|
|
138
|
-
children: ["
|
|
162
|
+
children: [t("price"), quoteSymbol && ` (${quoteSymbol})`]
|
|
139
163
|
}),
|
|
140
164
|
/* @__PURE__ */ jsxs("span", {
|
|
141
165
|
className: "px-4 text-right",
|
|
142
|
-
children: ["
|
|
166
|
+
children: [t("size"), baseSymbol && ` (${baseSymbol})`]
|
|
143
167
|
}),
|
|
144
168
|
/* @__PURE__ */ jsx("span", {
|
|
145
169
|
className: "px-4 text-right",
|
|
146
|
-
children: "
|
|
170
|
+
children: t("total")
|
|
147
171
|
})
|
|
148
172
|
]
|
|
149
173
|
});
|
|
150
174
|
}
|
|
151
175
|
function OrderBookSide({ side, className }) {
|
|
152
|
-
const { bids, asks, maxTotal, formatPrice, formatSize, reduce, baseSymbol, quoteSymbol, active, setActiveLevel, onLevelSelect } = useOrderBook();
|
|
176
|
+
const { bids, asks, maxTotal, formatPrice, formatSize, reduce, baseSymbol, quoteSymbol, active, setActiveLevel, onLevelSelect, t } = useOrderBook();
|
|
153
177
|
const rows = side === "ask" ? [...asks].reverse() : bids;
|
|
154
178
|
const color = side === "ask" ? "text-rose-600 dark:text-rose-400" : "text-emerald-700 dark:text-emerald-400";
|
|
155
179
|
return /* @__PURE__ */ jsxs("table", {
|
|
156
|
-
"aria-label": side === "ask" ? "
|
|
180
|
+
"aria-label": side === "ask" ? t("asksTable") : t("bidsTable"),
|
|
157
181
|
className: cn("w-full table-fixed border-separate border-spacing-0", className),
|
|
158
182
|
children: [/* @__PURE__ */ jsx("thead", {
|
|
159
183
|
className: "sr-only",
|
|
160
184
|
children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
161
185
|
/* @__PURE__ */ jsxs("th", {
|
|
162
186
|
scope: "col",
|
|
163
|
-
children: [
|
|
187
|
+
children: [
|
|
188
|
+
t("price"),
|
|
189
|
+
" ",
|
|
190
|
+
quoteSymbol
|
|
191
|
+
]
|
|
164
192
|
}),
|
|
165
193
|
/* @__PURE__ */ jsxs("th", {
|
|
166
194
|
scope: "col",
|
|
167
|
-
children: [
|
|
195
|
+
children: [
|
|
196
|
+
t("size"),
|
|
197
|
+
" ",
|
|
198
|
+
baseSymbol
|
|
199
|
+
]
|
|
168
200
|
}),
|
|
169
201
|
/* @__PURE__ */ jsxs("th", {
|
|
170
202
|
scope: "col",
|
|
171
|
-
children: [
|
|
203
|
+
children: [
|
|
204
|
+
t("cumulativeTotal"),
|
|
205
|
+
" ",
|
|
206
|
+
baseSymbol
|
|
207
|
+
]
|
|
172
208
|
})
|
|
173
209
|
] })
|
|
174
210
|
}), /* @__PURE__ */ jsx("tbody", {
|
|
175
211
|
onPointerLeave: () => setActiveLevel(null),
|
|
176
|
-
children: rows.length === 0 ? /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */
|
|
212
|
+
children: rows.length === 0 ? /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", {
|
|
177
213
|
colSpan: 3,
|
|
178
214
|
className: "text-muted-foreground px-4 py-6 text-center",
|
|
179
|
-
children:
|
|
215
|
+
children: side === "ask" ? t("noAsks") : t("noBids")
|
|
180
216
|
}) }) : rows.map((row, index) => {
|
|
181
217
|
const depthIndex = side === "ask" ? rows.length - 1 - index : index;
|
|
182
218
|
return /* @__PURE__ */ jsx(OrderBookDepthRow, {
|
|
@@ -199,42 +235,53 @@ function OrderBookSide({ side, className }) {
|
|
|
199
235
|
});
|
|
200
236
|
}
|
|
201
237
|
function OrderBookSpread({ className }) {
|
|
202
|
-
const { price, spread, midpoint, formatPrice } = useOrderBook();
|
|
238
|
+
const { price, spread, midpoint, formatPrice, t } = useOrderBook();
|
|
203
239
|
return /* @__PURE__ */ jsxs("div", {
|
|
204
240
|
className: cn("border-border bg-muted/40 my-1 flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1 border-y px-4 py-3", className),
|
|
205
241
|
children: [/* @__PURE__ */ jsxs("span", {
|
|
206
242
|
className: "text-base font-medium tracking-tight",
|
|
207
|
-
children: [/* @__PURE__ */
|
|
243
|
+
children: [/* @__PURE__ */ jsxs("span", {
|
|
208
244
|
className: "sr-only",
|
|
209
|
-
children: "
|
|
210
|
-
}), price == null ? "
|
|
245
|
+
children: [t("referencePrice"), " "]
|
|
246
|
+
}), price == null ? "–" : formatPrice(price)]
|
|
211
247
|
}), /* @__PURE__ */ jsx("span", {
|
|
212
|
-
className: "text-muted-foreground text-[
|
|
213
|
-
children: spread == null || midpoint == null ? "
|
|
248
|
+
className: "text-muted-foreground text-[11px]",
|
|
249
|
+
children: spread == null || midpoint == null ? t("spreadUnavailable") : spread < 0 ? t("crossedBook") : t("spread", {
|
|
250
|
+
spread: formatPrice(spread),
|
|
251
|
+
percent: (spread / midpoint * 100).toFixed(3)
|
|
252
|
+
})
|
|
214
253
|
})]
|
|
215
254
|
});
|
|
216
255
|
}
|
|
217
256
|
/** Balance of the displayed depth, not the entire exchange order book. */
|
|
218
257
|
function OrderBookBalance({ className }) {
|
|
219
|
-
const { bidTotal, askTotal, reduce } = useOrderBook();
|
|
258
|
+
const { bidTotal, askTotal, reduce, t } = useOrderBook();
|
|
220
259
|
const total = bidTotal + askTotal;
|
|
221
260
|
const ratio = total ? bidTotal / total : .5;
|
|
222
261
|
return /* @__PURE__ */ jsxs("div", {
|
|
223
262
|
className: cn("border-border space-y-2 border-t px-4 pt-3 pb-3", className),
|
|
224
263
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
225
|
-
className: "flex justify-between text-[
|
|
264
|
+
className: "flex justify-between text-[11px]",
|
|
226
265
|
children: [
|
|
227
266
|
/* @__PURE__ */ jsxs("span", {
|
|
228
267
|
className: "text-emerald-700 dark:text-emerald-400",
|
|
229
|
-
children: [
|
|
268
|
+
children: [
|
|
269
|
+
t("bids"),
|
|
270
|
+
" ",
|
|
271
|
+
total ? `${(ratio * 100).toFixed(1)}%` : "–"
|
|
272
|
+
]
|
|
230
273
|
}),
|
|
231
274
|
/* @__PURE__ */ jsx("span", {
|
|
232
275
|
className: "text-muted-foreground",
|
|
233
|
-
children: "
|
|
276
|
+
children: t("visibleDepth")
|
|
234
277
|
}),
|
|
235
278
|
/* @__PURE__ */ jsxs("span", {
|
|
236
279
|
className: "text-rose-600 dark:text-rose-400",
|
|
237
|
-
children: [
|
|
280
|
+
children: [
|
|
281
|
+
t("asks"),
|
|
282
|
+
" ",
|
|
283
|
+
total ? `${((1 - ratio) * 100).toFixed(1)}%` : "–"
|
|
284
|
+
]
|
|
238
285
|
})
|
|
239
286
|
]
|
|
240
287
|
}), /* @__PURE__ */ jsx("div", {
|
|
@@ -253,18 +300,22 @@ function OrderBookBalance({ className }) {
|
|
|
253
300
|
* Totals the inspected levels: the hovered or focused level and every better
|
|
254
301
|
* level on its side, as the cost of filling an order up to that price.
|
|
255
302
|
*/
|
|
256
|
-
function OrderBookDepthSummary({ placeholder
|
|
257
|
-
const { summary, formatPrice, formatSize, baseSymbol, quoteSymbol } = useOrderBook();
|
|
303
|
+
function OrderBookDepthSummary({ placeholder, children, className }) {
|
|
304
|
+
const { summary, formatPrice, formatSize, baseSymbol, quoteSymbol, t } = useOrderBook();
|
|
258
305
|
return /* @__PURE__ */ jsx("p", {
|
|
259
306
|
"aria-live": "polite",
|
|
260
307
|
className: cn("border-border text-muted-foreground flex min-h-10 flex-wrap items-center justify-between gap-x-4 gap-y-1 border-t px-4 py-2", className),
|
|
261
308
|
children: !summary ? /* @__PURE__ */ jsx("span", {
|
|
262
309
|
className: "font-sans",
|
|
263
|
-
children: placeholder
|
|
264
|
-
}) : children ? children(summary) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("span", { children: [
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
310
|
+
children: placeholder === void 0 ? t("depthPlaceholder") : placeholder
|
|
311
|
+
}) : children ? children(summary) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("span", { children: [
|
|
312
|
+
t("average"),
|
|
313
|
+
" ",
|
|
314
|
+
/* @__PURE__ */ jsx("span", {
|
|
315
|
+
className: "text-foreground",
|
|
316
|
+
children: formatPrice(summary.averagePrice)
|
|
317
|
+
})
|
|
318
|
+
] }), /* @__PURE__ */ jsxs("span", { children: [
|
|
268
319
|
/* @__PURE__ */ jsxs("span", {
|
|
269
320
|
className: "text-foreground",
|
|
270
321
|
children: [formatSize(summary.size), baseSymbol && ` ${baseSymbol}`]
|
|
@@ -275,6 +326,6 @@ function OrderBookDepthSummary({ placeholder = "Hover a level to see the cost of
|
|
|
275
326
|
] })] })
|
|
276
327
|
});
|
|
277
328
|
}
|
|
278
|
-
export { OrderBook, OrderBookBalance, OrderBookDepthSummary, OrderBookHeader, OrderBookSide, OrderBookSpread, useOrderBook };
|
|
329
|
+
export { OrderBook, OrderBookBalance, OrderBookDepthSummary, OrderBookHeader, OrderBookSide, OrderBookSpread, orderBookMessages, useOrderBook };
|
|
279
330
|
|
|
280
331
|
//# sourceMappingURL=order-book.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order-book.js","names":[],"sources":["../../../src/components/charts/order-book/model.ts","../../../src/components/charts/order-book.tsx"],"sourcesContent":["export type DepthLevel = { price: number; size: number; total: number };\ntype Level = { price: number; size: number };\n\nfunction prepare(levels: readonly Level[], side: \"bid\" | \"ask\", limit: number): DepthLevel[] {\n const prices = new Map<number, number>();\n for (const { price, size } of levels) {\n if (!Number.isFinite(price) || !Number.isFinite(size) || price <= 0 || size <= 0) continue;\n prices.set(price, (prices.get(price) ?? 0) + size);\n }\n let total = 0;\n return [...prices]\n .sort(([a], [b]) => (side === \"bid\" ? b - a : a - b))\n .slice(0, limit)\n .map(([price, size]) => {\n total += size;\n return { price, size, total };\n });\n}\n\nexport type DepthSummary = {\n side: \"bid\" | \"ask\";\n /** Number of levels from the best price out to the inspected one. */\n levels: number;\n /** Total base size across those levels. */\n size: number;\n /** Total quote value across those levels. */\n quote: number;\n /** Size-weighted average fill price. */\n averagePrice: number;\n};\n\n/** Totals levels ordered from the best price outward. */\nexport function summarizeDepth(levels: readonly DepthLevel[], side: \"bid\" | \"ask\"): DepthSummary {\n const size = levels.reduce((sum, level) => sum + level.size, 0);\n const quote = levels.reduce((sum, level) => sum + level.size * level.price, 0);\n return { side, levels: levels.length, size, quote, averagePrice: size ? quote / size : 0 };\n}\n\n/** Accumulate from the best quote outward before reversing asks for display. */\nexport function buildOrderBook(bids: readonly Level[], asks: readonly Level[], levels: number) {\n const limit = Number.isFinite(levels) ? Math.max(0, Math.floor(levels)) : 9;\n const buy = prepare(bids, \"bid\", limit);\n const sell = prepare(asks, \"ask\", limit);\n const bidTotal = buy.at(-1)?.total ?? 0;\n const askTotal = sell.at(-1)?.total ?? 0;\n const bestBid = buy[0]?.price;\n const bestAsk = sell[0]?.price;\n const midpoint = bestBid == null || bestAsk == null ? null : (bestBid + bestAsk) / 2;\n const spread = bestBid == null || bestAsk == null ? null : bestAsk - bestBid;\n return {\n bids: buy,\n asks: sell,\n bidTotal,\n askTotal,\n maxTotal: Math.max(bidTotal, askTotal),\n midpoint,\n spread,\n };\n}\n","\"use client\";\n\nimport {\n createContext,\n type ReactNode,\n useCallback,\n useContext,\n useLayoutEffect,\n useRef,\n useState,\n} from \"react\";\nimport { motion, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { SPRING_PANEL } from \"../../lib/ease\";\nimport { OrderBookDepthRow } from \"./order-book/depth-row\";\nimport { buildOrderBook, type DepthLevel, summarizeDepth } from \"./order-book/model\";\n\nexport type OrderBookLevel = { price: number; size: number };\nexport type {\n DepthLevel as OrderBookDepthLevel,\n DepthSummary as OrderBookDepthSummaryData,\n} from \"./order-book/model\";\n\n/** A level identified by its side and price, so it survives snapshot updates. */\nexport type OrderBookActiveLevel = { side: \"bid\" | \"ask\"; price: number } | null;\n\nexport interface OrderBookProps {\n /** Snapshot of buy levels. Equal prices are combined; invalid and zero sizes are omitted. */\n bids: readonly OrderBookLevel[];\n /** Snapshot of sell levels. Supply new arrays when the book changes. */\n asks: readonly OrderBookLevel[];\n /** Number of nearest levels to show on each side. */\n levels?: number;\n /** Last traded price. Omit to show the midpoint of the best bid and ask. */\n lastPrice?: number;\n label?: string;\n baseSymbol?: string;\n quoteSymbol?: string;\n formatPrice?: (value: number) => string;\n formatSize?: (value: number) => string;\n /**\n * The level whose depth is inspected: it and every better level on its side\n * are highlighted, and `OrderBookDepthSummary` totals them. Controlled.\n */\n activeLevel?: OrderBookActiveLevel;\n defaultActiveLevel?: OrderBookActiveLevel;\n onActiveLevelChange?: (level: OrderBookActiveLevel) => void;\n /** Makes each price a button, for example to fill an order ticket. */\n onLevelSelect?: (level: DepthLevel, side: \"bid\" | \"ask\") => void;\n children?: ReactNode;\n className?: string;\n}\n\nconst priceFormatter = new Intl.NumberFormat(\"en-US\", {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n});\nconst sizeFormatter = new Intl.NumberFormat(\"en-US\", {\n notation: \"compact\",\n maximumFractionDigits: 1,\n});\nconst defaultPrice = (value: number) => priceFormatter.format(value);\nconst defaultSize = (value: number) => sizeFormatter.format(value);\n\nfunction useOrderBookModel({\n bids,\n asks,\n levels = 9,\n lastPrice,\n baseSymbol = \"\",\n quoteSymbol = \"USD\",\n formatPrice = defaultPrice,\n formatSize = defaultSize,\n activeLevel,\n defaultActiveLevel = null,\n onActiveLevelChange,\n onLevelSelect,\n}: OrderBookProps) {\n const book = buildOrderBook(bids, asks, levels);\n const [internalActive, setInternalActive] = useState(defaultActiveLevel);\n const rawActive = activeLevel === undefined ? internalActive : activeLevel;\n // Resolve the inspected level during render by price; a level that left the\n // book clears the inspection instead of pointing at a different row.\n const activeIndex = rawActive\n ? (rawActive.side === \"bid\" ? book.bids : book.asks).findIndex(\n (level) => level.price === rawActive.price,\n )\n : -1;\n const active =\n rawActive && activeIndex >= 0 ? { side: rawActive.side, index: activeIndex } : null;\n\n // Stable setter: it reads the latest controlled flag and callback from refs.\n const latest = useRef({ controlled: activeLevel !== undefined, onActiveLevelChange });\n useLayoutEffect(() => {\n latest.current = { controlled: activeLevel !== undefined, onActiveLevelChange };\n });\n const setActiveLevel = useCallback((level: OrderBookActiveLevel) => {\n if (!latest.current.controlled) setInternalActive(level);\n latest.current.onActiveLevelChange?.(level);\n }, []);\n\n return {\n ...book,\n active,\n summary: active\n ? summarizeDepth(\n (active.side === \"bid\" ? book.bids : book.asks).slice(0, active.index + 1),\n active.side,\n )\n : null,\n setActiveLevel,\n onLevelSelect,\n price:\n lastPrice != null && Number.isFinite(lastPrice) && lastPrice > 0 ? lastPrice : book.midpoint,\n baseSymbol,\n quoteSymbol,\n formatPrice,\n formatSize,\n reduce: useReducedMotion(),\n };\n}\nconst OrderBookContext = createContext<ReturnType<typeof useOrderBookModel> | null>(null);\n\nexport function useOrderBook() {\n const context = useContext(OrderBookContext);\n if (!context) throw new Error(\"Order book parts must be rendered inside OrderBook.\");\n return context;\n}\n\n/** A snapshot-driven depth ladder. No timers or invented market data live in the chart. */\nexport function OrderBook({ children, className, label = \"Order book\", ...props }: OrderBookProps) {\n const model = useOrderBookModel(props);\n return (\n <OrderBookContext.Provider value={model}>\n <section\n aria-label={label}\n className={cn(\n \"border-border bg-background w-full max-w-[560px] overflow-hidden rounded-2xl border font-mono text-xs tabular-nums\",\n className,\n )}\n >\n {children === undefined ? (\n <>\n <OrderBookHeader />\n <OrderBookSide side=\"ask\" />\n <OrderBookSpread />\n <OrderBookSide side=\"bid\" />\n <OrderBookBalance />\n </>\n ) : (\n children\n )}\n </section>\n </OrderBookContext.Provider>\n );\n}\n\nexport function OrderBookHeader({ className }: { className?: string }) {\n const { baseSymbol, quoteSymbol } = useOrderBook();\n return (\n <div\n aria-hidden=\"true\"\n className={cn(\n \"text-muted-foreground grid grid-cols-3 py-3 text-[10px] tracking-wider uppercase\",\n className,\n )}\n >\n <span className=\"px-4\">Price{quoteSymbol && ` (${quoteSymbol})`}</span>\n <span className=\"px-4 text-right\">Size{baseSymbol && ` (${baseSymbol})`}</span>\n <span className=\"px-4 text-right\">Total</span>\n </div>\n );\n}\n\nexport function OrderBookSide({ side, className }: { side: \"bid\" | \"ask\"; className?: string }) {\n const {\n bids,\n asks,\n maxTotal,\n formatPrice,\n formatSize,\n reduce,\n baseSymbol,\n quoteSymbol,\n active,\n setActiveLevel,\n onLevelSelect,\n } = useOrderBook();\n const rows = side === \"ask\" ? [...asks].reverse() : bids;\n const color =\n side === \"ask\" ? \"text-rose-600 dark:text-rose-400\" : \"text-emerald-700 dark:text-emerald-400\";\n return (\n <table\n aria-label={side === \"ask\" ? \"Asks · sell orders\" : \"Bids · buy orders\"}\n className={cn(\"w-full table-fixed border-separate border-spacing-0\", className)}\n >\n <thead className=\"sr-only\">\n <tr>\n <th scope=\"col\">Price {quoteSymbol}</th>\n <th scope=\"col\">Size {baseSymbol}</th>\n <th scope=\"col\">Cumulative total {baseSymbol}</th>\n </tr>\n </thead>\n <tbody onPointerLeave={() => setActiveLevel(null)}>\n {rows.length === 0 ? (\n <tr>\n <td colSpan={3} className=\"text-muted-foreground px-4 py-6 text-center\">\n No {side === \"ask\" ? \"asks\" : \"bids\"}\n </td>\n </tr>\n ) : (\n rows.map((row, index) => {\n const depthIndex = side === \"ask\" ? rows.length - 1 - index : index;\n return (\n <OrderBookDepthRow\n key={row.price}\n row={row}\n inRange={active?.side === side && depthIndex <= active.index}\n onInspect={(inspect) => setActiveLevel(inspect ? { side, price: row.price } : null)}\n onSelect={onLevelSelect ? () => onLevelSelect(row, side) : undefined}\n fraction={maxTotal ? row.total / maxTotal : 0}\n entranceIndex={side === \"ask\" ? rows.length - 1 - index : index}\n color={color}\n formatPrice={formatPrice}\n formatSize={formatSize}\n reduce={!!reduce}\n />\n );\n })\n )}\n </tbody>\n </table>\n );\n}\n\nexport function OrderBookSpread({ className }: { className?: string }) {\n const { price, spread, midpoint, formatPrice } = useOrderBook();\n return (\n <div\n className={cn(\n \"border-border bg-muted/40 my-1 flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1 border-y px-4 py-3\",\n className,\n )}\n >\n <span className=\"text-base font-medium tracking-tight\">\n <span className=\"sr-only\">Reference price: </span>\n {price == null ? \"—\" : formatPrice(price)}\n </span>\n <span className=\"text-muted-foreground text-[10px]\">\n {spread == null || midpoint == null\n ? \"Spread unavailable\"\n : spread < 0\n ? \"Crossed book\"\n : `Spread ${formatPrice(spread)} · ${((spread / midpoint) * 100).toFixed(3)}%`}\n </span>\n </div>\n );\n}\n\n/** Balance of the displayed depth, not the entire exchange order book. */\nexport function OrderBookBalance({ className }: { className?: string }) {\n const { bidTotal, askTotal, reduce } = useOrderBook();\n const total = bidTotal + askTotal;\n const ratio = total ? bidTotal / total : 0.5;\n return (\n <div className={cn(\"border-border space-y-2 border-t px-4 pt-3 pb-3\", className)}>\n <div className=\"flex justify-between text-[10px]\">\n <span className=\"text-emerald-700 dark:text-emerald-400\">\n Bids {total ? `${(ratio * 100).toFixed(1)}%` : \"—\"}\n </span>\n <span className=\"text-muted-foreground\">Visible depth</span>\n <span className=\"text-rose-600 dark:text-rose-400\">\n Asks {total ? `${((1 - ratio) * 100).toFixed(1)}%` : \"—\"}\n </span>\n </div>\n <div aria-hidden=\"true\" className=\"relative h-1 overflow-hidden rounded-full bg-rose-500/25\">\n <motion.div\n initial={false}\n animate={{ transform: `scaleX(${ratio})` }}\n transition={reduce ? { duration: 0 } : SPRING_PANEL}\n className=\"absolute inset-0 origin-left bg-emerald-500/60\"\n />\n </div>\n </div>\n );\n}\n\n/**\n * Totals the inspected levels: the hovered or focused level and every better\n * level on its side, as the cost of filling an order up to that price.\n */\nexport function OrderBookDepthSummary({\n placeholder = \"Hover a level to see the cost of filling up to it\",\n children,\n className,\n}: {\n placeholder?: ReactNode;\n /** Custom readout for the inspected levels. */\n children?: (summary: NonNullable<ReturnType<typeof useOrderBook>[\"summary\"]>) => ReactNode;\n className?: string;\n}) {\n const { summary, formatPrice, formatSize, baseSymbol, quoteSymbol } = useOrderBook();\n return (\n <p\n aria-live=\"polite\"\n className={cn(\n \"border-border text-muted-foreground flex min-h-10 flex-wrap items-center justify-between gap-x-4 gap-y-1 border-t px-4 py-2\",\n className,\n )}\n >\n {!summary ? (\n <span className=\"font-sans\">{placeholder}</span>\n ) : children ? (\n children(summary)\n ) : (\n <>\n <span>\n Avg <span className=\"text-foreground\">{formatPrice(summary.averagePrice)}</span>\n </span>\n <span>\n <span className=\"text-foreground\">\n {formatSize(summary.size)}\n {baseSymbol && ` ${baseSymbol}`}\n </span>\n {\" · \"}\n {formatPrice(summary.quote)}\n {quoteSymbol && ` ${quoteSymbol}`}\n </span>\n </>\n )}\n </p>\n );\n}\n"],"mappings":";;;;;;;;AAGA,SAAS,QAAQ,QAA0B,MAAqB,OAA6B;CAC3F,MAAM,yBAAS,IAAI,IAAoB;CACvC,KAAK,MAAM,EAAE,OAAO,UAAU,QAAQ;EACpC,IAAI,CAAC,OAAO,SAAS,KAAK,KAAK,CAAC,OAAO,SAAS,IAAI,KAAK,SAAS,KAAK,QAAQ,GAAG;EAClF,OAAO,IAAI,QAA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A,SAAgB,sBAAsB,EACpC,cAAc,qDACd,UACA,aAMC;CACD,MAAM,EAAE,SAAS,aAAa,YAAY,YAAY,gBAAgB,aAAa;CACnF,OACE,oBAAC,KAAD;EACE,aAAU;EACV,WAAW,GACT,+HACA,SACF;EAEC,UAAA,CAAC,UACA,oBAAC,QAAD;GAAM,WAAU;GAAa,UAAA;EAAkB,CAAA,IAC7C,WACF,SAAS,OAAO,IAEhB,qBAAA,YAAA,EAAA,UAAA,CACE,qBAAC,QAAD,EAAA,UAAA,CAAM,QACA,oBAAC,QAAD;GAAM,WAAU;GAAmB,UAAA,YAAY,QAAQ,YAAY;EAAQ,CAAA,CAC3E,EAAA,CAAA,GACN,qBAAC,QAAD,EAAA,UAAA;GACE,qBAAC,QAAD;IAAM,WAAU;IAAhB,UAAA,CACG,WAAW,QAAQ,IAAI,GACvB,cAAc,IAAI,YACf;;GACL;GACA,YAAY,QAAQ,KAAK;GACzB,eAAe,IAAI;EAChB,EAAA,CAAA,CACN,EAAA,CAAA;CAEH,CAAA;AAEP"}
|
|
1
|
+
{"version":3,"file":"order-book.js","names":[],"sources":["../../../src/components/charts/order-book/model.ts","../../../src/components/charts/order-book.tsx"],"sourcesContent":["\"use client\";\n\nexport type DepthLevel = {\n /** Price of the level, in quote currency. */\n price: number;\n /** Base size resting at this price, summed across duplicate entries. */\n size: number;\n /** Running size from the best price out to this level, which sets the depth bar. */\n total: number;\n};\ntype Level = { price: number; size: number };\n\nfunction prepare(levels: readonly Level[], side: \"bid\" | \"ask\", limit: number): DepthLevel[] {\n const prices = new Map<number, number>();\n for (const { price, size } of levels) {\n if (!Number.isFinite(price) || !Number.isFinite(size) || price <= 0 || size <= 0) continue;\n prices.set(price, (prices.get(price) ?? 0) + size);\n }\n let total = 0;\n return [...prices]\n .sort(([a], [b]) => (side === \"bid\" ? b - a : a - b))\n .slice(0, limit)\n .map(([price, size]) => {\n total += size;\n return { price, size, total };\n });\n}\n\nexport type DepthSummary = {\n /** Which side of the book the inspected levels are on. */\n side: \"bid\" | \"ask\";\n /** Number of levels from the best price out to the inspected one. */\n levels: number;\n /** Total base size across those levels. */\n size: number;\n /** Total quote value across those levels. */\n quote: number;\n /** Size-weighted average fill price. */\n averagePrice: number;\n};\n\n/** Totals levels ordered from the best price outward. */\nexport function summarizeDepth(levels: readonly DepthLevel[], side: \"bid\" | \"ask\"): DepthSummary {\n const size = levels.reduce((sum, level) => sum + level.size, 0);\n const quote = levels.reduce((sum, level) => sum + level.size * level.price, 0);\n return { side, levels: levels.length, size, quote, averagePrice: size ? quote / size : 0 };\n}\n\n/** Accumulate from the best quote outward before reversing asks for display. */\nexport function buildOrderBook(bids: readonly Level[], asks: readonly Level[], levels: number) {\n const limit = Number.isFinite(levels) ? Math.max(0, Math.floor(levels)) : 9;\n const buy = prepare(bids, \"bid\", limit);\n const sell = prepare(asks, \"ask\", limit);\n const bidTotal = buy.at(-1)?.total ?? 0;\n const askTotal = sell.at(-1)?.total ?? 0;\n const bestBid = buy[0]?.price;\n const bestAsk = sell[0]?.price;\n const midpoint = bestBid == null || bestAsk == null ? null : (bestBid + bestAsk) / 2;\n const spread = bestBid == null || bestAsk == null ? null : bestAsk - bestBid;\n return {\n bids: buy,\n asks: sell,\n bidTotal,\n askTotal,\n maxTotal: Math.max(bidTotal, askTotal),\n midpoint,\n spread,\n };\n}\n","\"use client\";\n\nimport {\n createContext,\n type ReactNode,\n useCallback,\n useContext,\n useLayoutEffect,\n useRef,\n useState,\n} from \"react\";\nimport { motion, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { SPRING_PANEL } from \"../../lib/ease\";\nimport { useMessages } from \"../../lib/i18n\";\nimport { OrderBookDepthRow } from \"./order-book/depth-row\";\nimport { buildOrderBook, type DepthLevel, summarizeDepth } from \"./order-book/model\";\n\nexport type OrderBookLevel = {\n /** Price of the level, in the quote asset. */\n price: number;\n /** Amount resting at this price, in the base asset. */\n size: number;\n};\nexport type {\n DepthLevel as OrderBookDepthLevel,\n DepthSummary as OrderBookDepthSummaryData,\n} from \"./order-book/model\";\n\n/** A level identified by its side and price, so it survives snapshot updates. */\nexport type OrderBookActiveLevel = { side: \"bid\" | \"ask\"; price: number } | null;\n\n/** English defaults. Override per instance with `labels`, or app-wide with `LocaleProvider`. */\nexport const orderBookMessages = {\n label: \"Order book\",\n price: \"Price\",\n size: \"Size\",\n total: \"Total\",\n cumulativeTotal: \"Cumulative total\",\n asksTable: \"Asks · sell orders\",\n bidsTable: \"Bids · buy orders\",\n noAsks: \"No asks\",\n noBids: \"No bids\",\n referencePrice: \"Reference price:\",\n spreadUnavailable: \"Spread unavailable\",\n crossedBook: \"Crossed book\",\n spread: \"Spread {spread} · {percent}%\",\n bids: \"Bids\",\n asks: \"Asks\",\n visibleDepth: \"Visible depth\",\n depthPlaceholder: \"Hover a level to see the cost of filling up to it\",\n average: \"Avg\",\n};\n\nexport type OrderBookMessages = typeof orderBookMessages;\n\nexport interface OrderBookProps {\n /** Snapshot of buy levels. Equal prices are combined; invalid and zero sizes are omitted. */\n bids: readonly OrderBookLevel[];\n /** Snapshot of sell levels. Supply new arrays when the book changes. */\n asks: readonly OrderBookLevel[];\n /** Number of nearest levels to show on each side. */\n levels?: number;\n /** Last traded price. Omit to show the midpoint of the best bid and ask. */\n lastPrice?: number;\n /** Accessible name for the book. Default: \"Order book\" */\n label?: string;\n /** Symbol of the traded asset, shown beside sizes. Default: \"\" */\n baseSymbol?: string;\n /** Symbol prices are quoted in, shown beside prices. Default: \"USD\" */\n quoteSymbol?: string;\n /** Formats prices, the spread and averages. Defaults to 2 decimal places. */\n formatPrice?: (value: number) => string;\n /** Formats sizes and totals. Defaults to compact notation, e.g. 1.2K. */\n formatSize?: (value: number) => string;\n /**\n * The level whose depth is inspected: it and every better level on its side\n * are highlighted, and `OrderBookDepthSummary` totals them. Controlled.\n */\n activeLevel?: OrderBookActiveLevel;\n /** The initial inspected level when uncontrolled. Default: null */\n defaultActiveLevel?: OrderBookActiveLevel;\n /** Called with the level, or null, when the inspected level changes. */\n onActiveLevelChange?: (level: OrderBookActiveLevel) => void;\n /** Makes each price a button, for example to fill an order ticket. */\n onLevelSelect?: (level: DepthLevel, side: \"bid\" | \"ask\") => void;\n /** Override any built-in string. */\n labels?: Partial<OrderBookMessages>;\n children?: ReactNode;\n /** Classes merged onto the root element. */\n className?: string;\n}\n\nconst priceFormatter = new Intl.NumberFormat(\"en-US\", {\n minimumFractionDigits: 2,\n maximumFractionDigits: 2,\n});\nconst sizeFormatter = new Intl.NumberFormat(\"en-US\", {\n notation: \"compact\",\n maximumFractionDigits: 1,\n});\nconst defaultPrice = (value: number) => priceFormatter.format(value);\nconst defaultSize = (value: number) => sizeFormatter.format(value);\n\nfunction useOrderBookModel({\n bids,\n asks,\n levels = 9,\n lastPrice,\n baseSymbol = \"\",\n quoteSymbol = \"USD\",\n formatPrice = defaultPrice,\n formatSize = defaultSize,\n activeLevel,\n defaultActiveLevel = null,\n onActiveLevelChange,\n onLevelSelect,\n labels,\n}: OrderBookProps) {\n const t = useMessages(\"orderBook\", orderBookMessages, labels);\n const book = buildOrderBook(bids, asks, levels);\n const [internalActive, setInternalActive] = useState(defaultActiveLevel);\n const rawActive = activeLevel === undefined ? internalActive : activeLevel;\n // Resolve the inspected level during render by price; a level that left the\n // book clears the inspection instead of pointing at a different row.\n const activeIndex = rawActive\n ? (rawActive.side === \"bid\" ? book.bids : book.asks).findIndex(\n (level) => level.price === rawActive.price,\n )\n : -1;\n const active =\n rawActive && activeIndex >= 0 ? { side: rawActive.side, index: activeIndex } : null;\n\n // Stable setter: it reads the latest controlled flag and callback from refs.\n const latest = useRef({ controlled: activeLevel !== undefined, onActiveLevelChange });\n useLayoutEffect(() => {\n latest.current = { controlled: activeLevel !== undefined, onActiveLevelChange };\n });\n const setActiveLevel = useCallback((level: OrderBookActiveLevel) => {\n if (!latest.current.controlled) setInternalActive(level);\n latest.current.onActiveLevelChange?.(level);\n }, []);\n\n return {\n ...book,\n active,\n summary: active\n ? summarizeDepth(\n (active.side === \"bid\" ? book.bids : book.asks).slice(0, active.index + 1),\n active.side,\n )\n : null,\n setActiveLevel,\n onLevelSelect,\n price:\n lastPrice != null && Number.isFinite(lastPrice) && lastPrice > 0 ? lastPrice : book.midpoint,\n baseSymbol,\n quoteSymbol,\n formatPrice,\n formatSize,\n t,\n reduce: useReducedMotion(),\n };\n}\nconst OrderBookContext = createContext<ReturnType<typeof useOrderBookModel> | null>(null);\n\nexport function useOrderBook() {\n const context = useContext(OrderBookContext);\n if (!context) throw new Error(\"Order book parts must be rendered inside OrderBook.\");\n return context;\n}\n\n/** A snapshot-driven depth ladder. No timers or invented market data live in the chart. */\nexport function OrderBook({ children, className, label, ...props }: OrderBookProps) {\n const model = useOrderBookModel(props);\n return (\n <OrderBookContext.Provider value={model}>\n <section\n aria-label={label ?? model.t(\"label\")}\n className={cn(\n \"border-border bg-background w-full max-w-[560px] overflow-hidden rounded-2xl border font-mono text-xs tabular-nums\",\n className,\n )}\n >\n {children === undefined ? (\n <>\n <OrderBookHeader />\n <OrderBookSide side=\"ask\" />\n <OrderBookSpread />\n <OrderBookSide side=\"bid\" />\n <OrderBookBalance />\n </>\n ) : (\n children\n )}\n </section>\n </OrderBookContext.Provider>\n );\n}\n\nexport function OrderBookHeader({ className }: { className?: string }) {\n const { baseSymbol, quoteSymbol, t } = useOrderBook();\n return (\n <div\n aria-hidden=\"true\"\n className={cn(\n \"text-muted-foreground grid grid-cols-3 py-3 text-[11px] tracking-wider uppercase\",\n className,\n )}\n >\n <span className=\"px-4\">\n {t(\"price\")}\n {quoteSymbol && ` (${quoteSymbol})`}\n </span>\n <span className=\"px-4 text-right\">\n {t(\"size\")}\n {baseSymbol && ` (${baseSymbol})`}\n </span>\n <span className=\"px-4 text-right\">{t(\"total\")}</span>\n </div>\n );\n}\n\nexport function OrderBookSide({\n side,\n className,\n}: {\n /** Which levels the table lists: bids, or asks with the best ask last. */\n side: \"bid\" | \"ask\";\n className?: string;\n}) {\n const {\n bids,\n asks,\n maxTotal,\n formatPrice,\n formatSize,\n reduce,\n baseSymbol,\n quoteSymbol,\n active,\n setActiveLevel,\n onLevelSelect,\n t,\n } = useOrderBook();\n const rows = side === \"ask\" ? [...asks].reverse() : bids;\n const color =\n side === \"ask\" ? \"text-rose-600 dark:text-rose-400\" : \"text-emerald-700 dark:text-emerald-400\";\n return (\n <table\n aria-label={side === \"ask\" ? t(\"asksTable\") : t(\"bidsTable\")}\n className={cn(\"w-full table-fixed border-separate border-spacing-0\", className)}\n >\n <thead className=\"sr-only\">\n <tr>\n <th scope=\"col\">\n {t(\"price\")} {quoteSymbol}\n </th>\n <th scope=\"col\">\n {t(\"size\")} {baseSymbol}\n </th>\n <th scope=\"col\">\n {t(\"cumulativeTotal\")} {baseSymbol}\n </th>\n </tr>\n </thead>\n <tbody onPointerLeave={() => setActiveLevel(null)}>\n {rows.length === 0 ? (\n <tr>\n <td colSpan={3} className=\"text-muted-foreground px-4 py-6 text-center\">\n {side === \"ask\" ? t(\"noAsks\") : t(\"noBids\")}\n </td>\n </tr>\n ) : (\n rows.map((row, index) => {\n const depthIndex = side === \"ask\" ? rows.length - 1 - index : index;\n return (\n <OrderBookDepthRow\n key={row.price}\n row={row}\n inRange={active?.side === side && depthIndex <= active.index}\n onInspect={(inspect) => setActiveLevel(inspect ? { side, price: row.price } : null)}\n onSelect={onLevelSelect ? () => onLevelSelect(row, side) : undefined}\n fraction={maxTotal ? row.total / maxTotal : 0}\n entranceIndex={side === \"ask\" ? rows.length - 1 - index : index}\n color={color}\n formatPrice={formatPrice}\n formatSize={formatSize}\n reduce={!!reduce}\n />\n );\n })\n )}\n </tbody>\n </table>\n );\n}\n\nexport function OrderBookSpread({ className }: { className?: string }) {\n const { price, spread, midpoint, formatPrice, t } = useOrderBook();\n return (\n <div\n className={cn(\n \"border-border bg-muted/40 my-1 flex flex-wrap items-baseline justify-between gap-x-4 gap-y-1 border-y px-4 py-3\",\n className,\n )}\n >\n <span className=\"text-base font-medium tracking-tight\">\n <span className=\"sr-only\">{t(\"referencePrice\")} </span>\n {price == null ? \"–\" : formatPrice(price)}\n </span>\n <span className=\"text-muted-foreground text-[11px]\">\n {spread == null || midpoint == null\n ? t(\"spreadUnavailable\")\n : spread < 0\n ? t(\"crossedBook\")\n : t(\"spread\", {\n spread: formatPrice(spread),\n percent: ((spread / midpoint) * 100).toFixed(3),\n })}\n </span>\n </div>\n );\n}\n\n/** Balance of the displayed depth, not the entire exchange order book. */\nexport function OrderBookBalance({ className }: { className?: string }) {\n const { bidTotal, askTotal, reduce, t } = useOrderBook();\n const total = bidTotal + askTotal;\n const ratio = total ? bidTotal / total : 0.5;\n return (\n <div className={cn(\"border-border space-y-2 border-t px-4 pt-3 pb-3\", className)}>\n <div className=\"flex justify-between text-[11px]\">\n <span className=\"text-emerald-700 dark:text-emerald-400\">\n {t(\"bids\")} {total ? `${(ratio * 100).toFixed(1)}%` : \"–\"}\n </span>\n <span className=\"text-muted-foreground\">{t(\"visibleDepth\")}</span>\n <span className=\"text-rose-600 dark:text-rose-400\">\n {t(\"asks\")} {total ? `${((1 - ratio) * 100).toFixed(1)}%` : \"–\"}\n </span>\n </div>\n <div aria-hidden=\"true\" className=\"relative h-1 overflow-hidden rounded-full bg-rose-500/25\">\n <motion.div\n initial={false}\n animate={{ transform: `scaleX(${ratio})` }}\n transition={reduce ? { duration: 0 } : SPRING_PANEL}\n className=\"absolute inset-0 origin-left bg-emerald-500/60\"\n />\n </div>\n </div>\n );\n}\n\n/**\n * Totals the inspected levels: the hovered or focused level and every better\n * level on its side, as the cost of filling an order up to that price.\n */\nexport function OrderBookDepthSummary({\n placeholder,\n children,\n className,\n}: {\n /** Shown while no level is inspected. Default: \"Hover a level to see the cost of filling up to it\" */\n placeholder?: ReactNode;\n /** Custom readout for the inspected levels. */\n children?: (summary: NonNullable<ReturnType<typeof useOrderBook>[\"summary\"]>) => ReactNode;\n className?: string;\n}) {\n const { summary, formatPrice, formatSize, baseSymbol, quoteSymbol, t } = useOrderBook();\n return (\n <p\n aria-live=\"polite\"\n className={cn(\n \"border-border text-muted-foreground flex min-h-10 flex-wrap items-center justify-between gap-x-4 gap-y-1 border-t px-4 py-2\",\n className,\n )}\n >\n {!summary ? (\n <span className=\"font-sans\">\n {placeholder === undefined ? t(\"depthPlaceholder\") : placeholder}\n </span>\n ) : children ? (\n children(summary)\n ) : (\n <>\n <span>\n {t(\"average\")}{\" \"}\n <span className=\"text-foreground\">{formatPrice(summary.averagePrice)}</span>\n </span>\n <span>\n <span className=\"text-foreground\">\n {formatSize(summary.size)}\n {baseSymbol && ` ${baseSymbol}`}\n </span>\n {\" · \"}\n {formatPrice(summary.quote)}\n {quoteSymbol && ` ${quoteSymbol}`}\n </span>\n </>\n )}\n </p>\n );\n}\n"],"mappings":";;;;;;;;;AAYA,SAAS,QAAQ,QAA0B,MAAqB,OAA6B;CAC3F,MAAM,yBAAS,IAAI,IAAoB;CACvC,KAAK,MAAM,EAAE,OAAO,UAAU,QAAQ;EACpC,IAAI,CAAC,OAAO,SAAS,KAAK,KAAK,CAAC,OAAO,SAAS,IAAI,KAAK,SAAS,KAAK,QAAQ,GAAG;EAClF,OAAO,IAAI,QAAQ,OAAO,IAAI,KAAK,KAAK,KAAK,IAAI;CACnD;CACA,IAAI,QAAQ;CACZ,OAAO,CAAC,GAAG,MAAM,CAAC,CACf,MAAM,CAAC,IAAI,CAAC,OAAQ,SAAS,QAAQ,IAAI,IAAI,IAAI,CAAE,CAAC,CACpD,MAAM,GAAG,KAAK,CAAC,CACf,KAAK,CAAC,OAAO,UAAU;EACtB,SAAS;EACT,OAAO;GAAE;GAAO;GAAM;EAAM;CAC9B,CAAC;AACL;;AAgBA,SAAgB,eAAe,QAA+B,MAAmC;CAC/F,MAAM,OAAO,OAAO,QAAQ,KAAK,UAAU,MAAM,MAAM,MAAM,CAAC;CAC9D,MAAM,QAAQ,OAAO,QAAQ,KAAK,UAAU,MAAM,MAAM,OAAO,MAAM,OAAO,CAAC;CAC7E,OAAO;EAAE;EA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CAAA;EACE,CAAA,CACF;;AAET;;;;;AAMA,SAAgB,sBAAsB,EACpC,aACA,UACA,aAOC;CACD,MAAM,EAAE,SAAS,aAAa,YAAY,YAAY,aAAa,MAAM,aAAa;CACtF,OACE,oBAAC,KAAD;EACE,aAAU;EACV,WAAW,GACT,+HACA,SACF;EAEC,UAAA,CAAC,UACA,oBAAC,QAAD;GAAM,WAAU;GACb,UAAA,gBAAgB,KAAA,IAAY,EAAE,kBAAkB,IAAI;EACjD,CAAA,IACJ,WACF,SAAS,OAAO,IAEhB,qBAAA,YAAA,EAAA,UAAA,CACE,qBAAC,QAAD,EAAA,UAAA;GACG,EAAE,SAAS;GAAG;GACf,oBAAC,QAAD;IAAM,WAAU;IAAmB,UAAA,YAAY,QAAQ,YAAY;GAAQ,CAAA;EACvE,EAAA,CAAA,GACN,qBAAC,QAAD,EAAA,UAAA;GACE,qBAAC,QAAD;IAAM,WAAU;IAAhB,UAAA,CACG,WAAW,QAAQ,IAAI,GACvB,cAAc,IAAI,YACf;;GACL;GACA,YAAY,QAAQ,KAAK;GACzB,eAAe,IAAI;EAChB,EAAA,CAAA,CACN,EAAA,CAAA;CAEH,CAAA;AAEP"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { NumberTicker } from "../../motion/number-ticker.js";
|
|
3
|
-
import { c as ink, n as usePriceTargetFan } from "../../../context-ChsuSih6.js";
|
|
4
2
|
import { cn } from "@kumix/utils";
|
|
3
|
+
import { NumberTicker } from "../../motion/number-ticker.js";
|
|
4
|
+
import { c as ink, n as usePriceTargetFan } from "../../../context-Bx-OaIL8.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
// src/components/charts/price-target-fan/header.tsx
|
|
7
7
|
function PriceTargetFanHeader({ children, className }) {
|
|
8
|
-
const { head, headPct } = usePriceTargetFan();
|
|
8
|
+
const { head, headPct, t } = usePriceTargetFan();
|
|
9
9
|
return /* @__PURE__ */ jsx("div", {
|
|
10
10
|
className: cn("mb-1 flex items-end justify-between px-1", className),
|
|
11
11
|
children: children ?? /* @__PURE__ */ jsxs("div", {
|
|
@@ -16,7 +16,7 @@ function PriceTargetFanHeader({ children, className }) {
|
|
|
16
16
|
format: (v) => (v / 100).toFixed(2),
|
|
17
17
|
prefix: "$",
|
|
18
18
|
duration: .5,
|
|
19
|
-
className: "text-foreground font-mono text-2xl font-
|
|
19
|
+
className: "text-foreground font-mono text-2xl font-medium tracking-tight tabular-nums"
|
|
20
20
|
}),
|
|
21
21
|
/* @__PURE__ */ jsx("span", {
|
|
22
22
|
className: "font-mono text-xs font-medium tabular-nums",
|
|
@@ -29,9 +29,9 @@ function PriceTargetFanHeader({ children, className }) {
|
|
|
29
29
|
duration: .5
|
|
30
30
|
})
|
|
31
31
|
}),
|
|
32
|
-
/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */ jsx("span", {
|
|
33
33
|
className: "text-muted-foreground text-xs",
|
|
34
|
-
children:
|
|
34
|
+
children: t("target", { key: head.key })
|
|
35
35
|
})
|
|
36
36
|
]
|
|
37
37
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.js","names":[],"sources":["../../../../src/components/charts/price-target-fan/header.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { NumberTicker } from \"../../motion/number-ticker\";\nimport { usePriceTargetFan } from \"./context\";\nimport { ink, LOW, UP } from \"./utils\";\n\nexport function PriceTargetFanHeader({\n children,\n className,\n}: {\n children?: ReactNode;\n className?: string;\n}) {\n const { head, headPct } = usePriceTargetFan();\n return (\n <div className={cn(\"mb-1 flex items-end justify-between px-1\", className)}>\n {children ?? (\n <div className=\"flex flex-wrap items-center gap-2\">\n <NumberTicker\n value={Math.round(head.price * 100)}\n format={(v) => (v / 100).toFixed(2)}\n prefix=\"$\"\n duration={0.5}\n className=\"text-foreground font-mono text-2xl font-
|
|
1
|
+
{"version":3,"file":"header.js","names":[],"sources":["../../../../src/components/charts/price-target-fan/header.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { NumberTicker } from \"../../motion/number-ticker\";\nimport { usePriceTargetFan } from \"./context\";\nimport { ink, LOW, UP } from \"./utils\";\n\nexport function PriceTargetFanHeader({\n children,\n className,\n}: {\n children?: ReactNode;\n className?: string;\n}) {\n const { head, headPct, t } = usePriceTargetFan();\n return (\n <div className={cn(\"mb-1 flex items-end justify-between px-1\", className)}>\n {children ?? (\n <div className=\"flex flex-wrap items-center gap-2\">\n <NumberTicker\n value={Math.round(head.price * 100)}\n format={(v) => (v / 100).toFixed(2)}\n prefix=\"$\"\n duration={0.5}\n className=\"text-foreground font-mono text-2xl font-medium tracking-tight tabular-nums\"\n />\n <span\n className=\"font-mono text-xs font-medium tabular-nums\"\n style={{ color: ink((head.color as string | undefined) ?? (headPct >= 0 ? UP : LOW)) }}\n >\n <NumberTicker\n value={Math.round(Math.abs(headPct) * 10)}\n format={(v) => (v / 10).toFixed(1)}\n prefix={headPct >= 0 ? \"+\" : \"−\"}\n suffix=\"%\"\n duration={0.5}\n />\n </span>\n <span className=\"text-muted-foreground text-xs\">{t(\"target\", { key: head.key })}</span>\n </div>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;AASA,SAAgB,qBAAqB,EACnC,UACA,aAIC;CACD,MAAM,EAAE,MAAM,SAAS,MAAM,kBAAkB;CAC/C,OACE,oBAAC,OAAD;EAAK,WAAW,GAAG,4CAA4C,SAAS;EACrE,UAAA,YACC,qBAAC,OAAD;GAAK,WAAU;GAAf,UAAA;IACE,oBAAC,cAAD;KACE,OAAO,KAAK,MAAM,KAAK,QAAQ,GAAG;KAClC,SAAS,OAAO,IAAI,IAAA,CAAK,QAAQ,CAAC;KAClC,QAAO;KACP,UAAU;KACV,WAAU;IACX,CAAA;IACD,oBAAC,QAAD;KACE,WAAU;KACV,OAAO,EAAE,OAAO,IAAK,KAAK,UAAiC,WAAW,IAAA,mBAAA,iBAAa,EAAE;KAErF,UAAA,oBAAC,cAAD;MACE,OAAO,KAAK,MAAM,KAAK,IAAI,OAAO,IAAI,EAAE;MACxC,SAAS,OAAO,IAAI,GAAA,CAAI,QAAQ,CAAC;MACjC,QAAQ,WAAW,IAAI,MAAM;MAC7B,QAAO;MACP,UAAU;KACX,CAAA;IACG,CAAA;IACN,oBAAC,QAAD;KAAM,WAAU;KAAiC,UAAA,EAAE,UAAU,EAAE,KAAK,KAAK,IAAI,CAAC;IAAQ,CAAA;GACnF;;CAEJ,CAAA;AAET"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plot.d.ts","names":[],"sources":["../../../../src/components/charts/price-target-fan/plot.tsx"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"plot.d.ts","names":[],"sources":["../../../../src/components/charts/price-target-fan/plot.tsx"],"mappings":";;wBAyBgB,qBACd,UACA;EAEA,WAAW;EACX;oBACD,IAAA;wBAee,oBACd,UACA;EAEA,WAAW;EACX;oBACD,IAAA;wBAsEe,qBAAqB;EAAe;oBAAoB,IAAA"}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import { motion } from "motion/react";
|
|
3
|
+
import { cn } from "@kumix/utils";
|
|
2
4
|
import { EASE_OUT } from "../../../lib/ease.js";
|
|
3
|
-
import { a as PAD, n as usePriceTargetFan, s as fmtAxisDate } from "../../../context-
|
|
5
|
+
import { a as PAD, n as usePriceTargetFan, s as fmtAxisDate } from "../../../context-Bx-OaIL8.js";
|
|
4
6
|
import { PriceTargetFanCursor, PriceTargetFanHistory, PriceTargetFanNow, PriceTargetFanTargets } from "./series.js";
|
|
5
7
|
import { PriceTargetFanTooltip } from "./tooltip.js";
|
|
6
|
-
import { cn } from "@kumix/utils";
|
|
7
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
import { motion } from "motion/react";
|
|
9
9
|
// src/components/charts/price-target-fan/plot.tsx
|
|
10
|
+
/** Decimals the grid step needs, so 2.5 labels as "152.5" and 0.25 as "0.25". */
|
|
11
|
+
function stepDecimals(step) {
|
|
12
|
+
let decimals = 0;
|
|
13
|
+
while (decimals < 8 && !Number.isInteger(Number((step * 10 ** decimals).toFixed(6)))) decimals++;
|
|
14
|
+
return decimals;
|
|
15
|
+
}
|
|
10
16
|
/** HTML positioning container. Place Tooltip beside SVG, never inside SVG. */
|
|
11
17
|
function PriceTargetFanPlot({ children, className }) {
|
|
12
18
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -15,13 +21,17 @@ function PriceTargetFanPlot({ children, className }) {
|
|
|
15
21
|
});
|
|
16
22
|
}
|
|
17
23
|
function PriceTargetFanSvg({ children, className }) {
|
|
18
|
-
const { svgRef, label, mean, fmt, current, onMove, setActive, fadeId, clipId, reduce, geo, drawn } = usePriceTargetFan();
|
|
24
|
+
const { svgRef, label, mean, fmt, current, onMove, setActive, fadeId, clipId, reduce, geo, drawn, t } = usePriceTargetFan();
|
|
19
25
|
return /* @__PURE__ */ jsxs("svg", {
|
|
20
26
|
ref: svgRef,
|
|
21
27
|
viewBox: `0 0 520 236`,
|
|
22
28
|
className: cn("block h-auto w-full cursor-crosshair **:cursor-crosshair", className),
|
|
23
29
|
role: "group",
|
|
24
|
-
"aria-label":
|
|
30
|
+
"aria-label": t("chart", {
|
|
31
|
+
label,
|
|
32
|
+
mean: fmt(mean.price),
|
|
33
|
+
current: fmt(current)
|
|
34
|
+
}),
|
|
25
35
|
onPointerMove: onMove,
|
|
26
36
|
onPointerLeave: (event) => {
|
|
27
37
|
if (event.pointerType !== "touch") setActive(null);
|
|
@@ -74,7 +84,7 @@ function PriceTargetFanSvg({ children, className }) {
|
|
|
74
84
|
});
|
|
75
85
|
}
|
|
76
86
|
function PriceTargetFanAxes({ className }) {
|
|
77
|
-
const { gridVals, y, geo, dates, history, fadeId } = usePriceTargetFan();
|
|
87
|
+
const { gridVals, y, geo, dates, history, fadeId, locale, t } = usePriceTargetFan();
|
|
78
88
|
return /* @__PURE__ */ jsxs("g", {
|
|
79
89
|
className: cn(className),
|
|
80
90
|
children: [
|
|
@@ -92,27 +102,27 @@ function PriceTargetFanAxes({ className }) {
|
|
|
92
102
|
fontSize: 9,
|
|
93
103
|
fill: "var(--muted-foreground)",
|
|
94
104
|
className: "font-mono tabular-nums",
|
|
95
|
-
children:
|
|
105
|
+
children: v.toFixed(stepDecimals(gridVals.step))
|
|
96
106
|
})] }, v)),
|
|
97
107
|
[
|
|
98
108
|
...history.length ? [{
|
|
99
109
|
x: geo.hx(0),
|
|
100
|
-
t: dates.start ?? fmtAxisDate(history[0].date),
|
|
110
|
+
t: dates.start ?? fmtAxisDate(history[0].date, locale),
|
|
101
111
|
a: "start"
|
|
102
112
|
}] : [],
|
|
103
113
|
...history.length > 2 ? [{
|
|
104
114
|
x: geo.hx(Math.floor(history.length / 2)),
|
|
105
|
-
t: dates.mid ?? fmtAxisDate(history[Math.floor(history.length / 2)].date),
|
|
115
|
+
t: dates.mid ?? fmtAxisDate(history[Math.floor(history.length / 2)].date, locale),
|
|
106
116
|
a: "middle"
|
|
107
117
|
}] : [],
|
|
108
118
|
{
|
|
109
119
|
x: geo.nowX,
|
|
110
|
-
t: "
|
|
120
|
+
t: t("now"),
|
|
111
121
|
a: "middle"
|
|
112
122
|
},
|
|
113
123
|
{
|
|
114
124
|
x: geo.endX,
|
|
115
|
-
t: dates.horizon ?? "
|
|
125
|
+
t: dates.horizon ?? t("horizon"),
|
|
116
126
|
a: "middle"
|
|
117
127
|
}
|
|
118
128
|
].map((d) => /* @__PURE__ */ jsx("text", {
|