@mtvh/mtvh-design-system 0.0.21 → 0.0.23
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/assets/scss/components/_form.scss +9 -3
- package/assets/scss/components/_stepper.scss +30 -27
- package/assets/scss/config/_variables.scss +1 -1
- package/assets/scss/forms/_form-check.scss +4 -0
- package/assets/scss/forms/_form-chip.scss +35 -21
- package/assets/scss/forms/_formio.scss +5 -3
- package/assets/scss/forms/_validation.scss +14 -1
- package/assets/scss/mixins/_form.scss +7 -4
- package/dist/mtvh.min.css +1 -1
- package/package.json +1 -1
|
@@ -37,10 +37,16 @@
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.form-group {
|
|
41
|
-
margin-bottom: var(--#{$prefix}form-group-padding-y);
|
|
40
|
+
.form-group, .formio-form-group.mb-2 {
|
|
41
|
+
margin-bottom: var(--#{$prefix}form-group-padding-y) !important;
|
|
42
|
+
|
|
42
43
|
.formio-choices.choices {
|
|
43
|
-
|
|
44
|
+
--#{$prefix}form-group-padding-y: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:empty {
|
|
48
|
+
display: none;
|
|
49
|
+
--#{$prefix}form-group-padding-y: 0;
|
|
44
50
|
}
|
|
45
51
|
}
|
|
46
52
|
|
|
@@ -15,12 +15,13 @@
|
|
|
15
15
|
|
|
16
16
|
opacity: 0;
|
|
17
17
|
position: absolute;
|
|
18
|
-
top:
|
|
18
|
+
top: 80px;
|
|
19
19
|
left: 0;
|
|
20
20
|
margin-left: auto;
|
|
21
21
|
text-align: center;
|
|
22
22
|
color: var(--#{$prefix}stepper-sm-font-color);
|
|
23
23
|
width:100%;
|
|
24
|
+
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
|
|
@@ -38,32 +39,40 @@
|
|
|
38
39
|
display: flex;
|
|
39
40
|
flex-wrap: nowrap;
|
|
40
41
|
list-style: none;
|
|
41
|
-
|
|
42
|
-
padding: 0 0 $mtvh-spacing-9 0;
|
|
43
|
-
margin: $mtvh-spacing-6 0 $mtvh-spacing-5 0;
|
|
42
|
+
align-items: stretch;
|
|
44
43
|
justify-content: center;
|
|
44
|
+
width: 100%;
|
|
45
|
+
padding: $mtvh-spacing-8 0 $mtvh-spacing-5 0;
|
|
46
|
+
margin: 0;
|
|
45
47
|
color: var(--#{$prefix}stepper-font-color);
|
|
46
48
|
text-align: center;
|
|
47
49
|
position: relative;
|
|
48
|
-
padding-bottom: 0;
|
|
49
|
-
margin: $mtvh-spacing-8 0 $mtvh-spacing-5 0;
|
|
50
50
|
|
|
51
51
|
@include stepper-small-container {
|
|
52
|
-
padding:
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
padding: $mtvh-spacing-7 0 $mtvh-spacing-4 0;
|
|
53
|
+
min-height: 120px;
|
|
54
|
+
.mtvh-stepper-item {
|
|
55
|
+
height: 40px;
|
|
56
|
+
}
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
.mtvh-stepper-item {
|
|
58
60
|
|
|
59
|
-
|
|
61
|
+
align-items: center;
|
|
62
|
+
display: flex;
|
|
63
|
+
justify-content: center;
|
|
60
64
|
flex-basis: 100%;
|
|
61
|
-
|
|
65
|
+
counter-increment: count;
|
|
66
|
+
margin-right: 2px;
|
|
67
|
+
margin-bottom: 0;
|
|
62
68
|
color: var(--#{$prefix}stepper-disabled-font-color);
|
|
63
69
|
background-color: var(--#{$prefix}stepper-disabled-bg-color);
|
|
64
70
|
font-size: var(--#{$prefix}stepper-font-size);
|
|
65
71
|
padding: $mtvh-spacing-3 $mtvh-spacing-2;
|
|
66
|
-
|
|
72
|
+
|
|
73
|
+
@include media-breakpoint-up(md) {
|
|
74
|
+
margin-right: 4px;
|
|
75
|
+
}
|
|
67
76
|
|
|
68
77
|
&:has( a + span), &:has( span + a ), &.completed {
|
|
69
78
|
background-color: var(--#{$prefix}stepper-bg-color);
|
|
@@ -71,12 +80,6 @@
|
|
|
71
80
|
font-weight: bold;
|
|
72
81
|
}
|
|
73
82
|
|
|
74
|
-
&:has(a) {
|
|
75
|
-
&:hover {
|
|
76
|
-
background-color: var(--#{$prefix}blue-04);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
83
|
&:focus-within {
|
|
81
84
|
outline: solid var(--#{$prefix}btn-outline-border) var(--#{$prefix}btn-outline-color);
|
|
82
85
|
outline-offset: var(--#{$prefix}btn-outline-border);
|
|
@@ -113,18 +116,18 @@
|
|
|
113
116
|
border:0;
|
|
114
117
|
outline: 0;
|
|
115
118
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
z-index: 100;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&:has(a) {
|
|
122
|
+
|
|
123
|
+
&:hover {
|
|
124
|
+
background-color: var(--#{$prefix}blue-04);
|
|
125
|
+
cursor: pointer;
|
|
124
126
|
}
|
|
125
127
|
}
|
|
126
128
|
|
|
127
129
|
&:has(a:not(.link-inactive)) {
|
|
130
|
+
|
|
128
131
|
&:before {
|
|
129
132
|
font-weight: $mtvh-font-weight-bold;
|
|
130
133
|
}
|
|
@@ -133,7 +136,7 @@
|
|
|
133
136
|
&:has(a.link-inactive) {
|
|
134
137
|
color: var(--#{$prefix}stepper-disabled-font-color);
|
|
135
138
|
background-color: var(--#{$prefix}stepper-disabled-bg-color);
|
|
136
|
-
|
|
139
|
+
font-weight: normal;
|
|
137
140
|
a {
|
|
138
141
|
color: var(--#{$prefix}stepper-disabled-font-color);
|
|
139
142
|
background-color: var(--#{$prefix}stepper-disabled-bg-color);
|
|
@@ -220,7 +220,7 @@ $btn-close-hover-opacity: 1;
|
|
|
220
220
|
$stepper-bg-color: var(--#{$prefix}grey-06);
|
|
221
221
|
$stepper-sm-font-color: var(--#{$prefix}purple-04);
|
|
222
222
|
$stepper-active-bg-color: var(--#{$prefix}purple-04);
|
|
223
|
-
$stepper-disabled-bg-color: var(--#{$prefix}grey-
|
|
223
|
+
$stepper-disabled-bg-color: var(--#{$prefix}grey-02);
|
|
224
224
|
$stepper-disabled-font-color: var(--#{$prefix}black);
|
|
225
225
|
$stepper-font-size: $font-size-xs;
|
|
226
226
|
$stepper-font-color: var(--#{$prefix}white);
|
|
@@ -7,10 +7,35 @@
|
|
|
7
7
|
.form-check {
|
|
8
8
|
padding: 0;
|
|
9
9
|
margin: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.form-check-input {
|
|
13
|
+
width: 5px;
|
|
14
|
+
opacity: 0;
|
|
15
|
+
position: absolute;
|
|
10
16
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
17
|
+
&:focus {
|
|
18
|
+
+ label {
|
|
19
|
+
@include focus-style();
|
|
20
|
+
color: inherit;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
&:checked {
|
|
24
|
+
+ label {
|
|
25
|
+
background-color: $form-check-input-checked-bg-color;
|
|
26
|
+
color: $form-check-input-checked-color;
|
|
27
|
+
}
|
|
28
|
+
&:focus {
|
|
29
|
+
+ label {
|
|
30
|
+
color: $form-check-input-checked-color;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&[type="checkbox"] {
|
|
36
|
+
|
|
37
|
+
&:checked + label {
|
|
38
|
+
&:hover {
|
|
14
39
|
position: relative;
|
|
15
40
|
&:after {
|
|
16
41
|
position: absolute;;
|
|
@@ -25,36 +50,25 @@
|
|
|
25
50
|
height: $icon-size-scale-xs;
|
|
26
51
|
}
|
|
27
52
|
}
|
|
28
|
-
|
|
29
53
|
}
|
|
30
54
|
}
|
|
31
|
-
}
|
|
32
55
|
|
|
33
|
-
.form-check-input {
|
|
34
|
-
width: 5px;
|
|
35
|
-
opacity: 0;
|
|
36
|
-
position: absolute;
|
|
37
56
|
}
|
|
57
|
+
|
|
38
58
|
.form-check-label {
|
|
39
|
-
|
|
59
|
+
|
|
40
60
|
padding: $mtvh-spacing-3 $mtvh-spacing-6;
|
|
41
61
|
border: 1px solid var(--mtvh-grey-06);
|
|
42
62
|
border-radius: 0.5rem;
|
|
43
63
|
background-color: var(--mtvh-grey-01);
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.form-check-input {
|
|
48
|
-
|
|
49
|
-
&:checked + span {
|
|
50
|
-
background-color: $form-check-input-checked-bg-color;
|
|
51
|
-
color: $form-check-input-checked-color;
|
|
52
|
-
}
|
|
64
|
+
|
|
53
65
|
}
|
|
54
66
|
|
|
55
67
|
&--fullwidth {
|
|
56
|
-
|
|
57
|
-
|
|
68
|
+
.form-check {
|
|
69
|
+
width: 100%;
|
|
70
|
+
}
|
|
71
|
+
.form-check-label, .form-check-label span {
|
|
58
72
|
width: 100%;
|
|
59
73
|
}
|
|
60
74
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
.formio-component {
|
|
2
2
|
|
|
3
3
|
&.formio-hidden{
|
|
4
|
-
margin-bottom:0;
|
|
4
|
+
margin-bottom: 0;
|
|
5
|
+
--#{$prefix}form-group-padding-y: 0;
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
&.formio-component-button:has(> button[type="submit"]),&.formio-component-form,&.formio-component-fieldset,&.formio-component-columns,&.formio-component-mtvhLogicSet{
|
|
@@ -32,8 +33,9 @@
|
|
|
32
33
|
|
|
33
34
|
.formio-error-wrapper {
|
|
34
35
|
background: unset;
|
|
36
|
+
padding: 0;
|
|
35
37
|
}
|
|
36
38
|
|
|
37
|
-
.
|
|
38
|
-
padding:
|
|
39
|
+
.choices__item.choices__item--selectable {
|
|
40
|
+
padding-right: 30px;
|
|
39
41
|
}
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
.was-validated .form-control:invalid, .form-control.is-invalid {
|
|
8
8
|
padding-right: $input-padding-x;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
.invalid-feedback, .formio-component.has-error.has-message .invalid-feedback {
|
|
11
12
|
font-weight: $mtvh-font-weight-bold;
|
|
12
13
|
&:has(.error.form-text) {
|
|
13
14
|
.form-text {
|
|
@@ -16,6 +17,7 @@
|
|
|
16
17
|
font-size: $font-size-sm;
|
|
17
18
|
font-weight: bold;
|
|
18
19
|
margin: 0;
|
|
20
|
+
display: inline-block;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
}
|
|
@@ -25,6 +27,17 @@
|
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
29
|
|
|
30
|
+
.mtvh-chips {
|
|
31
|
+
&.has-error, &.has-message {
|
|
32
|
+
.form-check-label {
|
|
33
|
+
color: $form-label-color;
|
|
34
|
+
span {
|
|
35
|
+
border-color: $form-feedback-invalid-color;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
28
41
|
.form-check-input {
|
|
29
42
|
&.is-invalid {
|
|
30
43
|
border-color: var(--mtvh-form-invalid-border-color);
|
|
@@ -39,9 +39,12 @@
|
|
|
39
39
|
|
|
40
40
|
@mixin field-focus() {
|
|
41
41
|
&:focus {
|
|
42
|
-
|
|
43
|
-
outline: solid var(--#{$prefix}btn-outline-border) var(--#{$prefix}primary-outline-color);
|
|
44
|
-
outline-offset: var(--#{$prefix}btn-outline-border);
|
|
45
|
-
color: $input-color;
|
|
42
|
+
@include focus-style();
|
|
46
43
|
}
|
|
47
44
|
}
|
|
45
|
+
@mixin focus-style() {
|
|
46
|
+
box-shadow: none;
|
|
47
|
+
outline: solid var(--#{$prefix}btn-outline-border) var(--#{$prefix}primary-outline-color);
|
|
48
|
+
outline-offset: var(--#{$prefix}btn-outline-border);
|
|
49
|
+
color: $input-color;
|
|
50
|
+
}
|