@entur/form 5.4.14 → 5.4.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/styles.css CHANGED
@@ -62,6 +62,95 @@
62
62
  color: #ffe082;
63
63
  }/* DO NOT CHANGE!*/
64
64
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
65
+ .eds-form-component--radio__container {
66
+ display: flex;
67
+ justify-content: center;
68
+ align-items: center;
69
+ position: relative;
70
+ cursor: pointer;
71
+ height: 2rem;
72
+ width: -webkit-fit-content;
73
+ width: -moz-fit-content;
74
+ width: fit-content;
75
+ -webkit-user-select: none;
76
+ -moz-user-select: none;
77
+ -ms-user-select: none;
78
+ user-select: none;
79
+ }
80
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
81
+ border-color: #54568c;
82
+ }
83
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
84
+ background-color: #54568c;
85
+ }
86
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
87
+ border-color: #8285a8;
88
+ }
89
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
90
+ background-color: #8285a8;
91
+ }
92
+ .eds-form-component--radio__container input {
93
+ position: absolute;
94
+ opacity: 0;
95
+ cursor: pointer;
96
+ height: 0;
97
+ width: 0;
98
+ }
99
+ .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
100
+ height: 0.625rem;
101
+ width: 0.625rem;
102
+ }
103
+ .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
104
+ outline: none;
105
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
106
+ outline-offset: 0.125rem;
107
+ }
108
+ .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
109
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
110
+ }
111
+ .eds-form-component--radio__container .eds-form-component--radio__radio {
112
+ position: relative;
113
+ height: 1.25rem;
114
+ width: 1.25rem;
115
+ margin-right: 1rem;
116
+ background-color: #ffffff;
117
+ border: 0.125rem solid #181c56;
118
+ border-radius: 50%;
119
+ display: flex;
120
+ align-items: center;
121
+ justify-content: center;
122
+ }
123
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
124
+ background-color: #181c56;
125
+ border-color: #aeb7e2;
126
+ }
127
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
128
+ background: #d1d3d3;
129
+ border-color: #d1d3d3;
130
+ cursor: not-allowed;
131
+ }
132
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
133
+ border-color: #d1d3d3;
134
+ }
135
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
136
+ background: #d1d3d3;
137
+ border-color: #d1d3d3;
138
+ }
139
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
140
+ color: #656782;
141
+ }
142
+ .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
143
+ display: block;
144
+ width: 0;
145
+ height: 0;
146
+ border-radius: 50%;
147
+ background-color: #181c56;
148
+ transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
149
+ }
150
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
151
+ background-color: #aeb7e2;
152
+ }/* DO NOT CHANGE!*/
153
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
65
154
  .eds-checkbox__container {
66
155
  display: flex;
67
156
  align-items: center;
@@ -200,260 +289,384 @@
200
289
  }
201
290
  }/* DO NOT CHANGE!*/
202
291
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
203
- .eds-form-control-wrapper {
204
- --border-color: #181c56;
205
- --border-color-hover: #aeb7e2;
292
+ .eds-switch {
293
+ cursor: pointer;
294
+ -webkit-user-select: none;
295
+ -moz-user-select: none;
296
+ -ms-user-select: none;
297
+ user-select: none;
298
+ padding: 0.5rem 0;
299
+ width: -webkit-fit-content;
300
+ width: -moz-fit-content;
301
+ width: fit-content;
302
+ }
303
+ .eds-switch input {
304
+ opacity: 0;
305
+ pointer-events: none;
306
+ position: absolute;
307
+ }
308
+ .eds-switch--right {
309
+ display: flex;
310
+ flex-direction: row;
206
311
  align-items: center;
207
- background-color: #ffffff;
208
- border-radius: 0.25rem;
209
- border: 0.125rem solid #d1d3d3;
210
- box-shadow: 0 0 0 transparent;
211
- color: #181c56;
312
+ }
313
+ .eds-switch--bottom {
212
314
  display: flex;
213
- position: relative;
214
- width: 100%;
215
- min-height: 3rem;
216
- transition: border-color 0.1s ease-in-out;
217
- --textarea-label-background: $colors-brand-white;
218
- /*
219
- Some input controls require a darker design while inside a contrast block.
220
- These elements require the `--dark` modifier, even on the wrapper.
221
- */
315
+ flex-direction: column;
316
+ align-items: center;
222
317
  }
223
- .eds-contrast .eds-form-control-wrapper {
224
- --border-color: #aeb7e2;
318
+ .eds-switch__circle {
319
+ border-radius: 50%;
320
+ height: 1.25rem;
321
+ width: 1.25rem;
322
+ content: "";
323
+ display: flex;
324
+ align-items: center;
325
+ justify-content: center;
326
+ transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
327
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
225
328
  background-color: #ffffff;
226
- border-color: #54568c;
227
- }
228
- .eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
229
- border-color: #181c56;
230
- }
231
- .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
232
- border-color: #181c56;
329
+ top: 0.125rem;
330
+ left: 0.125rem;
331
+ position: relative;
233
332
  }
