@mapcairn/map 0.0.0-stage → 0.1.0-rc.2

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 (315) hide show
  1. package/LICENSE +661 -0
  2. package/README.md +167 -2
  3. package/dist/chrome/Attribution/Attribution.js +304 -0
  4. package/dist/chrome/Attribution/Attribution.js.map +1 -0
  5. package/dist/chrome/Attribution/Attribution.styles.js +10 -0
  6. package/dist/chrome/Attribution/Attribution.styles.js.map +1 -0
  7. package/dist/chrome/Attribution/AttributionSkeleton.js +29 -0
  8. package/dist/chrome/Attribution/AttributionSkeleton.js.map +1 -0
  9. package/dist/chrome/ChromeSkeleton/ChromeSkeleton.js +83 -0
  10. package/dist/chrome/ChromeSkeleton/ChromeSkeleton.js.map +1 -0
  11. package/dist/chrome/EndStack/EndStack.js +157 -0
  12. package/dist/chrome/EndStack/EndStack.js.map +1 -0
  13. package/dist/chrome/EndStack/EndStack.styles.js +12 -0
  14. package/dist/chrome/EndStack/EndStack.styles.js.map +1 -0
  15. package/dist/chrome/EndStack/EndStackSkeleton.js +78 -0
  16. package/dist/chrome/EndStack/EndStackSkeleton.js.map +1 -0
  17. package/dist/chrome/EndStack/endStackHeight.js +22 -0
  18. package/dist/chrome/EndStack/endStackHeight.js.map +1 -0
  19. package/dist/chrome/MapChrome/MapChrome.js +488 -0
  20. package/dist/chrome/MapChrome/MapChrome.js.map +1 -0
  21. package/dist/chrome/MapChrome/MapChrome.styles.js +15 -0
  22. package/dist/chrome/MapChrome/MapChrome.styles.js.map +1 -0
  23. package/dist/chrome/MapChrome/chromeSurface.js +18 -0
  24. package/dist/chrome/MapChrome/chromeSurface.js.map +1 -0
  25. package/dist/chrome/MapChrome/chromeVars.js +71 -0
  26. package/dist/chrome/MapChrome/chromeVars.js.map +1 -0
  27. package/dist/chrome/MapChrome/mapKeyPlacement.js +41 -0
  28. package/dist/chrome/MapChrome/mapKeyPlacement.js.map +1 -0
  29. package/dist/chrome/MapChrome/sharesWidth.js +13 -0
  30. package/dist/chrome/MapChrome/sharesWidth.js.map +1 -0
  31. package/dist/chrome/MapReadout/MapReadout.js +199 -0
  32. package/dist/chrome/MapReadout/MapReadout.js.map +1 -0
  33. package/dist/chrome/MapReadout/MapReadout.styles.js +14 -0
  34. package/dist/chrome/MapReadout/MapReadout.styles.js.map +1 -0
  35. package/dist/chrome/Sheet/Sheet.js +412 -0
  36. package/dist/chrome/Sheet/Sheet.js.map +1 -0
  37. package/dist/chrome/Sheet/Sheet.styles.js +14 -0
  38. package/dist/chrome/Sheet/Sheet.styles.js.map +1 -0
  39. package/dist/chrome/focusRegistry.js +76 -0
  40. package/dist/chrome/focusRegistry.js.map +1 -0
  41. package/dist/chrome/layoutContext.js +30 -0
  42. package/dist/chrome/layoutContext.js.map +1 -0
  43. package/dist/chrome/useScrollEdges.js +53 -0
  44. package/dist/chrome/useScrollEdges.js.map +1 -0
  45. package/dist/host/MapContext.js +16 -0
  46. package/dist/host/MapContext.js.map +1 -0
  47. package/dist/host/MapView.js +189 -0
  48. package/dist/host/MapView.js.map +1 -0
  49. package/dist/host/MapView.styles.js +16 -0
  50. package/dist/host/MapView.styles.js.map +1 -0
  51. package/dist/host/overlays/AccuracyCircle.js +36 -0
  52. package/dist/host/overlays/AccuracyCircle.js.map +1 -0
  53. package/dist/host/overlays/CentreCrosshair.js +40 -0
  54. package/dist/host/overlays/CentreCrosshair.js.map +1 -0
  55. package/dist/host/overlays/DrawOverlay.js +221 -0
  56. package/dist/host/overlays/DrawOverlay.js.map +1 -0
  57. package/dist/host/overlays/MapOverlayLayer.js +27 -0
  58. package/dist/host/overlays/MapOverlayLayer.js.map +1 -0
  59. package/dist/host/overlays/MeasureOverlay.js +87 -0
  60. package/dist/host/overlays/MeasureOverlay.js.map +1 -0
  61. package/dist/host/overlays/PinMarker.js +40 -0
  62. package/dist/host/overlays/PinMarker.js.map +1 -0
  63. package/dist/host/overlays/geometry.js +41 -0
  64. package/dist/host/overlays/geometry.js.map +1 -0
  65. package/dist/host/overlays/overlays.styles.js +27 -0
  66. package/dist/host/overlays/overlays.styles.js.map +1 -0
  67. package/dist/host/pointerTargets.js +22 -0
  68. package/dist/host/pointerTargets.js.map +1 -0
  69. package/dist/host/useLongPress.js +102 -0
  70. package/dist/host/useLongPress.js.map +1 -0
  71. package/dist/host/useMapEngine.js +352 -0
  72. package/dist/host/useMapEngine.js.map +1 -0
  73. package/dist/host/usePointerPosition.js +60 -0
  74. package/dist/host/usePointerPosition.js.map +1 -0
  75. package/dist/index.d.ts +3845 -0
  76. package/dist/index.js +89 -0
  77. package/dist/layers/CatalogueStatus.js +138 -0
  78. package/dist/layers/CatalogueStatus.js.map +1 -0
  79. package/dist/layers/DateTimeControl.js +101 -0
  80. package/dist/layers/DateTimeControl.js.map +1 -0
  81. package/dist/layers/FeatureCard.js +147 -0
  82. package/dist/layers/FeatureCard.js.map +1 -0
  83. package/dist/layers/FeatureChoices.js +101 -0
  84. package/dist/layers/FeatureChoices.js.map +1 -0
  85. package/dist/layers/FeatureGlyph.js +56 -0
  86. package/dist/layers/FeatureGlyph.js.map +1 -0
  87. package/dist/layers/IdentifyStatus.js +36 -0
  88. package/dist/layers/IdentifyStatus.js.map +1 -0
  89. package/dist/layers/LayerItem.js +321 -0
  90. package/dist/layers/LayerItem.js.map +1 -0
  91. package/dist/layers/LayerKey.js +36 -0
  92. package/dist/layers/LayerKey.js.map +1 -0
  93. package/dist/layers/Layers.styles.js +50 -0
  94. package/dist/layers/Layers.styles.js.map +1 -0
  95. package/dist/layers/LayersSection.js +267 -0
  96. package/dist/layers/LayersSection.js.map +1 -0
  97. package/dist/layers/MapDataLayers.js +261 -0
  98. package/dist/layers/MapDataLayers.js.map +1 -0
  99. package/dist/layers/MapKey.js +131 -0
  100. package/dist/layers/MapKey.js.map +1 -0
  101. package/dist/layers/MapKey.styles.js +16 -0
  102. package/dist/layers/MapKey.styles.js.map +1 -0
  103. package/dist/layers/MarkerGlyph.js +84 -0
  104. package/dist/layers/MarkerGlyph.js.map +1 -0
  105. package/dist/layers/SelectionProvider.js +27 -0
  106. package/dist/layers/SelectionProvider.js.map +1 -0
  107. package/dist/layers/ShapeGlyph.js +122 -0
  108. package/dist/layers/ShapeGlyph.js.map +1 -0
  109. package/dist/layers/TurnOffActions.js +147 -0
  110. package/dist/layers/TurnOffActions.js.map +1 -0
  111. package/dist/layers/answersTap.js +16 -0
  112. package/dist/layers/answersTap.js.map +1 -0
  113. package/dist/layers/catalogueNotice.js +65 -0
  114. package/dist/layers/catalogueNotice.js.map +1 -0
  115. package/dist/layers/catalogueReconcile.js +55 -0
  116. package/dist/layers/catalogueReconcile.js.map +1 -0
  117. package/dist/layers/catalogueView.js +32 -0
  118. package/dist/layers/catalogueView.js.map +1 -0
  119. package/dist/layers/featureTitle.js +14 -0
  120. package/dist/layers/featureTitle.js.map +1 -0
  121. package/dist/layers/identifyFeedback.js +30 -0
  122. package/dist/layers/identifyFeedback.js.map +1 -0
  123. package/dist/layers/identifyRun.js +148 -0
  124. package/dist/layers/identifyRun.js.map +1 -0
  125. package/dist/layers/layerStatus.js +13 -0
  126. package/dist/layers/layerStatus.js.map +1 -0
  127. package/dist/layers/loadOutcome.js +107 -0
  128. package/dist/layers/loadOutcome.js.map +1 -0
  129. package/dist/layers/loadReport.js +33 -0
  130. package/dist/layers/loadReport.js.map +1 -0
  131. package/dist/layers/loadRequests.js +73 -0
  132. package/dist/layers/loadRequests.js.map +1 -0
  133. package/dist/layers/mapFeatures.js +307 -0
  134. package/dist/layers/mapFeatures.js.map +1 -0
  135. package/dist/layers/mapKeyBlocks.js +24 -0
  136. package/dist/layers/mapKeyBlocks.js.map +1 -0
  137. package/dist/layers/reveal.js +119 -0
  138. package/dist/layers/reveal.js.map +1 -0
  139. package/dist/layers/selectionMessages.js +53 -0
  140. package/dist/layers/selectionMessages.js.map +1 -0
  141. package/dist/layers/selectionResolve.js +111 -0
  142. package/dist/layers/selectionResolve.js.map +1 -0
  143. package/dist/layers/useDataLayers.js +940 -0
  144. package/dist/layers/useDataLayers.js.map +1 -0
  145. package/dist/layers/useFeatureSelection.js +179 -0
  146. package/dist/layers/useFeatureSelection.js.map +1 -0
  147. package/dist/layers/useScrolls.js +37 -0
  148. package/dist/layers/useScrolls.js.map +1 -0
  149. package/dist/panels/BasemapPicker/BasemapPicker.js +169 -0
  150. package/dist/panels/BasemapPicker/BasemapPicker.js.map +1 -0
  151. package/dist/panels/BasemapPicker/BasemapPicker.styles.js +42 -0
  152. package/dist/panels/BasemapPicker/BasemapPicker.styles.js.map +1 -0
  153. package/dist/panels/ExportSection/ExportSection.js +91 -0
  154. package/dist/panels/ExportSection/ExportSection.js.map +1 -0
  155. package/dist/panels/HelpSection/HelpSection.js +163 -0
  156. package/dist/panels/HelpSection/HelpSection.js.map +1 -0
  157. package/dist/panels/HelpSection/HelpSection.styles.js +9 -0
  158. package/dist/panels/HelpSection/HelpSection.styles.js.map +1 -0
  159. package/dist/panels/PinSection/PinSection.js +39 -0
  160. package/dist/panels/PinSection/PinSection.js.map +1 -0
  161. package/dist/panels/Section/Section.js +43 -0
  162. package/dist/panels/Section/Section.js.map +1 -0
  163. package/dist/panels/Section/Section.styles.js +13 -0
  164. package/dist/panels/Section/Section.styles.js.map +1 -0
  165. package/dist/panels/SettingsSection/LanguageField.js +126 -0
  166. package/dist/panels/SettingsSection/LanguageField.js.map +1 -0
  167. package/dist/panels/SettingsSection/SettingsSection.js +175 -0
  168. package/dist/panels/SettingsSection/SettingsSection.js.map +1 -0
  169. package/dist/panels/SettingsSection/SettingsSection.styles.js +9 -0
  170. package/dist/panels/SettingsSection/SettingsSection.styles.js.map +1 -0
  171. package/dist/panels/ShapesSection/ShapesSection.js +229 -0
  172. package/dist/panels/ShapesSection/ShapesSection.js.map +1 -0
  173. package/dist/panels/ShapesSection/ShapesSection.styles.js +7 -0
  174. package/dist/panels/ShapesSection/ShapesSection.styles.js.map +1 -0
  175. package/dist/panels/SheetContent/SheetContent.js +92 -0
  176. package/dist/panels/SheetContent/SheetContent.js.map +1 -0
  177. package/dist/panels/SheetContent/SheetContent.styles.js +6 -0
  178. package/dist/panels/SheetContent/SheetContent.styles.js.map +1 -0
  179. package/dist/services/ServicesProvider.js +42 -0
  180. package/dist/services/ServicesProvider.js.map +1 -0
  181. package/dist/services/activeMessages.js +140 -0
  182. package/dist/services/activeMessages.js.map +1 -0
  183. package/dist/services/basemapAvailability.js +78 -0
  184. package/dist/services/basemapAvailability.js.map +1 -0
  185. package/dist/services/englishMessages.js +10 -0
  186. package/dist/services/englishMessages.js.map +1 -0
  187. package/dist/services/hooks.js +214 -0
  188. package/dist/services/hooks.js.map +1 -0
  189. package/dist/styles.css +2866 -0
  190. package/dist/styles.css.d.ts +1 -0
  191. package/dist/tools/Directions/Directions.styles.js +25 -0
  192. package/dist/tools/Directions/Directions.styles.js.map +1 -0
  193. package/dist/tools/Directions/DirectionsOverlay.js +46 -0
  194. package/dist/tools/Directions/DirectionsOverlay.js.map +1 -0
  195. package/dist/tools/Directions/DirectionsPanel.js +428 -0
  196. package/dist/tools/Directions/DirectionsPanel.js.map +1 -0
  197. package/dist/tools/Directions/MapDirections.js +84 -0
  198. package/dist/tools/Directions/MapDirections.js.map +1 -0
  199. package/dist/tools/Directions/useDirections.js +226 -0
  200. package/dist/tools/Directions/useDirections.js.map +1 -0
  201. package/dist/tools/Directions/useFreeCentre.js +30 -0
  202. package/dist/tools/Directions/useFreeCentre.js.map +1 -0
  203. package/dist/tools/DrawToolbar/DrawMapBindings.js +34 -0
  204. package/dist/tools/DrawToolbar/DrawMapBindings.js.map +1 -0
  205. package/dist/tools/DrawToolbar/DrawToolbar.js +296 -0
  206. package/dist/tools/DrawToolbar/DrawToolbar.js.map +1 -0
  207. package/dist/tools/DrawToolbar/DrawToolbar.styles.js +21 -0
  208. package/dist/tools/DrawToolbar/DrawToolbar.styles.js.map +1 -0
  209. package/dist/tools/DrawToolbar/imageDrawing.js +24 -0
  210. package/dist/tools/DrawToolbar/imageDrawing.js.map +1 -0
  211. package/dist/tools/DrawToolbar/useDraw.js +543 -0
  212. package/dist/tools/DrawToolbar/useDraw.js.map +1 -0
  213. package/dist/tools/MeasureToolbar/MeasureToolbar.js +116 -0
  214. package/dist/tools/MeasureToolbar/MeasureToolbar.js.map +1 -0
  215. package/dist/tools/MeasureToolbar/MeasureToolbar.styles.js +12 -0
  216. package/dist/tools/MeasureToolbar/MeasureToolbar.styles.js.map +1 -0
  217. package/dist/tools/MeasureToolbar/useMeasure.js +75 -0
  218. package/dist/tools/MeasureToolbar/useMeasure.js.map +1 -0
  219. package/dist/tools/PinCard/PinCard.js +174 -0
  220. package/dist/tools/PinCard/PinCard.js.map +1 -0
  221. package/dist/tools/PinCard/PinCard.styles.js +16 -0
  222. package/dist/tools/PinCard/PinCard.styles.js.map +1 -0
  223. package/dist/tools/PinCard/useReverseAddress.js +77 -0
  224. package/dist/tools/PinCard/useReverseAddress.js.map +1 -0
  225. package/dist/tools/SearchPill/SearchPill.js +292 -0
  226. package/dist/tools/SearchPill/SearchPill.js.map +1 -0
  227. package/dist/tools/SearchPill/SearchPill.styles.js +16 -0
  228. package/dist/tools/SearchPill/SearchPill.styles.js.map +1 -0
  229. package/dist/tools/SearchPill/SearchPillSkeleton.js +41 -0
  230. package/dist/tools/SearchPill/SearchPillSkeleton.js.map +1 -0
  231. package/dist/tools/SearchPill/useSearch.js +143 -0
  232. package/dist/tools/SearchPill/useSearch.js.map +1 -0
  233. package/dist/tools/SearchPill/useSuggestions.js +105 -0
  234. package/dist/tools/SearchPill/useSuggestions.js.map +1 -0
  235. package/dist/tools/Tour/TourCard.js +156 -0
  236. package/dist/tools/Tour/TourCard.js.map +1 -0
  237. package/dist/tools/Tour/TourCard.styles.js +10 -0
  238. package/dist/tools/Tour/TourCard.styles.js.map +1 -0
  239. package/dist/tools/Tour/useTour.js +110 -0
  240. package/dist/tools/Tour/useTour.js.map +1 -0
  241. package/dist/tools/locate/useLocate.js +94 -0
  242. package/dist/tools/locate/useLocate.js.map +1 -0
  243. package/dist/ui/Button/Button.js +36 -0
  244. package/dist/ui/Button/Button.js.map +1 -0
  245. package/dist/ui/Button/Button.styles.js +17 -0
  246. package/dist/ui/Button/Button.styles.js.map +1 -0
  247. package/dist/ui/Chip/Chip.js +37 -0
  248. package/dist/ui/Chip/Chip.js.map +1 -0
  249. package/dist/ui/Chip/Chip.styles.js +29 -0
  250. package/dist/ui/Chip/Chip.styles.js.map +1 -0
  251. package/dist/ui/ControlGroup/ControlGroup.js +23 -0
  252. package/dist/ui/ControlGroup/ControlGroup.js.map +1 -0
  253. package/dist/ui/ControlGroup/ControlGroup.styles.js +6 -0
  254. package/dist/ui/ControlGroup/ControlGroup.styles.js.map +1 -0
  255. package/dist/ui/EmptyState/EmptyState.js +37 -0
  256. package/dist/ui/EmptyState/EmptyState.js.map +1 -0
  257. package/dist/ui/EmptyState/EmptyState.styles.js +10 -0
  258. package/dist/ui/EmptyState/EmptyState.styles.js.map +1 -0
  259. package/dist/ui/Icon/Icon.js +28 -0
  260. package/dist/ui/Icon/Icon.js.map +1 -0
  261. package/dist/ui/Icon/Icon.styles.js +8 -0
  262. package/dist/ui/Icon/Icon.styles.js.map +1 -0
  263. package/dist/ui/IconButton/IconButton.js +47 -0
  264. package/dist/ui/IconButton/IconButton.js.map +1 -0
  265. package/dist/ui/IconButton/IconButton.styles.js +27 -0
  266. package/dist/ui/IconButton/IconButton.styles.js.map +1 -0
  267. package/dist/ui/Isolate/Isolate.js +26 -0
  268. package/dist/ui/Isolate/Isolate.js.map +1 -0
  269. package/dist/ui/Isolate/fillSlots.js +27 -0
  270. package/dist/ui/Isolate/fillSlots.js.map +1 -0
  271. package/dist/ui/ListRow/ListRow.js +59 -0
  272. package/dist/ui/ListRow/ListRow.js.map +1 -0
  273. package/dist/ui/ListRow/ListRow.styles.js +30 -0
  274. package/dist/ui/ListRow/ListRow.styles.js.map +1 -0
  275. package/dist/ui/LiveRegion/LiveRegion.js +88 -0
  276. package/dist/ui/LiveRegion/LiveRegion.js.map +1 -0
  277. package/dist/ui/LiveRegion/announcer.js +114 -0
  278. package/dist/ui/LiveRegion/announcer.js.map +1 -0
  279. package/dist/ui/SegmentedControl/SegmentedControl.js +55 -0
  280. package/dist/ui/SegmentedControl/SegmentedControl.js.map +1 -0
  281. package/dist/ui/SegmentedControl/SegmentedControl.styles.js +9 -0
  282. package/dist/ui/SegmentedControl/SegmentedControl.styles.js.map +1 -0
  283. package/dist/ui/SkipLink/SkipLink.js +35 -0
  284. package/dist/ui/SkipLink/SkipLink.js.map +1 -0
  285. package/dist/ui/SkipLink/SkipLink.styles.js +6 -0
  286. package/dist/ui/SkipLink/SkipLink.styles.js.map +1 -0
  287. package/dist/ui/Slider/Slider.js +68 -0
  288. package/dist/ui/Slider/Slider.js.map +1 -0
  289. package/dist/ui/Slider/Slider.styles.js +13 -0
  290. package/dist/ui/Slider/Slider.styles.js.map +1 -0
  291. package/dist/ui/StatusMessage/StatusMessage.js +124 -0
  292. package/dist/ui/StatusMessage/StatusMessage.js.map +1 -0
  293. package/dist/ui/StatusMessage/StatusMessage.styles.js +28 -0
  294. package/dist/ui/StatusMessage/StatusMessage.styles.js.map +1 -0
  295. package/dist/ui/StatusMessage/StatusMessageFocus.js +30 -0
  296. package/dist/ui/StatusMessage/StatusMessageFocus.js.map +1 -0
  297. package/dist/ui/Surface/Surface.js +22 -0
  298. package/dist/ui/Surface/Surface.js.map +1 -0
  299. package/dist/ui/Surface/Surface.styles.js +27 -0
  300. package/dist/ui/Surface/Surface.styles.js.map +1 -0
  301. package/dist/ui/Switch/Switch.js +58 -0
  302. package/dist/ui/Switch/Switch.js.map +1 -0
  303. package/dist/ui/Switch/Switch.styles.js +13 -0
  304. package/dist/ui/Switch/Switch.styles.js.map +1 -0
  305. package/dist/ui/Tooltip/Tooltip.js +66 -0
  306. package/dist/ui/Tooltip/Tooltip.js.map +1 -0
  307. package/dist/ui/Tooltip/Tooltip.styles.js +6 -0
  308. package/dist/ui/Tooltip/Tooltip.styles.js.map +1 -0
  309. package/dist/ui/Tooltip/inheritColours.js +27 -0
  310. package/dist/ui/Tooltip/inheritColours.js.map +1 -0
  311. package/dist/ui/VisuallyHidden/VisuallyHidden.js +16 -0
  312. package/dist/ui/VisuallyHidden/VisuallyHidden.js.map +1 -0
  313. package/dist/ui/VisuallyHidden/VisuallyHidden.styles.js +6 -0
  314. package/dist/ui/VisuallyHidden/VisuallyHidden.styles.js.map +1 -0
  315. package/package.json +82 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Surface.styles.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,58 @@
