@kumix/ui 0.3.18 → 0.4.1
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 +28 -17
- package/dist/account-avatar-DILzuuvz.js +23 -0
- package/dist/account-avatar-DILzuuvz.js.map +1 -0
- package/dist/{cascader-types-BnH6wYD-.d.ts → cascader-types-DVT-znZ-.d.ts} +6 -3
- package/dist/cascader-types-DVT-znZ-.d.ts.map +1 -0
- package/dist/components/agents/approval-card/index.d.ts +2 -0
- package/dist/components/agents/approval-card/index.d.ts.map +1 -1
- package/dist/components/agents/approval-card/index.js +2 -0
- package/dist/components/agents/approval-card/index.js.map +1 -1
- package/dist/components/agents/citations.d.ts +14 -2
- package/dist/components/agents/citations.d.ts.map +1 -1
- package/dist/components/agents/citations.js +11 -7
- package/dist/components/agents/citations.js.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.d.ts.map +1 -1
- package/dist/components/agents/loading-states/reasoning-text.js +3 -0
- package/dist/components/agents/loading-states/reasoning-text.js.map +1 -1
- package/dist/components/agents/voice-orb.d.ts +19 -0
- package/dist/components/agents/voice-orb.d.ts.map +1 -0
- package/dist/components/agents/voice-orb.js +389 -0
- package/dist/components/agents/voice-orb.js.map +1 -0
- package/dist/components/charts/bump-chart/context.d.ts +2 -0
- package/dist/components/charts/bump-chart/context.js +2 -0
- package/dist/components/charts/bump-chart/legend.d.ts +6 -0
- package/dist/components/charts/bump-chart/legend.d.ts.map +1 -0
- package/dist/components/charts/bump-chart/legend.js +60 -0
- package/dist/components/charts/bump-chart/legend.js.map +1 -0
- package/dist/components/charts/bump-chart/plot.d.ts +6 -0
- package/dist/components/charts/bump-chart/plot.d.ts.map +1 -0
- package/dist/components/charts/bump-chart/plot.js +2 -0
- package/dist/components/charts/bump-chart/point.d.ts +10 -0
- package/dist/components/charts/bump-chart/point.d.ts.map +1 -0
- package/dist/components/charts/bump-chart/point.js +124 -0
- package/dist/components/charts/bump-chart/point.js.map +1 -0
- package/dist/components/charts/bump-chart/series.d.ts +12 -0
- package/dist/components/charts/bump-chart/series.d.ts.map +1 -0
- package/dist/components/charts/bump-chart/series.js +101 -0
- package/dist/components/charts/bump-chart/series.js.map +1 -0
- package/dist/components/charts/bump-chart.d.ts +10 -0
- package/dist/components/charts/bump-chart.d.ts.map +1 -0
- package/dist/components/charts/bump-chart.js +23 -0
- package/dist/components/charts/bump-chart.js.map +1 -0
- package/dist/components/charts/candlestick-chart/context.d.ts +79 -0
- package/dist/components/charts/candlestick-chart/context.d.ts.map +1 -0
- package/dist/components/charts/candlestick-chart/context.js +69 -0
- package/dist/components/charts/candlestick-chart/context.js.map +1 -0
- package/dist/components/charts/candlestick-chart/legend.d.ts +12 -0
- package/dist/components/charts/candlestick-chart/legend.d.ts.map +1 -0
- package/dist/components/charts/candlestick-chart/legend.js +56 -0
- package/dist/components/charts/candlestick-chart/legend.js.map +1 -0
- package/dist/components/charts/candlestick-chart/plot.d.ts +9 -0
- package/dist/components/charts/candlestick-chart/plot.d.ts.map +1 -0
- package/dist/components/charts/candlestick-chart/plot.js +218 -0
- package/dist/components/charts/candlestick-chart/plot.js.map +1 -0
- package/dist/components/charts/candlestick-chart.d.ts +18 -0
- package/dist/components/charts/candlestick-chart.d.ts.map +1 -0
- package/dist/components/charts/candlestick-chart.js +34 -0
- package/dist/components/charts/candlestick-chart.js.map +1 -0
- package/dist/components/charts/composition-chart/context.d.ts +2 -0
- package/dist/components/charts/composition-chart/context.js +2 -0
- package/dist/components/charts/composition-chart/legend.d.ts +6 -0
- package/dist/components/charts/composition-chart/legend.d.ts.map +1 -0
- package/dist/components/charts/composition-chart/legend.js +51 -0
- package/dist/components/charts/composition-chart/legend.js.map +1 -0
- package/dist/components/charts/composition-chart/plot.d.ts +6 -0
- package/dist/components/charts/composition-chart/plot.d.ts.map +1 -0
- package/dist/components/charts/composition-chart/plot.js +174 -0
- package/dist/components/charts/composition-chart/plot.js.map +1 -0
- package/dist/components/charts/composition-chart/tooltip-content.d.ts +6 -0
- package/dist/components/charts/composition-chart/tooltip-content.d.ts.map +1 -0
- package/dist/components/charts/composition-chart/tooltip-content.js +63 -0
- package/dist/components/charts/composition-chart/tooltip-content.js.map +1 -0
- package/dist/components/charts/composition-chart.d.ts +9 -0
- package/dist/components/charts/composition-chart.d.ts.map +1 -0
- package/dist/components/charts/composition-chart.js +26 -0
- package/dist/components/charts/composition-chart.js.map +1 -0
- package/dist/components/charts/donut-chart/center.d.ts +16 -0
- package/dist/components/charts/donut-chart/center.d.ts.map +1 -0
- package/dist/components/charts/donut-chart/center.js +78 -0
- package/dist/components/charts/donut-chart/center.js.map +1 -0
- package/dist/components/charts/donut-chart/context.d.ts +68 -0
- package/dist/components/charts/donut-chart/context.d.ts.map +1 -0
- package/dist/components/charts/donut-chart/context.js +2 -0
- package/dist/components/charts/donut-chart/legend.d.ts +17 -0
- package/dist/components/charts/donut-chart/legend.d.ts.map +1 -0
- package/dist/components/charts/donut-chart/legend.js +85 -0
- package/dist/components/charts/donut-chart/legend.js.map +1 -0
- package/dist/components/charts/donut-chart/plot.d.ts +10 -0
- package/dist/components/charts/donut-chart/plot.d.ts.map +1 -0
- package/dist/components/charts/donut-chart/plot.js +108 -0
- package/dist/components/charts/donut-chart/plot.js.map +1 -0
- package/dist/components/charts/donut-chart.d.ts +22 -0
- package/dist/components/charts/donut-chart.d.ts.map +1 -0
- package/dist/components/charts/donut-chart.js +37 -0
- package/dist/components/charts/donut-chart.js.map +1 -0
- package/dist/components/charts/funnel-chart.d.ts +50 -0
- package/dist/components/charts/funnel-chart.d.ts.map +1 -0
- package/dist/components/charts/funnel-chart.js +215 -0
- package/dist/components/charts/funnel-chart.js.map +1 -0
- package/dist/components/charts/heat-calendar/grid.d.ts +8 -0
- package/dist/components/charts/heat-calendar/grid.d.ts.map +1 -0
- package/dist/components/charts/heat-calendar/grid.js +127 -0
- package/dist/components/charts/heat-calendar/grid.js.map +1 -0
- package/dist/components/charts/heat-calendar/legend.d.ts +6 -0
- package/dist/components/charts/heat-calendar/legend.d.ts.map +1 -0
- package/dist/components/charts/heat-calendar/legend.js +48 -0
- package/dist/components/charts/heat-calendar/legend.js.map +1 -0
- package/dist/components/charts/heat-calendar/tooltip.d.ts +2 -0
- package/dist/components/charts/heat-calendar/tooltip.js +50 -0
- package/dist/components/charts/heat-calendar/tooltip.js.map +1 -0
- package/dist/components/charts/heat-calendar.d.ts +9 -0
- package/dist/components/charts/heat-calendar.d.ts.map +1 -0
- package/dist/components/charts/heat-calendar.js +23 -0
- package/dist/components/charts/heat-calendar.js.map +1 -0
- package/dist/components/charts/liquidity-heatmap.d.ts +51 -0
- package/dist/components/charts/liquidity-heatmap.d.ts.map +1 -0
- package/dist/components/charts/liquidity-heatmap.js +311 -0
- package/dist/components/charts/liquidity-heatmap.js.map +1 -0
- package/dist/components/charts/order-book/depth-row.d.ts +19 -0
- package/dist/components/charts/order-book/depth-row.d.ts.map +1 -0
- package/dist/components/charts/order-book/depth-row.js +107 -0
- package/dist/components/charts/order-book/depth-row.js.map +1 -0
- package/dist/components/charts/order-book.d.ts +89 -0
- package/dist/components/charts/order-book.d.ts.map +1 -0
- package/dist/components/charts/order-book.js +282 -0
- package/dist/components/charts/order-book.js.map +1 -0
- package/dist/components/charts/price-target-fan/header.d.ts +8 -0
- package/dist/components/charts/price-target-fan/header.d.ts.map +1 -0
- package/dist/components/charts/price-target-fan/header.js +43 -0
- package/dist/components/charts/price-target-fan/header.js.map +1 -0
- package/dist/components/charts/price-target-fan/plot.d.ts +16 -0
- package/dist/components/charts/price-target-fan/plot.d.ts.map +1 -0
- package/dist/components/charts/price-target-fan/plot.js +142 -0
- package/dist/components/charts/price-target-fan/plot.js.map +1 -0
- package/dist/components/charts/price-target-fan/series.d.ts +15 -0
- package/dist/components/charts/price-target-fan/series.d.ts.map +1 -0
- package/dist/components/charts/price-target-fan/series.js +238 -0
- package/dist/components/charts/price-target-fan/series.js.map +1 -0
- package/dist/components/charts/price-target-fan/tooltip.d.ts +2 -0
- package/dist/components/charts/price-target-fan/tooltip.js +58 -0
- package/dist/components/charts/price-target-fan/tooltip.js.map +1 -0
- package/dist/components/charts/price-target-fan.d.ts +10 -0
- package/dist/components/charts/price-target-fan.d.ts.map +1 -0
- package/dist/components/charts/price-target-fan.js +24 -0
- package/dist/components/charts/price-target-fan.js.map +1 -0
- package/dist/components/charts/returns-calendar/grid.d.ts +8 -0
- package/dist/components/charts/returns-calendar/grid.d.ts.map +1 -0
- package/dist/components/charts/returns-calendar/grid.js +176 -0
- package/dist/components/charts/returns-calendar/grid.js.map +1 -0
- package/dist/components/charts/returns-calendar/tooltip.d.ts +2 -0
- package/dist/components/charts/returns-calendar/tooltip.js +55 -0
- package/dist/components/charts/returns-calendar/tooltip.js.map +1 -0
- package/dist/components/charts/returns-calendar.d.ts +48 -0
- package/dist/components/charts/returns-calendar.d.ts.map +1 -0
- package/dist/components/charts/returns-calendar.js +22 -0
- package/dist/components/charts/returns-calendar.js.map +1 -0
- package/dist/components/charts/status-bar/legend.d.ts +8 -0
- package/dist/components/charts/status-bar/legend.d.ts.map +1 -0
- package/dist/components/charts/status-bar/legend.js +37 -0
- package/dist/components/charts/status-bar/legend.js.map +1 -0
- package/dist/components/charts/status-bar/plot.d.ts +12 -0
- package/dist/components/charts/status-bar/plot.d.ts.map +1 -0
- package/dist/components/charts/status-bar/plot.js +176 -0
- package/dist/components/charts/status-bar/plot.js.map +1 -0
- package/dist/components/charts/status-bar/tooltip.d.ts +2 -0
- package/dist/components/charts/status-bar/tooltip.js +49 -0
- package/dist/components/charts/status-bar/tooltip.js.map +1 -0
- package/dist/components/charts/status-bar.d.ts +9 -0
- package/dist/components/charts/status-bar.d.ts.map +1 -0
- package/dist/components/charts/status-bar.js +64 -0
- package/dist/components/charts/status-bar.js.map +1 -0
- package/dist/components/charts/treemap/legend.d.ts +8 -0
- package/dist/components/charts/treemap/legend.d.ts.map +1 -0
- package/dist/components/charts/treemap/legend.js +35 -0
- package/dist/components/charts/treemap/legend.js.map +1 -0
- package/dist/components/charts/treemap/plot.d.ts +13 -0
- package/dist/components/charts/treemap/plot.d.ts.map +1 -0
- package/dist/components/charts/treemap/plot.js +123 -0
- package/dist/components/charts/treemap/plot.js.map +1 -0
- package/dist/components/charts/treemap/tile.d.ts +10 -0
- package/dist/components/charts/treemap/tile.d.ts.map +1 -0
- package/dist/components/charts/treemap/tile.js +114 -0
- package/dist/components/charts/treemap/tile.js.map +1 -0
- package/dist/components/charts/treemap/tooltip.d.ts +11 -0
- package/dist/components/charts/treemap/tooltip.d.ts.map +1 -0
- package/dist/components/charts/treemap/tooltip.js +73 -0
- package/dist/components/charts/treemap/tooltip.js.map +1 -0
- package/dist/components/charts/treemap.d.ts +56 -0
- package/dist/components/charts/treemap.d.ts.map +1 -0
- package/dist/components/charts/treemap.js +71 -0
- package/dist/components/charts/treemap.js.map +1 -0
- package/dist/components/charts/volume-profile/plot.d.ts +12 -0
- package/dist/components/charts/volume-profile/plot.d.ts.map +1 -0
- package/dist/components/charts/volume-profile/plot.js +211 -0
- package/dist/components/charts/volume-profile/plot.js.map +1 -0
- package/dist/components/charts/volume-profile/summary.d.ts +6 -0
- package/dist/components/charts/volume-profile/summary.d.ts.map +1 -0
- package/dist/components/charts/volume-profile/summary.js +76 -0
- package/dist/components/charts/volume-profile/summary.js.map +1 -0
- package/dist/components/charts/volume-profile/tooltip.d.ts +2 -0
- package/dist/components/charts/volume-profile/tooltip.js +84 -0
- package/dist/components/charts/volume-profile/tooltip.js.map +1 -0
- package/dist/components/charts/volume-profile.d.ts +111 -0
- package/dist/components/charts/volume-profile.d.ts.map +1 -0
- package/dist/components/charts/volume-profile.js +82 -0
- package/dist/components/charts/volume-profile.js.map +1 -0
- package/dist/components/custom/confirm-dialog.d.ts +1 -0
- package/dist/components/custom/toast.d.ts +1 -0
- package/dist/components/motion/action-swap.d.ts.map +1 -1
- package/dist/components/motion/action-swap.js +3 -0
- package/dist/components/motion/action-swap.js.map +1 -1
- package/dist/components/motion/alert.d.ts +40 -0
- package/dist/components/motion/alert.d.ts.map +1 -0
- package/dist/components/motion/alert.js +247 -0
- package/dist/components/motion/alert.js.map +1 -0
- package/dist/components/motion/animated-sidebar.d.ts +1 -0
- package/dist/components/motion/arc-picker.d.ts +28 -0
- package/dist/components/motion/arc-picker.d.ts.map +1 -0
- package/dist/components/motion/arc-picker.js +569 -0
- package/dist/components/motion/arc-picker.js.map +1 -0
- package/dist/components/motion/aspect-ratio.d.ts +23 -0
- package/dist/components/motion/aspect-ratio.d.ts.map +1 -0
- package/dist/components/motion/aspect-ratio.js +61 -0
- package/dist/components/motion/aspect-ratio.js.map +1 -0
- package/dist/components/motion/attachment-upload.d.ts.map +1 -1
- package/dist/components/motion/attachment-upload.js +1 -2
- package/dist/components/motion/attachment-upload.js.map +1 -1
- package/dist/components/motion/availability-scheduler/copy-menu.js +1 -2
- package/dist/components/motion/availability-scheduler/day-row.js +2 -2
- package/dist/components/motion/availability-scheduler/index.js +1 -1
- package/dist/components/motion/bloom-menu.d.ts +1 -0
- package/dist/components/motion/bounce-sidebar.d.ts.map +1 -1
- package/dist/components/motion/bounce-sidebar.js +34 -42
- package/dist/components/motion/bounce-sidebar.js.map +1 -1
- package/dist/components/motion/button/stateful.d.ts.map +1 -1
- package/dist/components/motion/button/stateful.js +3 -0
- package/dist/components/motion/button/stateful.js.map +1 -1
- package/dist/components/motion/card.d.ts +44 -0
- package/dist/components/motion/card.d.ts.map +1 -0
- package/dist/components/motion/card.js +122 -0
- package/dist/components/motion/card.js.map +1 -0
- package/dist/components/motion/checkbox.d.ts +3 -1
- package/dist/components/motion/checkbox.d.ts.map +1 -1
- package/dist/components/motion/checkbox.js +18 -6
- package/dist/components/motion/checkbox.js.map +1 -1
- package/dist/components/motion/collapsible.d.ts +34 -0
- package/dist/components/motion/collapsible.d.ts.map +1 -0
- package/dist/components/motion/collapsible.js +237 -0
- package/dist/components/motion/collapsible.js.map +1 -0
- package/dist/components/motion/color-picker.d.ts +110 -0
- package/dist/components/motion/color-picker.d.ts.map +1 -0
- package/dist/components/motion/color-picker.js +1053 -0
- package/dist/components/motion/color-picker.js.map +1 -0
- package/dist/components/motion/color-selector.d.ts.map +1 -1
- package/dist/components/motion/color-selector.js +9 -2
- package/dist/components/motion/color-selector.js.map +1 -1
- package/dist/components/motion/combobox/content.d.ts +1 -0
- package/dist/components/motion/command-palette.js +2 -2
- package/dist/components/motion/command-palette.js.map +1 -1
- package/dist/components/motion/context-menu.d.ts +1 -0
- package/dist/components/motion/date-range-picker.d.ts +107 -0
- package/dist/components/motion/date-range-picker.d.ts.map +1 -0
- package/dist/components/motion/date-range-picker.js +907 -0
- package/dist/components/motion/date-range-picker.js.map +1 -0
- package/dist/components/motion/digit-swap.d.ts +9 -1
- package/dist/components/motion/digit-swap.d.ts.map +1 -1
- package/dist/components/motion/digit-swap.js +18 -7
- package/dist/components/motion/digit-swap.js.map +1 -1
- package/dist/components/motion/expandable-control.d.ts +1 -0
- package/dist/components/motion/knockout-bracket.d.ts +190 -0
- package/dist/components/motion/knockout-bracket.d.ts.map +1 -0
- package/dist/components/motion/knockout-bracket.js +952 -0
- package/dist/components/motion/knockout-bracket.js.map +1 -0
- package/dist/components/motion/knockout-wheel.d.ts +183 -0
- package/dist/components/motion/knockout-wheel.d.ts.map +1 -0
- package/dist/components/motion/knockout-wheel.js +1038 -0
- package/dist/components/motion/knockout-wheel.js.map +1 -0
- package/dist/components/motion/morphing-lightbox.d.ts +67 -0
- package/dist/components/motion/morphing-lightbox.d.ts.map +1 -0
- package/dist/components/motion/morphing-lightbox.js +499 -0
- package/dist/components/motion/morphing-lightbox.js.map +1 -0
- package/dist/components/motion/morphing-search-chips.d.ts +54 -0
- package/dist/components/motion/morphing-search-chips.d.ts.map +1 -0
- package/dist/components/motion/morphing-search-chips.js +599 -0
- package/dist/components/motion/morphing-search-chips.js.map +1 -0
- package/dist/components/motion/multi-select/content.d.ts +1 -0
- package/dist/components/motion/not-found/shared.d.ts +1 -0
- package/dist/components/motion/number-ticker.d.ts +6 -1
- package/dist/components/motion/number-ticker.d.ts.map +1 -1
- package/dist/components/motion/number-ticker.js +19 -9
- package/dist/components/motion/number-ticker.js.map +1 -1
- package/dist/components/motion/parallax.js.map +1 -1
- package/dist/components/motion/popover-morph.d.ts +5 -0
- package/dist/components/motion/popover-morph.d.ts.map +1 -1
- package/dist/components/motion/popover-morph.js +34 -8
- package/dist/components/motion/popover-morph.js.map +1 -1
- package/dist/components/motion/popover.d.ts +1 -0
- package/dist/components/motion/prediction-market-card.d.ts +37 -0
- package/dist/components/motion/prediction-market-card.d.ts.map +1 -0
- package/dist/components/motion/prediction-market-card.js +215 -0
- package/dist/components/motion/prediction-market-card.js.map +1 -0
- package/dist/components/motion/prediction-market.d.ts +49 -0
- package/dist/components/motion/prediction-market.d.ts.map +1 -0
- package/dist/components/motion/prediction-market.js +440 -0
- package/dist/components/motion/prediction-market.js.map +1 -0
- package/dist/components/motion/radio.d.ts +3 -1
- package/dist/components/motion/radio.d.ts.map +1 -1
- package/dist/components/motion/radio.js +17 -5
- package/dist/components/motion/radio.js.map +1 -1
- package/dist/components/motion/scroll-progress.d.ts +1 -0
- package/dist/components/motion/shader-background.d.ts +1 -0
- package/dist/components/motion/sortable-list.d.ts +54 -0
- package/dist/components/motion/sortable-list.d.ts.map +1 -0
- package/dist/components/motion/sortable-list.js +254 -0
- package/dist/components/motion/sortable-list.js.map +1 -0
- package/dist/components/motion/sortable-stack.d.ts +2 -0
- package/dist/components/motion/sortable-stack.js +2 -0
- package/dist/components/motion/swap/controls.d.ts +22 -0
- package/dist/components/motion/swap/controls.d.ts.map +1 -0
- package/dist/components/motion/swap/controls.js +167 -0
- package/dist/components/motion/swap/controls.js.map +1 -0
- package/dist/components/motion/swap/field.d.ts +14 -0
- package/dist/components/motion/swap/field.d.ts.map +1 -0
- package/dist/components/motion/swap/field.js +107 -0
- package/dist/components/motion/swap/field.js.map +1 -0
- package/dist/components/motion/swap/quote-row.d.ts +13 -0
- package/dist/components/motion/swap/quote-row.d.ts.map +1 -0
- package/dist/components/motion/swap/quote-row.js +55 -0
- package/dist/components/motion/swap/quote-row.js.map +1 -0
- package/dist/components/motion/swap/token-badges.d.ts +19 -0
- package/dist/components/motion/swap/token-badges.d.ts.map +1 -0
- package/dist/components/motion/swap/token-badges.js +54 -0
- package/dist/components/motion/swap/token-badges.js.map +1 -0
- package/dist/components/motion/swap/token-picker.d.ts +14 -0
- package/dist/components/motion/swap/token-picker.d.ts.map +1 -0
- package/dist/components/motion/swap/token-picker.js +190 -0
- package/dist/components/motion/swap/token-picker.js.map +1 -0
- package/dist/components/motion/swap.d.ts +14 -0
- package/dist/components/motion/swap.d.ts.map +1 -0
- package/dist/components/motion/swap.js +378 -0
- package/dist/components/motion/swap.js.map +1 -0
- package/dist/components/motion/tabs.d.ts +6 -9
- package/dist/components/motion/tabs.d.ts.map +1 -1
- package/dist/components/motion/tabs.js +13 -4
- package/dist/components/motion/tabs.js.map +1 -1
- package/dist/components/motion/text-reveal.d.ts +1 -0
- package/dist/components/motion/tooltip/positioner.d.ts +8 -26
- package/dist/components/motion/tooltip/positioner.d.ts.map +1 -1
- package/dist/components/motion/tooltip/positioner.js +1 -2
- package/dist/components/motion/tooltip.d.ts +62 -20
- package/dist/components/motion/tooltip.d.ts.map +1 -1
- package/dist/components/motion/tooltip.js +1 -135
- package/dist/components/motion/wallet-card/account-avatar.d.ts +8 -0
- package/dist/components/motion/wallet-card/account-avatar.d.ts.map +1 -0
- package/dist/components/motion/wallet-card/account-avatar.js +2 -0
- package/dist/components/motion/wallet-card/account-switcher.d.ts +14 -0
- package/dist/components/motion/wallet-card/account-switcher.d.ts.map +1 -0
- package/dist/components/motion/wallet-card/account-switcher.js +153 -0
- package/dist/components/motion/wallet-card/account-switcher.js.map +1 -0
- package/dist/components/motion/wallet-card/actions.d.ts +12 -0
- package/dist/components/motion/wallet-card/actions.d.ts.map +1 -0
- package/dist/components/motion/wallet-card/actions.js +58 -0
- package/dist/components/motion/wallet-card/actions.js.map +1 -0
- package/dist/components/motion/wallet-card/balance-delta.d.ts +12 -0
- package/dist/components/motion/wallet-card/balance-delta.d.ts.map +1 -0
- package/dist/components/motion/wallet-card/balance-delta.js +72 -0
- package/dist/components/motion/wallet-card/balance-delta.js.map +1 -0
- package/dist/components/motion/wallet-card/copy-button.d.ts +12 -0
- package/dist/components/motion/wallet-card/copy-button.d.ts.map +1 -0
- package/dist/components/motion/wallet-card/copy-button.js +41 -0
- package/dist/components/motion/wallet-card/copy-button.js.map +1 -0
- package/dist/components/motion/wallet-card/index.d.ts +13 -0
- package/dist/components/motion/wallet-card/index.d.ts.map +1 -0
- package/dist/components/motion/wallet-card/index.js +115 -0
- package/dist/components/motion/wallet-card/index.js.map +1 -0
- package/dist/components/motion/wallet-card/search-bar.d.ts +17 -0
- package/dist/components/motion/wallet-card/search-bar.d.ts.map +1 -0
- package/dist/components/motion/wallet-card/search-bar.js +156 -0
- package/dist/components/motion/wallet-card/search-bar.js.map +1 -0
- package/dist/components/reui/alert.d.ts +1 -1
- package/dist/components/reui/autocomplete.d.ts +1 -1
- package/dist/components/reui/autocomplete.d.ts.map +1 -1
- package/dist/components/reui/autocomplete.js.map +1 -1
- package/dist/components/reui/badge.d.ts +2 -2
- package/dist/components/reui/cascader/cascader-async.d.ts +3 -2
- package/dist/components/reui/cascader/cascader-async.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-async.js.map +1 -1
- package/dist/components/reui/cascader/cascader-columns.js +3 -3
- package/dist/components/reui/cascader/cascader-columns.js.map +1 -1
- package/dist/components/reui/cascader/cascader-context.d.ts +12 -4
- package/dist/components/reui/cascader/cascader-context.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-context.js.map +1 -1
- package/dist/components/reui/cascader/cascader-i18n.d.ts +1 -1
- package/dist/components/reui/cascader/cascader-item.d.ts +2 -2
- package/dist/components/reui/cascader/cascader-item.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-item.js +22 -16
- package/dist/components/reui/cascader/cascader-item.js.map +1 -1
- package/dist/components/reui/cascader/cascader-lib.d.ts +8 -1
- package/dist/components/reui/cascader/cascader-lib.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-lib.js +19 -11
- package/dist/components/reui/cascader/cascader-lib.js.map +1 -1
- package/dist/components/reui/cascader/cascader-nav.d.ts +1 -1
- package/dist/components/reui/cascader/cascader-nav.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader-nav.js +5 -4
- 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.map +1 -1
- package/dist/components/reui/cascader/cascader-virtual.js.map +1 -1
- package/dist/components/reui/cascader/cascader.d.ts +6 -2
- package/dist/components/reui/cascader/cascader.d.ts.map +1 -1
- package/dist/components/reui/cascader/cascader.js +58 -20
- package/dist/components/reui/cascader/cascader.js.map +1 -1
- package/dist/components/reui/color-picker.d.ts +280 -0
- package/dist/components/reui/color-picker.d.ts.map +1 -0
- package/dist/components/reui/color-picker.js +2013 -0
- package/dist/components/reui/color-picker.js.map +1 -0
- package/dist/components/reui/data-grid/data-grid-cell-selection.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-filter.js +2 -2
- 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.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-header.js +59 -33
- package/dist/components/reui/data-grid/data-grid-column-header.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-column-visibility.js +1 -1
- package/dist/components/reui/data-grid/data-grid-column-visibility.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid-pagination.js +2 -2
- 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.map +1 -1
- package/dist/components/reui/data-grid/data-grid-scroll-area.js +94 -64
- 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 +7 -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 +74 -41
- 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 +7 -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 +135 -32
- 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.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table-virtual.js +36 -42
- 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 +168 -5
- package/dist/components/reui/data-grid/data-grid-table.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid-table.js +354 -101
- package/dist/components/reui/data-grid/data-grid-table.js.map +1 -1
- package/dist/components/reui/data-grid/data-grid.d.ts +55 -0
- package/dist/components/reui/data-grid/data-grid.d.ts.map +1 -1
- package/dist/components/reui/data-grid/data-grid.js +114 -52
- package/dist/components/reui/data-grid/data-grid.js.map +1 -1
- package/dist/components/reui/date-selector.d.ts +1 -0
- package/dist/components/reui/date-selector.js +1 -1
- package/dist/components/reui/emoji-picker.d.ts +367 -0
- package/dist/components/reui/emoji-picker.d.ts.map +1 -0
- package/dist/components/reui/emoji-picker.js +1768 -0
- package/dist/components/reui/emoji-picker.js.map +1 -0
- package/dist/components/reui/event-calendar/event-calendar-i18n.d.ts.map +1 -1
- package/dist/components/reui/event-calendar/event-calendar-nav.js +1 -1
- package/dist/components/reui/file-type.d.ts +496 -0
- package/dist/components/reui/file-type.d.ts.map +1 -0
- package/dist/components/reui/file-type.js +964 -0
- package/dist/components/reui/file-type.js.map +1 -0
- package/dist/components/reui/filters/filters-advanced.d.ts +1 -0
- package/dist/components/reui/filters/filters-advanced.js +1 -1
- package/dist/components/reui/filters/filters-advanced.js.map +1 -1
- package/dist/components/reui/filters/filters-builder.d.ts +1 -1
- package/dist/components/reui/filters/filters-chip.d.ts +5 -1
- package/dist/components/reui/filters/filters-chip.d.ts.map +1 -1
- package/dist/components/reui/filters/filters-chip.js +1 -1
- package/dist/components/reui/filters/filters-lib.d.ts +1 -1
- package/dist/components/reui/filters/filters-lib.d.ts.map +1 -1
- package/dist/components/reui/frame.d.ts +2 -2
- package/dist/components/reui/frame.d.ts.map +1 -1
- package/dist/components/reui/frame.js.map +1 -1
- package/dist/components/reui/gantt/gantt-nav.js +1 -1
- package/dist/components/reui/icon-tile.d.ts +1 -1
- package/dist/components/reui/icon-tile.js +8 -7
- package/dist/components/reui/icon-tile.js.map +1 -1
- package/dist/components/reui/kanban.d.ts.map +1 -1
- package/dist/components/reui/kanban.js +1 -1
- package/dist/components/reui/kanban.js.map +1 -1
- package/dist/components/reui/number-field.d.ts +3 -3
- package/dist/components/reui/number-field.d.ts.map +1 -1
- package/dist/components/reui/number-field.js.map +1 -1
- package/dist/components/reui/rating.d.ts +1 -1
- package/dist/components/reui/scrollspy.d.ts +1 -0
- package/dist/components/reui/signature-pad.d.ts +160 -0
- package/dist/components/reui/signature-pad.d.ts.map +1 -0
- package/dist/components/reui/signature-pad.js +764 -0
- package/dist/components/reui/signature-pad.js.map +1 -0
- package/dist/components/reui/time-picker.d.ts +202 -0
- package/dist/components/reui/time-picker.d.ts.map +1 -0
- package/dist/components/reui/time-picker.js +1002 -0
- package/dist/components/reui/time-picker.js.map +1 -0
- package/dist/components/ui/attachment.d.ts +2 -2
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/bubble.d.ts +1 -1
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/command.d.ts.map +1 -1
- package/dist/components/ui/direction.js +1 -2
- package/dist/components/ui/empty.d.ts +1 -1
- package/dist/components/ui/field.js +1 -1
- package/dist/components/ui/input-group.d.ts +1 -1
- package/dist/components/ui/item.d.ts +3 -3
- package/dist/components/ui/message-scroller.d.ts.map +1 -1
- package/dist/components/ui/questionnaire.d.ts.map +1 -1
- package/dist/components/ui/sidebar.d.ts +2 -2
- package/dist/components/ui/sidebar.js +1 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/components/ui/toggle.d.ts +2 -2
- package/dist/constants-CsKm9sSk.js +30 -0
- package/dist/constants-CsKm9sSk.js.map +1 -0
- package/dist/context-3_vY1jbv.js +141 -0
- package/dist/context-3_vY1jbv.js.map +1 -0
- package/dist/context-BE60udRT.js +99 -0
- package/dist/context-BE60udRT.js.map +1 -0
- package/dist/context-BYXeJQnz.d.ts +150 -0
- package/dist/context-BYXeJQnz.d.ts.map +1 -0
- package/dist/context-Bc6VC1HA.js +181 -0
- package/dist/context-Bc6VC1HA.js.map +1 -0
- package/dist/context-BqjZ1Z_w.js +111 -0
- package/dist/context-BqjZ1Z_w.js.map +1 -0
- package/dist/context-CZfRKkcZ.js +204 -0
- package/dist/context-CZfRKkcZ.js.map +1 -0
- package/dist/context-Cn-00gfW.js +169 -0
- package/dist/context-Cn-00gfW.js.map +1 -0
- package/dist/context-Cnlo53sV.d.ts +92 -0
- package/dist/context-Cnlo53sV.d.ts.map +1 -0
- package/dist/context-Rl5VCYA8.js +257 -0
- package/dist/context-Rl5VCYA8.js.map +1 -0
- package/dist/context-sD8DQga-.js +122 -0
- package/dist/context-sD8DQga-.js.map +1 -0
- package/dist/context-tTdLKYNf.js +99 -0
- package/dist/context-tTdLKYNf.js.map +1 -0
- package/dist/{copy-menu-C5GaT4Z-.js → copy-menu-BXUh52bu.js} +2 -2
- package/dist/{copy-menu-C5GaT4Z-.js.map → copy-menu-BXUh52bu.js.map} +1 -1
- package/dist/ease-B82HVmio.d.ts +50 -0
- package/dist/ease-B82HVmio.d.ts.map +1 -0
- package/dist/hooks/use-copy-to-clipboard.d.ts +1 -0
- package/dist/hooks/use-hover-gesture.d.ts +1 -0
- package/dist/hooks/use-intersection-observer.d.ts +1 -0
- package/dist/hooks/use-modal-scope.d.ts +6 -0
- package/dist/hooks/use-modal-scope.d.ts.map +1 -0
- package/dist/hooks/use-modal-scope.js +83 -0
- package/dist/hooks/use-modal-scope.js.map +1 -0
- package/dist/hooks/use-scroll-position.d.ts +1 -0
- package/dist/hooks/use-slider-input.d.ts +1 -0
- package/dist/hooks/use-viewport.d.ts +1 -0
- package/dist/lib/ease.d.ts +2 -49
- package/dist/lib/tick-sound.d.ts +1 -0
- package/dist/model-DlbIqCZg.d.ts +41 -0
- package/dist/model-DlbIqCZg.d.ts.map +1 -0
- package/dist/model-NSIg2p7a.d.ts +20 -0
- package/dist/model-NSIg2p7a.d.ts.map +1 -0
- package/dist/model-_mRyI6V9.d.ts +18 -0
- package/dist/model-_mRyI6V9.d.ts.map +1 -0
- package/dist/plot-CdFTbMI_.js +131 -0
- package/dist/plot-CdFTbMI_.js.map +1 -0
- package/dist/{positioner-3mCqiebN.js → positioner-3r3cfkqT.js} +97 -33
- package/dist/positioner-3r3cfkqT.js.map +1 -0
- package/dist/tooltip-Bam5KeYe.js +535 -0
- package/dist/tooltip-Bam5KeYe.js.map +1 -0
- package/dist/tooltip-BarafYiU.d.ts +67 -0
- package/dist/tooltip-BarafYiU.d.ts.map +1 -0
- package/dist/tooltip-BqxVD6D-.d.ts +64 -0
- package/dist/tooltip-BqxVD6D-.d.ts.map +1 -0
- package/dist/tooltip-C01qUgsW.d.ts +133 -0
- package/dist/tooltip-C01qUgsW.d.ts.map +1 -0
- package/dist/tooltip-C6qUs7px.d.ts +36 -0
- package/dist/tooltip-C6qUs7px.d.ts.map +1 -0
- package/dist/tooltip-DQ4DXgeu.d.ts +94 -0
- package/dist/tooltip-DQ4DXgeu.d.ts.map +1 -0
- package/dist/types-B_6p3LXz.d.ts +36 -0
- package/dist/types-B_6p3LXz.d.ts.map +1 -0
- package/dist/types-D6e3gWOA.d.ts +22 -0
- package/dist/types-D6e3gWOA.d.ts.map +1 -0
- package/dist/use-geometry-CH0foIo7.d.ts +9 -0
- package/dist/use-geometry-CH0foIo7.d.ts.map +1 -0
- package/dist/use-position-DOi1gVL0.d.ts +32 -0
- package/dist/use-position-DOi1gVL0.d.ts.map +1 -0
- package/dist/utils-B3YXTsDI.js +26 -0
- package/dist/utils-B3YXTsDI.js.map +1 -0
- package/package.json +12 -12
- package/dist/cascader-types-BnH6wYD-.d.ts.map +0 -1
- package/dist/components/motion/tooltip.js.map +0 -1
- package/dist/lib/ease.d.ts.map +0 -1
- package/dist/positioner-3mCqiebN.js.map +0 -1
|
@@ -0,0 +1,952 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { EASE_OUT } from "../../lib/ease.js";
|
|
3
|
+
import { useMemo, useState } from "react";
|
|
4
|
+
import { cn } from "@kumix/utils";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import { motion, useReducedMotion } from "motion/react";
|
|
7
|
+
import { ChevronLeft, ChevronRight, Shield } from "lucide-react";
|
|
8
|
+
//#region src/components/motion/knockout-bracket.tsx
|
|
9
|
+
const CARD_W = 250;
|
|
10
|
+
const CARD_H = 124;
|
|
11
|
+
const GAP_X = 40;
|
|
12
|
+
const COL_W = 290;
|
|
13
|
+
const ROW = 144;
|
|
14
|
+
const VISIBLE_COLS = 3;
|
|
15
|
+
const CONNECTOR_POCKET = 20;
|
|
16
|
+
const CONNECTOR_STEM = 20;
|
|
17
|
+
const HEADER_H = 44;
|
|
18
|
+
const PAD_X = 8;
|
|
19
|
+
const PAD_Y = 12;
|
|
20
|
+
const REFLOW = {
|
|
21
|
+
type: "spring",
|
|
22
|
+
stiffness: 260,
|
|
23
|
+
damping: 32,
|
|
24
|
+
mass: .9
|
|
25
|
+
};
|
|
26
|
+
const REFLOW_OPACITY = {
|
|
27
|
+
duration: .28,
|
|
28
|
+
ease: EASE_OUT
|
|
29
|
+
};
|
|
30
|
+
const clamp = (n, lo, hi) => Math.min(hi, Math.max(lo, n));
|
|
31
|
+
const colX = (r, page) => PAD_X + (r - page) * COL_W;
|
|
32
|
+
const isInWindow = (r, page, visibleCols) => r >= page && r < page + visibleCols;
|
|
33
|
+
function BracketConnector({ connector, transition }) {
|
|
34
|
+
const { x, y, height, visible } = connector;
|
|
35
|
+
const geo = visible ? transition : {
|
|
36
|
+
...transition,
|
|
37
|
+
x: { duration: 0 },
|
|
38
|
+
y: { duration: 0 },
|
|
39
|
+
height: { duration: 0 }
|
|
40
|
+
};
|
|
41
|
+
return /* @__PURE__ */ jsx(motion.div, {
|
|
42
|
+
"aria-hidden": "true",
|
|
43
|
+
initial: false,
|
|
44
|
+
animate: {
|
|
45
|
+
x,
|
|
46
|
+
y,
|
|
47
|
+
height,
|
|
48
|
+
opacity: visible ? 1 : 0
|
|
49
|
+
},
|
|
50
|
+
transition: geo,
|
|
51
|
+
className: "pointer-events-none absolute top-0 left-0 rounded-r-xl border-border border-y border-r",
|
|
52
|
+
style: {
|
|
53
|
+
width: CONNECTOR_POCKET,
|
|
54
|
+
willChange: "transform"
|
|
55
|
+
},
|
|
56
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
57
|
+
className: "absolute top-1/2 left-full h-px bg-border",
|
|
58
|
+
style: { width: CONNECTOR_STEM }
|
|
59
|
+
})
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/** A `logo` is used as given; a country `code` loads a flag from flagcdn.com. */
|
|
63
|
+
const crestSrc = (team) => team.logo ?? (team.code ? `https://flagcdn.com/w80/${team.code}.png` : null);
|
|
64
|
+
/** Two-letter stand-in when a team has no artwork — "Real Madrid" → RM.
|
|
65
|
+
* Spread, not `word[0]`: an emoji or astral first character is a surrogate pair
|
|
66
|
+
* and indexing it renders a replacement glyph. */
|
|
67
|
+
const initials = (name) => name.split(/\s+/).slice(0, 2).map((word) => [...word][0]).join("").toUpperCase();
|
|
68
|
+
function TeamCrest({ team }) {
|
|
69
|
+
const [failedSrc, setFailedSrc] = useState(null);
|
|
70
|
+
const resolved = team ? crestSrc(team) : null;
|
|
71
|
+
const src = resolved === failedSrc ? null : resolved;
|
|
72
|
+
return /* @__PURE__ */ jsx("span", {
|
|
73
|
+
className: "flex h-5 w-7 shrink-0 items-center justify-center",
|
|
74
|
+
children: src ? /* @__PURE__ */ jsx("img", {
|
|
75
|
+
src,
|
|
76
|
+
alt: "",
|
|
77
|
+
loading: "lazy",
|
|
78
|
+
draggable: false,
|
|
79
|
+
onError: () => setFailedSrc(src),
|
|
80
|
+
className: cn("shrink-0 rounded-[4px] border border-border/40", team?.logo ? "h-5 w-5 border-transparent object-contain" : "h-5 w-7 object-cover")
|
|
81
|
+
}) : team ? /* @__PURE__ */ jsx("span", {
|
|
82
|
+
className: "grid size-5 place-items-center rounded-full bg-foreground/10 font-semibold text-[10px] text-foreground leading-none",
|
|
83
|
+
children: initials(team.name)
|
|
84
|
+
}) : /* @__PURE__ */ jsx(Shield, { className: "size-5 fill-current text-muted-foreground/50" })
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function WinnerMarker() {
|
|
88
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
89
|
+
viewBox: "0 0 6 8",
|
|
90
|
+
"aria-hidden": "true",
|
|
91
|
+
className: "h-2 w-1.5 shrink-0 fill-foreground",
|
|
92
|
+
children: /* @__PURE__ */ jsx("path", { d: "M6 0 0 4 6 8Z" })
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
function TeamRow({ side, isWinner, decided }) {
|
|
96
|
+
const dim = decided && !isWinner;
|
|
97
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
98
|
+
className: "flex items-center gap-3",
|
|
99
|
+
children: [
|
|
100
|
+
/* @__PURE__ */ jsx(TeamCrest, { team: side.team }),
|
|
101
|
+
/* @__PURE__ */ jsx("span", {
|
|
102
|
+
className: cn("min-w-0 flex-1 truncate font-medium text-base", dim && "text-muted-foreground"),
|
|
103
|
+
children: side.team?.name ?? "TBD"
|
|
104
|
+
}),
|
|
105
|
+
side.score != null && /* @__PURE__ */ jsx("span", {
|
|
106
|
+
className: cn("shrink-0 font-medium text-base tabular-nums", dim && "text-muted-foreground"),
|
|
107
|
+
children: side.penalties != null ? `${side.score} (${side.penalties})` : side.score
|
|
108
|
+
}),
|
|
109
|
+
/* @__PURE__ */ jsx("span", {
|
|
110
|
+
className: "flex w-1.5 shrink-0 items-center",
|
|
111
|
+
children: isWinner && /* @__PURE__ */ jsx(WinnerMarker, {})
|
|
112
|
+
})
|
|
113
|
+
]
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
function sideLabel(side) {
|
|
117
|
+
const name = side.team?.name ?? "TBD";
|
|
118
|
+
if (side.score == null) return name;
|
|
119
|
+
const pen = side.penalties != null ? ` (${side.penalties} on penalties)` : "";
|
|
120
|
+
return `${name} ${side.score}${pen}`;
|
|
121
|
+
}
|
|
122
|
+
/** `status` is optional, so a decided match reads as finished without it. */
|
|
123
|
+
const isFinished = (m) => m.status ? m.status === "finished" : m.winner != null;
|
|
124
|
+
function matchLabel(roundName, m) {
|
|
125
|
+
const finished = isFinished(m);
|
|
126
|
+
const sides = finished ? `${sideLabel(m.home)}, ${sideLabel(m.away)}` : `${sideLabel(m.home)} versus ${sideLabel(m.away)}`;
|
|
127
|
+
const schedule = finished ? [] : [m.date, m.time].filter(Boolean);
|
|
128
|
+
const when = schedule.length ? `, ${schedule.join(", ")}` : "";
|
|
129
|
+
const winnerName = m.winner ? m[m.winner].team?.name : void 0;
|
|
130
|
+
return `${roundName}: ${sides}${when}${winnerName ? `, ${winnerName} won` : ""}`;
|
|
131
|
+
}
|
|
132
|
+
function MatchCard({ match }) {
|
|
133
|
+
const finished = isFinished(match);
|
|
134
|
+
const decided = finished && match.winner != null;
|
|
135
|
+
const shootout = match.home.penalties != null || match.away.penalties != null;
|
|
136
|
+
const badge = match.badge ?? (finished ? shootout ? "FT (P)" : "FT" : null);
|
|
137
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
138
|
+
style: {
|
|
139
|
+
width: CARD_W,
|
|
140
|
+
height: CARD_H
|
|
141
|
+
},
|
|
142
|
+
className: "rounded-2xl border border-border bg-card p-4",
|
|
143
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
144
|
+
className: "mb-3 flex h-5 items-center justify-between gap-2",
|
|
145
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
146
|
+
className: "min-w-0 flex-1 truncate text-muted-foreground text-sm leading-5",
|
|
147
|
+
children: [match.date, match.time].filter(Boolean).join(", ")
|
|
148
|
+
}), badge && /* @__PURE__ */ jsx("span", {
|
|
149
|
+
className: "shrink-0 rounded-full bg-background px-2.5 font-medium text-muted-foreground text-xs leading-5",
|
|
150
|
+
children: badge
|
|
151
|
+
})]
|
|
152
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
153
|
+
className: "space-y-2.5",
|
|
154
|
+
children: [/* @__PURE__ */ jsx(TeamRow, {
|
|
155
|
+
side: match.home,
|
|
156
|
+
decided,
|
|
157
|
+
isWinner: decided && match.winner === "home"
|
|
158
|
+
}), /* @__PURE__ */ jsx(TeamRow, {
|
|
159
|
+
side: match.away,
|
|
160
|
+
decided,
|
|
161
|
+
isWinner: decided && match.winner === "away"
|
|
162
|
+
})]
|
|
163
|
+
})]
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
function KnockoutBracket({ rounds, initialRound = 1, thirdPlace, thirdPlaceLabel = "Third place play-off", className }) {
|
|
167
|
+
const reduce = useReducedMotion();
|
|
168
|
+
const visibleCols = Math.min(VISIBLE_COLS, rounds.length);
|
|
169
|
+
const maxPage = Math.max(0, rounds.length - Math.min(2, rounds.length));
|
|
170
|
+
const [page, setPage] = useState(() => clamp(initialRound, 0, maxPage));
|
|
171
|
+
const transition = reduce ? { duration: 0 } : {
|
|
172
|
+
...REFLOW,
|
|
173
|
+
opacity: REFLOW_OPACITY
|
|
174
|
+
};
|
|
175
|
+
const pageStatus = useMemo(() => {
|
|
176
|
+
const names = rounds.slice(page, page + visibleCols).map((round) => round.name);
|
|
177
|
+
if (names.length <= 1) return `Showing ${names[0] ?? "rounds"}`;
|
|
178
|
+
if (names.length === 2) return `Showing ${names[0]} and ${names[1]}`;
|
|
179
|
+
return `Showing ${names.slice(0, -1).join(", ")}, and ${names.at(-1)}`;
|
|
180
|
+
}, [
|
|
181
|
+
rounds,
|
|
182
|
+
page,
|
|
183
|
+
visibleCols
|
|
184
|
+
]);
|
|
185
|
+
const { cy, containerHeight, connectors } = useMemo(() => {
|
|
186
|
+
const centers = new Array(rounds.length);
|
|
187
|
+
const base = rounds[page];
|
|
188
|
+
centers[page] = base.matches.map((_, i) => PAD_Y + i * ROW + CARD_H / 2);
|
|
189
|
+
for (let r = page + 1; r < rounds.length; r++) {
|
|
190
|
+
const feeders = centers[r - 1];
|
|
191
|
+
const row = [];
|
|
192
|
+
for (let k = 0; k < rounds[r].matches.length; k++) {
|
|
193
|
+
const top = feeders[2 * k];
|
|
194
|
+
if (top == null) {
|
|
195
|
+
const prev = row[k - 1];
|
|
196
|
+
row[k] = prev == null ? 74 : prev + ROW;
|
|
197
|
+
} else row[k] = (top + (feeders[2 * k + 1] ?? top)) / 2;
|
|
198
|
+
}
|
|
199
|
+
centers[r] = row;
|
|
200
|
+
}
|
|
201
|
+
for (let r = page - 1; r >= 0; r--) {
|
|
202
|
+
const half = ROW / 2 ** (page - r + 1);
|
|
203
|
+
centers[r] = rounds[r].matches.map((_, i) => {
|
|
204
|
+
return (centers[r + 1][Math.floor(i / 2)] ?? PAD_Y) + (i % 2 === 0 ? -half : half);
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
const list = [];
|
|
208
|
+
for (let r = 1; r < rounds.length; r++) {
|
|
209
|
+
const feederRight = colX(r - 1, page) + CARD_W;
|
|
210
|
+
const visible = isInWindow(r, page, visibleCols) && isInWindow(r - 1, page, visibleCols);
|
|
211
|
+
rounds[r].matches.forEach((_, k) => {
|
|
212
|
+
const yTop = centers[r - 1][2 * k] ?? centers[r][k];
|
|
213
|
+
const yBot = centers[r - 1][2 * k + 1] ?? yTop;
|
|
214
|
+
list.push({
|
|
215
|
+
key: `${r}-${k}`,
|
|
216
|
+
x: feederRight,
|
|
217
|
+
y: yTop,
|
|
218
|
+
height: Math.max(0, yBot - yTop),
|
|
219
|
+
visible
|
|
220
|
+
});
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
return {
|
|
224
|
+
cy: centers,
|
|
225
|
+
containerHeight: Math.max(74, ...centers.slice(page, page + visibleCols).flat()) + CARD_H / 2 + PAD_Y,
|
|
226
|
+
connectors: list
|
|
227
|
+
};
|
|
228
|
+
}, [
|
|
229
|
+
rounds,
|
|
230
|
+
page,
|
|
231
|
+
visibleCols
|
|
232
|
+
]);
|
|
233
|
+
const containerWidth = visibleCols * CARD_W + (visibleCols - 1) * GAP_X + 16;
|
|
234
|
+
return /* @__PURE__ */ jsx("div", {
|
|
235
|
+
className: cn("w-full max-w-full overflow-x-auto overscroll-x-contain", className),
|
|
236
|
+
children: /* @__PURE__ */ jsxs("section", {
|
|
237
|
+
"aria-label": "Tournament bracket",
|
|
238
|
+
className: "relative mx-auto",
|
|
239
|
+
style: { width: containerWidth },
|
|
240
|
+
children: [
|
|
241
|
+
/* @__PURE__ */ jsx("div", {
|
|
242
|
+
className: "sr-only",
|
|
243
|
+
"aria-live": "polite",
|
|
244
|
+
children: pageStatus
|
|
245
|
+
}),
|
|
246
|
+
/* @__PURE__ */ jsxs("div", {
|
|
247
|
+
className: "relative",
|
|
248
|
+
style: { height: HEADER_H },
|
|
249
|
+
children: [
|
|
250
|
+
/* @__PURE__ */ jsx("div", {
|
|
251
|
+
className: "absolute inset-0 overflow-hidden",
|
|
252
|
+
children: rounds.map((round, r) => /* @__PURE__ */ jsx(motion.div, {
|
|
253
|
+
"aria-hidden": isInWindow(r, page, visibleCols) ? void 0 : true,
|
|
254
|
+
initial: false,
|
|
255
|
+
animate: {
|
|
256
|
+
x: colX(r, page),
|
|
257
|
+
opacity: isInWindow(r, page, visibleCols) ? 1 : 0
|
|
258
|
+
},
|
|
259
|
+
transition,
|
|
260
|
+
className: "absolute top-0 left-0 flex h-full items-center justify-center font-bold text-foreground text-sm",
|
|
261
|
+
style: { width: CARD_W },
|
|
262
|
+
children: round.name
|
|
263
|
+
}, round.name))
|
|
264
|
+
}),
|
|
265
|
+
page > 0 && /* @__PURE__ */ jsx("button", {
|
|
266
|
+
type: "button",
|
|
267
|
+
onClick: () => setPage((p) => clamp(p - 1, 0, maxPage)),
|
|
268
|
+
"aria-label": "Previous round",
|
|
269
|
+
style: { left: PAD_X },
|
|
270
|
+
className: "group absolute top-1/2 z-10 grid size-11 -translate-y-1/2 place-items-center rounded-full outline-none",
|
|
271
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
272
|
+
className: "grid size-9 place-items-center rounded-full text-muted-foreground transition-colors group-hover:bg-foreground/10 group-hover:text-foreground group-focus-visible:ring-2 group-focus-visible:ring-ring",
|
|
273
|
+
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "size-5" })
|
|
274
|
+
})
|
|
275
|
+
}),
|
|
276
|
+
page < maxPage && /* @__PURE__ */ jsx("button", {
|
|
277
|
+
type: "button",
|
|
278
|
+
onClick: () => setPage((p) => clamp(p + 1, 0, maxPage)),
|
|
279
|
+
"aria-label": "Next round",
|
|
280
|
+
style: { right: PAD_X },
|
|
281
|
+
className: "group absolute top-1/2 z-10 grid size-11 -translate-y-1/2 place-items-center rounded-full outline-none",
|
|
282
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
283
|
+
className: "grid size-9 place-items-center rounded-full text-muted-foreground transition-colors group-hover:bg-foreground/10 group-hover:text-foreground group-focus-visible:ring-2 group-focus-visible:ring-ring",
|
|
284
|
+
children: /* @__PURE__ */ jsx(ChevronRight, { className: "size-5" })
|
|
285
|
+
})
|
|
286
|
+
})
|
|
287
|
+
]
|
|
288
|
+
}),
|
|
289
|
+
/* @__PURE__ */ jsxs(motion.div, {
|
|
290
|
+
className: "relative overflow-hidden",
|
|
291
|
+
initial: false,
|
|
292
|
+
animate: { height: containerHeight },
|
|
293
|
+
transition,
|
|
294
|
+
style: { width: containerWidth },
|
|
295
|
+
children: [connectors.map((c) => /* @__PURE__ */ jsx(BracketConnector, {
|
|
296
|
+
connector: c,
|
|
297
|
+
transition
|
|
298
|
+
}, c.key)), rounds.map((round, r) => {
|
|
299
|
+
const roundVisible = isInWindow(r, page, visibleCols);
|
|
300
|
+
return /* @__PURE__ */ jsx("ul", {
|
|
301
|
+
"aria-label": round.name,
|
|
302
|
+
"aria-hidden": roundVisible ? void 0 : true,
|
|
303
|
+
className: "m-0 list-none p-0",
|
|
304
|
+
children: round.matches.map((match, k) => /* @__PURE__ */ jsx(motion.li, {
|
|
305
|
+
"aria-label": matchLabel(round.name, match),
|
|
306
|
+
initial: false,
|
|
307
|
+
animate: {
|
|
308
|
+
x: colX(r, page),
|
|
309
|
+
y: cy[r][k] - CARD_H / 2,
|
|
310
|
+
opacity: roundVisible ? 1 : 0
|
|
311
|
+
},
|
|
312
|
+
transition,
|
|
313
|
+
className: "absolute top-0 left-0",
|
|
314
|
+
style: { willChange: "transform" },
|
|
315
|
+
children: /* @__PURE__ */ jsx(MatchCard, { match })
|
|
316
|
+
}, match.id))
|
|
317
|
+
}, round.name);
|
|
318
|
+
})]
|
|
319
|
+
}),
|
|
320
|
+
thirdPlace && /* @__PURE__ */ jsx("div", {
|
|
321
|
+
className: "mt-8 border-border border-t pt-6",
|
|
322
|
+
style: { paddingLeft: PAD_X },
|
|
323
|
+
children: /* @__PURE__ */ jsx("ul", {
|
|
324
|
+
"aria-label": thirdPlaceLabel,
|
|
325
|
+
className: "m-0 list-none p-0",
|
|
326
|
+
children: /* @__PURE__ */ jsxs("li", {
|
|
327
|
+
"aria-label": matchLabel(thirdPlaceLabel, thirdPlace),
|
|
328
|
+
children: [/* @__PURE__ */ jsx("p", {
|
|
329
|
+
className: "mb-2 text-muted-foreground/70 text-sm leading-5",
|
|
330
|
+
children: thirdPlaceLabel
|
|
331
|
+
}), /* @__PURE__ */ jsx(MatchCard, { match: thirdPlace })]
|
|
332
|
+
})
|
|
333
|
+
})
|
|
334
|
+
})
|
|
335
|
+
]
|
|
336
|
+
})
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
const TEAMS = {
|
|
340
|
+
southAfrica: {
|
|
341
|
+
name: "South Africa",
|
|
342
|
+
code: "za"
|
|
343
|
+
},
|
|
344
|
+
canada: {
|
|
345
|
+
name: "Canada",
|
|
346
|
+
code: "ca"
|
|
347
|
+
},
|
|
348
|
+
netherlands: {
|
|
349
|
+
name: "Netherlands",
|
|
350
|
+
code: "nl"
|
|
351
|
+
},
|
|
352
|
+
morocco: {
|
|
353
|
+
name: "Morocco",
|
|
354
|
+
code: "ma"
|
|
355
|
+
},
|
|
356
|
+
germany: {
|
|
357
|
+
name: "Germany",
|
|
358
|
+
code: "de"
|
|
359
|
+
},
|
|
360
|
+
paraguay: {
|
|
361
|
+
name: "Paraguay",
|
|
362
|
+
code: "py"
|
|
363
|
+
},
|
|
364
|
+
france: {
|
|
365
|
+
name: "France",
|
|
366
|
+
code: "fr"
|
|
367
|
+
},
|
|
368
|
+
sweden: {
|
|
369
|
+
name: "Sweden",
|
|
370
|
+
code: "se"
|
|
371
|
+
},
|
|
372
|
+
belgium: {
|
|
373
|
+
name: "Belgium",
|
|
374
|
+
code: "be"
|
|
375
|
+
},
|
|
376
|
+
senegal: {
|
|
377
|
+
name: "Senegal",
|
|
378
|
+
code: "sn"
|
|
379
|
+
},
|
|
380
|
+
usa: {
|
|
381
|
+
name: "USA",
|
|
382
|
+
code: "us"
|
|
383
|
+
},
|
|
384
|
+
bosnia: {
|
|
385
|
+
name: "Bosnia and Herzegovina",
|
|
386
|
+
code: "ba"
|
|
387
|
+
},
|
|
388
|
+
spain: {
|
|
389
|
+
name: "Spain",
|
|
390
|
+
code: "es"
|
|
391
|
+
},
|
|
392
|
+
austria: {
|
|
393
|
+
name: "Austria",
|
|
394
|
+
code: "at"
|
|
395
|
+
},
|
|
396
|
+
portugal: {
|
|
397
|
+
name: "Portugal",
|
|
398
|
+
code: "pt"
|
|
399
|
+
},
|
|
400
|
+
croatia: {
|
|
401
|
+
name: "Croatia",
|
|
402
|
+
code: "hr"
|
|
403
|
+
},
|
|
404
|
+
brazil: {
|
|
405
|
+
name: "Brazil",
|
|
406
|
+
code: "br"
|
|
407
|
+
},
|
|
408
|
+
japan: {
|
|
409
|
+
name: "Japan",
|
|
410
|
+
code: "jp"
|
|
411
|
+
},
|
|
412
|
+
ivoryCoast: {
|
|
413
|
+
name: "Côte d'Ivoire",
|
|
414
|
+
code: "ci"
|
|
415
|
+
},
|
|
416
|
+
norway: {
|
|
417
|
+
name: "Norway",
|
|
418
|
+
code: "no"
|
|
419
|
+
},
|
|
420
|
+
mexico: {
|
|
421
|
+
name: "Mexico",
|
|
422
|
+
code: "mx"
|
|
423
|
+
},
|
|
424
|
+
ecuador: {
|
|
425
|
+
name: "Ecuador",
|
|
426
|
+
code: "ec"
|
|
427
|
+
},
|
|
428
|
+
england: {
|
|
429
|
+
name: "England",
|
|
430
|
+
code: "gb-eng"
|
|
431
|
+
},
|
|
432
|
+
drCongo: {
|
|
433
|
+
name: "DR Congo",
|
|
434
|
+
code: "cd"
|
|
435
|
+
},
|
|
436
|
+
switzerland: {
|
|
437
|
+
name: "Switzerland",
|
|
438
|
+
code: "ch"
|
|
439
|
+
},
|
|
440
|
+
algeria: {
|
|
441
|
+
name: "Algeria",
|
|
442
|
+
code: "dz"
|
|
443
|
+
},
|
|
444
|
+
colombia: {
|
|
445
|
+
name: "Colombia",
|
|
446
|
+
code: "co"
|
|
447
|
+
},
|
|
448
|
+
ghana: {
|
|
449
|
+
name: "Ghana",
|
|
450
|
+
code: "gh"
|
|
451
|
+
},
|
|
452
|
+
australia: {
|
|
453
|
+
name: "Australia",
|
|
454
|
+
code: "au"
|
|
455
|
+
},
|
|
456
|
+
egypt: {
|
|
457
|
+
name: "Egypt",
|
|
458
|
+
code: "eg"
|
|
459
|
+
},
|
|
460
|
+
argentina: {
|
|
461
|
+
name: "Argentina",
|
|
462
|
+
code: "ar"
|
|
463
|
+
},
|
|
464
|
+
caboVerde: {
|
|
465
|
+
name: "Cabo Verde",
|
|
466
|
+
code: "cv"
|
|
467
|
+
}
|
|
468
|
+
};
|
|
469
|
+
const ROUNDS = [
|
|
470
|
+
{
|
|
471
|
+
name: "Round of 32",
|
|
472
|
+
matches: [
|
|
473
|
+
{
|
|
474
|
+
id: "r32-1",
|
|
475
|
+
date: "Mon, 29 Jun",
|
|
476
|
+
status: "finished",
|
|
477
|
+
home: {
|
|
478
|
+
team: TEAMS.southAfrica,
|
|
479
|
+
score: 0
|
|
480
|
+
},
|
|
481
|
+
away: {
|
|
482
|
+
team: TEAMS.canada,
|
|
483
|
+
score: 1
|
|
484
|
+
},
|
|
485
|
+
winner: "away"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
id: "r32-2",
|
|
489
|
+
date: "Tue, 30 Jun",
|
|
490
|
+
status: "finished",
|
|
491
|
+
home: {
|
|
492
|
+
team: TEAMS.netherlands,
|
|
493
|
+
score: 1,
|
|
494
|
+
penalties: 2
|
|
495
|
+
},
|
|
496
|
+
away: {
|
|
497
|
+
team: TEAMS.morocco,
|
|
498
|
+
score: 1,
|
|
499
|
+
penalties: 3
|
|
500
|
+
},
|
|
501
|
+
winner: "away"
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
id: "r32-3",
|
|
505
|
+
date: "Tue, 30 Jun",
|
|
506
|
+
status: "finished",
|
|
507
|
+
home: {
|
|
508
|
+
team: TEAMS.germany,
|
|
509
|
+
score: 1,
|
|
510
|
+
penalties: 3
|
|
511
|
+
},
|
|
512
|
+
away: {
|
|
513
|
+
team: TEAMS.paraguay,
|
|
514
|
+
score: 1,
|
|
515
|
+
penalties: 4
|
|
516
|
+
},
|
|
517
|
+
winner: "away"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
id: "r32-4",
|
|
521
|
+
date: "Wed, 1 Jul",
|
|
522
|
+
status: "finished",
|
|
523
|
+
home: {
|
|
524
|
+
team: TEAMS.france,
|
|
525
|
+
score: 3
|
|
526
|
+
},
|
|
527
|
+
away: {
|
|
528
|
+
team: TEAMS.sweden,
|
|
529
|
+
score: 0
|
|
530
|
+
},
|
|
531
|
+
winner: "home"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
id: "r32-5",
|
|
535
|
+
date: "Thu, 2 Jul",
|
|
536
|
+
status: "finished",
|
|
537
|
+
home: {
|
|
538
|
+
team: TEAMS.belgium,
|
|
539
|
+
score: 3
|
|
540
|
+
},
|
|
541
|
+
away: {
|
|
542
|
+
team: TEAMS.senegal,
|
|
543
|
+
score: 2
|
|
544
|
+
},
|
|
545
|
+
winner: "home"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
id: "r32-6",
|
|
549
|
+
date: "Thu, 2 Jul",
|
|
550
|
+
status: "finished",
|
|
551
|
+
home: {
|
|
552
|
+
team: TEAMS.usa,
|
|
553
|
+
score: 2
|
|
554
|
+
},
|
|
555
|
+
away: {
|
|
556
|
+
team: TEAMS.bosnia,
|
|
557
|
+
score: 0
|
|
558
|
+
},
|
|
559
|
+
winner: "home"
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
id: "r32-7",
|
|
563
|
+
date: "Fri, 3 Jul",
|
|
564
|
+
status: "finished",
|
|
565
|
+
home: {
|
|
566
|
+
team: TEAMS.spain,
|
|
567
|
+
score: 3
|
|
568
|
+
},
|
|
569
|
+
away: {
|
|
570
|
+
team: TEAMS.austria,
|
|
571
|
+
score: 0
|
|
572
|
+
},
|
|
573
|
+
winner: "home"
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
id: "r32-8",
|
|
577
|
+
date: "Fri, 3 Jul",
|
|
578
|
+
status: "finished",
|
|
579
|
+
home: {
|
|
580
|
+
team: TEAMS.portugal,
|
|
581
|
+
score: 2
|
|
582
|
+
},
|
|
583
|
+
away: {
|
|
584
|
+
team: TEAMS.croatia,
|
|
585
|
+
score: 1
|
|
586
|
+
},
|
|
587
|
+
winner: "home"
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
id: "r32-9",
|
|
591
|
+
date: "Mon, 29 Jun",
|
|
592
|
+
status: "finished",
|
|
593
|
+
home: {
|
|
594
|
+
team: TEAMS.brazil,
|
|
595
|
+
score: 2
|
|
596
|
+
},
|
|
597
|
+
away: {
|
|
598
|
+
team: TEAMS.japan,
|
|
599
|
+
score: 1
|
|
600
|
+
},
|
|
601
|
+
winner: "home"
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
id: "r32-10",
|
|
605
|
+
date: "Tue, 30 Jun",
|
|
606
|
+
status: "finished",
|
|
607
|
+
home: {
|
|
608
|
+
team: TEAMS.ivoryCoast,
|
|
609
|
+
score: 1
|
|
610
|
+
},
|
|
611
|
+
away: {
|
|
612
|
+
team: TEAMS.norway,
|
|
613
|
+
score: 2
|
|
614
|
+
},
|
|
615
|
+
winner: "away"
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
id: "r32-11",
|
|
619
|
+
date: "Wed, 1 Jul",
|
|
620
|
+
status: "finished",
|
|
621
|
+
home: {
|
|
622
|
+
team: TEAMS.mexico,
|
|
623
|
+
score: 2
|
|
624
|
+
},
|
|
625
|
+
away: {
|
|
626
|
+
team: TEAMS.ecuador,
|
|
627
|
+
score: 0
|
|
628
|
+
},
|
|
629
|
+
winner: "home"
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
id: "r32-12",
|
|
633
|
+
date: "Wed, 1 Jul",
|
|
634
|
+
status: "finished",
|
|
635
|
+
home: {
|
|
636
|
+
team: TEAMS.england,
|
|
637
|
+
score: 2
|
|
638
|
+
},
|
|
639
|
+
away: {
|
|
640
|
+
team: TEAMS.drCongo,
|
|
641
|
+
score: 1
|
|
642
|
+
},
|
|
643
|
+
winner: "home"
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
id: "r32-13",
|
|
647
|
+
date: "Fri, 3 Jul",
|
|
648
|
+
status: "finished",
|
|
649
|
+
home: {
|
|
650
|
+
team: TEAMS.switzerland,
|
|
651
|
+
score: 2
|
|
652
|
+
},
|
|
653
|
+
away: {
|
|
654
|
+
team: TEAMS.algeria,
|
|
655
|
+
score: 0
|
|
656
|
+
},
|
|
657
|
+
winner: "home"
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
id: "r32-14",
|
|
661
|
+
date: "Sat, 4 Jul",
|
|
662
|
+
status: "finished",
|
|
663
|
+
home: {
|
|
664
|
+
team: TEAMS.colombia,
|
|
665
|
+
score: 1
|
|
666
|
+
},
|
|
667
|
+
away: {
|
|
668
|
+
team: TEAMS.ghana,
|
|
669
|
+
score: 0
|
|
670
|
+
},
|
|
671
|
+
winner: "home"
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
id: "r32-15",
|
|
675
|
+
date: "Fri, 3 Jul",
|
|
676
|
+
status: "finished",
|
|
677
|
+
home: {
|
|
678
|
+
team: TEAMS.australia,
|
|
679
|
+
score: 1,
|
|
680
|
+
penalties: 2
|
|
681
|
+
},
|
|
682
|
+
away: {
|
|
683
|
+
team: TEAMS.egypt,
|
|
684
|
+
score: 1,
|
|
685
|
+
penalties: 4
|
|
686
|
+
},
|
|
687
|
+
winner: "away"
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
id: "r32-16",
|
|
691
|
+
date: "Sat, 4 Jul",
|
|
692
|
+
status: "finished",
|
|
693
|
+
home: {
|
|
694
|
+
team: TEAMS.argentina,
|
|
695
|
+
score: 3
|
|
696
|
+
},
|
|
697
|
+
away: {
|
|
698
|
+
team: TEAMS.caboVerde,
|
|
699
|
+
score: 2
|
|
700
|
+
},
|
|
701
|
+
winner: "home"
|
|
702
|
+
}
|
|
703
|
+
]
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
name: "Round of 16",
|
|
707
|
+
matches: [
|
|
708
|
+
{
|
|
709
|
+
id: "r16-1",
|
|
710
|
+
date: "Sat, 4 Jul",
|
|
711
|
+
status: "finished",
|
|
712
|
+
home: {
|
|
713
|
+
team: TEAMS.canada,
|
|
714
|
+
score: 0
|
|
715
|
+
},
|
|
716
|
+
away: {
|
|
717
|
+
team: TEAMS.morocco,
|
|
718
|
+
score: 3
|
|
719
|
+
},
|
|
720
|
+
winner: "away"
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
id: "r16-2",
|
|
724
|
+
date: "Sun, 5 Jul",
|
|
725
|
+
status: "finished",
|
|
726
|
+
home: {
|
|
727
|
+
team: TEAMS.paraguay,
|
|
728
|
+
score: 0
|
|
729
|
+
},
|
|
730
|
+
away: {
|
|
731
|
+
team: TEAMS.france,
|
|
732
|
+
score: 1
|
|
733
|
+
},
|
|
734
|
+
winner: "away"
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
id: "r16-3",
|
|
738
|
+
date: "Mon, 6 Jul",
|
|
739
|
+
status: "finished",
|
|
740
|
+
home: {
|
|
741
|
+
team: TEAMS.usa,
|
|
742
|
+
score: 1
|
|
743
|
+
},
|
|
744
|
+
away: {
|
|
745
|
+
team: TEAMS.belgium,
|
|
746
|
+
score: 4
|
|
747
|
+
},
|
|
748
|
+
winner: "away"
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
id: "r16-4",
|
|
752
|
+
date: "Mon, 6 Jul",
|
|
753
|
+
status: "finished",
|
|
754
|
+
home: {
|
|
755
|
+
team: TEAMS.portugal,
|
|
756
|
+
score: 0
|
|
757
|
+
},
|
|
758
|
+
away: {
|
|
759
|
+
team: TEAMS.spain,
|
|
760
|
+
score: 1
|
|
761
|
+
},
|
|
762
|
+
winner: "away"
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
id: "r16-5",
|
|
766
|
+
date: "Mon, 6 Jul",
|
|
767
|
+
status: "finished",
|
|
768
|
+
home: {
|
|
769
|
+
team: TEAMS.brazil,
|
|
770
|
+
score: 1
|
|
771
|
+
},
|
|
772
|
+
away: {
|
|
773
|
+
team: TEAMS.norway,
|
|
774
|
+
score: 2
|
|
775
|
+
},
|
|
776
|
+
winner: "away"
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
id: "r16-6",
|
|
780
|
+
date: "Mon, 6 Jul",
|
|
781
|
+
status: "finished",
|
|
782
|
+
home: {
|
|
783
|
+
team: TEAMS.mexico,
|
|
784
|
+
score: 2
|
|
785
|
+
},
|
|
786
|
+
away: {
|
|
787
|
+
team: TEAMS.england,
|
|
788
|
+
score: 3
|
|
789
|
+
},
|
|
790
|
+
winner: "away"
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
id: "r16-7",
|
|
794
|
+
date: "Tue, 7 Jul",
|
|
795
|
+
status: "finished",
|
|
796
|
+
home: {
|
|
797
|
+
team: TEAMS.switzerland,
|
|
798
|
+
score: 0,
|
|
799
|
+
penalties: 4
|
|
800
|
+
},
|
|
801
|
+
away: {
|
|
802
|
+
team: TEAMS.colombia,
|
|
803
|
+
score: 0,
|
|
804
|
+
penalties: 3
|
|
805
|
+
},
|
|
806
|
+
winner: "home"
|
|
807
|
+
},
|
|
808
|
+
{
|
|
809
|
+
id: "r16-8",
|
|
810
|
+
date: "Tue, 7 Jul",
|
|
811
|
+
status: "finished",
|
|
812
|
+
home: {
|
|
813
|
+
team: TEAMS.argentina,
|
|
814
|
+
score: 3
|
|
815
|
+
},
|
|
816
|
+
away: {
|
|
817
|
+
team: TEAMS.egypt,
|
|
818
|
+
score: 2
|
|
819
|
+
},
|
|
820
|
+
winner: "home"
|
|
821
|
+
}
|
|
822
|
+
]
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
name: "Quarter-finals",
|
|
826
|
+
matches: [
|
|
827
|
+
{
|
|
828
|
+
id: "qf-1",
|
|
829
|
+
date: "Fri, 10 Jul",
|
|
830
|
+
time: "4:00 am",
|
|
831
|
+
status: "finished",
|
|
832
|
+
home: {
|
|
833
|
+
team: TEAMS.france,
|
|
834
|
+
score: 2
|
|
835
|
+
},
|
|
836
|
+
away: {
|
|
837
|
+
team: TEAMS.morocco,
|
|
838
|
+
score: 0
|
|
839
|
+
},
|
|
840
|
+
winner: "home"
|
|
841
|
+
},
|
|
842
|
+
{
|
|
843
|
+
id: "qf-2",
|
|
844
|
+
date: "Sat, 11 Jul",
|
|
845
|
+
time: "3:00 am",
|
|
846
|
+
status: "finished",
|
|
847
|
+
home: {
|
|
848
|
+
team: TEAMS.spain,
|
|
849
|
+
score: 2
|
|
850
|
+
},
|
|
851
|
+
away: {
|
|
852
|
+
team: TEAMS.belgium,
|
|
853
|
+
score: 1
|
|
854
|
+
},
|
|
855
|
+
winner: "home"
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
id: "qf-3",
|
|
859
|
+
date: "Today",
|
|
860
|
+
status: "finished",
|
|
861
|
+
home: {
|
|
862
|
+
team: TEAMS.norway,
|
|
863
|
+
score: 1
|
|
864
|
+
},
|
|
865
|
+
away: {
|
|
866
|
+
team: TEAMS.england,
|
|
867
|
+
score: 2
|
|
868
|
+
},
|
|
869
|
+
winner: "away"
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
id: "qf-4",
|
|
873
|
+
date: "Today",
|
|
874
|
+
status: "finished",
|
|
875
|
+
home: {
|
|
876
|
+
team: TEAMS.argentina,
|
|
877
|
+
score: 3
|
|
878
|
+
},
|
|
879
|
+
away: {
|
|
880
|
+
team: TEAMS.switzerland,
|
|
881
|
+
score: 1
|
|
882
|
+
},
|
|
883
|
+
winner: "home"
|
|
884
|
+
}
|
|
885
|
+
]
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
name: "Semi-finals",
|
|
889
|
+
matches: [{
|
|
890
|
+
id: "sf-1",
|
|
891
|
+
date: "Wed, 15 Jul",
|
|
892
|
+
time: "4:00 am",
|
|
893
|
+
status: "upcoming",
|
|
894
|
+
home: {
|
|
895
|
+
team: TEAMS.france,
|
|
896
|
+
score: null
|
|
897
|
+
},
|
|
898
|
+
away: {
|
|
899
|
+
team: TEAMS.spain,
|
|
900
|
+
score: null
|
|
901
|
+
}
|
|
902
|
+
}, {
|
|
903
|
+
id: "sf-2",
|
|
904
|
+
date: "Thu, 16 Jul",
|
|
905
|
+
time: "3:00 am",
|
|
906
|
+
status: "upcoming",
|
|
907
|
+
home: {
|
|
908
|
+
team: TEAMS.england,
|
|
909
|
+
score: null
|
|
910
|
+
},
|
|
911
|
+
away: {
|
|
912
|
+
team: TEAMS.argentina,
|
|
913
|
+
score: null
|
|
914
|
+
}
|
|
915
|
+
}]
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
name: "Final",
|
|
919
|
+
matches: [{
|
|
920
|
+
id: "f-1",
|
|
921
|
+
date: "Mon, 20 Jul",
|
|
922
|
+
time: "3:00 am",
|
|
923
|
+
status: "upcoming",
|
|
924
|
+
home: {
|
|
925
|
+
team: null,
|
|
926
|
+
score: null
|
|
927
|
+
},
|
|
928
|
+
away: {
|
|
929
|
+
team: null,
|
|
930
|
+
score: null
|
|
931
|
+
}
|
|
932
|
+
}]
|
|
933
|
+
}
|
|
934
|
+
];
|
|
935
|
+
const THIRD_PLACE = {
|
|
936
|
+
id: "tp-1",
|
|
937
|
+
date: "Sun, 19 Jul",
|
|
938
|
+
time: "3:00 am",
|
|
939
|
+
status: "upcoming",
|
|
940
|
+
home: {
|
|
941
|
+
team: null,
|
|
942
|
+
score: null
|
|
943
|
+
},
|
|
944
|
+
away: {
|
|
945
|
+
team: null,
|
|
946
|
+
score: null
|
|
947
|
+
}
|
|
948
|
+
};
|
|
949
|
+
//#endregion
|
|
950
|
+
export { KnockoutBracket, ROUNDS, TEAMS, THIRD_PLACE };
|
|
951
|
+
|
|
952
|
+
//# sourceMappingURL=knockout-bracket.js.map
|