@entur/form 8.0.1 → 8.1.0-RC.0
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/BaseFormControl.d.ts +2 -0
- package/dist/TextArea.d.ts +9 -0
- package/dist/TextField.d.ts +9 -0
- package/dist/form.cjs.development.js +14 -4
- package/dist/form.cjs.development.js.map +1 -1
- package/dist/form.cjs.production.min.js +1 -1
- package/dist/form.cjs.production.min.js.map +1 -1
- package/dist/form.esm.js +14 -4
- package/dist/form.esm.js.map +1 -1
- package/dist/styles.css +159 -159
- package/package.json +7 -7
package/dist/styles.css
CHANGED
|
@@ -1,78 +1,5 @@
|
|
|
1
1
|
/* DO NOT CHANGE!*/
|
|
2
2
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
|
-
.eds-feedback-text {
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
margin-top: 0.25rem;
|
|
7
|
-
}
|
|
8
|
-
.eds-feedback-text--info, .eds-feedback-text--information {
|
|
9
|
-
padding-left: calc(1rem + 0.125rem);
|
|
10
|
-
}
|
|
11
|
-
.eds-feedback-text__text {
|
|
12
|
-
color: var(--components-form-feedbacktext-information-standard-text);
|
|
13
|
-
}
|
|
14
|
-
.eds-contrast .eds-feedback-text__text {
|
|
15
|
-
color: var(--components-form-feedbacktext-information-contrast-text);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.eds-feedback-text__icon {
|
|
19
|
-
font-size: 1.5rem;
|
|
20
|
-
min-height: 1.5rem;
|
|
21
|
-
min-width: 1.5rem;
|
|
22
|
-
padding-right: 0.5rem;
|
|
23
|
-
position: relative;
|
|
24
|
-
top: -0.1rem;
|
|
25
|
-
}
|
|
26
|
-
.eds-feedback-text__icon--success {
|
|
27
|
-
color: var(--components-form-feedbacktext-success-standard-icon-fill);
|
|
28
|
-
}
|
|
29
|
-
.eds-feedback-text__icon--success circle {
|
|
30
|
-
fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
|
|
31
|
-
}
|
|
32
|
-
.eds-contrast .eds-feedback-text__icon--success {
|
|
33
|
-
color: var(--components-form-feedbacktext-success-contrast-icon-fill);
|
|
34
|
-
}
|
|
35
|
-
.eds-contrast .eds-feedback-text__icon--success circle {
|
|
36
|
-
fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
|
|
37
|
-
}
|
|
38
|
-
.eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
|
|
39
|
-
color: var(--components-form-feedbacktext-negative-standard-icon-fill);
|
|
40
|
-
}
|
|
41
|
-
.eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
|
|
42
|
-
fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
|
|
43
|
-
}
|
|
44
|
-
.eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
|
|
45
|
-
color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
|
|
46
|
-
}
|
|
47
|
-
.eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
|
|
48
|
-
fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
|
|
49
|
-
}
|
|
50
|
-
.eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
|
|
51
|
-
color: var(--components-form-feedbacktext-information-standard-icon-fill);
|
|
52
|
-
}
|
|
53
|
-
.eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
|
|
54
|
-
fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
|
|
55
|
-
}
|
|
56
|
-
.eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
|
|
57
|
-
color: var(--components-form-feedbacktext-information-contrast-icon-fill);
|
|
58
|
-
}
|
|
59
|
-
.eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
|
|
60
|
-
fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
|
|
61
|
-
}
|
|
62
|
-
.eds-feedback-text__icon--warning {
|
|
63
|
-
color: var(--components-form-feedbacktext-warning-standard-icon-fill);
|
|
64
|
-
}
|
|
65
|
-
.eds-feedback-text__icon--warning .svg-exclamation {
|
|
66
|
-
fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
|
|
67
|
-
}
|
|
68
|
-
.eds-contrast .eds-feedback-text__icon--warning {
|
|
69
|
-
color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
|
|
70
|
-
}
|
|
71
|
-
.eds-contrast .eds-feedback-text__icon--warning circle {
|
|
72
|
-
fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
|
|
73
|
-
}
|
|
74
|
-
/* DO NOT CHANGE!*/
|
|
75
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
76
3
|
.eds-checkbox__container {
|
|
77
4
|
display: flex;
|
|
78
5
|
align-items: center;
|
|
@@ -226,6 +153,11 @@
|
|
|
226
153
|
stroke-dashoffset: 0;
|
|
227
154
|
}
|
|
228
155
|
}
|
|
156
|
+
.eds-fieldset {
|
|
157
|
+
margin: 0;
|
|
158
|
+
padding: 0;
|
|
159
|
+
border: 0;
|
|
160
|
+
}
|
|
229
161
|
/* DO NOT CHANGE!*/
|
|
230
162
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
231
163
|
.eds-form-control__field-and-feedback-text {
|
|
@@ -435,10 +367,106 @@
|
|
|
435
367
|
margin-right: 0;
|
|
436
368
|
margin-left: 0.75rem;
|
|
437
369
|
}
|
|
438
|
-
|
|
439
|
-
|
|
370
|
+
/* DO NOT CHANGE!*/
|
|
371
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
372
|
+
.eds-input-group {
|
|
373
|
+
color: inherit;
|
|
374
|
+
display: block;
|
|
375
|
+
position: relative;
|
|
376
|
+
}
|
|
377
|
+
.eds-input-group__label {
|
|
378
|
+
color: var(--components-form-baseform-standard-text-label);
|
|
379
|
+
display: flex;
|
|
380
|
+
font-size: 1rem;
|
|
381
|
+
position: absolute;
|
|
382
|
+
line-height: 1rem;
|
|
383
|
+
height: 3rem;
|
|
384
|
+
padding-left: 0;
|
|
385
|
+
top: 1rem;
|
|
386
|
+
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;
|
|
387
|
+
-webkit-user-select: none;
|
|
388
|
+
-moz-user-select: none;
|
|
389
|
+
user-select: none;
|
|
390
|
+
pointer-events: none;
|
|
391
|
+
}
|
|
392
|
+
.eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
393
|
+
top: 0.375rem;
|
|
394
|
+
font-size: 0.75rem;
|
|
395
|
+
line-height: 0.75rem;
|
|
396
|
+
height: 10px;
|
|
397
|
+
padding: 0;
|
|
398
|
+
}
|
|
399
|
+
.eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
400
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
401
|
+
background: var(--textarea-label-background);
|
|
402
|
+
width: calc(100% - 1rem - 1rem - 4px);
|
|
403
|
+
}
|
|
404
|
+
.eds-form-control-wrapper--is-filled.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
405
|
+
top: 0.5rem;
|
|
406
|
+
font-size: 0.875rem;
|
|
407
|
+
line-height: 1rem;
|
|
408
|
+
padding: 0;
|
|
409
|
+
}
|
|
410
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
411
|
+
top: 0.75rem;
|
|
412
|
+
font-size: 1.5rem;
|
|
413
|
+
line-height: 2.25rem;
|
|
414
|
+
}
|
|
415
|
+
.eds-input-group__label--filled {
|
|
416
|
+
top: 0.375rem;
|
|
417
|
+
font-size: 0.75rem;
|
|
418
|
+
line-height: 0.75rem;
|
|
419
|
+
height: 10px;
|
|
420
|
+
padding: 0;
|
|
421
|
+
}
|
|
422
|
+
.eds-textarea__label .eds-input-group__label--filled {
|
|
423
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
424
|
+
background: var(--textarea-label-background);
|
|
425
|
+
width: calc(100% - 1rem - 1rem - 4px);
|
|
426
|
+
}
|
|
427
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label--filled {
|
|
428
|
+
top: 0.5rem;
|
|
429
|
+
font-size: 0.875rem;
|
|
430
|
+
line-height: 1rem;
|
|
431
|
+
padding: 0;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
435
|
+
top: 0.375rem;
|
|
436
|
+
font-size: 0.75rem;
|
|
437
|
+
line-height: 0.75rem;
|
|
438
|
+
height: 10px;
|
|
439
|
+
padding: 0;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
443
|
+
top: 0.375rem;
|
|
444
|
+
font-size: 0.75rem;
|
|
445
|
+
line-height: 0.75rem;
|
|
446
|
+
height: 10px;
|
|
447
|
+
padding: 0;
|
|
448
|
+
}
|
|
449
|
+
.eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
450
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
451
|
+
background: var(--textarea-label-background);
|
|
452
|
+
width: calc(100% - 1rem - 1rem - 4px);
|
|
453
|
+
}
|
|
454
|
+
.eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
455
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
456
|
+
background: var(--textarea-label-background);
|
|
457
|
+
width: calc(100% - 1rem - 1rem - 4px);
|
|
458
|
+
}
|
|
459
|
+
.eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
|
|
460
|
+
top: 0.5rem;
|
|
461
|
+
font-size: 0.875rem;
|
|
462
|
+
line-height: 1rem;
|
|
463
|
+
padding: 0;
|
|
464
|
+
}
|
|
465
|
+
.eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
|
|
466
|
+
top: 0.5rem;
|
|
467
|
+
font-size: 0.875rem;
|
|
468
|
+
line-height: 1rem;
|
|
440
469
|
padding: 0;
|
|
441
|
-
border: 0;
|
|
442
470
|
}
|
|
443
471
|
/* DO NOT CHANGE!*/
|
|
444
472
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -524,104 +552,76 @@
|
|
|
524
552
|
}
|
|
525
553
|
/* DO NOT CHANGE!*/
|
|
526
554
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
527
|
-
.eds-
|
|
528
|
-
color: inherit;
|
|
529
|
-
display: block;
|
|
530
|
-
position: relative;
|
|
531
|
-
}
|
|
532
|
-
.eds-input-group__label {
|
|
533
|
-
color: var(--components-form-baseform-standard-text-label);
|
|
555
|
+
.eds-feedback-text {
|
|
534
556
|
display: flex;
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
line-height: 1rem;
|
|
538
|
-
height: 3rem;
|
|
539
|
-
padding-left: 0;
|
|
540
|
-
top: 1rem;
|
|
541
|
-
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;
|
|
542
|
-
-webkit-user-select: none;
|
|
543
|
-
-moz-user-select: none;
|
|
544
|
-
user-select: none;
|
|
545
|
-
pointer-events: none;
|
|
557
|
+
align-items: center;
|
|
558
|
+
margin-top: 0.25rem;
|
|
546
559
|
}
|
|
547
|
-
.eds-
|
|
548
|
-
|
|
549
|
-
font-size: 0.75rem;
|
|
550
|
-
line-height: 0.75rem;
|
|
551
|
-
height: 10px;
|
|
552
|
-
padding: 0;
|
|
560
|
+
.eds-feedback-text--info, .eds-feedback-text--information {
|
|
561
|
+
padding-left: calc(1rem + 0.125rem);
|
|
553
562
|
}
|
|
554
|
-
.eds-
|
|
555
|
-
|
|
556
|
-
background: var(--textarea-label-background);
|
|
557
|
-
width: calc(100% - 1rem - 1rem - 4px);
|
|
563
|
+
.eds-feedback-text__text {
|
|
564
|
+
color: var(--components-form-feedbacktext-information-standard-text);
|
|
558
565
|
}
|
|
559
|
-
.eds-
|
|
560
|
-
|
|
561
|
-
font-size: 0.875rem;
|
|
562
|
-
line-height: 1rem;
|
|
563
|
-
padding: 0;
|
|
566
|
+
.eds-contrast .eds-feedback-text__text {
|
|
567
|
+
color: var(--components-form-feedbacktext-information-contrast-text);
|
|
564
568
|
}
|
|
565
|
-
|
|
566
|
-
|
|
569
|
+
|
|
570
|
+
.eds-feedback-text__icon {
|
|
567
571
|
font-size: 1.5rem;
|
|
568
|
-
|
|
572
|
+
min-height: 1.5rem;
|
|
573
|
+
min-width: 1.5rem;
|
|
574
|
+
padding-right: 0.5rem;
|
|
575
|
+
position: relative;
|
|
576
|
+
top: -0.1rem;
|
|
569
577
|
}
|
|
570
|
-
.eds-
|
|
571
|
-
|
|
572
|
-
font-size: 0.75rem;
|
|
573
|
-
line-height: 0.75rem;
|
|
574
|
-
height: 10px;
|
|
575
|
-
padding: 0;
|
|
578
|
+
.eds-feedback-text__icon--success {
|
|
579
|
+
color: var(--components-form-feedbacktext-success-standard-icon-fill);
|
|
576
580
|
}
|
|
577
|
-
.eds-
|
|
578
|
-
|
|
579
|
-
background: var(--textarea-label-background);
|
|
580
|
-
width: calc(100% - 1rem - 1rem - 4px);
|
|
581
|
+
.eds-feedback-text__icon--success circle {
|
|
582
|
+
fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
|
|
581
583
|
}
|
|
582
|
-
.eds-
|
|
583
|
-
|
|
584
|
-
font-size: 0.875rem;
|
|
585
|
-
line-height: 1rem;
|
|
586
|
-
padding: 0;
|
|
584
|
+
.eds-contrast .eds-feedback-text__icon--success {
|
|
585
|
+
color: var(--components-form-feedbacktext-success-contrast-icon-fill);
|
|
587
586
|
}
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
top: 0.375rem;
|
|
591
|
-
font-size: 0.75rem;
|
|
592
|
-
line-height: 0.75rem;
|
|
593
|
-
height: 10px;
|
|
594
|
-
padding: 0;
|
|
587
|
+
.eds-contrast .eds-feedback-text__icon--success circle {
|
|
588
|
+
fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
|
|
595
589
|
}
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
top: 0.375rem;
|
|
599
|
-
font-size: 0.75rem;
|
|
600
|
-
line-height: 0.75rem;
|
|
601
|
-
height: 10px;
|
|
602
|
-
padding: 0;
|
|
590
|
+
.eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
|
|
591
|
+
color: var(--components-form-feedbacktext-negative-standard-icon-fill);
|
|
603
592
|
}
|
|
604
|
-
.eds-
|
|
605
|
-
|
|
606
|
-
background: var(--textarea-label-background);
|
|
607
|
-
width: calc(100% - 1rem - 1rem - 4px);
|
|
593
|
+
.eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
|
|
594
|
+
fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
|
|
608
595
|
}
|
|
609
|
-
.eds-
|
|
610
|
-
|
|
611
|
-
background: var(--textarea-label-background);
|
|
612
|
-
width: calc(100% - 1rem - 1rem - 4px);
|
|
596
|
+
.eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
|
|
597
|
+
color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
|
|
613
598
|
}
|
|
614
|
-
.eds-
|
|
615
|
-
|
|
616
|
-
font-size: 0.875rem;
|
|
617
|
-
line-height: 1rem;
|
|
618
|
-
padding: 0;
|
|
599
|
+
.eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
|
|
600
|
+
fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
|
|
619
601
|
}
|
|
620
|
-
.eds-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
602
|
+
.eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
|
|
603
|
+
color: var(--components-form-feedbacktext-information-standard-icon-fill);
|
|
604
|
+
}
|
|
605
|
+
.eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
|
|
606
|
+
fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
|
|
607
|
+
}
|
|
608
|
+
.eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
|
|
609
|
+
color: var(--components-form-feedbacktext-information-contrast-icon-fill);
|
|
610
|
+
}
|
|
611
|
+
.eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
|
|
612
|
+
fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
|
|
613
|
+
}
|
|
614
|
+
.eds-feedback-text__icon--warning {
|
|
615
|
+
color: var(--components-form-feedbacktext-warning-standard-icon-fill);
|
|
616
|
+
}
|
|
617
|
+
.eds-feedback-text__icon--warning .svg-exclamation {
|
|
618
|
+
fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
|
|
619
|
+
}
|
|
620
|
+
.eds-contrast .eds-feedback-text__icon--warning {
|
|
621
|
+
color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
|
|
622
|
+
}
|
|
623
|
+
.eds-contrast .eds-feedback-text__icon--warning circle {
|
|
624
|
+
fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
|
|
625
625
|
}
|
|
626
626
|
/* DO NOT CHANGE!*/
|
|
627
627
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/form",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.1.0-RC.0",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/form.esm.js",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/icons": "^7.
|
|
31
|
-
"@entur/tokens": "^3.
|
|
32
|
-
"@entur/tooltip": "^
|
|
33
|
-
"@entur/typography": "^1.8.
|
|
34
|
-
"@entur/utils": "^0.11.
|
|
30
|
+
"@entur/icons": "^7.3.0-RC.0",
|
|
31
|
+
"@entur/tokens": "^3.17.0",
|
|
32
|
+
"@entur/tooltip": "^4.0.0-RC.0",
|
|
33
|
+
"@entur/typography": "^1.8.44-RC.0",
|
|
34
|
+
"@entur/utils": "^0.11.2-RC.0",
|
|
35
35
|
"classnames": "^2.3.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "f279e609e10d40dd3ff47b09bd2828edf2bbcb7b"
|
|
38
38
|
}
|