@swr-data-lab/components 1.12.5 → 1.13.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 (332) hide show
  1. package/dist/Autocomplete/Autocomplete.stories.svelte.d.ts +27 -0
  2. package/dist/Autocomplete/Autocomplete.svelte +237 -0
  3. package/dist/Autocomplete/Autocomplete.svelte.d.ts +34 -0
  4. package/dist/Autocomplete/index.d.ts +2 -0
  5. package/dist/Button/Button.stories.svelte +19 -0
  6. package/dist/Button/Button.stories.svelte.d.ts +19 -0
  7. package/dist/Button/Button.svelte +38 -0
  8. package/dist/Button/Button.svelte.d.ts +10 -0
  9. package/dist/Button/index.d.ts +2 -0
  10. package/dist/Caption/Caption.stories.svelte.d.ts +27 -0
  11. package/dist/Caption/Caption.svelte +21 -0
  12. package/dist/Caption/Caption.svelte.d.ts +8 -0
  13. package/dist/Caption/index.js +2 -0
  14. package/dist/Card/Card.stories.svelte +17 -0
  15. package/dist/Card/Card.stories.svelte.d.ts +19 -0
  16. package/dist/Card/Card.svelte +25 -0
  17. package/dist/Card/Card.svelte.d.ts +7 -0
  18. package/dist/Card/index.d.ts +2 -0
  19. package/dist/ChartFooter/ChartFooter.stories.svelte.d.ts +27 -0
  20. package/dist/ChartFooter/ChartFooter.svelte +38 -0
  21. package/dist/ChartFooter/ChartFooter.svelte.d.ts +8 -0
  22. package/dist/ChartFooter/index.d.ts +2 -0
  23. package/dist/ChartHeader/ChartHeader.stories.svelte.d.ts +27 -0
  24. package/{src → dist}/ChartHeader/ChartHeader.svelte +4 -12
  25. package/dist/ChartHeader/ChartHeader.svelte.d.ts +9 -0
  26. package/dist/ChartHeader/index.d.ts +2 -0
  27. package/dist/ChartList/ChartList.mdx +13 -0
  28. package/dist/ChartList/ChartList.stories.svelte +48 -0
  29. package/dist/ChartList/ChartList.stories.svelte.d.ts +27 -0
  30. package/dist/ChartList/ChartList.svelte +103 -0
  31. package/dist/ChartList/ChartList.svelte.d.ts +14 -0
  32. package/dist/ChartList/index.d.ts +2 -0
  33. package/dist/ChartList/index.js +2 -0
  34. package/dist/Copy/Copy.stories.svelte.d.ts +27 -0
  35. package/dist/Copy/Copy.svelte +21 -0
  36. package/dist/Copy/Copy.svelte.d.ts +8 -0
  37. package/dist/Copy/index.js +2 -0
  38. package/dist/DesignTokens/DesignTokens.svelte +58 -0
  39. package/dist/DesignTokens/DesignTokens.svelte.d.ts +7 -0
  40. package/dist/DesignTokens/Tokens.d.ts +26 -0
  41. package/dist/DesignTokens/Tokens.js +171 -0
  42. package/dist/DesignTokens/index.d.ts +8 -0
  43. package/dist/FormLabel/FormLabel.stories.svelte.d.ts +27 -0
  44. package/{src → dist}/FormLabel/FormLabel.svelte +2 -9
  45. package/dist/FormLabel/FormLabel.svelte.d.ts +9 -0
  46. package/dist/FormLabel/index.js +2 -0
  47. package/dist/Headline/Headline.stories.svelte.d.ts +27 -0
  48. package/{src → dist}/Headline/Headline.svelte +2 -7
  49. package/dist/Headline/Headline.svelte.d.ts +7 -0
  50. package/dist/Headline/index.js +2 -0
  51. package/{src → dist}/HighlightCard/HighlightCard.stories.svelte +7 -9
  52. package/dist/HighlightCard/HighlightCard.stories.svelte.d.ts +19 -0
  53. package/dist/HighlightCard/HighlightCard.svelte +54 -0
  54. package/dist/HighlightCard/HighlightCard.svelte.d.ts +9 -0
  55. package/dist/HighlightCard/index.d.ts +2 -0
  56. package/dist/Input/Input.svelte +32 -0
  57. package/dist/Input/Input.svelte.d.ts +23 -0
  58. package/dist/Input/index.d.ts +2 -0
  59. package/dist/Intro.mdx +7 -0
  60. package/dist/Logotype/Logotype.stories.svelte +14 -0
  61. package/dist/Logotype/Logotype.stories.svelte.d.ts +19 -0
  62. package/dist/Logotype/Logotype.svelte.d.ts +26 -0
  63. package/dist/Middot/Middot.stories.svelte +14 -0
  64. package/dist/Middot/Middot.stories.svelte.d.ts +19 -0
  65. package/dist/Middot/Middot.svelte.d.ts +26 -0
  66. package/dist/Middot/index.d.ts +2 -0
  67. package/dist/Note/Note.stories.svelte.d.ts +27 -0
  68. package/dist/Note/Note.svelte +28 -0
  69. package/dist/Note/Note.svelte.d.ts +7 -0
  70. package/dist/Note/index.js +2 -0
  71. package/{src → dist}/Select/Select.stories.svelte +12 -15
  72. package/dist/Select/Select.stories.svelte.d.ts +19 -0
  73. package/dist/Select/Select.svelte +39 -0
  74. package/dist/Select/Select.svelte.d.ts +4 -0
  75. package/{src/Select/Select.types.ts → dist/Select/Select.types.d.ts} +1 -2
  76. package/dist/Select/Select.types.js +1 -0
  77. package/dist/Select/SelectStoriesTemplate.svelte.d.ts +15 -0
  78. package/dist/Select/index.d.ts +2 -0
  79. package/dist/Switcher/Switcher.stories.svelte.d.ts +27 -0
  80. package/dist/Switcher/Switcher.svelte +111 -0
  81. package/dist/Switcher/Switcher.svelte.d.ts +21 -0
  82. package/dist/Switcher/index.d.ts +2 -0
  83. package/{src → dist}/app.d.ts +1 -1
  84. package/dist/assets/close-circle.svg.svelte.d.ts +26 -0
  85. package/dist/assets/grow.svg.svelte.d.ts +26 -0
  86. package/dist/assets/hand-pointer.svg.svelte.d.ts +26 -0
  87. package/dist/assets/shrink.svg.svelte.d.ts +26 -0
  88. package/dist/assets/tap.svg.svelte.d.ts +26 -0
  89. package/dist/assets/times-circle-solid.svg.svelte.d.ts +26 -0
  90. package/dist/index.d.ts +29 -0
  91. package/{src → dist}/index.js +3 -0
  92. package/dist/maplibre/AttributionControl/AttributionControl.stories.svelte +27 -0
  93. package/dist/maplibre/AttributionControl/AttributionControl.stories.svelte.d.ts +19 -0
  94. package/dist/maplibre/AttributionControl/AttributionControl.svelte +15 -0
  95. package/dist/maplibre/AttributionControl/AttributionControl.svelte.d.ts +8 -0
  96. package/dist/maplibre/AttributionControl/index.d.ts +2 -0
  97. package/dist/maplibre/GeocoderControl/GeocoderAPIs.d.ts +6 -0
  98. package/dist/maplibre/GeocoderControl/GeocoderAPIs.js +40 -0
  99. package/{src → dist}/maplibre/GeocoderControl/GeocoderControl.stories.svelte +10 -14
  100. package/dist/maplibre/GeocoderControl/GeocoderControl.stories.svelte.d.ts +19 -0
  101. package/dist/maplibre/GeocoderControl/GeocoderControl.svelte +25 -0
  102. package/dist/maplibre/GeocoderControl/GeocoderControl.svelte.d.ts +27 -0
  103. package/dist/maplibre/GeocoderControl/index.d.ts +2 -0
  104. package/dist/maplibre/Map/FallbackStyle.d.ts +3 -0
  105. package/dist/maplibre/Map/FallbackStyle.js +15 -0
  106. package/{src → dist}/maplibre/Map/Map.stories.svelte +19 -24
  107. package/dist/maplibre/Map/Map.stories.svelte.d.ts +19 -0
  108. package/dist/maplibre/Map/Map.svelte +91 -0
  109. package/dist/maplibre/Map/Map.svelte.d.ts +23 -0
  110. package/dist/maplibre/Map/index.d.ts +2 -0
  111. package/dist/maplibre/MapControl/MapControl.stories.svelte +46 -0
  112. package/dist/maplibre/MapControl/MapControl.stories.svelte.d.ts +19 -0
  113. package/dist/maplibre/MapControl/MapControl.svelte +29 -0
  114. package/dist/maplibre/MapControl/MapControl.svelte.d.ts +11 -0
  115. package/dist/maplibre/MapControl/index.d.ts +2 -0
  116. package/dist/maplibre/MapStyle/SWRDataLabLight.d.ts +3 -0
  117. package/dist/maplibre/MapStyle/SWRDataLabLight.js +60 -0
  118. package/{src → dist}/maplibre/MapStyle/SWRDataLabLight.stories.svelte +10 -12
  119. package/dist/maplibre/MapStyle/SWRDataLabLight.stories.svelte.d.ts +18 -0
  120. package/dist/maplibre/MapStyle/components/Admin.d.ts +1 -0
  121. package/dist/maplibre/MapStyle/components/Admin.js +170 -0
  122. package/dist/maplibre/MapStyle/components/Buildings.d.ts +1 -0
  123. package/dist/maplibre/MapStyle/components/Buildings.js +21 -0
  124. package/dist/maplibre/MapStyle/components/Landuse.d.ts +1 -0
  125. package/dist/maplibre/MapStyle/components/Landuse.js +497 -0
  126. package/dist/maplibre/MapStyle/components/Natural.d.ts +1 -0
  127. package/dist/maplibre/MapStyle/components/Natural.js +1 -0
  128. package/dist/maplibre/MapStyle/components/PlaceLabels.d.ts +4 -0
  129. package/dist/maplibre/MapStyle/components/PlaceLabels.js +194 -0
  130. package/dist/maplibre/MapStyle/components/Roads.d.ts +8 -0
  131. package/dist/maplibre/MapStyle/components/Roads.js +2327 -0
  132. package/dist/maplibre/MapStyle/components/Transit.d.ts +7 -0
  133. package/dist/maplibre/MapStyle/components/Transit.js +499 -0
  134. package/dist/maplibre/MapStyle/components/Walking.d.ts +1 -0
  135. package/dist/maplibre/MapStyle/components/Walking.js +1530 -0
  136. package/dist/maplibre/MapStyle/index.d.ts +2 -0
  137. package/dist/maplibre/MapStyle/tokens.d.ts +20 -0
  138. package/dist/maplibre/MapStyle/tokens.js +20 -0
  139. package/{src → dist}/maplibre/NavigationControl/NavigationControl.stories.svelte +9 -11
  140. package/dist/maplibre/NavigationControl/NavigationControl.stories.svelte.d.ts +19 -0
  141. package/dist/maplibre/NavigationControl/NavigationControl.svelte +9 -0
  142. package/dist/maplibre/NavigationControl/NavigationControl.svelte.d.ts +12 -0
  143. package/dist/maplibre/NavigationControl/index.d.ts +2 -0
  144. package/{src → dist}/maplibre/ScaleControl/ScaleControl.stories.svelte +10 -13
  145. package/dist/maplibre/ScaleControl/ScaleControl.stories.svelte.d.ts +19 -0
  146. package/dist/maplibre/ScaleControl/ScaleControl.svelte +9 -0
  147. package/dist/maplibre/ScaleControl/ScaleControl.svelte.d.ts +9 -0
  148. package/dist/maplibre/ScaleControl/index.d.ts +2 -0
  149. package/dist/maplibre/Source/MapSource.stories.svelte +7 -0
  150. package/dist/maplibre/Source/MapSource.stories.svelte.d.ts +19 -0
  151. package/dist/maplibre/Source/MapSource.svelte +43 -0
  152. package/dist/maplibre/Source/MapSource.svelte.d.ts +13 -0
  153. package/dist/maplibre/Source/index.d.ts +2 -0
  154. package/dist/maplibre/Source/source.d.ts +28 -0
  155. package/dist/maplibre/Source/source.js +76 -0
  156. package/{src → dist}/maplibre/Tooltip/Tooltip.stories.svelte +17 -23
  157. package/dist/maplibre/Tooltip/Tooltip.stories.svelte.d.ts +19 -0
  158. package/dist/maplibre/Tooltip/Tooltip.svelte +46 -0
  159. package/dist/maplibre/Tooltip/Tooltip.svelte.d.ts +25 -0
  160. package/dist/maplibre/Tooltip/index.d.ts +2 -0
  161. package/{src → dist}/maplibre/VectorLayer/VectorLayer.stories.svelte +11 -14
  162. package/dist/maplibre/VectorLayer/VectorLayer.stories.svelte.d.ts +19 -0
  163. package/dist/maplibre/VectorLayer/VectorLayer.svelte +73 -0
  164. package/dist/maplibre/VectorLayer/VectorLayer.svelte.d.ts +21 -0
  165. package/dist/maplibre/VectorLayer/index.d.ts +2 -0
  166. package/{src → dist}/maplibre/VectorTileSource/VectorTileSource.stories.svelte +11 -13
  167. package/dist/maplibre/VectorTileSource/VectorTileSource.stories.svelte.d.ts +19 -0
  168. package/dist/maplibre/VectorTileSource/VectorTileSource.svelte +13 -0
  169. package/dist/maplibre/VectorTileSource/VectorTileSource.svelte.d.ts +11 -0
  170. package/dist/maplibre/VectorTileSource/index.d.ts +2 -0
  171. package/dist/maplibre/WithLinkLocation/WithLinkLocation.stories.svelte +27 -0
  172. package/dist/maplibre/WithLinkLocation/WithLinkLocation.stories.svelte.d.ts +19 -0
  173. package/dist/maplibre/WithLinkLocation/WithLinkLocation.svelte +44 -0
  174. package/dist/maplibre/WithLinkLocation/WithLinkLocation.svelte.d.ts +19 -0
  175. package/dist/maplibre/WithLinkLocation/index.d.ts +2 -0
  176. package/dist/maplibre/context.svelte.d.ts +33 -0
  177. package/dist/maplibre/context.svelte.js +73 -0
  178. package/{src/maplibre/types.ts → dist/maplibre/types.d.ts} +3 -5
  179. package/dist/maplibre/types.js +1 -0
  180. package/dist/maplibre/utils.d.ts +4 -0
  181. package/dist/maplibre/utils.js +34 -0
  182. package/dist/utils/formatDate.d.ts +5 -0
  183. package/dist/utils/formatDate.js +17 -0
  184. package/dist/utils/formatNumber.d.ts +18 -0
  185. package/{src → dist}/utils/formatNumber.js +5 -5
  186. package/dist/utils/getColorsBetween.d.ts +9 -0
  187. package/dist/utils/getColorsBetween.js +25 -0
  188. package/dist/utils/getComparisonDiffs.d.ts +6 -0
  189. package/dist/utils/getComparisonDiffs.js +9 -0
  190. package/dist/utils/getEmbedContext.d.ts +7 -0
  191. package/dist/utils/getEmbedContext.js +27 -0
  192. package/dist/utils/getLaenderFromTopo.d.ts +10 -0
  193. package/dist/utils/getLaenderFromTopo.js +35 -0
  194. package/dist/utils/getLaenderNicenameFromAgs.d.ts +7 -0
  195. package/dist/utils/getLaenderNicenameFromAgs.js +27 -0
  196. package/dist/utils/isSvelteComponent.d.ts +7 -0
  197. package/{src → dist}/utils/isSvelteComponent.js +1 -1
  198. package/dist/utils/prepareSophoraModel.d.ts +2 -0
  199. package/dist/utils/prepareSophoraModel.js +37 -0
  200. package/dist/utils/scrollIntoViewWithOffset.d.ts +7 -0
  201. package/{src → dist}/utils/scrollIntoViewWithOffset.js +3 -3
  202. package/dist/utils/slugify.d.ts +1 -0
  203. package/dist/utils/slugify.js +11 -0
  204. package/dist/utils/topoToGeo.d.ts +7 -0
  205. package/{src → dist}/utils/topoToGeo.js +2 -2
  206. package/package.json +30 -7
  207. package/.storybook/blocks/Mermaid.jsx +0 -9
  208. package/.storybook/main.ts +0 -34
  209. package/.storybook/preview-head.html +0 -13
  210. package/.storybook/preview.ts +0 -47
  211. package/.storybook/vitest.setup.ts +0 -9
  212. package/src/Autocomplete/Autocomplete.svelte +0 -237
  213. package/src/Button/Button.stories.svelte +0 -21
  214. package/src/Button/Button.svelte +0 -52
  215. package/src/Caption/Caption.svelte +0 -29
  216. package/src/Card/Card.stories.svelte +0 -19
  217. package/src/Card/Card.svelte +0 -34
  218. package/src/ChartFooter/ChartFooter.svelte +0 -46
  219. package/src/Copy/Copy.svelte +0 -29
  220. package/src/DesignTokens/DesignTokens.svelte +0 -71
  221. package/src/DesignTokens/Tokens.ts +0 -186
  222. package/src/HighlightCard/HighlightCard.svelte +0 -65
  223. package/src/Input/Input.svelte +0 -21
  224. package/src/Intro.mdx +0 -7
  225. package/src/Logotype/Logotype.stories.svelte +0 -16
  226. package/src/Middot/Middot.stories.svelte +0 -16
  227. package/src/Note/Note.svelte +0 -38
  228. package/src/Select/Select.svelte +0 -76
  229. package/src/Switcher/Switcher.svelte +0 -130
  230. package/src/maplibre/AttributionControl/AttributionControl.stories.svelte +0 -29
  231. package/src/maplibre/AttributionControl/AttributionControl.svelte +0 -45
  232. package/src/maplibre/GeocoderControl/GeocoderAPIs.ts +0 -49
  233. package/src/maplibre/GeocoderControl/GeocoderControl.svelte +0 -211
  234. package/src/maplibre/Map/FallbackStyle.ts +0 -18
  235. package/src/maplibre/Map/Map.svelte +0 -287
  236. package/src/maplibre/MapControl/MapControl.stories.svelte +0 -56
  237. package/src/maplibre/MapControl/MapControl.svelte +0 -41
  238. package/src/maplibre/MapStyle/SWRDataLabLight.ts +0 -72
  239. package/src/maplibre/MapStyle/components/Admin.ts +0 -173
  240. package/src/maplibre/MapStyle/components/Buildings.ts +0 -23
  241. package/src/maplibre/MapStyle/components/Landuse.ts +0 -499
  242. package/src/maplibre/MapStyle/components/Natural.ts +0 -1
  243. package/src/maplibre/MapStyle/components/PlaceLabels.ts +0 -199
  244. package/src/maplibre/MapStyle/components/Roads.ts +0 -2345
  245. package/src/maplibre/MapStyle/components/Transit.ts +0 -507
  246. package/src/maplibre/MapStyle/components/Walking.ts +0 -1538
  247. package/src/maplibre/MapStyle/tokens.ts +0 -21
  248. package/src/maplibre/NavigationControl/NavigationControl.svelte +0 -36
  249. package/src/maplibre/ScaleControl/ScaleControl.svelte +0 -25
  250. package/src/maplibre/Source/MapSource.stories.svelte +0 -9
  251. package/src/maplibre/Source/MapSource.svelte +0 -61
  252. package/src/maplibre/Source/source.ts +0 -89
  253. package/src/maplibre/Tooltip/Tooltip.svelte +0 -183
  254. package/src/maplibre/VectorLayer/VectorLayer.svelte +0 -142
  255. package/src/maplibre/VectorTileSource/VectorTileSource.svelte +0 -24
  256. package/src/maplibre/WithLinkLocation/WithLinkLocation.stories.svelte +0 -29
  257. package/src/maplibre/WithLinkLocation/WithLinkLocation.svelte +0 -83
  258. package/src/maplibre/context.svelte.ts +0 -89
  259. package/src/maplibre/utils.ts +0 -52
  260. package/src/utils/formatDate.js +0 -17
  261. package/src/utils/getColorsBetween.js +0 -25
  262. package/src/utils/getComparisonDiffs.js +0 -9
  263. package/src/utils/getEmbedContext.js +0 -28
  264. package/src/utils/getLaenderFromTopo.js +0 -35
  265. package/src/utils/getLaenderNicenameFromAgs.js +0 -27
  266. package/src/utils/prepareSophoraModel.js +0 -31
  267. package/src/utils/slugify.ts +0 -12
  268. package/static/favicon.png +0 -0
  269. package/svelte.config.js +0 -18
  270. package/tsconfig.json +0 -19
  271. package/vite.config.ts +0 -6
  272. package/vitest.workspace.ts +0 -32
  273. /package/{src → dist}/Autocomplete/Autocomplete.stories.svelte +0 -0
  274. /package/{src → dist}/Autocomplete/index.js +0 -0
  275. /package/{src → dist}/Button/index.js +0 -0
  276. /package/{src → dist}/Caption/Caption.stories.svelte +0 -0
  277. /package/{src/Caption/index.ts → dist/Caption/index.d.ts} +0 -0
  278. /package/{src → dist}/Card/index.js +0 -0
  279. /package/{src → dist}/ChartFooter/ChartFooter.mdx +0 -0
  280. /package/{src → dist}/ChartFooter/ChartFooter.stories.svelte +0 -0
  281. /package/{src → dist}/ChartFooter/index.js +0 -0
  282. /package/{src → dist}/ChartHeader/ChartHeader.mdx +0 -0
  283. /package/{src → dist}/ChartHeader/ChartHeader.stories.svelte +0 -0
  284. /package/{src → dist}/ChartHeader/index.js +0 -0
  285. /package/{src → dist}/Copy/Copy.stories.svelte +0 -0
  286. /package/{src/Copy/index.ts → dist/Copy/index.d.ts} +0 -0
  287. /package/{src → dist}/DesignTokens/DesignTokens.mdx +0 -0
  288. /package/{src → dist}/DesignTokens/index.js +0 -0
  289. /package/{src → dist}/FormLabel/FormLabel.mdx +0 -0
  290. /package/{src → dist}/FormLabel/FormLabel.stories.svelte +0 -0
  291. /package/{src/FormLabel/index.ts → dist/FormLabel/index.d.ts} +0 -0
  292. /package/{src → dist}/Headline/Headline.stories.svelte +0 -0
  293. /package/{src/Headline/index.ts → dist/Headline/index.d.ts} +0 -0
  294. /package/{src → dist}/HighlightCard/index.js +0 -0
  295. /package/{src → dist}/Input/index.js +0 -0
  296. /package/{src → dist}/Logotype/Logotype.svelte +0 -0
  297. /package/{src → dist}/Middot/Middot.svelte +0 -0
  298. /package/{src → dist}/Middot/index.js +0 -0
  299. /package/{src → dist}/Note/Note.stories.svelte +0 -0
  300. /package/{src/Note/index.ts → dist/Note/index.d.ts} +0 -0
  301. /package/{src → dist}/Select/Select.mdx +0 -0
  302. /package/{src → dist}/Select/SelectStoriesTemplate.svelte +0 -0
  303. /package/{src → dist}/Select/index.js +0 -0
  304. /package/{src → dist}/Select/mock_data/jobs.json +0 -0
  305. /package/{src → dist}/Switcher/Switcher.mdx +0 -0
  306. /package/{src → dist}/Switcher/Switcher.stories.svelte +0 -0
  307. /package/{src → dist}/Switcher/index.js +0 -0
  308. /package/{src → dist}/app.html +0 -0
  309. /package/{src → dist}/assets/close-circle.svg.svelte +0 -0
  310. /package/{src → dist}/assets/grow.svg.svelte +0 -0
  311. /package/{src → dist}/assets/hand-pointer.svg.svelte +0 -0
  312. /package/{src → dist}/assets/shrink.svg.svelte +0 -0
  313. /package/{src → dist}/assets/tap.svg.svelte +0 -0
  314. /package/{src → dist}/assets/times-circle-solid.svg.svelte +0 -0
  315. /package/{src → dist}/maplibre/AttributionControl/index.js +0 -0
  316. /package/{src → dist}/maplibre/GeocoderControl/index.js +0 -0
  317. /package/{src → dist}/maplibre/Map/index.js +0 -0
  318. /package/{src → dist}/maplibre/MapControl/MapControl.mdx +0 -0
  319. /package/{src → dist}/maplibre/MapControl/index.js +0 -0
  320. /package/{src → dist}/maplibre/MapStyle/SWRDataLabLight.mdx +0 -0
  321. /package/{src → dist}/maplibre/MapStyle/index.js +0 -0
  322. /package/{src → dist}/maplibre/Maplibre.mdx +0 -0
  323. /package/{src → dist}/maplibre/NavigationControl/index.js +0 -0
  324. /package/{src → dist}/maplibre/ScaleControl/index.js +0 -0
  325. /package/{src → dist}/maplibre/Source/index.js +0 -0
  326. /package/{src → dist}/maplibre/Tooltip/index.js +0 -0
  327. /package/{src → dist}/maplibre/VectorLayer/index.js +0 -0
  328. /package/{src → dist}/maplibre/VectorTileSource/VectorTileSource.mdx +0 -0
  329. /package/{src → dist}/maplibre/VectorTileSource/index.js +0 -0
  330. /package/{src → dist}/maplibre/WithLinkLocation/WithLinkLocation.mdx +0 -0
  331. /package/{src → dist}/maplibre/WithLinkLocation/index.js +0 -0
  332. /package/{src → dist}/styles/base.scss +0 -0
