@entur/form 8.2.1-beta.0 → 8.2.2-beta.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/styles.css +485 -482
- package/package.json +7 -7
package/dist/styles.css
CHANGED
|
@@ -1,7 +1,157 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/* DO NOT CHANGE!*/
|
|
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
|
+
.eds-input-group {
|
|
77
|
+
color: inherit;
|
|
78
|
+
display: block;
|
|
79
|
+
position: relative;
|
|
80
|
+
}
|
|
81
|
+
.eds-input-group__label {
|
|
82
|
+
color: var(--components-form-baseform-standard-text-label);
|
|
83
|
+
display: flex;
|
|
84
|
+
font-size: 1rem;
|
|
85
|
+
position: absolute;
|
|
86
|
+
line-height: 1rem;
|
|
87
|
+
height: 3rem;
|
|
88
|
+
padding-left: 0;
|
|
89
|
+
top: 1rem;
|
|
90
|
+
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;
|
|
91
|
+
-webkit-user-select: none;
|
|
92
|
+
-moz-user-select: none;
|
|
93
|
+
user-select: none;
|
|
94
|
+
pointer-events: none;
|
|
95
|
+
}
|
|
96
|
+
.eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
97
|
+
top: 0.375rem;
|
|
98
|
+
font-size: 0.75rem;
|
|
99
|
+
line-height: 0.75rem;
|
|
100
|
+
height: 10px;
|
|
101
|
+
padding: 0;
|
|
102
|
+
}
|
|
103
|
+
.eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
104
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
105
|
+
background: var(--textarea-label-background);
|
|
106
|
+
width: calc(100% - 1rem - 1rem - 4px);
|
|
107
|
+
}
|
|
108
|
+
.eds-form-control-wrapper--is-filled.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
109
|
+
top: 0.5rem;
|
|
110
|
+
font-size: 0.875rem;
|
|
111
|
+
line-height: 1rem;
|
|
112
|
+
padding: 0;
|
|
113
|
+
}
|
|
114
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
115
|
+
top: 0.75rem;
|
|
116
|
+
font-size: 1.5rem;
|
|
117
|
+
line-height: 2.25rem;
|
|
118
|
+
}
|
|
119
|
+
.eds-input-group__label--filled {
|
|
120
|
+
top: 0.375rem;
|
|
121
|
+
font-size: 0.75rem;
|
|
122
|
+
line-height: 0.75rem;
|
|
123
|
+
height: 10px;
|
|
124
|
+
padding: 0;
|
|
125
|
+
}
|
|
126
|
+
.eds-textarea__label .eds-input-group__label--filled {
|
|
127
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
128
|
+
background: var(--textarea-label-background);
|
|
129
|
+
width: calc(100% - 1rem - 1rem - 4px);
|
|
130
|
+
}
|
|
131
|
+
.eds-form-control-wrapper--size-large .eds-input-group__label--filled {
|
|
132
|
+
top: 0.5rem;
|
|
133
|
+
font-size: 0.875rem;
|
|
134
|
+
line-height: 1rem;
|
|
135
|
+
padding: 0;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
139
|
+
top: 0.375rem;
|
|
140
|
+
font-size: 0.75rem;
|
|
141
|
+
line-height: 0.75rem;
|
|
142
|
+
height: 10px;
|
|
143
|
+
padding: 0;
|
|
144
|
+
}
|
|
145
|
+
.eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
|
|
146
|
+
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
147
|
+
background: var(--textarea-label-background);
|
|
148
|
+
width: calc(100% - 1rem - 1rem - 4px);
|
|
149
|
+
}
|
|
150
|
+
.eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
|
|
151
|
+
top: 0.5rem;
|
|
152
|
+
font-size: 0.875rem;
|
|
153
|
+
line-height: 1rem;
|
|
3
154
|
padding: 0;
|
|
4
|
-
border: 0;
|
|
5
155
|
}
|
|
6
156
|
/* DO NOT CHANGE!*/
|
|
7
157
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -148,79 +298,6 @@
|
|
|
148
298
|
}
|
|
149
299
|
/* DO NOT CHANGE!*/
|
|
150
300
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
151
|
-
.eds-feedback-text {
|
|
152
|
-
display: flex;
|
|
153
|
-
align-items: center;
|
|
154
|
-
margin-top: 0.25rem;
|
|
155
|
-
}
|
|
156
|
-
.eds-feedback-text--info, .eds-feedback-text--information {
|
|
157
|
-
padding-left: calc(1rem + 0.125rem);
|
|
158
|
-
}
|
|
159
|
-
.eds-feedback-text__text {
|
|
160
|
-
color: var(--components-form-feedbacktext-information-standard-text);
|
|
161
|
-
}
|
|
162
|
-
.eds-contrast .eds-feedback-text__text {
|
|
163
|
-
color: var(--components-form-feedbacktext-information-contrast-text);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.eds-feedback-text__icon {
|
|
167
|
-
font-size: 1.5rem;
|
|
168
|
-
min-height: 1.5rem;
|
|
169
|
-
min-width: 1.5rem;
|
|
170
|
-
padding-right: 0.5rem;
|
|
171
|
-
position: relative;
|
|
172
|
-
top: -0.1rem;
|
|
173
|
-
}
|
|
174
|
-
.eds-feedback-text__icon--success {
|
|
175
|
-
color: var(--components-form-feedbacktext-success-standard-icon-fill);
|
|
176
|
-
}
|
|
177
|
-
.eds-feedback-text__icon--success circle {
|
|
178
|
-
fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
|
|
179
|
-
}
|
|
180
|
-
.eds-contrast .eds-feedback-text__icon--success {
|
|
181
|
-
color: var(--components-form-feedbacktext-success-contrast-icon-fill);
|
|
182
|
-
}
|
|
183
|
-
.eds-contrast .eds-feedback-text__icon--success circle {
|
|
184
|
-
fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
|
|
185
|
-
}
|
|
186
|
-
.eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
|
|
187
|
-
color: var(--components-form-feedbacktext-negative-standard-icon-fill);
|
|
188
|
-
}
|
|
189
|
-
.eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
|
|
190
|
-
fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
|
|
191
|
-
}
|
|
192
|
-
.eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
|
|
193
|
-
color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
|
|
194
|
-
}
|
|
195
|
-
.eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
|
|
196
|
-
fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
|
|
197
|
-
}
|
|
198
|
-
.eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
|
|
199
|
-
color: var(--components-form-feedbacktext-information-standard-icon-fill);
|
|
200
|
-
}
|
|
201
|
-
.eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
|
|
202
|
-
fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
|
|
203
|
-
}
|
|
204
|
-
.eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
|
|
205
|
-
color: var(--components-form-feedbacktext-information-contrast-icon-fill);
|
|
206
|
-
}
|
|
207
|
-
.eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
|
|
208
|
-
fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
|
|
209
|
-
}
|
|
210
|
-
.eds-feedback-text__icon--warning {
|
|
211
|
-
color: var(--components-form-feedbacktext-warning-standard-icon-fill);
|
|
212
|
-
}
|
|
213
|
-
.eds-feedback-text__icon--warning .svg-exclamation {
|
|
214
|
-
fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
|
|
215
|
-
}
|
|
216
|
-
.eds-contrast .eds-feedback-text__icon--warning {
|
|
217
|
-
color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
|
|
218
|
-
}
|
|
219
|
-
.eds-contrast .eds-feedback-text__icon--warning circle {
|
|
220
|
-
fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
|
|
221
|
-
}
|
|
222
|
-
/* DO NOT CHANGE!*/
|
|
223
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
224
301
|
.eds-form-control__field-and-feedback-text {
|
|
225
302
|
display: flex;
|
|
226
303
|
flex-direction: column;
|
|
@@ -295,8 +372,11 @@
|
|
|
295
372
|
}
|
|
296
373
|
.eds-contrast .eds-form-control-wrapper--readonly {
|
|
297
374
|
background: var(--components-form-baseform-contrast-fill-readonly);
|
|
298
|
-
color: var(--components-form-baseform-contrast-text-description);
|
|
299
375
|
border: var(--components-form-baseform-contrast-fill-readonly);
|
|
376
|
+
color: var(--components-form-baseform-contrast-text-description);
|
|
377
|
+
}
|
|
378
|
+
.eds-contrast .eds-form-control-wrapper--readonly .eds-form-control {
|
|
379
|
+
color: var(--components-form-baseform-contrast-text-description);
|
|
300
380
|
}
|
|
301
381
|
.eds-contrast .eds-form-control-wrapper--readonly .eds-input-group__label {
|
|
302
382
|
color: var(--components-form-baseform-contrast-text-description);
|
|
@@ -415,98 +495,16 @@
|
|
|
415
495
|
}
|
|
416
496
|
/* DO NOT CHANGE!*/
|
|
417
497
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
418
|
-
.eds-
|
|
419
|
-
display: flex;
|
|
420
|
-
justify-content: center;
|
|
421
|
-
align-items: center;
|
|
422
|
-
position: relative;
|
|
498
|
+
.eds-switch {
|
|
423
499
|
cursor: pointer;
|
|
424
|
-
height: 2rem;
|
|
425
|
-
width: -moz-fit-content;
|
|
426
|
-
width: fit-content;
|
|
427
500
|
-webkit-user-select: none;
|
|
428
501
|
-moz-user-select: none;
|
|
429
502
|
user-select: none;
|
|
503
|
+
padding: 0.5rem 0;
|
|
504
|
+
width: -moz-fit-content;
|
|
505
|
+
width: fit-content;
|
|
430
506
|
}
|
|
431
|
-
.eds-
|
|
432
|
-
background-color: var(--components-form-radio-standard-fill-hover);
|
|
433
|
-
}
|
|
434
|
-
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
435
|
-
background-color: var(--components-form-radio-contrast-fill-hover);
|
|
436
|
-
}
|
|
437
|
-
.eds-form-component--radio__container input {
|
|
438
|
-
position: absolute;
|
|
439
|
-
opacity: 0;
|
|
440
|
-
cursor: pointer;
|
|
441
|
-
height: 0;
|
|
442
|
-
width: 0;
|
|
443
|
-
}
|
|
444
|
-
.eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
445
|
-
height: 0.625rem;
|
|
446
|
-
width: 0.625rem;
|
|
447
|
-
}
|
|
448
|
-
.eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
|
|
449
|
-
outline: 2px solid #181c56;
|
|
450
|
-
outline-color: var(--basecolors-stroke-focus-standard);
|
|
451
|
-
outline-offset: 0.125rem;
|
|
452
|
-
}
|
|
453
|
-
.eds-contrast .eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
|
|
454
|
-
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
455
|
-
}
|
|
456
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
457
|
-
position: relative;
|
|
458
|
-
height: 1.25rem;
|
|
459
|
-
width: 1.25rem;
|
|
460
|
-
margin-right: 1rem;
|
|
461
|
-
background-color: var(--components-form-radio-standard-fill-default);
|
|
462
|
-
border: 0.125rem solid var(--components-form-radio-standard-border);
|
|
463
|
-
border-radius: 50%;
|
|
464
|
-
display: flex;
|
|
465
|
-
align-items: center;
|
|
466
|
-
justify-content: center;
|
|
467
|
-
}
|
|
468
|
-
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
469
|
-
background-color: var(--components-form-radio-contrast-fill-default);
|
|
470
|
-
border-color: var(--components-form-radio-contrast-border);
|
|
471
|
-
}
|
|
472
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
473
|
-
background: var(--components-form-baseform-contrast-fill-disabled);
|
|
474
|
-
border-color: var(--components-form-baseform-contrast-text-disabled);
|
|
475
|
-
cursor: not-allowed;
|
|
476
|
-
}
|
|
477
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
|
|
478
|
-
border-color: var(--components-form-baseform-contrast-text-disabled);
|
|
479
|
-
}
|
|
480
|
-
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
481
|
-
background: var(--components-form-baseform-contrast-fill-disabled);
|
|
482
|
-
border-color: var(--components-form-baseform-contrast-text-disabled);
|
|
483
|
-
}
|
|
484
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
|
|
485
|
-
color: var(--components-form-baseform-contrast-text-disabled);
|
|
486
|
-
}
|
|
487
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
488
|
-
display: block;
|
|
489
|
-
width: 0;
|
|
490
|
-
height: 0;
|
|
491
|
-
border-radius: 50%;
|
|
492
|
-
background-color: var(--components-form-radio-standard-fill-selected);
|
|
493
|
-
transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
|
|
494
|
-
}
|
|
495
|
-
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
496
|
-
background-color: var(--components-form-radio-contrast-icon);
|
|
497
|
-
}
|
|
498
|
-
/* DO NOT CHANGE!*/
|
|
499
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
500
|
-
.eds-switch {
|
|
501
|
-
cursor: pointer;
|
|
502
|
-
-webkit-user-select: none;
|
|
503
|
-
-moz-user-select: none;
|
|
504
|
-
user-select: none;
|
|
505
|
-
padding: 0.5rem 0;
|
|
506
|
-
width: -moz-fit-content;
|
|
507
|
-
width: fit-content;
|
|
508
|
-
}
|
|
509
|
-
.eds-switch input {
|
|
507
|
+
.eds-switch input {
|
|
510
508
|
opacity: 0;
|
|
511
509
|
pointer-events: none;
|
|
512
510
|
position: absolute;
|
|
@@ -614,235 +612,92 @@
|
|
|
614
612
|
.eds-switch__label--medium--bottom {
|
|
615
613
|
font-size: 0.75rem;
|
|
616
614
|
}
|
|
615
|
+
.eds-fieldset {
|
|
616
|
+
margin: 0;
|
|
617
|
+
padding: 0;
|
|
618
|
+
border: 0;
|
|
619
|
+
}
|
|
617
620
|
/* DO NOT CHANGE!*/
|
|
618
621
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
619
|
-
.eds-
|
|
620
|
-
outline: 2px solid #181c56;
|
|
621
|
-
outline-color: var(--basecolors-stroke-focus-standard);
|
|
622
|
-
outline-offset: 0.125rem;
|
|
623
|
-
}
|
|
624
|
-
.eds-contrast .eds-input-panel:has(:focus-visible) .eds-input-panel__container {
|
|
625
|
-
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
626
|
-
}
|
|
627
|
-
.eds-input-panel > input {
|
|
628
|
-
position: absolute;
|
|
629
|
-
opacity: 0;
|
|
630
|
-
cursor: pointer;
|
|
631
|
-
height: 0;
|
|
632
|
-
width: 0;
|
|
633
|
-
}
|
|
634
|
-
.eds-input-panel > input:checked + .eds-input-panel__container {
|
|
635
|
-
border-color: var(--components-form-basepanel-standard-border-selected);
|
|
636
|
-
background: var(--components-form-basepanel-standard-fill-selected);
|
|
637
|
-
}
|
|
638
|
-
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container {
|
|
639
|
-
border-color: var(--components-form-basepanel-contrast-border-selected);
|
|
640
|
-
background: var(--components-form-basepanel-contrast-fill-selected);
|
|
641
|
-
}
|
|
642
|
-
.eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
|
|
643
|
-
width: 0.75rem;
|
|
644
|
-
height: 0.75rem;
|
|
645
|
-
}
|
|
646
|
-
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
|
|
647
|
-
background-color: var(--components-form-radio-contrast-icon);
|
|
648
|
-
}
|
|
649
|
-
.eds-input-panel > input:checked + .eds-input-panel__container:hover {
|
|
650
|
-
background-color: var(--components-form-basepanel-standard-fill-hover);
|
|
651
|
-
/* The following styling is needed to sync the inner checkbox/radiobutton's
|
|
652
|
-
hover state styling with the inputPanel container */
|
|
653
|
-
}
|
|
654
|
-
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover {
|
|
655
|
-
background-color: var(--components-form-basepanel-contrast-fill-hover);
|
|
656
|
-
}
|
|
657
|
-
.eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
|
|
658
|
-
background-color: var(--components-form-basepanel-standard-fill-hover);
|
|
659
|
-
border-color: var(--components-form-basepanel-standard-border-selected);
|
|
660
|
-
}
|
|
661
|
-
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
|
|
662
|
-
background-color: var(--components-form-basepanel-contrast-fill-hover);
|
|
663
|
-
border-color: var(--components-form-basepanel-contrast-border-selected);
|
|
664
|
-
}
|
|
665
|
-
.eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
|
|
666
|
-
border-color: transparent;
|
|
667
|
-
}
|
|
668
|
-
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
|
|
669
|
-
background-color: var(--components-form-checkbox-contrast-fill-selectedhover);
|
|
670
|
-
}
|
|
671
|
-
.eds-input-panel__container {
|
|
672
|
-
background: var(--components-form-basepanel-standard-fill-default);
|
|
673
|
-
border: 0.125rem solid var(--components-form-basepanel-standard-border-default);
|
|
674
|
-
color: var(--components-form-basepanel-standard-text-accent);
|
|
675
|
-
border-radius: 0.25rem;
|
|
622
|
+
.eds-form-component--radio__container {
|
|
676
623
|
display: flex;
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
min-width: 20rem;
|
|
624
|
+
justify-content: center;
|
|
625
|
+
align-items: center;
|
|
680
626
|
position: relative;
|
|
681
|
-
|
|
627
|
+
cursor: pointer;
|
|
628
|
+
height: 2rem;
|
|
629
|
+
width: -moz-fit-content;
|
|
630
|
+
width: fit-content;
|
|
682
631
|
-webkit-user-select: none;
|
|
683
632
|
-moz-user-select: none;
|
|
684
633
|
user-select: none;
|
|
685
|
-
width: -moz-fit-content;
|
|
686
|
-
width: fit-content;
|
|
687
|
-
transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
|
|
688
|
-
}
|
|
689
|
-
.eds-contrast .eds-input-panel__container {
|
|
690
|
-
background-color: var(--components-form-basepanel-contrast-fill-default);
|
|
691
|
-
border-color: var(--components-form-basepanel-contrast-border-default);
|
|
692
|
-
color: var(--components-form-basepanel-contrast-text-accent);
|
|
693
|
-
}
|
|
694
|
-
.eds-input-panel__container:hover {
|
|
695
|
-
background-color: var(--components-form-basepanel-standard-fill-hover);
|
|
696
|
-
/* The following styling is needed to sync the inner checkbox/radiobutton's
|
|
697
|
-
hover state styling with the inputPanel container */
|
|
698
|
-
}
|
|
699
|
-
.eds-contrast .eds-input-panel__container:hover {
|
|
700
|
-
background-color: var(--components-form-basepanel-contrast-fill-hover);
|
|
701
|
-
}
|
|
702
|
-
.eds-input-panel__container:hover .eds-checkbox__icon,
|
|
703
|
-
.eds-input-panel__container:hover .eds-form-component--radio__radio {
|
|
704
|
-
background-color: var(--components-form-basepanel-standard-fill-hover);
|
|
705
|
-
border-color: var(--components-form-basepanel-standard-border-selected);
|
|
706
|
-
}
|
|
707
|
-
.eds-contrast .eds-input-panel__container:hover .eds-checkbox__icon,
|
|
708
|
-
.eds-contrast .eds-input-panel__container:hover .eds-form-component--radio__radio {
|
|
709
|
-
background-color: var(--components-form-basepanel-contrast-fill-hover);
|
|
710
|
-
border-color: var(--components-form-basepanel-contrast-border-selected);
|
|
711
634
|
}
|
|
712
|
-
|
|
713
|
-
background: var(--components-form-
|
|
714
|
-
border-color: var(--components-form-basepanel-standard-border-disabled);
|
|
715
|
-
color: var(--components-form-basepanel-standard-text-disabled);
|
|
716
|
-
cursor: not-allowed;
|
|
717
|
-
}
|
|
718
|
-
.eds-contrast input:disabled + .eds-input-panel__container {
|
|
719
|
-
background: var(--components-form-basepanel-contrast-fill-disabled);
|
|
720
|
-
border-style: dashed;
|
|
721
|
-
border-color: var(--components-form-basepanel-contrast-border-disabled);
|
|
722
|
-
color: var(--components-form-basepanel-contrast-text-disabled);
|
|
635
|
+
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
636
|
+
background-color: var(--components-form-radio-standard-fill-hover);
|
|
723
637
|
}
|
|
724
|
-
.eds-
|
|
725
|
-
|
|
726
|
-
.eds-input-panel__container .eds-form-component--radio__radio {
|
|
727
|
-
width: 1.5rem;
|
|
728
|
-
height: 1.5rem;
|
|
729
|
-
margin-right: 0;
|
|
638
|
+
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
639
|
+
background-color: var(--components-form-radio-contrast-fill-hover);
|
|
730
640
|
}
|
|
731
|
-
.eds-
|
|
732
|
-
|
|
733
|
-
|
|
641
|
+
.eds-form-component--radio__container input {
|
|
642
|
+
position: absolute;
|
|
643
|
+
opacity: 0;
|
|
644
|
+
cursor: pointer;
|
|
645
|
+
height: 0;
|
|
646
|
+
width: 0;
|
|
734
647
|
}
|
|
735
|
-
.eds-input-
|
|
736
|
-
|
|
737
|
-
|
|
648
|
+
.eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
649
|
+
height: 0.625rem;
|
|
650
|
+
width: 0.625rem;
|
|
738
651
|
}
|
|
739
|
-
.eds-input-
|
|
740
|
-
|
|
652
|
+
.eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
|
|
653
|
+
outline: 2px solid #181c56;
|
|
654
|
+
outline-color: var(--basecolors-stroke-focus-standard);
|
|
655
|
+
outline-offset: 0.125rem;
|
|
741
656
|
}
|
|
742
|
-
.eds-
|
|
743
|
-
|
|
744
|
-
font-weight: 500;
|
|
745
|
-
line-height: 1.875rem;
|
|
657
|
+
.eds-contrast .eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
|
|
658
|
+
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
746
659
|
}
|
|
747
|
-
.eds-
|
|
660
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
661
|
+
position: relative;
|
|
662
|
+
height: 1.25rem;
|
|
663
|
+
width: 1.25rem;
|
|
664
|
+
margin-right: 1rem;
|
|
665
|
+
background-color: var(--components-form-radio-standard-fill-default);
|
|
666
|
+
border: 0.125rem solid var(--components-form-radio-standard-border);
|
|
667
|
+
border-radius: 50%;
|
|
748
668
|
display: flex;
|
|
749
|
-
justify-content: space-between;
|
|
750
669
|
align-items: center;
|
|
751
|
-
}
|
|
752
|
-
.eds-input-panel__secondary-label-and-icon-wrapper {
|
|
753
|
-
display: flex;
|
|
754
670
|
justify-content: center;
|
|
755
|
-
align-items: center;
|
|
756
|
-
gap: 0.75rem;
|
|
757
671
|
}
|
|
758
|
-
.eds-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
.eds-input-panel__additional-content {
|
|
762
|
-
margin-top: 0.25rem;
|
|
763
|
-
word-wrap: break-word;
|
|
764
|
-
}
|
|
765
|
-
/* DO NOT CHANGE!*/
|
|
766
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
767
|
-
.eds-input-group {
|
|
768
|
-
color: inherit;
|
|
769
|
-
display: block;
|
|
770
|
-
position: relative;
|
|
771
|
-
}
|
|
772
|
-
.eds-input-group__label {
|
|
773
|
-
color: var(--components-form-baseform-standard-text-label);
|
|
774
|
-
display: flex;
|
|
775
|
-
font-size: 1rem;
|
|
776
|
-
position: absolute;
|
|
777
|
-
line-height: 1rem;
|
|
778
|
-
height: 3rem;
|
|
779
|
-
padding-left: 0;
|
|
780
|
-
top: 1rem;
|
|
781
|
-
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;
|
|
782
|
-
-webkit-user-select: none;
|
|
783
|
-
-moz-user-select: none;
|
|
784
|
-
user-select: none;
|
|
785
|
-
pointer-events: none;
|
|
786
|
-
}
|
|
787
|
-
.eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
788
|
-
top: 0.375rem;
|
|
789
|
-
font-size: 0.75rem;
|
|
790
|
-
line-height: 0.75rem;
|
|
791
|
-
height: 10px;
|
|
792
|
-
padding: 0;
|
|
793
|
-
}
|
|
794
|
-
.eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
|
|
795
|
-
box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
|
|
796
|
-
background: var(--textarea-label-background);
|
|
797
|
-
width: calc(100% - 1rem - 1rem - 4px);
|
|
798
|
-
}
|
|
799
|
-
.eds-form-control-wrapper--is-filled.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
800
|
-
top: 0.5rem;
|
|
801
|
-
font-size: 0.875rem;
|
|
802
|
-
line-height: 1rem;
|
|
803
|
-
padding: 0;
|
|
804
|
-
}
|
|
805
|
-
.eds-form-control-wrapper--size-large .eds-input-group__label {
|
|
806
|
-
top: 0.75rem;
|
|
807
|
-
font-size: 1.5rem;
|
|
808
|
-
line-height: 2.25rem;
|
|
672
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
673
|
+
background-color: var(--components-form-radio-contrast-fill-default);
|
|
674
|
+
border-color: var(--components-form-radio-contrast-border);
|
|
809
675
|
}
|
|
810
|
-
.eds-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
height: 10px;
|
|
815
|
-
padding: 0;
|
|
676
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
677
|
+
background: var(--components-form-baseform-contrast-fill-disabled);
|
|
678
|
+
border-color: var(--components-form-baseform-contrast-text-disabled);
|
|
679
|
+
cursor: not-allowed;
|
|
816
680
|
}
|
|
817
|
-
.eds-
|
|
818
|
-
|
|
819
|
-
background: var(--textarea-label-background);
|
|
820
|
-
width: calc(100% - 1rem - 1rem - 4px);
|
|
681
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
|
|
682
|
+
border-color: var(--components-form-baseform-contrast-text-disabled);
|
|
821
683
|
}
|
|
822
|
-
.eds-form-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
line-height: 1rem;
|
|
826
|
-
padding: 0;
|
|
684
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
685
|
+
background: var(--components-form-baseform-contrast-fill-disabled);
|
|
686
|
+
border-color: var(--components-form-baseform-contrast-text-disabled);
|
|
827
687
|
}
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
top: 0.375rem;
|
|
831
|
-
font-size: 0.75rem;
|
|
832
|
-
line-height: 0.75rem;
|
|
833
|
-
height: 10px;
|
|
834
|
-
padding: 0;
|
|
688
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
|
|
689
|
+
color: var(--components-form-baseform-contrast-text-disabled);
|
|
835
690
|
}
|
|
836
|
-
.eds-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
691
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
692
|
+
display: block;
|
|
693
|
+
width: 0;
|
|
694
|
+
height: 0;
|
|
695
|
+
border-radius: 50%;
|
|
696
|
+
background-color: var(--components-form-radio-standard-fill-selected);
|
|
697
|
+
transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
|
|
840
698
|
}
|
|
841
|
-
.eds-form-
|
|
842
|
-
|
|
843
|
-
font-size: 0.875rem;
|
|
844
|
-
line-height: 1rem;
|
|
845
|
-
padding: 0;
|
|
699
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
700
|
+
background-color: var(--components-form-radio-contrast-icon);
|
|
846
701
|
}
|
|
847
702
|
/* DO NOT CHANGE!*/
|
|
848
703
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -984,29 +839,177 @@ input:disabled + .eds-input-panel__container {
|
|
|
984
839
|
--basecolors-text-subdued: #b3b4bd;
|
|
985
840
|
--basecolors-text-subduedalt: #b3b4bd;
|
|
986
841
|
}
|
|
987
|
-
|
|
988
|
-
.eds-textarea__wrapper :not(.eds-form-control-wrapper--disabled):not(.eds-form-control-wrapper--readonly) .eds-textarea__label .eds-input-group__label {
|
|
989
|
-
background: #ffffff;
|
|
990
|
-
background: var(--basecolors-frame-default);
|
|
991
|
-
width: -moz-fit-content;
|
|
992
|
-
width: fit-content;
|
|
993
|
-
height: -moz-fit-content;
|
|
994
|
-
height: fit-content;
|
|
995
|
-
padding: 0.15rem;
|
|
996
|
-
margin: -0.15rem;
|
|
842
|
+
|
|
843
|
+
.eds-textarea__wrapper :not(.eds-form-control-wrapper--disabled):not(.eds-form-control-wrapper--readonly) .eds-textarea__label .eds-input-group__label {
|
|
844
|
+
background: #ffffff;
|
|
845
|
+
background: var(--basecolors-frame-default);
|
|
846
|
+
width: -moz-fit-content;
|
|
847
|
+
width: fit-content;
|
|
848
|
+
height: -moz-fit-content;
|
|
849
|
+
height: fit-content;
|
|
850
|
+
padding: 0.15rem;
|
|
851
|
+
margin: -0.15rem;
|
|
852
|
+
}
|
|
853
|
+
*[data-color-mode=dark] .eds-contrast .eds-textarea__wrapper :not(.eds-form-control-wrapper--disabled):not(.eds-form-control-wrapper--readonly) .eds-textarea__label .eds-input-group__label {
|
|
854
|
+
background-color: #181c56;
|
|
855
|
+
background-color: var(--basecolors-frame-contrast);
|
|
856
|
+
}
|
|
857
|
+
.eds-textarea__wrapper textarea.eds-form-control.eds-textarea {
|
|
858
|
+
min-height: 7.75rem;
|
|
859
|
+
resize: vertical;
|
|
860
|
+
line-height: 1.5rem;
|
|
861
|
+
}
|
|
862
|
+
.eds-textarea__wrapper .eds-form-control-wrapper {
|
|
863
|
+
padding-right: 0;
|
|
864
|
+
cursor: text;
|
|
865
|
+
}
|
|
866
|
+
/* DO NOT CHANGE!*/
|
|
867
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
868
|
+
.eds-input-panel:has(:focus-visible) .eds-input-panel__container {
|
|
869
|
+
outline: 2px solid #181c56;
|
|
870
|
+
outline-color: var(--basecolors-stroke-focus-standard);
|
|
871
|
+
outline-offset: 0.125rem;
|
|
872
|
+
}
|
|
873
|
+
.eds-contrast .eds-input-panel:has(:focus-visible) .eds-input-panel__container {
|
|
874
|
+
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
875
|
+
}
|
|
876
|
+
.eds-input-panel > input {
|
|
877
|
+
position: absolute;
|
|
878
|
+
opacity: 0;
|
|
879
|
+
cursor: pointer;
|
|
880
|
+
height: 0;
|
|
881
|
+
width: 0;
|
|
882
|
+
}
|
|
883
|
+
.eds-input-panel > input:checked + .eds-input-panel__container {
|
|
884
|
+
border-color: var(--components-form-basepanel-standard-border-selected);
|
|
885
|
+
background: var(--components-form-basepanel-standard-fill-selected);
|
|
886
|
+
}
|
|
887
|
+
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container {
|
|
888
|
+
border-color: var(--components-form-basepanel-contrast-border-selected);
|
|
889
|
+
background: var(--components-form-basepanel-contrast-fill-selected);
|
|
890
|
+
}
|
|
891
|
+
.eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
|
|
892
|
+
width: 0.75rem;
|
|
893
|
+
height: 0.75rem;
|
|
894
|
+
}
|
|
895
|
+
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
|
|
896
|
+
background-color: var(--components-form-radio-contrast-icon);
|
|
897
|
+
}
|
|
898
|
+
.eds-input-panel > input:checked + .eds-input-panel__container:hover {
|
|
899
|
+
background-color: var(--components-form-basepanel-standard-fill-hover);
|
|
900
|
+
/* The following styling is needed to sync the inner checkbox/radiobutton's
|
|
901
|
+
hover state styling with the inputPanel container */
|
|
902
|
+
}
|
|
903
|
+
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover {
|
|
904
|
+
background-color: var(--components-form-basepanel-contrast-fill-hover);
|
|
905
|
+
}
|
|
906
|
+
.eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
|
|
907
|
+
background-color: var(--components-form-basepanel-standard-fill-hover);
|
|
908
|
+
border-color: var(--components-form-basepanel-standard-border-selected);
|
|
909
|
+
}
|
|
910
|
+
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
|
|
911
|
+
background-color: var(--components-form-basepanel-contrast-fill-hover);
|
|
912
|
+
border-color: var(--components-form-basepanel-contrast-border-selected);
|
|
913
|
+
}
|
|
914
|
+
.eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
|
|
915
|
+
border-color: transparent;
|
|
916
|
+
}
|
|
917
|
+
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
|
|
918
|
+
background-color: var(--components-form-checkbox-contrast-fill-selectedhover);
|
|
919
|
+
}
|
|
920
|
+
.eds-input-panel__container {
|
|
921
|
+
background: var(--components-form-basepanel-standard-fill-default);
|
|
922
|
+
border: 0.125rem solid var(--components-form-basepanel-standard-border-default);
|
|
923
|
+
color: var(--components-form-basepanel-standard-text-accent);
|
|
924
|
+
border-radius: 0.25rem;
|
|
925
|
+
display: flex;
|
|
926
|
+
flex-direction: column;
|
|
927
|
+
justify-content: flex-start;
|
|
928
|
+
min-width: 20rem;
|
|
929
|
+
position: relative;
|
|
930
|
+
padding: 1rem;
|
|
931
|
+
-webkit-user-select: none;
|
|
932
|
+
-moz-user-select: none;
|
|
933
|
+
user-select: none;
|
|
934
|
+
width: -moz-fit-content;
|
|
935
|
+
width: fit-content;
|
|
936
|
+
transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
|
|
937
|
+
}
|
|
938
|
+
.eds-contrast .eds-input-panel__container {
|
|
939
|
+
background-color: var(--components-form-basepanel-contrast-fill-default);
|
|
940
|
+
border-color: var(--components-form-basepanel-contrast-border-default);
|
|
941
|
+
color: var(--components-form-basepanel-contrast-text-accent);
|
|
942
|
+
}
|
|
943
|
+
.eds-input-panel__container:hover {
|
|
944
|
+
background-color: var(--components-form-basepanel-standard-fill-hover);
|
|
945
|
+
/* The following styling is needed to sync the inner checkbox/radiobutton's
|
|
946
|
+
hover state styling with the inputPanel container */
|
|
947
|
+
}
|
|
948
|
+
.eds-contrast .eds-input-panel__container:hover {
|
|
949
|
+
background-color: var(--components-form-basepanel-contrast-fill-hover);
|
|
950
|
+
}
|
|
951
|
+
.eds-input-panel__container:hover .eds-checkbox__icon,
|
|
952
|
+
.eds-input-panel__container:hover .eds-form-component--radio__radio {
|
|
953
|
+
background-color: var(--components-form-basepanel-standard-fill-hover);
|
|
954
|
+
border-color: var(--components-form-basepanel-standard-border-selected);
|
|
955
|
+
}
|
|
956
|
+
.eds-contrast .eds-input-panel__container:hover .eds-checkbox__icon,
|
|
957
|
+
.eds-contrast .eds-input-panel__container:hover .eds-form-component--radio__radio {
|
|
958
|
+
background-color: var(--components-form-basepanel-contrast-fill-hover);
|
|
959
|
+
border-color: var(--components-form-basepanel-contrast-border-selected);
|
|
960
|
+
}
|
|
961
|
+
input:disabled + .eds-input-panel__container {
|
|
962
|
+
background: var(--components-form-basepanel-standard-fill-disabled);
|
|
963
|
+
border-color: var(--components-form-basepanel-standard-border-disabled);
|
|
964
|
+
color: var(--components-form-basepanel-standard-text-disabled);
|
|
965
|
+
cursor: not-allowed;
|
|
997
966
|
}
|
|
998
|
-
|
|
999
|
-
background
|
|
1000
|
-
|
|
967
|
+
.eds-contrast input:disabled + .eds-input-panel__container {
|
|
968
|
+
background: var(--components-form-basepanel-contrast-fill-disabled);
|
|
969
|
+
border-style: dashed;
|
|
970
|
+
border-color: var(--components-form-basepanel-contrast-border-disabled);
|
|
971
|
+
color: var(--components-form-basepanel-contrast-text-disabled);
|
|
1001
972
|
}
|
|
1002
|
-
.eds-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
973
|
+
.eds-input-panel__container .eds-checkbox__icon,
|
|
974
|
+
.eds-input-panel__container .eds-checkbox__icon .eds-checkbox__icon,
|
|
975
|
+
.eds-input-panel__container .eds-form-component--radio__radio {
|
|
976
|
+
width: 1.5rem;
|
|
977
|
+
height: 1.5rem;
|
|
978
|
+
margin-right: 0;
|
|
1006
979
|
}
|
|
1007
|
-
.eds-
|
|
1008
|
-
|
|
1009
|
-
|
|
980
|
+
.eds-input-panel--medium .eds-input-panel__title {
|
|
981
|
+
font-size: 1rem;
|
|
982
|
+
font-weight: 500;
|
|
983
|
+
}
|
|
984
|
+
.eds-input-panel--medium.eds-input-panel__container {
|
|
985
|
+
padding-bottom: 1rem;
|
|
986
|
+
min-height: 3.75rem;
|
|
987
|
+
}
|
|
988
|
+
.eds-input-panel--large.eds-input-panel__container {
|
|
989
|
+
min-height: 6rem;
|
|
990
|
+
}
|
|
991
|
+
.eds-input-panel--large .eds-input-panel__title {
|
|
992
|
+
font-size: 1.25rem;
|
|
993
|
+
font-weight: 500;
|
|
994
|
+
line-height: 1.875rem;
|
|
995
|
+
}
|
|
996
|
+
.eds-input-panel__title-wrapper {
|
|
997
|
+
display: flex;
|
|
998
|
+
justify-content: space-between;
|
|
999
|
+
align-items: center;
|
|
1000
|
+
}
|
|
1001
|
+
.eds-input-panel__secondary-label-and-icon-wrapper {
|
|
1002
|
+
display: flex;
|
|
1003
|
+
justify-content: center;
|
|
1004
|
+
align-items: center;
|
|
1005
|
+
gap: 0.75rem;
|
|
1006
|
+
}
|
|
1007
|
+
.eds-input-panel__secondary-label-and-icon-wrapper .eds-checkbox__container {
|
|
1008
|
+
margin: 0;
|
|
1009
|
+
}
|
|
1010
|
+
.eds-input-panel__additional-content {
|
|
1011
|
+
margin-top: 0.25rem;
|
|
1012
|
+
word-wrap: break-word;
|
|
1010
1013
|
}
|
|
1011
1014
|
/* DO NOT CHANGE!*/
|
|
1012
1015
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -1052,6 +1055,99 @@ input:disabled + .eds-input-panel__container {
|
|
|
1052
1055
|
}
|
|
1053
1056
|
/* DO NOT CHANGE!*/
|
|
1054
1057
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
1058
|
+
.eds-segmented-choice {
|
|
1059
|
+
display: block;
|
|
1060
|
+
flex: 1 1 0px;
|
|
1061
|
+
}
|
|
1062
|
+
.eds-segmented-choice .eds-base-segmented {
|
|
1063
|
+
--background-color: var(--components-form-segmentedcontrol-standard-fill-unselected);
|
|
1064
|
+
background-color: var(--background-color);
|
|
1065
|
+
border-radius: 0.25rem;
|
|
1066
|
+
color: var(--components-form-segmentedcontrol-standard-text-unselected);
|
|
1067
|
+
cursor: pointer;
|
|
1068
|
+
font-size: 0.875rem;
|
|
1069
|
+
height: 1.5rem;
|
|
1070
|
+
line-height: 1.25rem;
|
|
1071
|
+
margin: 0.25rem;
|
|
1072
|
+
outline-color: transparent;
|
|
1073
|
+
padding: calc(0.25rem / 2) 0.75rem;
|
|
1074
|
+
text-align: center;
|
|
1075
|
+
-webkit-user-select: none;
|
|
1076
|
+
-moz-user-select: none;
|
|
1077
|
+
user-select: none;
|
|
1078
|
+
}
|
|
1079
|
+
.eds-segmented-choice .eds-base-segmented--large {
|
|
1080
|
+
font-size: 1rem;
|
|
1081
|
+
height: 2.5rem;
|
|
1082
|
+
line-height: 1.5rem;
|
|
1083
|
+
padding: 0.5rem 0.75rem;
|
|
1084
|
+
}
|
|
1085
|
+
.eds-contrast .eds-segmented-choice .eds-base-segmented {
|
|
1086
|
+
--background-color: var(--components-form-segmentedcontrol-contrast-background);
|
|
1087
|
+
color: var(--components-form-segmentedcontrol-contrast-text-unselected);
|
|
1088
|
+
}
|
|
1089
|
+
.eds-segmented-choice:hover input:not(:checked) + .eds-base-segmented {
|
|
1090
|
+
--background-color: var(--components-form-segmentedcontrol-standard-fill-hover);
|
|
1091
|
+
}
|
|
1092
|
+
.eds-contrast .eds-segmented-choice:hover input:not(:checked) + .eds-base-segmented {
|
|
1093
|
+
--background-color: var(--components-form-segmentedcontrol-contrast-fill-hover);
|
|
1094
|
+
}
|
|
1095
|
+
.eds-segmented-choice:hover input:checked + .eds-base-segmented {
|
|
1096
|
+
--background-color: var(--components-form-segmentedcontrol-standard-fill-hover);
|
|
1097
|
+
color: var(--components-form-segmentedcontrol-standard-text-unselected);
|
|
1098
|
+
}
|
|
1099
|
+
.eds-contrast .eds-segmented-choice:hover input:checked + .eds-base-segmented {
|
|
1100
|
+
--background-color: var(--components-form-segmentedcontrol-contrast-fill-hover);
|
|
1101
|
+
color: var(--components-form-segmentedcontrol-contrast-text-unselected);
|
|
1102
|
+
}
|
|
1103
|
+
.eds-segmented-choice input {
|
|
1104
|
+
-webkit-appearance: none;
|
|
1105
|
+
-moz-appearance: none;
|
|
1106
|
+
appearance: none;
|
|
1107
|
+
position: absolute;
|
|
1108
|
+
opacity: 0;
|
|
1109
|
+
height: 0;
|
|
1110
|
+
width: 0;
|
|
1111
|
+
}
|
|
1112
|
+
.eds-segmented-choice input:checked + .eds-base-segmented {
|
|
1113
|
+
--background-color: var(--components-form-segmentedcontrol-standard-fill-selected);
|
|
1114
|
+
color: var(--components-form-segmentedcontrol-standard-text-selected);
|
|
1115
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
1116
|
+
}
|
|
1117
|
+
.eds-contrast .eds-segmented-choice input:checked + .eds-base-segmented {
|
|
1118
|
+
--background-color: var(--components-form-segmentedcontrol-contrast-fill-selected);
|
|
1119
|
+
box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
|
|
1120
|
+
color: var(--components-form-segmentedcontrol-contrast-text-selected);
|
|
1121
|
+
}
|
|
1122
|
+
.eds-segmented-choice input:focus-visible:not(:checked) + .eds-base-segmented {
|
|
1123
|
+
outline: 2px solid #181c56;
|
|
1124
|
+
outline-color: var(--basecolors-stroke-focus-standard);
|
|
1125
|
+
outline-offset: 0.125rem;
|
|
1126
|
+
}
|
|
1127
|
+
.eds-contrast .eds-segmented-choice input:focus-visible:not(:checked) + .eds-base-segmented {
|
|
1128
|
+
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
1129
|
+
}
|
|
1130
|
+
.eds-segmented-choice input:focus-visible:checked + .eds-base-segmented {
|
|
1131
|
+
outline: 2px solid #181c56;
|
|
1132
|
+
outline-color: var(--basecolors-stroke-focus-standard);
|
|
1133
|
+
outline-offset: 0.125rem;
|
|
1134
|
+
}
|
|
1135
|
+
.eds-contrast .eds-segmented-choice input:focus-visible:checked + .eds-base-segmented {
|
|
1136
|
+
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
1137
|
+
}
|
|
1138
|
+
/* DO NOT CHANGE!*/
|
|
1139
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
1140
|
+
.eds-segmented-control {
|
|
1141
|
+
margin-top: 0.25rem;
|
|
1142
|
+
display: flex;
|
|
1143
|
+
background: var(--components-form-segmentedcontrol-standard-background);
|
|
1144
|
+
border-radius: 0.5rem;
|
|
1145
|
+
}
|
|
1146
|
+
.eds-contrast .eds-segmented-control {
|
|
1147
|
+
background: var(--components-form-segmentedcontrol-contrast-background);
|
|
1148
|
+
}
|
|
1149
|
+
/* DO NOT CHANGE!*/
|
|
1150
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
1055
1151
|
/* DO NOT CHANGE!*/
|
|
1056
1152
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
1057
1153
|
/* DO NOT CHANGE!*/
|
|
@@ -1599,96 +1695,3 @@ input:disabled + .eds-input-panel__container {
|
|
|
1599
1695
|
:root {
|
|
1600
1696
|
--eds-form: 1;
|
|
1601
1697
|
}
|
|
1602
|
-
/* DO NOT CHANGE!*/
|
|
1603
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
1604
|
-
.eds-segmented-choice {
|
|
1605
|
-
display: block;
|
|
1606
|
-
flex: 1 1 0px;
|
|
1607
|
-
}
|
|
1608
|
-
.eds-segmented-choice .eds-base-segmented {
|
|
1609
|
-
--background-color: var(--components-form-segmentedcontrol-standard-fill-unselected);
|
|
1610
|
-
background-color: var(--background-color);
|
|
1611
|
-
border-radius: 0.25rem;
|
|
1612
|
-
color: var(--components-form-segmentedcontrol-standard-text-unselected);
|
|
1613
|
-
cursor: pointer;
|
|
1614
|
-
font-size: 0.875rem;
|
|
1615
|
-
height: 1.5rem;
|
|
1616
|
-
line-height: 1.25rem;
|
|
1617
|
-
margin: 0.25rem;
|
|
1618
|
-
outline-color: transparent;
|
|
1619
|
-
padding: calc(0.25rem / 2) 0.75rem;
|
|
1620
|
-
text-align: center;
|
|
1621
|
-
-webkit-user-select: none;
|
|
1622
|
-
-moz-user-select: none;
|
|
1623
|
-
user-select: none;
|
|
1624
|
-
}
|
|
1625
|
-
.eds-segmented-choice .eds-base-segmented--large {
|
|
1626
|
-
font-size: 1rem;
|
|
1627
|
-
height: 2.5rem;
|
|
1628
|
-
line-height: 1.5rem;
|
|
1629
|
-
padding: 0.5rem 0.75rem;
|
|
1630
|
-
}
|
|
1631
|
-
.eds-contrast .eds-segmented-choice .eds-base-segmented {
|
|
1632
|
-
--background-color: var(--components-form-segmentedcontrol-contrast-background);
|
|
1633
|
-
color: var(--components-form-segmentedcontrol-contrast-text-unselected);
|
|
1634
|
-
}
|
|
1635
|
-
.eds-segmented-choice:hover input:not(:checked) + .eds-base-segmented {
|
|
1636
|
-
--background-color: var(--components-form-segmentedcontrol-standard-fill-hover);
|
|
1637
|
-
}
|
|
1638
|
-
.eds-contrast .eds-segmented-choice:hover input:not(:checked) + .eds-base-segmented {
|
|
1639
|
-
--background-color: var(--components-form-segmentedcontrol-contrast-fill-hover);
|
|
1640
|
-
}
|
|
1641
|
-
.eds-segmented-choice:hover input:checked + .eds-base-segmented {
|
|
1642
|
-
--background-color: var(--components-form-segmentedcontrol-standard-fill-hover);
|
|
1643
|
-
color: var(--components-form-segmentedcontrol-standard-text-unselected);
|
|
1644
|
-
}
|
|
1645
|
-
.eds-contrast .eds-segmented-choice:hover input:checked + .eds-base-segmented {
|
|
1646
|
-
--background-color: var(--components-form-segmentedcontrol-contrast-fill-hover);
|
|
1647
|
-
color: var(--components-form-segmentedcontrol-contrast-text-unselected);
|
|
1648
|
-
}
|
|
1649
|
-
.eds-segmented-choice input {
|
|
1650
|
-
-webkit-appearance: none;
|
|
1651
|
-
-moz-appearance: none;
|
|
1652
|
-
appearance: none;
|
|
1653
|
-
position: absolute;
|
|
1654
|
-
opacity: 0;
|
|
1655
|
-
height: 0;
|
|
1656
|
-
width: 0;
|
|
1657
|
-
}
|
|
1658
|
-
.eds-segmented-choice input:checked + .eds-base-segmented {
|
|
1659
|
-
--background-color: var(--components-form-segmentedcontrol-standard-fill-selected);
|
|
1660
|
-
color: var(--components-form-segmentedcontrol-standard-text-selected);
|
|
1661
|
-
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
1662
|
-
}
|
|
1663
|
-
.eds-contrast .eds-segmented-choice input:checked + .eds-base-segmented {
|
|
1664
|
-
--background-color: var(--components-form-segmentedcontrol-contrast-fill-selected);
|
|
1665
|
-
box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
|
|
1666
|
-
color: var(--components-form-segmentedcontrol-contrast-text-selected);
|
|
1667
|
-
}
|
|
1668
|
-
.eds-segmented-choice input:focus-visible:not(:checked) + .eds-base-segmented {
|
|
1669
|
-
outline: 2px solid #181c56;
|
|
1670
|
-
outline-color: var(--basecolors-stroke-focus-standard);
|
|
1671
|
-
outline-offset: 0.125rem;
|
|
1672
|
-
}
|
|
1673
|
-
.eds-contrast .eds-segmented-choice input:focus-visible:not(:checked) + .eds-base-segmented {
|
|
1674
|
-
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
1675
|
-
}
|
|
1676
|
-
.eds-segmented-choice input:focus-visible:checked + .eds-base-segmented {
|
|
1677
|
-
outline: 2px solid #181c56;
|
|
1678
|
-
outline-color: var(--basecolors-stroke-focus-standard);
|
|
1679
|
-
outline-offset: 0.125rem;
|
|
1680
|
-
}
|
|
1681
|
-
.eds-contrast .eds-segmented-choice input:focus-visible:checked + .eds-base-segmented {
|
|
1682
|
-
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
1683
|
-
}
|
|
1684
|
-
/* DO NOT CHANGE!*/
|
|
1685
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
1686
|
-
.eds-segmented-control {
|
|
1687
|
-
margin-top: 0.25rem;
|
|
1688
|
-
display: flex;
|
|
1689
|
-
background: var(--components-form-segmentedcontrol-standard-background);
|
|
1690
|
-
border-radius: 0.5rem;
|
|
1691
|
-
}
|
|
1692
|
-
.eds-contrast .eds-segmented-control {
|
|
1693
|
-
background: var(--components-form-segmentedcontrol-contrast-background);
|
|
1694
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/form",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.2-beta.0",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/form.esm.js",
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/button": "^3.3.
|
|
31
|
-
"@entur/icons": "^7.
|
|
32
|
-
"@entur/tokens": "^3.17.
|
|
33
|
-
"@entur/tooltip": "^5.2.
|
|
34
|
-
"@entur/typography": "^1.9.
|
|
30
|
+
"@entur/button": "^3.3.2-beta.0",
|
|
31
|
+
"@entur/icons": "^7.6.2-beta.0",
|
|
32
|
+
"@entur/tokens": "^3.17.7-beta.0",
|
|
33
|
+
"@entur/tooltip": "^5.2.2-beta.0",
|
|
34
|
+
"@entur/typography": "^1.9.2-beta.0",
|
|
35
35
|
"@entur/utils": "^0.12.2",
|
|
36
36
|
"classnames": "^2.3.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"dts-cli": "2.0.5"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "cd66907abaf7faaee1f9dcc5f063b3b153eaf7b2"
|
|
42
42
|
}
|