@entur/form 5.4.11 → 5.4.13
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/CHANGELOG.md +828 -0
- package/dist/form.cjs.development.js +274 -196
- package/dist/form.cjs.development.js.map +1 -1
- package/dist/form.cjs.production.min.js.map +1 -1
- package/dist/form.esm.js +274 -196
- package/dist/form.esm.js.map +1 -1
- package/dist/styles.css +251 -231
- package/package.json +11 -18
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,94 @@
|
|
|
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: -moz-fit-content;
|
|
73
|
+
width: fit-content;
|
|
74
|
+
-webkit-user-select: none;
|
|
75
|
+
-moz-user-select: none;
|
|
76
|
+
-ms-user-select: none;
|
|
77
|
+
user-select: none;
|
|
78
|
+
}
|
|
79
|
+
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
80
|
+
border-color: #54568c;
|
|
81
|
+
}
|
|
82
|
+
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
83
|
+
background-color: #54568c;
|
|
84
|
+
}
|
|
85
|
+
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
86
|
+
border-color: #8285a8;
|
|
87
|
+
}
|
|
88
|
+
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
89
|
+
background-color: #8285a8;
|
|
90
|
+
}
|
|
91
|
+
.eds-form-component--radio__container input {
|
|
92
|
+
position: absolute;
|
|
93
|
+
opacity: 0;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
height: 0;
|
|
96
|
+
width: 0;
|
|
97
|
+
}
|
|
98
|
+
.eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
99
|
+
height: 0.625rem;
|
|
100
|
+
width: 0.625rem;
|
|
101
|
+
}
|
|
102
|
+
.eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
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-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
108
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
109
|
+
}
|
|
110
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
111
|
+
position: relative;
|
|
112
|
+
height: 1.25rem;
|
|
113
|
+
width: 1.25rem;
|
|
114
|
+
margin-right: 1rem;
|
|
115
|
+
background-color: #ffffff;
|
|
116
|
+
border: 0.125rem solid #181c56;
|
|
117
|
+
border-radius: 50%;
|
|
118
|
+
display: flex;
|
|
119
|
+
align-items: center;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
}
|
|
122
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
123
|
+
background-color: #181c56;
|
|
124
|
+
border-color: #aeb7e2;
|
|
125
|
+
}
|
|
126
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
127
|
+
background: #d1d3d3;
|
|
128
|
+
border-color: #d1d3d3;
|
|
129
|
+
cursor: not-allowed;
|
|
130
|
+
}
|
|
131
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
|
|
132
|
+
border-color: #d1d3d3;
|
|
133
|
+
}
|
|
134
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
135
|
+
background: #d1d3d3;
|
|
136
|
+
border-color: #d1d3d3;
|
|
137
|
+
}
|
|
138
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
|
|
139
|
+
color: #656782;
|
|
140
|
+
}
|
|
141
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
142
|
+
display: block;
|
|
143
|
+
width: 0;
|
|
144
|
+
height: 0;
|
|
145
|
+
border-radius: 50%;
|
|
146
|
+
background-color: #181c56;
|
|
147
|
+
transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
|
|
148
|
+
}
|
|
149
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
150
|
+
background-color: #aeb7e2;
|
|
151
|
+
}/* DO NOT CHANGE!*/
|
|
152
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
56
153
|
.eds-checkbox__container {
|
|
57
154
|
display: flex;
|
|
58
155
|
align-items: center;
|
|
@@ -64,6 +161,7 @@
|
|
|
64
161
|
height: 2rem;
|
|
65
162
|
-webkit-user-select: none;
|
|
66
163
|
-moz-user-select: none;
|
|
164
|
+
-ms-user-select: none;
|
|
67
165
|
user-select: none;
|
|
68
166
|
width: -moz-fit-content;
|
|
69
167
|
width: fit-content;
|
|
@@ -181,6 +279,132 @@
|
|
|
181
279
|
}
|
|
182
280
|
}/* DO NOT CHANGE!*/
|
|
183
281
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
282
|
+
.eds-input-group {
|
|
283
|
+
color: inherit;
|
|
284
|
+
display: block;
|
|
285
|
+
position: relative;
|
|
286
|
+
}
|
|
287
|
+
.eds-input-group__label {
|
|
288
|
+
color: #656782;
|
|
289
|
+
display: flex;
|
|
290
|
+
font-size: 1rem;
|
|
291
|
+
position: absolute;
|
|
292
|
+
line-height: 1rem;
|
|
293
|
+
height: 3rem;
|
|
294
|
+
padding: 1rem;
|
|
295
|
+
padding-left: 0;
|
|
296
|
+
margin-left: 1rem;
|
|
297
|
+
top: -0.125rem;
|
|
298
|
+
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;
|
|
299
|
+
-webkit-user-select: none;
|
|
300
|
+
-moz-user-select: none;
|
|
301
|
+
-ms-user-select: none;
|
|
302
|
+
user-select: none;
|
|
303
|
+
pointer-events: none;
|
|
304
|
+
}
|
|
305
|
+
.eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
306
|
+
top: calc(0.5rem - 0.125rem);
|
|
307
|
+
font-size: 0.75rem;
|
|
308
|
+
line-height: 0.75rem;
|
|
309
|
+
height: 10px;
|
|
310
|
+
padding: 0;
|
|
311
|
+
margin-left: 1rem;
|
|
312
|
+
}
|
|
313
|
+
.eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
314
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
315
|
+
background: var(--textarea-label-background);
|
|
316
|
+
width: calc( 100% - 1rem - 1rem - 4px );
|
|
317
|
+
}
|
|
318
|
+
.eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
319
|
+
top: 0.5rem;
|
|
320
|
+
font-size: 0.875rem;
|
|
321
|
+
line-height: 1rem;
|
|
322
|
+
padding: 0;
|
|
323
|
+
margin-left: 1rem;
|
|
324
|
+
}
|
|
325
|
+
.eds-contrast .eds-input-group__label {
|
|
326
|
+
color: #8285a8;
|
|
327
|
+
}
|
|
328
|
+
.eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
|
|
329
|
+
color: #aeb7e2;
|
|
330
|
+
}
|
|
331
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
332
|
+
font-size: 1.5rem;
|
|
333
|
+
line-height: 2.25rem;
|
|
334
|
+
height: 4rem;
|
|
335
|
+
}
|
|
336
|
+
.eds-input-group__label--filled {
|
|
337
|
+
top: calc(0.5rem - 0.125rem);
|
|
338
|
+
font-size: 0.75rem;
|
|
339
|
+
line-height: 0.75rem;
|
|
340
|
+
height: 10px;
|
|
341
|
+
padding: 0;
|
|
342
|
+
margin-left: 1rem;
|
|
343
|
+
}
|
|
344
|
+
.eds-textarea__label .eds-input-group__label--filled {
|
|
345
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
346
|
+
background: var(--textarea-label-background);
|
|
347
|
+
width: calc( 100% - 1rem - 1rem - 4px );
|
|
348
|
+
}
|
|
349
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label--filled {
|
|
350
|
+
top: 0.5rem;
|
|
351
|
+
font-size: 0.875rem;
|
|
352
|
+
line-height: 1rem;
|
|
353
|
+
padding: 0;
|
|
354
|
+
margin-left: 1rem;
|
|
355
|
+
}
|
|
356
|
+
.eds-input-group__label-tooltip-icon {
|
|
357
|
+
color: #0082b9;
|
|
358
|
+
padding-left: 0.25rem;
|
|
359
|
+
padding-right: 0.25rem;
|
|
360
|
+
display: flex;
|
|
361
|
+
align-items: center;
|
|
362
|
+
cursor: help;
|
|
363
|
+
font-size: 1rem;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
367
|
+
top: calc(0.5rem - 0.125rem);
|
|
368
|
+
font-size: 0.75rem;
|
|
369
|
+
line-height: 0.75rem;
|
|
370
|
+
height: 10px;
|
|
371
|
+
padding: 0;
|
|
372
|
+
margin-left: 1rem;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
376
|
+
top: calc(0.5rem - 0.125rem);
|
|
377
|
+
font-size: 0.75rem;
|
|
378
|
+
line-height: 0.75rem;
|
|
379
|
+
height: 10px;
|
|
380
|
+
padding: 0;
|
|
381
|
+
margin-left: 1rem;
|
|
382
|
+
}
|
|
383
|
+
.eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
384
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
385
|
+
background: var(--textarea-label-background);
|
|
386
|
+
width: calc( 100% - 1rem - 1rem - 4px );
|
|
387
|
+
}
|
|
388
|
+
.eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
389
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
390
|
+
background: var(--textarea-label-background);
|
|
391
|
+
width: calc( 100% - 1rem - 1rem - 4px );
|
|
392
|
+
}
|
|
393
|
+
.eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
|
|
394
|
+
top: 0.5rem;
|
|
395
|
+
font-size: 0.875rem;
|
|
396
|
+
line-height: 1rem;
|
|
397
|
+
padding: 0;
|
|
398
|
+
margin-left: 1rem;
|
|
399
|
+
}
|
|
400
|
+
.eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
|
|
401
|
+
top: 0.5rem;
|
|
402
|
+
font-size: 0.875rem;
|
|
403
|
+
line-height: 1rem;
|
|
404
|
+
padding: 0;
|
|
405
|
+
margin-left: 1rem;
|
|
406
|
+
}/* DO NOT CHANGE!*/
|
|
407
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
184
408
|
.eds-form-control-wrapper {
|
|
185
409
|
--border-color: #181c56;
|
|
186
410
|
--border-color-hover: #aeb7e2;
|
|
@@ -235,6 +459,9 @@
|
|
|
235
459
|
.eds-form-control-wrapper ::-moz-placeholder {
|
|
236
460
|
color: #656782;
|
|
237
461
|
}
|
|
462
|
+
.eds-form-control-wrapper :-ms-input-placeholder {
|
|
463
|
+
color: #656782;
|
|
464
|
+
}
|
|
238
465
|
.eds-form-control-wrapper ::placeholder {
|
|
239
466
|
color: #656782;
|
|
240
467
|
}
|
|
@@ -350,6 +577,9 @@
|
|
|
350
577
|
.eds-contrast .eds-form-control-wrapper--dark ::-moz-placeholder {
|
|
351
578
|
color: #aeb7e2;
|
|
352
579
|
}
|
|
580
|
+
.eds-contrast .eds-form-control-wrapper--dark :-ms-input-placeholder {
|
|
581
|
+
color: #aeb7e2;
|
|
582
|
+
}
|
|
353
583
|
.eds-contrast .eds-form-control-wrapper--dark ::placeholder {
|
|
354
584
|
color: #aeb7e2;
|
|
355
585
|
}
|
|
@@ -392,6 +622,11 @@
|
|
|
392
622
|
-moz-transition: opacity 0.2s ease-in-out;
|
|
393
623
|
transition: opacity 0.2s ease-in-out;
|
|
394
624
|
}
|
|
625
|
+
.eds-form-control:-ms-input-placeholder {
|
|
626
|
+
opacity: 0;
|
|
627
|
+
-ms-transition: opacity 0.2s ease-in-out;
|
|
628
|
+
transition: opacity 0.2s ease-in-out;
|
|
629
|
+
}
|
|
395
630
|
.eds-form-control::placeholder {
|
|
396
631
|
opacity: 0;
|
|
397
632
|
transition: opacity 0.2s ease-in-out;
|
|
@@ -402,6 +637,9 @@
|
|
|
402
637
|
.eds-form-control:focus::-moz-placeholder {
|
|
403
638
|
opacity: 1;
|
|
404
639
|
}
|
|
640
|
+
.eds-form-control:focus:-ms-input-placeholder {
|
|
641
|
+
opacity: 1;
|
|
642
|
+
}
|
|
405
643
|
.eds-form-control:focus::placeholder {
|
|
406
644
|
opacity: 1;
|
|
407
645
|
}
|
|
@@ -423,106 +661,11 @@
|
|
|
423
661
|
margin-left: 0;
|
|
424
662
|
}/* DO NOT CHANGE!*/
|
|
425
663
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
426
|
-
.eds-fieldset {
|
|
427
|
-
margin: 0;
|
|
428
|
-
padding: 0;
|
|
429
|
-
border: 0;
|
|
430
|
-
}
|
|
431
|
-
.eds-fieldset .eds-legend {
|
|
432
|
-
margin: 0 0 0.5rem;
|
|
433
|
-
}/* DO NOT CHANGE!*/
|
|
434
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
435
|
-
.eds-form-component--radio__container {
|
|
436
|
-
display: flex;
|
|
437
|
-
justify-content: center;
|
|
438
|
-
align-items: center;
|
|
439
|
-
position: relative;
|
|
440
|
-
cursor: pointer;
|
|
441
|
-
height: 2rem;
|
|
442
|
-
width: -moz-fit-content;
|
|
443
|
-
width: fit-content;
|
|
444
|
-
-webkit-user-select: none;
|
|
445
|
-
-moz-user-select: none;
|
|
446
|
-
user-select: none;
|
|
447
|
-
}
|
|
448
|
-
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
449
|
-
border-color: #54568c;
|
|
450
|
-
}
|
|
451
|
-
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
452
|
-
background-color: #54568c;
|
|
453
|
-
}
|
|
454
|
-
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
455
|
-
border-color: #8285a8;
|
|
456
|
-
}
|
|
457
|
-
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
458
|
-
background-color: #8285a8;
|
|
459
|
-
}
|
|
460
|
-
.eds-form-component--radio__container input {
|
|
461
|
-
position: absolute;
|
|
462
|
-
opacity: 0;
|
|
463
|
-
cursor: pointer;
|
|
464
|
-
height: 0;
|
|
465
|
-
width: 0;
|
|
466
|
-
}
|
|
467
|
-
.eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
468
|
-
height: 0.625rem;
|
|
469
|
-
width: 0.625rem;
|
|
470
|
-
}
|
|
471
|
-
.eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
472
|
-
outline: none;
|
|
473
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
474
|
-
outline-offset: 0.125rem;
|
|
475
|
-
}
|
|
476
|
-
.eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
477
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
478
|
-
}
|
|
479
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
480
|
-
position: relative;
|
|
481
|
-
height: 1.25rem;
|
|
482
|
-
width: 1.25rem;
|
|
483
|
-
margin-right: 1rem;
|
|
484
|
-
background-color: #ffffff;
|
|
485
|
-
border: 0.125rem solid #181c56;
|
|
486
|
-
border-radius: 50%;
|
|
487
|
-
display: flex;
|
|
488
|
-
align-items: center;
|
|
489
|
-
justify-content: center;
|
|
490
|
-
}
|
|
491
|
-
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
492
|
-
background-color: #181c56;
|
|
493
|
-
border-color: #aeb7e2;
|
|
494
|
-
}
|
|
495
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
496
|
-
background: #d1d3d3;
|
|
497
|
-
border-color: #d1d3d3;
|
|
498
|
-
cursor: not-allowed;
|
|
499
|
-
}
|
|
500
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
|
|
501
|
-
border-color: #d1d3d3;
|
|
502
|
-
}
|
|
503
|
-
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
504
|
-
background: #d1d3d3;
|
|
505
|
-
border-color: #d1d3d3;
|
|
506
|
-
}
|
|
507
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
|
|
508
|
-
color: #656782;
|
|
509
|
-
}
|
|
510
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
511
|
-
display: block;
|
|
512
|
-
width: 0;
|
|
513
|
-
height: 0;
|
|
514
|
-
border-radius: 50%;
|
|
515
|
-
background-color: #181c56;
|
|
516
|
-
transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
|
|
517
|
-
}
|
|
518
|
-
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
519
|
-
background-color: #aeb7e2;
|
|
520
|
-
}/* DO NOT CHANGE!*/
|
|
521
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
522
664
|
.eds-switch {
|
|
523
665
|
cursor: pointer;
|
|
524
666
|
-webkit-user-select: none;
|
|
525
667
|
-moz-user-select: none;
|
|
668
|
+
-ms-user-select: none;
|
|
526
669
|
user-select: none;
|
|
527
670
|
padding: 0.5rem 0;
|
|
528
671
|
width: -moz-fit-content;
|
|
@@ -689,6 +832,7 @@
|
|
|
689
832
|
padding: 1rem;
|
|
690
833
|
-webkit-user-select: none;
|
|
691
834
|
-moz-user-select: none;
|
|
835
|
+
-ms-user-select: none;
|
|
692
836
|
user-select: none;
|
|
693
837
|
width: -moz-fit-content;
|
|
694
838
|
width: fit-content;
|
|
@@ -768,131 +912,6 @@
|
|
|
768
912
|
stroke-width: 0.375rem;
|
|
769
913
|
}/* DO NOT CHANGE!*/
|
|
770
914
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
771
|
-
.eds-input-group {
|
|
772
|
-
color: inherit;
|
|
773
|
-
display: block;
|
|
774
|
-
position: relative;
|
|
775
|
-
}
|
|
776
|
-
.eds-input-group__label {
|
|
777
|
-
color: #656782;
|
|
778
|
-
display: flex;
|
|
779
|
-
font-size: 1rem;
|
|
780
|
-
position: absolute;
|
|
781
|
-
line-height: 1rem;
|
|
782
|
-
height: 3rem;
|
|
783
|
-
padding: 1rem;
|
|
784
|
-
padding-left: 0;
|
|
785
|
-
margin-left: 1rem;
|
|
786
|
-
top: -0.125rem;
|
|
787
|
-
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;
|
|
788
|
-
-webkit-user-select: none;
|
|
789
|
-
-moz-user-select: none;
|
|
790
|
-
user-select: none;
|
|
791
|
-
pointer-events: none;
|
|
792
|
-
}
|
|
793
|
-
.eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
794
|
-
top: calc(0.5rem - 0.125rem);
|
|
795
|
-
font-size: 0.75rem;
|
|
796
|
-
line-height: 0.75rem;
|
|
797
|
-
height: 10px;
|
|
798
|
-
padding: 0;
|
|
799
|
-
margin-left: 1rem;
|
|
800
|
-
}
|
|
801
|
-
.eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
802
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
803
|
-
background: var(--textarea-label-background);
|
|
804
|
-
width: calc( 100% - 1rem - 1rem - 4px );
|
|
805
|
-
}
|
|
806
|
-
.eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
807
|
-
top: 0.5rem;
|
|
808
|
-
font-size: 0.875rem;
|
|
809
|
-
line-height: 1rem;
|
|
810
|
-
padding: 0;
|
|
811
|
-
margin-left: 1rem;
|
|
812
|
-
}
|
|
813
|
-
.eds-contrast .eds-input-group__label {
|
|
814
|
-
color: #8285a8;
|
|
815
|
-
}
|
|
816
|
-
.eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
|
|
817
|
-
color: #aeb7e2;
|
|
818
|
-
}
|
|
819
|
-
.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
820
|
-
font-size: 1.5rem;
|
|
821
|
-
line-height: 2.25rem;
|
|
822
|
-
height: 4rem;
|
|
823
|
-
}
|
|
824
|
-
.eds-input-group__label--filled {
|
|
825
|
-
top: calc(0.5rem - 0.125rem);
|
|
826
|
-
font-size: 0.75rem;
|
|
827
|
-
line-height: 0.75rem;
|
|
828
|
-
height: 10px;
|
|
829
|
-
padding: 0;
|
|
830
|
-
margin-left: 1rem;
|
|
831
|
-
}
|
|
832
|
-
.eds-textarea__label .eds-input-group__label--filled {
|
|
833
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
834
|
-
background: var(--textarea-label-background);
|
|
835
|
-
width: calc( 100% - 1rem - 1rem - 4px );
|
|
836
|
-
}
|
|
837
|
-
.eds-form-control-wrapper--size-large .eds-input-group__label--filled {
|
|
838
|
-
top: 0.5rem;
|
|
839
|
-
font-size: 0.875rem;
|
|
840
|
-
line-height: 1rem;
|
|
841
|
-
padding: 0;
|
|
842
|
-
margin-left: 1rem;
|
|
843
|
-
}
|
|
844
|
-
.eds-input-group__label-tooltip-icon {
|
|
845
|
-
color: #0082b9;
|
|
846
|
-
padding-left: 0.25rem;
|
|
847
|
-
padding-right: 0.25rem;
|
|
848
|
-
display: flex;
|
|
849
|
-
align-items: center;
|
|
850
|
-
cursor: help;
|
|
851
|
-
font-size: 1rem;
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
.eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
855
|
-
top: calc(0.5rem - 0.125rem);
|
|
856
|
-
font-size: 0.75rem;
|
|
857
|
-
line-height: 0.75rem;
|
|
858
|
-
height: 10px;
|
|
859
|
-
padding: 0;
|
|
860
|
-
margin-left: 1rem;
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
.eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
864
|
-
top: calc(0.5rem - 0.125rem);
|
|
865
|
-
font-size: 0.75rem;
|
|
866
|
-
line-height: 0.75rem;
|
|
867
|
-
height: 10px;
|
|
868
|
-
padding: 0;
|
|
869
|
-
margin-left: 1rem;
|
|
870
|
-
}
|
|
871
|
-
.eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
872
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
873
|
-
background: var(--textarea-label-background);
|
|
874
|
-
width: calc( 100% - 1rem - 1rem - 4px );
|
|
875
|
-
}
|
|
876
|
-
.eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
877
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
878
|
-
background: var(--textarea-label-background);
|
|
879
|
-
width: calc( 100% - 1rem - 1rem - 4px );
|
|
880
|
-
}
|
|
881
|
-
.eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
|
|
882
|
-
top: 0.5rem;
|
|
883
|
-
font-size: 0.875rem;
|
|
884
|
-
line-height: 1rem;
|
|
885
|
-
padding: 0;
|
|
886
|
-
margin-left: 1rem;
|
|
887
|
-
}
|
|
888
|
-
.eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
|
|
889
|
-
top: 0.5rem;
|
|
890
|
-
font-size: 0.875rem;
|
|
891
|
-
line-height: 1rem;
|
|
892
|
-
padding: 0;
|
|
893
|
-
margin-left: 1rem;
|
|
894
|
-
}/* DO NOT CHANGE!*/
|
|
895
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
896
915
|
textarea.eds-form-control.eds-textarea {
|
|
897
916
|
min-height: 7.75rem;
|
|
898
917
|
resize: vertical;
|
|
@@ -935,16 +954,6 @@ textarea.eds-form-control.eds-textarea {
|
|
|
935
954
|
background-color: #8285a8;
|
|
936
955
|
}/* DO NOT CHANGE!*/
|
|
937
956
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
938
|
-
.eds-segmented-control {
|
|
939
|
-
margin-top: 0.25rem;
|
|
940
|
-
display: flex;
|
|
941
|
-
background: #d1d4e3;
|
|
942
|
-
border-radius: 0.25rem;
|
|
943
|
-
}
|
|
944
|
-
.eds-contrast .eds-segmented-control {
|
|
945
|
-
background: #393d79;
|
|
946
|
-
}/* DO NOT CHANGE!*/
|
|
947
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
948
957
|
.eds-segmented-choice {
|
|
949
958
|
display: block;
|
|
950
959
|
flex: 1 1 0px;
|
|
@@ -964,6 +973,7 @@ textarea.eds-form-control.eds-textarea {
|
|
|
964
973
|
text-align: center;
|
|
965
974
|
-webkit-user-select: none;
|
|
966
975
|
-moz-user-select: none;
|
|
976
|
+
-ms-user-select: none;
|
|
967
977
|
user-select: none;
|
|
968
978
|
}
|
|
969
979
|
.eds-contrast .eds-segmented-choice .eds-base-segmented {
|
|
@@ -1011,4 +1021,14 @@ textarea.eds-form-control.eds-textarea {
|
|
|
1011
1021
|
}
|
|
1012
1022
|
.eds-contrast .eds-segmented-choice:hover input:checked + .eds-base-segmented {
|
|
1013
1023
|
--background-color: #d1d4e3;
|
|
1024
|
+
}/* DO NOT CHANGE!*/
|
|
1025
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
1026
|
+
.eds-segmented-control {
|
|
1027
|
+
margin-top: 0.25rem;
|
|
1028
|
+
display: flex;
|
|
1029
|
+
background: #d1d4e3;
|
|
1030
|
+
border-radius: 0.25rem;
|
|
1031
|
+
}
|
|
1032
|
+
.eds-contrast .eds-segmented-control {
|
|
1033
|
+
background: #393d79;
|
|
1014
1034
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/form",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.13",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/form.esm.js",
|
|
@@ -17,29 +17,22 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
|
-
"start": "
|
|
21
|
-
"build": "
|
|
22
|
-
"test": "
|
|
23
|
-
"lint": "
|
|
20
|
+
"start": "dts watch --noClean",
|
|
21
|
+
"build": "dts build",
|
|
22
|
+
"test": "dts test",
|
|
23
|
+
"lint": "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.
|
|
31
|
-
"@entur/tokens": "^3.4.
|
|
32
|
-
"@entur/tooltip": "^2.
|
|
33
|
-
"@entur/typography": "^1.7.
|
|
34
|
-
"@entur/utils": "^0.4.
|
|
30
|
+
"@entur/icons": "^5.4.1",
|
|
31
|
+
"@entur/tokens": "^3.4.4",
|
|
32
|
+
"@entur/tooltip": "^2.6.0",
|
|
33
|
+
"@entur/typography": "^1.7.4",
|
|
34
|
+
"@entur/utils": "^0.4.9",
|
|
35
35
|
"classnames": "^2.3.1"
|
|
36
36
|
},
|
|
37
|
-
"
|
|
38
|
-
"dts-cli": "^1.1.6",
|
|
39
|
-
"jest": "^27.0.0",
|
|
40
|
-
"jest-watch-typeahead": "^2.2.0",
|
|
41
|
-
"ts-jest": "^27.0.0",
|
|
42
|
-
"typescript": "^4.8.0"
|
|
43
|
-
},
|
|
44
|
-
"gitHead": "8915b1630bd936740ba9a4a88883f3432948a80e"
|
|
37
|
+
"gitHead": "de71e205560a699e2dce301e133966dc9348c459"
|
|
45
38
|
}
|