@mtvh/mtvh-design-system 0.0.36 → 0.0.37

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.
@@ -22,4 +22,5 @@
22
22
  @import "_table";
23
23
  @import "_progress-bar";
24
24
  @import "_tabs";
25
- @import "_appointment"
25
+ @import "_appointment";
26
+ @import "_profile-block";
@@ -56,6 +56,77 @@
56
56
  }
57
57
  }
58
58
 
59
+ &--expandable {
60
+ padding: 0;
61
+ box-shadow: var(--#{$prefix}box-shadow);
62
+
63
+ h1,
64
+ h2,
65
+ h3,
66
+ h4,
67
+ h5,
68
+ h6 {
69
+ margin-bottom: 0;
70
+ }
71
+
72
+ .expanding-button {
73
+ --#{$prefix}accordion-btn--icon: #{$accordion-button-icon};
74
+ --#{$prefix}accordion-btn-active-icon: #{$accordion-button-active-icon};
75
+ --#{$prefix}accordion-btn-icon-width: #{$icon-size-scale-sm};
76
+ --#{$prefix}accordion-btn-icon-height: #{$icon-size-scale-sm};
77
+ --#{$prefix}accordion-active-bg: transparent;
78
+ --#{$prefix}accordion-active-color: #{$primary};
79
+ --#{$prefix}accordion-btn-icon-transition: transform 0.3s ease;
80
+
81
+ width: 100%;
82
+ background: transparent;
83
+ border-radius: $border-radius-lg;
84
+ padding: $mtvh-spacing-5;
85
+ border: 0;
86
+
87
+ @include media-breakpoint-up(md) {
88
+ padding: $mtvh-spacing-5 $mtvh-spacing-6;
89
+ }
90
+
91
+ .button-content {
92
+ @extend .accordion-button;
93
+ @extend %h4;
94
+ display: flex !important;
95
+ font-family: $font-family-paralucent !important;
96
+ margin-bottom: 0 !important;
97
+ }
98
+
99
+ &:not(.collapsed) .button-content::after {
100
+ transform: $accordion-icon-transform;
101
+ transition: $accordion-icon-transition;
102
+ }
103
+
104
+ &:focus-visible {
105
+ outline: var(--#{$prefix}btn-outline-border) solid var(--#{$prefix}btn-outline-color);
106
+ outline-offset: 0;
107
+ }
108
+
109
+ &:hover,
110
+ &:hover:focus-visible {
111
+ outline: $btn-border-width solid var(--#{$prefix}purple-03);
112
+ outline-offset: 0;
113
+ }
114
+ }
115
+
116
+ .expanding-body--inner {
117
+ padding: 0 $mtvh-spacing-5 $mtvh-spacing-6 $mtvh-spacing-5;
118
+
119
+ @include media-breakpoint-up(md) {
120
+ padding: 0 $mtvh-spacing-6 $mtvh-spacing-6 $mtvh-spacing-6;
121
+ }
122
+ }
123
+
124
+ .expanding-body--content {
125
+ padding-top: $mtvh-spacing-4;
126
+ border-top: 1px solid var(--#{$prefix}grey-02);
127
+ }
128
+ }
129
+
59
130
  &--stretch {
60
131
  height: 100%;
61
132
  }
@@ -84,6 +84,15 @@ formio {
84
84
  margin-bottom: 0;
85
85
  text-align: left !important;
86
86
  }
87
+
88
+ [ref="charcount"] {
89
+ color: var(--#{$prefix}grey-06) !important;
90
+ }
91
+
92
+ &:has(.text-muted) {
93
+ margin-top: $mtvh-spacing-3;
94
+ }
95
+
87
96
  }
88
97
  }
89
98
 
@@ -101,8 +110,8 @@ formio {
101
110
  }
102
111
  max-width: var(--#{$prefix}form-max-width);
103
112
  @include media-breakpoint-up("md") {
104
- padding-left: 60px;
105
- padding-right: 60px;
113
+ padding-left: $mtvh-spacing-11;
114
+ padding-right: $mtvh-spacing-11;
106
115
  }
107
116
 
108
117
  @include media-breakpoint-up("lg") {
@@ -134,5 +143,6 @@ formio {
134
143
 
135
144
  .mtvh-form-container-required {
136
145
  font-size: $font-size-xs;
137
- padding: 0 0 $mtvh-spacing-7 0;
146
+ padding: $mtvh-spacing-4 0 $mtvh-spacing-7 0;
138
147
  }
148
+
@@ -0,0 +1,54 @@
1
+ .mtvh-profile-block {
2
+ $large-spacing: $mtvh-spacing-6;
3
+ $small-spacing: $mtvh-spacing-5;
4
+ $negative-small-spacing: -$small-spacing;
5
+ $negative-large-spacing: -$large-spacing;
6
+ $border-color: var(--mtvh-grey-03);
7
+ $border-radius: 0.5rem;
8
+ $active-background-color: var(--mtvh-purple-01);
9
+
10
+ padding-bottom: unset;
11
+
12
+ .section {
13
+ margin-left: $negative-small-spacing;
14
+ margin-right: $negative-small-spacing;
15
+ padding-left: $small-spacing;
16
+ padding-right: $small-spacing;
17
+
18
+ @include media-breakpoint-up(md) {
19
+ margin-left: $negative-large-spacing;
20
+ margin-right: $negative-large-spacing;
21
+ padding-left: $large-spacing;
22
+ padding-right: $large-spacing;
23
+ }
24
+
25
+ &:last-of-type {
26
+ border-bottom-left-radius: $border-radius;
27
+ border-bottom-right-radius: $border-radius;
28
+ }
29
+
30
+ form {
31
+ border-top: 1px solid $border-color;
32
+ padding-top: $small-spacing;
33
+ padding-bottom: $small-spacing;
34
+
35
+ p.invalid-feedback {
36
+ display: block;
37
+ margin-bottom: 0;
38
+ }
39
+
40
+ button:last-of-type {
41
+ display: inline;
42
+ }
43
+ }
44
+
45
+ .btn-icon-circle {
46
+ margin-top: unset;
47
+ margin-bottom: unset;
48
+ }
49
+ }
50
+
51
+ .section.active {
52
+ background: $active-background-color;
53
+ }
54
+ }
@@ -1,5 +1,5 @@
1
1
  @mixin stepper-small-container {
2
- &.mtvh-stepper-small {
2
+ &.mtvh-stepper--compact {
3
3
  @content;
4
4
  }
5
5
  @include media-breakpoint-down($stepper-breakpoint) {
@@ -53,6 +53,7 @@
53
53
  min-height: 120px;
54
54
  .mtvh-stepper-item {
55
55
  height: 40px;
56
+ min-width: 15px;
56
57
  }
57
58
  }
58
59
 
@@ -95,7 +96,13 @@
95
96
 
96
97
  &:first-child {
97
98
  border-radius: 50px 0 0 50px;
99
+ &.d-none {
100
+ + li {
101
+ border-radius: 50px 0 0 50px;
102
+ }
103
+ }
98
104
  }
105
+
99
106
  &:last-child {
100
107
  border-radius: 0 50px 50px 0;
101
108
  }
@@ -180,7 +187,7 @@
180
187
 
181
188
  }
182
189
 
183
- .mtvh-stepper-small {
190
+ .mtvh-stepper--compact {
184
191
  .mtvh-stepper-item {
185
192
  --#{$prefix}stepper-font-color: #{$stepper-sm-font-color};
186
193
  a,
@@ -176,7 +176,7 @@ $input-width-size-xxs: 64px;
176
176
  $input-width-size-xs: 80px;
177
177
  $input-width-size-sm: 96px;
178
178
  $input-width-size-md: 160px;
179
- $input-width-size-lg: 336px;
179
+ $input-width-size-lg: 416px;
180
180
  $input-width-size-xl: 450px;
181
181
  $input-width-size-l: 420px;
182
182
 
@@ -407,6 +407,7 @@ $progress-height: 18px;
407
407
  $progress-bar-bg: var(--#{$prefix}purple-05);
408
408
  $progress-bar-color: var(--#{$prefix}purple-05);
409
409
  $progress-bg: var(--#{$prefix}white);
410
+ $progress-border-radius: 8px;
410
411
 
411
412
  $nav-tabs-border-color: var(--#{$prefix}grey-04);
412
413
  $nav-tabs-border-width: 2px;
@@ -152,3 +152,22 @@ ol {
152
152
  margin-bottom: 0.25rem;
153
153
  }
154
154
  }
155
+
156
+ dl {
157
+ margin: 0;
158
+
159
+ > div {
160
+ display: flex;
161
+ margin-bottom: $mtvh-spacing-3;
162
+ }
163
+
164
+ dt {
165
+ font-weight: $mtvh-font-weight-normal;
166
+ margin-right: $mtvh-spacing-2;
167
+ }
168
+
169
+ dd {
170
+ font-weight: $mtvh-font-weight-bold;
171
+ margin: 0;
172
+ }
173
+ }
@@ -9,6 +9,7 @@
9
9
  }
10
10
 
11
11
  .mtvh-form-container-required {
12
+ padding-top: 0;
12
13
  @include media-breakpoint-down(sm) {
13
14
  padding-bottom: $mtvh-spacing-6;
14
15
  }
@@ -37,6 +37,10 @@
37
37
  tbody {
38
38
  border-bottom: 1px solid var(--#{$prefix}grey-03);
39
39
 
40
+ @include media-breakpoint-down("md") {
41
+ --mtvh-list-group-item-padding-y: 0;
42
+ }
43
+
40
44
  td {
41
45
  @include media-breakpoint-down("md") {
42
46
  padding-top: $mtvh-spacing-4;
@@ -47,20 +51,23 @@
47
51
  }
48
52
  &:not(.col-md-1) {
49
53
  padding-top: $mtvh-spacing-4;
50
- padding-bottom: $mtvh-spacing-4;
54
+ padding-bottom: $mtvh-spacing-5;
55
+ }
56
+ &.col-md-1 {
57
+ padding: 0;
51
58
  }
52
59
  }
53
60
  }
54
61
 
55
62
  .status-container {
56
63
  position: absolute;
57
- bottom:$mtvh-spacing-4;
64
+ bottom:$mtvh-spacing-5;
58
65
  left:0;
59
66
  width:100%;
60
67
  }
61
68
  .status {
62
- margin-top: $mtvh-spacing-3;
63
- margin-bottom: $mtvh-spacing-3;
69
+ margin-top: $mtvh-spacing-2;
70
+ margin-bottom: 0;
64
71
  position: relative;
65
72
  font-size: $font-size-xs;
66
73
  font-weight: $font-weight-bold;
@@ -11,7 +11,7 @@
11
11
  }
12
12
 
13
13
  &:not(textarea, select, .dropdown) {
14
- max-width: var(--#{$prefix}form-control-input-width);
14
+ max-width: var(--#{$prefix}form-control-input-width, #{$input-width-size-lg});
15
15
  }
16
16
 
17
17
  &[ref|="postCode"],
@@ -1,7 +1,7 @@
1
1
  .form-select,
2
2
  select {
3
3
  color: $form-select-color;
4
- max-width: unset;
4
+ max-width: $input-width-size-lg;
5
5
  -o-appearance: none;
6
6
  -webkit-appearance: none;
7
7
  -moz-appearance: none;
@@ -9,19 +9,13 @@
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
-
18
12
  .invalid-feedback,
19
13
  .formio-component.has-error.has-message .invalid-feedback {
20
14
  font-weight: $mtvh-font-weight-bold;
21
15
  &:has(.error.form-text) {
22
16
  .form-text {
23
17
  &.error {
24
- color: $form-feedback-invalid-color;
18
+ color: $form-feedback-invalid-color !important;
25
19
  font-size: $font-size-sm;
26
20
  font-weight: bold;
27
21
  margin: 0;
@@ -3,7 +3,7 @@
3
3
  font-size: $font-size-sm;
4
4
  font-weight: bold;
5
5
  position: relative;
6
- display: flex !important;
6
+
7
7
  margin: $mtvh-spacing-4 0 0 0;
8
8
  &:before {
9
9
  content: "";
@@ -12,7 +12,8 @@
12
12
  background-color: $danger;
13
13
  mask-repeat: no-repeat;
14
14
  -webkit-mask-repeat: no-repeat;
15
- padding-right: calc(1.25rem + #{$mtvh-spacing-3});
15
+ margin-right: $mtvh-spacing-3;
16
+ padding-right: calc(0.76rem + #{$mtvh-spacing-3});
16
17
  margin-top: $mtvh-spacing-1;
17
18
  vertical-align: top;
18
19
  width: $icon-size-scale-sm;
@@ -61,7 +61,7 @@
61
61
  @import "bootstrap/scss/tooltip";
62
62
  @import "bootstrap/scss/popover";
63
63
  //@import "bootstrap/scss/carousel";
64
- //@import "bootstrap/scss/spinners";
64
+ @import "bootstrap/scss/spinners";
65
65
  @import "bootstrap/scss/offcanvas";
66
66
  @import "bootstrap/scss/placeholders";
67
67