@entur/form 7.0.20 → 7.0.21

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 +696 -696
  2. package/package.json +5 -5
package/dist/styles.css CHANGED
@@ -1,247 +1,5 @@
1
1
  /* DO NOT CHANGE!*/
2
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
- .eds-form-control-wrapper {
4
- --border-color: #7C7F9F;
5
- --border-color-hover: #aeb7e2;
6
- align-items: center;
7
- background-color: #ffffff;
8
- border-radius: 0.25rem;
9
- border: 0.125rem solid var(--border-color);
10
- box-shadow: 0 0 0 transparent;
11
- color: #181c56;
12
- display: flex;
13
- position: relative;
14
- width: 100%;
15
- min-height: 3rem;
16
- transition: border-color 0.1s ease-in-out;
17
- --textarea-label-background: t.$colors-brand-white;
18
- /*
19
- Some input controls require a darker design while inside a contrast block.
20
- These elements require the `--dark` modifier, even on the wrapper.
21
- */
22
- }
23
- .eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
24
- --border-color: #181c56;
25
- }
26
- .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
27
- --border-color: #181c56;
28
- }
29
- .eds-contrast .eds-form-control-wrapper:hover {
30
- --border-color: #aeb7e2;
31
- }
32
- .eds-form-control-wrapper[focus-within] {
33
- box-shadow: inset 0 0 0 1px var(--border-color);
34
- }
35
- .eds-form-control-wrapper:focus-within {
36
- box-shadow: inset 0 0 0 1px var(--border-color);
37
- }
38
- .eds-contrast .eds-form-control-wrapper[focus-within] {
39
- --border-color: #181c56;
40
- box-shadow: 0 0 0 0.125rem #aeb7e2;
41
- }
42
- .eds-contrast .eds-form-control-wrapper:focus-within {
43
- --border-color: #181c56;
44
- box-shadow: 0 0 0 0.125rem #aeb7e2;
45
- }
46
- .eds-form-control-wrapper ::-moz-placeholder {
47
- color: #656782;
48
- }
49
- .eds-form-control-wrapper ::placeholder {
50
- color: #656782;
51
- }
52
- .eds-form-control-wrapper--disabled {
53
- --border-color: transparent;
54
- background-color: #e9e9e9;
55
- pointer-events: none;
56
- color: #646464;
57
- }
58
- .eds-form-control-wrapper--disabled .eds-input-group__label {
59
- color: #646464;
60
- }
61
- .eds-contrast .eds-form-control-wrapper--disabled {
62
- background: #292b6a;
63
- color: #8285a8;
64
- }
65
- .eds-contrast .eds-form-control-wrapper--disabled .eds-input-group__label {
66
- color: #8285a8;
67
- }
68
- .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
69
- display: none;
70
- }
71
- .eds-form-control-wrapper--readonly {
72
- --border-color: transparent;
73
- --textarea-label-background: t.$colors-greys-grey90;
74
- pointer-events: none;
75
- cursor: default;
76
- background: #f8f8f8;
77
- }
78
- .eds-contrast .eds-form-control-wrapper--readonly {
79
- --textarea-label-background: t.$colors-blues-blue10;
80
- background: #292b6a;
81
- color: #ffffff;
82
- }
83
- .eds-contrast .eds-form-control-wrapper--readonly .eds-input-group__label {
84
- color: #aeb7e2;
85
- }
86
- .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
87
- display: none;
88
- }
89
- .eds-form-control-wrapper--size-medium .eds-form-control,
90
- .eds-form-control-wrapper--size-medium .eds-form-control__append,
91
- .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
92
- font-size: 1rem;
93
- line-height: 1rem;
94
- }
95
- .eds-form-control-wrapper--size-large {
96
- min-height: 4rem;
97
- padding: 0 0.5rem;
98
- }
99
- .eds-form-control-wrapper--size-large::before, .eds-form-control-wrapper--size-large::after {
100
- border-width: 0.25rem;
101
- }
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;
106
- line-height: 2.25rem;
107
- }
108
- .eds-form-control-wrapper--success {
109
- border-color: #1a8e60;
110
- --border-color: #1a8e60;
111
- }
112
- .eds-form-control-wrapper--success:hover {
113
- border-color: #5ac39a;
114
- }
115
- .eds-form-control-wrapper--success[focus-within] {
116
- border-color: #1a8e60;
117
- }
118
- .eds-form-control-wrapper--success:focus-within {
119
- border-color: #1a8e60;
120
- }
121
- .eds-contrast .eds-form-control-wrapper--success {
122
- border-color: #5ac39a;
123
- --border-color: #5ac39a;
124
- }
125
- .eds-contrast .eds-form-control-wrapper--success:hover {
126
- border-color: #1a8e60;
127
- }
128
- .eds-contrast .eds-form-control-wrapper--success[focus-within] {
129
- --border-color: #5ac39a;
130
- border-color: #181c56;
131
- }
132
- .eds-contrast .eds-form-control-wrapper--success:focus-within {
133
- --border-color: #5ac39a;
134
- border-color: #181c56;
135
- }
136
- .eds-form-control-wrapper--error {
137
- border-color: #d31b1b;
138
- --border-color: #d31b1b;
139
- }
140
- .eds-form-control-wrapper--error:hover {
141
- border-color: #ff9494;
142
- }
143
- .eds-form-control-wrapper--error[focus-within] {
144
- border-color: #d31b1b;
145
- }
146
- .eds-form-control-wrapper--error:focus-within {
147
- border-color: #d31b1b;
148
- }
149
- .eds-contrast .eds-form-control-wrapper--error {
150
- border-color: #ff9494;
151
- --border-color: #ff9494;
152
- }
153
- .eds-contrast .eds-form-control-wrapper--error:hover {
154
- border-color: #d31b1b;
155
- }
156
- .eds-contrast .eds-form-control-wrapper--error[focus-within] {
157
- border-color: #181c56;
158
- --border-color: #ff9494;
159
- }
160
- .eds-contrast .eds-form-control-wrapper--error:focus-within {
161
- border-color: #181c56;
162
- --border-color: #ff9494;
163
- }
164
- .eds-contrast .eds-form-control-wrapper--dark {
165
- background-color: #181c56;
166
- color: #ffffff;
167
- }
168
- .eds-contrast .eds-form-control-wrapper--dark ::-moz-placeholder {
169
- color: #aeb7e2;
170
- }
171
- .eds-contrast .eds-form-control-wrapper--dark ::placeholder {
172
- color: #aeb7e2;
173
- }
174
- .eds-contrast .eds-form-control-wrapper--dark:hover {
175
- border-color: #aeb7e2;
176
- }
177
- .eds-contrast .eds-form-control-wrapper--dark[focus-within] {
178
- background-color: #292b6a;
179
- border-color: #aeb7e2;
180
- }
181
- .eds-contrast .eds-form-control-wrapper--dark:focus-within {
182
- background-color: #292b6a;
183
- border-color: #aeb7e2;
184
- }
185
- .eds-contrast .eds-form-control-wrapper--dark * {
186
- background-color: transparent;
187
- color: inherit;
188
- }
189
- .eds-contrast .eds-form-control-wrapper--dark.eds-form-control-wrapper--disabled {
190
- background-color: #292b6a;
191
- color: #8285a8;
192
- }
193
-
194
- .eds-form-control {
195
- -webkit-appearance: none;
196
- -moz-appearance: none;
197
- appearance: none;
198
- background-color: transparent;
199
- border: 0;
200
- color: inherit;
201
- display: block;
202
- font-family: inherit;
203
- line-height: 1rem;
204
- font-size: 1rem;
205
- padding: 20px 1rem 0.25rem;
206
- width: 100%;
207
- }
208
- .eds-form-control::-moz-placeholder {
209
- opacity: 0;
210
- -moz-transition: opacity 0.2s ease-in-out;
211
- transition: opacity 0.2s ease-in-out;
212
- }
213
- .eds-form-control::placeholder {
214
- opacity: 0;
215
- transition: opacity 0.2s ease-in-out;
216
- }
217
- .eds-form-control:focus {
218
- outline: none;
219
- }
220
- .eds-form-control:focus::-moz-placeholder {
221
- opacity: 1;
222
- }
223
- .eds-form-control:focus::placeholder {
224
- opacity: 1;
225
- }
226
- .eds-form-control__prepend, .eds-form-control__append {
227
- position: relative;
228
- margin: 0 1rem;
229
- line-height: inherit;
230
- }
231
- .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
232
- position: static;
233
- }
234
- .eds-form-control__prepend svg, .eds-form-control__append svg {
235
- top: 0.125rem;
236
- }
237
- .eds-form-control__prepend {
238
- margin-right: 0;
239
- }
240
- .eds-form-control__append {
241
- margin-left: 0;
242
- }
243
- /* DO NOT CHANGE!*/
244
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
245
3
  .eds-feedback-text {
246
4
  display: flex;
247
5
  align-items: center;
@@ -294,380 +52,170 @@
294
52
  }
