@entur/form 7.0.18-beta.0 → 7.0.20
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 +325 -325
- package/package.json +5 -5
package/dist/styles.css
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
.eds-fieldset {
|
|
2
|
-
margin: 0;
|
|
3
|
-
padding: 0;
|
|
4
|
-
border: 0;
|
|
5
|
-
}
|
|
6
1
|
/* DO NOT CHANGE!*/
|
|
7
2
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
8
3
|
.eds-form-control-wrapper {
|
|
@@ -247,168 +242,6 @@
|
|
|
247
242
|
}
|
|
248
243
|
/* DO NOT CHANGE!*/
|
|
249
244
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
250
|
-
.eds-checkbox__container {
|
|
251
|
-
display: flex;
|
|
252
|
-
align-items: center;
|
|
253
|
-
position: relative;
|
|
254
|
-
-webkit-appearance: none;
|
|
255
|
-
-moz-appearance: none;
|
|
256
|
-
appearance: none;
|
|
257
|
-
cursor: pointer;
|
|
258
|
-
-webkit-user-select: none;
|
|
259
|
-
-moz-user-select: none;
|
|
260
|
-
user-select: none;
|
|
261
|
-
width: -moz-fit-content;
|
|
262
|
-
width: fit-content;
|
|
263
|
-
margin: 0.5rem 0;
|
|
264
|
-
}
|
|
265
|
-
.eds-checkbox__container--reduced-click-area {
|
|
266
|
-
height: -moz-fit-content;
|
|
267
|
-
height: fit-content;
|
|
268
|
-
}
|
|
269
|
-
.eds-checkbox__container input {
|
|
270
|
-
position: absolute;
|
|
271
|
-
opacity: 0;
|
|
272
|
-
height: 0;
|
|
273
|
-
width: 0;
|
|
274
|
-
}
|
|
275
|
-
.eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
|
|
276
|
-
background-color: #181c56;
|
|
277
|
-
}
|
|
278
|
-
.eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
|
|
279
|
-
visibility: visible;
|
|
280
|
-
}
|
|
281
|
-
.eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon path {
|
|
282
|
-
stroke: #ffffff;
|
|
283
|
-
animation: stroke ease-in-out 0.2s 0.1s forwards;
|
|
284
|
-
}
|
|
285
|
-
.eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon rect {
|
|
286
|
-
fill: #ffffff;
|
|
287
|
-
}
|
|
288
|
-
.eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
|
|
289
|
-
opacity: 0.5;
|
|
290
|
-
}
|
|
291
|
-
.eds-checkbox__container input:checked + .eds-checkbox__icon--disabled path {
|
|
292
|
-
opacity: 0.5;
|
|
293
|
-
}
|
|
294
|
-
.eds-checkbox__container input:checked + .eds-checkbox__icon--disabled rect {
|
|
295
|
-
opacity: 0.5;
|
|
296
|
-
}
|
|
297
|
-
.eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled path {
|
|
298
|
-
opacity: 0.5;
|
|
299
|
-
}
|
|
300
|
-
.eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled rect {
|
|
301
|
-
opacity: 0.5;
|
|
302
|
-
}
|
|
303
|
-
.eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
|
|
304
|
-
background-color: #aeb7e2;
|
|
305
|
-
}
|
|
306
|
-
.eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon path, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon path {
|
|
307
|
-
stroke: #181c56;
|
|
308
|
-
}
|
|
309
|
-
.eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon rect, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon rect {
|
|
310
|
-
fill: #181c56;
|
|
311
|
-
}
|
|
312
|
-
.eds-checkbox__container:hover input + .eds-checkbox__icon {
|
|
313
|
-
border-color: #292b6a;
|
|
314
|
-
background-color: #d1d4e3;
|
|
315
|
-
}
|
|
316
|
-
.eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
|
|
317
|
-
border-color: #b6bee5;
|
|
318
|
-
background-color: rgba(174, 183, 226, 0.2);
|
|
319
|
-
}
|
|
320
|
-
.eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
|
|
321
|
-
.eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
|
|
322
|
-
border-color: transparent;
|
|
323
|
-
background-color: #54568c;
|
|
324
|
-
}
|
|
325
|
-
.eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
|
|
326
|
-
.eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
|
|
327
|
-
background-color: #b6bee5;
|
|
328
|
-
}
|
|
329
|
-
.eds-checkbox__container:active input + .eds-checkbox__icon {
|
|
330
|
-
border-color: #16194d;
|
|
331
|
-
}
|
|
332
|
-
.eds-contrast .eds-checkbox__container:active input + .eds-checkbox__icon {
|
|
333
|
-
border-color: #9da5cb;
|
|
334
|
-
}
|
|
335
|
-
.eds-checkbox__container:active input:checked + .eds-checkbox__icon,
|
|
336
|
-
.eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
|
|
337
|
-
background-color: #16194d;
|
|
338
|
-
}
|
|
339
|
-
.eds-contrast .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
|
|
340
|
-
.eds-contrast .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
|
|
341
|
-
background-color: #9da5cb;
|
|
342
|
-
}
|
|
343
|
-
.eds-checkbox__container:focus + .eds-checkbox__icon,
|
|
344
|
-
.eds-checkbox__container [focus-within] + .eds-checkbox__icon {
|
|
345
|
-
outline: none;
|
|
346
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
347
|
-
outline-offset: 0.125rem;
|
|
348
|
-
}
|
|
349
|
-
.eds-checkbox__container:focus + .eds-checkbox__icon,
|
|
350
|
-
.eds-checkbox__container :focus-within + .eds-checkbox__icon {
|
|
351
|
-
outline: none;
|
|
352
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
353
|
-
outline-offset: 0.125rem;
|
|
354
|
-
}
|
|
355
|
-
.eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
|
|
356
|
-
.eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
|
|
357
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
358
|
-
}
|
|
359
|
-
.eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
|
|
360
|
-
.eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
|
|
361
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
362
|
-
}
|
|
363
|
-
.eds-checkbox--disabled {
|
|
364
|
-
pointer-events: none;
|
|
365
|
-
}
|
|
366
|
-
.eds-checkbox--disabled .eds-checkbox__label {
|
|
367
|
-
opacity: 0.5;
|
|
368
|
-
}
|
|
369
|
-
.eds-checkbox--disabled .eds-checkbox__icon {
|
|
370
|
-
opacity: 0.5;
|
|
371
|
-
}
|
|
372
|
-
.eds-checkbox__icon {
|
|
373
|
-
box-sizing: border-box;
|
|
374
|
-
display: inline-flex;
|
|
375
|
-
justify-content: center;
|
|
376
|
-
align-items: center;
|
|
377
|
-
position: relative;
|
|
378
|
-
margin-right: 1rem;
|
|
379
|
-
height: 1.25rem;
|
|
380
|
-
width: 1.25rem;
|
|
381
|
-
border: 0.125rem solid #181c56;
|
|
382
|
-
border-radius: 0.125rem;
|
|
383
|
-
background-color: transparent;
|
|
384
|
-
color: #ffffff;
|
|
385
|
-
transition: border-color 0.1s ease-in-out, background-color 0.1s ease-in-out;
|
|
386
|
-
}
|
|
387
|
-
.eds-checkbox__icon--reduced-click-area {
|
|
388
|
-
margin-right: 0;
|
|
389
|
-
}
|
|
390
|
-
.eds-contrast .eds-checkbox__icon {
|
|
391
|
-
border-color: #aeb7e2;
|
|
392
|
-
}
|
|
393
|
-
.eds-checkbox__icon .eds-checkbox-icon {
|
|
394
|
-
height: 1rem;
|
|
395
|
-
width: 1rem;
|
|
396
|
-
visibility: hidden;
|
|
397
|
-
}
|
|
398
|
-
.eds-checkbox__icon .eds-checkbox-icon path {
|
|
399
|
-
transform-origin: 50% 50%;
|
|
400
|
-
stroke-dasharray: 48;
|
|
401
|
-
stroke-dashoffset: 48;
|
|
402
|
-
stroke-width: 0.375rem;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
@keyframes stroke {
|
|
406
|
-
100% {
|
|
407
|
-
stroke-dashoffset: 0;
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
/* DO NOT CHANGE!*/
|
|
411
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
412
245
|
.eds-feedback-text {
|
|
413
246
|
display: flex;
|
|
414
247
|
align-items: center;
|
|
@@ -547,6 +380,11 @@
|
|
|
547
380
|
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
548
381
|
background-color: #aeb7e2;
|
|
549
382
|
}
|
|
383
|
+
.eds-fieldset {
|
|
384
|
+
margin: 0;
|
|
385
|
+
padding: 0;
|
|
386
|
+
border: 0;
|
|
387
|
+
}
|
|
550
388
|
/* DO NOT CHANGE!*/
|
|
551
389
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
552
390
|
.eds-switch {
|
|
@@ -668,171 +506,40 @@
|
|
|
668
506
|
}
|
|
669
507
|
/* DO NOT CHANGE!*/
|
|
670
508
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
671
|
-
.eds-input-
|
|
672
|
-
color:
|
|
673
|
-
|
|
674
|
-
position: relative;
|
|
509
|
+
.eds-input-panel[focus-within] .eds-input-panel__container {
|
|
510
|
+
border-color: #181c56;
|
|
511
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
675
512
|
}
|
|
676
|
-
.eds-input-
|
|
677
|
-
color: #
|
|
678
|
-
|
|
679
|
-
font-size: 1rem;
|
|
680
|
-
position: absolute;
|
|
681
|
-
line-height: 1rem;
|
|
682
|
-
height: 3rem;
|
|
683
|
-
padding: 1rem;
|
|
684
|
-
padding-left: 0;
|
|
685
|
-
margin-left: 1rem;
|
|
686
|
-
top: -0.125rem;
|
|
687
|
-
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;
|
|
688
|
-
-webkit-user-select: none;
|
|
689
|
-
-moz-user-select: none;
|
|
690
|
-
user-select: none;
|
|
691
|
-
pointer-events: none;
|
|
513
|
+
.eds-input-panel:focus-within .eds-input-panel__container {
|
|
514
|
+
border-color: #181c56;
|
|
515
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
692
516
|
}
|
|
693
|
-
.eds-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
line-height: 0.75rem;
|
|
697
|
-
height: 10px;
|
|
698
|
-
padding: 0;
|
|
699
|
-
margin-left: 1rem;
|
|
517
|
+
.eds-contrast .eds-input-panel[focus-within] .eds-input-panel__container {
|
|
518
|
+
border-color: #ffffff;
|
|
519
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
700
520
|
}
|
|
701
|
-
.eds-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
width: calc(
|
|
705
|
-
100% - 1rem - 1rem - 4px
|
|
706
|
-
);
|
|
521
|
+
.eds-contrast .eds-input-panel:focus-within .eds-input-panel__container {
|
|
522
|
+
border-color: #ffffff;
|
|
523
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
707
524
|
}
|
|
708
|
-
.eds-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
525
|
+
.eds-input-panel > input {
|
|
526
|
+
position: absolute;
|
|
527
|
+
opacity: 0;
|
|
528
|
+
cursor: pointer;
|
|
529
|
+
height: 0;
|
|
530
|
+
width: 0;
|
|
714
531
|
}
|
|
715
|
-
.eds-
|
|
716
|
-
color: #
|
|
532
|
+
.eds-input-panel > input:checked + .eds-input-panel__container {
|
|
533
|
+
border-color: #181c56;
|
|
534
|
+
background: #f5f5f8;
|
|
717
535
|
}
|
|
718
|
-
.eds-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
height: 4rem;
|
|
536
|
+
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container {
|
|
537
|
+
border-color: #aeb7e2;
|
|
538
|
+
background: #393d79;
|
|
722
539
|
}
|
|
723
|
-
.eds-input-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
line-height: 0.75rem;
|
|
727
|
-
height: 10px;
|
|
728
|
-
padding: 0;
|
|
729
|
-
margin-left: 1rem;
|
|
730
|
-
}
|
|
731
|
-
.eds-textarea__label .eds-input-group__label--filled {
|
|
732
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
733
|
-
background: var(--textarea-label-background);
|
|
734
|
-
width: calc(
|
|
735
|
-
100% - 1rem - 1rem - 4px
|
|
736
|
-
);
|
|
737
|
-
}
|
|
738
|
-
.eds-form-control-wrapper--size-large .eds-input-group__label--filled {
|
|
739
|
-
top: 0.5rem;
|
|
740
|
-
font-size: 0.875rem;
|
|
741
|
-
line-height: 1rem;
|
|
742
|
-
padding: 0;
|
|
743
|
-
margin-left: 1rem;
|
|
744
|
-
}
|
|
745
|
-
.eds-input-group__label-tooltip-icon {
|
|
746
|
-
color: #0082b9;
|
|
747
|
-
padding-left: 0.25rem;
|
|
748
|
-
padding-right: 0.25rem;
|
|
749
|
-
display: flex;
|
|
750
|
-
align-items: center;
|
|
751
|
-
cursor: help;
|
|
752
|
-
font-size: 1rem;
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
.eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
756
|
-
top: 0.375rem;
|
|
757
|
-
font-size: 0.75rem;
|
|
758
|
-
line-height: 0.75rem;
|
|
759
|
-
height: 10px;
|
|
760
|
-
padding: 0;
|
|
761
|
-
margin-left: 1rem;
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
.eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
765
|
-
top: 0.375rem;
|
|
766
|
-
font-size: 0.75rem;
|
|
767
|
-
line-height: 0.75rem;
|
|
768
|
-
height: 10px;
|
|
769
|
-
padding: 0;
|
|
770
|
-
margin-left: 1rem;
|
|
771
|
-
}
|
|
772
|
-
.eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
773
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
774
|
-
background: var(--textarea-label-background);
|
|
775
|
-
width: calc(
|
|
776
|
-
100% - 1rem - 1rem - 4px
|
|
777
|
-
);
|
|
778
|
-
}
|
|
779
|
-
.eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
780
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
781
|
-
background: var(--textarea-label-background);
|
|
782
|
-
width: calc(
|
|
783
|
-
100% - 1rem - 1rem - 4px
|
|
784
|
-
);
|
|
785
|
-
}
|
|
786
|
-
.eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
|
|
787
|
-
top: 0.5rem;
|
|
788
|
-
font-size: 0.875rem;
|
|
789
|
-
line-height: 1rem;
|
|
790
|
-
padding: 0;
|
|
791
|
-
margin-left: 1rem;
|
|
792
|
-
}
|
|
793
|
-
.eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
|
|
794
|
-
top: 0.5rem;
|
|
795
|
-
font-size: 0.875rem;
|
|
796
|
-
line-height: 1rem;
|
|
797
|
-
padding: 0;
|
|
798
|
-
margin-left: 1rem;
|
|
799
|
-
}
|
|
800
|
-
/* DO NOT CHANGE!*/
|
|
801
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
802
|
-
.eds-input-panel[focus-within] .eds-input-panel__container {
|
|
803
|
-
border-color: #181c56;
|
|
804
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
805
|
-
}
|
|
806
|
-
.eds-input-panel:focus-within .eds-input-panel__container {
|
|
807
|
-
border-color: #181c56;
|
|
808
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
809
|
-
}
|
|
810
|
-
.eds-contrast .eds-input-panel[focus-within] .eds-input-panel__container {
|
|
811
|
-
border-color: #ffffff;
|
|
812
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
813
|
-
}
|
|
814
|
-
.eds-contrast .eds-input-panel:focus-within .eds-input-panel__container {
|
|
815
|
-
border-color: #ffffff;
|
|
816
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
817
|
-
}
|
|
818
|
-
.eds-input-panel > input {
|
|
819
|
-
position: absolute;
|
|
820
|
-
opacity: 0;
|
|
821
|
-
cursor: pointer;
|
|
822
|
-
height: 0;
|
|
823
|
-
width: 0;
|
|
824
|
-
}
|
|
825
|
-
.eds-input-panel > input:checked + .eds-input-panel__container {
|
|
826
|
-
border-color: #181c56;
|
|
827
|
-
background: #f5f5f8;
|
|
828
|
-
}
|
|
829
|
-
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container {
|
|
830
|
-
border-color: #aeb7e2;
|
|
831
|
-
background: #393d79;
|
|
832
|
-
}
|
|
833
|
-
.eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
|
|
834
|
-
width: 0.75rem;
|
|
835
|
-
height: 0.75rem;
|
|
540
|
+
.eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
|
|
541
|
+
width: 0.75rem;
|
|
542
|
+
height: 0.75rem;
|
|
836
543
|
}
|
|
837
544
|
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
|
|
838
545
|
background-color: #ffffff;
|
|
@@ -964,6 +671,299 @@ input:disabled + .eds-input-panel__container {
|
|
|
964
671
|
}
|
|
965
672
|
/* DO NOT CHANGE!*/
|
|
966
673
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
674
|
+
.eds-input-group {
|
|
675
|
+
color: inherit;
|
|
676
|
+
display: block;
|
|
677
|
+
position: relative;
|
|
678
|
+
}
|
|
679
|
+
.eds-input-group__label {
|
|
680
|
+
color: #656782;
|
|
681
|
+
display: flex;
|
|
682
|
+
font-size: 1rem;
|
|
683
|
+
position: absolute;
|
|
684
|
+
line-height: 1rem;
|
|
685
|
+
height: 3rem;
|
|
686
|
+
padding: 1rem;
|
|
687
|
+
padding-left: 0;
|
|
688
|
+
margin-left: 1rem;
|
|
689
|
+
top: -0.125rem;
|
|
690
|
+
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;
|
|
691
|
+
-webkit-user-select: none;
|
|
692
|
+
-moz-user-select: none;
|
|
693
|
+
user-select: none;
|
|
694
|
+
pointer-events: none;
|
|
695
|
+
}
|
|
696
|
+
.eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
697
|
+
top: 0.375rem;
|
|
698
|
+
font-size: 0.75rem;
|
|
699
|
+
line-height: 0.75rem;
|
|
700
|
+
height: 10px;
|
|
701
|
+
padding: 0;
|
|
702
|
+
margin-left: 1rem;
|
|
703
|
+
}
|
|
704
|
+
.eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
705
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
706
|
+
background: var(--textarea-label-background);
|
|
707
|
+
width: calc(
|
|
708
|
+
100% - 1rem - 1rem - 4px
|
|
709
|
+
);
|
|
710
|
+
}
|
|
711
|
+
.eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
712
|
+
top: 0.5rem;
|
|
713
|
+
font-size: 0.875rem;
|
|
714
|
+
line-height: 1rem;
|
|
715
|
+
padding: 0;
|
|
716
|
+
margin-left: 1rem;
|
|
717
|
+
}
|
|
718
|
+
.eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
|
|
719
|
+
color: #aeb7e2;
|
|
720
|
+
}
|
|
721
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
722
|
+
font-size: 1.5rem;
|
|
723
|
+
line-height: 2.25rem;
|
|
724
|
+
height: 4rem;
|
|
725
|
+
}
|
|
726
|
+
.eds-input-group__label--filled {
|
|
727
|
+
top: 0.375rem;
|
|
728
|
+
font-size: 0.75rem;
|
|
729
|
+
line-height: 0.75rem;
|
|
730
|
+
height: 10px;
|
|
731
|
+
padding: 0;
|
|
732
|
+
margin-left: 1rem;
|
|
733
|
+
}
|
|
734
|
+
.eds-textarea__label .eds-input-group__label--filled {
|
|
735
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
736
|
+
background: var(--textarea-label-background);
|
|
737
|
+
width: calc(
|
|
738
|
+
100% - 1rem - 1rem - 4px
|
|
739
|
+
);
|
|
740
|
+
}
|
|
741
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label--filled {
|
|
742
|
+
top: 0.5rem;
|
|
743
|
+
font-size: 0.875rem;
|
|
744
|
+
line-height: 1rem;
|
|
745
|
+
padding: 0;
|
|
746
|
+
margin-left: 1rem;
|
|
747
|
+
}
|
|
748
|
+
.eds-input-group__label-tooltip-icon {
|
|
749
|
+
color: #0082b9;
|
|
750
|
+
padding-left: 0.25rem;
|
|
751
|
+
padding-right: 0.25rem;
|
|
752
|
+
display: flex;
|
|
753
|
+
align-items: center;
|
|
754
|
+
cursor: help;
|
|
755
|
+
font-size: 1rem;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
.eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
759
|
+
top: 0.375rem;
|
|
760
|
+
font-size: 0.75rem;
|
|
761
|
+
line-height: 0.75rem;
|
|
762
|
+
height: 10px;
|
|
763
|
+
padding: 0;
|
|
764
|
+
margin-left: 1rem;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
.eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
768
|
+
top: 0.375rem;
|
|
769
|
+
font-size: 0.75rem;
|
|
770
|
+
line-height: 0.75rem;
|
|
771
|
+
height: 10px;
|
|
772
|
+
padding: 0;
|
|
773
|
+
margin-left: 1rem;
|
|
774
|
+
}
|
|
775
|
+
.eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
776
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
777
|
+
background: var(--textarea-label-background);
|
|
778
|
+
width: calc(
|
|
779
|
+
100% - 1rem - 1rem - 4px
|
|
780
|
+
);
|
|
781
|
+
}
|
|
782
|
+
.eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
783
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
784
|
+
background: var(--textarea-label-background);
|
|
785
|
+
width: calc(
|
|
786
|
+
100% - 1rem - 1rem - 4px
|
|
787
|
+
);
|
|
788
|
+
}
|
|
789
|
+
.eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
|
|
790
|
+
top: 0.5rem;
|
|
791
|
+
font-size: 0.875rem;
|
|
792
|
+
line-height: 1rem;
|
|
793
|
+
padding: 0;
|
|
794
|
+
margin-left: 1rem;
|
|
795
|
+
}
|
|
796
|
+
.eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
|
|
797
|
+
top: 0.5rem;
|
|
798
|
+
font-size: 0.875rem;
|
|
799
|
+
line-height: 1rem;
|
|
800
|
+
padding: 0;
|
|
801
|
+
margin-left: 1rem;
|
|
802
|
+
}
|
|
803
|
+
/* DO NOT CHANGE!*/
|
|
804
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
805
|
+
.eds-checkbox__container {
|
|
806
|
+
display: flex;
|
|
807
|
+
align-items: center;
|
|
808
|
+
position: relative;
|
|
809
|
+
-webkit-appearance: none;
|
|
810
|
+
-moz-appearance: none;
|
|
811
|
+
appearance: none;
|
|
812
|
+
cursor: pointer;
|
|
813
|
+
-webkit-user-select: none;
|
|
814
|
+
-moz-user-select: none;
|
|
815
|
+
user-select: none;
|
|
816
|
+
width: -moz-fit-content;
|
|
817
|
+
width: fit-content;
|
|
818
|
+
margin: 0.5rem 0;
|
|
819
|
+
}
|
|
820
|
+
.eds-checkbox__container--reduced-click-area {
|
|
821
|
+
height: -moz-fit-content;
|
|
822
|
+
height: fit-content;
|
|
823
|
+
}
|
|
824
|
+
.eds-checkbox__container input {
|
|
825
|
+
position: absolute;
|
|
826
|
+
opacity: 0;
|
|
827
|
+
height: 0;
|
|
828
|
+
width: 0;
|
|
829
|
+
}
|
|
830
|
+
.eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
|
|
831
|
+
background-color: #181c56;
|
|
832
|
+
}
|
|
833
|
+
.eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
|
|
834
|
+
visibility: visible;
|
|
835
|
+
}
|
|
836
|
+
.eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon path {
|
|
837
|
+
stroke: #ffffff;
|
|
838
|
+
animation: stroke ease-in-out 0.2s 0.1s forwards;
|
|
839
|
+
}
|
|
840
|
+
.eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon rect {
|
|
841
|
+
fill: #ffffff;
|
|
842
|
+
}
|
|
843
|
+
.eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
|
|
844
|
+
opacity: 0.5;
|
|
845
|
+
}
|
|
846
|
+
.eds-checkbox__container input:checked + .eds-checkbox__icon--disabled path {
|
|
847
|
+
opacity: 0.5;
|
|
848
|
+
}
|
|
849
|
+
.eds-checkbox__container input:checked + .eds-checkbox__icon--disabled rect {
|
|
850
|
+
opacity: 0.5;
|
|
851
|
+
}
|
|
852
|
+
.eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled path {
|
|
853
|
+
opacity: 0.5;
|
|
854
|
+
}
|
|
855
|
+
.eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled rect {
|
|
856
|
+
opacity: 0.5;
|
|
857
|
+
}
|
|
858
|
+
.eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
|
|
859
|
+
background-color: #aeb7e2;
|
|
860
|
+
}
|
|
861
|
+
.eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon path, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon path {
|
|
862
|
+
stroke: #181c56;
|
|
863
|
+
}
|
|
864
|
+
.eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon rect, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon rect {
|
|
865
|
+
fill: #181c56;
|
|
866
|
+
}
|
|
867
|
+
.eds-checkbox__container:hover input + .eds-checkbox__icon {
|
|
868
|
+
border-color: #292b6a;
|
|
869
|
+
background-color: #d1d4e3;
|
|
870
|
+
}
|
|
871
|
+
.eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
|
|
872
|
+
border-color: #b6bee5;
|
|
873
|
+
background-color: rgba(174, 183, 226, 0.2);
|
|
874
|
+
}
|
|
875
|
+
.eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
|
|
876
|
+
.eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
|
|
877
|
+
border-color: transparent;
|
|
878
|
+
background-color: #54568c;
|
|
879
|
+
}
|
|
880
|
+
.eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
|
|
881
|
+
.eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
|
|
882
|
+
background-color: #b6bee5;
|
|
883
|
+
}
|
|
884
|
+
.eds-checkbox__container:active input + .eds-checkbox__icon {
|
|
885
|
+
border-color: #16194d;
|
|
886
|
+
}
|
|
887
|
+
.eds-contrast .eds-checkbox__container:active input + .eds-checkbox__icon {
|
|
888
|
+
border-color: #9da5cb;
|
|
889
|
+
}
|
|
890
|
+
.eds-checkbox__container:active input:checked + .eds-checkbox__icon,
|
|
891
|
+
.eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
|
|
892
|
+
background-color: #16194d;
|
|
893
|
+
}
|
|
894
|
+
.eds-contrast .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
|
|
895
|
+
.eds-contrast .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
|
|
896
|
+
background-color: #9da5cb;
|
|
897
|
+
}
|
|
898
|
+
.eds-checkbox__container:focus + .eds-checkbox__icon,
|
|
899
|
+
.eds-checkbox__container [focus-within] + .eds-checkbox__icon {
|
|
900
|
+
outline: none;
|
|
901
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
902
|
+
outline-offset: 0.125rem;
|
|
903
|
+
}
|
|
904
|
+
.eds-checkbox__container:focus + .eds-checkbox__icon,
|
|
905
|
+
.eds-checkbox__container :focus-within + .eds-checkbox__icon {
|
|
906
|
+
outline: none;
|
|
907
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
908
|
+
outline-offset: 0.125rem;
|
|
909
|
+
}
|
|
910
|
+
.eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
|
|
911
|
+
.eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
|
|
912
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
913
|
+
}
|
|
914
|
+
.eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
|
|
915
|
+
.eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
|
|
916
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
917
|
+
}
|
|
918
|
+
.eds-checkbox--disabled {
|
|
919
|
+
pointer-events: none;
|
|
920
|
+
}
|
|
921
|
+
.eds-checkbox--disabled .eds-checkbox__label {
|
|
922
|
+
opacity: 0.5;
|
|
923
|
+
}
|
|
924
|
+
.eds-checkbox--disabled .eds-checkbox__icon {
|
|
925
|
+
opacity: 0.5;
|
|
926
|
+
}
|
|
927
|
+
.eds-checkbox__icon {
|
|
928
|
+
box-sizing: border-box;
|
|
929
|
+
display: inline-flex;
|
|
930
|
+
justify-content: center;
|
|
931
|
+
align-items: center;
|
|
932
|
+
position: relative;
|
|
933
|
+
margin-right: 1rem;
|
|
934
|
+
height: 1.25rem;
|
|
935
|
+
width: 1.25rem;
|
|
936
|
+
border: 0.125rem solid #181c56;
|
|
937
|
+
border-radius: 0.125rem;
|
|
938
|
+
background-color: transparent;
|
|
939
|
+
color: #ffffff;
|
|
940
|
+
transition: border-color 0.1s ease-in-out, background-color 0.1s ease-in-out;
|
|
941
|
+
}
|
|
942
|
+
.eds-checkbox__icon--reduced-click-area {
|
|
943
|
+
margin-right: 0;
|
|
944
|
+
}
|
|
945
|
+
.eds-contrast .eds-checkbox__icon {
|
|
946
|
+
border-color: #aeb7e2;
|
|
947
|
+
}
|
|
948
|
+
.eds-checkbox__icon .eds-checkbox-icon {
|
|
949
|
+
height: 1rem;
|
|
950
|
+
width: 1rem;
|
|
951
|
+
visibility: hidden;
|
|
952
|
+
}
|
|
953
|
+
.eds-checkbox__icon .eds-checkbox-icon path {
|
|
954
|
+
transform-origin: 50% 50%;
|
|
955
|
+
stroke-dasharray: 48;
|
|
956
|
+
stroke-dashoffset: 48;
|
|
957
|
+
stroke-width: 0.375rem;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
@keyframes stroke {
|
|
961
|
+
100% {
|
|
962
|
+
stroke-dashoffset: 0;
|
|
963
|
+
}
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/form",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.20",
|
|
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.8.0",
|
|
31
31
|
"@entur/tokens": "^3.10.0",
|
|
32
|
-
"@entur/tooltip": "^2.6.
|
|
33
|
-
"@entur/typography": "^1.8.
|
|
32
|
+
"@entur/tooltip": "^2.6.29",
|
|
33
|
+
"@entur/typography": "^1.8.10",
|
|
34
34
|
"@entur/utils": "^0.9.5",
|
|
35
35
|
"classnames": "^2.3.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "9e5cbcf10c3e18dff42f0afb3b4cb40df557c14c"
|
|
38
38
|
}
|