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