@entur/form 8.0.2 → 8.1.0-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 CHANGED
@@ -1,232 +1,178 @@
1
+ .eds-fieldset {
2
+ margin: 0;
3
+ padding: 0;
4
+ border: 0;
5
+ }
1
6
  /* DO NOT CHANGE!*/
2
7
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
- .eds-form-control__field-and-feedback-text {
8
+ .eds-checkbox__container {
4
9
  display: flex;
5
- flex-direction: column;
10
+ align-items: center;
11
+ position: relative;
12
+ -webkit-appearance: none;
13
+ -moz-appearance: none;
14
+ appearance: none;
15
+ cursor: pointer;
16
+ -webkit-user-select: none;
17
+ -moz-user-select: none;
18
+ user-select: none;
19
+ width: -moz-fit-content;
20
+ width: fit-content;
21
+ margin: 0.5rem 0;
22
+ }
23
+ .eds-checkbox__container--reduced-click-area {
6
24
  height: -moz-fit-content;
7
25
  height: fit-content;
8
- width: 100%;
9
- }
10
- .eds-form-control__field-and-feedback-text--has-tooltip {
11
- padding-right: 2rem;
12
26
  }
13
- .eds-form-control-wrapper {
14
- display: flex;
15
- align-items: center;
16
- position: relative;
17
- flex: 1;
18
- min-height: 3rem;
19
- padding-left: 1rem;
20
- padding-right: 1rem;
21
- background-color: var(--components-form-baseform-standard-fill-default);
22
- border-radius: 0.25rem;
23
- border: 0.125rem solid var(--components-form-baseform-standard-border-default);
24
- box-shadow: 0 0 0 transparent;
25
- color: var(--components-form-baseform-standard-text-content);
26
- transition: border-color 0.1s ease-in-out;
27
+ .eds-checkbox__container input {
28
+ position: absolute;
29
+ opacity: 0;
30
+ height: 0;
31
+ width: 0;
27
32
  }
28
- .eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
29
- border-color: var(--components-form-baseform-standard-border-interactive);
33
+ .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
34
+ background-color: var(--components-form-checkbox-standard-fill-selected);
30
35
  }
31
- .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
32
- border-color: var(--components-form-baseform-standard-border-interactive);
36
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
37
+ visibility: visible;
33
38
  }
