@entur/form 7.0.30 → 7.0.31-beta.0

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 +454 -454
  2. package/package.json +6 -6
package/dist/styles.css CHANGED
@@ -1,3 +1,8 @@
1
+ .eds-fieldset {
2
+ margin: 0;
3
+ padding: 0;
4
+ border: 0;
5
+ }
1
6
  /* DO NOT CHANGE!*/
2
7
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
8
  .eds-feedback-text {
@@ -52,253 +57,6 @@
52
57
  }
53
58
  /* DO NOT CHANGE!*/
54
59
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
55
- .eds-form-control-wrapper {
56
- --border-color: #7C7F9F;
57
- --border-color-hover: #aeb7e2;
58
- align-items: center;
59
- background-color: #ffffff;
60
- border-radius: 0.25rem;
61
- border: 0.125rem solid var(--border-color);
62
- box-shadow: 0 0 0 transparent;
63
- color: #181c56;
64
- display: flex;
65
- position: relative;
66
- width: 100%;
67
- min-height: 3rem;
68
- transition: border-color 0.1s ease-in-out;
69
- --textarea-label-background: t.$colors-brand-white;
70
- /*
71
- Some input controls require a darker design while inside a contrast block.
72
- These elements require the `--dark` modifier, even on the wrapper.
73
- */
74
- }
75
- .eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
76
- --border-color: #181c56;
77
- }
78
- .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
79
- --border-color: #181c56;
80
- }
81
- .eds-contrast .eds-form-control-wrapper:hover {
82
- --border-color: #aeb7e2;
83
- }
84
- .eds-form-control-wrapper[focus-within] {
85
- box-shadow: inset 0 0 0 1px var(--border-color);
86
- }
87
- .eds-form-control-wrapper:focus-within {
88
- box-shadow: inset 0 0 0 1px var(--border-color);
89
- }
90
- .eds-contrast .eds-form-control-wrapper[focus-within] {
91
- --border-color: #181c56;
92
- box-shadow: 0 0 0 0.125rem #aeb7e2;
93
- }
94
- .eds-contrast .eds-form-control-wrapper:focus-within {
95
- --border-color: #181c56;
96
- box-shadow: 0 0 0 0.125rem #aeb7e2;
97
- }
98
- .eds-form-control-wrapper ::-moz-placeholder {
99
- color: #656782;
100
- }
101
- .eds-form-control-wrapper ::placeholder {
102
- color: #656782;
103
- }
104
- .eds-form-control-wrapper--disabled {
105
- --border-color: transparent;
106
- background-color: #e9e9e9;
107
- pointer-events: none;
108
- color: #646464;
109
- }
110
- .eds-form-control-wrapper--disabled .eds-input-group__label {
111
- color: #646464;
112
- }
113
- .eds-contrast .eds-form-control-wrapper--disabled {
114
- background: #292b6a;
115
- color: #8285a8;
116
- }
117
- .eds-contrast .eds-form-control-wrapper--disabled .eds-input-group__label {
118
- color: #8285a8;
119
- }
120
- .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
121
- display: none;
122
- }
123
- .eds-form-control-wrapper--readonly {
124
- --border-color: transparent;
125
- --textarea-label-background: t.$colors-greys-grey90;
126
- pointer-events: none;
127
- cursor: default;
128
- background: #f8f8f8;
129
- }
130
- .eds-contrast .eds-form-control-wrapper--readonly {
131
- --textarea-label-background: t.$colors-blues-blue10;
132
- background: #292b6a;
133
- color: #ffffff;
134
- }
135
- .eds-contrast .eds-form-control-wrapper--readonly .eds-input-group__label {
136
- color: #aeb7e2;
137
- }
138
- .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
139
- display: none;
140
- }
141
- .eds-form-control-wrapper--size-medium .eds-form-control,
142
- .eds-form-control-wrapper--size-medium .eds-form-control__append,
143
- .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
144
- font-size: 1rem;
145
- line-height: 1rem;
146
- }
147
- .eds-form-control-wrapper--size-large {
148
- min-height: 4rem;
149
- padding: 0 0.5rem;
150
- }
151
- .eds-form-control-wrapper--size-large::before, .eds-form-control-wrapper--size-large::after {
152
- border-width: 0.25rem;
153
- }
154
- .eds-form-control-wrapper--size-large .eds-form-control,
155
- .eds-form-control-wrapper--size-large .eds-form-control__append,
156
- .eds-form-control-wrapper--size-large .eds-form-control__prepend {
157
- font-size: 1.5rem;
158
- line-height: 2.25rem;
159
- }
160
- .eds-form-control-wrapper--success {
161
- border-color: #1a8e60;
162
- --border-color: #1a8e60;
163
- }
164
- .eds-form-control-wrapper--success:hover {
165
- border-color: #5ac39a;
166
- }
167
- .eds-form-control-wrapper--success[focus-within] {
168
- border-color: #1a8e60;
169
- }
170
- .eds-form-control-wrapper--success:focus-within {
171
- border-color: #1a8e60;
172
- }
173
- .eds-contrast .eds-form-control-wrapper--success {
174
- border-color: #5ac39a;
175
- --border-color: #5ac39a;
176
- }
177
- .eds-contrast .eds-form-control-wrapper--success:hover {
178
- border-color: #1a8e60;
179
- }
180
- .eds-contrast .eds-form-control-wrapper--success[focus-within] {
181
- --border-color: #5ac39a;
182
- border-color: #181c56;
183
- }
184
- .eds-contrast .eds-form-control-wrapper--success:focus-within {
185
- --border-color: #5ac39a;
186
- border-color: #181c56;
187
- }
188
- .eds-form-control-wrapper--error {
189
- border-color: #d31b1b;
190
- --border-color: #d31b1b;
191
- }
192
- .eds-form-control-wrapper--error:hover {
193
- border-color: #ff9494;
194
- }
195
- .eds-form-control-wrapper--error[focus-within] {
196
- border-color: #d31b1b;
197
- }
198
- .eds-form-control-wrapper--error:focus-within {
199
- border-color: #d31b1b;
200
- }
201
- .eds-contrast .eds-form-control-wrapper--error {
202
- border-color: #ff9494;
203
- --border-color: #ff9494;
204
- }
205
- .eds-contrast .eds-form-control-wrapper--error:hover {
206
- border-color: #d31b1b;
207
- }
208
- .eds-contrast .eds-form-control-wrapper--error[focus-within] {
209
- border-color: #181c56;
210
- --border-color: #ff9494;
211
- }
212
- .eds-contrast .eds-form-control-wrapper--error:focus-within {
213
- border-color: #181c56;
214
- --border-color: #ff9494;
215
- }
216
- .eds-contrast .eds-form-control-wrapper--dark {
217
- background-color: #181c56;
218
- color: #ffffff;
219
- }
220
- .eds-contrast .eds-form-control-wrapper--dark ::-moz-placeholder {
221
- color: #aeb7e2;
222
- }
223
- .eds-contrast .eds-form-control-wrapper--dark ::placeholder {
224
- color: #aeb7e2;
225
- }
226
- .eds-contrast .eds-form-control-wrapper--dark:hover {
227
- border-color: #aeb7e2;
228
- }
229
- .eds-contrast .eds-form-control-wrapper--dark[focus-within] {
230
- background-color: #292b6a;
231
- border-color: #aeb7e2;
232
- }
233
- .eds-contrast .eds-form-control-wrapper--dark:focus-within {
234
- background-color: #292b6a;
235
- border-color: #aeb7e2;
236
- }
237
- .eds-contrast .eds-form-control-wrapper--dark * {
238
- background-color: transparent;
239
- color: inherit;
240
- }
241
- .eds-contrast .eds-form-control-wrapper--dark.eds-form-control-wrapper--disabled {
242
- background-color: #292b6a;
243
- color: #8285a8;
244
- }
245
-
246
- .eds-form-control {
247
- -webkit-appearance: none;
248
- -moz-appearance: none;
249
- appearance: none;
250
- background-color: transparent;
251
- border: 0;
252
- color: inherit;
253
- display: block;
254
- font-family: inherit;
255
- line-height: 1rem;
256
- font-size: 1rem;
257
- padding: 20px 1rem 0.25rem;
258
- width: 100%;
259
- }
260
- .eds-form-control::-moz-placeholder {
261
- opacity: 0;
262
- -moz-transition: opacity 0.2s ease-in-out;
263
- transition: opacity 0.2s ease-in-out;
264
- }
265
- .eds-form-control::placeholder {
266
- opacity: 0;
267
- transition: opacity 0.2s ease-in-out;
268
- }
269
- .eds-form-control:focus {
270
- outline: none;
271
- }
272
- .eds-form-control:focus::-moz-placeholder {
273
- opacity: 1;
274
- }
275
- .eds-form-control:focus::placeholder {
276
- opacity: 1;
277
- }
278
- .eds-form-control__prepend, .eds-form-control__append {
279
- position: relative;
280
- margin: 0 1rem;
281
- line-height: inherit;
282
- }
283
- .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
284
- position: static;
285
- }
286
- .eds-form-control__prepend svg, .eds-form-control__append svg {
287
- top: 0.125rem;
288
- }
289
- .eds-form-control__prepend {
290
- margin-right: 0;
291
- }
292
- .eds-form-control__append {
293
- margin-left: 0;
294
- }
295
- .eds-fieldset {
296
- margin: 0;
297
- padding: 0;
298
- border: 0;
299
- }
300
- /* DO NOT CHANGE!*/
301
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
302
60
  .eds-checkbox__container {
303
61
  display: flex;
304
62
  align-items: center;
@@ -461,213 +219,6 @@
461
219
  }
