@appscode/design-system 2.2.49 → 2.2.51
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,16 +1,7 @@
|
|
|
1
1
|
.single-accordion-item {
|
|
2
2
|
background-color: $white-100;
|
|
3
|
-
|
|
4
|
-
margin-bottom: 15px;
|
|
3
|
+
margin-bottom: 16px;
|
|
5
4
|
border-radius: 4px;
|
|
6
|
-
border: 1px solid $color-border;
|
|
7
|
-
box-shadow: $ac-shadow-1;
|
|
8
|
-
|
|
9
|
-
&.open {
|
|
10
|
-
.accordion-heading {
|
|
11
|
-
margin-bottom: 10px;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
5
|
|
|
15
6
|
&:last-child {
|
|
16
7
|
margin-bottom: 0;
|
|
@@ -20,7 +11,11 @@
|
|
|
20
11
|
display: flex;
|
|
21
12
|
align-items: center;
|
|
22
13
|
justify-content: space-between;
|
|
23
|
-
min-height:
|
|
14
|
+
min-height: 52px;
|
|
15
|
+
background-color: $secondary-light-gray;
|
|
16
|
+
padding: 8px 16px;
|
|
17
|
+
border-radius: 4px;
|
|
18
|
+
border: 1px solid $color-border;
|
|
24
19
|
|
|
25
20
|
h3 {
|
|
26
21
|
cursor: pointer;
|
|
@@ -40,12 +35,14 @@
|
|
|
40
35
|
align-items: center;
|
|
41
36
|
border-radius: 50%;
|
|
42
37
|
cursor: pointer;
|
|
38
|
+
background-color: $secondary-90;
|
|
43
39
|
svg {
|
|
44
40
|
transition: 0.3s ease;
|
|
45
41
|
}
|
|
46
42
|
}
|
|
47
43
|
.accordion-right {
|
|
48
44
|
max-width: 50%;
|
|
45
|
+
gap: 8px;
|
|
49
46
|
.accordion-description {
|
|
50
47
|
display: flex;
|
|
51
48
|
max-width: calc(100% - 32px);
|
|
@@ -54,6 +51,7 @@
|
|
|
54
51
|
}
|
|
55
52
|
|
|
56
53
|
.accordion-body {
|
|
54
|
+
padding-top: 8px;
|
|
57
55
|
max-height: 0;
|
|
58
56
|
overflow: hidden;
|
|
59
57
|
// transition: max-height 0.3s ease-in-out;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
withDefaults(defineProps<{ isActive: boolean; bodyInside: boolean }>(), {
|
|
3
|
+
isActive: false,
|
|
4
|
+
bodyInside: false,
|
|
5
|
+
});
|
|
5
6
|
</script>
|
|
6
7
|
|
|
7
8
|
<template>
|
|
8
|
-
<div class="single-accordion-item
|
|
9
|
-
<div class="accordion-heading is-clickable"
|
|
9
|
+
<div class="single-accordion-item">
|
|
10
|
+
<div class="accordion-heading is-clickable">
|
|
10
11
|
<slot name="title" />
|
|
11
|
-
<div class="accordion-right is-flex is-align-items-center
|
|
12
|
+
<div class="accordion-right is-flex is-align-items-center">
|
|
12
13
|
<div
|
|
13
14
|
v-show="!isActive"
|
|
14
15
|
class="accordion-description is-justify-content-flex-end has-text-right is-flex-direction-column"
|
|
@@ -31,8 +32,8 @@ const isActive = ref(true);
|
|
|
31
32
|
</div>
|
|
32
33
|
</div>
|
|
33
34
|
|
|
34
|
-
<div class="accordion-body" :style="{ 'max-height': isActive ? '100%' : 0 }">
|
|
35
|
-
<slot />
|
|
35
|
+
<div v-if="bodyInside" class="accordion-body" :style="{ 'max-height': isActive ? '100%' : 0 }">
|
|
36
|
+
<slot name="body" />
|
|
36
37
|
</div>
|
|
37
38
|
</div>
|
|
38
39
|
</template>
|