@entur/form 8.2.4 → 8.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/styles.css CHANGED
@@ -1,213 +1,5 @@
1
1
  /* DO NOT CHANGE!*/
2
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
- .eds-form-control__field-and-feedback-text {
4
- display: flex;
5
- flex-direction: column;
6
- height: -moz-fit-content;
7
- height: fit-content;
8
- width: 100%;
9
- }
10
- .eds-form-control__field-and-feedback-text--has-tooltip {
11
- padding-right: 2rem;
12
- }
13
- .eds-form-control__field-and-feedback-text:has(.eds-form-control-wrapper--disabled) {
14
- cursor: not-allowed;
15
- }
16
- .eds-form-control-wrapper {
17
- display: flex;
18
- align-items: center;
19
- position: relative;
20
- flex: 1;
21
- min-height: 3rem;
22
- padding-left: 1rem;
23
- padding-right: 1rem;
24
- background-color: var(--components-form-baseform-standard-fill-default);
25
- border-radius: 0.25rem;
26
- border: 0.125rem solid var(--components-form-baseform-standard-border-default);
27
- box-shadow: 0 0 0 transparent;
28
- color: var(--components-form-baseform-standard-text-content);
29
- transition: border-color 0.1s ease-in-out;
30
- }
31
- .eds-form-control-wrapper:hover {
32
- border-color: var(--components-form-baseform-standard-border-interactive);
33
- }
34
- .eds-contrast .eds-form-control-wrapper:hover {
35
- border-color: var(--components-form-baseform-contrast-border-interactive);
36
- }
37
- .eds-form-control-wrapper:focus-within {
38
- border-color: var(--components-form-baseform-standard-border-interactive);
39
- outline: 2px solid var(--components-form-baseform-standard-border-interactive);
40
- }
41
- .eds-contrast .eds-form-control-wrapper:focus-within {
42
- border-color: var(--components-form-baseform-contrast-border-interactive);
43
- outline-color: var(--components-form-baseform-contrast-border-interactive);
44
- }
45
- .eds-form-control-wrapper ::-moz-placeholder {
46
- color: var(--components-form-baseform-standard-text-label);
47
- }
48
- .eds-form-control-wrapper ::placeholder {
49
- color: var(--components-form-baseform-standard-text-label);
50
- }
51
- .eds-form-control-wrapper--disabled {
52
- border-color: transparent;
53
- background-color: var(--components-form-baseform-standard-fill-disabled);
54
- pointer-events: none;
55
- color: var(--components-form-baseform-standard-text-disabled);
56
- }
57
- .eds-form-control-wrapper--disabled .eds-input-group__label {
58
- color: var(--components-form-baseform-standard-text-disabled);
59
- }
60
- .eds-contrast .eds-form-control-wrapper--disabled {
61
- border-color: transparent;
62
- background-color: var(--components-form-baseform-contrast-fill-disabled);
63
- color: var(--components-form-baseform-contrast-text-disabled);
64
- }
65
- .eds-contrast .eds-form-control-wrapper--disabled .eds-input-group__label {
66
- color: var(--components-form-baseform-contrast-text-disabled);
67
- }
68
- .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
69
- display: none;
70
- }
71
- .eds-form-control-wrapper--disabled:focus-within {
72
- border-color: transparent;
73
- outline: none;
74
- }
75
- .eds-contrast .eds-form-control-wrapper--disabled:focus-within {
76
- border-color: transparent;
77
- outline: none;
78
- }
79
- .eds-form-control-wrapper--readonly {
80
- border-color: transparent;
81
- pointer-events: none;
82
- cursor: default;
83
- background: var(--components-form-baseform-standard-fill-readonly);
84
- border: var(--components-form-baseform-standard-fill-readonly);
85
- }
86
- .eds-contrast .eds-form-control-wrapper--readonly {
87
- background: var(--components-form-baseform-contrast-fill-readonly);
88
- border: var(--components-form-baseform-contrast-fill-readonly);
89
- color: var(--components-form-baseform-contrast-text-description);
90
- }
91
- .eds-contrast .eds-form-control-wrapper--readonly .eds-form-control {
92
- color: var(--components-form-baseform-contrast-text-description);
93
- }
94
- .eds-contrast .eds-form-control-wrapper--readonly .eds-input-group__label {
95
- color: var(--components-form-baseform-contrast-text-description);
96
- }
97
- .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
98
- display: none;
99
- }
100
- .eds-form-control-wrapper--size-medium .eds-form-control,
101
- .eds-form-control-wrapper--size-medium .eds-form-control__append,
102
- .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
103
- font-size: 1rem;
104
- line-height: 1rem;
105
- }
106
- .eds-form-control-wrapper--size-large {
107
- min-height: 4rem;
108
- }
109
- .eds-form-control-wrapper--size-large .eds-form-control,
110
- .eds-form-control-wrapper--size-large .eds-form-control__append,
111
- .eds-form-control-wrapper--size-large .eds-form-control__prepend {
112
- font-size: 1.5rem;
113
- }
114
- .eds-form-control-wrapper--success {
115
- border-color: var(--components-form-baseform-standard-border-success);
116
- }
117
- .eds-form-control-wrapper--success:focus-within {
118
- border-color: var(--components-form-baseform-standard-border-success);
119
- outline-color: var(--components-form-baseform-standard-border-success);
120
- }
121
- .eds-contrast .eds-form-control-wrapper--success {
122
- border-color: var(--components-form-baseform-standard-border-success);
123
- }
124
- .eds-contrast .eds-form-control-wrapper--success:focus-within {
125
- border-color: var(--components-form-baseform-contrast-border-success);
126
- outline-color: var(--components-form-baseform-contrast-border-success);
127
- }
128
- .eds-form-control-wrapper--error, .eds-form-control-wrapper--negative {
129
- border-color: var(--components-form-baseform-standard-border-negative);
130
- }
131
- .eds-form-control-wrapper--error:focus-within, .eds-form-control-wrapper--negative:focus-within {
132
- border-color: var(--components-form-baseform-standard-border-negative);
133
- outline-color: var(--components-form-baseform-standard-border-negative);
134
- }
135
- .eds-contrast .eds-form-control-wrapper--error, .eds-contrast .eds-form-control-wrapper--negative {
136
- border-color: var(--components-form-baseform-contrast-border-negative);
137
- }
138
- .eds-contrast .eds-form-control-wrapper--error:focus-within, .eds-contrast .eds-form-control-wrapper--negative:focus-within {
139
- border-color: var(--components-form-baseform-contrast-border-negative);
140
- outline-color: var(--components-form-baseform-contrast-border-negative);
141
- }
142
- .eds-contrast .eds-form-control .eds-tooltip {
143
- background: var(--components-tooltip-tooltip-standard-fill);
144
- color: var(--components-tooltip-tooltip-standard-text);
145
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
146
- }
147
- .eds-form-control .eds-tooltip::after {
148
- background: var(--components-tooltip-tooltip-standard-fill);
149
- }
150
-
151
- .eds-form-control {
152
- display: block;
153
- -webkit-appearance: none;
154
- -moz-appearance: none;
155
- appearance: none;
156
- width: 100%;
157
- height: 100%;
158
- padding: 20px 0rem 0.25rem;
159
- font-family: inherit;
160
- font-size: 1rem;
161
- line-height: 1rem;
162
- border: 0;
163
- color: var(--components-form-baseform-standard-text-content);
164
- background-color: transparent;
165
- }
166
- .eds-form-control::-moz-placeholder {
167
- opacity: 0;
168
- -moz-transition: opacity 0.2s ease-in-out;
169
- transition: opacity 0.2s ease-in-out;
170
- }
171
- .eds-form-control::placeholder {
172
- opacity: 0;
173
- transition: opacity 0.2s ease-in-out;
174
- }
175
- .eds-form-control:focus {
176
- outline: none;
177
- }
178
- .eds-form-control:focus::-moz-placeholder {
179
- opacity: 1;
180
- }
181
- .eds-form-control:focus::placeholder {
182
- opacity: 1;
183
- }
184
- .eds-form-control__prepend, .eds-form-control__append {
185
- position: relative;
186
- line-height: inherit;
187
- }
188
- .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
189
- all: unset;
190
- position: absolute;
191
- display: flex;
192
- align-items: center;
193
- justify-content: center;
194
- height: 1.5rem;
195
- width: 1.5rem;
196
- right: -2rem;
197
- border-radius: 100%;
198
- color: var(--primary-text-color);
199
- cursor: pointer;
200
- }
201
- .eds-form-control__prepend {
202
- margin-right: 0.75rem;
203
- margin-left: 0;
204
- }
205
- .eds-form-control__append {
206
- margin-right: 0;
207
- margin-left: 0.75rem;
208
- }
209
- /* DO NOT CHANGE!*/
210
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
211
3
  .eds-feedback-text {
212
4
  display: flex;
213
5
  align-items: center;
@@ -517,49 +309,197 @@
517
309
  }
