@entur/form 5.4.8-beta.3 → 5.4.8

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +808 -0
  2. package/dist/styles.css +335 -335
  3. package/package.json +11 -16
package/dist/styles.css CHANGED
@@ -2,155 +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-form-component--radio__container {
66
- display: flex;
67
- justify-content: center;
68
- align-items: center;
69
- position: relative;
70
- cursor: pointer;
71
- height: 2rem;
72
- width: -webkit-fit-content;
73
- width: -moz-fit-content;
74
- width: fit-content;
75
- -webkit-user-select: none;
76
- -moz-user-select: none;
77
- -ms-user-select: none;
78
- user-select: none;
79
- }
80
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
81
- border-color: #54568c;
82
- }
83
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
84
- background-color: #54568c;
85
- }
86
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
87
- border-color: #8285a8;
88
- }
89
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
90
- background-color: #8285a8;
91
- }
92
- .eds-form-component--radio__container input {
93
- position: absolute;
94
- opacity: 0;
95
- cursor: pointer;
96
- height: 0;
97
- width: 0;
98
- }
99
- .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
100
- height: 0.625rem;
101
- width: 0.625rem;
102
- }
103
- .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
104
- outline: none;
105
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
106
- outline-offset: 0.125rem;
107
- }
108
- .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
109
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
110
- }
111
- .eds-form-component--radio__container .eds-form-component--radio__radio {
112
- position: relative;
113
- height: 1.25rem;
114
- width: 1.25rem;
115
- margin-right: 1rem;
116
- background-color: #ffffff;
117
- border: 0.125rem solid #181c56;
118
- border-radius: 50%;
119
- display: flex;
120
- align-items: center;
121
- justify-content: center;
122
- }
123
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
124
- background-color: #181c56;
125
- border-color: #aeb7e2;
126
- }
127
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
128
- background: #d1d3d3;
129
- border-color: #d1d3d3;
130
- cursor: not-allowed;
131
- }
132
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
133
- border-color: #d1d3d3;
134
- }
135
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
136
- background: #d1d3d3;
137
- border-color: #d1d3d3;
138
- }
139
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
140
- color: #656782;
141
- }
142
- .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
143
- display: block;
144
- width: 0;
145
- height: 0;
146
- border-radius: 50%;
147
- background-color: #181c56;
148
- transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
149
- }
150
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
151
- background-color: #aeb7e2;
152
- }/* DO NOT CHANGE!*/
153
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
154
5
  .eds-checkbox__container {
155
6
  display: flex;
156
7
  align-items: center;
@@ -289,132 +140,6 @@
289
140
  }
290
141
  }/* DO NOT CHANGE!*/