295
53
  /* DO NOT CHANGE!*/
296
54
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
297
- .eds-form-component--radio__container {
55
+ .eds-checkbox__container {
298
56
  display: flex;
299
- justify-content: center;
300
57
  align-items: center;
301
58
  position: relative;
59
+ -webkit-appearance: none;
60
+ -moz-appearance: none;
61
+ appearance: none;
302
62
  cursor: pointer;
303
- height: 2rem;
304
- width: -moz-fit-content;
305
- width: fit-content;
306
63
  -webkit-user-select: none;
307
64
  -moz-user-select: none;
308
65
  user-select: none;
66
+ width: -moz-fit-content;
67
+ width: fit-content;
68
+ margin: 0.5rem 0;
309
69
  }
310
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
311
- border-color: #54568c;
312
- }
313
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
314
- background-color: #54568c;
315
- }
316
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
317
- border-color: #8285a8;
318
- }
319
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
320
- background-color: #8285a8;
70
+ .eds-checkbox__container--reduced-click-area {
71
+ height: -moz-fit-content;
72
+ height: fit-content;
321
73
  }
322
- .eds-form-component--radio__container input {
74
+ .eds-checkbox__container input {
323
75
  position: absolute;
324
76
  opacity: 0;
325
- cursor: pointer;
326
77
  height: 0;
327
78
  width: 0;
328
79
  }
329
- .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
330
- height: 0.625rem;
331
- width: 0.625rem;
332
- }
333
- .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
334
- outline: none;
335
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
336
- outline-offset: 0.125rem;
337
- }
338
- .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
339
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
340
- }
341
- .eds-form-component--radio__container .eds-form-component--radio__radio {
342
- position: relative;
343
- height: 1.25rem;
344
- width: 1.25rem;
345
- margin-right: 1rem;
346
- background-color: #ffffff;
347
- border: 0.125rem solid #181c56;
348
- border-radius: 50%;
349
- display: flex;
350
- align-items: center;
351
- justify-content: center;
352
- }
353
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
80
+ .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
354
81
  background-color: #181c56;
355
- border-color: #aeb7e2;
356
- }
357
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
358
- background: #d1d3d3;
359
- border-color: #d1d3d3;
360
- cursor: not-allowed;
361
- }
362
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
363
- border-color: #d1d3d3;
364
- }
365
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
366
- background: #d1d3d3;
367
- border-color: #d1d3d3;
368
82
  }
369
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
370
- color: #656782;
83
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
84
+ visibility: visible;
371
85
  }
372
- .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
373
- display: block;
374
- width: 0;
375
- height: 0;
376
- border-radius: 50%;
377
- background-color: #181c56;
378
- transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
86
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon path {
87
+ stroke: #ffffff;
88
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
379
89
  }
380
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
381
- background-color: #aeb7e2;
90
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon rect {
91
+ fill: #ffffff;
382
92
  }
383
- .eds-fieldset {
384
- margin: 0;
385
- padding: 0;
386
- border: 0;
93
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
94
+ opacity: 0.5;
387
95
  }
