@entur/form 5.3.6 → 5.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.3.7](https://bitbucket.org/enturas/design-system/compare/@entur/form@5.3.6...@entur/form@5.3.7) (2022-06-24)
7
+
8
+ **Note:** Version bump only for package @entur/form
9
+
6
10
  ## [5.3.6](https://bitbucket.org/enturas/design-system/compare/@entur/form@5.3.5...@entur/form@5.3.6) (2022-06-02)
7
11
 
8
12
  **Note:** Version bump only for package @entur/form
package/dist/styles.css CHANGED
@@ -11,6 +11,199 @@
11
11
  margin: 0 0 0.5rem;
12
12
  }/* DO NOT CHANGE!*/
13
13
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
14
+ .eds-feedback-text {
15
+ display: flex;
16
+ align-items: center;
17
+ margin-top: 0.25rem;
18
+ }
19
+ .eds-feedback-text--info {
20
+ padding-left: calc(1rem + 0.125rem);
21
+ }
22
+ .eds-feedback-text__text {
23
+ color: #181c56;
24
+ }
25
+ .eds-contrast .eds-feedback-text__text {
26
+ color: #ffffff;
27
+ }
28
+
29
+ .eds-feedback-text__icon {
30
+ font-size: 1.5rem;
31
+ min-height: 1.5rem;
32
+ min-width: 1.5rem;
33
+ padding-right: 0.5rem;
34
+ position: relative;
35
+ top: -0.1rem;
36
+ }
37
+ .eds-feedback-text__icon--success {
38
+ color: #1a8e60;
39
+ }
40
+ .eds-contrast .eds-feedback-text__icon--success {
41
+ color: #5ac39a;
42
+ }
43
+ .eds-feedback-text__icon--error {
44
+ color: #d31b1b;
45
+ }
46
+ .eds-contrast .eds-feedback-text__icon--error {
47
+ color: #ff9494;
48
+ }
49
+ .eds-feedback-text__icon--info {
50
+ color: #0082b9;
51
+ }
52
+ .eds-contrast .eds-feedback-text__icon--info {
53
+ color: #64b3e7;
54
+ }
55
+ .eds-feedback-text__icon--warning.eds-icon__ValidationExclamationIcon {
56
+ color: #ffca28;
57
+ }
58
+ .eds-feedback-text__icon--warning.eds-icon__ValidationExclamationIcon circle {
59
+ color: #181c56;
60
+ fill-opacity: 1;
61
+ }
62
+ .eds-contrast .eds-feedback-text__icon--warning.eds-icon__ValidationExclamationIcon {
63
+ color: #ffe082;
64
+ }
65
+ .eds-contrast .eds-feedback-text__icon--warning.eds-icon__ValidationExclamationIcon circle {
66
+ fill-opacity: 0;
67
+ }/* DO NOT CHANGE!*/
68
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
69
+ .eds-checkbox__container {
70
+ display: flex;
71
+ align-items: center;
72
+ position: relative;
73
+ -webkit-appearance: none;
74
+ -moz-appearance: none;
75
+ appearance: none;
76
+ cursor: pointer;
77
+ height: 2rem;
78
+ -webkit-user-select: none;
79
+ -moz-user-select: none;
80
+ -ms-user-select: none;
81
+ user-select: none;
82
+ width: -webkit-fit-content;
83
+ width: -moz-fit-content;
84
+ width: fit-content;
85
+ }
86
+ .eds-checkbox__container--reduced-click-area {
87
+ height: -webkit-fit-content;
88
+ height: -moz-fit-content;
89
+ height: fit-content;
90
+ }
91
+ .eds-checkbox__container input {
92
+ position: absolute;
93
+ opacity: 0;
94
+ height: 0;
95
+ width: 0;
96
+ }
97
+ .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
98
+ background-color: #181c56;
99
+ }
100
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
101
+ visibility: visible;
102
+ }
103
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon__path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon__path {
104
+ stroke: #ffffff;
105
+ -webkit-animation: stroke ease-in-out 0.2s 0.1s forwards;
106
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
107
+ }
108
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
109
+ opacity: 0.5;
110
+ }
111
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled .eds-checkbox-icon__path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled .eds-checkbox-icon__path {
112
+ opacity: 0.5;
113
+ }
114
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
115
+ background: #54568c;
116
+ }
117
+ .eds-checkbox__container:hover input + .eds-checkbox__icon {
118
+ border-color: #54568c;
119
+ background: #f3f3f3;
120
+ }
121
+ .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
122
+ border-color: #656782;
123
+ background: #292b6a;
124
+ }
125
+ .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
126
+ .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
127
+ border-color: #54568c;
128
+ background-color: #54568c;
129
+ }
130
+ .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
131
+ .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
132
+ background: #8285a8;
133
+ border-color: #8285a8;
134
+ }
135
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
136
+ .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
137
+ outline: none;
138
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
139
+ outline-offset: 0.125rem;
140
+ }
141
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
142
+ .eds-checkbox__container :focus-within + .eds-checkbox__icon {
143
+ outline: none;
144
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
145
+ outline-offset: 0.125rem;
146
+ }
147
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
148
+ .eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
149
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
150
+ }
151
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
152
+ .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
153
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
154
+ }
155
+ .eds-checkbox--disabled {
156
+ pointer-events: none;
157
+ }
158
+ .eds-checkbox--disabled .eds-checkbox__label {
159
+ opacity: 0.5;
160
+ }
161
+ .eds-checkbox--disabled .eds-checkbox__icon {
162
+ opacity: 0.5;
163
+ }
164
+ .eds-checkbox__icon {
165
+ display: inline-flex;
166
+ justify-content: center;
167
+ align-items: center;
168
+ position: relative;
169
+ margin-right: 1rem;
170
+ height: 1.25rem;
171
+ width: 1.25rem;
172
+ border: 0.125rem solid #181c56;
173
+ border-radius: 0.0625rem;
174
+ background-color: transparent;
175
+ color: #ffffff;
176
+ }
177
+ .eds-checkbox__icon--reduced-click-area {
178
+ margin-right: 0;
179
+ }
180
+ .eds-contrast .eds-checkbox__icon {
181
+ border-color: #54568c;
182
+ }
183
+ .eds-checkbox__icon .eds-checkbox-icon {
184
+ height: 1rem;
185
+ width: 1rem;
186
+ visibility: hidden;
187
+ }
188
+ .eds-checkbox__icon .eds-checkbox-icon__path {
189
+ transform-origin: 50% 50%;
190
+ stroke-dasharray: 48;
191
+ stroke-dashoffset: 48;
192
+ stroke-width: 0.375rem;
193
+ }
194
+
195
+ @-webkit-keyframes stroke {
196
+ 100% {
197
+ stroke-dashoffset: 0;
198
+ }
199
+ }
200
+
201
+ @keyframes stroke {
202
+ 100% {
203
+ stroke-dashoffset: 0;
204
+ }
205
+ }/* DO NOT CHANGE!*/
206
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
14
207
  .eds-form-control-wrapper {
15
208
  --border-color: #181c56;
16
209
  --border-color-hover: #aeb7e2;
@@ -267,142 +460,219 @@
267
460
  margin-left: 0;
268
461
  }/* DO NOT CHANGE!*/
