@entur/form 8.3.2-beta.10 → 8.3.2-beta.12

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