@appscode/design-system 2.6.3 → 2.6.4
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/components/alert/_alert.scss +12 -4
- package/vue-components/v3/alert/Alert.vue +4 -1
- package/vue-components/v3/form-fields/AcInput.vue +7 -3
- package/vue-components/v3/form-fields/AcSelect.vue +3 -0
- package/vue-components/v3/notification/AlertBox.vue +1 -0
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
.ac-notification {
|
|
2
|
-
background-color:
|
|
2
|
+
background-color: #f1f1f1;
|
|
3
3
|
font-size: 1rem;
|
|
4
|
-
color: $
|
|
4
|
+
color: $color-text;
|
|
5
5
|
min-height: 36px;
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
padding: 8px 16px;
|
|
9
9
|
overflow: hidden;
|
|
10
|
-
border: 1px solid $
|
|
10
|
+
border: 1px solid $slate-50;
|
|
11
11
|
border-radius: 4px;
|
|
12
12
|
justify-content: flex-start;
|
|
13
13
|
position: relative;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
min-width: 280px;
|
|
16
16
|
|
|
17
17
|
p {
|
|
18
|
-
color: $
|
|
18
|
+
color: $color-text;
|
|
19
19
|
margin-bottom: 0 !important;
|
|
20
20
|
|
|
21
21
|
.close-icon {
|
|
@@ -115,3 +115,11 @@
|
|
|
115
115
|
color: $yellow-5 !important;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
+
|
|
119
|
+
// is-warning
|
|
120
|
+
.ac-notification.is-neutral {
|
|
121
|
+
@include acNotification($gray-60);
|
|
122
|
+
p {
|
|
123
|
+
color: $gray-5 !important;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
interface Props {
|
|
3
3
|
modifierClasses?: string;
|
|
4
|
+
isCustom?: boolean;
|
|
4
5
|
}
|
|
5
6
|
|
|
6
7
|
withDefaults(defineProps<Props>(), {
|
|
7
8
|
modifierClasses: "",
|
|
9
|
+
isCustom: false,
|
|
8
10
|
});
|
|
9
11
|
</script>
|
|
10
12
|
|
|
11
13
|
<template>
|
|
12
14
|
<div :class="modifierClasses" class="ac-notification">
|
|
13
|
-
<
|
|
15
|
+
<slot v-if="isCustom" name="custom" />
|
|
16
|
+
<p v-else>
|
|
14
17
|
<slot />
|
|
15
18
|
</p>
|
|
16
19
|
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
|
-
import { defineAsyncComponent, ref, watch } from "vue";
|
|
2
|
+
import { defineAsyncComponent, ref, watch, onMounted } from "vue";
|
|
3
3
|
|
|
4
4
|
interface prop {
|
|
5
5
|
name?: string;
|
|
@@ -14,7 +14,7 @@ interface prop {
|
|
|
14
14
|
showStar?: boolean;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
withDefaults(defineProps<prop>(), {
|
|
17
|
+
const props = withDefaults(defineProps<prop>(), {
|
|
18
18
|
name: "",
|
|
19
19
|
inputType: "text",
|
|
20
20
|
customClass: "",
|
|
@@ -39,7 +39,7 @@ function onFocusInput() {
|
|
|
39
39
|
triggerInput();
|
|
40
40
|
}
|
|
41
41
|
function onFocusOutInput() {
|
|
42
|
-
if (!model.value) isLabelHoisted.value = false;
|
|
42
|
+
if (!model.value && props.inputType !== "date" && props.inputType !== "datetime-local") isLabelHoisted.value = false;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
function onClickLabel() {
|
|
@@ -58,6 +58,10 @@ watch(
|
|
|
58
58
|
},
|
|
59
59
|
{ immediate: true },
|
|
60
60
|
);
|
|
61
|
+
|
|
62
|
+
onMounted(() => {
|
|
63
|
+
if (props.inputType === "date" || props.inputType === "datetime-local") triggerInput();
|
|
64
|
+
});
|
|
61
65
|
</script>
|
|
62
66
|
|
|
63
67
|
<template>
|
|
@@ -8,6 +8,7 @@ interface Props {
|
|
|
8
8
|
errorMsg?: string;
|
|
9
9
|
placeholderText?: string;
|
|
10
10
|
disabled?: boolean;
|
|
11
|
+
isMultiSelect?: boolean;
|
|
11
12
|
label?: string;
|
|
12
13
|
taggable?: boolean;
|
|
13
14
|
allowEmpty?: boolean;
|
|
@@ -33,6 +34,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
33
34
|
errorMsg: "",
|
|
34
35
|
placeholderText: "",
|
|
35
36
|
disabled: false,
|
|
37
|
+
isMultiSelect: false,
|
|
36
38
|
label: "",
|
|
37
39
|
allowEmpty: false,
|
|
38
40
|
options: () => [],
|
|
@@ -135,6 +137,7 @@ const onSelect = (selectedOption: unknown, id: string) => emit("select", selecte
|
|
|
135
137
|
<multiselect
|
|
136
138
|
ref="multiselectElement"
|
|
137
139
|
v-model="model"
|
|
140
|
+
:multiple="isMultiSelect"
|
|
138
141
|
:track-by="trackBy"
|
|
139
142
|
:label="showBy"
|
|
140
143
|
:class="multiselectCustomClass"
|
|
@@ -37,6 +37,7 @@ const backgroundColor = computed(() => {
|
|
|
37
37
|
else if (notificationType.value === "error") return "is-danger";
|
|
38
38
|
else if (notificationType.value === "warning") return "is-warning";
|
|
39
39
|
else if (notificationType.value === "info") return "is-info";
|
|
40
|
+
else if (notificationType.value === "neutral") return "is-neutral is-border-none";
|
|
40
41
|
else return "";
|
|
41
42
|
});
|
|
42
43
|
|