518
310
  /* DO NOT CHANGE!*/
519
311
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
520
- .eds-form-component--radio__container {
521
- display: flex;
522
- justify-content: center;
523
- align-items: center;
524
- position: relative;
525
- cursor: pointer;
526
- height: 2rem;
527
- width: -moz-fit-content;
528
- width: fit-content;
529
- -webkit-user-select: none;
530
- -moz-user-select: none;
531
- user-select: none;
532
- }
533
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
534
- background-color: var(--components-form-radio-standard-fill-hover);
312
+ .eds-input-panel:has(:focus-visible) .eds-input-panel__container {
313
+ outline: 2px solid #181c56;
314
+ outline-color: var(--basecolors-stroke-focus-standard);
315
+ outline-offset: 0.125rem;
535
316
  }
536
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
537
- background-color: var(--components-form-radio-contrast-fill-hover);
317
+ .eds-contrast .eds-input-panel:has(:focus-visible) .eds-input-panel__container {
318
+ outline-color: var(--basecolors-stroke-focus-contrast);
538
319
  }
539
- .eds-form-component--radio__container input {
320
+ .eds-input-panel > input {
540
321
  position: absolute;
541
322
  opacity: 0;
542
323
  cursor: pointer;
543
324
  height: 0;
544
325
  width: 0;
545
326
  }
546
- .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
547
- height: 0.625rem;
548
- width: 0.625rem;
327
+ .eds-input-panel > input:checked + .eds-input-panel__container {
328
+ border-color: var(--components-form-basepanel-standard-border-selected);
329
+ background: var(--components-form-basepanel-standard-fill-selected);
549
330
  }
550
- .eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
551
- outline: 2px solid #181c56;
552
- outline-color: var(--basecolors-stroke-focus-standard);
553
- outline-offset: 0.125rem;
331
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container {
332
+ border-color: var(--components-form-basepanel-contrast-border-selected);
333
+ background: var(--components-form-basepanel-contrast-fill-selected);
554
334
  }
555
- .eds-contrast .eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
556
- outline-color: var(--basecolors-stroke-focus-contrast);
335
+ .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
336
+ width: 0.75rem;
337
+ height: 0.75rem;
557
338
  }
