@entur/form 5.1.3 → 5.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/styles.css CHANGED
@@ -2,15 +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
5
  .eds-feedback-text {
15
6
  display: flex;
16
7
  align-items: center;
@@ -59,175 +50,6 @@
59
50
  color: #64b3e7;
60
51
  }/* DO NOT CHANGE!*/
61
52
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
62
- .eds-form-component--radio__container {
63
- display: flex;
64
- justify-content: center;
65
- align-items: center;
66
- position: relative;
67
- cursor: pointer;
68
- height: 2rem;
69
- width: fit-content;
70
- user-select: none;
71
- }
72
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
73
- border-color: #54568c;
74
- }
75
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
76
- background-color: #54568c;
77
- }
78
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
79
- border-color: #8285a8;
80
- }
81
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
82
- background-color: #8285a8;
83
- }
84
- .eds-form-component--radio__container input {
85
- position: absolute;
86
- opacity: 0;
87
- cursor: pointer;
88
- height: 0;
89
- width: 0;
90
- }
91
- .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
92
- height: 0.625rem;
93
- width: 0.625rem;
94
- }
95
- .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
96
- outline: none;
97
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
98
- outline-offset: 0.125rem;
99
- }
100
- .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
101
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
102
- }
103
- .eds-form-component--radio__container .eds-form-component--radio__radio {
104
- position: relative;
105
- height: 1.25rem;
106
- width: 1.25rem;
107
- margin-right: 1rem;
108
- background-color: #ffffff;
109
- border: 0.125rem solid #181c56;
110
- border-radius: 50%;
111
- display: flex;
112
- align-items: center;
113
- justify-content: center;
114
- }
115
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
116
- background-color: #181c56;
117
- border-color: #aeb7e2;
118
- }
119
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
120
- background: #d1d3d3;
121
- border-color: #d1d3d3;
122
- cursor: not-allowed;
123
- }
124
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
125
- border-color: #d1d3d3;
126
- }
127
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
128
- background: #d1d3d3;
129
- border-color: #d1d3d3;
130
- }
131
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
132
- color: #656782;
133
- }
134
- .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
135
- display: block;
136
- width: 0;
137
- height: 0;
138
- border-radius: 50%;
139
- background-color: #181c56;
140
- transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
141
- }
142
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
143
- background-color: #aeb7e2;
144
- }/* DO NOT CHANGE!*/
145
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
146
- .eds-switch {
147
- align-items: center;
148
- cursor: pointer;
149
- display: flex;
150
- user-select: none;
151
- padding: 0.5rem 0;
152
- width: fit-content;
153
- }
154
- .eds-switch input {
155
- opacity: 0;
156
- pointer-events: none;
157
- position: absolute;
158
- }
159
- .eds-switch__circle {
160
- border-radius: 50%;
161
- height: 1.25rem;
162
- width: 1.25rem;
163
- content: "";
164
- display: flex;
165
- align-items: center;
166
- justify-content: center;
167
- transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
168
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
169
- background-color: #ffffff;
170
- top: 0.125rem;
171
- left: 0.125rem;
172
- position: relative;
173
- }
174
- .eds-switch__switch--large .eds-switch__circle {
175
- height: 1.75rem;
176
- width: 1.75rem;
177
- }
178
- .eds-switch .eds-switch__switch svg g,
179
- .eds-switch .eds-switch__switch path {
180
- fill: #949494;
181
- transition: fill ease-in-out 0.1s;
182
- }
183
- .eds-switch__switch {
184
- margin-right: 0.75rem;
185
- position: relative;
186
- background-color: #d1d3d3;
187
- content: "";
188
- display: block;
189
- transition: background-color 0.1s ease-in-out;
190
- height: 1.5rem;
191
- width: 3rem;
192
- border-radius: 1.5rem;
193
- }
194
- :checked + .eds-switch__switch {
195
- background-color: var(--eds-switch-color);
196
- }
197
- :checked + .eds-switch__switch .eds-switch__circle {
198
- left: 1.625rem;
199
- }
200
- :checked + .eds-switch__switch .eds-switch__circle svg g,
201
- :checked + .eds-switch__switch .eds-switch__circle path {
202
- fill: var(--eds-switch-color);
203
- }
204
- .eds-contrast :checked + .eds-switch__switch .eds-switch__circle svg g,
205
- .eds-contrast :checked + .eds-switch__switch .eds-switch__circle path {
206
- fill: var(--eds-switch-color);
207
- }
208
- .eds-contrast :checked + .eds-switch__switch {
209
- background-color: var(--eds-switch-contrast-color);
210
- }
211
- :focus + .eds-switch__switch {
212
- outline: none;
213
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
214
- outline-offset: 0.125rem;
215
- }
216
- .eds-contrast :focus + .eds-switch__switch {
217
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
218
- }
219
- .eds-contrast .eds-switch__switch {
220
- background-color: #54568c;
221
- }
222
- .eds-switch__switch--large {
223
- width: 3.75rem;
224
- height: 2rem;
225
- border-radius: 3.75rem;
226
- }
227
- :checked + .eds-switch__switch--large .eds-switch__circle {
228
- left: 1.875rem;
229
- }/* DO NOT CHANGE!*/
230
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
231
53
  .eds-checkbox__container {
232
54
  display: flex;
233
55
  align-items: center;
@@ -340,298 +162,73 @@
340
162
  }