34
- .eds-contrast .eds-form-control-wrapper:hover {
35
- border-color: var(--components-form-baseform-contrast-border-interactive);
39
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon path {
40
+ stroke: var(--components-form-checkbox-standard-icon);
41
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
36
42
  }
37
- .eds-form-control-wrapper[focus-within] {
38
- outline: 1px solid var(--components-form-baseform-standard-border-interactive);
43
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon rect {
44
+ fill: var(--components-form-checkbox-standard-icon);
39
45
  }
40
- .eds-form-control-wrapper:focus-within {
41
- outline: 1px solid var(--components-form-baseform-standard-border-interactive);
46
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
47
+ opacity: 0.5;
42
48
  }
43
- .eds-contrast .eds-form-control-wrapper[focus-within] {
44
- outline: var(--components-form-baseform-contrast-border-interactive);
49
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled path {
50
+ opacity: 0.5;
45
51
  }
46
- .eds-contrast .eds-form-control-wrapper:focus-within {
47
- outline: var(--components-form-baseform-contrast-border-interactive);
52
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled rect {
53
+ opacity: 0.5;
48
54
  }
49
- .eds-form-control-wrapper ::-moz-placeholder {
50
- color: var(--components-form-baseform-standard-text-label);
55
+ .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled path {
56
+ opacity: 0.5;
51
57
  }
52
- .eds-form-control-wrapper ::placeholder {
53
- color: var(--components-form-baseform-standard-text-label);
58
+ .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled rect {
59
+ opacity: 0.5;
54
60
  }
55
- .eds-form-control-wrapper--disabled {
56
- border-color: transparent;
57
- background-color: var(--components-form-baseform-standard-fill-disabled);
58
- pointer-events: none;
59
- color: var(--components-form-baseform-standard-text-disabled);
61
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
62
+ background-color: var(--components-form-checkbox-contrast-fill-selected);
60
63
  }
61
- .eds-form-control-wrapper--disabled .eds-input-group__label {
62
- color: var(--components-form-baseform-standard-text-disabled);
64
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon path, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon path {
65
+ stroke: var(--components-form-checkbox-contrast-icon);
63
66
  }
64
- .eds-contrast .eds-form-control-wrapper--disabled {
65
- border-color: transparent;
66
- background-color: var(--components-form-baseform-contrast-fill-disabled);
67
- color: var(--components-form-baseform-contrast-text-disabled);
67
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon rect, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon rect {
68
+ fill: var(--components-form-checkbox-contrast-icon);
68
69
  }
69
- .eds-contrast .eds-form-control-wrapper--disabled .eds-input-group__label {
70
- color: var(--components-form-baseform-contrast-text-disabled);
70
+ .eds-checkbox__container:hover input + .eds-checkbox__icon {
71
+ border-color: var(--components-form-checkbox-standard-border);
72
+ background-color: var(--components-form-checkbox-standard-fill-hover);
71
73
  }
72
- .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
73
- display: none;
74
+ .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
75
+ border-color: var(--components-form-checkbox-contrast-border);
76
+ background-color: var(--components-form-checkbox-contrast-fill-hover);
74
77
  }
75
- .eds-form-control-wrapper--readonly {
78
+ .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
79
+ .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
76
80
  border-color: transparent;
77
- pointer-events: none;
78
- cursor: default;
79
- background: var(--components-form-baseform-standard-fill-readonly);
80
- border: var(--components-form-baseform-standard-fill-readonly);
81
+ background-color: var(--components-form-checkbox-standard-fill-selectedhover);
81
82
  }
82
- .eds-contrast .eds-form-control-wrapper--readonly {
83
- background: var(--components-form-baseform-contrast-fill-readonly);
84
- color: var(--components-form-baseform-contrast-text-description);
85
- border: var(--components-form-baseform-contrast-fill-readonly);
83
+ .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
84
+ .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
85
+ background-color: var(--components-form-checkbox-contrast-fill-selectedhover);
86
86
  }
87
- .eds-contrast .eds-form-control-wrapper--readonly .eds-input-group__label {
88
- color: var(--components-form-baseform-contrast-text-description);
87
+ .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
88
+ .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
89
+ background-color: var(--components-form-checkbox-standard-fill-selected);
89
90
  }
90
- .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
91
- display: none;
91
+ .eds-contrast .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
92
+ .eds-contrast .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
93
+ background-color: var(--components-form-checkbox-contrast-fill-selected);
92
94
  }
93
- .eds-form-control-wrapper--size-medium .eds-form-control,
94
- .eds-form-control-wrapper--size-medium .eds-form-control__append,
95
- .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
96
- font-size: 1rem;
97
- line-height: 1rem;
95
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
96
+ .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
97
+ outline: 2px solid #181c56;
98
+ outline-color: var(--basecolors-stroke-focus-standard);
99
+ outline-offset: 0.125rem;
98
100
  }
99
- .eds-form-control-wrapper--size-large {
100
- min-height: 4rem;
101
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
102
+ .eds-checkbox__container :focus-within + .eds-checkbox__icon {
103
+ outline: 2px solid #181c56;
104
+ outline-color: var(--basecolors-stroke-focus-standard);
105
+ outline-offset: 0.125rem;
101
106
  }
102
- .eds-form-control-wrapper--size-large .eds-form-control,
103
- .eds-form-control-wrapper--size-large .eds-form-control__append,
104
- .eds-form-control-wrapper--size-large .eds-form-control__prepend {
105
- font-size: 1.5rem;
107
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
108
+ .eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
109
+ outline-color: var(--basecolors-stroke-focus-contrast);
106
110
  }
107
- .eds-form-control-wrapper--success {
108
- border-color: var(--components-form-baseform-standard-border-success);
111
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
112
+ .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
113
+ outline-color: var(--basecolors-stroke-focus-contrast);
109
114
  }
110
- .eds-form-control-wrapper--success[focus-within] {
111
- border-color: var(--components-form-baseform-standard-border-success);
115
+ .eds-checkbox--disabled {
116
+ pointer-events: none;
112
117
  }
113
- .eds-form-control-wrapper--success:focus-within {
114
- border-color: var(--components-form-baseform-standard-border-success);
118
+ .eds-checkbox--disabled .eds-checkbox__label {
119
+ opacity: 0.5;
115
120
  }
116
- .eds-contrast .eds-form-control-wrapper--success {
117
- border-color: var(--components-form-baseform-standard-border-success);
121
+ .eds-checkbox--disabled .eds-checkbox__icon {
122
+ opacity: 0.5;
118
123
  }
119
- .eds-contrast .eds-form-control-wrapper--success[focus-within] {
120
- border-color: var(--components-form-baseform-contrast-border-success);
124
+ .eds-checkbox__icon {
125
+ box-sizing: border-box;
126
+ display: inline-flex;
127
+ justify-content: center;
128
+ align-items: center;
129
+ position: relative;
130
+ margin-right: 1rem;
131
+ height: 1.25rem;
132
+ width: 1.25rem;
133
+ border: 0.125rem solid var(--components-form-checkbox-standard-border);
134
+ border-radius: 0.125rem;
135
+ background-color: transparent;
136
+ transition: border-color 0.1s ease-in-out, background-color 0.1s ease-in-out;
121
137
  }
122
- .eds-contrast .eds-form-control-wrapper--success:focus-within {
123
- border-color: var(--components-form-baseform-contrast-border-success);
138
+ .eds-checkbox__icon--reduced-click-area {
139
+ margin-right: 0;
124
140
  }
125
- .eds-form-control-wrapper--error, .eds-form-control-wrapper--negative {
126
- border-color: var(--components-form-baseform-standard-border-negative);
141
+ .eds-contrast .eds-checkbox__icon {
142
+ border-color: var(--components-form-checkbox-contrast-border);
127
143
  }
128
- .eds-form-control-wrapper--error[focus-within], .eds-form-control-wrapper--negative[focus-within] {
129
- border-color: var(--components-form-baseform-standard-border-negative);
144
+ .eds-checkbox__icon .eds-checkbox-icon {
145
+ height: 1rem;
146
+ width: 1rem;
147
+ visibility: hidden;
130
148
  }
131
- .eds-form-control-wrapper--error:focus-within, .eds-form-control-wrapper--negative:focus-within {
132
- border-color: var(--components-form-baseform-standard-border-negative);
149
+ .eds-checkbox__icon .eds-checkbox-icon path {
150
+ transform-origin: 50% 50%;
151
+ stroke-dasharray: 48;
152
+ stroke-dashoffset: 48;
153
+ stroke-width: 0.375rem;
133
154
  }
134
- .eds-contrast .eds-form-control-wrapper--error, .eds-contrast .eds-form-control-wrapper--negative {
135
- border-color: var(--components-form-baseform-contrast-border-negative);
155
+
156
+ @keyframes stroke {
157
+ 100% {
158
+ stroke-dashoffset: 0;
159
+ }
136
160
  }
137
- .eds-contrast .eds-form-control-wrapper--error[focus-within], .eds-contrast .eds-form-control-wrapper--negative[focus-within] {
138
- border-color: var(--components-form-baseform-contrast-border-negative);
161
+ /* DO NOT CHANGE!*/
162
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
163
+ .eds-feedback-text {
164
+ display: flex;
165
+ align-items: center;
166
+ margin-top: 0.25rem;
139
167
  }
140
- .eds-contrast .eds-form-control-wrapper--error:focus-within, .eds-contrast .eds-form-control-wrapper--negative:focus-within {
141
- border-color: var(--components-form-baseform-contrast-border-negative);
168
+ .eds-feedback-text--info, .eds-feedback-text--information {
169
+ padding-left: calc(1rem + 0.125rem);
142
170
  }
143
- .eds-contrast .eds-form-control .eds-tooltip {
144
- background: var(--components-tooltip-tooltip-standard-fill);
145
- color: var(--components-tooltip-tooltip-standard-text);
146
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
171
+ .eds-feedback-text__text {
172
+ color: var(--components-form-feedbacktext-information-standard-text);
147
173
  }
148
- .eds-form-control .eds-tooltip::after {
149
- background: var(--components-tooltip-tooltip-standard-fill);
150
- }
151
-
152
- .eds-form-control {
153
- display: block;
154
- -webkit-appearance: none;
155
- -moz-appearance: none;
156
- appearance: none;
157
- width: 100%;
158
- height: 100%;
159
- padding: 20px 0rem 0.25rem;
160
- font-family: inherit;
161
- font-size: 1rem;
162
- line-height: 1rem;
163
- border: 0;
164
- color: var(--components-form-baseform-standard-text-content);
165
- background-color: transparent;
166
- }
167
- .eds-form-control::-moz-placeholder {
168
- opacity: 0;
169
- -moz-transition: opacity 0.2s ease-in-out;
170
- transition: opacity 0.2s ease-in-out;
171
- }
172
- .eds-form-control::placeholder {
173
- opacity: 0;
174
- transition: opacity 0.2s ease-in-out;
175
- }
176
- .eds-form-control:focus {
177
- outline: none;
178
- }
179
- .eds-form-control:focus::-moz-placeholder {
180
- opacity: 1;
181
- }
182
- .eds-form-control:focus::placeholder {
183
- opacity: 1;
184
- }
185
- .eds-form-control__prepend, .eds-form-control__append {
186
- position: relative;
187
- line-height: inherit;
188
- }
189
- .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
190
- all: unset;
191
- position: absolute;
192
- display: flex;
193
- align-items: center;
194
- justify-content: center;
195
- height: 1.5rem;
196
- width: 1.5rem;
197
- right: -2rem;
198
- border-radius: 100%;
199
- color: var(--primary-text-color);
200
- cursor: pointer;
201
- }
202
- .eds-form-control__prepend {
203
- margin-right: 0.75rem;
204
- margin-left: 0;
205
- }
206
- .eds-form-control__append {
207
- margin-right: 0;
208
- margin-left: 0.75rem;
209
- }
210
- .eds-fieldset {
211
- margin: 0;
212
- padding: 0;
213
- border: 0;
214
- }
215
- /* DO NOT CHANGE!*/
216
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
217
- .eds-feedback-text {
218
- display: flex;
219
- align-items: center;
220
- margin-top: 0.25rem;
221
- }
222
- .eds-feedback-text--info, .eds-feedback-text--information {
223
- padding-left: calc(1rem + 0.125rem);
224
- }
225
- .eds-feedback-text__text {
226
- color: var(--components-form-feedbacktext-information-standard-text);
227
- }
228
- .eds-contrast .eds-feedback-text__text {
229
- color: var(--components-form-feedbacktext-information-contrast-text);
174
+ .eds-contrast .eds-feedback-text__text {
175
+ color: var(--components-form-feedbacktext-information-contrast-text);
230
176
  }
231
177
 
232
178
  .eds-feedback-text__icon {
@@ -287,104 +233,85 @@
287
233
  }
288
234
  /* DO NOT CHANGE!*/
289
235
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
290
- .eds-input-group {
291
- color: inherit;
292
- display: block;
293
- position: relative;
294
- }
295
- .eds-input-group__label {
296
- color: var(--components-form-baseform-standard-text-label);
236
+ .eds-form-component--radio__container {
297
237
  display: flex;
298
- font-size: 1rem;
299
- position: absolute;
300
- line-height: 1rem;
301
- height: 3rem;
302
- padding-left: 0;
303
- top: 1rem;
304
- 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;
238
+ justify-content: center;
239
+ align-items: center;
240
+ position: relative;
241
+ cursor: pointer;
242
+ height: 2rem;
243
+ width: -moz-fit-content;
244
+ width: fit-content;
305
245
  -webkit-user-select: none;
306
246
  -moz-user-select: none;
307
247
  user-select: none;
308
- pointer-events: none;
309
248
  }
310
- .eds-form-control-wrapper--is-filled .eds-input-group__label {
311
- top: 0.375rem;
312
- font-size: 0.75rem;
313
- line-height: 0.75rem;
314
- height: 10px;
315
- padding: 0;
249
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
250
+ background-color: var(--components-form-radio-standard-fill-hover);
316
251
  }
317
- .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
318
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
319
- background: var(--textarea-label-background);
320
- width: calc(100% - 1rem - 1rem - 4px);
252
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
253
+ background-color: var(--components-form-radio-contrast-fill-hover);
321
254
  }
322
- .eds-form-control-wrapper--is-filled.eds-form-control-wrapper--size-large .eds-input-group__label {
323
- top: 0.5rem;
324
- font-size: 0.875rem;
325
- line-height: 1rem;
326
- padding: 0;
255
+ .eds-form-component--radio__container input {
256
+ position: absolute;
257
+ opacity: 0;
258
+ cursor: pointer;
259
+ height: 0;
260
+ width: 0;
327
261
  }
328
- .eds-form-control-wrapper--size-large .eds-input-group__label {
329
- top: 0.75rem;
330
- font-size: 1.5rem;
331
- line-height: 2.25rem;
262
+ .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
263
+ height: 0.625rem;
264
+ width: 0.625rem;
332
265
  }
333
- .eds-input-group__label--filled {
334
- top: 0.375rem;
335
- font-size: 0.75rem;
336
- line-height: 0.75rem;
337
- height: 10px;
338
- padding: 0;
266
+ .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
267
+ outline: 2px solid #181c56;
268
+ outline-color: var(--basecolors-stroke-focus-standard);
269
+ outline-offset: 0.125rem;
339
270
  }
340
- .eds-textarea__label .eds-input-group__label--filled {
341
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
342
- background: var(--textarea-label-background);
343
- width: calc(100% - 1rem - 1rem - 4px);
271
+ .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
272
+ outline-color: var(--basecolors-stroke-focus-contrast);
344
273
  }
345
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
346
- top: 0.5rem;
347
- font-size: 0.875rem;
348
- line-height: 1rem;
349
- padding: 0;
274
+ .eds-form-component--radio__container .eds-form-component--radio__radio {
275
+ position: relative;
276
+ height: 1.25rem;
277
+ width: 1.25rem;
278
+ margin-right: 1rem;
279
+ background-color: var(--components-form-radio-standard-fill-default);
280
+ border: 0.125rem solid var(--components-form-radio-standard-border);
281
+ border-radius: 50%;
282
+ display: flex;
283
+ align-items: center;
284
+ justify-content: center;
350
285
  }
351
-
352
- .eds-form-control-wrapper[focus-within] .eds-input-group__label {
353
- top: 0.375rem;
354
- font-size: 0.75rem;
355
- line-height: 0.75rem;
356
- height: 10px;
357
- padding: 0;
286
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
287
+ background-color: var(--components-form-radio-contrast-fill-default);
288
+ border-color: var(--components-form-radio-contrast-border);
358
289
  }
359
-
360
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
361
- top: 0.375rem;
362
- font-size: 0.75rem;
363
- line-height: 0.75rem;
364
- height: 10px;
365
- padding: 0;
290
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
291
+ background: var(--components-form-baseform-contrast-fill-disabled);
292
+ border-color: var(--components-form-baseform-contrast-text-disabled);
293
+ cursor: not-allowed;
366
294
  }
367
- .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
368
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
369
- background: var(--textarea-label-background);
370
- width: calc(100% - 1rem - 1rem - 4px);
295
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
296
+ border-color: var(--components-form-baseform-contrast-text-disabled);
371
297
  }
372
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
373
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
374
- background: var(--textarea-label-background);
375
- width: calc(100% - 1rem - 1rem - 4px);
298
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
299
+ background: var(--components-form-baseform-contrast-fill-disabled);
300
+ border-color: var(--components-form-baseform-contrast-text-disabled);
376
301
  }
377
- .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
378
- top: 0.5rem;
379
- font-size: 0.875rem;
380
- line-height: 1rem;
381
- padding: 0;
302
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
303
+ color: var(--components-form-baseform-contrast-text-disabled);
382
304
  }
383
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
384
- top: 0.5rem;
385
- font-size: 0.875rem;
386
- line-height: 1rem;
387
- padding: 0;
305
+ .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
306
+ display: block;
307
+ width: 0;
308
+ height: 0;
309
+ border-radius: 50%;
310
+ background-color: var(--components-form-radio-standard-fill-selected);
311
+ transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
312
+ }
313
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
314
+ background-color: var(--components-form-radio-contrast-icon);
388
315
  }
389
316
  /* DO NOT CHANGE!*/
390
317
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -507,240 +434,116 @@
507
434
  }
508
435
  /* DO NOT CHANGE!*/
509
436
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
510
- .eds-form-component--radio__container {
511
- display: flex;
512
- justify-content: center;
513
- align-items: center;
514
- position: relative;
515
- cursor: pointer;
516
- height: 2rem;
517
- width: -moz-fit-content;
518
- width: fit-content;
519
- -webkit-user-select: none;
520
- -moz-user-select: none;
521
- user-select: none;
522
- }
523
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
524
- background-color: var(--components-form-radio-standard-fill-hover);
525
- }
526
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
527
- background-color: var(--components-form-radio-contrast-fill-hover);
528
- }
529
- .eds-form-component--radio__container input {
530
- position: absolute;
531
- opacity: 0;
532
- cursor: pointer;
533
- height: 0;
534
- width: 0;
535
- }
536
- .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
537
- height: 0.625rem;
538
- width: 0.625rem;
539
- }
540
- .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
541
- outline: 2px solid #181c56;
542
- outline-color: var(--basecolors-stroke-focus-standard);
543
- outline-offset: 0.125rem;
544
- }
545
- .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
546
- outline-color: var(--basecolors-stroke-focus-contrast);
547
- }
548
- .eds-form-component--radio__container .eds-form-component--radio__radio {
549
- position: relative;
550
- height: 1.25rem;
551
- width: 1.25rem;
552
- margin-right: 1rem;
553
- background-color: var(--components-form-radio-standard-fill-default);
554
- border: 0.125rem solid var(--components-form-radio-standard-border);
555
- border-radius: 50%;
556
- display: flex;
557
- align-items: center;
558
- justify-content: center;
559
- }
560
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
561
- background-color: var(--components-form-radio-contrast-fill-default);
562
- border-color: var(--components-form-radio-contrast-border);
563
- }
564
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
565
- background: var(--components-form-baseform-contrast-fill-disabled);
566
- border-color: var(--components-form-baseform-contrast-text-disabled);
567
- cursor: not-allowed;
568
- }
569
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
570
- border-color: var(--components-form-baseform-contrast-text-disabled);
571
- }
572
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
573
- background: var(--components-form-baseform-contrast-fill-disabled);
574
- border-color: var(--components-form-baseform-contrast-text-disabled);
575
- }
576
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
577
- color: var(--components-form-baseform-contrast-text-disabled);
578
- }
579
- .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
580
- display: block;
581
- width: 0;
582
- height: 0;
583
- border-radius: 50%;
584
- background-color: var(--components-form-radio-standard-fill-selected);
585
- transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
437
+ textarea.eds-form-control.eds-textarea {
438
+ min-height: 7.75rem;
439
+ resize: vertical;
440
+ line-height: 1.5rem;
586
441
  }
587
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
588
- background-color: var(--components-form-radio-contrast-icon);
442
+
443
+ .eds-textarea__wrapper .eds-form-control-wrapper {
444
+ padding-right: 0;
445
+ cursor: text;
589
446
  }
590
447
  /* DO NOT CHANGE!*/
591
448
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
592
- .eds-checkbox__container {
593
- display: flex;
594
- align-items: center;
449
+ .eds-input-group {
450
+ color: inherit;
451
+ display: block;
595
452
  position: relative;
596
- -webkit-appearance: none;
597
- -moz-appearance: none;
598
- appearance: none;
599
- cursor: pointer;
453
+ }
454
+ .eds-input-group__label {
455
+ color: var(--components-form-baseform-standard-text-label);
456
+ display: flex;
457
+ font-size: 1rem;
458
+ position: absolute;
459
+ line-height: 1rem;
460
+ height: 3rem;
461
+ padding-left: 0;
462
+ top: 1rem;
463
+ 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;
600
464
  -webkit-user-select: none;
601
465
  -moz-user-select: none;
602
466
  user-select: none;
603
- width: -moz-fit-content;
604
- width: fit-content;
605
- margin: 0.5rem 0;
606
- }
607
- .eds-checkbox__container--reduced-click-area {
608
- height: -moz-fit-content;
609
- height: fit-content;
610
- }
611
- .eds-checkbox__container input {
612
- position: absolute;
613
- opacity: 0;
614
- height: 0;
615
- width: 0;
616
- }
617
- .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
618
- background-color: var(--components-form-checkbox-standard-fill-selected);
619
- }
620
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
621
- visibility: visible;
622
- }
623
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon path {
624
- stroke: var(--components-form-checkbox-standard-icon);
625
- animation: stroke ease-in-out 0.2s 0.1s forwards;
626
- }
627
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon rect {
628
- fill: var(--components-form-checkbox-standard-icon);
629
- }
630
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
631
- opacity: 0.5;
632
- }
633
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled path {
634
- opacity: 0.5;
635
- }
636
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled rect {
637
- opacity: 0.5;
638
- }
639
- .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled path {
640
- opacity: 0.5;
641
- }
642
- .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled rect {
643
- opacity: 0.5;
644
- }
645
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
646
- background-color: var(--components-form-checkbox-contrast-fill-selected);
647
- }
648
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon path, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon path {
649
- stroke: var(--components-form-checkbox-contrast-icon);
650
- }
651
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon rect, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon rect {
652
- fill: var(--components-form-checkbox-contrast-icon);
653
- }
654
- .eds-checkbox__container:hover input + .eds-checkbox__icon {
655
- border-color: var(--components-form-checkbox-standard-border);
656
- background-color: var(--components-form-checkbox-standard-fill-hover);
657
- }
658
- .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
659
- border-color: var(--components-form-checkbox-contrast-border);
660
- background-color: var(--components-form-checkbox-contrast-fill-hover);
661
- }
662
- .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
663
- .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
664
- border-color: transparent;
665
- background-color: var(--components-form-checkbox-standard-fill-selectedhover);
666
- }
667
- .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
668
- .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
669
- background-color: var(--components-form-checkbox-contrast-fill-selectedhover);
670
- }
671
- .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
672
- .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
673
- background-color: var(--components-form-checkbox-standard-fill-selected);
674
- }
675
- .eds-contrast .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
676
- .eds-contrast .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
677
- background-color: var(--components-form-checkbox-contrast-fill-selected);
467
+ pointer-events: none;
678
468
  }
