@entur/form 8.1.0 → 8.1.2
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 +372 -222
- package/package.json +5 -5
package/dist/styles.css
CHANGED
|
@@ -1,5 +1,78 @@
|
|
|
1
1
|
/* DO NOT CHANGE!*/
|
|
2
2
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
|
+
.eds-feedback-text {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
margin-top: 0.25rem;
|
|
7
|
+
}
|
|
8
|
+
.eds-feedback-text--info, .eds-feedback-text--information {
|
|
9
|
+
padding-left: calc(1rem + 0.125rem);
|
|
10
|
+
}
|
|
11
|
+
.eds-feedback-text__text {
|
|
12
|
+
color: var(--components-form-feedbacktext-information-standard-text);
|
|
13
|
+
}
|
|
14
|
+
.eds-contrast .eds-feedback-text__text {
|
|
15
|
+
color: var(--components-form-feedbacktext-information-contrast-text);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.eds-feedback-text__icon {
|
|
19
|
+
font-size: 1.5rem;
|
|
20
|
+
min-height: 1.5rem;
|
|
21
|
+
min-width: 1.5rem;
|
|
22
|
+
padding-right: 0.5rem;
|
|
23
|
+
position: relative;
|
|
24
|
+
top: -0.1rem;
|
|
25
|
+
}
|
|
26
|
+
.eds-feedback-text__icon--success {
|
|
27
|
+
color: var(--components-form-feedbacktext-success-standard-icon-fill);
|
|
28
|
+
}
|
|
29
|
+
.eds-feedback-text__icon--success circle {
|
|
30
|
+
fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
|
|
31
|
+
}
|
|
32
|
+
.eds-contrast .eds-feedback-text__icon--success {
|
|
33
|
+
color: var(--components-form-feedbacktext-success-contrast-icon-fill);
|
|
34
|
+
}
|
|
35
|
+
.eds-contrast .eds-feedback-text__icon--success circle {
|
|
36
|
+
fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
|
|
37
|
+
}
|
|
38
|
+
.eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
|
|
39
|
+
color: var(--components-form-feedbacktext-negative-standard-icon-fill);
|
|
40
|
+
}
|
|
41
|
+
.eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
|
|
42
|
+
fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
|
|
43
|
+
}
|
|
44
|
+
.eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
|
|
45
|
+
color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
|
|
46
|
+
}
|
|
47
|
+
.eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
|
|
48
|
+
fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
|
|
49
|
+
}
|
|
50
|
+
.eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
|
|
51
|
+
color: var(--components-form-feedbacktext-information-standard-icon-fill);
|
|
52
|
+
}
|
|
53
|
+
.eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
|
|
54
|
+
fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
|
|
55
|
+
}
|
|
56
|
+
.eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
|
|
57
|
+
color: var(--components-form-feedbacktext-information-contrast-icon-fill);
|
|
58
|
+
}
|
|
59
|
+
.eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
|
|
60
|
+
fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
|
|
61
|
+
}
|
|
62
|
+
.eds-feedback-text__icon--warning {
|
|
63
|
+
color: var(--components-form-feedbacktext-warning-standard-icon-fill);
|
|
64
|
+
}
|
|
65
|
+
.eds-feedback-text__icon--warning .svg-exclamation {
|
|
66
|
+
fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
|
|
67
|
+
}
|
|
68
|
+
.eds-contrast .eds-feedback-text__icon--warning {
|
|
69
|
+
color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
|
|
70
|
+
}
|
|
71
|
+
.eds-contrast .eds-feedback-text__icon--warning circle {
|
|
72
|
+
fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
|
|
73
|
+
}
|
|
74
|
+
/* DO NOT CHANGE!*/
|
|
75
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
76
|
.eds-form-control__field-and-feedback-text {
|
|
4
77
|
display: flex;
|
|
5
78
|
flex-direction: column;
|
|
@@ -207,84 +280,6 @@
|
|
|
207
280
|
margin-right: 0;
|
|
208
281
|
margin-left: 0.75rem;
|
|
209
282
|
}
|
|
210
|
-
.eds-fieldset {
|
|
211
|
-
margin: 0;
|
|
212
|
-
padding: 0;
|
|
213
|
-
border: 0;
|
|
214
|
-
}
|
|
215
|
-
/* DO NOT CHANGE!*/
|
|
216
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
217
|
-
.eds-feedback-text {
|
|
218
|
-
display: flex;
|
|
219
|
-
align-items: center;
|
|
220
|
-
margin-top: 0.25rem;
|
|
221
|
-
}
|
|
222
|
-
.eds-feedback-text--info, .eds-feedback-text--information {
|
|
223
|
-
padding-left: calc(1rem + 0.125rem);
|
|
224
|
-
}
|
|
225
|
-
.eds-feedback-text__text {
|
|
226
|
-
color: var(--components-form-feedbacktext-information-standard-text);
|
|
227
|
-
}
|
|
228
|
-
.eds-contrast .eds-feedback-text__text {
|
|
229
|
-
color: var(--components-form-feedbacktext-information-contrast-text);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.eds-feedback-text__icon {
|
|
233
|
-
font-size: 1.5rem;
|
|
234
|
-
min-height: 1.5rem;
|
|
235
|
-
min-width: 1.5rem;
|
|
236
|
-
padding-right: 0.5rem;
|
|
237
|
-
position: relative;
|
|
238
|
-
top: -0.1rem;
|
|
239
|
-
}
|
|
240
|
-
.eds-feedback-text__icon--success {
|
|
241
|
-
color: var(--components-form-feedbacktext-success-standard-icon-fill);
|
|
242
|
-
}
|
|
243
|
-
.eds-feedback-text__icon--success circle {
|
|
244
|
-
fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
|
|
245
|
-
}
|
|
246
|
-
.eds-contrast .eds-feedback-text__icon--success {
|
|
247
|
-
color: var(--components-form-feedbacktext-success-contrast-icon-fill);
|
|
248
|
-
}
|
|
249
|
-
.eds-contrast .eds-feedback-text__icon--success circle {
|
|
250
|
-
fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
|
|
251
|
-
}
|
|
252
|
-
.eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
|
|
253
|
-
color: var(--components-form-feedbacktext-negative-standard-icon-fill);
|
|
254
|
-
}
|
|
255
|
-
.eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
|
|
256
|
-
fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
|
|
257
|
-
}
|
|
258
|
-
.eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
|
|
259
|
-
color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
|
|
260
|
-
}
|
|
261
|
-
.eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
|
|
262
|
-
fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
|
|
263
|
-
}
|
|
264
|
-
.eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
|
|
265
|
-
color: var(--components-form-feedbacktext-information-standard-icon-fill);
|
|
266
|
-
}
|
|
267
|
-
.eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
|
|
268
|
-
fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
|
|
269
|
-
}
|
|
270
|
-
.eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
|
|
271
|
-
color: var(--components-form-feedbacktext-information-contrast-icon-fill);
|
|
272
|
-
}
|
|
273
|
-
.eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
|
|
274
|
-
fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
|
|
275
|
-
}
|
|
276
|
-
.eds-feedback-text__icon--warning {
|
|
277
|
-
color: var(--components-form-feedbacktext-warning-standard-icon-fill);
|
|
278
|
-
}
|
|
279
|
-
.eds-feedback-text__icon--warning .svg-exclamation {
|
|
280
|
-
fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
|
|
281
|
-
}
|
|
282
|
-
.eds-contrast .eds-feedback-text__icon--warning {
|
|
283
|
-
color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
|
|
284
|
-
}
|
|
285
|
-
.eds-contrast .eds-feedback-text__icon--warning circle {
|
|
286
|
-
fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
|
|
287
|
-
}
|
|
288
283
|
/* DO NOT CHANGE!*/
|
|
289
284
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
290
285
|
.eds-checkbox__container {
|
|
@@ -442,6 +437,107 @@
|
|
|
442
437
|
}
|
|
443
438
|
/* DO NOT CHANGE!*/
|
|
444
439
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
440
|
+
.eds-input-group {
|
|
441
|
+
color: inherit;
|
|
442
|
+
display: block;
|
|
443
|
+
position: relative;
|
|
444
|
+
}
|
|
445
|
+
.eds-input-group__label {
|
|
446
|
+
color: var(--components-form-baseform-standard-text-label);
|
|
447
|
+
display: flex;
|
|
448
|
+
font-size: 1rem;
|
|
449
|
+
position: absolute;
|
|
450
|
+
line-height: 1rem;
|
|
451
|
+
height: 3rem;
|
|
452
|
+
padding-left: 0;
|
|
453
|
+
top: 1rem;
|
|
454
|
+
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;
|
|
455
|
+
-webkit-user-select: none;
|
|
456
|
+
-moz-user-select: none;
|
|
457
|
+
user-select: none;
|
|
458
|
+
pointer-events: none;
|
|
459
|
+
}
|
|
460
|
+
.eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
461
|
+
top: 0.375rem;
|
|
462
|
+
font-size: 0.75rem;
|
|
463
|
+
line-height: 0.75rem;
|
|
464
|
+
height: 10px;
|
|
465
|
+
padding: 0;
|
|
466
|
+
}
|
|
467
|
+
.eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
468
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
469
|
+
background: var(--textarea-label-background);
|
|
470
|
+
width: calc(100% - 1rem - 1rem - 4px);
|
|
471
|
+
}
|
|
472
|
+
.eds-form-control-wrapper--is-filled.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
473
|
+
top: 0.5rem;
|
|
474
|
+
font-size: 0.875rem;
|
|
475
|
+
line-height: 1rem;
|
|
476
|
+
padding: 0;
|
|
477
|
+
}
|
|
478
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
479
|
+
top: 0.75rem;
|
|
480
|
+
font-size: 1.5rem;
|
|
481
|
+
line-height: 2.25rem;
|
|
482
|
+
}
|
|
483
|
+
.eds-input-group__label--filled {
|
|
484
|
+
top: 0.375rem;
|
|
485
|
+
font-size: 0.75rem;
|
|
486
|
+
line-height: 0.75rem;
|
|
487
|
+
height: 10px;
|
|
488
|
+
padding: 0;
|
|
489
|
+
}
|
|
490
|
+
.eds-textarea__label .eds-input-group__label--filled {
|
|
491
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
492
|
+
background: var(--textarea-label-background);
|
|
493
|
+
width: calc(100% - 1rem - 1rem - 4px);
|
|
494
|
+
}
|
|
495
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label--filled {
|
|
496
|
+
top: 0.5rem;
|
|
497
|
+
font-size: 0.875rem;
|
|
498
|
+
line-height: 1rem;
|
|
499
|
+
padding: 0;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
503
|
+
top: 0.375rem;
|
|
504
|
+
font-size: 0.75rem;
|
|
505
|
+
line-height: 0.75rem;
|
|
506
|
+
height: 10px;
|
|
507
|
+
padding: 0;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
511
|
+
top: 0.375rem;
|
|
512
|
+
font-size: 0.75rem;
|
|
513
|
+
line-height: 0.75rem;
|
|
514
|
+
height: 10px;
|
|
515
|
+
padding: 0;
|
|
516
|
+
}
|
|
517
|
+
.eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
518
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
519
|
+
background: var(--textarea-label-background);
|
|
520
|
+
width: calc(100% - 1rem - 1rem - 4px);
|
|
521
|
+
}
|
|
522
|
+
.eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
523
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
524
|
+
background: var(--textarea-label-background);
|
|
525
|
+
width: calc(100% - 1rem - 1rem - 4px);
|
|
526
|
+
}
|
|
527
|
+
.eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
|
|
528
|
+
top: 0.5rem;
|
|
529
|
+
font-size: 0.875rem;
|
|
530
|
+
line-height: 1rem;
|
|
531
|
+
padding: 0;
|
|
532
|
+
}
|
|
533
|
+
.eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
|
|
534
|
+
top: 0.5rem;
|
|
535
|
+
font-size: 0.875rem;
|
|
536
|
+
line-height: 1rem;
|
|
537
|
+
padding: 0;
|
|
538
|
+
}
|
|
539
|
+
/* DO NOT CHANGE!*/
|
|
540
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
445
541
|
.eds-form-component--radio__container {
|
|
446
542
|
display: flex;
|
|
447
543
|
justify-content: center;
|
|
@@ -596,151 +692,55 @@
|
|
|
596
692
|
.eds-contrast .eds-switch__switch path {
|
|
597
693
|
fill: var(--components-form-switch-contrast-icon-false);
|
|
598
694
|
}
|
|
599
|
-
:checked + .eds-switch__switch {
|
|
600
|
-
background-color: var(--eds-switch-color);
|
|
601
|
-
}
|
|
602
|
-
:checked + .eds-switch__switch .eds-switch__circle {
|
|
603
|
-
left: 1.625rem;
|
|
604
|
-
}
|
|
605
|
-
:checked + .eds-switch__switch .eds-switch__circle svg g,
|
|
606
|
-
:checked + .eds-switch__switch .eds-switch__circle path {
|
|
607
|
-
fill: var(--eds-switch-color);
|
|
608
|
-
}
|
|
609
|
-
.eds-contrast :checked + .eds-switch__switch {
|
|
610
|
-
background-color: var(--eds-switch-contrast-color);
|
|
611
|
-
}
|
|
612
|
-
:focus + .eds-switch__switch {
|
|
613
|
-
outline: 2px solid #181c56;
|
|
614
|
-
outline-color: var(--basecolors-stroke-focus-standard);
|
|
615
|
-
outline-offset: 0.125rem;
|
|
616
|
-
}
|
|
617
|
-
.eds-contrast :focus + .eds-switch__switch {
|
|
618
|
-
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
619
|
-
}
|
|
620
|
-
.eds-switch__switch--large {
|
|
621
|
-
width: 3.75rem;
|
|
622
|
-
height: 2rem;
|
|
623
|
-
border-radius: 3.75rem;
|
|
624
|
-
}
|
|
625
|
-
:checked + .eds-switch__switch--large .eds-switch__circle {
|
|
626
|
-
left: 1.875rem;
|
|
627
|
-
}
|
|
628
|
-
.eds-switch__switch--large svg {
|
|
629
|
-
position: relative;
|
|
630
|
-
right: 0.05rem;
|
|
631
|
-
}
|
|
632
|
-
.eds-switch__label--large--right {
|
|
633
|
-
font-size: 1rem;
|
|
634
|
-
}
|
|
635
|
-
.eds-switch__label--large--bottom {
|
|
636
|
-
font-size: 0.875rem;
|
|
637
|
-
}
|
|
638
|
-
.eds-switch__label--medium--right {
|
|
639
|
-
font-size: 0.875rem;
|
|
640
|
-
}
|
|
641
|
-
.eds-switch__label--medium--bottom {
|
|
642
|
-
font-size: 0.75rem;
|
|
643
|
-
}
|
|
644
|
-
/* DO NOT CHANGE!*/
|
|
645
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
646
|
-
.eds-input-group {
|
|
647
|
-
color: inherit;
|
|
648
|
-
display: block;
|
|
649
|
-
position: relative;
|
|
650
|
-
}
|
|
651
|
-
.eds-input-group__label {
|
|
652
|
-
color: var(--components-form-baseform-standard-text-label);
|
|
653
|
-
display: flex;
|
|
654
|
-
font-size: 1rem;
|
|
655
|
-
position: absolute;
|
|
656
|
-
line-height: 1rem;
|
|
657
|
-
height: 3rem;
|
|
658
|
-
padding-left: 0;
|
|
659
|
-
top: 1rem;
|
|
660
|
-
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;
|
|
661
|
-
-webkit-user-select: none;
|
|
662
|
-
-moz-user-select: none;
|
|
663
|
-
user-select: none;
|
|
664
|
-
pointer-events: none;
|
|
665
|
-
}
|
|
666
|
-
.eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
667
|
-
top: 0.375rem;
|
|
668
|
-
font-size: 0.75rem;
|
|
669
|
-
line-height: 0.75rem;
|
|
670
|
-
height: 10px;
|
|
671
|
-
padding: 0;
|
|
672
|
-
}
|
|
673
|
-
.eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
674
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
675
|
-
background: var(--textarea-label-background);
|
|
676
|
-
width: calc(100% - 1rem - 1rem - 4px);
|
|
695
|
+
:checked + .eds-switch__switch {
|
|
696
|
+
background-color: var(--eds-switch-color);
|
|
677
697
|
}
|
|
678
|
-
.eds-
|
|
679
|
-
|
|
680
|
-
font-size: 0.875rem;
|
|
681
|
-
line-height: 1rem;
|
|
682
|
-
padding: 0;
|
|
698
|
+
:checked + .eds-switch__switch .eds-switch__circle {
|
|
699
|
+
left: 1.625rem;
|
|
683
700
|
}
|
|
684
|
-
.eds-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
line-height: 2.25rem;
|
|
701
|
+
:checked + .eds-switch__switch .eds-switch__circle svg g,
|
|
702
|
+
:checked + .eds-switch__switch .eds-switch__circle path {
|
|
703
|
+
fill: var(--eds-switch-color);
|
|
688
704
|
}
|
|
689
|
-
.eds-
|
|
690
|
-
|
|
691
|
-
font-size: 0.75rem;
|
|
692
|
-
line-height: 0.75rem;
|
|
693
|
-
height: 10px;
|
|
694
|
-
padding: 0;
|
|
705
|
+
.eds-contrast :checked + .eds-switch__switch {
|
|
706
|
+
background-color: var(--eds-switch-contrast-color);
|
|
695
707
|
}
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
708
|
+
:focus + .eds-switch__switch {
|
|
709
|
+
outline: 2px solid #181c56;
|
|
710
|
+
outline-color: var(--basecolors-stroke-focus-standard);
|
|
711
|
+
outline-offset: 0.125rem;
|
|
700
712
|
}
|
|
701
|
-
.eds-
|
|
702
|
-
|
|
703
|
-
font-size: 0.875rem;
|
|
704
|
-
line-height: 1rem;
|
|
705
|
-
padding: 0;
|
|
713
|
+
.eds-contrast :focus + .eds-switch__switch {
|
|
714
|
+
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
706
715
|
}
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
line-height: 0.75rem;
|
|
712
|
-
height: 10px;
|
|
713
|
-
padding: 0;
|
|
716
|
+
.eds-switch__switch--large {
|
|
717
|
+
width: 3.75rem;
|
|
718
|
+
height: 2rem;
|
|
719
|
+
border-radius: 3.75rem;
|
|
714
720
|
}
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
top: 0.375rem;
|
|
718
|
-
font-size: 0.75rem;
|
|
719
|
-
line-height: 0.75rem;
|
|
720
|
-
height: 10px;
|
|
721
|
-
padding: 0;
|
|
721
|
+
:checked + .eds-switch__switch--large .eds-switch__circle {
|
|
722
|
+
left: 1.875rem;
|
|
722
723
|
}
|
|
723
|
-
.eds-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
width: calc(100% - 1rem - 1rem - 4px);
|
|
724
|
+
.eds-switch__switch--large svg {
|
|
725
|
+
position: relative;
|
|
726
|
+
right: 0.05rem;
|
|
727
727
|
}
|
|
728
|
-
.eds-
|
|
729
|
-
|
|
730
|
-
background: var(--textarea-label-background);
|
|
731
|
-
width: calc(100% - 1rem - 1rem - 4px);
|
|
728
|
+
.eds-switch__label--large--right {
|
|
729
|
+
font-size: 1rem;
|
|
732
730
|
}
|
|
733
|
-
.eds-
|
|
734
|
-
top: 0.5rem;
|
|
731
|
+
.eds-switch__label--large--bottom {
|
|
735
732
|
font-size: 0.875rem;
|
|
736
|
-
line-height: 1rem;
|
|
737
|
-
padding: 0;
|
|
738
733
|
}
|
|
739
|
-
.eds-
|
|
740
|
-
top: 0.5rem;
|
|
734
|
+
.eds-switch__label--medium--right {
|
|
741
735
|
font-size: 0.875rem;
|
|
742
|
-
|
|
736
|
+
}
|
|
737
|
+
.eds-switch__label--medium--bottom {
|
|
738
|
+
font-size: 0.75rem;
|
|
739
|
+
}
|
|
740
|
+
.eds-fieldset {
|
|
741
|
+
margin: 0;
|
|
743
742
|
padding: 0;
|
|
743
|
+
border: 0;
|
|
744
744
|
}
|
|
745
745
|
/* DO NOT CHANGE!*/
|
|
746
746
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -900,12 +900,162 @@ input:disabled + .eds-input-panel__container {
|
|
|
900
900
|
}
|
|
901
901
|
/* DO NOT CHANGE!*/
|
|
902
902
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
903
|
-
|
|
903
|
+
/* DO NOT CHANGE!*/
|
|
904
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
905
|
+
/* DO NOT CHANGE!*/
|
|
906
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
907
|
+
/* DO NOT CHANGE!*/
|
|
908
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
909
|
+
/* DO NOT CHANGE!*/
|
|
910
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
911
|
+
[data-color-mode=light],
|
|
912
|
+
:root {
|
|
913
|
+
--basecolors-frame-contrast: #181c56;
|
|
914
|
+
--basecolors-frame-contrastalt: #393d79;
|
|
915
|
+
--basecolors-frame-default: #ffffff;
|
|
916
|
+
--basecolors-frame-elevated: #ffffff;
|
|
917
|
+
--basecolors-frame-elevatedalt: #f6f6f9;
|
|
918
|
+
--basecolors-frame-subdued: #d9dae8;
|
|
919
|
+
--basecolors-frame-tint: #f6f6f9;
|
|
920
|
+
--basecolors-shape-accent: #181c56;
|
|
921
|
+
--basecolors-shape-bicycle-contrast: #00db9b;
|
|
922
|
+
--basecolors-shape-bicycle-default: #388f76;
|
|
923
|
+
--basecolors-shape-bus-contrast: #ff6392;
|
|
924
|
+
--basecolors-shape-bus-default: #c5044e;
|
|
925
|
+
--basecolors-shape-cableway-contrast: #b482fb;
|
|
926
|
+
--basecolors-shape-cableway-default: #78469a;
|
|
927
|
+
--basecolors-shape-disabled: #6e6f73;
|
|
928
|
+
--basecolors-shape-disabledalt: #b6b8ba;
|
|
929
|
+
--basecolors-shape-ferry-contrast: #6fdfff;
|
|
930
|
+
--basecolors-shape-ferry-default: #0c6693;
|
|
931
|
+
--basecolors-shape-funicular-contrast: #b482fb;
|
|
932
|
+
--basecolors-shape-funicular-default: #78469a;
|
|
933
|
+
--basecolors-shape-helicopter-contrast: #fbafea;
|
|
934
|
+
--basecolors-shape-helicopter-default: #800664;
|
|
935
|
+
--basecolors-shape-highlight: #ff5959;
|
|
936
|
+
--basecolors-shape-light: #ffffff;
|
|
937
|
+
--basecolors-shape-mask: #ffffff;
|
|
938
|
+
--basecolors-shape-maskalt: #ffffff;
|
|
939
|
+
--basecolors-shape-metro-contrast: #f08901;
|
|
940
|
+
--basecolors-shape-metro-default: #bf5826;
|
|
941
|
+
--basecolors-shape-mobility-contrast: #00db9b;
|
|
942
|
+
--basecolors-shape-mobility-default: #388f76;
|
|
943
|
+
--basecolors-shape-plane-contrast: #fbafea;
|
|
944
|
+
--basecolors-shape-plane-default: #800664;
|
|
945
|
+
--basecolors-shape-subdued: #626493;
|
|
946
|
+
--basecolors-shape-subduedalt: #d9dae8;
|
|
947
|
+
--basecolors-shape-taxi-contrast: #ffe082;
|
|
948
|
+
--basecolors-shape-taxi-default: #3d3e40;
|
|
949
|
+
--basecolors-shape-train-contrast: #42a5f5;
|
|
950
|
+
--basecolors-shape-train-default: #00367f;
|
|
951
|
+
--basecolors-shape-tram-contrast: #b482fb;
|
|
952
|
+
--basecolors-shape-tram-default: #78469a;
|
|
953
|
+
--basecolors-shape-walk-contrast: #8284ab;
|
|
954
|
+
--basecolors-shape-walk-default: #8d8e9c;
|
|
955
|
+
--basecolors-shape-airportlinkbus-contrast: #fbafea;
|
|
956
|
+
--basecolors-shape-airportlinkbus-default: #800664;
|
|
957
|
+
--basecolors-shape-airportlinkrail-contrast: #fbafea;
|
|
958
|
+
--basecolors-shape-airportlinkrail-default: #800664;
|
|
959
|
+
--basecolors-stroke-contrast: #aeb7e2;
|
|
960
|
+
--basecolors-stroke-default: #181c56;
|
|
961
|
+
--basecolors-stroke-disabled: #949699;
|
|
962
|
+
--basecolors-stroke-focus-contrast: #aeb7e2;
|
|
963
|
+
--basecolors-stroke-focus-standard: #181c56;
|
|
964
|
+
--basecolors-stroke-highlight: #ff5959;
|
|
965
|
+
--basecolors-stroke-light: #ffffff;
|
|
966
|
+
--basecolors-stroke-subdued: #8284ab;
|
|
967
|
+
--basecolors-stroke-subduedalt: #e3e6e8;
|
|
968
|
+
--basecolors-text-accent: #181c56;
|
|
969
|
+
--basecolors-text-disabled: #6e6f73;
|
|
970
|
+
--basecolors-text-disabledalt: #b6b8ba;
|
|
971
|
+
--basecolors-text-highlight: #ff5959;
|
|
972
|
+
--basecolors-text-light: #ffffff;
|
|
973
|
+
--basecolors-text-subdued: #626493;
|
|
974
|
+
--basecolors-text-subduedalt: #d9dae8;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
[data-color-mode=dark] {
|
|
978
|
+
--basecolors-frame-contrast: #212233;
|
|
979
|
+
--basecolors-frame-contrastalt: #141527;
|
|
980
|
+
--basecolors-frame-default: #08091c;
|
|
981
|
+
--basecolors-frame-elevated: rgba(229, 229, 233, 0.1490196078);
|
|
982
|
+
--basecolors-frame-elevatedalt: #464755;
|
|
983
|
+
--basecolors-frame-subdued: #2d2e3e;
|
|
984
|
+
--basecolors-frame-tint: #141527;
|
|
985
|
+
--basecolors-shape-accent: #e5e5e9;
|
|
986
|
+
--basecolors-shape-bicycle-contrast: #4db295;
|
|
987
|
+
--basecolors-shape-bicycle-default: #4db295;
|
|
988
|
+
--basecolors-shape-bus-contrast: #ef7398;
|
|
989
|
+
--basecolors-shape-bus-default: #ef7398;
|
|
990
|
+
--basecolors-shape-cableway-contrast: #b898e5;
|
|
991
|
+
--basecolors-shape-cableway-default: #b898e5;
|
|
992
|
+
--basecolors-shape-disabled: #b6b8ba;
|
|
993
|
+
--basecolors-shape-disabledalt: #b3b4bd;
|
|
994
|
+
--basecolors-shape-ferry-contrast: #8ccfe2;
|
|
995
|
+
--basecolors-shape-ferry-default: #8ccfe2;
|
|
996
|
+
--basecolors-shape-funicular-contrast: #b898e5;
|
|
997
|
+
--basecolors-shape-funicular-default: #b898e5;
|
|
998
|
+
--basecolors-shape-helicopter-contrast: #f2b8e5;
|
|
999
|
+
--basecolors-shape-helicopter-default: #f2b8e5;
|
|
1000
|
+
--basecolors-shape-highlight: #ff9494;
|
|
1001
|
+
--basecolors-shape-light: #e5e5e9;
|
|
1002
|
+
--basecolors-shape-mask: #2d2e3e;
|
|
1003
|
+
--basecolors-shape-maskalt: #393a49;
|
|
1004
|
+
--basecolors-shape-metro-contrast: #dd973c;
|
|
1005
|
+
--basecolors-shape-metro-default: #dd973c;
|
|
1006
|
+
--basecolors-shape-mobility-contrast: #4db295;
|
|
1007
|
+
--basecolors-shape-mobility-default: #4db295;
|
|
1008
|
+
--basecolors-shape-plane-contrast: #f2b8e5;
|
|
1009
|
+
--basecolors-shape-plane-default: #f2b8e5;
|
|
1010
|
+
--basecolors-shape-subdued: #b3b4bd;
|
|
1011
|
+
--basecolors-shape-subduedalt: #b3b4bd;
|
|
1012
|
+
--basecolors-shape-taxi-contrast: #ffe082;
|
|
1013
|
+
--basecolors-shape-taxi-default: #ffe082;
|
|
1014
|
+
--basecolors-shape-train-contrast: #60a2d7;
|
|
1015
|
+
--basecolors-shape-train-default: #60a2d7;
|
|
1016
|
+
--basecolors-shape-tram-contrast: #b898e5;
|
|
1017
|
+
--basecolors-shape-tram-default: #b898e5;
|
|
1018
|
+
--basecolors-shape-walk-contrast: #8d8e9c;
|
|
1019
|
+
--basecolors-shape-walk-default: #8d8e9c;
|
|
1020
|
+
--basecolors-shape-airportlinkbus-contrast: #f2b8e5;
|
|
1021
|
+
--basecolors-shape-airportlinkbus-default: #f2b8e5;
|
|
1022
|
+
--basecolors-shape-airportlinkrail-contrast: #f2b8e5;
|
|
1023
|
+
--basecolors-shape-airportlinkrail-default: #f2b8e5;
|
|
1024
|
+
--basecolors-stroke-contrast: #aeb7e2;
|
|
1025
|
+
--basecolors-stroke-default: #b3b4bd;
|
|
1026
|
+
--basecolors-stroke-disabled: #e3e6e8;
|
|
1027
|
+
--basecolors-stroke-focus-contrast: #aeb7e2;
|
|
1028
|
+
--basecolors-stroke-focus-standard: #aeb7e2;
|
|
1029
|
+
--basecolors-stroke-highlight: #ff9494;
|
|
1030
|
+
--basecolors-stroke-light: #b3b4bd;
|
|
1031
|
+
--basecolors-stroke-subdued: #81828f;
|
|
1032
|
+
--basecolors-stroke-subduedalt: #949699;
|
|
1033
|
+
--basecolors-text-accent: #e5e5e9;
|
|
1034
|
+
--basecolors-text-disabled: #b6b8ba;
|
|
1035
|
+
--basecolors-text-disabledalt: #b6b8ba;
|
|
1036
|
+
--basecolors-text-highlight: #ff9494;
|
|
1037
|
+
--basecolors-text-light: #e5e5e9;
|
|
1038
|
+
--basecolors-text-subdued: #b3b4bd;
|
|
1039
|
+
--basecolors-text-subduedalt: #b3b4bd;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
.eds-textarea__wrapper :not(.eds-form-control-wrapper--disabled):not(.eds-form-control-wrapper--readonly) .eds-textarea__label .eds-input-group__label {
|
|
1043
|
+
background: var(--basecolors-frame-default);
|
|
1044
|
+
width: -moz-fit-content;
|
|
1045
|
+
width: fit-content;
|
|
1046
|
+
height: -moz-fit-content;
|
|
1047
|
+
height: fit-content;
|
|
1048
|
+
padding: 0.15rem;
|
|
1049
|
+
margin: -0.15rem;
|
|
1050
|
+
}
|
|
1051
|
+
*[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 {
|
|
1052
|
+
background-color: var(--basecolors-frame-contrast);
|
|
1053
|
+
}
|
|
1054
|
+
.eds-textarea__wrapper textarea.eds-form-control.eds-textarea {
|
|
904
1055
|
min-height: 7.75rem;
|
|
905
1056
|
resize: vertical;
|
|
906
1057
|
line-height: 1.5rem;
|
|
907
1058
|
}
|
|
908
|
-
|
|
909
1059
|
.eds-textarea__wrapper .eds-form-control-wrapper {
|
|
910
1060
|
padding-right: 0;
|
|
911
1061
|
cursor: text;
|
|
@@ -954,6 +1104,17 @@ textarea.eds-form-control.eds-textarea {
|
|
|
954
1104
|
}
|
|
955
1105
|
/* DO NOT CHANGE!*/
|
|
956
1106
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
1107
|
+
.eds-segmented-control {
|
|
1108
|
+
margin-top: 0.25rem;
|
|
1109
|
+
display: flex;
|
|
1110
|
+
background: var(--components-form-segmentedcontrol-standard-background);
|
|
1111
|
+
border-radius: 0.5rem;
|
|
1112
|
+
}
|
|
1113
|
+
.eds-contrast .eds-segmented-control {
|
|
1114
|
+
background: var(--components-form-segmentedcontrol-contrast-background);
|
|
1115
|
+
}
|
|
1116
|
+
/* DO NOT CHANGE!*/
|
|
1117
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
957
1118
|
.eds-segmented-choice {
|
|
958
1119
|
display: block;
|
|
959
1120
|
flex: 1 1 0px;
|
|
@@ -1581,14 +1742,3 @@ textarea.eds-form-control.eds-textarea {
|
|
|
1581
1742
|
:root {
|
|
1582
1743
|
--eds-form: 1;
|
|
1583
1744
|
}
|
|
1584
|
-
/* DO NOT CHANGE!*/
|
|
1585
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
1586
|
-
.eds-segmented-control {
|
|
1587
|
-
margin-top: 0.25rem;
|
|
1588
|
-
display: flex;
|
|
1589
|
-
background: var(--components-form-segmentedcontrol-standard-background);
|
|
1590
|
-
border-radius: 0.5rem;
|
|
1591
|
-
}
|
|
1592
|
-
.eds-contrast .eds-segmented-control {
|
|
1593
|
-
background: var(--components-form-segmentedcontrol-contrast-background);
|
|
1594
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/form",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.2",
|
|
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.
|
|
30
|
+
"@entur/icons": "^7.4.0",
|
|
31
31
|
"@entur/tokens": "^3.17.0",
|
|
32
|
-
"@entur/tooltip": "^4.0.
|
|
33
|
-
"@entur/typography": "^1.8.
|
|
32
|
+
"@entur/tooltip": "^4.0.1",
|
|
33
|
+
"@entur/typography": "^1.8.45",
|
|
34
34
|
"@entur/utils": "^0.11.2",
|
|
35
35
|
"classnames": "^2.3.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "65cfc261417f26cadf2be3d5cfa4786ecf262a18"
|
|
38
38
|
}
|