@kumix/ui 0.4.2 → 0.4.3
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 +1 -3
- package/dist/{account-avatar-DILzuuvz.js → account-avatar--0_0u0WW.js} +4 -6
- package/dist/{account-avatar-DILzuuvz.js.map → account-avatar--0_0u0WW.js.map} +1 -1
- package/dist/{cascader-types-zhnUQ4sP.d.ts → cascader-types-Bh_kJ3Qw.d.ts} +1 -3
- package/dist/cascader-types-Bh_kJ3Qw.d.ts.map +1 -0
- package/dist/components/agents/agent-activity/activity-row.d.ts +1 -3
- package/dist/components/agents/agent-activity/activity-row.d.ts.map +1 -1
- package/dist/components/agents/agent-activity/activity-row.js +18 -19
- package/dist/components/agents/agent-activity/activity-row.js.map +1 -1
- package/dist/components/agents/agent-activity/index.d.ts +1 -3
- package/dist/components/agents/agent-activity/index.d.ts.map +1 -1
- package/dist/components/agents/agent-activity/index.js +4 -5
- package/dist/components/agents/agent-activity/index.js.map +1 -1
- package/dist/components/agents/agent-code.d.ts +0 -2
- package/dist/components/agents/agent-code.d.ts.map +1 -1
- package/dist/components/agents/agent-code.js +2 -3
- package/dist/components/agents/agent-code.js.map +1 -1
- package/dist/components/agents/agent-disclosure.d.ts +0 -2
- package/dist/components/agents/agent-disclosure.d.ts.map +1 -1
- package/dist/components/agents/agent-disclosure.js +1 -2
- package/dist/components/agents/ai-sidebar.d.ts +0 -2
- package/dist/components/agents/ai-sidebar.d.ts.map +1 -1
- package/dist/components/agents/ai-sidebar.js +8 -9
- package/dist/components/agents/ai-sidebar.js.map +1 -1
- package/dist/components/agents/approval-card/index.d.ts +0 -4
- package/dist/components/agents/approval-card/index.d.ts.map +1 -1
- package/dist/components/agents/approval-card/index.js +12 -13
- package/dist/components/agents/approval-card/index.js.map +1 -1
- package/dist/components/agents/chat-app.d.ts +0 -2
- package/dist/components/agents/chat-app.d.ts.map +1 -1
- package/dist/components/agents/chat-app.js +2 -3
- package/dist/components/agents/chat-app.js.map +1 -1
- package/dist/components/agents/citations.d.ts +0 -2
- package/dist/components/agents/citations.d.ts.map +1 -1
- package/dist/components/agents/citations.js +10 -11
- package/dist/components/agents/citations.js.map +1 -1
- package/dist/components/agents/code-block.d.ts +0 -2
- package/dist/components/agents/code-block.d.ts.map +1 -1
- package/dist/components/agents/code-block.js +10 -11
- package/dist/components/agents/code-block.js.map +1 -1
- package/dist/components/agents/file-diff.d.ts +0 -2
- package/dist/components/agents/file-diff.d.ts.map +1 -1
- package/dist/components/agents/file-diff.js +12 -13
- package/dist/components/agents/file-diff.js.map +1 -1
- package/dist/components/agents/image-generation.d.ts +0 -2
- package/dist/components/agents/image-generation.d.ts.map +1 -1
- package/dist/components/agents/image-generation.js +8 -9
- package/dist/components/agents/image-generation.js.map +1 -1
- package/dist/components/agents/loading-states/agent-progress.d.ts +0 -2
- package/dist/components/agents/loading-states/agent-progress.d.ts.map +1 -1
- package/dist/components/agents/loading-states/agent-progress.js +3 -4
- package/dist/components/agents/loading-states/agent-progress.js.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.d.ts +0 -2
- package/dist/components/agents/loading-states/reasoning-text.d.ts.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.js +2 -3
- package/dist/components/agents/loading-states/reasoning-text.js.map +1 -1
- package/dist/components/agents/loading-states/thinking-shimmer.d.ts +0 -2
- package/dist/components/agents/loading-states/thinking-shimmer.d.ts.map +1 -1
- package/dist/components/agents/loading-states/thinking-shimmer.js +1 -2
- package/dist/components/agents/message-bubble.d.ts +0 -2
- package/dist/components/agents/message-bubble.d.ts.map +1 -1
- package/dist/components/agents/message-bubble.js +4 -5
- package/dist/components/agents/message-bubble.js.map +1 -1
- package/dist/components/agents/message-context.d.ts +0 -2
- package/dist/components/agents/message-context.d.ts.map +1 -1
- package/dist/components/agents/message-context.js +1 -2
- package/dist/components/agents/message-scroller.d.ts +0 -2
- package/dist/components/agents/message-scroller.d.ts.map +1 -1
- package/dist/components/agents/message-scroller.js +2 -3
- package/dist/components/agents/message-scroller.js.map +1 -1
- package/dist/components/agents/message.d.ts +0 -2
- package/dist/components/agents/message.d.ts.map +1 -1
- package/dist/components/agents/message.js +5 -6
- package/dist/components/agents/message.js.map +1 -1
- package/dist/components/agents/prompt-input.d.ts +0 -2
- package/dist/components/agents/prompt-input.d.ts.map +1 -1
- package/dist/components/agents/prompt-input.js +13 -14
- package/dist/components/agents/prompt-input.js.map +1 -1
- package/dist/components/agents/streaming-response.d.ts +0 -2
- package/dist/components/agents/streaming-response.d.ts.map +1 -1
- package/dist/components/agents/streaming-response.js +5 -6
- package/dist/components/agents/streaming-response.js.map +1 -1
- package/dist/components/agents/todo-list.d.ts +0 -2
- package/dist/components/agents/todo-list.d.ts.map +1 -1
- package/dist/components/agents/todo-list.js +10 -11
- package/dist/components/agents/todo-list.js.map +1 -1
- package/dist/components/agents/tool-approval.d.ts +0 -2
- package/dist/components/agents/tool-approval.d.ts.map +1 -1
- package/dist/components/agents/tool-approval.js +15 -16
- package/dist/components/agents/tool-approval.js.map +1 -1
- package/dist/components/agents/tool-result.d.ts +0 -2
- package/dist/components/agents/tool-result.d.ts.map +1 -1
- package/dist/components/agents/tool-result.js +12 -13
- package/dist/components/agents/tool-result.js.map +1 -1
- package/dist/components/agents/voice-orb.d.ts +0 -2
- package/dist/components/agents/voice-orb.d.ts.map +1 -1
- package/dist/components/agents/voice-orb.js +3 -5
- package/dist/components/agents/voice-orb.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.d.ts +0 -2
- package/dist/components/charts/bump-chart/legend.d.ts.map +1 -1
- package/dist/components/charts/bump-chart/legend.js +4 -5
- package/dist/components/charts/bump-chart/legend.js.map +1 -1
- package/dist/components/charts/bump-chart/plot.d.ts +0 -2
- package/dist/components/charts/bump-chart/plot.d.ts.map +1 -1
- package/dist/components/charts/bump-chart/plot.js +1 -1
- package/dist/components/charts/bump-chart/point.d.ts +1 -3
- package/dist/components/charts/bump-chart/point.d.ts.map +1 -1
- package/dist/components/charts/bump-chart/point.js +8 -9
- package/dist/components/charts/bump-chart/point.js.map +1 -1
- package/dist/components/charts/bump-chart/series.d.ts +2 -4
- package/dist/components/charts/bump-chart/series.d.ts.map +1 -1
- package/dist/components/charts/bump-chart/series.js +3 -4
- package/dist/components/charts/bump-chart/series.js.map +1 -1
- package/dist/components/charts/bump-chart.d.ts +1 -3
- package/dist/components/charts/bump-chart.d.ts.map +1 -1
- package/dist/components/charts/bump-chart.js +3 -4
- package/dist/components/charts/candlestick-chart/context.d.ts +0 -2
- package/dist/components/charts/candlestick-chart/context.d.ts.map +1 -1
- package/dist/components/charts/candlestick-chart/context.js +1 -2
- package/dist/components/charts/candlestick-chart/legend.d.ts +0 -2
- package/dist/components/charts/candlestick-chart/legend.d.ts.map +1 -1
- package/dist/components/charts/candlestick-chart/legend.js +1 -2
- package/dist/components/charts/candlestick-chart/plot.d.ts +0 -2
- package/dist/components/charts/candlestick-chart/plot.d.ts.map +1 -1
- package/dist/components/charts/candlestick-chart/plot.js +5 -6
- package/dist/components/charts/candlestick-chart/plot.js.map +1 -1
- package/dist/components/charts/candlestick-chart.d.ts +0 -2
- package/dist/components/charts/candlestick-chart.d.ts.map +1 -1
- package/dist/components/charts/candlestick-chart.js +1 -2
- 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.d.ts +0 -2
- package/dist/components/charts/composition-chart/legend.d.ts.map +1 -1
- package/dist/components/charts/composition-chart/legend.js +5 -6
- package/dist/components/charts/composition-chart/legend.js.map +1 -1
- package/dist/components/charts/composition-chart/plot.d.ts +0 -2
- package/dist/components/charts/composition-chart/plot.d.ts.map +1 -1
- package/dist/components/charts/composition-chart/plot.js +7 -8
- package/dist/components/charts/composition-chart/plot.js.map +1 -1
- package/dist/components/charts/composition-chart/tooltip-content.d.ts +0 -2
- package/dist/components/charts/composition-chart/tooltip-content.d.ts.map +1 -1
- package/dist/components/charts/composition-chart/tooltip-content.js +6 -7
- package/dist/components/charts/composition-chart/tooltip-content.js.map +1 -1
- package/dist/components/charts/composition-chart.d.ts +1 -3
- package/dist/components/charts/composition-chart.d.ts.map +1 -1
- package/dist/components/charts/composition-chart.js +2 -3
- package/dist/components/charts/donut-chart/center.d.ts +1 -3
- package/dist/components/charts/donut-chart/center.d.ts.map +1 -1
- package/dist/components/charts/donut-chart/center.js +4 -5
- package/dist/components/charts/donut-chart/center.js.map +1 -1
- package/dist/components/charts/donut-chart/context.d.ts +1 -3
- 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 -3
- package/dist/components/charts/donut-chart/legend.d.ts.map +1 -1
- package/dist/components/charts/donut-chart/legend.js +7 -8
- package/dist/components/charts/donut-chart/legend.js.map +1 -1
- package/dist/components/charts/donut-chart/plot.d.ts +0 -2
- package/dist/components/charts/donut-chart/plot.d.ts.map +1 -1
- package/dist/components/charts/donut-chart/plot.js +2 -3
- package/dist/components/charts/donut-chart.d.ts +1 -3
- package/dist/components/charts/donut-chart.d.ts.map +1 -1
- package/dist/components/charts/donut-chart.js +2 -3
- package/dist/components/charts/funnel-chart.d.ts +0 -4
- package/dist/components/charts/funnel-chart.d.ts.map +1 -1
- package/dist/components/charts/funnel-chart.js +9 -11
- package/dist/components/charts/funnel-chart.js.map +1 -1
- package/dist/components/charts/heat-calendar/grid.d.ts +0 -2
- package/dist/components/charts/heat-calendar/grid.d.ts.map +1 -1
- package/dist/components/charts/heat-calendar/grid.js +4 -5
- package/dist/components/charts/heat-calendar/grid.js.map +1 -1
- package/dist/components/charts/heat-calendar/legend.d.ts +0 -2
- package/dist/components/charts/heat-calendar/legend.d.ts.map +1 -1
- package/dist/components/charts/heat-calendar/legend.js +4 -5
- 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 +3 -4
- package/dist/components/charts/heat-calendar.d.ts +1 -3
- package/dist/components/charts/heat-calendar.d.ts.map +1 -1
- package/dist/components/charts/heat-calendar.js +2 -3
- package/dist/components/charts/liquidity-heatmap.d.ts +0 -4
- package/dist/components/charts/liquidity-heatmap.d.ts.map +1 -1
- package/dist/components/charts/liquidity-heatmap.js +8 -10
- package/dist/components/charts/liquidity-heatmap.js.map +1 -1
- package/dist/components/charts/order-book/depth-row.d.ts +1 -3
- package/dist/components/charts/order-book/depth-row.d.ts.map +1 -1
- package/dist/components/charts/order-book/depth-row.js +4 -5
- package/dist/components/charts/order-book/depth-row.js.map +1 -1
- package/dist/components/charts/order-book.d.ts +1 -3
- package/dist/components/charts/order-book.d.ts.map +1 -1
- package/dist/components/charts/order-book.js +10 -12
- package/dist/components/charts/order-book.js.map +1 -1
- package/dist/components/charts/price-target-fan/header.d.ts +0 -2
- package/dist/components/charts/price-target-fan/header.d.ts.map +1 -1
- package/dist/components/charts/price-target-fan/header.js +4 -5
- package/dist/components/charts/price-target-fan/header.js.map +1 -1
- package/dist/components/charts/price-target-fan/plot.d.ts +0 -2
- package/dist/components/charts/price-target-fan/plot.d.ts.map +1 -1
- package/dist/components/charts/price-target-fan/plot.js +2 -3
- package/dist/components/charts/price-target-fan/series.d.ts +0 -2
- package/dist/components/charts/price-target-fan/series.d.ts.map +1 -1
- package/dist/components/charts/price-target-fan/series.js +2 -3
- package/dist/components/charts/price-target-fan/tooltip.d.ts +1 -1
- package/dist/components/charts/price-target-fan/tooltip.js +8 -9
- package/dist/components/charts/price-target-fan/tooltip.js.map +1 -1
- package/dist/components/charts/price-target-fan.d.ts +1 -3
- package/dist/components/charts/price-target-fan.d.ts.map +1 -1
- package/dist/components/charts/price-target-fan.js +2 -3
- package/dist/components/charts/returns-calendar/grid.d.ts +0 -2
- package/dist/components/charts/returns-calendar/grid.d.ts.map +1 -1
- package/dist/components/charts/returns-calendar/grid.js +6 -7
- package/dist/components/charts/returns-calendar/grid.js.map +1 -1
- package/dist/components/charts/returns-calendar/tooltip.d.ts +1 -1
- package/dist/components/charts/returns-calendar/tooltip.js +3 -4
- package/dist/components/charts/returns-calendar.d.ts +1 -5
- package/dist/components/charts/returns-calendar.d.ts.map +1 -1
- package/dist/components/charts/returns-calendar.js +2 -3
- package/dist/components/charts/status-bar/legend.d.ts +0 -2
- package/dist/components/charts/status-bar/legend.d.ts.map +1 -1
- package/dist/components/charts/status-bar/legend.js +3 -4
- package/dist/components/charts/status-bar/legend.js.map +1 -1
- package/dist/components/charts/status-bar/plot.d.ts +0 -2
- package/dist/components/charts/status-bar/plot.d.ts.map +1 -1
- package/dist/components/charts/status-bar/plot.js +6 -7
- 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 +3 -4
- package/dist/components/charts/status-bar.d.ts +1 -3
- package/dist/components/charts/status-bar.d.ts.map +1 -1
- package/dist/components/charts/status-bar.js +2 -3
- package/dist/components/charts/treemap/legend.d.ts +0 -2
- package/dist/components/charts/treemap/legend.d.ts.map +1 -1
- package/dist/components/charts/treemap/legend.js +2 -3
- package/dist/components/charts/treemap/plot.d.ts +1 -3
- package/dist/components/charts/treemap/plot.d.ts.map +1 -1
- package/dist/components/charts/treemap/plot.js +4 -5
- package/dist/components/charts/treemap/plot.js.map +1 -1
- package/dist/components/charts/treemap/tile.d.ts +1 -3
- package/dist/components/charts/treemap/tile.d.ts.map +1 -1
- package/dist/components/charts/treemap/tile.js +4 -5
- package/dist/components/charts/treemap/tile.js.map +1 -1
- package/dist/components/charts/treemap/tooltip.d.ts +1 -3
- package/dist/components/charts/treemap/tooltip.d.ts.map +1 -1
- package/dist/components/charts/treemap/tooltip.js +3 -4
- package/dist/components/charts/treemap.d.ts +1 -5
- package/dist/components/charts/treemap.d.ts.map +1 -1
- package/dist/components/charts/treemap.js +2 -3
- package/dist/components/charts/volume-profile/plot.d.ts +0 -2
- package/dist/components/charts/volume-profile/plot.d.ts.map +1 -1
- package/dist/components/charts/volume-profile/plot.js +9 -10
- package/dist/components/charts/volume-profile/plot.js.map +1 -1
- package/dist/components/charts/volume-profile/summary.d.ts +0 -2
- package/dist/components/charts/volume-profile/summary.d.ts.map +1 -1
- package/dist/components/charts/volume-profile/summary.js +8 -9
- 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 +4 -5
- package/dist/components/charts/volume-profile/tooltip.js.map +1 -1
- package/dist/components/charts/volume-profile.d.ts +1 -5
- package/dist/components/charts/volume-profile.d.ts.map +1 -1
- package/dist/components/charts/volume-profile.js +2 -3
- package/dist/components/custom/confirm-dialog.d.ts +0 -2
- package/dist/components/custom/confirm-dialog.d.ts.map +1 -1
- package/dist/components/custom/confirm-dialog.js +7 -8
- package/dist/components/custom/confirm-dialog.js.map +1 -1
- package/dist/components/custom/toast.d.ts +0 -2
- package/dist/components/custom/toast.d.ts.map +1 -1
- package/dist/components/custom/toast.js +1 -2
- package/dist/components/motion/action-swap-blur.d.ts +0 -2
- package/dist/components/motion/action-swap-blur.d.ts.map +1 -1
- package/dist/components/motion/action-swap-blur.js +1 -2
- package/dist/components/motion/action-swap-cascade.d.ts +0 -2
- package/dist/components/motion/action-swap-cascade.d.ts.map +1 -1
- package/dist/components/motion/action-swap-cascade.js +1 -2
- package/dist/components/motion/action-swap-roll.d.ts +0 -2
- package/dist/components/motion/action-swap-roll.d.ts.map +1 -1
- package/dist/components/motion/action-swap-roll.js +1 -2
- package/dist/components/motion/action-swap.d.ts +0 -2
- package/dist/components/motion/action-swap.d.ts.map +1 -1
- package/dist/components/motion/action-swap.js +3 -4
- package/dist/components/motion/action-swap.js.map +1 -1
- package/dist/components/motion/adaptive-stepper.d.ts +0 -2
- package/dist/components/motion/adaptive-stepper.d.ts.map +1 -1
- package/dist/components/motion/adaptive-stepper.js +4 -6
- package/dist/components/motion/adaptive-stepper.js.map +1 -1
- package/dist/components/motion/alert.d.ts +0 -2
- package/dist/components/motion/alert.d.ts.map +1 -1
- package/dist/components/motion/alert.js +5 -6
- package/dist/components/motion/alert.js.map +1 -1
- package/dist/components/motion/animated-badge.d.ts +0 -2
- package/dist/components/motion/animated-badge.d.ts.map +1 -1
- package/dist/components/motion/animated-badge.js +2 -3
- package/dist/components/motion/animated-badge.js.map +1 -1
- package/dist/components/motion/animated-number.d.ts +0 -2
- package/dist/components/motion/animated-number.d.ts.map +1 -1
- package/dist/components/motion/animated-number.js +1 -2
- package/dist/components/motion/animated-sidebar.d.ts +0 -2
- package/dist/components/motion/animated-sidebar.d.ts.map +1 -1
- package/dist/components/motion/animated-sidebar.js +16 -17
- package/dist/components/motion/animated-sidebar.js.map +1 -1
- package/dist/components/motion/animated-toast-stack.d.ts +0 -2
- package/dist/components/motion/animated-toast-stack.d.ts.map +1 -1
- package/dist/components/motion/animated-toast-stack.js +7 -8
- package/dist/components/motion/animated-toast-stack.js.map +1 -1
- package/dist/components/motion/arc-picker.d.ts +0 -2
- package/dist/components/motion/arc-picker.d.ts.map +1 -1
- package/dist/components/motion/arc-picker.js +5 -6
- package/dist/components/motion/arc-picker.js.map +1 -1
- package/dist/components/motion/aspect-ratio.d.ts +0 -2
- package/dist/components/motion/aspect-ratio.d.ts.map +1 -1
- package/dist/components/motion/aspect-ratio.js +1 -2
- package/dist/components/motion/attachment-upload.d.ts +0 -2
- package/dist/components/motion/attachment-upload.d.ts.map +1 -1
- package/dist/components/motion/attachment-upload.js +29 -30
- package/dist/components/motion/attachment-upload.js.map +1 -1
- package/dist/components/motion/availability-scheduler/copy-menu.d.ts +1 -3
- 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 +1 -3
- package/dist/components/motion/availability-scheduler/day-row.d.ts.map +1 -1
- package/dist/components/motion/availability-scheduler/day-row.js +5 -6
- package/dist/components/motion/availability-scheduler/day-row.js.map +1 -1
- package/dist/components/motion/availability-scheduler/icon-button.d.ts +0 -2
- package/dist/components/motion/availability-scheduler/icon-button.d.ts.map +1 -1
- package/dist/components/motion/availability-scheduler/icon-button.js +2 -3
- package/dist/components/motion/availability-scheduler/icon-button.js.map +1 -1
- package/dist/components/motion/availability-scheduler/index.d.ts +1 -3
- package/dist/components/motion/availability-scheduler/index.d.ts.map +1 -1
- package/dist/components/motion/availability-scheduler/index.js +3 -4
- package/dist/components/motion/availability-scheduler/index.js.map +1 -1
- package/dist/components/motion/availability-scheduler/time-select.d.ts +1 -3
- package/dist/components/motion/availability-scheduler/time-select.d.ts.map +1 -1
- package/dist/components/motion/availability-scheduler/time-select.js +1 -2
- package/dist/components/motion/bloom-menu.d.ts +0 -2
- package/dist/components/motion/bloom-menu.d.ts.map +1 -1
- package/dist/components/motion/bloom-menu.js +8 -9
- package/dist/components/motion/bloom-menu.js.map +1 -1
- package/dist/components/motion/bottom-sheet.d.ts +0 -2
- package/dist/components/motion/bottom-sheet.d.ts.map +1 -1
- package/dist/components/motion/bottom-sheet.js +7 -8
- package/dist/components/motion/bottom-sheet.js.map +1 -1
- package/dist/components/motion/bounce-sidebar.d.ts +0 -2
- package/dist/components/motion/bounce-sidebar.d.ts.map +1 -1
- package/dist/components/motion/bounce-sidebar.js +3 -4
- package/dist/components/motion/bounce-sidebar.js.map +1 -1
- package/dist/components/motion/bouncy-accordion.d.ts +0 -2
- package/dist/components/motion/bouncy-accordion.d.ts.map +1 -1
- package/dist/components/motion/bouncy-accordion.js +7 -8
- package/dist/components/motion/bouncy-accordion.js.map +1 -1
- package/dist/components/motion/breadcrumb.d.ts +0 -2
- package/dist/components/motion/breadcrumb.d.ts.map +1 -1
- package/dist/components/motion/breadcrumb.js +7 -8
- package/dist/components/motion/breadcrumb.js.map +1 -1
- package/dist/components/motion/button/base.d.ts +0 -2
- package/dist/components/motion/button/base.d.ts.map +1 -1
- package/dist/components/motion/button/base.js +3 -4
- package/dist/components/motion/button/base.js.map +1 -1
- package/dist/components/motion/button/magnetic.d.ts +0 -2
- package/dist/components/motion/button/magnetic.d.ts.map +1 -1
- package/dist/components/motion/button/magnetic.js +1 -2
- package/dist/components/motion/button/metallic.d.ts +0 -2
- package/dist/components/motion/button/metallic.d.ts.map +1 -1
- package/dist/components/motion/button/metallic.js +3 -4
- package/dist/components/motion/button/metallic.js.map +1 -1
- package/dist/components/motion/button/stateful.d.ts +0 -2
- package/dist/components/motion/button/stateful.d.ts.map +1 -1
- package/dist/components/motion/button/stateful.js +2 -3
- package/dist/components/motion/button/stateful.js.map +1 -1
- package/dist/components/motion/card-folder.d.ts +0 -2
- package/dist/components/motion/card-folder.d.ts.map +1 -1
- package/dist/components/motion/card-folder.js +14 -15
- package/dist/components/motion/card-folder.js.map +1 -1
- package/dist/components/motion/card.d.ts +0 -2
- package/dist/components/motion/card.d.ts.map +1 -1
- package/dist/components/motion/card.js +3 -4
- package/dist/components/motion/card.js.map +1 -1
- package/dist/components/motion/center-morph-modal.d.ts +0 -2
- package/dist/components/motion/center-morph-modal.d.ts.map +1 -1
- package/dist/components/motion/center-morph-modal.js +6 -7
- package/dist/components/motion/center-morph-modal.js.map +1 -1
- package/dist/components/motion/checkbox.d.ts +0 -2
- package/dist/components/motion/checkbox.d.ts.map +1 -1
- package/dist/components/motion/checkbox.js +3 -4
- package/dist/components/motion/checkbox.js.map +1 -1
- package/dist/components/motion/chromatic-text-reveal.d.ts +0 -2
- package/dist/components/motion/chromatic-text-reveal.d.ts.map +1 -1
- package/dist/components/motion/chromatic-text-reveal.js +2 -3
- package/dist/components/motion/chromatic-text-reveal.js.map +1 -1
- package/dist/components/motion/collapsible.d.ts +0 -2
- package/dist/components/motion/collapsible.d.ts.map +1 -1
- package/dist/components/motion/collapsible.js +3 -4
- package/dist/components/motion/collapsible.js.map +1 -1
- package/dist/components/motion/color-picker.d.ts +0 -2
- package/dist/components/motion/color-picker.d.ts.map +1 -1
- package/dist/components/motion/color-picker.js +13 -14
- package/dist/components/motion/color-picker.js.map +1 -1
- package/dist/components/motion/color-selector.d.ts +0 -2
- package/dist/components/motion/color-selector.d.ts.map +1 -1
- package/dist/components/motion/color-selector.js +3 -4
- package/dist/components/motion/color-selector.js.map +1 -1
- package/dist/components/motion/combobox/content.d.ts +0 -2
- package/dist/components/motion/combobox/content.d.ts.map +1 -1
- package/dist/components/motion/combobox/content.js +3 -4
- package/dist/components/motion/combobox/content.js.map +1 -1
- package/dist/components/motion/combobox/context.d.ts +0 -2
- package/dist/components/motion/combobox/context.d.ts.map +1 -1
- package/dist/components/motion/combobox/context.js +2 -3
- package/dist/components/motion/combobox/list.d.ts +0 -2
- package/dist/components/motion/combobox/list.d.ts.map +1 -1
- package/dist/components/motion/combobox/list.js +8 -9
- package/dist/components/motion/combobox/list.js.map +1 -1
- package/dist/components/motion/combobox/trigger.d.ts +0 -2
- package/dist/components/motion/combobox/trigger.d.ts.map +1 -1
- package/dist/components/motion/combobox/trigger.js +5 -6
- package/dist/components/motion/combobox/trigger.js.map +1 -1
- package/dist/components/motion/command-palette.d.ts +0 -2
- package/dist/components/motion/command-palette.d.ts.map +1 -1
- package/dist/components/motion/command-palette.js +14 -15
- package/dist/components/motion/command-palette.js.map +1 -1
- package/dist/components/motion/context-menu.d.ts +0 -2
- package/dist/components/motion/context-menu.d.ts.map +1 -1
- package/dist/components/motion/context-menu.js +8 -9
- package/dist/components/motion/context-menu.js.map +1 -1
- package/dist/components/motion/cylinder-carousel.d.ts +0 -2
- package/dist/components/motion/cylinder-carousel.d.ts.map +1 -1
- package/dist/components/motion/cylinder-carousel.js +2 -3
- package/dist/components/motion/cylinder-carousel.js.map +1 -1
- package/dist/components/motion/date-range-picker.d.ts +0 -4
- package/dist/components/motion/date-range-picker.d.ts.map +1 -1
- package/dist/components/motion/date-range-picker.js +22 -26
- package/dist/components/motion/date-range-picker.js.map +1 -1
- package/dist/components/motion/digit-swap.d.ts +0 -2
- package/dist/components/motion/digit-swap.d.ts.map +1 -1
- package/dist/components/motion/digit-swap.js +1 -2
- package/dist/components/motion/dock.d.ts +0 -2
- package/dist/components/motion/dock.d.ts.map +1 -1
- package/dist/components/motion/dock.js +6 -7
- package/dist/components/motion/dock.js.map +1 -1
- package/dist/components/motion/drawer.d.ts +0 -2
- package/dist/components/motion/drawer.d.ts.map +1 -1
- package/dist/components/motion/drawer.js +3 -4
- package/dist/components/motion/drawer.js.map +1 -1
- package/dist/components/motion/dynamic-island.d.ts +0 -2
- package/dist/components/motion/dynamic-island.d.ts.map +1 -1
- package/dist/components/motion/dynamic-island.js +2 -3
- package/dist/components/motion/dynamic-island.js.map +1 -1
- package/dist/components/motion/expandable-action-bar.d.ts +0 -2
- package/dist/components/motion/expandable-action-bar.d.ts.map +1 -1
- package/dist/components/motion/expandable-action-bar.js +6 -7
- package/dist/components/motion/expandable-action-bar.js.map +1 -1
- package/dist/components/motion/expandable-control.d.ts +0 -2
- package/dist/components/motion/expandable-control.d.ts.map +1 -1
- package/dist/components/motion/expandable-control.js +6 -7
- package/dist/components/motion/expandable-control.js.map +1 -1
- package/dist/components/motion/expandable-tabs.d.ts +0 -2
- package/dist/components/motion/expandable-tabs.d.ts.map +1 -1
- package/dist/components/motion/expandable-tabs.js +5 -6
- package/dist/components/motion/expandable-tabs.js.map +1 -1
- package/dist/components/motion/expanding-arrow-button.d.ts +0 -2
- package/dist/components/motion/expanding-arrow-button.d.ts.map +1 -1
- package/dist/components/motion/expanding-arrow-button.js +3 -4
- package/dist/components/motion/expanding-arrow-button.js.map +1 -1
- package/dist/components/motion/feedback-widget.d.ts +0 -2
- package/dist/components/motion/feedback-widget.d.ts.map +1 -1
- package/dist/components/motion/feedback-widget.js +15 -16
- package/dist/components/motion/feedback-widget.js.map +1 -1
- package/dist/components/motion/file-tree.d.ts +0 -2
- package/dist/components/motion/file-tree.d.ts.map +1 -1
- package/dist/components/motion/file-tree.js +4 -5
- package/dist/components/motion/file-tree.js.map +1 -1
- package/dist/components/motion/file-upload.d.ts +0 -2
- package/dist/components/motion/file-upload.d.ts.map +1 -1
- package/dist/components/motion/file-upload.js +13 -14
- package/dist/components/motion/file-upload.js.map +1 -1
- package/dist/components/motion/hold-action-button.d.ts +0 -2
- package/dist/components/motion/hold-action-button.d.ts.map +1 -1
- package/dist/components/motion/hold-action-button.js +3 -4
- package/dist/components/motion/hold-action-button.js.map +1 -1
- package/dist/components/motion/infinite-masonry.d.ts +0 -2
- package/dist/components/motion/infinite-masonry.d.ts.map +1 -1
- package/dist/components/motion/infinite-masonry.js +16 -17
- package/dist/components/motion/infinite-masonry.js.map +1 -1
- package/dist/components/motion/input.d.ts +0 -2
- package/dist/components/motion/input.d.ts.map +1 -1
- package/dist/components/motion/input.js +7 -8
- package/dist/components/motion/input.js.map +1 -1
- package/dist/components/motion/knockout-bracket.d.ts +0 -2
- package/dist/components/motion/knockout-bracket.d.ts.map +1 -1
- package/dist/components/motion/knockout-bracket.js +17 -18
- package/dist/components/motion/knockout-bracket.js.map +1 -1
- package/dist/components/motion/knockout-wheel.d.ts +0 -2
- package/dist/components/motion/knockout-wheel.d.ts.map +1 -1
- package/dist/components/motion/knockout-wheel.js +7 -8
- package/dist/components/motion/knockout-wheel.js.map +1 -1
- package/dist/components/motion/liquid.d.ts +0 -2
- package/dist/components/motion/liquid.d.ts.map +1 -1
- package/dist/components/motion/liquid.js +1 -2
- package/dist/components/motion/loader.d.ts +0 -2
- package/dist/components/motion/loader.d.ts.map +1 -1
- package/dist/components/motion/loader.js +5 -6
- package/dist/components/motion/loader.js.map +1 -1
- package/dist/components/motion/magnetic.d.ts +0 -2
- package/dist/components/motion/magnetic.d.ts.map +1 -1
- package/dist/components/motion/magnetic.js +1 -2
- package/dist/components/motion/marquee.d.ts +0 -2
- package/dist/components/motion/marquee.d.ts.map +1 -1
- package/dist/components/motion/marquee.js +1 -2
- package/dist/components/motion/morphing-lightbox.d.ts +0 -2
- package/dist/components/motion/morphing-lightbox.d.ts.map +1 -1
- package/dist/components/motion/morphing-lightbox.js +5 -6
- package/dist/components/motion/morphing-lightbox.js.map +1 -1
- package/dist/components/motion/morphing-modal.d.ts +0 -2
- package/dist/components/motion/morphing-modal.d.ts.map +1 -1
- package/dist/components/motion/morphing-modal.js +4 -5
- package/dist/components/motion/morphing-modal.js.map +1 -1
- package/dist/components/motion/morphing-search-chips.d.ts +0 -2
- package/dist/components/motion/morphing-search-chips.d.ts.map +1 -1
- package/dist/components/motion/morphing-search-chips.js +17 -18
- package/dist/components/motion/morphing-search-chips.js.map +1 -1
- package/dist/components/motion/morphing-search.d.ts +0 -2
- package/dist/components/motion/morphing-search.d.ts.map +1 -1
- package/dist/components/motion/morphing-search.js +17 -18
- package/dist/components/motion/morphing-search.js.map +1 -1
- package/dist/components/motion/morphing-tabs.d.ts +0 -2
- package/dist/components/motion/morphing-tabs.d.ts.map +1 -1
- package/dist/components/motion/morphing-tabs.js +6 -7
- package/dist/components/motion/morphing-tabs.js.map +1 -1
- package/dist/components/motion/multi-select/content.d.ts +0 -2
- package/dist/components/motion/multi-select/content.d.ts.map +1 -1
- package/dist/components/motion/multi-select/content.js +3 -4
- package/dist/components/motion/multi-select/content.js.map +1 -1
- package/dist/components/motion/multi-select/context.d.ts +0 -2
- package/dist/components/motion/multi-select/context.d.ts.map +1 -1
- package/dist/components/motion/multi-select/context.js +2 -3
- package/dist/components/motion/multi-select/list.d.ts +0 -2
- package/dist/components/motion/multi-select/list.d.ts.map +1 -1
- package/dist/components/motion/multi-select/list.js +8 -9
- package/dist/components/motion/multi-select/list.js.map +1 -1
- package/dist/components/motion/multi-select/trigger.d.ts +0 -2
- package/dist/components/motion/multi-select/trigger.d.ts.map +1 -1
- package/dist/components/motion/multi-select/trigger.js +7 -8
- package/dist/components/motion/multi-select/trigger.js.map +1 -1
- package/dist/components/motion/not-found/glitch.d.ts +0 -2
- package/dist/components/motion/not-found/glitch.d.ts.map +1 -1
- package/dist/components/motion/not-found/glitch.js +4 -5
- package/dist/components/motion/not-found/glitch.js.map +1 -1
- package/dist/components/motion/not-found/magnetic.d.ts +0 -2
- package/dist/components/motion/not-found/magnetic.d.ts.map +1 -1
- package/dist/components/motion/not-found/magnetic.js +4 -5
- package/dist/components/motion/not-found/magnetic.js.map +1 -1
- package/dist/components/motion/not-found/shared.d.ts +0 -2
- package/dist/components/motion/not-found/shared.d.ts.map +1 -1
- package/dist/components/motion/not-found/shared.js +3 -4
- package/dist/components/motion/not-found/shared.js.map +1 -1
- package/dist/components/motion/not-found/spotlight.d.ts +0 -2
- package/dist/components/motion/not-found/spotlight.d.ts.map +1 -1
- package/dist/components/motion/not-found/spotlight.js +6 -7
- package/dist/components/motion/not-found/spotlight.js.map +1 -1
- package/dist/components/motion/not-found/stacked.d.ts +0 -2
- package/dist/components/motion/not-found/stacked.d.ts.map +1 -1
- package/dist/components/motion/not-found/stacked.js +6 -7
- package/dist/components/motion/not-found/stacked.js.map +1 -1
- package/dist/components/motion/not-found/terminal.d.ts +0 -2
- package/dist/components/motion/not-found/terminal.d.ts.map +1 -1
- package/dist/components/motion/not-found/terminal.js +6 -7
- package/dist/components/motion/not-found/terminal.js.map +1 -1
- package/dist/components/motion/notification-stack.d.ts +0 -2
- package/dist/components/motion/notification-stack.d.ts.map +1 -1
- package/dist/components/motion/notification-stack.js +8 -9
- package/dist/components/motion/notification-stack.js.map +1 -1
- package/dist/components/motion/number-ticker.d.ts +0 -2
- package/dist/components/motion/number-ticker.d.ts.map +1 -1
- package/dist/components/motion/number-ticker.js +1 -2
- package/dist/components/motion/otp-input.d.ts +0 -2
- package/dist/components/motion/otp-input.d.ts.map +1 -1
- package/dist/components/motion/otp-input.js +4 -5
- package/dist/components/motion/otp-input.js.map +1 -1
- package/dist/components/motion/overflow-actions.d.ts +0 -2
- package/dist/components/motion/overflow-actions.d.ts.map +1 -1
- package/dist/components/motion/overflow-actions.js +4 -5
- package/dist/components/motion/overflow-actions.js.map +1 -1
- package/dist/components/motion/parallax.d.ts +0 -2
- package/dist/components/motion/parallax.d.ts.map +1 -1
- package/dist/components/motion/parallax.js +1 -2
- package/dist/components/motion/popover-morph.d.ts +0 -2
- package/dist/components/motion/popover-morph.d.ts.map +1 -1
- package/dist/components/motion/popover-morph.js +3 -4
- package/dist/components/motion/popover-morph.js.map +1 -1
- package/dist/components/motion/popover.d.ts +0 -2
- package/dist/components/motion/popover.d.ts.map +1 -1
- package/dist/components/motion/popover.js +5 -6
- package/dist/components/motion/popover.js.map +1 -1
- package/dist/components/motion/prediction-market-card.d.ts +0 -2
- package/dist/components/motion/prediction-market-card.d.ts.map +1 -1
- package/dist/components/motion/prediction-market-card.js +14 -15
- package/dist/components/motion/prediction-market-card.js.map +1 -1
- package/dist/components/motion/prediction-market.d.ts +0 -2
- package/dist/components/motion/prediction-market.d.ts.map +1 -1
- package/dist/components/motion/prediction-market.js +18 -19
- package/dist/components/motion/prediction-market.js.map +1 -1
- package/dist/components/motion/preview-rail.d.ts +0 -2
- package/dist/components/motion/preview-rail.d.ts.map +1 -1
- package/dist/components/motion/preview-rail.js +5 -6
- package/dist/components/motion/preview-rail.js.map +1 -1
- package/dist/components/motion/project-folder.d.ts +0 -2
- package/dist/components/motion/project-folder.d.ts.map +1 -1
- package/dist/components/motion/project-folder.js +15 -16
- package/dist/components/motion/project-folder.js.map +1 -1
- package/dist/components/motion/pull-to-refresh.d.ts +0 -2
- package/dist/components/motion/pull-to-refresh.d.ts.map +1 -1
- package/dist/components/motion/pull-to-refresh.js +3 -4
- package/dist/components/motion/pull-to-refresh.js.map +1 -1
- package/dist/components/motion/radio.d.ts +0 -2
- package/dist/components/motion/radio.d.ts.map +1 -1
- package/dist/components/motion/radio.js +4 -5
- package/dist/components/motion/radio.js.map +1 -1
- package/dist/components/motion/range-slider-bubble.d.ts +0 -2
- package/dist/components/motion/range-slider-bubble.d.ts.map +1 -1
- package/dist/components/motion/range-slider-bubble.js +7 -8
- package/dist/components/motion/range-slider-bubble.js.map +1 -1
- package/dist/components/motion/range-slider-fluid.d.ts +0 -2
- package/dist/components/motion/range-slider-fluid.d.ts.map +1 -1
- package/dist/components/motion/range-slider-fluid.js +6 -7
- package/dist/components/motion/range-slider-fluid.js.map +1 -1
- package/dist/components/motion/range-slider-inline.d.ts +0 -2
- package/dist/components/motion/range-slider-inline.d.ts.map +1 -1
- package/dist/components/motion/range-slider-inline.js +9 -10
- package/dist/components/motion/range-slider-inline.js.map +1 -1
- package/dist/components/motion/range-slider-ruler.d.ts +0 -2
- package/dist/components/motion/range-slider-ruler.d.ts.map +1 -1
- package/dist/components/motion/range-slider-ruler.js +7 -8
- package/dist/components/motion/range-slider-ruler.js.map +1 -1
- package/dist/components/motion/range-slider-wave.d.ts +0 -2
- package/dist/components/motion/range-slider-wave.d.ts.map +1 -1
- package/dist/components/motion/range-slider-wave.js +2 -3
- package/dist/components/motion/range-slider-wave.js.map +1 -1
- package/dist/components/motion/range-slider.d.ts +0 -2
- package/dist/components/motion/range-slider.d.ts.map +1 -1
- package/dist/components/motion/range-slider.js +5 -6
- package/dist/components/motion/range-slider.js.map +1 -1
- package/dist/components/motion/scroll-progress.d.ts +0 -2
- package/dist/components/motion/scroll-progress.d.ts.map +1 -1
- package/dist/components/motion/scroll-progress.js +2 -3
- package/dist/components/motion/scroll-progress.js.map +1 -1
- package/dist/components/motion/scroll-reveal.d.ts +0 -2
- package/dist/components/motion/scroll-reveal.d.ts.map +1 -1
- package/dist/components/motion/scroll-reveal.js +1 -2
- package/dist/components/motion/scroll-to.d.ts +0 -2
- package/dist/components/motion/scroll-to.d.ts.map +1 -1
- package/dist/components/motion/scroll-to.js +1 -2
- package/dist/components/motion/select-morph.d.ts +0 -2
- package/dist/components/motion/select-morph.d.ts.map +1 -1
- package/dist/components/motion/select-morph.js +6 -7
- package/dist/components/motion/select-morph.js.map +1 -1
- package/dist/components/motion/select.d.ts +0 -2
- package/dist/components/motion/select.d.ts.map +1 -1
- package/dist/components/motion/select.js +4 -5
- package/dist/components/motion/select.js.map +1 -1
- package/dist/components/motion/shader-background.d.ts +0 -2
- package/dist/components/motion/shader-background.d.ts.map +1 -1
- package/dist/components/motion/shader-background.js +1 -2
- package/dist/components/motion/shared-layout-bg.d.ts +0 -2
- package/dist/components/motion/shared-layout-bg.d.ts.map +1 -1
- package/dist/components/motion/shared-layout-bg.js +2 -3
- package/dist/components/motion/shared-layout-bg.js.map +1 -1
- package/dist/components/motion/signup-form.d.ts +0 -2
- package/dist/components/motion/signup-form.d.ts.map +1 -1
- package/dist/components/motion/signup-form.js +8 -9
- package/dist/components/motion/signup-form.js.map +1 -1
- package/dist/components/motion/slide-action-button.d.ts +0 -2
- package/dist/components/motion/slide-action-button.d.ts.map +1 -1
- package/dist/components/motion/slide-action-button.js +6 -7
- package/dist/components/motion/slide-action-button.js.map +1 -1
- package/dist/components/motion/smooth-scroll.d.ts +0 -2
- package/dist/components/motion/smooth-scroll.d.ts.map +1 -1
- package/dist/components/motion/smooth-scroll.js +1 -2
- package/dist/components/motion/sortable-list.d.ts +0 -2
- package/dist/components/motion/sortable-list.d.ts.map +1 -1
- package/dist/components/motion/sortable-list.js +4 -5
- package/dist/components/motion/sortable-list.js.map +1 -1
- package/dist/components/motion/swap/controls.d.ts +1 -3
- package/dist/components/motion/swap/controls.d.ts.map +1 -1
- package/dist/components/motion/swap/controls.js +9 -10
- package/dist/components/motion/swap/controls.js.map +1 -1
- package/dist/components/motion/swap/field.d.ts +1 -3
- package/dist/components/motion/swap/field.d.ts.map +1 -1
- package/dist/components/motion/swap/field.js +12 -13
- package/dist/components/motion/swap/field.js.map +1 -1
- package/dist/components/motion/swap/quote-row.d.ts +1 -3
- package/dist/components/motion/swap/quote-row.d.ts.map +1 -1
- package/dist/components/motion/swap/quote-row.js +8 -9
- package/dist/components/motion/swap/quote-row.js.map +1 -1
- package/dist/components/motion/swap/token-badges.d.ts +1 -3
- package/dist/components/motion/swap/token-badges.d.ts.map +1 -1
- package/dist/components/motion/swap/token-badges.js +5 -6
- package/dist/components/motion/swap/token-badges.js.map +1 -1
- package/dist/components/motion/swap/token-picker.d.ts +1 -3
- package/dist/components/motion/swap/token-picker.d.ts.map +1 -1
- package/dist/components/motion/swap/token-picker.js +18 -19
- package/dist/components/motion/swap/token-picker.js.map +1 -1
- package/dist/components/motion/swap.d.ts +2 -4
- package/dist/components/motion/swap.d.ts.map +1 -1
- package/dist/components/motion/swap.js +7 -9
- package/dist/components/motion/swap.js.map +1 -1
- package/dist/components/motion/swipeable-list.d.ts +0 -2
- package/dist/components/motion/swipeable-list.d.ts.map +1 -1
- package/dist/components/motion/swipeable-list.js +9 -10
- package/dist/components/motion/swipeable-list.js.map +1 -1
- package/dist/components/motion/switch.d.ts +0 -2
- package/dist/components/motion/switch.d.ts.map +1 -1
- package/dist/components/motion/switch.js +4 -5
- package/dist/components/motion/switch.js.map +1 -1
- package/dist/components/motion/table/editable-cell.d.ts +0 -2
- package/dist/components/motion/table/editable-cell.d.ts.map +1 -1
- package/dist/components/motion/table/editable-cell.js +2 -3
- package/dist/components/motion/table/editable-cell.js.map +1 -1
- package/dist/components/motion/table/index.d.ts +1 -3
- package/dist/components/motion/table/index.d.ts.map +1 -1
- package/dist/components/motion/table/index.js +9 -14
- package/dist/components/motion/table/index.js.map +1 -1
- package/dist/components/motion/table/row-handle.d.ts +0 -2
- package/dist/components/motion/table/row-handle.d.ts.map +1 -1
- package/dist/components/motion/table/row-handle.js +2 -3
- package/dist/components/motion/table/skeleton-rows.d.ts +1 -3
- package/dist/components/motion/table/skeleton-rows.d.ts.map +1 -1
- package/dist/components/motion/table/skeleton-rows.js +3 -4
- package/dist/components/motion/table/skeleton-rows.js.map +1 -1
- package/dist/components/motion/table/table-header.d.ts +1 -3
- package/dist/components/motion/table/table-header.d.ts.map +1 -1
- package/dist/components/motion/table/table-header.js +10 -11
- package/dist/components/motion/table/table-header.js.map +1 -1
- package/dist/components/motion/table/table-menu.d.ts +0 -2
- package/dist/components/motion/table/table-menu.d.ts.map +1 -1
- package/dist/components/motion/table/table-menu.js +2 -3
- package/dist/components/motion/table/table-menu.js.map +1 -1
- package/dist/components/motion/tabs.d.ts +0 -2
- package/dist/components/motion/tabs.d.ts.map +1 -1
- package/dist/components/motion/tabs.js +12 -13
- package/dist/components/motion/tabs.js.map +1 -1
- package/dist/components/motion/text-cascade.d.ts +0 -2
- package/dist/components/motion/text-cascade.d.ts.map +1 -1
- package/dist/components/motion/text-cascade.js +1 -2
- package/dist/components/motion/text-reveal.d.ts +0 -2
- package/dist/components/motion/text-reveal.d.ts.map +1 -1
- package/dist/components/motion/text-reveal.js +1 -2
- package/dist/components/motion/text-scramble.d.ts +0 -2
- package/dist/components/motion/text-scramble.d.ts.map +1 -1
- package/dist/components/motion/text-scramble.js +1 -2
- package/dist/components/motion/text-shimmer.d.ts +0 -2
- package/dist/components/motion/text-shimmer.d.ts.map +1 -1
- package/dist/components/motion/text-shimmer.js +1 -2
- package/dist/components/motion/theme-toggle.d.ts +0 -2
- package/dist/components/motion/theme-toggle.d.ts.map +1 -1
- package/dist/components/motion/theme-toggle.js +1 -2
- package/dist/components/motion/tilt-card.d.ts +0 -2
- package/dist/components/motion/tilt-card.d.ts.map +1 -1
- package/dist/components/motion/tilt-card.js +1 -2
- package/dist/components/motion/timeline.d.ts +37 -0
- package/dist/components/motion/timeline.d.ts.map +1 -0
- package/dist/components/motion/timeline.js +483 -0
- package/dist/components/motion/timeline.js.map +1 -0
- package/dist/components/motion/tooltip/positioner.d.ts +1 -3
- package/dist/components/motion/tooltip/positioner.d.ts.map +1 -1
- package/dist/components/motion/tooltip/positioner.js +1 -1
- package/dist/components/motion/tooltip-surface.d.ts +0 -2
- package/dist/components/motion/tooltip-surface.d.ts.map +1 -1
- package/dist/components/motion/tooltip-surface.js +2 -3
- package/dist/components/motion/tooltip-surface.js.map +1 -1
- package/dist/components/motion/tooltip.d.ts +1 -3
- package/dist/components/motion/tooltip.d.ts.map +1 -1
- package/dist/components/motion/tooltip.js +1 -1
- package/dist/components/motion/wallet-card/account-avatar.d.ts +1 -3
- package/dist/components/motion/wallet-card/account-avatar.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/account-avatar.js +1 -1
- package/dist/components/motion/wallet-card/account-switcher.d.ts +1 -3
- package/dist/components/motion/wallet-card/account-switcher.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/account-switcher.js +10 -11
- package/dist/components/motion/wallet-card/account-switcher.js.map +1 -1
- package/dist/components/motion/wallet-card/actions.d.ts +0 -2
- package/dist/components/motion/wallet-card/actions.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/actions.js +3 -4
- package/dist/components/motion/wallet-card/actions.js.map +1 -1
- package/dist/components/motion/wallet-card/balance-delta.d.ts +0 -2
- package/dist/components/motion/wallet-card/balance-delta.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/balance-delta.js +2 -3
- package/dist/components/motion/wallet-card/balance-delta.js.map +1 -1
- package/dist/components/motion/wallet-card/copy-button.d.ts +0 -2
- package/dist/components/motion/wallet-card/copy-button.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/copy-button.js +2 -3
- package/dist/components/motion/wallet-card/copy-button.js.map +1 -1
- package/dist/components/motion/wallet-card/index.d.ts +1 -3
- package/dist/components/motion/wallet-card/index.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/index.js +6 -7
- package/dist/components/motion/wallet-card/index.js.map +1 -1
- package/dist/components/motion/wallet-card/search-bar.d.ts +0 -2
- package/dist/components/motion/wallet-card/search-bar.d.ts.map +1 -1
- package/dist/components/motion/wallet-card/search-bar.js +9 -10
- package/dist/components/motion/wallet-card/search-bar.js.map +1 -1
- package/dist/components/motion/wheel-picker.d.ts +0 -2
- package/dist/components/motion/wheel-picker.d.ts.map +1 -1
- package/dist/components/motion/wheel-picker.js +11 -12
- package/dist/components/motion/wheel-picker.js.map +1 -1
- package/dist/components/reui/alert.d.ts +0 -2
- package/dist/components/reui/alert.d.ts.map +1 -1
- package/dist/components/reui/alert.js +2 -3
- package/dist/components/reui/alert.js.map +1 -1
- package/dist/components/reui/autocomplete.d.ts +0 -2
- package/dist/components/reui/autocomplete.d.ts.map +1 -1
- package/dist/components/reui/autocomplete.js +11 -12
- package/dist/components/reui/autocomplete.js.map +1 -1
- package/dist/components/reui/badge.d.ts +0 -2
- package/dist/components/reui/badge.d.ts.map +1 -1
- package/dist/components/reui/badge.js +5 -6
- package/dist/components/reui/badge.js.map +1 -1
- package/dist/components/reui/cascader/cascader-async.d.ts +1 -3
- package/dist/components/reui/cascader/cascader-async.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-async.js +1 -2
- package/dist/components/reui/cascader/cascader-columns.d.ts +0 -2
- package/dist/components/reui/cascader/cascader-columns.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-columns.js +3 -4
- package/dist/components/reui/cascader/cascader-columns.js.map +1 -1
- package/dist/components/reui/cascader/cascader-context.d.ts +1 -3
- package/dist/components/reui/cascader/cascader-context.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-context.js +1 -2
- package/dist/components/reui/cascader/cascader-footer.d.ts +0 -2
- package/dist/components/reui/cascader/cascader-footer.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-footer.js +6 -7
- package/dist/components/reui/cascader/cascader-footer.js.map +1 -1
- package/dist/components/reui/cascader/cascader-i18n.d.ts +1 -3
- package/dist/components/reui/cascader/cascader-i18n.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-i18n.js +1 -2
- package/dist/components/reui/cascader/cascader-item.d.ts +1 -3
- package/dist/components/reui/cascader/cascader-item.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-item.js +10 -11
- package/dist/components/reui/cascader/cascader-item.js.map +1 -1
- package/dist/components/reui/cascader/cascader-lib.d.ts +1 -3
- package/dist/components/reui/cascader/cascader-lib.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-lib.js +1 -2
- package/dist/components/reui/cascader/cascader-nav.d.ts +1 -3
- package/dist/components/reui/cascader/cascader-nav.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-nav.js +10 -11
- 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 +0 -2
- package/dist/components/reui/cascader/cascader-virtual.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-virtual.js +1 -2
- package/dist/components/reui/cascader/cascader.d.ts +1 -3
- package/dist/components/reui/cascader/cascader.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader.js +5 -8
- package/dist/components/reui/cascader/cascader.js.map +1 -1
- package/dist/components/reui/code-block/code-block-highlight.d.ts +0 -2
- package/dist/components/reui/code-block/code-block-highlight.d.ts.map +1 -1
- package/dist/components/reui/code-block/code-block-highlight.js +1 -2
- package/dist/components/reui/code-block/code-block.d.ts +0 -2
- package/dist/components/reui/code-block/code-block.d.ts.map +1 -1
- package/dist/components/reui/code-block/code-block.js +13 -14
- package/dist/components/reui/code-block/code-block.js.map +1 -1
- package/dist/components/reui/color-picker.d.ts +0 -2
- package/dist/components/reui/color-picker.d.ts.map +1 -1
- package/dist/components/reui/color-picker.js +5 -6
- package/dist/components/reui/color-picker.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-cell-selection.d.ts +0 -2
- package/dist/components/reui/data-grid/data-grid-cell-selection.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-cell-selection.js +3 -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 +0 -2
- package/dist/components/reui/data-grid/data-grid-column-filter.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-filter.js +7 -8
- package/dist/components/reui/data-grid/data-grid-column-filter.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-header.d.ts +0 -2
- package/dist/components/reui/data-grid/data-grid-column-header.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-header.js +7 -8
- package/dist/components/reui/data-grid/data-grid-column-header.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-visibility.d.ts +0 -2
- package/dist/components/reui/data-grid/data-grid-column-visibility.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-visibility.js +1 -2
- package/dist/components/reui/data-grid/data-grid-i18n.d.ts +1 -1
- package/dist/components/reui/data-grid/data-grid-i18n.js +1 -2
- package/dist/components/reui/data-grid/data-grid-pagination.d.ts +0 -2
- package/dist/components/reui/data-grid/data-grid-pagination.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-pagination.js +2 -3
- package/dist/components/reui/data-grid/data-grid-pagination.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-scroll-area.d.ts +0 -2
- package/dist/components/reui/data-grid/data-grid-scroll-area.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-scroll-area.js +2 -3
- package/dist/components/reui/data-grid/data-grid-scroll-area.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.d.ts +0 -2
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js +4 -5
- package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table-dnd.d.ts +0 -2
- package/dist/components/reui/data-grid/data-grid-table-dnd.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table-dnd.js +3 -3
- package/dist/components/reui/data-grid/data-grid-table-dnd.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table-virtual.d.ts +0 -2
- package/dist/components/reui/data-grid/data-grid-table-virtual.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table-virtual.js +2 -3
- package/dist/components/reui/data-grid/data-grid-table-virtual.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table.d.ts +0 -2
- package/dist/components/reui/data-grid/data-grid-table.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table.js +20 -21
- package/dist/components/reui/data-grid/data-grid-table.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid.d.ts +1 -3
- package/dist/components/reui/data-grid/data-grid.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid.js +2 -3
- package/dist/components/reui/data-grid/data-grid.js.map +1 -1
- package/dist/components/reui/date-selector.d.ts +0 -2
- package/dist/components/reui/date-selector.d.ts.map +1 -1
- package/dist/components/reui/date-selector.js +4 -5
- package/dist/components/reui/date-selector.js.map +1 -1
- package/dist/components/reui/emoji-picker.d.ts +0 -2
- package/dist/components/reui/emoji-picker.d.ts.map +1 -1
- package/dist/components/reui/emoji-picker.js +6 -7
- package/dist/components/reui/emoji-picker.js.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-agenda-view.d.ts +0 -2
- package/dist/components/reui/event-calendar/event-calendar-agenda-view.d.ts.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-agenda-view.js +5 -6
- package/dist/components/reui/event-calendar/event-calendar-agenda-view.js.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-content.d.ts +0 -2
- package/dist/components/reui/event-calendar/event-calendar-content.d.ts.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-content.js +1 -2
- package/dist/components/reui/event-calendar/event-calendar-dnd.d.ts +0 -2
- package/dist/components/reui/event-calendar/event-calendar-dnd.d.ts.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-dnd.js +4 -5
- package/dist/components/reui/event-calendar/event-calendar-dnd.js.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-event.d.ts +0 -2
- package/dist/components/reui/event-calendar/event-calendar-event.d.ts.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-event.js +7 -8
- package/dist/components/reui/event-calendar/event-calendar-event.js.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-i18n.d.ts +0 -2
- package/dist/components/reui/event-calendar/event-calendar-i18n.d.ts.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-i18n.js +1 -2
- package/dist/components/reui/event-calendar/event-calendar-lib.d.ts +3 -2
- package/dist/components/reui/event-calendar/event-calendar-lib.d.ts.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-lib.js +13 -7
- package/dist/components/reui/event-calendar/event-calendar-lib.js.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-month-view.d.ts +0 -2
- package/dist/components/reui/event-calendar/event-calendar-month-view.d.ts.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-month-view.js +10 -11
- package/dist/components/reui/event-calendar/event-calendar-month-view.js.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-nav.d.ts +0 -2
- package/dist/components/reui/event-calendar/event-calendar-nav.d.ts.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-nav.js +5 -6
- package/dist/components/reui/event-calendar/event-calendar-nav.js.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-recurrence.d.ts +0 -2
- package/dist/components/reui/event-calendar/event-calendar-recurrence.d.ts.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-recurrence.js +1 -2
- package/dist/components/reui/event-calendar/event-calendar-resource-view.d.ts +0 -2
- package/dist/components/reui/event-calendar/event-calendar-resource-view.d.ts.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-resource-view.js +4 -5
- package/dist/components/reui/event-calendar/event-calendar-resource-view.js.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-time-grid.d.ts +0 -2
- package/dist/components/reui/event-calendar/event-calendar-time-grid.d.ts.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-time-grid.js +9 -10
- package/dist/components/reui/event-calendar/event-calendar-time-grid.js.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-types.d.ts +0 -2
- package/dist/components/reui/event-calendar/event-calendar-types.d.ts.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar.d.ts +0 -2
- package/dist/components/reui/event-calendar/event-calendar.d.ts.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar.js +1 -2
- package/dist/components/reui/file-type.d.ts +0 -2
- package/dist/components/reui/file-type.d.ts.map +1 -1
- package/dist/components/reui/file-type.js +7 -8
- package/dist/components/reui/file-type.js.map +1 -1
- package/dist/components/reui/filters/filters-advanced.d.ts +0 -2
- package/dist/components/reui/filters/filters-advanced.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-advanced.js +15 -16
- package/dist/components/reui/filters/filters-advanced.js.map +1 -1
- package/dist/components/reui/filters/filters-builder.d.ts +1 -3
- package/dist/components/reui/filters/filters-builder.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-builder.js +1 -2
- package/dist/components/reui/filters/filters-chip.d.ts +0 -2
- package/dist/components/reui/filters/filters-chip.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-chip.js +6 -7
- package/dist/components/reui/filters/filters-chip.js.map +1 -1
- package/dist/components/reui/filters/filters-context.d.ts +1 -3
- package/dist/components/reui/filters/filters-context.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-context.js +1 -2
- package/dist/components/reui/filters/filters-date.d.ts +0 -2
- package/dist/components/reui/filters/filters-date.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-date.js +1 -2
- package/dist/components/reui/filters/filters-dnd.d.ts +0 -2
- package/dist/components/reui/filters/filters-dnd.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-dnd.js +1 -2
- package/dist/components/reui/filters/filters-draft.d.ts +1 -1
- package/dist/components/reui/filters/filters-draft.js +1 -2
- package/dist/components/reui/filters/filters-editors.d.ts +0 -2
- package/dist/components/reui/filters/filters-editors.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-editors.js +5 -6
- package/dist/components/reui/filters/filters-editors.js.map +1 -1
- package/dist/components/reui/filters/filters-i18n.d.ts +0 -2
- package/dist/components/reui/filters/filters-i18n.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-i18n.js +1 -2
- package/dist/components/reui/filters/filters-lib.d.ts +1 -3
- package/dist/components/reui/filters/filters-lib.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-lib.js +1 -2
- package/dist/components/reui/filters/filters-operators.d.ts +0 -2
- package/dist/components/reui/filters/filters-operators.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-operators.js +1 -2
- package/dist/components/reui/filters/filters-query.d.ts +0 -2
- package/dist/components/reui/filters/filters-query.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-query.js +1 -2
- package/dist/components/reui/filters/filters-types.d.ts +0 -2
- package/dist/components/reui/filters/filters-types.d.ts.map +1 -1
- package/dist/components/reui/filters/filters.d.ts +0 -2
- package/dist/components/reui/filters/filters.d.ts.map +1 -1
- package/dist/components/reui/filters/filters.js +1 -2
- package/dist/components/reui/frame.d.ts +0 -2
- package/dist/components/reui/frame.d.ts.map +1 -1
- package/dist/components/reui/frame.js +5 -6
- package/dist/components/reui/frame.js.map +1 -1
- package/dist/components/reui/gantt/gantt-bar.d.ts +0 -2
- package/dist/components/reui/gantt/gantt-bar.d.ts.map +1 -1
- package/dist/components/reui/gantt/gantt-bar.js +9 -10
- package/dist/components/reui/gantt/gantt-bar.js.map +1 -1
- package/dist/components/reui/gantt/gantt-dnd.d.ts +0 -2
- package/dist/components/reui/gantt/gantt-dnd.d.ts.map +1 -1
- package/dist/components/reui/gantt/gantt-dnd.js +1 -2
- package/dist/components/reui/gantt/gantt-i18n.d.ts +0 -2
- package/dist/components/reui/gantt/gantt-i18n.d.ts.map +1 -1
- package/dist/components/reui/gantt/gantt-i18n.js +1 -2
- package/dist/components/reui/gantt/gantt-lib.d.ts +0 -2
- package/dist/components/reui/gantt/gantt-lib.d.ts.map +1 -1
- package/dist/components/reui/gantt/gantt-lib.js +1 -2
- package/dist/components/reui/gantt/gantt-nav.d.ts +0 -2
- package/dist/components/reui/gantt/gantt-nav.d.ts.map +1 -1
- package/dist/components/reui/gantt/gantt-nav.js +4 -5
- package/dist/components/reui/gantt/gantt-nav.js.map +1 -1
- package/dist/components/reui/gantt/gantt-recurrence.d.ts +0 -2
- package/dist/components/reui/gantt/gantt-recurrence.d.ts.map +1 -1
- package/dist/components/reui/gantt/gantt-recurrence.js +1 -2
- package/dist/components/reui/gantt/gantt-types.d.ts +0 -2
- package/dist/components/reui/gantt/gantt-types.d.ts.map +1 -1
- package/dist/components/reui/gantt/gantt-view.d.ts +0 -2
- package/dist/components/reui/gantt/gantt-view.d.ts.map +1 -1
- package/dist/components/reui/gantt/gantt-view.js +48 -49
- package/dist/components/reui/gantt/gantt-view.js.map +1 -1
- package/dist/components/reui/gantt/gantt.d.ts +0 -2
- package/dist/components/reui/gantt/gantt.d.ts.map +1 -1
- package/dist/components/reui/gantt/gantt.js +2 -3
- package/dist/components/reui/gantt/gantt.js.map +1 -1
- package/dist/components/reui/icon-stack.d.ts +0 -2
- package/dist/components/reui/icon-stack.d.ts.map +1 -1
- package/dist/components/reui/icon-stack.js +3 -4
- package/dist/components/reui/icon-stack.js.map +1 -1
- package/dist/components/reui/icon-tile.d.ts +0 -2
- package/dist/components/reui/icon-tile.d.ts.map +1 -1
- package/dist/components/reui/icon-tile.js +7 -8
- package/dist/components/reui/icon-tile.js.map +1 -1
- package/dist/components/reui/kanban.d.ts +0 -2
- package/dist/components/reui/kanban.d.ts.map +1 -1
- package/dist/components/reui/kanban.js +2 -3
- package/dist/components/reui/kanban.js.map +1 -1
- package/dist/components/reui/number-field.d.ts +0 -2
- package/dist/components/reui/number-field.d.ts.map +1 -1
- package/dist/components/reui/number-field.js +3 -4
- package/dist/components/reui/number-field.js.map +1 -1
- package/dist/components/reui/phone-input.d.ts +0 -2
- package/dist/components/reui/phone-input.d.ts.map +1 -1
- package/dist/components/reui/phone-input.js +3 -4
- package/dist/components/reui/phone-input.js.map +1 -1
- package/dist/components/reui/rating.d.ts +0 -2
- package/dist/components/reui/rating.d.ts.map +1 -1
- package/dist/components/reui/rating.js +2 -3
- package/dist/components/reui/rating.js.map +1 -1
- package/dist/components/reui/scrollspy.d.ts +0 -2
- package/dist/components/reui/scrollspy.d.ts.map +1 -1
- package/dist/components/reui/scrollspy.js +1 -2
- package/dist/components/reui/signature-pad.d.ts +0 -2
- package/dist/components/reui/signature-pad.d.ts.map +1 -1
- package/dist/components/reui/signature-pad.js +4 -5
- package/dist/components/reui/signature-pad.js.map +1 -1
- package/dist/components/reui/sortable.d.ts +0 -2
- package/dist/components/reui/sortable.d.ts.map +1 -1
- package/dist/components/reui/sortable.js +1 -2
- package/dist/components/reui/stepper.d.ts +0 -2
- package/dist/components/reui/stepper.d.ts.map +1 -1
- package/dist/components/reui/stepper.js +6 -7
- package/dist/components/reui/stepper.js.map +1 -1
- package/dist/components/reui/time-picker.d.ts +0 -2
- package/dist/components/reui/time-picker.d.ts.map +1 -1
- package/dist/components/reui/time-picker.js +3 -4
- package/dist/components/reui/time-picker.js.map +1 -1
- package/dist/components/reui/timeline.d.ts +0 -2
- package/dist/components/reui/timeline.d.ts.map +1 -1
- package/dist/components/reui/timeline.js +6 -7
- package/dist/components/reui/timeline.js.map +1 -1
- package/dist/components/reui/tree.d.ts +0 -2
- package/dist/components/reui/tree.d.ts.map +1 -1
- package/dist/components/reui/tree.js +7 -8
- package/dist/components/reui/tree.js.map +1 -1
- package/dist/components/ui/accordion.d.ts +0 -2
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/accordion.js +4 -5
- package/dist/components/ui/accordion.js.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts +0 -2
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.js +7 -8
- package/dist/components/ui/alert-dialog.js.map +1 -1
- package/dist/components/ui/alert.d.ts +0 -2
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/alert.js +4 -5
- package/dist/components/ui/alert.js.map +1 -1
- package/dist/components/ui/aspect-ratio.d.ts +0 -2
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/components/ui/aspect-ratio.js +1 -2
- package/dist/components/ui/attachment.d.ts +1 -3
- package/dist/components/ui/attachment.d.ts.map +1 -1
- package/dist/components/ui/attachment.js +10 -11
- package/dist/components/ui/attachment.js.map +1 -1
- package/dist/components/ui/avatar.d.ts +0 -2
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/avatar.js +6 -7
- package/dist/components/ui/avatar.js.map +1 -1
- package/dist/components/ui/badge.d.ts +0 -2
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/badge.js +2 -3
- package/dist/components/ui/badge.js.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts +0 -2
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.js +4 -5
- package/dist/components/ui/breadcrumb.js.map +1 -1
- package/dist/components/ui/bubble.d.ts +0 -2
- package/dist/components/ui/bubble.d.ts.map +1 -1
- package/dist/components/ui/bubble.js +6 -7
- package/dist/components/ui/bubble.js.map +1 -1
- package/dist/components/ui/button-group.d.ts +1 -3
- package/dist/components/ui/button-group.d.ts.map +1 -1
- package/dist/components/ui/button-group.js +3 -4
- package/dist/components/ui/button-group.js.map +1 -1
- package/dist/components/ui/button.d.ts +0 -2
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/button.js +7 -8
- package/dist/components/ui/button.js.map +1 -1
- package/dist/components/ui/calendar.d.ts +0 -2
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/calendar.js +14 -15
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/card.d.ts +0 -2
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/card.js +4 -5
- package/dist/components/ui/card.js.map +1 -1
- package/dist/components/ui/carousel.d.ts +0 -2
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/components/ui/carousel.js +1 -2
- package/dist/components/ui/chart.d.ts +0 -2
- package/dist/components/ui/chart.d.ts.map +1 -1
- package/dist/components/ui/chart.js +6 -7
- package/dist/components/ui/chart.js.map +1 -1
- package/dist/components/ui/checkbox.d.ts +0 -2
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/checkbox.js +2 -3
- package/dist/components/ui/checkbox.js.map +1 -1
- package/dist/components/ui/code-block.d.ts +0 -2
- package/dist/components/ui/code-block.d.ts.map +1 -1
- package/dist/components/ui/code-block.js +11 -12
- package/dist/components/ui/code-block.js.map +1 -1
- package/dist/components/ui/collapsible.d.ts +0 -2
- package/dist/components/ui/collapsible.d.ts.map +1 -1
- package/dist/components/ui/collapsible.js +1 -2
- package/dist/components/ui/combobox.d.ts +0 -2
- package/dist/components/ui/combobox.d.ts.map +1 -1
- package/dist/components/ui/combobox.js +9 -10
- package/dist/components/ui/combobox.js.map +1 -1
- package/dist/components/ui/command.d.ts +0 -2
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/command.js +8 -9
- package/dist/components/ui/command.js.map +1 -1
- package/dist/components/ui/context-menu.d.ts +0 -2
- package/dist/components/ui/context-menu.d.ts.map +1 -1
- package/dist/components/ui/context-menu.js +9 -10
- package/dist/components/ui/context-menu.js.map +1 -1
- package/dist/components/ui/dialog.d.ts +0 -2
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/dialog.js +6 -7
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/drawer.d.ts +0 -2
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/drawer.js +7 -8
- package/dist/components/ui/drawer.js.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +0 -2
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.js +10 -11
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/empty.d.ts +0 -2
- package/dist/components/ui/empty.d.ts.map +1 -1
- package/dist/components/ui/empty.js +6 -7
- package/dist/components/ui/empty.js.map +1 -1
- package/dist/components/ui/field.d.ts +1 -3
- package/dist/components/ui/field.d.ts.map +1 -1
- package/dist/components/ui/field.js +8 -9
- package/dist/components/ui/field.js.map +1 -1
- package/dist/components/ui/hover-card.d.ts +0 -2
- package/dist/components/ui/hover-card.d.ts.map +1 -1
- package/dist/components/ui/hover-card.js +2 -3
- package/dist/components/ui/hover-card.js.map +1 -1
- package/dist/components/ui/input-group.d.ts +1 -3
- package/dist/components/ui/input-group.d.ts.map +1 -1
- package/dist/components/ui/input-group.js +4 -5
- package/dist/components/ui/input-group.js.map +1 -1
- package/dist/components/ui/input-otp.d.ts +0 -2
- package/dist/components/ui/input-otp.d.ts.map +1 -1
- package/dist/components/ui/input-otp.js +4 -5
- package/dist/components/ui/input-otp.js.map +1 -1
- package/dist/components/ui/input.d.ts +0 -2
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/input.js +2 -3
- package/dist/components/ui/input.js.map +1 -1
- package/dist/components/ui/item.d.ts +0 -2
- package/dist/components/ui/item.d.ts.map +1 -1
- package/dist/components/ui/item.js +6 -7
- package/dist/components/ui/item.js.map +1 -1
- package/dist/components/ui/kbd.d.ts +0 -2
- package/dist/components/ui/kbd.d.ts.map +1 -1
- package/dist/components/ui/kbd.js +2 -3
- package/dist/components/ui/kbd.js.map +1 -1
- package/dist/components/ui/label.d.ts +0 -2
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/label.js +2 -3
- package/dist/components/ui/label.js.map +1 -1
- package/dist/components/ui/marker.d.ts +0 -2
- package/dist/components/ui/marker.d.ts.map +1 -1
- package/dist/components/ui/marker.js +4 -5
- package/dist/components/ui/marker.js.map +1 -1
- package/dist/components/ui/menubar.d.ts +0 -2
- package/dist/components/ui/menubar.d.ts.map +1 -1
- package/dist/components/ui/menubar.js +11 -12
- package/dist/components/ui/menubar.js.map +1 -1
- package/dist/components/ui/message-scroller.d.ts +0 -2
- package/dist/components/ui/message-scroller.d.ts.map +1 -1
- package/dist/components/ui/message-scroller.js +3 -4
- package/dist/components/ui/message-scroller.js.map +1 -1
- package/dist/components/ui/message.d.ts +0 -2
- package/dist/components/ui/message.d.ts.map +1 -1
- package/dist/components/ui/message.js +5 -6
- package/dist/components/ui/message.js.map +1 -1
- package/dist/components/ui/native-select.d.ts +0 -2
- package/dist/components/ui/native-select.d.ts.map +1 -1
- package/dist/components/ui/native-select.js +3 -4
- package/dist/components/ui/native-select.js.map +1 -1
- package/dist/components/ui/navigation-menu.d.ts +0 -2
- package/dist/components/ui/navigation-menu.d.ts.map +1 -1
- package/dist/components/ui/navigation-menu.js +7 -8
- package/dist/components/ui/navigation-menu.js.map +1 -1
- package/dist/components/ui/pagination.d.ts +0 -2
- package/dist/components/ui/pagination.d.ts.map +1 -1
- package/dist/components/ui/pagination.js +1 -2
- package/dist/components/ui/popover.d.ts +0 -2
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/popover.js +2 -3
- package/dist/components/ui/popover.js.map +1 -1
- package/dist/components/ui/progress.d.ts +0 -2
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/progress.js +5 -6
- package/dist/components/ui/progress.js.map +1 -1
- package/dist/components/ui/questionnaire.d.ts +0 -2
- package/dist/components/ui/questionnaire.d.ts.map +1 -1
- package/dist/components/ui/questionnaire.js +10 -11
- package/dist/components/ui/questionnaire.js.map +1 -1
- package/dist/components/ui/radio-group.d.ts +0 -2
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/radio-group.js +3 -4
- package/dist/components/ui/radio-group.js.map +1 -1
- package/dist/components/ui/resizable.d.ts +0 -2
- package/dist/components/ui/resizable.d.ts.map +1 -1
- package/dist/components/ui/resizable.js +3 -4
- package/dist/components/ui/resizable.js.map +1 -1
- package/dist/components/ui/scroll-area.d.ts +0 -2
- package/dist/components/ui/scroll-area.d.ts.map +1 -1
- package/dist/components/ui/scroll-area.js +4 -5
- package/dist/components/ui/scroll-area.js.map +1 -1
- package/dist/components/ui/select.d.ts +0 -2
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/select.js +9 -10
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/separator.d.ts +0 -2
- package/dist/components/ui/separator.d.ts.map +1 -1
- package/dist/components/ui/separator.js +2 -3
- package/dist/components/ui/separator.js.map +1 -1
- package/dist/components/ui/sheet.d.ts +0 -2
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/sheet.js +3 -4
- package/dist/components/ui/sheet.js.map +1 -1
- package/dist/components/ui/sidebar.d.ts +0 -2
- package/dist/components/ui/sidebar.d.ts.map +1 -1
- package/dist/components/ui/sidebar.js +19 -20
- package/dist/components/ui/sidebar.js.map +1 -1
- package/dist/components/ui/skeleton.d.ts +0 -2
- package/dist/components/ui/skeleton.d.ts.map +1 -1
- package/dist/components/ui/skeleton.js +2 -3
- package/dist/components/ui/skeleton.js.map +1 -1
- package/dist/components/ui/slider.d.ts +0 -2
- package/dist/components/ui/slider.d.ts.map +1 -1
- package/dist/components/ui/slider.js +6 -7
- package/dist/components/ui/slider.js.map +1 -1
- package/dist/components/ui/spinner.d.ts +0 -2
- package/dist/components/ui/spinner.d.ts.map +1 -1
- package/dist/components/ui/spinner.js +1 -2
- package/dist/components/ui/switch.d.ts +0 -2
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/switch.js +3 -4
- package/dist/components/ui/switch.js.map +1 -1
- package/dist/components/ui/table.d.ts +0 -2
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/table.js +6 -7
- package/dist/components/ui/table.js.map +1 -1
- package/dist/components/ui/tabs.d.ts +0 -2
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs.js +3 -4
- package/dist/components/ui/tabs.js.map +1 -1
- package/dist/components/ui/textarea.d.ts +0 -2
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/textarea.js +2 -3
- package/dist/components/ui/textarea.js.map +1 -1
- package/dist/components/ui/toast.d.ts +0 -2
- package/dist/components/ui/toast.d.ts.map +1 -1
- package/dist/components/ui/toast.js +5 -6
- package/dist/components/ui/toast.js.map +1 -1
- package/dist/components/ui/toggle-group.d.ts +0 -2
- package/dist/components/ui/toggle-group.d.ts.map +1 -1
- package/dist/components/ui/toggle-group.js +2 -3
- package/dist/components/ui/toggle-group.js.map +1 -1
- package/dist/components/ui/toggle.d.ts +0 -2
- package/dist/components/ui/toggle.d.ts.map +1 -1
- package/dist/components/ui/toggle.js +3 -4
- package/dist/components/ui/toggle.js.map +1 -1
- package/dist/components/ui/tooltip.d.ts +0 -2
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip.js +3 -4
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/components/ui/trace.d.ts +0 -2
- package/dist/components/ui/trace.d.ts.map +1 -1
- package/dist/components/ui/trace.js +7 -8
- package/dist/components/ui/trace.js.map +1 -1
- package/dist/{constants-CsKm9sSk.js → constants-evLzfUhL.js} +2 -3
- package/dist/{constants-CsKm9sSk.js.map → constants-evLzfUhL.js.map} +1 -1
- package/dist/{context-tTdLKYNf.js → context-3i2_6ly8.js} +2 -4
- package/dist/{context-tTdLKYNf.js.map → context-3i2_6ly8.js.map} +1 -1
- package/dist/{context-3_vY1jbv.js → context-C5TW-k6u.js} +3 -5
- package/dist/{context-3_vY1jbv.js.map → context-C5TW-k6u.js.map} +1 -1
- package/dist/{context-BE60udRT.js → context-CXlD0FcC.js} +2 -3
- package/dist/{context-BE60udRT.js.map → context-CXlD0FcC.js.map} +1 -1
- package/dist/{context-Rl5VCYA8.js → context-ChsuSih6.js} +3 -5
- package/dist/{context-Rl5VCYA8.js.map → context-ChsuSih6.js.map} +1 -1
- package/dist/{context-BYXeJQnz.d.ts → context-D-juVNr2.d.ts} +1 -5
- package/dist/context-D-juVNr2.d.ts.map +1 -0
- package/dist/{context-BqjZ1Z_w.js → context-DUx44mGi.js} +3 -5
- package/dist/{context-BqjZ1Z_w.js.map → context-DUx44mGi.js.map} +1 -1
- package/dist/{context-Bc6VC1HA.js → context-DWXNECDe.js} +3 -5
- package/dist/{context-Bc6VC1HA.js.map → context-DWXNECDe.js.map} +1 -1
- package/dist/{context-sD8DQga-.js → context-DdnKlMjE.js} +3 -5
- package/dist/{context-sD8DQga-.js.map → context-DdnKlMjE.js.map} +1 -1
- package/dist/{context-Cn-00gfW.js → context-Dk6C9IvC.js} +3 -5
- package/dist/{context-Cn-00gfW.js.map → context-Dk6C9IvC.js.map} +1 -1
- package/dist/{context-CZfRKkcZ.js → context-i6Dwvi3T.js} +3 -5
- package/dist/{context-CZfRKkcZ.js.map → context-i6Dwvi3T.js.map} +1 -1
- package/dist/{context-Cnlo53sV.d.ts → context-mjP5wifG.d.ts} +1 -5
- package/dist/context-mjP5wifG.d.ts.map +1 -0
- package/dist/{copy-menu-DOg9Jh-U.js → copy-menu-CKW3jM1J.js} +9 -11
- package/dist/{copy-menu-DOg9Jh-U.js.map → copy-menu-CKW3jM1J.js.map} +1 -1
- package/dist/{data-grid-i18n-TQR2PZlU.d.ts → data-grid-i18n-BySPLTBy.d.ts} +1 -3
- package/dist/data-grid-i18n-BySPLTBy.d.ts.map +1 -0
- package/dist/{ease-B82HVmio.d.ts → ease-CHhXKlG3.d.ts} +1 -3
- package/dist/ease-CHhXKlG3.d.ts.map +1 -0
- package/dist/{filters-draft-DEAl3TO-.d.ts → filters-draft-COwwppZX.d.ts} +1 -3
- package/dist/filters-draft-COwwppZX.d.ts.map +1 -0
- package/dist/hooks/use-body-classes.d.ts +0 -2
- package/dist/hooks/use-body-classes.d.ts.map +1 -1
- package/dist/hooks/use-body-classes.js +1 -2
- package/dist/hooks/use-copy-to-clipboard.d.ts +0 -2
- package/dist/hooks/use-copy-to-clipboard.d.ts.map +1 -1
- package/dist/hooks/use-copy-to-clipboard.js +1 -2
- package/dist/hooks/use-dismiss.d.ts +0 -2
- package/dist/hooks/use-dismiss.d.ts.map +1 -1
- package/dist/hooks/use-dismiss.js +1 -2
- package/dist/hooks/use-favicon.d.ts +0 -2
- package/dist/hooks/use-favicon.d.ts.map +1 -1
- package/dist/hooks/use-favicon.js +1 -2
- package/dist/hooks/use-file-upload.d.ts +0 -2
- package/dist/hooks/use-file-upload.d.ts.map +1 -1
- package/dist/hooks/use-file-upload.js +2 -3
- package/dist/hooks/use-file-upload.js.map +1 -1
- package/dist/hooks/use-focus-trap.d.ts +0 -2
- package/dist/hooks/use-focus-trap.d.ts.map +1 -1
- package/dist/hooks/use-focus-trap.js +1 -2
- package/dist/hooks/use-highlighted-code.d.ts +0 -2
- package/dist/hooks/use-highlighted-code.d.ts.map +1 -1
- package/dist/hooks/use-highlighted-code.js +2 -4
- package/dist/hooks/use-highlighted-code.js.map +1 -1
- package/dist/hooks/use-hover-capable.d.ts +0 -2
- package/dist/hooks/use-hover-capable.d.ts.map +1 -1
- package/dist/hooks/use-hover-capable.js +1 -2
- package/dist/hooks/use-hover-gesture.d.ts +0 -2
- package/dist/hooks/use-hover-gesture.d.ts.map +1 -1
- package/dist/hooks/use-hover-gesture.js +1 -2
- package/dist/hooks/use-hydrated.d.ts +0 -2
- package/dist/hooks/use-hydrated.d.ts.map +1 -1
- package/dist/hooks/use-hydrated.js +1 -2
- package/dist/hooks/use-intersection-observer.d.ts +0 -2
- package/dist/hooks/use-intersection-observer.d.ts.map +1 -1
- package/dist/hooks/use-intersection-observer.js +1 -2
- package/dist/hooks/use-is-mac.d.ts +0 -2
- package/dist/hooks/use-is-mac.d.ts.map +1 -1
- package/dist/hooks/use-is-mac.js +1 -2
- package/dist/hooks/use-listbox.d.ts +0 -2
- package/dist/hooks/use-listbox.d.ts.map +1 -1
- package/dist/hooks/use-listbox.js +1 -2
- package/dist/hooks/use-media-query.d.ts +0 -2
- package/dist/hooks/use-media-query.d.ts.map +1 -1
- package/dist/hooks/use-media-query.js +1 -2
- package/dist/hooks/use-meta-color.d.ts +0 -2
- package/dist/hooks/use-meta-color.d.ts.map +1 -1
- package/dist/hooks/use-meta-color.js +1 -2
- package/dist/hooks/use-mobile.d.ts +0 -2
- package/dist/hooks/use-mobile.d.ts.map +1 -1
- package/dist/hooks/use-mobile.js +1 -2
- package/dist/hooks/use-modal-scope.d.ts +0 -2
- package/dist/hooks/use-modal-scope.d.ts.map +1 -1
- package/dist/hooks/use-modal-scope.js +1 -2
- package/dist/hooks/use-mutation-observer.d.ts +0 -2
- package/dist/hooks/use-mutation-observer.d.ts.map +1 -1
- package/dist/hooks/use-mutation-observer.js +1 -2
- package/dist/hooks/use-on-open.d.ts +0 -2
- package/dist/hooks/use-on-open.d.ts.map +1 -1
- package/dist/hooks/use-on-open.js +1 -2
- package/dist/hooks/use-row-cursor.d.ts +0 -2
- package/dist/hooks/use-row-cursor.d.ts.map +1 -1
- package/dist/hooks/use-row-cursor.js +2 -3
- package/dist/hooks/use-row-cursor.js.map +1 -1
- package/dist/hooks/use-scroll-position.d.ts +0 -2
- package/dist/hooks/use-scroll-position.d.ts.map +1 -1
- package/dist/hooks/use-scroll-position.js +1 -2
- package/dist/hooks/use-slider-input.d.ts +0 -2
- package/dist/hooks/use-slider-input.d.ts.map +1 -1
- package/dist/hooks/use-slider-input.js +1 -2
- package/dist/hooks/use-slider.d.ts +0 -2
- package/dist/hooks/use-slider.d.ts.map +1 -1
- package/dist/hooks/use-slider.js +1 -2
- package/dist/hooks/use-tap-gesture.d.ts +0 -2
- package/dist/hooks/use-tap-gesture.d.ts.map +1 -1
- package/dist/hooks/use-tap-gesture.js +1 -2
- package/dist/hooks/use-touch-capable.d.ts +0 -2
- package/dist/hooks/use-touch-capable.d.ts.map +1 -1
- package/dist/hooks/use-touch-capable.js +1 -2
- package/dist/hooks/use-viewport.d.ts +0 -2
- package/dist/hooks/use-viewport.d.ts.map +1 -1
- package/dist/hooks/use-viewport.js +1 -2
- package/dist/lib/command-search.d.ts +0 -2
- package/dist/lib/command-search.d.ts.map +1 -1
- package/dist/lib/command-search.js +1 -2
- package/dist/lib/ease.d.ts +1 -1
- package/dist/lib/ease.js +1 -2
- package/dist/lib/favicon.d.ts +0 -2
- package/dist/lib/favicon.d.ts.map +1 -1
- package/dist/lib/favicon.js +1 -2
- package/dist/lib/text-shimmer.d.ts +0 -2
- package/dist/lib/text-shimmer.d.ts.map +1 -1
- package/dist/lib/text-shimmer.js +1 -2
- package/dist/lib/tick-sound.d.ts +0 -2
- package/dist/lib/tick-sound.d.ts.map +1 -1
- package/dist/lib/tick-sound.js +1 -2
- package/dist/lib/touch.d.ts +0 -2
- package/dist/lib/touch.d.ts.map +1 -1
- package/dist/lib/touch.js +1 -2
- package/dist/{model-DlbIqCZg.d.ts → model-BFZGhrnQ.d.ts} +1 -3
- package/dist/model-BFZGhrnQ.d.ts.map +1 -0
- package/dist/{model-NSIg2p7a.d.ts → model-DuAc65oe.d.ts} +1 -3
- package/dist/model-DuAc65oe.d.ts.map +1 -0
- package/dist/{model-_mRyI6V9.d.ts → model-mS4UXPwk.d.ts} +1 -3
- package/dist/model-mS4UXPwk.d.ts.map +1 -0
- package/dist/{plot-CdFTbMI_.js → plot-DAKl-Lu1.js} +6 -8
- package/dist/{plot-CdFTbMI_.js.map → plot-DAKl-Lu1.js.map} +1 -1
- package/dist/{popover-position-BUqYCq8X.js → popover-position-BaDNBZ-D.js} +2 -3
- package/dist/{popover-position-BUqYCq8X.js.map → popover-position-BaDNBZ-D.js.map} +1 -1
- package/dist/{positioner-3r3cfkqT.js → positioner-MidjIUUT.js} +3 -5
- package/dist/{positioner-3r3cfkqT.js.map → positioner-MidjIUUT.js.map} +1 -1
- package/dist/{presence-gate-BekdC4Bo.js → presence-gate-DC7yL1Ls.js} +2 -3
- package/dist/{presence-gate-BekdC4Bo.js.map → presence-gate-DC7yL1Ls.js.map} +1 -1
- package/dist/{tooltip-DQ4DXgeu.d.ts → tooltip-BVRmgnbZ.d.ts} +1 -7
- package/dist/tooltip-BVRmgnbZ.d.ts.map +1 -0
- package/dist/{tooltip-C6qUs7px.d.ts → tooltip-CMVyNolz.d.ts} +1 -5
- package/dist/tooltip-CMVyNolz.d.ts.map +1 -0
- package/dist/{tooltip-C01qUgsW.d.ts → tooltip-CNEYdIX3.d.ts} +1 -7
- package/dist/tooltip-CNEYdIX3.d.ts.map +1 -0
- package/dist/{tooltip-BqxVD6D-.d.ts → tooltip-Cq46pSJ2.d.ts} +1 -5
- package/dist/tooltip-Cq46pSJ2.d.ts.map +1 -0
- package/dist/{tooltip-Bam5KeYe.js → tooltip-CuHpilPN.js} +5 -7
- package/dist/{tooltip-Bam5KeYe.js.map → tooltip-CuHpilPN.js.map} +1 -1
- package/dist/{tooltip-BarafYiU.d.ts → tooltip-w0KptZat.d.ts} +1 -5
- package/dist/tooltip-w0KptZat.d.ts.map +1 -0
- package/dist/{types-B_6p3LXz.d.ts → types-B0d0d7PF.d.ts} +1 -3
- package/dist/types-B0d0d7PF.d.ts.map +1 -0
- package/dist/{types-Bah5NY44.d.ts → types-BB61jXS_.d.ts} +1 -3
- package/dist/types-BB61jXS_.d.ts.map +1 -0
- package/dist/{types-smkWN_7x.d.ts → types-BSMELKE5.d.ts} +1 -3
- package/dist/types-BSMELKE5.d.ts.map +1 -0
- package/dist/{types-kSZH1k8K.d.ts → types-D9hKqIzm.d.ts} +1 -3
- package/dist/types-D9hKqIzm.d.ts.map +1 -0
- package/dist/{types-D6e3gWOA.d.ts → types-qTGsGdN1.d.ts} +1 -3
- package/dist/types-qTGsGdN1.d.ts.map +1 -0
- package/dist/{use-active-option-CmX6Z-4S.js → use-active-option-DerS-wGL.js} +2 -3
- package/dist/{use-active-option-CmX6Z-4S.js.map → use-active-option-DerS-wGL.js.map} +1 -1
- package/dist/{use-geometry-CH0foIo7.d.ts → use-geometry-C84j2gUk.d.ts} +1 -3
- package/dist/use-geometry-C84j2gUk.d.ts.map +1 -0
- package/dist/{use-position-DOi1gVL0.d.ts → use-position-CWSE4wCz.d.ts} +1 -3
- package/dist/use-position-CWSE4wCz.d.ts.map +1 -0
- package/dist/{utils-B3YXTsDI.js → utils-DMrlhG6M.js} +2 -3
- package/dist/{utils-B3YXTsDI.js.map → utils-DMrlhG6M.js.map} +1 -1
- package/dist/{utils-DQ7OpbYQ.js → utils-ZRfJ78Df.js} +1 -2
- package/dist/{utils-DQ7OpbYQ.js.map → utils-ZRfJ78Df.js.map} +1 -1
- package/package.json +5 -5
- package/dist/cascader-types-zhnUQ4sP.d.ts.map +0 -1
- package/dist/context-BYXeJQnz.d.ts.map +0 -1
- package/dist/context-Cnlo53sV.d.ts.map +0 -1
- package/dist/data-grid-i18n-TQR2PZlU.d.ts.map +0 -1
- package/dist/ease-B82HVmio.d.ts.map +0 -1
- package/dist/filters-draft-DEAl3TO-.d.ts.map +0 -1
- package/dist/model-DlbIqCZg.d.ts.map +0 -1
- package/dist/model-NSIg2p7a.d.ts.map +0 -1
- package/dist/model-_mRyI6V9.d.ts.map +0 -1
- package/dist/tooltip-BarafYiU.d.ts.map +0 -1
- package/dist/tooltip-BqxVD6D-.d.ts.map +0 -1
- package/dist/tooltip-C01qUgsW.d.ts.map +0 -1
- package/dist/tooltip-C6qUs7px.d.ts.map +0 -1
- package/dist/tooltip-DQ4DXgeu.d.ts.map +0 -1
- package/dist/types-B_6p3LXz.d.ts.map +0 -1
- package/dist/types-Bah5NY44.d.ts.map +0 -1
- package/dist/types-D6e3gWOA.d.ts.map +0 -1
- package/dist/types-kSZH1k8K.d.ts.map +0 -1
- package/dist/types-smkWN_7x.d.ts.map +0 -1
- package/dist/use-geometry-CH0foIo7.d.ts.map +0 -1
- package/dist/use-position-DOi1gVL0.d.ts.map +0 -1
|
@@ -0,0 +1,483 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { TOUCH_GESTURE_CLASS, capturePointer, releasePointer } from "../../lib/touch.js";
|
|
3
|
+
import { useCallback, useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
4
|
+
import { cn } from "@kumix/utils";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { animate, motion, useMotionValue, useReducedMotion, useTransform } from "motion/react";
|
|
7
|
+
// src/components/motion/timeline.tsx
|
|
8
|
+
const GLIDE_SPRING = {
|
|
9
|
+
stiffness: 120,
|
|
10
|
+
damping: 24,
|
|
11
|
+
mass: 1
|
|
12
|
+
};
|
|
13
|
+
const FLICK_MOMENTUM = .3;
|
|
14
|
+
const MAX_FLICK_EVENTS = 4;
|
|
15
|
+
const DRAG_THRESHOLD = 4;
|
|
16
|
+
const RUBBER_BAND = .3;
|
|
17
|
+
const SIDE_SCALE = .72;
|
|
18
|
+
const SIDE_DIM = .45;
|
|
19
|
+
const YEAR_PARALLAX = .5;
|
|
20
|
+
const YEAR_INSET = .33;
|
|
21
|
+
const CARD_CENTER = .5;
|
|
22
|
+
const GAP_TICKS = 5;
|
|
23
|
+
const GAP_TICK_SPAN = .7;
|
|
24
|
+
const TICK_SHORT = .13;
|
|
25
|
+
const TICK_TALL = .2;
|
|
26
|
+
const MONTH = new Intl.DateTimeFormat("en-US", {
|
|
27
|
+
month: "short",
|
|
28
|
+
timeZone: "UTC"
|
|
29
|
+
});
|
|
30
|
+
function toDate(date) {
|
|
31
|
+
return typeof date === "string" ? new Date(date) : date;
|
|
32
|
+
}
|
|
33
|
+
function defaultFormatYear(date) {
|
|
34
|
+
return `’${String(date.getUTCFullYear()).slice(-2)}`;
|
|
35
|
+
}
|
|
36
|
+
function defaultFormatDate(date) {
|
|
37
|
+
return `${MONTH.format(date)} ${date.getUTCDate()} ${defaultFormatYear(date)}`;
|
|
38
|
+
}
|
|
39
|
+
function clamp(value, min, max) {
|
|
40
|
+
return Math.min(max, Math.max(min, value));
|
|
41
|
+
}
|
|
42
|
+
/** Card center relative to the stage center. Over the first step a card
|
|
43
|
+
* travels `near`, which leaves the same gap beside the bigger focused card
|
|
44
|
+
* as between the smaller cards further out, one `step` apart. */
|
|
45
|
+
function cardX(o, { step, near }) {
|
|
46
|
+
const a = Math.abs(o);
|
|
47
|
+
return Math.sign(o) * (a <= 1 ? a * near : near + (a - 1) * step);
|
|
48
|
+
}
|
|
49
|
+
function cardScale(o) {
|
|
50
|
+
return 1 - .28 * Math.min(Math.abs(o), 1);
|
|
51
|
+
}
|
|
52
|
+
function TimelineCard({ scroll, index, geometry, event, dateLabel, active, onSelect, onKeyDown, buttonRef }) {
|
|
53
|
+
const id = useId();
|
|
54
|
+
const { cardWidth } = geometry;
|
|
55
|
+
const offset = useTransform(scroll, (s) => index - s);
|
|
56
|
+
const x = useTransform(offset, (o) => cardX(o, geometry));
|
|
57
|
+
const scale = useTransform(offset, cardScale);
|
|
58
|
+
const zIndex = useTransform(offset, (o) => 100 - Math.round(Math.abs(o) * 10));
|
|
59
|
+
const veilOpacity = useTransform(offset, (o) => SIDE_DIM * Math.min(Math.abs(o), 1));
|
|
60
|
+
return /* @__PURE__ */ jsx(motion.li, {
|
|
61
|
+
"data-slot": "timeline-event",
|
|
62
|
+
"data-active": active || void 0,
|
|
63
|
+
className: "absolute left-1/2",
|
|
64
|
+
style: {
|
|
65
|
+
top: `${CARD_CENTER * 100}%`,
|
|
66
|
+
x,
|
|
67
|
+
scale,
|
|
68
|
+
zIndex,
|
|
69
|
+
width: cardWidth,
|
|
70
|
+
marginLeft: -cardWidth / 2
|
|
71
|
+
},
|
|
72
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
73
|
+
className: "relative -translate-y-1/2",
|
|
74
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
75
|
+
className: "border-border bg-card relative overflow-hidden rounded-3xl border",
|
|
76
|
+
children: [
|
|
77
|
+
/* @__PURE__ */ jsxs("div", {
|
|
78
|
+
className: "px-3.5 pt-3 pb-2",
|
|
79
|
+
children: [/* @__PURE__ */ jsx("p", {
|
|
80
|
+
id: `${id}-date`,
|
|
81
|
+
className: "text-muted-foreground text-xs tabular-nums",
|
|
82
|
+
children: dateLabel
|
|
83
|
+
}), /* @__PURE__ */ jsx("h3", {
|
|
84
|
+
id: `${id}-title`,
|
|
85
|
+
className: "text-foreground truncate text-base font-medium tracking-tight",
|
|
86
|
+
children: event.title
|
|
87
|
+
})]
|
|
88
|
+
}),
|
|
89
|
+
/* @__PURE__ */ jsx("div", {
|
|
90
|
+
className: "px-2",
|
|
91
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
92
|
+
className: "border-border bg-background aspect-16/10 overflow-hidden rounded-2xl border",
|
|
93
|
+
children: event.media
|
|
94
|
+
})
|
|
95
|
+
}),
|
|
96
|
+
event.meta ? /* @__PURE__ */ jsx("div", {
|
|
97
|
+
className: "text-muted-foreground flex items-center gap-1.5 px-3.5 py-2.5 text-sm tabular-nums",
|
|
98
|
+
children: event.meta
|
|
99
|
+
}) : /* @__PURE__ */ jsx("div", { className: "h-2" }),
|
|
100
|
+
/* @__PURE__ */ jsx(motion.div, {
|
|
101
|
+
"aria-hidden": "true",
|
|
102
|
+
className: "bg-background pointer-events-none absolute inset-0",
|
|
103
|
+
style: { opacity: veilOpacity }
|
|
104
|
+
})
|
|
105
|
+
]
|
|
106
|
+
}), /* @__PURE__ */ jsx("button", {
|
|
107
|
+
ref: buttonRef,
|
|
108
|
+
type: "button",
|
|
109
|
+
tabIndex: active ? 0 : -1,
|
|
110
|
+
"aria-current": active ? "step" : void 0,
|
|
111
|
+
"aria-labelledby": `${id}-date ${id}-title`,
|
|
112
|
+
onClick: () => onSelect(index),
|
|
113
|
+
onKeyDown: (e) => onKeyDown(e, index),
|
|
114
|
+
className: "focus-visible:ring-foreground absolute inset-0 cursor-pointer rounded-3xl outline-none focus-visible:ring-2"
|
|
115
|
+
})]
|
|
116
|
+
})
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
const CABLE_REACH = .8;
|
|
120
|
+
const CABLE_FADE = 1.6;
|
|
121
|
+
/**
|
|
122
|
+
* Lines from the apexes at the top and bottom center to one card's near
|
|
123
|
+
* corners. Each ends at the card's vertical center, behind the opaque
|
|
124
|
+
* surface, so the visible part stops exactly where it meets the card's top or
|
|
125
|
+
* bottom edge and reads as attached there, with no measuring of the card.
|
|
126
|
+
*/
|
|
127
|
+
function Cables({ scroll, index, geometry, height }) {
|
|
128
|
+
const { halfWidth, cardWidth } = geometry;
|
|
129
|
+
const offset = useTransform(scroll, (s) => index - s);
|
|
130
|
+
const reach = (o) => cardWidth / 2 * cardScale(o) * CABLE_REACH;
|
|
131
|
+
const left = useTransform(offset, (o) => halfWidth + cardX(o, geometry) - reach(o));
|
|
132
|
+
const right = useTransform(offset, (o) => halfWidth + cardX(o, geometry) + reach(o));
|
|
133
|
+
const opacity = useTransform(offset, (o) => clamp((CABLE_FADE - Math.abs(o)) / .6000000000000001, 0, 1));
|
|
134
|
+
const y = height * CARD_CENTER;
|
|
135
|
+
return /* @__PURE__ */ jsxs(motion.g, {
|
|
136
|
+
style: { opacity },
|
|
137
|
+
children: [
|
|
138
|
+
/* @__PURE__ */ jsx(motion.line, {
|
|
139
|
+
x1: halfWidth,
|
|
140
|
+
y1: 0,
|
|
141
|
+
x2: left,
|
|
142
|
+
y2: y
|
|
143
|
+
}),
|
|
144
|
+
/* @__PURE__ */ jsx(motion.line, {
|
|
145
|
+
x1: halfWidth,
|
|
146
|
+
y1: 0,
|
|
147
|
+
x2: right,
|
|
148
|
+
y2: y
|
|
149
|
+
}),
|
|
150
|
+
/* @__PURE__ */ jsx(motion.line, {
|
|
151
|
+
x1: halfWidth,
|
|
152
|
+
y1: height,
|
|
153
|
+
x2: left,
|
|
154
|
+
y2: y
|
|
155
|
+
}),
|
|
156
|
+
/* @__PURE__ */ jsx(motion.line, {
|
|
157
|
+
x1: halfWidth,
|
|
158
|
+
y1: height,
|
|
159
|
+
x2: right,
|
|
160
|
+
y2: y
|
|
161
|
+
})
|
|
162
|
+
]
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
function YearMark({ scroll, position, step, label, fontSize }) {
|
|
166
|
+
const x = useTransform(scroll, (s) => (position - s) * step * YEAR_PARALLAX);
|
|
167
|
+
return /* @__PURE__ */ jsx(motion.div, {
|
|
168
|
+
"aria-hidden": "true",
|
|
169
|
+
className: "absolute left-1/2",
|
|
170
|
+
style: {
|
|
171
|
+
x,
|
|
172
|
+
top: fontSize * YEAR_INSET
|
|
173
|
+
},
|
|
174
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
175
|
+
className: "text-foreground/6 block -translate-x-1/2 leading-none font-medium tracking-tighter tabular-nums",
|
|
176
|
+
style: { fontSize },
|
|
177
|
+
children: label
|
|
178
|
+
})
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* The tick group in the gap after card `index`. It sits midway between that
|
|
183
|
+
* card's right edge and the next card's left edge; the gap keeps one width
|
|
184
|
+
* while the cards move (see `cardX`), so the group only translates.
|
|
185
|
+
*/
|
|
186
|
+
function GapTicks({ scroll, index, geometry, gap }) {
|
|
187
|
+
const { cardWidth } = geometry;
|
|
188
|
+
const x = useTransform(scroll, (s) => {
|
|
189
|
+
const o = index - s;
|
|
190
|
+
return (cardX(o, geometry) + cardWidth * cardScale(o) / 2 + (cardX(o + 1, geometry) - cardWidth * cardScale(o + 1) / 2)) / 2;
|
|
191
|
+
});
|
|
192
|
+
const spacing = gap * GAP_TICK_SPAN / 4;
|
|
193
|
+
const middle = 2;
|
|
194
|
+
return /* @__PURE__ */ jsx(motion.div, {
|
|
195
|
+
"aria-hidden": "true",
|
|
196
|
+
className: "absolute left-1/2 flex -translate-x-1/2 -translate-y-1/2 items-center",
|
|
197
|
+
style: {
|
|
198
|
+
x,
|
|
199
|
+
top: `${CARD_CENTER * 100}%`,
|
|
200
|
+
gap: spacing - 1
|
|
201
|
+
},
|
|
202
|
+
children: Array.from({ length: GAP_TICKS }, (_, i) => /* @__PURE__ */ jsx("span", {
|
|
203
|
+
className: cn("block w-px rounded-full", i === middle ? "bg-foreground/45" : "bg-foreground/25"),
|
|
204
|
+
style: { height: cardWidth * (i === middle ? TICK_TALL : TICK_SHORT) }
|
|
205
|
+
}, i))
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
function Timeline({ events, value, defaultValue, onValueChange, itemWidth = 340, height = 600, years = true, ruler = true, cables = true, formatDate = defaultFormatDate, formatYear = defaultFormatYear, "aria-label": ariaLabel = "Timeline", className }) {
|
|
209
|
+
const reduce = useReducedMotion() ?? false;
|
|
210
|
+
const hintId = useId();
|
|
211
|
+
const count = events.length;
|
|
212
|
+
const last = Math.max(0, count - 1);
|
|
213
|
+
const [innerValue, setInnerValue] = useState(defaultValue ?? events[0]?.id);
|
|
214
|
+
const activeId = value ?? innerValue;
|
|
215
|
+
const found = events.findIndex((e) => e.id === activeId);
|
|
216
|
+
const activeIndex = found === -1 ? 0 : found;
|
|
217
|
+
const stageRef = useRef(null);
|
|
218
|
+
const [width, setWidth] = useState(0);
|
|
219
|
+
useLayoutEffect(() => {
|
|
220
|
+
const el = stageRef.current;
|
|
221
|
+
if (!el) return;
|
|
222
|
+
setWidth(el.clientWidth);
|
|
223
|
+
const ro = new ResizeObserver(([entry]) => setWidth(entry.contentRect.width));
|
|
224
|
+
ro.observe(el);
|
|
225
|
+
return () => ro.disconnect();
|
|
226
|
+
}, []);
|
|
227
|
+
const stageWidth = width || 800;
|
|
228
|
+
const cardWidth = Math.min(itemWidth, stageWidth * (stageWidth < 640 ? .58 : .36));
|
|
229
|
+
const gap = clamp(cardWidth * .22, 40, 72);
|
|
230
|
+
const geometry = {
|
|
231
|
+
step: cardWidth * SIDE_SCALE + gap,
|
|
232
|
+
cardWidth,
|
|
233
|
+
near: cardWidth * 1.72 / 2 + gap,
|
|
234
|
+
halfWidth: stageWidth / 2
|
|
235
|
+
};
|
|
236
|
+
const { step } = geometry;
|
|
237
|
+
const scroll = useMotionValue(activeIndex);
|
|
238
|
+
const glideRef = useRef(null);
|
|
239
|
+
const buttonsRef = useRef([]);
|
|
240
|
+
const latest = useRef({
|
|
241
|
+
events,
|
|
242
|
+
activeIndex,
|
|
243
|
+
onValueChange,
|
|
244
|
+
step,
|
|
245
|
+
last
|
|
246
|
+
});
|
|
247
|
+
useLayoutEffect(() => {
|
|
248
|
+
latest.current = {
|
|
249
|
+
events,
|
|
250
|
+
activeIndex,
|
|
251
|
+
onValueChange,
|
|
252
|
+
step,
|
|
253
|
+
last
|
|
254
|
+
};
|
|
255
|
+
});
|
|
256
|
+
const commit = useCallback((index) => {
|
|
257
|
+
const { events, activeIndex, onValueChange } = latest.current;
|
|
258
|
+
const event = events[index];
|
|
259
|
+
if (!event || index === activeIndex) return;
|
|
260
|
+
latest.current.activeIndex = index;
|
|
261
|
+
setInnerValue(event.id);
|
|
262
|
+
onValueChange?.(event.id);
|
|
263
|
+
}, []);
|
|
264
|
+
const glidingRef = useRef(false);
|
|
265
|
+
useEffect(() => scroll.on("change", (v) => {
|
|
266
|
+
if (glidingRef.current) return;
|
|
267
|
+
commit(clamp(Math.round(v), 0, latest.current.last));
|
|
268
|
+
}), [scroll, commit]);
|
|
269
|
+
const stopGlide = useCallback(() => {
|
|
270
|
+
glidingRef.current = false;
|
|
271
|
+
glideRef.current?.stop();
|
|
272
|
+
glideRef.current = null;
|
|
273
|
+
}, []);
|
|
274
|
+
const glideTo = useCallback((to, velocity = scroll.getVelocity()) => {
|
|
275
|
+
stopGlide();
|
|
276
|
+
commit(to);
|
|
277
|
+
if (reduce) {
|
|
278
|
+
scroll.set(to);
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
glidingRef.current = true;
|
|
282
|
+
glideRef.current = animate(scroll, to, {
|
|
283
|
+
type: "spring",
|
|
284
|
+
...GLIDE_SPRING,
|
|
285
|
+
velocity,
|
|
286
|
+
restDelta: .001,
|
|
287
|
+
onComplete: () => {
|
|
288
|
+
glidingRef.current = false;
|
|
289
|
+
glideRef.current = null;
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
}, [
|
|
293
|
+
scroll,
|
|
294
|
+
stopGlide,
|
|
295
|
+
commit,
|
|
296
|
+
reduce
|
|
297
|
+
]);
|
|
298
|
+
const settle = useCallback((velocity) => {
|
|
299
|
+
const projected = scroll.get() + clamp(velocity * FLICK_MOMENTUM, -4, MAX_FLICK_EVENTS);
|
|
300
|
+
glideTo(clamp(Math.round(projected), 0, latest.current.last), velocity);
|
|
301
|
+
}, [scroll, glideTo]);
|
|
302
|
+
const draggingRef = useRef(false);
|
|
303
|
+
useEffect(() => {
|
|
304
|
+
if (draggingRef.current || glidingRef.current) return;
|
|
305
|
+
if (clamp(Math.round(scroll.get()), 0, last) === activeIndex) return;
|
|
306
|
+
glideTo(activeIndex);
|
|
307
|
+
}, [
|
|
308
|
+
activeIndex,
|
|
309
|
+
last,
|
|
310
|
+
scroll,
|
|
311
|
+
glideTo
|
|
312
|
+
]);
|
|
313
|
+
const select = useCallback((index, focus = false) => {
|
|
314
|
+
const target = clamp(index, 0, latest.current.last);
|
|
315
|
+
glideTo(target);
|
|
316
|
+
if (focus) buttonsRef.current[target]?.focus({ preventScroll: true });
|
|
317
|
+
}, [glideTo]);
|
|
318
|
+
const onKeyDown = useCallback((e, index) => {
|
|
319
|
+
const next = e.key === "ArrowRight" ? index + 1 : e.key === "ArrowLeft" ? index - 1 : e.key === "Home" ? 0 : e.key === "End" ? latest.current.last : null;
|
|
320
|
+
if (next === null) return;
|
|
321
|
+
e.preventDefault();
|
|
322
|
+
select(next, true);
|
|
323
|
+
}, [select]);
|
|
324
|
+
const drag = useRef({
|
|
325
|
+
id: -1,
|
|
326
|
+
startX: 0,
|
|
327
|
+
startScroll: 0,
|
|
328
|
+
moved: false,
|
|
329
|
+
lastX: 0,
|
|
330
|
+
lastT: 0,
|
|
331
|
+
prevX: 0,
|
|
332
|
+
prevT: 0
|
|
333
|
+
});
|
|
334
|
+
const onPointerDown = (e) => {
|
|
335
|
+
if (e.button !== 0) return;
|
|
336
|
+
stopGlide();
|
|
337
|
+
const now = performance.now();
|
|
338
|
+
drag.current = {
|
|
339
|
+
id: e.pointerId,
|
|
340
|
+
startX: e.clientX,
|
|
341
|
+
startScroll: scroll.get(),
|
|
342
|
+
moved: false,
|
|
343
|
+
lastX: e.clientX,
|
|
344
|
+
lastT: now,
|
|
345
|
+
prevX: e.clientX,
|
|
346
|
+
prevT: now
|
|
347
|
+
};
|
|
348
|
+
draggingRef.current = true;
|
|
349
|
+
};
|
|
350
|
+
const onPointerMove = (e) => {
|
|
351
|
+
const d = drag.current;
|
|
352
|
+
if (!draggingRef.current || e.pointerId !== d.id) return;
|
|
353
|
+
const dx = e.clientX - d.startX;
|
|
354
|
+
if (!d.moved) {
|
|
355
|
+
if (Math.abs(dx) < DRAG_THRESHOLD) return;
|
|
356
|
+
d.moved = true;
|
|
357
|
+
capturePointer(e.currentTarget, e.pointerId);
|
|
358
|
+
}
|
|
359
|
+
const raw = d.startScroll - dx / step;
|
|
360
|
+
scroll.set(raw < 0 ? raw * RUBBER_BAND : raw > last ? last + (raw - last) * RUBBER_BAND : raw);
|
|
361
|
+
d.prevX = d.lastX;
|
|
362
|
+
d.prevT = d.lastT;
|
|
363
|
+
d.lastX = e.clientX;
|
|
364
|
+
d.lastT = performance.now();
|
|
365
|
+
};
|
|
366
|
+
const onPointerUp = (e) => {
|
|
367
|
+
const d = drag.current;
|
|
368
|
+
if (!draggingRef.current || e.pointerId !== d.id) return;
|
|
369
|
+
draggingRef.current = false;
|
|
370
|
+
if (!d.moved) return;
|
|
371
|
+
releasePointer(e.currentTarget, e.pointerId);
|
|
372
|
+
const dt = d.lastT - d.prevT;
|
|
373
|
+
const vpx = dt > 0 ? (d.lastX - d.prevX) / dt : 0;
|
|
374
|
+
settle(-vpx * 1e3 / step);
|
|
375
|
+
};
|
|
376
|
+
useEffect(() => {
|
|
377
|
+
const el = stageRef.current;
|
|
378
|
+
if (!el) return;
|
|
379
|
+
let settleTimer;
|
|
380
|
+
const onWheel = (e) => {
|
|
381
|
+
if (Math.abs(e.deltaX) <= Math.abs(e.deltaY)) return;
|
|
382
|
+
e.preventDefault();
|
|
383
|
+
stopGlide();
|
|
384
|
+
const { step, last } = latest.current;
|
|
385
|
+
scroll.set(clamp(scroll.get() + e.deltaX / step, -.3, last + .3));
|
|
386
|
+
window.clearTimeout(settleTimer);
|
|
387
|
+
settleTimer = window.setTimeout(() => glideTo(clamp(Math.round(scroll.get()), 0, latest.current.last), 0), 140);
|
|
388
|
+
};
|
|
389
|
+
el.addEventListener("wheel", onWheel, { passive: false });
|
|
390
|
+
return () => {
|
|
391
|
+
el.removeEventListener("wheel", onWheel);
|
|
392
|
+
window.clearTimeout(settleTimer);
|
|
393
|
+
};
|
|
394
|
+
}, [
|
|
395
|
+
scroll,
|
|
396
|
+
stopGlide,
|
|
397
|
+
glideTo
|
|
398
|
+
]);
|
|
399
|
+
useEffect(() => stopGlide, [stopGlide]);
|
|
400
|
+
const dates = useMemo(() => events.map((e) => toDate(e.date)), [events]);
|
|
401
|
+
const yearMarks = useMemo(() => {
|
|
402
|
+
const marks = [];
|
|
403
|
+
let previous = null;
|
|
404
|
+
dates.forEach((date, i) => {
|
|
405
|
+
const year = date.getUTCFullYear();
|
|
406
|
+
if (year === previous) return;
|
|
407
|
+
previous = year;
|
|
408
|
+
marks.push({
|
|
409
|
+
key: String(year),
|
|
410
|
+
label: formatYear(date),
|
|
411
|
+
position: i === 0 ? 0 : i - .5
|
|
412
|
+
});
|
|
413
|
+
});
|
|
414
|
+
return marks;
|
|
415
|
+
}, [dates, formatYear]);
|
|
416
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
417
|
+
ref: stageRef,
|
|
418
|
+
"aria-label": ariaLabel,
|
|
419
|
+
"aria-describedby": hintId,
|
|
420
|
+
onPointerDown,
|
|
421
|
+
onPointerMove,
|
|
422
|
+
onPointerUp,
|
|
423
|
+
onPointerCancel: onPointerUp,
|
|
424
|
+
className: cn("mask-[linear-gradient(to_right,transparent,black_6%,black_94%,transparent)]", "relative w-full cursor-grab touch-pan-y overscroll-x-contain [clip-path:inset(0)] active:cursor-grabbing", TOUCH_GESTURE_CLASS, className),
|
|
425
|
+
style: { height },
|
|
426
|
+
children: [
|
|
427
|
+
/* @__PURE__ */ jsx("p", {
|
|
428
|
+
id: hintId,
|
|
429
|
+
className: "sr-only",
|
|
430
|
+
children: "Use the left and right arrow keys to move between events."
|
|
431
|
+
}),
|
|
432
|
+
years ? yearMarks.map((mark) => /* @__PURE__ */ jsx(YearMark, {
|
|
433
|
+
scroll,
|
|
434
|
+
position: mark.position,
|
|
435
|
+
step,
|
|
436
|
+
label: mark.label,
|
|
437
|
+
fontSize: height * .2
|
|
438
|
+
}, mark.key)) : null,
|
|
439
|
+
cables ? /* @__PURE__ */ jsx("svg", {
|
|
440
|
+
"aria-hidden": "true",
|
|
441
|
+
className: "stroke-foreground/[0.14] pointer-events-none absolute inset-0 size-full mask-[linear-gradient(to_bottom,transparent,black_6%,black_94%,transparent)]",
|
|
442
|
+
fill: "none",
|
|
443
|
+
strokeWidth: 1,
|
|
444
|
+
children: events.map((event, i) => /* @__PURE__ */ jsx(Cables, {
|
|
445
|
+
scroll,
|
|
446
|
+
index: i,
|
|
447
|
+
geometry,
|
|
448
|
+
height
|
|
449
|
+
}, event.id))
|
|
450
|
+
}) : null,
|
|
451
|
+
/* @__PURE__ */ jsx("div", {
|
|
452
|
+
"aria-hidden": "true",
|
|
453
|
+
className: "text-foreground/80 pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2",
|
|
454
|
+
style: { backgroundImage: "linear-gradient(to bottom, transparent, currentColor 6%, currentColor 94%, transparent)" }
|
|
455
|
+
}),
|
|
456
|
+
ruler ? events.slice(0, -1).map((event, i) => /* @__PURE__ */ jsx(GapTicks, {
|
|
457
|
+
scroll,
|
|
458
|
+
index: i,
|
|
459
|
+
geometry,
|
|
460
|
+
gap
|
|
461
|
+
}, event.id)) : null,
|
|
462
|
+
/* @__PURE__ */ jsx("ul", {
|
|
463
|
+
className: "absolute inset-0",
|
|
464
|
+
children: events.map((event, i) => /* @__PURE__ */ jsx(TimelineCard, {
|
|
465
|
+
scroll,
|
|
466
|
+
index: i,
|
|
467
|
+
geometry,
|
|
468
|
+
event,
|
|
469
|
+
dateLabel: formatDate(dates[i]),
|
|
470
|
+
active: i === activeIndex,
|
|
471
|
+
onSelect: select,
|
|
472
|
+
onKeyDown,
|
|
473
|
+
buttonRef: (node) => {
|
|
474
|
+
buttonsRef.current[i] = node;
|
|
475
|
+
}
|
|
476
|
+
}, event.id))
|
|
477
|
+
})
|
|
478
|
+
]
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
export { Timeline };
|
|
482
|
+
|
|
483
|
+
//# sourceMappingURL=timeline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timeline.js","names":[],"sources":["../../../src/components/motion/timeline.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n type KeyboardEvent as ReactKeyboardEvent,\n type ReactNode,\n type PointerEvent as ReactPointerEvent,\n useCallback,\n useEffect,\n useId,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport {\n type AnimationPlaybackControls,\n animate,\n type MotionValue,\n motion,\n useMotionValue,\n useReducedMotion,\n useTransform,\n} from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { capturePointer, releasePointer, TOUCH_GESTURE_CLASS } from \"../../lib/touch\";\n\n// Timeline-specific: a release spring that takes the flick velocity, so the\n// track coasts on past the finger and settles onto an event without a step.\nconst GLIDE_SPRING = { stiffness: 120, damping: 24, mass: 1 };\n\n// Projected events per unit of release velocity (events/s), capped.\nconst FLICK_MOMENTUM = 0.3;\nconst MAX_FLICK_EVENTS = 4;\n\n// Pointer travel before a press becomes a drag. Below it the press is a click.\nconst DRAG_THRESHOLD = 4;\n\n// Past either end the track follows the pointer at this fraction.\nconst RUBBER_BAND = 0.3;\n\n// Neighbours rest at this scale, veiled by SIDE_DIM; the focused event sits\n// at full strength. The card is dimmed by a veil in the stage colour rather\n// than by opacity, so it stays solid and nothing behind shows through it.\nconst SIDE_SCALE = 0.72;\nconst SIDE_DIM = 0.45;\n\n// Year numerals drift at this fraction of the track speed, so they read as a\n// far layer behind the cards.\nconst YEAR_PARALLAX = 0.5;\n\n// Gap above the year numerals, as a fraction of their font size.\nconst YEAR_INSET = 0.33;\n\n// Cards sit on the stage middle, between two equal bands: the top one holds\n// the year numerals, and each holds the apex one fan of cables leaves from.\nconst CARD_CENTER = 0.5;\n\n// Each gap between cards holds a group of ticks: GAP_TICKS lines spread over\n// GAP_TICK_SPAN of the gap, the middle one taller and brighter. Heights are\n// fractions of the card width so the group scales with the cards.\nconst GAP_TICKS = 5;\nconst GAP_TICK_SPAN = 0.7;\nconst TICK_SHORT = 0.13;\nconst TICK_TALL = 0.2;\n\nexport type TimelineEvent = {\n /** Stable identity, used for `value` and React keys. */\n id: string;\n /** ISO date string or Date. Read in UTC. */\n date: string | Date;\n title: string;\n /** Visual shown inside the card. Keep it non-interactive: the card itself\n * is the button. */\n media?: ReactNode;\n /** Footer line under the media: a stat, a tag, a reaction count. */\n meta?: ReactNode;\n};\n\nexport interface TimelineProps {\n events: TimelineEvent[];\n /** Focused event id (controlled). */\n value?: string;\n /** Initially focused event id (uncontrolled). Defaults to the first event. */\n defaultValue?: string;\n onValueChange?: (id: string) => void;\n /** Card width in px at full size. Shrinks to fit narrow containers. */\n itemWidth?: number;\n /** Stage height in px. */\n height?: number;\n /** Large year numerals drifting behind the cards. */\n years?: boolean;\n /** A group of ticks in each gap between cards. */\n ruler?: boolean;\n /** Lines fanning from the top and bottom center to the cards near the center. */\n cables?: boolean;\n formatDate?: (date: Date) => string;\n formatYear?: (date: Date) => string;\n \"aria-label\"?: string;\n className?: string;\n}\n\nconst MONTH = new Intl.DateTimeFormat(\"en-US\", { month: \"short\", timeZone: \"UTC\" });\n\nfunction toDate(date: string | Date) {\n return typeof date === \"string\" ? new Date(date) : date;\n}\n\nfunction defaultFormatYear(date: Date) {\n return `’${String(date.getUTCFullYear()).slice(-2)}`;\n}\n\nfunction defaultFormatDate(date: Date) {\n return `${MONTH.format(date)} ${date.getUTCDate()} ${defaultFormatYear(date)}`;\n}\n\nfunction clamp(value: number, min: number, max: number) {\n return Math.min(max, Math.max(min, value));\n}\n\n/** Card center relative to the stage center. Over the first step a card\n * travels `near`, which leaves the same gap beside the bigger focused card\n * as between the smaller cards further out, one `step` apart. */\nfunction cardX(o: number, { step, near }: Geometry) {\n const a = Math.abs(o);\n return Math.sign(o) * (a <= 1 ? a * near : near + (a - 1) * step);\n}\n\nfunction cardScale(o: number) {\n return 1 - (1 - SIDE_SCALE) * Math.min(Math.abs(o), 1);\n}\n\ntype Geometry = {\n /** Track px per event. */\n step: number;\n /** Card width at full size. */\n cardWidth: number;\n /** Distance from the focused card's center to a neighbour's. */\n near: number;\n halfWidth: number;\n};\n\nfunction TimelineCard({\n scroll,\n index,\n geometry,\n event,\n dateLabel,\n active,\n onSelect,\n onKeyDown,\n buttonRef,\n}: {\n scroll: MotionValue<number>;\n index: number;\n geometry: Geometry;\n event: TimelineEvent;\n dateLabel: string;\n active: boolean;\n onSelect: (index: number) => void;\n onKeyDown: (e: ReactKeyboardEvent<HTMLButtonElement>, index: number) => void;\n buttonRef: (node: HTMLButtonElement | null) => void;\n}) {\n const id = useId();\n const { cardWidth } = geometry;\n const offset = useTransform(scroll, (s) => index - s);\n // Off-stage cards stay visible to the browser (the stage clips them), so\n // Home and End can focus a card that is still far away.\n const x = useTransform(offset, (o) => cardX(o, geometry));\n const scale = useTransform(offset, cardScale);\n // Nearer the center paints on top, so a card arriving at the center slides\n // over the one leaving mid-drag.\n const zIndex = useTransform(offset, (o) => 100 - Math.round(Math.abs(o) * 10));\n const veilOpacity = useTransform(offset, (o) => SIDE_DIM * Math.min(Math.abs(o), 1));\n\n return (\n <motion.li\n data-slot=\"timeline-event\"\n data-active={active || undefined}\n className=\"absolute left-1/2\"\n style={{\n top: `${CARD_CENTER * 100}%`,\n x,\n scale,\n zIndex,\n width: cardWidth,\n marginLeft: -cardWidth / 2,\n }}\n >\n {/* One solid surface holds the label, media and meta, so the cables\n and ruler stop at its edge instead of showing through any part. */}\n <div className=\"relative -translate-y-1/2\">\n <div className=\"border-border bg-card relative overflow-hidden rounded-3xl border\">\n <div className=\"px-3.5 pt-3 pb-2\">\n <p id={`${id}-date`} className=\"text-muted-foreground text-xs tabular-nums\">\n {dateLabel}\n </p>\n <h3\n id={`${id}-title`}\n className=\"text-foreground truncate text-base font-medium tracking-tight\"\n >\n {event.title}\n </h3>\n </div>\n <div className=\"px-2\">\n <div className=\"border-border bg-background aspect-16/10 overflow-hidden rounded-2xl border\">\n {event.media}\n </div>\n </div>\n {event.meta ? (\n <div className=\"text-muted-foreground flex items-center gap-1.5 px-3.5 py-2.5 text-sm tabular-nums\">\n {event.meta}\n </div>\n ) : (\n <div className=\"h-2\" />\n )}\n <motion.div\n aria-hidden=\"true\"\n className=\"bg-background pointer-events-none absolute inset-0\"\n style={{ opacity: veilOpacity }}\n />\n </div>\n {/* Stretched over the whole card so the media stays valid content\n outside the button and remains readable on its own. */}\n <button\n ref={buttonRef}\n type=\"button\"\n tabIndex={active ? 0 : -1}\n aria-current={active ? \"step\" : undefined}\n aria-labelledby={`${id}-date ${id}-title`}\n onClick={() => onSelect(index)}\n onKeyDown={(e) => onKeyDown(e, index)}\n className=\"focus-visible:ring-foreground absolute inset-0 cursor-pointer rounded-3xl outline-none focus-visible:ring-2\"\n />\n </div>\n </motion.li>\n );\n}\n\n// Cables reach this far across a card's half-width, so they meet its top edge\n// just inside the corners.\nconst CABLE_REACH = 0.8;\n// Only the centered card and its two neighbours carry cables: full strength\n// out to CABLE_HOLD events from the center, gone by CABLE_FADE, so the fan\n// stays at six lines however many events there are.\nconst CABLE_HOLD = 1;\nconst CABLE_FADE = 1.6;\n\n/**\n * Lines from the apexes at the top and bottom center to one card's near\n * corners. Each ends at the card's vertical center, behind the opaque\n * surface, so the visible part stops exactly where it meets the card's top or\n * bottom edge and reads as attached there, with no measuring of the card.\n */\nfunction Cables({\n scroll,\n index,\n geometry,\n height,\n}: {\n scroll: MotionValue<number>;\n index: number;\n geometry: Geometry;\n height: number;\n}) {\n const { halfWidth, cardWidth } = geometry;\n const offset = useTransform(scroll, (s) => index - s);\n const reach = (o: number) => (cardWidth / 2) * cardScale(o) * CABLE_REACH;\n const left = useTransform(offset, (o) => halfWidth + cardX(o, geometry) - reach(o));\n const right = useTransform(offset, (o) => halfWidth + cardX(o, geometry) + reach(o));\n const opacity = useTransform(offset, (o) =>\n clamp((CABLE_FADE - Math.abs(o)) / (CABLE_FADE - CABLE_HOLD), 0, 1),\n );\n const y = height * CARD_CENTER;\n return (\n <motion.g style={{ opacity }}>\n <motion.line x1={halfWidth} y1={0} x2={left} y2={y} />\n <motion.line x1={halfWidth} y1={0} x2={right} y2={y} />\n <motion.line x1={halfWidth} y1={height} x2={left} y2={y} />\n <motion.line x1={halfWidth} y1={height} x2={right} y2={y} />\n </motion.g>\n );\n}\n\nfunction YearMark({\n scroll,\n position,\n step,\n label,\n fontSize,\n}: {\n scroll: MotionValue<number>;\n /** Track position (in events) the numeral centers on. */\n position: number;\n step: number;\n label: string;\n fontSize: number;\n}) {\n const x = useTransform(scroll, (s) => (position - s) * step * YEAR_PARALLAX);\n return (\n <motion.div\n aria-hidden=\"true\"\n className=\"absolute left-1/2\"\n // Inset from the top so the numeral sits under the cables' apex, with\n // air above it.\n style={{ x, top: fontSize * YEAR_INSET }}\n >\n <span\n className=\"text-foreground/6 block -translate-x-1/2 leading-none font-medium tracking-tighter tabular-nums\"\n style={{ fontSize }}\n >\n {label}\n </span>\n </motion.div>\n );\n}\n\n/**\n * The tick group in the gap after card `index`. It sits midway between that\n * card's right edge and the next card's left edge; the gap keeps one width\n * while the cards move (see `cardX`), so the group only translates.\n */\nfunction GapTicks({\n scroll,\n index,\n geometry,\n gap,\n}: {\n scroll: MotionValue<number>;\n index: number;\n geometry: Geometry;\n gap: number;\n}) {\n const { cardWidth } = geometry;\n const x = useTransform(scroll, (s) => {\n const o = index - s;\n const right = cardX(o, geometry) + (cardWidth * cardScale(o)) / 2;\n const left = cardX(o + 1, geometry) - (cardWidth * cardScale(o + 1)) / 2;\n return (right + left) / 2;\n });\n const spacing = (gap * GAP_TICK_SPAN) / (GAP_TICKS - 1);\n const middle = (GAP_TICKS - 1) / 2;\n return (\n <motion.div\n aria-hidden=\"true\"\n className=\"absolute left-1/2 flex -translate-x-1/2 -translate-y-1/2 items-center\"\n style={{ x, top: `${CARD_CENTER * 100}%`, gap: spacing - 1 }}\n >\n {Array.from({ length: GAP_TICKS }, (_, i) => (\n <span\n key={i}\n className={cn(\n \"block w-px rounded-full\",\n i === middle ? \"bg-foreground/45\" : \"bg-foreground/25\",\n )}\n style={{\n height: cardWidth * (i === middle ? TICK_TALL : TICK_SHORT),\n }}\n />\n ))}\n </motion.div>\n );\n}\n\nexport function Timeline({\n events,\n value,\n defaultValue,\n onValueChange,\n itemWidth = 340,\n height = 600,\n years = true,\n ruler = true,\n cables = true,\n formatDate = defaultFormatDate,\n formatYear = defaultFormatYear,\n \"aria-label\": ariaLabel = \"Timeline\",\n className,\n}: TimelineProps) {\n const reduce = useReducedMotion() ?? false;\n const hintId = useId();\n const count = events.length;\n const last = Math.max(0, count - 1);\n\n const [innerValue, setInnerValue] = useState(defaultValue ?? events[0]?.id);\n const activeId = value ?? innerValue;\n // Resolved during render: an unknown or removed id falls back to the first\n // event, so there is always exactly one tab stop.\n const found = events.findIndex((e) => e.id === activeId);\n const activeIndex = found === -1 ? 0 : found;\n\n const stageRef = useRef<HTMLElement>(null);\n const [width, setWidth] = useState(0);\n // Layout effect with an immediate read, so the first paint already uses the\n // real width instead of the fallback.\n useLayoutEffect(() => {\n const el = stageRef.current;\n if (!el) return;\n setWidth(el.clientWidth);\n const ro = new ResizeObserver(([entry]) => setWidth(entry.contentRect.width));\n ro.observe(el);\n return () => ro.disconnect();\n }, []);\n\n const stageWidth = width || 800;\n // About a third of the stage at most, so each neighbour shows in full or\n // nearly beside the focused card; phones give the card more of the width\n // and keep a sliver of each neighbour.\n const cardWidth = Math.min(itemWidth, stageWidth * (stageWidth < 640 ? 0.58 : 0.36));\n // One gap everywhere: between the focused card and its neighbours, and\n // between every pair of smaller cards further out.\n // Wide enough to hold the tick group between cards.\n const gap = clamp(cardWidth * 0.22, 40, 72);\n const geometry: Geometry = {\n step: cardWidth * SIDE_SCALE + gap,\n cardWidth,\n near: (cardWidth * (1 + SIDE_SCALE)) / 2 + gap,\n halfWidth: stageWidth / 2,\n };\n const { step } = geometry;\n\n // Track position in events (continuous); event i is centered at scroll = i.\n const scroll = useMotionValue(activeIndex);\n const glideRef = useRef<AnimationPlaybackControls | null>(null);\n const buttonsRef = useRef<(HTMLButtonElement | null)[]>([]);\n\n // Latest values for stable callbacks, written after commit.\n const latest = useRef({ events, activeIndex, onValueChange, step, last });\n useLayoutEffect(() => {\n latest.current = { events, activeIndex, onValueChange, step, last };\n });\n\n const commit = useCallback((index: number) => {\n const { events, activeIndex, onValueChange } = latest.current;\n const event = events[index];\n if (!event || index === activeIndex) return;\n latest.current.activeIndex = index;\n setInnerValue(event.id);\n onValueChange?.(event.id);\n }, []);\n\n // While a glide runs the target is already committed, so the track passing\n // over the events in between must not hand focus back to them.\n const glidingRef = useRef(false);\n\n // Under a drag or wheel, focus follows the event nearest the center.\n useEffect(\n () =>\n scroll.on(\"change\", (v) => {\n if (glidingRef.current) return;\n commit(clamp(Math.round(v), 0, latest.current.last));\n }),\n [scroll, commit],\n );\n\n const stopGlide = useCallback(() => {\n glidingRef.current = false;\n glideRef.current?.stop();\n glideRef.current = null;\n }, []);\n\n const glideTo = useCallback(\n (to: number, velocity = scroll.getVelocity()) => {\n stopGlide();\n commit(to);\n if (reduce) {\n scroll.set(to);\n return;\n }\n glidingRef.current = true;\n glideRef.current = animate(scroll, to, {\n type: \"spring\",\n ...GLIDE_SPRING,\n velocity,\n restDelta: 0.001,\n onComplete: () => {\n glidingRef.current = false;\n glideRef.current = null;\n },\n });\n },\n [scroll, stopGlide, commit, reduce],\n );\n\n const settle = useCallback(\n (velocity: number) => {\n const projected =\n scroll.get() + clamp(velocity * FLICK_MOMENTUM, -MAX_FLICK_EVENTS, MAX_FLICK_EVENTS);\n glideTo(clamp(Math.round(projected), 0, latest.current.last), velocity);\n },\n [scroll, glideTo],\n );\n\n // Follow a value changed from outside (controlled), or a list that shrank.\n const draggingRef = useRef(false);\n useEffect(() => {\n if (draggingRef.current || glidingRef.current) return;\n if (clamp(Math.round(scroll.get()), 0, last) === activeIndex) return;\n glideTo(activeIndex);\n }, [activeIndex, last, scroll, glideTo]);\n\n const select = useCallback(\n (index: number, focus = false) => {\n const target = clamp(index, 0, latest.current.last);\n glideTo(target);\n if (focus) buttonsRef.current[target]?.focus({ preventScroll: true });\n },\n [glideTo],\n );\n\n const onKeyDown = useCallback(\n (e: ReactKeyboardEvent<HTMLButtonElement>, index: number) => {\n const next =\n e.key === \"ArrowRight\"\n ? index + 1\n : e.key === \"ArrowLeft\"\n ? index - 1\n : e.key === \"Home\"\n ? 0\n : e.key === \"End\"\n ? latest.current.last\n : null;\n if (next === null) return;\n e.preventDefault();\n select(next, true);\n },\n [select],\n );\n\n const drag = useRef({\n id: -1,\n startX: 0,\n startScroll: 0,\n moved: false,\n lastX: 0,\n lastT: 0,\n prevX: 0,\n prevT: 0,\n });\n\n const onPointerDown = (e: ReactPointerEvent) => {\n if (e.button !== 0) return;\n stopGlide();\n const now = performance.now();\n drag.current = {\n id: e.pointerId,\n startX: e.clientX,\n startScroll: scroll.get(),\n moved: false,\n lastX: e.clientX,\n lastT: now,\n prevX: e.clientX,\n prevT: now,\n };\n draggingRef.current = true;\n };\n\n const onPointerMove = (e: ReactPointerEvent) => {\n const d = drag.current;\n if (!draggingRef.current || e.pointerId !== d.id) return;\n const dx = e.clientX - d.startX;\n if (!d.moved) {\n if (Math.abs(dx) < DRAG_THRESHOLD) return;\n // Capture only once it is a drag, so a plain press still clicks the\n // card under it; after a drag the click lands on the stage instead.\n d.moved = true;\n capturePointer(e.currentTarget, e.pointerId);\n }\n const raw = d.startScroll - dx / step;\n scroll.set(raw < 0 ? raw * RUBBER_BAND : raw > last ? last + (raw - last) * RUBBER_BAND : raw);\n d.prevX = d.lastX;\n d.prevT = d.lastT;\n d.lastX = e.clientX;\n d.lastT = performance.now();\n };\n\n const onPointerUp = (e: ReactPointerEvent) => {\n const d = drag.current;\n if (!draggingRef.current || e.pointerId !== d.id) return;\n draggingRef.current = false;\n if (!d.moved) return;\n releasePointer(e.currentTarget, e.pointerId);\n const dt = d.lastT - d.prevT;\n const vpx = dt > 0 ? (d.lastX - d.prevX) / dt : 0; // px per ms\n settle((-vpx * 1000) / step); // events per second\n };\n\n // Horizontal wheel and trackpad swipes move the track; vertical wheel is\n // left to the page. Native listener: React's wheel handler is passive and\n // could not stop the browser's back-swipe.\n useEffect(() => {\n const el = stageRef.current;\n if (!el) return;\n let settleTimer: number | undefined;\n const onWheel = (e: WheelEvent) => {\n if (Math.abs(e.deltaX) <= Math.abs(e.deltaY)) return;\n e.preventDefault();\n stopGlide();\n const { step, last } = latest.current;\n scroll.set(clamp(scroll.get() + e.deltaX / step, -0.3, last + 0.3));\n window.clearTimeout(settleTimer);\n settleTimer = window.setTimeout(\n () => glideTo(clamp(Math.round(scroll.get()), 0, latest.current.last), 0),\n 140,\n );\n };\n el.addEventListener(\"wheel\", onWheel, { passive: false });\n return () => {\n el.removeEventListener(\"wheel\", onWheel);\n window.clearTimeout(settleTimer);\n };\n }, [scroll, stopGlide, glideTo]);\n\n useEffect(() => stopGlide, [stopGlide]);\n\n const dates = useMemo(() => events.map((e) => toDate(e.date)), [events]);\n\n // One numeral per year, centered on the boundary where that year begins.\n const yearMarks = useMemo(() => {\n const marks: { key: string; label: string; position: number }[] = [];\n let previous: number | null = null;\n dates.forEach((date, i) => {\n const year = date.getUTCFullYear();\n if (year === previous) return;\n previous = year;\n marks.push({\n key: String(year),\n label: formatYear(date),\n position: i === 0 ? 0 : i - 0.5,\n });\n });\n return marks;\n }, [dates, formatYear]);\n\n return (\n <section\n ref={stageRef}\n aria-label={ariaLabel}\n aria-describedby={hintId}\n onPointerDown={onPointerDown}\n onPointerMove={onPointerMove}\n onPointerUp={onPointerUp}\n onPointerCancel={onPointerUp}\n className={cn(\n // clip-path rather than overflow: it also clips composited layers.\n // The whole stage fades at its edges together, so a card never turns\n // see-through over the cables behind it.\n \"mask-[linear-gradient(to_right,transparent,black_6%,black_94%,transparent)]\",\n \"relative w-full cursor-grab touch-pan-y overscroll-x-contain [clip-path:inset(0)] active:cursor-grabbing\",\n TOUCH_GESTURE_CLASS,\n className,\n )}\n style={{ height }}\n >\n <p id={hintId} className=\"sr-only\">\n Use the left and right arrow keys to move between events.\n </p>\n {years\n ? yearMarks.map((mark) => (\n <YearMark\n key={mark.key}\n scroll={scroll}\n position={mark.position}\n step={step}\n label={mark.label}\n fontSize={height * 0.2}\n />\n ))\n : null}\n {cables ? (\n <svg\n aria-hidden=\"true\"\n className=\"stroke-foreground/[0.14] pointer-events-none absolute inset-0 size-full mask-[linear-gradient(to_bottom,transparent,black_6%,black_94%,transparent)]\"\n fill=\"none\"\n strokeWidth={1}\n >\n {events.map((event, i) => (\n <Cables key={event.id} scroll={scroll} index={i} geometry={geometry} height={height} />\n ))}\n </svg>\n ) : null}\n {/* The playhead: drawn over the cables so it reads as the line they hang\n from, bright from end to end and fading only at the stage edges. */}\n <div\n aria-hidden=\"true\"\n className=\"text-foreground/80 pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2\"\n style={{\n backgroundImage:\n \"linear-gradient(to bottom, transparent, currentColor 6%, currentColor 94%, transparent)\",\n }}\n />\n {ruler\n ? events\n .slice(0, -1)\n .map((event, i) => (\n <GapTicks key={event.id} scroll={scroll} index={i} geometry={geometry} gap={gap} />\n ))\n : null}\n <ul className=\"absolute inset-0\">\n {events.map((event, i) => (\n <TimelineCard\n key={event.id}\n scroll={scroll}\n index={i}\n geometry={geometry}\n event={event}\n dateLabel={formatDate(dates[i])}\n active={i === activeIndex}\n onSelect={select}\n onKeyDown={onKeyDown}\n buttonRef={(node) => {\n buttonsRef.current[i] = node;\n }}\n />\n ))}\n </ul>\n </section>\n );\n}\n"],"mappings":";;;;;;;AA6BA,MAAM,eAAe;CAAE,WAAW;CAAK,SAAS;CAAI,MAAM;AAAE;AAG5D,MAAM,iBAAiB;AACvB,MAAM,mBAAm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;CACT,GAAG,CAAC,OAAO,UAAU,CAAC;CAEtB,OACE,qBAAC,WAAD;EACE,KAAK;EACL,cAAY;EACZ,oBAAkB;EACH;EACA;EACF;EACb,iBAAiB;EACjB,WAAW,GAIT,+EACA,4GACA,qBACA,SACF;EACA,OAAO,EAAE,OAAO;EAjBlB,UAAA;GAmBE,oBAAC,KAAD;IAAG,IAAI;IAAQ,WAAU;IAAU,UAAA;GAEhC,CAAA;GACF,QACG,UAAU,KAAK,SACb,oBAAC,UAAD;IAEU;IACR,UAAU,KAAK;IACT;IACN,OAAO,KAAK;IACZ,UAAU,SAAS;GACpB,GANM,KAAK,GAMX,CACF,IACD;GACH,SACC,oBAAC,OAAD;IACE,eAAY;IACZ,WAAU;IACV,MAAK;IACL,aAAa;IAEZ,UAAA,OAAO,KAAK,OAAO,MAClB,oBAAC,QAAD;KAA+B;KAAQ,OAAO;KAAa;KAAkB;IAAS,GAAzE,MAAM,EAAmE,CACvF;GACE,CAAA,IACH;GAGJ,oBAAC,OAAD;IACE,eAAY;IACZ,WAAU;IACV,OAAO,EACL,iBACE,0FACJ;GACD,CAAA;GACA,QACG,OACG,MAAM,GAAG,EAAE,CAAC,CACZ,KAAK,OAAO,MACX,oBAAC,UAAD;IAAiC;IAAQ,OAAO;IAAa;IAAe;GAAM,GAAnE,MAAM,EAA6D,CACnF,IACH;GACJ,oBAAC,MAAD;IAAI,WAAU;IACX,UAAA,OAAO,KAAK,OAAO,MAClB,oBAAC,cAAD;KAEU;KACR,OAAO;KACG;KACH;KACP,WAAW,WAAW,MAAM,EAAE;KAC9B,QAAQ,MAAM;KACd,UAAU;KACC;KACX,YAAY,SAAS;MACnB,WAAW,QAAQ,KAAK;KAC1B;IACD,GAZM,MAAM,EAYZ,CACF;GACC,CAAA;EACG;;AAEb"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { a as useTooltipPosition, i as TooltipSide } from "../../../use-position-
|
|
1
|
+
import { a as useTooltipPosition, i as TooltipSide } from "../../../use-position-CWSE4wCz.js";
|
|
2
2
|
import { ReactNode, Ref } from "react";
|
|
3
|
-
//#region src/components/motion/tooltip/positioner.d.ts
|
|
4
3
|
type PositionProps = Parameters<typeof useTooltipPosition>[0];
|
|
5
4
|
/** Readiness lives with the mounted overlay, not a trigger ref's attach/detach cycle. */
|
|
6
5
|
export declare function TooltipPositioner({ children, ...position }: Omit<PositionProps, "open" | "onPosition"> & {
|
|
@@ -10,6 +9,5 @@ export declare function TooltipArrow({ side, ref }: {
|
|
|
10
9
|
side: TooltipSide;
|
|
11
10
|
ref: Ref<SVGSVGElement>;
|
|
12
11
|
}): import("react").JSX.Element;
|
|
13
|
-
//#endregion
|
|
14
12
|
export {};
|
|
15
13
|
//# sourceMappingURL=positioner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"positioner.d.ts","names":[],"sources":["../../../../src/components/motion/tooltip/positioner.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"positioner.d.ts","names":[],"sources":["../../../../src/components/motion/tooltip/positioner.tsx"],"mappings":";;KAOK,gBAAgB,kBAAkB;;wBAGvB,oBACd,aACG,YACF,KAAK;EACN,WAAW,gBAAgB,kBAAkB,MAAM,gBAAgB;oBACpE,IAAA;wBA+Be,eAAe,MAAM;EAAS,MAAM;EAAa,KAAK,IAAI;oBAAgB,IAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { t as TooltipArrow, n as TooltipPositioner } from "../../../positioner-
|
|
2
|
+
export { t as TooltipArrow, n as TooltipPositioner } from "../../../positioner-MidjIUUT.js";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ComponentProps, ReactNode, Ref } from "react";
|
|
2
2
|
import { motion } from "motion/react";
|
|
3
|
-
//#region src/components/motion/tooltip-surface.d.ts
|
|
4
3
|
/** Presentation only: the unanimated parent owns measurement and positioning. */
|
|
5
4
|
export declare function TooltipSurface({ children, side: _side, className, ref, ready, style, ...props }: Omit<ComponentProps<typeof motion.span>, "children"> & {
|
|
6
5
|
children?: ReactNode;
|
|
@@ -9,5 +8,4 @@ export declare function TooltipSurface({ children, side: _side, className, ref,
|
|
|
9
8
|
side?: "top" | "right" | "bottom" | "left";
|
|
10
9
|
ref?: Ref<HTMLSpanElement>;
|
|
11
10
|
}): import("react").JSX.Element;
|
|
12
|
-
//#endregion
|
|
13
11
|
//# sourceMappingURL=tooltip-surface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip-surface.d.ts","names":[],"sources":["../../../src/components/motion/tooltip-surface.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tooltip-surface.d.ts","names":[],"sources":["../../../src/components/motion/tooltip-surface.tsx"],"mappings":";;;wBASgB,iBACd,UACA,MAAM,OACN,WACA,KACA,OACA,UACG,SACF,KAAK,sBAAsB,OAAO;EACnC,WAAW;;EAEX;EACA;EACA,MAAM,IAAI;oBACX,IAAA"}
|
|
@@ -3,7 +3,7 @@ import { EASE_OUT } from "../../lib/ease.js";
|
|
|
3
3
|
import { cn } from "@kumix/utils";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { motion, useReducedMotion } from "motion/react";
|
|
6
|
-
|
|
6
|
+
// src/components/motion/tooltip-surface.tsx
|
|
7
7
|
/** Presentation only: the unanimated parent owns measurement and positioning. */
|
|
8
8
|
function TooltipSurface({ children, side: _side = "top", className, ref, ready = true, style, ...props }) {
|
|
9
9
|
const closed = {
|
|
@@ -35,12 +35,11 @@ function TooltipSurface({ children, side: _side = "top", className, ref, ready =
|
|
|
35
35
|
transformOrigin: "var(--tooltip-origin, center)",
|
|
36
36
|
...style
|
|
37
37
|
},
|
|
38
|
-
className: cn("
|
|
38
|
+
className: cn("border-border bg-background text-foreground block rounded-lg border px-2.5 py-1 text-xs font-medium whitespace-nowrap shadow-lg", className),
|
|
39
39
|
...props,
|
|
40
40
|
children
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
//#endregion
|
|
44
43
|
export { TooltipSurface };
|
|
45
44
|
|
|
46
45
|
//# sourceMappingURL=tooltip-surface.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip-surface.js","names":[],"sources":["../../../src/components/motion/tooltip-surface.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ComponentProps, ReactNode, Ref } from \"react\";\nimport { motion, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_OUT } from \"../../lib/ease\";\n\n/** Presentation only: the unanimated parent owns measurement and positioning. */\nexport function TooltipSurface({\n children,\n side: _side = \"top\",\n className,\n ref,\n ready = true,\n style,\n ...props\n}: Omit<ComponentProps<typeof motion.span>, \"children\"> & {\n children?: ReactNode;\n /** Start the entrance only after the positioning layer has been measured. */\n ready?: boolean;\n side?: \"top\" | \"right\" | \"bottom\" | \"left\";\n ref?: Ref<HTMLSpanElement>;\n}) {\n const reduce = useReducedMotion();\n const closed = { opacity: 0, scale: reduce ? 1 : 0.94 };\n return (\n <motion.span\n ref={ref}\n role=\"tooltip\"\n initial={closed}\n animate={{\n ...(ready ? { opacity: 1, scale: 1 } : closed),\n transition: { duration: 0.18, ease: EASE_OUT },\n }}\n exit={{ ...closed, transition: { duration: 0.12, ease: EASE_OUT } }}\n style={{ transformOrigin: \"var(--tooltip-origin, center)\", ...style }}\n className={cn(\n \"
|
|
1
|
+
{"version":3,"file":"tooltip-surface.js","names":[],"sources":["../../../src/components/motion/tooltip-surface.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ComponentProps, ReactNode, Ref } from \"react\";\nimport { motion, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_OUT } from \"../../lib/ease\";\n\n/** Presentation only: the unanimated parent owns measurement and positioning. */\nexport function TooltipSurface({\n children,\n side: _side = \"top\",\n className,\n ref,\n ready = true,\n style,\n ...props\n}: Omit<ComponentProps<typeof motion.span>, \"children\"> & {\n children?: ReactNode;\n /** Start the entrance only after the positioning layer has been measured. */\n ready?: boolean;\n side?: \"top\" | \"right\" | \"bottom\" | \"left\";\n ref?: Ref<HTMLSpanElement>;\n}) {\n const reduce = useReducedMotion();\n const closed = { opacity: 0, scale: reduce ? 1 : 0.94 };\n return (\n <motion.span\n ref={ref}\n role=\"tooltip\"\n initial={closed}\n animate={{\n ...(ready ? { opacity: 1, scale: 1 } : closed),\n transition: { duration: 0.18, ease: EASE_OUT },\n }}\n exit={{ ...closed, transition: { duration: 0.12, ease: EASE_OUT } }}\n style={{ transformOrigin: \"var(--tooltip-origin, center)\", ...style }}\n className={cn(\n \"border-border bg-background text-foreground block rounded-lg border px-2.5 py-1 text-xs font-medium whitespace-nowrap shadow-lg\",\n className,\n )}\n {...props}\n >\n {children}\n </motion.span>\n );\n}\n"],"mappings":";;;;;;;AASA,SAAgB,eAAe,EAC7B,UACA,MAAM,QAAQ,OACd,WACA,KACA,QAAQ,MACR,OACA,GAAG,SAOF;CAED,MAAM,SAAS;EAAE,SAAS;EAAG,OADd,iBAC0B,IAAI,IAAI;CAAK;CACtD,OACE,oBAAC,OAAO,MAAR;EACO;EACL,MAAK;EACL,SAAS;EACT,SAAS;GACP,GAAI,QAAQ;IAAE,SAAS;IAAG,OAAO;GAAE,IAAI;GACvC,YAAY;IAAE,UAAU;IAAM,MAAM;GAAS;EAC/C;EACA,MAAM;GAAE,GAAG;GAAQ,YAAY;IAAE,UAAU;IAAM,MAAM;GAAS;EAAE;EAClE,OAAO;GAAE,iBAAiB;GAAiC,GAAG;EAAM;EACpE,WAAW,GACT,mIACA,SACF;EACA,GAAI;EAEH;CACU,CAAA;AAEjB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { i as TooltipSide, n as TooltipAnchor, r as TooltipPoint, t as TooltipAlign } from "../../use-position-
|
|
1
|
+
import { i as TooltipSide, n as TooltipAnchor, r as TooltipPoint, t as TooltipAlign } from "../../use-position-CWSE4wCz.js";
|
|
2
2
|
import { ComponentProps, ReactElement, ReactNode, RefObject } from "react";
|
|
3
|
-
//#region src/components/motion/tooltip.d.ts
|
|
4
3
|
interface TooltipTiming {
|
|
5
4
|
/** Delay before a hover opens a tooltip (ms). */
|
|
6
5
|
delay: number;
|
|
@@ -65,6 +64,5 @@ export interface TooltipProps extends TooltipRootProps, Omit<TooltipContentProps
|
|
|
65
64
|
className?: string;
|
|
66
65
|
}
|
|
67
66
|
export declare function Tooltip(props: TooltipProps): string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null;
|
|
68
|
-
//#endregion
|
|
69
67
|
export type { TooltipAlign, TooltipSide };
|
|
70
68
|
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","names":[],"sources":["../../../src/components/motion/tooltip.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","names":[],"sources":["../../../src/components/motion/tooltip.tsx"],"mappings":";;UA6CU;;EAER;;EAEA;;EAEA;;iBAKe,6BAA6B,QAAQ;EACpD,UAAU;;;wBAII,kBAAkB,aAAa,UAAU,uCAAoB,IAAA;iBAoD5D;EACf,WAAW;EACX;EACA;EACA,gBAAgB;;EAEhB;;EAEA;;EAEA;;;;;EAKA;;EAEA;;EAEA,YAAY,UAAU;;EAEtB;;iBA2Ve,4BAA4B;;EAE3C;;wBAGc,iBAAiB,SAAiB,UAAU,QAAQ,SAAS,2EAAmB,IAAA,UAAA,SAAA,aAAA,6DAAA,cAAA,+CAAA,8BAAA,SAAA;iBA0D/E;EACf,WAAW;EACX,OAAO;EACP,QAAQ;;EAER;;EAEA;;EAEA,cAAc;EACd;;wBAGc,iBACd,UACA,MACA,OACA,YACA,OACA,aACA,aACC,sCAAmB;iBA6EL,qBACP,kBACN,KAAK;;;;;EAKP,UAAU;;EAEV;;wBAGc,QAAQ,OAAO,oEAAY,IAAA,UAAA,SAAA,aAAA,6DAAA,cAAA,+CAAA,8BAAA,SAAA"}
|