558
- .eds-form-component--radio__container .eds-form-component--radio__radio {
559
- position: relative;
560
- height: 1.25rem;
561
- width: 1.25rem;
562
- margin-right: 1rem;
339
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
340
+ background-color: var(--components-form-radio-contrast-icon);
341
+ }
342
+ .eds-input-panel > input:checked + .eds-input-panel__container:hover {
343
+ background-color: var(--components-form-basepanel-standard-fill-hover);
344
+ /* The following styling is needed to sync the inner checkbox/radiobutton's
345
+ hover state styling with the inputPanel container */
346
+ }
347
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover {
348
+ background-color: var(--components-form-basepanel-contrast-fill-hover);
349
+ }
350
+ .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
351
+ background-color: var(--components-form-basepanel-standard-fill-hover);
352
+ border-color: var(--components-form-basepanel-standard-border-selected);
353
+ }
354
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
355
+ background-color: var(--components-form-basepanel-contrast-fill-hover);
356
+ border-color: var(--components-form-basepanel-contrast-border-selected);
357
+ }
358
+ .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
359
+ border-color: transparent;
360
+ }
361
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
362
+ background-color: var(--components-form-checkbox-contrast-fill-selectedhover);
363
+ }
364
+ .eds-input-panel__container {
365
+ background: var(--components-form-basepanel-standard-fill-default);
366
+ border: 0.125rem solid var(--components-form-basepanel-standard-border-default);
367
+ color: var(--components-form-basepanel-standard-text-accent);
368
+ border-radius: 0.25rem;
369
+ display: flex;
370
+ flex-direction: column;
371
+ justify-content: flex-start;
372
+ min-width: 20rem;
373
+ position: relative;
374
+ padding: 1rem;
375
+ -webkit-user-select: none;
376
+ -moz-user-select: none;
377
+ user-select: none;
378
+ width: -moz-fit-content;
379
+ width: fit-content;
380
+ transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
381
+ }
382
+ .eds-contrast .eds-input-panel__container {
383
+ background-color: var(--components-form-basepanel-contrast-fill-default);
384
+ border-color: var(--components-form-basepanel-contrast-border-default);
385
+ color: var(--components-form-basepanel-contrast-text-accent);
386
+ }
387
+ .eds-input-panel__container:hover {
388
+ background-color: var(--components-form-basepanel-standard-fill-hover);
389
+ /* The following styling is needed to sync the inner checkbox/radiobutton's
390
+ hover state styling with the inputPanel container */
391
+ }
392
+ .eds-contrast .eds-input-panel__container:hover {
393
+ background-color: var(--components-form-basepanel-contrast-fill-hover);
394
+ }
395
+ .eds-input-panel__container:hover .eds-checkbox__icon,
396
+ .eds-input-panel__container:hover .eds-form-component--radio__radio {
397
+ background-color: var(--components-form-basepanel-standard-fill-hover);
398
+ border-color: var(--components-form-basepanel-standard-border-selected);
399
+ }
400
+ .eds-contrast .eds-input-panel__container:hover .eds-checkbox__icon,
401
+ .eds-contrast .eds-input-panel__container:hover .eds-form-component--radio__radio {
402
+ background-color: var(--components-form-basepanel-contrast-fill-hover);
403
+ border-color: var(--components-form-basepanel-contrast-border-selected);
404
+ }
405
+ input:disabled + .eds-input-panel__container {
406
+ background: var(--components-form-basepanel-standard-fill-disabled);
407
+ border-color: var(--components-form-basepanel-standard-border-disabled);
408
+ color: var(--components-form-basepanel-standard-text-disabled);
409
+ cursor: not-allowed;
410
+ }
411
+ .eds-contrast input:disabled + .eds-input-panel__container {
412
+ background: var(--components-form-basepanel-contrast-fill-disabled);
413
+ border-style: dashed;
414
+ border-color: var(--components-form-basepanel-contrast-border-disabled);
415
+ color: var(--components-form-basepanel-contrast-text-disabled);
416
+ }
417
+ .eds-input-panel__container .eds-checkbox__icon,
418
+ .eds-input-panel__container .eds-checkbox__icon .eds-checkbox__icon,
419
+ .eds-input-panel__container .eds-form-component--radio__radio {
420
+ width: 1.5rem;
421
+ height: 1.5rem;
422
+ margin-right: 0;
423
+ }
424
+ .eds-input-panel--medium .eds-input-panel__title {
425
+ font-size: 1rem;
426
+ font-weight: 500;
427
+ }
428
+ .eds-input-panel--medium.eds-input-panel__container {
429
+ padding-bottom: 1rem;
430
+ min-height: 3.75rem;
431
+ }
432
+ .eds-input-panel--large.eds-input-panel__container {
433
+ min-height: 6rem;
434
+ }
435
+ .eds-input-panel--large .eds-input-panel__title {
436
+ font-size: 1.25rem;
437
+ font-weight: 500;
438
+ line-height: 1.875rem;
439
+ }
440
+ .eds-input-panel__title-wrapper {
441
+ display: flex;
442
+ justify-content: space-between;
443
+ align-items: center;
444
+ }
445
+ .eds-input-panel__secondary-label-and-icon-wrapper {
446
+ display: flex;
447
+ justify-content: center;
448
+ align-items: center;
449
+ gap: 0.75rem;
450
+ }
451
+ .eds-input-panel__secondary-label-and-icon-wrapper .eds-checkbox__container {
452
+ margin: 0;
453
+ }
454
+ .eds-input-panel__additional-content {
455
+ margin-top: 0.25rem;
456
+ word-wrap: break-word;
457
+ }
458
+ /* DO NOT CHANGE!*/
459
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
460
+ .eds-form-component--radio__container {
461
+ display: flex;
462
+ justify-content: center;
463
+ align-items: center;
464
+ position: relative;
465
+ cursor: pointer;
466
+ height: 2rem;
467
+ width: -moz-fit-content;
468
+ width: fit-content;
469
+ -webkit-user-select: none;
470
+ -moz-user-select: none;
471
+ user-select: none;
472
+ }
473
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
474
+ background-color: var(--components-form-radio-standard-fill-hover);
475
+ }
476
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
477
+ background-color: var(--components-form-radio-contrast-fill-hover);
478
+ }
479
+ .eds-form-component--radio__container input {
480
+ position: absolute;
481
+ opacity: 0;
482
+ cursor: pointer;
483
+ height: 0;
484
+ width: 0;
485
+ }
486
+ .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
487
+ height: 0.625rem;
488
+ width: 0.625rem;
489
+ }
490
+ .eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
491
+ outline: 2px solid #181c56;
492
+ outline-color: var(--basecolors-stroke-focus-standard);
493
+ outline-offset: 0.125rem;
494
+ }
495
+ .eds-contrast .eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
496
+ outline-color: var(--basecolors-stroke-focus-contrast);
497
+ }
498
+ .eds-form-component--radio__container .eds-form-component--radio__radio {
499
+ position: relative;
500
+ height: 1.25rem;
501
+ width: 1.25rem;
502
+ margin-right: 1rem;
563
503
  background-color: var(--components-form-radio-standard-fill-default);
564
504
  border: 0.125rem solid var(--components-form-radio-standard-border);
565
505
  border-radius: 50%;
@@ -718,151 +658,211 @@
718
658
  }
