@entur/form 7.0.18-beta.0 → 7.0.18

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 +461 -461
  2. package/package.json +2 -2
package/dist/styles.css CHANGED
@@ -1,3 +1,217 @@
1
+ /* DO NOT CHANGE!*/
2
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
+ .eds-checkbox__container {
4
+ display: flex;
5
+ align-items: center;
6
+ position: relative;
7
+ -webkit-appearance: none;
8
+ -moz-appearance: none;
9
+ appearance: none;
10
+ cursor: pointer;
11
+ -webkit-user-select: none;
12
+ -moz-user-select: none;
13
+ user-select: none;
14
+ width: -moz-fit-content;
15
+ width: fit-content;
16
+ margin: 0.5rem 0;
17
+ }
18
+ .eds-checkbox__container--reduced-click-area {
19
+ height: -moz-fit-content;
20
+ height: fit-content;
21
+ }
22
+ .eds-checkbox__container input {
23
+ position: absolute;
24
+ opacity: 0;
25
+ height: 0;
26
+ width: 0;
27
+ }
28
+ .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
29
+ background-color: #181c56;
30
+ }
31
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
32
+ visibility: visible;
33
+ }
34
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon path {
35
+ stroke: #ffffff;
36
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
37
+ }
38
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon rect {
39
+ fill: #ffffff;
40
+ }
41
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
42
+ opacity: 0.5;
43
+ }
44
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled path {
45
+ opacity: 0.5;
46
+ }
47
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled rect {
48
+ opacity: 0.5;
49
+ }
50
+ .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled path {
51
+ opacity: 0.5;
52
+ }
53
+ .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled rect {
54
+ opacity: 0.5;
55
+ }
56
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
57
+ background-color: #aeb7e2;
58
+ }
59
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon path, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon path {
60
+ stroke: #181c56;
61
+ }
62
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon rect, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon rect {
63
+ fill: #181c56;
64
+ }
65
+ .eds-checkbox__container:hover input + .eds-checkbox__icon {
66
+ border-color: #292b6a;
67
+ background-color: #d1d4e3;
68
+ }
69
+ .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
70
+ border-color: #b6bee5;
71
+ background-color: rgba(174, 183, 226, 0.2);
72
+ }
73
+ .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
74
+ .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
75
+ border-color: transparent;
76
+ background-color: #54568c;
77
+ }
78
+ .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
79
+ .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
80
+ background-color: #b6bee5;
81
+ }
82
+ .eds-checkbox__container:active input + .eds-checkbox__icon {
83
+ border-color: #16194d;
84
+ }
85
+ .eds-contrast .eds-checkbox__container:active input + .eds-checkbox__icon {
86
+ border-color: #9da5cb;
87
+ }
88
+ .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
89
+ .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
90
+ background-color: #16194d;
91
+ }
92
+ .eds-contrast .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
93
+ .eds-contrast .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
94
+ background-color: #9da5cb;
95
+ }
96
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
97
+ .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
98
+ outline: none;
99
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
100
+ outline-offset: 0.125rem;
101
+ }
102
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
103
+ .eds-checkbox__container :focus-within + .eds-checkbox__icon {
104
+ outline: none;
105
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
106
+ outline-offset: 0.125rem;
107
+ }
108
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
109
+ .eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
110
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
111
+ }
112
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
113
+ .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
114
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
115
+ }
116
+ .eds-checkbox--disabled {
117
+ pointer-events: none;
118
+ }
119
+ .eds-checkbox--disabled .eds-checkbox__label {
120
+ opacity: 0.5;
121
+ }
122
+ .eds-checkbox--disabled .eds-checkbox__icon {
123
+ opacity: 0.5;
124
+ }
125
+ .eds-checkbox__icon {
126
+ box-sizing: border-box;
127
+ display: inline-flex;
128
+ justify-content: center;
129
+ align-items: center;
130
+ position: relative;
131
+ margin-right: 1rem;
132
+ height: 1.25rem;
133
+ width: 1.25rem;
134
+ border: 0.125rem solid #181c56;
135
+ border-radius: 0.125rem;
136
+ background-color: transparent;
137
+ color: #ffffff;
138
+ transition: border-color 0.1s ease-in-out, background-color 0.1s ease-in-out;
139
+ }
140
+ .eds-checkbox__icon--reduced-click-area {
141
+ margin-right: 0;
142
+ }
143
+ .eds-contrast .eds-checkbox__icon {
144
+ border-color: #aeb7e2;
145
+ }
146
+ .eds-checkbox__icon .eds-checkbox-icon {
147
+ height: 1rem;
148
+ width: 1rem;
149
+ visibility: hidden;
150
+ }
151
+ .eds-checkbox__icon .eds-checkbox-icon path {
152
+ transform-origin: 50% 50%;
153
+ stroke-dasharray: 48;
154
+ stroke-dashoffset: 48;
155
+ stroke-width: 0.375rem;
156
+ }
157
+
158
+ @keyframes stroke {
159
+ 100% {
160
+ stroke-dashoffset: 0;
161
+ }
162
+ }
163
+ /* DO NOT CHANGE!*/
164
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
165
+ .eds-feedback-text {
166
+ display: flex;
167
+ align-items: center;
168
+ margin-top: 0.25rem;
169
+ }
170
+ .eds-feedback-text--info {
171
+ padding-left: calc(1rem + 0.125rem);
172
+ }
173
+ .eds-feedback-text__text {
174
+ color: #181c56;
175
+ }
176
+ .eds-contrast .eds-feedback-text__text {
177
+ color: #ffffff;
178
+ }
179
+
180
+ .eds-feedback-text__icon {
181
+ font-size: 1.5rem;
182
+ min-height: 1.5rem;
183
+ min-width: 1.5rem;
184
+ padding-right: 0.5rem;
185
+ position: relative;
186
+ top: -0.1rem;
187
+ }
188
+ .eds-feedback-text__icon--success {
189
+ color: #1a8e60;
190
+ }
191
+ .eds-contrast .eds-feedback-text__icon--success {
192
+ color: #5ac39a;
193
+ }
194
+ .eds-feedback-text__icon--error {
195
+ color: #d31b1b;
196
+ }
197
+ .eds-contrast .eds-feedback-text__icon--error {
198
+ color: #ff9494;
199
+ }
200
+ .eds-feedback-text__icon--info {
201
+ color: #0082b9;
202
+ }
203
+ .eds-contrast .eds-feedback-text__icon--info {
204
+ color: #64b3e7;
205
+ }
206
+ .eds-feedback-text__icon--warning {
207
+ color: #ffca28;
208
+ }
209
+ .eds-feedback-text__icon--warning circle {
210
+ fill: #181c56;
211
+ }
212
+ .eds-contrast .eds-feedback-text__icon--warning {
213
+ color: #ffe082;
214
+ }
1
215
  .eds-fieldset {
2
216
  margin: 0;
3
217
  padding: 0;
@@ -247,331 +461,29 @@
247
461
  }
