@onsvisual/svelte-components 1.0.10 → 1.0.12
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.
|
@@ -51,16 +51,16 @@
|
|
|
51
51
|
|
|
52
52
|
<Card {title} {href} mode="featured" {cls}>
|
|
53
53
|
{#if subtitle}
|
|
54
|
-
<p class="ons-u-fs-s">{subtitle}</p>
|
|
54
|
+
<p class="ons-card__subtitle ons-u-fs-s">{subtitle}</p>
|
|
55
55
|
{/if}
|
|
56
56
|
{#if mode === "sparkline" && data}
|
|
57
57
|
<Sparkline {data} />
|
|
58
58
|
{/if}
|
|
59
59
|
{#if value}
|
|
60
|
-
<p class="
|
|
60
|
+
<p class="ons-card__figure ons-u-fs-3xl ons-u-fw-b ons-u-mb-no">{value}</p>
|
|
61
61
|
{/if}
|
|
62
62
|
{#if caption}
|
|
63
|
-
<p class="
|
|
63
|
+
<p class="ons-card__body">
|
|
64
64
|
{@html caption}
|
|
65
65
|
</p>
|
|
66
66
|
{/if}
|
|
@@ -9,9 +9,10 @@ Note: This component is experimental. Its attributes and options are likely to c
|
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
11
|
<DataCard
|
|
12
|
-
title="Consumer Price Index (CPI)"
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
title="Consumer Price Index (CPI)"
|
|
13
|
+
subtitle="Consumer Price Index (CPI)"
|
|
14
|
+
value="up 2.5%"
|
|
15
|
+
caption="in 12 months to December 2024"
|
|
15
16
|
source="Source: ONS"
|
|
16
17
|
/>
|
|
17
18
|
```
|