@appscode/design-system 2.7.17 → 2.17.18-alpha
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
|
@@ -61,7 +61,10 @@ const theme = computed(() => {
|
|
|
61
61
|
});
|
|
62
62
|
|
|
63
63
|
const onChange = (e: Event) => {
|
|
64
|
-
if (typeof e === "string")
|
|
64
|
+
if (typeof e === "string") {
|
|
65
|
+
editorContent.value = e;
|
|
66
|
+
emit("update:modelValue", editorContent.value);
|
|
67
|
+
}
|
|
65
68
|
};
|
|
66
69
|
|
|
67
70
|
const onEditorMount = (editor: Record<string, unknown>) => {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 20 20">
|
|
3
|
+
<!-- Icon from HeroIcons by Refactoring UI Inc - https://github.com/tailwindlabs/heroicons/blob/master/LICENSE -->
|
|
4
|
+
<path
|
|
5
|
+
fill="currentColor"
|
|
6
|
+
fill-rule="evenodd"
|
|
7
|
+
d="M7.793 2.232a.75.75 0 0 1-.025 1.06L3.622 7.25h10.003a5.375 5.375 0 0 1 0 10.75H10.75a.75.75 0 0 1 0-1.5h2.875a3.875 3.875 0 0 0 0-7.75H3.622l4.146 3.957a.75.75 0 0 1-1.036 1.085l-5.5-5.25a.75.75 0 0 1 0-1.085l5.5-5.25a.75.75 0 0 1 1.06.025"
|
|
8
|
+
clip-rule="evenodd"
|
|
9
|
+
/>
|
|
10
|
+
</svg>
|
|
11
|
+
</template>
|
|
@@ -4,7 +4,7 @@ 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
|
|
7
|
+
import ArrowUturnLeft from "../icons/ArrowUturnLeft.vue";
|
|
8
8
|
|
|
9
9
|
interface Props {
|
|
10
10
|
title?: string;
|
|
@@ -41,14 +41,8 @@ function handleBack() {
|
|
|
41
41
|
:class="{ 'mb-8': resetStyle }"
|
|
42
42
|
>
|
|
43
43
|
<header-items>
|
|
44
|
-
<button
|
|
45
|
-
|
|
46
|
-
title="Back"
|
|
47
|
-
class="ac-back-button"
|
|
48
|
-
@click="handleBack"
|
|
49
|
-
data-testid="back-button"
|
|
50
|
-
>
|
|
51
|
-
<HeroiconsArrowUturnLeft20Solid />
|
|
44
|
+
<button v-if="hasBackButton" title="Back" class="ac-back-button" @click="handleBack">
|
|
45
|
+
<ArrowUturnLeft />
|
|
52
46
|
</button>
|
|
53
47
|
<header-item>
|
|
54
48
|
<div v-if="custom">
|
|
@@ -62,7 +56,11 @@ function handleBack() {
|
|
|
62
56
|
<!-- Add buttons here -->
|
|
63
57
|
<div class="buttons is-right">
|
|
64
58
|
<slot name="header-buttons" />
|
|
65
|
-
<AcButton
|
|
59
|
+
<AcButton
|
|
60
|
+
modifier-classes="width-32 height-32 is-rounded-50 b-1 p-0"
|
|
61
|
+
v-if="isExpandable"
|
|
62
|
+
@click="isOpen = !isOpen"
|
|
63
|
+
>
|
|
66
64
|
<ArrowIcon :direction="isOpen ? 'down' : 'up'" />
|
|
67
65
|
</AcButton>
|
|
68
66
|
</div>
|