1
+ import { control, description, label, row, text, thumb, tick, track } from "./Switch.styles.js";
2
+ import { Check } from "lucide-react";
3
+ import { useId } from "react";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ import * as RadixSwitch from "@radix-ui/react-switch";
6
+ // src/ui/Switch/Switch.tsx
7
+ /**
8
+ * A labelled on/off switch built on the Radix Switch primitive. The label is a
9
+ * real `label` element tied to the control, so clicking the text toggles it,
10
+ * and the optional description is exposed through `aria-describedby`.
11
+ *
12
+ * The on state is shown three ways: the thumb slides, the track fills with the
13
+ * accent, and the thumb carries a tick, so it never relies on colour alone.
14
+ * The row is at least 48px tall, and the control itself, not only its row,
15
+ * is a target at least 44px tall around the smaller visible track.
16
+ */
17
+ function Switch({ label: label$1, description: description$1, checked, onCheckedChange, disabled = false, className, "data-testid": testId }) {
18
+ const id = useId();
19
+ const descriptionId = `${id}-description`;
20
+ return /* @__PURE__ */ jsxs("div", {
21
+ className: className ? `${row} ${className}` : row,
22
+ "data-disabled": disabled,
23
+ "data-testid": testId ? `${testId}-row` : void 0,
24
+ children: [/* @__PURE__ */ jsxs("div", {
25
+ className: text,
26
+ children: [/* @__PURE__ */ jsx("label", {
27
+ className: label,
28
+ htmlFor: id,
29
+ children: label$1
30
+ }), description$1 ? /* @__PURE__ */ jsx("span", {
31
+ className: description,
32
+ id: descriptionId,
33
+ children: description$1
34
+ }) : null]
35
+ }), /* @__PURE__ */ jsx(RadixSwitch.Root, {
36
+ id,
37
+ className: control,
38
+ checked,
39
+ onCheckedChange,
40
+ disabled,
41
+ "aria-describedby": description$1 ? descriptionId : void 0,
42
+ "data-testid": testId,
43
+ children: /* @__PURE__ */ jsx("span", {
44
+ className: track,
45
+ children: /* @__PURE__ */ jsx(RadixSwitch.Thumb, {
46
+ className: thumb,
47
+ children: checked ? /* @__PURE__ */ jsx(Check, {
48
+ "aria-hidden": "true",
49
+ className: tick
50
+ }) : null
51
+ })
52
+ })
53
+ })]
54
+ });
55
+ }
56
+ export { Switch };
57
+
58
+ //# sourceMappingURL=Switch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch.js","names":["styles.row","styles.text","styles.label","label","description","styles.description","styles.control","styles.track","styles.thumb","styles.tick"],"sources":["../../../src/ui/Switch/Switch.tsx"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-only\n// Copyright MapCairn contributors\nimport * as RadixSwitch from \"@radix-ui/react-switch\";\nimport { Check } from \"lucide-react\";\nimport { useId } from \"react\";\nimport * as styles from \"./Switch.css\";\n\n/** Props for {@link Switch}. */\nexport interface SwitchProps {\n /** The visible label. Required: a switch is never unnamed or named only by an icon. */\n readonly label: string;\n /** Optional supporting text, announced as the control's description. */\n readonly description?: string;\n /** Whether the switch is on. The component is controlled. */\n readonly checked: boolean;\n /** Called with the next state when the user toggles the switch. */\n readonly onCheckedChange: (checked: boolean) => void;\n /** Stops the switch from being toggled and dims it. */\n readonly disabled?: boolean;\n /** Applied to the row element. */\n readonly className?: string;\n /** Applied to the control. The row gets the same id with a `-row` suffix. */\n readonly \"data-testid\"?: string;\n}\n\n/**\n * A labelled on/off switch built on the Radix Switch primitive. The label is a\n * real `label` element tied to the control, so clicking the text toggles it,\n * and the optional description is exposed through `aria-describedby`.\n *\n * The on state is shown three ways: the thumb slides, the track fills with the\n * accent, and the thumb carries a tick, so it never relies on colour alone.\n * The row is at least 48px tall, and the control itself, not only its row,\n * is a target at least 44px tall around the smaller visible track.\n */\nexport function Switch({\n label,\n description,\n checked,\n onCheckedChange,\n disabled = false,\n className,\n \"data-testid\": testId,\n}: SwitchProps) {\n const id = useId();\n const descriptionId = `${id}-description`;\n return (\n <div\n className={className ? `${styles.row} ${className}` : styles.row}\n data-disabled={disabled}\n data-testid={testId ? `${testId}-row` : undefined}\n >\n <div className={styles.text}>\n <label className={styles.label} htmlFor={id}>\n {label}\n </label>\n {description ? (\n <span className={styles.description} id={descriptionId}>\n {description}\n </span>\n ) : null}\n </div>\n <RadixSwitch.Root\n id={id}\n className={styles.control}\n checked={checked}\n onCheckedChange={onCheckedChange}\n disabled={disabled}\n aria-describedby={description ? descriptionId : undefined}\n data-testid={testId}\n >\n <span className={styles.track}>\n <RadixSwitch.Thumb className={styles.thumb}>\n {checked ? (\n <Check aria-hidden=\"true\" className={styles.tick} />\n ) : null}\n </RadixSwitch.Thumb>\n </span>\n </RadixSwitch.Root>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAmCA,SAAgB,OAAO,EACrB,OAAA,SACA,aAAA,eACA,SACA,iBACA,WAAW,OACX,WACA,eAAe,UACD;CACd,MAAM,KAAK,MAAM;CACjB,MAAM,gBAAgB,GAAG,GAAG;CAC5B,OACE,qBAAC,OAAD;EACE,WAAW,YAAY,GAAGA,IAAW,GAAG,cAAcA;EACtD,iBAAe;EACf,eAAa,SAAS,GAAG,OAAO,QAAQ,KAAA;EAH1C,UAAA,CAKE,qBAAC,OAAD;GAAK,WAAWC;GAAhB,UAAA,CACE,oBAAC,SAAD;IAAO,WAAWC;IAAc,SAAS;IACtC,UAAAC;GACI,CAAA,GACNC,gBACC,oBAAC,QAAD;IAAM,WAAWC;IAAoB,IAAI;IACtC,UAAAD;GACG,CAAA,IACJ,IACD;EACL,CAAA,GAAA,oBAAC,YAAY,MAAb;GACM;GACJ,WAAWE;GACF;GACQ;GACP;GACV,oBAAkBF,gBAAc,gBAAgB,KAAA;GAChD,eAAa;GAEb,UAAA,oBAAC,QAAD;IAAM,WAAWG;IACf,UAAA,oBAAC,YAAY,OAAb;KAAmB,WAAWC;KAC3B,UAAA,UACC,oBAAC,OAAD;MAAO,eAAY;MAAO,WAAWC;KAAc,CAAA,IACjD;IACa,CAAA;GACf,CAAA;EACU,CAAA,CACf;;AAET"}
@@ -0,0 +1,13 @@
1
+ /* empty css */
2
+ // src/ui/Switch/Switch.css.ts
3
+ var row = "_1n4n9ad0";
4
+ var text = "_1n4n9ad1";
5
+ var label = "_1n4n9ad2";
6
+ var description = "_1n4n9ad3";
7
+ var control = "_1n4n9ad4";
8
+ var track = "_1n4n9ad5";
9
+ var thumb = "_1n4n9ad6";
10
+ var tick = "_1n4n9ad7";
11
+ export { control, description, label, row, text, thumb, tick, track };
12
+
13
+ //# sourceMappingURL=Switch.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Switch.styles.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,66 @@
1
+ import { usePreferences } from "../../services/hooks.js";
2
+ import { inheritColours } from "./inheritColours.js";
3
+ import { content } from "./Tooltip.styles.js";
4
+ import { useCallback, useRef } from "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ import { tokenValues } from "@mapcairn/theme";
7
+ import * as RadixTooltip from "@radix-ui/react-tooltip";
8
+ // src/ui/Tooltip/Tooltip.tsx
9
+ /** Gap between the trigger and the tooltip, in pixels, taken from the spacing scale. */
10
+ var SIDE_OFFSET = Number.parseInt(tokenValues.space.xs, 10);
11
+ /**
12
+ * Shares the open delay between every {@link Tooltip} below it. The app mounts
13
+ * it once at the root. A {@link Tooltip} outside a provider throws.
14
+ */
15
+ function TooltipProvider({ delayDuration = 400, skipDelayDuration = 300, children }) {
16
+ return /* @__PURE__ */ jsx(RadixTooltip.Provider, {
17
+ delayDuration,
18
+ skipDelayDuration,
19
+ disableHoverableContent: false,
20
+ children
21
+ });
22
+ }
23
+ /**
24
+ * A short hint attached to a focusable control, built on the Radix Tooltip.
25
+ *
26
+ * A tooltip supplements an accessible name and never replaces one: the
27
+ * trigger must already be named by its own text or `aria-label`, and the
28
+ * tooltip is exposed as its description.
29
+ *
30
+ * It opens on keyboard focus as well as hover, closes with Escape, and stays
31
+ * open while the pointer is over the tooltip itself (WCAG 1.4.13). Touch
32
+ * devices cannot hover, so when the device preferences report no fine
33
+ * pointer the tooltip does not exist at all and only the trigger renders.
34
+ *
35
+ * The bubble renders in a portal under `body`, outside any element a host
36
+ * scoped a theme to, so it takes the colours its trigger sees (see
37
+ * `inheritColours`). A host's scoped theme therefore reaches it with no
38
+ * markup or option of its own. The colours are read once, when the bubble
39
+ * opens: a theme or colour scheme change while it is open applies the next
40
+ * time it opens.
41
+ */
42
+ function Tooltip({ content: content$1, children }) {
43
+ const { finePointer } = usePreferences();
44
+ const trigger = useRef(null);
45
+ const takeTriggerColours = useCallback((bubble) => {
46
+ if (bubble !== null && trigger.current !== null) inheritColours(trigger.current, bubble);
47
+ }, []);
48
+ if (!finePointer) return children;
49
+ return /* @__PURE__ */ jsxs(RadixTooltip.Root, {
50
+ disableHoverableContent: false,
51
+ children: [/* @__PURE__ */ jsx(RadixTooltip.Trigger, {
52
+ asChild: true,
53
+ ref: trigger,
54
+ children
55
+ }), /* @__PURE__ */ jsx(RadixTooltip.Portal, { children: /* @__PURE__ */ jsx(RadixTooltip.Content, {
56
+ ref: takeTriggerColours,
57
+ className: content,
58
+ sideOffset: SIDE_OFFSET,
59
+ collisionPadding: SIDE_OFFSET,
60
+ children: content$1
61
+ }) })]
62
+ });
63
+ }
64
+ export { Tooltip, TooltipProvider };
65
+
66
+ //# sourceMappingURL=Tooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip.js","names":["styles.content","content"],"sources":["../../../src/ui/Tooltip/Tooltip.tsx"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-only\n// Copyright MapCairn contributors\nimport { tokenValues } from \"@mapcairn/theme\";\nimport * as RadixTooltip from \"@radix-ui/react-tooltip\";\nimport type { ReactElement, ReactNode } from \"react\";\nimport { useCallback, useRef } from \"react\";\nimport { usePreferences } from \"../../services\";\nimport { inheritColours } from \"./inheritColours\";\nimport * as styles from \"./Tooltip.css\";\n\n/** Gap between the trigger and the tooltip, in pixels, taken from the spacing scale. */\nconst SIDE_OFFSET = Number.parseInt(tokenValues.space.xs, 10);\n\n/** Props for {@link TooltipProvider}. */\nexport interface TooltipProviderProps {\n /** Milliseconds a hover must last before the first tooltip opens. Defaults to 400. */\n readonly delayDuration?: number;\n /**\n * Milliseconds after a tooltip closes during which the next one opens\n * with no delay, so sweeping across a control group feels continuous.\n * Defaults to 300.\n */\n readonly skipDelayDuration?: number;\n readonly children: ReactNode;\n}\n\n/**\n * Shares the open delay between every {@link Tooltip} below it. The app mounts\n * it once at the root. A {@link Tooltip} outside a provider throws.\n */\nexport function TooltipProvider({\n delayDuration = 400,\n skipDelayDuration = 300,\n children,\n}: TooltipProviderProps) {\n return (\n <RadixTooltip.Provider\n delayDuration={delayDuration}\n skipDelayDuration={skipDelayDuration}\n disableHoverableContent={false}\n >\n {children}\n </RadixTooltip.Provider>\n );\n}\n\n/** Props for {@link Tooltip}. */\nexport interface TooltipProps {\n /** The tooltip text. Keep it short and never put the only copy of important information here. */\n readonly content: ReactNode;\n /**\n * The one focusable element the tooltip belongs to, such as a button. It\n * must forward its ref and spread extra props onto a DOM element.\n */\n readonly children: ReactElement;\n}\n\n/**\n * A short hint attached to a focusable control, built on the Radix Tooltip.\n *\n * A tooltip supplements an accessible name and never replaces one: the\n * trigger must already be named by its own text or `aria-label`, and the\n * tooltip is exposed as its description.\n *\n * It opens on keyboard focus as well as hover, closes with Escape, and stays\n * open while the pointer is over the tooltip itself (WCAG 1.4.13). Touch\n * devices cannot hover, so when the device preferences report no fine\n * pointer the tooltip does not exist at all and only the trigger renders.\n *\n * The bubble renders in a portal under `body`, outside any element a host\n * scoped a theme to, so it takes the colours its trigger sees (see\n * `inheritColours`). A host's scoped theme therefore reaches it with no\n * markup or option of its own. The colours are read once, when the bubble\n * opens: a theme or colour scheme change while it is open applies the next\n * time it opens.\n */\nexport function Tooltip({ content, children }: TooltipProps) {\n const { finePointer } = usePreferences();\n // Radix types a trigger ref as a button, although `asChild` accepts any element.\n const trigger = useRef<HTMLButtonElement>(null);\n const takeTriggerColours = useCallback((bubble: HTMLElement | null) => {\n if (bubble !== null && trigger.current !== null) {\n inheritColours(trigger.current, bubble);\n }\n }, []);\n if (!finePointer) {\n return children;\n }\n return (\n <RadixTooltip.Root disableHoverableContent={false}>\n <RadixTooltip.Trigger asChild ref={trigger}>\n {children}\n </RadixTooltip.Trigger>\n <RadixTooltip.Portal>\n <RadixTooltip.Content\n ref={takeTriggerColours}\n className={styles.content}\n sideOffset={SIDE_OFFSET}\n collisionPadding={SIDE_OFFSET}\n >\n {content}\n </RadixTooltip.Content>\n </RadixTooltip.Portal>\n </RadixTooltip.Root>\n );\n}\n"],"mappings":";;;;;;;;;AAWA,IAAM,cAAc,OAAO,SAAS,YAAY,MAAM,IAAI,EAAE;;;;;AAmB5D,SAAgB,gBAAgB,EAC9B,gBAAgB,KAChB,oBAAoB,KACpB,YACuB;CACvB,OACE,oBAAC,aAAa,UAAd;EACiB;EACI;EACnB,yBAAyB;EAExB;CACoB,CAAA;AAE3B;;;;;;;;;;;;;;;;;;;;AAgCA,SAAgB,QAAQ,EAAE,SAAA,WAAS,YAA0B;CAC3D,MAAM,EAAE,gBAAgB,eAAe;CAEvC,MAAM,UAAU,OAA0B,IAAI;CAC9C,MAAM,qBAAqB,aAAa,WAA+B;EACrE,IAAI,WAAW,QAAQ,QAAQ,YAAY,MACzC,eAAe,QAAQ,SAAS,MAAM;CAE1C,GAAG,CAAC,CAAC;CACL,IAAI,CAAC,aACH,OAAO;CAET,OACE,qBAAC,aAAa,MAAd;EAAmB,yBAAyB;EAA5C,UAAA,CACE,oBAAC,aAAa,SAAd;GAAsB,SAAA;GAAQ,KAAK;GAChC;EACmB,CAAA,GACtB,oBAAC,aAAa,QAAd,EAAA,UACE,oBAAC,aAAa,SAAd;GACE,KAAK;GACL,WAAWA;GACX,YAAY;GACZ,kBAAkB;GAEjB,UAAAC;EACmB,CAAA,EACH,CAAA,CACJ;;AAEvB"}
@@ -0,0 +1,6 @@
1
+ /* empty css */
2
+ // src/ui/Tooltip/Tooltip.css.ts
3
+ var content = "_1oxkgyk1";
4
+ export { content };
5
+
6
+ //# sourceMappingURL=Tooltip.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tooltip.styles.js","names":[],"sources":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ import { tokens } from "@mapcairn/theme";
2
+ // src/ui/Tooltip/inheritColours.ts
3
+ /** The custom properties behind the colour tokens, read from the built contract. */
4
+ var COLOUR_PROPERTIES = Object.values(tokens.color).flatMap((reference) => /^var\((--[\w-]+)\)$/.exec(reference)?.[1] ?? []);
5
+ /**
6
+ * Copies the colours `source` sees onto `target`, an element that renders
7
+ * elsewhere in the document, such as content in a portal under `body`.
8
+ *
9
+ * A host scopes its generated theme to an element it owns, so a portal
10
+ * outside that element would show the SDK's own colours. The computed value
11
+ * already accounts for the scope, the page theme and the high-contrast and
12
+ * forced-colours modes (where the host theme is not applied), so copying it
13
+ * keeps the portalled element in step with its trigger. Where the host did
14
+ * not theme the trigger the values equal the page's own, so nothing changes.
15
+ * The values are set through the style object, which a policy that blocks
16
+ * inline styles allows.
17
+ */
18
+ function inheritColours(source, target) {
19
+ const seen = getComputedStyle(source);
20
+ for (const property of COLOUR_PROPERTIES) {
21
+ const value = seen.getPropertyValue(property);
22
+ if (value !== "") target.style.setProperty(property, value);
23
+ }
24
+ }
25
+ export { inheritColours };
26
+
27
+ //# sourceMappingURL=inheritColours.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inheritColours.js","names":[],"sources":["../../../src/ui/Tooltip/inheritColours.ts"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-only\n// Copyright MapCairn contributors\nimport { tokens } from \"@mapcairn/theme\";\n\n/** The custom properties behind the colour tokens, read from the built contract. */\nconst COLOUR_PROPERTIES: readonly string[] = Object.values(\n tokens.color,\n).flatMap((reference) => /^var\\((--[\\w-]+)\\)$/.exec(reference)?.[1] ?? []);\n\n/**\n * Copies the colours `source` sees onto `target`, an element that renders\n * elsewhere in the document, such as content in a portal under `body`.\n *\n * A host scopes its generated theme to an element it owns, so a portal\n * outside that element would show the SDK's own colours. The computed value\n * already accounts for the scope, the page theme and the high-contrast and\n * forced-colours modes (where the host theme is not applied), so copying it\n * keeps the portalled element in step with its trigger. Where the host did\n * not theme the trigger the values equal the page's own, so nothing changes.\n * The values are set through the style object, which a policy that blocks\n * inline styles allows.\n */\nexport function inheritColours(source: Element, target: HTMLElement): void {\n const seen = getComputedStyle(source);\n for (const property of COLOUR_PROPERTIES) {\n const value = seen.getPropertyValue(property);\n if (value !== \"\") {\n target.style.setProperty(property, value);\n }\n }\n}\n"],"mappings":";;;AAKA,IAAM,oBAAuC,OAAO,OAClD,OAAO,KACT,CAAC,CAAC,SAAS,cAAc,sBAAsB,KAAK,SAAS,CAAC,GAAG,MAAM,CAAC,CAAC;;;;;;;;;;;;;;AAezE,SAAgB,eAAe,QAAiB,QAA2B;CACzE,MAAM,OAAO,iBAAiB,MAAM;CACpC,KAAK,MAAM,YAAY,mBAAmB;EACxC,MAAM,QAAQ,KAAK,iBAAiB,QAAQ;EAC5C,IAAI,UAAU,IACZ,OAAO,MAAM,YAAY,UAAU,KAAK;CAE5C;AACF"}
@@ -0,0 +1,16 @@
1
+ import { visuallyHidden } from "./VisuallyHidden.styles.js";
2
+ import { jsx } from "react/jsx-runtime";
3
+ // src/ui/VisuallyHidden/VisuallyHidden.tsx
4
+ /**
5
+ * The one way to provide screen-reader-only text, such as a hidden heading or
6
+ * keyboard instructions. Nothing else in the app may hide text this way.
7
+ */
8
+ function VisuallyHidden({ as: Component = "span", className, ...rest }) {
9
+ return /* @__PURE__ */ jsx(Component, {
10
+ ...rest,
11
+ className: className ? `${visuallyHidden} ${className}` : visuallyHidden
12
+ });
13
+ }
14
+ export { VisuallyHidden };
15
+
16
+ //# sourceMappingURL=VisuallyHidden.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VisuallyHidden.js","names":[],"sources":["../../../src/ui/VisuallyHidden/VisuallyHidden.tsx"],"sourcesContent":["// SPDX-License-Identifier: AGPL-3.0-only\n// Copyright MapCairn contributors\nimport type { ElementType, HTMLAttributes } from \"react\";\nimport { visuallyHidden } from \"./VisuallyHidden.css\";\n\n/** Props for {@link VisuallyHidden}. */\nexport interface VisuallyHiddenProps extends HTMLAttributes<HTMLElement> {\n /** The element to render. Defaults to `span`. */\n readonly as?: ElementType;\n}\n\n/**\n * The one way to provide screen-reader-only text, such as a hidden heading or\n * keyboard instructions. Nothing else in the app may hide text this way.\n */\nexport function VisuallyHidden({\n as: Component = \"span\",\n className,\n ...rest\n}: VisuallyHiddenProps) {\n return (\n <Component\n {...rest}\n className={className ? `${visuallyHidden} ${className}` : visuallyHidden}\n />\n );\n}\n"],"mappings":";;;;;;;AAeA,SAAgB,eAAe,EAC7B,IAAI,YAAY,QAChB,WACA,GAAG,QACmB;CACtB,OACE,oBAAC,WAAD;EACE,GAAI;EACJ,WAAW,YAAY,GAAG,eAAe,GAAG,cAAc;CAC3D,CAAA;AAEL"}
@@ -0,0 +1,6 @@
1
+ /* empty css */
2
+ // src/ui/VisuallyHidden/VisuallyHidden.css.ts
3
+ var visuallyHidden = "_19ywvra0";
4
+ export { visuallyHidden };
5
+
6
+ //# sourceMappingURL=VisuallyHidden.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VisuallyHidden.styles.js","names":[],"sources":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,84 @@
1
1
  {
2
2
  "name": "@mapcairn/map",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0-rc.2",
4
+ "description": "Generic map rendering and UI components for MapCairn",
5
+ "license": "AGPL-3.0-only",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/MapCairn/mapcairn.git",
9
+ "directory": "packages/map"
10
+ },
11
+ "homepage": "https://github.com/MapCairn/mapcairn/tree/main/packages/map#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/MapCairn/mapcairn/issues"
14
+ },
15
+ "keywords": [
16
+ "mapcairn",
17
+ "map",
18
+ "maplibre",
19
+ "react",
20
+ "accessibility",
21
+ "gis",
22
+ "open-data",
23
+ "sdk"
24
+ ],
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "type": "module",
29
+ "types": "./dist/index.d.ts",
30
+ "exports": {
31
+ ".": {
32
+ "@mapcairn/source": "./src/index.ts",
33
+ "types": "./dist/index.d.ts",
34
+ "default": "./dist/index.js"
35
+ },
36
+ "./styles.css": {
37
+ "types": "./dist/styles.css.d.ts",
38
+ "default": "./dist/styles.css"
39
+ }
40
+ },
41
+ "files": [
42
+ "dist",
43
+ "!dist/.built"
44
+ ],
45
+ "sideEffects": [
46
+ "**/*.css",
47
+ "**/*.css.ts"
48
+ ],
49
+ "scripts": {
50
+ "build": "node ../../scripts/buildPackage.mjs",
51
+ "test": "vitest run",
52
+ "typecheck": "npm --prefix ../.. run build:sdk && tsc --noEmit"
53
+ },
54
+ "dependencies": {
55
+ "@mapcairn/core": "0.1.0-rc.2",
56
+ "@mapcairn/react": "0.1.0-rc.2",
57
+ "@mapcairn/theme": "0.1.0-rc.2",
58
+ "@radix-ui/react-slider": "^1.6.1",
59
+ "@radix-ui/react-switch": "^1.4.1",
60
+ "@radix-ui/react-toggle-group": "^1.2.1",
61
+ "@radix-ui/react-tooltip": "^1.4.1",
62
+ "@vanilla-extract/css": "^1.21.3",
63
+ "@vanilla-extract/recipes": "^0.5.7",
64
+ "lucide-react": "^1.72.0"
65
+ },
66
+ "peerDependencies": {
67
+ "react": "^19.0.0",
68
+ "react-dom": "^19.0.0"
69
+ },
70
+ "devDependencies": {
71
+ "@testing-library/jest-dom": "^7.0.1",
72
+ "@testing-library/react": "^16.3.3",
73
+ "@types/react": "^19.3.0",
74
+ "@types/react-dom": "^19.3.0",
75
+ "@vanilla-extract/vite-plugin": "^5.2.6",
76
+ "@vitejs/plugin-react": "^6.3.0",
77
+ "happy-dom": "^21.0.4",
78
+ "react": "^19.3.1",
79
+ "react-dom": "^19.3.1",
80
+ "typescript": "^7.0.2",
81
+ "vite": "^8.3.8",
82
+ "vitest": "^5.1.0"
83
+ }
84
+ }