679
- .eds-checkbox__container:focus + .eds-checkbox__icon,
680
- .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
681
- outline: 2px solid #181c56;
682
- outline-color: var(--basecolors-stroke-focus-standard);
683
- outline-offset: 0.125rem;
469
+ .eds-form-control-wrapper--is-filled .eds-input-group__label {
470
+ top: 0.375rem;
471
+ font-size: 0.75rem;
472
+ line-height: 0.75rem;
473
+ height: 10px;
474
+ padding: 0;
684
475
  }
685
- .eds-checkbox__container:focus + .eds-checkbox__icon,
686
- .eds-checkbox__container :focus-within + .eds-checkbox__icon {
687
- outline: 2px solid #181c56;
688
- outline-color: var(--basecolors-stroke-focus-standard);
689
- outline-offset: 0.125rem;
476
+ .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
477
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
478
+ background: var(--textarea-label-background);
479
+ width: calc(100% - 1rem - 1rem - 4px);
690
480
  }
691
- .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
692
- .eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
693
- outline-color: var(--basecolors-stroke-focus-contrast);
481
+ .eds-form-control-wrapper--is-filled.eds-form-control-wrapper--size-large .eds-input-group__label {
482
+ top: 0.5rem;
483
+ font-size: 0.875rem;
484
+ line-height: 1rem;
485
+ padding: 0;
694
486
  }