@@ -1,499 +0,0 @@
1
- import tokens from '../tokens';
2
- import { type Layer } from '../../types';
3
-
4
- export default function makeLanduse(): any {
5
- const landuse: Layer[] = [
6
- {
7
- id: 'background',
8
- type: 'background',
9
- paint: {
10
- 'background-color': tokens.background
11
- }
12
- },
13
- {
14
- id: 'water-ocean',
15
- type: 'fill',
16
- 'source-layer': 'ocean',
17
- paint: {
18
- 'fill-color': 'hsl(220, 30%, 96%)'
19
- }
20
- },
21
- {
22
- id: 'land-glacier',
23
- type: 'fill',
24
- 'source-layer': 'water_polygons',
25
- filter: ['all', ['==', 'kind', 'glacier']],
26
- paint: {
27
- 'fill-color': 'hsl(0,0%,100%)'
28
- }
29
- },
30
- {
31
- id: 'land-agriculture',
32
- type: 'fill',
33
- 'source-layer': 'land',
34
- filter: [
35
- 'all',
36
- [
37
- 'in',
38
- 'kind',
39
- 'brownfield',
40
- 'farmland',
41
- 'farmyard',
42
- 'greenfield',
43
- 'greenhouse_horticulture',
44
- 'orchard',
45
- 'plant_nursery',
46
- 'vineyard'
47
- ]
48
- ],
49
- paint: {
50
- 'fill-color': tokens.grass,
51
- 'fill-opacity': {
52
- stops: [
53
- [11, 0],
54
- [12, 1]
55
- ]
56
- }
57
- }
58
- },
59
- {
60
- id: 'land-waste',
61
- type: 'fill',
62
- 'source-layer': 'land',
63
- filter: ['all', ['in', 'kind', 'landfill']],
64
- paint: {
65
- 'fill-color': 'hsl(50,0%,95%)',
66
- 'fill-opacity': {
67
- stops: [
68
- [10, 0],
69
- [11, 1]
70
- ]
71
- }
72
- }
73
- },
74
- {
75
- id: 'land-park',
76
- type: 'fill',
77
- 'source-layer': 'land',
78
- filter: ['all', ['in', 'kind', 'park', 'village_green', 'recreation_ground']],
79
- paint: {
80
- 'fill-color': tokens.grass,
81
- 'fill-opacity': {
82
- stops: [
83
- [11, 0],
84
- [12, 1]
85
- ]
86
- }
87
- }
88
- },
89
- {
90
- id: 'land-garden',
91
- type: 'fill',
92
- 'source-layer': 'land',
93
- filter: ['all', ['in', 'kind', 'allotments', 'garden']],
94
- paint: {
95
- 'fill-color': tokens.grass,
96
- 'fill-opacity': {
97
- stops: [
98
- [14, 0],
99
- [15, 1]
100
- ]
101
- }
102
- }
103
- },
104
- {
105
- id: 'land-burial',
106
- type: 'fill',
107
- 'source-layer': 'land',
108
- filter: ['all', ['in', 'kind', 'cemetery', 'grave_yard']],
109
- paint: {
110
- 'fill-color': tokens.grass,
111
- 'fill-opacity': {
112
- stops: [
113
- [12, 0],
114
- [13, 1]
115
- ]
116
- }
117
- }
118
- },
119
- {
120
- id: 'land-leisure',
121
- type: 'fill',
122
- 'source-layer': 'land',
123
- filter: ['all', ['in', 'kind', 'miniature_golf', 'playground', 'golf_course']],
124
- paint: {
125
- 'fill-color': tokens.grass_dark
126
- }
127
- },
128
- {
129
- id: 'land-rock',
130
- type: 'fill',
131
- 'source-layer': 'land',
132
- filter: ['all', ['in', 'kind', 'bare_rock', 'scree', 'shingle']],
133
- paint: {
134
- 'fill-color': 'hsl(192,0%,90%)'
135
- }
136
- },
137
- {
138
- id: 'land-forest',
139
- type: 'fill',
140
- 'source-layer': 'land',
141
- filter: ['all', ['in', 'kind', 'forest']],
142
- paint: {
143
- 'fill-color': tokens.grass,
144
- 'fill-opacity': {
145
- stops: [
146
- [12, 0],
147
- [13, 0.25]
148
- ]
149
- }
150
- }
151
- },
152
- {
153
- id: 'land-grass',
154
- type: 'fill',
155
- 'source-layer': 'land',
156
- filter: ['all', ['in', 'kind', 'grass', 'grassland', 'meadow', 'wet_meadow']],
157
- paint: {
158
- 'fill-color': tokens.grass,
159
- 'fill-opacity': {
160
- stops: [
161
- [11, 0],
162
- [12, 1]
163
- ]
164
- }
165
- }
166
- },
167
- {
168
- id: 'land-vegetation',
169
- type: 'fill',
170
- 'source-layer': 'land',
171
- filter: ['all', ['in', 'kind', 'heath', 'scrub']],
172
- paint: {
173
- 'fill-color': tokens.grass,
174
- 'fill-opacity': {
175
- stops: [
176
- [11, 0],
177
- [12, 1]
178
- ]
179
- }
180
- }
181
- },
182
- {
183
- id: 'land-sand',
184
- type: 'fill',
185
- 'source-layer': 'land',
186
- filter: ['all', ['in', 'kind', 'beach', 'sand']],
187
- paint: {
188
- 'fill-color': 'hsl(60,0%,95%)'
189
- }
190
- },
191
- {
192
- id: 'land-wetland',
193
- type: 'fill',
194
- 'source-layer': 'land',
195
- filter: ['all', ['in', 'kind', 'bog', 'marsh', 'string_bog', 'swamp']],
196
- paint: {
197
- 'fill-color': tokens.marsh,
198
- 'fill-opacity': {
199
- stops: [
200
- [10, 0],
201
- [11, 1]
202
- ]
203
- }
204
- }
205
- },
206
- {
207
- id: 'water-river',
208
- type: 'line',
209
- 'source-layer': 'water_lines',
210
- filter: ['all', ['in', 'kind', 'river'], ['!=', 'tunnel', true]],
211
- paint: {
212
- 'line-color': tokens.water,
213
- 'line-width': {
214
- stops: [
215
- [8, 0],
216
- [10, 1],
217
- [12, 2],
218
- [15, 4],
219
- [17, 9],
220
- [18, 20],
221
- [20, 60]
222
- ]
223
- }
224
- },
225
- layout: {
226
- 'line-cap': 'round',
227
- 'line-join': 'round'
228
- }
229
- },
230
- {
231
- id: 'water-canal',
232
- type: 'line',
233
- 'source-layer': 'water_lines',
234
- filter: ['all', ['in', 'kind', 'canal'], ['!=', 'tunnel', true], ['!=', 'bridge', true]],
235
- paint: {
236
- 'line-color': tokens.water,
237
- 'line-width': {
238
- stops: [
239
- [9, 0],
240
- [10, 2],
241
- [15, 3],
242
- [17, 8],
243
- [18, 17],
244
- [20, 50]
245
- ]
246
- }
247
- },
248
- layout: {
249
- 'line-cap': 'round',
250
- 'line-join': 'round'
251
- }
252
- },
253
- {
254
- id: 'water-stream',
255
- type: 'line',
256
- 'source-layer': 'water_lines',
257
- filter: ['all', ['in', 'kind', 'stream'], ['!=', 'tunnel', true], ['!=', 'bridge', true]],
258
- paint: {
259
- 'line-color': tokens.water,
260
- 'line-width': {
261
- stops: [
262
- [13, 0],
263
- [14, 1],
264
- [15, 2],
265
- [17, 6],
266
- [18, 12],
267
- [20, 30]
268
- ]
269
- }
270
- },
271
- layout: {
272
- 'line-cap': 'round',
273
- 'line-join': 'round'
274
- }
275
- },
276
- {
277
- id: 'water-ditch',
278
- type: 'line',
279
- 'source-layer': 'water_lines',
280
- filter: ['all', ['in', 'kind', 'ditch'], ['!=', 'tunnel', true], ['!=', 'bridge', true]],
281
- paint: {
282
- 'line-color': tokens.water_light,
283
- 'line-width': {
284
- stops: [
285
- [14, 0],
286
- [15, 1],
287
- [17, 4],
288
- [18, 8],
289
- [20, 20]
290
- ]
291
- }
292
- },
293
- layout: {
294
- 'line-cap': 'round',
295
- 'line-join': 'round'
296
- }
297
- },
298
- {
299
- id: 'water-area',
300
- type: 'fill',
301
- 'source-layer': 'water_polygons',
302
- filter: ['==', 'kind', 'water'],
303
- paint: {
304
- 'fill-color': tokens.water_light,
305
- 'fill-opacity': {
306
- stops: [
307
- [4, 0],
308
- [6, 1]
309
- ]
310
- }
311
- }
312
- },
313
- {
314
- id: 'water-area-river',
315
- type: 'fill',
316
- 'source-layer': 'water_polygons',
317
- filter: ['==', 'kind', 'river'],
318
- paint: {
319
- 'fill-color': tokens.water,
320
- 'fill-opacity': {
321
- stops: [
322
- [4, 0],
323
- [6, 1]
324
- ]
325
- }
326
- }
327
- },
328
- {
329
- id: 'water-area-small',
330
- type: 'fill',
331
- 'source-layer': 'water_polygons',
332
- filter: ['in', 'kind', 'reservoir', 'basin', 'dock'],
333
- paint: {
334
- 'fill-color': tokens.water,
335
- 'fill-opacity': {
336
- stops: [
337
- [4, 0],
338
- [6, 1]
339
- ]
340
- }
341
- }
342
- },
343
- {
344
- id: 'water-dam-area',
345
- type: 'fill',
346
- 'source-layer': 'dam_polygons',
347
- filter: ['==', 'kind', 'dam'],
348
- paint: {
349
- 'fill-color': 'hsl(33,0%,95%)',
350
- 'fill-opacity': {
351
- stops: [
352
- [12, 0],
353
- [13, 1]
354
- ]
355
- }
356
- }
357
- },
358
- {
359
- id: 'water-dam',
360
- type: 'line',
361
- 'source-layer': 'dam_lines',
362
- filter: ['==', 'kind', 'dam'],
363
- paint: {
364
- 'line-color': 'hsl(205,0%,85%)'
365
- },
366
- layout: {
367
- 'line-cap': 'round',
368
- 'line-join': 'round'
369
- }
370
- },
371
- {
372
- id: 'water-pier-area',
373
- type: 'fill',
374
- 'source-layer': 'pier_polygons',
375
- filter: ['in', 'kind', 'pier', 'breakwater', 'groyne'],
376
- paint: {
377
- 'fill-color': tokens.street_tertiary,
378
- 'fill-opacity': {
379
- stops: [
380
- [14, 0],
381
- [15, 1]
382
- ]
383
- }
384
- }
385
- },
386
- {
387
- id: 'water-pier',
388
- type: 'line',
389
- 'source-layer': 'pier_lines',
390
- filter: ['in', 'kind', 'pier', 'breakwater', 'groyne'],
391
- paint: {
392
- 'line-color': tokens.street_tertiary,
393
- 'line-opacity': {
394
- stops: [
395
- [14, 0],
396
- [15, 1]
397
- ]
398
- }
399
- },
400
- layout: {
401
- 'line-cap': 'round',
402
- 'line-join': 'round'
403
- }
404
- },
405
- {
406
- id: 'site-dangerarea',
407
- type: 'fill',
408
- 'source-layer': 'sites',
409
- filter: ['in', 'kind', 'danger_area'],
410
- paint: {
411
- 'fill-color': 'hsl(0,0%,50%)',
412
- 'fill-outline-color': 'hsl(0,0%,50%)',
413
- 'fill-opacity': 0.3
414
- }
415
- },
416
- {
417
- id: 'site-university',
418
- type: 'fill',
419
- 'source-layer': 'sites',
420
- filter: ['in', 'kind', 'university'],
421
- paint: {
422
- 'fill-color': 'hsl(60,0%,75%)',
423
- 'fill-opacity': 0.1
424
- }
425
- },
426
- {
427
- id: 'site-college',
428
- type: 'fill',
429
- 'source-layer': 'sites',
430
- filter: ['in', 'kind', 'college'],
431
- paint: {
432
- 'fill-color': 'hsl(60,0%,75%)',
433
- 'fill-opacity': 0.1
434
- }
435
- },
436
- {
437
- id: 'site-school',
438
- type: 'fill',
439
- 'source-layer': 'sites',
440
- filter: ['in', 'kind', 'school'],
441
- paint: {
442
- 'fill-color': 'hsl(60,0%,75%)',
443
- 'fill-opacity': 0.1
444
- }
445
- },
446
- {
447
- id: 'site-hospital',
448
- type: 'fill',
449
- 'source-layer': 'sites',
450
- filter: ['in', 'kind', 'hospital'],
451
- paint: {
452
- 'fill-color': 'hsl(0,0%,70%)',
453
- 'fill-opacity': 0.1
454
- }
455
- },
456
- {
457
- id: 'site-prison',
458
- type: 'fill',
459
- 'source-layer': 'sites',
460
- filter: ['in', 'kind', 'prison'],
461
- paint: {
462
- 'fill-color': 'hsl(305,0%,97%)',
463
- 'fill-opacity': 0.1
464
- }
465
- },
466
- {
467
- id: 'site-parking',
468
- type: 'fill',
469
- 'source-layer': 'sites',
470
- filter: ['in', 'kind', 'parking'],
471
- paint: {
472
- 'fill-color': 'hsl(24,0%,95%)'
473
- }
474
- },
475
- {
476
- id: 'site-bicycleparking',
477
- type: 'fill',
478
- 'source-layer': 'sites',
479
- filter: ['in', 'kind', 'bicycle_parking'],
480
- paint: {
481
- 'fill-color': 'hsl(24,0%,95%)'
482
- }
483
- },
484
- {
485
- id: 'site-construction',
486
- type: 'fill',
487
- 'source-layer': 'sites',
488
- filter: ['in', 'kind', 'construction'],
489
- paint: {
490
- 'fill-color': 'hsl(0,0%,66%)',
491
- 'fill-opacity': 0.1
492
- }
493
- }
494
- ].map((el) => {
495
- return { source: 'versatiles-osm', ...el } as Layer;
496
- });
497
-
498
- return { landuse };
499
- }
@@ -1 +0,0 @@
1
- export default function makeNatural() {}
@@ -1,199 +0,0 @@
1
- import tokens from '../tokens';
2
- import type { SymbolLayerSpecification } from 'maplibre-gl';
3
-
4
- export default function makePlaceLabels() {
5
- const placeLabels: SymbolLayerSpecification[] = [
6
- {
7
- id: 'label-place-neighbourhood',
8
- filter: ['==', 'kind', 'neighbourhood'],
9
- minzoom: 14,
10
- layout: {
11
- 'text-field': '{name_de}',
12
- 'text-font': tokens.sans_regular,
13
- 'text-size': {
14
- stops: [[14, 14]]
15
- }
16
- },
17
- paint: {
18
- 'text-color': tokens.label_secondary,
19
- 'text-halo-color': tokens.background,
20
- 'text-halo-width': 2
21
- }
22
- },
23
- {
24
- id: 'label-place-quarter',
25
- filter: ['==', 'kind', 'quarter'],
26
- minzoom: 14,
27
- layout: {
28
- 'text-field': '{name_de}',
29
- 'text-font': tokens.sans_regular,
30
- 'text-size': {
31
- stops: [[10, 14]]
32
- }
33
- },
34
- paint: {
35
- 'text-color': tokens.label_secondary,
36
- 'text-halo-color': tokens.background,
37
- 'text-halo-width': 2
38
- }
39
- },
40
- {
41
- id: 'label-place-suburb',
42
- filter: ['==', 'kind', 'suburb'],
43
- minzoom: 11,
44
- layout: {
45
- 'text-field': '{name_de}',
46
- 'text-font': tokens.sans_regular,
47
- 'text-size': {
48
- stops: [
49
- [11, 13],
50
- [13, 15]
51
- ]
52
- }
53
- },
54
- paint: {
55
- 'text-color': tokens.label_secondary,
56
- 'text-halo-color': tokens.background,
57
- 'text-halo-width': 1.5
58
- }
59
- },
60
- {
61
- id: 'label-place-hamlet',
62
- filter: ['==', 'kind', 'hamlet'],
63
- minzoom: 13,
64
- layout: {
65
- 'text-field': '{name_de}',
66
- 'text-font': tokens.sans_regular,
67
- 'text-size': {
68
- stops: [
69
- [10, 11],
70
- [12, 14]
71
- ]
72
- }
73
- },
74
- paint: {
75
- 'text-color': tokens.label_secondary,
76
- 'text-halo-color': tokens.background,
77
- 'text-halo-width': 2
78
- }
79
- },
80
- {
81
- id: 'label-place-village',
82
- filter: ['==', 'kind', 'village'],
83
- minzoom: 11,
84
- layout: {
85
- 'text-field': '{name_de}',
86
- 'text-font': tokens.sans_regular,
87
- 'text-size': {
88
- stops: [
89
- [9, 11],
90
- [12, 14]
91
- ]
92
- }
93
- },
94
- paint: {
95
- 'text-color': tokens.label_secondary,
96
- 'text-halo-color': tokens.background,
97
- 'text-halo-width': 2
98
- }
99
- },
100
-
101
- {
102
- id: 'label-place-town',
103
- filter: ['==', 'kind', 'town'],
104
- minzoom: 9,
105
- layout: {
106
- 'text-field': '{name_de}',
107
- 'text-font': tokens.sans_regular,
108
- 'text-letter-spacing': 0.015,
109
- 'text-size': {
110
- stops: [
111
- [8, 13],
112
- [12, 16]
113
- ]
114
- }
115
- },
116
- paint: {
117
- 'text-color': tokens.label_primary,
118
- 'text-halo-color': tokens.background,
119
- 'text-halo-width': 2
120
- }
121
- },
122
-
123
- {
124
- id: 'label-place-city',
125
- filter: ['==', 'kind', 'city'],
126
- minzoom: 6,
127
- maxzoom: 11,
128
- layout: {
129
- 'text-field': '{name_de}',
130
- 'text-font': tokens.sans_regular,
131
- 'text-letter-spacing': 0.015,
132
- 'text-size': {
133
- stops: [
134
- [8, 14],
135
- [10, 14]
136
- ]
137
- }
138
- },
139
- paint: {
140
- 'text-color': tokens.label_secondary,
141
- 'text-halo-color': tokens.background,
142
- 'text-halo-width': 2
143
- }
144
- },
145
- {
146
- id: 'label-place-statecapital',
147
- filter: ['==', 'kind', 'state_capital'],
148
- minzoom: 5,
149
- maxzoom: 12,
150
- layout: {
151
- 'text-field': '{name_de}',
152
- 'text-font': tokens.sans_regular,
153
- 'text-letter-spacing': 0.025,
154
- 'text-size': {
155
- stops: [
156
- [5, 13],
157
- [14, 20]
158
- ]
159
- }
160
- },
161
- paint: {
162
- 'text-color': tokens.label_secondary,
163
- 'text-halo-color': tokens.background,
164
- 'text-halo-width': 1
165
- }
166
- },
167
- {
168
- id: 'label-place-capital',
169
- filter: ['all', ['==', 'kind', 'capital'], ['==', 'name_de', 'Berlin']],
170
- minzoom: 5,
171
- maxzoom: 12,
172
- layout: {
173
- 'text-field': '{name_de}',
174
- 'text-letter-spacing': 0.015,
175
- 'text-font': tokens.sans_medium,
176
- 'text-size': {
177
- stops: [
178
- [5, 15],
179
- [14, 20]
180
- ]
181
- }
182
- },
183
- paint: {
184
- 'text-color': tokens.label_primary,
185
- 'text-halo-color': tokens.background,
186
- 'text-halo-width': 2
187
- }
188
- }
189
- ].map((el) => {
190
- return {
191
- type: 'symbol',
192
- source: 'versatiles-osm',
193
- 'source-layer': 'place_labels',
194
- ...el
195
- } as SymbolLayerSpecification;
196
- });
197
-
198
- return { placeLabels };
199
- }