@swr-data-lab/components 2.4.5 → 2.5.0

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.
@@ -1,6 +1,6 @@
1
1
  <script lang="ts">import Logotype from '../Logotype/Logotype.svelte';
2
2
  import Note from '../Note/Note.svelte';
3
- let { layout = 'one-up', align = 'left', children } = $props();
3
+ let { layout = 'one-up', align = 'left', showLogo = true, children } = $props();
4
4
  </script>
5
5
 
6
6
  <footer class={`container ${layout} align-${align}`}>
@@ -9,7 +9,9 @@ let { layout = 'one-up', align = 'left', children } = $props();
9
9
  {@render children()}
10
10
  </Note>
11
11
  {/if}
12
- <Logotype />
12
+ {#if showLogo}
13
+ <Logotype />
14
+ {/if}
13
15
  </footer>
14
16
 
15
17
  <style>.container {
@@ -2,6 +2,7 @@ import type { Snippet } from 'svelte';
2
2
  interface ChartFooterProps {
3
3
  layout?: 'one-up' | 'two-up';
4
4
  align?: 'left' | 'center';
5
+ showLogo?: boolean;
5
6
  children?: Snippet;
6
7
  }
7
8
  declare const ChartFooter: import("svelte").Component<ChartFooterProps, {}, "">;
@@ -39,11 +39,11 @@ const shades = {
39
39
  dark5: '#005163'
40
40
  },
41
41
  yellow: {
42
- light1: '#FFFDB2',
43
- light2: '#FEF67C',
42
+ light5: '#FFFDB2',
43
+ light4: '#FEF67C',
44
44
  light3: '#FDEF3E',
45
- light4: '#FAE617',
46
- light5: '#F5DF13',
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,24 +158,7 @@ export default function makePlaceLabels() {
157
158
  layout: {
158
159
  'text-size': {
159
160
  stops: [
160
- [7, 15],
161
- [15, 21]
162
- ]
163
- }
164
- },
165
- paint: {
166
- 'text-color': tokens.label_secondary
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],
161
+ [7, 13],
178
162
  [15, 21]
179
163
  ]
180
164
  }
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.5",
4
+ "version": "2.5.0",
5
5
  "author": "SWR Data Lab",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",