@entur/form 8.1.0-RC.0 → 8.1.0-RC.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.
Files changed (2) hide show
  1. package/dist/styles.css +298 -298
  2. package/package.json +6 -6
package/dist/styles.css CHANGED
@@ -1,3 +1,81 @@
1
+ .eds-fieldset {
2
+ margin: 0;
3
+ padding: 0;
4
+ border: 0;
5
+ }
6
+ /* DO NOT CHANGE!*/
7
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
8
+ .eds-feedback-text {
9
+ display: flex;
10
+ align-items: center;
11
+ margin-top: 0.25rem;
12
+ }
13
+ .eds-feedback-text--info, .eds-feedback-text--information {
14
+ padding-left: calc(1rem + 0.125rem);
15
+ }
16
+ .eds-feedback-text__text {
17
+ color: var(--components-form-feedbacktext-information-standard-text);
18
+ }
19
+ .eds-contrast .eds-feedback-text__text {
20
+ color: var(--components-form-feedbacktext-information-contrast-text);
21
+ }
22
+
23
+ .eds-feedback-text__icon {
24
+ font-size: 1.5rem;
25
+ min-height: 1.5rem;
26
+ min-width: 1.5rem;
27
+ padding-right: 0.5rem;
28
+ position: relative;
29
+ top: -0.1rem;
30
+ }
31
+ .eds-feedback-text__icon--success {
32
+ color: var(--components-form-feedbacktext-success-standard-icon-fill);
33
+ }
34
+ .eds-feedback-text__icon--success circle {
35
+ fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
36
+ }
37
+ .eds-contrast .eds-feedback-text__icon--success {
38
+ color: var(--components-form-feedbacktext-success-contrast-icon-fill);
39
+ }
40
+ .eds-contrast .eds-feedback-text__icon--success circle {
41
+ fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
42
+ }
43
+ .eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
44
+ color: var(--components-form-feedbacktext-negative-standard-icon-fill);
45
+ }
46
+ .eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
47
+ fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
48
+ }
49
+ .eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
50
+ color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
51
+ }
52
+ .eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
53
+ fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
54
+ }
55
+ .eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
56
+ color: var(--components-form-feedbacktext-information-standard-icon-fill);
57
+ }
58
+ .eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
59
+ fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
60
+ }
61
+ .eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
62
+ color: var(--components-form-feedbacktext-information-contrast-icon-fill);
63
+ }
64
+ .eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
65
+ fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
66
+ }
67
+ .eds-feedback-text__icon--warning {
68
+ color: var(--components-form-feedbacktext-warning-standard-icon-fill);
69
+ }
70
+ .eds-feedback-text__icon--warning .svg-exclamation {
71
+ fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
72
+ }
73
+ .eds-contrast .eds-feedback-text__icon--warning {
74
+ color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
75
+ }
76
+ .eds-contrast .eds-feedback-text__icon--warning circle {
77
+ fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
78
+ }
1
79
  /* DO NOT CHANGE!*/
2
80
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
81
  .eds-checkbox__container {
@@ -153,11 +231,6 @@
153
231
  stroke-dashoffset: 0;
154
232
  }
155
233
  }
156
- .eds-fieldset {
157
- margin: 0;
158
- padding: 0;
159
- border: 0;
160
- }
161
234
  /* DO NOT CHANGE!*/
162
235
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
163
236
  .eds-form-control__field-and-feedback-text {
@@ -369,128 +442,146 @@
369
442
  }
370
443
  /* DO NOT CHANGE!*/
