@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.
Files changed (584) hide show
  1. package/README.md +28 -17
  2. package/dist/account-avatar-DILzuuvz.js +23 -0
  3. package/dist/account-avatar-DILzuuvz.js.map +1 -0
  4. package/dist/{cascader-types-BnH6wYD-.d.ts → cascader-types-DVT-znZ-.d.ts} +6 -3
  5. package/dist/cascader-types-DVT-znZ-.d.ts.map +1 -0
  6. package/dist/components/agents/approval-card/index.d.ts +2 -0
  7. package/dist/components/agents/approval-card/index.d.ts.map +1 -1
  8. package/dist/components/agents/approval-card/index.js +2 -0
  9. package/dist/components/agents/approval-card/index.js.map +1 -1
  10. package/dist/components/agents/citations.d.ts +14 -2
  11. package/dist/components/agents/citations.d.ts.map +1 -1
  12. package/dist/components/agents/citations.js +11 -7
  13. package/dist/components/agents/citations.js.map +1 -1
  14. package/dist/components/agents/loading-states/reasoning-text.d.ts.map +1 -1
  15. package/dist/components/agents/loading-states/reasoning-text.js +3 -0
  16. package/dist/components/agents/loading-states/reasoning-text.js.map +1 -1
  17. package/dist/components/agents/voice-orb.d.ts +19 -0
  18. package/dist/components/agents/voice-orb.d.ts.map +1 -0
  19. package/dist/components/agents/voice-orb.js +389 -0
  20. package/dist/components/agents/voice-orb.js.map +1 -0
  21. package/dist/components/charts/bump-chart/context.d.ts +2 -0
  22. package/dist/components/charts/bump-chart/context.js +2 -0
  23. package/dist/components/charts/bump-chart/legend.d.ts +6 -0
  24. package/dist/components/charts/bump-chart/legend.d.ts.map +1 -0
  25. package/dist/components/charts/bump-chart/legend.js +60 -0
  26. package/dist/components/charts/bump-chart/legend.js.map +1 -0
  27. package/dist/components/charts/bump-chart/plot.d.ts +6 -0
  28. package/dist/components/charts/bump-chart/plot.d.ts.map +1 -0
  29. package/dist/components/charts/bump-chart/plot.js +2 -0
  30. package/dist/components/charts/bump-chart/point.d.ts +10 -0
  31. package/dist/components/charts/bump-chart/point.d.ts.map +1 -0
  32. package/dist/components/charts/bump-chart/point.js +124 -0
  33. package/dist/components/charts/bump-chart/point.js.map +1 -0
  34. package/dist/components/charts/bump-chart/series.d.ts +12 -0
  35. package/dist/components/charts/bump-chart/series.d.ts.map +1 -0
  36. package/dist/components/charts/bump-chart/series.js +101 -0
  37. package/dist/components/charts/bump-chart/series.js.map +1 -0
  38. package/dist/components/charts/bump-chart.d.ts +10 -0
  39. package/dist/components/charts/bump-chart.d.ts.map +1 -0
  40. package/dist/components/charts/bump-chart.js +23 -0
  41. package/dist/components/charts/bump-chart.js.map +1 -0
  42. package/dist/components/charts/candlestick-chart/context.d.ts +79 -0
  43. package/dist/components/charts/candlestick-chart/context.d.ts.map +1 -0
  44. package/dist/components/charts/candlestick-chart/context.js +69 -0
  45. package/dist/components/charts/candlestick-chart/context.js.map +1 -0
  46. package/dist/components/charts/candlestick-chart/legend.d.ts +12 -0
  47. package/dist/components/charts/candlestick-chart/legend.d.ts.map +1 -0
  48. package/dist/components/charts/candlestick-chart/legend.js +56 -0
  49. package/dist/components/charts/candlestick-chart/legend.js.map +1 -0
  50. package/dist/components/charts/candlestick-chart/plot.d.ts +9 -0
  51. package/dist/components/charts/candlestick-chart/plot.d.ts.map +1 -0
  52. package/dist/components/charts/candlestick-chart/plot.js +218 -0
  53. package/dist/components/charts/candlestick-chart/plot.js.map +1 -0
  54. package/dist/components/charts/candlestick-chart.d.ts +18 -0
  55. package/dist/components/charts/candlestick-chart.d.ts.map +1 -0
  56. package/dist/components/charts/candlestick-chart.js +34 -0
  57. package/dist/components/charts/candlestick-chart.js.map +1 -0
  58. package/dist/components/charts/composition-chart/context.d.ts +2 -0
  59. package/dist/components/charts/composition-chart/context.js +2 -0
  60. package/dist/components/charts/composition-chart/legend.d.ts +6 -0
  61. package/dist/components/charts/composition-chart/legend.d.ts.map +1 -0
  62. package/dist/components/charts/composition-chart/legend.js +51 -0
  63. package/dist/components/charts/composition-chart/legend.js.map +1 -0
  64. package/dist/components/charts/composition-chart/plot.d.ts +6 -0
  65. package/dist/components/charts/composition-chart/plot.d.ts.map +1 -0
  66. package/dist/components/charts/composition-chart/plot.js +174 -0
  67. package/dist/components/charts/composition-chart/plot.js.map +1 -0
  68. package/dist/components/charts/composition-chart/tooltip-content.d.ts +6 -0
  69. package/dist/components/charts/composition-chart/tooltip-content.d.ts.map +1 -0
  70. package/dist/components/charts/composition-chart/tooltip-content.js +63 -0
  71. package/dist/components/charts/composition-chart/tooltip-content.js.map +1 -0
  72. package/dist/components/charts/composition-chart.d.ts +9 -0
  73. package/dist/components/charts/composition-chart.d.ts.map +1 -0
  74. package/dist/components/charts/composition-chart.js +26 -0
  75. package/dist/components/charts/composition-chart.js.map +1 -0
  76. package/dist/components/charts/donut-chart/center.d.ts +16 -0
  77. package/dist/components/charts/donut-chart/center.d.ts.map +1 -0
  78. package/dist/components/charts/donut-chart/center.js +78 -0
  79. package/dist/components/charts/donut-chart/center.js.map +1 -0
  80. package/dist/components/charts/donut-chart/context.d.ts +68 -0
  81. package/dist/components/charts/donut-chart/context.d.ts.map +1 -0
  82. package/dist/components/charts/donut-chart/context.js +2 -0
  83. package/dist/components/charts/donut-chart/legend.d.ts +17 -0
  84. package/dist/components/charts/donut-chart/legend.d.ts.map +1 -0
  85. package/dist/components/charts/donut-chart/legend.js +85 -0
  86. package/dist/components/charts/donut-chart/legend.js.map +1 -0
  87. package/dist/components/charts/donut-chart/plot.d.ts +10 -0
  88. package/dist/components/charts/donut-chart/plot.d.ts.map +1 -0
  89. package/dist/components/charts/donut-chart/plot.js +108 -0
  90. package/dist/components/charts/donut-chart/plot.js.map +1 -0
  91. package/dist/components/charts/donut-chart.d.ts +22 -0
  92. package/dist/components/charts/donut-chart.d.ts.map +1 -0
  93. package/dist/components/charts/donut-chart.js +37 -0
  94. package/dist/components/charts/donut-chart.js.map +1 -0
  95. package/dist/components/charts/funnel-chart.d.ts +50 -0
  96. package/dist/components/charts/funnel-chart.d.ts.map +1 -0
  97. package/dist/components/charts/funnel-chart.js +215 -0
  98. package/dist/components/charts/funnel-chart.js.map +1 -0
  99. package/dist/components/charts/heat-calendar/grid.d.ts +8 -0
  100. package/dist/components/charts/heat-calendar/grid.d.ts.map +1 -0
  101. package/dist/components/charts/heat-calendar/grid.js +127 -0
  102. package/dist/components/charts/heat-calendar/grid.js.map +1 -0
  103. package/dist/components/charts/heat-calendar/legend.d.ts +6 -0
  104. package/dist/components/charts/heat-calendar/legend.d.ts.map +1 -0
  105. package/dist/components/charts/heat-calendar/legend.js +48 -0
  106. package/dist/components/charts/heat-calendar/legend.js.map +1 -0
  107. package/dist/components/charts/heat-calendar/tooltip.d.ts +2 -0
  108. package/dist/components/charts/heat-calendar/tooltip.js +50 -0
  109. package/dist/components/charts/heat-calendar/tooltip.js.map +1 -0
  110. package/dist/components/charts/heat-calendar.d.ts +9 -0
  111. package/dist/components/charts/heat-calendar.d.ts.map +1 -0
  112. package/dist/components/charts/heat-calendar.js +23 -0
  113. package/dist/components/charts/heat-calendar.js.map +1 -0
  114. package/dist/components/charts/liquidity-heatmap.d.ts +51 -0
  115. package/dist/components/charts/liquidity-heatmap.d.ts.map +1 -0
  116. package/dist/components/charts/liquidity-heatmap.js +311 -0
  117. package/dist/components/charts/liquidity-heatmap.js.map +1 -0
  118. package/dist/components/charts/order-book/depth-row.d.ts +19 -0
  119. package/dist/components/charts/order-book/depth-row.d.ts.map +1 -0
  120. package/dist/components/charts/order-book/depth-row.js +107 -0
  121. package/dist/components/charts/order-book/depth-row.js.map +1 -0
  122. package/dist/components/charts/order-book.d.ts +89 -0
  123. package/dist/components/charts/order-book.d.ts.map +1 -0
  124. package/dist/components/charts/order-book.js +282 -0
  125. package/dist/components/charts/order-book.js.map +1 -0
  126. package/dist/components/charts/price-target-fan/header.d.ts +8 -0
  127. package/dist/components/charts/price-target-fan/header.d.ts.map +1 -0
  128. package/dist/components/charts/price-target-fan/header.js +43 -0
  129. package/dist/components/charts/price-target-fan/header.js.map +1 -0
  130. package/dist/components/charts/price-target-fan/plot.d.ts +16 -0
  131. package/dist/components/charts/price-target-fan/plot.d.ts.map +1 -0
  132. package/dist/components/charts/price-target-fan/plot.js +142 -0
  133. package/dist/components/charts/price-target-fan/plot.js.map +1 -0
  134. package/dist/components/charts/price-target-fan/series.d.ts +15 -0
  135. package/dist/components/charts/price-target-fan/series.d.ts.map +1 -0
  136. package/dist/components/charts/price-target-fan/series.js +238 -0
  137. package/dist/components/charts/price-target-fan/series.js.map +1 -0
  138. package/dist/components/charts/price-target-fan/tooltip.d.ts +2 -0
  139. package/dist/components/charts/price-target-fan/tooltip.js +58 -0
  140. package/dist/components/charts/price-target-fan/tooltip.js.map +1 -0
  141. package/dist/components/charts/price-target-fan.d.ts +10 -0
  142. package/dist/components/charts/price-target-fan.d.ts.map +1 -0
  143. package/dist/components/charts/price-target-fan.js +24 -0
  144. package/dist/components/charts/price-target-fan.js.map +1 -0
  145. package/dist/components/charts/returns-calendar/grid.d.ts +8 -0
  146. package/dist/components/charts/returns-calendar/grid.d.ts.map +1 -0
  147. package/dist/components/charts/returns-calendar/grid.js +176 -0
  148. package/dist/components/charts/returns-calendar/grid.js.map +1 -0
  149. package/dist/components/charts/returns-calendar/tooltip.d.ts +2 -0
  150. package/dist/components/charts/returns-calendar/tooltip.js +55 -0
  151. package/dist/components/charts/returns-calendar/tooltip.js.map +1 -0
  152. package/dist/components/charts/returns-calendar.d.ts +48 -0
  153. package/dist/components/charts/returns-calendar.d.ts.map +1 -0
  154. package/dist/components/charts/returns-calendar.js +22 -0
  155. package/dist/components/charts/returns-calendar.js.map +1 -0
  156. package/dist/components/charts/status-bar/legend.d.ts +8 -0
  157. package/dist/components/charts/status-bar/legend.d.ts.map +1 -0
  158. package/dist/components/charts/status-bar/legend.js +37 -0
  159. package/dist/components/charts/status-bar/legend.js.map +1 -0
  160. package/dist/components/charts/status-bar/plot.d.ts +12 -0
  161. package/dist/components/charts/status-bar/plot.d.ts.map +1 -0
  162. package/dist/components/charts/status-bar/plot.js +176 -0
  163. package/dist/components/charts/status-bar/plot.js.map +1 -0
  164. package/dist/components/charts/status-bar/tooltip.d.ts +2 -0
  165. package/dist/components/charts/status-bar/tooltip.js +49 -0
  166. package/dist/components/charts/status-bar/tooltip.js.map +1 -0
  167. package/dist/components/charts/status-bar.d.ts +9 -0
  168. package/dist/components/charts/status-bar.d.ts.map +1 -0
  169. package/dist/components/charts/status-bar.js +64 -0
  170. package/dist/components/charts/status-bar.js.map +1 -0
  171. package/dist/components/charts/treemap/legend.d.ts +8 -0
  172. package/dist/components/charts/treemap/legend.d.ts.map +1 -0
  173. package/dist/components/charts/treemap/legend.js +35 -0
  174. package/dist/components/charts/treemap/legend.js.map +1 -0
  175. package/dist/components/charts/treemap/plot.d.ts +13 -0
  176. package/dist/components/charts/treemap/plot.d.ts.map +1 -0
  177. package/dist/components/charts/treemap/plot.js +123 -0
  178. package/dist/components/charts/treemap/plot.js.map +1 -0
  179. package/dist/components/charts/treemap/tile.d.ts +10 -0
  180. package/dist/components/charts/treemap/tile.d.ts.map +1 -0
  181. package/dist/components/charts/treemap/tile.js +114 -0
  182. package/dist/components/charts/treemap/tile.js.map +1 -0
  183. package/dist/components/charts/treemap/tooltip.d.ts +11 -0
  184. package/dist/components/charts/treemap/tooltip.d.ts.map +1 -0
  185. package/dist/components/charts/treemap/tooltip.js +73 -0
  186. package/dist/components/charts/treemap/tooltip.js.map +1 -0
  187. package/dist/components/charts/treemap.d.ts +56 -0
  188. package/dist/components/charts/treemap.d.ts.map +1 -0
  189. package/dist/components/charts/treemap.js +71 -0
  190. package/dist/components/charts/treemap.js.map +1 -0
  191. package/dist/components/charts/volume-profile/plot.d.ts +12 -0
  192. package/dist/components/charts/volume-profile/plot.d.ts.map +1 -0
  193. package/dist/components/charts/volume-profile/plot.js +211 -0
  194. package/dist/components/charts/volume-profile/plot.js.map +1 -0
  195. package/dist/components/charts/volume-profile/summary.d.ts +6 -0
  196. package/dist/components/charts/volume-profile/summary.d.ts.map +1 -0
  197. package/dist/components/charts/volume-profile/summary.js +76 -0
  198. package/dist/components/charts/volume-profile/summary.js.map +1 -0
  199. package/dist/components/charts/volume-profile/tooltip.d.ts +2 -0
  200. package/dist/components/charts/volume-profile/tooltip.js +84 -0
  201. package/dist/components/charts/volume-profile/tooltip.js.map +1 -0
  202. package/dist/components/charts/volume-profile.d.ts +111 -0
  203. package/dist/components/charts/volume-profile.d.ts.map +1 -0
  204. package/dist/components/charts/volume-profile.js +82 -0
  205. package/dist/components/charts/volume-profile.js.map +1 -0
  206. package/dist/components/custom/confirm-dialog.d.ts +1 -0
  207. package/dist/components/custom/toast.d.ts +1 -0
  208. package/dist/components/motion/action-swap.d.ts.map +1 -1
  209. package/dist/components/motion/action-swap.js +3 -0
  210. package/dist/components/motion/action-swap.js.map +1 -1
  211. package/dist/components/motion/alert.d.ts +40 -0
  212. package/dist/components/motion/alert.d.ts.map +1 -0
  213. package/dist/components/motion/alert.js +247 -0
  214. package/dist/components/motion/alert.js.map +1 -0
  215. package/dist/components/motion/animated-sidebar.d.ts +1 -0
  216. package/dist/components/motion/arc-picker.d.ts +28 -0
  217. package/dist/components/motion/arc-picker.d.ts.map +1 -0
  218. package/dist/components/motion/arc-picker.js +569 -0
  219. package/dist/components/motion/arc-picker.js.map +1 -0
  220. package/dist/components/motion/aspect-ratio.d.ts +23 -0
  221. package/dist/components/motion/aspect-ratio.d.ts.map +1 -0
  222. package/dist/components/motion/aspect-ratio.js +61 -0
  223. package/dist/components/motion/aspect-ratio.js.map +1 -0
  224. package/dist/components/motion/attachment-upload.d.ts.map +1 -1
  225. package/dist/components/motion/attachment-upload.js +1 -2
  226. package/dist/components/motion/attachment-upload.js.map +1 -1
  227. package/dist/components/motion/availability-scheduler/copy-menu.js +1 -2
  228. package/dist/components/motion/availability-scheduler/day-row.js +2 -2
  229. package/dist/components/motion/availability-scheduler/index.js +1 -1
  230. package/dist/components/motion/bloom-menu.d.ts +1 -0
  231. package/dist/components/motion/bounce-sidebar.d.ts.map +1 -1
  232. package/dist/components/motion/bounce-sidebar.js +34 -42
  233. package/dist/components/motion/bounce-sidebar.js.map +1 -1
  234. package/dist/components/motion/button/stateful.d.ts.map +1 -1
  235. package/dist/components/motion/button/stateful.js +3 -0
  236. package/dist/components/motion/button/stateful.js.map +1 -1
  237. package/dist/components/motion/card.d.ts +44 -0
  238. package/dist/components/motion/card.d.ts.map +1 -0
  239. package/dist/components/motion/card.js +122 -0
  240. package/dist/components/motion/card.js.map +1 -0
  241. package/dist/components/motion/checkbox.d.ts +3 -1
  242. package/dist/components/motion/checkbox.d.ts.map +1 -1
  243. package/dist/components/motion/checkbox.js +18 -6
  244. package/dist/components/motion/checkbox.js.map +1 -1
  245. package/dist/components/motion/collapsible.d.ts +34 -0
  246. package/dist/components/motion/collapsible.d.ts.map +1 -0
  247. package/dist/components/motion/collapsible.js +237 -0
  248. package/dist/components/motion/collapsible.js.map +1 -0
  249. package/dist/components/motion/color-picker.d.ts +110 -0
  250. package/dist/components/motion/color-picker.d.ts.map +1 -0
  251. package/dist/components/motion/color-picker.js +1053 -0
  252. package/dist/components/motion/color-picker.js.map +1 -0
  253. package/dist/components/motion/color-selector.d.ts.map +1 -1
  254. package/dist/components/motion/color-selector.js +9 -2
  255. package/dist/components/motion/color-selector.js.map +1 -1
  256. package/dist/components/motion/combobox/content.d.ts +1 -0
  257. package/dist/components/motion/command-palette.js +2 -2
  258. package/dist/components/motion/command-palette.js.map +1 -1
  259. package/dist/components/motion/context-menu.d.ts +1 -0
  260. package/dist/components/motion/date-range-picker.d.ts +107 -0
  261. package/dist/components/motion/date-range-picker.d.ts.map +1 -0
  262. package/dist/components/motion/date-range-picker.js +907 -0
  263. package/dist/components/motion/date-range-picker.js.map +1 -0
  264. package/dist/components/motion/digit-swap.d.ts +9 -1
  265. package/dist/components/motion/digit-swap.d.ts.map +1 -1
  266. package/dist/components/motion/digit-swap.js +18 -7
  267. package/dist/components/motion/digit-swap.js.map +1 -1
  268. package/dist/components/motion/expandable-control.d.ts +1 -0
  269. package/dist/components/motion/knockout-bracket.d.ts +190 -0
  270. package/dist/components/motion/knockout-bracket.d.ts.map +1 -0
  271. package/dist/components/motion/knockout-bracket.js +952 -0
  272. package/dist/components/motion/knockout-bracket.js.map +1 -0
  273. package/dist/components/motion/knockout-wheel.d.ts +183 -0
  274. package/dist/components/motion/knockout-wheel.d.ts.map +1 -0
  275. package/dist/components/motion/knockout-wheel.js +1038 -0
  276. package/dist/components/motion/knockout-wheel.js.map +1 -0
  277. package/dist/components/motion/morphing-lightbox.d.ts +67 -0
  278. package/dist/components/motion/morphing-lightbox.d.ts.map +1 -0
  279. package/dist/components/motion/morphing-lightbox.js +499 -0
  280. package/dist/components/motion/morphing-lightbox.js.map +1 -0
  281. package/dist/components/motion/morphing-search-chips.d.ts +54 -0
  282. package/dist/components/motion/morphing-search-chips.d.ts.map +1 -0
  283. package/dist/components/motion/morphing-search-chips.js +599 -0
  284. package/dist/components/motion/morphing-search-chips.js.map +1 -0
  285. package/dist/components/motion/multi-select/content.d.ts +1 -0
  286. package/dist/components/motion/not-found/shared.d.ts +1 -0
  287. package/dist/components/motion/number-ticker.d.ts +6 -1
  288. package/dist/components/motion/number-ticker.d.ts.map +1 -1
  289. package/dist/components/motion/number-ticker.js +19 -9
  290. package/dist/components/motion/number-ticker.js.map +1 -1
  291. package/dist/components/motion/parallax.js.map +1 -1
  292. package/dist/components/motion/popover-morph.d.ts +5 -0
  293. package/dist/components/motion/popover-morph.d.ts.map +1 -1
  294. package/dist/components/motion/popover-morph.js +34 -8
  295. package/dist/components/motion/popover-morph.js.map +1 -1
  296. package/dist/components/motion/popover.d.ts +1 -0
  297. package/dist/components/motion/prediction-market-card.d.ts +37 -0
  298. package/dist/components/motion/prediction-market-card.d.ts.map +1 -0
  299. package/dist/components/motion/prediction-market-card.js +215 -0
  300. package/dist/components/motion/prediction-market-card.js.map +1 -0
  301. package/dist/components/motion/prediction-market.d.ts +49 -0
  302. package/dist/components/motion/prediction-market.d.ts.map +1 -0
  303. package/dist/components/motion/prediction-market.js +440 -0
  304. package/dist/components/motion/prediction-market.js.map +1 -0
  305. package/dist/components/motion/radio.d.ts +3 -1
  306. package/dist/components/motion/radio.d.ts.map +1 -1
  307. package/dist/components/motion/radio.js +17 -5
  308. package/dist/components/motion/radio.js.map +1 -1
  309. package/dist/components/motion/scroll-progress.d.ts +1 -0
  310. package/dist/components/motion/shader-background.d.ts +1 -0
  311. package/dist/components/motion/sortable-list.d.ts +54 -0
  312. package/dist/components/motion/sortable-list.d.ts.map +1 -0
  313. package/dist/components/motion/sortable-list.js +254 -0
  314. package/dist/components/motion/sortable-list.js.map +1 -0
  315. package/dist/components/motion/sortable-stack.d.ts +2 -0
  316. package/dist/components/motion/sortable-stack.js +2 -0
  317. package/dist/components/motion/swap/controls.d.ts +22 -0
  318. package/dist/components/motion/swap/controls.d.ts.map +1 -0
  319. package/dist/components/motion/swap/controls.js +167 -0
  320. package/dist/components/motion/swap/controls.js.map +1 -0
  321. package/dist/components/motion/swap/field.d.ts +14 -0
  322. package/dist/components/motion/swap/field.d.ts.map +1 -0
  323. package/dist/components/motion/swap/field.js +107 -0
  324. package/dist/components/motion/swap/field.js.map +1 -0
  325. package/dist/components/motion/swap/quote-row.d.ts +13 -0
  326. package/dist/components/motion/swap/quote-row.d.ts.map +1 -0
  327. package/dist/components/motion/swap/quote-row.js +55 -0
  328. package/dist/components/motion/swap/quote-row.js.map +1 -0
  329. package/dist/components/motion/swap/token-badges.d.ts +19 -0
  330. package/dist/components/motion/swap/token-badges.d.ts.map +1 -0
  331. package/dist/components/motion/swap/token-badges.js +54 -0
  332. package/dist/components/motion/swap/token-badges.js.map +1 -0
  333. package/dist/components/motion/swap/token-picker.d.ts +14 -0
  334. package/dist/components/motion/swap/token-picker.d.ts.map +1 -0
  335. package/dist/components/motion/swap/token-picker.js +190 -0
  336. package/dist/components/motion/swap/token-picker.js.map +1 -0
  337. package/dist/components/motion/swap.d.ts +14 -0
  338. package/dist/components/motion/swap.d.ts.map +1 -0
  339. package/dist/components/motion/swap.js +378 -0
  340. package/dist/components/motion/swap.js.map +1 -0
  341. package/dist/components/motion/tabs.d.ts +6 -9
  342. package/dist/components/motion/tabs.d.ts.map +1 -1
  343. package/dist/components/motion/tabs.js +13 -4
  344. package/dist/components/motion/tabs.js.map +1 -1
  345. package/dist/components/motion/text-reveal.d.ts +1 -0
  346. package/dist/components/motion/tooltip/positioner.d.ts +8 -26
  347. package/dist/components/motion/tooltip/positioner.d.ts.map +1 -1
  348. package/dist/components/motion/tooltip/positioner.js +1 -2
  349. package/dist/components/motion/tooltip.d.ts +62 -20
  350. package/dist/components/motion/tooltip.d.ts.map +1 -1
  351. package/dist/components/motion/tooltip.js +1 -135
  352. package/dist/components/motion/wallet-card/account-avatar.d.ts +8 -0
  353. package/dist/components/motion/wallet-card/account-avatar.d.ts.map +1 -0
  354. package/dist/components/motion/wallet-card/account-avatar.js +2 -0
  355. package/dist/components/motion/wallet-card/account-switcher.d.ts +14 -0
  356. package/dist/components/motion/wallet-card/account-switcher.d.ts.map +1 -0
  357. package/dist/components/motion/wallet-card/account-switcher.js +153 -0
  358. package/dist/components/motion/wallet-card/account-switcher.js.map +1 -0
  359. package/dist/components/motion/wallet-card/actions.d.ts +12 -0
  360. package/dist/components/motion/wallet-card/actions.d.ts.map +1 -0
  361. package/dist/components/motion/wallet-card/actions.js +58 -0
  362. package/dist/components/motion/wallet-card/actions.js.map +1 -0
  363. package/dist/components/motion/wallet-card/balance-delta.d.ts +12 -0
  364. package/dist/components/motion/wallet-card/balance-delta.d.ts.map +1 -0
  365. package/dist/components/motion/wallet-card/balance-delta.js +72 -0
  366. package/dist/components/motion/wallet-card/balance-delta.js.map +1 -0
  367. package/dist/components/motion/wallet-card/copy-button.d.ts +12 -0
  368. package/dist/components/motion/wallet-card/copy-button.d.ts.map +1 -0
  369. package/dist/components/motion/wallet-card/copy-button.js +41 -0
  370. package/dist/components/motion/wallet-card/copy-button.js.map +1 -0
  371. package/dist/components/motion/wallet-card/index.d.ts +13 -0
  372. package/dist/components/motion/wallet-card/index.d.ts.map +1 -0
  373. package/dist/components/motion/wallet-card/index.js +115 -0
  374. package/dist/components/motion/wallet-card/index.js.map +1 -0
  375. package/dist/components/motion/wallet-card/search-bar.d.ts +17 -0
  376. package/dist/components/motion/wallet-card/search-bar.d.ts.map +1 -0
  377. package/dist/components/motion/wallet-card/search-bar.js +156 -0
  378. package/dist/components/motion/wallet-card/search-bar.js.map +1 -0
  379. package/dist/components/reui/alert.d.ts +1 -1
  380. package/dist/components/reui/autocomplete.d.ts +1 -1
  381. package/dist/components/reui/autocomplete.d.ts.map +1 -1
  382. package/dist/components/reui/autocomplete.js.map +1 -1
  383. package/dist/components/reui/badge.d.ts +2 -2
  384. package/dist/components/reui/cascader/cascader-async.d.ts +3 -2
  385. package/dist/components/reui/cascader/cascader-async.d.ts.map +1 -1
  386. package/dist/components/reui/cascader/cascader-async.js.map +1 -1
  387. package/dist/components/reui/cascader/cascader-columns.js +3 -3
  388. package/dist/components/reui/cascader/cascader-columns.js.map +1 -1
  389. package/dist/components/reui/cascader/cascader-context.d.ts +12 -4
  390. package/dist/components/reui/cascader/cascader-context.d.ts.map +1 -1
  391. package/dist/components/reui/cascader/cascader-context.js.map +1 -1
  392. package/dist/components/reui/cascader/cascader-i18n.d.ts +1 -1
  393. package/dist/components/reui/cascader/cascader-item.d.ts +2 -2
  394. package/dist/components/reui/cascader/cascader-item.d.ts.map +1 -1
  395. package/dist/components/reui/cascader/cascader-item.js +22 -16
  396. package/dist/components/reui/cascader/cascader-item.js.map +1 -1
  397. package/dist/components/reui/cascader/cascader-lib.d.ts +8 -1
  398. package/dist/components/reui/cascader/cascader-lib.d.ts.map +1 -1
  399. package/dist/components/reui/cascader/cascader-lib.js +19 -11
  400. package/dist/components/reui/cascader/cascader-lib.js.map +1 -1
  401. package/dist/components/reui/cascader/cascader-nav.d.ts +1 -1
  402. package/dist/components/reui/cascader/cascader-nav.d.ts.map +1 -1
  403. package/dist/components/reui/cascader/cascader-nav.js +5 -4
  404. package/dist/components/reui/cascader/cascader-nav.js.map +1 -1
  405. package/dist/components/reui/cascader/cascader-types.d.ts +1 -1
  406. package/dist/components/reui/cascader/cascader-virtual.d.ts.map +1 -1
  407. package/dist/components/reui/cascader/cascader-virtual.js.map +1 -1
  408. package/dist/components/reui/cascader/cascader.d.ts +6 -2
  409. package/dist/components/reui/cascader/cascader.d.ts.map +1 -1
  410. package/dist/components/reui/cascader/cascader.js +58 -20
  411. package/dist/components/reui/cascader/cascader.js.map +1 -1
  412. package/dist/components/reui/color-picker.d.ts +280 -0
  413. package/dist/components/reui/color-picker.d.ts.map +1 -0
  414. package/dist/components/reui/color-picker.js +2013 -0
  415. package/dist/components/reui/color-picker.js.map +1 -0
  416. package/dist/components/reui/data-grid/data-grid-cell-selection.d.ts.map +1 -1
  417. package/dist/components/reui/data-grid/data-grid-column-filter.js +2 -2
  418. package/dist/components/reui/data-grid/data-grid-column-filter.js.map +1 -1
  419. package/dist/components/reui/data-grid/data-grid-column-header.d.ts.map +1 -1
  420. package/dist/components/reui/data-grid/data-grid-column-header.js +59 -33
  421. package/dist/components/reui/data-grid/data-grid-column-header.js.map +1 -1
  422. package/dist/components/reui/data-grid/data-grid-column-visibility.js +1 -1
  423. package/dist/components/reui/data-grid/data-grid-column-visibility.js.map +1 -1
  424. package/dist/components/reui/data-grid/data-grid-pagination.js +2 -2
  425. package/dist/components/reui/data-grid/data-grid-pagination.js.map +1 -1
  426. package/dist/components/reui/data-grid/data-grid-scroll-area.d.ts.map +1 -1
  427. package/dist/components/reui/data-grid/data-grid-scroll-area.js +94 -64
  428. package/dist/components/reui/data-grid/data-grid-scroll-area.js.map +1 -1
  429. package/dist/components/reui/data-grid/data-grid-table-dnd-rows.d.ts +7 -2
  430. package/dist/components/reui/data-grid/data-grid-table-dnd-rows.d.ts.map +1 -1
  431. package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js +74 -41
  432. package/dist/components/reui/data-grid/data-grid-table-dnd-rows.js.map +1 -1
  433. package/dist/components/reui/data-grid/data-grid-table-dnd.d.ts +7 -2
  434. package/dist/components/reui/data-grid/data-grid-table-dnd.d.ts.map +1 -1
  435. package/dist/components/reui/data-grid/data-grid-table-dnd.js +135 -32
  436. package/dist/components/reui/data-grid/data-grid-table-dnd.js.map +1 -1
  437. package/dist/components/reui/data-grid/data-grid-table-virtual.d.ts.map +1 -1
  438. package/dist/components/reui/data-grid/data-grid-table-virtual.js +36 -42
  439. package/dist/components/reui/data-grid/data-grid-table-virtual.js.map +1 -1
  440. package/dist/components/reui/data-grid/data-grid-table.d.ts +168 -5
  441. package/dist/components/reui/data-grid/data-grid-table.d.ts.map +1 -1
  442. package/dist/components/reui/data-grid/data-grid-table.js +354 -101
  443. package/dist/components/reui/data-grid/data-grid-table.js.map +1 -1
  444. package/dist/components/reui/data-grid/data-grid.d.ts +55 -0
  445. package/dist/components/reui/data-grid/data-grid.d.ts.map +1 -1
  446. package/dist/components/reui/data-grid/data-grid.js +114 -52
  447. package/dist/components/reui/data-grid/data-grid.js.map +1 -1
  448. package/dist/components/reui/date-selector.d.ts +1 -0
  449. package/dist/components/reui/date-selector.js +1 -1
  450. package/dist/components/reui/emoji-picker.d.ts +367 -0
  451. package/dist/components/reui/emoji-picker.d.ts.map +1 -0
  452. package/dist/components/reui/emoji-picker.js +1768 -0
  453. package/dist/components/reui/emoji-picker.js.map +1 -0
  454. package/dist/components/reui/event-calendar/event-calendar-i18n.d.ts.map +1 -1
  455. package/dist/components/reui/event-calendar/event-calendar-nav.js +1 -1
  456. package/dist/components/reui/file-type.d.ts +496 -0
  457. package/dist/components/reui/file-type.d.ts.map +1 -0
  458. package/dist/components/reui/file-type.js +964 -0
  459. package/dist/components/reui/file-type.js.map +1 -0
  460. package/dist/components/reui/filters/filters-advanced.d.ts +1 -0
  461. package/dist/components/reui/filters/filters-advanced.js +1 -1
  462. package/dist/components/reui/filters/filters-advanced.js.map +1 -1
  463. package/dist/components/reui/filters/filters-builder.d.ts +1 -1
  464. package/dist/components/reui/filters/filters-chip.d.ts +5 -1
  465. package/dist/components/reui/filters/filters-chip.d.ts.map +1 -1
  466. package/dist/components/reui/filters/filters-chip.js +1 -1
  467. package/dist/components/reui/filters/filters-lib.d.ts +1 -1
  468. package/dist/components/reui/filters/filters-lib.d.ts.map +1 -1
  469. package/dist/components/reui/frame.d.ts +2 -2
  470. package/dist/components/reui/frame.d.ts.map +1 -1
  471. package/dist/components/reui/frame.js.map +1 -1
  472. package/dist/components/reui/gantt/gantt-nav.js +1 -1
  473. package/dist/components/reui/icon-tile.d.ts +1 -1
  474. package/dist/components/reui/icon-tile.js +8 -7
  475. package/dist/components/reui/icon-tile.js.map +1 -1
  476. package/dist/components/reui/kanban.d.ts.map +1 -1
  477. package/dist/components/reui/kanban.js +1 -1
  478. package/dist/components/reui/kanban.js.map +1 -1
  479. package/dist/components/reui/number-field.d.ts +3 -3
  480. package/dist/components/reui/number-field.d.ts.map +1 -1
  481. package/dist/components/reui/number-field.js.map +1 -1
  482. package/dist/components/reui/rating.d.ts +1 -1
  483. package/dist/components/reui/scrollspy.d.ts +1 -0
  484. package/dist/components/reui/signature-pad.d.ts +160 -0
  485. package/dist/components/reui/signature-pad.d.ts.map +1 -0
  486. package/dist/components/reui/signature-pad.js +764 -0
  487. package/dist/components/reui/signature-pad.js.map +1 -0
  488. package/dist/components/reui/time-picker.d.ts +202 -0
  489. package/dist/components/reui/time-picker.d.ts.map +1 -0
  490. package/dist/components/reui/time-picker.js +1002 -0
  491. package/dist/components/reui/time-picker.js.map +1 -0
  492. package/dist/components/ui/attachment.d.ts +2 -2
  493. package/dist/components/ui/badge.d.ts +1 -1
  494. package/dist/components/ui/bubble.d.ts +1 -1
  495. package/dist/components/ui/button.d.ts +2 -2
  496. package/dist/components/ui/command.d.ts.map +1 -1
  497. package/dist/components/ui/direction.js +1 -2
  498. package/dist/components/ui/empty.d.ts +1 -1
  499. package/dist/components/ui/field.js +1 -1
  500. package/dist/components/ui/input-group.d.ts +1 -1
  501. package/dist/components/ui/item.d.ts +3 -3
  502. package/dist/components/ui/message-scroller.d.ts.map +1 -1
  503. package/dist/components/ui/questionnaire.d.ts.map +1 -1
  504. package/dist/components/ui/sidebar.d.ts +2 -2
  505. package/dist/components/ui/sidebar.js +1 -1
  506. package/dist/components/ui/tabs.d.ts +1 -1
  507. package/dist/components/ui/toggle.d.ts +2 -2
  508. package/dist/constants-CsKm9sSk.js +30 -0
  509. package/dist/constants-CsKm9sSk.js.map +1 -0
  510. package/dist/context-3_vY1jbv.js +141 -0
  511. package/dist/context-3_vY1jbv.js.map +1 -0
  512. package/dist/context-BE60udRT.js +99 -0
  513. package/dist/context-BE60udRT.js.map +1 -0
  514. package/dist/context-BYXeJQnz.d.ts +150 -0
  515. package/dist/context-BYXeJQnz.d.ts.map +1 -0
  516. package/dist/context-Bc6VC1HA.js +181 -0
  517. package/dist/context-Bc6VC1HA.js.map +1 -0
  518. package/dist/context-BqjZ1Z_w.js +111 -0
  519. package/dist/context-BqjZ1Z_w.js.map +1 -0
  520. package/dist/context-CZfRKkcZ.js +204 -0
  521. package/dist/context-CZfRKkcZ.js.map +1 -0
  522. package/dist/context-Cn-00gfW.js +169 -0
  523. package/dist/context-Cn-00gfW.js.map +1 -0
  524. package/dist/context-Cnlo53sV.d.ts +92 -0
  525. package/dist/context-Cnlo53sV.d.ts.map +1 -0
  526. package/dist/context-Rl5VCYA8.js +257 -0
  527. package/dist/context-Rl5VCYA8.js.map +1 -0
  528. package/dist/context-sD8DQga-.js +122 -0
  529. package/dist/context-sD8DQga-.js.map +1 -0
  530. package/dist/context-tTdLKYNf.js +99 -0
  531. package/dist/context-tTdLKYNf.js.map +1 -0
  532. package/dist/{copy-menu-C5GaT4Z-.js → copy-menu-BXUh52bu.js} +2 -2
  533. package/dist/{copy-menu-C5GaT4Z-.js.map → copy-menu-BXUh52bu.js.map} +1 -1
  534. package/dist/ease-B82HVmio.d.ts +50 -0
  535. package/dist/ease-B82HVmio.d.ts.map +1 -0
  536. package/dist/hooks/use-copy-to-clipboard.d.ts +1 -0
  537. package/dist/hooks/use-hover-gesture.d.ts +1 -0
  538. package/dist/hooks/use-intersection-observer.d.ts +1 -0
  539. package/dist/hooks/use-modal-scope.d.ts +6 -0
  540. package/dist/hooks/use-modal-scope.d.ts.map +1 -0
  541. package/dist/hooks/use-modal-scope.js +83 -0
  542. package/dist/hooks/use-modal-scope.js.map +1 -0
  543. package/dist/hooks/use-scroll-position.d.ts +1 -0
  544. package/dist/hooks/use-slider-input.d.ts +1 -0
  545. package/dist/hooks/use-viewport.d.ts +1 -0
  546. package/dist/lib/ease.d.ts +2 -49
  547. package/dist/lib/tick-sound.d.ts +1 -0
  548. package/dist/model-DlbIqCZg.d.ts +41 -0
  549. package/dist/model-DlbIqCZg.d.ts.map +1 -0
  550. package/dist/model-NSIg2p7a.d.ts +20 -0
  551. package/dist/model-NSIg2p7a.d.ts.map +1 -0
  552. package/dist/model-_mRyI6V9.d.ts +18 -0
  553. package/dist/model-_mRyI6V9.d.ts.map +1 -0
  554. package/dist/plot-CdFTbMI_.js +131 -0
  555. package/dist/plot-CdFTbMI_.js.map +1 -0
  556. package/dist/{positioner-3mCqiebN.js → positioner-3r3cfkqT.js} +97 -33
  557. package/dist/positioner-3r3cfkqT.js.map +1 -0
  558. package/dist/tooltip-Bam5KeYe.js +535 -0
  559. package/dist/tooltip-Bam5KeYe.js.map +1 -0
  560. package/dist/tooltip-BarafYiU.d.ts +67 -0
  561. package/dist/tooltip-BarafYiU.d.ts.map +1 -0
  562. package/dist/tooltip-BqxVD6D-.d.ts +64 -0
  563. package/dist/tooltip-BqxVD6D-.d.ts.map +1 -0
  564. package/dist/tooltip-C01qUgsW.d.ts +133 -0
  565. package/dist/tooltip-C01qUgsW.d.ts.map +1 -0
  566. package/dist/tooltip-C6qUs7px.d.ts +36 -0
  567. package/dist/tooltip-C6qUs7px.d.ts.map +1 -0
  568. package/dist/tooltip-DQ4DXgeu.d.ts +94 -0
  569. package/dist/tooltip-DQ4DXgeu.d.ts.map +1 -0
  570. package/dist/types-B_6p3LXz.d.ts +36 -0
  571. package/dist/types-B_6p3LXz.d.ts.map +1 -0
  572. package/dist/types-D6e3gWOA.d.ts +22 -0
  573. package/dist/types-D6e3gWOA.d.ts.map +1 -0
  574. package/dist/use-geometry-CH0foIo7.d.ts +9 -0
  575. package/dist/use-geometry-CH0foIo7.d.ts.map +1 -0
  576. package/dist/use-position-DOi1gVL0.d.ts +32 -0
  577. package/dist/use-position-DOi1gVL0.d.ts.map +1 -0
  578. package/dist/utils-B3YXTsDI.js +26 -0
  579. package/dist/utils-B3YXTsDI.js.map +1 -0
  580. package/package.json +12 -12
  581. package/dist/cascader-types-BnH6wYD-.d.ts.map +0 -1
  582. package/dist/components/motion/tooltip.js.map +0 -1
  583. package/dist/lib/ease.d.ts.map +0 -1
  584. package/dist/positioner-3mCqiebN.js.map +0 -1
