@appscode/design-system 2.2.52 → 2.2.54
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
|
@@ -1,31 +1,26 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
withDefaults(defineProps<{ isActive
|
|
2
|
+
withDefaults(defineProps<{ isActive?: boolean; bodyInside?: boolean }>(), {
|
|
3
3
|
isActive: false,
|
|
4
4
|
bodyInside: false,
|
|
5
5
|
});
|
|
6
|
+
|
|
7
|
+
defineEmits(['onClick'])
|
|
8
|
+
|
|
6
9
|
</script>
|
|
7
10
|
|
|
11
|
+
|
|
8
12
|
<template>
|
|
9
13
|
<div class="single-accordion-item">
|
|
10
|
-
<div class="accordion-heading is-clickable">
|
|
14
|
+
<div @click.stop="$emit('onClick')" class="accordion-heading is-clickable">
|
|
11
15
|
<slot name="title" />
|
|
12
16
|
<div class="accordion-right is-flex is-align-items-center">
|
|
13
|
-
<div
|
|
14
|
-
|
|
15
|
-
class="accordion-description is-justify-content-flex-end has-text-right is-flex-direction-column"
|
|
16
|
-
>
|
|
17
|
+
<div v-show="!isActive"
|
|
18
|
+
class="accordion-description is-justify-content-flex-end has-text-right is-flex-direction-column">
|
|
17
19
|
<slot name="description" />
|
|
18
20
|
</div>
|
|
19
|
-
<button class="icon">
|
|
20
|
-
<svg
|
|
21
|
-
|
|
22
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
23
|
-
fill="none"
|
|
24
|
-
viewBox="0 0 24 24"
|
|
25
|
-
stroke-width="1.5"
|
|
26
|
-
stroke="currentColor"
|
|
27
|
-
class="size-6"
|
|
28
|
-
>
|
|
21
|
+
<button @click.stop="$emit('onClick')" class="icon">
|
|
22
|
+
<svg :style="{ transform: isActive ? 'rotate(-180deg)' : 'rotate(0deg)' }" xmlns="http://www.w3.org/2000/svg"
|
|
23
|
+
fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
|
|
29
24
|
<path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5" />
|
|
30
25
|
</svg>
|
|
31
26
|
</button>
|