@entur/form 7.0.31 → 7.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/styles.css +341 -341
  2. package/package.json +6 -6
package/dist/styles.css CHANGED
@@ -1,3 +1,170 @@
1
+ .eds-fieldset {
2
+ margin: 0;
3
+ padding: 0;
4
+ border: 0;
5
+ }
6
+ /* DO NOT CHANGE!*/
7
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
8
+ .eds-checkbox__container {
9
+ display: flex;
10
+ align-items: center;
11
+ position: relative;
12
+ -webkit-appearance: none;
13
+ -moz-appearance: none;
14
+ appearance: none;
15
+ cursor: pointer;
16
+ -webkit-user-select: none;
17
+ -moz-user-select: none;
18
+ user-select: none;
19
+ width: -moz-fit-content;
20
+ width: fit-content;
21
+ margin: 0.5rem 0;
22
+ }
23
+ .eds-checkbox__container--reduced-click-area {
24
+ height: -moz-fit-content;
25
+ height: fit-content;
26
+ }
27
+ .eds-checkbox__container input {
28
+ position: absolute;
29
+ opacity: 0;
30
+ height: 0;
31
+ width: 0;
32
+ }
33
+ .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
34
+ background-color: #181c56;
35
+ }
36
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
37
+ visibility: visible;
38
+ }
39
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon path {
40
+ stroke: #ffffff;
41
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
42
+ }
43
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon rect {
44
+ fill: #ffffff;
45
+ }
46
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
47
+ opacity: 0.5;
48
+ }
49
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled path {
50
+ opacity: 0.5;
51
+ }
52
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled rect {
53
+ opacity: 0.5;
54
+ }
55
+ .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled path {
56
+ opacity: 0.5;
57
+ }
58
+ .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled rect {
59
+ opacity: 0.5;
60
+ }
61
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
62
+ background-color: #aeb7e2;
63
+ }
64
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon path, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon path {
65
+ stroke: #181c56;
66
+ }
67
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon rect, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon rect {
68
+ fill: #181c56;
69
+ }
70
+ .eds-checkbox__container:hover input + .eds-checkbox__icon {
71
+ border-color: #292b6a;
72
+ background-color: #d1d4e3;
73
+ }
74
+ .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
75
+ border-color: #b6bee5;
76
+ background-color: rgba(174, 183, 226, 0.2);
77
+ }
78
+ .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
79
+ .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
80
+ border-color: transparent;
81
+ background-color: #54568c;
82
+ }
83
+ .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
84
+ .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
85
+ background-color: #b6bee5;
86
+ }
87
+ .eds-checkbox__container:active input + .eds-checkbox__icon {
88
+ border-color: #16194d;
89
+ }
90
+ .eds-contrast .eds-checkbox__container:active input + .eds-checkbox__icon {
91
+ border-color: #9da5cb;
92
+ }
93
+ .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
94
+ .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
95
+ background-color: #16194d;
96
+ }
97
+ .eds-contrast .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
98
+ .eds-contrast .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
99
+ background-color: #9da5cb;
100
+ }
101
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
102
+ .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
103
+ outline: none;
104
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
105
+ outline-offset: 0.125rem;
106
+ }
107
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
108
+ .eds-checkbox__container :focus-within + .eds-checkbox__icon {
109
+ outline: none;
110
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
111
+ outline-offset: 0.125rem;
112
+ }
113
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
114
+ .eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
115
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
116
+ }
117
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
118
+ .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
119
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
120
+ }
121
+ .eds-checkbox--disabled {
122
+ pointer-events: none;
123
+ }
124
+ .eds-checkbox--disabled .eds-checkbox__label {
125
+ opacity: 0.5;
126
+ }
127
+ .eds-checkbox--disabled .eds-checkbox__icon {
128
+ opacity: 0.5;
129
+ }
130
+ .eds-checkbox__icon {
131
+ box-sizing: border-box;
132
+ display: inline-flex;
133
+ justify-content: center;
134
+ align-items: center;
135
+ position: relative;
136
+ margin-right: 1rem;
137
+ height: 1.25rem;
138
+ width: 1.25rem;
139
+ border: 0.125rem solid #181c56;
140
+ border-radius: 0.125rem;
141
+ background-color: transparent;
142
+ color: #ffffff;
143
+ transition: border-color 0.1s ease-in-out, background-color 0.1s ease-in-out;
144
+ }
145
+ .eds-checkbox__icon--reduced-click-area {
146
+ margin-right: 0;
147
+ }
148
+ .eds-contrast .eds-checkbox__icon {
149
+ border-color: #aeb7e2;
150
+ }
151
+ .eds-checkbox__icon .eds-checkbox-icon {
152
+ height: 1rem;
153
+ width: 1rem;
154
+ visibility: hidden;
155
+ }
156
+ .eds-checkbox__icon .eds-checkbox-icon path {
157
+ transform-origin: 50% 50%;
158
+ stroke-dasharray: 48;
159
+ stroke-dashoffset: 48;
160
+ stroke-width: 0.375rem;
161
+ }
162
+
163
+ @keyframes stroke {
164
+ 100% {
165
+ stroke-dashoffset: 0;
166
+ }
167
+ }
1
168
  /* DO NOT CHANGE!*/
