@kumix/ui 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +72 -46
- package/dist/{account-avatar--0_0u0WW.js → account-avatar-BHh_21aQ.js} +1 -1
- package/dist/account-avatar-BHh_21aQ.js.map +1 -0
- package/dist/animated-sidebar-CPdrqoGi.js +310 -0
- package/dist/animated-sidebar-CPdrqoGi.js.map +1 -0
- package/dist/animated-toast-stack-Cbdphi9x.d.ts +62 -0
- package/dist/animated-toast-stack-Cbdphi9x.d.ts.map +1 -0
- package/dist/animated-toast-stack-YcjQ2Uaw.js +568 -0
- package/dist/animated-toast-stack-YcjQ2Uaw.js.map +1 -0
- package/dist/{cascader-types-Bh_kJ3Qw.d.ts → cascader-types-D2DFznHz.d.ts} +5 -5
- package/dist/cascader-types-D2DFznHz.d.ts.map +1 -0
- package/dist/components/agents/agent-activity/activity-row.d.ts +3 -2
- package/dist/components/agents/agent-activity/activity-row.d.ts.map +1 -1
- package/dist/components/agents/agent-activity/activity-row.js +54 -40
- package/dist/components/agents/agent-activity/activity-row.js.map +1 -1
- package/dist/components/agents/agent-activity.d.ts +4 -0
- package/dist/components/agents/agent-activity.d.ts.map +1 -0
- package/dist/components/agents/{agent-activity/index.js → agent-activity.js} +84 -52
- package/dist/components/agents/agent-activity.js.map +1 -0
- package/dist/components/agents/agent-code.d.ts.map +1 -1
- package/dist/components/agents/agent-code.js +43 -17
- package/dist/components/agents/agent-code.js.map +1 -1
- package/dist/components/agents/agent-disclosure.d.ts +7 -2
- package/dist/components/agents/agent-disclosure.d.ts.map +1 -1
- package/dist/components/agents/agent-disclosure.js +17 -5
- package/dist/components/agents/agent-disclosure.js.map +1 -1
- package/dist/components/agents/ai-sidebar/marquee-label.d.ts +6 -0
- package/dist/components/agents/ai-sidebar/marquee-label.d.ts.map +1 -0
- package/dist/components/agents/ai-sidebar/marquee-label.js +55 -0
- package/dist/components/agents/ai-sidebar/marquee-label.js.map +1 -0
- package/dist/components/agents/ai-sidebar/resource-menu-action.d.ts +8 -0
- package/dist/components/agents/ai-sidebar/resource-menu-action.d.ts.map +1 -0
- package/dist/components/agents/ai-sidebar/resource-menu-action.js +20 -0
- package/dist/components/agents/ai-sidebar/resource-menu-action.js.map +1 -0
- package/dist/components/agents/ai-sidebar/resource-row.d.ts +32 -0
- package/dist/components/agents/ai-sidebar/resource-row.d.ts.map +1 -0
- package/dist/components/agents/ai-sidebar/resource-row.js +2 -0
- package/dist/components/agents/ai-sidebar.d.ts +3 -53
- package/dist/components/agents/ai-sidebar.d.ts.map +1 -1
- package/dist/components/agents/ai-sidebar.js +54 -338
- package/dist/components/agents/ai-sidebar.js.map +1 -1
- package/dist/components/agents/approval-card.d.ts +101 -0
- package/dist/components/agents/approval-card.d.ts.map +1 -0
- package/dist/components/agents/approval-card.js +416 -0
- package/dist/components/agents/approval-card.js.map +1 -0
- package/dist/components/agents/chat-app.d.ts +1 -1
- package/dist/components/agents/chat-app.d.ts.map +1 -1
- package/dist/components/agents/chat-app.js +9 -6
- package/dist/components/agents/chat-app.js.map +1 -1
- package/dist/components/agents/citations.d.ts +32 -2
- package/dist/components/agents/citations.d.ts.map +1 -1
- package/dist/components/agents/citations.js +68 -16
- package/dist/components/agents/citations.js.map +1 -1
- package/dist/components/agents/clip-resize-frame.d.ts +31 -0
- package/dist/components/agents/clip-resize-frame.d.ts.map +1 -0
- package/dist/components/agents/clip-resize-frame.js +103 -0
- package/dist/components/agents/clip-resize-frame.js.map +1 -0
- package/dist/components/agents/code-block.d.ts +22 -2
- package/dist/components/agents/code-block.d.ts.map +1 -1
- package/dist/components/agents/code-block.js +49 -31
- package/dist/components/agents/code-block.js.map +1 -1
- package/dist/components/agents/context-meter.d.ts +53 -0
- package/dist/components/agents/context-meter.d.ts.map +1 -0
- package/dist/components/agents/context-meter.js +443 -0
- package/dist/components/agents/context-meter.js.map +1 -0
- package/dist/components/agents/file-diff.d.ts +30 -2
- package/dist/components/agents/file-diff.d.ts.map +1 -1
- package/dist/components/agents/file-diff.js +129 -86
- package/dist/components/agents/file-diff.js.map +1 -1
- package/dist/components/agents/icon-swap.d.ts +14 -0
- package/dist/components/agents/icon-swap.d.ts.map +1 -0
- package/dist/components/agents/icon-swap.js +41 -0
- package/dist/components/agents/icon-swap.js.map +1 -0
- package/dist/components/agents/image-generation.d.ts +25 -1
- package/dist/components/agents/image-generation.d.ts.map +1 -1
- package/dist/components/agents/image-generation.js +33 -23
- package/dist/components/agents/image-generation.js.map +1 -1
- package/dist/components/agents/loading-states/agent-progress.d.ts +5 -1
- package/dist/components/agents/loading-states/agent-progress.d.ts.map +1 -1
- package/dist/components/agents/loading-states/agent-progress.js +30 -9
- package/dist/components/agents/loading-states/agent-progress.js.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.d.ts +5 -1
- package/dist/components/agents/loading-states/reasoning-text.d.ts.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.js +44 -19
- package/dist/components/agents/loading-states/reasoning-text.js.map +1 -1
- package/dist/components/agents/loading-states/thinking-shimmer.d.ts +5 -1
- package/dist/components/agents/loading-states/thinking-shimmer.d.ts.map +1 -1
- package/dist/components/agents/loading-states/thinking-shimmer.js +6 -3
- package/dist/components/agents/loading-states/thinking-shimmer.js.map +1 -1
- package/dist/components/agents/message-bubble.d.ts +19 -1
- package/dist/components/agents/message-bubble.d.ts.map +1 -1
- package/dist/components/agents/message-bubble.js +74 -46
- package/dist/components/agents/message-bubble.js.map +1 -1
- package/dist/components/agents/message-scroller.d.ts +21 -1
- package/dist/components/agents/message-scroller.d.ts.map +1 -1
- package/dist/components/agents/message-scroller.js +108 -24
- package/dist/components/agents/message-scroller.js.map +1 -1
- package/dist/components/agents/message.d.ts +14 -3
- package/dist/components/agents/message.d.ts.map +1 -1
- package/dist/components/agents/message.js +20 -12
- package/dist/components/agents/message.js.map +1 -1
- package/dist/components/agents/prompt-input.d.ts +53 -1
- package/dist/components/agents/prompt-input.d.ts.map +1 -1
- package/dist/components/agents/prompt-input.js +371 -97
- package/dist/components/agents/prompt-input.js.map +1 -1
- package/dist/components/agents/streaming-response.d.ts +27 -2
- package/dist/components/agents/streaming-response.d.ts.map +1 -1
- package/dist/components/agents/streaming-response.js +59 -44
- package/dist/components/agents/streaming-response.js.map +1 -1
- package/dist/components/agents/todo-list.d.ts +28 -1
- package/dist/components/agents/todo-list.d.ts.map +1 -1
- package/dist/components/agents/todo-list.js +149 -121
- package/dist/components/agents/todo-list.js.map +1 -1
- package/dist/components/agents/tool-approval.d.ts +38 -2
- package/dist/components/agents/tool-approval.d.ts.map +1 -1
- package/dist/components/agents/tool-approval.js +75 -41
- package/dist/components/agents/tool-approval.js.map +1 -1
- package/dist/components/agents/tool-result.d.ts +33 -2
- package/dist/components/agents/tool-result.d.ts.map +1 -1
- package/dist/components/agents/tool-result.js +66 -71
- package/dist/components/agents/tool-result.js.map +1 -1
- package/dist/components/agents/voice-note.d.ts +37 -0
- package/dist/components/agents/voice-note.d.ts.map +1 -0
- package/dist/components/agents/voice-note.js +326 -0
- package/dist/components/agents/voice-note.js.map +1 -0
- package/dist/components/agents/voice-orb.d.ts +7 -1
- package/dist/components/agents/voice-orb.d.ts.map +1 -1
- package/dist/components/agents/voice-orb.js +8 -5
- package/dist/components/agents/voice-orb.js.map +1 -1
- package/dist/components/charts/bar-chart/context.d.ts +29 -6
- package/dist/components/charts/bar-chart/context.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/context.js +18 -5
- package/dist/components/charts/bar-chart/context.js.map +1 -1
- package/dist/components/charts/bar-chart/legend.d.ts +1 -0
- package/dist/components/charts/bar-chart/legend.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/legend.js +2 -2
- package/dist/components/charts/bar-chart/legend.js.map +1 -1
- package/dist/components/charts/bar-chart/plot.d.ts +2 -0
- package/dist/components/charts/bar-chart/plot.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/plot.js +23 -13
- package/dist/components/charts/bar-chart/plot.js.map +1 -1
- package/dist/components/charts/bar-chart/tooltip.d.ts +3 -1
- package/dist/components/charts/bar-chart/tooltip.d.ts.map +1 -1
- package/dist/components/charts/bar-chart/tooltip.js +5 -4
- package/dist/components/charts/bar-chart/tooltip.js.map +1 -1
- package/dist/components/charts/bar-chart.d.ts +5 -4
- package/dist/components/charts/bar-chart.d.ts.map +1 -1
- package/dist/components/charts/bar-chart.js +9 -6
- package/dist/components/charts/bar-chart.js.map +1 -1
- package/dist/components/charts/bump-chart/context.d.ts +1 -1
- package/dist/components/charts/bump-chart/context.js +1 -1
- package/dist/components/charts/bump-chart/legend.js +8 -8
- package/dist/components/charts/bump-chart/legend.js.map +1 -1
- package/dist/components/charts/bump-chart/plot.js +1 -1
- package/dist/components/charts/bump-chart/point.d.ts +1 -1
- package/dist/components/charts/bump-chart/point.js +18 -16
- package/dist/components/charts/bump-chart/point.js.map +1 -1
- package/dist/components/charts/bump-chart/series.d.ts +2 -2
- package/dist/components/charts/bump-chart/series.js +4 -4
- package/dist/components/charts/bump-chart/series.js.map +1 -1
- package/dist/components/charts/bump-chart.d.ts +2 -2
- package/dist/components/charts/bump-chart.d.ts.map +1 -1
- package/dist/components/charts/bump-chart.js +4 -4
- package/dist/components/charts/bump-chart.js.map +1 -1
- package/dist/components/charts/candlestick-chart/context.d.ts +29 -1
- package/dist/components/charts/candlestick-chart/context.d.ts.map +1 -1
- package/dist/components/charts/candlestick-chart/context.js +17 -3
- package/dist/components/charts/candlestick-chart/context.js.map +1 -1
- package/dist/components/charts/candlestick-chart/legend.d.ts +1 -1
- package/dist/components/charts/candlestick-chart/legend.js +10 -10
- package/dist/components/charts/candlestick-chart/legend.js.map +1 -1
- package/dist/components/charts/candlestick-chart/plot.d.ts.map +1 -1
- package/dist/components/charts/candlestick-chart/plot.js +17 -18
- package/dist/components/charts/candlestick-chart/plot.js.map +1 -1
- package/dist/components/charts/candlestick-chart.d.ts +2 -2
- package/dist/components/charts/candlestick-chart.js +3 -3
- package/dist/components/charts/candlestick-chart.js.map +1 -1
- package/dist/components/charts/composition-chart/context.d.ts +1 -1
- package/dist/components/charts/composition-chart/context.js +1 -1
- package/dist/components/charts/composition-chart/legend.js +5 -5
- package/dist/components/charts/composition-chart/legend.js.map +1 -1
- package/dist/components/charts/composition-chart/plot.js +9 -9
- package/dist/components/charts/composition-chart/plot.js.map +1 -1
- package/dist/components/charts/composition-chart/tooltip-content.js +4 -4
- package/dist/components/charts/composition-chart/tooltip-content.js.map +1 -1
- package/dist/components/charts/composition-chart.d.ts +2 -2
- package/dist/components/charts/composition-chart.js +3 -3
- package/dist/components/charts/composition-chart.js.map +1 -1
- package/dist/components/charts/donut-chart/center.d.ts +1 -1
- package/dist/components/charts/donut-chart/center.d.ts.map +1 -1
- package/dist/components/charts/donut-chart/center.js +7 -7
- package/dist/components/charts/donut-chart/center.js.map +1 -1
- package/dist/components/charts/donut-chart/context.d.ts +18 -2
- package/dist/components/charts/donut-chart/context.d.ts.map +1 -1
- package/dist/components/charts/donut-chart/context.js +1 -1
- package/dist/components/charts/donut-chart/legend.d.ts +1 -1
- package/dist/components/charts/donut-chart/legend.js +3 -3
- package/dist/components/charts/donut-chart/plot.js +3 -3
- package/dist/components/charts/donut-chart.d.ts +3 -3
- package/dist/components/charts/donut-chart.js +3 -3
- package/dist/components/charts/donut-chart.js.map +1 -1
- package/dist/components/charts/funnel-chart.d.ts +27 -1
- package/dist/components/charts/funnel-chart.d.ts.map +1 -1
- package/dist/components/charts/funnel-chart.js +52 -37
- package/dist/components/charts/funnel-chart.js.map +1 -1
- package/dist/components/charts/heat-calendar/grid.js +13 -6
- package/dist/components/charts/heat-calendar/grid.js.map +1 -1
- package/dist/components/charts/heat-calendar/legend.js +9 -6
- package/dist/components/charts/heat-calendar/legend.js.map +1 -1
- package/dist/components/charts/heat-calendar/tooltip.d.ts +1 -1
- package/dist/components/charts/heat-calendar/tooltip.js +10 -7
- package/dist/components/charts/heat-calendar/tooltip.js.map +1 -1
- package/dist/components/charts/heat-calendar.d.ts +2 -2
- package/dist/components/charts/heat-calendar.js +3 -3
- package/dist/components/charts/heat-calendar.js.map +1 -1
- package/dist/components/charts/line-chart/context.d.ts +29 -4
- package/dist/components/charts/line-chart/context.d.ts.map +1 -1
- package/dist/components/charts/line-chart/context.js +21 -6
- package/dist/components/charts/line-chart/context.js.map +1 -1
- package/dist/components/charts/line-chart/legend.d.ts +1 -0
- package/dist/components/charts/line-chart/legend.d.ts.map +1 -1
- package/dist/components/charts/line-chart/legend.js +2 -2
- package/dist/components/charts/line-chart/legend.js.map +1 -1
- package/dist/components/charts/line-chart/plot.d.ts +2 -0
- package/dist/components/charts/line-chart/plot.d.ts.map +1 -1
- package/dist/components/charts/line-chart/plot.js +27 -17
- package/dist/components/charts/line-chart/plot.js.map +1 -1
- package/dist/components/charts/line-chart/tooltip.d.ts +2 -1
- package/dist/components/charts/line-chart/tooltip.d.ts.map +1 -1
- package/dist/components/charts/line-chart/tooltip.js +7 -6
- package/dist/components/charts/line-chart/tooltip.js.map +1 -1
- package/dist/components/charts/line-chart.d.ts +6 -5
- package/dist/components/charts/line-chart.d.ts.map +1 -1
- package/dist/components/charts/line-chart.js +9 -6
- package/dist/components/charts/line-chart.js.map +1 -1
- package/dist/components/charts/liquidity-heatmap.d.ts +25 -1
- package/dist/components/charts/liquidity-heatmap.d.ts.map +1 -1
- package/dist/components/charts/liquidity-heatmap.js +55 -30
- package/dist/components/charts/liquidity-heatmap.js.map +1 -1
- package/dist/components/charts/order-book/depth-row.d.ts +1 -1
- package/dist/components/charts/order-book/depth-row.js +2 -2
- package/dist/components/charts/order-book.d.ts +38 -1
- package/dist/components/charts/order-book.d.ts.map +1 -1
- package/dist/components/charts/order-book.js +88 -37
- package/dist/components/charts/order-book.js.map +1 -1
- package/dist/components/charts/price-target-fan/header.js +6 -6
- package/dist/components/charts/price-target-fan/header.js.map +1 -1
- package/dist/components/charts/price-target-fan/plot.d.ts.map +1 -1
- package/dist/components/charts/price-target-fan/plot.js +21 -11
- package/dist/components/charts/price-target-fan/plot.js.map +1 -1
- package/dist/components/charts/price-target-fan/series.d.ts.map +1 -1
- package/dist/components/charts/price-target-fan/series.js +11 -7
- package/dist/components/charts/price-target-fan/series.js.map +1 -1
- package/dist/components/charts/price-target-fan/tooltip.d.ts +1 -1
- package/dist/components/charts/price-target-fan/tooltip.js +3 -3
- package/dist/components/charts/price-target-fan/tooltip.js.map +1 -1
- package/dist/components/charts/price-target-fan.d.ts +2 -2
- package/dist/components/charts/price-target-fan.js +4 -4
- package/dist/components/charts/price-target-fan.js.map +1 -1
- package/dist/components/charts/returns-calendar/grid.js +25 -15
- package/dist/components/charts/returns-calendar/grid.js.map +1 -1
- package/dist/components/charts/returns-calendar/tooltip.d.ts +1 -1
- package/dist/components/charts/returns-calendar/tooltip.js +3 -3
- package/dist/components/charts/returns-calendar/tooltip.js.map +1 -1
- package/dist/components/charts/returns-calendar.d.ts +9 -2
- package/dist/components/charts/returns-calendar.d.ts.map +1 -1
- package/dist/components/charts/returns-calendar.js +3 -3
- package/dist/components/charts/returns-calendar.js.map +1 -1
- package/dist/components/charts/sankey-chart/context.d.ts +1 -1
- package/dist/components/charts/sankey-chart/context.js +1 -1
- package/dist/components/charts/sankey-chart/plot.d.ts.map +1 -1
- package/dist/components/charts/sankey-chart/plot.js +18 -37
- package/dist/components/charts/sankey-chart/plot.js.map +1 -1
- package/dist/components/charts/sankey-chart/tooltip.d.ts +3 -1
- package/dist/components/charts/sankey-chart/tooltip.d.ts.map +1 -1
- package/dist/components/charts/sankey-chart/tooltip.js +16 -19
- package/dist/components/charts/sankey-chart/tooltip.js.map +1 -1
- package/dist/components/charts/sankey-chart.d.ts +3 -3
- package/dist/components/charts/sankey-chart.d.ts.map +1 -1
- package/dist/components/charts/sankey-chart.js +16 -15
- package/dist/components/charts/sankey-chart.js.map +1 -1
- package/dist/components/charts/sparkline.d.ts +23 -2
- package/dist/components/charts/sparkline.d.ts.map +1 -1
- package/dist/components/charts/sparkline.js +36 -16
- package/dist/components/charts/sparkline.js.map +1 -1
- package/dist/components/charts/status-bar/legend.d.ts +1 -0
- package/dist/components/charts/status-bar/legend.d.ts.map +1 -1
- package/dist/components/charts/status-bar/legend.js +3 -3
- package/dist/components/charts/status-bar/legend.js.map +1 -1
- package/dist/components/charts/status-bar/plot.d.ts +2 -0
- package/dist/components/charts/status-bar/plot.d.ts.map +1 -1
- package/dist/components/charts/status-bar/plot.js +6 -6
- package/dist/components/charts/status-bar/plot.js.map +1 -1
- package/dist/components/charts/status-bar/tooltip.d.ts +1 -1
- package/dist/components/charts/status-bar/tooltip.js +2 -2
- package/dist/components/charts/status-bar/tooltip.js.map +1 -1
- package/dist/components/charts/status-bar.d.ts +3 -3
- package/dist/components/charts/status-bar.d.ts.map +1 -1
- package/dist/components/charts/status-bar.js +11 -9
- package/dist/components/charts/status-bar.js.map +1 -1
- package/dist/components/charts/treemap/legend.d.ts +2 -0
- package/dist/components/charts/treemap/legend.d.ts.map +1 -1
- package/dist/components/charts/treemap/legend.js +3 -3
- package/dist/components/charts/treemap/legend.js.map +1 -1
- package/dist/components/charts/treemap/plot.d.ts +2 -1
- package/dist/components/charts/treemap/plot.d.ts.map +1 -1
- package/dist/components/charts/treemap/plot.js +8 -21
- package/dist/components/charts/treemap/plot.js.map +1 -1
- package/dist/components/charts/treemap/tile.d.ts +1 -1
- package/dist/components/charts/treemap/tile.js +7 -7
- package/dist/components/charts/treemap/tile.js.map +1 -1
- package/dist/components/charts/treemap/tooltip.d.ts +3 -1
- package/dist/components/charts/treemap/tooltip.d.ts.map +1 -1
- package/dist/components/charts/treemap/tooltip.js +4 -4
- package/dist/components/charts/treemap/tooltip.js.map +1 -1
- package/dist/components/charts/treemap.d.ts +29 -6
- package/dist/components/charts/treemap.d.ts.map +1 -1
- package/dist/components/charts/treemap.js +12 -10
- package/dist/components/charts/treemap.js.map +1 -1
- package/dist/components/charts/volume-profile/plot.d.ts +2 -0
- package/dist/components/charts/volume-profile/plot.d.ts.map +1 -1
- package/dist/components/charts/volume-profile/plot.js +10 -10
- package/dist/components/charts/volume-profile/plot.js.map +1 -1
- package/dist/components/charts/volume-profile/summary.js +16 -22
- package/dist/components/charts/volume-profile/summary.js.map +1 -1
- package/dist/components/charts/volume-profile/tooltip.d.ts +1 -1
- package/dist/components/charts/volume-profile/tooltip.js +6 -6
- package/dist/components/charts/volume-profile/tooltip.js.map +1 -1
- package/dist/components/charts/volume-profile.d.ts +39 -5
- package/dist/components/charts/volume-profile.d.ts.map +1 -1
- package/dist/components/charts/volume-profile.js +18 -22
- package/dist/components/charts/volume-profile.js.map +1 -1
- package/dist/components/charts/xy/axis.js +1 -1
- package/dist/components/charts/xy/data-table.d.ts +4 -2
- package/dist/components/charts/xy/data-table.d.ts.map +1 -1
- package/dist/components/charts/xy/data-table.js +4 -4
- package/dist/components/charts/xy/data-table.js.map +1 -1
- package/dist/components/charts/xy/legend.d.ts +1 -1
- package/dist/components/charts/xy/tooltip-content.d.ts +1 -1
- package/dist/components/charts/xy/tooltip-content.js +5 -5
- package/dist/components/charts/xy/tooltip-content.js.map +1 -1
- package/dist/components/custom/confirm-dialog.js +1 -1
- package/dist/components/custom/toast.d.ts +2 -1
- package/dist/components/custom/toast.d.ts.map +1 -1
- package/dist/components/custom/toast.js +1 -1
- package/dist/components/motion/action-swap.d.ts +19 -0
- package/dist/components/motion/action-swap.d.ts.map +1 -1
- package/dist/components/motion/action-swap.js +2 -2
- package/dist/components/motion/action-swap.js.map +1 -1
- package/dist/components/motion/adaptive-stepper.d.ts +24 -1
- package/dist/components/motion/adaptive-stepper.d.ts.map +1 -1
- package/dist/components/motion/adaptive-stepper.js +28 -23
- package/dist/components/motion/adaptive-stepper.js.map +1 -1
- package/dist/components/motion/add-to-cart.d.ts +38 -0
- package/dist/components/motion/add-to-cart.d.ts.map +1 -0
- package/dist/components/motion/add-to-cart.js +228 -0
- package/dist/components/motion/add-to-cart.js.map +1 -0
- package/dist/components/motion/alert.d.ts +12 -1
- package/dist/components/motion/alert.d.ts.map +1 -1
- package/dist/components/motion/alert.js +18 -12
- package/dist/components/motion/alert.js.map +1 -1
- package/dist/components/motion/animated-badge.d.ts +6 -0
- package/dist/components/motion/animated-badge.d.ts.map +1 -1
- package/dist/components/motion/animated-badge.js +6 -6
- package/dist/components/motion/animated-badge.js.map +1 -1
- package/dist/components/motion/animated-number.d.ts +5 -0
- package/dist/components/motion/animated-number.d.ts.map +1 -1
- package/dist/components/motion/animated-number.js +2 -2
- package/dist/components/motion/animated-number.js.map +1 -1
- package/dist/components/motion/animated-sidebar/menu-button.d.ts +2 -0
- package/dist/components/motion/animated-sidebar/menu-button.js +95 -0
- package/dist/components/motion/animated-sidebar/menu-button.js.map +1 -0
- package/dist/components/motion/animated-sidebar/menu-sub-button.d.ts +2 -0
- package/dist/components/motion/animated-sidebar/menu-sub-button.js +52 -0
- package/dist/components/motion/animated-sidebar/menu-sub-button.js.map +1 -0
- package/dist/components/motion/animated-sidebar/mobile-sidebar.d.ts +9 -0
- package/dist/components/motion/animated-sidebar/mobile-sidebar.d.ts.map +1 -0
- package/dist/components/motion/animated-sidebar/mobile-sidebar.js +73 -0
- package/dist/components/motion/animated-sidebar/mobile-sidebar.js.map +1 -0
- package/dist/components/motion/animated-sidebar.d.ts +20 -47
- package/dist/components/motion/animated-sidebar.d.ts.map +1 -1
- package/dist/components/motion/animated-sidebar.js +5 -619
- package/dist/components/motion/animated-toast-stack/toast-body.d.ts +19 -0
- package/dist/components/motion/animated-toast-stack/toast-body.d.ts.map +1 -0
- package/dist/components/motion/animated-toast-stack/toast-body.js +154 -0
- package/dist/components/motion/animated-toast-stack/toast-body.js.map +1 -0
- package/dist/components/motion/animated-toast-stack.d.ts +3 -62
- package/dist/components/motion/animated-toast-stack.js +1 -302
- package/dist/components/motion/arc-picker.d.ts +11 -1
- package/dist/components/motion/arc-picker.d.ts.map +1 -1
- package/dist/components/motion/arc-picker.js +21 -14
- package/dist/components/motion/arc-picker.js.map +1 -1
- package/dist/components/motion/aspect-ratio.d.ts +1 -0
- package/dist/components/motion/aspect-ratio.d.ts.map +1 -1
- package/dist/components/motion/aspect-ratio.js +2 -2
- package/dist/components/motion/aspect-ratio.js.map +1 -1
- package/dist/components/motion/attachment-upload/attachment-row.d.ts +20 -0
- package/dist/components/motion/attachment-upload/attachment-row.d.ts.map +1 -0
- package/dist/components/motion/attachment-upload/attachment-row.js +224 -0
- package/dist/components/motion/attachment-upload/attachment-row.js.map +1 -0
- package/dist/components/motion/attachment-upload/image-preview-dialog.d.ts +10 -0
- package/dist/components/motion/attachment-upload/image-preview-dialog.d.ts.map +1 -0
- package/dist/components/motion/attachment-upload/image-preview-dialog.js +84 -0
- package/dist/components/motion/attachment-upload/image-preview-dialog.js.map +1 -0
- package/dist/components/motion/attachment-upload/image-thumbnail.d.ts +10 -0
- package/dist/components/motion/attachment-upload/image-thumbnail.d.ts.map +1 -0
- package/dist/components/motion/attachment-upload/image-thumbnail.js +53 -0
- package/dist/components/motion/attachment-upload/image-thumbnail.js.map +1 -0
- package/dist/components/motion/attachment-upload/row-action.d.ts +11 -0
- package/dist/components/motion/attachment-upload/row-action.d.ts.map +1 -0
- package/dist/components/motion/attachment-upload/row-action.js +98 -0
- package/dist/components/motion/attachment-upload/row-action.js.map +1 -0
- package/dist/components/motion/attachment-upload.d.ts +25 -22
- package/dist/components/motion/attachment-upload.d.ts.map +1 -1
- package/dist/components/motion/attachment-upload.js +59 -481
- package/dist/components/motion/attachment-upload.js.map +1 -1
- package/dist/components/motion/availability-scheduler/copy-menu.d.ts +5 -2
- package/dist/components/motion/availability-scheduler/copy-menu.d.ts.map +1 -1
- package/dist/components/motion/availability-scheduler/copy-menu.js +1 -1
- package/dist/components/motion/availability-scheduler/day-row.d.ts +4 -2
- package/dist/components/motion/availability-scheduler/day-row.d.ts.map +1 -1
- package/dist/components/motion/availability-scheduler/day-row.js +23 -15
- package/dist/components/motion/availability-scheduler/day-row.js.map +1 -1
- package/dist/components/motion/availability-scheduler/icon-button.js +3 -3
- package/dist/components/motion/availability-scheduler/icon-button.js.map +1 -1
- package/dist/components/motion/availability-scheduler/time-select.d.ts +1 -1
- package/dist/components/motion/availability-scheduler.d.ts +19 -0
- package/dist/components/motion/availability-scheduler.d.ts.map +1 -0
- package/dist/components/motion/{availability-scheduler/index.js → availability-scheduler.js} +31 -9
- package/dist/components/motion/availability-scheduler.js.map +1 -0
- package/dist/components/motion/avatar-group.d.ts +20 -2
- package/dist/components/motion/avatar-group.d.ts.map +1 -1
- package/dist/components/motion/avatar-group.js +20 -11
- package/dist/components/motion/avatar-group.js.map +1 -1
- package/dist/components/motion/before-after-slider.d.ts +38 -0
- package/dist/components/motion/before-after-slider.d.ts.map +1 -0
- package/dist/components/motion/before-after-slider.js +351 -0
- package/dist/components/motion/before-after-slider.js.map +1 -0
- package/dist/components/motion/bloom-menu.d.ts +20 -1
- package/dist/components/motion/bloom-menu.d.ts.map +1 -1
- package/dist/components/motion/bloom-menu.js +42 -35
- package/dist/components/motion/bloom-menu.js.map +1 -1
- package/dist/components/motion/bookmark-button.d.ts +30 -0
- package/dist/components/motion/bookmark-button.d.ts.map +1 -0
- package/dist/components/motion/bookmark-button.js +107 -0
- package/dist/components/motion/bookmark-button.js.map +1 -0
- package/dist/components/motion/bookshelf.d.ts +53 -0
- package/dist/components/motion/bookshelf.d.ts.map +1 -0
- package/dist/components/motion/bookshelf.js +518 -0
- package/dist/components/motion/bookshelf.js.map +1 -0
- package/dist/components/motion/bottom-sheet.d.ts +15 -1
- package/dist/components/motion/bottom-sheet.d.ts.map +1 -1
- package/dist/components/motion/bottom-sheet.js +22 -43
- package/dist/components/motion/bottom-sheet.js.map +1 -1
- package/dist/components/motion/bounce-sidebar.d.ts +24 -1
- package/dist/components/motion/bounce-sidebar.d.ts.map +1 -1
- package/dist/components/motion/bounce-sidebar.js +8 -4
- package/dist/components/motion/bounce-sidebar.js.map +1 -1
- package/dist/components/motion/bouncy-accordion.d.ts +20 -0
- package/dist/components/motion/bouncy-accordion.d.ts.map +1 -1
- package/dist/components/motion/bouncy-accordion.js +39 -16
- package/dist/components/motion/bouncy-accordion.js.map +1 -1
- package/dist/components/motion/breadcrumb.d.ts +13 -2
- package/dist/components/motion/breadcrumb.d.ts.map +1 -1
- package/dist/components/motion/breadcrumb.js +34 -20
- package/dist/components/motion/breadcrumb.js.map +1 -1
- package/dist/components/motion/button/base.d.ts +8 -0
- package/dist/components/motion/button/base.d.ts.map +1 -1
- package/dist/components/motion/button/base.js +17 -12
- package/dist/components/motion/button/base.js.map +1 -1
- package/dist/components/motion/button/magnetic.js +1 -1
- package/dist/components/motion/button/metallic.d.ts.map +1 -1
- package/dist/components/motion/button/metallic.js +11 -10
- package/dist/components/motion/button/metallic.js.map +1 -1
- package/dist/components/motion/button/stateful.d.ts +15 -1
- package/dist/components/motion/button/stateful.d.ts.map +1 -1
- package/dist/components/motion/button/stateful.js +14 -7
- package/dist/components/motion/button/stateful.js.map +1 -1
- package/dist/components/motion/button.d.ts +5 -0
- package/dist/components/motion/button.js +6 -0
- package/dist/components/motion/card-dealer.d.ts +10 -1
- package/dist/components/motion/card-dealer.d.ts.map +1 -1
- package/dist/components/motion/card-dealer.js +9 -5
- package/dist/components/motion/card-dealer.js.map +1 -1
- package/dist/components/motion/card-folder.d.ts +32 -1
- package/dist/components/motion/card-folder.d.ts.map +1 -1
- package/dist/components/motion/card-folder.js +36 -20
- package/dist/components/motion/card-folder.js.map +1 -1
- package/dist/components/motion/card.js +3 -3
- package/dist/components/motion/card.js.map +1 -1
- package/dist/components/motion/casino/game-parts.d.ts +2 -0
- package/dist/components/motion/casino/game-parts.js +207 -0
- package/dist/components/motion/casino/game-parts.js.map +1 -0
- package/dist/components/motion/center-morph-modal.d.ts +13 -1
- package/dist/components/motion/center-morph-modal.d.ts.map +1 -1
- package/dist/components/motion/center-morph-modal.js +85 -101
- package/dist/components/motion/center-morph-modal.js.map +1 -1
- package/dist/components/motion/checkbox.d.ts +17 -1
- package/dist/components/motion/checkbox.d.ts.map +1 -1
- package/dist/components/motion/checkbox.js +12 -5
- package/dist/components/motion/checkbox.js.map +1 -1
- package/dist/components/motion/chromatic-text-reveal.js +5 -5
- package/dist/components/motion/chromatic-text-reveal.js.map +1 -1
- package/dist/components/motion/click-burst.d.ts +24 -0
- package/dist/components/motion/click-burst.d.ts.map +1 -0
- package/dist/components/motion/click-burst.js +133 -0
- package/dist/components/motion/click-burst.js.map +1 -0
- package/dist/components/motion/collapsible.d.ts +4 -0
- package/dist/components/motion/collapsible.d.ts.map +1 -1
- package/dist/components/motion/collapsible.js +4 -4
- package/dist/components/motion/collapsible.js.map +1 -1
- package/dist/components/motion/color-picker.d.ts +29 -21
- package/dist/components/motion/color-picker.d.ts.map +1 -1
- package/dist/components/motion/color-picker.js +78 -131
- package/dist/components/motion/color-picker.js.map +1 -1
- package/dist/components/motion/color-selector.d.ts +5 -0
- package/dist/components/motion/color-selector.d.ts.map +1 -1
- package/dist/components/motion/color-selector.js +2 -2
- package/dist/components/motion/color-selector.js.map +1 -1
- package/dist/components/motion/combobox/content.d.ts +3 -10
- package/dist/components/motion/combobox/content.d.ts.map +1 -1
- package/dist/components/motion/combobox/content.js +14 -80
- package/dist/components/motion/combobox/content.js.map +1 -1
- package/dist/components/motion/combobox/context.d.ts +3 -66
- package/dist/components/motion/combobox/context.js +1 -216
- package/dist/components/motion/combobox/list.d.ts +12 -0
- package/dist/components/motion/combobox/list.d.ts.map +1 -1
- package/dist/components/motion/combobox/list.js +13 -12
- package/dist/components/motion/combobox/list.js.map +1 -1
- package/dist/components/motion/combobox/listbox-panel.d.ts +2 -0
- package/dist/components/motion/combobox/listbox-panel.js +99 -0
- package/dist/components/motion/combobox/listbox-panel.js.map +1 -0
- package/dist/components/motion/combobox/trigger.d.ts +5 -0
- package/dist/components/motion/combobox/trigger.d.ts.map +1 -1
- package/dist/components/motion/combobox/trigger.js +10 -8
- package/dist/components/motion/combobox/trigger.js.map +1 -1
- package/dist/components/motion/combobox.d.ts +2 -2
- package/dist/components/motion/combobox.js +2 -2
- package/dist/components/motion/command-palette.d.ts +41 -1
- package/dist/components/motion/command-palette.d.ts.map +1 -1
- package/dist/components/motion/command-palette.js +305 -132
- package/dist/components/motion/command-palette.js.map +1 -1
- package/dist/components/motion/confetti.d.ts +23 -0
- package/dist/components/motion/confetti.d.ts.map +1 -0
- package/dist/components/motion/confetti.js +154 -0
- package/dist/components/motion/confetti.js.map +1 -0
- package/dist/components/motion/context-menu.d.ts +33 -1
- package/dist/components/motion/context-menu.d.ts.map +1 -1
- package/dist/components/motion/context-menu.js +126 -122
- package/dist/components/motion/context-menu.js.map +1 -1
- package/dist/components/motion/copy-button.d.ts +27 -0
- package/dist/components/motion/copy-button.d.ts.map +1 -0
- package/dist/components/motion/copy-button.js +129 -0
- package/dist/components/motion/copy-button.js.map +1 -0
- package/dist/components/motion/crash/crash-balloon.d.ts +2 -1
- package/dist/components/motion/crash/crash-balloon.d.ts.map +1 -1
- package/dist/components/motion/crash/crash-balloon.js +13 -11
- package/dist/components/motion/crash/crash-balloon.js.map +1 -1
- package/dist/components/motion/crash/crash-parts.d.ts +3 -7
- package/dist/components/motion/crash/crash-parts.d.ts.map +1 -1
- package/dist/components/motion/crash/crash-parts.js +3 -1
- package/dist/components/motion/crash/crash-tower.d.ts +2 -1
- package/dist/components/motion/crash/crash-tower.d.ts.map +1 -1
- package/dist/components/motion/crash/crash-tower.js +10 -9
- package/dist/components/motion/crash/crash-tower.js.map +1 -1
- package/dist/components/motion/crash.d.ts +2 -1
- package/dist/components/motion/crash.d.ts.map +1 -1
- package/dist/components/motion/crash.js +11 -9
- package/dist/components/motion/crash.js.map +1 -1
- package/dist/components/motion/cylinder-carousel.d.ts +14 -4
- package/dist/components/motion/cylinder-carousel.d.ts.map +1 -1
- package/dist/components/motion/cylinder-carousel.js +14 -8
- package/dist/components/motion/cylinder-carousel.js.map +1 -1
- package/dist/components/motion/date-range-picker/calendar-choices.d.ts +18 -0
- package/dist/components/motion/date-range-picker/calendar-choices.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/calendar-choices.js +62 -0
- package/dist/components/motion/date-range-picker/calendar-choices.js.map +1 -0
- package/dist/components/motion/date-range-picker/calendar-presence.d.ts +5 -0
- package/dist/components/motion/date-range-picker/calendar-presence.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/calendar-presence.js +14 -0
- package/dist/components/motion/date-range-picker/calendar-presence.js.map +1 -0
- package/dist/components/motion/date-range-picker/calendar.d.ts +8 -0
- package/dist/components/motion/date-range-picker/calendar.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/calendar.js +46 -0
- package/dist/components/motion/date-range-picker/calendar.js.map +1 -0
- package/dist/components/motion/date-range-picker/clear.d.ts +4 -0
- package/dist/components/motion/date-range-picker/clear.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/clear.js +23 -0
- package/dist/components/motion/date-range-picker/clear.js.map +1 -0
- package/dist/components/motion/date-range-picker/content.d.ts +7 -0
- package/dist/components/motion/date-range-picker/content.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/content.js +36 -0
- package/dist/components/motion/date-range-picker/content.js.map +1 -0
- package/dist/components/motion/date-range-picker/dropdown.d.ts +12 -0
- package/dist/components/motion/date-range-picker/dropdown.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/dropdown.js +26 -0
- package/dist/components/motion/date-range-picker/dropdown.js.map +1 -0
- package/dist/components/motion/date-range-picker/footer.d.ts +4 -0
- package/dist/components/motion/date-range-picker/footer.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/footer.js +20 -0
- package/dist/components/motion/date-range-picker/footer.js.map +1 -0
- package/dist/components/motion/date-range-picker/grid.d.ts +4 -0
- package/dist/components/motion/date-range-picker/grid.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/grid.js +132 -0
- package/dist/components/motion/date-range-picker/grid.js.map +1 -0
- package/dist/components/motion/date-range-picker/header.d.ts +4 -0
- package/dist/components/motion/date-range-picker/header.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/header.js +85 -0
- package/dist/components/motion/date-range-picker/header.js.map +1 -0
- package/dist/components/motion/date-range-picker/preset.d.ts +10 -0
- package/dist/components/motion/date-range-picker/preset.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/preset.js +25 -0
- package/dist/components/motion/date-range-picker/preset.js.map +1 -0
- package/dist/components/motion/date-range-picker/presets.d.ts +4 -0
- package/dist/components/motion/date-range-picker/presets.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/presets.js +22 -0
- package/dist/components/motion/date-range-picker/presets.js.map +1 -0
- package/dist/components/motion/date-range-picker/root.d.ts +4 -0
- package/dist/components/motion/date-range-picker/root.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/root.js +3 -0
- package/dist/components/motion/date-range-picker/selection.d.ts +4 -0
- package/dist/components/motion/date-range-picker/selection.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/selection.js +17 -0
- package/dist/components/motion/date-range-picker/selection.js.map +1 -0
- package/dist/components/motion/date-range-picker/summary.d.ts +4 -0
- package/dist/components/motion/date-range-picker/summary.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/summary.js +40 -0
- package/dist/components/motion/date-range-picker/summary.js.map +1 -0
- package/dist/components/motion/date-range-picker/trigger.d.ts +7 -0
- package/dist/components/motion/date-range-picker/trigger.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker/trigger.js +74 -0
- package/dist/components/motion/date-range-picker/trigger.js.map +1 -0
- package/dist/components/motion/date-range-picker.d.ts +16 -82
- package/dist/components/motion/date-range-picker.d.ts.map +1 -1
- package/dist/components/motion/date-range-picker.js +15 -875
- package/dist/components/motion/date-range-picker.js.map +1 -1
- package/dist/components/motion/delete-button.d.ts +31 -0
- package/dist/components/motion/delete-button.d.ts.map +1 -0
- package/dist/components/motion/delete-button.js +263 -0
- package/dist/components/motion/delete-button.js.map +1 -0
- package/dist/components/motion/digit-swap.d.ts +3 -0
- package/dist/components/motion/digit-swap.d.ts.map +1 -1
- package/dist/components/motion/digit-swap.js +2 -2
- package/dist/components/motion/digit-swap.js.map +1 -1
- package/dist/components/motion/dock.d.ts +4 -0
- package/dist/components/motion/dock.d.ts.map +1 -1
- package/dist/components/motion/dock.js +4 -4
- package/dist/components/motion/dock.js.map +1 -1
- package/dist/components/motion/download-button.d.ts +29 -0
- package/dist/components/motion/download-button.d.ts.map +1 -0
- package/dist/components/motion/download-button.js +305 -0
- package/dist/components/motion/download-button.js.map +1 -0
- package/dist/components/motion/drawer.d.ts +17 -2
- package/dist/components/motion/drawer.d.ts.map +1 -1
- package/dist/components/motion/drawer.js +74 -20
- package/dist/components/motion/drawer.js.map +1 -1
- package/dist/components/motion/dropdown-menu/item-base.d.ts +37 -0
- package/dist/components/motion/dropdown-menu/item-base.d.ts.map +1 -0
- package/dist/components/motion/dropdown-menu/item-base.js +78 -0
- package/dist/components/motion/dropdown-menu/item-base.js.map +1 -0
- package/dist/components/motion/dropdown-menu/menu-panel.d.ts +31 -0
- package/dist/components/motion/dropdown-menu/menu-panel.d.ts.map +1 -0
- package/dist/components/motion/dropdown-menu/menu-panel.js +201 -0
- package/dist/components/motion/dropdown-menu/menu-panel.js.map +1 -0
- package/dist/components/motion/dropdown-menu.d.ts +111 -0
- package/dist/components/motion/dropdown-menu.d.ts.map +1 -0
- package/dist/components/motion/dropdown-menu.js +400 -0
- package/dist/components/motion/dropdown-menu.js.map +1 -0
- package/dist/components/motion/dynamic-island.d.ts +2 -0
- package/dist/components/motion/dynamic-island.d.ts.map +1 -1
- package/dist/components/motion/dynamic-island.js +2 -2
- package/dist/components/motion/dynamic-island.js.map +1 -1
- package/dist/components/motion/expandable-action-bar.d.ts +28 -0
- package/dist/components/motion/expandable-action-bar.d.ts.map +1 -1
- package/dist/components/motion/expandable-action-bar.js +8 -17
- package/dist/components/motion/expandable-action-bar.js.map +1 -1
- package/dist/components/motion/expandable-control.d.ts +14 -0
- package/dist/components/motion/expandable-control.d.ts.map +1 -1
- package/dist/components/motion/expandable-control.js +6 -3
- package/dist/components/motion/expandable-control.js.map +1 -1
- package/dist/components/motion/expandable-tabs.d.ts +24 -2
- package/dist/components/motion/expandable-tabs.d.ts.map +1 -1
- package/dist/components/motion/expandable-tabs.js +12 -20
- package/dist/components/motion/expandable-tabs.js.map +1 -1
- package/dist/components/motion/expanding-arrow-button.d.ts +2 -0
- package/dist/components/motion/expanding-arrow-button.d.ts.map +1 -1
- package/dist/components/motion/expanding-arrow-button.js +6 -6
- package/dist/components/motion/expanding-arrow-button.js.map +1 -1
- package/dist/components/motion/feedback-widget.d.ts +24 -1
- package/dist/components/motion/feedback-widget.d.ts.map +1 -1
- package/dist/components/motion/feedback-widget.js +46 -44
- package/dist/components/motion/feedback-widget.js.map +1 -1
- package/dist/components/motion/file-tree.d.ts +32 -1
- package/dist/components/motion/file-tree.d.ts.map +1 -1
- package/dist/components/motion/file-tree.js +15 -15
- package/dist/components/motion/file-tree.js.map +1 -1
- package/dist/components/motion/file-upload.d.ts +54 -1
- package/dist/components/motion/file-upload.d.ts.map +1 -1
- package/dist/components/motion/file-upload.js +87 -46
- package/dist/components/motion/file-upload.js.map +1 -1
- package/dist/components/motion/follow-button.d.ts +31 -0
- package/dist/components/motion/follow-button.d.ts.map +1 -0
- package/dist/components/motion/follow-button.js +184 -0
- package/dist/components/motion/follow-button.js.map +1 -0
- package/dist/components/motion/hold-action-button.d.ts +15 -0
- package/dist/components/motion/hold-action-button.d.ts.map +1 -1
- package/dist/components/motion/hold-action-button.js +21 -9
- package/dist/components/motion/hold-action-button.js.map +1 -1
- package/dist/components/motion/infinite-masonry.d.ts +35 -1
- package/dist/components/motion/infinite-masonry.d.ts.map +1 -1
- package/dist/components/motion/infinite-masonry.js +30 -15
- package/dist/components/motion/infinite-masonry.js.map +1 -1
- package/dist/components/motion/input.d.ts +17 -0
- package/dist/components/motion/input.d.ts.map +1 -1
- package/dist/components/motion/input.js +3 -2
- package/dist/components/motion/input.js.map +1 -1
- package/dist/components/motion/knockout-bracket.d.ts +32 -6
- package/dist/components/motion/knockout-bracket.d.ts.map +1 -1
- package/dist/components/motion/knockout-bracket.js +104 -50
- package/dist/components/motion/knockout-bracket.js.map +1 -1
- package/dist/components/motion/knockout-wheel.d.ts +23 -4
- package/dist/components/motion/knockout-wheel.d.ts.map +1 -1
- package/dist/components/motion/knockout-wheel.js +50 -24
- package/dist/components/motion/knockout-wheel.js.map +1 -1
- package/dist/components/motion/like-button.d.ts +26 -0
- package/dist/components/motion/like-button.d.ts.map +1 -0
- package/dist/components/motion/like-button.js +128 -0
- package/dist/components/motion/like-button.js.map +1 -0
- package/dist/components/motion/liquid.js +4 -4
- package/dist/components/motion/liquid.js.map +1 -1
- package/dist/components/motion/loader.d.ts +11 -1
- package/dist/components/motion/loader.d.ts.map +1 -1
- package/dist/components/motion/loader.js +49 -34
- package/dist/components/motion/loader.js.map +1 -1
- package/dist/components/motion/lock-toggle.d.ts +29 -0
- package/dist/components/motion/lock-toggle.d.ts.map +1 -0
- package/dist/components/motion/lock-toggle.js +252 -0
- package/dist/components/motion/lock-toggle.js.map +1 -0
- package/dist/components/motion/magnetic.js +3 -3
- package/dist/components/motion/marquee.d.ts +6 -0
- package/dist/components/motion/marquee.d.ts.map +1 -1
- package/dist/components/motion/marquee.js.map +1 -1
- package/dist/components/motion/menu/menu-item-highlight.d.ts +16 -0
- package/dist/components/motion/menu/menu-item-highlight.d.ts.map +1 -0
- package/dist/components/motion/menu/menu-item-highlight.js +20 -0
- package/dist/components/motion/menu/menu-item-highlight.js.map +1 -0
- package/dist/components/motion/message-status.d.ts +26 -0
- package/dist/components/motion/message-status.d.ts.map +1 -0
- package/dist/components/motion/message-status.js +198 -0
- package/dist/components/motion/message-status.js.map +1 -0
- package/dist/components/motion/mines.d.ts +43 -3
- package/dist/components/motion/mines.d.ts.map +1 -1
- package/dist/components/motion/mines.js +92 -57
- package/dist/components/motion/mines.js.map +1 -1
- package/dist/components/motion/morphing-lightbox.d.ts +33 -1
- package/dist/components/motion/morphing-lightbox.d.ts.map +1 -1
- package/dist/components/motion/morphing-lightbox.js +42 -25
- package/dist/components/motion/morphing-lightbox.js.map +1 -1
- package/dist/components/motion/morphing-modal.d.ts +10 -1
- package/dist/components/motion/morphing-modal.d.ts.map +1 -1
- package/dist/components/motion/morphing-modal.js +25 -20
- package/dist/components/motion/morphing-modal.js.map +1 -1
- package/dist/components/motion/morphing-search-chips.d.ts +34 -1
- package/dist/components/motion/morphing-search-chips.d.ts.map +1 -1
- package/dist/components/motion/morphing-search-chips.js +47 -35
- package/dist/components/motion/morphing-search-chips.js.map +1 -1
- package/dist/components/motion/morphing-search.d.ts +28 -1
- package/dist/components/motion/morphing-search.d.ts.map +1 -1
- package/dist/components/motion/morphing-search.js +36 -26
- package/dist/components/motion/morphing-search.js.map +1 -1
- package/dist/components/motion/morphing-tabs.d.ts +29 -1
- package/dist/components/motion/morphing-tabs.d.ts.map +1 -1
- package/dist/components/motion/morphing-tabs.js +40 -16
- package/dist/components/motion/morphing-tabs.js.map +1 -1
- package/dist/components/motion/multi-select/content.d.ts +3 -10
- package/dist/components/motion/multi-select/content.d.ts.map +1 -1
- package/dist/components/motion/multi-select/content.js +14 -80
- package/dist/components/motion/multi-select/content.js.map +1 -1
- package/dist/components/motion/multi-select/context.d.ts +2 -61
- package/dist/components/motion/multi-select/context.js +1 -226
- package/dist/components/motion/multi-select/list.d.ts +12 -0
- package/dist/components/motion/multi-select/list.d.ts.map +1 -1
- package/dist/components/motion/multi-select/list.js +14 -13
- package/dist/components/motion/multi-select/list.js.map +1 -1
- package/dist/components/motion/multi-select/trigger.d.ts +6 -0
- package/dist/components/motion/multi-select/trigger.d.ts.map +1 -1
- package/dist/components/motion/multi-select/trigger.js +15 -13
- package/dist/components/motion/multi-select/trigger.js.map +1 -1
- package/dist/components/motion/{multi-select/index.d.ts → multi-select.d.ts} +5 -5
- package/dist/components/motion/{multi-select/index.js → multi-select.js} +5 -5
- package/dist/components/motion/mute-toggle.d.ts +25 -0
- package/dist/components/motion/mute-toggle.d.ts.map +1 -0
- package/dist/components/motion/mute-toggle.js +221 -0
- package/dist/components/motion/mute-toggle.js.map +1 -0
- package/dist/components/motion/not-found/glitch.d.ts +1 -1
- package/dist/components/motion/not-found/glitch.d.ts.map +1 -1
- package/dist/components/motion/not-found/glitch.js +10 -8
- package/dist/components/motion/not-found/glitch.js.map +1 -1
- package/dist/components/motion/not-found/magnetic.d.ts +1 -1
- package/dist/components/motion/not-found/magnetic.d.ts.map +1 -1
- package/dist/components/motion/not-found/magnetic.js +10 -8
- package/dist/components/motion/not-found/magnetic.js.map +1 -1
- package/dist/components/motion/not-found/shared.d.ts +23 -6
- package/dist/components/motion/not-found/shared.d.ts.map +1 -1
- package/dist/components/motion/not-found/shared.js +20 -9
- package/dist/components/motion/not-found/shared.js.map +1 -1
- package/dist/components/motion/not-found/spotlight.d.ts +1 -1
- package/dist/components/motion/not-found/spotlight.d.ts.map +1 -1
- package/dist/components/motion/not-found/spotlight.js +13 -11
- package/dist/components/motion/not-found/spotlight.js.map +1 -1
- package/dist/components/motion/not-found/stacked.d.ts +1 -1
- package/dist/components/motion/not-found/stacked.d.ts.map +1 -1
- package/dist/components/motion/not-found/stacked.js +11 -9
- package/dist/components/motion/not-found/stacked.js.map +1 -1
- package/dist/components/motion/not-found/terminal.d.ts +1 -1
- package/dist/components/motion/not-found/terminal.d.ts.map +1 -1
- package/dist/components/motion/not-found/terminal.js +9 -7
- package/dist/components/motion/not-found/terminal.js.map +1 -1
- package/dist/components/motion/notification-bell.d.ts +29 -0
- package/dist/components/motion/notification-bell.d.ts.map +1 -0
- package/dist/components/motion/notification-bell.js +274 -0
- package/dist/components/motion/notification-bell.js.map +1 -0
- package/dist/components/motion/notification-stack.d.ts +35 -1
- package/dist/components/motion/notification-stack.d.ts.map +1 -1
- package/dist/components/motion/notification-stack.js +23 -7
- package/dist/components/motion/notification-stack.js.map +1 -1
- package/dist/components/motion/number-ticker.d.ts +11 -3
- package/dist/components/motion/number-ticker.d.ts.map +1 -1
- package/dist/components/motion/number-ticker.js +7 -4
- package/dist/components/motion/number-ticker.js.map +1 -1
- package/dist/components/motion/otp-input.d.ts +22 -1
- package/dist/components/motion/otp-input.d.ts.map +1 -1
- package/dist/components/motion/otp-input.js +36 -15
- package/dist/components/motion/otp-input.js.map +1 -1
- package/dist/components/motion/overflow-actions.d.ts +35 -1
- package/dist/components/motion/overflow-actions.d.ts.map +1 -1
- package/dist/components/motion/overflow-actions.js +16 -8
- package/dist/components/motion/overflow-actions.js.map +1 -1
- package/dist/components/motion/pagination.d.ts +17 -1
- package/dist/components/motion/pagination.d.ts.map +1 -1
- package/dist/components/motion/pagination.js +24 -13
- package/dist/components/motion/pagination.js.map +1 -1
- package/dist/components/motion/parallax.d.ts +2 -0
- package/dist/components/motion/parallax.d.ts.map +1 -1
- package/dist/components/motion/parallax.js +1 -1
- package/dist/components/motion/parallax.js.map +1 -1
- package/dist/components/motion/plinko.d.ts +13 -1
- package/dist/components/motion/plinko.d.ts.map +1 -1
- package/dist/components/motion/plinko.js +32 -18
- package/dist/components/motion/plinko.js.map +1 -1
- package/dist/components/motion/poll-vote.d.ts +39 -0
- package/dist/components/motion/poll-vote.d.ts.map +1 -0
- package/dist/components/motion/poll-vote.js +209 -0
- package/dist/components/motion/poll-vote.js.map +1 -0
- package/dist/components/motion/popover-morph.d.ts +2 -50
- package/dist/components/motion/popover-morph.js +10 -30
- package/dist/components/motion/popover-morph.js.map +1 -1
- package/dist/components/motion/popover.d.ts +5 -2
- package/dist/components/motion/popover.d.ts.map +1 -1
- package/dist/components/motion/popover.js +155 -103
- package/dist/components/motion/popover.js.map +1 -1
- package/dist/components/motion/prediction-market-card.d.ts +30 -1
- package/dist/components/motion/prediction-market-card.d.ts.map +1 -1
- package/dist/components/motion/prediction-market-card.js +39 -22
- package/dist/components/motion/prediction-market-card.js.map +1 -1
- package/dist/components/motion/prediction-market.d.ts +58 -1
- package/dist/components/motion/prediction-market.d.ts.map +1 -1
- package/dist/components/motion/prediction-market.js +66 -47
- package/dist/components/motion/prediction-market.js.map +1 -1
- package/dist/components/motion/preview-rail.d.ts +31 -1
- package/dist/components/motion/preview-rail.d.ts.map +1 -1
- package/dist/components/motion/preview-rail.js +10 -5
- package/dist/components/motion/preview-rail.js.map +1 -1
- package/dist/components/motion/project-folder.d.ts +33 -1
- package/dist/components/motion/project-folder.d.ts.map +1 -1
- package/dist/components/motion/project-folder.js +31 -50
- package/dist/components/motion/project-folder.js.map +1 -1
- package/dist/components/motion/pull-to-refresh.d.ts +19 -1
- package/dist/components/motion/pull-to-refresh.d.ts.map +1 -1
- package/dist/components/motion/pull-to-refresh.js +22 -11
- package/dist/components/motion/pull-to-refresh.js.map +1 -1
- package/dist/components/motion/radio.d.ts +10 -0
- package/dist/components/motion/radio.d.ts.map +1 -1
- package/dist/components/motion/radio.js +2 -2
- package/dist/components/motion/radio.js.map +1 -1
- package/dist/components/motion/range-slider-bubble.d.ts +1 -0
- package/dist/components/motion/range-slider-bubble.d.ts.map +1 -1
- package/dist/components/motion/range-slider-bubble.js +7 -7
- package/dist/components/motion/range-slider-bubble.js.map +1 -1
- package/dist/components/motion/range-slider-fluid.d.ts +1 -0
- package/dist/components/motion/range-slider-fluid.d.ts.map +1 -1
- package/dist/components/motion/range-slider-fluid.js +5 -5
- package/dist/components/motion/range-slider-fluid.js.map +1 -1
- package/dist/components/motion/range-slider-inline.d.ts +1 -0
- package/dist/components/motion/range-slider-inline.d.ts.map +1 -1
- package/dist/components/motion/range-slider-inline.js +4 -4
- package/dist/components/motion/range-slider-inline.js.map +1 -1
- package/dist/components/motion/range-slider-ruler.d.ts +1 -0
- package/dist/components/motion/range-slider-ruler.d.ts.map +1 -1
- package/dist/components/motion/range-slider-ruler.js +6 -6
- package/dist/components/motion/range-slider-ruler.js.map +1 -1
- package/dist/components/motion/range-slider-wave.d.ts +1 -0
- package/dist/components/motion/range-slider-wave.d.ts.map +1 -1
- package/dist/components/motion/range-slider-wave.js +6 -6
- package/dist/components/motion/range-slider-wave.js.map +1 -1
- package/dist/components/motion/range-slider.d.ts +1 -0
- package/dist/components/motion/range-slider.d.ts.map +1 -1
- package/dist/components/motion/range-slider.js +5 -5
- package/dist/components/motion/range-slider.js.map +1 -1
- package/dist/components/motion/reaction-picker.d.ts +50 -0
- package/dist/components/motion/reaction-picker.d.ts.map +1 -0
- package/dist/components/motion/reaction-picker.js +516 -0
- package/dist/components/motion/reaction-picker.js.map +1 -0
- package/dist/components/motion/refresh-button.d.ts +24 -0
- package/dist/components/motion/refresh-button.d.ts.map +1 -0
- package/dist/components/motion/refresh-button.js +267 -0
- package/dist/components/motion/refresh-button.js.map +1 -0
- package/dist/components/motion/scroll-progress.d.ts +2 -0
- package/dist/components/motion/scroll-progress.d.ts.map +1 -1
- package/dist/components/motion/scroll-progress.js +3 -3
- package/dist/components/motion/scroll-progress.js.map +1 -1
- package/dist/components/motion/scroll-reveal.d.ts +2 -0
- package/dist/components/motion/scroll-reveal.d.ts.map +1 -1
- package/dist/components/motion/scroll-reveal.js +2 -2
- package/dist/components/motion/scroll-reveal.js.map +1 -1
- package/dist/components/motion/scroll-to.d.ts +3 -2
- package/dist/components/motion/scroll-to.d.ts.map +1 -1
- package/dist/components/motion/scroll-to.js +2 -2
- package/dist/components/motion/scroll-to.js.map +1 -1
- package/dist/components/motion/select-morph.d.ts +17 -3
- package/dist/components/motion/select-morph.d.ts.map +1 -1
- package/dist/components/motion/select-morph.js +152 -89
- package/dist/components/motion/select-morph.js.map +1 -1
- package/dist/components/motion/select.d.ts +16 -2
- package/dist/components/motion/select.d.ts.map +1 -1
- package/dist/components/motion/select.js +153 -64
- package/dist/components/motion/select.js.map +1 -1
- package/dist/components/motion/send-button.d.ts +23 -0
- package/dist/components/motion/send-button.d.ts.map +1 -0
- package/dist/components/motion/send-button.js +273 -0
- package/dist/components/motion/send-button.js.map +1 -0
- package/dist/components/motion/shader-background.js +2 -2
- package/dist/components/motion/share-button.d.ts +45 -0
- package/dist/components/motion/share-button.d.ts.map +1 -0
- package/dist/components/motion/share-button.js +324 -0
- package/dist/components/motion/share-button.js.map +1 -0
- package/dist/components/motion/shared-layout-bg.js +4 -4
- package/dist/components/motion/shared-layout-bg.js.map +1 -1
- package/dist/components/motion/signup-form.d.ts +62 -3
- package/dist/components/motion/signup-form.d.ts.map +1 -1
- package/dist/components/motion/signup-form.js +83 -40
- package/dist/components/motion/signup-form.js.map +1 -1
- package/dist/components/motion/slide-action-button.d.ts +15 -1
- package/dist/components/motion/slide-action-button.d.ts.map +1 -1
- package/dist/components/motion/slide-action-button.js +15 -9
- package/dist/components/motion/slide-action-button.js.map +1 -1
- package/dist/components/motion/slide-game.d.ts +92 -0
- package/dist/components/motion/slide-game.d.ts.map +1 -0
- package/dist/components/motion/slide-game.js +642 -0
- package/dist/components/motion/slide-game.js.map +1 -0
- package/dist/components/motion/smooth-scroll.d.ts +4 -2
- package/dist/components/motion/smooth-scroll.d.ts.map +1 -1
- package/dist/components/motion/smooth-scroll.js +5 -4
- package/dist/components/motion/smooth-scroll.js.map +1 -1
- package/dist/components/motion/sortable-list.d.ts +21 -1
- package/dist/components/motion/sortable-list.d.ts.map +1 -1
- package/dist/components/motion/sortable-list.js +41 -16
- package/dist/components/motion/sortable-list.js.map +1 -1
- package/dist/components/motion/star-rating.d.ts +35 -0
- package/dist/components/motion/star-rating.d.ts.map +1 -0
- package/dist/components/motion/star-rating.js +253 -0
- package/dist/components/motion/star-rating.js.map +1 -0
- package/dist/components/motion/status-icon.d.ts +31 -0
- package/dist/components/motion/status-icon.d.ts.map +1 -0
- package/dist/components/motion/status-icon.js +259 -0
- package/dist/components/motion/status-icon.js.map +1 -0
- package/dist/components/motion/swap/controls.d.ts +8 -4
- package/dist/components/motion/swap/controls.d.ts.map +1 -1
- package/dist/components/motion/swap/controls.js +38 -30
- package/dist/components/motion/swap/controls.js.map +1 -1
- package/dist/components/motion/swap/field.d.ts +4 -2
- package/dist/components/motion/swap/field.d.ts.map +1 -1
- package/dist/components/motion/swap/field.js +16 -13
- package/dist/components/motion/swap/field.js.map +1 -1
- package/dist/components/motion/swap/quote-row.d.ts +4 -2
- package/dist/components/motion/swap/quote-row.d.ts.map +1 -1
- package/dist/components/motion/swap/quote-row.js +10 -8
- package/dist/components/motion/swap/quote-row.js.map +1 -1
- package/dist/components/motion/swap/token-badges.d.ts +1 -1
- package/dist/components/motion/swap/token-badges.js +5 -6
- package/dist/components/motion/swap/token-badges.js.map +1 -1
- package/dist/components/motion/swap/token-picker.d.ts +4 -2
- package/dist/components/motion/swap/token-picker.d.ts.map +1 -1
- package/dist/components/motion/swap/token-picker.js +59 -54
- package/dist/components/motion/swap/token-picker.js.map +1 -1
- package/dist/components/motion/swap.d.ts +12 -4
- package/dist/components/motion/swap.d.ts.map +1 -1
- package/dist/components/motion/swap.js +31 -19
- package/dist/components/motion/swap.js.map +1 -1
- package/dist/components/motion/swipeable-list.d.ts +47 -1
- package/dist/components/motion/swipeable-list.d.ts.map +1 -1
- package/dist/components/motion/swipeable-list.js +17 -9
- package/dist/components/motion/swipeable-list.js.map +1 -1
- package/dist/components/motion/switch.d.ts +9 -1
- package/dist/components/motion/switch.d.ts.map +1 -1
- package/dist/components/motion/switch.js +13 -8
- package/dist/components/motion/switch.js.map +1 -1
- package/dist/components/motion/table/editable-cell.d.ts +2 -1
- package/dist/components/motion/table/editable-cell.d.ts.map +1 -1
- package/dist/components/motion/table/editable-cell.js +2 -2
- package/dist/components/motion/table/editable-cell.js.map +1 -1
- package/dist/components/motion/table/row-handle.d.ts +3 -1
- package/dist/components/motion/table/row-handle.d.ts.map +1 -1
- package/dist/components/motion/table/row-handle.js +7 -7
- package/dist/components/motion/table/row-handle.js.map +1 -1
- package/dist/components/motion/table/skeleton-rows.d.ts +1 -1
- package/dist/components/motion/table/skeleton-rows.js +1 -1
- package/dist/components/motion/table/table-header.d.ts +4 -2
- package/dist/components/motion/table/table-header.d.ts.map +1 -1
- package/dist/components/motion/table/table-header.js +22 -19
- package/dist/components/motion/table/table-header.js.map +1 -1
- package/dist/components/motion/table/table-menu.d.ts.map +1 -1
- package/dist/components/motion/table/table-menu.js +18 -18
- package/dist/components/motion/table/table-menu.js.map +1 -1
- package/dist/components/motion/{table/index.d.ts → table.d.ts} +5 -4
- package/dist/components/motion/table.d.ts.map +1 -0
- package/dist/components/motion/{table/index.js → table.js} +50 -19
- package/dist/components/motion/table.js.map +1 -0
- package/dist/components/motion/tabs.d.ts +24 -4
- package/dist/components/motion/tabs.d.ts.map +1 -1
- package/dist/components/motion/tabs.js +41 -19
- package/dist/components/motion/tabs.js.map +1 -1
- package/dist/components/motion/text-cascade.d.ts +2 -1
- package/dist/components/motion/text-cascade.d.ts.map +1 -1
- package/dist/components/motion/text-cascade.js +1 -1
- package/dist/components/motion/text-cascade.js.map +1 -1
- package/dist/components/motion/text-morph.d.ts +16 -0
- package/dist/components/motion/text-morph.d.ts.map +1 -0
- package/dist/components/motion/text-morph.js +239 -0
- package/dist/components/motion/text-morph.js.map +1 -0
- package/dist/components/motion/text-reveal.d.ts +11 -0
- package/dist/components/motion/text-reveal.d.ts.map +1 -1
- package/dist/components/motion/text-reveal.js +3 -3
- package/dist/components/motion/text-reveal.js.map +1 -1
- package/dist/components/motion/text-scramble.d.ts +2 -0
- package/dist/components/motion/text-scramble.d.ts.map +1 -1
- package/dist/components/motion/text-scramble.js +1 -1
- package/dist/components/motion/text-scramble.js.map +1 -1
- package/dist/components/motion/text-shimmer.d.ts +3 -0
- package/dist/components/motion/text-shimmer.d.ts.map +1 -1
- package/dist/components/motion/text-shimmer.js +1 -1
- package/dist/components/motion/text-shimmer.js.map +1 -1
- package/dist/components/motion/theme-toggle.d.ts +12 -1
- package/dist/components/motion/theme-toggle.d.ts.map +1 -1
- package/dist/components/motion/theme-toggle.js +19 -11
- package/dist/components/motion/theme-toggle.js.map +1 -1
- package/dist/components/motion/tilt-card.d.ts +3 -0
- package/dist/components/motion/tilt-card.d.ts.map +1 -1
- package/dist/components/motion/tilt-card.js +3 -3
- package/dist/components/motion/tilt-card.js.map +1 -1
- package/dist/components/motion/timeline.d.ts +16 -1
- package/dist/components/motion/timeline.d.ts.map +1 -1
- package/dist/components/motion/timeline.js +26 -7
- package/dist/components/motion/timeline.js.map +1 -1
- package/dist/components/motion/tooltip/positioner.d.ts +1 -1
- package/dist/components/motion/tooltip/positioner.js +1 -1
- package/dist/components/motion/tooltip-surface.d.ts +6 -2
- package/dist/components/motion/tooltip-surface.d.ts.map +1 -1
- package/dist/components/motion/tooltip-surface.js +36 -26
- package/dist/components/motion/tooltip-surface.js.map +1 -1
- package/dist/components/motion/tooltip.d.ts +9 -3
- package/dist/components/motion/tooltip.d.ts.map +1 -1
- package/dist/components/motion/tooltip.js +1 -1
- package/dist/components/motion/upvote-button.d.ts +30 -0
- package/dist/components/motion/upvote-button.d.ts.map +1 -0
- package/dist/components/motion/upvote-button.js +144 -0
- package/dist/components/motion/upvote-button.js.map +1 -0
- package/dist/components/motion/wallet-card/account-avatar.d.ts +1 -1
- package/dist/components/motion/wallet-card/account-avatar.js +1 -1
- package/dist/components/motion/wallet-card/account-switcher.d.ts +5 -3
- package/dist/components/motion/wallet-card/account-switcher.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/account-switcher.js +23 -16
- package/dist/components/motion/wallet-card/account-switcher.js.map +1 -1
- package/dist/components/motion/wallet-card/actions.d.ts +3 -1
- package/dist/components/motion/wallet-card/actions.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/actions.js +33 -29
- package/dist/components/motion/wallet-card/actions.js.map +1 -1
- package/dist/components/motion/wallet-card/balance-delta.d.ts +2 -1
- package/dist/components/motion/wallet-card/balance-delta.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/balance-delta.js +6 -6
- package/dist/components/motion/wallet-card/balance-delta.js.map +1 -1
- package/dist/components/motion/wallet-card/copy-button.d.ts +3 -1
- package/dist/components/motion/wallet-card/copy-button.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/copy-button.js +13 -7
- package/dist/components/motion/wallet-card/copy-button.js.map +1 -1
- package/dist/components/motion/wallet-card/search-bar.d.ts +4 -2
- package/dist/components/motion/wallet-card/search-bar.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/search-bar.js +21 -18
- package/dist/components/motion/wallet-card/search-bar.js.map +1 -1
- package/dist/components/motion/wallet-card.d.ts +16 -0
- package/dist/components/motion/wallet-card.d.ts.map +1 -0
- package/dist/components/motion/{wallet-card/index.js → wallet-card.js} +26 -19
- package/dist/components/motion/wallet-card.js.map +1 -0
- package/dist/components/motion/wave-reveal.d.ts +25 -0
- package/dist/components/motion/wave-reveal.d.ts.map +1 -0
- package/dist/components/motion/wave-reveal.js +630 -0
- package/dist/components/motion/wave-reveal.js.map +1 -0
- package/dist/components/motion/wheel-picker.d.ts +7 -0
- package/dist/components/motion/wheel-picker.d.ts.map +1 -1
- package/dist/components/motion/wheel-picker.js +15 -5
- package/dist/components/motion/wheel-picker.js.map +1 -1
- package/dist/components/reui/alert.d.ts +1 -1
- package/dist/components/reui/alert.js +1 -1
- package/dist/components/reui/autocomplete.d.ts +1 -1
- package/dist/components/reui/autocomplete.js +4 -4
- package/dist/components/reui/badge.d.ts +2 -2
- package/dist/components/reui/badge.js +2 -2
- package/dist/components/reui/cascader/cascader-async.d.ts +1 -1
- package/dist/components/reui/cascader/cascader-async.js +37 -37
- package/dist/components/reui/cascader/cascader-async.js.map +1 -1
- package/dist/components/reui/cascader/cascader-columns.d.ts +6 -6
- package/dist/components/reui/cascader/cascader-columns.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-columns.js +6 -6
- package/dist/components/reui/cascader/cascader-columns.js.map +1 -1
- package/dist/components/reui/cascader/cascader-context.d.ts +8 -8
- package/dist/components/reui/cascader/cascader-context.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-context.js +10 -10
- package/dist/components/reui/cascader/cascader-context.js.map +1 -1
- package/dist/components/reui/cascader/cascader-footer.d.ts +14 -14
- package/dist/components/reui/cascader/cascader-footer.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-footer.js +32 -33
- package/dist/components/reui/cascader/cascader-footer.js.map +1 -1
- package/dist/components/reui/cascader/cascader-i18n.d.ts +1 -1
- package/dist/components/reui/cascader/cascader-item.d.ts +12 -12
- package/dist/components/reui/cascader/cascader-item.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-item.js +27 -27
- package/dist/components/reui/cascader/cascader-item.js.map +1 -1
- package/dist/components/reui/cascader/cascader-lib.d.ts +1 -1
- package/dist/components/reui/cascader/cascader-nav.d.ts +12 -12
- package/dist/components/reui/cascader/cascader-nav.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-nav.js +12 -12
- package/dist/components/reui/cascader/cascader-nav.js.map +1 -1
- package/dist/components/reui/cascader/cascader-types.d.ts +1 -1
- package/dist/components/reui/cascader/cascader-virtual.d.ts +4 -4
- package/dist/components/reui/cascader/cascader-virtual.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-virtual.js +13 -13
- package/dist/components/reui/cascader/cascader-virtual.js.map +1 -1
- package/dist/components/reui/cascader/cascader.d.ts +24 -24
- package/dist/components/reui/cascader/cascader.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader.js +110 -110
- package/dist/components/reui/cascader/cascader.js.map +1 -1
- package/dist/components/reui/code-block/code-block.d.ts +1 -1
- package/dist/components/reui/code-block/code-block.js +2 -2
- package/dist/components/reui/code-block/code-block.js.map +1 -1
- package/dist/components/reui/color-picker.d.ts +1 -1
- package/dist/components/reui/color-picker.js +7 -7
- package/dist/components/reui/color-picker.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-cell-selection.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-cell-selection.js +4 -4
- package/dist/components/reui/data-grid/data-grid-cell-selection.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-filter.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-column-filter.js +3 -3
- package/dist/components/reui/data-grid/data-grid-column-header.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-column-header.js +4 -4
- package/dist/components/reui/data-grid/data-grid-column-visibility.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-i18n.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-pagination.js +2 -2
- package/dist/components/reui/data-grid/data-grid-scroll-area.js +3 -3
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js +8 -8
- package/dist/components/reui/data-grid/data-grid-table-dnd.js +6 -6
- package/dist/components/reui/data-grid/data-grid-table-virtual.d.ts +2 -2
- package/dist/components/reui/data-grid/data-grid-table-virtual.js +3 -3
- package/dist/components/reui/data-grid/data-grid-table.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-table.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table.js +4 -4
- package/dist/components/reui/data-grid/data-grid-table.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid.js +2 -2
- package/dist/components/reui/date-selector.js +4 -4
- package/dist/components/reui/emoji-picker.d.ts +1 -1
- package/dist/components/reui/emoji-picker.js +5 -5
- package/dist/components/reui/emoji-picker.js.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-agenda-view.js +6 -6
- package/dist/components/reui/event-calendar/event-calendar-content.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-content.js +3 -3
- package/dist/components/reui/event-calendar/event-calendar-dnd.js +2 -2
- package/dist/components/reui/event-calendar/event-calendar-event.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-event.js +6 -6
- package/dist/components/reui/event-calendar/event-calendar-i18n.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-lib.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-lib.js +4 -4
- package/dist/components/reui/event-calendar/event-calendar-month-view.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-month-view.js +6 -6
- package/dist/components/reui/event-calendar/event-calendar-nav.js +6 -6
- package/dist/components/reui/event-calendar/event-calendar-recurrence.js +1 -1
- package/dist/components/reui/event-calendar/event-calendar-resource-view.js +5 -5
- package/dist/components/reui/event-calendar/event-calendar-time-grid.d.ts +1 -1
- package/dist/components/reui/event-calendar/event-calendar-time-grid.js +5 -5
- package/dist/components/reui/event-calendar/event-calendar.d.ts +3 -3
- package/dist/components/reui/event-calendar/event-calendar.js +4 -4
- package/dist/components/reui/event-calendar/event-calendar.js.map +1 -1
- package/dist/components/reui/file-type.js +1 -1
- package/dist/components/reui/filters/filters-advanced.d.ts +6 -6
- package/dist/components/reui/filters/filters-advanced.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-advanced.js +35 -35
- package/dist/components/reui/filters/filters-advanced.js.map +1 -1
- package/dist/components/reui/filters/filters-builder.d.ts +5 -5
- package/dist/components/reui/filters/filters-builder.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-builder.js +6 -6
- package/dist/components/reui/filters/filters-builder.js.map +1 -1
- package/dist/components/reui/filters/filters-chip.d.ts +10 -10
- package/dist/components/reui/filters/filters-chip.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-chip.js +20 -20
- package/dist/components/reui/filters/filters-chip.js.map +1 -1
- package/dist/components/reui/filters/filters-context.d.ts +11 -11
- package/dist/components/reui/filters/filters-context.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-context.js +27 -27
- package/dist/components/reui/filters/filters-context.js.map +1 -1
- package/dist/components/reui/filters/filters-dnd.d.ts +2 -2
- package/dist/components/reui/filters/filters-dnd.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-dnd.js +5 -5
- package/dist/components/reui/filters/filters-dnd.js.map +1 -1
- package/dist/components/reui/filters/filters-draft.d.ts +1 -1
- package/dist/components/reui/filters/filters-editors.d.ts +9 -9
- package/dist/components/reui/filters/filters-editors.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-editors.js +41 -41
- package/dist/components/reui/filters/filters-editors.js.map +1 -1
- package/dist/components/reui/filters/filters-lib.d.ts +1 -1
- package/dist/components/reui/filters/filters-types.d.ts +7 -7
- package/dist/components/reui/filters/filters-types.d.ts.map +1 -1
- package/dist/components/reui/filters/filters.d.ts +9 -9
- package/dist/components/reui/filters/filters.d.ts.map +1 -1
- package/dist/components/reui/filters/filters.js +56 -56
- package/dist/components/reui/filters/filters.js.map +1 -1
- package/dist/components/reui/frame.d.ts +1 -1
- package/dist/components/reui/frame.js +2 -2
- package/dist/components/reui/frame.js.map +1 -1
- package/dist/components/reui/gantt/gantt-bar.d.ts +1 -1
- package/dist/components/reui/gantt/gantt-bar.js +5 -5
- package/dist/components/reui/gantt/gantt-dnd.js +5 -5
- package/dist/components/reui/gantt/gantt-dnd.js.map +1 -1
- package/dist/components/reui/gantt/gantt-i18n.d.ts +1 -1
- package/dist/components/reui/gantt/gantt-lib.d.ts +1 -1
- package/dist/components/reui/gantt/gantt-lib.js +4 -4
- package/dist/components/reui/gantt/gantt-nav.d.ts +1 -1
- package/dist/components/reui/gantt/gantt-nav.js +6 -6
- package/dist/components/reui/gantt/gantt-recurrence.js +1 -1
- package/dist/components/reui/gantt/gantt-view.js +11 -11
- package/dist/components/reui/gantt/gantt-view.js.map +1 -1
- package/dist/components/reui/gantt/gantt.d.ts +3 -3
- package/dist/components/reui/gantt/gantt.js +4 -4
- package/dist/components/reui/gantt/gantt.js.map +1 -1
- package/dist/components/reui/icon-tile.d.ts +2 -2
- package/dist/components/reui/icon-tile.js +2 -2
- package/dist/components/reui/kanban.d.ts +11 -11
- package/dist/components/reui/kanban.d.ts.map +1 -1
- package/dist/components/reui/kanban.js +3 -3
- package/dist/components/reui/number-field.d.ts +1 -1
- package/dist/components/reui/number-field.js +4 -4
- package/dist/components/reui/phone-input.js +5 -5
- package/dist/components/reui/rating.js +2 -2
- package/dist/components/reui/scrollspy.js +1 -1
- package/dist/components/reui/signature-pad.d.ts +1 -1
- package/dist/components/reui/signature-pad.js +7 -7
- package/dist/components/reui/signature-pad.js.map +1 -1
- package/dist/components/reui/sortable.d.ts +7 -7
- package/dist/components/reui/sortable.d.ts.map +1 -1
- package/dist/components/reui/sortable.js +3 -3
- package/dist/components/reui/stepper.js +2 -2
- package/dist/components/reui/time-picker.d.ts +1 -1
- package/dist/components/reui/time-picker.js +4 -4
- package/dist/components/reui/timeline.js +2 -2
- package/dist/components/reui/tree.js +3 -3
- package/dist/components/ui/accordion.js +2 -2
- package/dist/components/ui/alert-dialog.d.ts +14 -14
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.js +2 -2
- package/dist/components/ui/alert.d.ts +5 -5
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/alert.js +1 -1
- package/dist/components/ui/attachment.d.ts +14 -14
- package/dist/components/ui/attachment.d.ts.map +1 -1
- package/dist/components/ui/attachment.js +4 -4
- package/dist/components/ui/avatar.d.ts +7 -7
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/avatar.js +1 -1
- package/dist/components/ui/badge.d.ts +2 -2
- package/dist/components/ui/badge.js +2 -2
- package/dist/components/ui/breadcrumb.d.ts +8 -8
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.js +3 -3
- package/dist/components/ui/bubble.d.ts +9 -9
- package/dist/components/ui/bubble.d.ts.map +1 -1
- package/dist/components/ui/bubble.js +3 -3
- package/dist/components/ui/button-group.d.ts +3 -3
- package/dist/components/ui/button-group.js +4 -4
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/button.js +2 -2
- package/dist/components/ui/calendar.d.ts +7 -7
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar.js +7 -7
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/card.d.ts +9 -9
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/card.js +1 -1
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/carousel.d.ts +7 -7
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel.js +14 -14
- package/dist/components/ui/carousel.js.map +1 -1
- package/dist/components/ui/chart.d.ts +12 -12
- package/dist/components/ui/chart.d.ts.map +1 -1
- package/dist/components/ui/chart.js +6 -6
- package/dist/components/ui/chart.js.map +1 -1
- package/dist/components/ui/checkbox.js +2 -2
- package/dist/components/ui/code-block.d.ts +13 -13
- package/dist/components/ui/code-block.d.ts.map +1 -1
- package/dist/components/ui/code-block.js +6 -6
- package/dist/components/ui/code-block.js.map +1 -1
- package/dist/components/ui/collapsible.js +1 -1
- package/dist/components/ui/combobox.d.ts +16 -16
- package/dist/components/ui/combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox.js +7 -7
- package/dist/components/ui/combobox.js.map +1 -1
- package/dist/components/ui/command.d.ts +13 -13
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/command.js +3 -3
- package/dist/components/ui/context-menu.d.ts +16 -16
- package/dist/components/ui/context-menu.d.ts.map +1 -1
- package/dist/components/ui/context-menu.js +2 -2
- package/dist/components/ui/dialog.d.ts +12 -12
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.js +3 -3
- package/dist/components/ui/drawer.d.ts +12 -12
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/drawer.js +5 -5
- package/dist/components/ui/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +16 -16
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +2 -2
- package/dist/components/ui/empty.js +1 -1
- package/dist/components/ui/field.d.ts +2 -2
- package/dist/components/ui/field.js +3 -3
- package/dist/components/ui/hover-card.js +1 -1
- package/dist/components/ui/input-group.d.ts +9 -9
- package/dist/components/ui/input-group.d.ts.map +1 -1
- package/dist/components/ui/input-group.js +2 -2
- package/dist/components/ui/input-otp.d.ts +7 -7
- package/dist/components/ui/input-otp.d.ts.map +1 -1
- package/dist/components/ui/input-otp.js +4 -4
- package/dist/components/ui/input-otp.js.map +1 -1
- package/dist/components/ui/input.d.ts +2 -2
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/input.js +1 -1
- package/dist/components/ui/item.d.ts +14 -14
- package/dist/components/ui/item.d.ts.map +1 -1
- package/dist/components/ui/item.js +4 -4
- package/dist/components/ui/label.d.ts +2 -2
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/marker.d.ts +6 -6
- package/dist/components/ui/marker.d.ts.map +1 -1
- package/dist/components/ui/marker.js +3 -3
- package/dist/components/ui/menubar.d.ts +20 -20
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar.js +4 -4
- package/dist/components/ui/message-scroller.d.ts +8 -8
- package/dist/components/ui/message-scroller.d.ts.map +1 -1
- package/dist/components/ui/message-scroller.js +3 -3
- package/dist/components/ui/message.d.ts +8 -8
- package/dist/components/ui/message.d.ts.map +1 -1
- package/dist/components/ui/native-select.d.ts +5 -5
- package/dist/components/ui/native-select.d.ts.map +1 -1
- package/dist/components/ui/native-select.js +1 -1
- package/dist/components/ui/navigation-menu.js +3 -3
- package/dist/components/ui/pagination.d.ts +11 -11
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination.js +2 -2
- package/dist/components/ui/popover.d.ts +7 -7
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/popover.js +1 -1
- package/dist/components/ui/progress.js +1 -1
- package/dist/components/ui/questionnaire.d.ts +17 -17
- package/dist/components/ui/questionnaire.d.ts.map +1 -1
- package/dist/components/ui/questionnaire.js +5 -5
- package/dist/components/ui/questionnaire.js.map +1 -1
- package/dist/components/ui/radio-group.js +2 -2
- package/dist/components/ui/resizable.js +1 -1
- package/dist/components/ui/scroll-area.js +1 -1
- package/dist/components/ui/select.d.ts +10 -10
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +2 -2
- package/dist/components/ui/separator.js +1 -1
- package/dist/components/ui/sheet.d.ts +9 -9
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet.js +3 -3
- package/dist/components/ui/sidebar.d.ts +33 -33
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/sidebar.js +16 -16
- package/dist/components/ui/sidebar.js.map +1 -1
- package/dist/components/ui/slider.js +1 -1
- package/dist/components/ui/spinner.js +1 -1
- package/dist/components/ui/switch.js +1 -1
- package/dist/components/ui/table.d.ts +9 -9
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/tabs.d.ts +2 -2
- package/dist/components/ui/tabs.js +2 -2
- package/dist/components/ui/textarea.d.ts +2 -2
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/toast.d.ts +11 -11
- package/dist/components/ui/toast.d.ts.map +1 -1
- package/dist/components/ui/toast.js +3 -3
- package/dist/components/ui/toggle-group.d.ts +5 -5
- package/dist/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle-group.js +7 -7
- package/dist/components/ui/toggle-group.js.map +1 -1
- package/dist/components/ui/toggle.d.ts +1 -1
- package/dist/components/ui/toggle.js +2 -2
- package/dist/components/ui/tooltip.js +1 -1
- package/dist/components/ui/trace.d.ts +12 -12
- package/dist/components/ui/trace.d.ts.map +1 -1
- package/dist/components/ui/trace.js +3 -3
- package/dist/components/ui/trace.js.map +1 -1
- package/dist/{constants-evLzfUhL.js → constants-DfbfCDSg.js} +3 -6
- package/dist/constants-DfbfCDSg.js.map +1 -0
- package/dist/{context-tv-kneJV.d.ts → context-4tt2I7Qm.d.ts} +39 -6
- package/dist/context-4tt2I7Qm.d.ts.map +1 -0
- package/dist/{context-C5TW-k6u.js → context-B3BNuwGu.js} +47 -31
- package/dist/context-B3BNuwGu.js.map +1 -0
- package/dist/context-BFNkGCGz.d.ts +82 -0
- package/dist/context-BFNkGCGz.d.ts.map +1 -0
- package/dist/{context-DUx44mGi.js → context-BG1Wzdnj.js} +34 -14
- package/dist/context-BG1Wzdnj.js.map +1 -0
- package/dist/{context-ChsuSih6.js → context-Bx-OaIL8.js} +36 -21
- package/dist/context-Bx-OaIL8.js.map +1 -0
- package/dist/{context-3i2_6ly8.js → context-C92iQeLO.js} +13 -5
- package/dist/context-C92iQeLO.js.map +1 -0
- package/dist/{context-CQbvWVnM.js → context-C9LHO4MN.js} +42 -35
- package/dist/context-C9LHO4MN.js.map +1 -0
- package/dist/{context-DdnKlMjE.js → context-CHXHCbuu.js} +18 -4
- package/dist/context-CHXHCbuu.js.map +1 -0
- package/dist/context-CIzAPhXA.js +170 -0
- package/dist/context-CIzAPhXA.js.map +1 -0
- package/dist/context-CP3spicY.d.ts +87 -0
- package/dist/context-CP3spicY.d.ts.map +1 -0
- package/dist/{context-DWXNECDe.js → context-Cg1VelQJ.js} +30 -28
- package/dist/context-Cg1VelQJ.js.map +1 -0
- package/dist/{context-CXlD0FcC.js → context-DDoVOc0D.js} +35 -28
- package/dist/context-DDoVOc0D.js.map +1 -0
- package/dist/{context-D-juVNr2.d.ts → context-DMIy-rFm.d.ts} +29 -3
- package/dist/context-DMIy-rFm.d.ts.map +1 -0
- package/dist/context-DR6jkfea.js +11 -0
- package/dist/context-DR6jkfea.js.map +1 -0
- package/dist/context-DcJtX6ht.js +166 -0
- package/dist/context-DcJtX6ht.js.map +1 -0
- package/dist/{context-i6Dwvi3T.js → context-Dg48xMuG.js} +47 -27
- package/dist/context-Dg48xMuG.js.map +1 -0
- package/dist/context-DnM-b9yO.js +23 -0
- package/dist/context-DnM-b9yO.js.map +1 -0
- package/dist/context-DtFeYksF.d.ts +28 -0
- package/dist/context-DtFeYksF.d.ts.map +1 -0
- package/dist/{context-Dk6C9IvC.js → context-cRAJSFxf.js} +51 -15
- package/dist/context-cRAJSFxf.js.map +1 -0
- package/dist/{context-mjP5wifG.d.ts → context-jX-r_7EP.d.ts} +37 -6
- package/dist/context-jX-r_7EP.d.ts.map +1 -0
- package/dist/{copy-menu-LU54Aruj.js → copy-menu-Bgoo5oWq.js} +46 -27
- package/dist/copy-menu-Bgoo5oWq.js.map +1 -0
- package/dist/{crash-parts-CUv5gFYQ.js → crash-parts-BkrZ6iBE.js} +109 -236
- package/dist/crash-parts-BkrZ6iBE.js.map +1 -0
- package/dist/{data-grid-i18n-BySPLTBy.d.ts → data-grid-i18n-BcJcbW5k.d.ts} +1 -1
- package/dist/{data-grid-i18n-BySPLTBy.d.ts.map → data-grid-i18n-BcJcbW5k.d.ts.map} +1 -1
- package/dist/date-utils-DVDYcEA_.js +35 -0
- package/dist/date-utils-DVDYcEA_.js.map +1 -0
- package/dist/{ease-DjhlGGZO.d.ts → ease-D_-bhUDt.d.ts} +13 -6
- package/dist/ease-D_-bhUDt.d.ts.map +1 -0
- package/dist/{filters-draft-COwwppZX.d.ts → filters-draft-b-BwSZb1.d.ts} +1 -1
- package/dist/{filters-draft-COwwppZX.d.ts.map → filters-draft-b-BwSZb1.d.ts.map} +1 -1
- package/dist/formats-ColrL9Eg.js +58 -0
- package/dist/formats-ColrL9Eg.js.map +1 -0
- package/dist/game-parts-B635BoSe.d.ts +89 -0
- package/dist/game-parts-B635BoSe.d.ts.map +1 -0
- package/dist/hooks/use-controllable.d.ts +10 -0
- package/dist/hooks/use-controllable.d.ts.map +1 -0
- package/dist/hooks/use-controllable.js +39 -0
- package/dist/hooks/use-controllable.js.map +1 -0
- package/dist/hooks/use-copy-to-clipboard.js +5 -5
- package/dist/hooks/use-copy-to-clipboard.js.map +1 -1
- package/dist/hooks/use-copy.d.ts +16 -0
- package/dist/hooks/use-copy.d.ts.map +1 -0
- package/dist/hooks/use-copy.js +36 -0
- package/dist/hooks/use-copy.js.map +1 -0
- package/dist/hooks/use-dismiss.d.ts +17 -5
- package/dist/hooks/use-dismiss.d.ts.map +1 -1
- package/dist/hooks/use-dismiss.js +36 -24
- package/dist/hooks/use-dismiss.js.map +1 -1
- package/dist/hooks/use-favicon.js +1 -1
- package/dist/hooks/use-focus-trap.d.ts +4 -3
- package/dist/hooks/use-focus-trap.d.ts.map +1 -1
- package/dist/hooks/use-focus-trap.js +25 -37
- package/dist/hooks/use-focus-trap.js.map +1 -1
- package/dist/hooks/use-highlighted-code.d.ts +2 -2
- package/dist/hooks/use-highlighted-code.d.ts.map +1 -1
- package/dist/hooks/use-highlighted-code.js +6 -76
- package/dist/hooks/use-highlighted-code.js.map +1 -1
- package/dist/hooks/use-hover-capable.d.ts +1 -1
- package/dist/hooks/use-hover-capable.js +1 -1
- package/dist/hooks/use-hover-capable.js.map +1 -1
- package/dist/hooks/use-hover-gesture.d.ts +5 -5
- package/dist/hooks/use-hover-gesture.js +6 -6
- package/dist/hooks/use-hover-gesture.js.map +1 -1
- package/dist/hooks/use-intersection-observer.d.ts +2 -2
- package/dist/hooks/use-intersection-observer.d.ts.map +1 -1
- package/dist/hooks/use-intersection-observer.js +4 -4
- package/dist/hooks/use-intersection-observer.js.map +1 -1
- package/dist/hooks/use-listbox.d.ts +1 -0
- package/dist/hooks/use-listbox.js +3 -2
- package/dist/hooks/use-listbox.js.map +1 -1
- package/dist/hooks/use-meta-color.js +7 -7
- package/dist/hooks/use-meta-color.js.map +1 -1
- package/dist/hooks/use-mobile.js +3 -3
- package/dist/hooks/use-mobile.js.map +1 -1
- package/dist/hooks/use-modal-scope.js +22 -26
- package/dist/hooks/use-modal-scope.js.map +1 -1
- package/dist/hooks/use-mutation-observer.d.ts +2 -2
- package/dist/hooks/use-mutation-observer.d.ts.map +1 -1
- package/dist/hooks/use-mutation-observer.js +2 -2
- package/dist/hooks/use-mutation-observer.js.map +1 -1
- package/dist/hooks/use-on-open.d.ts +3 -3
- package/dist/hooks/use-on-open.js +3 -3
- package/dist/hooks/use-on-open.js.map +1 -1
- package/dist/hooks/use-row-cursor.d.ts +2 -2
- package/dist/hooks/use-row-cursor.js +2 -2
- package/dist/hooks/use-row-cursor.js.map +1 -1
- package/dist/hooks/use-slider-input.d.ts +4 -4
- package/dist/hooks/use-slider-input.d.ts.map +1 -1
- package/dist/hooks/use-slider.d.ts +13 -3
- package/dist/hooks/use-slider.d.ts.map +1 -1
- package/dist/hooks/use-slider.js +23 -4
- package/dist/hooks/use-slider.js.map +1 -1
- package/dist/hooks/use-status-open.d.ts +26 -0
- package/dist/hooks/use-status-open.d.ts.map +1 -0
- package/dist/hooks/use-status-open.js +43 -0
- package/dist/hooks/use-status-open.js.map +1 -0
- package/dist/hooks/use-tap-gesture.d.ts +3 -3
- package/dist/hooks/use-tap-gesture.js +3 -3
- package/dist/hooks/use-tap-gesture.js.map +1 -1
- package/dist/i18n-BRH0Y7Sm.d.ts +34 -0
- package/dist/i18n-BRH0Y7Sm.d.ts.map +1 -0
- package/dist/lib/audio-context.d.ts +27 -1
- package/dist/lib/audio-context.d.ts.map +1 -1
- package/dist/lib/audio-context.js +61 -2
- package/dist/lib/audio-context.js.map +1 -1
- package/dist/lib/book-sounds.d.ts +18 -0
- package/dist/lib/book-sounds.d.ts.map +1 -0
- package/dist/lib/book-sounds.js +201 -0
- package/dist/lib/book-sounds.js.map +1 -0
- package/dist/lib/color.d.ts +29 -0
- package/dist/lib/color.d.ts.map +1 -0
- package/dist/lib/color.js +93 -0
- package/dist/lib/color.js.map +1 -0
- package/dist/lib/command-search.d.ts +7 -1
- package/dist/lib/command-search.d.ts.map +1 -1
- package/dist/lib/command-search.js +42 -19
- package/dist/lib/command-search.js.map +1 -1
- package/dist/lib/ease.d.ts +2 -2
- package/dist/lib/ease.js +12 -5
- package/dist/lib/ease.js.map +1 -1
- package/dist/lib/focusable.d.ts +10 -0
- package/dist/lib/focusable.d.ts.map +1 -1
- package/dist/lib/focusable.js +31 -1
- package/dist/lib/focusable.js.map +1 -1
- package/dist/lib/game-sounds.d.ts.map +1 -1
- package/dist/lib/game-sounds.js +7 -14
- package/dist/lib/game-sounds.js.map +1 -1
- package/dist/lib/highlighter.d.ts +10 -0
- package/dist/lib/highlighter.d.ts.map +1 -0
- package/dist/lib/highlighter.js +78 -0
- package/dist/lib/highlighter.js.map +1 -0
- package/dist/lib/i18n.d.ts +2 -0
- package/dist/lib/i18n.js +51 -0
- package/dist/lib/i18n.js.map +1 -0
- package/dist/lib/layers.d.ts +24 -0
- package/dist/lib/layers.d.ts.map +1 -0
- package/dist/lib/layers.js +47 -0
- package/dist/lib/layers.js.map +1 -0
- package/dist/lib/merge-refs.d.ts +6 -0
- package/dist/lib/merge-refs.d.ts.map +1 -0
- package/dist/lib/merge-refs.js +15 -0
- package/dist/lib/merge-refs.js.map +1 -0
- package/dist/lib/presence-gate.d.ts +39 -0
- package/dist/lib/presence-gate.d.ts.map +1 -0
- package/dist/{presence-gate-DC7yL1Ls.js → lib/presence-gate.js} +3 -2
- package/dist/lib/presence-gate.js.map +1 -0
- package/dist/lib/scroll-lock.d.ts +13 -0
- package/dist/lib/scroll-lock.d.ts.map +1 -0
- package/dist/lib/scroll-lock.js +59 -0
- package/dist/lib/scroll-lock.js.map +1 -0
- package/dist/lib/sound.d.ts +30 -0
- package/dist/lib/sound.d.ts.map +1 -0
- package/dist/lib/sound.js +95 -0
- package/dist/lib/sound.js.map +1 -0
- package/dist/lib/sounds/bell.d.ts +4 -0
- package/dist/lib/sounds/bell.d.ts.map +1 -0
- package/dist/lib/sounds/bell.js +36 -0
- package/dist/lib/sounds/bell.js.map +1 -0
- package/dist/lib/sounds/bubble.d.ts +4 -0
- package/dist/lib/sounds/bubble.d.ts.map +1 -0
- package/dist/lib/sounds/bubble.js +27 -0
- package/dist/lib/sounds/bubble.js.map +1 -0
- package/dist/lib/sounds/burst.d.ts +4 -0
- package/dist/lib/sounds/burst.d.ts.map +1 -0
- package/dist/lib/sounds/burst.js +45 -0
- package/dist/lib/sounds/burst.js.map +1 -0
- package/dist/lib/sounds/buzz.d.ts +4 -0
- package/dist/lib/sounds/buzz.d.ts.map +1 -0
- package/dist/lib/sounds/buzz.js +26 -0
- package/dist/lib/sounds/buzz.js.map +1 -0
- package/dist/lib/sounds/camera.d.ts +4 -0
- package/dist/lib/sounds/camera.d.ts.map +1 -0
- package/dist/lib/sounds/camera.js +40 -0
- package/dist/lib/sounds/camera.js.map +1 -0
- package/dist/lib/sounds/check.d.ts +4 -0
- package/dist/lib/sounds/check.d.ts.map +1 -0
- package/dist/lib/sounds/check.js +40 -0
- package/dist/lib/sounds/check.js.map +1 -0
- package/dist/lib/sounds/chime.d.ts +4 -0
- package/dist/lib/sounds/chime.d.ts.map +1 -0
- package/dist/lib/sounds/chime.js +33 -0
- package/dist/lib/sounds/chime.js.map +1 -0
- package/dist/lib/sounds/close.d.ts +4 -0
- package/dist/lib/sounds/close.d.ts.map +1 -0
- package/dist/lib/sounds/close.js +36 -0
- package/dist/lib/sounds/close.js.map +1 -0
- package/dist/lib/sounds/coin.d.ts +4 -0
- package/dist/lib/sounds/coin.d.ts.map +1 -0
- package/dist/lib/sounds/coin.js +31 -0
- package/dist/lib/sounds/coin.js.map +1 -0
- package/dist/lib/sounds/collapse.d.ts +4 -0
- package/dist/lib/sounds/collapse.d.ts.map +1 -0
- package/dist/lib/sounds/collapse.js +41 -0
- package/dist/lib/sounds/collapse.js.map +1 -0
- package/dist/lib/sounds/connect.d.ts +4 -0
- package/dist/lib/sounds/connect.d.ts.map +1 -0
- package/dist/lib/sounds/connect.js +39 -0
- package/dist/lib/sounds/connect.js.map +1 -0
- package/dist/lib/sounds/copy.d.ts +4 -0
- package/dist/lib/sounds/copy.d.ts.map +1 -0
- package/dist/lib/sounds/copy.js +39 -0
- package/dist/lib/sounds/copy.js.map +1 -0
- package/dist/lib/sounds/delete.d.ts +4 -0
- package/dist/lib/sounds/delete.d.ts.map +1 -0
- package/dist/lib/sounds/delete.js +39 -0
- package/dist/lib/sounds/delete.js.map +1 -0
- package/dist/lib/sounds/disconnect.d.ts +4 -0
- package/dist/lib/sounds/disconnect.d.ts.map +1 -0
- package/dist/lib/sounds/disconnect.js +39 -0
- package/dist/lib/sounds/disconnect.js.map +1 -0
- package/dist/lib/sounds/dismiss.d.ts +4 -0
- package/dist/lib/sounds/dismiss.d.ts.map +1 -0
- package/dist/lib/sounds/dismiss.js +27 -0
- package/dist/lib/sounds/dismiss.js.map +1 -0
- package/dist/lib/sounds/dock.d.ts +4 -0
- package/dist/lib/sounds/dock.d.ts.map +1 -0
- package/dist/lib/sounds/dock.js +32 -0
- package/dist/lib/sounds/dock.js.map +1 -0
- package/dist/lib/sounds/drop.d.ts +4 -0
- package/dist/lib/sounds/drop.d.ts.map +1 -0
- package/dist/lib/sounds/drop.js +48 -0
- package/dist/lib/sounds/drop.js.map +1 -0
- package/dist/lib/sounds/engine.d.ts +142 -0
- package/dist/lib/sounds/engine.d.ts.map +1 -0
- package/dist/lib/sounds/engine.js +210 -0
- package/dist/lib/sounds/engine.js.map +1 -0
- package/dist/lib/sounds/error.d.ts +4 -0
- package/dist/lib/sounds/error.d.ts.map +1 -0
- package/dist/lib/sounds/error.js +51 -0
- package/dist/lib/sounds/error.js.map +1 -0
- package/dist/lib/sounds/expand.d.ts +4 -0
- package/dist/lib/sounds/expand.d.ts.map +1 -0
- package/dist/lib/sounds/expand.js +28 -0
- package/dist/lib/sounds/expand.js.map +1 -0
- package/dist/lib/sounds/heart.d.ts +4 -0
- package/dist/lib/sounds/heart.d.ts.map +1 -0
- package/dist/lib/sounds/heart.js +39 -0
- package/dist/lib/sounds/heart.js.map +1 -0
- package/dist/lib/sounds/lift.d.ts +4 -0
- package/dist/lib/sounds/lift.d.ts.map +1 -0
- package/dist/lib/sounds/lift.js +34 -0
- package/dist/lib/sounds/lift.js.map +1 -0
- package/dist/lib/sounds/lock.d.ts +4 -0
- package/dist/lib/sounds/lock.d.ts.map +1 -0
- package/dist/lib/sounds/lock.js +32 -0
- package/dist/lib/sounds/lock.js.map +1 -0
- package/dist/lib/sounds/navigate.d.ts +4 -0
- package/dist/lib/sounds/navigate.d.ts.map +1 -0
- package/dist/lib/sounds/navigate.js +36 -0
- package/dist/lib/sounds/navigate.js.map +1 -0
- package/dist/lib/sounds/notify.d.ts +4 -0
- package/dist/lib/sounds/notify.d.ts.map +1 -0
- package/dist/lib/sounds/notify.js +31 -0
- package/dist/lib/sounds/notify.js.map +1 -0
- package/dist/lib/sounds/open.d.ts +4 -0
- package/dist/lib/sounds/open.d.ts.map +1 -0
- package/dist/lib/sounds/open.js +36 -0
- package/dist/lib/sounds/open.js.map +1 -0
- package/dist/lib/sounds/ping.d.ts +4 -0
- package/dist/lib/sounds/ping.d.ts.map +1 -0
- package/dist/lib/sounds/ping.js +30 -0
- package/dist/lib/sounds/ping.js.map +1 -0
- package/dist/lib/sounds/pop.d.ts +4 -0
- package/dist/lib/sounds/pop.d.ts.map +1 -0
- package/dist/lib/sounds/pop.js +27 -0
- package/dist/lib/sounds/pop.js.map +1 -0
- package/dist/lib/sounds/press.d.ts +4 -0
- package/dist/lib/sounds/press.d.ts.map +1 -0
- package/dist/lib/sounds/press.js +40 -0
- package/dist/lib/sounds/press.js.map +1 -0
- package/dist/lib/sounds/receive.d.ts +4 -0
- package/dist/lib/sounds/receive.d.ts.map +1 -0
- package/dist/lib/sounds/receive.js +39 -0
- package/dist/lib/sounds/receive.js.map +1 -0
- package/dist/lib/sounds/refresh.d.ts +4 -0
- package/dist/lib/sounds/refresh.d.ts.map +1 -0
- package/dist/lib/sounds/refresh.js +34 -0
- package/dist/lib/sounds/refresh.js.map +1 -0
- package/dist/lib/sounds/reveal.d.ts +4 -0
- package/dist/lib/sounds/reveal.d.ts.map +1 -0
- package/dist/lib/sounds/reveal.js +34 -0
- package/dist/lib/sounds/reveal.js.map +1 -0
- package/dist/lib/sounds/select.d.ts +4 -0
- package/dist/lib/sounds/select.d.ts.map +1 -0
- package/dist/lib/sounds/select.js +32 -0
- package/dist/lib/sounds/select.js.map +1 -0
- package/dist/lib/sounds/send.d.ts +4 -0
- package/dist/lib/sounds/send.d.ts.map +1 -0
- package/dist/lib/sounds/send.js +35 -0
- package/dist/lib/sounds/send.js.map +1 -0
- package/dist/lib/sounds/shutter.d.ts +4 -0
- package/dist/lib/sounds/shutter.d.ts.map +1 -0
- package/dist/lib/sounds/shutter.js +40 -0
- package/dist/lib/sounds/shutter.js.map +1 -0
- package/dist/lib/sounds/snap.d.ts +4 -0
- package/dist/lib/sounds/snap.d.ts.map +1 -0
- package/dist/lib/sounds/snap.js +33 -0
- package/dist/lib/sounds/snap.js.map +1 -0
- package/dist/lib/sounds/star.d.ts +4 -0
- package/dist/lib/sounds/star.d.ts.map +1 -0
- package/dist/lib/sounds/star.js +38 -0
- package/dist/lib/sounds/star.js.map +1 -0
- package/dist/lib/sounds/success.d.ts +4 -0
- package/dist/lib/sounds/success.d.ts.map +1 -0
- package/dist/lib/sounds/success.js +39 -0
- package/dist/lib/sounds/success.js.map +1 -0
- package/dist/lib/sounds/swipe.d.ts +4 -0
- package/dist/lib/sounds/swipe.d.ts.map +1 -0
- package/dist/lib/sounds/swipe.js +29 -0
- package/dist/lib/sounds/swipe.js.map +1 -0
- package/dist/lib/sounds/switch.d.ts +4 -0
- package/dist/lib/sounds/switch.d.ts.map +1 -0
- package/dist/lib/sounds/switch.js +40 -0
- package/dist/lib/sounds/switch.js.map +1 -0
- package/dist/lib/sounds/tap.d.ts +4 -0
- package/dist/lib/sounds/tap.d.ts.map +1 -0
- package/dist/lib/sounds/tap.js +33 -0
- package/dist/lib/sounds/tap.js.map +1 -0
- package/dist/lib/sounds/tick.d.ts +4 -0
- package/dist/lib/sounds/tick.d.ts.map +1 -0
- package/dist/lib/sounds/tick.js +26 -0
- package/dist/lib/sounds/tick.js.map +1 -0
- package/dist/lib/sounds/timer.d.ts +4 -0
- package/dist/lib/sounds/timer.d.ts.map +1 -0
- package/dist/lib/sounds/timer.js +26 -0
- package/dist/lib/sounds/timer.js.map +1 -0
- package/dist/lib/sounds/toggle.d.ts +6 -0
- package/dist/lib/sounds/toggle.d.ts.map +1 -0
- package/dist/lib/sounds/toggle.js +79 -0
- package/dist/lib/sounds/toggle.js.map +1 -0
- package/dist/lib/sounds/trash.d.ts +4 -0
- package/dist/lib/sounds/trash.d.ts.map +1 -0
- package/dist/lib/sounds/trash.js +40 -0
- package/dist/lib/sounds/trash.js.map +1 -0
- package/dist/lib/sounds/type.d.ts +4 -0
- package/dist/lib/sounds/type.d.ts.map +1 -0
- package/dist/lib/sounds/type.js +35 -0
- package/dist/lib/sounds/type.js.map +1 -0
- package/dist/lib/sounds/unlock.d.ts +4 -0
- package/dist/lib/sounds/unlock.d.ts.map +1 -0
- package/dist/lib/sounds/unlock.js +41 -0
- package/dist/lib/sounds/unlock.js.map +1 -0
- package/dist/lib/sounds/warning.d.ts +4 -0
- package/dist/lib/sounds/warning.d.ts.map +1 -0
- package/dist/lib/sounds/warning.js +29 -0
- package/dist/lib/sounds/warning.js.map +1 -0
- package/dist/lib/sounds/whisper.d.ts +4 -0
- package/dist/lib/sounds/whisper.d.ts.map +1 -0
- package/dist/lib/sounds/whisper.js +27 -0
- package/dist/lib/sounds/whisper.js.map +1 -0
- package/dist/lib/text-shimmer.d.ts +6 -0
- package/dist/lib/text-shimmer.d.ts.map +1 -1
- package/dist/lib/text-shimmer.js +7 -1
- package/dist/lib/text-shimmer.js.map +1 -1
- package/dist/lib/tick-sound.d.ts.map +1 -1
- package/dist/lib/tick-sound.js +8 -11
- package/dist/lib/tick-sound.js.map +1 -1
- package/dist/lib/touch.d.ts +10 -10
- package/dist/lib/touch.js +10 -10
- package/dist/lib/touch.js.map +1 -1
- package/dist/listbox-panel-BX74YCzI.d.ts +31 -0
- package/dist/listbox-panel-BX74YCzI.d.ts.map +1 -0
- package/dist/menu-button-CbEYps6k.d.ts +29 -0
- package/dist/menu-button-CbEYps6k.d.ts.map +1 -0
- package/dist/menu-sub-button-NgS4JryG.d.ts +25 -0
- package/dist/menu-sub-button-NgS4JryG.d.ts.map +1 -0
- package/dist/messages-BYMFNf5X.d.ts +13 -0
- package/dist/messages-BYMFNf5X.d.ts.map +1 -0
- package/dist/messages-CVaE8xc6.js +14 -0
- package/dist/messages-CVaE8xc6.js.map +1 -0
- package/dist/messages-CqyH8Hd7.js +21 -0
- package/dist/messages-CqyH8Hd7.js.map +1 -0
- package/dist/messages-CrtN5AXG.js +20 -0
- package/dist/messages-CrtN5AXG.js.map +1 -0
- package/dist/messages-D0lxgjNm.d.ts +31 -0
- package/dist/messages-D0lxgjNm.d.ts.map +1 -0
- package/dist/messages-D4axySpl.d.ts +21 -0
- package/dist/messages-D4axySpl.d.ts.map +1 -0
- package/dist/messages-Dyou6PVt.d.ts +23 -0
- package/dist/messages-Dyou6PVt.d.ts.map +1 -0
- package/dist/messages-azsh5xBO.d.ts +20 -0
- package/dist/messages-azsh5xBO.d.ts.map +1 -0
- package/dist/messages-ogb0tIIX.d.ts +23 -0
- package/dist/messages-ogb0tIIX.d.ts.map +1 -0
- package/dist/messages-tLRkxZwI.d.ts +33 -0
- package/dist/messages-tLRkxZwI.d.ts.map +1 -0
- package/dist/{model-BFZGhrnQ.d.ts → model-CHHE1lHQ.d.ts} +5 -1
- package/dist/model-CHHE1lHQ.d.ts.map +1 -0
- package/dist/{model-DuAc65oe.d.ts → model-D6sI_4m9.d.ts} +5 -1
- package/dist/model-D6sI_4m9.d.ts.map +1 -0
- package/dist/{model-mS4UXPwk.d.ts → model-DUQnYLRU.d.ts} +3 -1
- package/dist/model-DUQnYLRU.d.ts.map +1 -0
- package/dist/{model-CvWolJdo.d.ts → model-Dafi-gx6.d.ts} +2 -1
- package/dist/model-Dafi-gx6.d.ts.map +1 -0
- package/dist/motion-1TeD2tw9.js +67 -0
- package/dist/motion-1TeD2tw9.js.map +1 -0
- package/dist/{path-VEfFUowr.d.ts → path-DMP3rnd1.d.ts} +1 -1
- package/dist/path-DMP3rnd1.d.ts.map +1 -0
- package/dist/placement-BRE79jXm.d.ts +4 -0
- package/dist/placement-BRE79jXm.d.ts.map +1 -0
- package/dist/placement-Cg-Y5tLI.js +74 -0
- package/dist/placement-Cg-Y5tLI.js.map +1 -0
- package/dist/{plot-CTQFrQKi.js → plot-CSTtMo6j.js} +13 -13
- package/dist/plot-CSTtMo6j.js.map +1 -0
- package/dist/popover-morph-CWb4N9ux.d.ts +55 -0
- package/dist/popover-morph-CWb4N9ux.d.ts.map +1 -0
- package/dist/{popover-position-BaDNBZ-D.js → popover-position-U1ZMRPsY.js} +1 -1
- package/dist/{popover-position-BaDNBZ-D.js.map → popover-position-U1ZMRPsY.js.map} +1 -1
- package/dist/{positioner-MidjIUUT.js → positioner-CFR4mJg6.js} +117 -9
- package/dist/positioner-CFR4mJg6.js.map +1 -0
- package/dist/resource-row-PkgPS9Hk.js +290 -0
- package/dist/resource-row-PkgPS9Hk.js.map +1 -0
- package/dist/root-C1n8-uIA.js +420 -0
- package/dist/root-C1n8-uIA.js.map +1 -0
- package/dist/{scale-DSsaupNc.d.ts → scale-BLDMdHAp.d.ts} +1 -1
- package/dist/scale-BLDMdHAp.d.ts.map +1 -0
- package/dist/{use-inspection-CZhdpH8J.js → scale-JwdKsMkj.js} +2 -55
- package/dist/scale-JwdKsMkj.js.map +1 -0
- package/dist/theme.css +98 -4
- package/dist/{tooltip-w0KptZat.d.ts → tooltip-CoAbjn9I.d.ts} +9 -1
- package/dist/tooltip-CoAbjn9I.d.ts.map +1 -0
- package/dist/{tooltip-CNEYdIX3.d.ts → tooltip-DI79u-1V.d.ts} +28 -2
- package/dist/tooltip-DI79u-1V.d.ts.map +1 -0
- package/dist/{tooltip-CMVyNolz.d.ts → tooltip-DPci40hM.d.ts} +21 -2
- package/dist/tooltip-DPci40hM.d.ts.map +1 -0
- package/dist/{tooltip-Cq46pSJ2.d.ts → tooltip-X7sMXf98.d.ts} +31 -3
- package/dist/tooltip-X7sMXf98.d.ts.map +1 -0
- package/dist/{tooltip-content-K0vPsEtI.d.ts → tooltip-content-Dr8bhW-q.d.ts} +4 -2
- package/dist/tooltip-content-Dr8bhW-q.d.ts.map +1 -0
- package/dist/{tooltip-CuHpilPN.js → tooltip-gHv-6eOs.js} +58 -47
- package/dist/tooltip-gHv-6eOs.js.map +1 -0
- package/dist/{tooltip-BVRmgnbZ.d.ts → tooltip-gKOUHp_1.d.ts} +28 -2
- package/dist/tooltip-gKOUHp_1.d.ts.map +1 -0
- package/dist/types-BhZ0FwDi.d.ts +33 -0
- package/dist/types-BhZ0FwDi.d.ts.map +1 -0
- package/dist/types-BnHpfLje.d.ts +111 -0
- package/dist/types-BnHpfLje.d.ts.map +1 -0
- package/dist/types-COoUai3R.d.ts +64 -0
- package/dist/types-COoUai3R.d.ts.map +1 -0
- package/dist/{types-D9hKqIzm.d.ts → types-CbBZy33k.d.ts} +34 -2
- package/dist/types-CbBZy33k.d.ts.map +1 -0
- package/dist/{types-BB61jXS_.d.ts → types-ClKnPGuP.d.ts} +21 -4
- package/dist/types-ClKnPGuP.d.ts.map +1 -0
- package/dist/types-DPKILbI9.d.ts +37 -0
- package/dist/types-DPKILbI9.d.ts.map +1 -0
- package/dist/types-Dbiy485_.d.ts +114 -0
- package/dist/types-Dbiy485_.d.ts.map +1 -0
- package/dist/{types-BSMELKE5.d.ts → types-DlSHf6nJ.d.ts} +1 -1
- package/dist/types-DlSHf6nJ.d.ts.map +1 -0
- package/dist/types-DtUnNprK.d.ts +53 -0
- package/dist/types-DtUnNprK.d.ts.map +1 -0
- package/dist/{use-crash-game-B3RHxFkm.d.ts → use-crash-game-C6JPLvAH.d.ts} +60 -5
- package/dist/use-crash-game-C6JPLvAH.d.ts.map +1 -0
- package/dist/use-filtered-options-3TcVsHzV.js +167 -0
- package/dist/use-filtered-options-3TcVsHzV.js.map +1 -0
- package/dist/use-filtered-options-BbXqmJmZ.d.ts +14 -0
- package/dist/use-filtered-options-BbXqmJmZ.d.ts.map +1 -0
- package/dist/{use-geometry-C84j2gUk.d.ts → use-geometry-BajLqxjC.d.ts} +1 -1
- package/dist/use-geometry-BajLqxjC.d.ts.map +1 -0
- package/dist/use-inspection-LoyxxJk8.js +31 -0
- package/dist/use-inspection-LoyxxJk8.js.map +1 -0
- package/dist/use-menu-navigation-B17_iK_B.js +57 -0
- package/dist/use-menu-navigation-B17_iK_B.js.map +1 -0
- package/dist/{use-points-C2jpElHh.js → use-points-y0l-9pdN.js} +1 -1
- package/dist/use-points-y0l-9pdN.js.map +1 -0
- package/dist/{use-position-CWSE4wCz.d.ts → use-position-ac-sSZRY.d.ts} +3 -1
- package/dist/use-position-ac-sSZRY.d.ts.map +1 -0
- package/dist/use-width-DZex74TT.js +45 -0
- package/dist/use-width-DZex74TT.js.map +1 -0
- package/dist/utils-Dve5wIjB.js +56 -0
- package/dist/utils-Dve5wIjB.js.map +1 -0
- package/dist/{utils-ZRfJ78Df.js → utils-F-hKjEFd.js} +1 -1
- package/dist/utils-F-hKjEFd.js.map +1 -0
- package/dist/utils-f7_cAAwc.js +55 -0
- package/dist/utils-f7_cAAwc.js.map +1 -0
- package/package.json +18 -18
- package/dist/account-avatar--0_0u0WW.js.map +0 -1
- package/dist/cascader-types-Bh_kJ3Qw.d.ts.map +0 -1
- package/dist/components/agents/agent-activity/index.d.ts +0 -4
- package/dist/components/agents/agent-activity/index.d.ts.map +0 -1
- package/dist/components/agents/agent-activity/index.js.map +0 -1
- package/dist/components/agents/approval-card/index.d.ts +0 -49
- package/dist/components/agents/approval-card/index.d.ts.map +0 -1
- package/dist/components/agents/approval-card/index.js +0 -314
- package/dist/components/agents/approval-card/index.js.map +0 -1
- package/dist/components/motion/animated-sidebar.js.map +0 -1
- package/dist/components/motion/animated-toast-stack.d.ts.map +0 -1
- package/dist/components/motion/animated-toast-stack.js.map +0 -1
- package/dist/components/motion/availability-scheduler/index.d.ts +0 -12
- package/dist/components/motion/availability-scheduler/index.d.ts.map +0 -1
- package/dist/components/motion/availability-scheduler/index.js.map +0 -1
- package/dist/components/motion/button/index.d.ts +0 -5
- package/dist/components/motion/button/index.js +0 -6
- package/dist/components/motion/combobox/context.d.ts.map +0 -1
- package/dist/components/motion/combobox/context.js.map +0 -1
- package/dist/components/motion/multi-select/context.d.ts.map +0 -1
- package/dist/components/motion/multi-select/context.js.map +0 -1
- package/dist/components/motion/popover-morph.d.ts.map +0 -1
- package/dist/components/motion/table/index.d.ts.map +0 -1
- package/dist/components/motion/table/index.js.map +0 -1
- package/dist/components/motion/wallet-card/index.d.ts +0 -11
- package/dist/components/motion/wallet-card/index.d.ts.map +0 -1
- package/dist/components/motion/wallet-card/index.js.map +0 -1
- package/dist/constants-evLzfUhL.js.map +0 -1
- package/dist/context-3i2_6ly8.js.map +0 -1
- package/dist/context-C5TW-k6u.js.map +0 -1
- package/dist/context-CQbvWVnM.js.map +0 -1
- package/dist/context-CXlD0FcC.js.map +0 -1
- package/dist/context-ChsuSih6.js.map +0 -1
- package/dist/context-D-juVNr2.d.ts.map +0 -1
- package/dist/context-DUx44mGi.js.map +0 -1
- package/dist/context-DWXNECDe.js.map +0 -1
- package/dist/context-DdnKlMjE.js.map +0 -1
- package/dist/context-Dk6C9IvC.js.map +0 -1
- package/dist/context-i6Dwvi3T.js.map +0 -1
- package/dist/context-mjP5wifG.d.ts.map +0 -1
- package/dist/context-tv-kneJV.d.ts.map +0 -1
- package/dist/copy-menu-LU54Aruj.js.map +0 -1
- package/dist/crash-parts-CUv5gFYQ.js.map +0 -1
- package/dist/ease-DjhlGGZO.d.ts.map +0 -1
- package/dist/model-BFZGhrnQ.d.ts.map +0 -1
- package/dist/model-CvWolJdo.d.ts.map +0 -1
- package/dist/model-DuAc65oe.d.ts.map +0 -1
- package/dist/model-mS4UXPwk.d.ts.map +0 -1
- package/dist/path-VEfFUowr.d.ts.map +0 -1
- package/dist/plot-CTQFrQKi.js.map +0 -1
- package/dist/positioner-MidjIUUT.js.map +0 -1
- package/dist/presence-gate-DC7yL1Ls.js.map +0 -1
- package/dist/scale-DSsaupNc.d.ts.map +0 -1
- package/dist/tooltip-BVRmgnbZ.d.ts.map +0 -1
- package/dist/tooltip-CMVyNolz.d.ts.map +0 -1
- package/dist/tooltip-CNEYdIX3.d.ts.map +0 -1
- package/dist/tooltip-Cq46pSJ2.d.ts.map +0 -1
- package/dist/tooltip-CuHpilPN.js.map +0 -1
- package/dist/tooltip-content-K0vPsEtI.d.ts.map +0 -1
- package/dist/tooltip-w0KptZat.d.ts.map +0 -1
- package/dist/types-B0d0d7PF.d.ts +0 -34
- package/dist/types-B0d0d7PF.d.ts.map +0 -1
- package/dist/types-BB61jXS_.d.ts.map +0 -1
- package/dist/types-BSMELKE5.d.ts.map +0 -1
- package/dist/types-D9hKqIzm.d.ts.map +0 -1
- package/dist/types-qTGsGdN1.d.ts +0 -20
- package/dist/types-qTGsGdN1.d.ts.map +0 -1
- package/dist/use-active-option-DerS-wGL.js +0 -85
- package/dist/use-active-option-DerS-wGL.js.map +0 -1
- package/dist/use-crash-game-B3RHxFkm.d.ts.map +0 -1
- package/dist/use-geometry-C84j2gUk.d.ts.map +0 -1
- package/dist/use-inspection-CZhdpH8J.js.map +0 -1
- package/dist/use-points-C2jpElHh.js.map +0 -1
- package/dist/use-position-CWSE4wCz.d.ts.map +0 -1
- package/dist/use-width-CkKCh1b3.js +0 -23
- package/dist/use-width-CkKCh1b3.js.map +0 -1
- package/dist/utils-DMrlhG6M.js +0 -25
- package/dist/utils-DMrlhG6M.js.map +0 -1
- package/dist/utils-ZRfJ78Df.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plot.js","names":[],"sources":["../../../../src/components/charts/treemap/plot.tsx"],"sourcesContent":["\"use client\";\n\nimport { type KeyboardEvent, type ReactNode, useId, useLayoutEffect, useRef } from \"react\";\nimport { AnimatePresence, LayoutGroup } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { useTreemap } from \"./context\";\nimport type { TreemapTile } from \"./model\";\nimport { TreemapCell } from \"./tile\";\n\nexport interface TreemapPlotProps {\n /** Sets the plot height; default 20rem. The layout follows its measured dimensions. */\n className?: string;\n tileClassName?: string;\n /** Return presentation content only; each tile already owns its button and accessible name. */\n renderTile?: (tile: TreemapTile) => ReactNode;\n}\n\nexport function TreemapPlot({ className, tileClassName, renderTile }: TreemapPlotProps) {\n const { tiles, items, plotRef, setSize, cursor, buttons, setActive, setTooltipOpen } =\n useTreemap();\n const layoutId = useId();\n const focusedId = useRef<string | null>(null);\n
|
|
1
|
+
{"version":3,"file":"plot.js","names":[],"sources":["../../../../src/components/charts/treemap/plot.tsx"],"sourcesContent":["\"use client\";\n\nimport { type KeyboardEvent, type ReactNode, useId, useLayoutEffect, useRef } from \"react\";\nimport { AnimatePresence, LayoutGroup } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { useElementSize } from \"../xy/use-width\";\nimport { useTreemap } from \"./context\";\nimport type { TreemapTile } from \"./model\";\nimport { TreemapCell } from \"./tile\";\n\nexport interface TreemapPlotProps {\n /** Sets the plot height; default 20rem. The layout follows its measured dimensions. */\n className?: string;\n /** Classes merged onto every tile button. */\n tileClassName?: string;\n /** Return presentation content only; each tile already owns its button and accessible name. */\n renderTile?: (tile: TreemapTile) => ReactNode;\n}\n\nexport function TreemapPlot({ className, tileClassName, renderTile }: TreemapPlotProps) {\n const { tiles, items, plotRef, setSize, cursor, buttons, setActive, setTooltipOpen, t } =\n useTreemap();\n const layoutId = useId();\n const focusedId = useRef<string | null>(null);\n useElementSize(plotRef, setSize);\n useLayoutEffect(() => {\n const id = focusedId.current;\n if (!id || tiles.some((tile) => tile.id === id)) return;\n focusedId.current = null;\n const lost = buttons.current.get(id);\n if (document.activeElement === lost || document.activeElement === document.body) {\n const replacement = tiles[cursor.activeIndex];\n if (replacement) buttons.current.get(replacement.id)?.focus();\n else plotRef.current?.focus();\n }\n }, [tiles, cursor.activeIndex, buttons, plotRef]);\n const onKeyDown = (event: KeyboardEvent<HTMLDivElement>) => {\n if (!(event.target instanceof HTMLButtonElement)) return;\n const id = event.target.dataset.treemapTile;\n const current = tiles.find((tile) => tile.id === id);\n if (!current) return;\n if (event.key === \"Escape\") {\n setTooltipOpen(false);\n return;\n }\n if (![\"ArrowLeft\", \"ArrowRight\", \"ArrowUp\", \"ArrowDown\", \"Home\", \"End\"].includes(event.key))\n return;\n event.preventDefault();\n let next = current;\n if (event.key === \"Home\") next = tiles[0];\n else if (event.key === \"End\") next = tiles[tiles.length - 1];\n else {\n const horizontal = event.key === \"ArrowLeft\" || event.key === \"ArrowRight\";\n const direction = event.key === \"ArrowLeft\" || event.key === \"ArrowUp\" ? -1 : 1;\n const cx = current.x + current.width / 2;\n const cy = current.y + current.height / 2;\n let best = Number.POSITIVE_INFINITY;\n for (const tile of tiles) {\n const dx = tile.x + tile.width / 2 - cx;\n const dy = tile.y + tile.height / 2 - cy;\n const forward = (horizontal ? dx : dy) * direction;\n const cross = Math.abs(horizontal ? dy : dx);\n const score = forward + cross * 2;\n if (forward > 0.01 && score < best) {\n next = tile;\n best = score;\n }\n }\n }\n setTooltipOpen(true);\n if (next.id === current.id) setActive(current.id);\n else buttons.current.get(next.id)?.focus();\n };\n return (\n <LayoutGroup id={layoutId}>\n <div\n ref={plotRef}\n role=\"group\"\n aria-label={t(\"tiles\")}\n tabIndex={-1}\n data-slot=\"treemap-plot\"\n className={cn(\n \"focus-visible:ring-ring relative h-80 w-full min-w-0 rounded-lg outline-none focus-visible:ring-2\",\n className,\n )}\n onKeyDown={onKeyDown}\n onFocus={(event) => {\n if (event.target instanceof HTMLButtonElement)\n focusedId.current = event.target.dataset.treemapTile ?? null;\n }}\n onBlur={(event) => {\n if (!event.currentTarget.contains(event.relatedTarget)) {\n focusedId.current = null;\n setTooltipOpen(false);\n }\n }}\n onPointerLeave={() => setTooltipOpen(false)}\n >\n <AnimatePresence initial={false}>\n {tiles.map((tile) => (\n <TreemapCell\n key={tile.id}\n tile={tile}\n className={tileClassName}\n renderTile={renderTile}\n />\n ))}\n </AnimatePresence>\n {!tiles.length ? (\n <p className=\"text-muted-foreground flex h-full items-center justify-center text-sm\">\n {items.length ? t(\"noPositive\") : t(\"empty\")}\n </p>\n ) : null}\n </div>\n </LayoutGroup>\n );\n}\n"],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as TreemapTile } from "../../../model-BFZGhrnQ.js";
|
|
2
1
|
import { ReactNode } from "react";
|
|
2
|
+
import { o as TreemapTile } from "../../../model-CHHE1lHQ.js";
|
|
3
3
|
export declare function TreemapCell({ tile, className, renderTile }: {
|
|
4
4
|
tile: TreemapTile;
|
|
5
5
|
className?: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { EASE_OUT, SPRING_LAYOUT } from "../../../lib/ease.js";
|
|
3
|
-
import { n as useTreemap } from "../../../context-DWXNECDe.js";
|
|
4
2
|
import { useCallback } from "react";
|
|
3
|
+
import { motion, useIsPresent } from "motion/react";
|
|
5
4
|
import { cn } from "@kumix/utils";
|
|
5
|
+
import { EASE_OUT, SPRING_LAYOUT } from "../../../lib/ease.js";
|
|
6
|
+
import { n as useTreemap } from "../../../context-Cg1VelQJ.js";
|
|
6
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import { motion, useIsPresent } from "motion/react";
|
|
8
8
|
// src/components/charts/treemap/tile.tsx
|
|
9
9
|
function TreemapCell({ tile, className, renderTile }) {
|
|
10
|
-
const { size, active, setActive, cursor, tiles, formatValue, tooltipId, tooltipOpen, setTooltipOpen, reduce, canHover, registerButton } = useTreemap();
|
|
10
|
+
const { size, active, setActive, cursor, tiles, formatValue, tooltipId, tooltipOpen, setTooltipOpen, reduce, canHover, registerButton, t } = useTreemap();
|
|
11
11
|
const present = useIsPresent();
|
|
12
12
|
const ref = useCallback((node) => registerButton(tile.id, node), [tile.id, registerButton]);
|
|
13
13
|
const selected = tooltipOpen && active?.id === tile.id;
|
|
@@ -26,7 +26,7 @@ function TreemapCell({ tile, className, renderTile }) {
|
|
|
26
26
|
"aria-label": [
|
|
27
27
|
tile.path.join(" / "),
|
|
28
28
|
formatValue(tile.value),
|
|
29
|
-
|
|
29
|
+
t("ofTotal", { share: (tile.share * 100).toFixed(1) }),
|
|
30
30
|
tile.description
|
|
31
31
|
].filter(Boolean).join(". "),
|
|
32
32
|
"aria-describedby": present && selected ? tooltipId : void 0,
|
|
@@ -89,10 +89,10 @@ function TreemapCell({ tile, className, renderTile }) {
|
|
|
89
89
|
transition: reduce ? { duration: 0 } : SPRING_LAYOUT,
|
|
90
90
|
className: "absolute inset-x-2 top-2 min-w-0 sm:inset-x-3 sm:top-3",
|
|
91
91
|
children: renderTile ? renderTile(tile) : showLabel ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
92
|
-
className: "block truncate text-xs font-
|
|
92
|
+
className: "block truncate text-xs font-medium sm:text-sm",
|
|
93
93
|
children: tile.label
|
|
94
94
|
}), showValue ? /* @__PURE__ */ jsx("span", {
|
|
95
|
-
className: "mt-1 block truncate font-mono text-[
|
|
95
|
+
className: "mt-1 block truncate font-mono text-[11px] tabular-nums opacity-80 sm:text-xs",
|
|
96
96
|
children: formatValue(tile.value)
|
|
97
97
|
}) : null] }) : null
|
|
98
98
|
}), /* @__PURE__ */ jsx(motion.span, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tile.js","names":[],"sources":["../../../../src/components/charts/treemap/tile.tsx"],"sourcesContent":["\"use client\";\n\nimport { type ReactNode, useCallback } from \"react\";\nimport { motion, useIsPresent } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_OUT, SPRING_LAYOUT } from \"../../../lib/ease\";\nimport { useTreemap } from \"./context\";\nimport type { TreemapTile } from \"./model\";\n\nexport function TreemapCell({\n tile,\n className,\n renderTile,\n}: {\n tile: TreemapTile;\n className?: string;\n renderTile?: (tile: TreemapTile) => ReactNode;\n}) {\n const {\n size,\n active,\n setActive,\n cursor,\n tiles,\n formatValue,\n tooltipId,\n tooltipOpen,\n setTooltipOpen,\n reduce,\n canHover,\n registerButton,\n } = useTreemap();\n const present = useIsPresent();\n const ref = useCallback(\n (node: HTMLButtonElement | null) => registerButton(tile.id, node),\n [tile.id, registerButton],\n );\n const selected = tooltipOpen && active?.id === tile.id;\n const width = tile.width / size.width;\n const height = tile.height / size.height;\n // Small tiles remain inspectable; their labels stay in the accessible name\n // and exact-data table rather than spilling into neighbouring rectangles.\n const showLabel = tile.width >= 52 && tile.height >= 32;\n const showValue = tile.width >= 70 && tile.height >= 56;\n return (\n <motion.button\n ref={ref}\n type=\"button\"\n data-treemap-tile={tile.id}\n layout={!reduce}\n inert={!present}\n aria-hidden={!present || undefined}\n tabIndex={present && tiles[cursor.activeIndex]?.id === tile.id ? 0 : -1}\n aria-label={[\n tile.path.join(\" / \"),\n formatValue(tile.value),\n
|
|
1
|
+
{"version":3,"file":"tile.js","names":[],"sources":["../../../../src/components/charts/treemap/tile.tsx"],"sourcesContent":["\"use client\";\n\nimport { type ReactNode, useCallback } from \"react\";\nimport { motion, useIsPresent } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_OUT, SPRING_LAYOUT } from \"../../../lib/ease\";\nimport { useTreemap } from \"./context\";\nimport type { TreemapTile } from \"./model\";\n\nexport function TreemapCell({\n tile,\n className,\n renderTile,\n}: {\n tile: TreemapTile;\n className?: string;\n renderTile?: (tile: TreemapTile) => ReactNode;\n}) {\n const {\n size,\n active,\n setActive,\n cursor,\n tiles,\n formatValue,\n tooltipId,\n tooltipOpen,\n setTooltipOpen,\n reduce,\n canHover,\n registerButton,\n t,\n } = useTreemap();\n const present = useIsPresent();\n const ref = useCallback(\n (node: HTMLButtonElement | null) => registerButton(tile.id, node),\n [tile.id, registerButton],\n );\n const selected = tooltipOpen && active?.id === tile.id;\n const width = tile.width / size.width;\n const height = tile.height / size.height;\n // Small tiles remain inspectable; their labels stay in the accessible name\n // and exact-data table rather than spilling into neighbouring rectangles.\n const showLabel = tile.width >= 52 && tile.height >= 32;\n const showValue = tile.width >= 70 && tile.height >= 56;\n return (\n <motion.button\n ref={ref}\n type=\"button\"\n data-treemap-tile={tile.id}\n layout={!reduce}\n inert={!present}\n aria-hidden={!present || undefined}\n tabIndex={present && tiles[cursor.activeIndex]?.id === tile.id ? 0 : -1}\n aria-label={[\n tile.path.join(\" / \"),\n formatValue(tile.value),\n t(\"ofTotal\", { share: (tile.share * 100).toFixed(1) }),\n tile.description,\n ]\n .filter(Boolean)\n .join(\". \")}\n aria-describedby={present && selected ? tooltipId : undefined}\n className={cn(\n \"border-background absolute overflow-hidden border-2 text-left outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-inset\",\n className,\n )}\n style={{\n left: `${(tile.x / size.width) * 100}%`,\n top: `${(tile.y / size.height) * 100}%`,\n width: `${width * 100}%`,\n height: `${height * 100}%`,\n backgroundColor: tile.color,\n color: tile.textColor,\n borderRadius: 8,\n pointerEvents: present ? \"auto\" : \"none\",\n }}\n initial={{ opacity: 0 }}\n animate={{ opacity: 1 }}\n exit={{ opacity: 0 }}\n transition={{\n layout: reduce ? { duration: 0 } : SPRING_LAYOUT,\n opacity: { type: \"tween\", duration: present ? 0.18 : 0.1, ease: EASE_OUT },\n }}\n onPointerEnter={(event) => {\n if (present && canHover && event.pointerType !== \"touch\") {\n setActive(tile.id);\n setTooltipOpen(true);\n }\n }}\n onPointerMove={(event) => {\n if (present && (event.pointerType === \"touch\" ? event.buttons === 1 : canHover)) {\n setActive(tile.id);\n setTooltipOpen(true);\n }\n }}\n onPointerDown={() => {\n if (present) {\n setActive(tile.id);\n setTooltipOpen(true);\n }\n }}\n onClick={() => {\n if (present) {\n setActive(tile.id);\n setTooltipOpen(true);\n }\n }}\n onFocus={() => {\n if (present) {\n cursor.moveTo(tile.id);\n setActive(tile.id);\n setTooltipOpen(true);\n }\n }}\n >\n <motion.span\n aria-hidden=\"true\"\n layout={reduce ? false : \"position\"}\n transition={reduce ? { duration: 0 } : SPRING_LAYOUT}\n className=\"absolute inset-x-2 top-2 min-w-0 sm:inset-x-3 sm:top-3\"\n >\n {renderTile ? (\n renderTile(tile)\n ) : showLabel ? (\n <>\n <span className=\"block truncate text-xs font-medium sm:text-sm\">{tile.label}</span>\n {showValue ? (\n <span className=\"mt-1 block truncate font-mono text-[11px] tabular-nums opacity-80 sm:text-xs\">\n {formatValue(tile.value)}\n </span>\n ) : null}\n </>\n ) : null}\n </motion.span>\n <motion.span\n aria-hidden=\"true\"\n className=\"pointer-events-none absolute inset-0 bg-white/10\"\n initial={false}\n animate={{ opacity: selected ? 1 : 0 }}\n transition={{ type: \"tween\", duration: 0.1, ease: EASE_OUT }}\n />\n </motion.button>\n );\n}\n"],"mappings":"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"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { r as TreemapItem } from "../../../model-BFZGhrnQ.js";
|
|
2
1
|
import { ReactNode } from "react";
|
|
2
|
+
import { r as TreemapItem } from "../../../model-CHHE1lHQ.js";
|
|
3
3
|
export interface TreemapTooltipProps {
|
|
4
|
+
/** Classes merged onto the tooltip surface. */
|
|
4
5
|
className?: string;
|
|
6
|
+
/** Side of the hovered tile the tooltip opens on. Default: "top" */
|
|
5
7
|
side?: "top" | "right" | "bottom" | "left";
|
|
6
8
|
children?: ReactNode | ((item: TreemapItem) => ReactNode);
|
|
7
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","names":[],"sources":["../../../../src/components/charts/treemap/tooltip.tsx"],"mappings":";;iBAWiB;
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","names":[],"sources":["../../../../src/components/charts/treemap/tooltip.tsx"],"mappings":";;iBAWiB;;EAEf;;EAEA;EACA,WAAW,cAAc,MAAM,gBAAgB;;wBAGjC,iBAAiB,WAAW,MAAc,YAAY,sCAAmB,IAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { t as Tooltip } from "../../../tooltip-CuHpilPN.js";
|
|
4
|
-
import { n as useTreemap } from "../../../context-DWXNECDe.js";
|
|
2
|
+
import { MotionConfig } from "motion/react";
|
|
5
3
|
import { cn } from "@kumix/utils";
|
|
4
|
+
import { NumberTicker } from "../../motion/number-ticker.js";
|
|
5
|
+
import { t as Tooltip } from "../../../tooltip-gHv-6eOs.js";
|
|
6
|
+
import { n as useTreemap } from "../../../context-Cg1VelQJ.js";
|
|
6
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import { MotionConfig } from "motion/react";
|
|
8
8
|
// src/components/charts/treemap/tooltip.tsx
|
|
9
9
|
function TreemapTooltip({ className, side = "top", children }) {
|
|
10
10
|
const { active, plotRef, size, tiles, tooltipId, tooltipOpen, setTooltipOpen, formatValue } = useTreemap();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.js","names":[],"sources":["../../../../src/components/charts/treemap/tooltip.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { MotionConfig } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { NumberTicker } from \"../../motion/number-ticker\";\nimport { Tooltip } from \"../../motion/tooltip\";\nimport { useTreemap } from \"./context\";\nimport type { TreemapItem } from \"./model\";\n\nexport interface TreemapTooltipProps {\n className?: string;\n side?: \"top\" | \"right\" | \"bottom\" | \"left\";\n children?: ReactNode | ((item: TreemapItem) => ReactNode);\n}\n\nexport function TreemapTooltip({ className, side = \"top\", children }: TreemapTooltipProps) {\n const { active, plotRef, size, tiles, tooltipId, tooltipOpen, setTooltipOpen, formatValue } =\n useTreemap();\n if (!tiles.length) return null;\n return (\n <Tooltip\n id={tooltipId}\n anchorRef={plotRef}\n followCursor\n anchorPoint={{\n x: active ? (active.x + active.width / 2) / size.width : 0.5,\n y: active ? (active.y + active.height / 2) / size.height : 0.5,\n }}\n open={tooltipOpen && active !== null}\n onOpenChange={setTooltipOpen}\n side={side}\n className={cn(\"max-w-64\", className)}\n content={\n active\n ? typeof children === \"function\"\n ? children(active)\n : (children ?? (\n <MotionConfig transition={{ type: \"tween\" }}>\n <span className=\"flex flex-col gap-1.5 text-xs\">\n {active.path.length > 1 ? (\n <span className=\"text-muted-foreground\">\n {active.path.slice(0, -1).join(\" / \")}\n </span>\n ) : null}\n <span className=\"font-medium\">{active.label}</span>\n <span className=\"inline-flex items-center gap-2 font-mono tabular-nums\">\n <NumberTicker\n value={active.value}\n format={() => formatValue(active.value)}\n startOnView={false}\n duration={0.2}\n stagger={0}\n />\n <span className=\"text-muted-foreground\">·</span>\n <NumberTicker\n value={active.share * 100}\n format={() => `${(active.share * 100).toFixed(1)}%`}\n startOnView={false}\n duration={0.2}\n stagger={0}\n className=\"text-muted-foreground\"\n />\n </span>\n {active.description ? (\n <span className=\"text-muted-foreground\">{active.description}</span>\n ) : null}\n </span>\n </MotionConfig>\n ))\n : null\n }\n />\n );\n}\n"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"tooltip.js","names":[],"sources":["../../../../src/components/charts/treemap/tooltip.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ReactNode } from \"react\";\nimport { MotionConfig } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { NumberTicker } from \"../../motion/number-ticker\";\nimport { Tooltip } from \"../../motion/tooltip\";\nimport { useTreemap } from \"./context\";\nimport type { TreemapItem } from \"./model\";\n\nexport interface TreemapTooltipProps {\n /** Classes merged onto the tooltip surface. */\n className?: string;\n /** Side of the hovered tile the tooltip opens on. Default: \"top\" */\n side?: \"top\" | \"right\" | \"bottom\" | \"left\";\n children?: ReactNode | ((item: TreemapItem) => ReactNode);\n}\n\nexport function TreemapTooltip({ className, side = \"top\", children }: TreemapTooltipProps) {\n const { active, plotRef, size, tiles, tooltipId, tooltipOpen, setTooltipOpen, formatValue } =\n useTreemap();\n if (!tiles.length) return null;\n return (\n <Tooltip\n id={tooltipId}\n anchorRef={plotRef}\n followCursor\n anchorPoint={{\n x: active ? (active.x + active.width / 2) / size.width : 0.5,\n y: active ? (active.y + active.height / 2) / size.height : 0.5,\n }}\n open={tooltipOpen && active !== null}\n onOpenChange={setTooltipOpen}\n side={side}\n className={cn(\"max-w-64\", className)}\n content={\n active\n ? typeof children === \"function\"\n ? children(active)\n : (children ?? (\n <MotionConfig transition={{ type: \"tween\" }}>\n <span className=\"flex flex-col gap-1.5 text-xs\">\n {active.path.length > 1 ? (\n <span className=\"text-muted-foreground\">\n {active.path.slice(0, -1).join(\" / \")}\n </span>\n ) : null}\n <span className=\"font-medium\">{active.label}</span>\n <span className=\"inline-flex items-center gap-2 font-mono tabular-nums\">\n <NumberTicker\n value={active.value}\n format={() => formatValue(active.value)}\n startOnView={false}\n duration={0.2}\n stagger={0}\n />\n <span className=\"text-muted-foreground\">·</span>\n <NumberTicker\n value={active.share * 100}\n format={() => `${(active.share * 100).toFixed(1)}%`}\n startOnView={false}\n duration={0.2}\n stagger={0}\n className=\"text-muted-foreground\"\n />\n </span>\n {active.description ? (\n <span className=\"text-muted-foreground\">{active.description}</span>\n ) : null}\n </span>\n </MotionConfig>\n ))\n : null\n }\n />\n );\n}\n"],"mappings":";;;;;;;;AAmBA,SAAgB,eAAe,EAAE,WAAW,OAAO,OAAO,YAAiC;CACzF,MAAM,EAAE,QAAQ,SAAS,MAAM,OAAO,WAAW,aAAa,gBAAgB,gBAC5E,WAAW;CACb,IAAI,CAAC,MAAM,QAAQ,OAAO;CAC1B,OACE,oBAAC,SAAD;EACE,IAAI;EACJ,WAAW;EACX,cAAA;EACA,aAAa;GACX,GAAG,UAAU,OAAO,IAAI,OAAO,QAAQ,KAAK,KAAK,QAAQ;GACzD,GAAG,UAAU,OAAO,IAAI,OAAO,SAAS,KAAK,KAAK,SAAS;EAC7D;EACA,MAAM,eAAe,WAAW;EAChC,cAAc;EACR;EACN,WAAW,GAAG,YAAY,SAAS;EACnC,SACE,SACI,OAAO,aAAa,aAClB,SAAS,MAAM,IACd,YACC,oBAAC,cAAD;GAAc,YAAY,EAAE,MAAM,QAAQ;GACxC,UAAA,qBAAC,QAAD;IAAM,WAAU;IAAhB,UAAA;KACG,OAAO,KAAK,SAAS,IACpB,oBAAC,QAAD;MAAM,WAAU;MACb,UAAA,OAAO,KAAK,MAAM,GAAG,EAAE,CAAC,CAAC,KAAK,KAAK;KAChC,CAAA,IACJ;KACJ,oBAAC,QAAD;MAAM,WAAU;MAAe,UAAA,OAAO;KAAY,CAAA;KAClD,qBAAC,QAAD;MAAM,WAAU;MAAhB,UAAA;OACE,oBAAC,cAAD;QACE,OAAO,OAAO;QACd,cAAc,YAAY,OAAO,KAAK;QACtC,aAAa;QACb,UAAU;QACV,SAAS;OACV,CAAA;OACD,oBAAC,QAAD;QAAM,WAAU;QAAwB,UAAA;OAAO,CAAA;OAC/C,oBAAC,cAAD;QACE,OAAO,OAAO,QAAQ;QACtB,cAAc,IAAI,OAAO,QAAQ,IAAA,CAAK,QAAQ,CAAC,EAAE;QACjD,aAAa;QACb,UAAU;QACV,SAAS;QACT,WAAU;OACX,CAAA;MACG;;KACL,OAAO,cACN,oBAAC,QAAD;MAAM,WAAU;MAAyB,UAAA,OAAO;KAAkB,CAAA,IAChE;IACA;;EACM,CAAA,IAElB;CAEP,CAAA;AAEL"}
|
|
@@ -1,19 +1,41 @@
|
|
|
1
|
-
import { a as TreemapNode, i as TreemapLeaf, n as TreemapGroup, o as TreemapTile, r as TreemapItem, t as ResolvedNode } from "../../model-
|
|
1
|
+
import { a as TreemapNode, i as TreemapLeaf, n as TreemapGroup, o as TreemapTile, r as TreemapItem, t as ResolvedNode } from "../../model-CHHE1lHQ.js";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
2
3
|
import { TreemapLegend, TreemapLegendProps } from "./treemap/legend.js";
|
|
3
4
|
import { TreemapPlot, TreemapPlotProps } from "./treemap/plot.js";
|
|
4
5
|
import { TreemapTooltip, TreemapTooltipProps } from "./treemap/tooltip.js";
|
|
5
|
-
|
|
6
|
+
export declare const treemapMessages: {
|
|
7
|
+
label: string;
|
|
8
|
+
tableCaption: string;
|
|
9
|
+
item: string;
|
|
10
|
+
value: string;
|
|
11
|
+
share: string;
|
|
12
|
+
details: string;
|
|
13
|
+
legend: string;
|
|
14
|
+
tiles: string;
|
|
15
|
+
ofTotal: string;
|
|
16
|
+
noPositive: string;
|
|
17
|
+
empty: string;
|
|
18
|
+
};
|
|
19
|
+
type TreemapMessages = typeof treemapMessages;
|
|
6
20
|
interface TreemapProps extends ComponentProps<"section"> {
|
|
7
21
|
/** Flat leaves or nested groups. Tile area uses leaf values; groups sum their descendants. */
|
|
8
22
|
data: readonly TreemapNode[];
|
|
23
|
+
/** Chart name, used as its accessible label and table caption. Default: "Treemap" */
|
|
9
24
|
label?: string;
|
|
25
|
+
/** Formats values in tiles, the tooltip and the legend. Defaults to up to 2 decimals. */
|
|
10
26
|
formatValue?: (value: number) => string;
|
|
11
27
|
/** Top-level palette; nodes can override their inherited color and textColor. */
|
|
12
28
|
colors?: readonly string[];
|
|
29
|
+
/** Tile text color, unless a node sets its own. Default: "#ffffff" */
|
|
13
30
|
textColor?: string;
|
|
31
|
+
/** Id of the inspected tile, or null for none, for controlled use. */
|
|
14
32
|
activeId?: string | null;
|
|
33
|
+
/** Id of the tile inspected at first when uncontrolled. Default: null */
|
|
15
34
|
defaultActiveId?: string | null;
|
|
35
|
+
/** Called with the tile id when inspection moves, or null when it clears. */
|
|
16
36
|
onActiveChange?: (id: string | null) => void;
|
|
37
|
+
/** Override any built-in string. */
|
|
38
|
+
labels?: Partial<TreemapMessages>;
|
|
17
39
|
}
|
|
18
40
|
export declare function useTreemap(): {
|
|
19
41
|
tiles: TreemapTile[];
|
|
@@ -26,9 +48,10 @@ export declare function useTreemap(): {
|
|
|
26
48
|
height: number;
|
|
27
49
|
}>>;
|
|
28
50
|
label: string;
|
|
51
|
+
t: (key: "value" | "details" | "label" | "legend" | "empty" | "item" | "tableCaption" | "share" | "tiles" | "ofTotal" | "noPositive", values?: Record<string, string | number>) => string;
|
|
29
52
|
formatValue: (value: number) => string;
|
|
30
|
-
active: TreemapTile
|
|
31
|
-
setActive: (
|
|
53
|
+
active: TreemapTile;
|
|
54
|
+
setActive: (next: string | null) => void;
|
|
32
55
|
cursor: {
|
|
33
56
|
activeIndex: number;
|
|
34
57
|
moveTo: (id: string | null) => void;
|
|
@@ -47,6 +70,6 @@ export declare function useTreemap(): {
|
|
|
47
70
|
total: number;
|
|
48
71
|
};
|
|
49
72
|
/** Compose Plot, Tooltip and Legend, or omit children for the complete chart. */
|
|
50
|
-
export declare function Treemap({ data, label, formatValue, colors, textColor, activeId, defaultActiveId, onActiveChange, className, children, ...props }: TreemapProps): import("react").JSX.Element;
|
|
51
|
-
export { type TreemapGroup, type TreemapItem, type TreemapLeaf, TreemapLegend, type TreemapLegendProps, type TreemapNode, TreemapPlot, type TreemapPlotProps, type TreemapProps, type TreemapTile, TreemapTooltip, type TreemapTooltipProps };
|
|
73
|
+
export declare function Treemap({ data, label, formatValue, colors, textColor, activeId, defaultActiveId, onActiveChange, labels, className, children, ...props }: TreemapProps): import("react").JSX.Element;
|
|
74
|
+
export { type TreemapGroup, type TreemapItem, type TreemapLeaf, TreemapLegend, type TreemapLegendProps, type TreemapMessages, type TreemapNode, TreemapPlot, type TreemapPlotProps, type TreemapProps, type TreemapTile, TreemapTooltip, type TreemapTooltipProps };
|
|
52
75
|
//# sourceMappingURL=treemap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treemap.d.ts","names":["_$__model0.TreemapTile","_$__model0.ResolvedNode"],"sources":["../../../src/components/charts/treemap/context.ts","../../../src/components/charts/treemap.tsx"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"treemap.d.ts","names":["_$__model0.TreemapTile","_$__model0.ResolvedNode"],"sources":["../../../src/components/charts/treemap/messages.ts","../../../src/components/charts/treemap/context.ts","../../../src/components/charts/treemap.tsx"],"mappings":";;;;;qBAEa;;;;;;;;;;;;;KAcD,yBAAyB;UCOpB,qBAAqB;;EAEpC,eAAe;;EAEf;;EAEA,eAAe;;EAEf;;EAEA;;EAEA;;EAEA;;EAEA,kBAAkB;;EAElB,SAAS,QAAQ;;wBAkEH;E,OAAAA;;;;;;;;;;;EA9EQ,cAAA;;;;;;;;;;;;EAkDkB,iBAAA,YAAM,MAAQ;;;;E,OAAAC;;;;;wBCtExC,UACd,MACA,OACA,aACA,QACA,WACA,UACA,iBACA,gBACA,QACA,WACA,aACG,SACF,+BAAY,IAAA"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { cn } from "@kumix/utils";
|
|
3
|
+
import { i as treemapMessages, n as useTreemap, r as useTreemapModel, t as TreemapContext } from "../../context-Cg1VelQJ.js";
|
|
3
4
|
import { TreemapLegend } from "./treemap/legend.js";
|
|
4
5
|
import { TreemapPlot } from "./treemap/plot.js";
|
|
5
6
|
import { TreemapTooltip } from "./treemap/tooltip.js";
|
|
6
|
-
import { cn } from "@kumix/utils";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
// src/components/charts/treemap.tsx
|
|
9
9
|
/** Compose Plot, Tooltip and Legend, or omit children for the complete chart. */
|
|
10
|
-
function Treemap({ data, label, formatValue, colors, textColor, activeId, defaultActiveId, onActiveChange, className, children, ...props }) {
|
|
10
|
+
function Treemap({ data, label, formatValue, colors, textColor, activeId, defaultActiveId, onActiveChange, labels, className, children, ...props }) {
|
|
11
11
|
const model = useTreemapModel({
|
|
12
12
|
data,
|
|
13
13
|
label,
|
|
@@ -16,8 +16,10 @@ function Treemap({ data, label, formatValue, colors, textColor, activeId, defaul
|
|
|
16
16
|
textColor,
|
|
17
17
|
activeId,
|
|
18
18
|
defaultActiveId,
|
|
19
|
-
onActiveChange
|
|
19
|
+
onActiveChange,
|
|
20
|
+
labels
|
|
20
21
|
});
|
|
22
|
+
const { t } = model;
|
|
21
23
|
return /* @__PURE__ */ jsx(TreemapContext.Provider, {
|
|
22
24
|
value: model,
|
|
23
25
|
children: /* @__PURE__ */ jsxs("section", {
|
|
@@ -32,23 +34,23 @@ function Treemap({ data, label, formatValue, colors, textColor, activeId, defaul
|
|
|
32
34
|
] }) : children, /* @__PURE__ */ jsx("div", {
|
|
33
35
|
className: "sr-only",
|
|
34
36
|
children: /* @__PURE__ */ jsxs("table", { children: [
|
|
35
|
-
/* @__PURE__ */
|
|
37
|
+
/* @__PURE__ */ jsx("caption", { children: t("tableCaption", { label: model.label }) }),
|
|
36
38
|
/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
37
39
|
/* @__PURE__ */ jsx("th", {
|
|
38
40
|
scope: "col",
|
|
39
|
-
children: "
|
|
41
|
+
children: t("item")
|
|
40
42
|
}),
|
|
41
43
|
/* @__PURE__ */ jsx("th", {
|
|
42
44
|
scope: "col",
|
|
43
|
-
children: "
|
|
45
|
+
children: t("value")
|
|
44
46
|
}),
|
|
45
47
|
/* @__PURE__ */ jsx("th", {
|
|
46
48
|
scope: "col",
|
|
47
|
-
children: "
|
|
49
|
+
children: t("share")
|
|
48
50
|
}),
|
|
49
51
|
/* @__PURE__ */ jsx("th", {
|
|
50
52
|
scope: "col",
|
|
51
|
-
children: "
|
|
53
|
+
children: t("details")
|
|
52
54
|
})
|
|
53
55
|
] }) }),
|
|
54
56
|
/* @__PURE__ */ jsx("tbody", { children: model.items.map((item) => /* @__PURE__ */ jsxs("tr", { children: [
|
|
@@ -65,6 +67,6 @@ function Treemap({ data, label, formatValue, colors, textColor, activeId, defaul
|
|
|
65
67
|
})
|
|
66
68
|
});
|
|
67
69
|
}
|
|
68
|
-
export { Treemap, TreemapLegend, TreemapPlot, TreemapTooltip, useTreemap };
|
|
70
|
+
export { Treemap, TreemapLegend, TreemapPlot, TreemapTooltip, treemapMessages, useTreemap };
|
|
69
71
|
|
|
70
72
|
//# sourceMappingURL=treemap.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treemap.js","names":[],"sources":["../../../src/components/charts/treemap.tsx"],"sourcesContent":["\"use client\";\n\nimport { cn } from \"@kumix/utils\";\nimport { TreemapContext, type TreemapProps, useTreemapModel } from \"./treemap/context\";\nimport { TreemapLegend } from \"./treemap/legend\";\nimport { TreemapPlot } from \"./treemap/plot\";\nimport { TreemapTooltip } from \"./treemap/tooltip\";\n\n/** Compose Plot, Tooltip and Legend, or omit children for the complete chart. */\nexport function Treemap({\n data,\n label,\n formatValue,\n colors,\n textColor,\n activeId,\n defaultActiveId,\n onActiveChange,\n className,\n children,\n ...props\n}: TreemapProps) {\n const model = useTreemapModel({\n data,\n label,\n formatValue,\n colors,\n textColor,\n activeId,\n defaultActiveId,\n onActiveChange,\n });\n return (\n <TreemapContext.Provider value={model}>\n <section\n aria-label={model.label}\n {...props}\n data-slot=\"treemap\"\n className={cn(\"w-full min-w-0 space-y-4\", className)}\n >\n {children === undefined ? (\n <>\n <TreemapPlot />\n <TreemapTooltip />\n <TreemapLegend />\n </>\n ) : (\n children\n )}\n <div className=\"sr-only\">\n <table>\n <caption>{model.label}
|
|
1
|
+
{"version":3,"file":"treemap.js","names":[],"sources":["../../../src/components/charts/treemap.tsx"],"sourcesContent":["\"use client\";\n\nimport { cn } from \"@kumix/utils\";\nimport { TreemapContext, type TreemapProps, useTreemapModel } from \"./treemap/context\";\nimport { TreemapLegend } from \"./treemap/legend\";\nimport { TreemapPlot } from \"./treemap/plot\";\nimport { TreemapTooltip } from \"./treemap/tooltip\";\n\n/** Compose Plot, Tooltip and Legend, or omit children for the complete chart. */\nexport function Treemap({\n data,\n label,\n formatValue,\n colors,\n textColor,\n activeId,\n defaultActiveId,\n onActiveChange,\n labels,\n className,\n children,\n ...props\n}: TreemapProps) {\n const model = useTreemapModel({\n data,\n label,\n formatValue,\n colors,\n textColor,\n activeId,\n defaultActiveId,\n onActiveChange,\n labels,\n });\n const { t } = model;\n return (\n <TreemapContext.Provider value={model}>\n <section\n aria-label={model.label}\n {...props}\n data-slot=\"treemap\"\n className={cn(\"w-full min-w-0 space-y-4\", className)}\n >\n {children === undefined ? (\n <>\n <TreemapPlot />\n <TreemapTooltip />\n <TreemapLegend />\n </>\n ) : (\n children\n )}\n <div className=\"sr-only\">\n <table>\n <caption>{t(\"tableCaption\", { label: model.label })}</caption>\n <thead>\n <tr>\n <th scope=\"col\">{t(\"item\")}</th>\n <th scope=\"col\">{t(\"value\")}</th>\n <th scope=\"col\">{t(\"share\")}</th>\n <th scope=\"col\">{t(\"details\")}</th>\n </tr>\n </thead>\n <tbody>\n {model.items.map((item) => (\n <tr key={item.id}>\n <th scope=\"row\">{item.path.join(\" / \")}</th>\n <td>{model.formatValue(item.value)}</td>\n <td>{(item.share * 100).toFixed(1)}%</td>\n <td>{item.description ?? \"\"}</td>\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n </section>\n </TreemapContext.Provider>\n );\n}\n\nexport type { TreemapProps } from \"./treemap/context\";\nexport { useTreemap } from \"./treemap/context\";\nexport type { TreemapLegendProps } from \"./treemap/legend\";\nexport { TreemapLegend } from \"./treemap/legend\";\nexport { type TreemapMessages, treemapMessages } from \"./treemap/messages\";\nexport type {\n TreemapGroup,\n TreemapItem,\n TreemapLeaf,\n TreemapNode,\n TreemapTile,\n} from \"./treemap/model\";\nexport type { TreemapPlotProps } from \"./treemap/plot\";\nexport { TreemapPlot } from \"./treemap/plot\";\nexport type { TreemapTooltipProps } from \"./treemap/tooltip\";\nexport { TreemapTooltip } from \"./treemap/tooltip\";\n"],"mappings":";;;;;;;;;AASA,SAAgB,QAAQ,EACtB,MACA,OACA,aACA,QACA,WACA,UACA,iBACA,gBACA,QACA,WACA,UACA,GAAG,SACY;CACf,MAAM,QAAQ,gBAAgB;EAC5B;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CAAC;CACD,MAAM,EAAE,MAAM;CACd,OACE,oBAAC,eAAe,UAAhB;EAAyB,OAAO;EAC9B,UAAA,qBAAC,WAAD;GACE,cAAY,MAAM;GAClB,GAAI;GACJ,aAAU;GACV,WAAW,GAAG,4BAA4B,SAAS;GAJrD,UAAA,CAMG,aAAa,KAAA,IACZ,qBAAA,UAAA,EAAA,UAAA;IACE,oBAAC,aAAD,CAAc,CAAA;IACd,oBAAC,gBAAD,CAAiB,CAAA;IACjB,oBAAC,eAAD,CAAgB,CAAA;GAChB,EAAA,CAAA,IAEF,UAEF,oBAAC,OAAD;IAAK,WAAU;IACb,UAAA,qBAAC,SAAD,EAAA,UAAA;KACE,oBAAC,WAAD,EAAA,UAAU,EAAE,gBAAgB,EAAE,OAAO,MAAM,MAAM,CAAC,EAAW,CAAA;KAC7D,oBAAC,SAAD,EAAA,UACE,qBAAC,MAAD,EAAA,UAAA;MACE,oBAAC,MAAD;OAAI,OAAM;OAAO,UAAA,EAAE,MAAM;MAAM,CAAA;MAC/B,oBAAC,MAAD;OAAI,OAAM;OAAO,UAAA,EAAE,OAAO;MAAM,CAAA;MAChC,oBAAC,MAAD;OAAI,OAAM;OAAO,UAAA,EAAE,OAAO;MAAM,CAAA;MAChC,oBAAC,MAAD;OAAI,OAAM;OAAO,UAAA,EAAE,SAAS;MAAM,CAAA;KAChC,EAAA,CAAA,EACC,CAAA;KACP,oBAAC,SAAD,EAAA,UACG,MAAM,MAAM,KAAK,SAChB,qBAAC,MAAD,EAAA,UAAA;MACE,oBAAC,MAAD;OAAI,OAAM;OAAO,UAAA,KAAK,KAAK,KAAK,KAAK;MAAM,CAAA;MAC3C,oBAAC,MAAD,EAAA,UAAK,MAAM,YAAY,KAAK,KAAK,EAAM,CAAA;MACvC,qBAAC,MAAD,EAAA,UAAA,EAAM,KAAK,QAAQ,IAAA,CAAK,QAAQ,CAAC,GAAE,GAAK,EAAA,CAAA;MACxC,oBAAC,MAAD,EAAA,UAAK,KAAK,eAAe,GAAO,CAAA;KAC9B,EAAA,GALK,KAAK,EAKV,CACL,EACI,CAAA;IACF,EAAA,CAAA;GACJ,CAAA,CACE;;CACc,CAAA;AAE7B"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
2
|
export interface VolumeProfilePlotProps {
|
|
3
|
+
/** Classes merged onto the plot row; set its height here. */
|
|
3
4
|
className?: string;
|
|
5
|
+
/** Classes merged onto each volume bar. */
|
|
4
6
|
barClassName?: string;
|
|
5
7
|
/** Plot height is set by className; default 20rem. */
|
|
6
8
|
showAxes?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plot.d.ts","names":[],"sources":["../../../../src/components/charts/volume-profile/plot.tsx"],"mappings":";iBASiB
|
|
1
|
+
{"version":3,"file":"plot.d.ts","names":[],"sources":["../../../../src/components/charts/volume-profile/plot.tsx"],"mappings":";iBASiB;;EAEf;;EAEA;;EAEA;EACA,WAAW;;wBAGG,oBACd,WACA,cACA,UACA,YACC,yCAAsB,IAAA"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { EASE_OUT, SPRING_LAYOUT } from "../../../lib/ease.js";
|
|
3
|
-
import { n as useVolumeProfile } from "../../../context-C5TW-k6u.js";
|
|
4
2
|
import { useRef } from "react";
|
|
3
|
+
import { motion } from "motion/react";
|
|
5
4
|
import { cn } from "@kumix/utils";
|
|
5
|
+
import { EASE_OUT, SPRING_LAYOUT } from "../../../lib/ease.js";
|
|
6
|
+
import { n as useVolumeProfile } from "../../../context-B3BNuwGu.js";
|
|
6
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import { motion } from "motion/react";
|
|
8
8
|
// src/components/charts/volume-profile/plot.tsx
|
|
9
9
|
function VolumeProfilePlot({ className, barClassName, showAxes = true, children }) {
|
|
10
|
-
const { rows, label, maxVolume, priceLow, priceHigh, valueArea, formatPrice, formatVolume, color, pocColor, activeIndex, setActive, plotRef, tooltipId, tooltipOpen, setTooltipOpen, describe, reduce, canHover } = useVolumeProfile();
|
|
10
|
+
const { rows, label, maxVolume, priceLow, priceHigh, valueArea, formatPrice, formatVolume, color, pocColor, activeIndex, setActive, plotRef, tooltipId, tooltipOpen, setTooltipOpen, describe, reduce, canHover, t } = useVolumeProfile();
|
|
11
11
|
const pointerDriven = useRef(false);
|
|
12
12
|
const focused = useRef(false);
|
|
13
13
|
const lastPointerId = useRef(null);
|
|
@@ -24,7 +24,7 @@ function VolumeProfilePlot({ className, barClassName, showAxes = true, children
|
|
|
24
24
|
};
|
|
25
25
|
if (!rows.length) return /* @__PURE__ */ jsx("p", {
|
|
26
26
|
className: cn("text-muted-foreground py-12 text-center text-sm", className),
|
|
27
|
-
children: "
|
|
27
|
+
children: t("empty")
|
|
28
28
|
});
|
|
29
29
|
return /* @__PURE__ */ jsx("div", {
|
|
30
30
|
"data-slot": "volume-profile-plot",
|
|
@@ -33,7 +33,7 @@ function VolumeProfilePlot({ className, barClassName, showAxes = true, children
|
|
|
33
33
|
className: cn("flex h-80 min-w-0 gap-3", className),
|
|
34
34
|
children: [showAxes ? /* @__PURE__ */ jsx("div", {
|
|
35
35
|
"aria-hidden": "true",
|
|
36
|
-
className: "text-muted-foreground relative shrink-0 text-right font-mono text-[
|
|
36
|
+
className: "text-muted-foreground relative shrink-0 text-right font-mono text-[11px] tabular-nums sm:text-xs",
|
|
37
37
|
children: [
|
|
38
38
|
1,
|
|
39
39
|
.75,
|
|
@@ -109,8 +109,8 @@ function VolumeProfilePlot({ className, barClassName, showAxes = true, children
|
|
|
109
109
|
className: "absolute inset-x-0 top-1/2 border-t border-dashed",
|
|
110
110
|
style: { borderColor: pocColor },
|
|
111
111
|
children: /* @__PURE__ */ jsx("span", {
|
|
112
|
-
className: "bg-background text-foreground absolute right-0 -translate-y-1/2 rounded px-1.5 py-
|
|
113
|
-
children: "
|
|
112
|
+
className: "bg-background text-foreground absolute right-0 -translate-y-1/2 rounded-full px-1.5 py-px font-mono text-[11px] leading-none font-medium",
|
|
113
|
+
children: t("pocBadge")
|
|
114
114
|
})
|
|
115
115
|
}) : null
|
|
116
116
|
]
|
|
@@ -122,7 +122,7 @@ function VolumeProfilePlot({ className, barClassName, showAxes = true, children
|
|
|
122
122
|
max: rows.length - 1,
|
|
123
123
|
step: 1,
|
|
124
124
|
value: index,
|
|
125
|
-
"aria-label":
|
|
125
|
+
"aria-label": t("inspect", { label }),
|
|
126
126
|
"aria-orientation": "vertical",
|
|
127
127
|
"aria-valuetext": describe(row),
|
|
128
128
|
"aria-describedby": tooltipOpen && activeIndex >= 0 ? tooltipId : void 0,
|
|
@@ -192,7 +192,7 @@ function VolumeProfilePlot({ className, barClassName, showAxes = true, children
|
|
|
192
192
|
}),
|
|
193
193
|
showAxes ? /* @__PURE__ */ jsxs("div", {
|
|
194
194
|
"aria-hidden": "true",
|
|
195
|
-
className: "text-muted-foreground absolute inset-x-0 top-full mt-2 flex justify-between font-mono text-[
|
|
195
|
+
className: "text-muted-foreground absolute inset-x-0 top-full mt-2 flex justify-between font-mono text-[11px] tabular-nums sm:text-xs",
|
|
196
196
|
children: [
|
|
197
197
|
/* @__PURE__ */ jsx("span", { children: "0" }),
|
|
198
198
|
/* @__PURE__ */ jsx("span", { children: formatVolume(maxVolume / 2) }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plot.js","names":[],"sources":["../../../../src/components/charts/volume-profile/plot.tsx"],"sourcesContent":["\"use client\";\n\nimport { type PointerEvent, type ReactNode, useRef } from \"react\";\nimport { motion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_OUT, SPRING_LAYOUT } from \"../../../lib/ease\";\nimport { useVolumeProfile } from \"./context\";\n\nexport interface VolumeProfilePlotProps {\n className?: string;\n barClassName?: string;\n /** Plot height is set by className; default 20rem. */\n showAxes?: boolean;\n children?: ReactNode;\n}\n\nexport function VolumeProfilePlot({\n className,\n barClassName,\n showAxes = true,\n children,\n}: VolumeProfilePlotProps) {\n const {\n rows,\n label,\n maxVolume,\n priceLow,\n priceHigh,\n valueArea,\n formatPrice,\n formatVolume,\n color,\n pocColor,\n activeIndex,\n setActive,\n plotRef,\n tooltipId,\n tooltipOpen,\n setTooltipOpen,\n describe,\n reduce,\n canHover,\n } = useVolumeProfile();\n const pointerDriven = useRef(false);\n const focused = useRef(false);\n const lastPointerId = useRef<string | null>(null);\n const index = Math.max(activeIndex, 0);\n const row = rows[index];\n const inspect = (event: PointerEvent<HTMLInputElement>) => {\n const bounds = event.currentTarget.getBoundingClientRect();\n if (!bounds.height) return;\n const fraction = Math.min(1, Math.max(0, (event.clientY - bounds.top) / bounds.height));\n // Hit-test real price geometry, including unequal bins and empty price gaps.\n const match =\n rows.find((item) => fraction >= item.top && fraction <= item.top + item.height) ??\n rows.reduce((nearest, item) =>\n Math.abs(item.center - fraction) < Math.abs(nearest.center - fraction) ? item : nearest,\n );\n setActive(match.id);\n if (lastPointerId.current !== match.id) setTooltipOpen(true);\n lastPointerId.current = match.id;\n };\n if (!rows.length)\n return (\n <p className={cn(\"text-muted-foreground py-12 text-center text-sm\", className)}>\n No volume data\n </p>\n );\n return (\n <div data-slot=\"volume-profile-plot\" className={cn(\"min-w-0\", showAxes && \"pb-6\")}>\n <div className={cn(\"flex h-80 min-w-0 gap-3\", className)}>\n {showAxes ? (\n <div\n aria-hidden=\"true\"\n className=\"text-muted-foreground relative shrink-0 text-right font-mono text-[10px] tabular-nums sm:text-xs\"\n >\n {[1, 0.75, 0.5, 0.25, 0].map((position) => (\n <span key={position}>\n <span className=\"invisible block\">\n {formatPrice(priceLow + (priceHigh - priceLow) * position)}\n </span>\n <span\n className=\"absolute right-0 -translate-y-1/2\"\n style={{ top: `${(1 - position) * 100}%` }}\n >\n {formatPrice(priceLow + (priceHigh - priceLow) * position)}\n </span>\n </span>\n ))}\n </div>\n ) : null}\n <div\n ref={plotRef}\n className=\"has-focus-visible:outline-ring relative min-w-0 flex-1 rounded-sm has-focus-visible:outline-2 has-focus-visible:outline-offset-4\"\n >\n <div aria-hidden=\"true\" className=\"pointer-events-none absolute inset-0\">\n {[0, 0.25, 0.5, 0.75, 1].map((position) => (\n <span\n key={position}\n className=\"border-border/60 absolute inset-y-0 border-l\"\n style={{ left: `${position * 100}%` }}\n />\n ))}\n {rows.map((item, i) => (\n <div\n key={item.id}\n data-volume-bin={item.id}\n data-poc={item.isPoc || undefined}\n data-value-area={item.inValueArea || undefined}\n className=\"absolute inset-x-0 overflow-hidden py-px\"\n style={{ top: `${item.top * 100}%`, height: `${item.height * 100}%` }}\n >\n <motion.div\n className={cn(\"h-full w-full rounded-r-sm\", barClassName)}\n style={{\n backgroundColor: item.isPoc ? pocColor : color,\n transformOrigin: \"left\",\n }}\n initial={{ opacity: 0, transform: `scaleX(${item.proportion})` }}\n animate={{\n opacity: item.isPoc || item.inValueArea || !valueArea ? 0.9 : 0.3,\n transform: `scaleX(${item.proportion})`,\n }}\n transition={{\n transform: reduce ? { duration: 0 } : SPRING_LAYOUT,\n opacity: { duration: 0.18, ease: EASE_OUT },\n }}\n />\n <motion.div\n className=\"bg-foreground/5 absolute inset-0\"\n initial={false}\n animate={{ opacity: tooltipOpen && activeIndex === i ? 1 : 0 }}\n transition={{ duration: 0.1, ease: EASE_OUT }}\n />\n {item.isPoc ? (\n <span\n className=\"absolute inset-x-0 top-1/2 border-t border-dashed\"\n style={{ borderColor: pocColor }}\n >\n <span className=\"bg-background text-foreground absolute right-0 -translate-y-1/2 rounded px-1.5 py-0.5 font-mono text-[10px] font-medium\">\n POC\n </span>\n </span>\n ) : null}\n </div>\n ))}\n </div>\n <input\n type=\"range\"\n min={0}\n max={rows.length - 1}\n step={1}\n value={index}\n aria-label={`${label}: inspect price level`}\n aria-orientation=\"vertical\"\n aria-valuetext={describe(row)}\n aria-describedby={tooltipOpen && activeIndex >= 0 ? tooltipId : undefined}\n className=\"absolute inset-0 m-0 h-full w-full cursor-crosshair opacity-0\"\n style={{ writingMode: \"vertical-lr\", direction: \"rtl\", touchAction: \"pan-x\" }}\n onFocus={() => {\n focused.current = true;\n if (!pointerDriven.current) {\n setActive(row.id);\n setTooltipOpen(true);\n }\n }}\n onBlur={() => {\n focused.current = false;\n pointerDriven.current = false;\n setTooltipOpen(false);\n }}\n onPointerEnter={(event) => {\n if (canHover && event.pointerType !== \"touch\") inspect(event);\n }}\n onPointerMove={(event) => {\n if (\n event.pointerType === \"touch\"\n ? event.buttons === 1\n : canHover || event.buttons === 1\n )\n inspect(event);\n }}\n onPointerLeave={() => {\n lastPointerId.current = null;\n if (!focused.current || pointerDriven.current) setTooltipOpen(false);\n }}\n onPointerDown={(event) => {\n pointerDriven.current = true;\n lastPointerId.current = null;\n inspect(event);\n }}\n onPointerCancel={() => {\n pointerDriven.current = false;\n setTooltipOpen(false);\n }}\n onClick={() => {\n pointerDriven.current = false;\n }}\n onKeyDown={(event) => {\n pointerDriven.current = false;\n if (event.key === \"Escape\") setTooltipOpen(false);\n else if (\n [\"ArrowUp\", \"ArrowDown\", \"ArrowLeft\", \"ArrowRight\", \"Home\", \"End\"].includes(\n event.key,\n )\n ) {\n if (activeIndex < 0) setActive(row.id);\n setTooltipOpen(true);\n }\n }}\n onChange={(event) => {\n if (pointerDriven.current) return;\n const next = rows[Number(event.target.value)];\n if (next) {\n setActive(next.id);\n setTooltipOpen(true);\n }\n }}\n />\n {showAxes ? (\n <div\n aria-hidden=\"true\"\n className=\"text-muted-foreground absolute inset-x-0 top-full mt-2 flex justify-between font-mono text-[10px] tabular-nums sm:text-xs\"\n >\n <span>0</span>\n <span>{formatVolume(maxVolume / 2)}</span>\n <span>{formatVolume(maxVolume)}</span>\n </div>\n ) : null}\n {children}\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"plot.js","names":[],"sources":["../../../../src/components/charts/volume-profile/plot.tsx"],"sourcesContent":["\"use client\";\n\nimport { type PointerEvent, type ReactNode, useRef } from \"react\";\nimport { motion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_OUT, SPRING_LAYOUT } from \"../../../lib/ease\";\nimport { useVolumeProfile } from \"./context\";\n\nexport interface VolumeProfilePlotProps {\n /** Classes merged onto the plot row; set its height here. */\n className?: string;\n /** Classes merged onto each volume bar. */\n barClassName?: string;\n /** Plot height is set by className; default 20rem. */\n showAxes?: boolean;\n children?: ReactNode;\n}\n\nexport function VolumeProfilePlot({\n className,\n barClassName,\n showAxes = true,\n children,\n}: VolumeProfilePlotProps) {\n const {\n rows,\n label,\n maxVolume,\n priceLow,\n priceHigh,\n valueArea,\n formatPrice,\n formatVolume,\n color,\n pocColor,\n activeIndex,\n setActive,\n plotRef,\n tooltipId,\n tooltipOpen,\n setTooltipOpen,\n describe,\n reduce,\n canHover,\n t,\n } = useVolumeProfile();\n const pointerDriven = useRef(false);\n const focused = useRef(false);\n const lastPointerId = useRef<string | null>(null);\n const index = Math.max(activeIndex, 0);\n const row = rows[index];\n const inspect = (event: PointerEvent<HTMLInputElement>) => {\n const bounds = event.currentTarget.getBoundingClientRect();\n if (!bounds.height) return;\n const fraction = Math.min(1, Math.max(0, (event.clientY - bounds.top) / bounds.height));\n // Hit-test real price geometry, including unequal bins and empty price gaps.\n const match =\n rows.find((item) => fraction >= item.top && fraction <= item.top + item.height) ??\n rows.reduce((nearest, item) =>\n Math.abs(item.center - fraction) < Math.abs(nearest.center - fraction) ? item : nearest,\n );\n setActive(match.id);\n if (lastPointerId.current !== match.id) setTooltipOpen(true);\n lastPointerId.current = match.id;\n };\n if (!rows.length)\n return (\n <p className={cn(\"text-muted-foreground py-12 text-center text-sm\", className)}>\n {t(\"empty\")}\n </p>\n );\n return (\n <div data-slot=\"volume-profile-plot\" className={cn(\"min-w-0\", showAxes && \"pb-6\")}>\n <div className={cn(\"flex h-80 min-w-0 gap-3\", className)}>\n {showAxes ? (\n <div\n aria-hidden=\"true\"\n className=\"text-muted-foreground relative shrink-0 text-right font-mono text-[11px] tabular-nums sm:text-xs\"\n >\n {[1, 0.75, 0.5, 0.25, 0].map((position) => (\n <span key={position}>\n <span className=\"invisible block\">\n {formatPrice(priceLow + (priceHigh - priceLow) * position)}\n </span>\n <span\n className=\"absolute right-0 -translate-y-1/2\"\n style={{ top: `${(1 - position) * 100}%` }}\n >\n {formatPrice(priceLow + (priceHigh - priceLow) * position)}\n </span>\n </span>\n ))}\n </div>\n ) : null}\n <div\n ref={plotRef}\n className=\"has-focus-visible:outline-ring relative min-w-0 flex-1 rounded-sm has-focus-visible:outline-2 has-focus-visible:outline-offset-4\"\n >\n <div aria-hidden=\"true\" className=\"pointer-events-none absolute inset-0\">\n {[0, 0.25, 0.5, 0.75, 1].map((position) => (\n <span\n key={position}\n className=\"border-border/60 absolute inset-y-0 border-l\"\n style={{ left: `${position * 100}%` }}\n />\n ))}\n {rows.map((item, i) => (\n <div\n key={item.id}\n data-volume-bin={item.id}\n data-poc={item.isPoc || undefined}\n data-value-area={item.inValueArea || undefined}\n className=\"absolute inset-x-0 overflow-hidden py-px\"\n style={{ top: `${item.top * 100}%`, height: `${item.height * 100}%` }}\n >\n <motion.div\n className={cn(\"h-full w-full rounded-r-sm\", barClassName)}\n style={{\n backgroundColor: item.isPoc ? pocColor : color,\n transformOrigin: \"left\",\n }}\n initial={{ opacity: 0, transform: `scaleX(${item.proportion})` }}\n animate={{\n opacity: item.isPoc || item.inValueArea || !valueArea ? 0.9 : 0.3,\n transform: `scaleX(${item.proportion})`,\n }}\n transition={{\n transform: reduce ? { duration: 0 } : SPRING_LAYOUT,\n opacity: { duration: 0.18, ease: EASE_OUT },\n }}\n />\n <motion.div\n className=\"bg-foreground/5 absolute inset-0\"\n initial={false}\n animate={{ opacity: tooltipOpen && activeIndex === i ? 1 : 0 }}\n transition={{ duration: 0.1, ease: EASE_OUT }}\n />\n {item.isPoc ? (\n <span\n className=\"absolute inset-x-0 top-1/2 border-t border-dashed\"\n style={{ borderColor: pocColor }}\n >\n <span className=\"bg-background text-foreground absolute right-0 -translate-y-1/2 rounded-full px-1.5 py-px font-mono text-[11px] leading-none font-medium\">\n {t(\"pocBadge\")}\n </span>\n </span>\n ) : null}\n </div>\n ))}\n </div>\n <input\n type=\"range\"\n min={0}\n max={rows.length - 1}\n step={1}\n value={index}\n aria-label={t(\"inspect\", { label })}\n aria-orientation=\"vertical\"\n aria-valuetext={describe(row)}\n aria-describedby={tooltipOpen && activeIndex >= 0 ? tooltipId : undefined}\n className=\"absolute inset-0 m-0 h-full w-full cursor-crosshair opacity-0\"\n style={{ writingMode: \"vertical-lr\", direction: \"rtl\", touchAction: \"pan-x\" }}\n onFocus={() => {\n focused.current = true;\n if (!pointerDriven.current) {\n setActive(row.id);\n setTooltipOpen(true);\n }\n }}\n onBlur={() => {\n focused.current = false;\n pointerDriven.current = false;\n setTooltipOpen(false);\n }}\n onPointerEnter={(event) => {\n if (canHover && event.pointerType !== \"touch\") inspect(event);\n }}\n onPointerMove={(event) => {\n if (\n event.pointerType === \"touch\"\n ? event.buttons === 1\n : canHover || event.buttons === 1\n )\n inspect(event);\n }}\n onPointerLeave={() => {\n lastPointerId.current = null;\n if (!focused.current || pointerDriven.current) setTooltipOpen(false);\n }}\n onPointerDown={(event) => {\n pointerDriven.current = true;\n lastPointerId.current = null;\n inspect(event);\n }}\n onPointerCancel={() => {\n pointerDriven.current = false;\n setTooltipOpen(false);\n }}\n onClick={() => {\n pointerDriven.current = false;\n }}\n onKeyDown={(event) => {\n pointerDriven.current = false;\n if (event.key === \"Escape\") setTooltipOpen(false);\n else if (\n [\"ArrowUp\", \"ArrowDown\", \"ArrowLeft\", \"ArrowRight\", \"Home\", \"End\"].includes(\n event.key,\n )\n ) {\n if (activeIndex < 0) setActive(row.id);\n setTooltipOpen(true);\n }\n }}\n onChange={(event) => {\n if (pointerDriven.current) return;\n const next = rows[Number(event.target.value)];\n if (next) {\n setActive(next.id);\n setTooltipOpen(true);\n }\n }}\n />\n {showAxes ? (\n <div\n aria-hidden=\"true\"\n className=\"text-muted-foreground absolute inset-x-0 top-full mt-2 flex justify-between font-mono text-[11px] tabular-nums sm:text-xs\"\n >\n <span>0</span>\n <span>{formatVolume(maxVolume / 2)}</span>\n <span>{formatVolume(maxVolume)}</span>\n </div>\n ) : null}\n {children}\n </div>\n </div>\n </div>\n );\n}\n"],"mappings":"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"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as useVolumeProfile } from "../../../context-C5TW-k6u.js";
|
|
3
2
|
import { cn } from "@kumix/utils";
|
|
3
|
+
import { n as useVolumeProfile } from "../../../context-B3BNuwGu.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
// src/components/charts/volume-profile/summary.tsx
|
|
6
6
|
function VolumeProfileSummary({ className }) {
|
|
7
|
-
const { rows, totalVolume, poc, valueArea, formatPrice, formatVolume, unit, color, pocColor } = useVolumeProfile();
|
|
7
|
+
const { rows, totalVolume, poc, valueArea, formatPrice, formatVolume, unit, color, pocColor, t } = useVolumeProfile();
|
|
8
8
|
if (!rows.length) return null;
|
|
9
9
|
return /* @__PURE__ */ jsxs("dl", {
|
|
10
10
|
className: cn("border-border grid grid-cols-2 gap-x-4 gap-y-4 border-t pt-4 text-xs sm:grid-cols-3", className),
|
|
@@ -13,14 +13,13 @@ function VolumeProfileSummary({ className }) {
|
|
|
13
13
|
className: "space-y-1.5",
|
|
14
14
|
children: [/* @__PURE__ */ jsx("dt", {
|
|
15
15
|
className: "text-muted-foreground",
|
|
16
|
-
children: "
|
|
17
|
-
}), /* @__PURE__ */
|
|
16
|
+
children: t("totalVolume")
|
|
17
|
+
}), /* @__PURE__ */ jsx("dd", {
|
|
18
18
|
className: "font-mono font-medium tabular-nums",
|
|
19
|
-
children:
|
|
20
|
-
formatVolume(totalVolume),
|
|
21
|
-
" ",
|
|
19
|
+
children: t("amount", {
|
|
20
|
+
volume: formatVolume(totalVolume),
|
|
22
21
|
unit
|
|
23
|
-
|
|
22
|
+
})
|
|
24
23
|
})]
|
|
25
24
|
}),
|
|
26
25
|
/* @__PURE__ */ jsxs("div", {
|
|
@@ -31,10 +30,10 @@ function VolumeProfileSummary({ className }) {
|
|
|
31
30
|
"aria-hidden": "true",
|
|
32
31
|
className: "size-1.5 rounded-full",
|
|
33
32
|
style: { backgroundColor: pocColor }
|
|
34
|
-
}), "
|
|
33
|
+
}), t("poc")]
|
|
35
34
|
}), /* @__PURE__ */ jsx("dd", {
|
|
36
35
|
className: "font-mono font-medium tabular-nums",
|
|
37
|
-
children: poc ? formatPrice(poc.price) : "
|
|
36
|
+
children: poc ? formatPrice(poc.price) : "–"
|
|
38
37
|
})]
|
|
39
38
|
}),
|
|
40
39
|
valueArea ? /* @__PURE__ */ jsxs("div", {
|
|
@@ -42,16 +41,11 @@ function VolumeProfileSummary({ className }) {
|
|
|
42
41
|
children: [
|
|
43
42
|
/* @__PURE__ */ jsxs("dt", {
|
|
44
43
|
className: "text-muted-foreground flex items-center gap-1.5",
|
|
45
|
-
children: [
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}),
|
|
51
|
-
"Value area · ",
|
|
52
|
-
Math.round(valueArea.target * 100),
|
|
53
|
-
"% target"
|
|
54
|
-
]
|
|
44
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
45
|
+
"aria-hidden": "true",
|
|
46
|
+
className: "size-1.5 rounded-full",
|
|
47
|
+
style: { backgroundColor: color }
|
|
48
|
+
}), t("valueArea", { target: Math.round(valueArea.target * 100) })]
|
|
55
49
|
}),
|
|
56
50
|
/* @__PURE__ */ jsxs("dd", {
|
|
57
51
|
className: "font-mono font-medium tabular-nums",
|
|
@@ -61,9 +55,9 @@ function VolumeProfileSummary({ className }) {
|
|
|
61
55
|
formatPrice(valueArea.priceHigh)
|
|
62
56
|
]
|
|
63
57
|
}),
|
|
64
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ jsx("dd", {
|
|
65
59
|
className: "text-muted-foreground",
|
|
66
|
-
children:
|
|
60
|
+
children: t("shareOfVolume", { share: `${(valueArea.share * 100).toFixed(1)}%` })
|
|
67
61
|
})
|
|
68
62
|
]
|
|
69
63
|
}) : null
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"summary.js","names":[],"sources":["../../../../src/components/charts/volume-profile/summary.tsx"],"sourcesContent":["\"use client\";\n\nimport { cn } from \"@kumix/utils\";\nimport { useVolumeProfile } from \"./context\";\n\nexport function VolumeProfileSummary({ className }: { className?: string }) {\n const { rows, totalVolume, poc, valueArea, formatPrice, formatVolume, unit, color, pocColor } =\n useVolumeProfile();\n if (!rows.length) return null;\n return (\n <dl\n className={cn(\n \"border-border grid grid-cols-2 gap-x-4 gap-y-4 border-t pt-4 text-xs sm:grid-cols-3\",\n className,\n )}\n >\n <div className=\"space-y-1.5\">\n <dt className=\"text-muted-foreground\">
|
|
1
|
+
{"version":3,"file":"summary.js","names":[],"sources":["../../../../src/components/charts/volume-profile/summary.tsx"],"sourcesContent":["\"use client\";\n\nimport { cn } from \"@kumix/utils\";\nimport { useVolumeProfile } from \"./context\";\n\nexport function VolumeProfileSummary({ className }: { className?: string }) {\n const { rows, totalVolume, poc, valueArea, formatPrice, formatVolume, unit, color, pocColor, t } =\n useVolumeProfile();\n if (!rows.length) return null;\n return (\n <dl\n className={cn(\n \"border-border grid grid-cols-2 gap-x-4 gap-y-4 border-t pt-4 text-xs sm:grid-cols-3\",\n className,\n )}\n >\n <div className=\"space-y-1.5\">\n <dt className=\"text-muted-foreground\">{t(\"totalVolume\")}</dt>\n <dd className=\"font-mono font-medium tabular-nums\">\n {t(\"amount\", { volume: formatVolume(totalVolume), unit })}\n </dd>\n </div>\n <div className=\"space-y-1.5\">\n <dt className=\"text-muted-foreground flex items-center gap-1.5\">\n <span\n aria-hidden=\"true\"\n className=\"size-1.5 rounded-full\"\n style={{ backgroundColor: pocColor }}\n />\n {t(\"poc\")}\n </dt>\n <dd className=\"font-mono font-medium tabular-nums\">{poc ? formatPrice(poc.price) : \"–\"}</dd>\n </div>\n {valueArea ? (\n <div className=\"col-span-2 space-y-1.5 sm:col-span-1\">\n <dt className=\"text-muted-foreground flex items-center gap-1.5\">\n <span\n aria-hidden=\"true\"\n className=\"size-1.5 rounded-full\"\n style={{ backgroundColor: color }}\n />\n {t(\"valueArea\", { target: Math.round(valueArea.target * 100) })}\n </dt>\n <dd className=\"font-mono font-medium tabular-nums\">\n {formatPrice(valueArea.priceLow)} – {formatPrice(valueArea.priceHigh)}\n </dd>\n <dd className=\"text-muted-foreground\">\n {t(\"shareOfVolume\", { share: `${(valueArea.share * 100).toFixed(1)}%` })}\n </dd>\n </div>\n ) : null}\n </dl>\n );\n}\n"],"mappings":";;;;;AAKA,SAAgB,qBAAqB,EAAE,aAAqC;CAC1E,MAAM,EAAE,MAAM,aAAa,KAAK,WAAW,aAAa,cAAc,MAAM,OAAO,UAAU,MAC3F,iBAAiB;CACnB,IAAI,CAAC,KAAK,QAAQ,OAAO;CACzB,OACE,qBAAC,MAAD;EACE,WAAW,GACT,uFACA,SACF;EAJF,UAAA;GAME,qBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACE,oBAAC,MAAD;KAAI,WAAU;KAAyB,UAAA,EAAE,aAAa;IAAM,CAAA,GAC5D,oBAAC,MAAD;KAAI,WAAU;KACX,UAAA,EAAE,UAAU;MAAE,QAAQ,aAAa,WAAW;MAAG;KAAK,CAAC;IACtD,CAAA,CACD;;GACL,qBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACE,qBAAC,MAAD;KAAI,WAAU;KAAd,UAAA,CACE,oBAAC,QAAD;MACE,eAAY;MACZ,WAAU;MACV,OAAO,EAAE,iBAAiB,SAAS;KACpC,CAAA,GACA,EAAE,KAAK,CACN;IACJ,CAAA,GAAA,oBAAC,MAAD;KAAI,WAAU;KAAsC,UAAA,MAAM,YAAY,IAAI,KAAK,IAAI;IAAQ,CAAA,CACxF;;GACJ,YACC,qBAAC,OAAD;IAAK,WAAU;IAAf,UAAA;KACE,qBAAC,MAAD;MAAI,WAAU;MAAd,UAAA,CACE,oBAAC,QAAD;OACE,eAAY;OACZ,WAAU;OACV,OAAO,EAAE,iBAAiB,MAAM;MACjC,CAAA,GACA,EAAE,aAAa,EAAE,QAAQ,KAAK,MAAM,UAAU,SAAS,GAAG,EAAE,CAAC,CAC5D;;KACJ,qBAAC,MAAD;MAAI,WAAU;MAAd,UAAA;OACG,YAAY,UAAU,QAAQ;OAAE;OAAI,YAAY,UAAU,SAAS;MAClE;;KACJ,oBAAC,MAAD;MAAI,WAAU;MACX,UAAA,EAAE,iBAAiB,EAAE,OAAO,IAAI,UAAU,QAAQ,IAAA,CAAK,QAAQ,CAAC,EAAE,GAAG,CAAC;KACrE,CAAA;IACD;GACH,CAAA,IAAA;EACF;;AAER"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as VolumeProfileTooltipProps, t as VolumeProfileTooltip } from "../../../tooltip-
|
|
1
|
+
import { n as VolumeProfileTooltipProps, t as VolumeProfileTooltip } from "../../../tooltip-CoAbjn9I.js";
|
|
2
2
|
export { VolumeProfileTooltip, VolumeProfileTooltipProps };
|