269
462
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
270
- .eds-checkbox__container {
463
+ .eds-form-component--radio__container {
271
464
  display: flex;
465
+ justify-content: center;
272
466
  align-items: center;
273
467
  position: relative;
274
- -webkit-appearance: none;
275
- -moz-appearance: none;
276
- appearance: none;
277
468
  cursor: pointer;
278
469
  height: 2rem;
470
+ width: -webkit-fit-content;
471
+ width: -moz-fit-content;
472
+ width: fit-content;
279
473
  -webkit-user-select: none;
280
474
  -moz-user-select: none;
281
475
  -ms-user-select: none;
282
476
  user-select: none;
283
- width: -webkit-fit-content;
284
- width: -moz-fit-content;
285
- width: fit-content;
286
477
  }
287
- .eds-checkbox__container--reduced-click-area {
288
- height: -webkit-fit-content;
289
- height: -moz-fit-content;
290
- height: fit-content;
478
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
479
+ border-color: #54568c;
291
480
  }
292
- .eds-checkbox__container input {
481
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
482
+ background-color: #54568c;
483
+ }
484
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
485
+ border-color: #8285a8;
486
+ }
487
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
488
+ background-color: #8285a8;
489
+ }
490
+ .eds-form-component--radio__container input {
293
491
  position: absolute;
294
492
  opacity: 0;
493
+ cursor: pointer;
295
494
  height: 0;
296
495
  width: 0;
297
496
  }
298
- .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
299
- background-color: #181c56;
300
- }
301
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
302
- visibility: visible;
497
+ .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
498
+ height: 0.625rem;
499
+ width: 0.625rem;
303
500
  }
