@appscode/design-system 2.6.22 → 2.6.23
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.
package/package.json
CHANGED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
.cards-bg {
|
|
2
|
+
background-color: $primary-light-gray;
|
|
3
|
+
border: 1px solid $color-border;
|
|
4
|
+
border-radius: 8px;
|
|
5
|
+
padding: 16px;
|
|
6
|
+
h5 {
|
|
7
|
+
margin-bottom: 8px;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.card.usage-card {
|
|
12
|
+
border: 1px solid $color-border;
|
|
13
|
+
border-radius: 8px;
|
|
14
|
+
background-color: #fff;
|
|
15
|
+
.card-heading {
|
|
16
|
+
padding: 8px 16px;
|
|
17
|
+
min-height: 40px;
|
|
18
|
+
display: flex;
|
|
19
|
+
justify-content: space-between;
|
|
20
|
+
align-items: center;
|
|
21
|
+
border-bottom: 1px solid $color-border;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.card-body {
|
|
25
|
+
text-align: right;
|
|
26
|
+
padding: 8px 16px;
|
|
27
|
+
p {
|
|
28
|
+
margin-bottom: 8px;
|
|
29
|
+
strong {
|
|
30
|
+
font-size: 16px;
|
|
31
|
+
font-weight: 500;
|
|
32
|
+
color: $color-heading;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
span {
|
|
36
|
+
font-size: 13px;
|
|
37
|
+
font-weight: 400;
|
|
38
|
+
color: $color-text;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
withDefaults(
|
|
3
|
+
defineProps<{
|
|
4
|
+
title: string;
|
|
5
|
+
usages: Array<{ value: number; unit: string }>;
|
|
6
|
+
}>(),
|
|
7
|
+
{
|
|
8
|
+
title: "title",
|
|
9
|
+
usages: () => [],
|
|
10
|
+
},
|
|
11
|
+
);
|
|
12
|
+
</script>
|
|
13
|
+
<template>
|
|
14
|
+
<div class="card usage-card">
|
|
15
|
+
<div class="card-heading">
|
|
16
|
+
<p>{{ title }}</p>
|
|
17
|
+
<slot name="icon" />
|
|
18
|
+
</div>
|
|
19
|
+
<div class="card-body">
|
|
20
|
+
<p v-for="(usage, idx) in usages" :key="idx">
|
|
21
|
+
<strong>{{ usage.value }}</strong
|
|
22
|
+
><span>/{{ usage.unit }}</span>
|
|
23
|
+
</p>
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<style lang="scss" scoped>
|
|
29
|
+
@import "../../styles/components/cards/usage-card";
|
|
30
|
+
</style>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
withDefaults(
|
|
3
|
+
defineProps<{
|
|
4
|
+
title?: string;
|
|
5
|
+
}>(),
|
|
6
|
+
{
|
|
7
|
+
title: "Total Usage Data",
|
|
8
|
+
},
|
|
9
|
+
);
|
|
10
|
+
</script>
|
|
11
|
+
<template>
|
|
12
|
+
<div class="cards-bg">
|
|
13
|
+
<h5>{{ title }}</h5>
|
|
14
|
+
<div class="is-flex gap-16">
|
|
15
|
+
<slot name="usage-card" />
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<style lang="scss" scoped>
|
|
21
|
+
@import "../../styles/components/cards/usage-card";
|
|
22
|
+
</style>
|