248
462
  /* DO NOT CHANGE!*/
249
463
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
250
- .eds-checkbox__container {
251
- display: flex;
252
- align-items: center;
253
- position: relative;
254
- -webkit-appearance: none;
255
- -moz-appearance: none;
256
- appearance: none;
464
+ .eds-switch {
257
465
  cursor: pointer;
258
466
  -webkit-user-select: none;
259
467
  -moz-user-select: none;
260
468
  user-select: none;
469
+ padding: 0.5rem 0;
261
470
  width: -moz-fit-content;
262
471
  width: fit-content;
263
- margin: 0.5rem 0;
264
472
  }
265
- .eds-checkbox__container--reduced-click-area {
266
- height: -moz-fit-content;
267
- height: fit-content;
268
- }
269
- .eds-checkbox__container input {
270
- position: absolute;
473
+ .eds-switch input {
271
474
  opacity: 0;
272
- height: 0;
273
- width: 0;
274
- }
275
- .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
276
- background-color: #181c56;
277
- }
278
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
279
- visibility: visible;
475
+ pointer-events: none;
476
+ position: absolute;
280
477
  }
281
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon path {
282
- stroke: #ffffff;
283
- animation: stroke ease-in-out 0.2s 0.1s forwards;
478
+ .eds-switch--right {
479
+ display: flex;
480
+ flex-direction: row;
481
+ align-items: center;
284
482
  }
285
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon rect {
286
- fill: #ffffff;
287
- }
288
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
289
- opacity: 0.5;
290
- }
291
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled path {
292
- opacity: 0.5;
293
- }
294
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled rect {
295
- opacity: 0.5;
296
- }
297
- .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled path {
298
- opacity: 0.5;
299
- }
300
- .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled rect {
301
- opacity: 0.5;
302
- }
303
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
304
- background-color: #aeb7e2;
305
- }
306
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon path, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon path {
307
- stroke: #181c56;
308
- }
309
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon rect, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon rect {
310
- fill: #181c56;
311
- }
312
- .eds-checkbox__container:hover input + .eds-checkbox__icon {
313
- border-color: #292b6a;
314
- background-color: #d1d4e3;
315
- }
316
- .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
317
- border-color: #b6bee5;
318
- background-color: rgba(174, 183, 226, 0.2);
319
- }
320
- .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
321
- .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
322
- border-color: transparent;
323
- background-color: #54568c;
324
- }
325
- .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
326
- .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
327
- background-color: #b6bee5;
328
- }
329
- .eds-checkbox__container:active input + .eds-checkbox__icon {
330
- border-color: #16194d;
331
- }
332
- .eds-contrast .eds-checkbox__container:active input + .eds-checkbox__icon {
333
- border-color: #9da5cb;
334
- }
335
- .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
336
- .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
337
- background-color: #16194d;
338
- }
339
- .eds-contrast .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
340
- .eds-contrast .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
341
- background-color: #9da5cb;
342
- }
343
- .eds-checkbox__container:focus + .eds-checkbox__icon,
344
- .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
345
- outline: none;
346
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
347
- outline-offset: 0.125rem;
348
- }
349
- .eds-checkbox__container:focus + .eds-checkbox__icon,
350
- .eds-checkbox__container :focus-within + .eds-checkbox__icon {
351
- outline: none;
352
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
353
- outline-offset: 0.125rem;
354
- }
355
- .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
356
- .eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
357
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
358
- }
359
- .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
360
- .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
361
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
362
- }
363
- .eds-checkbox--disabled {
364
- pointer-events: none;
365
- }
366
- .eds-checkbox--disabled .eds-checkbox__label {
367
- opacity: 0.5;
368
- }
369
- .eds-checkbox--disabled .eds-checkbox__icon {
370
- opacity: 0.5;
371
- }
372
- .eds-checkbox__icon {
373
- box-sizing: border-box;
374
- display: inline-flex;
375
- justify-content: center;
376
- align-items: center;
377
- position: relative;
378
- margin-right: 1rem;
379
- height: 1.25rem;
380
- width: 1.25rem;
381
- border: 0.125rem solid #181c56;
382
- border-radius: 0.125rem;
383
- background-color: transparent;
384
- color: #ffffff;
385
- transition: border-color 0.1s ease-in-out, background-color 0.1s ease-in-out;
386
- }
387
- .eds-checkbox__icon--reduced-click-area {
388
- margin-right: 0;
389
- }
390
- .eds-contrast .eds-checkbox__icon {
391
- border-color: #aeb7e2;
392
- }
393
- .eds-checkbox__icon .eds-checkbox-icon {
394
- height: 1rem;
395
- width: 1rem;
396
- visibility: hidden;
397
- }
398
- .eds-checkbox__icon .eds-checkbox-icon path {
399
- transform-origin: 50% 50%;
400
- stroke-dasharray: 48;
401
- stroke-dashoffset: 48;
402
- stroke-width: 0.375rem;
403
- }
404
-
405
- @keyframes stroke {
406
- 100% {
407
- stroke-dashoffset: 0;
408
- }
409
- }
410
- /* DO NOT CHANGE!*/
411
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
412
- .eds-feedback-text {
413
- display: flex;
414
- align-items: center;
415
- margin-top: 0.25rem;
416
- }
417
- .eds-feedback-text--info {
418
- padding-left: calc(1rem + 0.125rem);
419
- }
420
- .eds-feedback-text__text {
421
- color: #181c56;
422
- }
423
- .eds-contrast .eds-feedback-text__text {
424
- color: #ffffff;
425
- }
426
-
427
- .eds-feedback-text__icon {
428
- font-size: 1.5rem;
429
- min-height: 1.5rem;
430
- min-width: 1.5rem;
431
- padding-right: 0.5rem;
432
- position: relative;
433
- top: -0.1rem;
434
- }
435
- .eds-feedback-text__icon--success {
436
- color: #1a8e60;
437
- }
438
- .eds-contrast .eds-feedback-text__icon--success {
439
- color: #5ac39a;
440
- }
441
- .eds-feedback-text__icon--error {
442
- color: #d31b1b;
443
- }
444
- .eds-contrast .eds-feedback-text__icon--error {
445
- color: #ff9494;
446
- }
447
- .eds-feedback-text__icon--info {
448
- color: #0082b9;
449
- }
450
- .eds-contrast .eds-feedback-text__icon--info {
451
- color: #64b3e7;
452
- }
453
- .eds-feedback-text__icon--warning {
454
- color: #ffca28;
455
- }
456
- .eds-feedback-text__icon--warning circle {
457
- fill: #181c56;
458
- }
459
- .eds-contrast .eds-feedback-text__icon--warning {
460
- color: #ffe082;
461
- }
462
- /* DO NOT CHANGE!*/
463
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
464
- .eds-form-component--radio__container {
465
- display: flex;
466
- justify-content: center;
467
- align-items: center;
468
- position: relative;
469
- cursor: pointer;
470
- height: 2rem;
471
- width: -moz-fit-content;
472
- width: fit-content;
473
- -webkit-user-select: none;
474
- -moz-user-select: none;
475
- user-select: none;
476
- }
477
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
478
- border-color: #54568c;
479
- }
480
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
481
- background-color: #54568c;
482
- }
483
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
484
- border-color: #8285a8;
485
- }
486
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
487
- background-color: #8285a8;
488
- }
489
- .eds-form-component--radio__container input {
490
- position: absolute;
491
- opacity: 0;
492
- cursor: pointer;
493
- height: 0;
494
- width: 0;
495
- }
496
- .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
497
- height: 0.625rem;
498
- width: 0.625rem;
499
- }
500
- .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
501
- outline: none;
502
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
503
- outline-offset: 0.125rem;
504
- }
505
- .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
506
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
507
- }
508
- .eds-form-component--radio__container .eds-form-component--radio__radio {
509
- position: relative;
510
- height: 1.25rem;
511
- width: 1.25rem;
512
- margin-right: 1rem;
513
- background-color: #ffffff;
514
- border: 0.125rem solid #181c56;
515
- border-radius: 50%;
516
- display: flex;
517
- align-items: center;
518
- justify-content: center;
519
- }
520
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
521
- background-color: #181c56;
522
- border-color: #aeb7e2;
523
- }
524
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
525
- background: #d1d3d3;
526
- border-color: #d1d3d3;
527
- cursor: not-allowed;
528
- }
529
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
530
- border-color: #d1d3d3;
531
- }
532
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
533
- background: #d1d3d3;
534
- border-color: #d1d3d3;
535
- }
536
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
537
- color: #656782;
538
- }
539
- .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
540
- display: block;
541
- width: 0;
542
- height: 0;
543
- border-radius: 50%;
544
- background-color: #181c56;
545
- transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
546
- }
547
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
548
- background-color: #aeb7e2;
549
- }
550
- /* DO NOT CHANGE!*/
551
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
552
- .eds-switch {
553
- cursor: pointer;
554
- -webkit-user-select: none;
555
- -moz-user-select: none;
556
- user-select: none;
557
- padding: 0.5rem 0;
558
- width: -moz-fit-content;
559
- width: fit-content;
560
- }
561
- .eds-switch input {
562
- opacity: 0;
563
- pointer-events: none;
564
- position: absolute;
565
- }
566
- .eds-switch--right {
567
- display: flex;
568
- flex-direction: row;
569
- align-items: center;
570
- }
571
- .eds-switch--bottom {
572
- display: flex;
573
- flex-direction: column;
574
- align-items: center;
483
+ .eds-switch--bottom {
484
+ display: flex;
485
+ flex-direction: column;
486
+ align-items: center;
575
487
  }
576
488
  .eds-switch__circle {
577
489
  border-radius: 50%;
@@ -644,158 +556,27 @@
644
556
  }
645
557
  .eds-switch__switch--large {
646
558
  width: 3.75rem;
647
- height: 2rem;
648
- border-radius: 3.75rem;
649
- }
650
- :checked + .eds-switch__switch--large .eds-switch__circle {
651
- left: 1.875rem;
652
- }
653
- .eds-switch__switch--large svg {
654
- position: relative;
655
- right: 0.05rem;
656
- }
657
- .eds-switch__label--large--right {
658
- font-size: 1rem;
659
- }
660
- .eds-switch__label--large--bottom {
661
- font-size: 0.875rem;
662
- }
663
- .eds-switch__label--medium--right {
664
- font-size: 0.875rem;
665
- }
666
- .eds-switch__label--medium--bottom {
667
- font-size: 0.75rem;
668
- }
669
- /* DO NOT CHANGE!*/
670
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
671
- .eds-input-group {
672
- color: inherit;
673
- display: block;
674
- position: relative;
675
- }
676
- .eds-input-group__label {
677
- color: #656782;
678
- display: flex;
679
- font-size: 1rem;
680
- position: absolute;
681
- line-height: 1rem;
682
- height: 3rem;
683
- padding: 1rem;
684
- padding-left: 0;
685
- margin-left: 1rem;
686
- top: -0.125rem;
687
- 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;
688
- -webkit-user-select: none;
689
- -moz-user-select: none;
690
- user-select: none;
691
- pointer-events: none;
692
- }
693
- .eds-form-control-wrapper--is-filled .eds-input-group__label {
694
- top: 0.375rem;
695
- font-size: 0.75rem;
696
- line-height: 0.75rem;
697
- height: 10px;
698
- padding: 0;
699
- margin-left: 1rem;
700
- }
701
- .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
702
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
703
- background: var(--textarea-label-background);
704
- width: calc(
705
- 100% - 1rem - 1rem - 4px
706
- );
707
- }
708
- .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
709
- top: 0.5rem;
710
- font-size: 0.875rem;
711
- line-height: 1rem;
712
- padding: 0;
713
- margin-left: 1rem;
714
- }
715
- .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
716
- color: #aeb7e2;
717
- }
718
- .eds-form-control-wrapper--size-large .eds-input-group__label {
719
- font-size: 1.5rem;
720
- line-height: 2.25rem;
721
- height: 4rem;
722
- }
723
- .eds-input-group__label--filled {
724
- top: 0.375rem;
725
- font-size: 0.75rem;
726
- line-height: 0.75rem;
727
- height: 10px;
728
- padding: 0;
729
- margin-left: 1rem;
730
- }
731
- .eds-textarea__label .eds-input-group__label--filled {
732
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
733
- background: var(--textarea-label-background);
734
- width: calc(
735
- 100% - 1rem - 1rem - 4px
736
- );
737
- }
738
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
739
- top: 0.5rem;
740
- font-size: 0.875rem;
741
- line-height: 1rem;
742
- padding: 0;
743
- margin-left: 1rem;
744
- }
745
- .eds-input-group__label-tooltip-icon {
746
- color: #0082b9;
747
- padding-left: 0.25rem;
748
- padding-right: 0.25rem;
749
- display: flex;
750
- align-items: center;
751
- cursor: help;
752
- font-size: 1rem;
753
- }
754
-
755
- .eds-form-control-wrapper[focus-within] .eds-input-group__label {
756
- top: 0.375rem;
757
- font-size: 0.75rem;
758
- line-height: 0.75rem;
759
- height: 10px;
760
- padding: 0;
761
- margin-left: 1rem;
762
- }
763
-
764
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
765
- top: 0.375rem;
766
- font-size: 0.75rem;
767
- line-height: 0.75rem;
768
- height: 10px;
769
- padding: 0;
770
- margin-left: 1rem;
559
+ height: 2rem;
560
+ border-radius: 3.75rem;
771
561
  }