291
142
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
292
- .eds-input-group {
293
- color: inherit;
294
- display: block;
295
- position: relative;
296
- }
297
- .eds-input-group__label {
298
- color: #656782;
299
- display: flex;
300
- font-size: 1rem;
301
- position: absolute;
302
- line-height: 1rem;
303
- height: 3rem;
304
- padding: 1rem;
305
- padding-left: 0;
306
- margin-left: 1rem;
307
- top: -0.125rem;
308
- 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;
309
- -webkit-user-select: none;
310
- -moz-user-select: none;
311
- -ms-user-select: none;
312
- user-select: none;
313
- pointer-events: none;
314
- }
315
- .eds-form-control-wrapper--is-filled .eds-input-group__label {
316
- top: calc(0.5rem - 0.125rem);
317
- font-size: 0.75rem;
318
- line-height: 0.75rem;
319
- height: 10px;
320
- padding: 0;
321
- margin-left: 1rem;
322
- }
323
- .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
324
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
325
- background: var(--textarea-label-background);
326
- width: calc( 100% - 1rem - 1rem - 4px );
327
- }
328
- .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
329
- top: 0.5rem;
330
- font-size: 0.875rem;
331
- line-height: 1rem;
332
- padding: 0;
333
- margin-left: 1rem;
334
- }
335
- .eds-contrast .eds-input-group__label {
336
- color: #8285a8;
337
- }
338
- .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
339
- color: #aeb7e2;
340
- }
341
- .eds-form-control-wrapper--size-large .eds-input-group__label {
342
- font-size: 1.5rem;
343
- line-height: 2.25rem;
344
- height: 4rem;
345
- }
346
- .eds-input-group__label--filled {
347
- top: calc(0.5rem - 0.125rem);
348
- font-size: 0.75rem;
349
- line-height: 0.75rem;
350
- height: 10px;
351
- padding: 0;
352
- margin-left: 1rem;
353
- }
354
- .eds-textarea__label .eds-input-group__label--filled {
355
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
356
- background: var(--textarea-label-background);
357
- width: calc( 100% - 1rem - 1rem - 4px );
358
- }
359
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
360
- top: 0.5rem;
361
- font-size: 0.875rem;
362
- line-height: 1rem;
363
- padding: 0;
364
- margin-left: 1rem;
365
- }
366
- .eds-input-group__label-tooltip-icon {
367
- color: #0082b9;
368
- padding-left: 0.25rem;
369
- padding-right: 0.25rem;
370
- display: flex;
371
- align-items: center;
372
- cursor: help;
373
- font-size: 1rem;
374
- }
375
-
376
- .eds-form-control-wrapper[focus-within] .eds-input-group__label {
377
- top: calc(0.5rem - 0.125rem);
378
- font-size: 0.75rem;
379
- line-height: 0.75rem;
380
- height: 10px;
381
- padding: 0;
382
- margin-left: 1rem;
383
- }
384
-
385
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
386
- top: calc(0.5rem - 0.125rem);
387
- font-size: 0.75rem;
388
- line-height: 0.75rem;
389
- height: 10px;
390
- padding: 0;
391
- margin-left: 1rem;
392
- }
393
- .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
394
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
395
- background: var(--textarea-label-background);
396
- width: calc( 100% - 1rem - 1rem - 4px );
397
- }
398
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
399
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
400
- background: var(--textarea-label-background);
401
- width: calc( 100% - 1rem - 1rem - 4px );
402
- }
403
- .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
404
- top: 0.5rem;
405
- font-size: 0.875rem;
406
- line-height: 1rem;
407
- padding: 0;
408
- margin-left: 1rem;
409
- }
410
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
411
- top: 0.5rem;
412
- font-size: 0.875rem;
413
- line-height: 1rem;
414
- padding: 0;
415
- margin-left: 1rem;
416
- }/* DO NOT CHANGE!*/
417
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
418
143
  .eds-form-control-wrapper {
419
144
  --border-color: #181c56;
420
145
  --border-color-hover: #aeb7e2;
@@ -641,76 +366,225 @@
641
366
  opacity: 0;
642
367
  transition: opacity 0.2s ease-in-out;
643
368
  }
