@entur/form 7.0.1 → 7.0.3
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 +190 -190
- package/package.json +6 -6
package/dist/styles.css
CHANGED
|
@@ -3,6 +3,58 @@
|
|
|
3
3
|
}
|
|
4
4
|
/* DO NOT CHANGE!*/
|
|
5
5
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
6
|
+
.eds-feedback-text {
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
margin-top: 0.25rem;
|
|
10
|
+
}
|
|
11
|
+
.eds-feedback-text--info {
|
|
12
|
+
padding-left: calc(1rem + 0.125rem);
|
|
13
|
+
}
|
|
14
|
+
.eds-feedback-text__text {
|
|
15
|
+
color: #181c56;
|
|
16
|
+
}
|
|
17
|
+
.eds-contrast .eds-feedback-text__text {
|
|
18
|
+
color: #ffffff;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.eds-feedback-text__icon {
|
|
22
|
+
font-size: 1.5rem;
|
|
23
|
+
min-height: 1.5rem;
|
|
24
|
+
min-width: 1.5rem;
|
|
25
|
+
padding-right: 0.5rem;
|
|
26
|
+
position: relative;
|
|
27
|
+
top: -0.1rem;
|
|
28
|
+
}
|
|
29
|
+
.eds-feedback-text__icon--success {
|
|
30
|
+
color: #1a8e60;
|
|
31
|
+
}
|
|
32
|
+
.eds-contrast .eds-feedback-text__icon--success {
|
|
33
|
+
color: #5ac39a;
|
|
34
|
+
}
|
|
35
|
+
.eds-feedback-text__icon--error {
|
|
36
|
+
color: #d31b1b;
|
|
37
|
+
}
|
|
38
|
+
.eds-contrast .eds-feedback-text__icon--error {
|
|
39
|
+
color: #ff9494;
|
|
40
|
+
}
|
|
41
|
+
.eds-feedback-text__icon--info {
|
|
42
|
+
color: #0082b9;
|
|
43
|
+
}
|
|
44
|
+
.eds-contrast .eds-feedback-text__icon--info {
|
|
45
|
+
color: #64b3e7;
|
|
46
|
+
}
|
|
47
|
+
.eds-feedback-text__icon--warning {
|
|
48
|
+
color: #ffca28;
|
|
49
|
+
}
|
|
50
|
+
.eds-feedback-text__icon--warning circle {
|
|
51
|
+
fill: #181c56;
|
|
52
|
+
}
|
|
53
|
+
.eds-contrast .eds-feedback-text__icon--warning {
|
|
54
|
+
color: #ffe082;
|
|
55
|
+
}
|
|
56
|
+
/* DO NOT CHANGE!*/
|
|
57
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
6
58
|
.eds-fieldset {
|
|
7
59
|
margin: 0;
|
|
8
60
|
padding: 0;
|
|
@@ -10,6 +62,140 @@
|
|
|
10
62
|
}
|
|
11
63
|
/* DO NOT CHANGE!*/
|
|
12
64
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
65
|
+
.eds-input-group {
|
|
66
|
+
color: inherit;
|
|
67
|
+
display: block;
|
|
68
|
+
position: relative;
|
|
69
|
+
}
|
|
70
|
+
.eds-input-group__label {
|
|
71
|
+
color: #656782;
|
|
72
|
+
display: flex;
|
|
73
|
+
font-size: 1rem;
|
|
74
|
+
position: absolute;
|
|
75
|
+
line-height: 1rem;
|
|
76
|
+
height: 3rem;
|
|
77
|
+
padding: 1rem;
|
|
78
|
+
padding-left: 0;
|
|
79
|
+
margin-left: 1rem;
|
|
80
|
+
top: -0.125rem;
|
|
81
|
+
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;
|
|
82
|
+
-webkit-user-select: none;
|
|
83
|
+
-moz-user-select: none;
|
|
84
|
+
user-select: none;
|
|
85
|
+
pointer-events: none;
|
|
86
|
+
}
|
|
87
|
+
.eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
88
|
+
top: 0.375rem;
|
|
89
|
+
font-size: 0.75rem;
|
|
90
|
+
line-height: 0.75rem;
|
|
91
|
+
height: 10px;
|
|
92
|
+
padding: 0;
|
|
93
|
+
margin-left: 1rem;
|
|
94
|
+
}
|
|
95
|
+
.eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
96
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
97
|
+
background: var(--textarea-label-background);
|
|
98
|
+
width: calc(
|
|
99
|
+
100% - 1rem - 1rem - 4px
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
.eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
103
|
+
top: 0.5rem;
|
|
104
|
+
font-size: 0.875rem;
|
|
105
|
+
line-height: 1rem;
|
|
106
|
+
padding: 0;
|
|
107
|
+
margin-left: 1rem;
|
|
108
|
+
}
|
|
109
|
+
.eds-contrast .eds-input-group__label {
|
|
110
|
+
color: #8285a8;
|
|
111
|
+
}
|
|
112
|
+
.eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
|
|
113
|
+
color: #aeb7e2;
|
|
114
|
+
}
|
|
115
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
116
|
+
font-size: 1.5rem;
|
|
117
|
+
line-height: 2.25rem;
|
|
118
|
+
height: 4rem;
|
|
119
|
+
}
|
|
120
|
+
.eds-input-group__label--filled {
|
|
121
|
+
top: 0.375rem;
|
|
122
|
+
font-size: 0.75rem;
|
|
123
|
+
line-height: 0.75rem;
|
|
124
|
+
height: 10px;
|
|
125
|
+
padding: 0;
|
|
126
|
+
margin-left: 1rem;
|
|
127
|
+
}
|
|
128
|
+
.eds-textarea__label .eds-input-group__label--filled {
|
|
129
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
130
|
+
background: var(--textarea-label-background);
|
|
131
|
+
width: calc(
|
|
132
|
+
100% - 1rem - 1rem - 4px
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label--filled {
|
|
136
|
+
top: 0.5rem;
|
|
137
|
+
font-size: 0.875rem;
|
|
138
|
+
line-height: 1rem;
|
|
139
|
+
padding: 0;
|
|
140
|
+
margin-left: 1rem;
|
|
141
|
+
}
|
|
142
|
+
.eds-input-group__label-tooltip-icon {
|
|
143
|
+
color: #0082b9;
|
|
144
|
+
padding-left: 0.25rem;
|
|
145
|
+
padding-right: 0.25rem;
|
|
146
|
+
display: flex;
|
|
147
|
+
align-items: center;
|
|
148
|
+
cursor: help;
|
|
149
|
+
font-size: 1rem;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
153
|
+
top: 0.375rem;
|
|
154
|
+
font-size: 0.75rem;
|
|
155
|
+
line-height: 0.75rem;
|
|
156
|
+
height: 10px;
|
|
157
|
+
padding: 0;
|
|
158
|
+
margin-left: 1rem;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
162
|
+
top: 0.375rem;
|
|
163
|
+
font-size: 0.75rem;
|
|
164
|
+
line-height: 0.75rem;
|
|
165
|
+
height: 10px;
|
|
166
|
+
padding: 0;
|
|
167
|
+
margin-left: 1rem;
|
|
168
|
+
}
|
|
169
|
+
.eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
170
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
171
|
+
background: var(--textarea-label-background);
|
|
172
|
+
width: calc(
|
|
173
|
+
100% - 1rem - 1rem - 4px
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
.eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
177
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
178
|
+
background: var(--textarea-label-background);
|
|
179
|
+
width: calc(
|
|
180
|
+
100% - 1rem - 1rem - 4px
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
.eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
|
|
184
|
+
top: 0.5rem;
|
|
185
|
+
font-size: 0.875rem;
|
|
186
|
+
line-height: 1rem;
|
|
187
|
+
padding: 0;
|
|
188
|
+
margin-left: 1rem;
|
|
189
|
+
}
|
|
190
|
+
.eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
|
|
191
|
+
top: 0.5rem;
|
|
192
|
+
font-size: 0.875rem;
|
|
193
|
+
line-height: 1rem;
|
|
194
|
+
padding: 0;
|
|
195
|
+
margin-left: 1rem;
|
|
196
|
+
}
|
|
197
|
+
/* DO NOT CHANGE!*/
|
|
198
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
13
199
|
.eds-form-control-wrapper {
|
|
14
200
|
--border-color: #181c56;
|
|
15
201
|
--border-color-hover: #aeb7e2;
|
|
@@ -415,58 +601,6 @@
|
|
|
415
601
|
}
|
|
416
602
|
/* DO NOT CHANGE!*/
|
|
417
603
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
418
|
-
.eds-feedback-text {
|
|
419
|
-
display: flex;
|
|
420
|
-
align-items: center;
|
|
421
|
-
margin-top: 0.25rem;
|
|
422
|
-
}
|
|
423
|
-
.eds-feedback-text--info {
|
|
424
|
-
padding-left: calc(1rem + 0.125rem);
|
|
425
|
-
}
|
|
426
|
-
.eds-feedback-text__text {
|
|
427
|
-
color: #181c56;
|
|
428
|
-
}
|
|
429
|
-
.eds-contrast .eds-feedback-text__text {
|
|
430
|
-
color: #ffffff;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
.eds-feedback-text__icon {
|
|
434
|
-
font-size: 1.5rem;
|
|
435
|
-
min-height: 1.5rem;
|
|
436
|
-
min-width: 1.5rem;
|
|
437
|
-
padding-right: 0.5rem;
|
|
438
|
-
position: relative;
|
|
439
|
-
top: -0.1rem;
|
|
440
|
-
}
|
|
441
|
-
.eds-feedback-text__icon--success {
|
|
442
|
-
color: #1a8e60;
|
|
443
|
-
}
|
|
444
|
-
.eds-contrast .eds-feedback-text__icon--success {
|
|
445
|
-
color: #5ac39a;
|
|
446
|
-
}
|
|
447
|
-
.eds-feedback-text__icon--error {
|
|
448
|
-
color: #d31b1b;
|
|
449
|
-
}
|
|
450
|
-
.eds-contrast .eds-feedback-text__icon--error {
|
|
451
|
-
color: #ff9494;
|
|
452
|
-
}
|
|
453
|
-
.eds-feedback-text__icon--info {
|
|
454
|
-
color: #0082b9;
|
|
455
|
-
}
|
|
456
|
-
.eds-contrast .eds-feedback-text__icon--info {
|
|
457
|
-
color: #64b3e7;
|
|
458
|
-
}
|
|
459
|
-
.eds-feedback-text__icon--warning {
|
|
460
|
-
color: #ffca28;
|
|
461
|
-
}
|
|
462
|
-
.eds-feedback-text__icon--warning circle {
|
|
463
|
-
fill: #181c56;
|
|
464
|
-
}
|
|
465
|
-
.eds-contrast .eds-feedback-text__icon--warning {
|
|
466
|
-
color: #ffe082;
|
|
467
|
-
}
|
|
468
|
-
/* DO NOT CHANGE!*/
|
|
469
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
470
604
|
.eds-form-component--radio__container {
|
|
471
605
|
display: flex;
|
|
472
606
|
justify-content: center;
|
|
@@ -555,137 +689,10 @@
|
|
|
555
689
|
}
|
|
556
690
|
/* DO NOT CHANGE!*/
|
|
557
691
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
558
|
-
.eds-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
}
|
|
563
|
-
.eds-input-group__label {
|
|
564
|
-
color: #656782;
|
|
565
|
-
display: flex;
|
|
566
|
-
font-size: 1rem;
|
|
567
|
-
position: absolute;
|
|
568
|
-
line-height: 1rem;
|
|
569
|
-
height: 3rem;
|
|
570
|
-
padding: 1rem;
|
|
571
|
-
padding-left: 0;
|
|
572
|
-
margin-left: 1rem;
|
|
573
|
-
top: -0.125rem;
|
|
574
|
-
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;
|
|
575
|
-
-webkit-user-select: none;
|
|
576
|
-
-moz-user-select: none;
|
|
577
|
-
user-select: none;
|
|
578
|
-
pointer-events: none;
|
|
579
|
-
}
|
|
580
|
-
.eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
581
|
-
top: 0.375rem;
|
|
582
|
-
font-size: 0.75rem;
|
|
583
|
-
line-height: 0.75rem;
|
|
584
|
-
height: 10px;
|
|
585
|
-
padding: 0;
|
|
586
|
-
margin-left: 1rem;
|
|
587
|
-
}
|
|
588
|
-
.eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
589
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
590
|
-
background: var(--textarea-label-background);
|
|
591
|
-
width: calc(
|
|
592
|
-
100% - 1rem - 1rem - 4px
|
|
593
|
-
);
|
|
594
|
-
}
|
|
595
|
-
.eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
596
|
-
top: 0.5rem;
|
|
597
|
-
font-size: 0.875rem;
|
|
598
|
-
line-height: 1rem;
|
|
599
|
-
padding: 0;
|
|
600
|
-
margin-left: 1rem;
|
|
601
|
-
}
|
|
602
|
-
.eds-contrast .eds-input-group__label {
|
|
603
|
-
color: #8285a8;
|
|
604
|
-
}
|
|
605
|
-
.eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
|
|
606
|
-
color: #aeb7e2;
|
|
607
|
-
}
|
|
608
|
-
.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
609
|
-
font-size: 1.5rem;
|
|
610
|
-
line-height: 2.25rem;
|
|
611
|
-
height: 4rem;
|
|
612
|
-
}
|
|
613
|
-
.eds-input-group__label--filled {
|
|
614
|
-
top: 0.375rem;
|
|
615
|
-
font-size: 0.75rem;
|
|
616
|
-
line-height: 0.75rem;
|
|
617
|
-
height: 10px;
|
|
618
|
-
padding: 0;
|
|
619
|
-
margin-left: 1rem;
|
|
620
|
-
}
|
|
621
|
-
.eds-textarea__label .eds-input-group__label--filled {
|
|
622
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
623
|
-
background: var(--textarea-label-background);
|
|
624
|
-
width: calc(
|
|
625
|
-
100% - 1rem - 1rem - 4px
|
|
626
|
-
);
|
|
627
|
-
}
|
|
628
|
-
.eds-form-control-wrapper--size-large .eds-input-group__label--filled {
|
|
629
|
-
top: 0.5rem;
|
|
630
|
-
font-size: 0.875rem;
|
|
631
|
-
line-height: 1rem;
|
|
632
|
-
padding: 0;
|
|
633
|
-
margin-left: 1rem;
|
|
634
|
-
}
|
|
635
|
-
.eds-input-group__label-tooltip-icon {
|
|
636
|
-
color: #0082b9;
|
|
637
|
-
padding-left: 0.25rem;
|
|
638
|
-
padding-right: 0.25rem;
|
|
639
|
-
display: flex;
|
|
640
|
-
align-items: center;
|
|
641
|
-
cursor: help;
|
|
642
|
-
font-size: 1rem;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
.eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
646
|
-
top: 0.375rem;
|
|
647
|
-
font-size: 0.75rem;
|
|
648
|
-
line-height: 0.75rem;
|
|
649
|
-
height: 10px;
|
|
650
|
-
padding: 0;
|
|
651
|
-
margin-left: 1rem;
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
.eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
655
|
-
top: 0.375rem;
|
|
656
|
-
font-size: 0.75rem;
|
|
657
|
-
line-height: 0.75rem;
|
|
658
|
-
height: 10px;
|
|
659
|
-
padding: 0;
|
|
660
|
-
margin-left: 1rem;
|
|
661
|
-
}
|
|
662
|
-
.eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
663
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
664
|
-
background: var(--textarea-label-background);
|
|
665
|
-
width: calc(
|
|
666
|
-
100% - 1rem - 1rem - 4px
|
|
667
|
-
);
|
|
668
|
-
}
|
|
669
|
-
.eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
670
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
671
|
-
background: var(--textarea-label-background);
|
|
672
|
-
width: calc(
|
|
673
|
-
100% - 1rem - 1rem - 4px
|
|
674
|
-
);
|
|
675
|
-
}
|
|
676
|
-
.eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
|
|
677
|
-
top: 0.5rem;
|
|
678
|
-
font-size: 0.875rem;
|
|
679
|
-
line-height: 1rem;
|
|
680
|
-
padding: 0;
|
|
681
|
-
margin-left: 1rem;
|
|
682
|
-
}
|
|
683
|
-
.eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
|
|
684
|
-
top: 0.5rem;
|
|
685
|
-
font-size: 0.875rem;
|
|
686
|
-
line-height: 1rem;
|
|
687
|
-
padding: 0;
|
|
688
|
-
margin-left: 1rem;
|
|
692
|
+
textarea.eds-form-control.eds-textarea {
|
|
693
|
+
min-height: 7.75rem;
|
|
694
|
+
resize: vertical;
|
|
695
|
+
line-height: 1.5rem;
|
|
689
696
|
}
|
|
690
697
|
/* DO NOT CHANGE!*/
|
|
691
698
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -808,13 +815,6 @@
|
|
|
808
815
|
}
|
|
809
816
|
/* DO NOT CHANGE!*/
|
|
810
817
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
811
|
-
textarea.eds-form-control.eds-textarea {
|
|
812
|
-
min-height: 7.75rem;
|
|
813
|
-
resize: vertical;
|
|
814
|
-
line-height: 1.5rem;
|
|
815
|
-
}
|
|
816
|
-
/* DO NOT CHANGE!*/
|
|
817
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
818
818
|
.eds-textfield__clear-button {
|
|
819
819
|
background: none;
|
|
820
820
|
border: none;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/form",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.3",
|
|
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": "^6.
|
|
30
|
+
"@entur/icons": "^6.2.0",
|
|
31
31
|
"@entur/tokens": "^3.8.1",
|
|
32
|
-
"@entur/tooltip": "^2.6.
|
|
33
|
-
"@entur/typography": "^1.7.
|
|
34
|
-
"@entur/utils": "^0.
|
|
32
|
+
"@entur/tooltip": "^2.6.13",
|
|
33
|
+
"@entur/typography": "^1.7.14",
|
|
34
|
+
"@entur/utils": "^0.7.0",
|
|
35
35
|
"classnames": "^2.3.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "402d010ee77f4ff809e3b709b0a29865c04cc1f4"
|
|
38
38
|
}
|