@entur/form 7.0.31-beta.0 → 7.0.31

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 +518 -521
  2. package/package.json +6 -6
package/dist/styles.css CHANGED
@@ -1,3 +1,245 @@
1
+ /* DO NOT CHANGE!*/
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
+ }
1
243
  .eds-fieldset {
2
244
  margin: 0;
3
245
  padding: 0;
@@ -219,18 +461,180 @@
219
461
  }
220
462
  /* DO NOT CHANGE!*/
221
463
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
222
- .eds-input-group {
223
- color: inherit;
224
- display: block;
225
- position: relative;
464
+ .eds-input-panel[focus-within] .eds-input-panel__container {
465
+ border-color: #181c56;
466
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
226
467
  }
227
- .eds-input-group__label {
228
- color: #656782;
229
- display: flex;
230
- font-size: 1rem;
231
- position: absolute;
232
- line-height: 1rem;
233
- height: 3rem;
468
+ .eds-input-panel:focus-within .eds-input-panel__container {
469
+ border-color: #181c56;
470
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
471
+ }
472
+ .eds-contrast .eds-input-panel[focus-within] .eds-input-panel__container {
473
+ border-color: #ffffff;
474
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
475
+ }
476
+ .eds-contrast .eds-input-panel:focus-within .eds-input-panel__container {
477
+ border-color: #ffffff;
478
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
479
+ }
480
+ .eds-input-panel > input {
481
+ position: absolute;
482
+ opacity: 0;
483
+ cursor: pointer;
484
+ height: 0;
485
+ width: 0;
486
+ }
487
+ .eds-input-panel > input:checked + .eds-input-panel__container {
488
+ border-color: #181c56;
489
+ background: #f5f5f8;
490
+ }
491
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container {
492
+ border-color: #aeb7e2;
493
+ background: #393d79;
494
+ }
495
+ .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
496
+ width: 0.75rem;
497
+ height: 0.75rem;
498
+ }
499
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
500
+ background-color: #ffffff;
501
+ }
502
+ .eds-input-panel > input:checked + .eds-input-panel__container:hover {
503
+ background-color: #ebebf1;
504
+ border: 0.125rem solid #babbcf;
505
+ /* The following styling is needed to sync the inner checkbox/radiobutton's
506
+ hover state styling with the inputPanel container */
507
+ }
508
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover {
509
+ background: #54568c;
510
+ }
511
+ .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
512
+ background-color: #d1d4e3;
513
+ border-color: #292b6a;
514
+ }
515
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
516
+ background-color: rgba(174, 183, 226, 0.2);
517
+ border-color: #b6bee5;
518
+ }
519
+ .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio .eds-form-component--radio__circle {
520
+ background-color: #292b6a;
521
+ }
522
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio .eds-form-component--radio__circle {
523
+ background-color: #ffffff;
524
+ }
525
+ .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
526
+ background-color: #292b6a;
527
+ border-color: transparent;
528
+ }
529
+ .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
530
+ background-color: #b6bee5;
531
+ }
532
+ .eds-input-panel__container {
533
+ background: #ffffff;
534
+ border: 0.125rem solid #babbcf;
535
+ border-radius: 0.25rem;
536
+ display: flex;
537
+ flex-direction: column;
538
+ justify-content: flex-start;
539
+ min-width: 20rem;
540
+ position: relative;
541
+ padding: 1rem;
542
+ -webkit-user-select: none;
543
+ -moz-user-select: none;
544
+ user-select: none;
545
+ width: -moz-fit-content;
546
+ width: fit-content;
547
+ transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
548
+ }
549
+ .eds-contrast .eds-input-panel__container {
550
+ background-color: transparent;
551
+ border-color: #aeb7e2;
552
+ }
553
+ .eds-input-panel__container:hover {
554
+ background-color: #ebebf1;
555
+ /* The following styling is needed to sync the inner checkbox/radiobutton's
556
+ hover state styling with the inputPanel container */
557
+ }
558
+ .eds-contrast .eds-input-panel__container:hover {
559
+ background-color: #54568c;
560
+ }
561
+ .eds-input-panel__container:hover .eds-checkbox__icon,
562
+ .eds-input-panel__container:hover .eds-form-component--radio__radio {
563
+ border-color: #292b6a;
564
+ background-color: #d1d4e3;
565
+ }
566
+ .eds-contrast .eds-input-panel__container:hover .eds-checkbox__icon,
567
+ .eds-contrast .eds-input-panel__container:hover .eds-form-component--radio__radio {
568
+ border-color: #b6bee5;
569
+ background-color: rgba(174, 183, 226, 0.2);
570
+ }
571
+ input:disabled + .eds-input-panel__container {
572
+ background: #f3f3f3;
573
+ border-color: #f3f3f3;
574
+ color: #656782;
575
+ pointer-events: none;
576
+ }
577
+ .eds-contrast input:disabled + .eds-input-panel__container {
578
+ background: #181c56;
579
+ border-style: dashed;
580
+ border-color: #54568c;
581
+ color: #babbcf;
582
+ }
583
+ .eds-input-panel__container .eds-checkbox__icon,
584
+ .eds-input-panel__container .eds-checkbox__icon .eds-checkbox__icon,
585
+ .eds-input-panel__container .eds-form-component--radio__radio {
586
+ width: 1.5rem;
587
+ height: 1.5rem;
588
+ margin-right: 0;
589
+ }
590
+ .eds-input-panel--medium .eds-input-panel__title {
591
+ font-size: 1rem;
592
+ font-weight: 500;
593
+ }
594
+ .eds-input-panel--medium.eds-input-panel__container {
595
+ padding-bottom: 1rem;
596
+ min-height: 3.75rem;
597
+ }
598
+ .eds-input-panel--large.eds-input-panel__container {
599
+ min-height: 6rem;
600
+ }
601
+ .eds-input-panel--large .eds-input-panel__title {
602
+ font-size: 1.25rem;
603
+ font-weight: 500;
604
+ line-height: 1.875rem;
605
+ }
606
+ .eds-input-panel__title-wrapper {
607
+ display: flex;
608
+ justify-content: space-between;
609
+ align-items: center;
610
+ }
611
+ .eds-input-panel__secondary-label-and-icon-wrapper {
612
+ display: flex;
613
+ justify-content: center;
614
+ align-items: center;
615
+ gap: 0.75rem;
616
+ }
617
+ .eds-input-panel__secondary-label-and-icon-wrapper .eds-checkbox__container {
618
+ margin: 0;
619
+ }
620
+ .eds-input-panel__additional-content {
621
+ margin-top: 0.25rem;
622
+ word-wrap: break-word;
623
+ }
624
+ /* DO NOT CHANGE!*/
625
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
626
+ .eds-input-group {
627
+ color: inherit;
628
+ display: block;
629
+ position: relative;
630
+ }
631
+ .eds-input-group__label {
632
+ color: #656782;
633
+ display: flex;
634
+ font-size: 1rem;
635
+ position: absolute;
636
+ line-height: 1rem;
637
+ height: 3rem;
234
638
  padding: 1rem;
235
639
  padding-left: 0;
236
640
  margin-left: 1rem;
@@ -300,383 +704,53 @@
300
704
  display: flex;
301
705
  align-items: center;
302
706
  cursor: help;
303
- font-size: 1rem;
304
- }
305
-
306
- .eds-form-control-wrapper[focus-within] .eds-input-group__label {
307
- top: 0.375rem;
308
- font-size: 0.75rem;
309
- line-height: 0.75rem;
310
- height: 10px;
311
- padding: 0;
312
- margin-left: 1rem;
313
- }
314
-
315
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
316
- top: 0.375rem;
317
- font-size: 0.75rem;
318
- line-height: 0.75rem;
319
- height: 10px;
320
- padding: 0;
321
- margin-left: 1rem;
322
- }
323
- .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
324
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
325
- background: var(--textarea-label-background);
326
- width: calc(
327
- 100% - 1rem - 1rem - 4px
328
- );
329
- }
330
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
331
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
332
- background: var(--textarea-label-background);
333
- width: calc(
334
- 100% - 1rem - 1rem - 4px
335
- );
336
- }
337
- .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
338
- top: 0.5rem;
339
- font-size: 0.875rem;
340
- line-height: 1rem;
341
- padding: 0;
342
- margin-left: 1rem;
343
- }
344
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
345
- top: 0.5rem;
346
- font-size: 0.875rem;
347
- line-height: 1rem;
348
- padding: 0;
349
- margin-left: 1rem;
350
- }
351
- /* DO NOT CHANGE!*/
352
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
353
- .eds-form-control-wrapper {
354
- --border-color: #7C7F9F;
355
- --border-color-hover: #aeb7e2;
356
- align-items: center;
357
- background-color: #ffffff;
358
- border-radius: 0.25rem;
359
- border: 0.125rem solid var(--border-color);
360
- box-shadow: 0 0 0 transparent;
361
- color: #181c56;
362
- display: flex;
363
- position: relative;
364
- width: 100%;
365
- min-height: 3rem;
366
- transition: border-color 0.1s ease-in-out;
367
- --textarea-label-background: t.$colors-brand-white;
368
- /*
369
- Some input controls require a darker design while inside a contrast block.
370
- These elements require the `--dark` modifier, even on the wrapper.
371
- */
372
- }
373
- .eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
374
- --border-color: #181c56;
375
- }
376
- .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
377
- --border-color: #181c56;
378
- }
379
- .eds-contrast .eds-form-control-wrapper:hover {
380
- --border-color: #aeb7e2;
381
- }
382
- .eds-form-control-wrapper[focus-within] {
383
- box-shadow: inset 0 0 0 1px var(--border-color);
384
- }
385
- .eds-form-control-wrapper:focus-within {
386
- box-shadow: inset 0 0 0 1px var(--border-color);
387
- }
388
- .eds-contrast .eds-form-control-wrapper[focus-within] {
389
- --border-color: #181c56;
390
- box-shadow: 0 0 0 0.125rem #aeb7e2;
391
- }
392
- .eds-contrast .eds-form-control-wrapper:focus-within {
393
- --border-color: #181c56;
394
- box-shadow: 0 0 0 0.125rem #aeb7e2;
395
- }
396
- .eds-form-control-wrapper ::-moz-placeholder {
397
- color: #656782;
398
- }
399
- .eds-form-control-wrapper ::placeholder {
400
- color: #656782;
401
- }
402
- .eds-form-control-wrapper--disabled {
403
- --border-color: transparent;
404
- background-color: #e9e9e9;
405
- pointer-events: none;
406
- color: #646464;
407
- }
408
- .eds-form-control-wrapper--disabled .eds-input-group__label {
409
- color: #646464;
410
- }
411
- .eds-contrast .eds-form-control-wrapper--disabled {
412
- background: #292b6a;
413
- color: #8285a8;
414
- }
415
- .eds-contrast .eds-form-control-wrapper--disabled .eds-input-group__label {
416
- color: #8285a8;
417
- }
418
- .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
419
- display: none;
420
- }
421
- .eds-form-control-wrapper--readonly {
422
- --border-color: transparent;
423
- --textarea-label-background: t.$colors-greys-grey90;
424
- pointer-events: none;
425
- cursor: default;
426
- background: #f8f8f8;
427
- }
428
- .eds-contrast .eds-form-control-wrapper--readonly {
429
- --textarea-label-background: t.$colors-blues-blue10;
430
- background: #292b6a;
431
- color: #ffffff;
432
- }
433
- .eds-contrast .eds-form-control-wrapper--readonly .eds-input-group__label {
434
- color: #aeb7e2;
435
- }
436
- .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
437
- display: none;
438
- }
439
- .eds-form-control-wrapper--size-medium .eds-form-control,
440
- .eds-form-control-wrapper--size-medium .eds-form-control__append,
441
- .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
442
- font-size: 1rem;
443
- line-height: 1rem;
444
- }
445
- .eds-form-control-wrapper--size-large {
446
- min-height: 4rem;
447
- padding: 0 0.5rem;
448
- }
449
- .eds-form-control-wrapper--size-large::before, .eds-form-control-wrapper--size-large::after {
450
- border-width: 0.25rem;
451
- }
452
- .eds-form-control-wrapper--size-large .eds-form-control,
453
- .eds-form-control-wrapper--size-large .eds-form-control__append,
454
- .eds-form-control-wrapper--size-large .eds-form-control__prepend {
455
- font-size: 1.5rem;
456
- line-height: 2.25rem;
457
- }
458
- .eds-form-control-wrapper--success {
459
- border-color: #1a8e60;
460
- --border-color: #1a8e60;
461
- }
462
- .eds-form-control-wrapper--success:hover {
463
- border-color: #5ac39a;
464
- }
465
- .eds-form-control-wrapper--success[focus-within] {
466
- border-color: #1a8e60;
467
- }
468
- .eds-form-control-wrapper--success:focus-within {
469
- border-color: #1a8e60;
470
- }
471
- .eds-contrast .eds-form-control-wrapper--success {
472
- border-color: #5ac39a;
473
- --border-color: #5ac39a;
474
- }
475
- .eds-contrast .eds-form-control-wrapper--success:hover {
476
- border-color: #1a8e60;
477
- }
478
- .eds-contrast .eds-form-control-wrapper--success[focus-within] {
479
- --border-color: #5ac39a;
480
- border-color: #181c56;
481
- }
482
- .eds-contrast .eds-form-control-wrapper--success:focus-within {
483
- --border-color: #5ac39a;
484
- border-color: #181c56;
485
- }
486
- .eds-form-control-wrapper--error {
487
- border-color: #d31b1b;
488
- --border-color: #d31b1b;
489
- }
490
- .eds-form-control-wrapper--error:hover {
491
- border-color: #ff9494;
492
- }
493
- .eds-form-control-wrapper--error[focus-within] {
494
- border-color: #d31b1b;
495
- }
496
- .eds-form-control-wrapper--error:focus-within {
497
- border-color: #d31b1b;
498
- }
499
- .eds-contrast .eds-form-control-wrapper--error {
500
- border-color: #ff9494;
501
- --border-color: #ff9494;
502
- }
503
- .eds-contrast .eds-form-control-wrapper--error:hover {
504
- border-color: #d31b1b;
505
- }
506
- .eds-contrast .eds-form-control-wrapper--error[focus-within] {
507
- border-color: #181c56;
508
- --border-color: #ff9494;
509
- }
510
- .eds-contrast .eds-form-control-wrapper--error:focus-within {
511
- border-color: #181c56;
512
- --border-color: #ff9494;
513
- }
514
- .eds-contrast .eds-form-control-wrapper--dark {
515
- background-color: #181c56;
516
- color: #ffffff;
517
- }
518
- .eds-contrast .eds-form-control-wrapper--dark ::-moz-placeholder {
519
- color: #aeb7e2;
520
- }
521
- .eds-contrast .eds-form-control-wrapper--dark ::placeholder {
522
- color: #aeb7e2;
523
- }
524
- .eds-contrast .eds-form-control-wrapper--dark:hover {
525
- border-color: #aeb7e2;
526
- }
527
- .eds-contrast .eds-form-control-wrapper--dark[focus-within] {
528
- background-color: #292b6a;
529
- border-color: #aeb7e2;
530
- }
531
- .eds-contrast .eds-form-control-wrapper--dark:focus-within {
532
- background-color: #292b6a;
533
- border-color: #aeb7e2;
534
- }
535
- .eds-contrast .eds-form-control-wrapper--dark * {
536
- background-color: transparent;
537
- color: inherit;
538
- }
539
- .eds-contrast .eds-form-control-wrapper--dark.eds-form-control-wrapper--disabled {
540
- background-color: #292b6a;
541
- color: #8285a8;
542
- }
543
-
544
- .eds-form-control {
545
- -webkit-appearance: none;
546
- -moz-appearance: none;
547
- appearance: none;
548
- background-color: transparent;
549
- border: 0;
550
- color: inherit;
551
- display: block;
552
- font-family: inherit;
553
- line-height: 1rem;
554
- font-size: 1rem;
555
- padding: 20px 1rem 0.25rem;
556
- width: 100%;
557
- }
558
- .eds-form-control::-moz-placeholder {
559
- opacity: 0;
560
- -moz-transition: opacity 0.2s ease-in-out;
561
- transition: opacity 0.2s ease-in-out;
562
- }
563
- .eds-form-control::placeholder {
564
- opacity: 0;
565
- transition: opacity 0.2s ease-in-out;
566
- }
567
- .eds-form-control:focus {
568
- outline: none;
569
- }
570
- .eds-form-control:focus::-moz-placeholder {
571
- opacity: 1;
572
- }
573
- .eds-form-control:focus::placeholder {
574
- opacity: 1;
575
- }
576
- .eds-form-control__prepend, .eds-form-control__append {
577
- position: relative;
578
- margin: 0 1rem;
579
- line-height: inherit;
580
- }
581
- .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
582
- position: static;
583
- }
584
- .eds-form-control__prepend svg, .eds-form-control__append svg {
585
- top: 0.125rem;
586
- }
587
- .eds-form-control__prepend {
588
- margin-right: 0;
589
- }
590
- .eds-form-control__append {
591
- margin-left: 0;
592
- }
593
- /* DO NOT CHANGE!*/
594
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
595
- .eds-form-component--radio__container {
596
- display: flex;
597
- justify-content: center;
598
- align-items: center;
599
- position: relative;
600
- cursor: pointer;
601
- height: 2rem;
602
- width: -moz-fit-content;
603
- width: fit-content;
604
- -webkit-user-select: none;
605
- -moz-user-select: none;
606
- user-select: none;
607
- }
608
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
609
- border-color: #54568c;
610
- }
611
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
612
- background-color: #54568c;
613
- }
614
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
615
- border-color: #8285a8;
616
- }
617
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
618
- background-color: #8285a8;
619
- }
620
- .eds-form-component--radio__container input {
621
- position: absolute;
622
- opacity: 0;
623
- cursor: pointer;
624
- height: 0;
625
- width: 0;
626
- }
627
- .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
628
- height: 0.625rem;
629
- width: 0.625rem;
630
- }
631
- .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
632
- outline: none;
633
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
634
- outline-offset: 0.125rem;
635
- }
636
- .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
637
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
638
- }
639
- .eds-form-component--radio__container .eds-form-component--radio__radio {
640
- position: relative;
641
- height: 1.25rem;
642
- width: 1.25rem;
643
- margin-right: 1rem;
644
- background-color: #ffffff;
645
- border: 0.125rem solid #181c56;
646
- border-radius: 50%;
647
- display: flex;
648
- align-items: center;
649
- justify-content: center;
650
- }
651
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
652
- background-color: #181c56;
653
- border-color: #aeb7e2;
654
- }
655
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
656
- background: #d1d3d3;
657
- border-color: #d1d3d3;
658
- cursor: not-allowed;
707
+ font-size: 1rem;
659
708
  }