772
- .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
773
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
774
- background: var(--textarea-label-background);
775
- width: calc(
776
- 100% - 1rem - 1rem - 4px
777
- );
562
+ :checked + .eds-switch__switch--large .eds-switch__circle {
563
+ left: 1.875rem;
778
564
  }
779
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
780
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
781
- background: var(--textarea-label-background);
782
- width: calc(
783
- 100% - 1rem - 1rem - 4px
784
- );
565
+ .eds-switch__switch--large svg {
566
+ position: relative;
567
+ right: 0.05rem;
785
568
  }
786
- .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
787
- top: 0.5rem;
569
+ .eds-switch__label--large--right {
570
+ font-size: 1rem;
571
+ }
572
+ .eds-switch__label--large--bottom {
788
573
  font-size: 0.875rem;
789
- line-height: 1rem;
790
- padding: 0;
791
- margin-left: 1rem;
792
574
  }
793
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
794
- top: 0.5rem;
575
+ .eds-switch__label--medium--right {
795
576
  font-size: 0.875rem;
796
- line-height: 1rem;
797
- padding: 0;
798
- margin-left: 1rem;
577
+ }
578
+ .eds-switch__label--medium--bottom {
579
+ font-size: 0.75rem;
799
580
  }
800
581
  /* DO NOT CHANGE!*/
