@swr-data-lab/components 1.12.2 → 1.12.4
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.
package/package.json
CHANGED
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@maplibre/maplibre-gl-geocoder": "^1.8.0",
|
|
23
|
-
"@versatiles/style": "^5.6.0",
|
|
24
23
|
"maplibre-gl": "^5.5.0",
|
|
25
24
|
"svelte-select": "^5.8.3"
|
|
26
25
|
},
|
|
@@ -38,6 +37,7 @@
|
|
|
38
37
|
"@sveltejs/adapter-auto": "^3.0.0",
|
|
39
38
|
"@sveltejs/kit": "^2.0.0",
|
|
40
39
|
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
|
40
|
+
"@versatiles/style": "^5.6.0",
|
|
41
41
|
"@vitest/browser": "^3.1.1",
|
|
42
42
|
"@vitest/coverage-v8": "^3.1.1",
|
|
43
43
|
"concurrently": "^9.0.1",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"svelte": "./src/index.js"
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
"version": "1.12.
|
|
70
|
+
"version": "1.12.4",
|
|
71
71
|
"overrides": {
|
|
72
72
|
"storybook": "$storybook"
|
|
73
73
|
}
|
package/src/index.js
CHANGED
|
@@ -1,16 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
export { default as Autocomplete } from './Autocomplete/Autocomplete.svelte';
|
|
3
|
-
export { default as Switcher } from './Switcher/Switcher.svelte';
|
|
4
|
-
export { default as Input } from './Input/Input.svelte';
|
|
5
|
-
export { default as Button } from './Button/Button.svelte';
|
|
6
|
-
export { default as Select } from './Select/Select.svelte';
|
|
1
|
+
// Design Tokens
|
|
7
2
|
export { default as DesignTokens } from './DesignTokens/DesignTokens.svelte';
|
|
8
3
|
export { tokens as tokens } from './DesignTokens/index.js';
|
|
4
|
+
|
|
5
|
+
// Typography
|
|
6
|
+
export { default as Headline } from './Headline/Headline.svelte';
|
|
7
|
+
export { default as Copy } from './Copy/Copy.svelte';
|
|
8
|
+
export { default as Caption } from './Caption/Caption.svelte';
|
|
9
|
+
export { default as Note } from './Note/Note.svelte';
|
|
10
|
+
|
|
11
|
+
// Display
|
|
12
|
+
export { default as Card } from './Card/Card.svelte';
|
|
13
|
+
|
|
14
|
+
// Chart
|
|
9
15
|
export { default as ChartHeader } from './ChartHeader/ChartHeader.svelte';
|
|
10
16
|
export { default as ChartFooter } from './ChartFooter/ChartFooter.svelte';
|
|
17
|
+
export { default as Logotype } from './Logotype/Logotype.svelte';
|
|
11
18
|
export { default as Middot } from './Middot/Middot.svelte';
|
|
12
|
-
export { default as FormLabel } from './FormLabel/FormLabel.svelte';
|
|
13
19
|
|
|
20
|
+
// Maplibre
|
|
14
21
|
export { default as Map } from './maplibre/Map/Map.svelte';
|
|
15
22
|
export { SWRDataLabLight } from './maplibre/MapStyle';
|
|
16
23
|
export { default as MapControl } from './maplibre/MapControl/MapControl.svelte';
|
|
@@ -22,3 +29,13 @@ export { default as VectorLayer } from './maplibre/VectorLayer/VectorLayer.svelt
|
|
|
22
29
|
export { default as VectorTileSource } from './maplibre/VectorTileSource/VectorTileSource.svelte';
|
|
23
30
|
export { default as Tooltip } from './maplibre/Tooltip/Tooltip.svelte';
|
|
24
31
|
export { default as WithLinkLocation } from './maplibre/WithLinkLocation/WithLinkLocation.svelte';
|
|
32
|
+
|
|
33
|
+
// Form
|
|
34
|
+
export { default as FormLabel } from './FormLabel/FormLabel.svelte';
|
|
35
|
+
export { default as Switcher } from './Switcher/Switcher.svelte';
|
|
36
|
+
export { default as Input } from './Input/Input.svelte';
|
|
37
|
+
export { default as Button } from './Button/Button.svelte';
|
|
38
|
+
export { default as Select } from './Select/Select.svelte';
|
|
39
|
+
|
|
40
|
+
// Deprecated
|
|
41
|
+
export { default as Autocomplete } from './Autocomplete/Autocomplete.svelte';
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
font-size: var(--fs-small-1);
|
|
69
69
|
border-radius: var(--br-small);
|
|
70
70
|
border: 1px solid rgba(0, 0, 0, 0.75);
|
|
71
|
-
box-shadow: 1px 1px
|
|
71
|
+
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.075);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
.maplibre-gl-geocoder--error {
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
background-color: transparent;
|
|
86
86
|
color: var(--gray-dark-5);
|
|
87
87
|
border: 0;
|
|
88
|
-
height:
|
|
88
|
+
height: 1.85em;
|
|
89
89
|
padding: 0 1.85em;
|
|
90
90
|
padding-top: 0.1em;
|
|
91
91
|
text-overflow: ellipsis;
|
|
@@ -93,8 +93,12 @@
|
|
|
93
93
|
overflow: hidden;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
.maplibregl-ctrl-geocoder--input::placeholder {
|
|
97
|
+
opacity: 1;
|
|
98
|
+
color: var(--gray-dark-2);
|
|
99
|
+
}
|
|
96
100
|
.maplibregl-ctrl-geocoder--input:focus {
|
|
97
|
-
color:
|
|
101
|
+
color: var(--gray-dark-5);
|
|
98
102
|
outline: 0;
|
|
99
103
|
}
|
|
100
104
|
|
|
@@ -106,9 +106,10 @@
|
|
|
106
106
|
{/if}
|
|
107
107
|
{/if}
|
|
108
108
|
{#if showDebug}
|
|
109
|
-
<
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
<pre class="debug">
|
|
110
|
+
{Object.entries({ ...center, zoom, allowZoom, allowRotation })
|
|
111
|
+
.map(([key, val]) => `${key}: ${val}`)
|
|
112
|
+
.join('\n')}</pre>
|
|
112
113
|
{/if}
|
|
113
114
|
</div>
|
|
114
115
|
|
|
@@ -122,9 +123,10 @@
|
|
|
122
123
|
position: absolute;
|
|
123
124
|
top: 0;
|
|
124
125
|
right: 0;
|
|
125
|
-
background:
|
|
126
|
+
background: rgba(0, 0, 0, 0.9);
|
|
126
127
|
color: white;
|
|
127
128
|
z-index: 1000;
|
|
129
|
+
padding: 2px;
|
|
128
130
|
font-family: monospace;
|
|
129
131
|
}
|
|
130
132
|
:global {
|
|
@@ -210,9 +212,11 @@
|
|
|
210
212
|
}
|
|
211
213
|
|
|
212
214
|
.maplibregl-ctrl-group {
|
|
213
|
-
background:
|
|
215
|
+
background: white;
|
|
216
|
+
border: 1px solid rgba(0, 0, 0, 0.75);
|
|
217
|
+
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.075);
|
|
214
218
|
border-radius: var(--br-small);
|
|
215
|
-
|
|
219
|
+
overflow: hidden;
|
|
216
220
|
}
|
|
217
221
|
|
|
218
222
|
.maplibregl-ctrl-group button {
|
|
@@ -244,11 +248,11 @@
|
|
|
244
248
|
}
|
|
245
249
|
|
|
246
250
|
.maplibregl-ctrl button:disabled .maplibregl-ctrl-icon {
|
|
247
|
-
opacity: 0.
|
|
251
|
+
opacity: 0.5;
|
|
248
252
|
}
|
|
249
253
|
|
|
250
254
|
.maplibregl-ctrl button:not(:disabled):hover {
|
|
251
|
-
background-color:
|
|
255
|
+
background-color: var(--gray-light-5);
|
|
252
256
|
}
|
|
253
257
|
|
|
254
258
|
.maplibregl-ctrl-group button:focus:focus-visible {
|
|
@@ -70,9 +70,10 @@
|
|
|
70
70
|
<style>
|
|
71
71
|
.container {
|
|
72
72
|
background: white;
|
|
73
|
-
padding: 0.
|
|
73
|
+
padding: 0.75em;
|
|
74
74
|
border-radius: 2px;
|
|
75
75
|
border: 1px solid rgba(0, 0, 0, 0.75);
|
|
76
|
+
border-radius: var(--br-small);
|
|
76
77
|
filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.1));
|
|
77
78
|
pointer-events: none;
|
|
78
79
|
}
|