@entur/form 8.2.0 → 8.2.1-beta.0

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 +438 -438
  2. package/package.json +6 -6
package/dist/styles.css CHANGED
@@ -1,3 +1,8 @@
1
+ .eds-fieldset {
2
+ margin: 0;
3
+ padding: 0;
4
+ border: 0;
5
+ }
1
6
  /* DO NOT CHANGE!*/
2
7
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
8
  .eds-checkbox__container {
@@ -141,93 +146,6 @@
141
146
  stroke-dashoffset: 0;
142
147
  }
143
148
  }
144
- .eds-fieldset {
145
- margin: 0;
146
- padding: 0;
147
- border: 0;
148
- }
149
- /* DO NOT CHANGE!*/
150
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
151
- .eds-form-component--radio__container {
152
- display: flex;
153
- justify-content: center;
154
- align-items: center;
155
- position: relative;
156
- cursor: pointer;
157
- height: 2rem;
158
- width: -moz-fit-content;
159
- width: fit-content;
160
- -webkit-user-select: none;
161
- -moz-user-select: none;
162
- user-select: none;
163
- }
164
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
165
- background-color: var(--components-form-radio-standard-fill-hover);
166
- }
167
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
168
- background-color: var(--components-form-radio-contrast-fill-hover);
169
- }
170
- .eds-form-component--radio__container input {
171
- position: absolute;
172
- opacity: 0;
173
- cursor: pointer;
174
- height: 0;
175
- width: 0;
176
- }
177
- .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
178
- height: 0.625rem;
179
- width: 0.625rem;
180
- }
181
- .eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
182
- outline: 2px solid #181c56;
183
- outline-color: var(--basecolors-stroke-focus-standard);
184
- outline-offset: 0.125rem;
185
- }
186
- .eds-contrast .eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
187
- outline-color: var(--basecolors-stroke-focus-contrast);
188
- }
189
- .eds-form-component--radio__container .eds-form-component--radio__radio {
190
- position: relative;
191
- height: 1.25rem;
192
- width: 1.25rem;
193
- margin-right: 1rem;
194
- background-color: var(--components-form-radio-standard-fill-default);
195
- border: 0.125rem solid var(--components-form-radio-standard-border);
196
- border-radius: 50%;
197
- display: flex;
198
- align-items: center;
199
- justify-content: center;
200
- }
201
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
202
- background-color: var(--components-form-radio-contrast-fill-default);
203
- border-color: var(--components-form-radio-contrast-border);
204
- }
205
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
206
- background: var(--components-form-baseform-contrast-fill-disabled);
207
- border-color: var(--components-form-baseform-contrast-text-disabled);
208
- cursor: not-allowed;
209
- }
210
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
211
- border-color: var(--components-form-baseform-contrast-text-disabled);
212
- }
213
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
214
- background: var(--components-form-baseform-contrast-fill-disabled);
215
- border-color: var(--components-form-baseform-contrast-text-disabled);
216
- }
217
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
218
- color: var(--components-form-baseform-contrast-text-disabled);
219
- }
220
- .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
221
- display: block;
222
- width: 0;
223
- height: 0;
224
- border-radius: 50%;
225
- background-color: var(--components-form-radio-standard-fill-selected);
226
- transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
227
- }
228
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
229
- background-color: var(--components-form-radio-contrast-icon);
230
- }
231
149
  /* DO NOT CHANGE!*/
232
150
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
233
151
  .eds-feedback-text {
@@ -303,88 +221,6 @@
303
221
  }
304
222
  /* DO NOT CHANGE!*/
305
223
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
306
- .eds-input-group {
307
- color: inherit;
308
- display: block;
309
- position: relative;
310
- }
311
- .eds-input-group__label {
312
- color: var(--components-form-baseform-standard-text-label);
313
- display: flex;
314
- font-size: 1rem;
315
- position: absolute;
316
- line-height: 1rem;
317
- height: 3rem;
318
- padding-left: 0;
319
- top: 1rem;
320
- 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;
321
- -webkit-user-select: none;
322
- -moz-user-select: none;
323
- user-select: none;
324
- pointer-events: none;
325
- }
326
- .eds-form-control-wrapper--is-filled .eds-input-group__label {
327
- top: 0.375rem;
328
- font-size: 0.75rem;
329
- line-height: 0.75rem;
330
- height: 10px;
331
- padding: 0;
332
- }
333
- .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
334
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
335
- background: var(--textarea-label-background);
336
- width: calc(100% - 1rem - 1rem - 4px);
337
- }
338
- .eds-form-control-wrapper--is-filled.eds-form-control-wrapper--size-large .eds-input-group__label {
339
- top: 0.5rem;
340
- font-size: 0.875rem;
341
- line-height: 1rem;
342
- padding: 0;
343
- }
344
- .eds-form-control-wrapper--size-large .eds-input-group__label {
345
- top: 0.75rem;
346
- font-size: 1.5rem;
347
- line-height: 2.25rem;
348
- }
349
- .eds-input-group__label--filled {
350
- top: 0.375rem;
351
- font-size: 0.75rem;
352
- line-height: 0.75rem;
353
- height: 10px;
354
- padding: 0;
355
- }
356
- .eds-textarea__label .eds-input-group__label--filled {
357
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
358
- background: var(--textarea-label-background);
359
- width: calc(100% - 1rem - 1rem - 4px);
360
- }
361
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
362
- top: 0.5rem;
363
- font-size: 0.875rem;
364
- line-height: 1rem;
365
- padding: 0;
366
- }
367
-
368
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
369
- top: 0.375rem;
370
- font-size: 0.75rem;
371
- line-height: 0.75rem;
372
- height: 10px;
373
- padding: 0;
374
- }
375
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
376
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
377
- background: var(--textarea-label-background);
378
- width: calc(100% - 1rem - 1rem - 4px);
379
- }
380
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
381
- top: 0.5rem;
382
- font-size: 0.875rem;
383
- line-height: 1rem;
384
- padding: 0;
385
- }
386
- /* DO NOT CHANGE!*/
387
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
388
224
  .eds-form-control__field-and-feedback-text {
389
225
  display: flex;
390
226
  flex-direction: column;
@@ -579,168 +415,86 @@
579
415
  }
