2020-11-28 17:35:42 +01:00
|
|
|
<script>
|
2020-12-04 10:13:38 +01:00
|
|
|
import { getContext } from "svelte"
|
|
|
|
|
|
|
|
const { styleable } = getContext("sdk")
|
|
|
|
const component = getContext("component")
|
2020-11-28 17:35:42 +01:00
|
|
|
|
|
|
|
export const className = ""
|
|
|
|
export let title = ""
|
|
|
|
export let value = ""
|
|
|
|
export let label = ""
|
|
|
|
</script>
|
|
|
|
|
2020-12-04 10:13:38 +01:00
|
|
|
<div use:styleable={$component.styles} class="container">
|
2020-11-28 17:35:42 +01:00
|
|
|
<p class="title">{title}</p>
|
|
|
|
<h3 class="value">{value}</h3>
|
|
|
|
<p class="label">{label}</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.container {
|
|
|
|
min-width: 260px;
|
|
|
|
width: max-content;
|
2020-12-04 10:13:38 +01:00
|
|
|
border: 1px solid var(--grey-3);
|
2020-11-28 17:35:42 +01:00
|
|
|
border-radius: 0.3rem;
|
2020-12-04 10:13:38 +01:00
|
|
|
color: var(--blue);
|
2020-11-28 17:35:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
font-size: 0.85rem;
|
|
|
|
color: #9e9e9e;
|
|
|
|
font-weight: 500;
|
|
|
|
margin: 1rem 1.5rem 0.5rem 1.5rem;
|
2021-02-23 11:15:40 +01:00
|
|
|
white-space: pre-wrap;
|
2020-11-28 17:35:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.value {
|
|
|
|
font-size: 2rem;
|
|
|
|
font-weight: 500;
|
2020-12-04 10:13:38 +01:00
|
|
|
margin: 0 1.5rem 1.5rem 1.5rem;
|
|
|
|
color: inherit;
|
2021-02-23 11:15:40 +01:00
|
|
|
white-space: pre-wrap;
|
2020-11-28 17:35:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.label {
|
|
|
|
font-size: 0.85rem;
|
|
|
|
font-weight: 400;
|
|
|
|
color: #9e9e9e;
|
|
|
|
margin: 1rem 1.5rem;
|
2021-02-23 11:15:40 +01:00
|
|
|
white-space: pre-wrap;
|
2020-11-28 17:35:42 +01:00
|
|
|
}
|
|
|
|
</style>
|