@entur/form 8.2.5-beta.0 → 8.2.6
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/styles.css +495 -495
- package/package.json +6 -6
package/dist/styles.css
CHANGED
|
@@ -1,153 +1,5 @@
|
|
|
1
1
|
/* DO NOT CHANGE!*/
|
|
2
2
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
|
-
.eds-checkbox__container {
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
position: relative;
|
|
7
|
-
-webkit-appearance: none;
|
|
8
|
-
-moz-appearance: none;
|
|
9
|
-
appearance: none;
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
-webkit-user-select: none;
|
|
12
|
-
-moz-user-select: none;
|
|
13
|
-
user-select: none;
|
|
14
|
-
width: -moz-fit-content;
|
|
15
|
-
width: fit-content;
|
|
16
|
-
margin: 0.5rem 0;
|
|
17
|
-
}
|
|
18
|
-
.eds-checkbox__container--reduced-click-area {
|
|
19
|
-
height: -moz-fit-content;
|
|
20
|
-
height: fit-content;
|
|
21
|
-
}
|
|
22
|
-
.eds-checkbox__container input {
|
|
23
|
-
position: absolute;
|
|
24
|
-
opacity: 0;
|
|
25
|
-
height: 0;
|
|
26
|
-
width: 0;
|
|
27
|
-
}
|
|
28
|
-
.eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
|
|
29
|
-
background-color: var(--components-form-checkbox-standard-fill-selected);
|
|
30
|
-
}
|
|
31
|
-
.eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
|
|
32
|
-
visibility: visible;
|
|
33
|
-
}
|
|
34
|
-
.eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon path {
|
|
35
|
-
stroke: var(--components-form-checkbox-standard-icon);
|
|
36
|
-
animation: stroke ease-in-out 0.2s 0.1s forwards;
|
|
37
|
-
}
|
|
38
|
-
.eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon rect {
|
|
39
|
-
fill: var(--components-form-checkbox-standard-icon);
|
|
40
|
-
}
|
|
41
|
-
.eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
|
|
42
|
-
opacity: 0.5;
|
|
43
|
-
}
|
|
44
|
-
.eds-checkbox__container input:checked + .eds-checkbox__icon--disabled path {
|
|
45
|
-
opacity: 0.5;
|
|
46
|
-
}
|
|
47
|
-
.eds-checkbox__container input:checked + .eds-checkbox__icon--disabled rect {
|
|
48
|
-
opacity: 0.5;
|
|
49
|
-
}
|
|
50
|
-
.eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled path {
|
|
51
|
-
opacity: 0.5;
|
|
52
|
-
}
|
|
53
|
-
.eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled rect {
|
|
54
|
-
opacity: 0.5;
|
|
55
|
-
}
|
|
56
|
-
.eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
|
|
57
|
-
background-color: var(--components-form-checkbox-contrast-fill-selected);
|
|
58
|
-
}
|
|
59
|
-
.eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon path, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon path {
|
|
60
|
-
stroke: var(--components-form-checkbox-contrast-icon);
|
|
61
|
-
}
|
|
62
|
-
.eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon rect, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon rect {
|
|
63
|
-
fill: var(--components-form-checkbox-contrast-icon);
|
|
64
|
-
}
|
|
65
|
-
.eds-checkbox__container:hover input + .eds-checkbox__icon {
|
|
66
|
-
border-color: var(--components-form-checkbox-standard-border);
|
|
67
|
-
background-color: var(--components-form-checkbox-standard-fill-hover);
|
|
68
|
-
}
|
|
69
|
-
.eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
|
|
70
|
-
border-color: var(--components-form-checkbox-contrast-border);
|
|
71
|
-
background-color: var(--components-form-checkbox-contrast-fill-hover);
|
|
72
|
-
}
|
|
73
|
-
.eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
|
|
74
|
-
.eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
|
|
75
|
-
border-color: transparent;
|
|
76
|
-
background-color: var(--components-form-checkbox-standard-fill-selectedhover);
|
|
77
|
-
}
|
|
78
|
-
.eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
|
|
79
|
-
.eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
|
|
80
|
-
background-color: var(--components-form-checkbox-contrast-fill-selectedhover);
|
|
81
|
-
}
|
|
82
|
-
.eds-checkbox__container:active input:checked + .eds-checkbox__icon,
|
|
83
|
-
.eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
|
|
84
|
-
background-color: var(--components-form-checkbox-standard-fill-selected);
|
|
85
|
-
}
|
|
86
|
-
.eds-contrast .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
|
|
87
|
-
.eds-contrast .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
|
|
88
|
-
background-color: var(--components-form-checkbox-contrast-fill-selected);
|
|
89
|
-
}
|
|
90
|
-
.eds-checkbox__container:has(:focus-visible) .eds-checkbox__icon {
|
|
91
|
-
outline: 2px solid #181c56;
|
|
92
|
-
outline-color: var(--basecolors-stroke-focus-standard);
|
|
93
|
-
outline-offset: 0.125rem;
|
|
94
|
-
}
|
|
95
|
-
.eds-contrast .eds-checkbox__container:has(:focus-visible) .eds-checkbox__icon {
|
|
96
|
-
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
97
|
-
}
|
|
98
|
-
.eds-checkbox--disabled {
|
|
99
|
-
pointer-events: none;
|
|
100
|
-
}
|
|
101
|
-
.eds-checkbox--disabled .eds-checkbox__label {
|
|
102
|
-
opacity: 0.5;
|
|
103
|
-
}
|
|
104
|
-
.eds-checkbox--disabled .eds-checkbox__icon {
|
|
105
|
-
opacity: 0.5;
|
|
106
|
-
}
|
|
107
|
-
.eds-checkbox__icon {
|
|
108
|
-
box-sizing: border-box;
|
|
109
|
-
display: inline-flex;
|
|
110
|
-
justify-content: center;
|
|
111
|
-
align-items: center;
|
|
112
|
-
position: relative;
|
|
113
|
-
margin-right: 1rem;
|
|
114
|
-
height: 1.25rem;
|
|
115
|
-
width: 1.25rem;
|
|
116
|
-
border: 0.125rem solid var(--components-form-checkbox-standard-border);
|
|
117
|
-
border-radius: 0.125rem;
|
|
118
|
-
background-color: transparent;
|
|
119
|
-
transition: border-color 0.1s ease-in-out, background-color 0.1s ease-in-out;
|
|
120
|
-
}
|
|
121
|
-
.eds-checkbox__icon--reduced-click-area {
|
|
122
|
-
margin-right: 0;
|
|
123
|
-
}
|
|
124
|
-
.eds-contrast .eds-checkbox__icon {
|
|
125
|
-
border-color: var(--components-form-checkbox-contrast-border);
|
|
126
|
-
}
|
|
127
|
-
.eds-checkbox__icon .eds-checkbox-icon {
|
|
128
|
-
height: 1rem;
|
|
129
|
-
width: 1rem;
|
|
130
|
-
visibility: hidden;
|
|
131
|
-
}
|
|
132
|
-
.eds-checkbox__icon .eds-checkbox-icon path {
|
|
133
|
-
transform-origin: 50% 50%;
|
|
134
|
-
stroke-dasharray: 48;
|
|
135
|
-
stroke-dashoffset: 48;
|
|
136
|
-
stroke-width: 0.375rem;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
@keyframes stroke {
|
|
140
|
-
100% {
|
|
141
|
-
stroke-dashoffset: 0;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
.eds-fieldset {
|
|
145
|
-
margin: 0;
|
|
146
|
-
padding: 0;
|
|
147
|
-
border: 0;
|
|
148
|
-
}
|
|
149
|
-
/* DO NOT CHANGE!*/
|
|
150
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
151
3
|
.eds-form-control__field-and-feedback-text {
|
|
152
4
|
display: flex;
|
|
153
5
|
flex-direction: column;
|
|
@@ -158,7 +10,7 @@
|
|
|
158
10
|
.eds-form-control__field-and-feedback-text--has-tooltip {
|
|
159
11
|
padding-right: 2rem;
|
|
160
12
|
}
|
|
161
|
-
.eds-form-control__field-and-feedback-text:has(.eds-form-control-wrapper--disabled) {
|
|
13
|
+
.eds-form-control__field-and-feedback-text:has(.eds-form-control-wrapper--disabled):not(:has(.eds-form-control-wrapper--readonly)) {
|
|
162
14
|
cursor: not-allowed;
|
|
163
15
|
}
|
|
164
16
|
.eds-form-control-wrapper {
|
|
@@ -354,78 +206,98 @@
|
|
|
354
206
|
margin-right: 0;
|
|
355
207
|
margin-left: 0.75rem;
|
|
356
208
|
}
|
|
209
|
+
.eds-fieldset {
|
|
210
|
+
margin: 0;
|
|
211
|
+
padding: 0;
|
|
212
|
+
border: 0;
|
|
213
|
+
}
|
|
357
214
|
/* DO NOT CHANGE!*/
|
|
358
215
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
359
|
-
.eds-
|
|
216
|
+
.eds-input-group {
|
|
217
|
+
color: inherit;
|
|
218
|
+
display: block;
|
|
219
|
+
position: relative;
|
|
220
|
+
}
|
|
221
|
+
.eds-input-group__label {
|
|
222
|
+
color: var(--components-form-baseform-standard-text-label);
|
|
360
223
|
display: flex;
|
|
361
|
-
|
|
362
|
-
|
|
224
|
+
font-size: 1rem;
|
|
225
|
+
position: absolute;
|
|
226
|
+
line-height: 1rem;
|
|
227
|
+
height: 3rem;
|
|
228
|
+
padding-left: 0;
|
|
229
|
+
top: 1rem;
|
|
230
|
+
transition: top 0.2s ease-in-out, font-size 0.2s ease-in-out, padding 0.2s ease-in-out, line-height ease-in-out 0.2s;
|
|
231
|
+
-webkit-user-select: none;
|
|
232
|
+
-moz-user-select: none;
|
|
233
|
+
user-select: none;
|
|
234
|
+
pointer-events: none;
|
|
363
235
|
}
|
|
364
|
-
.eds-
|
|
365
|
-
|
|
236
|
+
.eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
237
|
+
top: 0.375rem;
|
|
238
|
+
font-size: 0.75rem;
|
|
239
|
+
line-height: 0.75rem;
|
|
240
|
+
height: 10px;
|
|
241
|
+
padding: 0;
|
|
366
242
|
}
|
|
367
|
-
.eds-
|
|
368
|
-
|
|
243
|
+
.eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
244
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
245
|
+
background: var(--textarea-label-background);
|
|
246
|
+
width: calc(100% - 1rem - 1rem - 4px);
|
|
369
247
|
}
|
|
370
|
-
.eds-
|
|
371
|
-
|
|
248
|
+
.eds-form-control-wrapper--is-filled.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
249
|
+
top: 0.5rem;
|
|
250
|
+
font-size: 0.875rem;
|
|
251
|
+
line-height: 1rem;
|
|
252
|
+
padding: 0;
|
|
372
253
|
}
|
|
373
|
-
|
|
374
|
-
.
|
|
254
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
255
|
+
top: 0.75rem;
|
|
375
256
|
font-size: 1.5rem;
|
|
376
|
-
|
|
377
|
-
min-width: 1.5rem;
|
|
378
|
-
padding-right: 0.5rem;
|
|
379
|
-
position: relative;
|
|
380
|
-
top: -0.1rem;
|
|
257
|
+
line-height: 2.25rem;
|
|
381
258
|
}
|
|
382
|
-
.eds-
|
|
383
|
-
|
|
259
|
+
.eds-input-group__label--filled {
|
|
260
|
+
top: 0.375rem;
|
|
261
|
+
font-size: 0.75rem;
|
|
262
|
+
line-height: 0.75rem;
|
|
263
|
+
height: 10px;
|
|
264
|
+
padding: 0;
|
|
384
265
|
}
|
|
385
|
-
.eds-
|
|
386
|
-
|
|
266
|
+
.eds-textarea__label .eds-input-group__label--filled {
|
|
267
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
268
|
+
background: var(--textarea-label-background);
|
|
269
|
+
width: calc(100% - 1rem - 1rem - 4px);
|
|
387
270
|
}
|
|
388
|
-
.eds-
|
|
389
|
-
|
|
271
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label--filled {
|
|
272
|
+
top: 0.5rem;
|
|
273
|
+
font-size: 0.875rem;
|
|
274
|
+
line-height: 1rem;
|
|
275
|
+
padding: 0;
|
|
390
276
|
}
|
|
391
|
-
|
|
392
|
-
|
|
277
|
+
|
|
278
|
+
.eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
279
|
+
top: 0.375rem;
|
|
280
|
+
font-size: 0.75rem;
|
|
281
|
+
line-height: 0.75rem;
|
|
282
|
+
height: 10px;
|
|
283
|
+
padding: 0;
|
|
393
284
|
}
|
|
394
|
-
.eds-
|
|
395
|
-
|
|
285
|
+
.eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
286
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
287
|
+
background: var(--textarea-label-background);
|
|
288
|
+
width: calc(100% - 1rem - 1rem - 4px);
|
|
396
289
|
}
|
|
397
|
-
.eds-
|
|
398
|
-
|
|
290
|
+
.eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
|
|
291
|
+
top: 0.5rem;
|
|
292
|
+
font-size: 0.875rem;
|
|
293
|
+
line-height: 1rem;
|
|
294
|
+
padding: 0;
|
|
399
295
|
}
|
|
400
|
-
.eds-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
}
|
|
406
|
-
.eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
|
|
407
|
-
color: var(--components-form-feedbacktext-information-standard-icon-fill);
|
|
408
|
-
}
|
|
409
|
-
.eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
|
|
410
|
-
fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
|
|
411
|
-
}
|
|
412
|
-
.eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
|
|
413
|
-
color: var(--components-form-feedbacktext-information-contrast-icon-fill);
|
|
414
|
-
}
|
|
415
|
-
.eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
|
|
416
|
-
fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
|
|
417
|
-
}
|
|
418
|
-
.eds-feedback-text__icon--warning {
|
|
419
|
-
color: var(--components-form-feedbacktext-warning-standard-icon-fill);
|
|
420
|
-
}
|
|
421
|
-
.eds-feedback-text__icon--warning .svg-exclamation {
|
|
422
|
-
fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
|
|
423
|
-
}
|
|
424
|
-
.eds-contrast .eds-feedback-text__icon--warning {
|
|
425
|
-
color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
|
|
426
|
-
}
|
|
427
|
-
.eds-contrast .eds-feedback-text__icon--warning circle {
|
|
428
|
-
fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
|
|
296
|
+
.eds-form-control-wrapper--disabled:focus-within .eds-input-group__label {
|
|
297
|
+
top: 1rem;
|
|
298
|
+
font-size: 1rem;
|
|
299
|
+
height: 3rem;
|
|
300
|
+
line-height: 1rem;
|
|
429
301
|
}
|
|
430
302
|
/* DO NOT CHANGE!*/
|
|
431
303
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -511,6 +383,388 @@
|
|
|
511
383
|
}
|
|
512
384
|
/* DO NOT CHANGE!*/
|
|
513
385
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
386
|
+
.eds-feedback-text {
|
|
387
|
+
display: flex;
|
|
388
|
+
align-items: center;
|
|
389
|
+
margin-top: 0.25rem;
|
|
390
|
+
}
|
|
391
|
+
.eds-feedback-text--info, .eds-feedback-text--information {
|
|
392
|
+
padding-left: calc(1rem + 0.125rem);
|
|
393
|
+
}
|
|
394
|
+
.eds-feedback-text__text {
|
|
395
|
+
color: var(--components-form-feedbacktext-information-standard-text);
|
|
396
|
+
}
|
|
397
|
+
.eds-contrast .eds-feedback-text__text {
|
|
398
|
+
color: var(--components-form-feedbacktext-information-contrast-text);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.eds-feedback-text__icon {
|
|
402
|
+
font-size: 1.5rem;
|
|
403
|
+
min-height: 1.5rem;
|
|
404
|
+
min-width: 1.5rem;
|
|
405
|
+
padding-right: 0.5rem;
|
|
406
|
+
position: relative;
|
|
407
|
+
top: -0.1rem;
|
|
408
|
+
}
|
|
409
|
+
.eds-feedback-text__icon--success {
|
|
410
|
+
color: var(--components-form-feedbacktext-success-standard-icon-fill);
|
|
411
|
+
}
|
|
412
|
+
.eds-feedback-text__icon--success circle {
|
|
413
|
+
fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
|
|
414
|
+
}
|
|
415
|
+
.eds-contrast .eds-feedback-text__icon--success {
|
|
416
|
+
color: var(--components-form-feedbacktext-success-contrast-icon-fill);
|
|
417
|
+
}
|
|
418
|
+
.eds-contrast .eds-feedback-text__icon--success circle {
|
|
419
|
+
fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
|
|
420
|
+
}
|
|
421
|
+
.eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
|
|
422
|
+
color: var(--components-form-feedbacktext-negative-standard-icon-fill);
|
|
423
|
+
}
|
|
424
|
+
.eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
|
|
425
|
+
fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
|
|
426
|
+
}
|
|
427
|
+
.eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
|
|
428
|
+
color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
|
|
429
|
+
}
|
|
430
|
+
.eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
|
|
431
|
+
fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
|
|
432
|
+
}
|
|
433
|
+
.eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
|
|
434
|
+
color: var(--components-form-feedbacktext-information-standard-icon-fill);
|
|
435
|
+
}
|
|
436
|
+
.eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
|
|
437
|
+
fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
|
|
438
|
+
}
|
|
439
|
+
.eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
|
|
440
|
+
color: var(--components-form-feedbacktext-information-contrast-icon-fill);
|
|
441
|
+
}
|
|
442
|
+
.eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
|
|
443
|
+
fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
|
|
444
|
+
}
|
|
445
|
+
.eds-feedback-text__icon--warning {
|
|
446
|
+
color: var(--components-form-feedbacktext-warning-standard-icon-fill);
|
|
447
|
+
}
|
|
448
|
+
.eds-feedback-text__icon--warning .svg-exclamation {
|
|
449
|
+
fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
|
|
450
|
+
}
|
|
451
|
+
.eds-contrast .eds-feedback-text__icon--warning {
|
|
452
|
+
color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
|
|
453
|
+
}
|
|
454
|
+
.eds-contrast .eds-feedback-text__icon--warning circle {
|
|
455
|
+
fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
|
|
456
|
+
}
|
|
457
|
+
/* DO NOT CHANGE!*/
|
|
458
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
459
|
+
.eds-checkbox__container {
|
|
460
|
+
display: flex;
|
|
461
|
+
align-items: center;
|
|
462
|
+
position: relative;
|
|
463
|
+
-webkit-appearance: none;
|
|
464
|
+
-moz-appearance: none;
|
|
465
|
+
appearance: none;
|
|
466
|
+
cursor: pointer;
|
|
467
|
+
-webkit-user-select: none;
|
|
468
|
+
-moz-user-select: none;
|
|
469
|
+
user-select: none;
|
|
470
|
+
width: -moz-fit-content;
|
|
471
|
+
width: fit-content;
|
|
472
|
+
margin: 0.5rem 0;
|
|
473
|
+
}
|
|
474
|
+
.eds-checkbox__container--reduced-click-area {
|
|
475
|
+
height: -moz-fit-content;
|
|
476
|
+
height: fit-content;
|
|
477
|
+
}
|
|
478
|
+
.eds-checkbox__container input {
|
|
479
|
+
position: absolute;
|
|
480
|
+
opacity: 0;
|
|
481
|
+
height: 0;
|
|
482
|
+
width: 0;
|
|
483
|
+
}
|
|
484
|
+
.eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
|
|
485
|
+
background-color: var(--components-form-checkbox-standard-fill-selected);
|
|
486
|
+
}
|
|
487
|
+
.eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
|
|
488
|
+
visibility: visible;
|
|
489
|
+
}
|
|
490
|
+
.eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon path {
|
|
491
|
+
stroke: var(--components-form-checkbox-standard-icon);
|
|
492
|
+
animation: stroke ease-in-out 0.2s 0.1s forwards;
|
|
493
|
+
}
|
|
494
|
+
.eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon rect {
|
|
495
|
+
fill: var(--components-form-checkbox-standard-icon);
|
|
496
|
+
}
|
|
497
|
+
.eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
|
|
498
|
+
opacity: 0.5;
|
|
499
|
+
}
|
|
500
|
+
.eds-checkbox__container input:checked + .eds-checkbox__icon--disabled path {
|
|
501
|
+
opacity: 0.5;
|
|
502
|
+
}
|
|
503
|
+
.eds-checkbox__container input:checked + .eds-checkbox__icon--disabled rect {
|
|
504
|
+
opacity: 0.5;
|
|
505
|
+
}
|
|
506
|
+
.eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled path {
|
|
507
|
+
opacity: 0.5;
|
|
508
|
+
}
|
|
509
|
+
.eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled rect {
|
|
510
|
+
opacity: 0.5;
|
|
511
|
+
}
|
|
512
|
+
.eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
|
|
513
|
+
background-color: var(--components-form-checkbox-contrast-fill-selected);
|
|
514
|
+
}
|
|
515
|
+
.eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon path, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon path {
|
|
516
|
+
stroke: var(--components-form-checkbox-contrast-icon);
|
|
517
|
+
}
|
|
518
|
+
.eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon rect, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon rect {
|
|
519
|
+
fill: var(--components-form-checkbox-contrast-icon);
|
|
520
|
+
}
|
|
521
|
+
.eds-checkbox__container:hover input + .eds-checkbox__icon {
|
|
522
|
+
border-color: var(--components-form-checkbox-standard-border);
|
|
523
|
+
background-color: var(--components-form-checkbox-standard-fill-hover);
|
|
524
|
+
}
|
|
525
|
+
.eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
|
|
526
|
+
border-color: var(--components-form-checkbox-contrast-border);
|
|
527
|
+
background-color: var(--components-form-checkbox-contrast-fill-hover);
|
|
528
|
+
}
|
|
529
|
+
.eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
|
|
530
|
+
.eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
|
|
531
|
+
border-color: transparent;
|
|
532
|
+
background-color: var(--components-form-checkbox-standard-fill-selectedhover);
|
|
533
|
+
}
|
|
534
|
+
.eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
|
|
535
|
+
.eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
|
|
536
|
+
background-color: var(--components-form-checkbox-contrast-fill-selectedhover);
|
|
537
|
+
}
|
|
538
|
+
.eds-checkbox__container:active input:checked + .eds-checkbox__icon,
|
|
539
|
+
.eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
|
|
540
|
+
background-color: var(--components-form-checkbox-standard-fill-selected);
|
|
541
|
+
}
|
|
542
|
+
.eds-contrast .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
|
|
543
|
+
.eds-contrast .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
|
|
544
|
+
background-color: var(--components-form-checkbox-contrast-fill-selected);
|
|
545
|
+
}
|
|
546
|
+
.eds-checkbox__container:has(:focus-visible) .eds-checkbox__icon {
|
|
547
|
+
outline: 2px solid #181c56;
|
|
548
|
+
outline-color: var(--basecolors-stroke-focus-standard);
|
|
549
|
+
outline-offset: 0.125rem;
|
|
550
|
+
}
|
|
551
|
+
.eds-contrast .eds-checkbox__container:has(:focus-visible) .eds-checkbox__icon {
|
|
552
|
+
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
553
|
+
}
|
|
554
|
+
.eds-checkbox--disabled {
|
|
555
|
+
pointer-events: none;
|
|
556
|
+
}
|
|
557
|
+
.eds-checkbox--disabled .eds-checkbox__label {
|
|
558
|
+
opacity: 0.5;
|
|
559
|
+
}
|
|
560
|
+
.eds-checkbox--disabled .eds-checkbox__icon {
|
|
561
|
+
opacity: 0.5;
|
|
562
|
+
}
|
|
563
|
+
.eds-checkbox__icon {
|
|
564
|
+
box-sizing: border-box;
|
|
565
|
+
display: inline-flex;
|
|
566
|
+
justify-content: center;
|
|
567
|
+
align-items: center;
|
|
568
|
+
position: relative;
|
|
569
|
+
margin-right: 1rem;
|
|
570
|
+
height: 1.25rem;
|
|
571
|
+
width: 1.25rem;
|
|
572
|
+
border: 0.125rem solid var(--components-form-checkbox-standard-border);
|
|
573
|
+
border-radius: 0.125rem;
|
|
574
|
+
background-color: transparent;
|
|
575
|
+
transition: border-color 0.1s ease-in-out, background-color 0.1s ease-in-out;
|
|
576
|
+
}
|
|
577
|
+
.eds-checkbox__icon--reduced-click-area {
|
|
578
|
+
margin-right: 0;
|
|
579
|
+
}
|
|
580
|
+
.eds-contrast .eds-checkbox__icon {
|
|
581
|
+
border-color: var(--components-form-checkbox-contrast-border);
|
|
582
|
+
}
|
|
583
|
+
.eds-checkbox__icon .eds-checkbox-icon {
|
|
584
|
+
height: 1rem;
|
|
585
|
+
width: 1rem;
|
|
586
|
+
visibility: hidden;
|
|
587
|
+
}
|
|
588
|
+
.eds-checkbox__icon .eds-checkbox-icon path {
|
|
589
|
+
transform-origin: 50% 50%;
|
|
590
|
+
stroke-dasharray: 48;
|
|
591
|
+
stroke-dashoffset: 48;
|
|
592
|
+
stroke-width: 0.375rem;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
@keyframes stroke {
|
|
596
|
+
100% {
|
|
597
|
+
stroke-dashoffset: 0;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
/* DO NOT CHANGE!*/
|
|
601
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
602
|
+
/* DO NOT CHANGE!*/
|
|
603
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
604
|
+
/* DO NOT CHANGE!*/
|
|
605
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
606
|
+
/* DO NOT CHANGE!*/
|
|
607
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
608
|
+
/* DO NOT CHANGE!*/
|
|
609
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
610
|
+
[data-color-mode=light],
|
|
611
|
+
:root {
|
|
612
|
+
--basecolors-frame-contrast: #181c56;
|
|
613
|
+
--basecolors-frame-contrastalt: #393d79;
|
|
614
|
+
--basecolors-frame-contrastalt-2: #292b6a;
|
|
615
|
+
--basecolors-frame-default: #ffffff;
|
|
616
|
+
--basecolors-frame-elevated: #ffffff;
|
|
617
|
+
--basecolors-frame-elevatedalt: #f6f6f9;
|
|
618
|
+
--basecolors-frame-subdued: #d9dae8;
|
|
619
|
+
--basecolors-frame-tint: #f6f6f9;
|
|
620
|
+
--basecolors-shape-accent: #181c56;
|
|
621
|
+
--basecolors-shape-bicycle-contrast: #00db9b;
|
|
622
|
+
--basecolors-shape-bicycle-default: #388f76;
|
|
623
|
+
--basecolors-shape-bus-contrast: #ff6392;
|
|
624
|
+
--basecolors-shape-bus-default: #c5044e;
|
|
625
|
+
--basecolors-shape-cableway-contrast: #b482fb;
|
|
626
|
+
--basecolors-shape-cableway-default: #78469a;
|
|
627
|
+
--basecolors-shape-disabled: #6e6f73;
|
|
628
|
+
--basecolors-shape-disabledalt: #b6b8ba;
|
|
629
|
+
--basecolors-shape-ferry-contrast: #6fdfff;
|
|
630
|
+
--basecolors-shape-ferry-default: #0c6693;
|
|
631
|
+
--basecolors-shape-funicular-contrast: #b482fb;
|
|
632
|
+
--basecolors-shape-funicular-default: #78469a;
|
|
633
|
+
--basecolors-shape-helicopter-contrast: #fbafea;
|
|
634
|
+
--basecolors-shape-helicopter-default: #800664;
|
|
635
|
+
--basecolors-shape-highlight: #ff5959;
|
|
636
|
+
--basecolors-shape-light: #ffffff;
|
|
637
|
+
--basecolors-shape-mask: #ffffff;
|
|
638
|
+
--basecolors-shape-maskalt: #ffffff;
|
|
639
|
+
--basecolors-shape-metro-contrast: #f08901;
|
|
640
|
+
--basecolors-shape-metro-default: #bf5826;
|
|
641
|
+
--basecolors-shape-mobility-contrast: #00db9b;
|
|
642
|
+
--basecolors-shape-mobility-default: #388f76;
|
|
643
|
+
--basecolors-shape-plane-contrast: #fbafea;
|
|
644
|
+
--basecolors-shape-plane-default: #800664;
|
|
645
|
+
--basecolors-shape-subdued: #626493;
|
|
646
|
+
--basecolors-shape-subduedalt: #d9dae8;
|
|
647
|
+
--basecolors-shape-taxi-contrast: #ffe082;
|
|
648
|
+
--basecolors-shape-taxi-default: #3d3e40;
|
|
649
|
+
--basecolors-shape-train-contrast: #42a5f5;
|
|
650
|
+
--basecolors-shape-train-default: #00367f;
|
|
651
|
+
--basecolors-shape-tram-contrast: #b482fb;
|
|
652
|
+
--basecolors-shape-tram-default: #78469a;
|
|
653
|
+
--basecolors-shape-walk-contrast: #8284ab;
|
|
654
|
+
--basecolors-shape-walk-default: #8d8e9c;
|
|
655
|
+
--basecolors-shape-airportlinkbus-contrast: #fbafea;
|
|
656
|
+
--basecolors-shape-airportlinkbus-default: #800664;
|
|
657
|
+
--basecolors-shape-airportlinkrail-contrast: #fbafea;
|
|
658
|
+
--basecolors-shape-airportlinkrail-default: #800664;
|
|
659
|
+
--basecolors-stroke-contrast: #aeb7e2;
|
|
660
|
+
--basecolors-stroke-default: #181c56;
|
|
661
|
+
--basecolors-stroke-disabled: #949699;
|
|
662
|
+
--basecolors-stroke-focus-contrast: #aeb7e2;
|
|
663
|
+
--basecolors-stroke-focus-standard: #181c56;
|
|
664
|
+
--basecolors-stroke-highlight: #ff5959;
|
|
665
|
+
--basecolors-stroke-light: #ffffff;
|
|
666
|
+
--basecolors-stroke-subdued: #8284ab;
|
|
667
|
+
--basecolors-stroke-subduedalt: #e3e6e8;
|
|
668
|
+
--basecolors-text-accent: #181c56;
|
|
669
|
+
--basecolors-text-disabled: #6e6f73;
|
|
670
|
+
--basecolors-text-disabledalt: #b6b8ba;
|
|
671
|
+
--basecolors-text-highlight: #ff5959;
|
|
672
|
+
--basecolors-text-light: #ffffff;
|
|
673
|
+
--basecolors-text-subdued: #626493;
|
|
674
|
+
--basecolors-text-subduedalt: #d9dae8;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
[data-color-mode=dark] {
|
|
678
|
+
--basecolors-frame-contrast: #212233;
|
|
679
|
+
--basecolors-frame-contrastalt: #141527;
|
|
680
|
+
--basecolors-frame-contrastalt-2: #08091c;
|
|
681
|
+
--basecolors-frame-default: #08091c;
|
|
682
|
+
--basecolors-frame-elevated: rgba(229, 229, 233, 0.1490196078);
|
|
683
|
+
--basecolors-frame-elevatedalt: #464755;
|
|
684
|
+
--basecolors-frame-subdued: #2d2e3e;
|
|
685
|
+
--basecolors-frame-tint: #141527;
|
|
686
|
+
--basecolors-shape-accent: #e5e5e9;
|
|
687
|
+
--basecolors-shape-bicycle-contrast: #4db295;
|
|
688
|
+
--basecolors-shape-bicycle-default: #4db295;
|
|
689
|
+
--basecolors-shape-bus-contrast: #ef7398;
|
|
690
|
+
--basecolors-shape-bus-default: #ef7398;
|
|
691
|
+
--basecolors-shape-cableway-contrast: #b898e5;
|
|
692
|
+
--basecolors-shape-cableway-default: #b898e5;
|
|
693
|
+
--basecolors-shape-disabled: #b6b8ba;
|
|
694
|
+
--basecolors-shape-disabledalt: #b3b4bd;
|
|
695
|
+
--basecolors-shape-ferry-contrast: #8ccfe2;
|
|
696
|
+
--basecolors-shape-ferry-default: #8ccfe2;
|
|
697
|
+
--basecolors-shape-funicular-contrast: #b898e5;
|
|
698
|
+
--basecolors-shape-funicular-default: #b898e5;
|
|
699
|
+
--basecolors-shape-helicopter-contrast: #f2b8e5;
|
|
700
|
+
--basecolors-shape-helicopter-default: #f2b8e5;
|
|
701
|
+
--basecolors-shape-highlight: #ff9494;
|
|
702
|
+
--basecolors-shape-light: #e5e5e9;
|
|
703
|
+
--basecolors-shape-mask: #2d2e3e;
|
|
704
|
+
--basecolors-shape-maskalt: #393a49;
|
|
705
|
+
--basecolors-shape-metro-contrast: #dd973c;
|
|
706
|
+
--basecolors-shape-metro-default: #dd973c;
|
|
707
|
+
--basecolors-shape-mobility-contrast: #4db295;
|
|
708
|
+
--basecolors-shape-mobility-default: #4db295;
|
|
709
|
+
--basecolors-shape-plane-contrast: #f2b8e5;
|
|
710
|
+
--basecolors-shape-plane-default: #f2b8e5;
|
|
711
|
+
--basecolors-shape-subdued: #b3b4bd;
|
|
712
|
+
--basecolors-shape-subduedalt: #b3b4bd;
|
|
713
|
+
--basecolors-shape-taxi-contrast: #ffe082;
|
|
714
|
+
--basecolors-shape-taxi-default: #ffe082;
|
|
715
|
+
--basecolors-shape-train-contrast: #60a2d7;
|
|
716
|
+
--basecolors-shape-train-default: #60a2d7;
|
|
717
|
+
--basecolors-shape-tram-contrast: #b898e5;
|
|
718
|
+
--basecolors-shape-tram-default: #b898e5;
|
|
719
|
+
--basecolors-shape-walk-contrast: #8d8e9c;
|
|
720
|
+
--basecolors-shape-walk-default: #8d8e9c;
|
|
721
|
+
--basecolors-shape-airportlinkbus-contrast: #f2b8e5;
|
|
722
|
+
--basecolors-shape-airportlinkbus-default: #f2b8e5;
|
|
723
|
+
--basecolors-shape-airportlinkrail-contrast: #f2b8e5;
|
|
724
|
+
--basecolors-shape-airportlinkrail-default: #f2b8e5;
|
|
725
|
+
--basecolors-stroke-contrast: #aeb7e2;
|
|
726
|
+
--basecolors-stroke-default: #b3b4bd;
|
|
727
|
+
--basecolors-stroke-disabled: #e3e6e8;
|
|
728
|
+
--basecolors-stroke-focus-contrast: #aeb7e2;
|
|
729
|
+
--basecolors-stroke-focus-standard: #aeb7e2;
|
|
730
|
+
--basecolors-stroke-highlight: #ff9494;
|
|
731
|
+
--basecolors-stroke-light: #b3b4bd;
|
|
732
|
+
--basecolors-stroke-subdued: #81828f;
|
|
733
|
+
--basecolors-stroke-subduedalt: #949699;
|
|
734
|
+
--basecolors-text-accent: #e5e5e9;
|
|
735
|
+
--basecolors-text-disabled: #b6b8ba;
|
|
736
|
+
--basecolors-text-disabledalt: #b6b8ba;
|
|
737
|
+
--basecolors-text-highlight: #ff9494;
|
|
738
|
+
--basecolors-text-light: #e5e5e9;
|
|
739
|
+
--basecolors-text-subdued: #b3b4bd;
|
|
740
|
+
--basecolors-text-subduedalt: #b3b4bd;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
.eds-textarea__wrapper :not(.eds-form-control-wrapper--disabled):not(.eds-form-control-wrapper--readonly) .eds-textarea__label .eds-input-group__label {
|
|
744
|
+
background: #ffffff;
|
|
745
|
+
background: var(--basecolors-frame-default);
|
|
746
|
+
width: -moz-fit-content;
|
|
747
|
+
width: fit-content;
|
|
748
|
+
height: -moz-fit-content;
|
|
749
|
+
height: fit-content;
|
|
750
|
+
padding: 0.15rem;
|
|
751
|
+
margin: -0.15rem;
|
|
752
|
+
}
|
|
753
|
+
*[data-color-mode=dark] .eds-contrast .eds-textarea__wrapper :not(.eds-form-control-wrapper--disabled):not(.eds-form-control-wrapper--readonly) .eds-textarea__label .eds-input-group__label {
|
|
754
|
+
background-color: #181c56;
|
|
755
|
+
background-color: var(--basecolors-frame-contrast);
|
|
756
|
+
}
|
|
757
|
+
.eds-textarea__wrapper textarea.eds-form-control.eds-textarea {
|
|
758
|
+
min-height: 7.75rem;
|
|
759
|
+
resize: vertical;
|
|
760
|
+
line-height: 1.5rem;
|
|
761
|
+
}
|
|
762
|
+
.eds-textarea__wrapper .eds-form-control-wrapper {
|
|
763
|
+
padding-right: 0;
|
|
764
|
+
cursor: text;
|
|
765
|
+
}
|
|
766
|
+
/* DO NOT CHANGE!*/
|
|
767
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
514
768
|
.eds-switch {
|
|
515
769
|
cursor: pointer;
|
|
516
770
|
-webkit-user-select: none;
|
|
@@ -593,128 +847,40 @@
|
|
|
593
847
|
:checked + .eds-switch__switch .eds-switch__circle path {
|
|
594
848
|
fill: var(--eds-switch-color);
|
|
595
849
|
}
|
|
596
|
-
.eds-contrast :checked + .eds-switch__switch {
|
|
597
|
-
background-color: var(--eds-switch-contrast-color);
|
|
598
|
-
}
|
|
599
|
-
:focus-visible + .eds-switch__switch {
|
|
600
|
-
outline: 2px solid #181c56;
|
|
601
|
-
outline-color: var(--basecolors-stroke-focus-standard);
|
|
602
|
-
outline-offset: 0.125rem;
|
|
603
|
-
}
|
|
604
|
-
.eds-contrast :focus-visible + .eds-switch__switch {
|
|
605
|
-
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
606
|
-
}
|
|
607
|
-
.eds-switch__switch--large {
|
|
608
|
-
width: 3.75rem;
|
|
609
|
-
height: 2rem;
|
|
610
|
-
border-radius: 3.75rem;
|
|
611
|
-
}
|
|
612
|
-
:checked + .eds-switch__switch--large .eds-switch__circle {
|
|
613
|
-
left: 1.875rem;
|
|
614
|
-
}
|
|
615
|
-
.eds-switch__switch--large svg {
|
|
616
|
-
position: relative;
|
|
617
|
-
right: 0.05rem;
|
|
618
|
-
}
|
|
619
|
-
.eds-switch__label--large--right {
|
|
620
|
-
font-size: 1rem;
|
|
621
|
-
}
|
|
622
|
-
.eds-switch__label--large--bottom {
|
|
623
|
-
font-size: 0.875rem;
|
|
624
|
-
}
|
|
625
|
-
.eds-switch__label--medium--right {
|
|
626
|
-
font-size: 0.875rem;
|
|
627
|
-
}
|
|
628
|
-
.eds-switch__label--medium--bottom {
|
|
629
|
-
font-size: 0.75rem;
|
|
630
|
-
}
|
|
631
|
-
/* DO NOT CHANGE!*/
|
|
632
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
633
|
-
.eds-input-group {
|
|
634
|
-
color: inherit;
|
|
635
|
-
display: block;
|
|
636
|
-
position: relative;
|
|
637
|
-
}
|
|
638
|
-
.eds-input-group__label {
|
|
639
|
-
color: var(--components-form-baseform-standard-text-label);
|
|
640
|
-
display: flex;
|
|
641
|
-
font-size: 1rem;
|
|
642
|
-
position: absolute;
|
|
643
|
-
line-height: 1rem;
|
|
644
|
-
height: 3rem;
|
|
645
|
-
padding-left: 0;
|
|
646
|
-
top: 1rem;
|
|
647
|
-
transition: top 0.2s ease-in-out, font-size 0.2s ease-in-out, padding 0.2s ease-in-out, line-height ease-in-out 0.2s;
|
|
648
|
-
-webkit-user-select: none;
|
|
649
|
-
-moz-user-select: none;
|
|
650
|
-
user-select: none;
|
|
651
|
-
pointer-events: none;
|
|
652
|
-
}
|
|
653
|
-
.eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
654
|
-
top: 0.375rem;
|
|
655
|
-
font-size: 0.75rem;
|
|
656
|
-
line-height: 0.75rem;
|
|
657
|
-
height: 10px;
|
|
658
|
-
padding: 0;
|
|
659
|
-
}
|
|
660
|
-
.eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
661
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
662
|
-
background: var(--textarea-label-background);
|
|
663
|
-
width: calc(100% - 1rem - 1rem - 4px);
|
|
850
|
+
.eds-contrast :checked + .eds-switch__switch {
|
|
851
|
+
background-color: var(--eds-switch-contrast-color);
|
|
664
852
|
}
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
padding: 0;
|
|
853
|
+
:focus-visible + .eds-switch__switch {
|
|
854
|
+
outline: 2px solid #181c56;
|
|
855
|
+
outline-color: var(--basecolors-stroke-focus-standard);
|
|
856
|
+
outline-offset: 0.125rem;
|
|
670
857
|
}
|
|
671
|
-
.eds-
|
|
672
|
-
|
|
673
|
-
font-size: 1.5rem;
|
|
674
|
-
line-height: 2.25rem;
|
|
858
|
+
.eds-contrast :focus-visible + .eds-switch__switch {
|
|
859
|
+
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
675
860
|
}
|
|
676
|
-
.eds-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
height: 10px;
|
|
681
|
-
padding: 0;
|
|
861
|
+
.eds-switch__switch--large {
|
|
862
|
+
width: 3.75rem;
|
|
863
|
+
height: 2rem;
|
|
864
|
+
border-radius: 3.75rem;
|
|
682
865
|
}
|
|
683
|
-
.eds-
|
|
684
|
-
|
|
685
|
-
background: var(--textarea-label-background);
|
|
686
|
-
width: calc(100% - 1rem - 1rem - 4px);
|
|
866
|
+
:checked + .eds-switch__switch--large .eds-switch__circle {
|
|
867
|
+
left: 1.875rem;
|
|
687
868
|
}
|
|
688
|
-
.eds-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
line-height: 1rem;
|
|
692
|
-
padding: 0;
|
|
869
|
+
.eds-switch__switch--large svg {
|
|
870
|
+
position: relative;
|
|
871
|
+
right: 0.05rem;
|
|
693
872
|
}
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
top: 0.375rem;
|
|
697
|
-
font-size: 0.75rem;
|
|
698
|
-
line-height: 0.75rem;
|
|
699
|
-
height: 10px;
|
|
700
|
-
padding: 0;
|
|
873
|
+
.eds-switch__label--large--right {
|
|
874
|
+
font-size: 1rem;
|
|
701
875
|
}
|
|
702
|
-
.eds-
|
|
703
|
-
|
|
704
|
-
background: var(--textarea-label-background);
|
|
705
|
-
width: calc(100% - 1rem - 1rem - 4px);
|
|
876
|
+
.eds-switch__label--large--bottom {
|
|
877
|
+
font-size: 0.875rem;
|
|
706
878
|
}
|
|
707
|
-
.eds-
|
|
708
|
-
top: 0.5rem;
|
|
879
|
+
.eds-switch__label--medium--right {
|
|
709
880
|
font-size: 0.875rem;
|
|
710
|
-
line-height: 1rem;
|
|
711
|
-
padding: 0;
|
|
712
881
|
}
|
|
713
|
-
.eds-
|
|
714
|
-
|
|
715
|
-
font-size: 1rem;
|
|
716
|
-
height: 3rem;
|
|
717
|
-
line-height: 1rem;
|
|
882
|
+
.eds-switch__label--medium--bottom {
|
|
883
|
+
font-size: 0.75rem;
|
|
718
884
|
}
|
|
719
885
|
/* DO NOT CHANGE!*/
|
|
720
886
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -866,172 +1032,6 @@ input:disabled + .eds-input-panel__container {
|
|
|
866
1032
|
}
|
|
867
1033
|
/* DO NOT CHANGE!*/
|
|
868
1034
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
869
|
-
/* DO NOT CHANGE!*/
|
|
870
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
871
|
-
/* DO NOT CHANGE!*/
|
|
872
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
873
|
-
/* DO NOT CHANGE!*/
|
|
874
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
875
|
-
/* DO NOT CHANGE!*/
|
|
876
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
877
|
-
[data-color-mode=light],
|
|
878
|
-
:root {
|
|
879
|
-
--basecolors-frame-contrast: #181c56;
|
|
880
|
-
--basecolors-frame-contrastalt: #393d79;
|
|
881
|
-
--basecolors-frame-contrastalt-2: #292b6a;
|
|
882
|
-
--basecolors-frame-default: #ffffff;
|
|
883
|
-
--basecolors-frame-elevated: #ffffff;
|
|
884
|
-
--basecolors-frame-elevatedalt: #f6f6f9;
|
|
885
|
-
--basecolors-frame-subdued: #d9dae8;
|
|
886
|
-
--basecolors-frame-tint: #f6f6f9;
|
|
887
|
-
--basecolors-shape-accent: #181c56;
|
|
888
|
-
--basecolors-shape-bicycle-contrast: #00db9b;
|
|
889
|
-
--basecolors-shape-bicycle-default: #388f76;
|
|
890
|
-
--basecolors-shape-bus-contrast: #ff6392;
|
|
891
|
-
--basecolors-shape-bus-default: #c5044e;
|
|
892
|
-
--basecolors-shape-cableway-contrast: #b482fb;
|
|
893
|
-
--basecolors-shape-cableway-default: #78469a;
|
|
894
|
-
--basecolors-shape-disabled: #6e6f73;
|
|
895
|
-
--basecolors-shape-disabledalt: #b6b8ba;
|
|
896
|
-
--basecolors-shape-ferry-contrast: #6fdfff;
|
|
897
|
-
--basecolors-shape-ferry-default: #0c6693;
|
|
898
|
-
--basecolors-shape-funicular-contrast: #b482fb;
|
|
899
|
-
--basecolors-shape-funicular-default: #78469a;
|
|
900
|
-
--basecolors-shape-helicopter-contrast: #fbafea;
|
|
901
|
-
--basecolors-shape-helicopter-default: #800664;
|
|
902
|
-
--basecolors-shape-highlight: #ff5959;
|
|
903
|
-
--basecolors-shape-light: #ffffff;
|
|
904
|
-
--basecolors-shape-mask: #ffffff;
|
|
905
|
-
--basecolors-shape-maskalt: #ffffff;
|
|
906
|
-
--basecolors-shape-metro-contrast: #f08901;
|
|
907
|
-
--basecolors-shape-metro-default: #bf5826;
|
|
908
|
-
--basecolors-shape-mobility-contrast: #00db9b;
|
|
909
|
-
--basecolors-shape-mobility-default: #388f76;
|
|
910
|
-
--basecolors-shape-plane-contrast: #fbafea;
|
|
911
|
-
--basecolors-shape-plane-default: #800664;
|
|
912
|
-
--basecolors-shape-subdued: #626493;
|
|
913
|
-
--basecolors-shape-subduedalt: #d9dae8;
|
|
914
|
-
--basecolors-shape-taxi-contrast: #ffe082;
|
|
915
|
-
--basecolors-shape-taxi-default: #3d3e40;
|
|
916
|
-
--basecolors-shape-train-contrast: #42a5f5;
|
|
917
|
-
--basecolors-shape-train-default: #00367f;
|
|
918
|
-
--basecolors-shape-tram-contrast: #b482fb;
|
|
919
|
-
--basecolors-shape-tram-default: #78469a;
|
|
920
|
-
--basecolors-shape-walk-contrast: #8284ab;
|
|
921
|
-
--basecolors-shape-walk-default: #8d8e9c;
|
|
922
|
-
--basecolors-shape-airportlinkbus-contrast: #fbafea;
|
|
923
|
-
--basecolors-shape-airportlinkbus-default: #800664;
|
|
924
|
-
--basecolors-shape-airportlinkrail-contrast: #fbafea;
|
|
925
|
-
--basecolors-shape-airportlinkrail-default: #800664;
|
|
926
|
-
--basecolors-stroke-contrast: #aeb7e2;
|
|
927
|
-
--basecolors-stroke-default: #181c56;
|
|
928
|
-
--basecolors-stroke-disabled: #949699;
|
|
929
|
-
--basecolors-stroke-focus-contrast: #aeb7e2;
|
|
930
|
-
--basecolors-stroke-focus-standard: #181c56;
|
|
931
|
-
--basecolors-stroke-highlight: #ff5959;
|
|
932
|
-
--basecolors-stroke-light: #ffffff;
|
|
933
|
-
--basecolors-stroke-subdued: #8284ab;
|
|
934
|
-
--basecolors-stroke-subduedalt: #e3e6e8;
|
|
935
|
-
--basecolors-text-accent: #181c56;
|
|
936
|
-
--basecolors-text-disabled: #6e6f73;
|
|
937
|
-
--basecolors-text-disabledalt: #b6b8ba;
|
|
938
|
-
--basecolors-text-highlight: #ff5959;
|
|
939
|
-
--basecolors-text-light: #ffffff;
|
|
940
|
-
--basecolors-text-subdued: #626493;
|
|
941
|
-
--basecolors-text-subduedalt: #d9dae8;
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
[data-color-mode=dark] {
|
|
945
|
-
--basecolors-frame-contrast: #212233;
|
|
946
|
-
--basecolors-frame-contrastalt: #141527;
|
|
947
|
-
--basecolors-frame-contrastalt-2: #08091c;
|
|
948
|
-
--basecolors-frame-default: #08091c;
|
|
949
|
-
--basecolors-frame-elevated: rgba(229, 229, 233, 0.1490196078);
|
|
950
|
-
--basecolors-frame-elevatedalt: #464755;
|
|
951
|
-
--basecolors-frame-subdued: #2d2e3e;
|
|
952
|
-
--basecolors-frame-tint: #141527;
|
|
953
|
-
--basecolors-shape-accent: #e5e5e9;
|
|
954
|
-
--basecolors-shape-bicycle-contrast: #4db295;
|
|
955
|
-
--basecolors-shape-bicycle-default: #4db295;
|
|
956
|
-
--basecolors-shape-bus-contrast: #ef7398;
|
|
957
|
-
--basecolors-shape-bus-default: #ef7398;
|
|
958
|
-
--basecolors-shape-cableway-contrast: #b898e5;
|
|
959
|
-
--basecolors-shape-cableway-default: #b898e5;
|
|
960
|
-
--basecolors-shape-disabled: #b6b8ba;
|
|
961
|
-
--basecolors-shape-disabledalt: #b3b4bd;
|
|
962
|
-
--basecolors-shape-ferry-contrast: #8ccfe2;
|
|
963
|
-
--basecolors-shape-ferry-default: #8ccfe2;
|
|
964
|
-
--basecolors-shape-funicular-contrast: #b898e5;
|
|
965
|
-
--basecolors-shape-funicular-default: #b898e5;
|
|
966
|
-
--basecolors-shape-helicopter-contrast: #f2b8e5;
|
|
967
|
-
--basecolors-shape-helicopter-default: #f2b8e5;
|
|
968
|
-
--basecolors-shape-highlight: #ff9494;
|
|
969
|
-
--basecolors-shape-light: #e5e5e9;
|
|
970
|
-
--basecolors-shape-mask: #2d2e3e;
|
|
971
|
-
--basecolors-shape-maskalt: #393a49;
|
|
972
|
-
--basecolors-shape-metro-contrast: #dd973c;
|
|
973
|
-
--basecolors-shape-metro-default: #dd973c;
|
|
974
|
-
--basecolors-shape-mobility-contrast: #4db295;
|
|
975
|
-
--basecolors-shape-mobility-default: #4db295;
|
|
976
|
-
--basecolors-shape-plane-contrast: #f2b8e5;
|
|
977
|
-
--basecolors-shape-plane-default: #f2b8e5;
|
|
978
|
-
--basecolors-shape-subdued: #b3b4bd;
|
|
979
|
-
--basecolors-shape-subduedalt: #b3b4bd;
|
|
980
|
-
--basecolors-shape-taxi-contrast: #ffe082;
|
|
981
|
-
--basecolors-shape-taxi-default: #ffe082;
|
|
982
|
-
--basecolors-shape-train-contrast: #60a2d7;
|
|
983
|
-
--basecolors-shape-train-default: #60a2d7;
|
|
984
|
-
--basecolors-shape-tram-contrast: #b898e5;
|
|
985
|
-
--basecolors-shape-tram-default: #b898e5;
|
|
986
|
-
--basecolors-shape-walk-contrast: #8d8e9c;
|
|
987
|
-
--basecolors-shape-walk-default: #8d8e9c;
|
|
988
|
-
--basecolors-shape-airportlinkbus-contrast: #f2b8e5;
|
|
989
|
-
--basecolors-shape-airportlinkbus-default: #f2b8e5;
|
|
990
|
-
--basecolors-shape-airportlinkrail-contrast: #f2b8e5;
|
|
991
|
-
--basecolors-shape-airportlinkrail-default: #f2b8e5;
|
|
992
|
-
--basecolors-stroke-contrast: #aeb7e2;
|
|
993
|
-
--basecolors-stroke-default: #b3b4bd;
|
|
994
|
-
--basecolors-stroke-disabled: #e3e6e8;
|
|
995
|
-
--basecolors-stroke-focus-contrast: #aeb7e2;
|
|
996
|
-
--basecolors-stroke-focus-standard: #aeb7e2;
|
|
997
|
-
--basecolors-stroke-highlight: #ff9494;
|
|
998
|
-
--basecolors-stroke-light: #b3b4bd;
|
|
999
|
-
--basecolors-stroke-subdued: #81828f;
|
|
1000
|
-
--basecolors-stroke-subduedalt: #949699;
|
|
1001
|
-
--basecolors-text-accent: #e5e5e9;
|
|
1002
|
-
--basecolors-text-disabled: #b6b8ba;
|
|
1003
|
-
--basecolors-text-disabledalt: #b6b8ba;
|
|
1004
|
-
--basecolors-text-highlight: #ff9494;
|
|
1005
|
-
--basecolors-text-light: #e5e5e9;
|
|
1006
|
-
--basecolors-text-subdued: #b3b4bd;
|
|
1007
|
-
--basecolors-text-subduedalt: #b3b4bd;
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
|
-
.eds-textarea__wrapper :not(.eds-form-control-wrapper--disabled):not(.eds-form-control-wrapper--readonly) .eds-textarea__label .eds-input-group__label {
|
|
1011
|
-
background: #ffffff;
|
|
1012
|
-
background: var(--basecolors-frame-default);
|
|
1013
|
-
width: -moz-fit-content;
|
|
1014
|
-
width: fit-content;
|
|
1015
|
-
height: -moz-fit-content;
|
|
1016
|
-
height: fit-content;
|
|
1017
|
-
padding: 0.15rem;
|
|
1018
|
-
margin: -0.15rem;
|
|
1019
|
-
}
|
|
1020
|
-
*[data-color-mode=dark] .eds-contrast .eds-textarea__wrapper :not(.eds-form-control-wrapper--disabled):not(.eds-form-control-wrapper--readonly) .eds-textarea__label .eds-input-group__label {
|
|
1021
|
-
background-color: #181c56;
|
|
1022
|
-
background-color: var(--basecolors-frame-contrast);
|
|
1023
|
-
}
|
|
1024
|
-
.eds-textarea__wrapper textarea.eds-form-control.eds-textarea {
|
|
1025
|
-
min-height: 7.75rem;
|
|
1026
|
-
resize: vertical;
|
|
1027
|
-
line-height: 1.5rem;
|
|
1028
|
-
}
|
|
1029
|
-
.eds-textarea__wrapper .eds-form-control-wrapper {
|
|
1030
|
-
padding-right: 0;
|
|
1031
|
-
cursor: text;
|
|
1032
|
-
}
|
|
1033
|
-
/* DO NOT CHANGE!*/
|
|
1034
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
1035
1035
|
.eds-textfield__clear-button {
|
|
1036
1036
|
background: none;
|
|
1037
1037
|
border: none;
|
|
@@ -1156,17 +1156,6 @@ input:disabled + .eds-input-panel__container {
|
|
|
1156
1156
|
}
|
|
1157
1157
|
/* DO NOT CHANGE!*/
|
|
1158
1158
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
1159
|
-
.eds-segmented-control {
|
|
1160
|
-
margin-top: 0.25rem;
|
|
1161
|
-
display: flex;
|
|
1162
|
-
background: var(--components-form-segmentedcontrol-standard-background);
|
|
1163
|
-
border-radius: 0.5rem;
|
|
1164
|
-
}
|
|
1165
|
-
.eds-contrast .eds-segmented-control {
|
|
1166
|
-
background: var(--components-form-segmentedcontrol-contrast-background);
|
|
1167
|
-
}
|
|
1168
|
-
/* DO NOT CHANGE!*/
|
|
1169
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
1170
1159
|
/* DO NOT CHANGE!*/
|
|
1171
1160
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
1172
1161
|
/* DO NOT CHANGE!*/
|
|
@@ -1716,3 +1705,14 @@ input:disabled + .eds-input-panel__container {
|
|
|
1716
1705
|
:root {
|
|
1717
1706
|
--eds-form: 1;
|
|
1718
1707
|
}
|
|
1708
|
+
/* DO NOT CHANGE!*/
|
|
1709
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
1710
|
+
.eds-segmented-control {
|
|
1711
|
+
margin-top: 0.25rem;
|
|
1712
|
+
display: flex;
|
|
1713
|
+
background: var(--components-form-segmentedcontrol-standard-background);
|
|
1714
|
+
border-radius: 0.5rem;
|
|
1715
|
+
}
|
|
1716
|
+
.eds-contrast .eds-segmented-control {
|
|
1717
|
+
background: var(--components-form-segmentedcontrol-contrast-background);
|
|
1718
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/form",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.6",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/form.esm.js",
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/button": "^3.3.
|
|
31
|
-
"@entur/icons": "^7.
|
|
30
|
+
"@entur/button": "^3.3.6",
|
|
31
|
+
"@entur/icons": "^7.10.0",
|
|
32
32
|
"@entur/tokens": "^3.19.0",
|
|
33
|
-
"@entur/tooltip": "^5.2.
|
|
34
|
-
"@entur/typography": "^1.9.
|
|
33
|
+
"@entur/tooltip": "^5.2.6",
|
|
34
|
+
"@entur/typography": "^1.9.6",
|
|
35
35
|
"@entur/utils": "^0.12.3",
|
|
36
36
|
"classnames": "^2.3.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"dts-cli": "2.0.5"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "2574ca4c0632d084e2c531ee43e4f066c32c4d89"
|
|
42
42
|
}
|