@entur/form 5.4.14 → 5.4.16

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 CHANGED
@@ -2,204 +2,6 @@
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-fieldset {
6
- margin: 0;
7
- padding: 0;
8
- border: 0;
9
- }
10
- .eds-fieldset .eds-legend {
11
- margin: 0 0 0.5rem;
12
- }/* DO NOT CHANGE!*/
13
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
14
- .eds-feedback-text {
15
- display: flex;
16
- align-items: center;
17
- margin-top: 0.25rem;
18
- }
19
- .eds-feedback-text--info {
20
- padding-left: calc(1rem + 0.125rem);
21
- }
22
- .eds-feedback-text__text {
23
- color: #181c56;
24
- }
25
- .eds-contrast .eds-feedback-text__text {
26
- color: #ffffff;
27
- }
28
-
29
- .eds-feedback-text__icon {
30
- font-size: 1.5rem;
31
- min-height: 1.5rem;
32
- min-width: 1.5rem;
33
- padding-right: 0.5rem;
34
- position: relative;
35
- top: -0.1rem;
36
- }
37
- .eds-feedback-text__icon--success {
38
- color: #1a8e60;
39
- }
40
- .eds-contrast .eds-feedback-text__icon--success {
41
- color: #5ac39a;
42
- }
43
- .eds-feedback-text__icon--error {
44
- color: #d31b1b;
45
- }
46
- .eds-contrast .eds-feedback-text__icon--error {
47
- color: #ff9494;
48
- }
49
- .eds-feedback-text__icon--info {
50
- color: #0082b9;
51
- }
52
- .eds-contrast .eds-feedback-text__icon--info {
53
- color: #64b3e7;
54
- }
55
- .eds-feedback-text__icon--warning {
56
- color: #ffca28;
57
- }
58
- .eds-feedback-text__icon--warning circle {
59
- fill: #181c56;
60
- }
61
- .eds-contrast .eds-feedback-text__icon--warning {
62
- color: #ffe082;
63
- }/* DO NOT CHANGE!*/
64
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
65
- .eds-checkbox__container {
66
- display: flex;
67
- align-items: center;
68
- position: relative;
69
- -webkit-appearance: none;
70
- -moz-appearance: none;
71
- appearance: none;
72
- cursor: pointer;
73
- height: 2rem;
74
- -webkit-user-select: none;
75
- -moz-user-select: none;
76
- -ms-user-select: none;
77
- user-select: none;
78
- width: -webkit-fit-content;
79
- width: -moz-fit-content;
80
- width: fit-content;
81
- }
82
- .eds-checkbox__container--reduced-click-area {
83
- height: -webkit-fit-content;
84
- height: -moz-fit-content;
85
- height: fit-content;
86
- }
87
- .eds-checkbox__container input {
88
- position: absolute;
89
- opacity: 0;
90
- height: 0;
91
- width: 0;
92
- }
93
- .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
94
- background-color: #181c56;
95
- }
96
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
97
- visibility: visible;
98
- }
99
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon__path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon__path {
100
- stroke: #ffffff;
101
- -webkit-animation: stroke ease-in-out 0.2s 0.1s forwards;
102
- animation: stroke ease-in-out 0.2s 0.1s forwards;
103
- }
104
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
105
- opacity: 0.5;
106
- }
107
- .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 {
108
- opacity: 0.5;
109
- }
110
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
111
- background: #54568c;
112
- }
113
- .eds-checkbox__container:hover input + .eds-checkbox__icon {
114
- border-color: #54568c;
115
- background: #f3f3f3;
116
- }
117
- .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
118
- border-color: #656782;
119
- background: #292b6a;
120
- }
121
- .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
122
- .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
123
- border-color: #54568c;
124
- background-color: #54568c;
125
- }
126
- .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
127
- .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
128
- background: #8285a8;
129
- border-color: #8285a8;
130
- }
131
- .eds-checkbox__container:focus + .eds-checkbox__icon,
132
- .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
133
- outline: none;
134
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
135
- outline-offset: 0.125rem;
136
- }
137
- .eds-checkbox__container:focus + .eds-checkbox__icon,
138
- .eds-checkbox__container :focus-within + .eds-checkbox__icon {
139
- outline: none;
140
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
141
- outline-offset: 0.125rem;
142
- }
143
- .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
144
- .eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
145
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
146
- }
147
- .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
148
- .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
149
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
150
- }
151
- .eds-checkbox--disabled {
152
- pointer-events: none;
153
- }
154
- .eds-checkbox--disabled .eds-checkbox__label {
155
- opacity: 0.5;
156
- }
157
- .eds-checkbox--disabled .eds-checkbox__icon {
158
- opacity: 0.5;
159
- }
160
- .eds-checkbox__icon {
161
- display: inline-flex;
162
- justify-content: center;
163
- align-items: center;
164
- position: relative;
165
- margin-right: 1rem;
166
- height: 1.25rem;
167
- width: 1.25rem;
168
- border: 0.125rem solid #181c56;
169
- border-radius: 0.0625rem;
170
- background-color: transparent;
171
- color: #ffffff;
172
- }
173
- .eds-checkbox__icon--reduced-click-area {
174
- margin-right: 0;
175
- }
176
- .eds-contrast .eds-checkbox__icon {
177
- border-color: #54568c;
178
- }
179
- .eds-checkbox__icon .eds-checkbox-icon {
180
- height: 1rem;
181
- width: 1rem;
182
- visibility: hidden;
183
- }
184
- .eds-checkbox__icon .eds-checkbox-icon__path {
185
- transform-origin: 50% 50%;
186
- stroke-dasharray: 48;
187
- stroke-dashoffset: 48;
188
- stroke-width: 0.375rem;
189
- }
190
-
191
- @-webkit-keyframes stroke {
192
- 100% {
193
- stroke-dashoffset: 0;
194
- }
195
- }
196
-
197
- @keyframes stroke {
198
- 100% {
199
- stroke-dashoffset: 0;
200
- }
201
- }/* DO NOT CHANGE!*/
202
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
203
5
  .eds-form-control-wrapper {
204
6
  --border-color: #181c56;
205
7
  --border-color-hover: #aeb7e2;
@@ -254,9 +56,6 @@
254
56
  .eds-form-control-wrapper ::-moz-placeholder {
255
57
  color: #656782;
256
58
  }
257
- .eds-form-control-wrapper :-ms-input-placeholder {
258
- color: #656782;
259
- }
260
59
  .eds-form-control-wrapper ::placeholder {
261
60
  color: #656782;
262
61
  }
@@ -372,9 +171,6 @@
372
171
  .eds-contrast .eds-form-control-wrapper--dark ::-moz-placeholder {
373
172
  color: #aeb7e2;
374
173
  }
375
- .eds-contrast .eds-form-control-wrapper--dark :-ms-input-placeholder {
376
- color: #aeb7e2;
377
- }
378
174
  .eds-contrast .eds-form-control-wrapper--dark ::placeholder {
379
175
  color: #aeb7e2;
380
176
  }
@@ -417,11 +213,6 @@
417
213
  -moz-transition: opacity 0.2s ease-in-out;
418
214
  transition: opacity 0.2s ease-in-out;
419
215
  }