2
169
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
170
  .eds-form-control-wrapper {
@@ -240,11 +407,6 @@
240
407
  .eds-form-control__append {
241
408
  margin-left: 0;
242
409
  }
243
- .eds-fieldset {
244
- margin: 0;
245
- padding: 0;
246
- border: 0;
247
- }
248
410
  /* DO NOT CHANGE!*/
249
411
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
250
412
  .eds-feedback-text {
@@ -299,165 +461,222 @@
299
461
  }
300
462
  /* DO NOT CHANGE!*/
301
463
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
302
- .eds-checkbox__container {
303
- display: flex;
304
- align-items: center;
464
+ .eds-input-group {
465
+ color: inherit;
466
+ display: block;
305
467
  position: relative;
306
- -webkit-appearance: none;
307
- -moz-appearance: none;
308
- appearance: none;
309
- cursor: pointer;
468
+ }
469
+ .eds-input-group__label {
470
+ color: #656782;
471
+ display: flex;
472
+ font-size: 1rem;
473
+ position: absolute;
474
+ line-height: 1rem;
475
+ height: 3rem;
476
+ padding: 1rem;
477
+ padding-left: 0;
478
+ margin-left: 1rem;
479
+ top: -0.125rem;
480
+ 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;
310
481
  -webkit-user-select: none;
311
482
  -moz-user-select: none;
312
483
  user-select: none;
313
- width: -moz-fit-content;
314
- width: fit-content;
315
- margin: 0.5rem 0;
484
+ pointer-events: none;
316
485
  }
317
- .eds-checkbox__container--reduced-click-area {
318
- height: -moz-fit-content;
319
- height: fit-content;
486
+ .eds-form-control-wrapper--is-filled .eds-input-group__label {
487
+ top: 0.375rem;
488
+ font-size: 0.75rem;
489
+ line-height: 0.75rem;
490
+ height: 10px;
491
+ padding: 0;
492
+ margin-left: 1rem;
320
493
  }
321
- .eds-checkbox__container input {
322
- position: absolute;
323
- opacity: 0;
324
- height: 0;
325
- width: 0;
494
+ .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
495
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
496
+ background: var(--textarea-label-background);
497
+ width: calc(
498
+ 100% - 1rem - 1rem - 4px
499
+ );
326
500
  }
327
- .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
328
- background-color: #181c56;
501
+ .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
502
+ top: 0.5rem;
503
+ font-size: 0.875rem;
504
+ line-height: 1rem;
505
+ padding: 0;
506
+ margin-left: 1rem;
329
507
  }
330
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
331
- visibility: visible;
508
+ .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
509
+ color: #aeb7e2;
332
510
  }
333
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon path {
334
- stroke: #ffffff;
335
- animation: stroke ease-in-out 0.2s 0.1s forwards;
511
+ .eds-form-control-wrapper--size-large .eds-input-group__label {
512
+ font-size: 1.5rem;
513
+ line-height: 2.25rem;
514
+ height: 4rem;
336
515
  }
337
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon rect {
338
- fill: #ffffff;
516
+ .eds-input-group__label--filled {
517
+ top: 0.375rem;
518
+ font-size: 0.75rem;
519
+ line-height: 0.75rem;
520
+ height: 10px;
521
+ padding: 0;
522
+ margin-left: 1rem;
339
523
  }
340
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
341
- opacity: 0.5;
524
+ .eds-textarea__label .eds-input-group__label--filled {
525
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
526
+ background: var(--textarea-label-background);
527
+ width: calc(
528
+ 100% - 1rem - 1rem - 4px
529
+ );
342
530
  }
343
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled path {
344
- opacity: 0.5;
345
- }
346
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled rect {
347
- opacity: 0.5;
531
+ .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
532
+ top: 0.5rem;
533
+ font-size: 0.875rem;
534
+ line-height: 1rem;
535
+ padding: 0;
536
+ margin-left: 1rem;
348
537
  }
349
- .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled path {
350
- opacity: 0.5;
538
+ .eds-input-group__label-tooltip-icon {
539
+ color: #0082b9;
540
+ padding-left: 0.25rem;
541
+ padding-right: 0.25rem;
542
+ display: flex;
543
+ align-items: center;
544
+ cursor: help;
545
+ font-size: 1rem;
351
546
  }
352
- .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled rect {
353
- opacity: 0.5;
547
+
548
+ .eds-form-control-wrapper[focus-within] .eds-input-group__label {
549
+ top: 0.375rem;
550
+ font-size: 0.75rem;
551
+ line-height: 0.75rem;
552
+ height: 10px;
553
+ padding: 0;
554
+ margin-left: 1rem;
354
555
  }
355
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
356
- background-color: #aeb7e2;
556
+
557
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
558
+ top: 0.375rem;
559
+ font-size: 0.75rem;
560
+ line-height: 0.75rem;
561
+ height: 10px;
562
+ padding: 0;
563
+ margin-left: 1rem;
357
564
  }
358
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon path, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon path {
359
- stroke: #181c56;
565
+ .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
566
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
567
+ background: var(--textarea-label-background);
568
+ width: calc(
569
+ 100% - 1rem - 1rem - 4px
570
+ );
360
571
  }
361
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon rect, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon rect {
362
- fill: #181c56;
572
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
573
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
574
+ background: var(--textarea-label-background);
575
+ width: calc(
576
+ 100% - 1rem - 1rem - 4px
577
+ );
363
578
  }
364
- .eds-checkbox__container:hover input + .eds-checkbox__icon {
365
- border-color: #292b6a;
366
- background-color: #d1d4e3;
579
+ .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
580
+ top: 0.5rem;
581
+ font-size: 0.875rem;
582
+ line-height: 1rem;
583
+ padding: 0;
584
+ margin-left: 1rem;
367
585
  }
368
- .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
369
- border-color: #b6bee5;
370
- background-color: rgba(174, 183, 226, 0.2);
586
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
587
+ top: 0.5rem;
588
+ font-size: 0.875rem;
589
+ line-height: 1rem;
590
+ padding: 0;
591
+ margin-left: 1rem;
371
592
  }
372
- .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
373
- .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
374
- border-color: transparent;
375
- background-color: #54568c;
593
+ /* DO NOT CHANGE!*/
594
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
595
+ .eds-form-component--radio__container {
596
+ display: flex;
597
+ justify-content: center;
598
+ align-items: center;
599
+ position: relative;
600
+ cursor: pointer;
601
+ height: 2rem;
602
+ width: -moz-fit-content;
603
+ width: fit-content;
604
+ -webkit-user-select: none;
605
+ -moz-user-select: none;
606
+ user-select: none;
376
607
  }
377
- .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
378
- .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
379
- background-color: #b6bee5;
608
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
609
+ border-color: #54568c;
380
610
  }
381
- .eds-checkbox__container:active input + .eds-checkbox__icon {
382
- border-color: #16194d;
611
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
612
+ background-color: #54568c;
383
613
  }
384
- .eds-contrast .eds-checkbox__container:active input + .eds-checkbox__icon {
385
- border-color: #9da5cb;
614
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
615
+ border-color: #8285a8;
386
616
  }
387
- .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
388
- .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
389
- background-color: #16194d;
617
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
618
+ background-color: #8285a8;
390
619
  }
391
- .eds-contrast .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
392
- .eds-contrast .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
393
- background-color: #9da5cb;
620
+ .eds-form-component--radio__container input {
621
+ position: absolute;
622
+ opacity: 0;
623
+ cursor: pointer;
624
+ height: 0;
625
+ width: 0;
394
626
  }
395
- .eds-checkbox__container:focus + .eds-checkbox__icon,
396
- .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
397
- outline: none;
398
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
399
- outline-offset: 0.125rem;
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;
400
630
  }
