@entur/form 8.3.2-beta.5 → 8.3.2-beta.6

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 +547 -547
  2. package/package.json +5 -5
package/dist/styles.css CHANGED
@@ -210,6 +210,172 @@
210
210
  }
211
211
  /* DO NOT CHANGE!*/
212
212
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
213
+ .eds-feedback-text {
214
+ display: flex;
215
+ align-items: center;
216
+ margin-top: 0.25rem;
217
+ }
218
+ .eds-feedback-text--info, .eds-feedback-text--information {
219
+ padding-left: calc(1rem + 0.125rem);
220
+ }
221
+ .eds-feedback-text__text {
222
+ color: var(--components-form-feedbacktext-information-standard-text);
223
+ }
224
+ .eds-contrast .eds-feedback-text__text {
225
+ color: var(--components-form-feedbacktext-information-contrast-text);
226
+ }
227
+
228
+ .eds-feedback-text__icon {
229
+ font-size: 1.5rem;
230
+ min-height: 1.5rem;
231
+ min-width: 1.5rem;
232
+ padding-right: 0.5rem;
233
+ position: relative;
234
+ top: -0.1rem;
235
+ }
236
+ .eds-feedback-text__icon--success {
237
+ color: var(--components-form-feedbacktext-success-standard-icon-fill);
238
+ }
239
+ .eds-feedback-text__icon--success circle {
240
+ fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
241
+ }
242
+ .eds-contrast .eds-feedback-text__icon--success {
243
+ color: var(--components-form-feedbacktext-success-contrast-icon-fill);
244
+ }
245
+ .eds-contrast .eds-feedback-text__icon--success circle {
246
+ fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
247
+ }
248
+ .eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
249
+ color: var(--components-form-feedbacktext-negative-standard-icon-fill);
250
+ }
251
+ .eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
252
+ fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
253
+ }
254
+ .eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
255
+ color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
256
+ }
257
+ .eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
258
+ fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
259
+ }
260
+ .eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
261
+ color: var(--components-form-feedbacktext-information-standard-icon-fill);
262
+ }
263
+ .eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
264
+ fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
265
+ }
266
+ .eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
267
+ color: var(--components-form-feedbacktext-information-contrast-icon-fill);
268
+ }
269
+ .eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
270
+ fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
271
+ }
272
+ .eds-feedback-text__icon--warning {
273
+ color: var(--components-form-feedbacktext-warning-standard-icon-fill);
274
+ }
275
+ .eds-feedback-text__icon--warning .svg-exclamation {
276
+ fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
277
+ }
278
+ .eds-contrast .eds-feedback-text__icon--warning {
279
+ color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
280
+ }
281
+ .eds-contrast .eds-feedback-text__icon--warning circle {
282
+ fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
283
+ }
284
+ .eds-fieldset {
285
+ margin: 0;
286
+ padding: 0;
287
+ border: 0;
288
+ }
289
+ /* DO NOT CHANGE!*/
290
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
291
+ .eds-input-group {
292
+ color: inherit;
293
+ display: block;
294
+ position: relative;
295
+ }
296
+ .eds-input-group__label {
297
+ color: var(--components-form-baseform-standard-text-label);
298
+ display: flex;
299
+ font-size: 1rem;
300
+ position: absolute;
301
+ line-height: 1rem;
302
+ height: 3rem;
303
+ padding-left: 0;
304
+ top: 1rem;
305
+ 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;
306
+ -webkit-user-select: none;
307
+ -moz-user-select: none;
308
+ user-select: none;
309
+ pointer-events: none;
310
+ }
311
+ .eds-form-control-wrapper--is-filled .eds-input-group__label {
312
+ top: 0.375rem;
313
+ font-size: 0.75rem;
314
+ line-height: 0.75rem;
315
+ height: 10px;
316
+ padding: 0;
317
+ }
318
+ .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
319
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
320
+ background: var(--textarea-label-background);
321
+ width: calc(100% - 1rem - 1rem - 4px);
322
+ }
323
+ .eds-form-control-wrapper--is-filled.eds-form-control-wrapper--size-large .eds-input-group__label {
324
+ top: 0.5rem;
325
+ font-size: 0.875rem;
326
+ line-height: 1rem;
327
+ padding: 0;
328
+ }
329
+ .eds-form-control-wrapper--size-large .eds-input-group__label {
330
+ top: 0.75rem;
331
+ font-size: 1.5rem;
332
+ line-height: 2.25rem;
333
+ }
334
+ .eds-input-group__label--filled {
335
+ top: 0.375rem;
336
+ font-size: 0.75rem;
337
+ line-height: 0.75rem;
338
+ height: 10px;
339
+ padding: 0;
340
+ }
341
+ .eds-textarea__label .eds-input-group__label--filled {
342
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
343
+ background: var(--textarea-label-background);
344
+ width: calc(100% - 1rem - 1rem - 4px);
345
+ }
346
+ .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
347
+ top: 0.5rem;
348
+ font-size: 0.875rem;
349
+ line-height: 1rem;
350
+ padding: 0;
351
+ }
352
+
353
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
354
+ top: 0.375rem;
355
+ font-size: 0.75rem;
356
+ line-height: 0.75rem;
357
+ height: 10px;
358
+ padding: 0;
359
+ }
360
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
361
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
362
+ background: var(--textarea-label-background);
363
+ width: calc(100% - 1rem - 1rem - 4px);
364
+ }
365
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
366
+ top: 0.5rem;
367
+ font-size: 0.875rem;
368
+ line-height: 1rem;
369
+ padding: 0;
370
+ }
371
+ .eds-form-control-wrapper--disabled:focus-within .eds-input-group__label {
372
+ top: 1rem;
373
+ font-size: 1rem;
374
+ height: 3rem;
375
+ line-height: 1rem;
376
+ }
377
+ /* DO NOT CHANGE!*/
378
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
213
379
  .eds-checkbox__container {
214
380
  display: flex;
215
381
  align-items: center;
@@ -402,400 +568,151 @@
402
568
  }
403
569
  /* DO NOT CHANGE!*/