660
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
661
- border-color: #d1d3d3;
709
+
710
+ .eds-form-control-wrapper[focus-within] .eds-input-group__label {
711
+ top: 0.375rem;
712
+ font-size: 0.75rem;
713
+ line-height: 0.75rem;
714
+ height: 10px;
715
+ padding: 0;
716
+ margin-left: 1rem;
662
717
  }
663
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
664
- background: #d1d3d3;
665
- border-color: #d1d3d3;
718
+
719
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
720
+ top: 0.375rem;
721
+ font-size: 0.75rem;
722
+ line-height: 0.75rem;
723
+ height: 10px;
724
+ padding: 0;
725
+ margin-left: 1rem;
666
726
  }
667
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
668
- color: #656782;
727
+ .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
728
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
729
+ background: var(--textarea-label-background);
730
+ width: calc(
731
+ 100% - 1rem - 1rem - 4px
732
+ );
669
733
  }
670
- .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
671
- display: block;
672
- width: 0;
673
- height: 0;
674
- border-radius: 50%;
675
- background-color: #181c56;
676
- transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
734
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
735
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
736
+ background: var(--textarea-label-background);
737
+ width: calc(
738
+ 100% - 1rem - 1rem - 4px
739
+ );
677
740
  }
678
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
679
- background-color: #aeb7e2;
741
+ .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
742
+ top: 0.5rem;
743
+ font-size: 0.875rem;
744
+ line-height: 1rem;
745
+ padding: 0;
746
+ margin-left: 1rem;
747
+ }
748
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
749
+ top: 0.5rem;
750
+ font-size: 0.875rem;
751
+ line-height: 1rem;
752
+ padding: 0;
753
+ margin-left: 1rem;
680
754
  }