719
659
  /* DO NOT CHANGE!*/
720
660
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
721
- .eds-input-panel:has(:focus-visible) .eds-input-panel__container {
722
- outline: 2px solid #181c56;
723
- outline-color: var(--basecolors-stroke-focus-standard);
724
- outline-offset: 0.125rem;
661
+ .eds-form-control__field-and-feedback-text {
662
+ display: flex;
663
+ flex-direction: column;
664
+ height: -moz-fit-content;
665
+ height: fit-content;
666
+ width: 100%;
725
667
  }
726
- .eds-contrast .eds-input-panel:has(:focus-visible) .eds-input-panel__container {
727
- outline-color: var(--basecolors-stroke-focus-contrast);
668
+ .eds-form-control__field-and-feedback-text--has-tooltip {
669
+ padding-right: 2rem;
728
670
  }
729
- .eds-input-panel > input {
730
- position: absolute;
731
- opacity: 0;
732
- cursor: pointer;
733
- height: 0;
734
- width: 0;
671
+ .eds-form-control__field-and-feedback-text:has(.eds-form-control-wrapper--disabled) {
672
+ cursor: not-allowed;
735
673
  }
736
- .eds-input-panel > input:checked + .eds-input-panel__container {
737
- border-color: var(--components-form-basepanel-standard-border-selected);
738
- background: var(--components-form-basepanel-standard-fill-selected);
674
+ .eds-form-control-wrapper {
675
+ display: flex;
676
+ align-items: center;
677
+ position: relative;
678
+ flex: 1;
679
+ min-height: 3rem;
680
+ padding-left: 1rem;
681
+ padding-right: 1rem;
682
+ background-color: var(--components-form-baseform-standard-fill-default);
683
+ border-radius: 0.25rem;
684
+ border: 0.125rem solid var(--components-form-baseform-standard-border-default);
685
+ box-shadow: 0 0 0 transparent;
686
+ color: var(--components-form-baseform-standard-text-content);
687
+ transition: border-color 0.1s ease-in-out;
739
688
  }
740
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container {
741
- border-color: var(--components-form-basepanel-contrast-border-selected);
742
- background: var(--components-form-basepanel-contrast-fill-selected);
689
+ .eds-form-control-wrapper:hover {
690
+ border-color: var(--components-form-baseform-standard-border-interactive);
743
691
  }
744
- .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
745
- width: 0.75rem;
746
- height: 0.75rem;
692
+ .eds-contrast .eds-form-control-wrapper:hover {
693
+ border-color: var(--components-form-baseform-contrast-border-interactive);
747
694
  }
748
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
749
- background-color: var(--components-form-radio-contrast-icon);
695
+ .eds-form-control-wrapper:focus-within {
696
+ border-color: var(--components-form-baseform-standard-border-interactive);
697
+ outline: 2px solid var(--components-form-baseform-standard-border-interactive);
750
698
  }
751
- .eds-input-panel > input:checked + .eds-input-panel__container:hover {
752
- background-color: var(--components-form-basepanel-standard-fill-hover);
753
- /* The following styling is needed to sync the inner checkbox/radiobutton's
754
- hover state styling with the inputPanel container */
699
+ .eds-contrast .eds-form-control-wrapper:focus-within {
700
+ border-color: var(--components-form-baseform-contrast-border-interactive);
701
+ outline-color: var(--components-form-baseform-contrast-border-interactive);
755
702
  }
756
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover {
757
- background-color: var(--components-form-basepanel-contrast-fill-hover);
703
+ .eds-form-control-wrapper ::-moz-placeholder {
704
+ color: var(--components-form-baseform-standard-text-label);
758
705
  }
759
- .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
760
- background-color: var(--components-form-basepanel-standard-fill-hover);
761
- border-color: var(--components-form-basepanel-standard-border-selected);
706
+ .eds-form-control-wrapper ::placeholder {
707
+ color: var(--components-form-baseform-standard-text-label);
762
708
  }
763
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
764
- background-color: var(--components-form-basepanel-contrast-fill-hover);
765
- border-color: var(--components-form-basepanel-contrast-border-selected);
709
+ .eds-form-control-wrapper--disabled {
710
+ border-color: transparent;
711
+ background-color: var(--components-form-baseform-standard-fill-disabled);
712
+ pointer-events: none;
713
+ color: var(--components-form-baseform-standard-text-disabled);
766
714
  }
767
- .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
715
+ .eds-form-control-wrapper--disabled .eds-input-group__label {
716
+ color: var(--components-form-baseform-standard-text-disabled);
717
+ }
718
+ .eds-contrast .eds-form-control-wrapper--disabled {
768
719
  border-color: transparent;
720
+ background-color: var(--components-form-baseform-contrast-fill-disabled);
721
+ color: var(--components-form-baseform-contrast-text-disabled);
769
722
  }
770
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
771
- background-color: var(--components-form-checkbox-contrast-fill-selectedhover);
723
+ .eds-contrast .eds-form-control-wrapper--disabled .eds-input-group__label {
724
+ color: var(--components-form-baseform-contrast-text-disabled);
772
725
  }
773
- .eds-input-panel__container {
774
- background: var(--components-form-basepanel-standard-fill-default);
775
- border: 0.125rem solid var(--components-form-basepanel-standard-border-default);
776
- color: var(--components-form-basepanel-standard-text-accent);
777
- border-radius: 0.25rem;
778
- display: flex;
779
- flex-direction: column;
780
- justify-content: flex-start;
781
- min-width: 20rem;
782
- position: relative;
783
- padding: 1rem;
784
- -webkit-user-select: none;
785
- -moz-user-select: none;
786
- user-select: none;
787
- width: -moz-fit-content;
788
- width: fit-content;
789
- transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
726
+ .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
727
+ display: none;
790
728
  }
791
- .eds-contrast .eds-input-panel__container {
792
- background-color: var(--components-form-basepanel-contrast-fill-default);
793
- border-color: var(--components-form-basepanel-contrast-border-default);
794
- color: var(--components-form-basepanel-contrast-text-accent);
729
+ .eds-form-control-wrapper--disabled:focus-within {
730
+ border-color: transparent;
731
+ outline: none;
795
732
  }
796
- .eds-input-panel__container:hover {
797
- background-color: var(--components-form-basepanel-standard-fill-hover);
798
- /* The following styling is needed to sync the inner checkbox/radiobutton's
799
- hover state styling with the inputPanel container */
733
+ .eds-contrast .eds-form-control-wrapper--disabled:focus-within {
734
+ border-color: transparent;
735
+ outline: none;
800
736
  }
801
- .eds-contrast .eds-input-panel__container:hover {
802
- background-color: var(--components-form-basepanel-contrast-fill-hover);
737
+ .eds-form-control-wrapper--readonly {
738
+ border-color: transparent;
739
+ pointer-events: none;
740
+ cursor: default;
741
+ background: var(--components-form-baseform-standard-fill-readonly);
742
+ border: var(--components-form-baseform-standard-fill-readonly);
803
743
  }
804
- .eds-input-panel__container:hover .eds-checkbox__icon,
805
- .eds-input-panel__container:hover .eds-form-component--radio__radio {
806
- background-color: var(--components-form-basepanel-standard-fill-hover);
807
- border-color: var(--components-form-basepanel-standard-border-selected);
744
+ .eds-contrast .eds-form-control-wrapper--readonly {
745
+ background: var(--components-form-baseform-contrast-fill-readonly);
746
+ border: var(--components-form-baseform-contrast-fill-readonly);
747
+ color: var(--components-form-baseform-contrast-text-description);
808
748
  }
809
- .eds-contrast .eds-input-panel__container:hover .eds-checkbox__icon,
810
- .eds-contrast .eds-input-panel__container:hover .eds-form-component--radio__radio {
811
- background-color: var(--components-form-basepanel-contrast-fill-hover);
812
- border-color: var(--components-form-basepanel-contrast-border-selected);
749
+ .eds-contrast .eds-form-control-wrapper--readonly .eds-form-control {
750
+ color: var(--components-form-baseform-contrast-text-description);
813
751
  }
814
- input:disabled + .eds-input-panel__container {
815
- background: var(--components-form-basepanel-standard-fill-disabled);
816
- border-color: var(--components-form-basepanel-standard-border-disabled);
817
- color: var(--components-form-basepanel-standard-text-disabled);
818
- cursor: not-allowed;
752
+ .eds-contrast .eds-form-control-wrapper--readonly .eds-input-group__label {
753
+ color: var(--components-form-baseform-contrast-text-description);
819
754
  }
820
- .eds-contrast input:disabled + .eds-input-panel__container {
821
- background: var(--components-form-basepanel-contrast-fill-disabled);
822
- border-style: dashed;
823
- border-color: var(--components-form-basepanel-contrast-border-disabled);
824
- color: var(--components-form-basepanel-contrast-text-disabled);
755
+ .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
756
+ display: none;
825
757
  }
826
- .eds-input-panel__container .eds-checkbox__icon,
827
- .eds-input-panel__container .eds-checkbox__icon .eds-checkbox__icon,
828
- .eds-input-panel__container .eds-form-component--radio__radio {
829
- width: 1.5rem;
830
- height: 1.5rem;
831
- margin-right: 0;
758
+ .eds-form-control-wrapper--size-medium .eds-form-control,
759
+ .eds-form-control-wrapper--size-medium .eds-form-control__append,
760
+ .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
761
+ font-size: 1rem;
762
+ line-height: 1rem;
832
763
  }
833
- .eds-input-panel--medium .eds-input-panel__title {
764
+ .eds-form-control-wrapper--size-large {
765
+ min-height: 4rem;
766
+ }
767
+ .eds-form-control-wrapper--size-large .eds-form-control,
768
+ .eds-form-control-wrapper--size-large .eds-form-control__append,
769
+ .eds-form-control-wrapper--size-large .eds-form-control__prepend {
770
+ font-size: 1.5rem;
771
+ }
772
+ .eds-form-control-wrapper--success {
773
+ border-color: var(--components-form-baseform-standard-border-success);
774
+ }
775
+ .eds-form-control-wrapper--success:focus-within {
776
+ border-color: var(--components-form-baseform-standard-border-success);
777
+ outline-color: var(--components-form-baseform-standard-border-success);
778
+ }
779
+ .eds-contrast .eds-form-control-wrapper--success {
780
+ border-color: var(--components-form-baseform-standard-border-success);
781
+ }
782
+ .eds-contrast .eds-form-control-wrapper--success:focus-within {
783
+ border-color: var(--components-form-baseform-contrast-border-success);
784
+ outline-color: var(--components-form-baseform-contrast-border-success);
785
+ }
786
+ .eds-form-control-wrapper--error, .eds-form-control-wrapper--negative {
787
+ border-color: var(--components-form-baseform-standard-border-negative);
788
+ }
789
+ .eds-form-control-wrapper--error:focus-within, .eds-form-control-wrapper--negative:focus-within {
790
+ border-color: var(--components-form-baseform-standard-border-negative);
791
+ outline-color: var(--components-form-baseform-standard-border-negative);
792
+ }
793
+ .eds-contrast .eds-form-control-wrapper--error, .eds-contrast .eds-form-control-wrapper--negative {
794
+ border-color: var(--components-form-baseform-contrast-border-negative);
795
+ }
796
+ .eds-contrast .eds-form-control-wrapper--error:focus-within, .eds-contrast .eds-form-control-wrapper--negative:focus-within {
797
+ border-color: var(--components-form-baseform-contrast-border-negative);
798
+ outline-color: var(--components-form-baseform-contrast-border-negative);
799
+ }
800
+ .eds-contrast .eds-form-control .eds-tooltip {
801
+ background: var(--components-tooltip-tooltip-standard-fill);
802
+ color: var(--components-tooltip-tooltip-standard-text);
803
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
804
+ }
805
+ .eds-form-control .eds-tooltip::after {
806
+ background: var(--components-tooltip-tooltip-standard-fill);
807
+ }
808
+
809
+ .eds-form-control {
810
+ display: block;
811
+ -webkit-appearance: none;
812
+ -moz-appearance: none;
813
+ appearance: none;
814
+ width: 100%;
815
+ height: 100%;
816
+ padding: 20px 0rem 0.25rem;
817
+ font-family: inherit;
834
818
  font-size: 1rem;
835
- font-weight: 500;
819
+ line-height: 1rem;
820
+ border: 0;
821
+ color: var(--components-form-baseform-standard-text-content);
822
+ background-color: transparent;
836
823
  }
837
- .eds-input-panel--medium.eds-input-panel__container {
838
- padding-bottom: 1rem;
839
- min-height: 3.75rem;
824
+ .eds-form-control::-moz-placeholder {
825
+ opacity: 0;
826
+ -moz-transition: opacity 0.2s ease-in-out;
827
+ transition: opacity 0.2s ease-in-out;
840
828
  }
841
- .eds-input-panel--large.eds-input-panel__container {
842
- min-height: 6rem;
829
+ .eds-form-control::placeholder {
830
+ opacity: 0;
831
+ transition: opacity 0.2s ease-in-out;
843
832
  }
844
- .eds-input-panel--large .eds-input-panel__title {
845
- font-size: 1.25rem;
846
- font-weight: 500;
847
- line-height: 1.875rem;
833
+ .eds-form-control:focus {
834
+ outline: none;
848
835
  }
849
- .eds-input-panel__title-wrapper {
850
- display: flex;
851
- justify-content: space-between;
852
- align-items: center;
836
+ .eds-form-control:focus::-moz-placeholder {
837
+ opacity: 1;
853
838
  }
854
- .eds-input-panel__secondary-label-and-icon-wrapper {
839
+ .eds-form-control:focus::placeholder {
840
+ opacity: 1;
841
+ }
842
+ .eds-form-control__prepend, .eds-form-control__append {
843
+ position: relative;
844
+ line-height: inherit;
845
+ }
846
+ .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
847
+ all: unset;
848
+ position: absolute;
855
849
  display: flex;
856
- justify-content: center;
857
850
  align-items: center;
858
- gap: 0.75rem;
851
+ justify-content: center;
852
+ height: 1.5rem;
853
+ width: 1.5rem;
854
+ right: -2rem;
855
+ border-radius: 100%;
856
+ color: var(--primary-text-color);
857
+ cursor: pointer;
859
858
  }
860
- .eds-input-panel__secondary-label-and-icon-wrapper .eds-checkbox__container {
861
- margin: 0;
859
+ .eds-form-control__prepend {
860
+ margin-right: 0.75rem;
861
+ margin-left: 0;
862
862
  }
863
- .eds-input-panel__additional-content {
864
- margin-top: 0.25rem;
865
- word-wrap: break-word;
863
+ .eds-form-control__append {
864
+ margin-right: 0;
865
+ margin-left: 0.75rem;
866
866
  }
867
867
  /* DO NOT CHANGE!*/
868
868
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */