@entur/form 7.0.18 → 7.0.21
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 +305 -305
- package/package.json +5 -5
package/dist/styles.css
CHANGED
|
@@ -1,5 +1,57 @@
|
|
|
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 {
|
|
9
|
+
padding-left: calc(1rem + 0.125rem);
|
|
10
|
+
}
|
|
11
|
+
.eds-feedback-text__text {
|
|
12
|
+
color: #181c56;
|
|
13
|
+
}
|
|
14
|
+
.eds-contrast .eds-feedback-text__text {
|
|
15
|
+
color: #ffffff;
|
|
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: #1a8e60;
|
|
28
|
+
}
|
|
29
|
+
.eds-contrast .eds-feedback-text__icon--success {
|
|
30
|
+
color: #5ac39a;
|
|
31
|
+
}
|
|
32
|
+
.eds-feedback-text__icon--error {
|
|
33
|
+
color: #d31b1b;
|
|
34
|
+
}
|
|
35
|
+
.eds-contrast .eds-feedback-text__icon--error {
|
|
36
|
+
color: #ff9494;
|
|
37
|
+
}
|
|
38
|
+
.eds-feedback-text__icon--info {
|
|
39
|
+
color: #0082b9;
|
|
40
|
+
}
|
|
41
|
+
.eds-contrast .eds-feedback-text__icon--info {
|
|
42
|
+
color: #64b3e7;
|
|
43
|
+
}
|
|
44
|
+
.eds-feedback-text__icon--warning {
|
|
45
|
+
color: #ffca28;
|
|
46
|
+
}
|
|
47
|
+
.eds-feedback-text__icon--warning circle {
|
|
48
|
+
fill: #181c56;
|
|
49
|
+
}
|
|
50
|
+
.eds-contrast .eds-feedback-text__icon--warning {
|
|
51
|
+
color: #ffe082;
|
|
52
|
+
}
|
|
53
|
+
/* DO NOT CHANGE!*/
|
|
54
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
55
|
.eds-checkbox__container {
|
|
4
56
|
display: flex;
|
|
5
57
|
align-items: center;
|
|
@@ -160,62 +212,141 @@
|
|
|
160
212
|
stroke-dashoffset: 0;
|
|
161
213
|
}
|
|
162
214
|
}
|
|
215
|
+
.eds-fieldset {
|
|
216
|
+
margin: 0;
|
|
217
|
+
padding: 0;
|
|
218
|
+
border: 0;
|
|
219
|
+
}
|
|
163
220
|
/* DO NOT CHANGE!*/
|
|
164
221
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
165
|
-
.eds-
|
|
222
|
+
.eds-input-group {
|
|
223
|
+
color: inherit;
|
|
224
|
+
display: block;
|
|
225
|
+
position: relative;
|
|
226
|
+
}
|
|
227
|
+
.eds-input-group__label {
|
|
228
|
+
color: #656782;
|
|
166
229
|
display: flex;
|
|
167
|
-
|
|
168
|
-
|
|
230
|
+
font-size: 1rem;
|
|
231
|
+
position: absolute;
|
|
232
|
+
line-height: 1rem;
|
|
233
|
+
height: 3rem;
|
|
234
|
+
padding: 1rem;
|
|
235
|
+
padding-left: 0;
|
|
236
|
+
margin-left: 1rem;
|
|
237
|
+
top: -0.125rem;
|
|
238
|
+
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;
|
|
239
|
+
-webkit-user-select: none;
|
|
240
|
+
-moz-user-select: none;
|
|
241
|
+
user-select: none;
|
|
242
|
+
pointer-events: none;
|
|
169
243
|
}
|
|
170
|
-
.eds-
|
|
171
|
-
|
|
244
|
+
.eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
245
|
+
top: 0.375rem;
|
|
246
|
+
font-size: 0.75rem;
|
|
247
|
+
line-height: 0.75rem;
|
|
248
|
+
height: 10px;
|
|
249
|
+
padding: 0;
|
|
250
|
+
margin-left: 1rem;
|
|
172
251
|
}
|
|
173
|
-
.eds-
|
|
174
|
-
|
|
252
|
+
.eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
253
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
254
|
+
background: var(--textarea-label-background);
|
|
255
|
+
width: calc(
|
|
256
|
+
100% - 1rem - 1rem - 4px
|
|
257
|
+
);
|
|
175
258
|
}
|
|
176
|
-
.eds-
|
|
177
|
-
|
|
259
|
+
.eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
260
|
+
top: 0.5rem;
|
|
261
|
+
font-size: 0.875rem;
|
|
262
|
+
line-height: 1rem;
|
|
263
|
+
padding: 0;
|
|
264
|
+
margin-left: 1rem;
|
|
178
265
|
}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
font-size: 1.5rem;
|
|
182
|
-
min-height: 1.5rem;
|
|
183
|
-
min-width: 1.5rem;
|
|
184
|
-
padding-right: 0.5rem;
|
|
185
|
-
position: relative;
|
|
186
|
-
top: -0.1rem;
|
|
266
|
+
.eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
|
|
267
|
+
color: #aeb7e2;
|
|
187
268
|
}
|
|
188
|
-
.eds-
|
|
189
|
-
|
|
269
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
270
|
+
font-size: 1.5rem;
|
|
271
|
+
line-height: 2.25rem;
|
|
272
|
+
height: 4rem;
|
|
190
273
|
}
|
|
191
|
-
.eds-
|
|
192
|
-
|
|
274
|
+
.eds-input-group__label--filled {
|
|
275
|
+
top: 0.375rem;
|
|
276
|
+
font-size: 0.75rem;
|
|
277
|
+
line-height: 0.75rem;
|
|
278
|
+
height: 10px;
|
|
279
|
+
padding: 0;
|
|
280
|
+
margin-left: 1rem;
|
|
193
281
|
}
|
|
194
|
-
.eds-
|
|
195
|
-
|
|
282
|
+
.eds-textarea__label .eds-input-group__label--filled {
|
|
283
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
284
|
+
background: var(--textarea-label-background);
|
|
285
|
+
width: calc(
|
|
286
|
+
100% - 1rem - 1rem - 4px
|
|
287
|
+
);
|
|
196
288
|
}
|
|
197
|
-
.eds-
|
|
198
|
-
|
|
289
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label--filled {
|
|
290
|
+
top: 0.5rem;
|
|
291
|
+
font-size: 0.875rem;
|
|
292
|
+
line-height: 1rem;
|
|
293
|
+
padding: 0;
|
|
294
|
+
margin-left: 1rem;
|
|
199
295
|
}
|
|
200
|
-
.eds-
|
|
296
|
+
.eds-input-group__label-tooltip-icon {
|
|
201
297
|
color: #0082b9;
|
|
298
|
+
padding-left: 0.25rem;
|
|
299
|
+
padding-right: 0.25rem;
|
|
300
|
+
display: flex;
|
|
301
|
+
align-items: center;
|
|
302
|
+
cursor: help;
|
|
303
|
+
font-size: 1rem;
|
|
202
304
|
}
|
|
203
|
-
|
|
204
|
-
|
|
305
|
+
|
|
306
|
+
.eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
307
|
+
top: 0.375rem;
|
|
308
|
+
font-size: 0.75rem;
|
|
309
|
+
line-height: 0.75rem;
|
|
310
|
+
height: 10px;
|
|
311
|
+
padding: 0;
|
|
312
|
+
margin-left: 1rem;
|
|
205
313
|
}
|
|
206
|
-
|
|
207
|
-
|
|
314
|
+
|
|
315
|
+
.eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
316
|
+
top: 0.375rem;
|
|
317
|
+
font-size: 0.75rem;
|
|
318
|
+
line-height: 0.75rem;
|
|
319
|
+
height: 10px;
|
|
320
|
+
padding: 0;
|
|
321
|
+
margin-left: 1rem;
|
|
208
322
|
}
|
|
209
|
-
.eds-
|
|
210
|
-
|
|
323
|
+
.eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
324
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
325
|
+
background: var(--textarea-label-background);
|
|
326
|
+
width: calc(
|
|
327
|
+
100% - 1rem - 1rem - 4px
|
|
328
|
+
);
|
|
211
329
|
}
|
|
212
|
-
.eds-
|
|
213
|
-
|
|
330
|
+
.eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
331
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
332
|
+
background: var(--textarea-label-background);
|
|
333
|
+
width: calc(
|
|
334
|
+
100% - 1rem - 1rem - 4px
|
|
335
|
+
);
|
|
214
336
|
}
|
|
215
|
-
.eds-
|
|
216
|
-
|
|
337
|
+
.eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
|
|
338
|
+
top: 0.5rem;
|
|
339
|
+
font-size: 0.875rem;
|
|
340
|
+
line-height: 1rem;
|
|
217
341
|
padding: 0;
|
|
218
|
-
|
|
342
|
+
margin-left: 1rem;
|
|
343
|
+
}
|
|
344
|
+
.eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
|
|
345
|
+
top: 0.5rem;
|
|
346
|
+
font-size: 0.875rem;
|
|
347
|
+
line-height: 1rem;
|
|
348
|
+
padding: 0;
|
|
349
|
+
margin-left: 1rem;
|
|
219
350
|
}
|
|
220
351
|
/* DO NOT CHANGE!*/
|
|
221
352
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -461,50 +592,138 @@
|
|
|
461
592
|
}
|
|
462
593
|
/* DO NOT CHANGE!*/
|
|
463
594
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
464
|
-
.eds-
|
|
595
|
+
.eds-form-component--radio__container {
|
|
596
|
+
display: flex;
|
|
597
|
+
justify-content: center;
|
|
598
|
+
align-items: center;
|
|
599
|
+
position: relative;
|
|
465
600
|
cursor: pointer;
|
|
601
|
+
height: 2rem;
|
|
602
|
+
width: -moz-fit-content;
|
|
603
|
+
width: fit-content;
|
|
466
604
|
-webkit-user-select: none;
|
|
467
605
|
-moz-user-select: none;
|
|
468
606
|
user-select: none;
|
|
469
|
-
padding: 0.5rem 0;
|
|
470
|
-
width: -moz-fit-content;
|
|
471
|
-
width: fit-content;
|
|
472
|
-
}
|
|
473
|
-
.eds-switch input {
|
|
474
|
-
opacity: 0;
|
|
475
|
-
pointer-events: none;
|
|
476
|
-
position: absolute;
|
|
477
607
|
}
|
|
478
|
-
.eds-
|
|
479
|
-
|
|
480
|
-
flex-direction: row;
|
|
481
|
-
align-items: center;
|
|
608
|
+
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
609
|
+
border-color: #54568c;
|
|
482
610
|
}
|
|
483
|
-
.eds-
|
|
484
|
-
|
|
485
|
-
flex-direction: column;
|
|
486
|
-
align-items: center;
|
|
611
|
+
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
612
|
+
background-color: #54568c;
|
|
487
613
|
}
|
|
488
|
-
.eds-
|
|
489
|
-
border-
|
|
490
|
-
height: 1.25rem;
|
|
491
|
-
width: 1.25rem;
|
|
492
|
-
content: "";
|
|
493
|
-
display: flex;
|
|
494
|
-
align-items: center;
|
|
495
|
-
justify-content: center;
|
|
496
|
-
transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
|
|
497
|
-
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
498
|
-
background-color: #ffffff;
|
|
499
|
-
top: 0.125rem;
|
|
500
|
-
left: 0.125rem;
|
|
501
|
-
position: relative;
|
|
614
|
+
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
615
|
+
border-color: #8285a8;
|
|
502
616
|
}
|
|
503
|
-
.eds-
|
|
504
|
-
|
|
505
|
-
width: 1.75rem;
|
|
617
|
+
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
618
|
+
background-color: #8285a8;
|
|
506
619
|
}
|
|
507
|
-
.eds-
|
|
620
|
+
.eds-form-component--radio__container input {
|
|
621
|
+
position: absolute;
|
|
622
|
+
opacity: 0;
|
|
623
|
+
cursor: pointer;
|
|
624
|
+
height: 0;
|
|
625
|
+
width: 0;
|
|
626
|
+
}
|
|
627
|
+
.eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
628
|
+
height: 0.625rem;
|
|
629
|
+
width: 0.625rem;
|
|
630
|
+
}
|
|
631
|
+
.eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
632
|
+
outline: none;
|
|
633
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
634
|
+
outline-offset: 0.125rem;
|
|
635
|
+
}
|
|
636
|
+
.eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
637
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
638
|
+
}
|
|
639
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
640
|
+
position: relative;
|
|
641
|
+
height: 1.25rem;
|
|
642
|
+
width: 1.25rem;
|
|
643
|
+
margin-right: 1rem;
|
|
644
|
+
background-color: #ffffff;
|
|
645
|
+
border: 0.125rem solid #181c56;
|
|
646
|
+
border-radius: 50%;
|
|
647
|
+
display: flex;
|
|
648
|
+
align-items: center;
|
|
649
|
+
justify-content: center;
|
|
650
|
+
}
|
|
651
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
652
|
+
background-color: #181c56;
|
|
653
|
+
border-color: #aeb7e2;
|
|
654
|
+
}
|
|
655
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
656
|
+
background: #d1d3d3;
|
|
657
|
+
border-color: #d1d3d3;
|
|
658
|
+
cursor: not-allowed;
|
|
659
|
+
}
|
|
660
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
|
|
661
|
+
border-color: #d1d3d3;
|
|
662
|
+
}
|
|
663
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
664
|
+
background: #d1d3d3;
|
|
665
|
+
border-color: #d1d3d3;
|
|
666
|
+
}
|
|
667
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
|
|
668
|
+
color: #656782;
|
|
669
|
+
}
|
|
670
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
671
|
+
display: block;
|
|
672
|
+
width: 0;
|
|
673
|
+
height: 0;
|
|
674
|
+
border-radius: 50%;
|
|
675
|
+
background-color: #181c56;
|
|
676
|
+
transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
|
|
677
|
+
}
|
|
678
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
679
|
+
background-color: #aeb7e2;
|
|
680
|
+
}
|
|
681
|
+
/* DO NOT CHANGE!*/
|
|
682
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
683
|
+
.eds-switch {
|
|
684
|
+
cursor: pointer;
|
|
685
|
+
-webkit-user-select: none;
|
|
686
|
+
-moz-user-select: none;
|
|
687
|
+
user-select: none;
|
|
688
|
+
padding: 0.5rem 0;
|
|
689
|
+
width: -moz-fit-content;
|
|
690
|
+
width: fit-content;
|
|
691
|
+
}
|
|
692
|
+
.eds-switch input {
|
|
693
|
+
opacity: 0;
|
|
694
|
+
pointer-events: none;
|
|
695
|
+
position: absolute;
|
|
696
|
+
}
|
|
697
|
+
.eds-switch--right {
|
|
698
|
+
display: flex;
|
|
699
|
+
flex-direction: row;
|
|
700
|
+
align-items: center;
|
|
701
|
+
}
|
|
702
|
+
.eds-switch--bottom {
|
|
703
|
+
display: flex;
|
|
704
|
+
flex-direction: column;
|
|
705
|
+
align-items: center;
|
|
706
|
+
}
|
|
707
|
+
.eds-switch__circle {
|
|
708
|
+
border-radius: 50%;
|
|
709
|
+
height: 1.25rem;
|
|
710
|
+
width: 1.25rem;
|
|
711
|
+
content: "";
|
|
712
|
+
display: flex;
|
|
713
|
+
align-items: center;
|
|
714
|
+
justify-content: center;
|
|
715
|
+
transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
|
|
716
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
717
|
+
background-color: #ffffff;
|
|
718
|
+
top: 0.125rem;
|
|
719
|
+
left: 0.125rem;
|
|
720
|
+
position: relative;
|
|
721
|
+
}
|
|
722
|
+
.eds-switch__switch--large .eds-switch__circle {
|
|
723
|
+
height: 1.75rem;
|
|
724
|
+
width: 1.75rem;
|
|
725
|
+
}
|
|
726
|
+
.eds-contrast .eds-switch__circle {
|
|
508
727
|
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
|
|
509
728
|
}
|
|
510
729
|
.eds-switch__switch {
|
|
@@ -745,225 +964,6 @@ input:disabled + .eds-input-panel__container {
|
|
|
745
964
|
}
|
|
746
965
|
/* DO NOT CHANGE!*/
|
|
747
966
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
748
|
-
.eds-input-group {
|
|
749
|
-
color: inherit;
|
|
750
|
-
display: block;
|
|
751
|
-
position: relative;
|
|
752
|
-
}
|
|
753
|
-
.eds-input-group__label {
|
|
754
|
-
color: #656782;
|
|
755
|
-
display: flex;
|
|
756
|
-
font-size: 1rem;
|
|
757
|
-
position: absolute;
|
|
758
|
-
line-height: 1rem;
|
|
759
|
-
height: 3rem;
|
|
760
|
-
padding: 1rem;
|
|
761
|
-
padding-left: 0;
|
|
762
|
-
margin-left: 1rem;
|
|
763
|
-
top: -0.125rem;
|
|
764
|
-
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;
|
|
765
|
-
-webkit-user-select: none;
|
|
766
|
-
-moz-user-select: none;
|
|
767
|
-
user-select: none;
|
|
768
|
-
pointer-events: none;
|
|
769
|
-
}
|
|
770
|
-
.eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
771
|
-
top: 0.375rem;
|
|
772
|
-
font-size: 0.75rem;
|
|
773
|
-
line-height: 0.75rem;
|
|
774
|
-
height: 10px;
|
|
775
|
-
padding: 0;
|
|
776
|
-
margin-left: 1rem;
|
|
777
|
-
}
|
|
778
|
-
.eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
779
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
780
|
-
background: var(--textarea-label-background);
|
|
781
|
-
width: calc(
|
|
782
|
-
100% - 1rem - 1rem - 4px
|
|
783
|
-
);
|
|
784
|
-
}
|
|
785
|
-
.eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
786
|
-
top: 0.5rem;
|
|
787
|
-
font-size: 0.875rem;
|
|
788
|
-
line-height: 1rem;
|
|
789
|
-
padding: 0;
|
|
790
|
-
margin-left: 1rem;
|
|
791
|
-
}
|
|
792
|
-
.eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
|
|
793
|
-
color: #aeb7e2;
|
|
794
|
-
}
|
|
795
|
-
.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
796
|
-
font-size: 1.5rem;
|
|
797
|
-
line-height: 2.25rem;
|
|
798
|
-
height: 4rem;
|
|
799
|
-
}
|
|
800
|
-
.eds-input-group__label--filled {
|
|
801
|
-
top: 0.375rem;
|
|
802
|
-
font-size: 0.75rem;
|
|
803
|
-
line-height: 0.75rem;
|
|
804
|
-
height: 10px;
|
|
805
|
-
padding: 0;
|
|
806
|
-
margin-left: 1rem;
|
|
807
|
-
}
|
|
808
|
-
.eds-textarea__label .eds-input-group__label--filled {
|
|
809
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
810
|
-
background: var(--textarea-label-background);
|
|
811
|
-
width: calc(
|
|
812
|
-
100% - 1rem - 1rem - 4px
|
|
813
|
-
);
|
|
814
|
-
}
|
|
815
|
-
.eds-form-control-wrapper--size-large .eds-input-group__label--filled {
|
|
816
|
-
top: 0.5rem;
|
|
817
|
-
font-size: 0.875rem;
|
|
818
|
-
line-height: 1rem;
|
|
819
|
-
padding: 0;
|
|
820
|
-
margin-left: 1rem;
|
|
821
|
-
}
|
|
822
|
-
.eds-input-group__label-tooltip-icon {
|
|
823
|
-
color: #0082b9;
|
|
824
|
-
padding-left: 0.25rem;
|
|
825
|
-
padding-right: 0.25rem;
|
|
826
|
-
display: flex;
|
|
827
|
-
align-items: center;
|
|
828
|
-
cursor: help;
|
|
829
|
-
font-size: 1rem;
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
.eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
833
|
-
top: 0.375rem;
|
|
834
|
-
font-size: 0.75rem;
|
|
835
|
-
line-height: 0.75rem;
|
|
836
|
-
height: 10px;
|
|
837
|
-
padding: 0;
|
|
838
|
-
margin-left: 1rem;
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
.eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
842
|
-
top: 0.375rem;
|
|
843
|
-
font-size: 0.75rem;
|
|
844
|
-
line-height: 0.75rem;
|
|
845
|
-
height: 10px;
|
|
846
|
-
padding: 0;
|
|
847
|
-
margin-left: 1rem;
|
|
848
|
-
}
|
|
849
|
-
.eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
850
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
851
|
-
background: var(--textarea-label-background);
|
|
852
|
-
width: calc(
|
|
853
|
-
100% - 1rem - 1rem - 4px
|
|
854
|
-
);
|
|
855
|
-
}
|
|
856
|
-
.eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
857
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
858
|
-
background: var(--textarea-label-background);
|
|
859
|
-
width: calc(
|
|
860
|
-
100% - 1rem - 1rem - 4px
|
|
861
|
-
);
|
|
862
|
-
}
|
|
863
|
-
.eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
|
|
864
|
-
top: 0.5rem;
|
|
865
|
-
font-size: 0.875rem;
|
|
866
|
-
line-height: 1rem;
|
|
867
|
-
padding: 0;
|
|
868
|
-
margin-left: 1rem;
|
|
869
|
-
}
|
|
870
|
-
.eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
|
|
871
|
-
top: 0.5rem;
|
|
872
|
-
font-size: 0.875rem;
|
|
873
|
-
line-height: 1rem;
|
|
874
|
-
padding: 0;
|
|
875
|
-
margin-left: 1rem;
|
|
876
|
-
}
|
|
877
|
-
/* DO NOT CHANGE!*/
|
|
878
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
879
|
-
.eds-form-component--radio__container {
|
|
880
|
-
display: flex;
|
|
881
|
-
justify-content: center;
|
|
882
|
-
align-items: center;
|
|
883
|
-
position: relative;
|
|
884
|
-
cursor: pointer;
|
|
885
|
-
height: 2rem;
|
|
886
|
-
width: -moz-fit-content;
|
|
887
|
-
width: fit-content;
|
|
888
|
-
-webkit-user-select: none;
|
|
889
|
-
-moz-user-select: none;
|
|
890
|
-
user-select: none;
|
|
891
|
-
}
|
|
892
|
-
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
893
|
-
border-color: #54568c;
|
|
894
|
-
}
|
|
895
|
-
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
896
|
-
background-color: #54568c;
|
|
897
|
-
}
|
|
898
|
-
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
899
|
-
border-color: #8285a8;
|
|
900
|
-
}
|
|
901
|
-
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
902
|
-
background-color: #8285a8;
|
|
903
|
-
}
|
|
904
|
-
.eds-form-component--radio__container input {
|
|
905
|
-
position: absolute;
|
|
906
|
-
opacity: 0;
|
|
907
|
-
cursor: pointer;
|
|
908
|
-
height: 0;
|
|
909
|
-
width: 0;
|
|
910
|
-
}
|
|
911
|
-
.eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
912
|
-
height: 0.625rem;
|
|
913
|
-
width: 0.625rem;
|
|
914
|
-
}
|
|
915
|
-
.eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
916
|
-
outline: none;
|
|
917
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
918
|
-
outline-offset: 0.125rem;
|
|
919
|
-
}
|
|
920
|
-
.eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
921
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
922
|
-
}
|
|
923
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
924
|
-
position: relative;
|
|
925
|
-
height: 1.25rem;
|
|
926
|
-
width: 1.25rem;
|
|
927
|
-
margin-right: 1rem;
|
|
928
|
-
background-color: #ffffff;
|
|
929
|
-
border: 0.125rem solid #181c56;
|
|
930
|
-
border-radius: 50%;
|
|
931
|
-
display: flex;
|
|
932
|
-
align-items: center;
|
|
933
|
-
justify-content: center;
|
|
934
|
-
}
|
|
935
|
-
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
936
|
-
background-color: #181c56;
|
|
937
|
-
border-color: #aeb7e2;
|
|
938
|
-
}
|
|
939
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
940
|
-
background: #d1d3d3;
|
|
941
|
-
border-color: #d1d3d3;
|
|
942
|
-
cursor: not-allowed;
|
|
943
|
-
}
|
|
944
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
|
|
945
|
-
border-color: #d1d3d3;
|
|
946
|
-
}
|
|
947
|
-
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
948
|
-
background: #d1d3d3;
|
|
949
|
-
border-color: #d1d3d3;
|
|
950
|
-
}
|
|
951
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
|
|
952
|
-
color: #656782;
|
|
953
|
-
}
|
|
954
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
955
|
-
display: block;
|
|
956
|
-
width: 0;
|
|
957
|
-
height: 0;
|
|
958
|
-
border-radius: 50%;
|
|
959
|
-
background-color: #181c56;
|
|
960
|
-
transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
|
|
961
|
-
}
|
|
962
|
-
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
963
|
-
background-color: #aeb7e2;
|
|
964
|
-
}
|
|
965
|
-
/* DO NOT CHANGE!*/
|
|
966
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
967
967
|
textarea.eds-form-control.eds-textarea {
|
|
968
968
|
min-height: 7.75rem;
|
|
969
969
|
resize: vertical;
|
|
@@ -1008,6 +1008,20 @@ textarea.eds-form-control.eds-textarea {
|
|
|
1008
1008
|
}
|
|
1009
1009
|
/* DO NOT CHANGE!*/
|
|
1010
1010
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
1011
|
+
.eds-segmented-control {
|
|
1012
|
+
margin-top: 0.25rem;
|
|
1013
|
+
display: flex;
|
|
1014
|
+
background: #d1d4e3;
|
|
1015
|
+
border-radius: 0.5rem;
|
|
1016
|
+
}
|
|
1017
|
+
.eds-contrast .eds-segmented-control {
|
|
1018
|
+
background: #393d79;
|
|
1019
|
+
}
|
|
1020
|
+
:root {
|
|
1021
|
+
--eds-form: 1;
|
|
1022
|
+
}
|
|
1023
|
+
/* DO NOT CHANGE!*/
|
|
1024
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
1011
1025
|
.eds-segmented-choice {
|
|
1012
1026
|
display: block;
|
|
1013
1027
|
flex: 1 1 0px;
|
|
@@ -1077,17 +1091,3 @@ textarea.eds-form-control.eds-textarea {
|
|
|
1077
1091
|
.eds-contrast .eds-segmented-choice input:focus:checked + .eds-base-segmented {
|
|
1078
1092
|
box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121), inset 0 0 0 0.0625rem #ffffff, inset 0 0 0 calc(0.125rem + 0.0625rem) #181c56;
|
|
1079
1093
|
}
|
|
1080
|
-
/* DO NOT CHANGE!*/
|
|
1081
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
1082
|
-
.eds-segmented-control {
|
|
1083
|
-
margin-top: 0.25rem;
|
|
1084
|
-
display: flex;
|
|
1085
|
-
background: #d1d4e3;
|
|
1086
|
-
border-radius: 0.5rem;
|
|
1087
|
-
}
|
|
1088
|
-
.eds-contrast .eds-segmented-control {
|
|
1089
|
-
background: #393d79;
|
|
1090
|
-
}
|
|
1091
|
-
:root {
|
|
1092
|
-
--eds-form: 1;
|
|
1093
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/form",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.21",
|
|
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.9.0",
|
|
31
31
|
"@entur/tokens": "^3.10.0",
|
|
32
|
-
"@entur/tooltip": "^2.6.
|
|
33
|
-
"@entur/typography": "^1.8.
|
|
32
|
+
"@entur/tooltip": "^2.6.30",
|
|
33
|
+
"@entur/typography": "^1.8.11",
|
|
34
34
|
"@entur/utils": "^0.9.5",
|
|
35
35
|
"classnames": "^2.3.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "36f7ef81ee8188c701d607dc01124658dfff7265"
|
|
38
38
|
}
|