@entur/form 7.0.35 → 7.0.36

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