388
- /* DO NOT CHANGE!*/
389
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
390
- .eds-switch {
391
- cursor: pointer;
392
- -webkit-user-select: none;
393
- -moz-user-select: none;
394
- user-select: none;
395
- padding: 0.5rem 0;
396
- width: -moz-fit-content;
397
- width: fit-content;
96
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled path {
97
+ opacity: 0.5;
398
98
  }
399
- .eds-switch input {
400
- opacity: 0;
401
- pointer-events: none;
402
- position: absolute;
99
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled rect {
100
+ opacity: 0.5;
403
101
  }
404
- .eds-switch--right {
405
- display: flex;
406
- flex-direction: row;
407
- align-items: center;
102
+ .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled path {
103
+ opacity: 0.5;
408
104
  }
409
- .eds-switch--bottom {
410
- display: flex;
411
- flex-direction: column;
412
- align-items: center;
105
+ .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled rect {
106
+ opacity: 0.5;
413
107
  }
414
- .eds-switch__circle {
415
- border-radius: 50%;
416
- height: 1.25rem;
417
- width: 1.25rem;
418
- content: "";
419
- display: flex;
420
- align-items: center;
421
- justify-content: center;
422
- transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
423
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
424
- background-color: #ffffff;
425
- top: 0.125rem;
426
- left: 0.125rem;
427
- position: relative;
108
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
109
+ background-color: #aeb7e2;
428
110
  }
429
- .eds-switch__switch--large .eds-switch__circle {
430
- height: 1.75rem;
431
- width: 1.75rem;
111
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon path, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon path {
112
+ stroke: #181c56;
432
113
  }
433
- .eds-contrast .eds-switch__circle {
434
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
114
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon rect, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon rect {
115
+ fill: #181c56;
435
116
  }
436
- .eds-switch__switch {
437
- position: relative;
438
- background-color: #949494;
439
- content: "";
440
- display: block;
441
- transition: background-color 0.1s ease-in-out;
442
- height: 1.5rem;
443
- width: 3rem;
444
- border-radius: 1.5rem;
445
- box-shadow: inset 0px 2px 2px -1px rgba(0, 0, 0, 0.1);
117
+ .eds-checkbox__container:hover input + .eds-checkbox__icon {
118
+ border-color: #292b6a;
119
+ background-color: #d1d4e3;
446
120
  }
447
- .eds-contrast .eds-switch__switch {
448
- background-color: #8285a8;
121
+ .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
122
+ border-color: #b6bee5;
123
+ background-color: rgba(174, 183, 226, 0.2);
449
124
  }
450
- .eds-switch--right .eds-switch__switch {
451
- margin-right: 0.75rem;
125
+ .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
126
+ .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
127
+ border-color: transparent;
128
+ background-color: #54568c;
452
129
  }
453
- .eds-switch__switch svg g,
454
- .eds-switch__switch path {
455
- fill: #646464;
456
- transition: fill ease-in-out 0.1s;
130
+ .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
131
+ .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
132
+ background-color: #b6bee5;
457
133
  }
458
- .eds-contrast .eds-switch__switch svg g,
459
- .eds-contrast .eds-switch__switch path {
460
- fill: #181c56;
134
+ .eds-checkbox__container:active input + .eds-checkbox__icon {
135
+ border-color: #16194d;
461
136
  }
462
- :checked + .eds-switch__switch {
463
- background-color: var(--eds-switch-color);
137
+ .eds-contrast .eds-checkbox__container:active input + .eds-checkbox__icon {
138
+ border-color: #9da5cb;
464
139
  }
465
- :checked + .eds-switch__switch .eds-switch__circle {
466
- left: 1.625rem;
140
+ .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
141
+ .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
142
+ background-color: #16194d;
467
143
  }
468
- :checked + .eds-switch__switch .eds-switch__circle svg g,
469
- :checked + .eds-switch__switch .eds-switch__circle path {
470
- fill: var(--eds-switch-color);
144
+ .eds-contrast .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
145
+ .eds-contrast .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
146
+ background-color: #9da5cb;
471
147
  }
472
- .eds-contrast :checked + .eds-switch__switch {
473
- background-color: var(--eds-switch-contrast-color);
148
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
149
+ .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
150
+ outline: none;
151
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
152
+ outline-offset: 0.125rem;
474
153
  }
475
- :focus + .eds-switch__switch {
154
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
155
+ .eds-checkbox__container :focus-within + .eds-checkbox__icon {
476
156
  outline: none;
477
157
  box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
478
158
  outline-offset: 0.125rem;
479
159
  }
480
- .eds-contrast :focus + .eds-switch__switch {
160
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
161
+ .eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
481
162
  box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
482
163
  }
483
- .eds-switch__switch--large {
484
- width: 3.75rem;
485
- height: 2rem;
486
- border-radius: 3.75rem;
487
- }
488
- :checked + .eds-switch__switch--large .eds-switch__circle {
489
- left: 1.875rem;
164
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
165
+ .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
166
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
490
167
  }
491
- .eds-switch__switch--large svg {
492
- position: relative;
493
- right: 0.05rem;
168
+ .eds-checkbox--disabled {
169
+ pointer-events: none;
494
170
  }
495
- .eds-switch__label--large--right {
496
- font-size: 1rem;
171
+ .eds-checkbox--disabled .eds-checkbox__label {
172
+ opacity: 0.5;
497
173
  }
498
- .eds-switch__label--large--bottom {
499
- font-size: 0.875rem;
174
+ .eds-checkbox--disabled .eds-checkbox__icon {
175
+ opacity: 0.5;
500
176
  }
501
- .eds-switch__label--medium--right {
502
- font-size: 0.875rem;
177
+ .eds-checkbox__icon {
178
+ box-sizing: border-box;
179
+ display: inline-flex;
180
+ justify-content: center;
181
+ align-items: center;
182
+ position: relative;
183
+ margin-right: 1rem;
184
+ height: 1.25rem;
185
+ width: 1.25rem;
186
+ border: 0.125rem solid #181c56;
187
+ border-radius: 0.125rem;
188
+ background-color: transparent;
189
+ color: #ffffff;
190
+ transition: border-color 0.1s ease-in-out, background-color 0.1s ease-in-out;
503
191
  }
504
- .eds-switch__label--medium--bottom {
505
- font-size: 0.75rem;
192
+ .eds-checkbox__icon--reduced-click-area {
193
+ margin-right: 0;
506
194
  }
507
- /* DO NOT CHANGE!*/
508
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
509
- .eds-input-panel[focus-within] .eds-input-panel__container {
510
- border-color: #181c56;
511
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
195
+ .eds-contrast .eds-checkbox__icon {
196
+ border-color: #aeb7e2;
512
197
  }
513
- .eds-input-panel:focus-within .eds-input-panel__container {
514
- border-color: #181c56;
515
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
198
+ .eds-checkbox__icon .eds-checkbox-icon {
199
+ height: 1rem;
200
+ width: 1rem;
201
+ visibility: hidden;
516
202
  }
517
- .eds-contrast .eds-input-panel[focus-within] .eds-input-panel__container {
518
- border-color: #ffffff;
519
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
520
- }
521
- .eds-contrast .eds-input-panel:focus-within .eds-input-panel__container {
522
- border-color: #ffffff;
523
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
524
- }
525
- .eds-input-panel > input {
526
- position: absolute;
527
- opacity: 0;
528
- cursor: pointer;
529
- height: 0;
530
- width: 0;
531
- }
532
- .eds-input-panel > input:checked + .eds-input-panel__container {
533
- border-color: #181c56;
534
- background: #f5f5f8;
535
- }
536
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container {
537
- border-color: #aeb7e2;
538
- background: #393d79;
539
- }
540
- .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
541
- width: 0.75rem;
542
- height: 0.75rem;
543
- }
544
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
545
- background-color: #ffffff;
546
- }
547
- .eds-input-panel > input:checked + .eds-input-panel__container:hover {
548
- background-color: #ebebf1;
549
- border: 0.125rem solid #babbcf;
550
- /* The following styling is needed to sync the inner checkbox/radiobutton's
551
- hover state styling with the inputPanel container */
552
- }
553
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover {
554
- background: #54568c;
555
- }
556
- .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
557
- background-color: #d1d4e3;
558
- border-color: #292b6a;
559
- }
560
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
561
- background-color: rgba(174, 183, 226, 0.2);
562
- border-color: #b6bee5;
563
- }
564
- .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio .eds-form-component--radio__circle {
565
- background-color: #292b6a;
566
- }
567
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio .eds-form-component--radio__circle {
568
- background-color: #ffffff;
569
- }
570
- .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
571
- background-color: #292b6a;
572
- border-color: transparent;
573
- }
574
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
575
- background-color: #b6bee5;
576
- }
577
- .eds-input-panel__container {
578
- background: #ffffff;
579
- border: 0.125rem solid #babbcf;
580
- border-radius: 0.25rem;
581
- display: flex;
582
- flex-direction: column;
583
- justify-content: flex-start;
584
- min-width: 20rem;
585
- position: relative;
586
- padding: 1rem;
587
- -webkit-user-select: none;
588
- -moz-user-select: none;
589
- user-select: none;
590
- width: -moz-fit-content;
591
- width: fit-content;
592
- transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
593
- }
594
- .eds-contrast .eds-input-panel__container {
595
- background-color: transparent;
596
- border-color: #aeb7e2;
597
- }
598
- .eds-input-panel__container:hover {
599
- background-color: #ebebf1;
600
- /* The following styling is needed to sync the inner checkbox/radiobutton's
601
- hover state styling with the inputPanel container */
602
- }
603
- .eds-contrast .eds-input-panel__container:hover {
604
- background-color: #54568c;
605
- }
606
- .eds-input-panel__container:hover .eds-checkbox__icon,
607
- .eds-input-panel__container:hover .eds-form-component--radio__radio {
608
- border-color: #292b6a;
609
- background-color: #d1d4e3;
610
- }
611
- .eds-contrast .eds-input-panel__container:hover .eds-checkbox__icon,
612
- .eds-contrast .eds-input-panel__container:hover .eds-form-component--radio__radio {
613
- border-color: #b6bee5;
614
- background-color: rgba(174, 183, 226, 0.2);
615
- }
616
- input:disabled + .eds-input-panel__container {
617
- background: #f3f3f3;
618
- border-color: #f3f3f3;
619
- color: #656782;
620
- pointer-events: none;
621
- }
622
- .eds-contrast input:disabled + .eds-input-panel__container {
623
- background: #181c56;
624
- border-style: dashed;
625
- border-color: #54568c;
626
- color: #babbcf;
627
- }
628
- .eds-input-panel__container .eds-checkbox__icon,
629
- .eds-input-panel__container .eds-checkbox__icon .eds-checkbox__icon,
630
- .eds-input-panel__container .eds-form-component--radio__radio {
631
- width: 1.5rem;
632
- height: 1.5rem;
633
- margin-right: 0;
634
- }
635
- .eds-input-panel--medium .eds-input-panel__title {
636
- font-size: 1rem;
637
- font-weight: 500;
638
- }
639
- .eds-input-panel--medium.eds-input-panel__container {
640
- padding-bottom: 1rem;
641
- min-height: 3.75rem;
642
- }
643
- .eds-input-panel--large.eds-input-panel__container {
644
- min-height: 6rem;
645
- }
646
- .eds-input-panel--large .eds-input-panel__title-wrapper {
647
- height: 2rem;
648
- }
649
- .eds-input-panel--large .eds-input-panel__title {
650
- font-size: 1.25rem;
651
- font-weight: 500;
652
- line-height: 1.875rem;
653
- }
654
- .eds-input-panel__title-wrapper {
655
- display: flex;
656
- justify-content: space-between;
657
- align-items: center;
203
+ .eds-checkbox__icon .eds-checkbox-icon path {
204
+ transform-origin: 50% 50%;
205
+ stroke-dasharray: 48;
206
+ stroke-dashoffset: 48;
207
+ stroke-width: 0.375rem;
658
208
  }
659
- .eds-input-panel__secondary-label-and-icon-wrapper {
660
- display: flex;
661
- justify-content: center;
662
- align-items: center;
663
- gap: 0.75rem;
209
+
210
+ @keyframes stroke {
211
+ 100% {
212
+ stroke-dashoffset: 0;
213
+ }
664
214
  }
665
- .eds-input-panel__secondary-label-and-icon-wrapper .eds-checkbox__container {
215
+ .eds-fieldset {
666
216
  margin: 0;
667
- }
668
- .eds-input-panel__additional-content {
669
- margin-top: 0.25rem;
670
- word-wrap: break-word;
217
+ padding: 0;
218
+ border: 0;
671
219
  }
672
220
  /* DO NOT CHANGE!*/
673
221
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -802,165 +350,617 @@ input:disabled + .eds-input-panel__container {
802
350
  }
803
351
  /* DO NOT CHANGE!*/
804
352
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
805
- .eds-checkbox__container {
806
- display: flex;
353
+ .eds-form-control-wrapper {
354
+ --border-color: #7C7F9F;
355
+ --border-color-hover: #aeb7e2;
807
356
  align-items: center;
357
+ background-color: #ffffff;
358
+ border-radius: 0.25rem;
359
+ border: 0.125rem solid var(--border-color);
360
+ box-shadow: 0 0 0 transparent;
361
+ color: #181c56;
362
+ display: flex;
808
363
  position: relative;
809
- -webkit-appearance: none;
810
- -moz-appearance: none;
811
- appearance: none;
812
- cursor: pointer;
813
- -webkit-user-select: none;
814
- -moz-user-select: none;
815
- user-select: none;
816
- width: -moz-fit-content;
817
- width: fit-content;
818
- margin: 0.5rem 0;
364
+ width: 100%;
365
+ min-height: 3rem;
366
+ transition: border-color 0.1s ease-in-out;
367
+ --textarea-label-background: t.$colors-brand-white;
368
+ /*
369
+ Some input controls require a darker design while inside a contrast block.
370
+ These elements require the `--dark` modifier, even on the wrapper.
371
+ */
372
+ }
373
+ .eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
374
+ --border-color: #181c56;
375
+ }
376
+ .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
377
+ --border-color: #181c56;
378
+ }
379
+ .eds-contrast .eds-form-control-wrapper:hover {
380
+ --border-color: #aeb7e2;
381
+ }
382
+ .eds-form-control-wrapper[focus-within] {
383
+ box-shadow: inset 0 0 0 1px var(--border-color);
384
+ }
385
+ .eds-form-control-wrapper:focus-within {
386
+ box-shadow: inset 0 0 0 1px var(--border-color);
387
+ }
388
+ .eds-contrast .eds-form-control-wrapper[focus-within] {
389
+ --border-color: #181c56;
390
+ box-shadow: 0 0 0 0.125rem #aeb7e2;
391
+ }
392
+ .eds-contrast .eds-form-control-wrapper:focus-within {
393
+ --border-color: #181c56;
394
+ box-shadow: 0 0 0 0.125rem #aeb7e2;
395
+ }
396
+ .eds-form-control-wrapper ::-moz-placeholder {
397
+ color: #656782;
398
+ }
399
+ .eds-form-control-wrapper ::placeholder {
400
+ color: #656782;
401
+ }
402
+ .eds-form-control-wrapper--disabled {
403
+ --border-color: transparent;
404
+ background-color: #e9e9e9;
405
+ pointer-events: none;
406
+ color: #646464;
407
+ }
408
+ .eds-form-control-wrapper--disabled .eds-input-group__label {
409
+ color: #646464;
410
+ }
411
+ .eds-contrast .eds-form-control-wrapper--disabled {
412
+ background: #292b6a;
413
+ color: #8285a8;
414
+ }
415
+ .eds-contrast .eds-form-control-wrapper--disabled .eds-input-group__label {
416
+ color: #8285a8;
417
+ }
418
+ .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
419
+ display: none;
420
+ }
421
+ .eds-form-control-wrapper--readonly {
422
+ --border-color: transparent;
423
+ --textarea-label-background: t.$colors-greys-grey90;
424
+ pointer-events: none;
425
+ cursor: default;
426
+ background: #f8f8f8;
427
+ }
428
+ .eds-contrast .eds-form-control-wrapper--readonly {
429
+ --textarea-label-background: t.$colors-blues-blue10;
430
+ background: #292b6a;
431
+ color: #ffffff;
432
+ }
433
+ .eds-contrast .eds-form-control-wrapper--readonly .eds-input-group__label {
434
+ color: #aeb7e2;
435
+ }
436
+ .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
437
+ display: none;
438
+ }
439
+ .eds-form-control-wrapper--size-medium .eds-form-control,
440
+ .eds-form-control-wrapper--size-medium .eds-form-control__append,
441
+ .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
442
+ font-size: 1rem;
443
+ line-height: 1rem;
444
+ }
445
+ .eds-form-control-wrapper--size-large {
446
+ min-height: 4rem;
447
+ padding: 0 0.5rem;
448
+ }
449
+ .eds-form-control-wrapper--size-large::before, .eds-form-control-wrapper--size-large::after {
450
+ border-width: 0.25rem;
451
+ }
452
+ .eds-form-control-wrapper--size-large .eds-form-control,
453
+ .eds-form-control-wrapper--size-large .eds-form-control__append,
454
+ .eds-form-control-wrapper--size-large .eds-form-control__prepend {
455
+ font-size: 1.5rem;
456
+ line-height: 2.25rem;
457
+ }
458
+ .eds-form-control-wrapper--success {
459
+ border-color: #1a8e60;
460
+ --border-color: #1a8e60;
461
+ }
462
+ .eds-form-control-wrapper--success:hover {
463
+ border-color: #5ac39a;
464
+ }
465
+ .eds-form-control-wrapper--success[focus-within] {
466
+ border-color: #1a8e60;
467
+ }
468
+ .eds-form-control-wrapper--success:focus-within {
469
+ border-color: #1a8e60;
470
+ }
471
+ .eds-contrast .eds-form-control-wrapper--success {
472
+ border-color: #5ac39a;
473
+ --border-color: #5ac39a;
474
+ }
475
+ .eds-contrast .eds-form-control-wrapper--success:hover {
476
+ border-color: #1a8e60;
477
+ }
478
+ .eds-contrast .eds-form-control-wrapper--success[focus-within] {
479
+ --border-color: #5ac39a;
480
+ border-color: #181c56;
481
+ }
482
+ .eds-contrast .eds-form-control-wrapper--success:focus-within {
483
+ --border-color: #5ac39a;
484
+ border-color: #181c56;
485
+ }
486
+ .eds-form-control-wrapper--error {
487
+ border-color: #d31b1b;
488
+ --border-color: #d31b1b;
489
+ }
490
+ .eds-form-control-wrapper--error:hover {
491
+ border-color: #ff9494;
492
+ }
493
+ .eds-form-control-wrapper--error[focus-within] {
494
+ border-color: #d31b1b;
495
+ }
496
+ .eds-form-control-wrapper--error:focus-within {
497
+ border-color: #d31b1b;
498
+ }
499
+ .eds-contrast .eds-form-control-wrapper--error {
500
+ border-color: #ff9494;
501
+ --border-color: #ff9494;
502
+ }
503
+ .eds-contrast .eds-form-control-wrapper--error:hover {
504
+ border-color: #d31b1b;
505
+ }
506
+ .eds-contrast .eds-form-control-wrapper--error[focus-within] {
507
+ border-color: #181c56;
508
+ --border-color: #ff9494;
509
+ }
510
+ .eds-contrast .eds-form-control-wrapper--error:focus-within {
511
+ border-color: #181c56;
512
+ --border-color: #ff9494;
513
+ }
514
+ .eds-contrast .eds-form-control-wrapper--dark {
515
+ background-color: #181c56;
516
+ color: #ffffff;
517
+ }
518
+ .eds-contrast .eds-form-control-wrapper--dark ::-moz-placeholder {
519
+ color: #aeb7e2;
520
+ }
521
+ .eds-contrast .eds-form-control-wrapper--dark ::placeholder {
522
+ color: #aeb7e2;
523
+ }
524
+ .eds-contrast .eds-form-control-wrapper--dark:hover {
525
+ border-color: #aeb7e2;
526
+ }
527
+ .eds-contrast .eds-form-control-wrapper--dark[focus-within] {
528
+ background-color: #292b6a;
529
+ border-color: #aeb7e2;
530
+ }
531
+ .eds-contrast .eds-form-control-wrapper--dark:focus-within {
532
+ background-color: #292b6a;
533
+ border-color: #aeb7e2;
534
+ }
535
+ .eds-contrast .eds-form-control-wrapper--dark * {
536
+ background-color: transparent;
537
+ color: inherit;
538
+ }
539
+ .eds-contrast .eds-form-control-wrapper--dark.eds-form-control-wrapper--disabled {
540
+ background-color: #292b6a;
541
+ color: #8285a8;
542
+ }
543
+
544
+ .eds-form-control {
545
+ -webkit-appearance: none;
546
+ -moz-appearance: none;
547
+ appearance: none;
548
+ background-color: transparent;
549
+ border: 0;
550
+ color: inherit;
551
+ display: block;
552
+ font-family: inherit;
553
+ line-height: 1rem;
554
+ font-size: 1rem;
555
+ padding: 20px 1rem 0.25rem;
556
+ width: 100%;
557
+ }
558
+ .eds-form-control::-moz-placeholder {
559
+ opacity: 0;
560
+ -moz-transition: opacity 0.2s ease-in-out;
561
+ transition: opacity 0.2s ease-in-out;
562
+ }
563
+ .eds-form-control::placeholder {
564
+ opacity: 0;
565
+ transition: opacity 0.2s ease-in-out;
566
+ }
567
+ .eds-form-control:focus {
568
+ outline: none;
569
+ }
570
+ .eds-form-control:focus::-moz-placeholder {
571
+ opacity: 1;
572
+ }
573
+ .eds-form-control:focus::placeholder {
574
+ opacity: 1;
575
+ }
576
+ .eds-form-control__prepend, .eds-form-control__append {
577
+ position: relative;
578
+ margin: 0 1rem;
579
+ line-height: inherit;
580
+ }
581
+ .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
582
+ position: static;
583
+ }
584
+ .eds-form-control__prepend svg, .eds-form-control__append svg {
585
+ top: 0.125rem;
586
+ }
587
+ .eds-form-control__prepend {
588
+ margin-right: 0;
589
+ }
590
+ .eds-form-control__append {
591
+ margin-left: 0;
592
+ }
593
+ /* DO NOT CHANGE!*/
594
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
595
+ .eds-form-component--radio__container {
596
+ display: flex;
597
+ justify-content: center;
598
+ align-items: center;
599
+ position: relative;
600
+ cursor: pointer;
601
+ height: 2rem;
602
+ width: -moz-fit-content;
603
+ width: fit-content;
604
+ -webkit-user-select: none;
605
+ -moz-user-select: none;
606
+ user-select: none;
607
+ }
608
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
609
+ border-color: #54568c;
610
+ }
611
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
612
+ background-color: #54568c;
613
+ }
614
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
615
+ border-color: #8285a8;
616
+ }
617
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
618
+ background-color: #8285a8;
619
+ }
620
+ .eds-form-component--radio__container input {
621
+ position: absolute;
622
+ opacity: 0;
623
+ cursor: pointer;
624
+ height: 0;
625
+ width: 0;
626
+ }
627
+ .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
628
+ height: 0.625rem;
629
+ width: 0.625rem;
630
+ }
631
+ .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
632
+ outline: none;
633
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
634
+ outline-offset: 0.125rem;
635
+ }
636
+ .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
637
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
638
+ }
639
+ .eds-form-component--radio__container .eds-form-component--radio__radio {
640
+ position: relative;
641
+ height: 1.25rem;
642
+ width: 1.25rem;
643
+ margin-right: 1rem;
644
+ background-color: #ffffff;
645
+ border: 0.125rem solid #181c56;
646
+ border-radius: 50%;
647
+ display: flex;
648
+ align-items: center;
649
+ justify-content: center;
650
+ }
651
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
652
+ background-color: #181c56;
653
+ border-color: #aeb7e2;
654
+ }
655
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
656
+ background: #d1d3d3;
657
+ border-color: #d1d3d3;
658
+ cursor: not-allowed;
659
+ }
660
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
661
+ border-color: #d1d3d3;
662
+ }
663
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
664
+ background: #d1d3d3;
665
+ border-color: #d1d3d3;
666
+ }
667
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
668
+ color: #656782;
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: #181c56;
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: #aeb7e2;
680
+ }
681
+ /* DO NOT CHANGE!*/
682
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
683
+ .eds-switch {
684
+ cursor: pointer;
685
+ -webkit-user-select: none;
686
+ -moz-user-select: none;
687
+ user-select: none;
688
+ padding: 0.5rem 0;
689
+ width: -moz-fit-content;
690
+ width: fit-content;
691
+ }
692
+ .eds-switch input {
693
+ opacity: 0;
694
+ pointer-events: none;
695
+ position: absolute;
696
+ }
697
+ .eds-switch--right {
698
+ display: flex;
699
+ flex-direction: row;
700
+ align-items: center;
701
+ }
702
+ .eds-switch--bottom {
703
+ display: flex;
704
+ flex-direction: column;
705
+ align-items: center;
706
+ }
707
+ .eds-switch__circle {
708
+ border-radius: 50%;
709
+ height: 1.25rem;
710
+ width: 1.25rem;
711
+ content: "";
712
+ display: flex;
713
+ align-items: center;
714
+ justify-content: center;
715
+ transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
716
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
717
+ background-color: #ffffff;
718
+ top: 0.125rem;
719
+ left: 0.125rem;
720
+ position: relative;
721
+ }
722
+ .eds-switch__switch--large .eds-switch__circle {
723
+ height: 1.75rem;
724
+ width: 1.75rem;
725
+ }
726
+ .eds-contrast .eds-switch__circle {
727
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
728
+ }
729
+ .eds-switch__switch {
730
+ position: relative;
731
+ background-color: #949494;
732
+ content: "";
733
+ display: block;
734
+ transition: background-color 0.1s ease-in-out;
735
+ height: 1.5rem;
736
+ width: 3rem;
737
+ border-radius: 1.5rem;
738
+ box-shadow: inset 0px 2px 2px -1px rgba(0, 0, 0, 0.1);
739
+ }
740
+ .eds-contrast .eds-switch__switch {
741
+ background-color: #8285a8;
742
+ }
743
+ .eds-switch--right .eds-switch__switch {
744
+ margin-right: 0.75rem;
745
+ }
746
+ .eds-switch__switch svg g,
747
+ .eds-switch__switch path {
748
+ fill: #646464;
749
+ transition: fill ease-in-out 0.1s;
750
+ }
751
+ .eds-contrast .eds-switch__switch svg g,
752
+ .eds-contrast .eds-switch__switch path {
753
+ fill: #181c56;
754
+ }
755
+ :checked + .eds-switch__switch {
756
+ background-color: var(--eds-switch-color);
757
+ }
758
+ :checked + .eds-switch__switch .eds-switch__circle {
759
+ left: 1.625rem;
760
+ }
761
+ :checked + .eds-switch__switch .eds-switch__circle svg g,
762
+ :checked + .eds-switch__switch .eds-switch__circle path {
763
+ fill: var(--eds-switch-color);
764
+ }
765
+ .eds-contrast :checked + .eds-switch__switch {
766
+ background-color: var(--eds-switch-contrast-color);
767
+ }
768
+ :focus + .eds-switch__switch {
769
+ outline: none;
770
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
771
+ outline-offset: 0.125rem;
772
+ }
773
+ .eds-contrast :focus + .eds-switch__switch {
774
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
775
+ }
776
+ .eds-switch__switch--large {
777
+ width: 3.75rem;
778
+ height: 2rem;
779
+ border-radius: 3.75rem;
780
+ }
781
+ :checked + .eds-switch__switch--large .eds-switch__circle {
782
+ left: 1.875rem;
783
+ }
784
+ .eds-switch__switch--large svg {
785
+ position: relative;
786
+ right: 0.05rem;
787
+ }
788
+ .eds-switch__label--large--right {
789
+ font-size: 1rem;
790
+ }
791
+ .eds-switch__label--large--bottom {
792
+ font-size: 0.875rem;
793
+ }
794
+ .eds-switch__label--medium--right {
795
+ font-size: 0.875rem;
796
+ }
797
+ .eds-switch__label--medium--bottom {
798
+ font-size: 0.75rem;
799
+ }
800
+ /* DO NOT CHANGE!*/
801
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
802
+ .eds-input-panel[focus-within] .eds-input-panel__container {
803
+ border-color: #181c56;
804
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
819
805
  }
