@mtvh/mtvh-design-system 0.0.28 → 0.0.29

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.
@@ -126,6 +126,9 @@
126
126
  &-bg {
127
127
  --#{$prefix}content-block-bg: var(--mtvh-white);
128
128
  background-color: var(--#{$prefix}content-block-bg);
129
+ a {
130
+ color: var(--#{$prefix}content-block-bg-link-color, var(--#{$prefix}blue-04));
131
+ }
129
132
  }
130
133
 
131
134
  &-icon {
@@ -228,9 +231,7 @@
228
231
  .mtvh-content-block-bg--#{$state} {
229
232
  --#{$prefix}content-block-bg: #{$variable};
230
233
  @if ($state == "grey-02" or $state == "yellow-02") {
231
- a {
232
- color: var(--#{$prefix}black);
233
- }
234
+ --#{$prefix}content-block-bg-link-color: var(--#{$prefix}black);
234
235
  }
235
236
  }
236
237
  }
@@ -11,8 +11,9 @@
11
11
 
12
12
  .formio-form {
13
13
  @import "../forms/formio";
14
- @import "../forms/mtvho_contact_phone";
15
- @import "../forms/mtvho_contact_email";
14
+ @import "../forms/mtvho-contact-phone";
15
+ @import "../forms/mtvho-contact-email";
16
+ @import "../forms/mtvh-address";
16
17
  }
17
18
 
18
19
  .mtvh-form,
@@ -79,8 +79,11 @@ $icons: (
79
79
  "printer":
80
80
  '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20"><path fill="#000" d="M5.928 19c-.532 0-.987-.19-1.365-.567a1.859 1.859 0 0 1-.568-1.364v-2.112H1.933c-.532 0-.987-.189-1.365-.567A1.859 1.859 0 0 1 0 13.026v-4.12c0-.824.286-1.52.857-2.086a2.846 2.846 0 0 1 2.081-.85h14.124c.825 0 1.52.283 2.087.85.567.566.851 1.262.851 2.086v4.12c0 .53-.19.986-.568 1.364a1.862 1.862 0 0 1-1.365.567h-2.062v2.112c0 .53-.19.986-.568 1.364a1.862 1.862 0 0 1-1.365.567H5.928Zm-3.995-5.974h2.062v-.078c0-.53.19-.985.568-1.364a1.862 1.862 0 0 1 1.365-.567h8.144c.532 0 .987.19 1.365.568.379.378.568.832.568 1.363v.078h2.062v-4.12a.97.97 0 0 0-.29-.716.978.978 0 0 0-.718-.289H2.94a.978.978 0 0 0-.718.289.97.97 0 0 0-.29.716v4.12Zm12.14-7.056V2.931H5.927V5.97H3.995V2.931c0-.53.19-.986.568-1.364A1.862 1.862 0 0 1 5.928 1h8.144c.532 0 .987.19 1.365.567.379.378.568.833.568 1.364V5.97h-1.933Zm1.984 4.416a.932.932 0 0 0 .683-.283.93.93 0 0 0 .283-.682.93.93 0 0 0-.283-.683.931.931 0 0 0-.683-.283.931.931 0 0 0-.683.283.93.93 0 0 0-.284.683.93.93 0 0 0 .284.682.932.932 0 0 0 .683.283Zm-1.985 6.683v-4.12H5.928v4.12h8.144Z"/></svg>',
81
81
  "space-sub-block":
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"/>
83
- </svg>',
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
+ "cheveron-up":
84
+ '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 44 44"><path fill="#000" d="m22.01 18.23-8.413 9.46a.875.875 0 0 1-.621.31c-.244.014-.466-.088-.665-.308a1.11 1.11 0 0 1-.31-.723c-.009-.262.087-.512.285-.75l8.636-9.711c.17-.177.34-.309.513-.397.173-.088.364-.132.575-.132.21 0 .403.044.577.133.173.089.34.222.497.399l8.627 9.705c.188.211.285.456.289.732.005.277-.093.525-.291.744-.2.22-.415.33-.646.33-.231 0-.445-.11-.64-.331l-8.413-9.46Z"/></svg>',
85
+ "cheveron-down":
86
+ '<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 44 44"><path fill="#000" d="m21.99 25.77 8.413-9.46a.875.875 0 0 1 .621-.31c.244-.014.466.088.665.308s.302.46.31.723c.009.262-.086.512-.285.75l-8.636 9.711c-.17.177-.34.309-.513.397a1.247 1.247 0 0 1-.575.132c-.21 0-.403-.044-.577-.133a1.73 1.73 0 0 1-.497-.399l-8.627-9.705a1.096 1.096 0 0 1-.289-.732 1.051 1.051 0 0 1 .291-.744c.2-.22.415-.33.646-.33.231 0 .445.11.64.331l8.413 9.46Z"/></svg>'
84
87
  );
85
88
 
86
89
  /**
@@ -676,6 +679,14 @@ $mtvh-icons: (
676
679
  height: $icon-size-scale-lg,
677
680
  svg-path: "#{$asset-icon-path}mastercard.svg",
678
681
  ),
682
+ "cheveron-up": (
683
+ width: $icon-size-scale-lg,
684
+ height: $icon-size-scale-lg
685
+ ),
686
+ "cheveron-down": (
687
+ width: $icon-size-scale-lg,
688
+ height: $icon-size-scale-lg
689
+ ),
679
690
  "space-building": (
680
691
  width: $icon-size-scale-md,
681
692
  height: $icon-size-scale-md,
@@ -46,4 +46,5 @@
46
46
 
47
47
  --mtvh-stone-01: #f9f5f0;
48
48
  --mtvh-stone-02: #f9f2ea;
49
+ --mtvh-stone-03: #dbaa79;
49
50
  }
@@ -329,6 +329,37 @@ $badge-themes: (
329
329
  ),
330
330
  );
331
331
 
332
+
333
+ $icon-color-themes: (
334
+ "green": (
335
+ "background": var(--#{$prefix}green-01),
336
+ "color": var(--#{$prefix}green-03),
337
+ ),
338
+ "red": (
339
+ "background": var(--#{$prefix}red-01),
340
+ "color": var(--#{$prefix}red-03),
341
+ ),
342
+ "grey": (
343
+ "background": var(--#{$prefix}grey-02),
344
+ "color": var(--#{$prefix}grey-05),
345
+ ),
346
+ "blue": (
347
+ "background": var(--#{$prefix}blue-01),
348
+ "color": var(--#{$prefix}blue-03),
349
+ ),
350
+ "purple": (
351
+ "background": var(--#{$prefix}purple-01),
352
+ "color": var(--#{$prefix}purple-03),
353
+ ),
354
+ "yellow": (
355
+ "background": var(--#{$prefix}yellow-01),
356
+ "color": var(--#{$prefix}yellow-03),
357
+ ),
358
+ "stone": (
359
+ "background": var(--#{$prefix}stone-01),
360
+ "color": var(--#{$prefix}stone-03),
361
+ ),
362
+ );
332
363
  $badge-border-radius: 0;
333
364
  $badge-padding-x: $mtvh-spacing-1;
334
365
  $badge-padding-y: 0;
@@ -26,7 +26,7 @@
26
26
  @include hover-animate($position: "right");
27
27
  }
28
28
  }
29
- &.m-0 {
29
+ &.m-0, &.mtvh-icon--circle {
30
30
  &:after,
31
31
  &:before {
32
32
  margin-right: 0;
@@ -43,3 +43,17 @@
43
43
  }
44
44
  }
45
45
  }
46
+
47
+ .mtvh-icon--circle {
48
+ @include mtvh-icon-circle($icon-size-scale-md, var(--#{$prefix}icon-background), var(--#{$prefix}icon-colour));
49
+ }
50
+
51
+ @each $state, $variable in $icon-color-themes {
52
+ $bg-colour: map-get($variable, "background");
53
+ $color: map-get($variable, "color");
54
+
55
+ .mtvh-icon--circle-#{$state} {
56
+ --#{$prefix}icon-colour: #{$color};
57
+ --#{$prefix}icon-background: #{$bg-colour};
58
+ }
59
+ }
@@ -0,0 +1,21 @@
1
+ .formio-component-mtvhAddress {
2
+ label {
3
+ margin-bottom: $mtvh-spacing-3;
4
+ }
5
+
6
+ select,
7
+ textarea {
8
+ @include media-breakpoint-up(lg) {
9
+ max-width: $input-width-size-xl;
10
+ }
11
+ }
12
+
13
+ #postCodeSection {
14
+ .d-flex {
15
+ align-items: center;
16
+ > button {
17
+ margin-left: $mtvh-spacing-4;
18
+ }
19
+ }
20
+ }
21
+ }
@@ -2,7 +2,7 @@
2
2
  select,
3
3
  input {
4
4
  @include media-breakpoint-up(lg) {
5
- width: 50%;
5
+ max-width: $input-width-size-xl;
6
6
  }
7
7
  }
8
8
  }
@@ -2,7 +2,7 @@
2
2
  select,
3
3
  input {
4
4
  @include media-breakpoint-up(lg) {
5
- width: 50%;
5
+ max-width: $input-width-size-xl;
6
6
  }
7
7
  }
8
8
  }
@@ -47,33 +47,28 @@
47
47
  }
48
48
  }
49
49
 
50
- @mixin button-circle() {
50
+ @mixin button-circle($padding: $mtvh-spacing-4, $hover-bg: rgba(0, 0, 0, 0.08), $active-bg: rgba(0, 0, 0, 0.16)) {
51
51
  border: 0;
52
52
  border-radius: 50%;
53
- -moz-border-radius: 50%;
54
- -webkit-border-radius: 50%;
55
- padding: $mtvh-spacing-4;
53
+ padding: $padding;
56
54
 
57
55
  &:focus-visible {
58
56
  box-shadow: none;
59
- outline: solid var(--#{$prefix}btn-outline-border)
60
- var(--#{$prefix}btn-close-focus-outline-color);
57
+ outline: solid var(--#{$prefix}btn-outline-border) var(--#{$prefix}btn-close-focus-outline-color);
61
58
  outline-offset: calc(var(--mtvh-btn-outline-border) * -2);
62
59
  text-decoration: none;
63
60
  -webkit-tap-highlight-color: unset;
64
61
  }
65
- &:focus:not(:focus-visible) {
62
+ &:focus:not(:focus-visible),
63
+ &:hover,
64
+ &:active:not(:disabled):not(.disabled) {
66
65
  outline: 0;
67
66
  }
68
67
  &:hover {
69
68
  cursor: pointer;
70
- outline: 0;
71
- }
72
- &:hover {
73
- background-color: rgba(0, 0, 0, 0.08);
69
+ background-color: $hover-bg;
74
70
  }
75
71
  &:active:not(:disabled):not(.disabled) {
76
- outline: 0;
77
- background-color: rgba(0, 0, 0, 0.16);
72
+ background-color: $active-bg;
78
73
  }
79
74
  }
@@ -126,3 +126,30 @@
126
126
  background-size: contain;
127
127
  }
128
128
  }
129
+
130
+
131
+ @mixin mtvh-icon-circle($size, $bg, $color) {
132
+ width: $size;
133
+ height: $size;
134
+ border-radius: 50%;
135
+ background-color: $bg;
136
+ display: flex;
137
+ align-items: center;
138
+ justify-content: center;
139
+ color: $color;
140
+
141
+ &.mtvh-icon {
142
+ &:before,
143
+ &:after {
144
+ margin: 0;
145
+ vertical-align: middle;
146
+ height: $icon-size-scale-xs;
147
+ width: $icon-size-scale-xs;
148
+ background-size: contain;
149
+ background-position: center;
150
+ background-repeat: no-repeat;
151
+ -webkit-mask-size: contain;
152
+ mask-size: contain;
153
+ }
154
+ }
155
+ }