@appscode/design-system 2.7.1 → 2.7.3
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
|
@@ -186,3 +186,21 @@
|
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
+
.ac-back-button {
|
|
190
|
+
background-color: $gray-90;
|
|
191
|
+
border: 1px solid $color-border;
|
|
192
|
+
width: 30px;
|
|
193
|
+
height: 30px;
|
|
194
|
+
border-radius: 50%;
|
|
195
|
+
cursor: pointer;
|
|
196
|
+
color: $gray-20;
|
|
197
|
+
transition: 0.3s ease-in-out;
|
|
198
|
+
display: flex;
|
|
199
|
+
align-items: center;
|
|
200
|
+
|
|
201
|
+
&:hover {
|
|
202
|
+
border: 1px solid $color-border;
|
|
203
|
+
background-color: $ac-primary;
|
|
204
|
+
color: $white-100;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
@@ -32,7 +32,9 @@ const OptionDots = defineAsyncComponent(() => import("../option-dots/Options.vue
|
|
|
32
32
|
<slot name="options" />
|
|
33
33
|
</option-dots>
|
|
34
34
|
|
|
35
|
-
<div v-else class="top-right"
|
|
35
|
+
<div v-else class="top-right">
|
|
36
|
+
<slot name="custom-option" />
|
|
37
|
+
</div>
|
|
36
38
|
<div class="card-details-inner" :class="modifierClasses">
|
|
37
39
|
<div class="c-header">
|
|
38
40
|
<div class="c-logo">
|
|
@@ -49,7 +51,7 @@ const OptionDots = defineAsyncComponent(() => import("../option-dots/Options.vue
|
|
|
49
51
|
:class="tag.class"
|
|
50
52
|
:data-testid="idx === 0 ? 'cluster-status-text' : undefined"
|
|
51
53
|
class="is-flex is-align-center gap-6"
|
|
52
|
-
><span v-if="tag?.isSpinner || false" class="is-flex gap-6"
|
|
54
|
+
><span v-if="tag?.isSpinner || false" class="is-flex gap-6"> <SvgSpinners270Ring /> </span
|
|
53
55
|
>{{ tag.value }}</span
|
|
54
56
|
>
|
|
55
57
|
</div>
|
|
@@ -4,20 +4,29 @@ import ArrowIcon from "../icons/ArrowIcon.vue";
|
|
|
4
4
|
import AcButton from "../button/Button.vue";
|
|
5
5
|
import HeaderItem from "../header/HeaderItem.vue";
|
|
6
6
|
import HeaderItems from "../header/HeaderItems.vue";
|
|
7
|
+
import HeroiconsArrowUturnLeft20Solid from "~icons/heroicons/arrow-uturn-left-20-solid.svg";
|
|
7
8
|
|
|
8
9
|
interface Props {
|
|
9
10
|
title?: string;
|
|
10
11
|
isExpandable?: boolean;
|
|
11
12
|
custom?: boolean;
|
|
13
|
+
hasBackButton?: boolean;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
withDefaults(defineProps<Props>(), {
|
|
15
17
|
title: "",
|
|
16
18
|
isExpandable: false,
|
|
17
19
|
custom: false,
|
|
20
|
+
hasBackButton: false,
|
|
18
21
|
});
|
|
19
22
|
|
|
20
23
|
const isOpen = ref(true);
|
|
24
|
+
|
|
25
|
+
const emit = defineEmits(["handleBack"]);
|
|
26
|
+
|
|
27
|
+
function handleBack() {
|
|
28
|
+
emit("handleBack");
|
|
29
|
+
}
|
|
21
30
|
</script>
|
|
22
31
|
|
|
23
32
|
<template>
|
|
@@ -25,6 +34,9 @@ const isOpen = ref(true);
|
|
|
25
34
|
<div class="section-card is-fullwidth">
|
|
26
35
|
<div class="section-heading is-fullwidth is-flex is-align-items-center is-justify-content-space-between">
|
|
27
36
|
<header-items>
|
|
37
|
+
<button v-if="hasBackButton" title="Back" class="ac-back-button" @click="handleBack">
|
|
38
|
+
<HeroiconsArrowUturnLeft20Solid />
|
|
39
|
+
</button>
|
|
28
40
|
<header-item>
|
|
29
41
|
<div v-if="custom">
|
|
30
42
|
<slot name="custom-header" />
|