@appscode/design-system 2.0.60 → 2.0.61
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 +1 -1
- package/vue-components/styles/base/utilities/_colors.scss +1 -1
- package/vue-components/styles/components/_accordion.scss +1 -1
- package/vue-components/styles/components/_terminal.scss +1 -1
- package/vue-components/styles/theme/_dark.scss +1 -1
- package/vue-components/v3/accordion/Accordion.vue +6 -2
- package/vue-components/v3/alert/Toast.vue +2 -2
- package/vue-components/v3/messages/Message.vue +6 -4
package/package.json
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
+
import { ref } from "vue";
|
|
3
|
+
|
|
2
4
|
interface Props {
|
|
3
5
|
modifierClasses?: string;
|
|
4
6
|
}
|
|
@@ -6,6 +8,8 @@ interface Props {
|
|
|
6
8
|
withDefaults(defineProps<Props>(), {
|
|
7
9
|
modifierClasses: "",
|
|
8
10
|
});
|
|
11
|
+
|
|
12
|
+
const isActive = ref(true);
|
|
9
13
|
</script>
|
|
10
14
|
|
|
11
15
|
<template>
|
|
@@ -16,13 +20,13 @@ withDefaults(defineProps<Props>(), {
|
|
|
16
20
|
<!-- accordion heading start -->
|
|
17
21
|
<div class="accordion-heading">
|
|
18
22
|
<h6 class="is-small">Hello Accordion title</h6>
|
|
19
|
-
<button class="icon">
|
|
23
|
+
<button class="icon" @click="isActive = !isActive">
|
|
20
24
|
<i class="fa fa-plus" aria-hidden="true"></i>
|
|
21
25
|
</button>
|
|
22
26
|
</div>
|
|
23
27
|
<!-- accordion heading end -->
|
|
24
28
|
<!-- accordion body start -->
|
|
25
|
-
<div class="accordion-body">
|
|
29
|
+
<div class="accordion-body" :style="{ 'max-height': isActive ? '100%' : 0 }">
|
|
26
30
|
<slot />
|
|
27
31
|
</div>
|
|
28
32
|
<!-- accordion body end -->
|
|
@@ -13,8 +13,8 @@ withDefaults(defineProps<Props>(), {
|
|
|
13
13
|
<div class="toast-header is-flex is-align-items-center">
|
|
14
14
|
<h6 class="mr-auto">Toast Header</h6>
|
|
15
15
|
<small>2 hours ago</small>
|
|
16
|
-
<button type="button" class="button ac-button is-
|
|
17
|
-
<span class="material-icons close-icon
|
|
16
|
+
<button type="button" class="button ac-button is-danger is-outlined w-18 h-18 flex ml-8">
|
|
17
|
+
<span class="material-icons close-icon">close</span>
|
|
18
18
|
</button>
|
|
19
19
|
</div>
|
|
20
20
|
<div class="toast-body">
|
|
@@ -12,10 +12,12 @@ withDefaults(defineProps<Props>(), {
|
|
|
12
12
|
<div class="thumbnail">
|
|
13
13
|
<slot name="thumbnail" />
|
|
14
14
|
</div>
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
<div class="is-flex is-align-items-center gap-4">
|
|
16
|
+
<span>
|
|
17
|
+
{{ message }}
|
|
18
|
+
</span>
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
<slot name="details" />
|
|
21
|
+
</div>
|
|
20
22
|
</div>
|
|
21
23
|
</template>
|