644
- .eds-form-control:focus {
645
- outline: none;
369
+ .eds-form-control:focus {
370
+ outline: none;
371
+ }
372
+ .eds-form-control:focus::-moz-placeholder {
373
+ opacity: 1;
374
+ }
375
+ .eds-form-control:focus:-ms-input-placeholder {
376
+ opacity: 1;
377
+ }
378
+ .eds-form-control:focus::placeholder {
379
+ opacity: 1;
380
+ }
381
+ .eds-form-control__prepend, .eds-form-control__append {
382
+ position: relative;
383
+ margin: 0 1rem;
384
+ line-height: inherit;
385
+ }
386
+ .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
387
+ position: static;
388
+ }
389
+ .eds-form-control__prepend svg, .eds-form-control__append svg {
390
+ top: 0.125rem;
391
+ }
392
+ .eds-form-control__prepend {
393
+ margin-right: 0;
394
+ }
395
+ .eds-form-control__append {
396
+ margin-left: 0;
397
+ }/* DO NOT CHANGE!*/
398
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
399
+ textarea.eds-form-control.eds-textarea {
400
+ min-height: 7.75rem;
401
+ resize: vertical;
402
+ line-height: 1.5rem;
403
+ }/* DO NOT CHANGE!*/
404
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
405
+ .eds-fieldset {
406
+ margin: 0;
407
+ padding: 0;
408
+ border: 0;
409
+ }
410
+ .eds-fieldset .eds-legend {
411
+ margin: 0 0 0.5rem;
412
+ }/* DO NOT CHANGE!*/
413
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
414
+ .eds-textfield__clear-button {
415
+ background: none;
416
+ border: none;
417
+ border-radius: 50%;
418
+ color: inherit;
419
+ cursor: pointer;
420
+ display: flex;
421
+ font: inherit;
422
+ font-size: 1rem;
423
+ line-height: 1rem;
424
+ padding: 0.5rem;
425
+ margin-right: -0.75rem;
426
+ }
427
+ .eds-textfield__clear-button-wrapper {
428
+ display: flex;
429
+ align-items: center;
430
+ }
431
+ .eds-textfield__clear-button:hover {
432
+ background: #f3f3f3;
433
+ }
434
+ .eds-textfield__clear-button:focus {
435
+ outline: none;
436
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
437
+ }
438
+
439
+ .eds-textfield__divider {
440
+ content: "";
441
+ display: block;
442
+ background-color: #e9e9e9;
443
+ height: 1.5rem;
444
+ width: 1px;
445
+ }
446
+ .eds-contrast .eds-form-control-wrapper--disabled .eds-textfield__divider {
447
+ background-color: #8285a8;
448
+ }/* DO NOT CHANGE!*/
449
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
450
+ .eds-feedback-text {
451
+ display: flex;
452
+ align-items: center;
453
+ margin-top: 0.25rem;
454
+ }
455
+ .eds-feedback-text--info {
456
+ padding-left: calc(1rem + 0.125rem);
457
+ }
458
+ .eds-feedback-text__text {
459
+ color: #181c56;
460
+ }
461
+ .eds-contrast .eds-feedback-text__text {
462
+ color: #ffffff;
463
+ }
464
+
465
+ .eds-feedback-text__icon {
466
+ font-size: 1.5rem;
467
+ min-height: 1.5rem;
468
+ min-width: 1.5rem;
469
+ padding-right: 0.5rem;
470
+ position: relative;
471
+ top: -0.1rem;
472
+ }
473
+ .eds-feedback-text__icon--success {
474
+ color: #1a8e60;
475
+ }
476
+ .eds-contrast .eds-feedback-text__icon--success {
477
+ color: #5ac39a;
478
+ }
479
+ .eds-feedback-text__icon--error {
480
+ color: #d31b1b;
481
+ }
482
+ .eds-contrast .eds-feedback-text__icon--error {
483
+ color: #ff9494;
484
+ }
485
+ .eds-feedback-text__icon--info {
486
+ color: #0082b9;
487
+ }
488
+ .eds-contrast .eds-feedback-text__icon--info {
489
+ color: #64b3e7;
490
+ }
491
+ .eds-feedback-text__icon--warning {
492
+ color: #ffca28;
493
+ }
494
+ .eds-feedback-text__icon--warning circle {
495
+ fill: #181c56;
496
+ }
497
+ .eds-contrast .eds-feedback-text__icon--warning {
498
+ color: #ffe082;
499
+ }/* DO NOT CHANGE!*/
500
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
501
+ .eds-form-component--radio__container {
502
+ display: flex;
503
+ justify-content: center;
504
+ align-items: center;
505
+ position: relative;
506
+ cursor: pointer;
507
+ height: 2rem;
508
+ width: -webkit-fit-content;
509
+ width: -moz-fit-content;
510
+ width: fit-content;
511
+ -webkit-user-select: none;
512
+ -moz-user-select: none;
513
+ -ms-user-select: none;
514
+ user-select: none;
515
+ }
516
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
517
+ border-color: #54568c;
646
518
  }
647
- .eds-form-control:focus::-moz-placeholder {
648
- opacity: 1;
519
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
520
+ background-color: #54568c;
649
521
  }
650
- .eds-form-control:focus:-ms-input-placeholder {
651
- opacity: 1;
522
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
523
+ border-color: #8285a8;
652
524
  }
653
- .eds-form-control:focus::placeholder {
654
- opacity: 1;
525
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
526
+ background-color: #8285a8;
655
527
  }