@@ -0,0 +1,1038 @@
1
+ "use client";
2
+ import { useDismiss } from "../../hooks/use-dismiss.js";
3
+ import { useHoverCapable } from "../../hooks/use-hover-capable.js";
4
+ import { useHoverGesture } from "../../hooks/use-hover-gesture.js";
5
+ import { useTapGesture } from "../../hooks/use-tap-gesture.js";
6
+ import { SPRING_PANEL } from "../../lib/ease.js";
7
+ import { t as Tooltip } from "../../tooltip-Bam5KeYe.js";
8
+ import { memo, useCallback, useId, useMemo, useRef, useState } from "react";
9
+ import { cn } from "@kumix/utils";
10
+ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
11
+ import { motion, useInView, useReducedMotion } from "motion/react";
12
+ import { Shield } from "lucide-react";
13
+ //#region src/components/motion/knockout-wheel.tsx
14
+ const SIZE = 760;
15
+ const CENTER = SIZE / 2;
16
+ const TROPHY_SIZE = 24;
17
+ const TROPHY_PATH = "M5 1h12v3h3a2 2 0 0 1 2 2c0 3.3-2.2 5.6-5.2 6A6 6 0 0 1 12 15a6 6 0 0 1-4.8-2.9C4.2 11.6 2 9.3 2 6a2 2 0 0 1 2-2h1V1Zm0 5H4c0 1.9 1.1 3.2 2.6 3.7A12 12 0 0 1 5 6Zm14 0h-1a12 12 0 0 1-1.6 3.7C17.9 9.2 19 7.9 19 6ZM9 16.5h6V19h2.5v2h-11v-2H9v-2.5Z";
18
+ const OUTER_R = 318;
19
+ const HUB_R = 34;
20
+ const NODE_MIN = 14.2;
21
+ const NODE_STEP = 2.2;
22
+ const INITIALS_MIN = 15;
23
+ const SIBLING_GAP = .9;
24
+ const HUB_ANGLE = 90;
25
+ const DIM_TRANSITION = { duration: .18 };
26
+ const NO_TRANSITION = { duration: 0 };
27
+ const quantize = (n) => Math.round(n * 1e3) / 1e3;
28
+ const polar = (radius, deg) => {
29
+ const rad = deg * Math.PI / 180;
30
+ return {
31
+ x: quantize(CENTER + radius * Math.cos(rad)),
32
+ y: quantize(CENTER + radius * Math.sin(rad))
33
+ };
34
+ };
35
+ const point = (radius, deg) => {
36
+ const { x, y } = polar(radius, deg);
37
+ return `${x.toFixed(2)} ${y.toFixed(2)}`;
38
+ };
39
+ const pct = (value) => `${(value / SIZE * 100).toFixed(4)}%`;
40
+ const keepTogether = (text) => text.replace(/ /g, "\xA0");
41
+ const teamName = (side) => keepTogether(side.team?.name ?? "TBD");
42
+ /** A `logo` is used as given; a country `code` loads a flag from flagcdn.com. */
43
+ const crestSrc = (team) => team.logo ?? (team.code ? `https://flagcdn.com/w80/${team.code}.png` : null);
44
+ /** Two-letter stand-in when a team has no artwork — "Real Madrid" → RM.
45
+ * Spread, not `word[0]`: an emoji or astral first character is a surrogate pair
46
+ * and indexing it renders a replacement glyph. */
47
+ const initials = (name) => name.split(/\s+/).slice(0, 2).map((word) => [...word][0]).join("").toUpperCase();
48
+ /** Teams · score, in the order they were played. The round is prepended by the
49
+ * caller that has it, so the round list can reuse this without repeating it. */
50
+ function matchLabel(match) {
51
+ const teams = `${teamName(match.home)} v ${teamName(match.away)}`;
52
+ if (match.home.score == null || match.away.score == null) return teams;
53
+ const pens = match.home.penalties != null && match.away.penalties != null ? ` (${match.home.penalties}–${match.away.penalties} pens)` : "";
54
+ return `${teams} · ${match.home.score}–${match.away.score}${pens}`;
55
+ }
56
+ /** Walks the match tree from the final outward, laying every node on a ring and
57
+ * splitting each parent's wedge between its two feeders. */
58
+ function buildWheel(rounds) {
59
+ const nodes = [];
60
+ const links = [];
61
+ const layers = rounds.length;
62
+ const ringR = (depth) => depth / layers * OUTER_R;
63
+ const nodeR = (depth) => NODE_MIN + (depth - 1) * NODE_STEP;
64
+ const final = rounds[layers - 1]?.matches[0];
65
+ if (!final) return {
66
+ nodes,
67
+ links,
68
+ champion: null
69
+ };
70
+ const champion = final.winner ? final[final.winner].team : null;
71
+ nodes.push({
72
+ id: final.id,
73
+ parentId: null,
74
+ depth: 0,
75
+ angle: HUB_ANGLE,
76
+ x: CENTER,
77
+ y: CENTER,
78
+ r: HUB_R,
79
+ team: champion,
80
+ label: matchLabel(final),
81
+ round: rounds[layers - 1].name
82
+ });
83
+ const walk = (match, roundIndex, index, parent, angle, wedge) => {
84
+ const depth = parent.depth + 1;
85
+ const radius = ringR(depth);
86
+ const r = nodeR(depth);
87
+ const offset = wedge / 4 * (parent.depth === 0 ? 1 : SIBLING_GAP);
88
+ const angles = [angle - offset, angle + offset];
89
+ const sides = ["home", "away"];
90
+ const children = angles.map((childAngle, side) => {
91
+ const { x, y } = polar(radius, childAngle);
92
+ const feeder = roundIndex > 0 ? rounds[roundIndex - 1].matches[2 * index + side] : void 0;
93
+ const node = feeder ? {
94
+ id: feeder.id,
95
+ parentId: parent.id,
96
+ depth,
97
+ angle: childAngle,
98
+ x,
99
+ y,
100
+ r,
101
+ team: feeder.winner ? feeder[feeder.winner].team : null,
102
+ label: matchLabel(feeder),
103
+ round: rounds[roundIndex - 1].name
104
+ } : {
105
+ id: `${match.id}-${sides[side]}`,
106
+ parentId: parent.id,
107
+ depth,
108
+ angle: childAngle,
109
+ x,
110
+ y,
111
+ r,
112
+ team: match[sides[side]].team,
113
+ label: match[sides[side]].team?.name ?? "TBD",
114
+ round: null
115
+ };
116
+ nodes.push(node);
117
+ return {
118
+ node,
119
+ angle: childAngle,
120
+ feeder
121
+ };
122
+ });
123
+ if (parent.depth === 0) for (const child of children) links.push({
124
+ id: `${parent.id}-${child.node.id}`,
125
+ d: `M ${point(radius, child.angle)} L ${CENTER} ${CENTER}`,
126
+ depth
127
+ });
128
+ else {
129
+ const midR = (ringR(parent.depth) + radius) / 2;
130
+ links.push({
131
+ id: `${parent.id}-arc`,
132
+ d: `M ${point(radius, angles[0])} L ${point(midR, angles[0])} A ${midR} ${midR} 0 0 1 ${point(midR, angles[1])} L ${point(radius, angles[1])}`,
133
+ depth
134
+ });
135
+ links.push({
136
+ id: `${parent.id}-stem`,
137
+ d: `M ${point(midR, angle)} L ${point(ringR(parent.depth), angle)}`,
138
+ depth
139
+ });
140
+ }
141
+ for (const [side, child] of children.entries()) if (child.feeder) walk(child.feeder, roundIndex - 1, 2 * index + side, child.node, child.angle, wedge / 2);
142
+ };
143
+ walk(final, layers - 1, 0, nodes[0], HUB_ANGLE, 360);
144
+ return {
145
+ nodes,
146
+ links,
147
+ champion
148
+ };
149
+ }
150
+ /** Match ids from the hub down to the champion's first-round win. */
151
+ function championPath(rounds) {
152
+ const path = /* @__PURE__ */ new Set();
153
+ let index = 0;
154
+ for (let r = rounds.length - 1; r >= 0; r--) {
155
+ const match = rounds[r].matches[index];
156
+ if (!match?.winner) return path;
157
+ path.add(match.id);
158
+ if (r === 0) path.add(`${match.id}-${match.winner}`);
159
+ index = 2 * index + (match.winner === "home" ? 0 : 1);
160
+ }
161
+ return path;
162
+ }
163
+ function TeamMark({ node, clipId, lit, dimmed, loadFlag, transition }) {
164
+ const [failedSrc, setFailedSrc] = useState(null);
165
+ const resolved = node.team ? crestSrc(node.team) : null;
166
+ const src = resolved === failedSrc ? null : resolved;
167
+ const showFlag = src != null && loadFlag;
168
+ const box = node.team?.logo ? {
169
+ w: node.r * 1.44,
170
+ h: node.r * 1.44,
171
+ fit: "xMidYMid meet"
172
+ } : {
173
+ w: node.r * 2.68,
174
+ h: node.r * 2,
175
+ fit: "xMidYMid slice"
176
+ };
177
+ const fade = { opacity: dimmed ? .38 : 1 };
178
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
179
+ /* @__PURE__ */ jsx("circle", {
180
+ cx: node.x,
181
+ cy: node.y,
182
+ r: node.r,
183
+ className: "fill-card"
184
+ }),
185
+ showFlag && node.team ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("clipPath", {
186
+ id: clipId,
187
+ children: /* @__PURE__ */ jsx("circle", {
188
+ cx: node.x,
189
+ cy: node.y,
190
+ r: node.r
191
+ })
192
+ }), /* @__PURE__ */ jsx(motion.image, {
193
+ href: src,
194
+ x: node.x - box.w / 2,
195
+ y: node.y - box.h / 2,
196
+ width: box.w,
197
+ height: box.h,
198
+ clipPath: `url(#${clipId})`,
199
+ preserveAspectRatio: box.fit,
200
+ initial: false,
201
+ animate: fade,
202
+ transition,
203
+ onError: () => setFailedSrc(src)
204
+ })] }) : node.team ? /* @__PURE__ */ jsx(motion.text, {
205
+ x: node.x,
206
+ y: node.y,
207
+ textAnchor: "middle",
208
+ dominantBaseline: "central",
209
+ fontSize: Math.max(node.r * .8, INITIALS_MIN),
210
+ initial: false,
211
+ animate: fade,
212
+ transition,
213
+ className: "fill-muted-foreground font-semibold",
214
+ children: initials(node.team.name)
215
+ }) : /* @__PURE__ */ jsx(motion.g, {
216
+ initial: false,
217
+ animate: fade,
218
+ transition,
219
+ children: /* @__PURE__ */ jsx(Shield, {
220
+ x: node.x - node.r * .7,
221
+ y: node.y - node.r * .7,
222
+ width: node.r * 1.4,
223
+ height: node.r * 1.4,
224
+ className: "fill-current text-muted-foreground/50"
225
+ })
226
+ }),
227
+ /* @__PURE__ */ jsx("circle", {
228
+ cx: node.x,
229
+ cy: node.y,
230
+ r: node.r,
231
+ fill: "none",
232
+ strokeWidth: lit ? 2 : 1,
233
+ className: lit ? "stroke-foreground" : "stroke-border"
234
+ })
235
+ ] });
236
+ }
237
+ /** Memoized so pointing at one flag re-renders two marks, not all 63. */
238
+ const WheelMark = memo(function WheelMark({ node, isLit, dimmed, loadFlag, reduce, enter, showTrophy, clipId }) {
239
+ return /* @__PURE__ */ jsxs(motion.g, {
240
+ initial: reduce ? false : {
241
+ opacity: 0,
242
+ scale: .6
243
+ },
244
+ animate: {
245
+ opacity: 1,
246
+ scale: 1
247
+ },
248
+ transition: enter,
249
+ style: { transformOrigin: `${node.x}px ${node.y}px` },
250
+ children: [showTrophy && /* @__PURE__ */ jsx("g", {
251
+ transform: `translate(${CENTER - TROPHY_SIZE / 2}, 316)`,
252
+ children: /* @__PURE__ */ jsx("path", {
253
+ d: TROPHY_PATH,
254
+ className: "fill-warning"
255
+ })
256
+ }), /* @__PURE__ */ jsx(TeamMark, {
257
+ node,
258
+ clipId,
259
+ lit: isLit,
260
+ dimmed,
261
+ loadFlag,
262
+ transition: reduce ? NO_TRANSITION : DIM_TRANSITION
263
+ })]
264
+ });
265
+ });
266
+ /** Invisible hit area over one flag: hover, tap, focus and arrow keys. */
267
+ const WheelAnchor = memo(function WheelAnchor({ node, caption, isTabStop, isPinned, canHover, uid, onHover, onFocusNode, onToggle, onKey }) {
268
+ const size = pct(node.r * 2);
269
+ const tap = useTapGesture();
270
+ const hover = useHoverGesture();
271
+ const trigger = /* @__PURE__ */ jsx("button", {
272
+ type: "button",
273
+ id: `${uid}-${node.id}`,
274
+ tabIndex: isTabStop ? 0 : -1,
275
+ "aria-label": caption,
276
+ onKeyDown: (event) => {
277
+ tap.drop();
278
+ if (!event.key.startsWith("Arrow")) return;
279
+ event.preventDefault();
280
+ onKey(node, event.key);
281
+ },
282
+ onFocusCapture: () => onFocusNode(node.id),
283
+ onBlurCapture: () => onFocusNode(null),
284
+ onPointerEnter: (event) => {
285
+ if (hover.enter(event)) onHover(node.id);
286
+ },
287
+ onPointerLeave: (event) => {
288
+ if (hover.leave(event)) onHover(null);
289
+ },
290
+ onPointerDown: (event) => {
291
+ tap.start(event, isPinned);
292
+ },
293
+ onPointerCancel: tap.drop,
294
+ onClick: (event) => {
295
+ const gesture = tap.take();
296
+ if (!gesture || gesture.pointerType === "mouse") return;
297
+ onToggle(node.id);
298
+ if (gesture.state) event.currentTarget.blur();
299
+ },
300
+ className: "block h-full w-full rounded-full outline-none focus-visible:ring-2 focus-visible:ring-foreground focus-visible:ring-offset-2 focus-visible:ring-offset-background"
301
+ });
302
+ return /* @__PURE__ */ jsx("div", {
303
+ className: "absolute",
304
+ style: {
305
+ left: pct(node.x - node.r),
306
+ top: pct(node.y - node.r),
307
+ width: size,
308
+ height: size
309
+ },
310
+ children: canHover ? /* @__PURE__ */ jsx(Tooltip, {
311
+ content: caption,
312
+ side: "top",
313
+ className: "wrap-break-word max-w-[20rem] whitespace-normal text-balance text-center",
314
+ children: trigger
315
+ }) : trigger
316
+ });
317
+ });
318
+ function KnockoutWheel({ rounds, initialRound = 0, className }) {
319
+ const reduce = useReducedMotion();
320
+ const canHover = useHoverCapable();
321
+ const uid = useId().replace(/:/g, "");
322
+ const ref = useRef(null);
323
+ const stageRef = useRef(null);
324
+ const inView = useInView(ref, {
325
+ once: true,
326
+ margin: "300px"
327
+ });
328
+ const [hovered, setHovered] = useState(null);
329
+ const [pinned, setPinned] = useState(null);
330
+ const [focused, setFocused] = useState(null);
331
+ const active = hovered ?? pinned ?? focused;
332
+ const visible = useMemo(() => {
333
+ const from = Math.min(Math.max(initialRound, 0), Math.max(rounds.length - 1, 0));
334
+ return from > 0 ? rounds.slice(from) : rounds;
335
+ }, [rounds, initialRound]);
336
+ const { nodes, links, champion } = useMemo(() => buildWheel(visible), [visible]);
337
+ const winners = useMemo(() => championPath(visible), [visible]);
338
+ const activeNode = useMemo(() => nodes.find((node) => node.id === active), [active, nodes]);
339
+ const lit = useMemo(() => activeNode ? /* @__PURE__ */ new Set([activeNode.id]) : winners, [activeNode, winners]);
340
+ const enter = useMemo(() => reduce ? {
341
+ duration: 0,
342
+ opacity: { duration: 0 }
343
+ } : {
344
+ ...SPRING_PANEL,
345
+ opacity: { duration: .24 }
346
+ }, [reduce]);
347
+ const enterFor = useMemo(() => {
348
+ const cache = /* @__PURE__ */ new Map();
349
+ return (depth) => {
350
+ const hit = cache.get(depth);
351
+ if (hit) return hit;
352
+ const value = {
353
+ ...enter,
354
+ delay: reduce ? 0 : depth * .06
355
+ };
356
+ cache.set(depth, value);
357
+ return value;
358
+ };
359
+ }, [enter, reduce]);
360
+ const tapped = canHover ? void 0 : activeNode;
361
+ const tapAbove = tapped ? tapped.y > CENTER : false;
362
+ const { ring, firstChild } = useMemo(() => {
363
+ const byDepth = /* @__PURE__ */ new Map();
364
+ const child = /* @__PURE__ */ new Map();
365
+ for (const node of nodes) {
366
+ const peers = byDepth.get(node.depth) ?? [];
367
+ peers.push(node);
368
+ byDepth.set(node.depth, peers);
369
+ if (node.parentId && !child.has(node.parentId)) child.set(node.parentId, node);
370
+ }
371
+ for (const peers of byDepth.values()) peers.sort((a, b) => a.angle - b.angle);
372
+ return {
373
+ ring: byDepth,
374
+ firstChild: child
375
+ };
376
+ }, [nodes]);
377
+ const tabStop = activeNode?.id ?? nodes[0]?.id;
378
+ const onKey = useCallback((node, key) => {
379
+ if (!key.startsWith("Arrow")) return;
380
+ const target = key === "ArrowUp" ? nodes.find((peer) => peer.id === node.parentId) : key === "ArrowDown" ? firstChild.get(node.id) : (() => {
381
+ const peers = ring.get(node.depth) ?? [];
382
+ if (peers.length < 2) return void 0;
383
+ const at = peers.indexOf(node);
384
+ return peers[((key === "ArrowRight" ? at + 1 : at - 1) + peers.length) % peers.length];
385
+ })();
386
+ if (!target) return;
387
+ document.getElementById(`${uid}-${target.id}`)?.focus();
388
+ }, [
389
+ nodes,
390
+ ring,
391
+ firstChild,
392
+ uid
393
+ ]);
394
+ const onToggle = useCallback((id) => setPinned((current) => current === id ? null : id), []);
395
+ const onFlag = useCallback((target) => Boolean(stageRef.current?.contains(target) && target.closest("button")), []);
396
+ const unpin = useCallback(() => {
397
+ setPinned(null);
398
+ const focus = document.activeElement;
399
+ if (focus instanceof HTMLElement && stageRef.current?.contains(focus)) focus.blur();
400
+ }, []);
401
+ useDismiss(pinned !== null, unpin, null, {
402
+ behavior: "consume",
403
+ ignore: onFlag
404
+ });
405
+ const captions = useMemo(() => new Map(nodes.map((node) => [node.id, node.team == null ? "TBD" : node.round ? `${keepTogether(node.round)} · ${node.label}` : node.team.name])), [nodes]);
406
+ return /* @__PURE__ */ jsxs("div", {
407
+ className: cn("w-full max-w-full overflow-x-auto overscroll-x-contain", className),
408
+ children: [/* @__PURE__ */ jsxs("div", {
409
+ ref: stageRef,
410
+ className: "relative mx-auto w-full min-w-[32rem] max-w-[34rem]",
411
+ children: [
412
+ /* @__PURE__ */ jsxs("svg", {
413
+ ref,
414
+ viewBox: `0 0 ${SIZE} ${SIZE}`,
415
+ role: "img",
416
+ "aria-label": `Tournament wheel${champion ? `, won by ${champion.name}` : ""}`,
417
+ className: "h-auto w-full touch-manipulation",
418
+ children: [
419
+ /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs("radialGradient", {
420
+ id: `${uid}-glow`,
421
+ children: [
422
+ /* @__PURE__ */ jsx("stop", {
423
+ offset: "0%",
424
+ stopColor: "var(--color-warning)",
425
+ stopOpacity: "0.14"
426
+ }),
427
+ /* @__PURE__ */ jsx("stop", {
428
+ offset: "45%",
429
+ stopColor: "var(--color-warning)",
430
+ stopOpacity: "0.04"
431
+ }),
432
+ /* @__PURE__ */ jsx("stop", {
433
+ offset: "100%",
434
+ stopColor: "var(--color-warning)",
435
+ stopOpacity: "0"
436
+ })
437
+ ]
438
+ }) }),
439
+ champion && /* @__PURE__ */ jsx("circle", {
440
+ cx: CENTER,
441
+ cy: CENTER,
442
+ r: OUTER_R * .62,
443
+ fill: `url(#${uid}-glow)`
444
+ }),
445
+ /* @__PURE__ */ jsx("g", { children: links.map((link) => /* @__PURE__ */ jsx(motion.path, {
446
+ d: link.d,
447
+ fill: "none",
448
+ initial: reduce ? false : { opacity: 0 },
449
+ animate: { opacity: 1 },
450
+ transition: {
451
+ duration: .3,
452
+ delay: link.depth * .06
453
+ },
454
+ className: "stroke-border-strong"
455
+ }, link.id)) }),
456
+ nodes.map((node) => /* @__PURE__ */ jsx(WheelMark, {
457
+ node,
458
+ isLit: lit.has(node.id),
459
+ dimmed: lit.size > 0 && !lit.has(node.id),
460
+ loadFlag: inView,
461
+ reduce: Boolean(reduce),
462
+ enter: enterFor(node.depth),
463
+ showTrophy: node.depth === 0 && champion != null,
464
+ clipId: `${uid}-clip-${node.id}`
465
+ }, node.id))
466
+ ]
467
+ }),
468
+ nodes.map((node) => /* @__PURE__ */ jsx(WheelAnchor, {
469
+ node,
470
+ caption: captions.get(node.id) ?? "",
471
+ isTabStop: node.id === tabStop,
472
+ isPinned: node.id === pinned,
473
+ canHover,
474
+ uid,
475
+ onHover: setHovered,
476
+ onFocusNode: setFocused,
477
+ onToggle,
478
+ onKey
479
+ }, node.id)),
480
+ tapped && /* @__PURE__ */ jsx(motion.p, {
481
+ initial: reduce ? false : {
482
+ opacity: 0,
483
+ scale: .94
484
+ },
485
+ animate: {
486
+ opacity: 1,
487
+ scale: 1
488
+ },
489
+ transition: reduce ? NO_TRANSITION : DIM_TRANSITION,
490
+ style: {
491
+ left: pct(tapped.x),
492
+ top: pct(tapped.y + (tapAbove ? -tapped.r : tapped.r))
493
+ },
494
+ className: cn("wrap-break-word pointer-events-none absolute z-10 w-max max-w-[min(18rem,80vw)] -translate-x-1/2 text-balance rounded-lg border border-border bg-background px-2.5 py-1 text-center font-medium text-foreground text-xs shadow-lg", tapAbove ? "-translate-y-[calc(100%+8px)]" : "translate-y-2"),
495
+ children: captions.get(tapped.id)
496
+ })
497
+ ]
498
+ }), /* @__PURE__ */ jsx("div", {
499
+ className: "sr-only",
500
+ children: visible.slice().reverse().map((round) => /* @__PURE__ */ jsx("ul", {
501
+ "aria-label": round.name,
502
+ children: round.matches.map((match) => /* @__PURE__ */ jsx("li", { children: matchLabel(match) }, match.id))
503
+ }, round.name))
504
+ })]
505
+ });
506
+ }
507
+ const TEAMS = {
508
+ spain: {
509
+ name: "Spain",
510
+ code: "es"
511
+ },
512
+ japan: {
513
+ name: "Japan",
514
+ code: "jp"
515
+ },
516
+ netherlands: {
517
+ name: "Netherlands",
518
+ code: "nl"
519
+ },
520
+ portugal: {
521
+ name: "Portugal",
522
+ code: "pt"
523
+ },
524
+ england: {
525
+ name: "England",
526
+ code: "gb-eng"
527
+ },
528
+ uruguay: {
529
+ name: "Uruguay",
530
+ code: "uy"
531
+ },
532
+ croatia: {
533
+ name: "Croatia",
534
+ code: "hr"
535
+ },
536
+ brazil: {
537
+ name: "Brazil",
538
+ code: "br"
539
+ },
540
+ france: {
541
+ name: "France",
542
+ code: "fr"
543
+ },
544
+ morocco: {
545
+ name: "Morocco",
546
+ code: "ma"
547
+ },
548
+ belgium: {
549
+ name: "Belgium",
550
+ code: "be"
551
+ },
552
+ italy: {
553
+ name: "Italy",
554
+ code: "it"
555
+ },
556
+ argentina: {
557
+ name: "Argentina",
558
+ code: "ar"
559
+ },
560
+ mexico: {
561
+ name: "Mexico",
562
+ code: "mx"
563
+ },
564
+ germany: {
565
+ name: "Germany",
566
+ code: "de"
567
+ },
568
+ norway: {
569
+ name: "Norway",
570
+ code: "no"
571
+ },
572
+ costaRica: {
573
+ name: "Costa Rica",
574
+ code: "cr"
575
+ },
576
+ serbia: {
577
+ name: "Serbia",
578
+ code: "rs"
579
+ },
580
+ ecuador: {
581
+ name: "Ecuador",
582
+ code: "ec"
583
+ },
584
+ ghana: {
585
+ name: "Ghana",
586
+ code: "gh"
587
+ },
588
+ wales: {
589
+ name: "Wales",
590
+ code: "gb-wls"
591
+ },
592
+ canada: {
593
+ name: "Canada",
594
+ code: "ca"
595
+ },
596
+ denmark: {
597
+ name: "Denmark",
598
+ code: "dk"
599
+ },
600
+ cameroon: {
601
+ name: "Cameroon",
602
+ code: "cm"
603
+ },
604
+ poland: {
605
+ name: "Poland",
606
+ code: "pl"
607
+ },
608
+ senegal: {
609
+ name: "Senegal",
610
+ code: "sn"
611
+ },
612
+ tunisia: {
613
+ name: "Tunisia",
614
+ code: "tn"
615
+ },
616
+ switzerland: {
617
+ name: "Switzerland",
618
+ code: "ch"
619
+ },
620
+ peru: {
621
+ name: "Peru",
622
+ code: "pe"
623
+ },
624
+ qatar: {
625
+ name: "Qatar",
626
+ code: "qa"
627
+ },
628
+ sweden: {
629
+ name: "Sweden",
630
+ code: "se"
631
+ },
632
+ austria: {
633
+ name: "Austria",
634
+ code: "at"
635
+ }
636
+ };
637
+ const ROUNDS = [
638
+ {
639
+ name: "Round of 32",
640
+ matches: [
641
+ {
642
+ id: "w-r32-1",
643
+ home: {
644
+ team: TEAMS.spain,
645
+ score: 3
646
+ },
647
+ away: {
648
+ team: TEAMS.costaRica,
649
+ score: 0
650
+ },
651
+ winner: "home"
652
+ },
653
+ {
654
+ id: "w-r32-2",
655
+ home: {
656
+ team: TEAMS.japan,
657
+ score: 2
658
+ },
659
+ away: {
660
+ team: TEAMS.serbia,
661
+ score: 1
662
+ },
663
+ winner: "home"
664
+ },
665
+ {
666
+ id: "w-r32-3",
667
+ home: {
668
+ team: TEAMS.netherlands,
669
+ score: 2
670
+ },
671
+ away: {
672
+ team: TEAMS.ecuador,
673
+ score: 0
674
+ },
675
+ winner: "home"
676
+ },
677
+ {
678
+ id: "w-r32-4",
679
+ home: {
680
+ team: TEAMS.ghana,
681
+ score: 2
682
+ },
683
+ away: {
684
+ team: TEAMS.portugal,
685
+ score: 3
686
+ },
687
+ winner: "away"
688
+ },
689
+ {
690
+ id: "w-r32-5",
691
+ home: {
692
+ team: TEAMS.england,
693
+ score: 4
694
+ },
695
+ away: {
696
+ team: TEAMS.wales,
697
+ score: 0
698
+ },
699
+ winner: "home"
700
+ },
701
+ {
702
+ id: "w-r32-6",
703
+ home: {
704
+ team: TEAMS.canada,
705
+ score: 0
706
+ },
707
+ away: {
708
+ team: TEAMS.uruguay,
709
+ score: 2
710
+ },
711
+ winner: "away"
712
+ },
713
+ {
714
+ id: "w-r32-7",
715
+ home: {
716
+ team: TEAMS.croatia,
717
+ score: 1
718
+ },
719
+ away: {
720
+ team: TEAMS.denmark,
721
+ score: 0
722
+ },
723
+ winner: "home"
724
+ },
725
+ {
726
+ id: "w-r32-8",
727
+ home: {
728
+ team: TEAMS.brazil,
729
+ score: 3
730
+ },
731
+ away: {
732
+ team: TEAMS.cameroon,
733
+ score: 1
734
+ },
735
+ winner: "home"
736
+ },
737
+ {
738
+ id: "w-r32-9",
739
+ home: {
740
+ team: TEAMS.france,
741
+ score: 2
742
+ },
743
+ away: {
744
+ team: TEAMS.poland,
745
+ score: 1
746
+ },
747
+ winner: "home"
748
+ },
749
+ {
750
+ id: "w-r32-10",
751
+ home: {
752
+ team: TEAMS.senegal,
753
+ score: 0
754
+ },
755
+ away: {
756
+ team: TEAMS.morocco,
757
+ score: 1
758
+ },
759
+ winner: "away"
760
+ },
761
+ {
762
+ id: "w-r32-11",
763
+ home: {
764
+ team: TEAMS.belgium,
765
+ score: 2
766
+ },
767
+ away: {
768
+ team: TEAMS.tunisia,
769
+ score: 0
770
+ },
771
+ winner: "home"
772
+ },
773
+ {
774
+ id: "w-r32-12",
775
+ home: {
776
+ team: TEAMS.switzerland,
777
+ score: 1
778
+ },
779
+ away: {
780
+ team: TEAMS.italy,
781
+ score: 3
782
+ },
783
+ winner: "away"
784
+ },
785
+ {
786
+ id: "w-r32-13",
787
+ home: {
788
+ team: TEAMS.argentina,
789
+ score: 2
790
+ },
791
+ away: {
792
+ team: TEAMS.peru,
793
+ score: 0
794
+ },
795
+ winner: "home"
796
+ },
797
+ {
798
+ id: "w-r32-14",
799
+ home: {
800
+ team: TEAMS.qatar,
801
+ score: 0
802
+ },
803
+ away: {
804
+ team: TEAMS.mexico,
805
+ score: 1
806
+ },
807
+ winner: "away"
808
+ },
809
+ {
810
+ id: "w-r32-15",
811
+ home: {
812
+ team: TEAMS.germany,
813
+ score: 4
814
+ },
815
+ away: {
816
+ team: TEAMS.sweden,
817
+ score: 2
818
+ },
819
+ winner: "home"
820
+ },
821
+ {
822
+ id: "w-r32-16",
823
+ home: {
824
+ team: TEAMS.austria,
825
+ score: 1
826
+ },
827
+ away: {
828
+ team: TEAMS.norway,
829
+ score: 2
830
+ },
831
+ winner: "away"
832
+ }
833
+ ]
834
+ },
835
+ {
836
+ name: "Round of 16",
837
+ matches: [
838
+ {
839
+ id: "w-r16-1",
840
+ home: {
841
+ team: TEAMS.spain,
842
+ score: 2
843
+ },
844
+ away: {
845
+ team: TEAMS.japan,
846
+ score: 0
847
+ },
848
+ winner: "home"
849
+ },
850
+ {
851
+ id: "w-r16-2",
852
+ home: {
853
+ team: TEAMS.netherlands,
854
+ score: 1
855
+ },
856
+ away: {
857
+ team: TEAMS.portugal,
858
+ score: 3
859
+ },
860
+ winner: "away"
861
+ },
862
+ {
863
+ id: "w-r16-3",
864
+ home: {
865
+ team: TEAMS.england,
866
+ score: 2
867
+ },
868
+ away: {
869
+ team: TEAMS.uruguay,
870
+ score: 1
871
+ },
872
+ winner: "home"
873
+ },
874
+ {
875
+ id: "w-r16-4",
876
+ home: {
877
+ team: TEAMS.croatia,
878
+ score: 0
879
+ },
880
+ away: {
881
+ team: TEAMS.brazil,
882
+ score: 1
883
+ },
884
+ winner: "away"
885
+ },
886
+ {
887
+ id: "w-r16-5",
888
+ home: {
889
+ team: TEAMS.france,
890
+ score: 3
891
+ },
892
+ away: {
893
+ team: TEAMS.morocco,
894
+ score: 1
895
+ },
896
+ winner: "home"
897
+ },
898
+ {
899
+ id: "w-r16-6",
900
+ home: {
901
+ team: TEAMS.belgium,
902
+ score: 1
903
+ },
904
+ away: {
905
+ team: TEAMS.italy,
906
+ score: 2
907
+ },
908
+ winner: "away"
909
+ },
910
+ {
911
+ id: "w-r16-7",
912
+ home: {
913
+ team: TEAMS.argentina,
914
+ score: 2
915
+ },
916
+ away: {
917
+ team: TEAMS.mexico,
918
+ score: 0
919
+ },
920
+ winner: "home"
921
+ },
922
+ {
923
+ id: "w-r16-8",
924
+ home: {
925
+ team: TEAMS.germany,
926
+ score: 1,
927
+ penalties: 4
928
+ },
929
+ away: {
930
+ team: TEAMS.norway,
931
+ score: 1,
932
+ penalties: 2
933
+ },
934
+ winner: "home"
935
+ }
936
+ ]
937
+ },
938
+ {
939
+ name: "Quarter-finals",
940
+ matches: [
941
+ {
942
+ id: "w-qf-1",
943
+ home: {
944
+ team: TEAMS.spain,
945
+ score: 1
946
+ },
947
+ away: {
948
+ team: TEAMS.portugal,
949
+ score: 0
950
+ },
951
+ winner: "home"
952
+ },
953
+ {
954
+ id: "w-qf-2",
955
+ home: {
956
+ team: TEAMS.england,
957
+ score: 2
958
+ },
959
+ away: {
960
+ team: TEAMS.brazil,
961
+ score: 3
962
+ },
963
+ winner: "away"
964
+ },
965
+ {
966
+ id: "w-qf-3",
967
+ home: {
968
+ team: TEAMS.france,
969
+ score: 2
970
+ },
971
+ away: {
972
+ team: TEAMS.italy,
973
+ score: 1
974
+ },
975
+ winner: "home"
976
+ },
977
+ {
978
+ id: "w-qf-4",
979
+ home: {
980
+ team: TEAMS.argentina,
981
+ score: 3
982
+ },
983
+ away: {
984
+ team: TEAMS.germany,
985
+ score: 1
986
+ },
987
+ winner: "home"
988
+ }
989
+ ]
990
+ },
991
+ {
992
+ name: "Semi-finals",
993
+ matches: [{
994
+ id: "w-sf-1",
995
+ home: {
996
+ team: TEAMS.spain,
997
+ score: 2
998
+ },
999
+ away: {
1000
+ team: TEAMS.brazil,
1001
+ score: 1
1002
+ },
1003
+ winner: "home"
1004
+ }, {
1005
+ id: "w-sf-2",
1006
+ home: {
1007
+ team: TEAMS.france,
1008
+ score: 0,
1009
+ penalties: 3
1010
+ },
1011
+ away: {
1012
+ team: TEAMS.argentina,
1013
+ score: 0,
1014
+ penalties: 4
1015
+ },
1016
+ winner: "away"
1017
+ }]
1018
+ },
1019
+ {
1020
+ name: "Final",
1021
+ matches: [{
1022
+ id: "w-f-1",
1023
+ home: {
1024
+ team: TEAMS.spain,
1025
+ score: 2
1026
+ },
1027
+ away: {
1028
+ team: TEAMS.argentina,
1029
+ score: 1
1030
+ },
1031
+ winner: "home"
1032
+ }]
1033
+ }
1034
+ ];
1035
+ //#endregion
1036
+ export { KnockoutWheel, ROUNDS, TEAMS };
1037
+
1038
+ //# sourceMappingURL=knockout-wheel.js.map