@entur/form 5.4.7 → 5.4.8-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/styles.css +253 -253
- package/package.json +16 -11
- package/CHANGELOG.md +0 -804
package/dist/styles.css
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
--eds-form: 1;
|
|
3
3
|
}/* DO NOT CHANGE!*/
|
|
4
4
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
5
|
+
.eds-fieldset {
|
|
6
|
+
margin: 0;
|
|
7
|
+
padding: 0;
|
|
8
|
+
border: 0;
|
|
9
|
+
}
|
|
10
|
+
.eds-fieldset .eds-legend {
|
|
11
|
+
margin: 0 0 0.5rem;
|
|
12
|
+
}/* DO NOT CHANGE!*/
|
|
13
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
5
14
|
.eds-feedback-text {
|
|
6
15
|
display: flex;
|
|
7
16
|
align-items: center;
|
|
@@ -53,6 +62,95 @@
|
|
|
53
62
|
color: #ffe082;
|
|
54
63
|
}/* DO NOT CHANGE!*/
|
|
55
64
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
65
|
+
.eds-form-component--radio__container {
|
|
66
|
+
display: flex;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
align-items: center;
|
|
69
|
+
position: relative;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
height: 2rem;
|
|
72
|
+
width: -webkit-fit-content;
|
|
73
|
+
width: -moz-fit-content;
|
|
74
|
+
width: fit-content;
|
|
75
|
+
-webkit-user-select: none;
|
|
76
|
+
-moz-user-select: none;
|
|
77
|
+
-ms-user-select: none;
|
|
78
|
+
user-select: none;
|
|
79
|
+
}
|
|
80
|
+
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
81
|
+
border-color: #54568c;
|
|
82
|
+
}
|
|
83
|
+
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
84
|
+
background-color: #54568c;
|
|
85
|
+
}
|
|
86
|
+
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
87
|
+
border-color: #8285a8;
|
|
88
|
+
}
|
|
89
|
+
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
90
|
+
background-color: #8285a8;
|
|
91
|
+
}
|
|
92
|
+
.eds-form-component--radio__container input {
|
|
93
|
+
position: absolute;
|
|
94
|
+
opacity: 0;
|
|
95
|
+
cursor: pointer;
|
|
96
|
+
height: 0;
|
|
97
|
+
width: 0;
|
|
98
|
+
}
|
|
99
|
+
.eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
100
|
+
height: 0.625rem;
|
|
101
|
+
width: 0.625rem;
|
|
102
|
+
}
|
|
103
|
+
.eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
104
|
+
outline: none;
|
|
105
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
106
|
+
outline-offset: 0.125rem;
|
|
107
|
+
}
|
|
108
|
+
.eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
109
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
110
|
+
}
|
|
111
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
112
|
+
position: relative;
|
|
113
|
+
height: 1.25rem;
|
|
114
|
+
width: 1.25rem;
|
|
115
|
+
margin-right: 1rem;
|
|
116
|
+
background-color: #ffffff;
|
|
117
|
+
border: 0.125rem solid #181c56;
|
|
118
|
+
border-radius: 50%;
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: center;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
}
|
|
123
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
124
|
+
background-color: #181c56;
|
|
125
|
+
border-color: #aeb7e2;
|
|
126
|
+
}
|
|
127
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
128
|
+
background: #d1d3d3;
|
|
129
|
+
border-color: #d1d3d3;
|
|
130
|
+
cursor: not-allowed;
|
|
131
|
+
}
|
|
132
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
|
|
133
|
+
border-color: #d1d3d3;
|
|
134
|
+
}
|
|
135
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
136
|
+
background: #d1d3d3;
|
|
137
|
+
border-color: #d1d3d3;
|
|
138
|
+
}
|
|
139
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
|
|
140
|
+
color: #656782;
|
|
141
|
+
}
|
|
142
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
143
|
+
display: block;
|
|
144
|
+
width: 0;
|
|
145
|
+
height: 0;
|
|
146
|
+
border-radius: 50%;
|
|
147
|
+
background-color: #181c56;
|
|
148
|
+
transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
|
|
149
|
+
}
|
|
150
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
151
|
+
background-color: #aeb7e2;
|
|
152
|
+
}/* DO NOT CHANGE!*/
|
|
153
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
56
154
|
.eds-checkbox__container {
|
|
57
155
|
display: flex;
|
|
58
156
|
align-items: center;
|
|
@@ -191,6 +289,132 @@
|
|
|
191
289
|
}
|
|
192
290
|
}/* DO NOT CHANGE!*/
|
|
193
291
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
292
|
+
.eds-input-group {
|
|
293
|
+
color: inherit;
|
|
294
|
+
display: block;
|
|
295
|
+
position: relative;
|
|
296
|
+
}
|
|
297
|
+
.eds-input-group__label {
|
|
298
|
+
color: #656782;
|
|
299
|
+
display: flex;
|
|
300
|
+
font-size: 1rem;
|
|
301
|
+
position: absolute;
|
|
302
|
+
line-height: 1rem;
|
|
303
|
+
height: 3rem;
|
|
304
|
+
padding: 1rem;
|
|
305
|
+
padding-left: 0;
|
|
306
|
+
margin-left: 1rem;
|
|
307
|
+
top: -0.125rem;
|
|
308
|
+
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;
|
|
309
|
+
-webkit-user-select: none;
|
|
310
|
+
-moz-user-select: none;
|
|
311
|
+
-ms-user-select: none;
|
|
312
|
+
user-select: none;
|
|
313
|
+
pointer-events: none;
|
|
314
|
+
}
|
|
315
|
+
.eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
316
|
+
top: calc(0.5rem - 0.125rem);
|
|
317
|
+
font-size: 0.75rem;
|
|
318
|
+
line-height: 0.75rem;
|
|
319
|
+
height: 10px;
|
|
320
|
+
padding: 0;
|
|
321
|
+
margin-left: 1rem;
|
|
322
|
+
}
|
|
323
|
+
.eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
324
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
325
|
+
background: var(--textarea-label-background);
|
|
326
|
+
width: calc( 100% - 1rem - 1rem - 4px );
|
|
327
|
+
}
|
|
328
|
+
.eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
329
|
+
top: 0.5rem;
|
|
330
|
+
font-size: 0.875rem;
|
|
331
|
+
line-height: 1rem;
|
|
332
|
+
padding: 0;
|
|
333
|
+
margin-left: 1rem;
|
|
334
|
+
}
|
|
335
|
+
.eds-contrast .eds-input-group__label {
|
|
336
|
+
color: #8285a8;
|
|
337
|
+
}
|
|
338
|
+
.eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
|
|
339
|
+
color: #aeb7e2;
|
|
340
|
+
}
|
|
341
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
342
|
+
font-size: 1.5rem;
|
|
343
|
+
line-height: 2.25rem;
|
|
344
|
+
height: 4rem;
|
|
345
|
+
}
|
|
346
|
+
.eds-input-group__label--filled {
|
|
347
|
+
top: calc(0.5rem - 0.125rem);
|
|
348
|
+
font-size: 0.75rem;
|
|
349
|
+
line-height: 0.75rem;
|
|
350
|
+
height: 10px;
|
|
351
|
+
padding: 0;
|
|
352
|
+
margin-left: 1rem;
|
|
353
|
+
}
|
|
354
|
+
.eds-textarea__label .eds-input-group__label--filled {
|
|
355
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
356
|
+
background: var(--textarea-label-background);
|
|
357
|
+
width: calc( 100% - 1rem - 1rem - 4px );
|
|
358
|
+
}
|
|
359
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label--filled {
|
|
360
|
+
top: 0.5rem;
|
|
361
|
+
font-size: 0.875rem;
|
|
362
|
+
line-height: 1rem;
|
|
363
|
+
padding: 0;
|
|
364
|
+
margin-left: 1rem;
|
|
365
|
+
}
|
|
366
|
+
.eds-input-group__label-tooltip-icon {
|
|
367
|
+
color: #0082b9;
|
|
368
|
+
padding-left: 0.25rem;
|
|
369
|
+
padding-right: 0.25rem;
|
|
370
|
+
display: flex;
|
|
371
|
+
align-items: center;
|
|
372
|
+
cursor: help;
|
|
373
|
+
font-size: 1rem;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
377
|
+
top: calc(0.5rem - 0.125rem);
|
|
378
|
+
font-size: 0.75rem;
|
|
379
|
+
line-height: 0.75rem;
|
|
380
|
+
height: 10px;
|
|
381
|
+
padding: 0;
|
|
382
|
+
margin-left: 1rem;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
386
|
+
top: calc(0.5rem - 0.125rem);
|
|
387
|
+
font-size: 0.75rem;
|
|
388
|
+
line-height: 0.75rem;
|
|
389
|
+
height: 10px;
|
|
390
|
+
padding: 0;
|
|
391
|
+
margin-left: 1rem;
|
|
392
|
+
}
|
|
393
|
+
.eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
394
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
395
|
+
background: var(--textarea-label-background);
|
|
396
|
+
width: calc( 100% - 1rem - 1rem - 4px );
|
|
397
|
+
}
|
|
398
|
+
.eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
399
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
400
|
+
background: var(--textarea-label-background);
|
|
401
|
+
width: calc( 100% - 1rem - 1rem - 4px );
|
|
402
|
+
}
|
|
403
|
+
.eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
|
|
404
|
+
top: 0.5rem;
|
|
405
|
+
font-size: 0.875rem;
|
|
406
|
+
line-height: 1rem;
|
|
407
|
+
padding: 0;
|
|
408
|
+
margin-left: 1rem;
|
|
409
|
+
}
|
|
410
|
+
.eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
|
|
411
|
+
top: 0.5rem;
|
|
412
|
+
font-size: 0.875rem;
|
|
413
|
+
line-height: 1rem;
|
|
414
|
+
padding: 0;
|
|
415
|
+
margin-left: 1rem;
|
|
416
|
+
}/* DO NOT CHANGE!*/
|
|
417
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
194
418
|
.eds-form-control-wrapper {
|
|
195
419
|
--border-color: #181c56;
|
|
196
420
|
--border-color-hover: #aeb7e2;
|
|
@@ -447,102 +671,46 @@
|
|
|
447
671
|
margin-left: 0;
|
|
448
672
|
}/* DO NOT CHANGE!*/
|
|
449
673
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
450
|
-
.eds-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
}
|
|
455
|
-
.eds-fieldset .eds-legend {
|
|
456
|
-
margin: 0 0 0.5rem;
|
|
674
|
+
textarea.eds-form-control.eds-textarea {
|
|
675
|
+
min-height: 7.75rem;
|
|
676
|
+
resize: vertical;
|
|
677
|
+
line-height: 1.5rem;
|
|
457
678
|
}/* DO NOT CHANGE!*/
|
|
458
679
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
459
|
-
.eds-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
cursor: pointer;
|
|
465
|
-
height: 2rem;
|
|
466
|
-
width: -webkit-fit-content;
|
|
467
|
-
width: -moz-fit-content;
|
|
468
|
-
width: fit-content;
|
|
469
|
-
-webkit-user-select: none;
|
|
470
|
-
-moz-user-select: none;
|
|
471
|
-
-ms-user-select: none;
|
|
472
|
-
user-select: none;
|
|
473
|
-
}
|
|
474
|
-
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
475
|
-
border-color: #54568c;
|
|
476
|
-
}
|
|
477
|
-
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
478
|
-
background-color: #54568c;
|
|
479
|
-
}
|
|
480
|
-
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
481
|
-
border-color: #8285a8;
|
|
482
|
-
}
|
|
483
|
-
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
484
|
-
background-color: #8285a8;
|
|
485
|
-
}
|
|
486
|
-
.eds-form-component--radio__container input {
|
|
487
|
-
position: absolute;
|
|
488
|
-
opacity: 0;
|
|
680
|
+
.eds-textfield__clear-button {
|
|
681
|
+
background: none;
|
|
682
|
+
border: none;
|
|
683
|
+
border-radius: 50%;
|
|
684
|
+
color: inherit;
|
|
489
685
|
cursor: pointer;
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
}
|
|
497
|
-
.eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
498
|
-
outline: none;
|
|
499
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
500
|
-
outline-offset: 0.125rem;
|
|
501
|
-
}
|
|
502
|
-
.eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
503
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
686
|
+
display: flex;
|
|
687
|
+
font: inherit;
|
|
688
|
+
font-size: 1rem;
|
|
689
|
+
line-height: 1rem;
|
|
690
|
+
padding: 0.5rem;
|
|
691
|
+
margin-right: -0.75rem;
|
|
504
692
|
}
|
|
505
|
-
.eds-
|
|
506
|
-
position: relative;
|
|
507
|
-
height: 1.25rem;
|
|
508
|
-
width: 1.25rem;
|
|
509
|
-
margin-right: 1rem;
|
|
510
|
-
background-color: #ffffff;
|
|
511
|
-
border: 0.125rem solid #181c56;
|
|
512
|
-
border-radius: 50%;
|
|
693
|
+
.eds-textfield__clear-button-wrapper {
|
|
513
694
|
display: flex;
|
|
514
695
|
align-items: center;
|
|
515
|
-
justify-content: center;
|
|
516
|
-
}
|
|
517
|
-
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
518
|
-
background-color: #181c56;
|
|
519
|
-
border-color: #aeb7e2;
|
|
520
|
-
}
|
|
521
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
522
|
-
background: #d1d3d3;
|
|
523
|
-
border-color: #d1d3d3;
|
|
524
|
-
cursor: not-allowed;
|
|
525
696
|
}
|
|
526
|
-
.eds-
|
|
527
|
-
|
|
528
|
-
}
|
|
529
|
-
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
530
|
-
background: #d1d3d3;
|
|
531
|
-
border-color: #d1d3d3;
|
|
697
|
+
.eds-textfield__clear-button:hover {
|
|
698
|
+
background: #f3f3f3;
|
|
532
699
|
}
|
|
533
|
-
.eds-
|
|
534
|
-
|
|
700
|
+
.eds-textfield__clear-button:focus {
|
|
701
|
+
outline: none;
|
|
702
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
535
703
|
}
|
|
536
|
-
|
|
704
|
+
|
|
705
|
+
.eds-textfield__divider {
|
|
706
|
+
content: "";
|
|
537
707
|
display: block;
|
|
538
|
-
|
|
539
|
-
height:
|
|
540
|
-
|
|
541
|
-
background-color: #181c56;
|
|
542
|
-
transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
|
|
708
|
+
background-color: #e9e9e9;
|
|
709
|
+
height: 1.5rem;
|
|
710
|
+
width: 1px;
|
|
543
711
|
}
|
|
544
|
-
.eds-contrast .eds-form-
|
|
545
|
-
background-color: #
|
|
712
|
+
.eds-contrast .eds-form-control-wrapper--disabled .eds-textfield__divider {
|
|
713
|
+
background-color: #8285a8;
|
|
546
714
|
}/* DO NOT CHANGE!*/
|
|
547
715
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
548
716
|
.eds-switch {
|
|
@@ -799,174 +967,6 @@
|
|
|
799
967
|
stroke-width: 0.375rem;
|
|
800
968
|
}/* DO NOT CHANGE!*/
|
|
801
969
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
802
|
-
.eds-input-group {
|
|
803
|
-
color: inherit;
|
|
804
|
-
display: block;
|
|
805
|
-
position: relative;
|
|
806
|
-
}
|
|
807
|
-
.eds-input-group__label {
|
|
808
|
-
color: #656782;
|
|
809
|
-
display: flex;
|
|
810
|
-
font-size: 1rem;
|
|
811
|
-
position: absolute;
|
|
812
|
-
line-height: 1rem;
|
|
813
|
-
height: 3rem;
|
|
814
|
-
padding: 1rem;
|
|
815
|
-
padding-left: 0;
|
|
816
|
-
margin-left: 1rem;
|
|
817
|
-
top: -0.125rem;
|
|
818
|
-
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;
|
|
819
|
-
-webkit-user-select: none;
|
|
820
|
-
-moz-user-select: none;
|
|
821
|
-
-ms-user-select: none;
|
|
822
|
-
user-select: none;
|
|
823
|
-
pointer-events: none;
|
|
824
|
-
}
|
|
825
|
-
.eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
826
|
-
top: calc(0.5rem - 0.125rem);
|
|
827
|
-
font-size: 0.75rem;
|
|
828
|
-
line-height: 0.75rem;
|
|
829
|
-
height: 10px;
|
|
830
|
-
padding: 0;
|
|
831
|
-
margin-left: 1rem;
|
|
832
|
-
}
|
|
833
|
-
.eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
834
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
835
|
-
background: var(--textarea-label-background);
|
|
836
|
-
width: calc( 100% - 1rem - 1rem - 4px );
|
|
837
|
-
}
|
|
838
|
-
.eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
839
|
-
top: 0.5rem;
|
|
840
|
-
font-size: 0.875rem;
|
|
841
|
-
line-height: 1rem;
|
|
842
|
-
padding: 0;
|
|
843
|
-
margin-left: 1rem;
|
|
844
|
-
}
|
|
845
|
-
.eds-contrast .eds-input-group__label {
|
|
846
|
-
color: #8285a8;
|
|
847
|
-
}
|
|
848
|
-
.eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
|
|
849
|
-
color: #aeb7e2;
|
|
850
|
-
}
|
|
851
|
-
.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
852
|
-
font-size: 1.5rem;
|
|
853
|
-
line-height: 2.25rem;
|
|
854
|
-
height: 4rem;
|
|
855
|
-
}
|
|
856
|
-
.eds-input-group__label--filled {
|
|
857
|
-
top: calc(0.5rem - 0.125rem);
|
|
858
|
-
font-size: 0.75rem;
|
|
859
|
-
line-height: 0.75rem;
|
|
860
|
-
height: 10px;
|
|
861
|
-
padding: 0;
|
|
862
|
-
margin-left: 1rem;
|
|
863
|
-
}
|
|
864
|
-
.eds-textarea__label .eds-input-group__label--filled {
|
|
865
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
866
|
-
background: var(--textarea-label-background);
|
|
867
|
-
width: calc( 100% - 1rem - 1rem - 4px );
|
|
868
|
-
}
|
|
869
|
-
.eds-form-control-wrapper--size-large .eds-input-group__label--filled {
|
|
870
|
-
top: 0.5rem;
|
|
871
|
-
font-size: 0.875rem;
|
|
872
|
-
line-height: 1rem;
|
|
873
|
-
padding: 0;
|
|
874
|
-
margin-left: 1rem;
|
|
875
|
-
}
|
|
876
|
-
.eds-input-group__label-tooltip-icon {
|
|
877
|
-
color: #0082b9;
|
|
878
|
-
padding-left: 0.25rem;
|
|
879
|
-
padding-right: 0.25rem;
|
|
880
|
-
display: flex;
|
|
881
|
-
align-items: center;
|
|
882
|
-
cursor: help;
|
|
883
|
-
font-size: 1rem;
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
.eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
887
|
-
top: calc(0.5rem - 0.125rem);
|
|
888
|
-
font-size: 0.75rem;
|
|
889
|
-
line-height: 0.75rem;
|
|
890
|
-
height: 10px;
|
|
891
|
-
padding: 0;
|
|
892
|
-
margin-left: 1rem;
|
|
893
|
-
}
|
|
894
|
-
|
|
895
|
-
.eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
896
|
-
top: calc(0.5rem - 0.125rem);
|
|
897
|
-
font-size: 0.75rem;
|
|
898
|
-
line-height: 0.75rem;
|
|
899
|
-
height: 10px;
|
|
900
|
-
padding: 0;
|
|
901
|
-
margin-left: 1rem;
|
|
902
|
-
}
|
|
903
|
-
.eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
904
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
905
|
-
background: var(--textarea-label-background);
|
|
906
|
-
width: calc( 100% - 1rem - 1rem - 4px );
|
|
907
|
-
}
|
|
908
|
-
.eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
909
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
910
|
-
background: var(--textarea-label-background);
|
|
911
|
-
width: calc( 100% - 1rem - 1rem - 4px );
|
|
912
|
-
}
|
|
913
|
-
.eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
|
|
914
|
-
top: 0.5rem;
|
|
915
|
-
font-size: 0.875rem;
|
|
916
|
-
line-height: 1rem;
|
|
917
|
-
padding: 0;
|
|
918
|
-
margin-left: 1rem;
|
|
919
|
-
}
|
|
920
|
-
.eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
|
|
921
|
-
top: 0.5rem;
|
|
922
|
-
font-size: 0.875rem;
|
|
923
|
-
line-height: 1rem;
|
|
924
|
-
padding: 0;
|
|
925
|
-
margin-left: 1rem;
|
|
926
|
-
}/* DO NOT CHANGE!*/
|
|
927
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
928
|
-
textarea.eds-form-control.eds-textarea {
|
|
929
|
-
min-height: 7.75rem;
|
|
930
|
-
resize: vertical;
|
|
931
|
-
line-height: 1.5rem;
|
|
932
|
-
}/* DO NOT CHANGE!*/
|
|
933
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
934
|
-
.eds-textfield__clear-button {
|
|
935
|
-
background: none;
|
|
936
|
-
border: none;
|
|
937
|
-
border-radius: 50%;
|
|
938
|
-
color: inherit;
|
|
939
|
-
cursor: pointer;
|
|
940
|
-
display: flex;
|
|
941
|
-
font: inherit;
|
|
942
|
-
font-size: 1rem;
|
|
943
|
-
line-height: 1rem;
|
|
944
|
-
padding: 0.5rem;
|
|
945
|
-
margin-right: -0.75rem;
|
|
946
|
-
}
|
|
947
|
-
.eds-textfield__clear-button-wrapper {
|
|
948
|
-
display: flex;
|
|
949
|
-
align-items: center;
|
|
950
|
-
}
|
|
951
|
-
.eds-textfield__clear-button:hover {
|
|
952
|
-
background: #f3f3f3;
|
|
953
|
-
}
|
|
954
|
-
.eds-textfield__clear-button:focus {
|
|
955
|
-
outline: none;
|
|
956
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
.eds-textfield__divider {
|
|
960
|
-
content: "";
|
|
961
|
-
display: block;
|
|
962
|
-
background-color: #e9e9e9;
|
|
963
|
-
height: 1.5rem;
|
|
964
|
-
width: 1px;
|
|
965
|
-
}
|
|
966
|
-
.eds-contrast .eds-form-control-wrapper--disabled .eds-textfield__divider {
|
|
967
|
-
background-color: #8285a8;
|
|
968
|
-
}/* DO NOT CHANGE!*/
|
|
969
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
970
970
|
.eds-segmented-control {
|
|
971
971
|
margin-top: 0.25rem;
|
|
972
972
|
display: flex;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/form",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.8-beta.3",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/form.esm.js",
|
|
@@ -17,22 +17,27 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
|
-
"start": "dts watch --noClean",
|
|
21
|
-
"build": "dts build",
|
|
22
|
-
"test": "dts test --env=jsdom",
|
|
23
|
-
"lint": "dts lint"
|
|
20
|
+
"start": "yarn run dts watch --noClean",
|
|
21
|
+
"build": "yarn run dts build",
|
|
22
|
+
"test": "yarn run dts test --env=jsdom",
|
|
23
|
+
"lint": "yarn run dts lint"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": ">=16.8.0",
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/icons": "^5.1.
|
|
31
|
-
"@entur/tokens": "^3.4.
|
|
32
|
-
"@entur/tooltip": "^2.5.
|
|
33
|
-
"@entur/typography": "^1.7.
|
|
34
|
-
"@entur/utils": "^0.4.
|
|
30
|
+
"@entur/icons": "^5.1.2-beta.3",
|
|
31
|
+
"@entur/tokens": "^3.4.2-beta.2",
|
|
32
|
+
"@entur/tooltip": "^2.5.20-beta.3",
|
|
33
|
+
"@entur/typography": "^1.7.1-beta.3",
|
|
34
|
+
"@entur/utils": "^0.4.6-beta.2",
|
|
35
35
|
"classnames": "^2.3.1"
|
|
36
36
|
},
|
|
37
|
-
"
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"dts-cli": "^1.1.6",
|
|
39
|
+
"jest-watch-typeahead": "^2.2.0",
|
|
40
|
+
"ts-jest": "^27.0.0"
|
|
41
|
+
},
|
|
42
|
+
"gitHead": "89c8eee86c247794134c34484a205e0f7f65d0a5"
|
|
38
43
|
}
|