681
755
  /* DO NOT CHANGE!*/
682
756
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -799,168 +873,91 @@
799
873
  }
800
874
  /* DO NOT CHANGE!*/
801
875
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
802
- .eds-input-panel[focus-within] .eds-input-panel__container {
803
- border-color: #181c56;
804
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
876
+ .eds-form-component--radio__container {
877
+ display: flex;
878
+ justify-content: center;
879
+ align-items: center;
880
+ position: relative;
881
+ cursor: pointer;
882
+ height: 2rem;
883
+ width: -moz-fit-content;
884
+ width: fit-content;
885
+ -webkit-user-select: none;
886
+ -moz-user-select: none;
887
+ user-select: none;
805
888
  }
806
- .eds-input-panel:focus-within .eds-input-panel__container {
807
- border-color: #181c56;
808
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
889
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
890
+ border-color: #54568c;
809
891
  }
810
- .eds-contrast .eds-input-panel[focus-within] .eds-input-panel__container {
811
- border-color: #ffffff;
812
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
892
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
893
+ background-color: #54568c;
813
894
  }
814
- .eds-contrast .eds-input-panel:focus-within .eds-input-panel__container {
815
- border-color: #ffffff;
816
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
895
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
896
+ border-color: #8285a8;
817
897
  }
818
- .eds-input-panel > input {
898
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
899
+ background-color: #8285a8;
900
+ }
901
+ .eds-form-component--radio__container input {
819
902
  position: absolute;
820
903
  opacity: 0;
821
904
  cursor: pointer;
822
905
  height: 0;
823
906
  width: 0;
824
907
  }
825
- .eds-input-panel > input:checked + .eds-input-panel__container {
826
- border-color: #181c56;
827
- background: #f5f5f8;
828
- }
829
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container {
830
- border-color: #aeb7e2;
831
- background: #393d79;
832
- }
833
- .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
834
- width: 0.75rem;
835
- height: 0.75rem;
836
- }
837
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
838
- background-color: #ffffff;
839
- }
840
- .eds-input-panel > input:checked + .eds-input-panel__container:hover {
841
- background-color: #ebebf1;
842
- border: 0.125rem solid #babbcf;
843
- /* The following styling is needed to sync the inner checkbox/radiobutton's
844
- hover state styling with the inputPanel container */
845
- }
846
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover {
847
- background: #54568c;
848
- }
849
- .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
850
- background-color: #d1d4e3;
851
- border-color: #292b6a;
908
+ .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
909
+ height: 0.625rem;
910
+ width: 0.625rem;
852
911
  }
