@swr-data-lab/components 2.26.0 → 2.26.1

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,11 +1,10 @@
1
- <script lang="ts">import { getContext } from 'svelte';
1
+ <script lang="ts">import {} from 'svelte';
2
2
  import Caption from '../Caption/Caption.svelte';
3
- let theme = getContext('theme');
4
3
  const { title, subtitle, eyebrow, imageModules, updated, bylines = [] } = $props();
5
4
  const updated_on = updated ? (updated instanceof Date ? updated : new Date(updated)) : null;
6
5
  </script>
7
6
 
8
- <header class={`container theme-${theme}`}>
7
+ <header class="container">
9
8
  {#if eyebrow}
10
9
  <p class="eyebrow">{eyebrow}</p>
11
10
  {/if}
@@ -46,10 +45,7 @@ const updated_on = updated ? (updated instanceof Date ? updated : new Date(updat
46
45
  margin: 0 auto;
47
46
  margin-bottom: 1rem;
48
47
  max-width: 44rem;
49
- text-shadow: 0 0 4px white;
50
- }
51
- .container.theme-dark {
52
- text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
48
+ text-shadow: 0 0 6px var(--color-pageFill);
53
49
  }
54
50
 
55
51
  .eyebrow {
@@ -74,7 +70,6 @@ const updated_on = updated ? (updated instanceof Date ? updated : new Date(updat
74
70
  line-height: 1.4;
75
71
  font-size: var(--fs-base);
76
72
  font-weight: 400;
77
- text-shadow: none;
78
73
  hyphens: auto;
79
74
  }
80
75
 
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.26.0",
4
+ "version": "2.26.1",
5
5
  "author": "SWR Data Lab",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",