@appscode/design-system 1.1.0-alpha.11 → 1.1.0-alpha.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.
package/package.json
CHANGED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<!-- single card wrapper start -->
|
|
3
|
+
<div class="card-basic b-1">
|
|
4
|
+
<div class="c-header is-flex is-justify-content-space-between">
|
|
5
|
+
<div
|
|
6
|
+
v-if="isRequired"
|
|
7
|
+
class="tag has-background-warning has-text-secondary is-rounded required"
|
|
8
|
+
>
|
|
9
|
+
Required
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
<div class="c-title is-flex is-align-items-center">
|
|
13
|
+
<div class="icon mr-8">
|
|
14
|
+
<slot name="card-logo" />
|
|
15
|
+
</div>
|
|
16
|
+
<h4><slot name="card-title" /></h4>
|
|
17
|
+
</div>
|
|
18
|
+
<!-- <span class="tag has-background-dark-light has-text-dark is-rounded"
|
|
19
|
+
>Dark</span
|
|
20
|
+
> -->
|
|
21
|
+
<slot name="card-status" />
|
|
22
|
+
</div>
|
|
23
|
+
<div class="c-body">
|
|
24
|
+
<p><slot name="card-sub-title" /></p>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<!-- single card wrapper end -->
|
|
28
|
+
</template>
|
|
29
|
+
<script setup lang="ts">
|
|
30
|
+
withDefaults(
|
|
31
|
+
defineProps<{
|
|
32
|
+
isRequired: boolean
|
|
33
|
+
statusClass: string
|
|
34
|
+
}>(),
|
|
35
|
+
{
|
|
36
|
+
isRequired: false,
|
|
37
|
+
statusClass: 'has-background-primary-light has-text-primary',
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
</script>
|