801
582
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -964,6 +745,225 @@ input:disabled + .eds-input-panel__container {
964
745
  }
965
746
  /* DO NOT CHANGE!*/
966
747
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
748
+ .eds-input-group {
749
+ color: inherit;
750
+ display: block;
751
+ position: relative;
752
+ }
753
+ .eds-input-group__label {
754
+ color: #656782;
755
+ display: flex;
756
+ font-size: 1rem;
757
+ position: absolute;
758
+ line-height: 1rem;
759
+ height: 3rem;
760
+ padding: 1rem;
761
+ padding-left: 0;
762
+ margin-left: 1rem;
763
+ top: -0.125rem;
764
+ 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;
765
+ -webkit-user-select: none;
766
+ -moz-user-select: none;
767
+ user-select: none;
768
+ pointer-events: none;
769
+ }
770
+ .eds-form-control-wrapper--is-filled .eds-input-group__label {
771
+ top: 0.375rem;
772
+ font-size: 0.75rem;
773
+ line-height: 0.75rem;
774
+ height: 10px;
775
+ padding: 0;
776
+ margin-left: 1rem;
777
+ }
778
+ .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
779
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
780
+ background: var(--textarea-label-background);
781
+ width: calc(
782
+ 100% - 1rem - 1rem - 4px
783
+ );
784
+ }
785
+ .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
786
+ top: 0.5rem;
787
+ font-size: 0.875rem;
788
+ line-height: 1rem;
789
+ padding: 0;
790
+ margin-left: 1rem;
791
+ }
792
+ .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
793
+ color: #aeb7e2;
794
+ }
795
+ .eds-form-control-wrapper--size-large .eds-input-group__label {
796
+ font-size: 1.5rem;
797
+ line-height: 2.25rem;
798
+ height: 4rem;
799
+ }
800
+ .eds-input-group__label--filled {
801
+ top: 0.375rem;
802
+ font-size: 0.75rem;
803
+ line-height: 0.75rem;
804
+ height: 10px;
805
+ padding: 0;
806
+ margin-left: 1rem;
807
+ }
808
+ .eds-textarea__label .eds-input-group__label--filled {
809
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
810
+ background: var(--textarea-label-background);
811
+ width: calc(
812
+ 100% - 1rem - 1rem - 4px
813
+ );
814
+ }
815
+ .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
816
+ top: 0.5rem;
817
+ font-size: 0.875rem;
818
+ line-height: 1rem;
819
+ padding: 0;
820
+ margin-left: 1rem;
821
+ }
822
+ .eds-input-group__label-tooltip-icon {
823
+ color: #0082b9;
824
+ padding-left: 0.25rem;
825
+ padding-right: 0.25rem;
826
+ display: flex;
827
+ align-items: center;
828
+ cursor: help;
829
+ font-size: 1rem;
830
+ }
831
+
832
+ .eds-form-control-wrapper[focus-within] .eds-input-group__label {
833
+ top: 0.375rem;
834
+ font-size: 0.75rem;
835
+ line-height: 0.75rem;
836
+ height: 10px;
837
+ padding: 0;
838
+ margin-left: 1rem;
839
+ }
840
+
841
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
842
+ top: 0.375rem;
843
+ font-size: 0.75rem;
844
+ line-height: 0.75rem;
845
+ height: 10px;
846
+ padding: 0;
847
+ margin-left: 1rem;
848
+ }
849
+ .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
850
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
851
+ background: var(--textarea-label-background);
852
+ width: calc(
853
+ 100% - 1rem - 1rem - 4px
854
+ );
855
+ }
856
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
857
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
858
+ background: var(--textarea-label-background);
859
+ width: calc(
860
+ 100% - 1rem - 1rem - 4px
861
+ );
862
+ }
863
+ .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
864
+ top: 0.5rem;
865
+ font-size: 0.875rem;
866
+ line-height: 1rem;
867
+ padding: 0;
868
+ margin-left: 1rem;
869
+ }
870
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
871
+ top: 0.5rem;
872
+ font-size: 0.875rem;
873
+ line-height: 1rem;
874
+ padding: 0;
875
+ margin-left: 1rem;
876
+ }
877
+ /* DO NOT CHANGE!*/
878
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
879
+ .eds-form-component--radio__container {
880
+ display: flex;
881
+ justify-content: center;
882
+ align-items: center;
883
+ position: relative;
884
+ cursor: pointer;
885
+ height: 2rem;
886
+ width: -moz-fit-content;
887
+ width: fit-content;
888
+ -webkit-user-select: none;
889
+ -moz-user-select: none;
890
+ user-select: none;
891
+ }
892
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
893
+ border-color: #54568c;
894
+ }
895
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
896
+ background-color: #54568c;
897
+ }
898
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
899
+ border-color: #8285a8;
900
+ }
901
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
902
+ background-color: #8285a8;
903
+ }
904
+ .eds-form-component--radio__container input {
905
+ position: absolute;
906
+ opacity: 0;
907
+ cursor: pointer;
908
+ height: 0;
909
+ width: 0;
910
+ }
911
+ .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
912
+ height: 0.625rem;
913
+ width: 0.625rem;
914
+ }
915
+ .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
916
+ outline: none;
917
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
918
+ outline-offset: 0.125rem;
919
+ }
920
+ .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
921
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
922
+ }
923
+ .eds-form-component--radio__container .eds-form-component--radio__radio {
924
+ position: relative;
925
+ height: 1.25rem;
926
+ width: 1.25rem;
927
+ margin-right: 1rem;
928
+ background-color: #ffffff;
929
+ border: 0.125rem solid #181c56;
930
+ border-radius: 50%;
931
+ display: flex;
932
+ align-items: center;
933
+ justify-content: center;
934
+ }
935
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
936
+ background-color: #181c56;
937
+ border-color: #aeb7e2;
938
+ }
939
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
940
+ background: #d1d3d3;
941
+ border-color: #d1d3d3;
942
+ cursor: not-allowed;
943
+ }
944
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
945
+ border-color: #d1d3d3;
946
+ }
947
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
948
+ background: #d1d3d3;
949
+ border-color: #d1d3d3;
950
+ }
951
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
952
+ color: #656782;
953
+ }
954
+ .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
955
+ display: block;
956
+ width: 0;
957
+ height: 0;
958
+ border-radius: 50%;
959
+ background-color: #181c56;
960
+ transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
961
+ }
962
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
963
+ background-color: #aeb7e2;
964
+ }
965
+ /* DO NOT CHANGE!*/
966
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
967
967
  textarea.eds-form-control.eds-textarea {
968
968
  min-height: 7.75rem;
969
969
  resize: vertical;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/form",
3
- "version": "7.0.18-beta.0",
3
+ "version": "7.0.18",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/form.esm.js",
@@ -34,5 +34,5 @@
34
34
  "@entur/utils": "^0.9.5",
35
35
  "classnames": "^2.3.1"
36
36
  },
37
- "gitHead": "faeadfa30668a407f4078806d12cdda42195b4b8"
37
+ "gitHead": "72e76df00ea0a7313bd2c55e23aa96ad1e291ef1"
38
38
  }