@entur/form 5.3.1 → 5.3.4
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 +14 -0
- package/dist/styles.css +363 -356
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,20 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.3.4](https://bitbucket.org/enturas/design-system/compare/@entur/form@5.3.3...@entur/form@5.3.4) (2022-05-04)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **validation exclamation icon:** fix incorrect exclamation mark color for non-contrast validation ([22deff9](https://bitbucket.org/enturas/design-system/commits/22deff9cac4f867a26a14ec51197f1c3be13d403))
|
|
11
|
+
|
|
12
|
+
## [5.3.3](https://bitbucket.org/enturas/design-system/compare/@entur/form@5.3.2...@entur/form@5.3.3) (2022-04-27)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @entur/form
|
|
15
|
+
|
|
16
|
+
## [5.3.2](https://bitbucket.org/enturas/design-system/compare/@entur/form@5.3.1...@entur/form@5.3.2) (2022-04-20)
|
|
17
|
+
|
|
18
|
+
**Note:** Version bump only for package @entur/form
|
|
19
|
+
|
|
6
20
|
## [5.3.1](https://bitbucket.org/enturas/design-system/compare/@entur/form@5.3.0...@entur/form@5.3.1) (2022-04-19)
|
|
7
21
|
|
|
8
22
|
**Note:** Version bump only for package @entur/form
|
package/dist/styles.css
CHANGED
|
@@ -52,100 +52,18 @@
|
|
|
52
52
|
.eds-contrast .eds-feedback-text__icon--info {
|
|
53
53
|
color: #64b3e7;
|
|
54
54
|
}
|
|
55
|
-
.eds-feedback-text__icon--warning {
|
|
56
|
-
color: #
|
|
57
|
-
}
|
|
58
|
-
.eds-contrast .eds-feedback-text__icon--warning {
|
|
59
|
-
color: #64b3e7;
|
|
60
|
-
}/* DO NOT CHANGE!*/
|
|
61
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
62
|
-
.eds-form-component--radio__container {
|
|
63
|
-
display: flex;
|
|
64
|
-
justify-content: center;
|
|
65
|
-
align-items: center;
|
|
66
|
-
position: relative;
|
|
67
|
-
cursor: pointer;
|
|
68
|
-
height: 2rem;
|
|
69
|
-
width: -webkit-fit-content;
|
|
70
|
-
width: -moz-fit-content;
|
|
71
|
-
width: fit-content;
|
|
72
|
-
-webkit-user-select: none;
|
|
73
|
-
-moz-user-select: none;
|
|
74
|
-
-ms-user-select: none;
|
|
75
|
-
user-select: none;
|
|
76
|
-
}
|
|
77
|
-
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
78
|
-
border-color: #54568c;
|
|
79
|
-
}
|
|
80
|
-
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
81
|
-
background-color: #54568c;
|
|
82
|
-
}
|
|
83
|
-
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
84
|
-
border-color: #8285a8;
|
|
85
|
-
}
|
|
86
|
-
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
87
|
-
background-color: #8285a8;
|
|
88
|
-
}
|
|
89
|
-
.eds-form-component--radio__container input {
|
|
90
|
-
position: absolute;
|
|
91
|
-
opacity: 0;
|
|
92
|
-
cursor: pointer;
|
|
93
|
-
height: 0;
|
|
94
|
-
width: 0;
|
|
95
|
-
}
|
|
96
|
-
.eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
97
|
-
height: 0.625rem;
|
|
98
|
-
width: 0.625rem;
|
|
99
|
-
}
|
|
100
|
-
.eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
101
|
-
outline: none;
|
|
102
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
103
|
-
outline-offset: 0.125rem;
|
|
104
|
-
}
|
|
105
|
-
.eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
106
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
107
|
-
}
|
|
108
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
109
|
-
position: relative;
|
|
110
|
-
height: 1.25rem;
|
|
111
|
-
width: 1.25rem;
|
|
112
|
-
margin-right: 1rem;
|
|
113
|
-
background-color: #ffffff;
|
|
114
|
-
border: 0.125rem solid #181c56;
|
|
115
|
-
border-radius: 50%;
|
|
116
|
-
display: flex;
|
|
117
|
-
align-items: center;
|
|
118
|
-
justify-content: center;
|
|
119
|
-
}
|
|
120
|
-
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
121
|
-
background-color: #181c56;
|
|
122
|
-
border-color: #aeb7e2;
|
|
123
|
-
}
|
|
124
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
125
|
-
background: #d1d3d3;
|
|
126
|
-
border-color: #d1d3d3;
|
|
127
|
-
cursor: not-allowed;
|
|
128
|
-
}
|
|
129
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
|
|
130
|
-
border-color: #d1d3d3;
|
|
131
|
-
}
|
|
132
|
-
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
133
|
-
background: #d1d3d3;
|
|
134
|
-
border-color: #d1d3d3;
|
|
55
|
+
.eds-feedback-text__icon--warning.eds-icon__ValidationExclamationIcon {
|
|
56
|
+
color: #ffca28;
|
|
135
57
|
}
|
|
136
|
-
.eds-
|
|
137
|
-
color: #
|
|
58
|
+
.eds-feedback-text__icon--warning.eds-icon__ValidationExclamationIcon circle {
|
|
59
|
+
color: #181c56;
|
|
60
|
+
fill-opacity: 1;
|
|
138
61
|
}
|
|
139
|
-
.eds-
|
|
140
|
-
|
|
141
|
-
width: 0;
|
|
142
|
-
height: 0;
|
|
143
|
-
border-radius: 50%;
|
|
144
|
-
background-color: #181c56;
|
|
145
|
-
transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
|
|
62
|
+
.eds-contrast .eds-feedback-text__icon--warning.eds-icon__ValidationExclamationIcon {
|
|
63
|
+
color: #ffe082;
|
|
146
64
|
}
|
|
147
|
-
.eds-contrast .eds-
|
|
148
|
-
|
|
65
|
+
.eds-contrast .eds-feedback-text__icon--warning.eds-icon__ValidationExclamationIcon circle {
|
|
66
|
+
fill-opacity: 0;
|
|
149
67
|
}/* DO NOT CHANGE!*/
|
|
150
68
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
151
69
|
.eds-checkbox__container {
|
|
@@ -286,132 +204,6 @@
|
|
|
286
204
|
}
|
|
287
205
|
}/* DO NOT CHANGE!*/
|
|
288
206
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
289
|
-
.eds-input-group {
|
|
290
|
-
color: inherit;
|
|
291
|
-
display: block;
|
|
292
|
-
position: relative;
|
|
293
|
-
}
|
|
294
|
-
.eds-input-group__label {
|
|
295
|
-
color: #656782;
|
|
296
|
-
display: flex;
|
|
297
|
-
font-size: 1rem;
|
|
298
|
-
position: absolute;
|
|
299
|
-
line-height: 1rem;
|
|
300
|
-
height: 3rem;
|
|
301
|
-
padding: 1rem;
|
|
302
|
-
padding-left: 0;
|
|
303
|
-
margin-left: 1rem;
|
|
304
|
-
top: -0.125rem;
|
|
305
|
-
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;
|
|
306
|
-
-webkit-user-select: none;
|
|
307
|
-
-moz-user-select: none;
|
|
308
|
-
-ms-user-select: none;
|
|
309
|
-
user-select: none;
|
|
310
|
-
pointer-events: none;
|
|
311
|
-
}
|
|
312
|
-
.eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
313
|
-
top: calc(0.5rem - 0.125rem);
|
|
314
|
-
font-size: 0.75rem;
|
|
315
|
-
line-height: 0.75rem;
|
|
316
|
-
height: 10px;
|
|
317
|
-
padding: 0;
|
|
318
|
-
margin-left: 1rem;
|
|
319
|
-
}
|
|
320
|
-
.eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
321
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
322
|
-
background: var(--textarea-label-background);
|
|
323
|
-
width: calc( 100% - 1rem - 1rem - 4px );
|
|
324
|
-
}
|
|
325
|
-
.eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
326
|
-
top: 0.5rem;
|
|
327
|
-
font-size: 0.875rem;
|
|
328
|
-
line-height: 1rem;
|
|
329
|
-
padding: 0;
|
|
330
|
-
margin-left: 1rem;
|
|
331
|
-
}
|
|
332
|
-
.eds-contrast .eds-input-group__label {
|
|
333
|
-
color: #8285a8;
|
|
334
|
-
}
|
|
335
|
-
.eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
|
|
336
|
-
color: #aeb7e2;
|
|
337
|
-
}
|
|
338
|
-
.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
339
|
-
font-size: 1.5rem;
|
|
340
|
-
line-height: 2.25rem;
|
|
341
|
-
height: 4rem;
|
|
342
|
-
}
|
|
343
|
-
.eds-input-group__label--filled {
|
|
344
|
-
top: calc(0.5rem - 0.125rem);
|
|
345
|
-
font-size: 0.75rem;
|
|
346
|
-
line-height: 0.75rem;
|
|
347
|
-
height: 10px;
|
|
348
|
-
padding: 0;
|
|
349
|
-
margin-left: 1rem;
|
|
350
|
-
}
|
|
351
|
-
.eds-textarea__label .eds-input-group__label--filled {
|
|
352
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
353
|
-
background: var(--textarea-label-background);
|
|
354
|
-
width: calc( 100% - 1rem - 1rem - 4px );
|
|
355
|
-
}
|
|
356
|
-
.eds-form-control-wrapper--size-large .eds-input-group__label--filled {
|
|
357
|
-
top: 0.5rem;
|
|
358
|
-
font-size: 0.875rem;
|
|
359
|
-
line-height: 1rem;
|
|
360
|
-
padding: 0;
|
|
361
|
-
margin-left: 1rem;
|
|
362
|
-
}
|
|
363
|
-
.eds-input-group__label-tooltip-icon {
|
|
364
|
-
color: #0082b9;
|
|
365
|
-
padding-left: 0.25rem;
|
|
366
|
-
padding-right: 0.25rem;
|
|
367
|
-
display: flex;
|
|
368
|
-
align-items: center;
|
|
369
|
-
cursor: help;
|
|
370
|
-
font-size: 1rem;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
.eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
374
|
-
top: calc(0.5rem - 0.125rem);
|
|
375
|
-
font-size: 0.75rem;
|
|
376
|
-
line-height: 0.75rem;
|
|
377
|
-
height: 10px;
|
|
378
|
-
padding: 0;
|
|
379
|
-
margin-left: 1rem;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
.eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
383
|
-
top: calc(0.5rem - 0.125rem);
|
|
384
|
-
font-size: 0.75rem;
|
|
385
|
-
line-height: 0.75rem;
|
|
386
|
-
height: 10px;
|
|
387
|
-
padding: 0;
|
|
388
|
-
margin-left: 1rem;
|
|
389
|
-
}
|
|
390
|
-
.eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
391
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
392
|
-
background: var(--textarea-label-background);
|
|
393
|
-
width: calc( 100% - 1rem - 1rem - 4px );
|
|
394
|
-
}
|
|
395
|
-
.eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
396
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
397
|
-
background: var(--textarea-label-background);
|
|
398
|
-
width: calc( 100% - 1rem - 1rem - 4px );
|
|
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
|
-
}
|
|
407
|
-
.eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
|
|
408
|
-
top: 0.5rem;
|
|
409
|
-
font-size: 0.875rem;
|
|
410
|
-
line-height: 1rem;
|
|
411
|
-
padding: 0;
|
|
412
|
-
margin-left: 1rem;
|
|
413
|
-
}/* DO NOT CHANGE!*/
|
|
414
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
415
207
|
.eds-form-control-wrapper {
|
|
416
208
|
--border-color: #181c56;
|
|
417
209
|
--border-color-hover: #aeb7e2;
|
|
@@ -668,30 +460,267 @@
|
|
|
668
460
|
margin-left: 0;
|
|
669
461
|
}/* DO NOT CHANGE!*/
|
|
670
462
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
463
|
+
.eds-form-component--radio__container {
|
|
464
|
+
display: flex;
|
|
465
|
+
justify-content: center;
|
|
466
|
+
align-items: center;
|
|
467
|
+
position: relative;
|
|
468
|
+
cursor: pointer;
|
|
469
|
+
height: 2rem;
|
|
470
|
+
width: -webkit-fit-content;
|
|
471
|
+
width: -moz-fit-content;
|
|
472
|
+
width: fit-content;
|
|
473
|
+
-webkit-user-select: none;
|
|
474
|
+
-moz-user-select: none;
|
|
475
|
+
-ms-user-select: none;
|
|
476
|
+
user-select: none;
|
|
680
477
|
}
|
|
681
|
-
.eds-
|
|
682
|
-
border-color: #
|
|
683
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
478
|
+
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
479
|
+
border-color: #54568c;
|
|
684
480
|
}
|
|
685
|
-
.eds-
|
|
686
|
-
|
|
687
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
481
|
+
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
482
|
+
background-color: #54568c;
|
|
688
483
|
}
|
|
689
|
-
.eds-contrast .eds-
|
|
690
|
-
border-color: #
|
|
691
|
-
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
484
|
+
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
485
|
+
border-color: #8285a8;
|
|
692
486
|
}
|
|
693
|
-
.eds-
|
|
694
|
-
|
|
487
|
+
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
488
|
+
background-color: #8285a8;
|
|
489
|
+
}
|
|
490
|
+
.eds-form-component--radio__container input {
|
|
491
|
+
position: absolute;
|
|
492
|
+
opacity: 0;
|
|
493
|
+
cursor: pointer;
|
|
494
|
+
height: 0;
|
|
495
|
+
width: 0;
|
|
496
|
+
}
|
|
497
|
+
.eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
498
|
+
height: 0.625rem;
|
|
499
|
+
width: 0.625rem;
|
|
500
|
+
}
|
|
501
|
+
.eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
502
|
+
outline: none;
|
|
503
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
504
|
+
outline-offset: 0.125rem;
|
|
505
|
+
}
|
|
506
|
+
.eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
507
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
508
|
+
}
|
|
509
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
510
|
+
position: relative;
|
|
511
|
+
height: 1.25rem;
|
|
512
|
+
width: 1.25rem;
|
|
513
|
+
margin-right: 1rem;
|
|
514
|
+
background-color: #ffffff;
|
|
515
|
+
border: 0.125rem solid #181c56;
|
|
516
|
+
border-radius: 50%;
|
|
517
|
+
display: flex;
|
|
518
|
+
align-items: center;
|
|
519
|
+
justify-content: center;
|
|
520
|
+
}
|
|
521
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
522
|
+
background-color: #181c56;
|
|
523
|
+
border-color: #aeb7e2;
|
|
524
|
+
}
|
|
525
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
526
|
+
background: #d1d3d3;
|
|
527
|
+
border-color: #d1d3d3;
|
|
528
|
+
cursor: not-allowed;
|
|
529
|
+
}
|
|
530
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
|
|
531
|
+
border-color: #d1d3d3;
|
|
532
|
+
}
|
|
533
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
534
|
+
background: #d1d3d3;
|
|
535
|
+
border-color: #d1d3d3;
|
|
536
|
+
}
|
|
537
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
|
|
538
|
+
color: #656782;
|
|
539
|
+
}
|
|
540
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
541
|
+
display: block;
|
|
542
|
+
width: 0;
|
|
543
|
+
height: 0;
|
|
544
|
+
border-radius: 50%;
|
|
545
|
+
background-color: #181c56;
|
|
546
|
+
transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
|
|
547
|
+
}
|
|
548
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
549
|
+
background-color: #aeb7e2;
|
|
550
|
+
}/* DO NOT CHANGE!*/
|
|
551
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
552
|
+
.eds-switch {
|
|
553
|
+
cursor: pointer;
|
|
554
|
+
-webkit-user-select: none;
|
|
555
|
+
-moz-user-select: none;
|
|
556
|
+
-ms-user-select: none;
|
|
557
|
+
user-select: none;
|
|
558
|
+
padding: 0.5rem 0;
|
|
559
|
+
width: -webkit-fit-content;
|
|
560
|
+
width: -moz-fit-content;
|
|
561
|
+
width: fit-content;
|
|
562
|
+
}
|
|
563
|
+
.eds-switch input {
|
|
564
|
+
opacity: 0;
|
|
565
|
+
pointer-events: none;
|
|
566
|
+
position: absolute;
|
|
567
|
+
}
|
|
568
|
+
.eds-switch--right {
|
|
569
|
+
display: flex;
|
|
570
|
+
flex-direction: row;
|
|
571
|
+
align-items: center;
|
|
572
|
+
}
|
|
573
|
+
.eds-switch--bottom {
|
|
574
|
+
display: flex;
|
|
575
|
+
flex-direction: column;
|
|
576
|
+
align-items: center;
|
|
577
|
+
}
|
|
578
|
+
.eds-switch__circle {
|
|
579
|
+
border-radius: 50%;
|
|
580
|
+
height: 1.25rem;
|
|
581
|
+
width: 1.25rem;
|
|
582
|
+
content: "";
|
|
583
|
+
display: flex;
|
|
584
|
+
align-items: center;
|
|
585
|
+
justify-content: center;
|
|
586
|
+
transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
|
|
587
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
588
|
+
background-color: #ffffff;
|
|
589
|
+
top: 0.125rem;
|
|
590
|
+
left: 0.125rem;
|
|
591
|
+
position: relative;
|
|
592
|
+
}
|
|
593
|
+
.eds-switch__switch--large .eds-switch__circle {
|
|
594
|
+
height: 1.75rem;
|
|
595
|
+
width: 1.75rem;
|
|
596
|
+
}
|
|
597
|
+
.eds-switch .eds-switch__switch svg g,
|
|
598
|
+
.eds-switch .eds-switch__switch path {
|
|
599
|
+
fill: #949494;
|
|
600
|
+
transition: fill ease-in-out 0.1s;
|
|
601
|
+
}
|
|
602
|
+
.eds-switch__switch {
|
|
603
|
+
position: relative;
|
|
604
|
+
background-color: #d1d3d3;
|
|
605
|
+
content: "";
|
|
606
|
+
display: block;
|
|
607
|
+
transition: background-color 0.1s ease-in-out;
|
|
608
|
+
height: 1.5rem;
|
|
609
|
+
width: 3rem;
|
|
610
|
+
border-radius: 1.5rem;
|
|
611
|
+
}
|
|
612
|
+
.eds-switch--right .eds-switch__switch {
|
|
613
|
+
margin-right: 0.75rem;
|
|
614
|
+
}
|
|
615
|
+
:checked + .eds-switch__switch {
|
|
616
|
+
background-color: var(--eds-switch-color);
|
|
617
|
+
}
|
|
618
|
+
:checked + .eds-switch__switch .eds-switch__circle {
|
|
619
|
+
left: 1.625rem;
|
|
620
|
+
}
|
|
621
|
+
:checked + .eds-switch__switch .eds-switch__circle svg g,
|
|
622
|
+
:checked + .eds-switch__switch .eds-switch__circle path {
|
|
623
|
+
fill: var(--eds-switch-color);
|
|
624
|
+
}
|
|
625
|
+
.eds-contrast :checked + .eds-switch__switch .eds-switch__circle svg g,
|
|
626
|
+
.eds-contrast :checked + .eds-switch__switch .eds-switch__circle path {
|
|
627
|
+
fill: var(--eds-switch-color);
|
|
628
|
+
}
|
|
629
|
+
.eds-contrast :checked + .eds-switch__switch {
|
|
630
|
+
background-color: var(--eds-switch-contrast-color);
|
|
631
|
+
}
|
|
632
|
+
:focus + .eds-switch__switch {
|
|
633
|
+
outline: none;
|
|
634
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
635
|
+
outline-offset: 0.125rem;
|
|
636
|
+
}
|
|
637
|
+
.eds-contrast :focus + .eds-switch__switch {
|
|
638
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
639
|
+
}
|
|
640
|
+
.eds-contrast .eds-switch__switch {
|
|
641
|
+
background-color: #54568c;
|
|
642
|
+
}
|
|
643
|
+
.eds-switch__switch--large {
|
|
644
|
+
width: 3.75rem;
|
|
645
|
+
height: 2rem;
|
|
646
|
+
border-radius: 3.75rem;
|
|
647
|
+
}
|
|
648
|
+
:checked + .eds-switch__switch--large .eds-switch__circle {
|
|
649
|
+
left: 1.875rem;
|
|
650
|
+
}
|
|
651
|
+
.eds-switch__label--large--right {
|
|
652
|
+
font-size: 1rem;
|
|
653
|
+
}
|
|
654
|
+
.eds-switch__label--large--bottom {
|
|
655
|
+
font-size: 0.875rem;
|
|
656
|
+
}
|
|
657
|
+
.eds-switch__label--medium--right {
|
|
658
|
+
font-size: 0.875rem;
|
|
659
|
+
}
|
|
660
|
+
.eds-switch__label--medium--bottom {
|
|
661
|
+
font-size: 0.75rem;
|
|
662
|
+
}/* DO NOT CHANGE!*/
|
|
663
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
664
|
+
textarea.eds-form-control.eds-textarea {
|
|
665
|
+
min-height: 7.75rem;
|
|
666
|
+
resize: vertical;
|
|
667
|
+
line-height: 1.5rem;
|
|
668
|
+
}/* DO NOT CHANGE!*/
|
|
669
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
670
|
+
.eds-textfield__clear-button {
|
|
671
|
+
background: none;
|
|
672
|
+
border: none;
|
|
673
|
+
border-radius: 50%;
|
|
674
|
+
color: inherit;
|
|
675
|
+
cursor: pointer;
|
|
676
|
+
display: flex;
|
|
677
|
+
font: inherit;
|
|
678
|
+
font-size: 1rem;
|
|
679
|
+
line-height: 1rem;
|
|
680
|
+
padding: 0.5rem;
|
|
681
|
+
margin-right: -0.75rem;
|
|
682
|
+
}
|
|
683
|
+
.eds-textfield__clear-button-wrapper {
|
|
684
|
+
display: flex;
|
|
685
|
+
align-items: center;
|
|
686
|
+
}
|
|
687
|
+
.eds-textfield__clear-button:hover {
|
|
688
|
+
background: #f3f3f3;
|
|
689
|
+
}
|
|
690
|
+
.eds-textfield__clear-button:focus {
|
|
691
|
+
outline: none;
|
|
692
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
.eds-textfield__divider {
|
|
696
|
+
content: "";
|
|
697
|
+
display: block;
|
|
698
|
+
background-color: #e9e9e9;
|
|
699
|
+
height: 1.5rem;
|
|
700
|
+
width: 1px;
|
|
701
|
+
}
|
|
702
|
+
.eds-contrast .eds-form-control-wrapper--disabled .eds-textfield__divider {
|
|
703
|
+
background-color: #8285a8;
|
|
704
|
+
}/* DO NOT CHANGE!*/
|
|
705
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
706
|
+
.eds-radio-panel__wrapper[focus-within] .eds-radio-panel__container {
|
|
707
|
+
border-color: #181c56;
|
|
708
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
709
|
+
}
|
|
710
|
+
.eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
|
|
711
|
+
border-color: #181c56;
|
|
712
|
+
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
713
|
+
}
|
|
714
|
+
.eds-contrast .eds-radio-panel__wrapper[focus-within] .eds-radio-panel__container {
|
|
715
|
+
border-color: #ffffff;
|
|
716
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
717
|
+
}
|
|
718
|
+
.eds-contrast .eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
|
|
719
|
+
border-color: #ffffff;
|
|
720
|
+
box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
|
|
721
|
+
}
|
|
722
|
+
.eds-radio-panel__wrapper input {
|
|
723
|
+
position: absolute;
|
|
695
724
|
opacity: 0;
|
|
696
725
|
cursor: pointer;
|
|
697
726
|
height: 0;
|
|
@@ -816,152 +845,130 @@ textarea.eds-form-control.eds-textarea {
|
|
|
816
845
|
stroke-width: 0.375rem;
|
|
817
846
|
}/* DO NOT CHANGE!*/
|
|
818
847
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
819
|
-
.eds-
|
|
820
|
-
background: none;
|
|
821
|
-
border: none;
|
|
822
|
-
border-radius: 50%;
|
|
848
|
+
.eds-input-group {
|
|
823
849
|
color: inherit;
|
|
824
|
-
|
|
850
|
+
display: block;
|
|
851
|
+
position: relative;
|
|
852
|
+
}
|
|
853
|
+
.eds-input-group__label {
|
|
854
|
+
color: #656782;
|
|
825
855
|
display: flex;
|
|
826
|
-
font: inherit;
|
|
827
856
|
font-size: 1rem;
|
|
857
|
+
position: absolute;
|
|
828
858
|
line-height: 1rem;
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
}
|
|
836
|
-
.eds-textfield__clear-button:hover {
|
|
837
|
-
background: #f3f3f3;
|
|
838
|
-
}
|
|
839
|
-
.eds-textfield__clear-button:focus {
|
|
840
|
-
outline: none;
|
|
841
|
-
box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
.eds-textfield__divider {
|
|
845
|
-
content: "";
|
|
846
|
-
display: block;
|
|
847
|
-
background-color: #e9e9e9;
|
|
848
|
-
height: 1.5rem;
|
|
849
|
-
width: 1px;
|
|
850
|
-
}
|
|
851
|
-
.eds-contrast .eds-form-control-wrapper--disabled .eds-textfield__divider {
|
|
852
|
-
background-color: #8285a8;
|
|
853
|
-
}/* DO NOT CHANGE!*/
|
|
854
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
855
|
-
.eds-switch {
|
|
856
|
-
cursor: pointer;
|
|
859
|
+
height: 3rem;
|
|
860
|
+
padding: 1rem;
|
|
861
|
+
padding-left: 0;
|
|
862
|
+
margin-left: 1rem;
|
|
863
|
+
top: -0.125rem;
|
|
864
|
+
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;
|
|
857
865
|
-webkit-user-select: none;
|
|
858
866
|
-moz-user-select: none;
|
|
859
867
|
-ms-user-select: none;
|
|
860
868
|
user-select: none;
|
|
861
|
-
padding: 0.5rem 0;
|
|
862
|
-
width: -webkit-fit-content;
|
|
863
|
-
width: -moz-fit-content;
|
|
864
|
-
width: fit-content;
|
|
865
|
-
}
|
|
866
|
-
.eds-switch input {
|
|
867
|
-
opacity: 0;
|
|
868
869
|
pointer-events: none;
|
|
869
|
-
position: absolute;
|
|
870
|
-
}
|
|
871
|
-
.eds-switch--right {
|
|
872
|
-
display: flex;
|
|
873
|
-
flex-direction: row;
|
|
874
|
-
align-items: center;
|
|
875
|
-
}
|
|
876
|
-
.eds-switch--bottom {
|
|
877
|
-
display: flex;
|
|
878
|
-
flex-direction: column;
|
|
879
|
-
align-items: center;
|
|
880
|
-
}
|
|
881
|
-
.eds-switch__circle {
|
|
882
|
-
border-radius: 50%;
|
|
883
|
-
height: 1.25rem;
|
|
884
|
-
width: 1.25rem;
|
|
885
|
-
content: "";
|
|
886
|
-
display: flex;
|
|
887
|
-
align-items: center;
|
|
888
|
-
justify-content: center;
|
|
889
|
-
transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
|
|
890
|
-
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
891
|
-
background-color: #ffffff;
|
|
892
|
-
top: 0.125rem;
|
|
893
|
-
left: 0.125rem;
|
|
894
|
-
position: relative;
|
|
895
|
-
}
|
|
896
|
-
.eds-switch__switch--large .eds-switch__circle {
|
|
897
|
-
height: 1.75rem;
|
|
898
|
-
width: 1.75rem;
|
|
899
870
|
}
|
|
900
|
-
.eds-
|
|
901
|
-
.
|
|
902
|
-
|
|
903
|
-
|
|
871
|
+
.eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
872
|
+
top: calc(0.5rem - 0.125rem);
|
|
873
|
+
font-size: 0.75rem;
|
|
874
|
+
line-height: 0.75rem;
|
|
875
|
+
height: 10px;
|
|
876
|
+
padding: 0;
|
|
877
|
+
margin-left: 1rem;
|
|
904
878
|
}
|
|
905
|
-
.eds-
|
|
906
|
-
|
|
907
|
-
background
|
|
908
|
-
|
|
909
|
-
display: block;
|
|
910
|
-
transition: background-color 0.1s ease-in-out;
|
|
911
|
-
height: 1.5rem;
|
|
912
|
-
width: 3rem;
|
|
913
|
-
border-radius: 1.5rem;
|
|
879
|
+
.eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
880
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
881
|
+
background: var(--textarea-label-background);
|
|
882
|
+
width: calc( 100% - 1rem - 1rem - 4px );
|
|
914
883
|
}
|
|
915
|
-
.eds-
|
|
916
|
-
|
|
884
|
+
.eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
885
|
+
top: 0.5rem;
|
|
886
|
+
font-size: 0.875rem;
|
|
887
|
+
line-height: 1rem;
|
|
888
|
+
padding: 0;
|
|
889
|
+
margin-left: 1rem;
|
|
917
890
|
}
|
|
918
|
-
|
|
919
|
-
|
|
891
|
+
.eds-contrast .eds-input-group__label {
|
|
892
|
+
color: #8285a8;
|
|
920
893
|
}
|
|
921
|
-
|
|
922
|
-
|
|
894
|
+
.eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
|
|
895
|
+
color: #aeb7e2;
|
|
923
896
|
}
|
|
924
|
-
|
|
925
|
-
:
|
|
926
|
-
|
|
897
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
898
|
+
font-size: 1.5rem;
|
|
899
|
+
line-height: 2.25rem;
|
|
900
|
+
height: 4rem;
|
|
927
901
|
}
|
|
928
|
-
.eds-
|
|
929
|
-
|
|
930
|
-
|
|
902
|
+
.eds-input-group__label--filled {
|
|
903
|
+
top: calc(0.5rem - 0.125rem);
|
|
904
|
+
font-size: 0.75rem;
|
|
905
|
+
line-height: 0.75rem;
|
|
906
|
+
height: 10px;
|
|
907
|
+
padding: 0;
|
|
908
|
+
margin-left: 1rem;
|
|
931
909
|
}
|
|
932
|
-
.eds-
|
|
933
|
-
|
|
910
|
+
.eds-textarea__label .eds-input-group__label--filled {
|
|
911
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
912
|
+
background: var(--textarea-label-background);
|
|
913
|
+
width: calc( 100% - 1rem - 1rem - 4px );
|
|
934
914
|
}
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
915
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label--filled {
|
|
916
|
+
top: 0.5rem;
|
|
917
|
+
font-size: 0.875rem;
|
|
918
|
+
line-height: 1rem;
|
|
919
|
+
padding: 0;
|
|
920
|
+
margin-left: 1rem;
|
|
939
921
|
}
|
|
940
|
-
.eds-
|
|
941
|
-
|
|
922
|
+
.eds-input-group__label-tooltip-icon {
|
|
923
|
+
color: #0082b9;
|
|
924
|
+
padding-left: 0.25rem;
|
|
925
|
+
padding-right: 0.25rem;
|
|
926
|
+
display: flex;
|
|
927
|
+
align-items: center;
|
|
928
|
+
cursor: help;
|
|
929
|
+
font-size: 1rem;
|
|
942
930
|
}
|
|
943
|
-
|
|
944
|
-
|
|
931
|
+
|
|
932
|
+
.eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
933
|
+
top: calc(0.5rem - 0.125rem);
|
|
934
|
+
font-size: 0.75rem;
|
|
935
|
+
line-height: 0.75rem;
|
|
936
|
+
height: 10px;
|
|
937
|
+
padding: 0;
|
|
938
|
+
margin-left: 1rem;
|
|
945
939
|
}
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
940
|
+
|
|
941
|
+
.eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
942
|
+
top: calc(0.5rem - 0.125rem);
|
|
943
|
+
font-size: 0.75rem;
|
|
944
|
+
line-height: 0.75rem;
|
|
945
|
+
height: 10px;
|
|
946
|
+
padding: 0;
|
|
947
|
+
margin-left: 1rem;
|
|
950
948
|
}
|
|
951
|
-
|
|
952
|
-
|
|
949
|
+
.eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
|
|
950
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
951
|
+
background: var(--textarea-label-background);
|
|
952
|
+
width: calc( 100% - 1rem - 1rem - 4px );
|
|
953
953
|
}
|
|
954
|
-
.eds-
|
|
955
|
-
|
|
954
|
+
.eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
955
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
956
|
+
background: var(--textarea-label-background);
|
|
957
|
+
width: calc( 100% - 1rem - 1rem - 4px );
|
|
956
958
|
}
|
|
957
|
-
.eds-
|
|
959
|
+
.eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
|
|
960
|
+
top: 0.5rem;
|
|
958
961
|
font-size: 0.875rem;
|
|
962
|
+
line-height: 1rem;
|
|
963
|
+
padding: 0;
|
|
964
|
+
margin-left: 1rem;
|
|
959
965
|
}
|
|
960
|
-
.eds-
|
|
966
|
+
.eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
|
|
967
|
+
top: 0.5rem;
|
|
961
968
|
font-size: 0.875rem;
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
969
|
+
line-height: 1rem;
|
|
970
|
+
padding: 0;
|
|
971
|
+
margin-left: 1rem;
|
|
965
972
|
}/* DO NOT CHANGE!*/
|
|
966
973
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
967
974
|
.eds-segmented-control {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/form",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.4",
|
|
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": "^4.
|
|
31
|
-
"@entur/tokens": "^3.3.
|
|
32
|
-
"@entur/tooltip": "^2.5.
|
|
33
|
-
"@entur/typography": "^1.6.
|
|
30
|
+
"@entur/icons": "^4.1.2",
|
|
31
|
+
"@entur/tokens": "^3.3.2",
|
|
32
|
+
"@entur/tooltip": "^2.5.7",
|
|
33
|
+
"@entur/typography": "^1.6.12",
|
|
34
34
|
"@entur/utils": "^0.4.3",
|
|
35
35
|
"classnames": "^2.3.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "0fba0071ad9dc75cc68b72b846f5bab78be12449"
|
|
38
38
|
}
|