@appscode/design-system 2.6.0 → 2.6.2
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/styles/components/cards/_cluster.scss +6 -0
- package/vue-components/v3/alert/Alert.vue +4 -1
- package/vue-components/v3/cards/Cluster.vue +2 -0
- package/vue-components/v3/form-fields/SingleStepFormArray.vue +9 -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>
|
|
@@ -31,6 +31,8 @@ const OptionDots = defineAsyncComponent(() => import("../option-dots/Options.vue
|
|
|
31
31
|
<option-dots v-if="showOptions" :position="'is-right'">
|
|
32
32
|
<slot name="options" />
|
|
33
33
|
</option-dots>
|
|
34
|
+
|
|
35
|
+
<div v-else class="top-right"><slot name="custom-option" /></div>
|
|
34
36
|
<div class="card-details-inner" :class="modifierClasses">
|
|
35
37
|
<div class="c-header">
|
|
36
38
|
<div class="c-logo">
|
|
@@ -12,6 +12,7 @@ import AcButton from "../button/Button.vue";
|
|
|
12
12
|
|
|
13
13
|
interface Props {
|
|
14
14
|
isButtonsDisabled?: boolean;
|
|
15
|
+
isButtonLoaderActive?: boolean;
|
|
15
16
|
disabled?: boolean;
|
|
16
17
|
isCreateDisabled?: boolean;
|
|
17
18
|
label: string;
|
|
@@ -51,6 +52,7 @@ const prop = withDefaults(defineProps<Props>(), {
|
|
|
51
52
|
showCustomMessage: false,
|
|
52
53
|
buttonLabel: "Add New",
|
|
53
54
|
formLabel: "",
|
|
55
|
+
isButtonLoaderActive: false,
|
|
54
56
|
});
|
|
55
57
|
|
|
56
58
|
const Accordion = defineAsyncComponent(() => import("./Accordion.vue"));
|
|
@@ -126,6 +128,7 @@ function collapseForm() {
|
|
|
126
128
|
:disabled="disabled ? true : false"
|
|
127
129
|
data-testid="single-step-form-array-item-save-button"
|
|
128
130
|
@click.prevent="onSaveItem()"
|
|
131
|
+
:is-loader-active="isButtonLoaderActive"
|
|
129
132
|
title="Save"
|
|
130
133
|
icon-class="unplugin"
|
|
131
134
|
>
|
|
@@ -136,6 +139,7 @@ function collapseForm() {
|
|
|
136
139
|
<ac-button
|
|
137
140
|
modifier-classes="is-small is-light is-danger"
|
|
138
141
|
data-testid="single-step-form-array-item-close-button"
|
|
142
|
+
:disabled="isButtonLoaderActive"
|
|
139
143
|
@click.prevent="resetAllData()"
|
|
140
144
|
>
|
|
141
145
|
<span class="icon"><HeroiconsXMark20Solid /></span>
|
|
@@ -213,6 +217,7 @@ function collapseForm() {
|
|
|
213
217
|
v-if="!isButtonsDisabled && isEditable"
|
|
214
218
|
modifier-classes="is-small is-light is-primary"
|
|
215
219
|
data-testid="single-step-form-array-item-edit-button"
|
|
220
|
+
:disabled="isButtonLoaderActive"
|
|
216
221
|
@click.prevent="onEditClick(idxRow)"
|
|
217
222
|
>
|
|
218
223
|
<span class="icon"> <HeroiconsPencilSquare /> </span>
|
|
@@ -222,6 +227,7 @@ function collapseForm() {
|
|
|
222
227
|
v-if="!isButtonsDisabled"
|
|
223
228
|
modifier-classes="is-small is-light is-danger"
|
|
224
229
|
data-testid="single-step-form-array-item-delete-button"
|
|
230
|
+
:disabled="isButtonLoaderActive"
|
|
225
231
|
@click.prevent="onDeleteItem(idxRow)"
|
|
226
232
|
>
|
|
227
233
|
<span class="icon"> <HeroiconsTrash /> </span>
|
|
@@ -231,6 +237,7 @@ function collapseForm() {
|
|
|
231
237
|
v-if="isExpandable"
|
|
232
238
|
modifier-classes="is-small is-light"
|
|
233
239
|
data-testid="single-step-form-array-item-show-details-button"
|
|
240
|
+
:disabled="isButtonLoaderActive"
|
|
234
241
|
@click.prevent="onDetailsClick(idxRow)"
|
|
235
242
|
>
|
|
236
243
|
<span v-if="expandableFieldIndex === idxRow" class="icon"><HeroiconsChevronUpSolid /></span>
|
|
@@ -254,6 +261,7 @@ function collapseForm() {
|
|
|
254
261
|
:disabled="disabled ? true : false"
|
|
255
262
|
data-testid="single-step-form-array-item-save-button"
|
|
256
263
|
@click.prevent="onSaveEditedItem(idxRow)"
|
|
264
|
+
:is-loader-active="isButtonLoaderActive"
|
|
257
265
|
icon-class="unplugin"
|
|
258
266
|
title="Save"
|
|
259
267
|
>
|
|
@@ -263,6 +271,7 @@ function collapseForm() {
|
|
|
263
271
|
<!-- close button start -->
|
|
264
272
|
<ac-button
|
|
265
273
|
modifier-classes="is-small is-danger is-light"
|
|
274
|
+
:disabled="isButtonLoaderActive"
|
|
266
275
|
data-testid="single-step-form-array-item-close-button"
|
|
267
276
|
@click.prevent="resetAllData()"
|
|
268
277
|
>
|
|
@@ -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
|
|