462
220
  /* DO NOT CHANGE!*/
463
221
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
464
- .eds-switch {
465
- cursor: pointer;
466
- -webkit-user-select: none;
467
- -moz-user-select: none;
468
- user-select: none;
469
- padding: 0.5rem 0;
470
- width: -moz-fit-content;
471
- width: fit-content;
472
- }
473
- .eds-switch input {
474
- opacity: 0;
475
- pointer-events: none;
476
- position: absolute;
477
- }
478
- .eds-switch--right {
479
- display: flex;
480
- flex-direction: row;
481
- align-items: center;
482
- }
483
- .eds-switch--bottom {
484
- display: flex;
485
- flex-direction: column;
486
- align-items: center;
487
- }
488
- .eds-switch__circle {
489
- border-radius: 50%;
490
- height: 1.25rem;
491
- width: 1.25rem;
492
- content: "";
493
- display: flex;
494
- align-items: center;
495
- justify-content: center;
496
- transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
497
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
498
- background-color: #ffffff;
499
- top: 0.125rem;
500
- left: 0.125rem;
501
- position: relative;
502
- }
503
- .eds-switch__switch--large .eds-switch__circle {
504
- height: 1.75rem;
505
- width: 1.75rem;
506
- }
507
- .eds-contrast .eds-switch__circle {
508
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
509
- }
510
- .eds-switch__switch {
511
- position: relative;
512
- background-color: #949494;
513
- content: "";
514
- display: block;
515
- transition: background-color 0.1s ease-in-out;
516
- height: 1.5rem;
517
- width: 3rem;
518
- border-radius: 1.5rem;
519
- box-shadow: inset 0px 2px 2px -1px rgba(0, 0, 0, 0.1);
520
- }
521
- .eds-contrast .eds-switch__switch {
522
- background-color: #8285a8;
523
- }
524
- .eds-switch--right .eds-switch__switch {
525
- margin-right: 0.75rem;
526
- }
527
- .eds-switch__switch svg g,
528
- .eds-switch__switch path {
529
- fill: #646464;
530
- transition: fill ease-in-out 0.1s;
531
- }
532
- .eds-contrast .eds-switch__switch svg g,
533
- .eds-contrast .eds-switch__switch path {
534
- fill: #181c56;
535
- }
536
- :checked + .eds-switch__switch {
537
- background-color: var(--eds-switch-color);
538
- }
539
- :checked + .eds-switch__switch .eds-switch__circle {
540
- left: 1.625rem;
541
- }
542
- :checked + .eds-switch__switch .eds-switch__circle svg g,
543
- :checked + .eds-switch__switch .eds-switch__circle path {
544
- fill: var(--eds-switch-color);
545
- }
546
- .eds-contrast :checked + .eds-switch__switch {
547
- background-color: var(--eds-switch-contrast-color);
548
- }
549
- :focus + .eds-switch__switch {
550
- outline: none;
551
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
552
- outline-offset: 0.125rem;
553
- }
554
- .eds-contrast :focus + .eds-switch__switch {
555
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
556
- }
557
- .eds-switch__switch--large {
558
- width: 3.75rem;
559
- height: 2rem;
560
- border-radius: 3.75rem;
561
- }
562
- :checked + .eds-switch__switch--large .eds-switch__circle {
563
- left: 1.875rem;
564
- }
565
- .eds-switch__switch--large svg {
566
- position: relative;
567
- right: 0.05rem;
568
- }
569
- .eds-switch__label--large--right {
570
- font-size: 1rem;
571
- }
572
- .eds-switch__label--large--bottom {
573
- font-size: 0.875rem;
574
- }
575
- .eds-switch__label--medium--right {
576
- font-size: 0.875rem;
577
- }
578
- .eds-switch__label--medium--bottom {
579
- font-size: 0.75rem;
580
- }
581
- /* DO NOT CHANGE!*/
582
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
583
- .eds-form-component--radio__container {
584
- display: flex;
585
- justify-content: center;
586
- align-items: center;
587
- position: relative;
588
- cursor: pointer;
589
- height: 2rem;
590
- width: -moz-fit-content;
591
- width: fit-content;
592
- -webkit-user-select: none;
593
- -moz-user-select: none;
594
- user-select: none;
595
- }
596
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
597
- border-color: #54568c;
598
- }
599
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
600
- background-color: #54568c;
601
- }
602
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
603
- border-color: #8285a8;
604
- }
605
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
606
- background-color: #8285a8;
607
- }
608
- .eds-form-component--radio__container input {
609
- position: absolute;
610
- opacity: 0;
611
- cursor: pointer;
612
- height: 0;
613
- width: 0;
614
- }
615
- .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
616
- height: 0.625rem;
617
- width: 0.625rem;
618
- }
619
- .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
620
- outline: none;
621
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
622
- outline-offset: 0.125rem;
623
- }
624
- .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
625
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
626
- }
627
- .eds-form-component--radio__container .eds-form-component--radio__radio {
628
- position: relative;
629
- height: 1.25rem;
630
- width: 1.25rem;
631
- margin-right: 1rem;
632
- background-color: #ffffff;
633
- border: 0.125rem solid #181c56;
634
- border-radius: 50%;
635
- display: flex;
636
- align-items: center;
637
- justify-content: center;
638
- }
639
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
640
- background-color: #181c56;
641
- border-color: #aeb7e2;
642
- }
643
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
644
- background: #d1d3d3;
645
- border-color: #d1d3d3;
646
- cursor: not-allowed;
647
- }
648
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
649
- border-color: #d1d3d3;
650
- }
651
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
652
- background: #d1d3d3;
653
- border-color: #d1d3d3;
654
- }
655
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
656
- color: #656782;
657
- }
658
- .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
659
- display: block;
660
- width: 0;
661
- height: 0;
662
- border-radius: 50%;
663
- background-color: #181c56;
664
- transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
665
- }
666
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
667
- background-color: #aeb7e2;
668
- }
669
- /* DO NOT CHANGE!*/
670
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
671
222
  .eds-input-group {
672
223
  color: inherit;
673
224
  display: block;
@@ -799,6 +350,455 @@
799
350
  }