401
- .eds-checkbox__container:focus + .eds-checkbox__icon,
402
- .eds-checkbox__container :focus-within + .eds-checkbox__icon {
631
+ .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
403
632
  outline: none;
404
633
  box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
405
634
  outline-offset: 0.125rem;
406
635
  }
407
- .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
408
- .eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
409
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
410
- }
411
- .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
412
- .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
636
+ .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
413
637
  box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
414
638
  }
415
- .eds-checkbox--disabled {
416
- pointer-events: none;
417
- }
418
- .eds-checkbox--disabled .eds-checkbox__label {
419
- opacity: 0.5;
420
- }
421
- .eds-checkbox--disabled .eds-checkbox__icon {
422
- opacity: 0.5;
423
- }
424
- .eds-checkbox__icon {
425
- box-sizing: border-box;
426
- display: inline-flex;
427
- justify-content: center;
428
- align-items: center;
639
+ .eds-form-component--radio__container .eds-form-component--radio__radio {
429
640
  position: relative;
430
- margin-right: 1rem;
431
641
  height: 1.25rem;
432
642
  width: 1.25rem;
643
+ margin-right: 1rem;
644
+ background-color: #ffffff;
433
645
  border: 0.125rem solid #181c56;
434
- border-radius: 0.125rem;
435
- background-color: transparent;
436
- color: #ffffff;
437
- transition: border-color 0.1s ease-in-out, background-color 0.1s ease-in-out;
438
- }
439
- .eds-checkbox__icon--reduced-click-area {
440
- margin-right: 0;
646
+ border-radius: 50%;
647
+ display: flex;
648
+ align-items: center;
649
+ justify-content: center;
441
650
  }
442
- .eds-contrast .eds-checkbox__icon {
651
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
652
+ background-color: #181c56;
443
653
  border-color: #aeb7e2;
444
654
  }
445
- .eds-checkbox__icon .eds-checkbox-icon {
446
- height: 1rem;
447
- width: 1rem;
448
- visibility: hidden;
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;
449
659
  }
450
- .eds-checkbox__icon .eds-checkbox-icon path {
451
- transform-origin: 50% 50%;
452
- stroke-dasharray: 48;
453
- stroke-dashoffset: 48;
454
- stroke-width: 0.375rem;
660
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
661
+ border-color: #d1d3d3;
455
662
  }
456
-
457
- @keyframes stroke {
458
- 100% {
459
- stroke-dashoffset: 0;
460
- }
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;
461
680
  }
462
681
  /* DO NOT CHANGE!*/
463
682
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -623,137 +842,6 @@ input:disabled + .eds-input-panel__container {
623
842
  }
624
843
  /* DO NOT CHANGE!*/
625
844
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
626
- .eds-input-group {
627
- color: inherit;
628
- display: block;
629
- position: relative;
630
- }
631
- .eds-input-group__label {
632
- color: #656782;
633
- display: flex;
634
- font-size: 1rem;
635
- position: absolute;
636
- line-height: 1rem;
637
- height: 3rem;
638
- padding: 1rem;
639
- padding-left: 0;
640
- margin-left: 1rem;
641
- top: -0.125rem;
642
- 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;
643
- -webkit-user-select: none;
644
- -moz-user-select: none;
645
- user-select: none;
646
- pointer-events: none;
647
- }
648
- .eds-form-control-wrapper--is-filled .eds-input-group__label {
649
- top: 0.375rem;
650
- font-size: 0.75rem;
651
- line-height: 0.75rem;
652
- height: 10px;
653
- padding: 0;
654
- margin-left: 1rem;
655
- }
656
- .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
657
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
658
- background: var(--textarea-label-background);
659
- width: calc(
660
- 100% - 1rem - 1rem - 4px
661
- );
662
- }
663
- .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
664
- top: 0.5rem;
665
- font-size: 0.875rem;
666
- line-height: 1rem;
667
- padding: 0;
668
- margin-left: 1rem;
669
- }
670
- .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
671
- color: #aeb7e2;
672
- }
673
- .eds-form-control-wrapper--size-large .eds-input-group__label {
674
- font-size: 1.5rem;
675
- line-height: 2.25rem;
676
- height: 4rem;
677
- }
678
- .eds-input-group__label--filled {
679
- top: 0.375rem;
680
- font-size: 0.75rem;
681
- line-height: 0.75rem;
682
- height: 10px;
683
- padding: 0;
684
- margin-left: 1rem;
685
- }
686
- .eds-textarea__label .eds-input-group__label--filled {
687
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
688
- background: var(--textarea-label-background);
689
- width: calc(
690
- 100% - 1rem - 1rem - 4px
691
- );
692
- }
693
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
694
- top: 0.5rem;
695
- font-size: 0.875rem;
696
- line-height: 1rem;
697
- padding: 0;
698
- margin-left: 1rem;
699
- }
700
- .eds-input-group__label-tooltip-icon {
701
- color: #0082b9;
702
- padding-left: 0.25rem;
703
- padding-right: 0.25rem;
704
- display: flex;
705
- align-items: center;
706
- cursor: help;
707
- font-size: 1rem;
708
- }
709
-
710
- .eds-form-control-wrapper[focus-within] .eds-input-group__label {
711
- top: 0.375rem;
712
- font-size: 0.75rem;
713
- line-height: 0.75rem;
714
- height: 10px;
715
- padding: 0;
716
- margin-left: 1rem;
717
- }
718
-
719
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
720
- top: 0.375rem;
721
- font-size: 0.75rem;
722
- line-height: 0.75rem;
723
- height: 10px;
724
- padding: 0;
725
- margin-left: 1rem;
726
- }
727
- .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
728
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
729
- background: var(--textarea-label-background);
730
- width: calc(
731
- 100% - 1rem - 1rem - 4px
732
- );
733
- }
734
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
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[focus-within] .eds-input-group__label {
742
- top: 0.5rem;
743
- font-size: 0.875rem;
744
- line-height: 1rem;
745
- padding: 0;
746
- margin-left: 1rem;
747
- }
748
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
749
- top: 0.5rem;
750
- font-size: 0.875rem;
751
- line-height: 1rem;
752
- padding: 0;
753
- margin-left: 1rem;
754
- }
755
- /* DO NOT CHANGE!*/
756
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
757
845
  .eds-switch {
758
846
  cursor: pointer;
759
847
  -webkit-user-select: none;
@@ -873,94 +961,6 @@ input:disabled + .eds-input-panel__container {
873
961
  }
874
962
  /* DO NOT CHANGE!*/
875
963
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
876
- .eds-form-component--radio__container {
877
- display: flex;
878
- justify-content: center;
879
- align-items: center;
880
- position: relative;
881
- cursor: pointer;
882
- height: 2rem;
883
- width: -moz-fit-content;
884
- width: fit-content;
885
- -webkit-user-select: none;
886
- -moz-user-select: none;
887
- user-select: none;
888
- }
889
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
890
- border-color: #54568c;
891
- }
892
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
893
- background-color: #54568c;
894
- }
895
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
896
- border-color: #8285a8;
897
- }
898
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
899
- background-color: #8285a8;
900
- }
901
- .eds-form-component--radio__container input {
902
- position: absolute;
903
- opacity: 0;
904
- cursor: pointer;
905
- height: 0;
906
- width: 0;
907
- }
908
- .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
909
- height: 0.625rem;
910
- width: 0.625rem;
911
- }
912
- .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
913
- outline: none;
914
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
915
- outline-offset: 0.125rem;
916
- }
917
- .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
918
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
919
- }
920
- .eds-form-component--radio__container .eds-form-component--radio__radio {
921
- position: relative;
922
- height: 1.25rem;
923
- width: 1.25rem;
924
- margin-right: 1rem;
925
- background-color: #ffffff;
926
- border: 0.125rem solid #181c56;
927
- border-radius: 50%;
928
- display: flex;
929
- align-items: center;
930
- justify-content: center;
931
- }
932
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
933
- background-color: #181c56;
934
- border-color: #aeb7e2;
935
- }
936
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
937
- background: #d1d3d3;
938
- border-color: #d1d3d3;
939
- cursor: not-allowed;
940
- }
941
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
942
- border-color: #d1d3d3;
943
- }
944
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
945
- background: #d1d3d3;
946
- border-color: #d1d3d3;
947
- }
948
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
949
- color: #656782;
950
- }
951
- .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
952
- display: block;
953
- width: 0;
954
- height: 0;
955
- border-radius: 50%;
956
- background-color: #181c56;
957
- transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
958
- }
959
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
960
- background-color: #aeb7e2;
961
- }
962
- /* DO NOT CHANGE!*/
963
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
964
964
  textarea.eds-form-control.eds-textarea {
965
965
  min-height: 7.75rem;
966
966
  resize: vertical;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/form",
3
- "version": "7.0.31",
3
+ "version": "7.0.32",
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.13.1",
31
- "@entur/tokens": "^3.11.2",
32
- "@entur/tooltip": "^2.6.40",
33
- "@entur/typography": "^1.8.19",
30
+ "@entur/icons": "^6.13.2",
31
+ "@entur/tokens": "^3.12.0",
32
+ "@entur/tooltip": "^2.6.41",
33
+ "@entur/typography": "^1.8.20",
34
34
  "@entur/utils": "^0.9.5",
35
35
  "classnames": "^2.3.1"
36
36
  },
37
- "gitHead": "c3e894aeae7247bdaf3ec8636fade3301e605c0e"
37
+ "gitHead": "85dd6dbaf86fc2488dd2152c213788f9d4a8a64f"
38
38
  }