820
- .eds-checkbox__container--reduced-click-area {
821
- height: -moz-fit-content;
822
- height: fit-content;
806
+ .eds-input-panel:focus-within .eds-input-panel__container {
807
+ border-color: #181c56;
808
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
823
809
  }
824
- .eds-checkbox__container input {
810
+ .eds-contrast .eds-input-panel[focus-within] .eds-input-panel__container {
811
+ border-color: #ffffff;
812
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
813
+ }
814
+ .eds-contrast .eds-input-panel:focus-within .eds-input-panel__container {
815
+ border-color: #ffffff;
816
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
817
+ }
818
+ .eds-input-panel > input {
825
819
  position: absolute;
826
820
  opacity: 0;
821
+ cursor: pointer;
827
822
  height: 0;
828
823
  width: 0;
829
824
  }
830
- .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
831
- background-color: #181c56;
825
+ .eds-input-panel > input:checked + .eds-input-panel__container {
826
+ border-color: #181c56;
827
+ background: #f5f5f8;
832
828
  }
833
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
834
- visibility: visible;
829
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container {
830
+ border-color: #aeb7e2;
831
+ background: #393d79;
835
832
  }
836
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon path {
837
- stroke: #ffffff;
838
- animation: stroke ease-in-out 0.2s 0.1s forwards;
833
+ .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
834
+ width: 0.75rem;
835
+ height: 0.75rem;
839
836
  }
840
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon rect {
841
- fill: #ffffff;
837
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
838
+ background-color: #ffffff;
842
839
  }
843
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
844
- opacity: 0.5;
840
+ .eds-input-panel > input:checked + .eds-input-panel__container:hover {
841
+ background-color: #ebebf1;
842
+ border: 0.125rem solid #babbcf;
843
+ /* The following styling is needed to sync the inner checkbox/radiobutton's
844
+ hover state styling with the inputPanel container */
845
845
  }
846
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled path {
847
- opacity: 0.5;
846
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover {
847
+ background: #54568c;
848
848
  }
849
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled rect {
850
- opacity: 0.5;
849
+ .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
850
+ background-color: #d1d4e3;
851
+ border-color: #292b6a;
851
852
  }
852
- .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled path {
853
- opacity: 0.5;
853
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
854
+ background-color: rgba(174, 183, 226, 0.2);
855
+ border-color: #b6bee5;
854
856
  }
855
- .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled rect {
856
- opacity: 0.5;
857
+ .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio .eds-form-component--radio__circle {
858
+ background-color: #292b6a;
857
859
  }
858
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
859
- background-color: #aeb7e2;
860
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio .eds-form-component--radio__circle {
861
+ background-color: #ffffff;
860
862
  }
861
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon path, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon path {
862
- stroke: #181c56;
863
+ .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
864
+ background-color: #292b6a;
865
+ border-color: transparent;
863
866
  }
864
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon rect, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon rect {
865
- fill: #181c56;
867
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
868
+ background-color: #b6bee5;
866
869
  }
867
- .eds-checkbox__container:hover input + .eds-checkbox__icon {
868
- border-color: #292b6a;
869
- background-color: #d1d4e3;
870
+ .eds-input-panel__container {
871
+ background: #ffffff;
872
+ border: 0.125rem solid #babbcf;
873
+ border-radius: 0.25rem;
874
+ display: flex;
875
+ flex-direction: column;
876
+ justify-content: flex-start;
877
+ min-width: 20rem;
878
+ position: relative;
879
+ padding: 1rem;
880
+ -webkit-user-select: none;
881
+ -moz-user-select: none;
882
+ user-select: none;
883
+ width: -moz-fit-content;
884
+ width: fit-content;
885
+ transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
870
886
  }
871
- .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
872
- border-color: #b6bee5;
873
- background-color: rgba(174, 183, 226, 0.2);
887
+ .eds-contrast .eds-input-panel__container {
888
+ background-color: transparent;
889
+ border-color: #aeb7e2;
874
890
  }
875
- .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
876
- .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
877
- border-color: transparent;
878
- background-color: #54568c;
891
+ .eds-input-panel__container:hover {
892
+ background-color: #ebebf1;
893
+ /* The following styling is needed to sync the inner checkbox/radiobutton's
894
+ hover state styling with the inputPanel container */
879
895
  }
880
- .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
881
- .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
882
- background-color: #b6bee5;
896
+ .eds-contrast .eds-input-panel__container:hover {
897
+ background-color: #54568c;
883
898
  }
884
- .eds-checkbox__container:active input + .eds-checkbox__icon {
885
- border-color: #16194d;
899
+ .eds-input-panel__container:hover .eds-checkbox__icon,
900
+ .eds-input-panel__container:hover .eds-form-component--radio__radio {
901
+ border-color: #292b6a;
902
+ background-color: #d1d4e3;
886
903
  }
887
- .eds-contrast .eds-checkbox__container:active input + .eds-checkbox__icon {
888
- border-color: #9da5cb;
904
+ .eds-contrast .eds-input-panel__container:hover .eds-checkbox__icon,
905
+ .eds-contrast .eds-input-panel__container:hover .eds-form-component--radio__radio {
906
+ border-color: #b6bee5;
907
+ background-color: rgba(174, 183, 226, 0.2);
889
908
  }
890
- .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
891
- .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
892
- background-color: #16194d;
909
+ input:disabled + .eds-input-panel__container {
910
+ background: #f3f3f3;
911
+ border-color: #f3f3f3;
912
+ color: #656782;
913
+ pointer-events: none;
893
914
  }
894
- .eds-contrast .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
895
- .eds-contrast .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
896
- background-color: #9da5cb;
915
+ .eds-contrast input:disabled + .eds-input-panel__container {
916
+ background: #181c56;
917
+ border-style: dashed;
918
+ border-color: #54568c;
919
+ color: #babbcf;
897
920
  }
898
- .eds-checkbox__container:focus + .eds-checkbox__icon,
899
- .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
900
- outline: none;
901
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
902
- outline-offset: 0.125rem;
921
+ .eds-input-panel__container .eds-checkbox__icon,
922
+ .eds-input-panel__container .eds-checkbox__icon .eds-checkbox__icon,
923
+ .eds-input-panel__container .eds-form-component--radio__radio {
924
+ width: 1.5rem;
925
+ height: 1.5rem;
926
+ margin-right: 0;
903
927
  }
904
- .eds-checkbox__container:focus + .eds-checkbox__icon,
905
- .eds-checkbox__container :focus-within + .eds-checkbox__icon {
906
- outline: none;
907
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
908
- outline-offset: 0.125rem;
928
+ .eds-input-panel--medium .eds-input-panel__title {
929
+ font-size: 1rem;
930
+ font-weight: 500;
909
931
  }
910
- .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
911
- .eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
912
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
932
+ .eds-input-panel--medium.eds-input-panel__container {
933
+ padding-bottom: 1rem;
934
+ min-height: 3.75rem;
913
935
  }
914
- .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
915
- .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
916
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
936
+ .eds-input-panel--large.eds-input-panel__container {
937
+ min-height: 6rem;
917
938
  }
918
- .eds-checkbox--disabled {
919
- pointer-events: none;
939
+ .eds-input-panel--large .eds-input-panel__title-wrapper {
940
+ height: 2rem;
920
941
  }
921
- .eds-checkbox--disabled .eds-checkbox__label {
922
- opacity: 0.5;
942
+ .eds-input-panel--large .eds-input-panel__title {
943
+ font-size: 1.25rem;
944
+ font-weight: 500;
945
+ line-height: 1.875rem;
923
946
  }
924
- .eds-checkbox--disabled .eds-checkbox__icon {
925
- opacity: 0.5;
947
+ .eds-input-panel__title-wrapper {
948
+ display: flex;
949
+ justify-content: space-between;
950
+ align-items: center;
926
951
  }
927
- .eds-checkbox__icon {
928
- box-sizing: border-box;
929
- display: inline-flex;
952
+ .eds-input-panel__secondary-label-and-icon-wrapper {
953
+ display: flex;
930
954
  justify-content: center;
931
955
  align-items: center;
932
- position: relative;
933
- margin-right: 1rem;
934
- height: 1.25rem;
935
- width: 1.25rem;
936
- border: 0.125rem solid #181c56;
937
- border-radius: 0.125rem;
938
- background-color: transparent;
939
- color: #ffffff;
940
- transition: border-color 0.1s ease-in-out, background-color 0.1s ease-in-out;
941
- }
942
- .eds-checkbox__icon--reduced-click-area {
943
- margin-right: 0;
944
- }
945
- .eds-contrast .eds-checkbox__icon {
946
- border-color: #aeb7e2;
947
- }
948
- .eds-checkbox__icon .eds-checkbox-icon {
949
- height: 1rem;
950
- width: 1rem;
951
- visibility: hidden;
956
+ gap: 0.75rem;
952
957
  }
953
- .eds-checkbox__icon .eds-checkbox-icon path {
954
- transform-origin: 50% 50%;
955
- stroke-dasharray: 48;
956
- stroke-dashoffset: 48;
957
- stroke-width: 0.375rem;
958
+ .eds-input-panel__secondary-label-and-icon-wrapper .eds-checkbox__container {
959
+ margin: 0;
958
960
  }
959
-
960
- @keyframes stroke {
961
- 100% {
962
- stroke-dashoffset: 0;
963
- }
961
+ .eds-input-panel__additional-content {
962
+ margin-top: 0.25rem;
963
+ word-wrap: break-word;
964
964
  }
965
965
  /* DO NOT CHANGE!*/
966
966
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -1008,6 +1008,20 @@ textarea.eds-form-control.eds-textarea {
1008
1008
  }
1009
1009
  /* DO NOT CHANGE!*/
1010
1010
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1011
+ .eds-segmented-control {
1012
+ margin-top: 0.25rem;
1013
+ display: flex;
1014
+ background: #d1d4e3;
1015
+ border-radius: 0.5rem;
1016
+ }
1017
+ .eds-contrast .eds-segmented-control {
1018
+ background: #393d79;
1019
+ }
1020
+ :root {
1021
+ --eds-form: 1;
1022
+ }
1023
+ /* DO NOT CHANGE!*/
1024
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1011
1025
  .eds-segmented-choice {
1012
1026
  display: block;
1013
1027
  flex: 1 1 0px;
@@ -1077,17 +1091,3 @@ textarea.eds-form-control.eds-textarea {
1077
1091
  .eds-contrast .eds-segmented-choice input:focus:checked + .eds-base-segmented {
1078
1092
  box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121), inset 0 0 0 0.0625rem #ffffff, inset 0 0 0 calc(0.125rem + 0.0625rem) #181c56;
1079
1093
  }
1080
- /* DO NOT CHANGE!*/
1081
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1082
- .eds-segmented-control {
1083
- margin-top: 0.25rem;
1084
- display: flex;
1085
- background: #d1d4e3;
1086
- border-radius: 0.5rem;
1087
- }
1088
- .eds-contrast .eds-segmented-control {
1089
- background: #393d79;
1090
- }
1091
- :root {
1092
- --eds-form: 1;
1093
- }