@trilogy-ds/styles 4.15.2 → 4.16.1-beta-1

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.
@@ -68,8 +68,12 @@ $button-border-width: 2px !default;
68
68
  [aria-disabled=true] {
69
69
  pointer-events: none;
70
70
  }
71
- .icon{
72
- justify-content: start;
71
+ &:has(.icon) {
72
+ gap: $spacing-2;
73
+ }
74
+
75
+ .icon {
76
+ width: auto;
73
77
  }
74
78
 
75
79
  &.is-loading {
@@ -31,7 +31,8 @@
31
31
 
32
32
  .checkbox,
33
33
  .checkbox-tile {
34
- input:checked ~ label.checkbox-label {
34
+ input:checked ~ label.checkbox-label,
35
+ input:checked ~ .checkbox-container {
35
36
  &:before {
36
37
  background-color: getColor('main');
37
38
  }
@@ -44,7 +45,8 @@
44
45
  }
45
46
  }
46
47
 
47
- label.checkbox-label {
48
+ label.checkbox-label,
49
+ .checkbox-container {
48
50
  &:before,
49
51
  &:after {
50
52
  border-radius: var(--radius-small);
@@ -53,10 +55,11 @@
53
55
  }
54
56
 
55
57
  .checkbox-tile {
56
- input:checked ~ label.checkbox-label {
58
+ input:checked ~ label.checkbox-label,
59
+ input:checked ~ .checkbox-container {
57
60
  &:after {
58
- top: 16px;
59
- left: 16px;
61
+ top: 15px;
62
+ left: 15px;
60
63
  }
61
64
  }
62
65
  }
@@ -68,4 +71,3 @@
68
71
  }
69
72
  }
70
73
  }
71
-
@@ -2,6 +2,10 @@
2
2
  [disabled] {
3
3
  @include disabledRulesWithoutBG;
4
4
  }
5
+
6
+ &.is-small {
7
+ font-size: $size-6;
8
+ }
5
9
  }
6
10
 
7
11
  .link:not([disabled]) {
@@ -31,7 +31,8 @@
31
31
 
32
32
  .radio,
33
33
  .radio-tile {
34
- input:checked ~ label.radio-label {
34
+ input:checked ~ label.radio-label,
35
+ input:checked ~ .radio-container {
35
36
  cursor: default;
36
37
 
37
38
  &:after {
@@ -41,7 +42,8 @@
41
42
  }
42
43
  }
43
44
 
44
- label.radio-label {
45
+ label.radio-label,
46
+ .radio-container {
45
47
  &:before,
46
48
  &:after {
47
49
  border-radius: 9999px;
@@ -61,18 +63,23 @@
61
63
  @include hoverRules()
62
64
  }
63
65
  }
64
-
65
66
  }
66
67
 
67
68
  .radio-tile {
68
- input:checked ~ label.radio-label {
69
+ input:checked ~ label.radio-label,
70
+ input:checked ~ .radio-container {
69
71
  &:after {
70
72
  top: 18px;
71
73
  left: 18px;
72
74
  }
73
75
  }
74
- }
75
76
 
76
- .radio-tile[aria-checked="true"] {
77
- cursor: default;
77
+ input:checked:disabled ~ label.radio-label,
78
+ input:checked:disabled ~ .radio-container {
79
+ &:after {
80
+ background-color: getColor('neutral');
81
+ top: 19px;
82
+ left: 19px;
83
+ }
84
+ }
78
85
  }
@@ -1,99 +1,254 @@
1
1
  @use "sass:math";
2
- @import './stepper-legacy';
3
2
 
4
- .stepper-container {
5
- .stepper-items {
6
- display: flex;
7
- position: relative;
8
- justify-content: space-between;
9
- min-height: 44px;
10
- gap: $spacing-2;
11
- margin-top: $spacing-3;
3
+ .stepper-wrapper {
4
+ display: flex;
5
+ position: relative;
6
+ justify-content: space-between;
7
+ min-height: 44px;
8
+ gap: $spacing-4;
9
+
10
+ @include touch {
11
+ gap : $spacing-2;
12
12
  }
13
+ }
13
14
 
14
- .stepper-item {
15
- display: flex;
16
- flex-direction: column;
17
- width: 100%;
15
+ .stepper-item {
16
+ display: flex;
17
+ flex-direction: column;
18
+ width: 100%;
19
+
20
+ &:before {
21
+ content: "";
22
+ display: block;
23
+ height: 4px;
24
+ border-radius: var(--radius-small);
25
+ background-size: 200% !important;
26
+ background-color: getColor('neutral');
27
+ }
28
+
29
+ &.is-error {
18
30
 
19
31
  &:before {
20
- content: "";
21
- display: block;
22
- height: 4px;
23
- border-radius: var(--radius-small);
24
- background-size: 200% !important;
25
- background-color: getColor('neutral');
32
+ background-color: getColor('error') !important;
33
+
34
+ }
35
+ &.is-current{
36
+ &:before{
37
+ animation: progress 1s;
38
+ }
39
+
40
+ }
41
+
42
+ .step-bars {
43
+ background: getColor('error') !important;
26
44
  }
27
45
 
28
- &.is-error {
29
- &:before {
46
+ color: getColor('font');
47
+
48
+ .step-label {
49
+
50
+ &::before {
51
+ content: "";
52
+ mask-image: url('./assets/icons/all/times.svg') !important;
30
53
  background-color: getColor('error') !important;
54
+ border-width: 0;
55
+ mask-size: 20px;
56
+ width: 20px;
57
+ height: 20px;
58
+ align-self: baseline;
59
+ margin-top: 2px;
31
60
  }
32
61
 
33
- &.is-current {
34
- &:before {
35
- animation: progress 1s;
36
- }
62
+ .icon {
63
+ display: none;
37
64
  }
38
65
  }
66
+ }
39
67
 
40
- &.is-done {
41
- &:before {
42
- background-color: getColor('font');
43
- }
68
+ &.is-done {
69
+
70
+ &:before {
71
+ background-color: getColor('font');
44
72
  }
45
73
 
46
- &.is-current,
47
- &.is-active {
48
- &:before {
49
- background-color: getColor('main');
50
- animation: progress 1s;
74
+ .step-bars {
75
+ background: getColor('font');
76
+ transition: background-color 1s ease-in-out;
77
+ }
78
+
79
+ .step-label {
80
+ &::before {
81
+ content: "";
82
+ mask-image: url('./assets/icons/all/check-circle.svg');
83
+ background-color: getColor('success');
84
+ border-width: 0;
85
+ min-width: 20px;
86
+ mask-size: 20px;
87
+ height: 20px;
88
+ align-self: baseline;
89
+ margin-top: 2px;
51
90
  }
52
91
  }
53
92
  }
54
93
 
55
- .step-count {
56
- margin-bottom: $spacing-2 !important;
57
- }
94
+ &.is-current,
95
+ &.is-active {
58
96
 
59
- .step-label {
60
- transition: opacity 0.3s ease-in-out;
61
- animation: fadeInLabel 0.4s ease-out;
62
- }
97
+ &:before {
98
+ background-color: getColor('main');
99
+ animation: progress 1s;
100
+ }
63
101
 
64
- @keyframes fadeInLabel {
65
- 0% {
66
- opacity: 0;
102
+ .step-bars {
103
+ background: getColor('main');
67
104
  }
68
- 100% {
69
- opacity: 1;
105
+
106
+ .step-label {
107
+ font-style: normal;
108
+ font-weight: 600;
109
+ font-size: 20px;
110
+ line-height: 22px;
111
+ width: max-content;
112
+
113
+ .icon [class^=tri-], .icon [class*=" tri-"] {
114
+ height: 22px;
115
+ width: 22px;
116
+ margin: 0 4px 0 -4px;
117
+ }
118
+
119
+ @include tablet-only {
120
+ width: 90% !important;
121
+ }
122
+
123
+ @include mobile {
124
+ font-size: 18px;
125
+ width: 90%;
126
+ }
70
127
  }
71
128
  }
129
+ }
130
+
131
+ .step-bars {
132
+ height: 4px;
133
+ background: getColor('disabled');
134
+ border-radius: var(--radius-small);
135
+ display: none;
136
+ }
72
137
 
73
- @include mobile {
74
- .step-count {
75
- font-size: 12px !important;
76
- line-height: 18px !important;
138
+ .step-label {
139
+ display: flex;
140
+ align-items: center;
141
+ color: getColor('font');
142
+ font-style: normal;
143
+ font-weight: 400;
144
+ font-size: 16px;
145
+ line-height: 24px;
146
+ gap: $spacing-1;
147
+ .icon {
148
+ font-size: 20px;
149
+ height: auto;
150
+ }
151
+ }
152
+
153
+ .stepper-wrapper > .stepper-item > .step-label {
154
+ padding-top: $spacing-2;
155
+ @include touch {
156
+ position: absolute;
157
+ top: 10px;
158
+ left: 0;
77
159
  }
160
+ }
161
+
162
+ .stepper-container > .stepper-content > .step-label {
163
+ transition: opacity 0.3s ease-in-out;
164
+ animation: fadeInLabel 0.4s ease-out;
165
+ }
166
+
167
+ .stepper-content {
168
+ margin-bottom: $spacing-3 !important;
169
+ }
170
+
171
+ .stepper-steps {
172
+ margin-bottom: $spacing-2 !important;
173
+ }
174
+
175
+
176
+ @include desktop {
177
+ .step-count {
178
+ display: none;
179
+ }
180
+ }
181
+
182
+ @include mobile {
183
+ .step-count {
184
+ position: absolute;
185
+ top: 23px;
186
+ right: 8px;
187
+ font-size: 14px;
188
+ line-height: 18px;
189
+ font-weight: 600;
190
+ }
191
+
192
+ .stepper-item:not(.is-current) {
193
+ display: flex;
194
+
78
195
  .step-label {
79
- font-size: 14px !important;
80
- line-height: 18px !important;
196
+ display: none;
81
197
  }
198
+ }
82
199
 
83
- .stepper-wrapper .icon {
84
- font-size: 16px !important;
85
- }
200
+ .stepper-container > .stepper-steps {
201
+ font-size: 12px !important;
202
+ line-height: 18px !important;
86
203
  }
87
204
 
88
- @keyframes progress {
89
- 0%, 100% {
90
- background-image: linear-gradient(to right, transparent 0, transparent 50%, getColor('neutral') 50%, getColor('neutral') 100%);
91
- }
92
- 0% {
93
- background-position: 100% 0;
94
- }
95
- 100% {
96
- background-position: 0 0;
205
+ .stepper-container > .stepper-content > .step-label {
206
+ font-size: 14px !important;
207
+ line-height: 18px !important;
208
+ }
209
+
210
+ .stepper-container > .stepper-content > .icon {
211
+ font-size: 16px !important;
212
+ }
213
+ }
214
+
215
+ @include tablet-only {
216
+ .step-count {
217
+ position: absolute;
218
+ top: 24px;
219
+ right: 8px;
220
+ font-size: 14px;
221
+ line-height: 18px;
222
+ font-weight: 600;
223
+ }
224
+
225
+ .stepper-item:not(.is-current) {
226
+ display: flex;
227
+
228
+ .step-label {
229
+ display: none;
97
230
  }
98
231
  }
99
232
  }
233
+
234
+
235
+ @keyframes progress {
236
+ 0%, 100% {
237
+ background-image: linear-gradient(to right, transparent 0, transparent 50%, getColor('neutral') 50%, getColor('neutral') 100%);
238
+ }
239
+ 0% {
240
+ background-position: 100% 0;
241
+ }
242
+ 100% {
243
+ background-position: 0 0;
244
+ }
245
+ }
246
+
247
+ @keyframes fadeInLabel {
248
+ 0% {
249
+ opacity: 0;
250
+ }
251
+ 100% {
252
+ opacity: 1;
253
+ }
254
+ }