853
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
854
- background-color: rgba(174, 183, 226, 0.2);
855
- border-color: #b6bee5;
912
+ .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
913
+ outline: none;
914
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
915
+ outline-offset: 0.125rem;
856
916
  }
857
- .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio .eds-form-component--radio__circle {
858
- background-color: #292b6a;
917
+ .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
918
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
859
919
  }
860
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio .eds-form-component--radio__circle {
920
+ .eds-form-component--radio__container .eds-form-component--radio__radio {
921
+ position: relative;
922
+ height: 1.25rem;
923
+ width: 1.25rem;
924
+ margin-right: 1rem;
861
925
  background-color: #ffffff;
862
- }
863
- .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
864
- background-color: #292b6a;
865
- border-color: transparent;
866
- }
867
- .eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
868
- background-color: #b6bee5;
869
- }
870
- .eds-input-panel__container {
871
- background: #ffffff;
872
- border: 0.125rem solid #babbcf;
873
- border-radius: 0.25rem;
926
+ border: 0.125rem solid #181c56;
927
+ border-radius: 50%;
874
928
  display: flex;
875
- flex-direction: column;
876
- justify-content: flex-start;
877
- min-width: 20rem;
878
- position: relative;
879
- padding: 1rem;
880
- -webkit-user-select: none;
881
- -moz-user-select: none;
882
- user-select: none;
883
- width: -moz-fit-content;
884
- width: fit-content;
885
- transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
929
+ align-items: center;
930
+ justify-content: center;
886
931
  }