695
- .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
696
- .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
697
- outline-color: var(--basecolors-stroke-focus-contrast);
487
+ .eds-form-control-wrapper--size-large .eds-input-group__label {
488
+ top: 0.75rem;
489
+ font-size: 1.5rem;
490
+ line-height: 2.25rem;
698
491
  }
699
- .eds-checkbox--disabled {
700
- pointer-events: none;
492
+ .eds-input-group__label--filled {
493
+ top: 0.375rem;
494
+ font-size: 0.75rem;
495
+ line-height: 0.75rem;
496
+ height: 10px;
497
+ padding: 0;
701
498
  }
702
- .eds-checkbox--disabled .eds-checkbox__label {
703
- opacity: 0.5;
499
+ .eds-textarea__label .eds-input-group__label--filled {
500
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
501
+ background: var(--textarea-label-background);
502
+ width: calc(100% - 1rem - 1rem - 4px);
704
503
  }
705
- .eds-checkbox--disabled .eds-checkbox__icon {
706
- opacity: 0.5;
504
+ .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
505
+ top: 0.5rem;
506
+ font-size: 0.875rem;
507
+ line-height: 1rem;
508
+ padding: 0;
707
509
  }
708
- .eds-checkbox__icon {
709
- box-sizing: border-box;
710
- display: inline-flex;
711
- justify-content: center;
712
- align-items: center;
713
- position: relative;
714
- margin-right: 1rem;
715
- height: 1.25rem;
716
- width: 1.25rem;
717
- border: 0.125rem solid var(--components-form-checkbox-standard-border);
718
- border-radius: 0.125rem;
719
- background-color: transparent;
720
- transition: border-color 0.1s ease-in-out, background-color 0.1s ease-in-out;
510
+
511
+ .eds-form-control-wrapper[focus-within] .eds-input-group__label {
512
+ top: 0.375rem;
513
+ font-size: 0.75rem;
514
+ line-height: 0.75rem;
515
+ height: 10px;
516
+ padding: 0;
721
517
  }
722
- .eds-checkbox__icon--reduced-click-area {
723
- margin-right: 0;
518
+
519
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
520
+ top: 0.375rem;
521
+ font-size: 0.75rem;
522
+ line-height: 0.75rem;
523
+ height: 10px;
524
+ padding: 0;
724
525
  }
725
- .eds-contrast .eds-checkbox__icon {
726
- border-color: var(--components-form-checkbox-contrast-border);
526
+ .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
527
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
528
+ background: var(--textarea-label-background);
529
+ width: calc(100% - 1rem - 1rem - 4px);
727
530
  }
728
- .eds-checkbox__icon .eds-checkbox-icon {
729
- height: 1rem;
730
- width: 1rem;
731
- visibility: hidden;
531
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
532
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
533
+ background: var(--textarea-label-background);
534
+ width: calc(100% - 1rem - 1rem - 4px);
732
535
  }
733
- .eds-checkbox__icon .eds-checkbox-icon path {
734
- transform-origin: 50% 50%;
735
- stroke-dasharray: 48;
736
- stroke-dashoffset: 48;
737
- stroke-width: 0.375rem;
536
+ .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
537
+ top: 0.5rem;
538
+ font-size: 0.875rem;
539
+ line-height: 1rem;
540
+ padding: 0;
738
541
  }
739
-
740
- @keyframes stroke {
741
- 100% {
742
- stroke-dashoffset: 0;
743
- }
542
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
543
+ top: 0.5rem;
544
+ font-size: 0.875rem;
545
+ line-height: 1rem;
546
+ padding: 0;
744
547
  }
745
548
  /* DO NOT CHANGE!*/
746
549
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -900,15 +703,212 @@ input:disabled + .eds-input-panel__container {
900
703
  }
901
704
  /* DO NOT CHANGE!*/
902
705
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
903
- textarea.eds-form-control.eds-textarea {
904
- min-height: 7.75rem;
905
- resize: vertical;
906
- line-height: 1.5rem;
706
+ .eds-form-control__field-and-feedback-text {
707
+ display: flex;
708
+ flex-direction: column;
709
+ height: -moz-fit-content;
710
+ height: fit-content;
711
+ width: 100%;
712
+ }
713
+ .eds-form-control__field-and-feedback-text--has-tooltip {
714
+ padding-right: 2rem;
715
+ }
716
+ .eds-form-control-wrapper {
717
+ display: flex;
718
+ align-items: center;
719
+ position: relative;
720
+ flex: 1;
721
+ min-height: 3rem;
722
+ padding-left: 1rem;
723
+ padding-right: 1rem;
724
+ background-color: var(--components-form-baseform-standard-fill-default);
725
+ border-radius: 0.25rem;
726
+ border: 0.125rem solid var(--components-form-baseform-standard-border-default);
727
+ box-shadow: 0 0 0 transparent;
728
+ color: var(--components-form-baseform-standard-text-content);
729
+ transition: border-color 0.1s ease-in-out;
730
+ }
731
+ .eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
732
+ border-color: var(--components-form-baseform-standard-border-interactive);
733
+ }
734
+ .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
735
+ border-color: var(--components-form-baseform-standard-border-interactive);
736
+ }
737
+ .eds-contrast .eds-form-control-wrapper:hover {
738
+ border-color: var(--components-form-baseform-contrast-border-interactive);
739
+ }
740
+ .eds-form-control-wrapper[focus-within] {
741
+ outline: 1px solid var(--components-form-baseform-standard-border-interactive);
742
+ }
743
+ .eds-form-control-wrapper:focus-within {
744
+ outline: 1px solid var(--components-form-baseform-standard-border-interactive);
745
+ }
746
+ .eds-contrast .eds-form-control-wrapper[focus-within] {
747
+ outline: var(--components-form-baseform-contrast-border-interactive);
748
+ }
749
+ .eds-contrast .eds-form-control-wrapper:focus-within {
750
+ outline: var(--components-form-baseform-contrast-border-interactive);
751
+ }
752
+ .eds-form-control-wrapper ::-moz-placeholder {
753
+ color: var(--components-form-baseform-standard-text-label);
754
+ }
755
+ .eds-form-control-wrapper ::placeholder {
756
+ color: var(--components-form-baseform-standard-text-label);
757
+ }
758
+ .eds-form-control-wrapper--disabled {
759
+ border-color: transparent;
760
+ background-color: var(--components-form-baseform-standard-fill-disabled);
761
+ pointer-events: none;
762
+ color: var(--components-form-baseform-standard-text-disabled);
763
+ }
764
+ .eds-form-control-wrapper--disabled .eds-input-group__label {
765
+ color: var(--components-form-baseform-standard-text-disabled);
766
+ }
767
+ .eds-contrast .eds-form-control-wrapper--disabled {
768
+ border-color: transparent;
769
+ background-color: var(--components-form-baseform-contrast-fill-disabled);
770
+ color: var(--components-form-baseform-contrast-text-disabled);
771
+ }
772
+ .eds-contrast .eds-form-control-wrapper--disabled .eds-input-group__label {
773
+ color: var(--components-form-baseform-contrast-text-disabled);
774
+ }
775
+ .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
776
+ display: none;
777
+ }
778
+ .eds-form-control-wrapper--readonly {
779
+ border-color: transparent;
780
+ pointer-events: none;
781
+ cursor: default;
782
+ background: var(--components-form-baseform-standard-fill-readonly);
783
+ border: var(--components-form-baseform-standard-fill-readonly);
784
+ }
785
+ .eds-contrast .eds-form-control-wrapper--readonly {
786
+ background: var(--components-form-baseform-contrast-fill-readonly);
787
+ color: var(--components-form-baseform-contrast-text-description);
788
+ border: var(--components-form-baseform-contrast-fill-readonly);
789
+ }
790
+ .eds-contrast .eds-form-control-wrapper--readonly .eds-input-group__label {
791
+ color: var(--components-form-baseform-contrast-text-description);
792
+ }
793
+ .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
794
+ display: none;
795
+ }
796
+ .eds-form-control-wrapper--size-medium .eds-form-control,
797
+ .eds-form-control-wrapper--size-medium .eds-form-control__append,
798
+ .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
799
+ font-size: 1rem;
800
+ line-height: 1rem;
801
+ }
802
+ .eds-form-control-wrapper--size-large {
803
+ min-height: 4rem;
804
+ }
805
+ .eds-form-control-wrapper--size-large .eds-form-control,
806
+ .eds-form-control-wrapper--size-large .eds-form-control__append,
807
+ .eds-form-control-wrapper--size-large .eds-form-control__prepend {
808
+ font-size: 1.5rem;
809
+ }
810
+ .eds-form-control-wrapper--success {
811
+ border-color: var(--components-form-baseform-standard-border-success);
812
+ }
813
+ .eds-form-control-wrapper--success[focus-within] {
814
+ border-color: var(--components-form-baseform-standard-border-success);
815
+ }
816
+ .eds-form-control-wrapper--success:focus-within {
817
+ border-color: var(--components-form-baseform-standard-border-success);
818
+ }
819
+ .eds-contrast .eds-form-control-wrapper--success {
820
+ border-color: var(--components-form-baseform-standard-border-success);
821
+ }
822
+ .eds-contrast .eds-form-control-wrapper--success[focus-within] {
823
+ border-color: var(--components-form-baseform-contrast-border-success);
824
+ }
825
+ .eds-contrast .eds-form-control-wrapper--success:focus-within {
826
+ border-color: var(--components-form-baseform-contrast-border-success);
827
+ }
828
+ .eds-form-control-wrapper--error, .eds-form-control-wrapper--negative {
829
+ border-color: var(--components-form-baseform-standard-border-negative);
830
+ }
831
+ .eds-form-control-wrapper--error[focus-within], .eds-form-control-wrapper--negative[focus-within] {
832
+ border-color: var(--components-form-baseform-standard-border-negative);
833
+ }
834
+ .eds-form-control-wrapper--error:focus-within, .eds-form-control-wrapper--negative:focus-within {
835
+ border-color: var(--components-form-baseform-standard-border-negative);
836
+ }
837
+ .eds-contrast .eds-form-control-wrapper--error, .eds-contrast .eds-form-control-wrapper--negative {
838
+ border-color: var(--components-form-baseform-contrast-border-negative);
839
+ }
840
+ .eds-contrast .eds-form-control-wrapper--error[focus-within], .eds-contrast .eds-form-control-wrapper--negative[focus-within] {
841
+ border-color: var(--components-form-baseform-contrast-border-negative);
842
+ }
843
+ .eds-contrast .eds-form-control-wrapper--error:focus-within, .eds-contrast .eds-form-control-wrapper--negative:focus-within {
844
+ border-color: var(--components-form-baseform-contrast-border-negative);
845
+ }
846
+ .eds-contrast .eds-form-control .eds-tooltip {
847
+ background: var(--components-tooltip-tooltip-standard-fill);
848
+ color: var(--components-tooltip-tooltip-standard-text);
849
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
850
+ }
851
+ .eds-form-control .eds-tooltip::after {
852
+ background: var(--components-tooltip-tooltip-standard-fill);
907
853
  }