656
- .eds-form-control__prepend, .eds-form-control__append {
657
- position: relative;
658
- margin: 0 1rem;
659
- line-height: inherit;
528
+ .eds-form-component--radio__container input {
529
+ position: absolute;
530
+ opacity: 0;
531
+ cursor: pointer;
532
+ height: 0;
533
+ width: 0;
660
534
  }
661
- .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
662
- position: static;
535
+ .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
536
+ height: 0.625rem;
537
+ width: 0.625rem;
663
538
  }
664
- .eds-form-control__prepend svg, .eds-form-control__append svg {
665
- top: 0.125rem;
539
+ .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
540
+ outline: none;
541
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
542
+ outline-offset: 0.125rem;
666
543
  }
667
- .eds-form-control__prepend {
668
- margin-right: 0;
544
+ .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
545
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
669
546
  }
670
- .eds-form-control__append {
671
- margin-left: 0;
672
- }/* DO NOT CHANGE!*/
673
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
674
- textarea.eds-form-control.eds-textarea {
675
- min-height: 7.75rem;
676
- resize: vertical;
677
- line-height: 1.5rem;
678
- }/* DO NOT CHANGE!*/
679
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
680
- .eds-textfield__clear-button {
681
- background: none;
682
- border: none;
547
+ .eds-form-component--radio__container .eds-form-component--radio__radio {
548
+ position: relative;
549
+ height: 1.25rem;
550
+ width: 1.25rem;
551
+ margin-right: 1rem;
552
+ background-color: #ffffff;
553
+ border: 0.125rem solid #181c56;
683
554
  border-radius: 50%;
684
- color: inherit;
685
- cursor: pointer;
686
- display: flex;
687
- font: inherit;
688
- font-size: 1rem;
689
- line-height: 1rem;
690
- padding: 0.5rem;
691
- margin-right: -0.75rem;
692
- }
693
- .eds-textfield__clear-button-wrapper {
694
555
  display: flex;
695
556
  align-items: center;
557
+ justify-content: center;
696
558
  }
697
- .eds-textfield__clear-button:hover {
698
- background: #f3f3f3;
559
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
560
+ background-color: #181c56;
561
+ border-color: #aeb7e2;
699
562
  }
700
- .eds-textfield__clear-button:focus {
701
- outline: none;
702
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
563
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
564
+ background: #d1d3d3;
565
+ border-color: #d1d3d3;
566
+ cursor: not-allowed;
703
567
  }
704
-
705
- .eds-textfield__divider {
706
- content: "";
568
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
569
+ border-color: #d1d3d3;
570
+ }
571
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
572
+ background: #d1d3d3;
573
+ border-color: #d1d3d3;
574
+ }
575
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
576
+ color: #656782;
577
+ }
578
+ .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
707
579
  display: block;
708
- background-color: #e9e9e9;
709
- height: 1.5rem;
710
- width: 1px;
580
+ width: 0;
581
+ height: 0;
582
+ border-radius: 50%;
583
+ background-color: #181c56;
584
+ transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
711
585
  }
712
- .eds-contrast .eds-form-control-wrapper--disabled .eds-textfield__divider {
713
- background-color: #8285a8;
586
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
587
+ background-color: #aeb7e2;
714
588
  }/* DO NOT CHANGE!*/
