@appscode/design-system 2.6.22-alpha-0.0.12 → 2.6.22-alpha-0.0.14
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/_spacing.scss +2 -2
- package/vue-components/styles/components/_avatar.scss +1 -0
- package/vue-components/styles/components/_platform-design.scss +36 -4
- package/vue-components/v3/icons/ArrowIcon.vue +2 -11
- package/vue-components/v3/section/SectionContent.vue +43 -0
package/package.json
CHANGED
|
@@ -99,7 +99,7 @@ $spacing-values: (
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
/*
|
|
102
|
+
/* Default height & width */
|
|
103
103
|
@for $i from 0 through 300 {
|
|
104
104
|
.height-#{$i} {
|
|
105
105
|
height: #{$i}px !important;
|
|
@@ -109,7 +109,7 @@ $spacing-values: (
|
|
|
109
109
|
width: #{$i}px !important;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
.
|
|
112
|
+
.dimension-#{$i} {
|
|
113
113
|
height: #{$i}px !important;
|
|
114
114
|
width: #{$i}px !important;
|
|
115
115
|
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
top: 0;
|
|
16
16
|
width: 100%;
|
|
17
17
|
height: 100%;
|
|
18
|
-
background-color: #
|
|
18
|
+
background-color: #e7f4ee;
|
|
19
19
|
background-image: url("../../images/banners/banner-overlay.png");
|
|
20
20
|
background-color: lightgray;
|
|
21
21
|
background-position: 0% 0%;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
position: absolute;
|
|
43
43
|
content: "";
|
|
44
44
|
left: 0;
|
|
45
|
-
bottom:
|
|
45
|
+
bottom: -1px;
|
|
46
46
|
width: 100%;
|
|
47
47
|
height: 4px;
|
|
48
48
|
border-radius: 4px 4px 0 0;
|
|
@@ -74,6 +74,9 @@
|
|
|
74
74
|
top: 8px;
|
|
75
75
|
padding: 8px 16px;
|
|
76
76
|
border-radius: 4px;
|
|
77
|
+
&:focus {
|
|
78
|
+
outline: 1px solid $color-border-dark;
|
|
79
|
+
}
|
|
77
80
|
}
|
|
78
81
|
|
|
79
82
|
.searchbar {
|
|
@@ -83,11 +86,11 @@
|
|
|
83
86
|
.ac-single-input {
|
|
84
87
|
input {
|
|
85
88
|
background-color: $primary-light-gray;
|
|
86
|
-
height: 52px;
|
|
89
|
+
height: 52px !important;
|
|
87
90
|
}
|
|
88
91
|
|
|
89
92
|
label {
|
|
90
|
-
top: 16px;
|
|
93
|
+
top: 16px !important;
|
|
91
94
|
}
|
|
92
95
|
}
|
|
93
96
|
}
|
|
@@ -147,3 +150,32 @@
|
|
|
147
150
|
padding: 8px 16px;
|
|
148
151
|
}
|
|
149
152
|
}
|
|
153
|
+
|
|
154
|
+
.more-avatar {
|
|
155
|
+
display: flex;
|
|
156
|
+
align-items: center;
|
|
157
|
+
justify-content: center;
|
|
158
|
+
width: 24px;
|
|
159
|
+
height: 24px;
|
|
160
|
+
border: 1px solid $color-border;
|
|
161
|
+
border-radius: 50%;
|
|
162
|
+
font-size: 10px;
|
|
163
|
+
padding: 4px;
|
|
164
|
+
cursor: pointer;
|
|
165
|
+
background-color: $primary-light-gray;
|
|
166
|
+
}
|
|
167
|
+
.avatar-group {
|
|
168
|
+
display: flex;
|
|
169
|
+
gap: 4px;
|
|
170
|
+
|
|
171
|
+
.avatar-link {
|
|
172
|
+
display: inline-block;
|
|
173
|
+
&:hover {
|
|
174
|
+
z-index: 9;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&:not(:first-child) {
|
|
178
|
+
margin-left: -4px;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
@@ -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>
|