@vllnt/ui 0.2.1 → 0.3.0-canary.f3cafe8

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 (325) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +59 -30
  3. package/dist/components/accordion/accordion.js +2 -2
  4. package/dist/components/activity-heatmap/activity-heatmap.js +17 -14
  5. package/dist/components/activity-log/activity-log.js +12 -11
  6. package/dist/components/agent-activity/agent-activity.js +317 -0
  7. package/dist/components/agent-activity/index.js +18 -0
  8. package/dist/components/ai-artifact/ai-artifact.js +439 -0
  9. package/dist/components/ai-artifact/index.js +24 -0
  10. package/dist/components/ai-chat-input/ai-chat-input.js +6 -4
  11. package/dist/components/ai-message-bubble/ai-message-bubble.js +3 -3
  12. package/dist/components/ai-sidebar/ai-sidebar.js +255 -0
  13. package/dist/components/ai-sidebar/index.js +22 -0
  14. package/dist/components/ai-source-citation/ai-source-citation.js +2 -2
  15. package/dist/components/ai-tool-call-display/ai-tool-call-display.js +5 -5
  16. package/dist/components/alert-pulse/alert-pulse.js +93 -0
  17. package/dist/components/alert-pulse/index.js +6 -0
  18. package/dist/components/anchor-port/anchor-port.js +51 -0
  19. package/dist/components/anchor-port/index.js +4 -0
  20. package/dist/components/animated-text/animated-text.js +8 -7
  21. package/dist/components/annotation/annotation.js +1 -1
  22. package/dist/components/auto-reload/auto-reload.js +401 -0
  23. package/dist/components/auto-reload/index.js +6 -0
  24. package/dist/components/avatar/avatar.js +1 -1
  25. package/dist/components/avatar-group/avatar-group.js +5 -5
  26. package/dist/components/banner/banner.js +155 -0
  27. package/dist/components/banner/index.js +10 -0
  28. package/dist/components/blog-card/blog-card.js +5 -3
  29. package/dist/components/border-beam/border-beam.js +2 -2
  30. package/dist/components/bottom-activity-strip/bottom-activity-strip.js +91 -0
  31. package/dist/components/bottom-activity-strip/index.js +6 -0
  32. package/dist/components/bottom-bar/bottom-bar.js +25 -0
  33. package/dist/components/bottom-bar/index.js +4 -0
  34. package/dist/components/breadcrumb/breadcrumb.js +33 -26
  35. package/dist/components/button/button.js +1 -1
  36. package/dist/components/calendar/calendar.js +6 -6
  37. package/dist/components/callout/callout.js +1 -1
  38. package/dist/components/candlestick-chart/candlestick-chart.js +13 -12
  39. package/dist/components/canvas-shell/canvas-foundation-demo.js +183 -0
  40. package/dist/components/canvas-shell/canvas-shell-route-config.js +0 -0
  41. package/dist/components/canvas-shell/canvas-shell.js +261 -0
  42. package/dist/components/canvas-shell/index.js +4 -0
  43. package/dist/components/canvas-view/canvas-view.js +504 -0
  44. package/dist/components/canvas-view/index.js +6 -0
  45. package/dist/components/carousel/carousel.js +18 -10
  46. package/dist/components/category-filter/category-filter.js +1 -1
  47. package/dist/components/chart/area-chart.js +1 -0
  48. package/dist/components/chart/line-chart.js +1 -0
  49. package/dist/components/chat-dock-section/chat-dock-section.js +56 -0
  50. package/dist/components/chat-dock-section/index.js +6 -0
  51. package/dist/components/checkbox/checkbox.js +2 -2
  52. package/dist/components/checklist/checklist.js +45 -10
  53. package/dist/components/checklist/index.js +10 -2
  54. package/dist/components/choropleth-map/choropleth-map.js +378 -0
  55. package/dist/components/choropleth-map/index.js +10 -0
  56. package/dist/components/chronological-timeline/chronological-timeline.js +343 -0
  57. package/dist/components/chronological-timeline/index.js +8 -0
  58. package/dist/components/civilization-card/civilization-card.js +275 -0
  59. package/dist/components/civilization-card/index.js +8 -0
  60. package/dist/components/code-block/code-block.js +33 -12
  61. package/dist/components/code-playground/code-playground.js +12 -9
  62. package/dist/components/combobox/combobox.js +49 -30
  63. package/dist/components/command/command.js +1 -1
  64. package/dist/components/comment-pin/comment-pin.js +104 -0
  65. package/dist/components/comment-pin/index.js +6 -0
  66. package/dist/components/comparison/comparison.js +11 -10
  67. package/dist/components/completion-dialog/completion-dialog.js +20 -12
  68. package/dist/components/connector-edge/connector-edge.js +66 -0
  69. package/dist/components/connector-edge/index.js +6 -0
  70. package/dist/components/content-intro/content-intro.js +25 -21
  71. package/dist/components/context-lens/context-lens.js +98 -0
  72. package/dist/components/context-lens/index.js +6 -0
  73. package/dist/components/context-menu/context-menu.js +4 -4
  74. package/dist/components/conversation-thread/conversation-thread.js +348 -0
  75. package/dist/components/conversation-thread/index.js +20 -0
  76. package/dist/components/cookie-consent/cookie-consent.js +1 -1
  77. package/dist/components/copy-button/copy-button.js +189 -0
  78. package/dist/components/copy-button/index.js +8 -0
  79. package/dist/components/countdown-timer/countdown-timer.js +10 -9
  80. package/dist/components/credit-badge/credit-badge.js +1 -7
  81. package/dist/components/curriculum/curriculum.js +349 -0
  82. package/dist/components/curriculum/index.js +10 -0
  83. package/dist/components/data-list/data-list.js +2 -1
  84. package/dist/components/data-table/data-table.js +10 -9
  85. package/dist/components/date-picker/date-picker.js +4 -9
  86. package/dist/components/dialog/dialog.js +1 -1
  87. package/dist/components/document-sibling-nav/document-sibling-nav.js +111 -0
  88. package/dist/components/document-sibling-nav/index.js +8 -0
  89. package/dist/components/dropdown-menu/dropdown-menu.js +3 -3
  90. package/dist/components/edge-label/edge-label.js +26 -0
  91. package/dist/components/edge-label/index.js +4 -0
  92. package/dist/components/empty-state/empty-state.js +93 -0
  93. package/dist/components/empty-state/index.js +8 -0
  94. package/dist/components/era-comparison/era-comparison.js +216 -0
  95. package/dist/components/era-comparison/index.js +16 -0
  96. package/dist/components/exercise/exercise.js +15 -7
  97. package/dist/components/faq/faq.js +8 -4
  98. package/dist/components/file-upload/file-upload.js +4 -9
  99. package/dist/components/filter-bar/filter-bar.js +9 -8
  100. package/dist/components/flashcard/flashcard.js +10 -4
  101. package/dist/components/floating-action-button/floating-action-button.js +1 -1
  102. package/dist/components/floating-toolbar/floating-toolbar.js +66 -0
  103. package/dist/components/floating-toolbar/index.js +6 -0
  104. package/dist/components/flow-diagram/flow-controls.js +9 -9
  105. package/dist/components/flow-diagram/flow-error-boundary.js +2 -2
  106. package/dist/components/flow-diagram/flow-fullscreen.js +2 -2
  107. package/dist/components/follow-mode/follow-mode.js +89 -0
  108. package/dist/components/follow-mode/index.js +6 -0
  109. package/dist/components/form/form.js +432 -0
  110. package/dist/components/form/index.js +20 -0
  111. package/dist/components/gantt-chart/gantt-chart.js +334 -0
  112. package/dist/components/gantt-chart/index.js +6 -0
  113. package/dist/components/geography-quiz-map/geography-quiz-map.js +344 -0
  114. package/dist/components/geography-quiz-map/index.js +12 -0
  115. package/dist/components/glass-panel/glass-panel.js +21 -0
  116. package/dist/components/glass-panel/index.js +4 -0
  117. package/dist/components/globe-3d/globe-3d.js +429 -0
  118. package/dist/components/globe-3d/index.js +10 -0
  119. package/dist/components/group-hull/group-hull.js +29 -0
  120. package/dist/components/group-hull/index.js +4 -0
  121. package/dist/components/handoff-beacon/handoff-beacon.js +78 -0
  122. package/dist/components/handoff-beacon/index.js +6 -0
  123. package/dist/components/heat-map-overlay/heat-map-overlay.js +215 -0
  124. package/dist/components/heat-map-overlay/index.js +6 -0
  125. package/dist/components/heat-overlay/heat-overlay.js +92 -0
  126. package/dist/components/heat-overlay/index.js +6 -0
  127. package/dist/components/historic-timeline/historic-timeline.js +342 -0
  128. package/dist/components/historic-timeline/index.js +6 -0
  129. package/dist/components/historical-figure-card/historical-figure-card.js +270 -0
  130. package/dist/components/historical-figure-card/index.js +6 -0
  131. package/dist/components/horizontal-scroll-row/horizontal-scroll-row.js +6 -5
  132. package/dist/components/index.js +570 -1
  133. package/dist/components/infinite-plane/index.js +6 -0
  134. package/dist/components/infinite-plane/infinite-plane.js +75 -0
  135. package/dist/components/inline-input/inline-input.js +1 -1
  136. package/dist/components/input-otp/input-otp.js +1 -1
  137. package/dist/components/interactive-timeline/index.js +16 -0
  138. package/dist/components/interactive-timeline/interactive-timeline.js +724 -0
  139. package/dist/components/jarvis-dock/index.js +6 -0
  140. package/dist/components/jarvis-dock/jarvis-dock.js +98 -0
  141. package/dist/components/kbd/index.js +5 -0
  142. package/dist/components/kbd/kbd.js +125 -0
  143. package/dist/components/key-concept/key-concept.js +6 -5
  144. package/dist/components/keyboard-shortcuts-help/keyboard-shortcuts-help.js +4 -3
  145. package/dist/components/knowledge-check/index.js +6 -0
  146. package/dist/components/knowledge-check/knowledge-check.js +473 -0
  147. package/dist/components/lang-provider/lang-provider.js +3 -3
  148. package/dist/components/learning-objectives/learning-objectives.js +14 -13
  149. package/dist/components/left-rail/index.js +4 -0
  150. package/dist/components/left-rail/left-rail.js +25 -0
  151. package/dist/components/live-cursor/index.js +6 -0
  152. package/dist/components/live-cursor/live-cursor.js +62 -0
  153. package/dist/components/live-feed/live-feed.js +18 -16
  154. package/dist/components/map-2d/index.js +20 -0
  155. package/dist/components/map-2d/map-2d.js +455 -0
  156. package/dist/components/map-timeline/index.js +16 -0
  157. package/dist/components/map-timeline/map-timeline.js +506 -0
  158. package/dist/components/market-treemap/market-treemap.js +3 -3
  159. package/dist/components/mdx-content/mdx-content.js +21 -10
  160. package/dist/components/menubar/menubar.js +4 -4
  161. package/dist/components/metric-cluster/index.js +6 -0
  162. package/dist/components/metric-cluster/metric-cluster.js +96 -0
  163. package/dist/components/metric-gauge/metric-gauge.js +3 -3
  164. package/dist/components/mini-map-panel/index.js +6 -0
  165. package/dist/components/mini-map-panel/mini-map-panel.js +74 -0
  166. package/dist/components/model-comparison/index.js +12 -0
  167. package/dist/components/model-comparison/model-comparison.js +230 -0
  168. package/dist/components/model-selector/model-selector.js +8 -8
  169. package/dist/components/multi-select/index.js +6 -0
  170. package/dist/components/multi-select/multi-select.js +258 -0
  171. package/dist/components/multi-select-lasso/index.js +6 -0
  172. package/dist/components/multi-select-lasso/multi-select-lasso.js +76 -0
  173. package/dist/components/navbar-saas/navbar-saas.js +11 -10
  174. package/dist/components/navigation-menu/navigation-menu.js +2 -2
  175. package/dist/components/newsletter-signup/index.js +8 -0
  176. package/dist/components/newsletter-signup/newsletter-signup.js +269 -0
  177. package/dist/components/number-input/number-input.js +2 -2
  178. package/dist/components/number-ticker/number-ticker.js +11 -4
  179. package/dist/components/object-card/index.js +6 -0
  180. package/dist/components/object-card/object-card.js +126 -0
  181. package/dist/components/object-handle/index.js +4 -0
  182. package/dist/components/object-handle/object-handle.js +38 -0
  183. package/dist/components/object-inspector/index.js +6 -0
  184. package/dist/components/object-inspector/object-inspector.js +136 -0
  185. package/dist/components/order-book/order-book.js +2 -2
  186. package/dist/components/overview-board/index.js +8 -0
  187. package/dist/components/overview-board/overview-board.js +127 -0
  188. package/dist/components/parallel-timeline/index.js +6 -0
  189. package/dist/components/parallel-timeline/parallel-timeline.js +251 -0
  190. package/dist/components/password-input/password-input.js +1 -1
  191. package/dist/components/plan-badge/plan-badge.js +1 -7
  192. package/dist/components/playback-ghost/index.js +6 -0
  193. package/dist/components/playback-ghost/playback-ghost.js +83 -0
  194. package/dist/components/policy-delivery-panel/index.js +6 -0
  195. package/dist/components/policy-delivery-panel/policy-delivery-panel.js +99 -0
  196. package/dist/components/presence-stack/index.js +6 -0
  197. package/dist/components/presence-stack/presence-stack.js +108 -0
  198. package/dist/components/presence-sync-indicator/index.js +6 -0
  199. package/dist/components/presence-sync-indicator/presence-sync-indicator.js +73 -0
  200. package/dist/components/pricing-table/index.js +8 -0
  201. package/dist/components/pricing-table/pricing-table.js +284 -0
  202. package/dist/components/primary-source-viewer/index.js +26 -0
  203. package/dist/components/primary-source-viewer/primary-source-viewer.js +439 -0
  204. package/dist/components/pro-tip/pro-tip.js +6 -6
  205. package/dist/components/profile-section/profile-section.js +3 -2
  206. package/dist/components/progress-card/progress-card.js +6 -5
  207. package/dist/components/progress-tracker/index.js +20 -0
  208. package/dist/components/progress-tracker/progress-tracker.js +537 -0
  209. package/dist/components/prompt-templates/index.js +6 -0
  210. package/dist/components/prompt-templates/prompt-templates.js +395 -0
  211. package/dist/components/property-section/index.js +6 -0
  212. package/dist/components/property-section/property-section.js +101 -0
  213. package/dist/components/quiz/quiz.js +7 -6
  214. package/dist/components/radio-group/radio-group.js +2 -2
  215. package/dist/components/rating/rating.js +3 -3
  216. package/dist/components/relationship-inspector/index.js +6 -0
  217. package/dist/components/relationship-inspector/relationship-inspector.js +102 -0
  218. package/dist/components/resizable/resizable.js +1 -1
  219. package/dist/components/right-dock/index.js +4 -0
  220. package/dist/components/right-dock/right-dock.js +28 -0
  221. package/dist/components/route-map/index.js +6 -0
  222. package/dist/components/route-map/route-map.js +339 -0
  223. package/dist/components/routing-assignment-panel/index.js +6 -0
  224. package/dist/components/routing-assignment-panel/routing-assignment-panel.js +122 -0
  225. package/dist/components/run-timeline/index.js +6 -0
  226. package/dist/components/run-timeline/run-timeline.js +221 -0
  227. package/dist/components/runtime-overview-panel/index.js +6 -0
  228. package/dist/components/runtime-overview-panel/runtime-overview-panel.js +89 -0
  229. package/dist/components/scope-selector/scope-selector.js +13 -13
  230. package/dist/components/search-bar/search-bar.js +24 -2
  231. package/dist/components/search-dialog/search-dialog.js +485 -52
  232. package/dist/components/segmented-control/index.js +12 -0
  233. package/dist/components/segmented-control/segmented-control.js +61 -0
  234. package/dist/components/select/select.js +5 -5
  235. package/dist/components/selection-halo/index.js +6 -0
  236. package/dist/components/selection-halo/selection-halo.js +72 -0
  237. package/dist/components/selection-presence/index.js +6 -0
  238. package/dist/components/selection-presence/selection-presence.js +50 -0
  239. package/dist/components/severity-badge/severity-badge.js +2 -2
  240. package/dist/components/share-dialog/share-dialog.js +2 -2
  241. package/dist/components/share-section/share-section.js +2 -1
  242. package/dist/components/sheet/sheet.js +1 -1
  243. package/dist/components/sidebar/sidebar.js +31 -26
  244. package/dist/components/sidebar-toggle/sidebar-toggle.js +5 -3
  245. package/dist/components/slider/slider.js +1 -1
  246. package/dist/components/slideshow/slideshow.js +15 -13
  247. package/dist/components/snap-guides/index.js +6 -0
  248. package/dist/components/snap-guides/snap-guides.js +45 -0
  249. package/dist/components/social-fab/social-fab.js +12 -11
  250. package/dist/components/sparkline-grid/sparkline-grid.js +4 -3
  251. package/dist/components/spinner/spinner.js +4 -4
  252. package/dist/components/spinner/unicode-spinner.js +5 -2
  253. package/dist/components/stat-card/stat-card.js +5 -5
  254. package/dist/components/state-badge-overlay/index.js +6 -0
  255. package/dist/components/state-badge-overlay/state-badge-overlay.js +90 -0
  256. package/dist/components/static-code/index.js +4 -0
  257. package/dist/components/static-code/static-code-copy.js +24 -0
  258. package/dist/components/static-code/static-code.js +41 -0
  259. package/dist/components/status-board/status-board.js +15 -8
  260. package/dist/components/status-indicator/status-indicator.js +3 -3
  261. package/dist/components/step-by-step/step-by-step.js +10 -8
  262. package/dist/components/step-navigation/step-navigation.js +2 -2
  263. package/dist/components/stepper/stepper.js +3 -3
  264. package/dist/components/sticky-metric/index.js +6 -0
  265. package/dist/components/sticky-metric/sticky-metric.js +83 -0
  266. package/dist/components/story-map/index.js +8 -0
  267. package/dist/components/story-map/story-map.js +414 -0
  268. package/dist/components/subscription-card/subscription-card.js +1 -1
  269. package/dist/components/switch/switch.js +1 -1
  270. package/dist/components/table-of-contents/table-of-contents.js +5 -2
  271. package/dist/components/table-of-contents-panel/table-of-contents-panel.js +8 -6
  272. package/dist/components/tabs/tabs.js +26 -8
  273. package/dist/components/tags-input/index.js +4 -0
  274. package/dist/components/tags-input/tags-input.js +186 -0
  275. package/dist/components/terminal/terminal.js +61 -37
  276. package/dist/components/theme-preset-provider/index.js +4 -0
  277. package/dist/components/theme-preset-provider/theme-preset-provider.js +55 -0
  278. package/dist/components/theme-switcher/index.js +4 -0
  279. package/dist/components/theme-switcher/theme-switcher.js +43 -0
  280. package/dist/components/theme-toggle/theme-toggle.js +2 -2
  281. package/dist/components/thinking-block/thinking-block.js +3 -3
  282. package/dist/components/thread-bubble/index.js +6 -0
  283. package/dist/components/thread-bubble/thread-bubble.js +85 -0
  284. package/dist/components/threshold-ring/index.js +6 -0
  285. package/dist/components/threshold-ring/threshold-ring.js +160 -0
  286. package/dist/components/ticker-tape/ticker-tape.js +4 -4
  287. package/dist/components/timeline/index.js +12 -0
  288. package/dist/components/timeline/timeline.js +239 -0
  289. package/dist/components/timeline-scrubber/index.js +6 -0
  290. package/dist/components/timeline-scrubber/timeline-scrubber.js +179 -0
  291. package/dist/components/tldr-section/tldr-section.js +11 -9
  292. package/dist/components/top-bar/index.js +4 -0
  293. package/dist/components/top-bar/top-bar.js +31 -0
  294. package/dist/components/tour/tour.js +10 -4
  295. package/dist/components/transaction-list/index.js +14 -0
  296. package/dist/components/transaction-list/transaction-list.js +253 -0
  297. package/dist/components/tree-view/index.js +6 -0
  298. package/dist/components/tree-view/tree-view.js +298 -0
  299. package/dist/components/tutorial-card/tutorial-card.js +2 -2
  300. package/dist/components/tutorial-complete/tutorial-complete.js +18 -16
  301. package/dist/components/tutorial-filters/tutorial-filters.js +2 -2
  302. package/dist/components/tutorial-intro-content/tutorial-intro-content.js +5 -5
  303. package/dist/components/tutorial-mdx/tutorial-mdx.js +20 -20
  304. package/dist/components/usage-breakdown/usage-breakdown.js +12 -7
  305. package/dist/components/video-embed/video-embed.js +2 -2
  306. package/dist/components/viewport-bookmarks/index.js +6 -0
  307. package/dist/components/viewport-bookmarks/viewport-bookmarks.js +118 -0
  308. package/dist/components/wallet-card/wallet-card.js +1 -1
  309. package/dist/components/watchlist/watchlist.js +7 -6
  310. package/dist/components/workspace-switcher/index.js +6 -0
  311. package/dist/components/workspace-switcher/workspace-switcher.js +61 -0
  312. package/dist/components/world-breadcrumbs/index.js +6 -0
  313. package/dist/components/world-breadcrumbs/world-breadcrumbs.js +114 -0
  314. package/dist/components/world-clock-bar/world-clock-bar.js +35 -14
  315. package/dist/components/zoom-hud/index.js +4 -0
  316. package/dist/components/zoom-hud/zoom-hud.js +61 -0
  317. package/dist/index.d.ts +8108 -231
  318. package/dist/index.js +27 -1
  319. package/dist/lib/theme-presets.js +32 -0
  320. package/dist/lib/use-theme-preset.js +95 -0
  321. package/dist/tailwind-preset.js +19 -19
  322. package/package.json +15 -10
  323. package/styles.css +38 -38
  324. package/themes/default.css +39 -39
  325. package/themes/presets.css +547 -0