234
- .eds-contrast .eds-form-control-wrapper:hover {
235
- border-color: #aeb7e2;
236
- background: #ebebf1;
333
+ .eds-switch__switch--large .eds-switch__circle {
334
+ height: 1.75rem;
335
+ width: 1.75rem;
237
336
  }
238
- .eds-form-control-wrapper[focus-within] {
239
- box-shadow: inset 0 0 0 1px var(--border-color);
337
+ .eds-switch .eds-switch__switch svg g,
338
+ .eds-switch .eds-switch__switch path {
339
+ fill: #949494;
340
+ transition: fill ease-in-out 0.1s;
240
341
  }
241
- .eds-form-control-wrapper:focus-within {
242
- box-shadow: inset 0 0 0 1px var(--border-color);
342
+ .eds-switch__switch {
343
+ position: relative;
344
+ background-color: #d1d3d3;
345
+ content: "";
346
+ display: block;
347
+ transition: background-color 0.1s ease-in-out;
348
+ height: 1.5rem;
349
+ width: 3rem;
350
+ border-radius: 1.5rem;
243
351
  }
244
- .eds-contrast .eds-form-control-wrapper[focus-within] {
245
- border-color: #181c56;
246
- --border-color: #aeb7e2;
247
- box-shadow: 0 0 0 0.125rem var(--border-color);
352
+ .eds-switch--right .eds-switch__switch {
353
+ margin-right: 0.75rem;
248
354
  }
249
- .eds-contrast .eds-form-control-wrapper:focus-within {
250
- border-color: #181c56;
251
- --border-color: #aeb7e2;
252
- box-shadow: 0 0 0 0.125rem var(--border-color);
355
+ :checked + .eds-switch__switch {
356
+ background-color: var(--eds-switch-color);
253
357
  }
254
- .eds-form-control-wrapper ::-moz-placeholder {
255
- color: #656782;
358
+ :checked + .eds-switch__switch .eds-switch__circle {
359
+ left: 1.625rem;
256
360
  }
257
- .eds-form-control-wrapper :-ms-input-placeholder {
258
- color: #656782;
361
+ :checked + .eds-switch__switch .eds-switch__circle svg g,
362
+ :checked + .eds-switch__switch .eds-switch__circle path {
363
+ fill: var(--eds-switch-color);
259
364
  }
260
- .eds-form-control-wrapper ::placeholder {
261
- color: #656782;
365
+ .eds-contrast :checked + .eds-switch__switch .eds-switch__circle svg g,
366
+ .eds-contrast :checked + .eds-switch__switch .eds-switch__circle path {
367
+ fill: var(--eds-switch-color);
262
368
  }
263
- .eds-form-control-wrapper--disabled {
264
- background-color: #e9e9e9;
265
- color: #656782;
266
- border-color: transparent;
267
- pointer-events: none;
369
+ .eds-contrast :checked + .eds-switch__switch {
370
+ background-color: var(--eds-switch-contrast-color);
268
371
  }
269
- .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
270
- display: none;
372
+ :focus + .eds-switch__switch {
373
+ outline: none;
374
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
375
+ outline-offset: 0.125rem;
271
376
  }
272
- .eds-contrast .eds-form-control-wrapper--disabled {
273
- background: #292b6a;
274
- border-color: transparent;
275
- color: #8285a8;
377
+ .eds-contrast :focus + .eds-switch__switch {
378
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
276
379
  }
277
- .eds-form-control-wrapper--readonly {
278
- pointer-events: none;
279
- cursor: default;
280
- border-color: transparent;
281
- background: #f8f8f8;
282
- --textarea-label-background: $colors-greys-grey90;
380
+ .eds-contrast .eds-switch__switch {
381
+ background-color: #54568c;
283
382
  }
284
- .eds-contrast .eds-form-control-wrapper--readonly {
285
- background: #292b6a;
286
- --textarea-label-background: $colors-blues-blue10;
287
- color: #ffffff;
288
- border-color: transparent;
383
+ .eds-switch__switch--large {
384
+ width: 3.75rem;
385
+ height: 2rem;
386
+ border-radius: 3.75rem;
289
387
  }
290
- .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
291
- display: none;
388
+ :checked + .eds-switch__switch--large .eds-switch__circle {
389
+ left: 1.875rem;
292
390
  }
293
- .eds-form-control-wrapper--size-medium .eds-form-control,
294
- .eds-form-control-wrapper--size-medium .eds-form-control__append,
295
- .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
391
+ .eds-switch__label--large--right {
296
392
  font-size: 1rem;
297
- line-height: 1rem;
298
393
  }
299
- .eds-form-control-wrapper--size-large {
300
- min-height: 4rem;
301
- padding: 0 0.5rem;
394
+ .eds-switch__label--large--bottom {
395
+ font-size: 0.875rem;
302
396
  }
303
- .eds-form-control-wrapper--size-large::before, .eds-form-control-wrapper--size-large::after {
304
- border-width: 0.25rem;
397
+ .eds-switch__label--medium--right {
398
+ font-size: 0.875rem;
305
399
  }
306
- .eds-form-control-wrapper--size-large .eds-form-control,
307
- .eds-form-control-wrapper--size-large .eds-form-control__append,
308
- .eds-form-control-wrapper--size-large .eds-form-control__prepend {
309
- font-size: 1.5rem;
310
- line-height: 2.25rem;
400
+ .eds-switch__label--medium--bottom {
401
+ font-size: 0.75rem;
402
+ }/* DO NOT CHANGE!*/
403
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
404
+ .eds-radio-panel__wrapper[focus-within] .eds-radio-panel__container {
405
+ border-color: #181c56;
406
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
311
407
  }
312
- .eds-form-control-wrapper--success {
313
- border-color: #1a8e60;
314
- --border-color: #1a8e60;
408
+ .eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
409
+ border-color: #181c56;
410
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
315
411
  }
316
- .eds-form-control-wrapper--success:hover {
317
- border-color: #5ac39a;
412
+ .eds-contrast .eds-radio-panel__wrapper[focus-within] .eds-radio-panel__container {
413
+ border-color: #ffffff;
414
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
318
415
  }
319
- .eds-form-control-wrapper--success[focus-within] {
320
- border-color: #1a8e60;
416
+ .eds-contrast .eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
417
+ border-color: #ffffff;
418
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
321
419
  }
322
- .eds-form-control-wrapper--success:focus-within {
323
- border-color: #1a8e60;
420
+ .eds-radio-panel__wrapper input {
421
+ position: absolute;
422
+ opacity: 0;
423
+ cursor: pointer;
424
+ height: 0;
425
+ width: 0;
324
426
  }
325
- .eds-contrast .eds-form-control-wrapper--success {
326
- border-color: #5ac39a;
327
- --border-color: #5ac39a;
427
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
428
+ border-color: #181c56;
429
+ background: #f5f5f8;
328
430
  }
329
- .eds-contrast .eds-form-control-wrapper--success:hover {
330
- border-color: #1a8e60;
431
+ .eds-contrast .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
432
+ border-color: #aeb7e2;
433
+ background: #393d79;
331
434
  }
332
- .eds-contrast .eds-form-control-wrapper--success[focus-within] {
333
- --border-color: #5ac39a;
435
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check {
436
+ background-color: #181c56;
334
437
  border-color: #181c56;
335
438
  }
336
- .eds-contrast .eds-form-control-wrapper--success:focus-within {
337
- --border-color: #5ac39a;
338
- border-color: #181c56;
439
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon {
440
+ visibility: visible;
339
441
  }
340
- .eds-form-control-wrapper--error {
341
- border-color: #d31b1b;
342
- --border-color: #d31b1b;
442
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon__path {
443
+ stroke: #5ac39a;
444
+ -webkit-animation: stroke ease-in-out 0.2s 0.1s forwards;
445
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
343
446
  }
344
- .eds-form-control-wrapper--error:hover {
345
- border-color: #ff9494;
447
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled {
448
+ opacity: 0.5;
346
449
  }
347
- .eds-form-control-wrapper--error[focus-within] {
348
- border-color: #d31b1b;
450
+ .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled .eds-checkbox-icon__path {
451
+ opacity: 0.5;
349
452
  }
350
- .eds-form-control-wrapper--error:focus-within {
351
- border-color: #d31b1b;
453
+ .eds-radio-panel__container {
454
+ background: #ffffff;
455
+ border: 0.125rem solid #d1d3d3;
456
+ border-radius: 0.25rem;
457
+ display: flex;
458
+ flex-direction: column;
459
+ justify-content: flex-start;
460
+ min-width: 20rem;
461
+ position: relative;
462
+ padding: 1rem;
463
+ -webkit-user-select: none;
464
+ -moz-user-select: none;
465
+ -ms-user-select: none;
466
+ user-select: none;
467
+ width: -webkit-fit-content;
468
+ width: -moz-fit-content;
469
+ width: fit-content;
352
470
  }
353
- .eds-contrast .eds-form-control-wrapper--error {
354
- border-color: #ff9494;
355
- --border-color: #ff9494;
471
+ .eds-contrast .eds-radio-panel__container {
472
+ background: #181c56;
473
+ border-color: #54568c;
356
474
  }
357
- .eds-contrast .eds-form-control-wrapper--error:hover {
358
- border-color: #d31b1b;
475
+ .eds-radio-panel__title-wrapper {
476
+ display: flex;
477
+ justify-content: space-between;
478
+ align-items: center;
359
479
  }
360
- .eds-contrast .eds-form-control-wrapper--error[focus-within] {
361
- border-color: #181c56;
362
- --border-color: #ff9494;
480
+ .eds-radio-panel__label {
481
+ display: flex;
482
+ justify-content: center;
363
483
  }
364
- .eds-contrast .eds-form-control-wrapper--error:focus-within {
365
- border-color: #181c56;
366
- --border-color: #ff9494;
484
+ .eds-radio-panel__check {
485
+ height: 2rem;
486
+ width: 2rem;
487
+ margin-left: 1rem;
488
+ border-radius: 50%;
489
+ border: 0.125rem solid #e9e9e9;
490
+ display: flex;
491
+ align-items: center;
492
+ justify-content: center;
493
+ background: #ffffff;
494
+ transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
367
495
  }
368
- .eds-contrast .eds-form-control-wrapper--dark {
369
- background-color: #181c56;
370
- color: #ffffff;
496
+ .eds-contrast .eds-radio-panel__check {
497
+ background: #181c56;
498
+ border-color: #54568c;
371
499
  }
372
- .eds-contrast .eds-form-control-wrapper--dark ::-moz-placeholder {
373
- color: #aeb7e2;
500
+ .eds-radio-panel__additional-content {
501
+ margin-top: 0.25rem;
502
+ word-wrap: break-word;
374
503
  }
375
- .eds-contrast .eds-form-control-wrapper--dark :-ms-input-placeholder {
376
- color: #aeb7e2;
504
+ .eds-radio-panel--medium .eds-radio-panel__title {
505
+ font-size: 1rem;
506
+ font-weight: 500;
377
507
  }
378
- .eds-contrast .eds-form-control-wrapper--dark ::placeholder {
379
- color: #aeb7e2;
508
+ .eds-radio-panel--medium.eds-radio-panel__container {
509
+ padding-bottom: 1rem;
510
+ min-height: 3.75rem;
380
511
  }
381
- .eds-contrast .eds-form-control-wrapper--dark:hover {
382
- border-color: #aeb7e2;
512
+ .eds-radio-panel--large.eds-radio-panel__container {
513
+ min-height: 6.5rem;
383
514
  }
384
- .eds-contrast .eds-form-control-wrapper--dark[focus-within] {
385
- background-color: #292b6a;
386
- border-color: #aeb7e2;
515
+ .eds-radio-panel--large .eds-radio-panel__title-wrapper {
516
+ height: 2rem;
387
517
  }
388
- .eds-contrast .eds-form-control-wrapper--dark:focus-within {
389
- background-color: #292b6a;
390
- border-color: #aeb7e2;
518
+ .eds-radio-panel--large .eds-radio-panel__title {
519
+ font-size: 1.25rem;
520
+ font-weight: 500;
521
+ line-height: 1.875rem;
391
522
  }
392
- .eds-contrast .eds-form-control-wrapper--dark * {
393
- background-color: transparent;
394
- color: inherit;
523
+ .eds-radio-panel--disabled {
524
+ background: #f3f3f3;
525
+ border-color: #f3f3f3;
526
+ color: #656782;
395
527
  }
396
- .eds-contrast .eds-form-control-wrapper--dark.eds-form-control-wrapper--disabled {
397
- background-color: #292b6a;
398
- color: #8285a8;
528
+ .eds-contrast .eds-radio-panel--disabled {
529
+ background: #181c56;
530
+ border-style: dashed;
531
+ border-color: #54568c;
532
+ color: #babbcf;
399
533
  }
400
534
 
401
- .eds-form-control {
402
- -webkit-appearance: none;
403
- -moz-appearance: none;
404
- appearance: none;
405
- background-color: transparent;
406
- border: 0;
535
+ .eds-checkbox-icon {
536
+ width: 1.5em;
537
+ height: 1.5em;
538
+ }
539
+ .eds-checkbox-icon__path {
540
+ transform-origin: 50% 50%;
541
+ stroke-dasharray: 48;
542
+ stroke-dashoffset: 48;
543
+ stroke-width: 0.375rem;
544
+ }/* DO NOT CHANGE!*/
545
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
546
+ .eds-input-group {
407
547
  color: inherit;
408
548
  display: block;
409
- font-family: inherit;
410
- line-height: 1rem;
549
+ position: relative;
550
+ }
551
+ .eds-input-group__label {
552
+ color: #656782;
553
+ display: flex;
411
554
  font-size: 1rem;
412
- padding: 20px 1rem 0.25rem;
413
- width: 100%;
555
+ position: absolute;
556
+ line-height: 1rem;
557
+ height: 3rem;
558
+ padding: 1rem;
559
+ padding-left: 0;
560
+ margin-left: 1rem;
561
+ top: -0.125rem;
562
+ 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;
563
+ -webkit-user-select: none;
564
+ -moz-user-select: none;
565
+ -ms-user-select: none;
566
+ user-select: none;
567
+ pointer-events: none;
414
568
  }
415
- .eds-form-control::-moz-placeholder {
416
- opacity: 0;
417
- -moz-transition: opacity 0.2s ease-in-out;
418
- transition: opacity 0.2s ease-in-out;
569
+ .eds-form-control-wrapper--is-filled .eds-input-group__label {
570
+ top: calc(0.5rem - 0.125rem);
571
+ font-size: 0.75rem;
572
+ line-height: 0.75rem;
573
+ height: 10px;
574
+ padding: 0;
575
+ margin-left: 1rem;
419
576
  }
420
- .eds-form-control:-ms-input-placeholder {
421
- opacity: 0;
422
- -ms-transition: opacity 0.2s ease-in-out;
423
- transition: opacity 0.2s ease-in-out;
577
+ .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
578
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
579
+ background: var(--textarea-label-background);
580
+ width: calc( 100% - 1rem - 1rem - 4px );
424
581
  }
425
- .eds-form-control::placeholder {
426
- opacity: 0;
427
- transition: opacity 0.2s ease-in-out;
582
+ .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
583
+ top: 0.5rem;
584
+ font-size: 0.875rem;
585
+ line-height: 1rem;
586
+ padding: 0;
587
+ margin-left: 1rem;
428
588
  }
429
- .eds-form-control:focus {
430
- outline: none;
589
+ .eds-contrast .eds-input-group__label {
590
+ color: #8285a8;
431
591
  }
432
- .eds-form-control:focus::-moz-placeholder {
433
- opacity: 1;
592
+ .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
593
+ color: #aeb7e2;
434
594
  }
435
- .eds-form-control:focus:-ms-input-placeholder {
436
- opacity: 1;
595
+ .eds-form-control-wrapper--size-large .eds-input-group__label {
596
+ font-size: 1.5rem;
597
+ line-height: 2.25rem;
598
+ height: 4rem;
437
599
  }
438
- .eds-form-control:focus::placeholder {
439
- opacity: 1;
600
+ .eds-input-group__label--filled {
601
+ top: calc(0.5rem - 0.125rem);
602
+ font-size: 0.75rem;
603
+ line-height: 0.75rem;
604
+ height: 10px;
605
+ padding: 0;
606
+ margin-left: 1rem;
440
607
  }
441
- .eds-form-control__prepend, .eds-form-control__append {
442
- position: relative;
443
- margin: 0 1rem;
444
- line-height: inherit;
608
+ .eds-textarea__label .eds-input-group__label--filled {
609
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
610
+ background: var(--textarea-label-background);
611
+ width: calc( 100% - 1rem - 1rem - 4px );
445
612
  }
446
- .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
447
- position: static;
613
+ .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
614
+ top: 0.5rem;
615
+ font-size: 0.875rem;
616
+ line-height: 1rem;
617
+ padding: 0;
618
+ margin-left: 1rem;
448
619
  }
449
- .eds-form-control__prepend svg, .eds-form-control__append svg {
450
- top: 0.125rem;
620
+ .eds-input-group__label-tooltip-icon {
621
+ color: #0082b9;
622
+ padding-left: 0.25rem;
623
+ padding-right: 0.25rem;
624
+ display: flex;
625
+ align-items: center;
626
+ cursor: help;
627
+ font-size: 1rem;
451
628
  }
452
- .eds-form-control__prepend {
453
- margin-right: 0;
629
+
630
+ .eds-form-control-wrapper[focus-within] .eds-input-group__label {
631
+ top: calc(0.5rem - 0.125rem);
632
+ font-size: 0.75rem;
633
+ line-height: 0.75rem;
634
+ height: 10px;
635
+ padding: 0;
636
+ margin-left: 1rem;
454
637
  }
455
- .eds-form-control__append {
456
- margin-left: 0;
638
+
639
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
640
+ top: calc(0.5rem - 0.125rem);
641
+ font-size: 0.75rem;
642
+ line-height: 0.75rem;
643
+ height: 10px;
644
+ padding: 0;
645
+ margin-left: 1rem;
646
+ }
647
+ .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
648
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
649
+ background: var(--textarea-label-background);
650
+ width: calc( 100% - 1rem - 1rem - 4px );
651
+ }
652
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
653
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
654
+ background: var(--textarea-label-background);
655
+ width: calc( 100% - 1rem - 1rem - 4px );
656
+ }
657
+ .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
658
+ top: 0.5rem;
659
+ font-size: 0.875rem;
660
+ line-height: 1rem;
661
+ padding: 0;
662
+ margin-left: 1rem;
663
+ }
664
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
665
+ top: 0.5rem;
666
+ font-size: 0.875rem;
667
+ line-height: 1rem;
668
+ padding: 0;
669
+ margin-left: 1rem;
457
670
  }/* DO NOT CHANGE!*/
458
671
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
459
672
  textarea.eds-form-control.eds-textarea {
@@ -462,509 +675,296 @@ textarea.eds-form-control.eds-textarea {
462
675
  line-height: 1.5rem;
463
676
  }/* DO NOT CHANGE!*/
464
677
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
465
- .eds-form-component--radio__container {
466
- display: flex;
467
- justify-content: center;
468
- align-items: center;
469
- position: relative;
678
+ .eds-textfield__clear-button {
679
+ background: none;
680
+ border: none;
681
+ border-radius: 50%;
682
+ color: inherit;
470
683
  cursor: pointer;
471
- height: 2rem;
472
- width: -webkit-fit-content;
473
- width: -moz-fit-content;
474
- width: fit-content;
475
- -webkit-user-select: none;
476
- -moz-user-select: none;
477
- -ms-user-select: none;
478
- user-select: none;
479
- }
480
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
481
- border-color: #54568c;
482
- }
483
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
484
- background-color: #54568c;
485
- }
486
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
487
- border-color: #8285a8;
488
- }
489
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
490
- background-color: #8285a8;
684
+ display: flex;
685
+ font: inherit;
686
+ font-size: 1rem;
687
+ line-height: 1rem;
688
+ padding: 0.5rem;
689
+ margin-right: -0.75rem;
491
690
  }
492
- .eds-form-component--radio__container input {
493
- position: absolute;
494
- opacity: 0;
495
- cursor: pointer;
496
- height: 0;
497
- width: 0;
691
+ .eds-textfield__clear-button-wrapper {
692
+ display: flex;
693
+ align-items: center;
498
694
  }
499
- .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
500
- height: 0.625rem;
501
- width: 0.625rem;
695
+ .eds-textfield__clear-button:hover {
696
+ background: #f3f3f3;
502
697
  }
503
- .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
698
+ .eds-textfield__clear-button:focus {
504
699
  outline: none;
505
700
  box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
506
- outline-offset: 0.125rem;
507
701
  }
508
- .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
509
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
702
+
703
+ .eds-textfield__divider {
704
+ content: "";
705
+ display: block;
706
+ background-color: #e9e9e9;
707
+ height: 1.5rem;
708
+ width: 1px;
510
709
  }
511
- .eds-form-component--radio__container .eds-form-component--radio__radio {
512
- position: relative;
513
- height: 1.25rem;
514
- width: 1.25rem;
515
- margin-right: 1rem;
710
+ .eds-contrast .eds-form-control-wrapper--disabled .eds-textfield__divider {
711
+ background-color: #8285a8;
712
+ }/* DO NOT CHANGE!*/
713
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
714
+ .eds-form-control-wrapper {
715
+ --border-color: #181c56;
716
+ --border-color-hover: #aeb7e2;
717
+ align-items: center;
516
718
  background-color: #ffffff;
517
- border: 0.125rem solid #181c56;
518
- border-radius: 50%;
719
+ border-radius: 0.25rem;
720
+ border: 0.125rem solid #d1d3d3;
721
+ box-shadow: 0 0 0 transparent;
722
+ color: #181c56;
519
723
  display: flex;
520
- align-items: center;
521
- justify-content: center;
724
+ position: relative;
725
+ width: 100%;
726
+ min-height: 3rem;
727
+ transition: border-color 0.1s ease-in-out;
728
+ --textarea-label-background: $colors-brand-white;
729
+ /*
730
+ Some input controls require a darker design while inside a contrast block.
731
+ These elements require the `--dark` modifier, even on the wrapper.
732
+ */
522
733
  }
523
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
524
- background-color: #181c56;
734
+ .eds-contrast .eds-form-control-wrapper {
735
+ --border-color: #aeb7e2;
736
+ background-color: #ffffff;
737
+ border-color: #54568c;
738
+ }
739
+ .eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
740
+ border-color: #181c56;
741
+ }
742
+ .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
743
+ border-color: #181c56;
744
+ }
745
+ .eds-contrast .eds-form-control-wrapper:hover {
525
746
  border-color: #aeb7e2;
747
+ background: #ebebf1;
526
748
  }
527
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
528
- background: #d1d3d3;
529
- border-color: #d1d3d3;
530
- cursor: not-allowed;
749
+ .eds-form-control-wrapper[focus-within] {
750
+ box-shadow: inset 0 0 0 1px var(--border-color);
531
751
  }
532
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
533
- border-color: #d1d3d3;
752
+ .eds-form-control-wrapper:focus-within {
753
+ box-shadow: inset 0 0 0 1px var(--border-color);
534
754
  }
535
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
536
- background: #d1d3d3;
537
- border-color: #d1d3d3;
755
+ .eds-contrast .eds-form-control-wrapper[focus-within] {
756
+ border-color: #181c56;
757
+ --border-color: #aeb7e2;
758
+ box-shadow: 0 0 0 0.125rem var(--border-color);
538
759
  }
539
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
760
+ .eds-contrast .eds-form-control-wrapper:focus-within {
761
+ border-color: #181c56;
762
+ --border-color: #aeb7e2;
763
+ box-shadow: 0 0 0 0.125rem var(--border-color);
764
+ }
765
+ .eds-form-control-wrapper ::-moz-placeholder {
540
766
  color: #656782;
541
767
  }
542
- .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
543
- display: block;
544
- width: 0;
545
- height: 0;
546
- border-radius: 50%;
547
- background-color: #181c56;
548
- transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
768
+ .eds-form-control-wrapper :-ms-input-placeholder {
769
+ color: #656782;
549
770
  }
550
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
551
- background-color: #aeb7e2;
552
- }/* DO NOT CHANGE!*/
553
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
554
- .eds-switch {
555
- cursor: pointer;
556
- -webkit-user-select: none;
557
- -moz-user-select: none;
558
- -ms-user-select: none;
559
- user-select: none;
560
- padding: 0.5rem 0;
561
- width: -webkit-fit-content;
562
- width: -moz-fit-content;
563
- width: fit-content;
771
+ .eds-form-control-wrapper ::placeholder {
772
+ color: #656782;
564
773
  }
565
- .eds-switch input {
566
- opacity: 0;
774
+ .eds-form-control-wrapper--disabled {
775
+ background-color: #e9e9e9;
776
+ color: #656782;
777
+ border-color: transparent;
567
778
  pointer-events: none;
568
- position: absolute;
569
779
  }
570
- .eds-switch--right {
571
- display: flex;
572
- flex-direction: row;
573
- align-items: center;
780
+ .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
781
+ display: none;
574
782
  }
575
- .eds-switch--bottom {
576
- display: flex;
577
- flex-direction: column;
578
- align-items: center;
783
+ .eds-contrast .eds-form-control-wrapper--disabled {
784
+ background: #292b6a;
785
+ border-color: transparent;
786
+ color: #8285a8;
579
787
  }
580
- .eds-switch__circle {
581
- border-radius: 50%;
582
- height: 1.25rem;
583
- width: 1.25rem;
584
- content: "";
585
- display: flex;
586
- align-items: center;
587
- justify-content: center;
588
- transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
589
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
590
- background-color: #ffffff;
591
- top: 0.125rem;
592
- left: 0.125rem;
593
- position: relative;
594
- }
595
- .eds-switch__switch--large .eds-switch__circle {
596
- height: 1.75rem;
597
- width: 1.75rem;
598
- }
599
- .eds-switch .eds-switch__switch svg g,
600
- .eds-switch .eds-switch__switch path {
601
- fill: #949494;
602
- transition: fill ease-in-out 0.1s;
603
- }
604
- .eds-switch__switch {
605
- position: relative;
606
- background-color: #d1d3d3;
607
- content: "";
608
- display: block;
609
- transition: background-color 0.1s ease-in-out;
610
- height: 1.5rem;
611
- width: 3rem;
612
- border-radius: 1.5rem;
613
- }
614
- .eds-switch--right .eds-switch__switch {
615
- margin-right: 0.75rem;
616
- }
617
- :checked + .eds-switch__switch {
618
- background-color: var(--eds-switch-color);
619
- }
620
- :checked + .eds-switch__switch .eds-switch__circle {
621
- left: 1.625rem;
622
- }
623
- :checked + .eds-switch__switch .eds-switch__circle svg g,
624
- :checked + .eds-switch__switch .eds-switch__circle path {
625
- fill: var(--eds-switch-color);
626
- }
627
- .eds-contrast :checked + .eds-switch__switch .eds-switch__circle svg g,
628
- .eds-contrast :checked + .eds-switch__switch .eds-switch__circle path {
629
- fill: var(--eds-switch-color);
630
- }
631
- .eds-contrast :checked + .eds-switch__switch {
632
- background-color: var(--eds-switch-contrast-color);
633
- }
634
- :focus + .eds-switch__switch {
635
- outline: none;
636
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
637
- outline-offset: 0.125rem;
638
- }
639
- .eds-contrast :focus + .eds-switch__switch {
640
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
641
- }
642
- .eds-contrast .eds-switch__switch {
643
- background-color: #54568c;
788
+ .eds-form-control-wrapper--readonly {
789
+ pointer-events: none;
790
+ cursor: default;
791
+ border-color: transparent;
792
+ background: #f8f8f8;
793
+ --textarea-label-background: $colors-greys-grey90;
644
794
  }
645
- .eds-switch__switch--large {
646
- width: 3.75rem;
647
- height: 2rem;
648
- border-radius: 3.75rem;
795
+ .eds-contrast .eds-form-control-wrapper--readonly {
796
+ background: #292b6a;
797
+ --textarea-label-background: $colors-blues-blue10;
798
+ color: #ffffff;
799
+ border-color: transparent;
649
800
  }
650
- :checked + .eds-switch__switch--large .eds-switch__circle {
651
- left: 1.875rem;
801
+ .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
802
+ display: none;
652
803
  }
653
- .eds-switch__label--large--right {
804
+ .eds-form-control-wrapper--size-medium .eds-form-control,
805
+ .eds-form-control-wrapper--size-medium .eds-form-control__append,
806
+ .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
654
807
  font-size: 1rem;
808
+ line-height: 1rem;
655
809
  }
656
- .eds-switch__label--large--bottom {
657
- font-size: 0.875rem;
810
+ .eds-form-control-wrapper--size-large {
811
+ min-height: 4rem;
812
+ padding: 0 0.5rem;
658
813
  }
659
- .eds-switch__label--medium--right {
660
- font-size: 0.875rem;
814
+ .eds-form-control-wrapper--size-large::before, .eds-form-control-wrapper--size-large::after {
815
+ border-width: 0.25rem;
661
816
  }
662
- .eds-switch__label--medium--bottom {
663
- font-size: 0.75rem;
664
- }/* DO NOT CHANGE!*/
665
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
666
- .eds-radio-panel__wrapper[focus-within] .eds-radio-panel__container {
667
- border-color: #181c56;
668
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
817
+ .eds-form-control-wrapper--size-large .eds-form-control,
818
+ .eds-form-control-wrapper--size-large .eds-form-control__append,
819
+ .eds-form-control-wrapper--size-large .eds-form-control__prepend {
820
+ font-size: 1.5rem;
821
+ line-height: 2.25rem;
669
822
  }
670
- .eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
671
- border-color: #181c56;
672
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
823
+ .eds-form-control-wrapper--success {
824
+ border-color: #1a8e60;
825
+ --border-color: #1a8e60;
673
826
  }
674
- .eds-contrast .eds-radio-panel__wrapper[focus-within] .eds-radio-panel__container {
675
- border-color: #ffffff;
676
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
827
+ .eds-form-control-wrapper--success:hover {
828
+ border-color: #5ac39a;
677
829
  }
678
- .eds-contrast .eds-radio-panel__wrapper:focus-within .eds-radio-panel__container {
679
- border-color: #ffffff;
680
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
830
+ .eds-form-control-wrapper--success[focus-within] {
831
+ border-color: #1a8e60;
681
832
  }
682
- .eds-radio-panel__wrapper input {
683
- position: absolute;
684
- opacity: 0;
685
- cursor: pointer;
686
- height: 0;
687
- width: 0;
833
+ .eds-form-control-wrapper--success:focus-within {
834
+ border-color: #1a8e60;
688
835
  }
689
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
690
- border-color: #181c56;
691
- background: #f5f5f8;
836
+ .eds-contrast .eds-form-control-wrapper--success {
837
+ border-color: #5ac39a;
838
+ --border-color: #5ac39a;
692
839
  }
693
- .eds-contrast .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container {
694
- border-color: #aeb7e2;
695
- background: #393d79;
840
+ .eds-contrast .eds-form-control-wrapper--success:hover {
841
+ border-color: #1a8e60;
696
842
  }
697
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check {
698
- background-color: #181c56;
843
+ .eds-contrast .eds-form-control-wrapper--success[focus-within] {
844
+ --border-color: #5ac39a;
699
845
  border-color: #181c56;
700
846
  }
701
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon {
702
- visibility: visible;
847
+ .eds-contrast .eds-form-control-wrapper--success:focus-within {
848
+ --border-color: #5ac39a;
849
+ border-color: #181c56;
703
850
  }
704
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check .eds-checkbox-icon__path {
705
- stroke: #5ac39a;
706
- -webkit-animation: stroke ease-in-out 0.2s 0.1s forwards;
707
- animation: stroke ease-in-out 0.2s 0.1s forwards;
851
+ .eds-form-control-wrapper--error {
852
+ border-color: #d31b1b;
853
+ --border-color: #d31b1b;
708
854
  }
709
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled {
710
- opacity: 0.5;
855
+ .eds-form-control-wrapper--error:hover {
856
+ border-color: #ff9494;
711
857
  }
712
- .eds-radio-panel__wrapper input:checked + .eds-radio-panel__container .eds-radio-panel__check--disabled .eds-checkbox-icon__path {
713
- opacity: 0.5;
858
+ .eds-form-control-wrapper--error[focus-within] {
859
+ border-color: #d31b1b;
714
860
  }
715
- .eds-radio-panel__container {
716
- background: #ffffff;
717
- border: 0.125rem solid #d1d3d3;
718
- border-radius: 0.25rem;
719
- display: flex;
720
- flex-direction: column;
721
- justify-content: flex-start;
722
- min-width: 20rem;
723
- position: relative;
724
- padding: 1rem;
725
- -webkit-user-select: none;
726
- -moz-user-select: none;
727
- -ms-user-select: none;
728
- user-select: none;
729
- width: -webkit-fit-content;
730
- width: -moz-fit-content;
731
- width: fit-content;
861
+ .eds-form-control-wrapper--error:focus-within {
862
+ border-color: #d31b1b;
732
863
  }
733
- .eds-contrast .eds-radio-panel__container {
734
- background: #181c56;
735
- border-color: #54568c;
864
+ .eds-contrast .eds-form-control-wrapper--error {
865
+ border-color: #ff9494;
866
+ --border-color: #ff9494;
736
867
  }
737
- .eds-radio-panel__title-wrapper {
738
- display: flex;
739
- justify-content: space-between;
740
- align-items: center;
868
+ .eds-contrast .eds-form-control-wrapper--error:hover {
869
+ border-color: #d31b1b;
741
870
  }
742
- .eds-radio-panel__label {
743
- display: flex;
744
- justify-content: center;
871
+ .eds-contrast .eds-form-control-wrapper--error[focus-within] {
872
+ border-color: #181c56;
873
+ --border-color: #ff9494;
745
874
  }
746
- .eds-radio-panel__check {
747
- height: 2rem;
748
- width: 2rem;
749
- margin-left: 1rem;
750
- border-radius: 50%;
751
- border: 0.125rem solid #e9e9e9;
752
- display: flex;
753
- align-items: center;
754
- justify-content: center;
755
- background: #ffffff;
756
- transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
875
+ .eds-contrast .eds-form-control-wrapper--error:focus-within {
876
+ border-color: #181c56;
877
+ --border-color: #ff9494;
757
878
  }
758
- .eds-contrast .eds-radio-panel__check {
759
- background: #181c56;
760
- border-color: #54568c;
879
+ .eds-contrast .eds-form-control-wrapper--dark {
880
+ background-color: #181c56;
881
+ color: #ffffff;
761
882
  }
762
- .eds-radio-panel__additional-content {
763
- margin-top: 0.25rem;
764
- word-wrap: break-word;
883
+ .eds-contrast .eds-form-control-wrapper--dark ::-moz-placeholder {
884
+ color: #aeb7e2;
765
885
  }
766
- .eds-radio-panel--medium .eds-radio-panel__title {
767
- font-size: 1rem;
768
- font-weight: 500;
886
+ .eds-contrast .eds-form-control-wrapper--dark :-ms-input-placeholder {
887
+ color: #aeb7e2;
769
888
  }
770
- .eds-radio-panel--medium.eds-radio-panel__container {
771
- padding-bottom: 1rem;
772
- min-height: 3.75rem;
889
+ .eds-contrast .eds-form-control-wrapper--dark ::placeholder {
890
+ color: #aeb7e2;
773
891
  }
774
- .eds-radio-panel--large.eds-radio-panel__container {
775
- min-height: 6.5rem;
892
+ .eds-contrast .eds-form-control-wrapper--dark:hover {
893
+ border-color: #aeb7e2;
776
894
  }
777
- .eds-radio-panel--large .eds-radio-panel__title-wrapper {
778
- height: 2rem;
895
+ .eds-contrast .eds-form-control-wrapper--dark[focus-within] {
896
+ background-color: #292b6a;
897
+ border-color: #aeb7e2;
779
898
  }
780
- .eds-radio-panel--large .eds-radio-panel__title {
781
- font-size: 1.25rem;
782
- font-weight: 500;
783
- line-height: 1.875rem;
899
+ .eds-contrast .eds-form-control-wrapper--dark:focus-within {
900
+ background-color: #292b6a;
901
+ border-color: #aeb7e2;
784
902
  }
785
- .eds-radio-panel--disabled {
786
- background: #f3f3f3;
787
- border-color: #f3f3f3;
788
- color: #656782;
903
+ .eds-contrast .eds-form-control-wrapper--dark * {
904
+ background-color: transparent;
905
+ color: inherit;
789
906
  }
790
- .eds-contrast .eds-radio-panel--disabled {
791
- background: #181c56;
792
- border-style: dashed;
793
- border-color: #54568c;
794
- color: #babbcf;
907
+ .eds-contrast .eds-form-control-wrapper--dark.eds-form-control-wrapper--disabled {
908
+ background-color: #292b6a;
909
+ color: #8285a8;
795
910
  }
796
911
 
797
- .eds-checkbox-icon {
798
- width: 1.5em;
799
- height: 1.5em;
800
- }
801
- .eds-checkbox-icon__path {
802
- transform-origin: 50% 50%;
803
- stroke-dasharray: 48;
804
- stroke-dashoffset: 48;
805
- stroke-width: 0.375rem;
806
- }/* DO NOT CHANGE!*/
807
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
808
- .eds-input-group {
912
+ .eds-form-control {
913
+ -webkit-appearance: none;
914
+ -moz-appearance: none;
915
+ appearance: none;
916
+ background-color: transparent;
917
+ border: 0;
809
918
  color: inherit;
810
919
  display: block;
811
- position: relative;
812
- }
813
- .eds-input-group__label {
814
- color: #656782;
815
- display: flex;
816
- font-size: 1rem;
817
- position: absolute;
818
- line-height: 1rem;
819
- height: 3rem;
820
- padding: 1rem;
821
- padding-left: 0;
822
- margin-left: 1rem;
823
- top: -0.125rem;
824
- 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;
825
- -webkit-user-select: none;
826
- -moz-user-select: none;
827
- -ms-user-select: none;
828
- user-select: none;
829
- pointer-events: none;
830
- }
831
- .eds-form-control-wrapper--is-filled .eds-input-group__label {
832
- top: calc(0.5rem - 0.125rem);
833
- font-size: 0.75rem;
834
- line-height: 0.75rem;
835
- height: 10px;
836
- padding: 0;
837
- margin-left: 1rem;
838
- }
839
- .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
840
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
841
- background: var(--textarea-label-background);
842
- width: calc( 100% - 1rem - 1rem - 4px );
843
- }
844
- .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
845
- top: 0.5rem;
846
- font-size: 0.875rem;
847
- line-height: 1rem;
848
- padding: 0;
849
- margin-left: 1rem;
850
- }
851
- .eds-contrast .eds-input-group__label {
852
- color: #8285a8;
853
- }
854
- .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
855
- color: #aeb7e2;
856
- }
857
- .eds-form-control-wrapper--size-large .eds-input-group__label {
858
- font-size: 1.5rem;
859
- line-height: 2.25rem;
860
- height: 4rem;
861
- }
862
- .eds-input-group__label--filled {
863
- top: calc(0.5rem - 0.125rem);
864
- font-size: 0.75rem;
865
- line-height: 0.75rem;
866
- height: 10px;
867
- padding: 0;
868
- margin-left: 1rem;
869
- }
870
- .eds-textarea__label .eds-input-group__label--filled {
871
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
872
- background: var(--textarea-label-background);
873
- width: calc( 100% - 1rem - 1rem - 4px );
874
- }
875
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
876
- top: 0.5rem;
877
- font-size: 0.875rem;
920
+ font-family: inherit;
878
921
  line-height: 1rem;
879
- padding: 0;
880
- margin-left: 1rem;
881
- }
882
- .eds-input-group__label-tooltip-icon {
883
- color: #0082b9;
884
- padding-left: 0.25rem;
885
- padding-right: 0.25rem;
886
- display: flex;
887
- align-items: center;
888
- cursor: help;
889
922
  font-size: 1rem;
923
+ padding: 20px 1rem 0.25rem;
924
+ width: 100%;
890
925
  }
891
-
892
- .eds-form-control-wrapper[focus-within] .eds-input-group__label {
893
- top: calc(0.5rem - 0.125rem);
894
- font-size: 0.75rem;
895
- line-height: 0.75rem;
896
- height: 10px;
897
- padding: 0;
898
- margin-left: 1rem;
926
+ .eds-form-control::-moz-placeholder {
927
+ opacity: 0;
928
+ -moz-transition: opacity 0.2s ease-in-out;
929
+ transition: opacity 0.2s ease-in-out;
899
930
  }
900
-
901
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
902
- top: calc(0.5rem - 0.125rem);
903
- font-size: 0.75rem;
904
- line-height: 0.75rem;
905
- height: 10px;
906
- padding: 0;
907
- margin-left: 1rem;
931
+ .eds-form-control:-ms-input-placeholder {
932
+ opacity: 0;
933
+ -ms-transition: opacity 0.2s ease-in-out;
934
+ transition: opacity 0.2s ease-in-out;
908
935
  }
909
- .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
910
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
911
- background: var(--textarea-label-background);
912
- width: calc( 100% - 1rem - 1rem - 4px );
936
+ .eds-form-control::placeholder {
937
+ opacity: 0;
938
+ transition: opacity 0.2s ease-in-out;
913
939
  }
914
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
915
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
916
- background: var(--textarea-label-background);
917
- width: calc( 100% - 1rem - 1rem - 4px );
940
+ .eds-form-control:focus {
941
+ outline: none;
918
942
  }
919
- .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
920
- top: 0.5rem;
921
- font-size: 0.875rem;
922
- line-height: 1rem;
923
- padding: 0;
924
- margin-left: 1rem;
943
+ .eds-form-control:focus::-moz-placeholder {
944
+ opacity: 1;
925
945
  }
926
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
927
- top: 0.5rem;
928
- font-size: 0.875rem;
929
- line-height: 1rem;
930
- padding: 0;
931
- margin-left: 1rem;
932
- }/* DO NOT CHANGE!*/
933
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
934
- .eds-textfield__clear-button {
935
- background: none;
936
- border: none;
937
- border-radius: 50%;
938
- color: inherit;
939
- cursor: pointer;
940
- display: flex;
941
- font: inherit;
942
- font-size: 1rem;
943
- line-height: 1rem;
944
- padding: 0.5rem;
945
- margin-right: -0.75rem;
946
+ .eds-form-control:focus:-ms-input-placeholder {
947
+ opacity: 1;
946
948
  }
947
- .eds-textfield__clear-button-wrapper {
948
- display: flex;
949
- align-items: center;
949
+ .eds-form-control:focus::placeholder {
950
+ opacity: 1;
950
951
  }
951
- .eds-textfield__clear-button:hover {
952
- background: #f3f3f3;
952
+ .eds-form-control__prepend, .eds-form-control__append {
953
+ position: relative;
954
+ margin: 0 1rem;
955
+ line-height: inherit;
953
956
  }
954
- .eds-textfield__clear-button:focus {
955
- outline: none;
956
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
957
+ .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
958
+ position: static;
957
959
  }
958
-
959
- .eds-textfield__divider {
960
- content: "";
961
- display: block;
962
- background-color: #e9e9e9;
963
- height: 1.5rem;
964
- width: 1px;
960
+ .eds-form-control__prepend svg, .eds-form-control__append svg {
961
+ top: 0.125rem;
965
962
  }
966
- .eds-contrast .eds-form-control-wrapper--disabled .eds-textfield__divider {
967
- background-color: #8285a8;
963
+ .eds-form-control__prepend {
964
+ margin-right: 0;
965
+ }
966
+ .eds-form-control__append {
967
+ margin-left: 0;
968
968
  }/* DO NOT CHANGE!*/
969
969
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
970
970
  .eds-segmented-choice {