@appscode/design-system 2.6.22-alpha-0.0.12 → 2.6.22-alpha-0.0.13
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
|
@@ -5,17 +5,8 @@ withDefaults(defineProps<{ direction?: "up" | "down" }>(), {
|
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<template>
|
|
8
|
-
<svg
|
|
9
|
-
|
|
10
|
-
fill="none"
|
|
11
|
-
height="16px"
|
|
12
|
-
width="16px"
|
|
13
|
-
viewBox="0 0 24 24"
|
|
14
|
-
stroke-width="1.5"
|
|
15
|
-
stroke="currentColor"
|
|
16
|
-
class="size-6"
|
|
17
|
-
:style="direction === 'up' ? 'transform: rotate(0deg)' : 'transform: rotate(-180deg)'"
|
|
18
|
-
>
|
|
8
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" height="16px" width="16px" viewBox="0 0 24 24" stroke-width="1.5"
|
|
9
|
+
stroke="currentColor" :style="direction === 'up' ? 'transform: rotate(0deg)' : 'transform: rotate(-180deg)'">
|
|
19
10
|
<path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5" />
|
|
20
11
|
</svg>
|
|
21
12
|
</template>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<script lang="ts" setup>
|
|
2
|
+
import { ref } from 'vue';
|
|
3
|
+
import ArrowIcon from '../icons/ArrowIcon.vue';
|
|
4
|
+
import AcButton from "../button/Button.vue";
|
|
5
|
+
|
|
6
|
+
interface Props {
|
|
7
|
+
title?: string,
|
|
8
|
+
isExpandable?: boolean
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
withDefaults(defineProps<Props>(), {
|
|
12
|
+
title: '',
|
|
13
|
+
isExpandable: false
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
const isOpen = ref(true)
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<template>
|
|
20
|
+
<div class="content-body mt-10">
|
|
21
|
+
<div class="container px-5">
|
|
22
|
+
<div class="columns is-multiline">
|
|
23
|
+
<div class="section-card is-fullwidth">
|
|
24
|
+
<div
|
|
25
|
+
class="section-heading is-fullwidth is-flex is-align-items-center is-justify-content-space-between">
|
|
26
|
+
<h4>{{ title }}</h4>
|
|
27
|
+
<!-- Add buttons here -->
|
|
28
|
+
<div class="buttons is-right">
|
|
29
|
+
<slot name="header-buttons" />
|
|
30
|
+
<AcButton modifier-classes="is-white" v-if="isExpandable" @click="isOpen = !isOpen">
|
|
31
|
+
<ArrowIcon :direction="isOpen ? 'down' : 'up'" />
|
|
32
|
+
</AcButton>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
<div v-show="isOpen" class="section-body">
|
|
37
|
+
<slot name="section-body" />
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</template>
|