@@ -0,0 +1,334 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import {
4
+ forwardRef,
5
+ useMemo
6
+ } from "react";
7
+ import { cn } from "../../lib/utils";
8
+ const MS_PER_DAY = 24 * 60 * 60 * 1e3;
9
+ const DEFAULT_LOCALE = "en-US";
10
+ const COLOR_CLASSES = {
11
+ amber: {
12
+ bar: "bg-amber-500/30",
13
+ progress: "bg-amber-600 dark:bg-amber-500"
14
+ },
15
+ blue: {
16
+ bar: "bg-blue-500/30",
17
+ progress: "bg-blue-600 dark:bg-blue-500"
18
+ },
19
+ emerald: {
20
+ bar: "bg-emerald-500/30",
21
+ progress: "bg-emerald-600 dark:bg-emerald-500"
22
+ },
23
+ neutral: {
24
+ bar: "bg-muted",
25
+ progress: "bg-muted-foreground"
26
+ },
27
+ purple: {
28
+ bar: "bg-purple-500/30",
29
+ progress: "bg-purple-600 dark:bg-purple-500"
30
+ },
31
+ red: {
32
+ bar: "bg-red-500/30",
33
+ progress: "bg-red-600 dark:bg-red-500"
34
+ },
35
+ rose: {
36
+ bar: "bg-rose-500/30",
37
+ progress: "bg-rose-600 dark:bg-rose-500"
38
+ }
39
+ };
40
+ const DEFAULT_LABELS = {
41
+ milestone: "Milestone",
42
+ today: "Today"
43
+ };
44
+ function toDate(value) {
45
+ return value instanceof Date ? new Date(value.getTime()) : new Date(value);
46
+ }
47
+ function clamp(value, min, max) {
48
+ return Math.min(Math.max(value, min), max);
49
+ }
50
+ function diffInDays(later, earlier) {
51
+ return (later.getTime() - earlier.getTime()) / MS_PER_DAY;
52
+ }
53
+ const TICK_FORMATTER_CACHE = /* @__PURE__ */ new Map();
54
+ function getTickDateTimeFormatter(locale, scale) {
55
+ const key = `${locale}|${scale}`;
56
+ let formatter = TICK_FORMATTER_CACHE.get(key);
57
+ if (!formatter) {
58
+ const options = scale === "month" ? { month: "short", year: "numeric" } : { day: "2-digit", month: "short" };
59
+ formatter = Intl.DateTimeFormat(locale, options);
60
+ TICK_FORMATTER_CACHE.set(key, formatter);
61
+ }
62
+ return formatter;
63
+ }
64
+ function buildTickFormatter(scale, locale) {
65
+ switch (scale) {
66
+ case "day":
67
+ return getTickDateTimeFormatter(locale, "day").format;
68
+ case "week":
69
+ return getTickDateTimeFormatter(locale, "week").format;
70
+ case "month":
71
+ return getTickDateTimeFormatter(locale, "month").format;
72
+ case "quarter":
73
+ return (date) => {
74
+ const quarter = Math.floor(date.getMonth() / 3) + 1;
75
+ return `Q${quarter.toString()} ${date.getFullYear().toString()}`;
76
+ };
77
+ }
78
+ }
79
+ function getTickStep(scale) {
80
+ switch (scale) {
81
+ case "day":
82
+ return 1;
83
+ case "week":
84
+ return 7;
85
+ case "month":
86
+ return 30;
87
+ case "quarter":
88
+ return 91;
89
+ }
90
+ }
91
+ function buildTicks(input) {
92
+ const { end, locale, scale, start, totalDays } = input;
93
+ const formatter = buildTickFormatter(scale, locale);
94
+ const stepDays = getTickStep(scale);
95
+ const tickCount = Math.floor(totalDays / stepDays);
96
+ return Array.from({ length: tickCount + 1 }).reduce((ticks, _, index) => {
97
+ const day = index * stepDays;
98
+ const date = new Date(start.getTime() + day * MS_PER_DAY);
99
+ if (date.getTime() <= end.getTime()) {
100
+ ticks.push({ label: formatter(date), offset: day });
101
+ }
102
+ return ticks;
103
+ }, []);
104
+ }
105
+ function useChartGeometry(options) {
106
+ const { endDate, locale, scale, startDate } = options;
107
+ return useMemo(() => {
108
+ const start = toDate(startDate);
109
+ const end = toDate(endDate);
110
+ const totalDays = Math.max(1, diffInDays(end, start));
111
+ const ticks = buildTicks({ end, locale, scale, start, totalDays });
112
+ return {
113
+ end,
114
+ pxPerDay: 1 / totalDays,
115
+ start,
116
+ ticks,
117
+ totalDays
118
+ };
119
+ }, [endDate, locale, scale, startDate]);
120
+ }
121
+ function TaskBar({ geometry, task }) {
122
+ const start = toDate(task.start);
123
+ const end = toDate(task.end);
124
+ const offsetDays = diffInDays(start, geometry.start);
125
+ const durationDays = Math.max(0.5, diffInDays(end, start));
126
+ const leftRatio = clamp(offsetDays / geometry.totalDays, 0, 1);
127
+ const widthRatio = clamp(durationDays / geometry.totalDays, 0, 1 - leftRatio);
128
+ const palette = COLOR_CLASSES[task.color ?? "blue"];
129
+ const progress = clamp(task.progress ?? 0, 0, 100);
130
+ const ariaLabel = typeof task.title === "string" ? `${task.title} from ${start.toISOString().slice(0, 10)} to ${end.toISOString().slice(0, 10)}, ${progress.toString()} percent complete` : void 0;
131
+ return /* @__PURE__ */ jsx(
132
+ "div",
133
+ {
134
+ "aria-label": ariaLabel,
135
+ "aria-valuemax": 100,
136
+ "aria-valuemin": 0,
137
+ "aria-valuenow": progress,
138
+ className: cn(
139
+ "absolute top-1.5 flex h-5 items-center overflow-hidden rounded-md ring-1 ring-border",
140
+ palette.bar
141
+ ),
142
+ "data-task-id": task.id,
143
+ role: "progressbar",
144
+ style: {
145
+ left: `${(leftRatio * 100).toString()}%`,
146
+ width: `${(widthRatio * 100).toString()}%`
147
+ },
148
+ children: /* @__PURE__ */ jsx(
149
+ "span",
150
+ {
151
+ "aria-hidden": "true",
152
+ className: cn("h-full rounded-md", palette.progress),
153
+ style: { width: `${progress.toString()}%` }
154
+ }
155
+ )
156
+ }
157
+ );
158
+ }
159
+ function MilestoneMarker({
160
+ geometry,
161
+ label,
162
+ milestone
163
+ }) {
164
+ const date = toDate(milestone.date);
165
+ const offsetDays = diffInDays(date, geometry.start);
166
+ if (offsetDays < 0 || offsetDays > geometry.totalDays) return null;
167
+ const leftRatio = offsetDays / geometry.totalDays;
168
+ const titleText = typeof milestone.title === "string" ? milestone.title : "";
169
+ return /* @__PURE__ */ jsxs(
170
+ "div",
171
+ {
172
+ "aria-label": `${label}: ${titleText}`,
173
+ className: "absolute top-0 z-10 -ml-1.5 flex flex-col items-center",
174
+ "data-milestone-id": milestone.id,
175
+ style: { left: `${(leftRatio * 100).toString()}%` },
176
+ children: [
177
+ /* @__PURE__ */ jsx(
178
+ "div",
179
+ {
180
+ "aria-hidden": "true",
181
+ className: "size-3 rotate-45 bg-amber-500 ring-2 ring-background"
182
+ }
183
+ ),
184
+ titleText ? /* @__PURE__ */ jsx("span", { className: "mt-0.5 whitespace-nowrap rounded bg-amber-500/20 px-1 text-[10px] font-medium text-amber-900 dark:text-amber-200", children: titleText }) : null
185
+ ]
186
+ }
187
+ );
188
+ }
189
+ function TodayLine({ geometry, label, now }) {
190
+ const offsetDays = diffInDays(now, geometry.start);
191
+ if (offsetDays < 0 || offsetDays > geometry.totalDays) return null;
192
+ const leftRatio = offsetDays / geometry.totalDays;
193
+ return /* @__PURE__ */ jsxs(
194
+ "div",
195
+ {
196
+ "aria-label": label,
197
+ className: "pointer-events-none absolute inset-y-0 z-10",
198
+ style: { left: `${(leftRatio * 100).toString()}%` },
199
+ children: [
200
+ /* @__PURE__ */ jsx(
201
+ "div",
202
+ {
203
+ "aria-hidden": "true",
204
+ className: "absolute inset-y-0 w-0.5 -translate-x-1/2 bg-destructive"
205
+ }
206
+ ),
207
+ /* @__PURE__ */ jsx("span", { className: "absolute -top-5 -translate-x-1/2 whitespace-nowrap rounded bg-destructive/15 px-1 text-[10px] font-semibold uppercase tracking-wide text-destructive", children: label })
208
+ ]
209
+ }
210
+ );
211
+ }
212
+ function Axis({ geometry }) {
213
+ return /* @__PURE__ */ jsx("div", { className: "relative flex h-7 items-end border-b border-border text-[10px] font-medium uppercase tracking-wide text-muted-foreground", children: geometry.ticks.map((tick) => /* @__PURE__ */ jsx(
214
+ "span",
215
+ {
216
+ className: "absolute -translate-x-1/2 px-1",
217
+ style: {
218
+ left: `${(tick.offset / geometry.totalDays * 100).toString()}%`
219
+ },
220
+ children: tick.label
221
+ },
222
+ tick.offset
223
+ )) });
224
+ }
225
+ function TaskRow({ geometry, task }) {
226
+ return /* @__PURE__ */ jsx("div", { className: "relative flex h-8 items-center border-b border-border/40", children: /* @__PURE__ */ jsx(TaskBar, { geometry, task }) });
227
+ }
228
+ function LeftColumn({ groups, taskColumnWidth }) {
229
+ return /* @__PURE__ */ jsxs(
230
+ "div",
231
+ {
232
+ className: "flex flex-col border-r border-border bg-background",
233
+ style: {
234
+ minWidth: `${taskColumnWidth.toString()}px`,
235
+ width: `${taskColumnWidth.toString()}px`
236
+ },
237
+ children: [
238
+ /* @__PURE__ */ jsx("div", { className: "h-7 border-b border-border" }),
239
+ groups.map((group) => /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
240
+ /* @__PURE__ */ jsx("div", { className: "flex h-7 items-center border-b border-border/60 px-3 text-xs font-semibold uppercase tracking-wide text-muted-foreground", children: group.name }),
241
+ group.tasks.map((task) => /* @__PURE__ */ jsxs(
242
+ "div",
243
+ {
244
+ className: "flex h-8 items-center justify-between gap-2 border-b border-border/40 px-3 text-sm text-foreground",
245
+ children: [
246
+ /* @__PURE__ */ jsx("span", { className: "truncate", children: task.title }),
247
+ task.assignee ? /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: task.assignee }) : null
248
+ ]
249
+ },
250
+ task.id
251
+ ))
252
+ ] }, group.id))
253
+ ]
254
+ }
255
+ );
256
+ }
257
+ function TimelineColumn({
258
+ geometry,
259
+ groups,
260
+ labels,
261
+ milestones,
262
+ now
263
+ }) {
264
+ return /* @__PURE__ */ jsxs("div", { className: "relative min-w-0 flex-1", children: [
265
+ /* @__PURE__ */ jsx(Axis, { geometry }),
266
+ /* @__PURE__ */ jsxs("div", { className: "relative", children: [
267
+ groups.map((group) => /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
268
+ /* @__PURE__ */ jsx("div", { className: "h-7 border-b border-border/60 bg-muted/20" }),
269
+ group.tasks.map((task) => /* @__PURE__ */ jsx(TaskRow, { geometry, task }, task.id))
270
+ ] }, group.id)),
271
+ milestones.map((milestone) => /* @__PURE__ */ jsx(
272
+ MilestoneMarker,
273
+ {
274
+ geometry,
275
+ label: labels.milestone,
276
+ milestone
277
+ },
278
+ milestone.id
279
+ )),
280
+ /* @__PURE__ */ jsx(TodayLine, { geometry, label: labels.today, now })
281
+ ] })
282
+ ] });
283
+ }
284
+ const GanttChart = forwardRef(
285
+ (props, ref) => {
286
+ const {
287
+ className,
288
+ endDate,
289
+ groups,
290
+ labels,
291
+ locale = DEFAULT_LOCALE,
292
+ milestones = [],
293
+ now,
294
+ scale = "month",
295
+ startDate,
296
+ taskColumnWidth = 200,
297
+ ...rest
298
+ } = props;
299
+ const resolvedLabels = useMemo(
300
+ () => ({ ...DEFAULT_LABELS, ...labels }),
301
+ [labels]
302
+ );
303
+ const geometry = useChartGeometry({ endDate, locale, scale, startDate });
304
+ const nowDate = useMemo(() => now ? toDate(now) : /* @__PURE__ */ new Date(), [now]);
305
+ return /* @__PURE__ */ jsxs(
306
+ "div",
307
+ {
308
+ className: cn(
309
+ "flex w-full overflow-x-auto rounded-2xl border bg-background text-foreground",
310
+ className
311
+ ),
312
+ ref,
313
+ ...rest,
314
+ children: [
315
+ /* @__PURE__ */ jsx(LeftColumn, { groups, taskColumnWidth }),
316
+ /* @__PURE__ */ jsx(
317
+ TimelineColumn,
318
+ {
319
+ geometry,
320
+ groups,
321
+ labels: resolvedLabels,
322
+ milestones,
323
+ now: nowDate
324
+ }
325
+ )
326
+ ]
327
+ }
328
+ );
329
+ }
330
+ );
331
+ GanttChart.displayName = "GanttChart";
332
+ export {
333
+ GanttChart
334
+ };
@@ -0,0 +1,6 @@
1
+ import {
2
+ GanttChart
3
+ } from "./gantt-chart";
4
+ export {
5
+ GanttChart
6
+ };
@@ -0,0 +1,344 @@
1
+ "use client";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+ import {
4
+ createContext,
5
+ forwardRef,
6
+ useCallback,
7
+ useContext,
8
+ useId,
9
+ useMemo,
10
+ useState
11
+ } from "react";
12
+ import { cn } from "../../lib/utils";
13
+ const VIEWBOX_WIDTH = 1e3;
14
+ const VIEWBOX_HEIGHT = 500;
15
+ const FEEDBACK_DURATION_MS = 800;
16
+ const DEFAULT_LABELS = {
17
+ region: "Geography quiz map"
18
+ };
19
+ const QuizContext = createContext(null);
20
+ function useQuizContext() {
21
+ const ctx = useContext(QuizContext);
22
+ if (!ctx) {
23
+ throw new Error("GeographyQuizMap subcomponent used outside its root.");
24
+ }
25
+ return ctx;
26
+ }
27
+ function projectEquirectangular(position) {
28
+ const [lng, lat] = position;
29
+ const x = (lng + 180) / 360 * VIEWBOX_WIDTH;
30
+ const y = (90 - lat) / 180 * VIEWBOX_HEIGHT;
31
+ return { x, y };
32
+ }
33
+ function regionPath(region) {
34
+ const points = region.coordinates.map((coord, index) => {
35
+ const projected = projectEquirectangular(coord);
36
+ return `${index === 0 ? "M" : "L"}${projected.x.toString()},${projected.y.toString()}`;
37
+ }).join(" ");
38
+ return `${points} Z`;
39
+ }
40
+ function RegionShape({
41
+ disabled,
42
+ feedback,
43
+ isAnswerForCurrent,
44
+ isSelected,
45
+ onSelect,
46
+ region,
47
+ showAnswerFlash
48
+ }) {
49
+ let fillClass = "fill-muted";
50
+ if (isSelected && feedback === "correct") fillClass = "fill-emerald-500";
51
+ else if (isSelected && feedback === "incorrect")
52
+ fillClass = "fill-destructive";
53
+ else if (showAnswerFlash && isAnswerForCurrent && !isSelected)
54
+ fillClass = "fill-emerald-500/40";
55
+ return /* @__PURE__ */ jsx(
56
+ "path",
57
+ {
58
+ "aria-label": region.name,
59
+ className: cn(
60
+ fillClass,
61
+ "stroke-background outline-none transition-colors",
62
+ disabled ? "cursor-not-allowed" : "cursor-pointer hover:opacity-90 focus-visible:opacity-90"
63
+ ),
64
+ d: regionPath(region),
65
+ "data-region-id": region.id,
66
+ "data-state": isSelected ? feedback === "correct" ? "correct" : "incorrect" : showAnswerFlash && isAnswerForCurrent ? "answer" : void 0,
67
+ onClick: () => {
68
+ if (!disabled) onSelect(region.id);
69
+ },
70
+ onKeyDown: (event) => {
71
+ if (disabled) return;
72
+ if (event.key !== "Enter" && event.key !== " ") return;
73
+ event.preventDefault();
74
+ onSelect(region.id);
75
+ },
76
+ role: "button",
77
+ strokeWidth: 1,
78
+ tabIndex: disabled ? -1 : 0
79
+ }
80
+ );
81
+ }
82
+ function Stage({
83
+ backdrop,
84
+ backdropAlt,
85
+ current,
86
+ disabled,
87
+ feedback,
88
+ onSelect,
89
+ regions,
90
+ selectedRegionId
91
+ }) {
92
+ return /* @__PURE__ */ jsxs(
93
+ "svg",
94
+ {
95
+ className: "block h-full w-full",
96
+ preserveAspectRatio: "xMidYMid meet",
97
+ role: "img",
98
+ viewBox: `0 0 ${VIEWBOX_WIDTH.toString()} ${VIEWBOX_HEIGHT.toString()}`,
99
+ children: [
100
+ /* @__PURE__ */ jsx(
101
+ "rect",
102
+ {
103
+ className: "fill-muted",
104
+ height: VIEWBOX_HEIGHT,
105
+ width: VIEWBOX_WIDTH,
106
+ x: "0",
107
+ y: "0"
108
+ }
109
+ ),
110
+ backdrop ? /* @__PURE__ */ jsx(
111
+ "image",
112
+ {
113
+ "aria-label": backdropAlt,
114
+ height: VIEWBOX_HEIGHT,
115
+ href: backdrop,
116
+ preserveAspectRatio: "xMidYMid slice",
117
+ width: VIEWBOX_WIDTH,
118
+ x: "0",
119
+ y: "0"
120
+ }
121
+ ) : null,
122
+ regions.map((region) => /* @__PURE__ */ jsx(
123
+ RegionShape,
124
+ {
125
+ disabled,
126
+ feedback,
127
+ isAnswerForCurrent: current?.answerRegionId === region.id,
128
+ isSelected: selectedRegionId === region.id,
129
+ onSelect,
130
+ region,
131
+ showAnswerFlash: feedback === "incorrect"
132
+ },
133
+ region.id
134
+ ))
135
+ ]
136
+ }
137
+ );
138
+ }
139
+ const GeographyQuizMapPrompt = forwardRef(({ className, ...rest }, ref) => {
140
+ const { current, phase } = useQuizContext();
141
+ if (phase !== "playing" || !current) return null;
142
+ return /* @__PURE__ */ jsx(
143
+ "div",
144
+ {
145
+ className: cn(
146
+ "absolute inset-x-3 top-3 z-10 rounded-md border bg-background/95 px-3 py-2 text-center text-sm font-medium text-foreground shadow-sm backdrop-blur",
147
+ className
148
+ ),
149
+ "data-quiz-prompt": true,
150
+ ref,
151
+ ...rest,
152
+ children: current.prompt
153
+ }
154
+ );
155
+ });
156
+ GeographyQuizMapPrompt.displayName = "GeographyQuizMapPrompt";
157
+ const GeographyQuizMapScore = forwardRef(({ className, ...rest }, ref) => {
158
+ const { answers, totalQuestions } = useQuizContext();
159
+ const correct = answers.filter((entry) => entry.correct).length;
160
+ const accuracy = answers.length === 0 ? 0 : Math.round(correct / answers.length * 100);
161
+ return /* @__PURE__ */ jsx(
162
+ "div",
163
+ {
164
+ className: cn(
165
+ "absolute right-3 top-3 z-10 rounded-md border bg-background/95 px-2 py-1 text-xs font-medium text-foreground shadow-sm backdrop-blur",
166
+ className
167
+ ),
168
+ "data-quiz-score": true,
169
+ ref,
170
+ ...rest,
171
+ children: `${correct.toString()} / ${totalQuestions.toString()} \xB7 ${accuracy.toString()}%`
172
+ }
173
+ );
174
+ });
175
+ GeographyQuizMapScore.displayName = "GeographyQuizMapScore";
176
+ const GeographyQuizMapResults = forwardRef(({ className, ...rest }, ref) => {
177
+ const { answers, phase, totalQuestions } = useQuizContext();
178
+ if (phase !== "complete") return null;
179
+ const correct = answers.filter((entry) => entry.correct).length;
180
+ return /* @__PURE__ */ jsxs(
181
+ "div",
182
+ {
183
+ className: cn(
184
+ "absolute inset-3 z-20 flex flex-col gap-3 overflow-auto rounded-md border bg-background/95 p-4 text-sm text-foreground shadow-md backdrop-blur",
185
+ className
186
+ ),
187
+ "data-quiz-results": true,
188
+ ref,
189
+ ...rest,
190
+ children: [
191
+ /* @__PURE__ */ jsx("h3", { className: "text-base font-semibold", children: `Results \xB7 ${correct.toString()} / ${totalQuestions.toString()}` }),
192
+ /* @__PURE__ */ jsx("ol", { className: "space-y-1", children: answers.map((entry) => /* @__PURE__ */ jsxs(
193
+ "li",
194
+ {
195
+ className: cn(
196
+ "flex items-center gap-2 rounded-md border px-2 py-1",
197
+ entry.correct ? "border-emerald-300 bg-emerald-500/10" : "border-red-300 bg-red-500/10"
198
+ ),
199
+ "data-answer-correct": entry.correct ? "true" : "false",
200
+ "data-answer-id": entry.question.id,
201
+ children: [
202
+ /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: entry.correct ? "\u2713" : "\u2717" }),
203
+ /* @__PURE__ */ jsx("span", { className: "flex-1", children: entry.question.prompt })
204
+ ]
205
+ },
206
+ entry.question.id
207
+ )) })
208
+ ]
209
+ }
210
+ );
211
+ });
212
+ GeographyQuizMapResults.displayName = "GeographyQuizMapResults";
213
+ function useQuizState(arguments_) {
214
+ const { onComplete, questions } = arguments_;
215
+ const [state, setState] = useState({
216
+ answers: [],
217
+ feedback: void 0,
218
+ questionIndex: 0,
219
+ selectedRegionId: void 0
220
+ });
221
+ const handleSelect = useCallback(
222
+ (regionId) => {
223
+ setState((current) => {
224
+ if (current.feedback) return current;
225
+ const question = questions[current.questionIndex];
226
+ if (!question) return current;
227
+ const correct = question.answerRegionId === regionId;
228
+ const next = {
229
+ ...current,
230
+ answers: [
231
+ ...current.answers,
232
+ { correct, question, selectedRegionId: regionId }
233
+ ],
234
+ feedback: correct ? "correct" : "incorrect",
235
+ selectedRegionId: regionId
236
+ };
237
+ scheduleAdvance(setState, onComplete, questions);
238
+ return next;
239
+ });
240
+ },
241
+ [onComplete, questions]
242
+ );
243
+ return { handleSelect, state };
244
+ }
245
+ function scheduleAdvance(setState, onComplete, questions) {
246
+ if (typeof window === "undefined") return;
247
+ window.setTimeout(() => {
248
+ setState((current) => {
249
+ const nextIndex = current.questionIndex + 1;
250
+ if (nextIndex >= questions.length) {
251
+ onComplete?.(current.answers);
252
+ return {
253
+ ...current,
254
+ feedback: void 0,
255
+ questionIndex: questions.length,
256
+ selectedRegionId: void 0
257
+ };
258
+ }
259
+ return {
260
+ ...current,
261
+ feedback: void 0,
262
+ questionIndex: nextIndex,
263
+ selectedRegionId: void 0
264
+ };
265
+ });
266
+ }, FEEDBACK_DURATION_MS);
267
+ }
268
+ const GeographyQuizMap = forwardRef(
269
+ (props, ref) => {
270
+ const {
271
+ backdrop,
272
+ backdropAlt,
273
+ children,
274
+ className,
275
+ labels,
276
+ onComplete,
277
+ questions,
278
+ regions,
279
+ ...rest
280
+ } = props;
281
+ const titleId = useId();
282
+ const resolvedLabels = useMemo(
283
+ () => ({ ...DEFAULT_LABELS, ...labels }),
284
+ [labels]
285
+ );
286
+ const { handleSelect, state } = useQuizState({ onComplete, questions });
287
+ const phase = state.questionIndex >= questions.length ? "complete" : "playing";
288
+ const current = questions[state.questionIndex];
289
+ const ctx = useMemo(
290
+ () => ({
291
+ answers: state.answers,
292
+ current,
293
+ feedback: state.feedback,
294
+ phase,
295
+ questionIndex: state.questionIndex,
296
+ totalQuestions: questions.length
297
+ }),
298
+ [
299
+ current,
300
+ phase,
301
+ questions.length,
302
+ state.answers,
303
+ state.feedback,
304
+ state.questionIndex
305
+ ]
306
+ );
307
+ return /* @__PURE__ */ jsx(QuizContext.Provider, { value: ctx, children: /* @__PURE__ */ jsxs(
308
+ "section",
309
+ {
310
+ "aria-labelledby": titleId,
311
+ className: cn(
312
+ "relative aspect-[2/1] w-full overflow-hidden rounded-2xl border bg-background text-foreground",
313
+ className
314
+ ),
315
+ ref,
316
+ ...rest,
317
+ children: [
318
+ /* @__PURE__ */ jsx("span", { className: "sr-only", id: titleId, children: resolvedLabels.region }),
319
+ /* @__PURE__ */ jsx(
320
+ Stage,
321
+ {
322
+ backdrop,
323
+ backdropAlt,
324
+ current,
325
+ disabled: phase === "complete" || Boolean(state.feedback),
326
+ feedback: state.feedback,
327
+ onSelect: handleSelect,
328
+ regions,
329
+ selectedRegionId: state.selectedRegionId
330
+ }
331
+ ),
332
+ children
333
+ ]
334
+ }
335
+ ) });
336
+ }
337
+ );
338
+ GeographyQuizMap.displayName = "GeographyQuizMap";
339
+ export {
340
+ GeographyQuizMap,
341
+ GeographyQuizMapPrompt,
342
+ GeographyQuizMapResults,
343
+ GeographyQuizMapScore
344
+ };
@@ -0,0 +1,12 @@
1
+ import {
2
+ GeographyQuizMap,
3
+ GeographyQuizMapPrompt,
4
+ GeographyQuizMapResults,
5
+ GeographyQuizMapScore
6
+ } from "./geography-quiz-map";
7
+ export {
8
+ GeographyQuizMap,
9
+ GeographyQuizMapPrompt,
10
+ GeographyQuizMapResults,
11
+ GeographyQuizMapScore
12
+ };