580
416
  /* DO NOT CHANGE!*/
581
417
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
582
- /* DO NOT CHANGE!*/
583
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
584
- /* DO NOT CHANGE!*/
585
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
586
- /* DO NOT CHANGE!*/
587
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
588
- /* DO NOT CHANGE!*/
589
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
590
- [data-color-mode=light],
591
- :root {
592
- --basecolors-frame-contrast: #181c56;
593
- --basecolors-frame-contrastalt: #393d79;
594
- --basecolors-frame-default: #ffffff;
595
- --basecolors-frame-elevated: #ffffff;
596
- --basecolors-frame-elevatedalt: #f6f6f9;
597
- --basecolors-frame-subdued: #d9dae8;
598
- --basecolors-frame-tint: #f6f6f9;
599
- --basecolors-shape-accent: #181c56;
600
- --basecolors-shape-bicycle-contrast: #00db9b;
601
- --basecolors-shape-bicycle-default: #388f76;
602
- --basecolors-shape-bus-contrast: #ff6392;
603
- --basecolors-shape-bus-default: #c5044e;
604
- --basecolors-shape-cableway-contrast: #b482fb;
605
- --basecolors-shape-cableway-default: #78469a;
606
- --basecolors-shape-disabled: #6e6f73;
607
- --basecolors-shape-disabledalt: #b6b8ba;
608
- --basecolors-shape-ferry-contrast: #6fdfff;
609
- --basecolors-shape-ferry-default: #0c6693;
610
- --basecolors-shape-funicular-contrast: #b482fb;
611
- --basecolors-shape-funicular-default: #78469a;
612
- --basecolors-shape-helicopter-contrast: #fbafea;
613
- --basecolors-shape-helicopter-default: #800664;
614
- --basecolors-shape-highlight: #ff5959;
615
- --basecolors-shape-light: #ffffff;
616
- --basecolors-shape-mask: #ffffff;
617
- --basecolors-shape-maskalt: #ffffff;
618
- --basecolors-shape-metro-contrast: #f08901;
619
- --basecolors-shape-metro-default: #bf5826;
620
- --basecolors-shape-mobility-contrast: #00db9b;
621
- --basecolors-shape-mobility-default: #388f76;
622
- --basecolors-shape-plane-contrast: #fbafea;
623
- --basecolors-shape-plane-default: #800664;
624
- --basecolors-shape-subdued: #626493;
625
- --basecolors-shape-subduedalt: #d9dae8;
626
- --basecolors-shape-taxi-contrast: #ffe082;
627
- --basecolors-shape-taxi-default: #3d3e40;
628
- --basecolors-shape-train-contrast: #42a5f5;
629
- --basecolors-shape-train-default: #00367f;
630
- --basecolors-shape-tram-contrast: #b482fb;
631
- --basecolors-shape-tram-default: #78469a;
632
- --basecolors-shape-walk-contrast: #8284ab;
633
- --basecolors-shape-walk-default: #8d8e9c;
634
- --basecolors-shape-airportlinkbus-contrast: #fbafea;
635
- --basecolors-shape-airportlinkbus-default: #800664;
636
- --basecolors-shape-airportlinkrail-contrast: #fbafea;
637
- --basecolors-shape-airportlinkrail-default: #800664;
638
- --basecolors-stroke-contrast: #aeb7e2;
639
- --basecolors-stroke-default: #181c56;
640
- --basecolors-stroke-disabled: #949699;
641
- --basecolors-stroke-focus-contrast: #aeb7e2;
642
- --basecolors-stroke-focus-standard: #181c56;
643
- --basecolors-stroke-highlight: #ff5959;
644
- --basecolors-stroke-light: #ffffff;
645
- --basecolors-stroke-subdued: #8284ab;
646
- --basecolors-stroke-subduedalt: #e3e6e8;
647
- --basecolors-text-accent: #181c56;
648
- --basecolors-text-disabled: #6e6f73;
649
- --basecolors-text-disabledalt: #b6b8ba;
650
- --basecolors-text-highlight: #ff5959;
651
- --basecolors-text-light: #ffffff;
652
- --basecolors-text-subdued: #626493;
653
- --basecolors-text-subduedalt: #d9dae8;
654
- }
655
-
656
- [data-color-mode=dark] {
657
- --basecolors-frame-contrast: #212233;
658
- --basecolors-frame-contrastalt: #141527;
659
- --basecolors-frame-default: #08091c;
660
- --basecolors-frame-elevated: rgba(229, 229, 233, 0.1490196078);
661
- --basecolors-frame-elevatedalt: #464755;
662
- --basecolors-frame-subdued: #2d2e3e;
663
- --basecolors-frame-tint: #141527;
664
- --basecolors-shape-accent: #e5e5e9;
665
- --basecolors-shape-bicycle-contrast: #4db295;
666
- --basecolors-shape-bicycle-default: #4db295;
667
- --basecolors-shape-bus-contrast: #ef7398;
668
- --basecolors-shape-bus-default: #ef7398;
669
- --basecolors-shape-cableway-contrast: #b898e5;
670
- --basecolors-shape-cableway-default: #b898e5;
671
- --basecolors-shape-disabled: #b6b8ba;
672
- --basecolors-shape-disabledalt: #b3b4bd;
673
- --basecolors-shape-ferry-contrast: #8ccfe2;
674
- --basecolors-shape-ferry-default: #8ccfe2;
675
- --basecolors-shape-funicular-contrast: #b898e5;
676
- --basecolors-shape-funicular-default: #b898e5;
677
- --basecolors-shape-helicopter-contrast: #f2b8e5;
678
- --basecolors-shape-helicopter-default: #f2b8e5;
679
- --basecolors-shape-highlight: #ff9494;
680
- --basecolors-shape-light: #e5e5e9;
681
- --basecolors-shape-mask: #2d2e3e;
682
- --basecolors-shape-maskalt: #393a49;
683
- --basecolors-shape-metro-contrast: #dd973c;
684
- --basecolors-shape-metro-default: #dd973c;
685
- --basecolors-shape-mobility-contrast: #4db295;
686
- --basecolors-shape-mobility-default: #4db295;
687
- --basecolors-shape-plane-contrast: #f2b8e5;
688
- --basecolors-shape-plane-default: #f2b8e5;
689
- --basecolors-shape-subdued: #b3b4bd;
690
- --basecolors-shape-subduedalt: #b3b4bd;
691
- --basecolors-shape-taxi-contrast: #ffe082;
692
- --basecolors-shape-taxi-default: #ffe082;
693
- --basecolors-shape-train-contrast: #60a2d7;
694
- --basecolors-shape-train-default: #60a2d7;
695
- --basecolors-shape-tram-contrast: #b898e5;
696
- --basecolors-shape-tram-default: #b898e5;
697
- --basecolors-shape-walk-contrast: #8d8e9c;
698
- --basecolors-shape-walk-default: #8d8e9c;
699
- --basecolors-shape-airportlinkbus-contrast: #f2b8e5;
700
- --basecolors-shape-airportlinkbus-default: #f2b8e5;
701
- --basecolors-shape-airportlinkrail-contrast: #f2b8e5;
702
- --basecolors-shape-airportlinkrail-default: #f2b8e5;
703
- --basecolors-stroke-contrast: #aeb7e2;
704
- --basecolors-stroke-default: #b3b4bd;
705
- --basecolors-stroke-disabled: #e3e6e8;
706
- --basecolors-stroke-focus-contrast: #aeb7e2;
707
- --basecolors-stroke-focus-standard: #aeb7e2;
708
- --basecolors-stroke-highlight: #ff9494;
709
- --basecolors-stroke-light: #b3b4bd;
710
- --basecolors-stroke-subdued: #81828f;
711
- --basecolors-stroke-subduedalt: #949699;
712
- --basecolors-text-accent: #e5e5e9;
713
- --basecolors-text-disabled: #b6b8ba;
714
- --basecolors-text-disabledalt: #b6b8ba;
715
- --basecolors-text-highlight: #ff9494;
716
- --basecolors-text-light: #e5e5e9;
717
- --basecolors-text-subdued: #b3b4bd;
718
- --basecolors-text-subduedalt: #b3b4bd;
719
- }
720
-
721
- .eds-textarea__wrapper :not(.eds-form-control-wrapper--disabled):not(.eds-form-control-wrapper--readonly) .eds-textarea__label .eds-input-group__label {
722
- background: #ffffff;
723
- background: var(--basecolors-frame-default);
724
- width: -moz-fit-content;
725
- width: fit-content;
726
- height: -moz-fit-content;
727
- height: fit-content;
728
- padding: 0.15rem;
729
- margin: -0.15rem;
730
- }
731
- *[data-color-mode=dark] .eds-contrast .eds-textarea__wrapper :not(.eds-form-control-wrapper--disabled):not(.eds-form-control-wrapper--readonly) .eds-textarea__label .eds-input-group__label {
732
- background-color: #181c56;
733
- background-color: var(--basecolors-frame-contrast);
734
- }
735
- .eds-textarea__wrapper textarea.eds-form-control.eds-textarea {
736
- min-height: 7.75rem;
737
- resize: vertical;
738
- line-height: 1.5rem;
739
- }
740
- .eds-textarea__wrapper .eds-form-control-wrapper {
741
- padding-right: 0;
742
- cursor: text;
743
- }
418
+ .eds-form-component--radio__container {
419
+ display: flex;
420
+ justify-content: center;
421
+ align-items: center;
422
+ position: relative;
423
+ cursor: pointer;
424
+ height: 2rem;
425
+ width: -moz-fit-content;
426
+ width: fit-content;
427
+ -webkit-user-select: none;
428
+ -moz-user-select: none;
429
+ user-select: none;
430
+ }
431
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
432
+ background-color: var(--components-form-radio-standard-fill-hover);
433
+ }
434
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
435
+ background-color: var(--components-form-radio-contrast-fill-hover);
436
+ }
437
+ .eds-form-component--radio__container input {
438
+ position: absolute;
439
+ opacity: 0;
440
+ cursor: pointer;
441
+ height: 0;
442
+ width: 0;
443
+ }
444
+ .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
445
+ height: 0.625rem;
446
+ width: 0.625rem;
447
+ }
448
+ .eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
449
+ outline: 2px solid #181c56;
450
+ outline-color: var(--basecolors-stroke-focus-standard);
451
+ outline-offset: 0.125rem;
452
+ }
453
+ .eds-contrast .eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
454
+ outline-color: var(--basecolors-stroke-focus-contrast);
455
+ }
456
+ .eds-form-component--radio__container .eds-form-component--radio__radio {
457
+ position: relative;
458
+ height: 1.25rem;
459
+ width: 1.25rem;
460
+ margin-right: 1rem;
461
+ background-color: var(--components-form-radio-standard-fill-default);
462
+ border: 0.125rem solid var(--components-form-radio-standard-border);
463
+ border-radius: 50%;
464
+ display: flex;
465
+ align-items: center;
466
+ justify-content: center;
467
+ }
468
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
469
+ background-color: var(--components-form-radio-contrast-fill-default);
470
+ border-color: var(--components-form-radio-contrast-border);
471
+ }
472
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
473
+ background: var(--components-form-baseform-contrast-fill-disabled);
474
+ border-color: var(--components-form-baseform-contrast-text-disabled);
475
+ cursor: not-allowed;
476
+ }
477
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
478
+ border-color: var(--components-form-baseform-contrast-text-disabled);
479
+ }
480
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
481
+ background: var(--components-form-baseform-contrast-fill-disabled);
482
+ border-color: var(--components-form-baseform-contrast-text-disabled);
483
+ }
484
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
485
+ color: var(--components-form-baseform-contrast-text-disabled);
486
+ }
487
+ .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
488
+ display: block;
489
+ width: 0;
490
+ height: 0;
491
+ border-radius: 50%;
492
+ background-color: var(--components-form-radio-standard-fill-selected);
493
+ transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
494
+ }
495
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
496
+ background-color: var(--components-form-radio-contrast-icon);
497
+ }
744
498
  /* DO NOT CHANGE!*/