715
589
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
716
590
  .eds-switch {
@@ -967,14 +841,130 @@ textarea.eds-form-control.eds-textarea {
967
841
  stroke-width: 0.375rem;
968
842
  }/* DO NOT CHANGE!*/
969
843
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
970
- .eds-segmented-control {
971
- margin-top: 0.25rem;
844
+ .eds-input-group {
845
+ color: inherit;
846
+ display: block;
847
+ position: relative;
848
+ }
849
+ .eds-input-group__label {
850
+ color: #656782;
972
851
  display: flex;
973
- background: #d1d4e3;
974
- border-radius: 0.25rem;
852
+ font-size: 1rem;
853
+ position: absolute;
854
+ line-height: 1rem;
855
+ height: 3rem;
856
+ padding: 1rem;
857
+ padding-left: 0;
858
+ margin-left: 1rem;
859
+ top: -0.125rem;
860
+ 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;
861
+ -webkit-user-select: none;
862
+ -moz-user-select: none;
863
+ -ms-user-select: none;
864
+ user-select: none;
865
+ pointer-events: none;
975
866
  }
976
- .eds-contrast .eds-segmented-control {
977
- background: #393d79;
867
+ .eds-form-control-wrapper--is-filled .eds-input-group__label {
868
+ top: calc(0.5rem - 0.125rem);
869
+ font-size: 0.75rem;
870
+ line-height: 0.75rem;
871
+ height: 10px;
872
+ padding: 0;
873
+ margin-left: 1rem;
874
+ }
875
+ .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
876
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
877
+ background: var(--textarea-label-background);
878
+ width: calc( 100% - 1rem - 1rem - 4px );
879
+ }
880
+ .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
881
+ top: 0.5rem;
882
+ font-size: 0.875rem;
883
+ line-height: 1rem;
884
+ padding: 0;
885
+ margin-left: 1rem;
886
+ }
887
+ .eds-contrast .eds-input-group__label {
888
+ color: #8285a8;
889
+ }
890
+ .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
891
+ color: #aeb7e2;
892
+ }
893
+ .eds-form-control-wrapper--size-large .eds-input-group__label {
894
+ font-size: 1.5rem;
895
+ line-height: 2.25rem;
896
+ height: 4rem;
897
+ }
898
+ .eds-input-group__label--filled {
899
+ top: calc(0.5rem - 0.125rem);
900
+ font-size: 0.75rem;
901
+ line-height: 0.75rem;
902
+ height: 10px;
903
+ padding: 0;
904
+ margin-left: 1rem;
905
+ }
906
+ .eds-textarea__label .eds-input-group__label--filled {
907
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
908
+ background: var(--textarea-label-background);
909
+ width: calc( 100% - 1rem - 1rem - 4px );
910
+ }
911
+ .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
912
+ top: 0.5rem;
913
+ font-size: 0.875rem;
914
+ line-height: 1rem;
915
+ padding: 0;
916
+ margin-left: 1rem;
917
+ }
918
+ .eds-input-group__label-tooltip-icon {
919
+ color: #0082b9;
920
+ padding-left: 0.25rem;
921
+ padding-right: 0.25rem;
922
+ display: flex;
923
+ align-items: center;
924
+ cursor: help;
925
+ font-size: 1rem;
926
+ }
927
+
928
+ .eds-form-control-wrapper[focus-within] .eds-input-group__label {
929
+ top: calc(0.5rem - 0.125rem);
930
+ font-size: 0.75rem;
931
+ line-height: 0.75rem;
932
+ height: 10px;
933
+ padding: 0;
934
+ margin-left: 1rem;
935
+ }
936
+
937
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
938
+ top: calc(0.5rem - 0.125rem);
939
+ font-size: 0.75rem;
940
+ line-height: 0.75rem;
941
+ height: 10px;
942
+ padding: 0;
943
+ margin-left: 1rem;
944
+ }
945
+ .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
946
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
947
+ background: var(--textarea-label-background);
948
+ width: calc( 100% - 1rem - 1rem - 4px );
949
+ }
950
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
951
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
952
+ background: var(--textarea-label-background);
953
+ width: calc( 100% - 1rem - 1rem - 4px );
954
+ }
955
+ .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
956
+ top: 0.5rem;
957
+ font-size: 0.875rem;
958
+ line-height: 1rem;
959
+ padding: 0;
960
+ margin-left: 1rem;
961
+ }
962
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
963
+ top: 0.5rem;
964
+ font-size: 0.875rem;
965
+ line-height: 1rem;
966
+ padding: 0;
967
+ margin-left: 1rem;
978
968
  }/* DO NOT CHANGE!*/
979
969
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
980
970
  .eds-segmented-choice {
@@ -1044,4 +1034,14 @@ textarea.eds-form-control.eds-textarea {
1044
1034
  }
1045
1035
  .eds-contrast .eds-segmented-choice:hover input:checked + .eds-base-segmented {
1046
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;
1044
+ }
1045
+ .eds-contrast .eds-segmented-control {
1046
+ background: #393d79;
1047
1047
  }