908
854
 
909
- .eds-textarea__wrapper .eds-form-control-wrapper {
910
- padding-right: 0;
911
- cursor: text;
855
+ .eds-form-control {
856
+ display: block;
857
+ -webkit-appearance: none;
858
+ -moz-appearance: none;
859
+ appearance: none;
860
+ width: 100%;
861
+ height: 100%;
862
+ padding: 20px 0rem 0.25rem;
863
+ font-family: inherit;
864
+ font-size: 1rem;
865
+ line-height: 1rem;
866
+ border: 0;
867
+ color: var(--components-form-baseform-standard-text-content);
868
+ background-color: transparent;
869
+ }
870
+ .eds-form-control::-moz-placeholder {
871
+ opacity: 0;
872
+ -moz-transition: opacity 0.2s ease-in-out;
873
+ transition: opacity 0.2s ease-in-out;
874
+ }
875
+ .eds-form-control::placeholder {
876
+ opacity: 0;
877
+ transition: opacity 0.2s ease-in-out;
878
+ }
879
+ .eds-form-control:focus {
880
+ outline: none;
881
+ }
882
+ .eds-form-control:focus::-moz-placeholder {
883
+ opacity: 1;
884
+ }
885
+ .eds-form-control:focus::placeholder {
886
+ opacity: 1;
887
+ }
888
+ .eds-form-control__prepend, .eds-form-control__append {
889
+ position: relative;
890
+ line-height: inherit;
891
+ }
892
+ .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
893
+ all: unset;
894
+ position: absolute;
895
+ display: flex;
896
+ align-items: center;
897
+ justify-content: center;
898
+ height: 1.5rem;
899
+ width: 1.5rem;
900
+ right: -2rem;
901
+ border-radius: 100%;
902
+ color: var(--primary-text-color);
903
+ cursor: pointer;
904
+ }
905
+ .eds-form-control__prepend {
906
+ margin-right: 0.75rem;
907
+ margin-left: 0;
908
+ }
909
+ .eds-form-control__append {
910
+ margin-right: 0;
911
+ margin-left: 0.75rem;
912
912
  }