404
570
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
405
- .eds-feedback-text {
406
- display: flex;
407
- align-items: center;
408
- margin-top: 0.25rem;
409
- }
410
- .eds-feedback-text--info, .eds-feedback-text--information {
411
- padding-left: calc(1rem + 0.125rem);
412
- }
413
- .eds-feedback-text__text {
414
- color: var(--components-form-feedbacktext-information-standard-text);
415
- }
416
- .eds-contrast .eds-feedback-text__text {
417
- color: var(--components-form-feedbacktext-information-contrast-text);
418
- }
419
-
420
- .eds-feedback-text__icon {
421
- font-size: 1.5rem;
422
- min-height: 1.5rem;
423
- min-width: 1.5rem;
424
- padding-right: 0.5rem;
425
- position: relative;
426
- top: -0.1rem;
427
- }
428
- .eds-feedback-text__icon--success {
429
- color: var(--components-form-feedbacktext-success-standard-icon-fill);
571
+ .eds-input-panel:has(:focus-visible) .eds-input-panel__container {
572
+ outline: 2px solid #181c56;
573
+ outline-color: var(--basecolors-stroke-focus-standard);
574
+ outline-offset: 0.125rem;
430
575
  }
431
- .eds-feedback-text__icon--success circle {
432
- fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
576
+ .eds-contrast .eds-input-panel:has(:focus-visible) .eds-input-panel__container {
577
+ outline-color: var(--basecolors-stroke-focus-contrast);
433
578
  }
434
- .eds-contrast .eds-feedback-text__icon--success {
435
- color: var(--components-form-feedbacktext-success-contrast-icon-fill);
579
+ .eds-input-panel > input {
580
+ position: absolute;
581
+ opacity: 0;
582
+ cursor: pointer;
583
+ height: 0;
584
+ width: 0;
436
585
  }
437
- .eds-contrast .eds-feedback-text__icon--success circle {
438
- fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
586
+ .eds-input-panel > input:checked + .eds-input-panel__container {
587
+ border-color: var(--components-form-basepanel-standard-border-selected);
588
+ background: var(--components-form-basepanel-standard-fill-selected);
439
589
  }
440
- .eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
441
- color: var(--components-form-feedbacktext-negative-standard-icon-fill);
590
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container {
591
+ border-color: var(--components-form-basepanel-contrast-border-selected);
592
+ background: var(--components-form-basepanel-contrast-fill-selected);
442
593
  }
443
- .eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
444
- fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
594
+ .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
595
+ width: 0.75rem;
596
+ height: 0.75rem;
445
597
  }
446
- .eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
447
- color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
598
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
599
+ background-color: var(--components-form-radio-contrast-icon);
448
600
  }
449
- .eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
450
- fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
601
+ .eds-input-panel > input:checked + .eds-input-panel__container:hover {
602
+ background-color: var(--components-form-basepanel-standard-fill-hover);
603
+ /* The following styling is needed to sync the inner checkbox/radiobutton's
604
+ hover state styling with the inputPanel container */
451
605
  }
452
- .eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
453
- color: var(--components-form-feedbacktext-information-standard-icon-fill);
606
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover {
607
+ background-color: var(--components-form-basepanel-contrast-fill-hover);
454
608
  }
455
- .eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
456
- fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
609
+ .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
610
+ background-color: var(--components-form-basepanel-standard-fill-hover);
611
+ border-color: var(--components-form-basepanel-standard-border-selected);
457
612
  }
458
- .eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
459
- color: var(--components-form-feedbacktext-information-contrast-icon-fill);
613
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
614
+ background-color: var(--components-form-basepanel-contrast-fill-hover);
615
+ border-color: var(--components-form-basepanel-contrast-border-selected);
460
616
  }
461
- .eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
462
- fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
617
+ .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
618
+ border-color: transparent;
463
619
  }
464
- .eds-feedback-text__icon--warning {
465
- color: var(--components-form-feedbacktext-warning-standard-icon-fill);
620
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
621
+ background-color: var(--components-form-checkbox-contrast-fill-selectedhover);
466
622
  }
