@appscode/design-system 2.2.50 → 2.2.52
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,6 +1,6 @@
|
|
|
1
1
|
.single-accordion-item {
|
|
2
2
|
background-color: $white-100;
|
|
3
|
-
margin-bottom:
|
|
3
|
+
margin-bottom: 12px;
|
|
4
4
|
border-radius: 4px;
|
|
5
5
|
|
|
6
6
|
&:last-child {
|
|
@@ -11,10 +11,11 @@
|
|
|
11
11
|
display: flex;
|
|
12
12
|
align-items: center;
|
|
13
13
|
justify-content: space-between;
|
|
14
|
-
min-height:
|
|
14
|
+
min-height: 52px;
|
|
15
15
|
background-color: $secondary-light-gray;
|
|
16
16
|
padding: 8px 16px;
|
|
17
17
|
border-radius: 4px;
|
|
18
|
+
border: 1px solid $color-border;
|
|
18
19
|
|
|
19
20
|
h3 {
|
|
20
21
|
cursor: pointer;
|
|
@@ -34,12 +35,14 @@
|
|
|
34
35
|
align-items: center;
|
|
35
36
|
border-radius: 50%;
|
|
36
37
|
cursor: pointer;
|
|
38
|
+
background-color: $secondary-90;
|
|
37
39
|
svg {
|
|
38
40
|
transition: 0.3s ease;
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
.accordion-right {
|
|
42
44
|
max-width: 50%;
|
|
45
|
+
gap: 8px;
|
|
43
46
|
.accordion-description {
|
|
44
47
|
display: flex;
|
|
45
48
|
max-width: calc(100% - 32px);
|
|
@@ -1,24 +1,31 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
|
|
3
|
-
withDefaults(defineProps<{ isActive: boolean, bodyInside: boolean }>(), {
|
|
2
|
+
withDefaults(defineProps<{ isActive: boolean; bodyInside: boolean }>(), {
|
|
4
3
|
isActive: false,
|
|
5
|
-
bodyInside: false
|
|
6
|
-
})
|
|
7
|
-
|
|
4
|
+
bodyInside: false,
|
|
5
|
+
});
|
|
8
6
|
</script>
|
|
9
7
|
|
|
10
8
|
<template>
|
|
11
9
|
<div class="single-accordion-item">
|
|
12
10
|
<div class="accordion-heading is-clickable">
|
|
13
11
|
<slot name="title" />
|
|
14
|
-
<div class="accordion-right is-flex is-align-items-center
|
|
15
|
-
<div
|
|
16
|
-
|
|
12
|
+
<div class="accordion-right is-flex is-align-items-center">
|
|
13
|
+
<div
|
|
14
|
+
v-show="!isActive"
|
|
15
|
+
class="accordion-description is-justify-content-flex-end has-text-right is-flex-direction-column"
|
|
16
|
+
>
|
|
17
17
|
<slot name="description" />
|
|
18
18
|
</div>
|
|
19
19
|
<button class="icon">
|
|
20
|
-
<svg
|
|
21
|
-
|
|
20
|
+
<svg
|
|
21
|
+
:style="{ transform: isActive ? 'rotate(-180deg)' : 'rotate(0deg)' }"
|
|
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
|
+
>
|
|
22
29
|
<path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5" />
|
|
23
30
|
</svg>
|
|
24
31
|
</button>
|
|
@@ -32,4 +39,4 @@ withDefaults(defineProps<{ isActive: boolean, bodyInside: boolean }>(), {
|
|
|
32
39
|
</template>
|
|
33
40
|
<style lang="scss" scoped>
|
|
34
41
|
@import "../../../vue-components/styles/components/accordion";
|
|
35
|
-
</style>
|
|
42
|
+
</style>
|