371
444
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
372
- .eds-input-group {
373
- color: inherit;
374
- display: block;
375
- position: relative;
376
- }
377
- .eds-input-group__label {
378
- color: var(--components-form-baseform-standard-text-label);
379
- display: flex;
380
- font-size: 1rem;
381
- position: absolute;
382
- line-height: 1rem;
383
- height: 3rem;
384
- padding-left: 0;
385
- top: 1rem;
386
- 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;
445
+ .eds-switch {
446
+ cursor: pointer;
387
447
  -webkit-user-select: none;
388
448
  -moz-user-select: none;
389
449
  user-select: none;
450
+ padding: 0.5rem 0;
451
+ width: -moz-fit-content;
452
+ width: fit-content;
453
+ }
454
+ .eds-switch input {
455
+ opacity: 0;
390
456
  pointer-events: none;
457
+ position: absolute;
391
458
  }
392
- .eds-form-control-wrapper--is-filled .eds-input-group__label {
393
- top: 0.375rem;
394
- font-size: 0.75rem;
395
- line-height: 0.75rem;
396
- height: 10px;
397
- padding: 0;
459
+ .eds-switch--right {
460
+ display: flex;
461
+ flex-direction: row;
462
+ align-items: center;
398
463
  }
399
- .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
400
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
401
- background: var(--textarea-label-background);
402
- width: calc(100% - 1rem - 1rem - 4px);
464
+ .eds-switch--bottom {
465
+ display: flex;
466
+ flex-direction: column;
467
+ align-items: center;
403
468
  }
404
- .eds-form-control-wrapper--is-filled.eds-form-control-wrapper--size-large .eds-input-group__label {
405
- top: 0.5rem;
406
- font-size: 0.875rem;
407
- line-height: 1rem;
408
- padding: 0;
469
+ .eds-switch__circle {
470
+ border-radius: 50%;
471
+ height: 1.25rem;
472
+ width: 1.25rem;
473
+ content: "";
474
+ display: flex;
475
+ align-items: center;
476
+ justify-content: center;
477
+ transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
478
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
479
+ background-color: var(--components-form-switch-standard-switch);
480
+ top: 0.125rem;
481
+ left: 0.125rem;
482
+ position: relative;
409
483
  }
410
- .eds-form-control-wrapper--size-large .eds-input-group__label {
411
- top: 0.75rem;
412
- font-size: 1.5rem;
413
- line-height: 2.25rem;
484
+ .eds-switch__switch--large .eds-switch__circle {
485
+ height: 1.75rem;
486
+ width: 1.75rem;
414
487
  }
415
- .eds-input-group__label--filled {
416
- top: 0.375rem;
417
- font-size: 0.75rem;
418
- line-height: 0.75rem;
419
- height: 10px;
420
- padding: 0;
488
+ .eds-contrast .eds-switch__circle {
489
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
421
490
  }
422
- .eds-textarea__label .eds-input-group__label--filled {
423
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
424
- background: var(--textarea-label-background);
425
- width: calc(100% - 1rem - 1rem - 4px);
491
+ .eds-switch__switch {
492
+ position: relative;
493
+ background-color: var(--components-form-switch-standard-fill-false);
494
+ content: "";
495
+ display: block;
496
+ transition: background-color 0.1s ease-in-out;
497
+ height: 1.5rem;
498
+ width: 3rem;
499
+ border-radius: 1.5rem;
500
+ box-shadow: inset 0px 2px 2px -1px rgba(0, 0, 0, 0.1);
426
501
  }
427
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
428
- top: 0.5rem;
429
- font-size: 0.875rem;
430
- line-height: 1rem;
431
- padding: 0;
502
+ .eds-contrast .eds-switch__switch {
503
+ background-color: var(--components-form-switch-contrast-fill-false);
432
504
  }
433
-
434
- .eds-form-control-wrapper[focus-within] .eds-input-group__label {
435
- top: 0.375rem;
436
- font-size: 0.75rem;
437
- line-height: 0.75rem;
438
- height: 10px;
439
- padding: 0;
505
+ .eds-switch--right .eds-switch__switch {
506
+ margin-right: 0.75rem;
440
507
  }
441
-
442
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
443
- top: 0.375rem;
444
- font-size: 0.75rem;
445
- line-height: 0.75rem;
446
- height: 10px;
447
- padding: 0;
508
+ .eds-switch__switch svg g,
509
+ .eds-switch__switch path {
510
+ fill: var(--components-form-switch-standard-icon-false);
511
+ transition: fill ease-in-out 0.1s;
448
512
  }
449
- .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
450
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
451
- background: var(--textarea-label-background);
452
- width: calc(100% - 1rem - 1rem - 4px);
513
+ .eds-contrast .eds-switch__switch svg g,
514
+ .eds-contrast .eds-switch__switch path {
515
+ fill: var(--components-form-switch-contrast-icon-false);
453
516
  }
454
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
455
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
456
- background: var(--textarea-label-background);
457
- width: calc(100% - 1rem - 1rem - 4px);
517
+ :checked + .eds-switch__switch {
518
+ background-color: var(--eds-switch-color);
458
519
  }
459
- .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
460
- top: 0.5rem;
461
- font-size: 0.875rem;
462
- line-height: 1rem;
463
- padding: 0;
520
+ :checked + .eds-switch__switch .eds-switch__circle {
521
+ left: 1.625rem;
464
522
  }
465
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
466
- top: 0.5rem;
467
- font-size: 0.875rem;
468
- line-height: 1rem;
469
- padding: 0;
523
+ :checked + .eds-switch__switch .eds-switch__circle svg g,
524
+ :checked + .eds-switch__switch .eds-switch__circle path {
525
+ fill: var(--eds-switch-color);
470
526
  }
471
- /* DO NOT CHANGE!*/
472
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
473
- .eds-form-component--radio__container {
474
- display: flex;
475
- justify-content: center;
476
- align-items: center;
477
- position: relative;
478
- cursor: pointer;
479
- height: 2rem;
480
- width: -moz-fit-content;
481
- width: fit-content;
482
- -webkit-user-select: none;
483
- -moz-user-select: none;
484
- user-select: none;
527
+ .eds-contrast :checked + .eds-switch__switch {
528
+ background-color: var(--eds-switch-contrast-color);
485
529
  }
486
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
487
- background-color: var(--components-form-radio-standard-fill-hover);
530
+ :focus + .eds-switch__switch {
531
+ outline: 2px solid #181c56;
532
+ outline-color: var(--basecolors-stroke-focus-standard);
533
+ outline-offset: 0.125rem;
488
534
  }
489
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
490
- background-color: var(--components-form-radio-contrast-fill-hover);
535
+ .eds-contrast :focus + .eds-switch__switch {
536
+ outline-color: var(--basecolors-stroke-focus-contrast);
491
537
  }
492
- .eds-form-component--radio__container input {
493
- position: absolute;
538
+ .eds-switch__switch--large {
539
+ width: 3.75rem;
540
+ height: 2rem;
541
+ border-radius: 3.75rem;
542
+ }
543
+ :checked + .eds-switch__switch--large .eds-switch__circle {
544
+ left: 1.875rem;
545
+ }
546
+ .eds-switch__switch--large svg {
547
+ position: relative;
548
+ right: 0.05rem;
549
+ }
550
+ .eds-switch__label--large--right {
551
+ font-size: 1rem;
552
+ }
553
+ .eds-switch__label--large--bottom {
554
+ font-size: 0.875rem;
555
+ }
556
+ .eds-switch__label--medium--right {
557
+ font-size: 0.875rem;
558
+ }
559
+ .eds-switch__label--medium--bottom {
560
+ font-size: 0.75rem;
561
+ }
562
+ /* DO NOT CHANGE!*/
563
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
564
+ .eds-form-component--radio__container {
565
+ display: flex;
566
+ justify-content: center;
567
+ align-items: center;
568
+ position: relative;
569
+ cursor: pointer;
570
+ height: 2rem;
571
+ width: -moz-fit-content;
572
+ width: fit-content;
573
+ -webkit-user-select: none;
574
+ -moz-user-select: none;
575
+ user-select: none;
576
+ }
577
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
578
+ background-color: var(--components-form-radio-standard-fill-hover);
579
+ }
580
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
581
+ background-color: var(--components-form-radio-contrast-fill-hover);
582
+ }
583
+ .eds-form-component--radio__container input {
584
+ position: absolute;
494
585
  opacity: 0;
495
586
  cursor: pointer;
496
587
  height: 0;
@@ -552,198 +643,6 @@
552
643
  }
553
644
  /* DO NOT CHANGE!*/
554
645
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
555
- .eds-feedback-text {
556
- display: flex;
557
- align-items: center;
558
- margin-top: 0.25rem;
559
- }
560
- .eds-feedback-text--info, .eds-feedback-text--information {
561
- padding-left: calc(1rem + 0.125rem);
562
- }
563
- .eds-feedback-text__text {
564
- color: var(--components-form-feedbacktext-information-standard-text);
565
- }
566
- .eds-contrast .eds-feedback-text__text {
567
- color: var(--components-form-feedbacktext-information-contrast-text);
568
- }
569
-
570
- .eds-feedback-text__icon {
571
- font-size: 1.5rem;
572
- min-height: 1.5rem;
573
- min-width: 1.5rem;
574
- padding-right: 0.5rem;
575
- position: relative;
576
- top: -0.1rem;
577
- }
578
- .eds-feedback-text__icon--success {
579
- color: var(--components-form-feedbacktext-success-standard-icon-fill);
580
- }
581
- .eds-feedback-text__icon--success circle {
582
- fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
583
- }
584
- .eds-contrast .eds-feedback-text__icon--success {
585
- color: var(--components-form-feedbacktext-success-contrast-icon-fill);
586
- }
587
- .eds-contrast .eds-feedback-text__icon--success circle {
588
- fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
589
- }
590
- .eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
591
- color: var(--components-form-feedbacktext-negative-standard-icon-fill);
592
- }
593
- .eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
594
- fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
595
- }
596
- .eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
597
- color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
598
- }
599
- .eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
600
- fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
601
- }
602
- .eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
603
- color: var(--components-form-feedbacktext-information-standard-icon-fill);
604
- }
605
- .eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
606
- fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
607
- }
608
- .eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
609
- color: var(--components-form-feedbacktext-information-contrast-icon-fill);
610
- }
611
- .eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
612
- fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
613
- }
614
- .eds-feedback-text__icon--warning {
615
- color: var(--components-form-feedbacktext-warning-standard-icon-fill);
616
- }
617
- .eds-feedback-text__icon--warning .svg-exclamation {
618
- fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
619
- }
620
- .eds-contrast .eds-feedback-text__icon--warning {
621
- color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
622
- }
623
- .eds-contrast .eds-feedback-text__icon--warning circle {
624
- fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
625
- }
626
- /* DO NOT CHANGE!*/
627
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
628
- .eds-switch {
629
- cursor: pointer;
630
- -webkit-user-select: none;
631
- -moz-user-select: none;
632
- user-select: none;
633
- padding: 0.5rem 0;
634
- width: -moz-fit-content;
635
- width: fit-content;
636
- }
637
- .eds-switch input {
638
- opacity: 0;
639
- pointer-events: none;
640
- position: absolute;
641
- }
642
- .eds-switch--right {
643
- display: flex;
644
- flex-direction: row;
645
- align-items: center;
646
- }
647
- .eds-switch--bottom {
648
- display: flex;
649
- flex-direction: column;
650
- align-items: center;
651
- }
652
- .eds-switch__circle {
653
- border-radius: 50%;
654
- height: 1.25rem;
655
- width: 1.25rem;
656
- content: "";
657
- display: flex;
658
- align-items: center;
659
- justify-content: center;
660
- transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
661
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
662
- background-color: var(--components-form-switch-standard-switch);
663
- top: 0.125rem;
664
- left: 0.125rem;
665
- position: relative;
666
- }
667
- .eds-switch__switch--large .eds-switch__circle {
668
- height: 1.75rem;
669
- width: 1.75rem;
670
- }
671
- .eds-contrast .eds-switch__circle {
672
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
673
- }
674
- .eds-switch__switch {
675
- position: relative;
676
- background-color: var(--components-form-switch-standard-fill-false);
677
- content: "";
678
- display: block;
679
- transition: background-color 0.1s ease-in-out;
680
- height: 1.5rem;
681
- width: 3rem;
682
- border-radius: 1.5rem;
683
- box-shadow: inset 0px 2px 2px -1px rgba(0, 0, 0, 0.1);
684
- }
685
- .eds-contrast .eds-switch__switch {
686
- background-color: var(--components-form-switch-contrast-fill-false);
687
- }
688
- .eds-switch--right .eds-switch__switch {
689
- margin-right: 0.75rem;
690
- }
691
- .eds-switch__switch svg g,
692
- .eds-switch__switch path {
693
- fill: var(--components-form-switch-standard-icon-false);
694
- transition: fill ease-in-out 0.1s;
695
- }
696
- .eds-contrast .eds-switch__switch svg g,
697
- .eds-contrast .eds-switch__switch path {
698
- fill: var(--components-form-switch-contrast-icon-false);
699
- }
700
- :checked + .eds-switch__switch {
701
- background-color: var(--eds-switch-color);
702
- }
703
- :checked + .eds-switch__switch .eds-switch__circle {
704
- left: 1.625rem;
705
- }
706
- :checked + .eds-switch__switch .eds-switch__circle svg g,
707
- :checked + .eds-switch__switch .eds-switch__circle path {
708
- fill: var(--eds-switch-color);
709
- }
710
- .eds-contrast :checked + .eds-switch__switch {
711
- background-color: var(--eds-switch-contrast-color);
712
- }
713
- :focus + .eds-switch__switch {
714
- outline: 2px solid #181c56;
715
- outline-color: var(--basecolors-stroke-focus-standard);
716
- outline-offset: 0.125rem;
717
- }
718
- .eds-contrast :focus + .eds-switch__switch {
719
- outline-color: var(--basecolors-stroke-focus-contrast);
720
- }
721
- .eds-switch__switch--large {
722
- width: 3.75rem;
723
- height: 2rem;
724
- border-radius: 3.75rem;
725
- }
726
- :checked + .eds-switch__switch--large .eds-switch__circle {
727
- left: 1.875rem;
728
- }
729
- .eds-switch__switch--large svg {
730
- position: relative;
731
- right: 0.05rem;
732
- }
733
- .eds-switch__label--large--right {
734
- font-size: 1rem;
735
- }
736
- .eds-switch__label--large--bottom {
737
- font-size: 0.875rem;
738
- }
739
- .eds-switch__label--medium--right {
740
- font-size: 0.875rem;
741
- }
742
- .eds-switch__label--medium--bottom {
743
- font-size: 0.75rem;
744
- }
745
- /* DO NOT CHANGE!*/
746
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
747
646
  .eds-input-panel[focus-within] .eds-input-panel__container {
748
647
  outline: 2px solid #181c56;
749
648
  outline-color: var(--basecolors-stroke-focus-standard);
@@ -900,6 +799,107 @@ input:disabled + .eds-input-panel__container {
900
799
  }
901
800
  /* DO NOT CHANGE!*/
902
801
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
802
+ .eds-input-group {
803
+ color: inherit;
804
+ display: block;
805
+ position: relative;
806
+ }
807
+ .eds-input-group__label {
808
+ color: var(--components-form-baseform-standard-text-label);
809
+ display: flex;
810
+ font-size: 1rem;
811
+ position: absolute;
812
+ line-height: 1rem;
813
+ height: 3rem;
814
+ padding-left: 0;
815
+ top: 1rem;
816
+ 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;
817
+ -webkit-user-select: none;
818
+ -moz-user-select: none;
819
+ user-select: none;
820
+ pointer-events: none;
821
+ }
822
+ .eds-form-control-wrapper--is-filled .eds-input-group__label {
823
+ top: 0.375rem;
824
+ font-size: 0.75rem;
825
+ line-height: 0.75rem;
826
+ height: 10px;
827
+ padding: 0;
828
+ }
829
+ .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
830
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
831
+ background: var(--textarea-label-background);
832
+ width: calc(100% - 1rem - 1rem - 4px);
833
+ }
834
+ .eds-form-control-wrapper--is-filled.eds-form-control-wrapper--size-large .eds-input-group__label {
835
+ top: 0.5rem;
836
+ font-size: 0.875rem;
837
+ line-height: 1rem;
838
+ padding: 0;
839
+ }
840
+ .eds-form-control-wrapper--size-large .eds-input-group__label {
841
+ top: 0.75rem;
842
+ font-size: 1.5rem;
843
+ line-height: 2.25rem;
844
+ }
845
+ .eds-input-group__label--filled {
846
+ top: 0.375rem;
847
+ font-size: 0.75rem;
848
+ line-height: 0.75rem;
849
+ height: 10px;
850
+ padding: 0;
851
+ }
852
+ .eds-textarea__label .eds-input-group__label--filled {
853
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
854
+ background: var(--textarea-label-background);
855
+ width: calc(100% - 1rem - 1rem - 4px);
856
+ }
857
+ .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
858
+ top: 0.5rem;
859
+ font-size: 0.875rem;
860
+ line-height: 1rem;
861
+ padding: 0;
862
+ }
863
+
864
+ .eds-form-control-wrapper[focus-within] .eds-input-group__label {
865
+ top: 0.375rem;
866
+ font-size: 0.75rem;
867
+ line-height: 0.75rem;
868
+ height: 10px;
869
+ padding: 0;
870
+ }
871
+
872
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
873
+ top: 0.375rem;
874
+ font-size: 0.75rem;
875
+ line-height: 0.75rem;
876
+ height: 10px;
877
+ padding: 0;
878
+ }
879
+ .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
880
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
881
+ background: var(--textarea-label-background);
882
+ width: calc(100% - 1rem - 1rem - 4px);
883
+ }
884
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
885
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
886
+ background: var(--textarea-label-background);
887
+ width: calc(100% - 1rem - 1rem - 4px);
888
+ }
889
+ .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
890
+ top: 0.5rem;
891
+ font-size: 0.875rem;
892
+ line-height: 1rem;
893
+ padding: 0;
894
+ }
895
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
896
+ top: 0.5rem;
897
+ font-size: 0.875rem;
898
+ line-height: 1rem;
899
+ padding: 0;
900
+ }
901
+ /* DO NOT CHANGE!*/
902
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
903
903
  textarea.eds-form-control.eds-textarea {
904
904
  min-height: 7.75rem;
905
905
  resize: vertical;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/form",
3
- "version": "8.1.0-RC.0",
3
+ "version": "8.1.0-RC.1",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/form.esm.js",
@@ -27,12 +27,12 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/icons": "^7.3.0-RC.0",
30
+ "@entur/icons": "^7.3.0-RC.1",
31
31
  "@entur/tokens": "^3.17.0",
32
- "@entur/tooltip": "^4.0.0-RC.0",
33
- "@entur/typography": "^1.8.44-RC.0",
34
- "@entur/utils": "^0.11.2-RC.0",
32
+ "@entur/tooltip": "^4.0.0-RC.1",
33
+ "@entur/typography": "^1.8.44-RC.1",
34
+ "@entur/utils": "^0.11.2-RC.1",
35
35
  "classnames": "^2.3.1"
36
36
  },
37
- "gitHead": "f279e609e10d40dd3ff47b09bd2828edf2bbcb7b"
37
+ "gitHead": "d7b4d04bcbef5d3861b802b0a6af3f36a91a4118"
38
38
  }