@swr-data-lab/components 2.4.3 → 2.4.5
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.
|
@@ -36,7 +36,7 @@ export default function makePlaceLabels() {
|
|
|
36
36
|
{
|
|
37
37
|
id: 'label-place-quarter',
|
|
38
38
|
filter: ['all', ['in', 'kind', 'neighbourhood']],
|
|
39
|
-
minzoom:
|
|
39
|
+
minzoom: 13,
|
|
40
40
|
layout: {
|
|
41
41
|
'text-size': {
|
|
42
42
|
stops: [
|
|
@@ -46,7 +46,7 @@ export default function makePlaceLabels() {
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
paint: {
|
|
49
|
-
'text-color': tokens.
|
|
49
|
+
'text-color': tokens.label_secondary
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
{
|
|
@@ -57,17 +57,17 @@ export default function makePlaceLabels() {
|
|
|
57
57
|
['>', 'population', 1000],
|
|
58
58
|
['<', 'population', 15_000]
|
|
59
59
|
],
|
|
60
|
-
minzoom:
|
|
60
|
+
minzoom: 12,
|
|
61
61
|
layout: {
|
|
62
62
|
'text-size': {
|
|
63
63
|
stops: [
|
|
64
|
-
[11,
|
|
65
|
-
[15,
|
|
64
|
+
[11, 14],
|
|
65
|
+
[15, 16]
|
|
66
66
|
]
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
paint: {
|
|
70
|
-
'text-color': tokens.
|
|
70
|
+
'text-color': tokens.label_secondary
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
{
|
|
@@ -157,13 +157,13 @@ export default function makePlaceLabels() {
|
|
|
157
157
|
layout: {
|
|
158
158
|
'text-size': {
|
|
159
159
|
stops: [
|
|
160
|
-
[7,
|
|
161
|
-
[15,
|
|
160
|
+
[7, 15],
|
|
161
|
+
[15, 21]
|
|
162
162
|
]
|
|
163
163
|
}
|
|
164
164
|
},
|
|
165
165
|
paint: {
|
|
166
|
-
'text-color': tokens.
|
|
166
|
+
'text-color': tokens.label_secondary
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
169
|
{
|
|
@@ -175,12 +175,12 @@ export default function makePlaceLabels() {
|
|
|
175
175
|
'text-size': {
|
|
176
176
|
stops: [
|
|
177
177
|
[7, 15],
|
|
178
|
-
[
|
|
178
|
+
[15, 21]
|
|
179
179
|
]
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
182
|
paint: {
|
|
183
|
-
'text-color': tokens.
|
|
183
|
+
'text-color': tokens.label_secondary
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
].map((el) => {
|
|
@@ -191,14 +191,15 @@ export default function makePlaceLabels() {
|
|
|
191
191
|
'source-layer': 'place_labels',
|
|
192
192
|
layout: {
|
|
193
193
|
'text-font': tokens.sans_regular,
|
|
194
|
-
'text-letter-spacing': 0.
|
|
194
|
+
'text-letter-spacing': 0.05,
|
|
195
195
|
'text-field': '{name_de}',
|
|
196
196
|
...el.layout
|
|
197
197
|
},
|
|
198
198
|
paint: {
|
|
199
199
|
'text-color': tokens.label_secondary,
|
|
200
200
|
'text-halo-color': tokens.background,
|
|
201
|
-
'text-halo-width':
|
|
201
|
+
'text-halo-width': 2,
|
|
202
|
+
'text-halo-blur': 0.5,
|
|
202
203
|
...el.paint
|
|
203
204
|
}
|
|
204
205
|
};
|
|
@@ -211,20 +212,21 @@ export default function makePlaceLabels() {
|
|
|
211
212
|
maxzoom: 8,
|
|
212
213
|
layout: {
|
|
213
214
|
'text-field': '{name_de}',
|
|
214
|
-
'text-letter-spacing': 0.
|
|
215
|
+
'text-letter-spacing': 0.085,
|
|
215
216
|
'text-font': tokens.sans_regular,
|
|
216
217
|
'text-transform': 'uppercase',
|
|
217
218
|
'text-size': {
|
|
218
219
|
stops: [
|
|
219
|
-
[4,
|
|
220
|
-
[7,
|
|
220
|
+
[4, 11],
|
|
221
|
+
[7, 18]
|
|
221
222
|
]
|
|
222
223
|
}
|
|
223
224
|
},
|
|
224
225
|
paint: {
|
|
225
226
|
'text-color': tokens.label_tertiary,
|
|
226
227
|
'text-halo-color': tokens.background,
|
|
227
|
-
'text-halo-width':
|
|
228
|
+
'text-halo-width': 2.5,
|
|
229
|
+
'text-halo-blur': 0.5
|
|
228
230
|
}
|
|
229
231
|
}
|
|
230
232
|
].map((el) => {
|
|
@@ -15,9 +15,9 @@ const tokens = {
|
|
|
15
15
|
street_secondary_case: 'hsl(0, 0%, 75%)',
|
|
16
16
|
street_tertiary: 'hsl(0, 0%, 95%)',
|
|
17
17
|
street_tertiary_case: 'hsl(0, 0%, 70%)',
|
|
18
|
-
label_primary: 'hsl(240,
|
|
19
|
-
label_secondary: 'hsl(240, 2%,
|
|
20
|
-
label_tertiary: 'hsl(240, 2%,
|
|
18
|
+
label_primary: 'hsl(240, 10%, 2%)',
|
|
19
|
+
label_secondary: 'hsl(240, 2%, 15%)',
|
|
20
|
+
label_tertiary: 'hsl(240, 2%, 40%)',
|
|
21
21
|
building: '#f3f2f1'
|
|
22
22
|
};
|
|
23
23
|
export default tokens;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swr-data-lab/components",
|
|
3
3
|
"description": "SWR Data Lab component library",
|
|
4
|
-
"version": "2.4.
|
|
4
|
+
"version": "2.4.5",
|
|
5
5
|
"author": "SWR Data Lab",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"type": "module",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"@semantic-release/changelog": "^6.0.3",
|
|
40
40
|
"@semantic-release/git": "^10.0.1",
|
|
41
41
|
"@semantic-release/npm": "^12.0.2",
|
|
42
|
-
"@storybook/addon-docs": "^9.1.
|
|
43
|
-
"@storybook/addon-links": "^9.1.
|
|
42
|
+
"@storybook/addon-docs": "^9.1.2",
|
|
43
|
+
"@storybook/addon-links": "^9.1.2",
|
|
44
44
|
"@storybook/addon-svelte-csf": "^5.0.7",
|
|
45
|
-
"@storybook/addon-vitest": "^9.1.
|
|
46
|
-
"@storybook/sveltekit": "^9.1.
|
|
45
|
+
"@storybook/addon-vitest": "^9.1.2",
|
|
46
|
+
"@storybook/sveltekit": "^9.1.2",
|
|
47
47
|
"@storybook/test-runner": "^0.23.0",
|
|
48
48
|
"@sveltejs/adapter-auto": "^6.0.1",
|
|
49
49
|
"@sveltejs/kit": "^2.27.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"sass": "^1.89.1",
|
|
62
62
|
"sass-embedded": "^1.89.2",
|
|
63
63
|
"semantic-release": "^24.2.7",
|
|
64
|
-
"storybook": "^9.1.
|
|
64
|
+
"storybook": "^9.1.2",
|
|
65
65
|
"svelte": "^5.23.0",
|
|
66
66
|
"svelte-check": "^4.0.0",
|
|
67
67
|
"svelte-preprocess": "^6.0.3",
|