@entur/form 5.4.16 → 5.4.18
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/form.cjs.development.js +4 -4
- package/dist/form.cjs.development.js.map +1 -1
- package/dist/form.cjs.production.min.js +1 -1
- package/dist/form.cjs.production.min.js.map +1 -1
- package/dist/form.esm.js +4 -4
- package/dist/form.esm.js.map +1 -1
- package/dist/styles.css +391 -382
- package/package.json +7 -7
package/dist/styles.css
CHANGED
|
@@ -2,6 +2,186 @@
|
|
|
2
2
|
--eds-form: 1;
|
|
3
3
|
}/* DO NOT CHANGE!*/
|
|
4
4
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
5
|
+
.eds-feedback-text {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
margin-top: 0.25rem;
|
|
9
|
+
}
|
|
10
|
+
.eds-feedback-text--info {
|
|
11
|
+
padding-left: calc(1rem + 0.125rem);
|
|
12
|
+
}
|
|
13
|
+
.eds-feedback-text__text {
|
|
14
|
+
color: #181c56;
|
|
15
|
+
}
|
|
16
|
+
.eds-contrast .eds-feedback-text__text {
|
|
17
|
+
color: #ffffff;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.eds-feedback-text__icon {
|
|
21
|
+
font-size: 1.5rem;
|
|
22
|
+
min-height: 1.5rem;
|
|
23
|
+
min-width: 1.5rem;
|
|
24
|
+
padding-right: 0.5rem;
|
|
25
|
+
position: relative;
|
|
26
|
+
top: -0.1rem;
|
|
27
|
+
}
|
|
28
|
+
.eds-feedback-text__icon--success {
|
|
29
|
+
color: #1a8e60;
|
|
30
|
+
}
|
|
31
|
+
.eds-contrast .eds-feedback-text__icon--success {
|
|
32
|
+
color: #5ac39a;
|
|
33
|
+
}
|
|
34
|
+
.eds-feedback-text__icon--error {
|
|
35
|
+
color: #d31b1b;
|
|
36
|
+
}
|
|
37
|
+
.eds-contrast .eds-feedback-text__icon--error {
|
|
38
|
+
color: #ff9494;
|
|
39
|
+
}
|
|
40
|
+
.eds-feedback-text__icon--info {
|
|
41
|
+
color: #0082b9;
|
|
42
|
+
}
|
|
43
|
+
.eds-contrast .eds-feedback-text__icon--info {
|
|
44
|
+
color: #64b3e7;
|
|
45
|
+
}
|
|
46
|
+
.eds-feedback-text__icon--warning {
|
|
47
|
+
color: #ffca28;
|
|
48
|
+
}
|
|
49
|
+
.eds-feedback-text__icon--warning circle {
|
|
50
|
+
fill: #181c56;
|
|
51
|
+
}
|
|
52
|
+
.eds-contrast .eds-feedback-text__icon--warning {
|
|
53
|
+
color: #ffe082;
|
|
54
|
+
}/* DO NOT CHANGE!*/
|
|
55
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
56
|
+
.eds-checkbox__container {
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
position: relative;
|
|
60
|
+
-webkit-appearance: none;
|
|
61
|
+
-moz-appearance: none;
|
|
62
|
+
appearance: none;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
height: 2rem;
|
|
65
|
+
-webkit-user-select: none;
|
|
66
|
+
-moz-user-select: none;
|
|
67
|
+
user-select: none;
|
|
68
|
+
width: -moz-fit-content;
|
|
69
|
+
width: fit-content;
|
|
70
|
+
}
|
|
71
|
+
.eds-checkbox__container--reduced-click-area {
|
|
72
|
+
height: -moz-fit-content;
|
|
73
|
+
height: fit-content;
|
|
74
|
+
}
|
|
75
|
+
.eds-checkbox__container input {
|
|
76
|
+
position: absolute;
|
|
77
|
+
opacity: 0;
|
|
78
|
+
height: 0;
|
|
79
|
+
width: 0;
|
|
80
|
+
}
|
|
81
|
+
.eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
|
|
82
|
+
background-color: #181c56;
|
|
83
|
+
}
|
|
84
|
+
.eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
|
|
85
|
+
visibility: visible;
|
|
86
|
+
}
|
|
87
|
+
.eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon__path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon__path {
|
|
88
|
+
stroke: #ffffff;
|
|
89
|
+
animation: stroke ease-in-out 0.2s 0.1s forwards;
|
|
90
|
+
}
|
|
91
|
+
.eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
|
|
92
|
+
opacity: 0.5;
|
|
93
|
+
}
|
|
94
|
+
.eds-checkbox__container input:checked + .eds-checkbox__icon--disabled .eds-checkbox-icon__path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled .eds-checkbox-icon__path {
|
|
95
|
+
opacity: 0.5;
|
|
96
|
+
}
|
|
97
|
+
.eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
|
|
98
|
+
background: #54568c;
|
|
99
|
+
}
|
|
100
|
+
.eds-checkbox__container:hover input + .eds-checkbox__icon {
|
|
101
|
+
border-color: #54568c;
|
|
102
|
+
background: #f3f3f3;
|
|
103
|
+
}
|
|
104
|
+
.eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
|
|
105
|
+
border-color: #656782;
|
|
106
|
+
background: #292b6a;
|
|
107
|
+
}
|
|
108
|
+
.eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
|
|
109
|
+
.eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
|
|
110
|
+
border-color: #54568c;
|
|
111
|
+
background-color: #54568c;
|
|
112
|
+
}
|
|
113
|
+
.eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
|
|
114
|
+
.eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
|
|
115
|
+
background: #8285a8;
|
|
116
|
+
border-color: #8285a8;
|
|
117
|
+
}
|
|
118
|
+
.eds-checkbox__container:focus + .eds-checkbox__icon,
|
|
119
|
+
.eds-checkbox__container [focus-within] + .eds-checkbox__icon {
|
|
120
|
+
outline: none;
|
|
121
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
122
|
+
outline-offset: 0.125rem;
|
|
123
|
+
}
|
|
124
|
+
.eds-checkbox__container:focus + .eds-checkbox__icon,
|
|
125
|
+
.eds-checkbox__container :focus-within + .eds-checkbox__icon {
|
|
126
|
+
outline: none;
|
|
127
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
128
|
+
outline-offset: 0.125rem;
|
|
129
|
+
}
|
|
130
|
+
.eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
|
|
131
|
+
.eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
|
|
132
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
133
|
+
}
|
|
134
|
+
.eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
|
|
135
|
+
.eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
|
|
136
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
137
|
+
}
|
|
138
|
+
.eds-checkbox--disabled {
|
|
139
|
+
pointer-events: none;
|
|
140
|
+
}
|
|
141
|
+
.eds-checkbox--disabled .eds-checkbox__label {
|
|
142
|
+
opacity: 0.5;
|
|
143
|
+
}
|
|
144
|
+
.eds-checkbox--disabled .eds-checkbox__icon {
|
|
145
|
+
opacity: 0.5;
|
|
146
|
+
}
|
|
147
|
+
.eds-checkbox__icon {
|
|
148
|
+
display: inline-flex;
|
|
149
|
+
justify-content: center;
|
|
150
|
+
align-items: center;
|
|
151
|
+
position: relative;
|
|
152
|
+
margin-right: 1rem;
|
|
153
|
+
height: 1.25rem;
|
|
154
|
+
width: 1.25rem;
|
|
155
|
+
border: 0.125rem solid #181c56;
|
|
156
|
+
border-radius: 0.0625rem;
|
|
157
|
+
background-color: transparent;
|
|
158
|
+
color: #ffffff;
|
|
159
|
+
}
|
|
160
|
+
.eds-checkbox__icon--reduced-click-area {
|
|
161
|
+
margin-right: 0;
|
|
162
|
+
}
|
|
163
|
+
.eds-contrast .eds-checkbox__icon {
|
|
164
|
+
border-color: #54568c;
|
|
165
|
+
}
|
|
166
|
+
.eds-checkbox__icon .eds-checkbox-icon {
|
|
167
|
+
height: 1rem;
|
|
168
|
+
width: 1rem;
|
|
169
|
+
visibility: hidden;
|
|
170
|
+
}
|
|
171
|
+
.eds-checkbox__icon .eds-checkbox-icon__path {
|
|
172
|
+
transform-origin: 50% 50%;
|
|
173
|
+
stroke-dasharray: 48;
|
|
174
|
+
stroke-dashoffset: 48;
|
|
175
|
+
stroke-width: 0.375rem;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
@keyframes stroke {
|
|
179
|
+
100% {
|
|
180
|
+
stroke-dashoffset: 0;
|
|
181
|
+
}
|
|
182
|
+
}@charset "UTF-8";
|
|
183
|
+
/* DO NOT CHANGE!*/
|
|
184
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
5
185
|
.eds-form-control-wrapper {
|
|
6
186
|
--border-color: #181c56;
|
|
7
187
|
--border-color-hover: #aeb7e2;
|
|
@@ -80,7 +260,7 @@
|
|
|
80
260
|
background: #f8f8f8;
|
|
81
261
|
--textarea-label-background: $colors-greys-grey90;
|
|
82
262
|
}
|
|
83
|
-
.eds-contrast .eds-form-control-wrapper--readonly
|
|
263
|
+
.eds-contrast .eds-form-control-wrapper--readonly {
|
|
84
264
|
background: #292b6a;
|
|
85
265
|
--textarea-label-background: $colors-blues-blue10;
|
|
86
266
|
color: #ffffff;
|
|
@@ -253,55 +433,137 @@
|
|
|
253
433
|
margin: 0 0 0.5rem;
|
|
254
434
|
}/* DO NOT CHANGE!*/
|
|
255
435
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
256
|
-
.eds-
|
|
436
|
+
.eds-input-group {
|
|
437
|
+
color: inherit;
|
|
438
|
+
display: block;
|
|
439
|
+
position: relative;
|
|
440
|
+
}
|
|
441
|
+
.eds-input-group__label {
|
|
442
|
+
color: #656782;
|
|
257
443
|
display: flex;
|
|
258
|
-
|
|
259
|
-
|
|
444
|
+
font-size: 1rem;
|
|
445
|
+
position: absolute;
|
|
446
|
+
line-height: 1rem;
|
|
447
|
+
height: 3rem;
|
|
448
|
+
padding: 1rem;
|
|
449
|
+
padding-left: 0;
|
|
450
|
+
margin-left: 1rem;
|
|
451
|
+
top: -0.125rem;
|
|
452
|
+
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;
|
|
453
|
+
-webkit-user-select: none;
|
|
454
|
+
-moz-user-select: none;
|
|
455
|
+
user-select: none;
|
|
456
|
+
pointer-events: none;
|
|
260
457
|
}
|
|
261
|
-
.eds-
|
|
262
|
-
|
|
458
|
+
.eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
459
|
+
top: 0.375rem;
|
|
460
|
+
font-size: 0.75rem;
|
|
461
|
+
line-height: 0.75rem;
|
|
462
|
+
height: 10px;
|
|
463
|
+
padding: 0;
|
|
464
|
+
margin-left: 1rem;
|
|
263
465
|
}
|
|
264
|
-
.eds-
|
|
265
|
-
|
|
466
|
+
.eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
467
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
468
|
+
background: var(--textarea-label-background);
|
|
469
|
+
width: calc(
|
|
470
|
+
100% - 1rem - 1rem - 4px
|
|
471
|
+
);
|
|
266
472
|
}
|
|
267
|
-
.eds-
|
|
268
|
-
|
|
473
|
+
.eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
474
|
+
top: 0.5rem;
|
|
475
|
+
font-size: 0.875rem;
|
|
476
|
+
line-height: 1rem;
|
|
477
|
+
padding: 0;
|
|
478
|
+
margin-left: 1rem;
|
|
269
479
|
}
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
font-size: 1.5rem;
|
|
273
|
-
min-height: 1.5rem;
|
|
274
|
-
min-width: 1.5rem;
|
|
275
|
-
padding-right: 0.5rem;
|
|
276
|
-
position: relative;
|
|
277
|
-
top: -0.1rem;
|
|
480
|
+
.eds-contrast .eds-input-group__label {
|
|
481
|
+
color: #8285a8;
|
|
278
482
|
}
|
|
279
|
-
.eds-
|
|
280
|
-
color: #
|
|
483
|
+
.eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
|
|
484
|
+
color: #aeb7e2;
|
|
281
485
|
}
|
|
282
|
-
.eds-
|
|
283
|
-
|
|
486
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
487
|
+
font-size: 1.5rem;
|
|
488
|
+
line-height: 2.25rem;
|
|
489
|
+
height: 4rem;
|
|
284
490
|
}
|
|
285
|
-
.eds-
|
|
286
|
-
|
|
491
|
+
.eds-input-group__label--filled {
|
|
492
|
+
top: 0.375rem;
|
|
493
|
+
font-size: 0.75rem;
|
|
494
|
+
line-height: 0.75rem;
|
|
495
|
+
height: 10px;
|
|
496
|
+
padding: 0;
|
|
497
|
+
margin-left: 1rem;
|
|
287
498
|
}
|
|
288
|
-
.eds-
|
|
289
|
-
|
|
499
|
+
.eds-textarea__label .eds-input-group__label--filled {
|
|
500
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
501
|
+
background: var(--textarea-label-background);
|
|
502
|
+
width: calc(
|
|
503
|
+
100% - 1rem - 1rem - 4px
|
|
504
|
+
);
|
|
290
505
|
}
|
|
291
|
-
.eds-
|
|
506
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label--filled {
|
|
507
|
+
top: 0.5rem;
|
|
508
|
+
font-size: 0.875rem;
|
|
509
|
+
line-height: 1rem;
|
|
510
|
+
padding: 0;
|
|
511
|
+
margin-left: 1rem;
|
|
512
|
+
}
|
|
513
|
+
.eds-input-group__label-tooltip-icon {
|
|
292
514
|
color: #0082b9;
|
|
515
|
+
padding-left: 0.25rem;
|
|
516
|
+
padding-right: 0.25rem;
|
|
517
|
+
display: flex;
|
|
518
|
+
align-items: center;
|
|
519
|
+
cursor: help;
|
|
520
|
+
font-size: 1rem;
|
|
293
521
|
}
|
|
294
|
-
|
|
295
|
-
|
|
522
|
+
|
|
523
|
+
.eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
524
|
+
top: 0.375rem;
|
|
525
|
+
font-size: 0.75rem;
|
|
526
|
+
line-height: 0.75rem;
|
|
527
|
+
height: 10px;
|
|
528
|
+
padding: 0;
|
|
529
|
+
margin-left: 1rem;
|
|
296
530
|
}
|
|
297
|
-
|
|
298
|
-
|
|
531
|
+
|
|
532
|
+
.eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
533
|
+
top: 0.375rem;
|
|
534
|
+
font-size: 0.75rem;
|
|
535
|
+
line-height: 0.75rem;
|
|
536
|
+
height: 10px;
|
|
537
|
+
padding: 0;
|
|
538
|
+
margin-left: 1rem;
|
|
299
539
|
}
|
|
300
|
-
.eds-
|
|
301
|
-
|
|
540
|
+
.eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
541
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
542
|
+
background: var(--textarea-label-background);
|
|
543
|
+
width: calc(
|
|
544
|
+
100% - 1rem - 1rem - 4px
|
|
545
|
+
);
|
|
302
546
|
}
|
|
303
|
-
.eds-
|
|
304
|
-
|
|
547
|
+
.eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
548
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
549
|
+
background: var(--textarea-label-background);
|
|
550
|
+
width: calc(
|
|
551
|
+
100% - 1rem - 1rem - 4px
|
|
552
|
+
);
|
|
553
|
+
}
|
|
554
|
+
.eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
|
|
555
|
+
top: 0.5rem;
|
|
556
|
+
font-size: 0.875rem;
|
|
557
|
+
line-height: 1rem;
|
|
558
|
+
padding: 0;
|
|
559
|
+
margin-left: 1rem;
|
|
560
|
+
}
|
|
561
|
+
.eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
|
|
562
|
+
top: 0.5rem;
|
|
563
|
+
font-size: 0.875rem;
|
|
564
|
+
line-height: 1rem;
|
|
565
|
+
padding: 0;
|
|
566
|
+
margin-left: 1rem;
|
|
305
567
|
}/* DO NOT CHANGE!*/
|
|
306
568
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
307
569
|
.eds-form-component--radio__container {
|
|
@@ -391,132 +653,120 @@
|
|
|
391
653
|
background-color: #aeb7e2;
|
|
392
654
|
}/* DO NOT CHANGE!*/
|
|
393
655
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
394
|
-
.eds-
|
|
395
|
-
display: flex;
|
|
396
|
-
align-items: center;
|
|
397
|
-
position: relative;
|
|
398
|
-
-webkit-appearance: none;
|
|
399
|
-
-moz-appearance: none;
|
|
400
|
-
appearance: none;
|
|
656
|
+
.eds-switch {
|
|
401
657
|
cursor: pointer;
|
|
402
|
-
height: 2rem;
|
|
403
658
|
-webkit-user-select: none;
|
|
404
659
|
-moz-user-select: none;
|
|
405
660
|
user-select: none;
|
|
661
|
+
padding: 0.5rem 0;
|
|
406
662
|
width: -moz-fit-content;
|
|
407
663
|
width: fit-content;
|
|
408
664
|
}
|
|
409
|
-
.eds-
|
|
410
|
-
height: -moz-fit-content;
|
|
411
|
-
height: fit-content;
|
|
412
|
-
}
|
|
413
|
-
.eds-checkbox__container input {
|
|
414
|
-
position: absolute;
|
|
665
|
+
.eds-switch input {
|
|
415
666
|
opacity: 0;
|
|
416
|
-
|
|
417
|
-
|
|
667
|
+
pointer-events: none;
|
|
668
|
+
position: absolute;
|
|
418
669
|
}
|
|
419
|
-
.eds-
|
|
420
|
-
|
|
670
|
+
.eds-switch--right {
|
|
671
|
+
display: flex;
|
|
672
|
+
flex-direction: row;
|
|
673
|
+
align-items: center;
|
|
421
674
|
}
|
|
422
|
-
.eds-
|
|
423
|
-
|
|
675
|
+
.eds-switch--bottom {
|
|
676
|
+
display: flex;
|
|
677
|
+
flex-direction: column;
|
|
678
|
+
align-items: center;
|
|
424
679
|
}
|
|
425
|
-
.eds-
|
|
426
|
-
|
|
427
|
-
|
|
680
|
+
.eds-switch__circle {
|
|
681
|
+
border-radius: 50%;
|
|
682
|
+
height: 1.25rem;
|
|
683
|
+
width: 1.25rem;
|
|
684
|
+
content: "";
|
|
685
|
+
display: flex;
|
|
686
|
+
align-items: center;
|
|
687
|
+
justify-content: center;
|
|
688
|
+
transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
|
|
689
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
690
|
+
background-color: #ffffff;
|
|
691
|
+
top: 0.125rem;
|
|
692
|
+
left: 0.125rem;
|
|
693
|
+
position: relative;
|
|
428
694
|
}
|
|
429
|
-
.eds-
|
|
430
|
-
|
|
695
|
+
.eds-switch__switch--large .eds-switch__circle {
|
|
696
|
+
height: 1.75rem;
|
|
697
|
+
width: 1.75rem;
|
|
431
698
|
}
|
|
432
|
-
.eds-
|
|
433
|
-
|
|
699
|
+
.eds-switch .eds-switch__switch svg g,
|
|
700
|
+
.eds-switch .eds-switch__switch path {
|
|
701
|
+
fill: #949494;
|
|
702
|
+
transition: fill ease-in-out 0.1s;
|
|
434
703
|
}
|
|
435
|
-
.eds-
|
|
436
|
-
|
|
704
|
+
.eds-switch__switch {
|
|
705
|
+
position: relative;
|
|
706
|
+
background-color: #d1d3d3;
|
|
707
|
+
content: "";
|
|
708
|
+
display: block;
|
|
709
|
+
transition: background-color 0.1s ease-in-out;
|
|
710
|
+
height: 1.5rem;
|
|
711
|
+
width: 3rem;
|
|
712
|
+
border-radius: 1.5rem;
|
|
437
713
|
}
|
|
438
|
-
.eds-
|
|
439
|
-
|
|
440
|
-
background: #f3f3f3;
|
|
714
|
+
.eds-switch--right .eds-switch__switch {
|
|
715
|
+
margin-right: 0.75rem;
|
|
441
716
|
}
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
background: #292b6a;
|
|
717
|
+
:checked + .eds-switch__switch {
|
|
718
|
+
background-color: var(--eds-switch-color);
|
|
445
719
|
}
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
border-color: #54568c;
|
|
449
|
-
background-color: #54568c;
|
|
720
|
+
:checked + .eds-switch__switch .eds-switch__circle {
|
|
721
|
+
left: 1.625rem;
|
|
450
722
|
}
|
|
451
|
-
.eds-
|
|
452
|
-
.eds-
|
|
453
|
-
|
|
454
|
-
border-color: #8285a8;
|
|
723
|
+
:checked + .eds-switch__switch .eds-switch__circle svg g,
|
|
724
|
+
:checked + .eds-switch__switch .eds-switch__circle path {
|
|
725
|
+
fill: var(--eds-switch-color);
|
|
455
726
|
}
|
|
456
|
-
.eds-
|
|
457
|
-
.eds-
|
|
458
|
-
|
|
459
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
460
|
-
outline-offset: 0.125rem;
|
|
727
|
+
.eds-contrast :checked + .eds-switch__switch .eds-switch__circle svg g,
|
|
728
|
+
.eds-contrast :checked + .eds-switch__switch .eds-switch__circle path {
|
|
729
|
+
fill: var(--eds-switch-color);
|
|
461
730
|
}
|
|
462
|
-
.eds-
|
|
463
|
-
|
|
731
|
+
.eds-contrast :checked + .eds-switch__switch {
|
|
732
|
+
background-color: var(--eds-switch-contrast-color);
|
|
733
|
+
}
|
|
734
|
+
:focus + .eds-switch__switch {
|
|
464
735
|
outline: none;
|
|
465
736
|
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
466
737
|
outline-offset: 0.125rem;
|
|
467
738
|
}
|
|
468
|
-
.eds-contrast
|
|
469
|
-
.eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
|
|
470
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
471
|
-
}
|
|
472
|
-
.eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
|
|
473
|
-
.eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
|
|
739
|
+
.eds-contrast :focus + .eds-switch__switch {
|
|
474
740
|
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
475
741
|
}
|
|
476
|
-
.eds-
|
|
477
|
-
|
|
478
|
-
}
|
|
479
|
-
.eds-checkbox--disabled .eds-checkbox__label {
|
|
480
|
-
opacity: 0.5;
|
|
481
|
-
}
|
|
482
|
-
.eds-checkbox--disabled .eds-checkbox__icon {
|
|
483
|
-
opacity: 0.5;
|
|
742
|
+
.eds-contrast .eds-switch__switch {
|
|
743
|
+
background-color: #54568c;
|
|
484
744
|
}
|
|
485
|
-
.eds-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
position: relative;
|
|
490
|
-
margin-right: 1rem;
|
|
491
|
-
height: 1.25rem;
|
|
492
|
-
width: 1.25rem;
|
|
493
|
-
border: 0.125rem solid #181c56;
|
|
494
|
-
border-radius: 0.0625rem;
|
|
495
|
-
background-color: transparent;
|
|
496
|
-
color: #ffffff;
|
|
745
|
+
.eds-switch__switch--large {
|
|
746
|
+
width: 3.75rem;
|
|
747
|
+
height: 2rem;
|
|
748
|
+
border-radius: 3.75rem;
|
|
497
749
|
}
|
|
498
|
-
.eds-
|
|
499
|
-
|
|
750
|
+
:checked + .eds-switch__switch--large .eds-switch__circle {
|
|
751
|
+
left: 1.875rem;
|
|
500
752
|
}
|
|
501
|
-
.eds-
|
|
502
|
-
|
|
753
|
+
.eds-switch__label--large--right {
|
|
754
|
+
font-size: 1rem;
|
|
503
755
|
}
|
|
504
|
-
.eds-
|
|
505
|
-
|
|
506
|
-
width: 1rem;
|
|
507
|
-
visibility: hidden;
|
|
756
|
+
.eds-switch__label--large--bottom {
|
|
757
|
+
font-size: 0.875rem;
|
|
508
758
|
}
|
|
509
|
-
.eds-
|
|
510
|
-
|
|
511
|
-
stroke-dasharray: 48;
|
|
512
|
-
stroke-dashoffset: 48;
|
|
513
|
-
stroke-width: 0.375rem;
|
|
759
|
+
.eds-switch__label--medium--right {
|
|
760
|
+
font-size: 0.875rem;
|
|
514
761
|
}
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
762
|
+
.eds-switch__label--medium--bottom {
|
|
763
|
+
font-size: 0.75rem;
|
|
764
|
+
}/* DO NOT CHANGE!*/
|
|
765
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
766
|
+
textarea.eds-form-control.eds-textarea {
|
|
767
|
+
min-height: 7.75rem;
|
|
768
|
+
resize: vertical;
|
|
769
|
+
line-height: 1.5rem;
|
|
520
770
|
}/* DO NOT CHANGE!*/
|
|
521
771
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
522
772
|
.eds-radio-panel__wrapper[focus-within] .eds-radio-panel__container {
|
|
@@ -658,137 +908,6 @@
|
|
|
658
908
|
stroke-width: 0.375rem;
|
|
659
909
|
}/* DO NOT CHANGE!*/
|
|
660
910
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
661
|
-
.eds-input-group {
|
|
662
|
-
color: inherit;
|
|
663
|
-
display: block;
|
|
664
|
-
position: relative;
|
|
665
|
-
}
|
|
666
|
-
.eds-input-group__label {
|
|
667
|
-
color: #656782;
|
|
668
|
-
display: flex;
|
|
669
|
-
font-size: 1rem;
|
|
670
|
-
position: absolute;
|
|
671
|
-
line-height: 1rem;
|
|
672
|
-
height: 3rem;
|
|
673
|
-
padding: 1rem;
|
|
674
|
-
padding-left: 0;
|
|
675
|
-
margin-left: 1rem;
|
|
676
|
-
top: -0.125rem;
|
|
677
|
-
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;
|
|
678
|
-
-webkit-user-select: none;
|
|
679
|
-
-moz-user-select: none;
|
|
680
|
-
user-select: none;
|
|
681
|
-
pointer-events: none;
|
|
682
|
-
}
|
|
683
|
-
.eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
684
|
-
top: calc(0.5rem - 0.125rem);
|
|
685
|
-
font-size: 0.75rem;
|
|
686
|
-
line-height: 0.75rem;
|
|
687
|
-
height: 10px;
|
|
688
|
-
padding: 0;
|
|
689
|
-
margin-left: 1rem;
|
|
690
|
-
}
|
|
691
|
-
.eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
692
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
693
|
-
background: var(--textarea-label-background);
|
|
694
|
-
width: calc( 100% - 1rem - 1rem - 4px );
|
|
695
|
-
}
|
|
696
|
-
.eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
697
|
-
top: 0.5rem;
|
|
698
|
-
font-size: 0.875rem;
|
|
699
|
-
line-height: 1rem;
|
|
700
|
-
padding: 0;
|
|
701
|
-
margin-left: 1rem;
|
|
702
|
-
}
|
|
703
|
-
.eds-contrast .eds-input-group__label {
|
|
704
|
-
color: #8285a8;
|
|
705
|
-
}
|
|
706
|
-
.eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
|
|
707
|
-
color: #aeb7e2;
|
|
708
|
-
}
|
|
709
|
-
.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
710
|
-
font-size: 1.5rem;
|
|
711
|
-
line-height: 2.25rem;
|
|
712
|
-
height: 4rem;
|
|
713
|
-
}
|
|
714
|
-
.eds-input-group__label--filled {
|
|
715
|
-
top: calc(0.5rem - 0.125rem);
|
|
716
|
-
font-size: 0.75rem;
|
|
717
|
-
line-height: 0.75rem;
|
|
718
|
-
height: 10px;
|
|
719
|
-
padding: 0;
|
|
720
|
-
margin-left: 1rem;
|
|
721
|
-
}
|
|
722
|
-
.eds-textarea__label .eds-input-group__label--filled {
|
|
723
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
724
|
-
background: var(--textarea-label-background);
|
|
725
|
-
width: calc( 100% - 1rem - 1rem - 4px );
|
|
726
|
-
}
|
|
727
|
-
.eds-form-control-wrapper--size-large .eds-input-group__label--filled {
|
|
728
|
-
top: 0.5rem;
|
|
729
|
-
font-size: 0.875rem;
|
|
730
|
-
line-height: 1rem;
|
|
731
|
-
padding: 0;
|
|
732
|
-
margin-left: 1rem;
|
|
733
|
-
}
|
|
734
|
-
.eds-input-group__label-tooltip-icon {
|
|
735
|
-
color: #0082b9;
|
|
736
|
-
padding-left: 0.25rem;
|
|
737
|
-
padding-right: 0.25rem;
|
|
738
|
-
display: flex;
|
|
739
|
-
align-items: center;
|
|
740
|
-
cursor: help;
|
|
741
|
-
font-size: 1rem;
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
.eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
745
|
-
top: calc(0.5rem - 0.125rem);
|
|
746
|
-
font-size: 0.75rem;
|
|
747
|
-
line-height: 0.75rem;
|
|
748
|
-
height: 10px;
|
|
749
|
-
padding: 0;
|
|
750
|
-
margin-left: 1rem;
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
.eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
754
|
-
top: calc(0.5rem - 0.125rem);
|
|
755
|
-
font-size: 0.75rem;
|
|
756
|
-
line-height: 0.75rem;
|
|
757
|
-
height: 10px;
|
|
758
|
-
padding: 0;
|
|
759
|
-
margin-left: 1rem;
|
|
760
|
-
}
|
|
761
|
-
.eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
762
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
763
|
-
background: var(--textarea-label-background);
|
|
764
|
-
width: calc( 100% - 1rem - 1rem - 4px );
|
|
765
|
-
}
|
|
766
|
-
.eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
767
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
768
|
-
background: var(--textarea-label-background);
|
|
769
|
-
width: calc( 100% - 1rem - 1rem - 4px );
|
|
770
|
-
}
|
|
771
|
-
.eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
|
|
772
|
-
top: 0.5rem;
|
|
773
|
-
font-size: 0.875rem;
|
|
774
|
-
line-height: 1rem;
|
|
775
|
-
padding: 0;
|
|
776
|
-
margin-left: 1rem;
|
|
777
|
-
}
|
|
778
|
-
.eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
|
|
779
|
-
top: 0.5rem;
|
|
780
|
-
font-size: 0.875rem;
|
|
781
|
-
line-height: 1rem;
|
|
782
|
-
padding: 0;
|
|
783
|
-
margin-left: 1rem;
|
|
784
|
-
}/* DO NOT CHANGE!*/
|
|
785
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
786
|
-
textarea.eds-form-control.eds-textarea {
|
|
787
|
-
min-height: 7.75rem;
|
|
788
|
-
resize: vertical;
|
|
789
|
-
line-height: 1.5rem;
|
|
790
|
-
}/* DO NOT CHANGE!*/
|
|
791
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
792
911
|
.eds-textfield__clear-button {
|
|
793
912
|
background: none;
|
|
794
913
|
border: none;
|
|
@@ -825,126 +944,6 @@ textarea.eds-form-control.eds-textarea {
|
|
|
825
944
|
background-color: #8285a8;
|
|
826
945
|
}/* DO NOT CHANGE!*/
|
|
827
946
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
828
|
-
.eds-switch {
|
|
829
|
-
cursor: pointer;
|
|
830
|
-
-webkit-user-select: none;
|
|
831
|
-
-moz-user-select: none;
|
|
832
|
-
user-select: none;
|
|
833
|
-
padding: 0.5rem 0;
|
|
834
|
-
width: -moz-fit-content;
|
|
835
|
-
width: fit-content;
|
|
836
|
-
}
|
|
837
|
-
.eds-switch input {
|
|
838
|
-
opacity: 0;
|
|
839
|
-
pointer-events: none;
|
|
840
|
-
position: absolute;
|
|
841
|
-
}
|
|
842
|
-
.eds-switch--right {
|
|
843
|
-
display: flex;
|
|
844
|
-
flex-direction: row;
|
|
845
|
-
align-items: center;
|
|
846
|
-
}
|
|
847
|
-
.eds-switch--bottom {
|
|
848
|
-
display: flex;
|
|
849
|
-
flex-direction: column;
|
|
850
|
-
align-items: center;
|
|
851
|
-
}
|
|
852
|
-
.eds-switch__circle {
|
|
853
|
-
border-radius: 50%;
|
|
854
|
-
height: 1.25rem;
|
|
855
|
-
width: 1.25rem;
|
|
856
|
-
content: "";
|
|
857
|
-
display: flex;
|
|
858
|
-
align-items: center;
|
|
859
|
-
justify-content: center;
|
|
860
|
-
transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
|
|
861
|
-
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
862
|
-
background-color: #ffffff;
|
|
863
|
-
top: 0.125rem;
|
|
864
|
-
left: 0.125rem;
|
|
865
|
-
position: relative;
|
|
866
|
-
}
|
|
867
|
-
.eds-switch__switch--large .eds-switch__circle {
|
|
868
|
-
height: 1.75rem;
|
|
869
|
-
width: 1.75rem;
|
|
870
|
-
}
|
|
871
|
-
.eds-switch .eds-switch__switch svg g,
|
|
872
|
-
.eds-switch .eds-switch__switch path {
|
|
873
|
-
fill: #949494;
|
|
874
|
-
transition: fill ease-in-out 0.1s;
|
|
875
|
-
}
|
|
876
|
-
.eds-switch__switch {
|
|
877
|
-
position: relative;
|
|
878
|
-
background-color: #d1d3d3;
|
|
879
|
-
content: "";
|
|
880
|
-
display: block;
|
|
881
|
-
transition: background-color 0.1s ease-in-out;
|
|
882
|
-
height: 1.5rem;
|
|
883
|
-
width: 3rem;
|
|
884
|
-
border-radius: 1.5rem;
|
|
885
|
-
}
|
|
886
|
-
.eds-switch--right .eds-switch__switch {
|
|
887
|
-
margin-right: 0.75rem;
|
|
888
|
-
}
|
|
889
|
-
:checked + .eds-switch__switch {
|
|
890
|
-
background-color: var(--eds-switch-color);
|
|
891
|
-
}
|
|
892
|
-
:checked + .eds-switch__switch .eds-switch__circle {
|
|
893
|
-
left: 1.625rem;
|
|
894
|
-
}
|
|
895
|
-
:checked + .eds-switch__switch .eds-switch__circle svg g,
|
|
896
|
-
:checked + .eds-switch__switch .eds-switch__circle path {
|
|
897
|
-
fill: var(--eds-switch-color);
|
|
898
|
-
}
|
|
899
|
-
.eds-contrast :checked + .eds-switch__switch .eds-switch__circle svg g,
|
|
900
|
-
.eds-contrast :checked + .eds-switch__switch .eds-switch__circle path {
|
|
901
|
-
fill: var(--eds-switch-color);
|
|
902
|
-
}
|
|
903
|
-
.eds-contrast :checked + .eds-switch__switch {
|
|
904
|
-
background-color: var(--eds-switch-contrast-color);
|
|
905
|
-
}
|
|
906
|
-
:focus + .eds-switch__switch {
|
|
907
|
-
outline: none;
|
|
908
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
909
|
-
outline-offset: 0.125rem;
|
|
910
|
-
}
|
|
911
|
-
.eds-contrast :focus + .eds-switch__switch {
|
|
912
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
913
|
-
}
|
|
914
|
-
.eds-contrast .eds-switch__switch {
|
|
915
|
-
background-color: #54568c;
|
|
916
|
-
}
|
|
917
|
-
.eds-switch__switch--large {
|
|
918
|
-
width: 3.75rem;
|
|
919
|
-
height: 2rem;
|
|
920
|
-
border-radius: 3.75rem;
|
|
921
|
-
}
|
|
922
|
-
:checked + .eds-switch__switch--large .eds-switch__circle {
|
|
923
|
-
left: 1.875rem;
|
|
924
|
-
}
|
|
925
|
-
.eds-switch__label--large--right {
|
|
926
|
-
font-size: 1rem;
|
|
927
|
-
}
|
|
928
|
-
.eds-switch__label--large--bottom {
|
|
929
|
-
font-size: 0.875rem;
|
|
930
|
-
}
|
|
931
|
-
.eds-switch__label--medium--right {
|
|
932
|
-
font-size: 0.875rem;
|
|
933
|
-
}
|
|
934
|
-
.eds-switch__label--medium--bottom {
|
|
935
|
-
font-size: 0.75rem;
|
|
936
|
-
}/* DO NOT CHANGE!*/
|
|
937
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
938
|
-
.eds-segmented-control {
|
|
939
|
-
margin-top: 0.25rem;
|
|
940
|
-
display: flex;
|
|
941
|
-
background: #d1d4e3;
|
|
942
|
-
border-radius: 0.5rem;
|
|
943
|
-
}
|
|
944
|
-
.eds-contrast .eds-segmented-control {
|
|
945
|
-
background: #393d79;
|
|
946
|
-
}/* DO NOT CHANGE!*/
|
|
947
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
948
947
|
.eds-segmented-choice {
|
|
949
948
|
display: block;
|
|
950
949
|
flex: 1 1 0px;
|
|
@@ -999,7 +998,7 @@ textarea.eds-form-control.eds-textarea {
|
|
|
999
998
|
}
|
|
1000
999
|
.eds-contrast .eds-segmented-choice input:checked + .eds-base-segmented {
|
|
1001
1000
|
--background-color: #ffffff;
|
|
1002
|
-
box-shadow: 0 0.0625rem 0.1875rem
|
|
1001
|
+
box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
|
|
1003
1002
|
color: #181c56;
|
|
1004
1003
|
}
|
|
1005
1004
|
.eds-segmented-choice input:focus:not(:checked) + .eds-base-segmented {
|
|
@@ -1012,5 +1011,15 @@ textarea.eds-form-control.eds-textarea {
|
|
|
1012
1011
|
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25), inset 0 0 0 0.0625rem #ffffff, inset 0 0 0 calc(0.125rem + 0.0625rem) #181c56;
|
|
1013
1012
|
}
|
|
1014
1013
|
.eds-contrast .eds-segmented-choice input:focus:checked + .eds-base-segmented {
|
|
1015
|
-
box-shadow: 0 0.0625rem 0.1875rem
|
|
1014
|
+
box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121), inset 0 0 0 0.0625rem #ffffff, inset 0 0 0 calc(0.125rem + 0.0625rem) #181c56;
|
|
1015
|
+
}/* DO NOT CHANGE!*/
|
|
1016
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
1017
|
+
.eds-segmented-control {
|
|
1018
|
+
margin-top: 0.25rem;
|
|
1019
|
+
display: flex;
|
|
1020
|
+
background: #d1d4e3;
|
|
1021
|
+
border-radius: 0.5rem;
|
|
1022
|
+
}
|
|
1023
|
+
.eds-contrast .eds-segmented-control {
|
|
1024
|
+
background: #393d79;
|
|
1016
1025
|
}
|