@swr-data-lab/components 2.4.4 → 2.4.6
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.
|
@@ -39,11 +39,11 @@ const shades = {
|
|
|
39
39
|
dark5: '#005163'
|
|
40
40
|
},
|
|
41
41
|
yellow: {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
light5: '#FFFDB2',
|
|
43
|
+
light4: '#FEF67C',
|
|
44
44
|
light3: '#FDEF3E',
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
light2: '#FAE617',
|
|
46
|
+
light1: '#F5DF13',
|
|
47
47
|
base: '#EFD710',
|
|
48
48
|
dark1: '#E3CA0D',
|
|
49
49
|
dark2: '#DCC10A',
|
|
@@ -3,6 +3,7 @@ import tokens from '../tokens';
|
|
|
3
3
|
// Ideally majorCities would include Frankfurt and Leipzig, but they're not
|
|
4
4
|
// state capitals so they're not available in the versatiles data until z6
|
|
5
5
|
const majorCities = [
|
|
6
|
+
'Berlin',
|
|
6
7
|
'Stuttgart',
|
|
7
8
|
'München',
|
|
8
9
|
'Mainz',
|
|
@@ -157,30 +158,13 @@ export default function makePlaceLabels() {
|
|
|
157
158
|
layout: {
|
|
158
159
|
'text-size': {
|
|
159
160
|
stops: [
|
|
160
|
-
[7,
|
|
161
|
-
[15,
|
|
161
|
+
[7, 13],
|
|
162
|
+
[15, 21]
|
|
162
163
|
]
|
|
163
164
|
}
|
|
164
165
|
},
|
|
165
166
|
paint: {
|
|
166
|
-
'text-color': tokens.
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
id: 'label-place-capital',
|
|
171
|
-
filter: ['all', ['==', 'kind', 'capital'], ['>', 'population', 1000000]],
|
|
172
|
-
minzoom: 5,
|
|
173
|
-
maxzoom: 12,
|
|
174
|
-
layout: {
|
|
175
|
-
'text-size': {
|
|
176
|
-
stops: [
|
|
177
|
-
[7, 15],
|
|
178
|
-
[14, 23]
|
|
179
|
-
]
|
|
180
|
-
}
|
|
181
|
-
},
|
|
182
|
-
paint: {
|
|
183
|
-
'text-color': tokens.label_primary
|
|
167
|
+
'text-color': tokens.label_secondary
|
|
184
168
|
}
|
|
185
169
|
}
|
|
186
170
|
].map((el) => {
|
|
@@ -191,15 +175,15 @@ export default function makePlaceLabels() {
|
|
|
191
175
|
'source-layer': 'place_labels',
|
|
192
176
|
layout: {
|
|
193
177
|
'text-font': tokens.sans_regular,
|
|
194
|
-
'text-letter-spacing': 0.
|
|
178
|
+
'text-letter-spacing': 0.05,
|
|
195
179
|
'text-field': '{name_de}',
|
|
196
180
|
...el.layout
|
|
197
181
|
},
|
|
198
182
|
paint: {
|
|
199
183
|
'text-color': tokens.label_secondary,
|
|
200
184
|
'text-halo-color': tokens.background,
|
|
201
|
-
'text-halo-width': 2
|
|
202
|
-
'text-halo-blur': 0,
|
|
185
|
+
'text-halo-width': 2,
|
|
186
|
+
'text-halo-blur': 0.5,
|
|
203
187
|
...el.paint
|
|
204
188
|
}
|
|
205
189
|
};
|
|
@@ -212,21 +196,21 @@ export default function makePlaceLabels() {
|
|
|
212
196
|
maxzoom: 8,
|
|
213
197
|
layout: {
|
|
214
198
|
'text-field': '{name_de}',
|
|
215
|
-
'text-letter-spacing': 0.
|
|
199
|
+
'text-letter-spacing': 0.085,
|
|
216
200
|
'text-font': tokens.sans_regular,
|
|
217
201
|
'text-transform': 'uppercase',
|
|
218
202
|
'text-size': {
|
|
219
203
|
stops: [
|
|
220
|
-
[4,
|
|
221
|
-
[7,
|
|
204
|
+
[4, 11],
|
|
205
|
+
[7, 18]
|
|
222
206
|
]
|
|
223
207
|
}
|
|
224
208
|
},
|
|
225
209
|
paint: {
|
|
226
210
|
'text-color': tokens.label_tertiary,
|
|
227
211
|
'text-halo-color': tokens.background,
|
|
228
|
-
'text-halo-width': 2,
|
|
229
|
-
'text-halo-blur': 0
|
|
212
|
+
'text-halo-width': 2.5,
|
|
213
|
+
'text-halo-blur': 0.5
|
|
230
214
|
}
|
|
231
215
|
}
|
|
232
216
|
].map((el) => {
|
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.6",
|
|
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",
|