341
163
  }/* DO NOT CHANGE!*/
342
164
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
343
- .eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
344
- border-color: #181c56;
345
- }
346
- .eds-contrast .eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
347
- border-color: #ffffff;
165
+ .eds-form-control-wrapper {
166
+ --border-color: #181c56;
167
+ --border-color-hover: #aeb7e2;
168
+ align-items: center;
169
+ background-color: #ffffff;
170
+ border-radius: 0.25rem;
171
+ border: 0.125rem solid #d1d3d3;
172
+ box-shadow: 0 0 0 transparent;
173
+ color: #181c56;
174
+ display: flex;
175
+ position: relative;
176
+ width: 100%;
177
+ min-height: 3rem;
178
+ transition: border-color 0.1s ease-in-out;
179
+ --textarea-label-background: $colors-brand-white;
180
+ /*
181
+ Some input controls require a darker design while inside a contrast block.
182
+ These elements require the `--dark` modifier, even on the wrapper.
183
+ */
348
184
  }
349
- .eds-radio-panel__wrapper input {
350
- position: absolute;
351
- opacity: 0;
352
- cursor: pointer;
353
- height: 0;
354
- width: 0;
185
+ .eds-contrast .eds-form-control-wrapper {
186
+ --border-color: #aeb7e2;
187
+ background-color: #ffffff;
188
+ border-color: #54568c;
355
189
  }
356
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
190
+ .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
357
191
  border-color: #181c56;
358
- background: #f5f5f8;
359
192
  }
360
- .eds-contrast .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
193
+ .eds-contrast .eds-form-control-wrapper:hover {
361
194
  border-color: #aeb7e2;
362
- background: #393d79;
195
+ background: #ebebf1;
363
196
  }
