@mtvh/mtvh-design-system 0.0.31 → 0.0.32
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/_agent-repair-location-list.scss +13 -0
- package/assets/scss/components/_all.scss +2 -0
- package/assets/scss/components/_button-circle.scss +1 -0
- package/assets/scss/components/_button.scss +1 -0
- package/assets/scss/components/_card-list.scss +20 -2
- package/assets/scss/components/_collapse_button.scss +14 -0
- package/assets/scss/components/_form.scss +8 -6
- package/assets/scss/config/_icon-list.scss +11 -10
- package/assets/scss/config/_theme.scss +1 -1
- package/assets/scss/config/_variables.scss +4 -2
- package/assets/scss/forms/_form-check.scss +2 -1
- package/assets/scss/forms/_input-group.scss +0 -24
- package/assets/scss/forms/_search.scss +30 -0
- package/assets/scss/mixins/_butttons.scss +19 -2
- package/assets/scss/mixins/_form.scss +3 -2
- package/dist/js/app.min.js +1 -1
- package/dist/mtvh.min.css +3 -3
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// list style overrides for the MTVHO agent repair search results
|
|
2
|
+
.agent-repair-location-search-list {
|
|
3
|
+
list-style-type: none;
|
|
4
|
+
padding-left: 0;
|
|
5
|
+
|
|
6
|
+
ul {
|
|
7
|
+
padding-left: $mtvh-spacing-6;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&.agent-repair-location-search-list-additional {
|
|
11
|
+
border-bottom: 1px solid var(--mtvh-grey-03);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -133,6 +133,7 @@ $mtvh-buttons: (
|
|
|
133
133
|
outline: solid var(--#{$prefix}btn-outline-border)
|
|
134
134
|
var(--#{$prefix}btn-outline-color);
|
|
135
135
|
outline-offset: var(--#{$prefix}btn-outline-border);
|
|
136
|
+
border-radius: $btn-border-radius;
|
|
136
137
|
text-decoration: none;
|
|
137
138
|
}
|
|
138
139
|
&:focus:not(:focus-visible) {
|
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
.card-list {
|
|
2
|
+
border-radius: $border-radius-lg;
|
|
3
|
+
background-color: var(--#{$prefix}white);
|
|
2
4
|
&-item {
|
|
5
|
+
|
|
3
6
|
display: flex;
|
|
4
7
|
flex-direction: row;
|
|
5
8
|
flex-wrap: nowrap;
|
|
9
|
+
align-items: center;
|
|
10
|
+
|
|
6
11
|
border-bottom: 1px solid var(--#{$prefix}grey-03);
|
|
7
|
-
padding-top: $mtvh-spacing-
|
|
12
|
+
padding-top: $mtvh-spacing-4;
|
|
8
13
|
padding-bottom: $mtvh-spacing-5;
|
|
14
|
+
margin-left: $mtvh-spacing-5;
|
|
15
|
+
margin-right: $mtvh-spacing-5;
|
|
16
|
+
|
|
17
|
+
@include media-breakpoint-up(md) {
|
|
18
|
+
margin-left: $mtvh-spacing-6;
|
|
19
|
+
margin-right: $mtvh-spacing-6;
|
|
20
|
+
padding-top: $mtvh-spacing-5;
|
|
21
|
+
}
|
|
9
22
|
|
|
10
23
|
&:has(.label) {
|
|
11
24
|
&:last-child {
|
|
@@ -38,7 +51,12 @@
|
|
|
38
51
|
span {
|
|
39
52
|
display: block;
|
|
40
53
|
align-self: center;
|
|
41
|
-
|
|
54
|
+
font-size: $font-size-xs;
|
|
55
|
+
@include media-breakpoint-down(sm) {
|
|
56
|
+
&:not(:first-child) {
|
|
57
|
+
padding-top: $mtvh-spacing-2;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
42
60
|
@include media-breakpoint-up(sm) {
|
|
43
61
|
display: inline;
|
|
44
62
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// collapse button for use with Bootstrap Collapse components, based on the
|
|
2
|
+
// circle varriation of the close button animation goes through the transition
|
|
3
|
+
// mixin so it adheres to the reduced motion setting.
|
|
4
|
+
.btn-collapse {
|
|
5
|
+
|
|
6
|
+
transform: rotate(0deg);;
|
|
7
|
+
@include transition($btn-collapse-transition);
|
|
8
|
+
|
|
9
|
+
&.collapsed {
|
|
10
|
+
transform: rotate(180deg);
|
|
11
|
+
@include transition($btn-collapse-transition);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
@import "../forms/validation";
|
|
9
9
|
@import "../forms/stripe";
|
|
10
10
|
@import "../forms/credit-card-form";
|
|
11
|
+
@import "../forms/search";
|
|
11
12
|
|
|
12
13
|
.formio-form {
|
|
13
14
|
@import "../forms/formio";
|
|
@@ -127,11 +128,12 @@ formio {
|
|
|
127
128
|
}
|
|
128
129
|
}
|
|
129
130
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.mtvh-form-container-required {
|
|
134
|
+
font-size: $font-size-xs;
|
|
135
|
+
padding: 0 0 $mtvh-spacing-6 0;
|
|
136
|
+
@include media-breakpoint-down("lg") {
|
|
137
|
+
padding-bottom: $mtvh-spacing-7;
|
|
136
138
|
}
|
|
137
139
|
}
|
|
@@ -81,9 +81,9 @@ $icons: (
|
|
|
81
81
|
"space-sub-block":
|
|
82
82
|
'<svg width="28" height="28" viewBox="0 0 14 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.52481 12C1.24033 12 0.998404 11.8987 0.799042 11.6961C0.599681 11.4933 0.5 11.2474 0.5 10.9582V1.0416C0.5 0.752457 0.599681 0.506571 0.799042 0.303943C0.998404 0.101314 1.24033 0 1.52481 0H5.88428C6.16876 0 6.41069 0.101314 6.61005 0.303943C6.80941 0.506571 6.90909 0.752457 6.90909 1.0416V2.74286H12.4752C12.7597 2.74286 13.0016 2.84417 13.201 3.0468C13.4003 3.24943 13.5 3.49531 13.5 3.78446V10.9582C13.5 11.2474 13.4003 11.4933 13.201 11.6961C13.0016 11.8987 12.7597 12 12.4752 12H1.52481ZM1.51182 10.9714H5.89727V9.25714H1.51182V10.9714ZM1.51182 8.22857H5.89727V6.51429H1.51182V8.22857ZM1.51182 5.48571H5.89727V3.77143H1.51182V5.48571ZM1.51182 2.74286H5.89727V1.02857H1.51182V2.74286ZM6.90909 10.9714H12.4882V3.77143H6.90909V10.9714ZM8.89427 6.51429C8.75091 6.51429 8.63071 6.46497 8.53367 6.36634C8.43674 6.26771 8.38828 6.14548 8.38828 5.99966C8.38828 5.85394 8.43674 5.73183 8.53367 5.63331C8.63071 5.53491 8.75091 5.48571 8.89427 5.48571H10.3733C10.5167 5.48571 10.6368 5.53503 10.7337 5.63366C10.8308 5.73217 10.8793 5.85434 10.8793 6.00017C10.8793 6.146 10.8308 6.26811 10.7337 6.36651C10.6368 6.46503 10.5167 6.51429 10.3733 6.51429H8.89427ZM8.89427 9.25714C8.75091 9.25714 8.63071 9.20783 8.53367 9.1092C8.43674 9.01057 8.38828 8.88834 8.38828 8.74251C8.38828 8.5968 8.43674 8.47468 8.53367 8.37617C8.63071 8.27777 8.75091 8.22857 8.89427 8.22857H10.3733C10.5167 8.22857 10.6368 8.27788 10.7337 8.37651C10.8308 8.47503 10.8793 8.5972 10.8793 8.74303C10.8793 8.88886 10.8308 9.01097 10.7337 9.10937C10.6368 9.20789 10.5167 9.25714 10.3733 9.25714H8.89427Z" fill="#9A9A9A"/></svg>',
|
|
83
83
|
"chevron-up":
|
|
84
|
-
'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0
|
|
84
|
+
'<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="20" height="20" viewBox="0 0 20 13"><path fill="#000" d="m10.01 2.252-8.413 9.46a.875.875 0 0 1-.621.31c-.244.013-.466-.09-.665-.308a1.11 1.11 0 0 1-.31-.723c-.009-.262.087-.512.285-.75L8.922.528c.17-.176.34-.309.513-.397C9.608.044 9.8 0 10.01 0c.21 0 .403.044.577.133.173.089.34.222.497.4l8.627 9.704c.188.212.285.456.289.732a1.05 1.05 0 0 1-.291.745c-.2.219-.415.329-.646.329-.231 0-.445-.11-.64-.331l-8.413-9.46Z"/></svg>',
|
|
85
85
|
"chevron-down":
|
|
86
|
-
'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0
|
|
86
|
+
'<svg xmlns="http://www.w3.org/2000/svg" fill="none" width="20" height="20" viewBox="0 0 20 13"><path fill="#000" d="M9.99 9.79 18.403.33a.875.875 0 0 1 .621-.309c.244-.014.466.089.665.308.199.22.302.46.31.723.009.262-.086.512-.285.75l-8.636 9.712c-.17.176-.34.308-.513.397a1.247 1.247 0 0 1-.575.132c-.21 0-.403-.045-.577-.134a1.73 1.73 0 0 1-.497-.399L.289 1.805A1.097 1.097 0 0 1 0 1.073 1.051 1.051 0 0 1 .291.329C.491.109.705 0 .937 0c.231 0 .445.11.64.33L9.99 9.79Z"/></svg>'
|
|
87
87
|
);
|
|
88
88
|
|
|
89
89
|
/**
|
|
@@ -127,6 +127,14 @@ $mtvh-icons: (
|
|
|
127
127
|
width: $icon-size-scale-sm,
|
|
128
128
|
height: $icon-size-scale-sm,
|
|
129
129
|
),
|
|
130
|
+
"chevron-up": (
|
|
131
|
+
width: $icon-size-scale-sm,
|
|
132
|
+
height: $icon-size-scale-sm
|
|
133
|
+
),
|
|
134
|
+
"chevron-down": (
|
|
135
|
+
width: $icon-size-scale-sm,
|
|
136
|
+
height: $icon-size-scale-sm
|
|
137
|
+
),
|
|
130
138
|
"spreadsheet": (
|
|
131
139
|
width: $icon-size-scale-sm,
|
|
132
140
|
height: $icon-size-scale-sm,
|
|
@@ -679,14 +687,7 @@ $mtvh-icons: (
|
|
|
679
687
|
height: $icon-size-scale-lg,
|
|
680
688
|
svg-path: "#{$asset-icon-path}mastercard.svg",
|
|
681
689
|
),
|
|
682
|
-
|
|
683
|
-
width: $icon-size-scale-lg,
|
|
684
|
-
height: $icon-size-scale-lg
|
|
685
|
-
),
|
|
686
|
-
"chevron-down": (
|
|
687
|
-
width: $icon-size-scale-lg,
|
|
688
|
-
height: $icon-size-scale-lg
|
|
689
|
-
),
|
|
690
|
+
|
|
690
691
|
"space-building": (
|
|
691
692
|
width: $icon-size-scale-md,
|
|
692
693
|
height: $icon-size-scale-md,
|
|
@@ -183,7 +183,7 @@ $input-width-size-xl: 450px;
|
|
|
183
183
|
$input-width-size-l: 420px;
|
|
184
184
|
|
|
185
185
|
/* form check */
|
|
186
|
-
$form-check-bg-color:
|
|
186
|
+
$form-check-bg-color: var(--#{$prefix}grey-01);
|
|
187
187
|
$form-check-hover-bg-color: unset;
|
|
188
188
|
$form-check-input-width: 2.75rem;
|
|
189
189
|
$form-check-input-height: 2.75rem;
|
|
@@ -223,6 +223,9 @@ $btn-close-circle-height: 1.25rem;
|
|
|
223
223
|
$btn-close-focus-opacity: 1;
|
|
224
224
|
$btn-close-hover-opacity: 1;
|
|
225
225
|
|
|
226
|
+
/* collapse button */
|
|
227
|
+
$btn-collapse-transition: transform 0.2s ease-in-out;
|
|
228
|
+
|
|
226
229
|
/* stepper */
|
|
227
230
|
$stepper-bg-color: var(--#{$prefix}grey-06);
|
|
228
231
|
$stepper-sm-font-color: var(--#{$prefix}purple-04);
|
|
@@ -233,7 +236,6 @@ $stepper-font-size: $font-size-xs;
|
|
|
233
236
|
$stepper-font-color: var(--#{$prefix}white);
|
|
234
237
|
$stepper-breakpoint: "lg";
|
|
235
238
|
|
|
236
|
-
$alert-border-radius: 0.5rem;
|
|
237
239
|
$alert-padding-x: 0;
|
|
238
240
|
$alert-padding-y: 0;
|
|
239
241
|
|
|
@@ -26,9 +26,10 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.form-check-input {
|
|
29
|
+
|
|
30
|
+
--#{$prefix}form-check-bg: #{$form-check-bg-color};
|
|
29
31
|
margin-top: 0;
|
|
30
32
|
margin-right: $mtvh-spacing-4;
|
|
31
|
-
float: unset;
|
|
32
33
|
align-self: start;
|
|
33
34
|
border: var(--#{$prefix}border-width) solid var(--#{$prefix}grey-06);
|
|
34
35
|
|
|
@@ -1,27 +1,3 @@
|
|
|
1
1
|
.input-group-text {
|
|
2
2
|
border-radius: 0.25rem 0 0 0.25rem;
|
|
3
3
|
}
|
|
4
|
-
.input-group-search {
|
|
5
|
-
$height: 46px;
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
input.form-control {
|
|
11
|
-
padding-left: $mtvh-spacing-5;
|
|
12
|
-
border-right: 0;
|
|
13
|
-
height: $height;
|
|
14
|
-
}
|
|
15
|
-
.input-group-append {
|
|
16
|
-
border: var(--mtvh-border-width) solid var(--mtvh-grey-06);
|
|
17
|
-
border-top-right-radius: 0.25rem !important;
|
|
18
|
-
border-bottom-right-radius: 0.25rem !important;
|
|
19
|
-
border-radius: 0.25rem;
|
|
20
|
-
height: $height;
|
|
21
|
-
.mtvh-icon {
|
|
22
|
-
&:before {
|
|
23
|
-
background-color: var(--mtvh-black);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.input-group-search {
|
|
2
|
+
|
|
3
|
+
$height: 44px;
|
|
4
|
+
$button-size: $icon-size-scale-lg;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
position: relative;
|
|
8
|
+
input.form-control {
|
|
9
|
+
padding-left: $mtvh-spacing-5;
|
|
10
|
+
padding-right: calc(#{$button-size} * 2 + 0.25rem);
|
|
11
|
+
height: $height;
|
|
12
|
+
border-top-right-radius: $border-radius;
|
|
13
|
+
border-bottom-right-radius: $border-radius;
|
|
14
|
+
}
|
|
15
|
+
.input-group-search-append {
|
|
16
|
+
position: absolute;
|
|
17
|
+
z-index:8;
|
|
18
|
+
display: flex;
|
|
19
|
+
top: 0;
|
|
20
|
+
right: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.mtvh-icon {
|
|
24
|
+
position: relative;
|
|
25
|
+
&:before {
|
|
26
|
+
background-color: var(--mtvh-black) !important;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
}
|
|
@@ -69,11 +69,28 @@
|
|
|
69
69
|
&:active:not(:disabled):not(.disabled) {
|
|
70
70
|
outline: 0;
|
|
71
71
|
}
|
|
72
|
+
|
|
73
|
+
&:hover, &:active:not(:disabled):not(.disabled) {
|
|
74
|
+
position: relative;
|
|
75
|
+
&:after {
|
|
76
|
+
content: "";
|
|
77
|
+
position: absolute;
|
|
78
|
+
left: 4px;
|
|
79
|
+
top: 4px;
|
|
80
|
+
padding: 1.125rem;
|
|
81
|
+
border-radius: 50%;
|
|
82
|
+
z-index: 1;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
72
85
|
&:hover {
|
|
73
86
|
cursor: pointer;
|
|
74
|
-
|
|
87
|
+
&:after {
|
|
88
|
+
background: $hover-bg;
|
|
89
|
+
}
|
|
75
90
|
}
|
|
76
91
|
&:active:not(:disabled):not(.disabled) {
|
|
77
|
-
|
|
92
|
+
&:after {
|
|
93
|
+
background: $active-bg;
|
|
94
|
+
}
|
|
78
95
|
}
|
|
79
96
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
font-weight: bold;
|
|
5
5
|
position: relative;
|
|
6
6
|
display: flex;
|
|
7
|
-
margin: $mtvh-spacing-
|
|
7
|
+
margin: $mtvh-spacing-4 0 0 0;
|
|
8
8
|
&:before {
|
|
9
9
|
content: "";
|
|
10
10
|
-webkit-mask: get-icon("error", $danger);
|
|
@@ -12,9 +12,10 @@
|
|
|
12
12
|
background-color: $danger;
|
|
13
13
|
mask-repeat: no-repeat;
|
|
14
14
|
-webkit-mask-repeat: no-repeat;
|
|
15
|
-
padding-right: $mtvh-spacing-
|
|
15
|
+
padding-right: calc(1.25rem + #{$mtvh-spacing-3});
|
|
16
16
|
margin-top: $mtvh-spacing-1;
|
|
17
17
|
vertical-align: top;
|
|
18
|
+
width: $icon-size-scale-sm;
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
|