@mtvh/mtvh-design-system 0.0.33 → 0.0.35
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/app.scss +91 -1
- package/assets/scss/base/_print.scss +4 -0
- package/assets/scss/components/_alert.scss +1 -0
- package/assets/scss/components/_all.scss +2 -0
- package/assets/scss/components/_banner.scss +1 -0
- package/assets/scss/components/_button-circle.scss +3 -0
- package/assets/scss/components/_button.scss +17 -0
- package/assets/scss/components/_content-block.scss +21 -0
- package/assets/scss/components/_form.scss +4 -5
- package/assets/scss/components/_good-to-know.scss +5 -0
- package/assets/scss/components/_pagination.scss +5 -0
- package/assets/scss/components/_progress-bar.scss +29 -0
- package/assets/scss/components/_space-selection.scss +9 -1
- package/assets/scss/components/_stepper.scss +26 -1
- package/assets/scss/components/_tabs.scss +21 -0
- package/assets/scss/config/_icon-list.scss +18 -6
- package/assets/scss/config/_palette.scss +2 -2
- package/assets/scss/config/_variables.scss +13 -5
- package/assets/scss/forms/_credit-card-form.scss +9 -2
- package/assets/scss/forms/_file-upload.scss +119 -0
- package/assets/scss/forms/_form-chip.scss +53 -31
- package/assets/scss/forms/_form-control.scss +1 -5
- package/assets/scss/forms/_formio.scss +4 -0
- package/assets/scss/forms/_validation.scss +12 -0
- package/assets/scss/mixins/_butttons.scss +1 -1
- package/assets/scss/mixins/_form.scss +1 -1
- package/assets/scss/mixins/_style.scss +23 -0
- package/assets/scss/mtvh.scss +1 -1
- package/dist/mtvh.min.css +3 -3
- package/package.json +1 -1
|
@@ -2,15 +2,22 @@
|
|
|
2
2
|
background-color: var(--#{$prefix}white);
|
|
3
3
|
padding: $mtvh-spacing-6 $mtvh-spacing-5 $mtvh-spacing-6 $mtvh-spacing-5;
|
|
4
4
|
border-radius: $border-radius-lg;
|
|
5
|
+
|
|
5
6
|
@include media-breakpoint-up(sm) {
|
|
6
7
|
padding-left: $mtvh-spacing-6;
|
|
7
8
|
padding-right: $mtvh-spacing-6;
|
|
8
9
|
}
|
|
9
10
|
|
|
11
|
+
.mtvh-form-container-required {
|
|
12
|
+
@include media-breakpoint-down(sm) {
|
|
13
|
+
padding-bottom: $mtvh-spacing-6;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
10
17
|
.form-group {
|
|
11
|
-
--#{$prefix}form-group-padding-y: #{$mtvh-spacing-
|
|
18
|
+
--#{$prefix}form-group-padding-y: #{$mtvh-spacing-6};
|
|
12
19
|
@include media-breakpoint-up(sm) {
|
|
13
|
-
--mtvh-form-group-padding-y: #{$mtvh-spacing-
|
|
20
|
+
--mtvh-form-group-padding-y: #{$mtvh-spacing-7};
|
|
14
21
|
}
|
|
15
22
|
}
|
|
16
23
|
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
.files-table {
|
|
2
|
+
|
|
3
|
+
--#{$prefix}list-group-item-padding-y: #{$mtvh-spacing-3};
|
|
4
|
+
display: none;
|
|
5
|
+
width: 100%;
|
|
6
|
+
border: 0;
|
|
7
|
+
font-size: $font-size-base;
|
|
8
|
+
|
|
9
|
+
&:has(tbody tr) {
|
|
10
|
+
display: block;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
tr.row:not(thead tr.row){
|
|
14
|
+
border-top: 1px solid var(--#{$prefix}grey-03);;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
tr.row{
|
|
18
|
+
position: relative;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
tr.row > * {
|
|
22
|
+
padding-left:0;
|
|
23
|
+
padding-right:0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
thead, thead tr, tbody {
|
|
27
|
+
border:0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
thead {
|
|
31
|
+
@include media-breakpoint-down("md") {
|
|
32
|
+
opacity: 0;
|
|
33
|
+
position: absolute;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
tbody {
|
|
38
|
+
border-bottom: 1px solid var(--#{$prefix}grey-03);
|
|
39
|
+
|
|
40
|
+
td {
|
|
41
|
+
@include media-breakpoint-down("md") {
|
|
42
|
+
padding-top: $mtvh-spacing-4;
|
|
43
|
+
|
|
44
|
+
> div:first-child {
|
|
45
|
+
width: 88%;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
&:not(.col-md-1) {
|
|
49
|
+
padding-top: $mtvh-spacing-4;
|
|
50
|
+
padding-bottom: $mtvh-spacing-4;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.status-container {
|
|
56
|
+
position: absolute;
|
|
57
|
+
bottom:$mtvh-spacing-4;
|
|
58
|
+
left:0;
|
|
59
|
+
width:100%;
|
|
60
|
+
}
|
|
61
|
+
.status {
|
|
62
|
+
margin-top: $mtvh-spacing-3;
|
|
63
|
+
margin-bottom: $mtvh-spacing-3;
|
|
64
|
+
position: relative;
|
|
65
|
+
font-size: $font-size-xs;
|
|
66
|
+
font-weight: $font-weight-bold;
|
|
67
|
+
|
|
68
|
+
&.text-danger {
|
|
69
|
+
font-weight: normal;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
button, i {
|
|
74
|
+
@include media-breakpoint-down("md") {
|
|
75
|
+
position: absolute;
|
|
76
|
+
top:0;
|
|
77
|
+
right:0;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
.bi {
|
|
81
|
+
@extend .btn-icon-circle;
|
|
82
|
+
min-height: $input-min-height;
|
|
83
|
+
padding: $mtvh-spacing-4 $mtvh-spacing-3 0 $mtvh-spacing-4;
|
|
84
|
+
display: block;
|
|
85
|
+
&.bi-ban {
|
|
86
|
+
background-image: get-icon("cancel", "black");
|
|
87
|
+
background-repeat: no-repeat;
|
|
88
|
+
background-position: center;
|
|
89
|
+
&:before {
|
|
90
|
+
content: "";
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
&:hover {
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.fileSelector {
|
|
100
|
+
|
|
101
|
+
padding: $mtvh-spacing-10;
|
|
102
|
+
margin: 0 auto;
|
|
103
|
+
text-align: center;
|
|
104
|
+
margin-top: $mtvh-spacing-4;
|
|
105
|
+
margin-bottom: $mtvh-spacing-4;
|
|
106
|
+
border-radius: $border-radius-lg;
|
|
107
|
+
border: 1px dashed var(--#{$prefix}grey-06);
|
|
108
|
+
background-color: var(--#{$prefix}grey-01);
|
|
109
|
+
|
|
110
|
+
a {
|
|
111
|
+
font-weight: $mtvh-font-weight-bold;
|
|
112
|
+
text-decoration: none;
|
|
113
|
+
}
|
|
114
|
+
a {
|
|
115
|
+
span {
|
|
116
|
+
text-decoration: underline;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
.mtvh-chips {
|
|
2
|
+
|
|
3
|
+
&.form-check {
|
|
4
|
+
padding-left:0;
|
|
5
|
+
}
|
|
6
|
+
|
|
2
7
|
.form-radio.radio {
|
|
3
8
|
display: flex;
|
|
4
9
|
gap: $mtvh-spacing-4;
|
|
@@ -9,55 +14,72 @@
|
|
|
9
14
|
margin: 0;
|
|
10
15
|
}
|
|
11
16
|
|
|
17
|
+
.form-check-input:checked + span {
|
|
18
|
+
background-color: $form-check-input-checked-bg-color;
|
|
19
|
+
color: $form-check-input-checked-color;
|
|
20
|
+
border-color: $form-check-input-checked-bg-color;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.form-check-label span {
|
|
24
|
+
padding: $mtvh-spacing-3 $mtvh-spacing-6;
|
|
25
|
+
border: 1px solid var(--mtvh-grey-06);
|
|
26
|
+
border-radius: 0.5rem;
|
|
27
|
+
background-color: var(--mtvh-grey-01);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Custom template Formio specific focus and checked styles */
|
|
31
|
+
.form-check-label {
|
|
32
|
+
input {
|
|
33
|
+
&:focus {
|
|
34
|
+
+ span {
|
|
35
|
+
@include focus-style();
|
|
36
|
+
color: inherit;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
&:checked {
|
|
40
|
+
+ span {
|
|
41
|
+
background-color: $form-check-input-checked-bg-color;
|
|
42
|
+
color: $form-check-input-checked-color;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* Default form styles */
|
|
49
|
+
.form-check-input[type="checkbox"]:checked + .form-check-label span {
|
|
50
|
+
@include chip-checked-hover();
|
|
51
|
+
}
|
|
52
|
+
|
|
12
53
|
.form-check-input {
|
|
13
54
|
width: 5px;
|
|
14
55
|
opacity: 0;
|
|
15
56
|
position: absolute;
|
|
16
57
|
|
|
17
58
|
&:focus {
|
|
18
|
-
+ label {
|
|
59
|
+
+ label, + label span {
|
|
19
60
|
@include focus-style();
|
|
20
61
|
color: inherit;
|
|
62
|
+
border-radius: 0.5rem;
|
|
21
63
|
}
|
|
22
64
|
}
|
|
23
65
|
&:checked {
|
|
24
|
-
+ label {
|
|
66
|
+
+ label, + label span {
|
|
25
67
|
background-color: $form-check-input-checked-bg-color;
|
|
26
68
|
color: $form-check-input-checked-color;
|
|
27
|
-
|
|
28
|
-
&:focus {
|
|
29
|
-
+ label {
|
|
30
|
-
color: $form-check-input-checked-color;
|
|
31
|
-
}
|
|
69
|
+
border-radius: 0.5rem;
|
|
32
70
|
}
|
|
33
71
|
}
|
|
34
|
-
|
|
35
72
|
&[type="checkbox"] {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
position: absolute;
|
|
41
|
-
content: "";
|
|
42
|
-
background-image: get-icon("cancel", white);
|
|
43
|
-
background-repeat: no-repeat;
|
|
44
|
-
right: 5px;
|
|
45
|
-
top: 12px;
|
|
46
|
-
background-size: $icon-size-scale-xs;
|
|
47
|
-
background-position: 50%;
|
|
48
|
-
width: $icon-size-scale-xs;
|
|
49
|
-
height: $icon-size-scale-xs;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
73
|
+
|
|
74
|
+
+ span {
|
|
75
|
+
padding-left: $mtvh-spacing-6;
|
|
76
|
+
padding-right: $mtvh-spacing-6;
|
|
52
77
|
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
78
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
background-color: var(--mtvh-grey-01);
|
|
79
|
+
&:checked + span {
|
|
80
|
+
@include chip-checked-hover();
|
|
81
|
+
}
|
|
82
|
+
}
|
|
61
83
|
}
|
|
62
84
|
|
|
63
85
|
&--fullwidth {
|
|
@@ -10,11 +10,6 @@
|
|
|
10
10
|
background-image: none;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
span[ref|="charcount"],
|
|
14
|
-
.text-muted {
|
|
15
|
-
color: var(--mtvh-grey-06) !important;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
13
|
&:not(textarea, select, .dropdown) {
|
|
19
14
|
max-width: var(--#{$prefix}form-control-input-width);
|
|
20
15
|
}
|
|
@@ -56,3 +51,4 @@
|
|
|
56
51
|
--#{$prefix}form-control-input-width: #{$input-width-size-xl};
|
|
57
52
|
}
|
|
58
53
|
}
|
|
54
|
+
|
|
@@ -9,6 +9,12 @@
|
|
|
9
9
|
padding-right: $input-padding-x;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
.form-text {
|
|
13
|
+
&:has(.text-muted) {
|
|
14
|
+
margin-top: $mtvh-spacing-3;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
12
18
|
.invalid-feedback,
|
|
13
19
|
.formio-component.has-error.has-message .invalid-feedback {
|
|
14
20
|
font-weight: $mtvh-font-weight-bold;
|
|
@@ -29,6 +35,12 @@
|
|
|
29
35
|
}
|
|
30
36
|
}
|
|
31
37
|
|
|
38
|
+
.form-text.error {
|
|
39
|
+
color: $form-feedback-invalid-color;
|
|
40
|
+
font-size: $font-size-sm;
|
|
41
|
+
font-weight: bold;
|
|
42
|
+
}
|
|
43
|
+
|
|
32
44
|
.mtvh-chips {
|
|
33
45
|
&.has-error,
|
|
34
46
|
&.has-message {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
|
|
58
58
|
&:focus-visible {
|
|
59
59
|
box-shadow: none;
|
|
60
|
-
outline: solid var(--#{$prefix}btn-outline-border) var(--#{$prefix}btn-close-focus-outline-color);
|
|
60
|
+
outline: solid var(--#{$prefix}btn-outline-border) var(--#{$prefix}btn-close-focus-outline-color, var(--#{$prefix}dark-outline-color));
|
|
61
61
|
outline-offset: calc(var(--mtvh-btn-outline-border) * -2);
|
|
62
62
|
text-decoration: none;
|
|
63
63
|
-webkit-tap-highlight-color: unset;
|
|
@@ -24,3 +24,26 @@
|
|
|
24
24
|
border-radius: $btn-border-radius;
|
|
25
25
|
text-decoration: none;
|
|
26
26
|
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
@mixin chip-checked-hover(){
|
|
30
|
+
|
|
31
|
+
&:hover {
|
|
32
|
+
position: relative;
|
|
33
|
+
&:after {
|
|
34
|
+
position: absolute;
|
|
35
|
+
content: "";
|
|
36
|
+
background-image: get-icon("cancel", white);
|
|
37
|
+
background-repeat: no-repeat;
|
|
38
|
+
right: 5px;
|
|
39
|
+
top: 12px;
|
|
40
|
+
background-size: $icon-size-scale-xs;
|
|
41
|
+
background-position: 50%;
|
|
42
|
+
width: $icon-size-scale-xs;
|
|
43
|
+
height: $icon-size-scale-xs;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
}
|
|
49
|
+
|
package/assets/scss/mtvh.scss
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
@import "bootstrap/scss/pagination";
|
|
54
54
|
@import "bootstrap/scss/alert";
|
|
55
55
|
@import "bootstrap/scss/badge";
|
|
56
|
-
|
|
56
|
+
@import "bootstrap/scss/progress";
|
|
57
57
|
@import "bootstrap/scss/list-group";
|
|
58
58
|
@import "bootstrap/scss/close";
|
|
59
59
|
//@import "bootstrap/scss/toasts";
|