467
- .eds-feedback-text__icon--warning .svg-exclamation {
468
- fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
469
- }
470
- .eds-contrast .eds-feedback-text__icon--warning {
471
- color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
472
- }
473
- .eds-contrast .eds-feedback-text__icon--warning circle {
474
- fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
475
- }
476
- .eds-fieldset {
477
- margin: 0;
478
- padding: 0;
479
- border: 0;
480
- }
481
- /* DO NOT CHANGE!*/
482
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
483
- .eds-form-component--radio__container {
484
- display: flex;
485
- justify-content: center;
486
- align-items: center;
487
- position: relative;
488
- cursor: pointer;
489
- height: 2rem;
490
- width: -moz-fit-content;
491
- width: fit-content;
492
- -webkit-user-select: none;
493
- -moz-user-select: none;
494
- user-select: none;
495
- }
496
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
497
- background-color: var(--components-form-radio-standard-fill-hover);
498
- }
499
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
500
- background-color: var(--components-form-radio-contrast-fill-hover);
501
- }
502
- .eds-form-component--radio__container input {
503
- position: absolute;
504
- opacity: 0;
505
- cursor: pointer;
506
- height: 0;
507
- width: 0;
508
- }
509
- .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
510
- height: 0.625rem;
511
- width: 0.625rem;
512
- }
513
- .eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
514
- outline: 2px solid #181c56;
515
- outline-color: var(--basecolors-stroke-focus-standard);
516
- outline-offset: 0.125rem;
517
- }
518
- .eds-contrast .eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
519
- outline-color: var(--basecolors-stroke-focus-contrast);
520
- }
521
- .eds-form-component--radio__container:has(input:disabled) {
522
- cursor: not-allowed;
523
- }
524
- .eds-form-component--radio__container:has(.eds-form-component--radio__radio--readonly) {
525
- cursor: default;
526
- -webkit-user-select: text;
527
- -moz-user-select: text;
528
- user-select: text;
529
- }
530
- .eds-form-component--radio__container .eds-form-component--radio__radio {
531
- position: relative;
532
- height: 1.25rem;
533
- width: 1.25rem;
534
- margin-right: 1rem;
535
- background-color: var(--components-form-radio-standard-fill-default);
536
- border: 0.125rem solid var(--components-form-radio-standard-border);
537
- border-radius: 50%;
623
+ .eds-input-panel__container {
624
+ background: var(--components-form-basepanel-standard-fill-default);
625
+ border: 0.125rem solid var(--components-form-basepanel-standard-border-default);
626
+ color: var(--components-form-basepanel-standard-text-accent);
627
+ border-radius: 0.25rem;
538
628
  display: flex;
539
- align-items: center;
540
- justify-content: center;
541
- }
542
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
543
- background-color: var(--components-form-radio-contrast-fill-default);
544
- border-color: var(--components-form-radio-contrast-border);
545
- }
546
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
547
- background: var(--components-form-radio-contrast-fill-disabled);
548
- border-color: var(--components-form-radio-contrast-text-disabled);
549
- }
550
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
551
- border-color: var(--components-form-radio-contrast-text-disabled);
552
- }
553
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
554
- background: var(--components-form-radio-contrast-fill-disabled);
555
- border-color: var(--components-form-radio-contrast-text-disabled);
556
- }
557
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
558
- color: var(--components-form-radio-contrast-text-disabled);
559
- }
560
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
561
- background-color: var(--components-form-radio-standard-icon-disabled);
562
- border-color: var(--components-form-radio-contrast-text-disabled);
563
- }
564
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled .eds-form-component--radio__circle {
565
- background-color: var(--components-form-radio-standard-icon-disabled);
566
- }
567
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled .eds-form-component--radio__circle {
568
- background-color: var(--components-form-radio-contrast-icon-disabled);
569
- }
570
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--readonly {
571
- background: var(--components-form-radio-standard-fill-disabled);
572
- border-color: var(--components-form-radio-standard-border-readonly);
573
- }
574
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--readonly {
575
- background: var(--components-form-radio-contrast-fill-disabled);
576
- border-color: var(--components-form-radio-contrast-border-readonly);
577
- }
578
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--readonly:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
579
- background-color: var(--components-form-radio-standard-icon);
580
- border-color: var(--components-form-radio-standard-border-readonly);
581
- }
582
- .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
583
- display: block;
584
- width: 0;
585
- height: 0;
586
- border-radius: 50%;
587
- background-color: var(--components-form-radio-standard-fill-selected);
588
- transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
589
- }
590
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
591
- background-color: var(--components-form-radio-contrast-icon);
592
- }
593
- /* DO NOT CHANGE!*/
594
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
595
- .eds-input-group {
596
- color: inherit;
597
- display: block;
629
+ flex-direction: column;
630
+ justify-content: flex-start;
631
+ min-width: 20rem;
598
632
  position: relative;
599
- }
600
- .eds-input-group__label {
601
- color: var(--components-form-baseform-standard-text-label);
602
- display: flex;
603
- font-size: 1rem;
604
- position: absolute;
605
- line-height: 1rem;
606
- height: 3rem;
607
- padding-left: 0;
608
- top: 1rem;
609
- 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;
610
- -webkit-user-select: none;
611
- -moz-user-select: none;
612
- user-select: none;
613
- pointer-events: none;
614
- }
615
- .eds-form-control-wrapper--is-filled .eds-input-group__label {
616
- top: 0.375rem;
617
- font-size: 0.75rem;
618
- line-height: 0.75rem;
619
- height: 10px;
620
- padding: 0;
621
- }
622
- .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
623
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
624
- background: var(--textarea-label-background);
625
- width: calc(100% - 1rem - 1rem - 4px);
626
- }
627
- .eds-form-control-wrapper--is-filled.eds-form-control-wrapper--size-large .eds-input-group__label {
628
- top: 0.5rem;
629
- font-size: 0.875rem;
630
- line-height: 1rem;
631
- padding: 0;
632
- }
633
- .eds-form-control-wrapper--size-large .eds-input-group__label {
634
- top: 0.75rem;
635
- font-size: 1.5rem;
636
- line-height: 2.25rem;
637
- }
638
- .eds-input-group__label--filled {
639
- top: 0.375rem;
640
- font-size: 0.75rem;
641
- line-height: 0.75rem;
642
- height: 10px;
643
- padding: 0;
644
- }
645
- .eds-textarea__label .eds-input-group__label--filled {
646
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
647
- background: var(--textarea-label-background);
648
- width: calc(100% - 1rem - 1rem - 4px);
649
- }
650
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
651
- top: 0.5rem;
652
- font-size: 0.875rem;
653
- line-height: 1rem;
654
- padding: 0;
655
- }
656
-
657
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
658
- top: 0.375rem;
659
- font-size: 0.75rem;
660
- line-height: 0.75rem;
661
- height: 10px;
662
- padding: 0;
663
- }
664
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
665
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
666
- background: var(--textarea-label-background);
667
- width: calc(100% - 1rem - 1rem - 4px);
668
- }
669
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
670
- top: 0.5rem;
671
- font-size: 0.875rem;
672
- line-height: 1rem;
673
- padding: 0;
674
- }
675
- .eds-form-control-wrapper--disabled:focus-within .eds-input-group__label {
676
- top: 1rem;
677
- font-size: 1rem;
678
- height: 3rem;
679
- line-height: 1rem;
680
- }
681
- /* DO NOT CHANGE!*/
682
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
683
- .eds-switch {
684
- cursor: pointer;
633
+ padding: 1rem;
685
634
  -webkit-user-select: none;
686
635
  -moz-user-select: none;
687
636
  user-select: none;
688
- padding: 0.5rem 0;
689
637
  width: -moz-fit-content;
690
638
  width: fit-content;
639
+ transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
691
640
  }
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: var(--components-form-switch-standard-switch);
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: var(--components-form-switch-standard-fill-false);
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: var(--components-form-switch-contrast-fill-false);
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: var(--components-form-switch-standard-icon-false);
749
- transition: fill ease-in-out 0.1s;
641
+ .eds-contrast .eds-input-panel__container {
642
+ background-color: var(--components-form-basepanel-contrast-fill-default);
643
+ border-color: var(--components-form-basepanel-contrast-border-default);
644
+ color: var(--components-form-basepanel-contrast-text-accent);
750
645
  }