304
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon__path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon__path {
305
- stroke: #ffffff;
306
- -webkit-animation: stroke ease-in-out 0.2s 0.1s forwards;
307
- animation: stroke ease-in-out 0.2s 0.1s forwards;
501
+ .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
502
+ outline: none;
503
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
504
+ outline-offset: 0.125rem;
308
505
  }
309
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
310
- opacity: 0.5;
506
+ .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
507
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
311
508
  }
312
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled .eds-checkbox-icon__path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled .eds-checkbox-icon__path {
313
- opacity: 0.5;
509
+ .eds-form-component--radio__container .eds-form-component--radio__radio {
510
+ position: relative;
511
+ height: 1.25rem;
512
+ width: 1.25rem;
513
+ margin-right: 1rem;
514
+ background-color: #ffffff;
515
+ border: 0.125rem solid #181c56;
516
+ border-radius: 50%;
517
+ display: flex;
518
+ align-items: center;
519
+ justify-content: center;
314
520
  }
315
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
316
- background: #54568c;
521
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
522
+ background-color: #181c56;
523
+ border-color: #aeb7e2;
317
524
  }
318
- .eds-checkbox__container:hover input + .eds-checkbox__icon {
319
- border-color: #54568c;
320
- background: #f3f3f3;
525
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
526
+ background: #d1d3d3;
527
+ border-color: #d1d3d3;
528
+ cursor: not-allowed;
321
529
  }
322
- .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
323
- border-color: #656782;
324
- background: #292b6a;
530
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
531
+ border-color: #d1d3d3;
325
532
  }
326
- .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
327
- .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
328
- border-color: #54568c;
329
- background-color: #54568c;
533
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
534
+ background: #d1d3d3;
535
+ border-color: #d1d3d3;
330
536
  }
331
- .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
332
- .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
333
- background: #8285a8;
334
- border-color: #8285a8;
537
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
538
+ color: #656782;
335
539
  }
336
- .eds-checkbox__container:focus + .eds-checkbox__icon,
337
- .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
338
- outline: none;
339
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
340
- outline-offset: 0.125rem;
540
+ .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
541
+ display: block;
542
+ width: 0;
543
+ height: 0;
544
+ border-radius: 50%;
545
+ background-color: #181c56;
546
+ transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
341
547
  }
342
- .eds-checkbox__container:focus + .eds-checkbox__icon,
343
- .eds-checkbox__container :focus-within + .eds-checkbox__icon {
344
- outline: none;
345
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
346
- outline-offset: 0.125rem;
548
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
549
+ background-color: #aeb7e2;
550
+ }/* DO NOT CHANGE!*/
551
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
552
+ .eds-input-group {
553
+ color: inherit;
554
+ display: block;
555
+ position: relative;
347
556
  }
348
- .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
349
- .eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
350
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
557
+ .eds-input-group__label {
558
+ color: #656782;
559
+ display: flex;
560
+ font-size: 1rem;
561
+ position: absolute;
562
+ line-height: 1rem;
563
+ height: 3rem;
564
+ padding: 1rem;
565
+ padding-left: 0;
566
+ margin-left: 1rem;
567
+ top: -0.125rem;
568
+ 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;
569
+ -webkit-user-select: none;
570
+ -moz-user-select: none;
571
+ -ms-user-select: none;
572
+ user-select: none;
573
+ pointer-events: none;
351
574
  }
352
- .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
353
- .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
354
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
575
+ .eds-form-control-wrapper--is-filled .eds-input-group__label {
576
+ top: calc(0.5rem - 0.125rem);
577
+ font-size: 0.75rem;
578
+ line-height: 0.75rem;
579
+ height: 10px;
580
+ padding: 0;
581
+ margin-left: 1rem;
355
582
  }
356
- .eds-checkbox--disabled {
357
- pointer-events: none;
583
+ .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
584
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
585
+ background: var(--textarea-label-background);
586
+ width: calc( 100% - 1rem - 1rem - 4px );
358
587
  }
359
- .eds-checkbox--disabled .eds-checkbox__label {
360
- opacity: 0.5;
588
+ .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
589
+ top: 0.5rem;
590
+ font-size: 0.875rem;
591
+ line-height: 1rem;
592
+ padding: 0;
593
+ margin-left: 1rem;
361
594
  }