745
499
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
746
500
  .eds-switch {
@@ -990,23 +744,269 @@ input:disabled + .eds-input-panel__container {
990
744
  font-weight: 500;
991
745
  line-height: 1.875rem;
992
746
  }
993
- .eds-input-panel__title-wrapper {
994
- display: flex;
995
- justify-content: space-between;
996
- align-items: center;
747
+ .eds-input-panel__title-wrapper {
748
+ display: flex;
749
+ justify-content: space-between;
750
+ align-items: center;
751
+ }
752
+ .eds-input-panel__secondary-label-and-icon-wrapper {
753
+ display: flex;
754
+ justify-content: center;
755
+ align-items: center;
756
+ gap: 0.75rem;
757
+ }
758
+ .eds-input-panel__secondary-label-and-icon-wrapper .eds-checkbox__container {
759
+ margin: 0;
760
+ }
761
+ .eds-input-panel__additional-content {
762
+ margin-top: 0.25rem;
763
+ word-wrap: break-word;
764
+ }
765
+ /* DO NOT CHANGE!*/
766
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
767
+ .eds-input-group {
768
+ color: inherit;
769
+ display: block;
770
+ position: relative;
771
+ }
772
+ .eds-input-group__label {
773
+ color: var(--components-form-baseform-standard-text-label);
774
+ display: flex;
775
+ font-size: 1rem;
776
+ position: absolute;
777
+ line-height: 1rem;
778
+ height: 3rem;
779
+ padding-left: 0;
780
+ top: 1rem;
781
+ 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;
782
+ -webkit-user-select: none;
783
+ -moz-user-select: none;
784
+ user-select: none;
785
+ pointer-events: none;
786
+ }
787
+ .eds-form-control-wrapper--is-filled .eds-input-group__label {
788
+ top: 0.375rem;
789
+ font-size: 0.75rem;
790
+ line-height: 0.75rem;
791
+ height: 10px;
792
+ padding: 0;
793
+ }
794
+ .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
795
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
796
+ background: var(--textarea-label-background);
797
+ width: calc(100% - 1rem - 1rem - 4px);
798
+ }
799
+ .eds-form-control-wrapper--is-filled.eds-form-control-wrapper--size-large .eds-input-group__label {
800
+ top: 0.5rem;
801
+ font-size: 0.875rem;
802
+ line-height: 1rem;
803
+ padding: 0;
804
+ }
805
+ .eds-form-control-wrapper--size-large .eds-input-group__label {
806
+ top: 0.75rem;
807
+ font-size: 1.5rem;
808
+ line-height: 2.25rem;
809
+ }
810
+ .eds-input-group__label--filled {
811
+ top: 0.375rem;
812
+ font-size: 0.75rem;
813
+ line-height: 0.75rem;
814
+ height: 10px;
815
+ padding: 0;
816
+ }
817
+ .eds-textarea__label .eds-input-group__label--filled {
818
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
819
+ background: var(--textarea-label-background);
820
+ width: calc(100% - 1rem - 1rem - 4px);
821
+ }
822
+ .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
823
+ top: 0.5rem;
824
+ font-size: 0.875rem;
825
+ line-height: 1rem;
826
+ padding: 0;
827
+ }
828
+
829
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
830
+ top: 0.375rem;
831
+ font-size: 0.75rem;
832
+ line-height: 0.75rem;
833
+ height: 10px;
834
+ padding: 0;
835
+ }
836
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
837
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
838
+ background: var(--textarea-label-background);
839
+ width: calc(100% - 1rem - 1rem - 4px);
840
+ }
841
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
842
+ top: 0.5rem;
843
+ font-size: 0.875rem;
844
+ line-height: 1rem;
845
+ padding: 0;
846
+ }
847
+ /* DO NOT CHANGE!*/
848
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
849
+ /* DO NOT CHANGE!*/
850
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
851
+ /* DO NOT CHANGE!*/
852
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
853
+ /* DO NOT CHANGE!*/
854
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
855
+ /* DO NOT CHANGE!*/
856
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
857
+ [data-color-mode=light],
858
+ :root {
859
+ --basecolors-frame-contrast: #181c56;
860
+ --basecolors-frame-contrastalt: #393d79;
861
+ --basecolors-frame-default: #ffffff;
862
+ --basecolors-frame-elevated: #ffffff;
863
+ --basecolors-frame-elevatedalt: #f6f6f9;
864
+ --basecolors-frame-subdued: #d9dae8;
865
+ --basecolors-frame-tint: #f6f6f9;
866
+ --basecolors-shape-accent: #181c56;
867
+ --basecolors-shape-bicycle-contrast: #00db9b;
868
+ --basecolors-shape-bicycle-default: #388f76;
869
+ --basecolors-shape-bus-contrast: #ff6392;
870
+ --basecolors-shape-bus-default: #c5044e;
871
+ --basecolors-shape-cableway-contrast: #b482fb;
872
+ --basecolors-shape-cableway-default: #78469a;
873
+ --basecolors-shape-disabled: #6e6f73;
874
+ --basecolors-shape-disabledalt: #b6b8ba;
875
+ --basecolors-shape-ferry-contrast: #6fdfff;
876
+ --basecolors-shape-ferry-default: #0c6693;
877
+ --basecolors-shape-funicular-contrast: #b482fb;
878
+ --basecolors-shape-funicular-default: #78469a;
879
+ --basecolors-shape-helicopter-contrast: #fbafea;
880
+ --basecolors-shape-helicopter-default: #800664;
881
+ --basecolors-shape-highlight: #ff5959;
882
+ --basecolors-shape-light: #ffffff;
883
+ --basecolors-shape-mask: #ffffff;
884
+ --basecolors-shape-maskalt: #ffffff;
885
+ --basecolors-shape-metro-contrast: #f08901;
886
+ --basecolors-shape-metro-default: #bf5826;
887
+ --basecolors-shape-mobility-contrast: #00db9b;
888
+ --basecolors-shape-mobility-default: #388f76;
889
+ --basecolors-shape-plane-contrast: #fbafea;
890
+ --basecolors-shape-plane-default: #800664;
891
+ --basecolors-shape-subdued: #626493;
892
+ --basecolors-shape-subduedalt: #d9dae8;
893
+ --basecolors-shape-taxi-contrast: #ffe082;
894
+ --basecolors-shape-taxi-default: #3d3e40;
895
+ --basecolors-shape-train-contrast: #42a5f5;
896
+ --basecolors-shape-train-default: #00367f;
897
+ --basecolors-shape-tram-contrast: #b482fb;
898
+ --basecolors-shape-tram-default: #78469a;
899
+ --basecolors-shape-walk-contrast: #8284ab;
900
+ --basecolors-shape-walk-default: #8d8e9c;
901
+ --basecolors-shape-airportlinkbus-contrast: #fbafea;
902
+ --basecolors-shape-airportlinkbus-default: #800664;
903
+ --basecolors-shape-airportlinkrail-contrast: #fbafea;
904
+ --basecolors-shape-airportlinkrail-default: #800664;
905
+ --basecolors-stroke-contrast: #aeb7e2;
906
+ --basecolors-stroke-default: #181c56;
907
+ --basecolors-stroke-disabled: #949699;
908
+ --basecolors-stroke-focus-contrast: #aeb7e2;
909
+ --basecolors-stroke-focus-standard: #181c56;
910
+ --basecolors-stroke-highlight: #ff5959;
911
+ --basecolors-stroke-light: #ffffff;
912
+ --basecolors-stroke-subdued: #8284ab;
913
+ --basecolors-stroke-subduedalt: #e3e6e8;
914
+ --basecolors-text-accent: #181c56;
915
+ --basecolors-text-disabled: #6e6f73;
916
+ --basecolors-text-disabledalt: #b6b8ba;
917
+ --basecolors-text-highlight: #ff5959;
918
+ --basecolors-text-light: #ffffff;
919
+ --basecolors-text-subdued: #626493;
920
+ --basecolors-text-subduedalt: #d9dae8;
921
+ }
922
+
923
+ [data-color-mode=dark] {
924
+ --basecolors-frame-contrast: #212233;
925
+ --basecolors-frame-contrastalt: #141527;
926
+ --basecolors-frame-default: #08091c;
927
+ --basecolors-frame-elevated: rgba(229, 229, 233, 0.1490196078);
928
+ --basecolors-frame-elevatedalt: #464755;
929
+ --basecolors-frame-subdued: #2d2e3e;
930
+ --basecolors-frame-tint: #141527;
931
+ --basecolors-shape-accent: #e5e5e9;
932
+ --basecolors-shape-bicycle-contrast: #4db295;
933
+ --basecolors-shape-bicycle-default: #4db295;
934
+ --basecolors-shape-bus-contrast: #ef7398;
935
+ --basecolors-shape-bus-default: #ef7398;
936
+ --basecolors-shape-cableway-contrast: #b898e5;
937
+ --basecolors-shape-cableway-default: #b898e5;
938
+ --basecolors-shape-disabled: #b6b8ba;
939
+ --basecolors-shape-disabledalt: #b3b4bd;
940
+ --basecolors-shape-ferry-contrast: #8ccfe2;
941
+ --basecolors-shape-ferry-default: #8ccfe2;
942
+ --basecolors-shape-funicular-contrast: #b898e5;
943
+ --basecolors-shape-funicular-default: #b898e5;
944
+ --basecolors-shape-helicopter-contrast: #f2b8e5;
945
+ --basecolors-shape-helicopter-default: #f2b8e5;
946
+ --basecolors-shape-highlight: #ff9494;
947
+ --basecolors-shape-light: #e5e5e9;
948
+ --basecolors-shape-mask: #2d2e3e;
949
+ --basecolors-shape-maskalt: #393a49;
950
+ --basecolors-shape-metro-contrast: #dd973c;
951
+ --basecolors-shape-metro-default: #dd973c;
952
+ --basecolors-shape-mobility-contrast: #4db295;
953
+ --basecolors-shape-mobility-default: #4db295;
954
+ --basecolors-shape-plane-contrast: #f2b8e5;
955
+ --basecolors-shape-plane-default: #f2b8e5;
956
+ --basecolors-shape-subdued: #b3b4bd;
957
+ --basecolors-shape-subduedalt: #b3b4bd;
958
+ --basecolors-shape-taxi-contrast: #ffe082;
959
+ --basecolors-shape-taxi-default: #ffe082;
960
+ --basecolors-shape-train-contrast: #60a2d7;
961
+ --basecolors-shape-train-default: #60a2d7;
962
+ --basecolors-shape-tram-contrast: #b898e5;
963
+ --basecolors-shape-tram-default: #b898e5;
964
+ --basecolors-shape-walk-contrast: #8d8e9c;
965
+ --basecolors-shape-walk-default: #8d8e9c;
966
+ --basecolors-shape-airportlinkbus-contrast: #f2b8e5;
967
+ --basecolors-shape-airportlinkbus-default: #f2b8e5;
968
+ --basecolors-shape-airportlinkrail-contrast: #f2b8e5;
969
+ --basecolors-shape-airportlinkrail-default: #f2b8e5;
970
+ --basecolors-stroke-contrast: #aeb7e2;
971
+ --basecolors-stroke-default: #b3b4bd;
972
+ --basecolors-stroke-disabled: #e3e6e8;
973
+ --basecolors-stroke-focus-contrast: #aeb7e2;
974
+ --basecolors-stroke-focus-standard: #aeb7e2;
975
+ --basecolors-stroke-highlight: #ff9494;
976
+ --basecolors-stroke-light: #b3b4bd;
977
+ --basecolors-stroke-subdued: #81828f;
978
+ --basecolors-stroke-subduedalt: #949699;
979
+ --basecolors-text-accent: #e5e5e9;
980
+ --basecolors-text-disabled: #b6b8ba;
981
+ --basecolors-text-disabledalt: #b6b8ba;
982
+ --basecolors-text-highlight: #ff9494;
983
+ --basecolors-text-light: #e5e5e9;
984
+ --basecolors-text-subdued: #b3b4bd;
985
+ --basecolors-text-subduedalt: #b3b4bd;
986
+ }
987
+
988
+ .eds-textarea__wrapper :not(.eds-form-control-wrapper--disabled):not(.eds-form-control-wrapper--readonly) .eds-textarea__label .eds-input-group__label {
989
+ background: #ffffff;
990
+ background: var(--basecolors-frame-default);
991
+ width: -moz-fit-content;
992
+ width: fit-content;
993
+ height: -moz-fit-content;
994
+ height: fit-content;
995
+ padding: 0.15rem;
996
+ margin: -0.15rem;
997
997
  }