913
913
  /* DO NOT CHANGE!*/
914
914
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -954,17 +954,6 @@ textarea.eds-form-control.eds-textarea {
954
954
  }
955
955
  /* DO NOT CHANGE!*/
956
956
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
957
- .eds-segmented-control {
958
- margin-top: 0.25rem;
959
- display: flex;
960
- background: var(--components-form-segmentedcontrol-standard-background);
961
- border-radius: 0.5rem;
962
- }
963
- .eds-contrast .eds-segmented-control {
964
- background: var(--components-form-segmentedcontrol-contrast-background);
965
- }
966
- /* DO NOT CHANGE!*/
967
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
968
957
  .eds-segmented-choice {
969
958
  display: block;
970
959
  flex: 1 1 0px;
@@ -1047,6 +1036,17 @@ textarea.eds-form-control.eds-textarea {
1047
1036
  }
1048
1037
  /* DO NOT CHANGE!*/
1049
1038
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1039
+ .eds-segmented-control {
1040
+ margin-top: 0.25rem;
1041
+ display: flex;
1042
+ background: var(--components-form-segmentedcontrol-standard-background);
1043
+ border-radius: 0.5rem;
1044
+ }
1045
+ .eds-contrast .eds-segmented-control {
1046
+ background: var(--components-form-segmentedcontrol-contrast-background);
1047
+ }
1048
+ /* DO NOT CHANGE!*/
1049
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1050
1050
  /* DO NOT CHANGE!*/
1051
1051
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1052
1052
  /* DO NOT CHANGE!*/