364
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check {
365
- background-color: #181c56;
197
+ .eds-form-control-wrapper:focus-within {
198
+ box-shadow: inset 0 0 0 1px var(--border-color);
199
+ }
200
+ .eds-contrast .eds-form-control-wrapper:focus-within {
366
201
  border-color: #181c56;
202
+ --border-color: #aeb7e2;
203
+ box-shadow: 0 0 0 0.125rem var(--border-color);
367
204
  }
368
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon {
369
- visibility: visible;
205
+ .eds-form-control-wrapper ::placeholder {
206
+ color: #656782;
370
207
  }
371
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon__path {
372
- stroke: #5ac39a;
373
- animation: stroke ease-in-out 0.2s 0.1s forwards;
208
+ .eds-form-control-wrapper--disabled {
209
+ background-color: #e9e9e9;
210
+ color: #656782;
211
+ border-color: transparent;
212
+ pointer-events: none;
374
213
  }
375
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled {
376
- opacity: 0.5;
214
+ .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
215
+ display: none;
377
216
  }
378
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled .eds-checkbox-icon__path {
379
- opacity: 0.5;
380
- }
381
- .eds-radio-panel__container {
382
- background: #ffffff;
383
- border: 0.125rem solid #d1d3d3;
384
- border-radius: 0.25rem;
385
- display: flex;
386
- flex-direction: column;
387
- justify-content: flex-start;
388
- min-width: 20rem;
389
- position: relative;
390
- padding: 1rem;
391
- user-select: none;
392
- width: fit-content;
393
- }
394
- .eds-contrast .eds-radio-panel__container {
395
- background: #181c56;
396
- border-color: #54568c;
397
- }
398
- .eds-radio-panel__title-wrapper {
399
- display: flex;
400
- justify-content: space-between;
401
- align-items: center;
402
- }
403
- .eds-radio-panel__label {
404
- display: flex;
405
- justify-content: center;
406
- }
407
- .eds-radio-panel__check {
408
- height: 2rem;
409
- width: 2rem;
410
- margin-left: 1rem;
411
- border-radius: 50%;
412
- border: 0.125rem solid #e9e9e9;
413
- display: flex;
414
- align-items: center;
415
- justify-content: center;
416
- background: #ffffff;
417
- transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
418
- }
419
- .eds-contrast .eds-radio-panel__check {
420
- background: #181c56;
421
- border-color: #54568c;
422
- }
423
- .eds-radio-panel__additional-content {
424
- margin-top: 0.25rem;
425
- word-wrap: break-word;
426
- }
427
- .eds-radio-panel--medium .eds-radio-panel__title {
428
- font-size: 1rem;
429
- font-weight: 500;
430
- }
431
- .eds-radio-panel--medium.eds-radio-panel__container {
432
- padding-bottom: 1rem;
433
- min-height: 3.75rem;
434
- }
435
- .eds-radio-panel--large.eds-radio-panel__container {
436
- min-height: 6.5rem;
437
- }
438
- .eds-radio-panel--large .eds-radio-panel__title-wrapper {
439
- height: 2rem;
440
- }
441
- .eds-radio-panel--large .eds-radio-panel__title {
442
- font-size: 1.25rem;
443
- font-weight: 500;
444
- line-height: 1.875rem;
445
- }
446
- .eds-radio-panel--disabled {
447
- background: #f3f3f3;
448
- border-color: #f3f3f3;
449
- color: #656782;
450
- }
451
- .eds-contrast .eds-radio-panel--disabled {
452
- background: #181c56;
453
- border-style: dashed;
454
- border-color: #54568c;
455
- color: #babbcf;
456
- }
457
-
458
- .eds-checkbox-icon {
459
- width: 1.5em;
460
- height: 1.5em;
461
- }
462
- .eds-checkbox-icon__path {
463
- transform-origin: 50% 50%;
464
- stroke-dasharray: 48;
465
- stroke-dashoffset: 48;
466
- stroke-width: 0.375rem;
467
- }/* DO NOT CHANGE!*/
468
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
469
- .eds-input-group {
470
- color: inherit;
471
- display: block;
472
- position: relative;
473
- }
474
- .eds-input-group__label {
475
- color: #656782;
476
- display: flex;
477
- font-size: 1rem;
478
- position: absolute;
479
- line-height: 1rem;
480
- height: 3rem;
481
- padding: 1rem;
482
- padding-left: 0;
483
- margin-left: 1rem;
484
- top: -0.125rem;
485
- 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;
486
- user-select: none;
487
- pointer-events: none;
488
- }
489
- .eds-form-control-wrapper--is-filled .eds-input-group__label {
490
- top: calc(0.5rem - 0.125rem);
491
- font-size: 0.75rem;
492
- line-height: 0.75rem;
493
- height: 10px;
494
- padding: 0;
495
- margin-left: 1rem;
496
- }
497
- .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
498
- box-shadow: 0px -2px 0px 4px #ffffff;
499
- background: #ffffff;
500
- width: calc( 100% - 1rem - 1rem - 4px );
501
- }
502
- .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
503
- top: 0.5rem;
504
- font-size: 0.875rem;
505
- line-height: 1rem;
506
- padding: 0;
507
- margin-left: 1rem;
508
- }
509
- .eds-contrast .eds-input-group__label {
510
- color: #8285a8;
511
- }
512
- .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
513
- color: #aeb7e2;
514
- }
515
- .eds-form-control-wrapper--size-large .eds-input-group__label {
516
- font-size: 1.5rem;
517
- line-height: 2.25rem;
518
- height: 4rem;
519
- }
520
- .eds-input-group__label--filled {
521
- top: calc(0.5rem - 0.125rem);
522
- font-size: 0.75rem;
523
- line-height: 0.75rem;
524
- height: 10px;
525
- padding: 0;
526
- margin-left: 1rem;
527
- }
528
- .eds-textarea__label .eds-input-group__label--filled {
529
- box-shadow: 0px -2px 0px 4px #ffffff;
530
- background: #ffffff;
531
- width: calc( 100% - 1rem - 1rem - 4px );
532
- }
533
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
534
- top: 0.5rem;
535
- font-size: 0.875rem;
536
- line-height: 1rem;
537
- padding: 0;
538
- margin-left: 1rem;
539
- }
540
- .eds-input-group__label-tooltip-icon {
541
- color: #0082b9;
542
- padding-left: 0.25rem;
543
- padding-right: 0.25rem;
544
- display: flex;
545
- align-items: center;
546
- cursor: help;
547
- font-size: 1rem;
548
- }
549
-
550
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
551
- top: calc(0.5rem - 0.125rem);
552
- font-size: 0.75rem;
553
- line-height: 0.75rem;
554
- height: 10px;
555
- padding: 0;
556
- margin-left: 1rem;
557
- }
558
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
559
- box-shadow: 0px -2px 0px 4px #ffffff;
560
- background: #ffffff;
561
- width: calc( 100% - 1rem - 1rem - 4px );
562
- }
563
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
564
- top: 0.5rem;
565
- font-size: 0.875rem;
566
- line-height: 1rem;
567
- padding: 0;
568
- margin-left: 1rem;
569
- }/* DO NOT CHANGE!*/
570
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
571
- .eds-form-control-wrapper {
572
- --border-color: #181c56;
573
- --border-color-hover: #aeb7e2;
574
- align-items: center;
575
- background-color: #ffffff;
576
- border-radius: 0.25rem;
577
- border: 0.125rem solid #d1d3d3;
578
- box-shadow: 0 0 0 transparent;
579
- color: #181c56;
580
- display: flex;
581
- position: relative;
582
- width: 100%;
583
- min-height: 3rem;
584
- transition: border-color 0.1s ease-in-out;
585
- /*
586
- Some input controls require a darker design while inside a contrast block.
587
- These elements require the `--dark` modifier, even on the wrapper.
588
- */
589
- }
590
- .eds-contrast .eds-form-control-wrapper {
591
- --border-color: #aeb7e2;
592
- background-color: #ffffff;
593
- border-color: #54568c;
594
- }
595
- .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
596
- border-color: #181c56;
597
- }
598
- .eds-contrast .eds-form-control-wrapper:hover {
599
- border-color: #aeb7e2;
600
- background: #ebebf1;
601
- }
602
- .eds-form-control-wrapper:focus-within {
603
- box-shadow: inset 0 0 0 1px var(--border-color);
604
- }
605
- .eds-contrast .eds-form-control-wrapper:focus-within {
606
- border-color: #181c56;
607
- --border-color: #aeb7e2;
608
- box-shadow: 0 0 0 0.125rem var(--border-color);
609
- }
610
- .eds-form-control-wrapper ::placeholder {
611
- color: #656782;
612
- }
613
- .eds-form-control-wrapper--disabled {
614
- background-color: #e9e9e9;
615
- color: #656782;
616
- border-color: transparent;
617
- pointer-events: none;
618
- }
619
- .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
620
- display: none;
621
- }
622
- .eds-contrast .eds-form-control-wrapper--disabled {
623
- background: #292b6a;
624
- border-color: transparent;
625
- color: #8285a8;
217
+ .eds-contrast .eds-form-control-wrapper--disabled {
218
+ background: #292b6a;
219
+ border-color: transparent;
220
+ color: #8285a8;
626
221
  }
627
222
  .eds-form-control-wrapper--readonly {
628
223
  pointer-events: none;
629
224
  cursor: default;
630
225
  border-color: transparent;
631
226
  background: #f8f8f8;
227
+ --textarea-label-background: $colors-greys-grey90;
632
228
  }
633
229
  .eds-contrast .eds-form-control-wrapper--readonly {
634
230
  background: #292b6a;
231
+ --textarea-label-background: $colors-blues-blue10;
635
232
  color: #ffffff;
636
233
  border-color: transparent;
637
234
  }
@@ -768,6 +365,15 @@ textarea.eds-form-control.eds-textarea {
768
365
  line-height: 1.5rem;
769
366
  }/* DO NOT CHANGE!*/
770
367
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
368
+ .eds-fieldset {
369
+ margin: 0;
370
+ padding: 0;
371
+ border: 0;
372
+ }
373
+ .eds-fieldset .eds-legend {
374
+ margin: 0 0 0.5rem;
375
+ }/* DO NOT CHANGE!*/
376
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
771
377
  .eds-textfield__clear-button {
772
378
  background: none;
773
379
  border: none;
@@ -804,13 +410,425 @@ textarea.eds-form-control.eds-textarea {
804
410
  background-color: #8285a8;
805
411
  }/* DO NOT CHANGE!*/
806
412
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
807
- .eds-segmented-control {
413
+ .eds-form-component--radio__container {
808
414
  display: flex;
809
- background: #d1d4e3;
810
- border-radius: 0.25rem;
415
+ justify-content: center;
416
+ align-items: center;
417
+ position: relative;
418
+ cursor: pointer;
419
+ height: 2rem;
420
+ width: fit-content;
421
+ user-select: none;
811
422
  }
812
- .eds-contrast .eds-segmented-control {
423
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
424
+ border-color: #54568c;
425
+ }
426
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
427
+ background-color: #54568c;
428
+ }
429
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
430
+ border-color: #8285a8;
431
+ }
432
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
433
+ background-color: #8285a8;
434
+ }
435
+ .eds-form-component--radio__container input {
436
+ position: absolute;
437
+ opacity: 0;
438
+ cursor: pointer;
439
+ height: 0;
440
+ width: 0;
441
+ }
442
+ .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
443
+ height: 0.625rem;
444
+ width: 0.625rem;
445
+ }
446
+ .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
447
+ outline: none;
448
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
449
+ outline-offset: 0.125rem;
450
+ }
451
+ .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
452
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
453
+ }
454
+ .eds-form-component--radio__container .eds-form-component--radio__radio {
455
+ position: relative;
456
+ height: 1.25rem;
457
+ width: 1.25rem;
458
+ margin-right: 1rem;
459
+ background-color: #ffffff;
460
+ border: 0.125rem solid #181c56;
461
+ border-radius: 50%;
462
+ display: flex;
463
+ align-items: center;
464
+ justify-content: center;
465
+ }
466
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
467
+ background-color: #181c56;
468
+ border-color: #aeb7e2;
469
+ }
470
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
471
+ background: #d1d3d3;
472
+ border-color: #d1d3d3;
473
+ cursor: not-allowed;
474
+ }
475
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
476
+ border-color: #d1d3d3;
477
+ }
478
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
479
+ background: #d1d3d3;
480
+ border-color: #d1d3d3;
481
+ }
482
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
483
+ color: #656782;
484
+ }
485
+ .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
486
+ display: block;
487
+ width: 0;
488
+ height: 0;
489
+ border-radius: 50%;
490
+ background-color: #181c56;
491
+ transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
492
+ }
493
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
494
+ background-color: #aeb7e2;
495
+ }/* DO NOT CHANGE!*/
496
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
497
+ .eds-switch {
498
+ cursor: pointer;
499
+ user-select: none;
500
+ padding: 0.5rem 0;
501
+ width: fit-content;
502
+ }
503
+ .eds-switch input {
504
+ opacity: 0;
505
+ pointer-events: none;
506
+ position: absolute;
507
+ }
508
+ .eds-switch--right {
509
+ display: flex;
510
+ flex-direction: row;
511
+ align-items: center;
512
+ }
513
+ .eds-switch--bottom {
514
+ display: flex;
515
+ flex-direction: column;
516
+ align-items: center;
517
+ }
518
+ .eds-switch__circle {
519
+ border-radius: 50%;
520
+ height: 1.25rem;
521
+ width: 1.25rem;
522
+ content: "";
523
+ display: flex;
524
+ align-items: center;
525
+ justify-content: center;
526
+ transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
527
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
528
+ background-color: #ffffff;
529
+ top: 0.125rem;
530
+ left: 0.125rem;
531
+ position: relative;
532
+ }
533
+ .eds-switch__switch--large .eds-switch__circle {
534
+ height: 1.75rem;
535
+ width: 1.75rem;
536
+ }
537
+ .eds-switch .eds-switch__switch svg g,
538
+ .eds-switch .eds-switch__switch path {
539
+ fill: #949494;
540
+ transition: fill ease-in-out 0.1s;
541
+ }
542
+ .eds-switch__switch {
543
+ position: relative;
544
+ background-color: #d1d3d3;
545
+ content: "";
546
+ display: block;
547
+ transition: background-color 0.1s ease-in-out;
548
+ height: 1.5rem;
549
+ width: 3rem;
550
+ border-radius: 1.5rem;
551
+ }
552
+ .eds-switch--right .eds-switch__switch {
553
+ margin-right: 0.75rem;
554
+ }
555
+ :checked + .eds-switch__switch {
556
+ background-color: var(--eds-switch-color);
557
+ }
558
+ :checked + .eds-switch__switch .eds-switch__circle {
559
+ left: 1.625rem;
560
+ }
561
+ :checked + .eds-switch__switch .eds-switch__circle svg g,
562
+ :checked + .eds-switch__switch .eds-switch__circle path {
563
+ fill: var(--eds-switch-color);
564
+ }
565
+ .eds-contrast :checked + .eds-switch__switch .eds-switch__circle svg g,
566
+ .eds-contrast :checked + .eds-switch__switch .eds-switch__circle path {
567
+ fill: var(--eds-switch-color);
568
+ }
569
+ .eds-contrast :checked + .eds-switch__switch {
570
+ background-color: var(--eds-switch-contrast-color);
571
+ }
572
+ :focus + .eds-switch__switch {
573
+ outline: none;
574
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
575
+ outline-offset: 0.125rem;
576
+ }
577
+ .eds-contrast :focus + .eds-switch__switch {
578
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
579
+ }
580
+ .eds-contrast .eds-switch__switch {
581
+ background-color: #54568c;
582
+ }
583
+ .eds-switch__switch--large {
584
+ width: 3.75rem;
585
+ height: 2rem;
586
+ border-radius: 3.75rem;
587
+ }
588
+ :checked + .eds-switch__switch--large .eds-switch__circle {
589
+ left: 1.875rem;
590
+ }
591
+ .eds-switch__label--large--right {
592
+ font-size: 1rem;
593
+ }
594
+ .eds-switch__label--large--bottom {
595
+ font-size: 0.875rem;
596
+ }
597
+ .eds-switch__label--medium--right {
598
+ font-size: 0.875rem;
599
+ }
600
+ .eds-switch__label--medium--bottom {
601
+ font-size: 0.75rem;
602
+ }/* DO NOT CHANGE!*/
603
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
604
+ .eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
605
+ border-color: #181c56;
606
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
607
+ }
608
+ .eds-contrast .eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
609
+ border-color: #ffffff;
610
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
611
+ }
612
+ .eds-radio-panel__wrapper input {
613
+ position: absolute;
614
+ opacity: 0;
615
+ cursor: pointer;
616
+ height: 0;
617
+ width: 0;
618
+ }
619
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
620
+ border-color: #181c56;
621
+ background: #f5f5f8;
622
+ }
623
+ .eds-contrast .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
624
+ border-color: #aeb7e2;
813
625
  background: #393d79;