998
- .eds-input-panel__secondary-label-and-icon-wrapper {
999
- display: flex;
1000
- justify-content: center;
1001
- align-items: center;
1002
- gap: 0.75rem;
998
+ *[data-color-mode=dark] .eds-contrast .eds-textarea__wrapper :not(.eds-form-control-wrapper--disabled):not(.eds-form-control-wrapper--readonly) .eds-textarea__label .eds-input-group__label {
999
+ background-color: #181c56;
1000
+ background-color: var(--basecolors-frame-contrast);
1003
1001
  }
1004
- .eds-input-panel__secondary-label-and-icon-wrapper .eds-checkbox__container {
1005
- margin: 0;
1002
+ .eds-textarea__wrapper textarea.eds-form-control.eds-textarea {
1003
+ min-height: 7.75rem;
1004
+ resize: vertical;
1005
+ line-height: 1.5rem;
1006
1006
  }
1007
- .eds-input-panel__additional-content {
1008
- margin-top: 0.25rem;
1009
- word-wrap: break-word;
1007
+ .eds-textarea__wrapper .eds-form-control-wrapper {
1008
+ padding-right: 0;
1009
+ cursor: text;
1010
1010
  }
1011
1011
  /* DO NOT CHANGE!*/
1012
1012
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -1052,99 +1052,6 @@ input:disabled + .eds-input-panel__container {
1052
1052
  }
1053
1053
  /* DO NOT CHANGE!*/
1054
1054
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1055
- .eds-segmented-choice {
1056
- display: block;
1057
- flex: 1 1 0px;
1058
- }
1059
- .eds-segmented-choice .eds-base-segmented {
1060
- --background-color: var(--components-form-segmentedcontrol-standard-fill-unselected);
1061
- background-color: var(--background-color);
1062
- border-radius: 0.25rem;
1063
- color: var(--components-form-segmentedcontrol-standard-text-unselected);
1064
- cursor: pointer;
1065
- font-size: 0.875rem;
1066
- height: 1.5rem;
1067
- line-height: 1.25rem;
1068
- margin: 0.25rem;
1069
- outline-color: transparent;
1070
- padding: calc(0.25rem / 2) 0.75rem;
1071
- text-align: center;
1072
- -webkit-user-select: none;
1073
- -moz-user-select: none;
1074
- user-select: none;
1075
- }
1076
- .eds-segmented-choice .eds-base-segmented--large {
1077
- font-size: 1rem;
1078
- height: 2.5rem;
1079
- line-height: 1.5rem;
1080
- padding: 0.5rem 0.75rem;
1081
- }
1082
- .eds-contrast .eds-segmented-choice .eds-base-segmented {
1083
- --background-color: var(--components-form-segmentedcontrol-contrast-background);
1084
- color: var(--components-form-segmentedcontrol-contrast-text-unselected);
1085
- }
1086
- .eds-segmented-choice:hover input:not(:checked) + .eds-base-segmented {
1087
- --background-color: var(--components-form-segmentedcontrol-standard-fill-hover);
1088
- }
1089
- .eds-contrast .eds-segmented-choice:hover input:not(:checked) + .eds-base-segmented {
1090
- --background-color: var(--components-form-segmentedcontrol-contrast-fill-hover);
1091
- }
1092
- .eds-segmented-choice:hover input:checked + .eds-base-segmented {
1093
- --background-color: var(--components-form-segmentedcontrol-standard-fill-hover);
1094
- color: var(--components-form-segmentedcontrol-standard-text-unselected);
1095
- }
1096
- .eds-contrast .eds-segmented-choice:hover input:checked + .eds-base-segmented {
1097
- --background-color: var(--components-form-segmentedcontrol-contrast-fill-hover);
1098
- color: var(--components-form-segmentedcontrol-contrast-text-unselected);
1099
- }
1100
- .eds-segmented-choice input {
1101
- -webkit-appearance: none;
1102
- -moz-appearance: none;
1103
- appearance: none;
1104
- position: absolute;
1105
- opacity: 0;
1106
- height: 0;
1107
- width: 0;
1108
- }
1109
- .eds-segmented-choice input:checked + .eds-base-segmented {
1110
- --background-color: var(--components-form-segmentedcontrol-standard-fill-selected);
1111
- color: var(--components-form-segmentedcontrol-standard-text-selected);
1112
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
1113
- }
1114
- .eds-contrast .eds-segmented-choice input:checked + .eds-base-segmented {
1115
- --background-color: var(--components-form-segmentedcontrol-contrast-fill-selected);
1116
- box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
1117
- color: var(--components-form-segmentedcontrol-contrast-text-selected);
1118
- }
1119
- .eds-segmented-choice input:focus-visible:not(:checked) + .eds-base-segmented {
1120
- outline: 2px solid #181c56;
1121
- outline-color: var(--basecolors-stroke-focus-standard);
1122
- outline-offset: 0.125rem;
1123
- }
1124
- .eds-contrast .eds-segmented-choice input:focus-visible:not(:checked) + .eds-base-segmented {
1125
- outline-color: var(--basecolors-stroke-focus-contrast);
1126
- }
1127
- .eds-segmented-choice input:focus-visible:checked + .eds-base-segmented {
1128
- outline: 2px solid #181c56;
1129
- outline-color: var(--basecolors-stroke-focus-standard);
1130
- outline-offset: 0.125rem;
1131
- }
1132
- .eds-contrast .eds-segmented-choice input:focus-visible:checked + .eds-base-segmented {
1133
- outline-color: var(--basecolors-stroke-focus-contrast);
1134
- }
1135
- /* DO NOT CHANGE!*/
1136
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1137
- .eds-segmented-control {
1138
- margin-top: 0.25rem;
1139
- display: flex;
1140
- background: var(--components-form-segmentedcontrol-standard-background);
1141
- border-radius: 0.5rem;
1142
- }
1143
- .eds-contrast .eds-segmented-control {
1144
- background: var(--components-form-segmentedcontrol-contrast-background);
1145
- }
1146
- /* DO NOT CHANGE!*/
1147
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1148
1055
  /* DO NOT CHANGE!*/
1149
1056
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1150
1057
  /* DO NOT CHANGE!*/
@@ -1692,3 +1599,96 @@ input:disabled + .eds-input-panel__container {
1692
1599
  :root {
1693
1600
  --eds-form: 1;
1694
1601
  }
1602
+ /* DO NOT CHANGE!*/
1603
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1604
+ .eds-segmented-choice {
1605
+ display: block;
1606
+ flex: 1 1 0px;
1607
+ }
1608
+ .eds-segmented-choice .eds-base-segmented {
1609
+ --background-color: var(--components-form-segmentedcontrol-standard-fill-unselected);
1610
+ background-color: var(--background-color);
1611
+ border-radius: 0.25rem;
1612
+ color: var(--components-form-segmentedcontrol-standard-text-unselected);
1613
+ cursor: pointer;
1614
+ font-size: 0.875rem;
1615
+ height: 1.5rem;
1616
+ line-height: 1.25rem;
1617
+ margin: 0.25rem;
1618
+ outline-color: transparent;
1619
+ padding: calc(0.25rem / 2) 0.75rem;
1620
+ text-align: center;
1621
+ -webkit-user-select: none;
1622
+ -moz-user-select: none;
1623
+ user-select: none;
1624
+ }
1625
+ .eds-segmented-choice .eds-base-segmented--large {
1626
+ font-size: 1rem;
1627
+ height: 2.5rem;
1628
+ line-height: 1.5rem;
1629
+ padding: 0.5rem 0.75rem;
1630
+ }
1631
+ .eds-contrast .eds-segmented-choice .eds-base-segmented {
1632
+ --background-color: var(--components-form-segmentedcontrol-contrast-background);
1633
+ color: var(--components-form-segmentedcontrol-contrast-text-unselected);
1634
+ }
1635
+ .eds-segmented-choice:hover input:not(:checked) + .eds-base-segmented {
1636
+ --background-color: var(--components-form-segmentedcontrol-standard-fill-hover);
1637
+ }
1638
+ .eds-contrast .eds-segmented-choice:hover input:not(:checked) + .eds-base-segmented {
1639
+ --background-color: var(--components-form-segmentedcontrol-contrast-fill-hover);
1640
+ }
1641
+ .eds-segmented-choice:hover input:checked + .eds-base-segmented {
1642
+ --background-color: var(--components-form-segmentedcontrol-standard-fill-hover);
1643
+ color: var(--components-form-segmentedcontrol-standard-text-unselected);
1644
+ }
1645
+ .eds-contrast .eds-segmented-choice:hover input:checked + .eds-base-segmented {
1646
+ --background-color: var(--components-form-segmentedcontrol-contrast-fill-hover);
1647
+ color: var(--components-form-segmentedcontrol-contrast-text-unselected);
1648
+ }
1649
+ .eds-segmented-choice input {
1650
+ -webkit-appearance: none;
1651
+ -moz-appearance: none;
1652
+ appearance: none;
1653
+ position: absolute;
1654
+ opacity: 0;
1655
+ height: 0;
1656
+ width: 0;
1657
+ }
1658
+ .eds-segmented-choice input:checked + .eds-base-segmented {
1659
+ --background-color: var(--components-form-segmentedcontrol-standard-fill-selected);
1660
+ color: var(--components-form-segmentedcontrol-standard-text-selected);
1661
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
1662
+ }
1663
+ .eds-contrast .eds-segmented-choice input:checked + .eds-base-segmented {
1664
+ --background-color: var(--components-form-segmentedcontrol-contrast-fill-selected);
1665
+ box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
1666
+ color: var(--components-form-segmentedcontrol-contrast-text-selected);
1667
+ }
1668
+ .eds-segmented-choice input:focus-visible:not(:checked) + .eds-base-segmented {
1669
+ outline: 2px solid #181c56;
1670
+ outline-color: var(--basecolors-stroke-focus-standard);
1671
+ outline-offset: 0.125rem;
1672
+ }
1673
+ .eds-contrast .eds-segmented-choice input:focus-visible:not(:checked) + .eds-base-segmented {
1674
+ outline-color: var(--basecolors-stroke-focus-contrast);
1675
+ }
1676
+ .eds-segmented-choice input:focus-visible:checked + .eds-base-segmented {
1677
+ outline: 2px solid #181c56;
1678
+ outline-color: var(--basecolors-stroke-focus-standard);
1679
+ outline-offset: 0.125rem;
1680
+ }
1681
+ .eds-contrast .eds-segmented-choice input:focus-visible:checked + .eds-base-segmented {
1682
+ outline-color: var(--basecolors-stroke-focus-contrast);
1683
+ }
1684
+ /* DO NOT CHANGE!*/
1685
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1686
+ .eds-segmented-control {
1687
+ margin-top: 0.25rem;
1688
+ display: flex;
1689
+ background: var(--components-form-segmentedcontrol-standard-background);
1690
+ border-radius: 0.5rem;
1691
+ }
1692
+ .eds-contrast .eds-segmented-control {
1693
+ background: var(--components-form-segmentedcontrol-contrast-background);
1694
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/form",
3
- "version": "8.2.0",
3
+ "version": "8.2.1-beta.0",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/form.esm.js",
@@ -27,16 +27,16 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/button": "^3.3.0",
31
- "@entur/icons": "^7.6.0",
30
+ "@entur/button": "^3.3.1-beta.0",
31
+ "@entur/icons": "^7.7.0-beta.0",
32
32
  "@entur/tokens": "^3.17.5",
33
- "@entur/tooltip": "^5.2.0",
34
- "@entur/typography": "^1.9.0",
33
+ "@entur/tooltip": "^5.2.1-beta.0",
34
+ "@entur/typography": "^1.9.1-beta.0",
35
35
  "@entur/utils": "^0.12.2",
36
36
  "classnames": "^2.3.1"
37
37
  },
38
38
  "devDependencies": {
39
39
  "dts-cli": "2.0.5"
40
40
  },
41
- "gitHead": "2a0e12f4ccbc65c2c8a115690b4895ff01ee7f06"
41
+ "gitHead": "e65150a6a9f9e2beb4a8bbecc06b9237119fe55e"
42
42
  }