@entur/form 8.3.2-beta.7 → 8.3.2-beta.8

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