@appscode/design-system 2.2.60 → 2.2.62
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
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
border-right: 1px solid $color-border-dark;
|
|
17
17
|
background-color: $white-100;
|
|
18
18
|
}
|
|
19
|
+
|
|
19
20
|
&.is-disable {
|
|
20
21
|
opacity: 0.5;
|
|
21
22
|
|
|
@@ -41,9 +42,11 @@
|
|
|
41
42
|
}
|
|
42
43
|
|
|
43
44
|
&.is-success {
|
|
45
|
+
|
|
44
46
|
input,
|
|
45
47
|
.ac-card,
|
|
46
|
-
textarea
|
|
48
|
+
textarea,
|
|
49
|
+
select {
|
|
47
50
|
border: 1px solid $ac-primary !important;
|
|
48
51
|
}
|
|
49
52
|
|
|
@@ -53,9 +56,11 @@
|
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
&.is-danger {
|
|
59
|
+
|
|
56
60
|
input,
|
|
57
61
|
.ac-card,
|
|
58
|
-
textarea
|
|
62
|
+
textarea,
|
|
63
|
+
select {
|
|
59
64
|
border: 1px solid $danger;
|
|
60
65
|
}
|
|
61
66
|
|
|
@@ -65,6 +70,7 @@
|
|
|
65
70
|
}
|
|
66
71
|
|
|
67
72
|
&.is-loading {
|
|
73
|
+
|
|
68
74
|
input,
|
|
69
75
|
.ac-card,
|
|
70
76
|
textarea {
|
|
@@ -106,7 +112,9 @@
|
|
|
106
112
|
}
|
|
107
113
|
|
|
108
114
|
&.is-normal {
|
|
109
|
-
|
|
115
|
+
|
|
116
|
+
input,
|
|
117
|
+
select {
|
|
110
118
|
height: 45px;
|
|
111
119
|
font-size: 15px;
|
|
112
120
|
font-weight: 400;
|
|
@@ -153,7 +161,9 @@
|
|
|
153
161
|
}
|
|
154
162
|
|
|
155
163
|
&.is-small {
|
|
156
|
-
|
|
164
|
+
|
|
165
|
+
input,
|
|
166
|
+
select {
|
|
157
167
|
height: 36px;
|
|
158
168
|
font-size: 13px;
|
|
159
169
|
font-weight: 400;
|
|
@@ -210,7 +220,9 @@
|
|
|
210
220
|
}
|
|
211
221
|
|
|
212
222
|
&.is-extra-small {
|
|
213
|
-
|
|
223
|
+
|
|
224
|
+
input,
|
|
225
|
+
select {
|
|
214
226
|
height: 32px;
|
|
215
227
|
font-size: 13px;
|
|
216
228
|
font-weight: 400;
|
|
@@ -242,7 +254,7 @@
|
|
|
242
254
|
}
|
|
243
255
|
|
|
244
256
|
label {
|
|
245
|
-
top:
|
|
257
|
+
top: 6px;
|
|
246
258
|
font-size: 13px;
|
|
247
259
|
|
|
248
260
|
&.switch-label {
|
|
@@ -398,7 +410,8 @@
|
|
|
398
410
|
|
|
399
411
|
input,
|
|
400
412
|
.ac-card,
|
|
401
|
-
textarea
|
|
413
|
+
textarea,
|
|
414
|
+
select {
|
|
402
415
|
background-color: $white-100;
|
|
403
416
|
color: $color-heading;
|
|
404
417
|
height: 45px;
|
|
@@ -492,7 +505,7 @@
|
|
|
492
505
|
// check radio
|
|
493
506
|
|
|
494
507
|
.ac-single-radio {
|
|
495
|
-
.is-checkradio[type="radio"]
|
|
508
|
+
.is-checkradio[type="radio"]+label {
|
|
496
509
|
padding-left: 25px;
|
|
497
510
|
|
|
498
511
|
&:before {
|
|
@@ -550,6 +563,7 @@
|
|
|
550
563
|
display: flex;
|
|
551
564
|
align-items: center;
|
|
552
565
|
}
|
|
566
|
+
|
|
553
567
|
.file-label {
|
|
554
568
|
width: 100%;
|
|
555
569
|
}
|
|
@@ -559,7 +573,9 @@
|
|
|
559
573
|
height: 100%;
|
|
560
574
|
background-color: $secondary-light-gray;
|
|
561
575
|
}
|
|
576
|
+
|
|
562
577
|
&:hover {
|
|
578
|
+
|
|
563
579
|
.file-cta,
|
|
564
580
|
.file-name {
|
|
565
581
|
border-color: $ac-primary;
|
|
@@ -571,6 +587,7 @@
|
|
|
571
587
|
.file-upload {
|
|
572
588
|
border: 1px dashed $color-border-dark;
|
|
573
589
|
border-radius: 4px;
|
|
590
|
+
|
|
574
591
|
&:hover {
|
|
575
592
|
background-color: $secondary-light-gray;
|
|
576
593
|
border-color: $ac-primary;
|
|
@@ -578,16 +595,19 @@
|
|
|
578
595
|
label {
|
|
579
596
|
.upload-icon {
|
|
580
597
|
border: 1px solid $color-border-dark;
|
|
598
|
+
|
|
581
599
|
svg {
|
|
582
600
|
color: $color-heading;
|
|
583
601
|
}
|
|
584
602
|
}
|
|
585
603
|
}
|
|
586
604
|
}
|
|
605
|
+
|
|
587
606
|
label {
|
|
588
607
|
cursor: pointer;
|
|
589
608
|
padding: 32px;
|
|
590
609
|
display: block;
|
|
610
|
+
|
|
591
611
|
.upload-icon {
|
|
592
612
|
border: 1px solid $color-border;
|
|
593
613
|
display: inline-flex;
|
|
@@ -603,11 +623,13 @@
|
|
|
603
623
|
color: $primary-30;
|
|
604
624
|
}
|
|
605
625
|
}
|
|
626
|
+
|
|
606
627
|
p {
|
|
607
628
|
color: $color-heading;
|
|
629
|
+
|
|
608
630
|
strong {
|
|
609
631
|
font-weight: 600;
|
|
610
632
|
}
|
|
611
633
|
}
|
|
612
634
|
}
|
|
613
|
-
}
|
|
635
|
+
}
|
|
@@ -96,7 +96,7 @@ watch(
|
|
|
96
96
|
</span>
|
|
97
97
|
</template>
|
|
98
98
|
<div class="is-flex is-flex-direction-column">
|
|
99
|
-
<div v-if="htmlErrorMsg" class="invalid-error" v-html="errorMsg" />
|
|
99
|
+
<div v-if="htmlErrorMsg" class="invalid-error is-danger" v-html="errorMsg" />
|
|
100
100
|
<p v-else-if="errorMsg" class="is-danger">{{ errorMsg }}</p>
|
|
101
101
|
<slot name="message" />
|
|
102
102
|
</div>
|
|
@@ -4,12 +4,14 @@ interface Props {
|
|
|
4
4
|
name: string;
|
|
5
5
|
label?: string;
|
|
6
6
|
errorMsg?: string;
|
|
7
|
+
dataTestId?: string;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
withDefaults(defineProps<Props>(), {
|
|
10
11
|
modifierClasses: "",
|
|
11
12
|
label: "Switch Label",
|
|
12
13
|
errorMsg: "",
|
|
14
|
+
dataTestId: "ac-switch",
|
|
13
15
|
});
|
|
14
16
|
|
|
15
17
|
const model = defineModel({ type: Boolean });
|
|
@@ -17,7 +19,15 @@ const model = defineModel({ type: Boolean });
|
|
|
17
19
|
|
|
18
20
|
<template>
|
|
19
21
|
<div class="field">
|
|
20
|
-
<input
|
|
22
|
+
<input
|
|
23
|
+
v-model="model"
|
|
24
|
+
:id="name"
|
|
25
|
+
type="checkbox"
|
|
26
|
+
:name="name"
|
|
27
|
+
class="switch is-rounded is-primary"
|
|
28
|
+
:class="modifierClasses"
|
|
29
|
+
:data-testid="dataTestId"
|
|
30
|
+
/>
|
|
21
31
|
<label :for="name">{{ label }}</label>
|
|
22
32
|
<p v-show="errorMsg" class="is-danger">
|
|
23
33
|
{{ errorMsg }}
|