420
- .eds-form-control:-ms-input-placeholder {
421
- opacity: 0;
422
- -ms-transition: opacity 0.2s ease-in-out;
423
- transition: opacity 0.2s ease-in-out;
424
- }
425
216
  .eds-form-control::placeholder {
426
217
  opacity: 0;
427
218
  transition: opacity 0.2s ease-in-out;
@@ -432,9 +223,6 @@
432
223
  .eds-form-control:focus::-moz-placeholder {
433
224
  opacity: 1;
434
225
  }
435
- .eds-form-control:focus:-ms-input-placeholder {
436
- opacity: 1;
437
- }
438
226
  .eds-form-control:focus::placeholder {
439
227
  opacity: 1;
440
228
  }
@@ -456,10 +244,64 @@
456
244
  margin-left: 0;
457
245
  }/* DO NOT CHANGE!*/
458
246
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
459
- textarea.eds-form-control.eds-textarea {
460
- min-height: 7.75rem;
461
- resize: vertical;
462
- line-height: 1.5rem;
247
+ .eds-fieldset {
248
+ margin: 0;
249
+ padding: 0;
250
+ border: 0;
251
+ }
252
+ .eds-fieldset .eds-legend {
253
+ margin: 0 0 0.5rem;
254
+ }/* DO NOT CHANGE!*/
255
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
256
+ .eds-feedback-text {
257
+ display: flex;
258
+ align-items: center;
259
+ margin-top: 0.25rem;
260
+ }
261
+ .eds-feedback-text--info {
262
+ padding-left: calc(1rem + 0.125rem);
263
+ }
264
+ .eds-feedback-text__text {
265
+ color: #181c56;
266
+ }
267
+ .eds-contrast .eds-feedback-text__text {
268
+ color: #ffffff;
269
+ }
270
+
271
+ .eds-feedback-text__icon {
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;
278
+ }
279
+ .eds-feedback-text__icon--success {
280
+ color: #1a8e60;
281
+ }
282
+ .eds-contrast .eds-feedback-text__icon--success {
283
+ color: #5ac39a;
284
+ }
285
+ .eds-feedback-text__icon--error {
286
+ color: #d31b1b;
287
+ }
288
+ .eds-contrast .eds-feedback-text__icon--error {
289
+ color: #ff9494;
290
+ }
291
+ .eds-feedback-text__icon--info {
292
+ color: #0082b9;
293
+ }
294
+ .eds-contrast .eds-feedback-text__icon--info {
295
+ color: #64b3e7;
296
+ }
297
+ .eds-feedback-text__icon--warning {
298
+ color: #ffca28;
299
+ }
300
+ .eds-feedback-text__icon--warning circle {
301
+ fill: #181c56;
302
+ }
303
+ .eds-contrast .eds-feedback-text__icon--warning {
304
+ color: #ffe082;
463
305
  }/* DO NOT CHANGE!*/
464
306
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
465
307
  .eds-form-component--radio__container {
@@ -469,12 +311,10 @@ textarea.eds-form-control.eds-textarea {
469
311
  position: relative;
470
312
  cursor: pointer;
471
313
  height: 2rem;
472
- width: -webkit-fit-content;
473
314
  width: -moz-fit-content;
474
315
  width: fit-content;
475
316
  -webkit-user-select: none;
476
317
  -moz-user-select: none;
477
- -ms-user-select: none;
478
318
  user-select: none;
479
319
  }
480
320
  .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
@@ -551,116 +391,132 @@ textarea.eds-form-control.eds-textarea {
551
391
  background-color: #aeb7e2;
552
392
  }/* DO NOT CHANGE!*/
553
393
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
554
- .eds-switch {
394
+ .eds-checkbox__container {
395
+ display: flex;
396
+ align-items: center;
397
+ position: relative;
398
+ -webkit-appearance: none;
399
+ -moz-appearance: none;
400
+ appearance: none;
555
401
  cursor: pointer;
402
+ height: 2rem;
556
403
  -webkit-user-select: none;
557
404
  -moz-user-select: none;
558
- -ms-user-select: none;
559
405
  user-select: none;
560
- padding: 0.5rem 0;
561
- width: -webkit-fit-content;
562
406
  width: -moz-fit-content;
563
407
  width: fit-content;
564
408
  }
565
- .eds-switch input {
566
- opacity: 0;
567
- pointer-events: none;
568
- position: absolute;
409
+ .eds-checkbox__container--reduced-click-area {
410
+ height: -moz-fit-content;
411
+ height: fit-content;
569
412
  }
570
- .eds-switch--right {
571
- display: flex;
572
- flex-direction: row;
573
- align-items: center;
413
+ .eds-checkbox__container input {
414
+ position: absolute;
415
+ opacity: 0;
416
+ height: 0;
417
+ width: 0;
574
418
  }
575
- .eds-switch--bottom {
576
- display: flex;
577
- flex-direction: column;
578
- align-items: center;
419
+ .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
420
+ background-color: #181c56;
579
421
  }
580
- .eds-switch__circle {
581
- border-radius: 50%;
582
- height: 1.25rem;
583
- width: 1.25rem;
584
- content: "";
585
- display: flex;
586
- align-items: center;
587
- justify-content: center;
588
- transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
589
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
590
- background-color: #ffffff;
591
- top: 0.125rem;
592
- left: 0.125rem;
593
- position: relative;
422
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
423
+ visibility: visible;
594
424
  }
595
- .eds-switch__switch--large .eds-switch__circle {
596
- height: 1.75rem;
597
- width: 1.75rem;
425
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon__path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon__path {
426
+ stroke: #ffffff;
427
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
598
428
  }
599
- .eds-switch .eds-switch__switch svg g,
600
- .eds-switch .eds-switch__switch path {
601
- fill: #949494;
602
- transition: fill ease-in-out 0.1s;
429
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
430
+ opacity: 0.5;
603
431
  }
604
- .eds-switch__switch {
605
- position: relative;
606
- background-color: #d1d3d3;
607
- content: "";
608
- display: block;
609
- transition: background-color 0.1s ease-in-out;
610
- height: 1.5rem;
611
- width: 3rem;
612
- border-radius: 1.5rem;
432
+ .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 {
433
+ opacity: 0.5;
613
434
  }
614
- .eds-switch--right .eds-switch__switch {
615
- margin-right: 0.75rem;
435
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
436
+ background: #54568c;
616
437
  }
617
- :checked + .eds-switch__switch {
618
- background-color: var(--eds-switch-color);
438
+ .eds-checkbox__container:hover input + .eds-checkbox__icon {
439
+ border-color: #54568c;
440
+ background: #f3f3f3;
619
441
  }
620
- :checked + .eds-switch__switch .eds-switch__circle {
621
- left: 1.625rem;
442
+ .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
443
+ border-color: #656782;
444
+ background: #292b6a;
622
445
  }
623
- :checked + .eds-switch__switch .eds-switch__circle svg g,
624
- :checked + .eds-switch__switch .eds-switch__circle path {
625
- fill: var(--eds-switch-color);
446
+ .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
447
+ .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
448
+ border-color: #54568c;
449
+ background-color: #54568c;
626
450
  }
627
- .eds-contrast :checked + .eds-switch__switch .eds-switch__circle svg g,
628
- .eds-contrast :checked + .eds-switch__switch .eds-switch__circle path {
629
- fill: var(--eds-switch-color);
451
+ .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
452
+ .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
453
+ background: #8285a8;
454
+ border-color: #8285a8;
630
455
  }
631
- .eds-contrast :checked + .eds-switch__switch {
632
- background-color: var(--eds-switch-contrast-color);
456
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
457
+ .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
458
+ outline: none;
459
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
460
+ outline-offset: 0.125rem;
633
461
  }
634
- :focus + .eds-switch__switch {
462
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
463
+ .eds-checkbox__container :focus-within + .eds-checkbox__icon {
635
464
  outline: none;
636
465
  box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
637
466
  outline-offset: 0.125rem;
638
467
  }
639
- .eds-contrast :focus + .eds-switch__switch {
468
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
469
+ .eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
640
470
  box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
641
471
  }
642
- .eds-contrast .eds-switch__switch {
643
- background-color: #54568c;
472
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
473
+ .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
474
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
644
475
  }
645
- .eds-switch__switch--large {
646
- width: 3.75rem;
647
- height: 2rem;
648
- border-radius: 3.75rem;
476
+ .eds-checkbox--disabled {
477
+ pointer-events: none;
649
478
  }
650
- :checked + .eds-switch__switch--large .eds-switch__circle {
651
- left: 1.875rem;
479
+ .eds-checkbox--disabled .eds-checkbox__label {
480
+ opacity: 0.5;
652
481
  }
653
- .eds-switch__label--large--right {
654
- font-size: 1rem;
482
+ .eds-checkbox--disabled .eds-checkbox__icon {
483
+ opacity: 0.5;
655
484
  }
656
- .eds-switch__label--large--bottom {
657
- font-size: 0.875rem;
485
+ .eds-checkbox__icon {
486
+ display: inline-flex;
487
+ justify-content: center;
488
+ align-items: center;
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;
658
497
  }
659
- .eds-switch__label--medium--right {
660
- font-size: 0.875rem;
498
+ .eds-checkbox__icon--reduced-click-area {
499
+ margin-right: 0;
661
500
  }
662
- .eds-switch__label--medium--bottom {
663
- font-size: 0.75rem;
501
+ .eds-contrast .eds-checkbox__icon {
502
+ border-color: #54568c;
503
+ }
504
+ .eds-checkbox__icon .eds-checkbox-icon {
505
+ height: 1rem;
506
+ width: 1rem;
507
+ visibility: hidden;
508
+ }
509
+ .eds-checkbox__icon .eds-checkbox-icon__path {
510
+ transform-origin: 50% 50%;
511
+ stroke-dasharray: 48;
512
+ stroke-dashoffset: 48;
513
+ stroke-width: 0.375rem;
514
+ }
515
+
516
+ @keyframes stroke {
517
+ 100% {
518
+ stroke-dashoffset: 0;
519
+ }
664
520
  }/* DO NOT CHANGE!*/
665
521
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
666
522
  .eds-radio-panel__wrapper[focus-within] .eds-radio-panel__container {
@@ -703,8 +559,7 @@ textarea.eds-form-control.eds-textarea {
703
559
  }
704
560
  .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon__path {
705
561
  stroke: #5ac39a;
706
- -webkit-animation: stroke ease-in-out 0.2s 0.1s forwards;
707
- animation: stroke ease-in-out 0.2s 0.1s forwards;
562
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
708
563
  }
709
564
  .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled {
710
565
  opacity: 0.5;
@@ -724,9 +579,7 @@ textarea.eds-form-control.eds-textarea {
724
579
  padding: 1rem;
725
580
  -webkit-user-select: none;
726
581
  -moz-user-select: none;
727
- -ms-user-select: none;
728
582
  user-select: none;
729
- width: -webkit-fit-content;
730
583
  width: -moz-fit-content;
731
584
  width: fit-content;
732
585
  }
@@ -824,7 +677,6 @@ textarea.eds-form-control.eds-textarea {
824
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;
825
678
  -webkit-user-select: none;
826
679
  -moz-user-select: none;
827
- -ms-user-select: none;
828
680
  user-select: none;
829
681
  pointer-events: none;
830
682
  }
@@ -931,6 +783,12 @@ textarea.eds-form-control.eds-textarea {
931
783
  margin-left: 1rem;
932
784
  }/* DO NOT CHANGE!*/
933
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. */
934
792
  .eds-textfield__clear-button {
935
793
  background: none;
936
794
  border: none;
@@ -967,6 +825,126 @@ textarea.eds-form-control.eds-textarea {
967
825
  background-color: #8285a8;
968
826
  }/* DO NOT CHANGE!*/
969
827
  /* 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. */
970
948
  .eds-segmented-choice {
971
949
  display: block;
972
950
  flex: 1 1 0px;
@@ -975,27 +953,23 @@ textarea.eds-form-control.eds-textarea {
975
953
  --background-color: transparent;
976
954
  background-color: var(--background-color);
977
955
  border-radius: 0.25rem;
978
- border: 0.0625rem solid transparent;
979
- margin: 0.25rem;
980
956
  color: inherit;
981
957
  cursor: pointer;
982
958
  font-size: 0.875rem;
959
+ height: 1.5rem;
983
960
  line-height: 1.25rem;
961
+ margin: 0.25rem;
962
+ outline-color: transparent;
984
963
  padding: calc(0.25rem/ 2) 0.75rem;
985
- height: 1.5rem;
986
964
  text-align: center;
987
965
  -webkit-user-select: none;
988
966
  -moz-user-select: none;
989
- -ms-user-select: none;
990
967
  user-select: none;
991
968
  }
992
- .eds-contrast .eds-segmented-choice .eds-base-segmented {
993
- border-color: #393d79;
994
- }
995
969
  .eds-segmented-choice .eds-base-segmented--large {
996
970
  font-size: 1rem;
997
- line-height: 1.5rem;
998
971
  height: 2.5rem;
972
+ line-height: 1.5rem;
999
973
  padding: 0.5rem 0.75rem;
1000
974
  }
1001
975
  .eds-segmented-choice:hover input:not(:checked) + .eds-base-segmented {
@@ -1004,6 +978,12 @@ textarea.eds-form-control.eds-textarea {
1004
978
  .eds-contrast .eds-segmented-choice:hover input:not(:checked) + .eds-base-segmented {
1005
979
  --background-color: #54568c;
1006
980
  }
981
+ .eds-segmented-choice:hover input:checked + .eds-base-segmented {
982
+ --background-color: #ebebf1;
983
+ }
984
+ .eds-contrast .eds-segmented-choice:hover input:checked + .eds-base-segmented {
985
+ --background-color: #d1d4e3;
986
+ }
1007
987
  .eds-segmented-choice input {
1008
988
  -webkit-appearance: none;
1009
989
  -moz-appearance: none;
@@ -1018,30 +998,19 @@ textarea.eds-form-control.eds-textarea {
1018
998
  box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
1019
999
  }
1020
1000
  .eds-contrast .eds-segmented-choice input:checked + .eds-base-segmented {
1001
+ --background-color: #ffffff;
1021
1002
  box-shadow: 0 0.0625rem 0.1875rem #393d79;
1022
1003
  color: #181c56;
1023
- --background-color: #ffffff;
1024
- }
1025
- .eds-segmented-choice input:focus + .eds-base-segmented {
1026
- outline: none;
1027
- border: 0.0625rem solid #181c56;
1028
1004
  }
1029
- .eds-contrast .eds-segmented-choice input:focus + .eds-base-segmented {
1030
- border: 0.0625rem solid #aeb7e2;
1005
+ .eds-segmented-choice input:focus:not(:checked) + .eds-base-segmented {
1006
+ box-shadow: inset 0 0 0 0.0625rem #d1d4e3, inset 0 0 0 calc(0.125rem + 0.0625rem) #181c56;
1031
1007
  }
1032
- .eds-segmented-choice:hover input:checked + .eds-base-segmented {
1033
- --background-color: #ebebf1;
1008
+ .eds-contrast .eds-segmented-choice input:focus:not(:checked) + .eds-base-segmented {
1009
+ box-shadow: inset 0 0 0 0.0625rem #393d79, inset 0 0 0 calc(0.125rem + 0.0625rem) #ffffff;
1034
1010
  }
1035
- .eds-contrast .eds-segmented-choice:hover input:checked + .eds-base-segmented {
1036
- --background-color: #d1d4e3;
1037
- }/* DO NOT CHANGE!*/
1038
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1039
- .eds-segmented-control {
1040
- margin-top: 0.25rem;
1041
- display: flex;
1042
- background: #d1d4e3;
1043
- border-radius: 0.25rem;
1011
+ .eds-segmented-choice input:focus:checked + .eds-base-segmented {
1012
+ 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;
1044
1013
  }
1045
- .eds-contrast .eds-segmented-control {
1046
- background: #393d79;
1014
+ .eds-contrast .eds-segmented-choice input:focus:checked + .eds-base-segmented {
1015
+ box-shadow: 0 0.0625rem 0.1875rem #393d79, inset 0 0 0 0.0625rem #ffffff, inset 0 0 0 calc(0.125rem + 0.0625rem) #181c56;
1047
1016
  }