751
- .eds-contrast .eds-switch__switch svg g,
752
- .eds-contrast .eds-switch__switch path {
753
- fill: var(--components-form-switch-contrast-icon-false);
646
+ .eds-input-panel__container:hover {
647
+ background-color: var(--components-form-basepanel-standard-fill-hover);
648
+ /* The following styling is needed to sync the inner checkbox/radiobutton's
649
+ hover state styling with the inputPanel container */
754
650
  }
755
- :checked + .eds-switch__switch {
756
- background-color: var(--eds-switch-color);
651
+ .eds-contrast .eds-input-panel__container:hover {
652
+ background-color: var(--components-form-basepanel-contrast-fill-hover);
757
653
  }
758
- :checked + .eds-switch__switch .eds-switch__circle {
759
- left: 1.625rem;
654
+ .eds-input-panel__container:hover .eds-checkbox__icon,
655
+ .eds-input-panel__container:hover .eds-form-component--radio__radio {
656
+ background-color: var(--components-form-basepanel-standard-fill-hover);
657
+ border-color: var(--components-form-basepanel-standard-border-selected);
760
658
  }
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);
659
+ .eds-contrast .eds-input-panel__container:hover .eds-checkbox__icon,
660
+ .eds-contrast .eds-input-panel__container:hover .eds-form-component--radio__radio {
661
+ background-color: var(--components-form-basepanel-contrast-fill-hover);
662
+ border-color: var(--components-form-basepanel-contrast-border-selected);
764
663
  }
765
- .eds-contrast :checked + .eds-switch__switch {
766
- background-color: var(--eds-switch-contrast-color);
664
+ input:disabled + .eds-input-panel__container {
665
+ background: var(--components-form-basepanel-standard-fill-disabled);
666
+ border-color: var(--components-form-basepanel-standard-border-disabled);
667
+ color: var(--components-form-basepanel-standard-text-disabled);
668
+ cursor: not-allowed;
767
669
  }
768
- :focus-visible + .eds-switch__switch {
769
- outline: 2px solid #181c56;
770
- outline-color: var(--basecolors-stroke-focus-standard);
771
- outline-offset: 0.125rem;
670
+ .eds-contrast input:disabled + .eds-input-panel__container {
671
+ background: var(--components-form-basepanel-contrast-fill-disabled);
672
+ border-style: dashed;
673
+ border-color: var(--components-form-basepanel-contrast-border-disabled);
674
+ color: var(--components-form-basepanel-contrast-text-disabled);
772
675
  }
773
- .eds-contrast :focus-visible + .eds-switch__switch {
774
- outline-color: var(--basecolors-stroke-focus-contrast);
676
+ .eds-input-panel__container .eds-checkbox__icon,
677
+ .eds-input-panel__container .eds-checkbox__icon .eds-checkbox__icon,
678
+ .eds-input-panel__container .eds-form-component--radio__radio {
679
+ width: 1.5rem;
680
+ height: 1.5rem;
681
+ margin-right: 0;
775
682
  }
776
- .eds-switch__switch--large {
777
- width: 3.75rem;
778
- height: 2rem;
779
- border-radius: 3.75rem;
683
+ .eds-input-panel--medium .eds-input-panel__title {
684
+ font-size: 1rem;
685
+ font-weight: 500;
780
686
  }
781
- :checked + .eds-switch__switch--large .eds-switch__circle {
782
- left: 1.875rem;
687
+ .eds-input-panel--medium.eds-input-panel__container {
688
+ padding-bottom: 1rem;
689
+ min-height: 3.75rem;
783
690
  }
784
- .eds-switch__switch--large svg {
785
- position: relative;
786
- right: 0.05rem;
691
+ .eds-input-panel--large.eds-input-panel__container {
692
+ min-height: 6rem;
787
693
  }
788
- .eds-switch__label--large--right {
789
- font-size: 1rem;
694
+ .eds-input-panel--large .eds-input-panel__title {
695
+ font-size: 1.25rem;
696
+ font-weight: 500;
697
+ line-height: 1.875rem;
790
698
  }
791
- .eds-switch__label--large--bottom {
792
- font-size: 0.875rem;
699
+ .eds-input-panel__title-wrapper {
700
+ display: flex;
701
+ justify-content: space-between;
702
+ align-items: center;
793
703
  }
794
- .eds-switch__label--medium--right {
795
- font-size: 0.875rem;
704
+ .eds-input-panel__secondary-label-and-icon-wrapper {
705
+ display: flex;
706
+ justify-content: center;
707
+ align-items: center;
708
+ gap: 0.75rem;
796
709
  }
797
- .eds-switch__label--medium--bottom {
798
- font-size: 0.75rem;
710
+ .eds-input-panel__secondary-label-and-icon-wrapper .eds-checkbox__container {
711
+ margin: 0;
712
+ }
713
+ .eds-input-panel__additional-content {
714
+ margin-top: 0.25rem;
715
+ word-wrap: break-word;
799
716
  }
800
717
  /* DO NOT CHANGE!*/
801
718
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -965,151 +882,234 @@
965
882
  }
966
883
  /* DO NOT CHANGE!*/
967
884
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
968
- .eds-input-panel:has(:focus-visible) .eds-input-panel__container {
969
- outline: 2px solid #181c56;
970
- outline-color: var(--basecolors-stroke-focus-standard);
971
- outline-offset: 0.125rem;
885
+ .eds-form-component--radio__container {
886
+ display: flex;
887
+ justify-content: center;
888
+ align-items: center;
889
+ position: relative;
890
+ cursor: pointer;
891
+ height: 2rem;
892
+ width: -moz-fit-content;
893
+ width: fit-content;
894
+ -webkit-user-select: none;
895
+ -moz-user-select: none;
896
+ user-select: none;
972
897
  }
973
- .eds-contrast .eds-input-panel:has(:focus-visible) .eds-input-panel__container {
974
- outline-color: var(--basecolors-stroke-focus-contrast);
898
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
899
+ background-color: var(--components-form-radio-standard-fill-hover);
975
900
  }
976
- .eds-input-panel > input {
901
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
902
+ background-color: var(--components-form-radio-contrast-fill-hover);
903
+ }
904
+ .eds-form-component--radio__container input {
977
905
  position: absolute;
978
906
  opacity: 0;
979
907
  cursor: pointer;
980
908
  height: 0;
981
909
  width: 0;
982
910
  }
983
- .eds-input-panel > input:checked + .eds-input-panel__container {
984
- border-color: var(--components-form-basepanel-standard-border-selected);
985
- background: var(--components-form-basepanel-standard-fill-selected);
911
+ .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
912
+ height: 0.625rem;
913
+ width: 0.625rem;
986
914
  }
987
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container {
988
- border-color: var(--components-form-basepanel-contrast-border-selected);
989
- background: var(--components-form-basepanel-contrast-fill-selected);
915
+ .eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
916
+ outline: 2px solid #181c56;
917
+ outline-color: var(--basecolors-stroke-focus-standard);
918
+ outline-offset: 0.125rem;
990
919
  }
991
- .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
992
- width: 0.75rem;
993
- height: 0.75rem;
920
+ .eds-contrast .eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
921
+ outline-color: var(--basecolors-stroke-focus-contrast);
994
922
  }
995
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
996
- background-color: var(--components-form-radio-contrast-icon);
923
+ .eds-form-component--radio__container:has(input:disabled) {
924
+ cursor: not-allowed;
997
925
  }
998
- .eds-input-panel > input:checked + .eds-input-panel__container:hover {
999
- background-color: var(--components-form-basepanel-standard-fill-hover);
1000
- /* The following styling is needed to sync the inner checkbox/radiobutton's
1001
- hover state styling with the inputPanel container */
926
+ .eds-form-component--radio__container:has(.eds-form-component--radio__radio--readonly) {
927
+ cursor: default;
928
+ -webkit-user-select: text;
929
+ -moz-user-select: text;
930
+ user-select: text;
1002
931
  }
1003
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover {
1004
- background-color: var(--components-form-basepanel-contrast-fill-hover);
932
+ .eds-form-component--radio__container .eds-form-component--radio__radio {
933
+ position: relative;
934
+ height: 1.25rem;
935
+ width: 1.25rem;
936
+ margin-right: 1rem;
937
+ background-color: var(--components-form-radio-standard-fill-default);
938
+ border: 0.125rem solid var(--components-form-radio-standard-border);
939
+ border-radius: 50%;
940
+ display: flex;
941
+ align-items: center;
942
+ justify-content: center;
1005
943
  }
1006
- .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
1007
- background-color: var(--components-form-basepanel-standard-fill-hover);
1008
- border-color: var(--components-form-basepanel-standard-border-selected);
944
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
945
+ background-color: var(--components-form-radio-contrast-fill-default);
946
+ border-color: var(--components-form-radio-contrast-border);
1009
947
  }
1010
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
1011
- background-color: var(--components-form-basepanel-contrast-fill-hover);
1012
- border-color: var(--components-form-basepanel-contrast-border-selected);
948
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
949
+ background: var(--components-form-radio-contrast-fill-disabled);
950
+ border-color: var(--components-form-radio-contrast-text-disabled);
1013
951
  }
1014
- .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
1015
- border-color: transparent;
952
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
953
+ border-color: var(--components-form-radio-contrast-text-disabled);
1016
954
  }
1017
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
1018
- background-color: var(--components-form-checkbox-contrast-fill-selectedhover);
955
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
956
+ background: var(--components-form-radio-contrast-fill-disabled);
957
+ border-color: var(--components-form-radio-contrast-text-disabled);
1019
958
  }
1020
- .eds-input-panel__container {
1021
- background: var(--components-form-basepanel-standard-fill-default);
1022
- border: 0.125rem solid var(--components-form-basepanel-standard-border-default);
1023
- color: var(--components-form-basepanel-standard-text-accent);
1024
- border-radius: 0.25rem;
1025
- display: flex;
1026
- flex-direction: column;
1027
- justify-content: flex-start;
1028
- min-width: 20rem;
1029
- position: relative;
1030
- padding: 1rem;
959
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
960
+ color: var(--components-form-radio-contrast-text-disabled);
961
+ }
962
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
963
+ background-color: var(--components-form-radio-standard-icon-disabled);
964
+ border-color: var(--components-form-radio-contrast-text-disabled);
965
+ }
966
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled .eds-form-component--radio__circle {
967
+ background-color: var(--components-form-radio-standard-icon-disabled);
968
+ }
969
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled .eds-form-component--radio__circle {
970
+ background-color: var(--components-form-radio-contrast-icon-disabled);
971
+ }
972
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--readonly {
973
+ background: var(--components-form-radio-standard-fill-disabled);
974
+ border-color: var(--components-form-radio-standard-border-readonly);
975
+ }
976
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--readonly {
977
+ background: var(--components-form-radio-contrast-fill-disabled);
978
+ border-color: var(--components-form-radio-contrast-border-readonly);
979
+ }
980
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--readonly:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
981
+ background-color: var(--components-form-radio-standard-icon);
982
+ border-color: var(--components-form-radio-standard-border-readonly);
983
+ }
984
+ .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
985
+ display: block;
986
+ width: 0;
987
+ height: 0;
988
+ border-radius: 50%;
989
+ background-color: var(--components-form-radio-standard-fill-selected);
990
+ transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
991
+ }
992
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
993
+ background-color: var(--components-form-radio-contrast-icon);
994
+ }
995
+ /* DO NOT CHANGE!*/
996
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
997
+ .eds-switch {
998
+ cursor: pointer;
1031
999
  -webkit-user-select: none;
1032
1000
  -moz-user-select: none;
1033
1001
  user-select: none;
1002
+ padding: 0.5rem 0;
1034
1003
  width: -moz-fit-content;
1035
1004
  width: fit-content;
1036
- transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
1037
1005
  }
1038
- .eds-contrast .eds-input-panel__container {
1039
- background-color: var(--components-form-basepanel-contrast-fill-default);
1040
- border-color: var(--components-form-basepanel-contrast-border-default);
1041
- color: var(--components-form-basepanel-contrast-text-accent);
1006
+ .eds-switch input {
1007
+ opacity: 0;
1008
+ pointer-events: none;
1009
+ position: absolute;
1042
1010
  }
1043
- .eds-input-panel__container:hover {
1044
- background-color: var(--components-form-basepanel-standard-fill-hover);
1045
- /* The following styling is needed to sync the inner checkbox/radiobutton's
1046
- hover state styling with the inputPanel container */
1011
+ .eds-switch--right {
1012
+ display: flex;
1013
+ flex-direction: row;
1014
+ align-items: center;
1015
+ }
1016
+ .eds-switch--bottom {
1017
+ display: flex;
1018
+ flex-direction: column;
1019
+ align-items: center;
1020
+ }
1021
+ .eds-switch__circle {
1022
+ border-radius: 50%;
1023
+ height: 1.25rem;
1024
+ width: 1.25rem;
1025
+ content: "";
1026
+ display: flex;
1027
+ align-items: center;
1028
+ justify-content: center;
1029
+ transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
1030
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
1031
+ background-color: var(--components-form-switch-standard-switch);
1032
+ top: 0.125rem;
1033
+ left: 0.125rem;
1034
+ position: relative;
1035
+ }
1036
+ .eds-switch__switch--large .eds-switch__circle {
1037
+ height: 1.75rem;
1038
+ width: 1.75rem;
1039
+ }
1040
+ .eds-contrast .eds-switch__circle {
1041
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
1042
+ }
1043
+ .eds-switch__switch {
1044
+ position: relative;
1045
+ background-color: var(--components-form-switch-standard-fill-false);
1046
+ content: "";
1047
+ display: block;
1048
+ transition: background-color 0.1s ease-in-out;
1049
+ height: 1.5rem;
1050
+ width: 3rem;
1051
+ border-radius: 1.5rem;
1052
+ box-shadow: inset 0px 2px 2px -1px rgba(0, 0, 0, 0.1);
1053
+ }
1054
+ .eds-contrast .eds-switch__switch {
1055
+ background-color: var(--components-form-switch-contrast-fill-false);
1056
+ }
1057
+ .eds-switch--right .eds-switch__switch {
1058
+ margin-right: 0.75rem;
1047
1059
  }
1048
- .eds-contrast .eds-input-panel__container:hover {
1049
- background-color: var(--components-form-basepanel-contrast-fill-hover);
1060
+ .eds-switch__switch svg g,
1061
+ .eds-switch__switch path {
1062
+ fill: var(--components-form-switch-standard-icon-false);
1063
+ transition: fill ease-in-out 0.1s;
1050
1064
  }
1051
- .eds-input-panel__container:hover .eds-checkbox__icon,
1052
- .eds-input-panel__container:hover .eds-form-component--radio__radio {
1053
- background-color: var(--components-form-basepanel-standard-fill-hover);
1054
- border-color: var(--components-form-basepanel-standard-border-selected);
1065
+ .eds-contrast .eds-switch__switch svg g,
1066
+ .eds-contrast .eds-switch__switch path {
1067
+ fill: var(--components-form-switch-contrast-icon-false);
1055
1068
  }
1056
- .eds-contrast .eds-input-panel__container:hover .eds-checkbox__icon,
1057
- .eds-contrast .eds-input-panel__container:hover .eds-form-component--radio__radio {
1058
- background-color: var(--components-form-basepanel-contrast-fill-hover);
1059
- border-color: var(--components-form-basepanel-contrast-border-selected);
1069
+ :checked + .eds-switch__switch {
1070
+ background-color: var(--eds-switch-color);
1060
1071
  }
1061
- input:disabled + .eds-input-panel__container {
1062
- background: var(--components-form-basepanel-standard-fill-disabled);
1063
- border-color: var(--components-form-basepanel-standard-border-disabled);
1064
- color: var(--components-form-basepanel-standard-text-disabled);
1065
- cursor: not-allowed;
1072
+ :checked + .eds-switch__switch .eds-switch__circle {
1073
+ left: 1.625rem;
1066
1074
  }
1067
- .eds-contrast input:disabled + .eds-input-panel__container {
1068
- background: var(--components-form-basepanel-contrast-fill-disabled);
1069
- border-style: dashed;
1070
- border-color: var(--components-form-basepanel-contrast-border-disabled);
1071
- color: var(--components-form-basepanel-contrast-text-disabled);
1075
+ :checked + .eds-switch__switch .eds-switch__circle svg g,
1076
+ :checked + .eds-switch__switch .eds-switch__circle path {
1077
+ fill: var(--eds-switch-color);
1072
1078
  }
1073
- .eds-input-panel__container .eds-checkbox__icon,
1074
- .eds-input-panel__container .eds-checkbox__icon .eds-checkbox__icon,
1075
- .eds-input-panel__container .eds-form-component--radio__radio {
1076
- width: 1.5rem;
1077
- height: 1.5rem;
1078
- margin-right: 0;
1079
+ .eds-contrast :checked + .eds-switch__switch {
1080
+ background-color: var(--eds-switch-contrast-color);
1079
1081
  }
1080
- .eds-input-panel--medium .eds-input-panel__title {
1081
- font-size: 1rem;
1082
- font-weight: 500;
1082
+ :focus-visible + .eds-switch__switch {
1083
+ outline: 2px solid #181c56;
1084
+ outline-color: var(--basecolors-stroke-focus-standard);
1085
+ outline-offset: 0.125rem;
1083
1086
  }
1084
- .eds-input-panel--medium.eds-input-panel__container {
1085
- padding-bottom: 1rem;
1086
- min-height: 3.75rem;
1087
+ .eds-contrast :focus-visible + .eds-switch__switch {
1088
+ outline-color: var(--basecolors-stroke-focus-contrast);
1087
1089
  }
1088
- .eds-input-panel--large.eds-input-panel__container {
1089
- min-height: 6rem;
1090
+ .eds-switch__switch--large {
1091
+ width: 3.75rem;
1092
+ height: 2rem;
1093
+ border-radius: 3.75rem;
1090
1094
  }
1091
- .eds-input-panel--large .eds-input-panel__title {
1092
- font-size: 1.25rem;
1093
- font-weight: 500;
1094
- line-height: 1.875rem;
1095
+ :checked + .eds-switch__switch--large .eds-switch__circle {
1096
+ left: 1.875rem;
1095
1097
  }
1096
- .eds-input-panel__title-wrapper {
1097
- display: flex;
1098
- justify-content: space-between;
1099
- align-items: center;
1098
+ .eds-switch__switch--large svg {
1099
+ position: relative;
1100
+ right: 0.05rem;
1100
1101
  }
1101
- .eds-input-panel__secondary-label-and-icon-wrapper {
1102
- display: flex;
1103
- justify-content: center;
1104
- align-items: center;
1105
- gap: 0.75rem;
1102
+ .eds-switch__label--large--right {
1103
+ font-size: 1rem;
1106
1104
  }
1107
- .eds-input-panel__secondary-label-and-icon-wrapper .eds-checkbox__container {
1108
- margin: 0;
1105
+ .eds-switch__label--large--bottom {
1106
+ font-size: 0.875rem;
1109
1107
  }
1110
- .eds-input-panel__additional-content {
1111
- margin-top: 0.25rem;
1112
- word-wrap: break-word;
1108
+ .eds-switch__label--medium--right {
1109
+ font-size: 0.875rem;
1110
+ }
1111
+ .eds-switch__label--medium--bottom {
1112
+ font-size: 0.75rem;
1113
1113
  }
1114
1114
  /* DO NOT CHANGE!*/
1115
1115
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -1155,88 +1155,6 @@ input:disabled + .eds-input-panel__container {
1155
1155
  }
1156
1156
  /* DO NOT CHANGE!*/
1157
1157
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1158
- .eds-segmented-choice {
1159
- display: block;
1160
- flex: 1 1 0px;
1161
- }
1162
- .eds-segmented-choice .eds-base-segmented {
1163
- --background-color: var(--components-form-segmentedcontrol-standard-fill-unselected);
1164
- background-color: var(--background-color);
1165
- border-radius: 0.25rem;
1166
- color: var(--components-form-segmentedcontrol-standard-text-unselected);
1167
- cursor: pointer;
1168
- font-size: 0.875rem;
1169
- height: 1.5rem;
1170
- line-height: 1.25rem;
1171
- margin: 0.25rem;
1172
- outline-color: transparent;
1173
- padding: calc(0.25rem / 2) 0.75rem;
1174
- text-align: center;
1175
- -webkit-user-select: none;
1176
- -moz-user-select: none;
1177
- user-select: none;
1178
- }
1179
- .eds-segmented-choice .eds-base-segmented--large {
1180
- font-size: 1rem;
1181
- height: 2.5rem;
1182
- line-height: 1.5rem;
1183
- padding: 0.5rem 0.75rem;
1184
- }
1185
- .eds-contrast .eds-segmented-choice .eds-base-segmented {
1186
- --background-color: var(--components-form-segmentedcontrol-contrast-background);
1187
- color: var(--components-form-segmentedcontrol-contrast-text-unselected);
1188
- }
1189
- .eds-segmented-choice:hover input:not(:checked) + .eds-base-segmented {
1190
- --background-color: var(--components-form-segmentedcontrol-standard-fill-hover);
1191
- }
1192
- .eds-contrast .eds-segmented-choice:hover input:not(:checked) + .eds-base-segmented {
1193
- --background-color: var(--components-form-segmentedcontrol-contrast-fill-hover);
1194
- }
1195
- .eds-segmented-choice:hover input:checked + .eds-base-segmented {
1196
- --background-color: var(--components-form-segmentedcontrol-standard-fill-hover);
1197
- color: var(--components-form-segmentedcontrol-standard-text-unselected);
1198
- }
1199
- .eds-contrast .eds-segmented-choice:hover input:checked + .eds-base-segmented {
1200
- --background-color: var(--components-form-segmentedcontrol-contrast-fill-hover);
1201
- color: var(--components-form-segmentedcontrol-contrast-text-unselected);
1202
- }
1203
- .eds-segmented-choice input {
1204
- -webkit-appearance: none;
1205
- -moz-appearance: none;
1206
- appearance: none;
1207
- position: absolute;
1208
- opacity: 0;
1209
- height: 0;
1210
- width: 0;
1211
- }
1212
- .eds-segmented-choice input:checked + .eds-base-segmented {
1213
- --background-color: var(--components-form-segmentedcontrol-standard-fill-selected);
1214
- color: var(--components-form-segmentedcontrol-standard-text-selected);
1215
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
1216
- }
1217
- .eds-contrast .eds-segmented-choice input:checked + .eds-base-segmented {
1218
- --background-color: var(--components-form-segmentedcontrol-contrast-fill-selected);
1219
- box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
1220
- color: var(--components-form-segmentedcontrol-contrast-text-selected);
1221
- }
1222
- .eds-segmented-choice input:focus-visible:not(:checked) + .eds-base-segmented {
1223
- outline: 2px solid #181c56;
1224
- outline-color: var(--basecolors-stroke-focus-standard);
1225
- outline-offset: 0.125rem;
1226
- }
1227
- .eds-contrast .eds-segmented-choice input:focus-visible:not(:checked) + .eds-base-segmented {
1228
- outline-color: var(--basecolors-stroke-focus-contrast);
1229
- }
1230
- .eds-segmented-choice input:focus-visible:checked + .eds-base-segmented {
1231
- outline: 2px solid #181c56;
1232
- outline-color: var(--basecolors-stroke-focus-standard);
1233
- outline-offset: 0.125rem;
1234
- }
1235
- .eds-contrast .eds-segmented-choice input:focus-visible:checked + .eds-base-segmented {
1236
- outline-color: var(--basecolors-stroke-focus-contrast);
1237
- }
1238
- /* DO NOT CHANGE!*/
1239
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1240
1158
  .eds-segmented-control {
1241
1159
  margin-top: 0.25rem;
1242
1160
  display: flex;
@@ -1845,3 +1763,85 @@ input:disabled + .eds-input-panel__container {
1845
1763
  :root {
1846
1764
  --eds-form: 1;
1847
1765
  }
1766
+ /* DO NOT CHANGE!*/
1767
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1768
+ .eds-segmented-choice {
1769
+ display: block;
1770
+ flex: 1 1 0px;
1771
+ }
1772
+ .eds-segmented-choice .eds-base-segmented {
1773
+ --background-color: var(--components-form-segmentedcontrol-standard-fill-unselected);
1774
+ background-color: var(--background-color);
1775
+ border-radius: 0.25rem;
1776
+ color: var(--components-form-segmentedcontrol-standard-text-unselected);
1777
+ cursor: pointer;
1778
+ font-size: 0.875rem;
1779
+ height: 1.5rem;
1780
+ line-height: 1.25rem;
1781
+ margin: 0.25rem;
1782
+ outline-color: transparent;
1783
+ padding: calc(0.25rem / 2) 0.75rem;
1784
+ text-align: center;
1785
+ -webkit-user-select: none;
1786
+ -moz-user-select: none;
1787
+ user-select: none;
1788
+ }
1789
+ .eds-segmented-choice .eds-base-segmented--large {
1790
+ font-size: 1rem;
1791
+ height: 2.5rem;
1792
+ line-height: 1.5rem;
1793
+ padding: 0.5rem 0.75rem;
1794
+ }
1795
+ .eds-contrast .eds-segmented-choice .eds-base-segmented {
1796
+ --background-color: var(--components-form-segmentedcontrol-contrast-background);
1797
+ color: var(--components-form-segmentedcontrol-contrast-text-unselected);
1798
+ }
1799
+ .eds-segmented-choice:hover input:not(:checked) + .eds-base-segmented {
1800
+ --background-color: var(--components-form-segmentedcontrol-standard-fill-hover);
1801
+ }
1802
+ .eds-contrast .eds-segmented-choice:hover input:not(:checked) + .eds-base-segmented {
1803
+ --background-color: var(--components-form-segmentedcontrol-contrast-fill-hover);
1804
+ }
1805
+ .eds-segmented-choice:hover input:checked + .eds-base-segmented {
1806
+ --background-color: var(--components-form-segmentedcontrol-standard-fill-hover);
1807
+ color: var(--components-form-segmentedcontrol-standard-text-unselected);
1808
+ }
1809
+ .eds-contrast .eds-segmented-choice:hover input:checked + .eds-base-segmented {
1810
+ --background-color: var(--components-form-segmentedcontrol-contrast-fill-hover);
1811
+ color: var(--components-form-segmentedcontrol-contrast-text-unselected);
1812
+ }
1813
+ .eds-segmented-choice input {
1814
+ -webkit-appearance: none;
1815
+ -moz-appearance: none;
1816
+ appearance: none;
1817
+ position: absolute;
1818
+ opacity: 0;
1819
+ height: 0;
1820
+ width: 0;
1821
+ }
1822
+ .eds-segmented-choice input:checked + .eds-base-segmented {
1823
+ --background-color: var(--components-form-segmentedcontrol-standard-fill-selected);
1824
+ color: var(--components-form-segmentedcontrol-standard-text-selected);
1825
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
1826
+ }
1827
+ .eds-contrast .eds-segmented-choice input:checked + .eds-base-segmented {
1828
+ --background-color: var(--components-form-segmentedcontrol-contrast-fill-selected);
1829
+ box-shadow: 0 0.0625rem 0.1875rem rgb(57, 61, 121);
1830
+ color: var(--components-form-segmentedcontrol-contrast-text-selected);
1831
+ }
1832
+ .eds-segmented-choice input:focus-visible:not(:checked) + .eds-base-segmented {
1833
+ outline: 2px solid #181c56;
1834
+ outline-color: var(--basecolors-stroke-focus-standard);
1835
+ outline-offset: 0.125rem;
1836
+ }
1837
+ .eds-contrast .eds-segmented-choice input:focus-visible:not(:checked) + .eds-base-segmented {
1838
+ outline-color: var(--basecolors-stroke-focus-contrast);
1839
+ }
1840
+ .eds-segmented-choice input:focus-visible:checked + .eds-base-segmented {
1841
+ outline: 2px solid #181c56;
1842
+ outline-color: var(--basecolors-stroke-focus-standard);
1843
+ outline-offset: 0.125rem;
1844
+ }
1845
+ .eds-contrast .eds-segmented-choice input:focus-visible:checked + .eds-base-segmented {
1846
+ outline-color: var(--basecolors-stroke-focus-contrast);
1847
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/form",
3
- "version": "8.3.2-beta.5",
3
+ "version": "8.3.2-beta.6",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/form.esm.js",
@@ -27,16 +27,16 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/button": "^3.3.13-beta.5",
30
+ "@entur/button": "^3.3.13-beta.6",
31
31
  "@entur/icons": "^8.0.0",
32
32
  "@entur/tokens": "^3.19.1",
33
- "@entur/tooltip": "^5.2.13-beta.5",
34
- "@entur/typography": "^1.10.0-beta.5",
33
+ "@entur/tooltip": "^5.2.13-beta.6",
34
+ "@entur/typography": "^1.10.0-beta.6",
35
35
  "@entur/utils": "^0.12.3",
36
36
  "classnames": "^2.3.1"
37
37
  },
38
38
  "devDependencies": {
39
39
  "dts-cli": "2.0.5"
40
40
  },
41
- "gitHead": "ba4ae77ebb013a60523baf66ff658b73fa7e0719"
41
+ "gitHead": "42c5a2e7657f2b5ca17328fcf55873b19e23f94a"
42
42
  }