887
- .eds-contrast .eds-input-panel__container {
888
- background-color: transparent;
932
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
933
+ background-color: #181c56;
889
934
  border-color: #aeb7e2;
890
935
  }
891
- .eds-input-panel__container:hover {
892
- background-color: #ebebf1;
893
- /* The following styling is needed to sync the inner checkbox/radiobutton's
894
- hover state styling with the inputPanel container */
895
- }
896
- .eds-contrast .eds-input-panel__container:hover {
897
- background-color: #54568c;
936
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
937
+ background: #d1d3d3;
938
+ border-color: #d1d3d3;
939
+ cursor: not-allowed;
898
940
  }
899
- .eds-input-panel__container:hover .eds-checkbox__icon,
900
- .eds-input-panel__container:hover .eds-form-component--radio__radio {
901
- border-color: #292b6a;
902
- background-color: #d1d4e3;
941
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
942
+ border-color: #d1d3d3;
903
943
  }
904
- .eds-contrast .eds-input-panel__container:hover .eds-checkbox__icon,
905
- .eds-contrast .eds-input-panel__container:hover .eds-form-component--radio__radio {
906
- border-color: #b6bee5;
907
- background-color: rgba(174, 183, 226, 0.2);
944
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
945
+ background: #d1d3d3;
946
+ border-color: #d1d3d3;
908
947
  }