626
+ }
627
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check {
628
+ background-color: #181c56;
629
+ border-color: #181c56;
630
+ }
631
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon {
632
+ visibility: visible;
633
+ }
634
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon__path {
635
+ stroke: #5ac39a;
636
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
637
+ }
638
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled {
639
+ opacity: 0.5;
640
+ }
641
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled .eds-checkbox-icon__path {
642
+ opacity: 0.5;
643
+ }
644
+ .eds-radio-panel__container {
645
+ background: #ffffff;
646
+ border: 0.125rem solid #d1d3d3;
647
+ border-radius: 0.25rem;
648
+ display: flex;
649
+ flex-direction: column;
650
+ justify-content: flex-start;
651
+ min-width: 20rem;
652
+ position: relative;
653
+ padding: 1rem;
654
+ user-select: none;
655
+ width: fit-content;
656
+ }
657
+ .eds-contrast .eds-radio-panel__container {
658
+ background: #181c56;
659
+ border-color: #54568c;
660
+ }
661
+ .eds-radio-panel__title-wrapper {
662
+ display: flex;
663
+ justify-content: space-between;
664
+ align-items: center;
665
+ }
666
+ .eds-radio-panel__label {
667
+ display: flex;
668
+ justify-content: center;
669
+ }
670
+ .eds-radio-panel__check {
671
+ height: 2rem;
672
+ width: 2rem;
673
+ margin-left: 1rem;
674
+ border-radius: 50%;
675
+ border: 0.125rem solid #e9e9e9;
676
+ display: flex;
677
+ align-items: center;
678
+ justify-content: center;
679
+ background: #ffffff;
680
+ transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
681
+ }
682
+ .eds-contrast .eds-radio-panel__check {
683
+ background: #181c56;
684
+ border-color: #54568c;
685
+ }
686
+ .eds-radio-panel__additional-content {
687
+ margin-top: 0.25rem;
688
+ word-wrap: break-word;
689
+ }
690
+ .eds-radio-panel--medium .eds-radio-panel__title {
691
+ font-size: 1rem;
692
+ font-weight: 500;
693
+ }
694
+ .eds-radio-panel--medium.eds-radio-panel__container {
695
+ padding-bottom: 1rem;
696
+ min-height: 3.75rem;
697
+ }
698
+ .eds-radio-panel--large.eds-radio-panel__container {
699
+ min-height: 6.5rem;
700
+ }
701
+ .eds-radio-panel--large .eds-radio-panel__title-wrapper {
702
+ height: 2rem;
703
+ }
704
+ .eds-radio-panel--large .eds-radio-panel__title {
705
+ font-size: 1.25rem;
706
+ font-weight: 500;
707
+ line-height: 1.875rem;
708
+ }
709
+ .eds-radio-panel--disabled {
710
+ background: #f3f3f3;
711
+ border-color: #f3f3f3;
712
+ color: #656782;
713
+ }
714
+ .eds-contrast .eds-radio-panel--disabled {
715
+ background: #181c56;
716
+ border-style: dashed;
717
+ border-color: #54568c;
718
+ color: #babbcf;
719
+ }
720
+
721
+ .eds-checkbox-icon {
722
+ width: 1.5em;
723
+ height: 1.5em;
724
+ }
725
+ .eds-checkbox-icon__path {
726
+ transform-origin: 50% 50%;
727
+ stroke-dasharray: 48;
728
+ stroke-dashoffset: 48;
729
+ stroke-width: 0.375rem;
730
+ }/* DO NOT CHANGE!*/
731
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
732
+ .eds-input-group {
733
+ color: inherit;
734
+ display: block;
735
+ position: relative;
736
+ }
737
+ .eds-input-group__label {
738
+ color: #656782;
739
+ display: flex;
740
+ font-size: 1rem;
741
+ position: absolute;
742
+ line-height: 1rem;
743
+ height: 3rem;
744
+ padding: 1rem;
745
+ padding-left: 0;
746
+ margin-left: 1rem;
747
+ top: -0.125rem;
748
+ 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;
749
+ user-select: none;
750
+ pointer-events: none;
751
+ }
752
+ .eds-form-control-wrapper--is-filled .eds-input-group__label {
753
+ top: calc(0.5rem - 0.125rem);
754
+ font-size: 0.75rem;
755
+ line-height: 0.75rem;
756
+ height: 10px;
757
+ padding: 0;
758
+ margin-left: 1rem;
759
+ }
760
+ .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
761
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
762
+ background: var(--textarea-label-background);
763
+ width: calc( 100% - 1rem - 1rem - 4px );
764
+ }
765
+ .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
766
+ top: 0.5rem;
767
+ font-size: 0.875rem;
768
+ line-height: 1rem;
769
+ padding: 0;
770
+ margin-left: 1rem;
771
+ }
772
+ .eds-contrast .eds-input-group__label {
773
+ color: #8285a8;
774
+ }
775
+ .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
776
+ color: #aeb7e2;
777
+ }
778
+ .eds-form-control-wrapper--size-large .eds-input-group__label {
779
+ font-size: 1.5rem;
780
+ line-height: 2.25rem;
781
+ height: 4rem;
782
+ }
783
+ .eds-input-group__label--filled {
784
+ top: calc(0.5rem - 0.125rem);
785
+ font-size: 0.75rem;
786
+ line-height: 0.75rem;
787
+ height: 10px;
788
+ padding: 0;
789
+ margin-left: 1rem;
790
+ }
791
+ .eds-textarea__label .eds-input-group__label--filled {
792
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
793
+ background: var(--textarea-label-background);
794
+ width: calc( 100% - 1rem - 1rem - 4px );
795
+ }
796
+ .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
797
+ top: 0.5rem;
798
+ font-size: 0.875rem;
799
+ line-height: 1rem;
800
+ padding: 0;
801
+ margin-left: 1rem;
802
+ }
803
+ .eds-input-group__label-tooltip-icon {
804
+ color: #0082b9;
805
+ padding-left: 0.25rem;
806
+ padding-right: 0.25rem;
807
+ display: flex;
808
+ align-items: center;
809
+ cursor: help;
810
+ font-size: 1rem;
811
+ }
812
+
813
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
814
+ top: calc(0.5rem - 0.125rem);
815
+ font-size: 0.75rem;
816
+ line-height: 0.75rem;
817
+ height: 10px;
818
+ padding: 0;
819
+ margin-left: 1rem;
820
+ }
821
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
822
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
823
+ background: var(--textarea-label-background);
824
+ width: calc( 100% - 1rem - 1rem - 4px );
825
+ }
826
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
827
+ top: 0.5rem;
828
+ font-size: 0.875rem;
829
+ line-height: 1rem;
830
+ padding: 0;
831
+ margin-left: 1rem;
814
832
  }/* DO NOT CHANGE!*/
815
833
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
816
834
  .eds-segmented-choice {
@@ -875,4 +893,14 @@ textarea.eds-form-control.eds-textarea {
875
893
  }
876
894
  .eds-contrast .eds-segmented-choice:hover input:checked + .eds-base-segmented {
877
895
  --background-color: #d1d4e3;
896
+ }/* DO NOT CHANGE!*/
897
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
898
+ .eds-segmented-control {
899
+ margin-top: 0.25rem;
900
+ display: flex;
901
+ background: #d1d4e3;
902
+ border-radius: 0.25rem;
903
+ }
904
+ .eds-contrast .eds-segmented-control {
905
+ background: #393d79;
878
906
  }