362
- .eds-checkbox--disabled .eds-checkbox__icon {
363
- opacity: 0.5;
595
+ .eds-contrast .eds-input-group__label {
596
+ color: #8285a8;
364
597
  }
365
- .eds-checkbox__icon {
366
- display: inline-flex;
367
- justify-content: center;
368
- align-items: center;
369
- position: relative;
370
- margin-right: 1rem;
371
- height: 1.25rem;
372
- width: 1.25rem;
373
- border: 0.125rem solid #181c56;
374
- border-radius: 0.0625rem;
375
- background-color: transparent;
376
- color: #ffffff;
598
+ .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
599
+ color: #aeb7e2;
377
600
  }
378
- .eds-checkbox__icon--reduced-click-area {
379
- margin-right: 0;
601
+ .eds-form-control-wrapper--size-large .eds-input-group__label {
602
+ font-size: 1.5rem;
603
+ line-height: 2.25rem;
604
+ height: 4rem;
380
605
  }
381
- .eds-contrast .eds-checkbox__icon {
382
- border-color: #54568c;
606
+ .eds-input-group__label--filled {
607
+ top: calc(0.5rem - 0.125rem);
608
+ font-size: 0.75rem;
609
+ line-height: 0.75rem;
610
+ height: 10px;
611
+ padding: 0;
612
+ margin-left: 1rem;
383
613
  }
384
- .eds-checkbox__icon .eds-checkbox-icon {
385
- height: 1rem;
386
- width: 1rem;
387
- visibility: hidden;
614
+ .eds-textarea__label .eds-input-group__label--filled {
615
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
616
+ background: var(--textarea-label-background);
617
+ width: calc( 100% - 1rem - 1rem - 4px );
388
618
  }
389
- .eds-checkbox__icon .eds-checkbox-icon__path {
390
- transform-origin: 50% 50%;
391
- stroke-dasharray: 48;
392
- stroke-dashoffset: 48;
393
- stroke-width: 0.375rem;
619
+ .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
620
+ top: 0.5rem;
621
+ font-size: 0.875rem;
622
+ line-height: 1rem;
623
+ padding: 0;
624
+ margin-left: 1rem;
625
+ }
626
+ .eds-input-group__label-tooltip-icon {
627
+ color: #0082b9;
628
+ padding-left: 0.25rem;
629
+ padding-right: 0.25rem;
630
+ display: flex;
631
+ align-items: center;
632
+ cursor: help;
633
+ font-size: 1rem;
394
634
  }
395
635
 
396
- @-webkit-keyframes stroke {
397
- 100% {
398
- stroke-dashoffset: 0;
399
- }
636
+ .eds-form-control-wrapper[focus-within] .eds-input-group__label {
637
+ top: calc(0.5rem - 0.125rem);
638
+ font-size: 0.75rem;
639
+ line-height: 0.75rem;
640
+ height: 10px;
641
+ padding: 0;
642
+ margin-left: 1rem;
400
643
  }
401
644
 
402
- @keyframes stroke {
403
- 100% {
404
- stroke-dashoffset: 0;
405
- }
645
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
646
+ top: calc(0.5rem - 0.125rem);
647
+ font-size: 0.75rem;
648
+ line-height: 0.75rem;
649
+ height: 10px;
650
+ padding: 0;
651
+ margin-left: 1rem;
652
+ }
653
+ .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
654
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
655
+ background: var(--textarea-label-background);
656
+ width: calc( 100% - 1rem - 1rem - 4px );
657
+ }
658
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
659
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
660
+ background: var(--textarea-label-background);
661
+ width: calc( 100% - 1rem - 1rem - 4px );
662
+ }
663
+ .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
664
+ top: 0.5rem;
665
+ font-size: 0.875rem;
666
+ line-height: 1rem;
667
+ padding: 0;
668
+ margin-left: 1rem;
669
+ }
670
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
671
+ top: 0.5rem;
672
+ font-size: 0.875rem;
673
+ line-height: 1rem;
674
+ padding: 0;
675
+ margin-left: 1rem;
406
676
  }/* DO NOT CHANGE!*/
407
677
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
408
678
  textarea.eds-form-control.eds-textarea {
@@ -447,150 +717,6 @@ textarea.eds-form-control.eds-textarea {
447
717
  background-color: #8285a8;
448
718
  }/* DO NOT CHANGE!*/
449
719
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
450
- .eds-feedback-text {
451
- display: flex;
452
- align-items: center;
453
- margin-top: 0.25rem;
454
- }
455
- .eds-feedback-text--info {
456
- padding-left: calc(1rem + 0.125rem);
457
- }
458
- .eds-feedback-text__text {
459
- color: #181c56;
460
- }
461
- .eds-contrast .eds-feedback-text__text {
462
- color: #ffffff;
463
- }
464
-
465
- .eds-feedback-text__icon {
466
- font-size: 1.5rem;
467
- min-height: 1.5rem;
468
- min-width: 1.5rem;
469
- padding-right: 0.5rem;
470
- position: relative;
471
- top: -0.1rem;
472
- }
473
- .eds-feedback-text__icon--success {
474
- color: #1a8e60;
475
- }
476
- .eds-contrast .eds-feedback-text__icon--success {
477
- color: #5ac39a;
478
- }
479
- .eds-feedback-text__icon--error {
480
- color: #d31b1b;
481
- }
482
- .eds-contrast .eds-feedback-text__icon--error {
483
- color: #ff9494;
484
- }
485
- .eds-feedback-text__icon--info {
486
- color: #0082b9;
487
- }
488
- .eds-contrast .eds-feedback-text__icon--info {
489
- color: #64b3e7;
490
- }
491
- .eds-feedback-text__icon--warning.eds-icon__ValidationExclamationIcon {
492
- color: #ffca28;
493
- }
494
- .eds-feedback-text__icon--warning.eds-icon__ValidationExclamationIcon circle {
495
- color: #181c56;
496
- fill-opacity: 1;
497
- }
498
- .eds-contrast .eds-feedback-text__icon--warning.eds-icon__ValidationExclamationIcon {
499
- color: #ffe082;
500
- }
501
- .eds-contrast .eds-feedback-text__icon--warning.eds-icon__ValidationExclamationIcon circle {
502
- fill-opacity: 0;
503
- }/* DO NOT CHANGE!*/
504
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
505
- .eds-form-component--radio__container {
506
- display: flex;
507
- justify-content: center;
508
- align-items: center;
509
- position: relative;
510
- cursor: pointer;
511
- height: 2rem;
512
- width: -webkit-fit-content;
513
- width: -moz-fit-content;
514
- width: fit-content;
515
- -webkit-user-select: none;
516
- -moz-user-select: none;
517
- -ms-user-select: none;
518
- user-select: none;
519
- }
520
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
521
- border-color: #54568c;
522
- }
523
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
524
- background-color: #54568c;
525
- }
526
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
527
- border-color: #8285a8;
528
- }
529
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
530
- background-color: #8285a8;
531
- }
532
- .eds-form-component--radio__container input {
533
- position: absolute;
534
- opacity: 0;
535
- cursor: pointer;
536
- height: 0;
537
- width: 0;
538
- }
539
- .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
540
- height: 0.625rem;
541
- width: 0.625rem;
542
- }
543
- .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
544
- outline: none;
545
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
546
- outline-offset: 0.125rem;
547
- }
548
- .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
549
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
550
- }
551
- .eds-form-component--radio__container .eds-form-component--radio__radio {
552
- position: relative;
553
- height: 1.25rem;
554
- width: 1.25rem;
555
- margin-right: 1rem;
556
- background-color: #ffffff;
557
- border: 0.125rem solid #181c56;
558
- border-radius: 50%;
559
- display: flex;
560
- align-items: center;
561
- justify-content: center;
562
- }
563
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
564
- background-color: #181c56;
565
- border-color: #aeb7e2;
566
- }
567
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
568
- background: #d1d3d3;
569
- border-color: #d1d3d3;
570
- cursor: not-allowed;
571
- }
572
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
573
- border-color: #d1d3d3;
574
- }
575
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
576
- background: #d1d3d3;
577
- border-color: #d1d3d3;
578
- }
579
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
580
- color: #656782;
581
- }
582
- .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
583
- display: block;
584
- width: 0;
585
- height: 0;
586
- border-radius: 50%;
587
- background-color: #181c56;
588
- transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
589
- }
590
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
591
- background-color: #aeb7e2;
592
- }/* DO NOT CHANGE!*/
593
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
594
720
  .eds-switch {
595
721
  cursor: pointer;
596
722
  -webkit-user-select: none;
@@ -845,132 +971,6 @@ textarea.eds-form-control.eds-textarea {
845
971
  stroke-width: 0.375rem;
846
972
  }/* DO NOT CHANGE!*/
847
973
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
848
- .eds-input-group {
849
- color: inherit;
850
- display: block;
851
- position: relative;
852
- }
853
- .eds-input-group__label {
854
- color: #656782;
855
- display: flex;
856
- font-size: 1rem;
857
- position: absolute;
858
- line-height: 1rem;
859
- height: 3rem;
860
- padding: 1rem;
861
- padding-left: 0;
862
- margin-left: 1rem;
863
- top: -0.125rem;
864
- 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;
865
- -webkit-user-select: none;
866
- -moz-user-select: none;
867
- -ms-user-select: none;
868
- user-select: none;
869
- pointer-events: none;
870
- }
871
- .eds-form-control-wrapper--is-filled .eds-input-group__label {
872
- top: calc(0.5rem - 0.125rem);
873
- font-size: 0.75rem;
874
- line-height: 0.75rem;
875
- height: 10px;
876
- padding: 0;
877
- margin-left: 1rem;
878
- }
879
- .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
880
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
881
- background: var(--textarea-label-background);
882
- width: calc( 100% - 1rem - 1rem - 4px );
883
- }
884
- .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
885
- top: 0.5rem;
886
- font-size: 0.875rem;
887
- line-height: 1rem;
888
- padding: 0;
889
- margin-left: 1rem;
890
- }
891
- .eds-contrast .eds-input-group__label {
892
- color: #8285a8;
893
- }
894
- .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
895
- color: #aeb7e2;
896
- }
897
- .eds-form-control-wrapper--size-large .eds-input-group__label {
898
- font-size: 1.5rem;
899
- line-height: 2.25rem;
900
- height: 4rem;
901
- }
902
- .eds-input-group__label--filled {
903
- top: calc(0.5rem - 0.125rem);
904
- font-size: 0.75rem;
905
- line-height: 0.75rem;
906
- height: 10px;
907
- padding: 0;
908
- margin-left: 1rem;
909
- }
910
- .eds-textarea__label .eds-input-group__label--filled {
911
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
912
- background: var(--textarea-label-background);
913
- width: calc( 100% - 1rem - 1rem - 4px );
914
- }
915
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
916
- top: 0.5rem;
917
- font-size: 0.875rem;
918
- line-height: 1rem;
919
- padding: 0;
920
- margin-left: 1rem;
921
- }
922
- .eds-input-group__label-tooltip-icon {
923
- color: #0082b9;
924
- padding-left: 0.25rem;
925
- padding-right: 0.25rem;
926
- display: flex;
927
- align-items: center;
928
- cursor: help;
929
- font-size: 1rem;
930
- }
931
-
932
- .eds-form-control-wrapper[focus-within] .eds-input-group__label {
933
- top: calc(0.5rem - 0.125rem);
934
- font-size: 0.75rem;
935
- line-height: 0.75rem;
936
- height: 10px;
937
- padding: 0;
938
- margin-left: 1rem;
939
- }
940
-
941
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
942
- top: calc(0.5rem - 0.125rem);
943
- font-size: 0.75rem;
944
- line-height: 0.75rem;
945
- height: 10px;
946
- padding: 0;
947
- margin-left: 1rem;
948
- }
949
- .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
950
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
951
- background: var(--textarea-label-background);
952
- width: calc( 100% - 1rem - 1rem - 4px );
953
- }
954
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
955
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
956
- background: var(--textarea-label-background);
957
- width: calc( 100% - 1rem - 1rem - 4px );
958
- }
959
- .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
960
- top: 0.5rem;
961
- font-size: 0.875rem;
962
- line-height: 1rem;
963
- padding: 0;
964
- margin-left: 1rem;
965
- }
966
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
967
- top: 0.5rem;
968
- font-size: 0.875rem;
969
- line-height: 1rem;
970
- padding: 0;
971
- margin-left: 1rem;
972
- }/* DO NOT CHANGE!*/
973
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
974
974
  .eds-segmented-control {
975
975
  margin-top: 0.25rem;
976
976
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/form",
3
- "version": "5.3.6",
3
+ "version": "5.3.7",
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": "^4.1.2",
30
+ "@entur/icons": "^4.2.0",
31
31
  "@entur/tokens": "^3.3.2",
32
- "@entur/tooltip": "^2.5.9",
32
+ "@entur/tooltip": "^2.5.10",
33
33
  "@entur/typography": "^1.6.14",
34
34
  "@entur/utils": "^0.4.3",
35
35
  "classnames": "^2.3.1"
36
36
  },
37
- "gitHead": "02c1bc4caad8480d21d8560188ba21b972e3370e"
37
+ "gitHead": "974289b6579ade4460d12aa877a89e454c983d48"
38
38
  }