800
351
  /* DO NOT CHANGE!*/
801
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;
659
+ }
660
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
661
+ border-color: #d1d3d3;
662
+ }
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;
666
+ }
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;
669
+ }
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;
677
+ }
678
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
679
+ background-color: #aeb7e2;
680
+ }
681
+ /* DO NOT CHANGE!*/
682
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
683
+ .eds-switch {
684
+ cursor: pointer;
685
+ -webkit-user-select: none;
686
+ -moz-user-select: none;
687
+ user-select: none;
688
+ padding: 0.5rem 0;
689
+ width: -moz-fit-content;
690
+ width: fit-content;
691
+ }
692
+ .eds-switch input {
693
+ opacity: 0;
694
+ pointer-events: none;
695
+ position: absolute;
696
+ }
697
+ .eds-switch--right {
698
+ display: flex;
699
+ flex-direction: row;
700
+ align-items: center;
701
+ }
702
+ .eds-switch--bottom {
703
+ display: flex;
704
+ flex-direction: column;
705
+ align-items: center;
706
+ }
707
+ .eds-switch__circle {
708
+ border-radius: 50%;
709
+ height: 1.25rem;
710
+ width: 1.25rem;
711
+ content: "";
712
+ display: flex;
713
+ align-items: center;
714
+ justify-content: center;
715
+ transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
716
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
717
+ background-color: #ffffff;
718
+ top: 0.125rem;
719
+ left: 0.125rem;
720
+ position: relative;
721
+ }
722
+ .eds-switch__switch--large .eds-switch__circle {
723
+ height: 1.75rem;
724
+ width: 1.75rem;
725
+ }
726
+ .eds-contrast .eds-switch__circle {
727
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
728
+ }
729
+ .eds-switch__switch {
730
+ position: relative;
731
+ background-color: #949494;
732
+ content: "";
733
+ display: block;
734
+ transition: background-color 0.1s ease-in-out;
735
+ height: 1.5rem;
736
+ width: 3rem;
737
+ border-radius: 1.5rem;
738
+ box-shadow: inset 0px 2px 2px -1px rgba(0, 0, 0, 0.1);
739
+ }
740
+ .eds-contrast .eds-switch__switch {
741
+ background-color: #8285a8;
742
+ }
743
+ .eds-switch--right .eds-switch__switch {
744
+ margin-right: 0.75rem;
745
+ }
746
+ .eds-switch__switch svg g,
747
+ .eds-switch__switch path {
748
+ fill: #646464;
749
+ transition: fill ease-in-out 0.1s;
750
+ }
751
+ .eds-contrast .eds-switch__switch svg g,
752
+ .eds-contrast .eds-switch__switch path {
753
+ fill: #181c56;
754
+ }
755
+ :checked + .eds-switch__switch {
756
+ background-color: var(--eds-switch-color);
757
+ }
758
+ :checked + .eds-switch__switch .eds-switch__circle {
759
+ left: 1.625rem;
760
+ }
761
+ :checked + .eds-switch__switch .eds-switch__circle svg g,
762
+ :checked + .eds-switch__switch .eds-switch__circle path {
763
+ fill: var(--eds-switch-color);
764
+ }
765
+ .eds-contrast :checked + .eds-switch__switch {
766
+ background-color: var(--eds-switch-contrast-color);
767
+ }
768
+ :focus + .eds-switch__switch {
769
+ outline: none;
770
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
771
+ outline-offset: 0.125rem;
772
+ }
773
+ .eds-contrast :focus + .eds-switch__switch {
774
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
775
+ }
776
+ .eds-switch__switch--large {
777
+ width: 3.75rem;
778
+ height: 2rem;
779
+ border-radius: 3.75rem;
780
+ }
781
+ :checked + .eds-switch__switch--large .eds-switch__circle {
782
+ left: 1.875rem;
783
+ }
784
+ .eds-switch__switch--large svg {
785
+ position: relative;
786
+ right: 0.05rem;
787
+ }
788
+ .eds-switch__label--large--right {
789
+ font-size: 1rem;
790
+ }
791
+ .eds-switch__label--large--bottom {
792
+ font-size: 0.875rem;
793
+ }
794
+ .eds-switch__label--medium--right {
795
+ font-size: 0.875rem;
796
+ }
797
+ .eds-switch__label--medium--bottom {
798
+ font-size: 0.75rem;
799
+ }
800
+ /* DO NOT CHANGE!*/
801
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
802
802
  .eds-input-panel[focus-within] .eds-input-panel__container {
803
803
  border-color: #181c56;
804
804
  box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/form",
3
- "version": "7.0.30",
3
+ "version": "7.0.31-beta.0",
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.0",
31
- "@entur/tokens": "^3.11.1",
32
- "@entur/tooltip": "^2.6.39",
33
- "@entur/typography": "^1.8.18",
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",
34
34
  "@entur/utils": "^0.9.5",
35
35
  "classnames": "^2.3.1"
36
36
  },
37
- "gitHead": "298374e622bca3ae3bbb7226bdd94890be5f82c8"
37
+ "gitHead": "c312024e8f66298e0f6d4cf85849572f38b15d53"
38
38
  }