@trilogy-ds/styles 4.15.1 → 4.15.3
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/dist/default/trilogy-mangled.css +1 -1
- package/dist/default/trilogy-partials.css +1 -1
- package/dist/default/trilogy.css +1 -1
- package/framework/src/components/_checkbox.scss +2 -3
- package/framework/src/components/_radio.scss +7 -3
- package/framework/src/components/_stepper-legacy.scss +217 -0
- package/framework/src/components/_stepper.scss +142 -23
- package/framework/src/utilities/mixins/_mixins.scss +82 -121
- package/package.json +1 -1
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
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
|
+
}
|
|
13
|
+
|
|
14
|
+
.stepper-item {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
width: 100%;
|
|
18
|
+
|
|
19
|
+
&: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');
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.is-error {
|
|
29
|
+
|
|
30
|
+
&:before {
|
|
31
|
+
background-color: getColor('error') !important;
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.is-current {
|
|
36
|
+
&:before {
|
|
37
|
+
animation: progress 1s;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.step-bars {
|
|
43
|
+
background: getColor('error') !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
color: getColor('font');
|
|
47
|
+
|
|
48
|
+
.step-label {
|
|
49
|
+
|
|
50
|
+
&::before {
|
|
51
|
+
content: "";
|
|
52
|
+
mask-image: url('./assets/icons/all/times.svg') !important;
|
|
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;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.icon {
|
|
63
|
+
display: none;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.is-done {
|
|
69
|
+
|
|
70
|
+
&:before {
|
|
71
|
+
background-color: getColor('font');
|
|
72
|
+
}
|
|
73
|
+
|
|
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;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&.is-current,
|
|
95
|
+
&.is-active {
|
|
96
|
+
|
|
97
|
+
&:before {
|
|
98
|
+
background-color: getColor('main');
|
|
99
|
+
animation: progress 1s;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.step-bars {
|
|
103
|
+
background: getColor('main');
|
|
104
|
+
}
|
|
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
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.step-bars {
|
|
132
|
+
height: 4px;
|
|
133
|
+
background: getColor('disabled');
|
|
134
|
+
border-radius: var(--radius-small);
|
|
135
|
+
display: none;
|
|
136
|
+
}
|
|
137
|
+
|
|
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
|
+
padding-top: $spacing-2;
|
|
147
|
+
gap: $spacing-1;
|
|
148
|
+
|
|
149
|
+
.icon {
|
|
150
|
+
font-size: 20px;
|
|
151
|
+
height: auto;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@include touch {
|
|
155
|
+
position: absolute;
|
|
156
|
+
top: 10px;
|
|
157
|
+
left: 0;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@include desktop {
|
|
162
|
+
.step-count {
|
|
163
|
+
display: none;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@include mobile {
|
|
168
|
+
.step-count {
|
|
169
|
+
position: absolute;
|
|
170
|
+
top: 23px;
|
|
171
|
+
right: 8px;
|
|
172
|
+
font-size: 14px;
|
|
173
|
+
line-height: 18px;
|
|
174
|
+
font-weight: 600;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.stepper-item:not(.is-current) {
|
|
178
|
+
display: flex;
|
|
179
|
+
|
|
180
|
+
.step-label {
|
|
181
|
+
display: none;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
@include tablet-only {
|
|
187
|
+
.step-count {
|
|
188
|
+
position: absolute;
|
|
189
|
+
top: 24px;
|
|
190
|
+
right: 8px;
|
|
191
|
+
font-size: 14px;
|
|
192
|
+
line-height: 18px;
|
|
193
|
+
font-weight: 600;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.stepper-item:not(.is-current) {
|
|
197
|
+
display: flex;
|
|
198
|
+
|
|
199
|
+
.step-label {
|
|
200
|
+
display: none;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
@keyframes progress {
|
|
207
|
+
0%, 100% {
|
|
208
|
+
background-image: linear-gradient(to right, transparent 0, transparent 50%, getColor('neutral') 50%, getColor('neutral') 100%);
|
|
209
|
+
}
|
|
210
|
+
0% {
|
|
211
|
+
background-position: 100% 0;
|
|
212
|
+
}
|
|
213
|
+
100% {
|
|
214
|
+
background-position: 0 0;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
@use "sass:math";
|
|
2
2
|
|
|
3
|
-
.stepper-
|
|
3
|
+
.stepper-wrapper {
|
|
4
4
|
display: flex;
|
|
5
5
|
position: relative;
|
|
6
6
|
justify-content: space-between;
|
|
7
7
|
min-height: 44px;
|
|
8
|
-
gap: $spacing-
|
|
9
|
-
|
|
8
|
+
gap: $spacing-4;
|
|
9
|
+
|
|
10
|
+
@include touch {
|
|
11
|
+
gap : $spacing-2;
|
|
12
|
+
}
|
|
10
13
|
}
|
|
11
14
|
|
|
12
15
|
.stepper-item {
|
|
13
16
|
display: flex;
|
|
14
17
|
flex-direction: column;
|
|
15
18
|
width: 100%;
|
|
19
|
+
|
|
16
20
|
&:before {
|
|
17
21
|
content: "";
|
|
18
22
|
display: block;
|
|
@@ -23,65 +27,181 @@
|
|
|
23
27
|
}
|
|
24
28
|
|
|
25
29
|
&.is-error {
|
|
30
|
+
|
|
26
31
|
&:before {
|
|
27
32
|
background-color: getColor('error') !important;
|
|
28
|
-
}
|
|
29
33
|
|
|
34
|
+
}
|
|
30
35
|
&.is-current{
|
|
31
36
|
&:before{
|
|
32
37
|
animation: progress 1s;
|
|
33
38
|
}
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.step-bars {
|
|
43
|
+
background: getColor('error') !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
color: getColor('font');
|
|
47
|
+
|
|
48
|
+
.step-label {
|
|
49
|
+
|
|
50
|
+
&::before {
|
|
51
|
+
content: "";
|
|
52
|
+
mask-image: url('./assets/icons/all/times.svg') !important;
|
|
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;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.icon {
|
|
63
|
+
display: none;
|
|
64
|
+
}
|
|
34
65
|
}
|
|
35
66
|
}
|
|
36
67
|
|
|
37
68
|
&.is-done {
|
|
69
|
+
|
|
38
70
|
&:before {
|
|
39
71
|
background-color: getColor('font');
|
|
40
72
|
}
|
|
73
|
+
|
|
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;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
41
92
|
}
|
|
42
93
|
|
|
43
94
|
&.is-current,
|
|
44
95
|
&.is-active {
|
|
96
|
+
|
|
45
97
|
&:before {
|
|
46
98
|
background-color: getColor('main');
|
|
47
99
|
animation: progress 1s;
|
|
48
100
|
}
|
|
101
|
+
|
|
102
|
+
.step-bars {
|
|
103
|
+
background: getColor('main');
|
|
104
|
+
}
|
|
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
|
+
}
|
|
127
|
+
}
|
|
49
128
|
}
|
|
50
129
|
}
|
|
51
130
|
|
|
52
|
-
.step-
|
|
53
|
-
|
|
131
|
+
.step-bars {
|
|
132
|
+
height: 4px;
|
|
133
|
+
background: getColor('disabled');
|
|
134
|
+
border-radius: var(--radius-small);
|
|
135
|
+
display: none;
|
|
54
136
|
}
|
|
55
137
|
|
|
56
138
|
.step-label {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
+
padding-top: $spacing-2;
|
|
147
|
+
gap: $spacing-1;
|
|
148
|
+
.icon {
|
|
149
|
+
font-size: 20px;
|
|
150
|
+
height: auto;
|
|
151
|
+
}
|
|
60
152
|
|
|
61
|
-
@
|
|
62
|
-
|
|
63
|
-
|
|
153
|
+
@include touch {
|
|
154
|
+
position: absolute;
|
|
155
|
+
top: 10px;
|
|
156
|
+
left: 0;
|
|
64
157
|
}
|
|
65
|
-
|
|
66
|
-
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
@include desktop {
|
|
161
|
+
.step-count {
|
|
162
|
+
display: none;
|
|
67
163
|
}
|
|
68
164
|
}
|
|
69
165
|
|
|
70
|
-
@include mobile{
|
|
166
|
+
@include mobile {
|
|
71
167
|
.step-count {
|
|
72
|
-
|
|
73
|
-
|
|
168
|
+
position: absolute;
|
|
169
|
+
top: 23px;
|
|
170
|
+
right: 8px;
|
|
171
|
+
font-size: 14px;
|
|
172
|
+
line-height: 18px;
|
|
173
|
+
font-weight: 600;
|
|
74
174
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
175
|
+
|
|
176
|
+
.stepper-item:not(.is-current) {
|
|
177
|
+
display: flex;
|
|
178
|
+
|
|
179
|
+
.step-label {
|
|
180
|
+
display: none;
|
|
181
|
+
}
|
|
78
182
|
}
|
|
183
|
+
}
|
|
79
184
|
|
|
80
|
-
|
|
81
|
-
|
|
185
|
+
@include tablet-only {
|
|
186
|
+
.step-count {
|
|
187
|
+
position: absolute;
|
|
188
|
+
top: 24px;
|
|
189
|
+
right: 8px;
|
|
190
|
+
font-size: 14px;
|
|
191
|
+
line-height: 18px;
|
|
192
|
+
font-weight: 600;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.stepper-item:not(.is-current) {
|
|
196
|
+
display: flex;
|
|
197
|
+
|
|
198
|
+
.step-label {
|
|
199
|
+
display: none;
|
|
200
|
+
}
|
|
82
201
|
}
|
|
83
202
|
}
|
|
84
203
|
|
|
204
|
+
|
|
85
205
|
@keyframes progress {
|
|
86
206
|
0%, 100% {
|
|
87
207
|
background-image: linear-gradient(to right, transparent 0, transparent 50%, getColor('neutral') 50%, getColor('neutral') 100%);
|
|
@@ -94,4 +214,3 @@
|
|
|
94
214
|
}
|
|
95
215
|
}
|
|
96
216
|
|
|
97
|
-
|