909
- input:disabled + .eds-input-panel__container {
910
- background: #f3f3f3;
911
- border-color: #f3f3f3;
948
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
912
949
  color: #656782;
913
- pointer-events: none;
914
- }
915
- .eds-contrast input:disabled + .eds-input-panel__container {
916
- background: #181c56;
917
- border-style: dashed;
918
- border-color: #54568c;
919
- color: #babbcf;
920
- }
921
- .eds-input-panel__container .eds-checkbox__icon,
922
- .eds-input-panel__container .eds-checkbox__icon .eds-checkbox__icon,
923
- .eds-input-panel__container .eds-form-component--radio__radio {
924
- width: 1.5rem;
925
- height: 1.5rem;
926
- margin-right: 0;
927
- }
928
- .eds-input-panel--medium .eds-input-panel__title {
929
- font-size: 1rem;
930
- font-weight: 500;
931
- }
932
- .eds-input-panel--medium.eds-input-panel__container {
933
- padding-bottom: 1rem;
934
- min-height: 3.75rem;
935
- }
936
- .eds-input-panel--large.eds-input-panel__container {
937
- min-height: 6rem;
938
950
  }
939
- .eds-input-panel--large .eds-input-panel__title-wrapper {
940
- height: 2rem;
941
- }
942
- .eds-input-panel--large .eds-input-panel__title {
943
- font-size: 1.25rem;
944
- font-weight: 500;
945
- line-height: 1.875rem;
946
- }
947
- .eds-input-panel__title-wrapper {
948
- display: flex;
949
- justify-content: space-between;
950
- align-items: center;
951
- }
952
- .eds-input-panel__secondary-label-and-icon-wrapper {
953
- display: flex;
954
- justify-content: center;
955
- align-items: center;
956
- gap: 0.75rem;
957
- }
958
- .eds-input-panel__secondary-label-and-icon-wrapper .eds-checkbox__container {
959
- margin: 0;
951
+ .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
952
+ display: block;
953
+ width: 0;
954
+ height: 0;
955
+ border-radius: 50%;
956
+ background-color: #181c56;
957
+ transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
960
958
  }
961
- .eds-input-panel__additional-content {
962
- margin-top: 0.25rem;
963
- word-wrap: break-word;
959
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
960
+ background-color: #aeb7e2;
964
961
  }
965
962
  /* DO NOT CHANGE!*/
966
963
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/form",
3
- "version": "7.0.31-beta.0",
3
+ "version": "7.0.31",
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.13.1-beta.0",
31
- "@entur/tokens": "^3.11.2-beta.0",
32
- "@entur/tooltip": "^2.6.40-beta.0",
33
- "@entur/typography": "^1.8.19-beta.0",
30
+ "@entur/icons": "^6.13.1",
31
+ "@entur/tokens": "^3.11.2",
32
+ "@entur/tooltip": "^2.6.40",
33
+ "@entur/typography": "^1.8.19",
34
34
  "@entur/utils": "^0.9.5",
35
35
  "classnames": "^2.3.1"
36
36
  },
37
- "gitHead": "c312024e8f66298e0f6d4cf85849572f38b15d53"
37
+ "gitHead": "c3e894aeae7247bdaf3ec8636fade3301e605c0e"
38
38
  }