@entur/form 8.2.4 → 8.2.5-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.
package/dist/styles.css CHANGED
@@ -1,5 +1,153 @@
1
1
  /* DO NOT CHANGE!*/
2
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: var(--components-form-checkbox-standard-fill-selected);
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: var(--components-form-checkbox-standard-icon);
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: var(--components-form-checkbox-standard-icon);
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: var(--components-form-checkbox-contrast-fill-selected);
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: var(--components-form-checkbox-contrast-icon);
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: var(--components-form-checkbox-contrast-icon);
64
+ }
65
+ .eds-checkbox__container:hover input + .eds-checkbox__icon {
66
+ border-color: var(--components-form-checkbox-standard-border);
67
+ background-color: var(--components-form-checkbox-standard-fill-hover);
68
+ }
69
+ .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
70
+ border-color: var(--components-form-checkbox-contrast-border);
71
+ background-color: var(--components-form-checkbox-contrast-fill-hover);
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: var(--components-form-checkbox-standard-fill-selectedhover);
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: var(--components-form-checkbox-contrast-fill-selectedhover);
81
+ }
82
+ .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
83
+ .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
84
+ background-color: var(--components-form-checkbox-standard-fill-selected);
85
+ }
86
+ .eds-contrast .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
87
+ .eds-contrast .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
88
+ background-color: var(--components-form-checkbox-contrast-fill-selected);
89
+ }
90
+ .eds-checkbox__container:has(:focus-visible) .eds-checkbox__icon {
91
+ outline: 2px solid #181c56;
92
+ outline-color: var(--basecolors-stroke-focus-standard);
93
+ outline-offset: 0.125rem;
94
+ }
95
+ .eds-contrast .eds-checkbox__container:has(:focus-visible) .eds-checkbox__icon {
96
+ outline-color: var(--basecolors-stroke-focus-contrast);
97
+ }
98
+ .eds-checkbox--disabled {
99
+ pointer-events: none;
100
+ }
101
+ .eds-checkbox--disabled .eds-checkbox__label {
102
+ opacity: 0.5;
103
+ }
104
+ .eds-checkbox--disabled .eds-checkbox__icon {
105
+ opacity: 0.5;
106
+ }
107
+ .eds-checkbox__icon {
108
+ box-sizing: border-box;
109
+ display: inline-flex;
110
+ justify-content: center;
111
+ align-items: center;
112
+ position: relative;
113
+ margin-right: 1rem;
114
+ height: 1.25rem;
115
+ width: 1.25rem;
116
+ border: 0.125rem solid var(--components-form-checkbox-standard-border);
117
+ border-radius: 0.125rem;
118
+ background-color: transparent;
119
+ transition: border-color 0.1s ease-in-out, background-color 0.1s ease-in-out;
120
+ }
121
+ .eds-checkbox__icon--reduced-click-area {
122
+ margin-right: 0;
123
+ }
124
+ .eds-contrast .eds-checkbox__icon {
125
+ border-color: var(--components-form-checkbox-contrast-border);
126
+ }
127
+ .eds-checkbox__icon .eds-checkbox-icon {
128
+ height: 1rem;
129
+ width: 1rem;
130
+ visibility: hidden;
131
+ }
132
+ .eds-checkbox__icon .eds-checkbox-icon path {
133
+ transform-origin: 50% 50%;
134
+ stroke-dasharray: 48;
135
+ stroke-dashoffset: 48;
136
+ stroke-width: 0.375rem;
137
+ }
138
+
139
+ @keyframes stroke {
140
+ 100% {
141
+ stroke-dashoffset: 0;
142
+ }
143
+ }
144
+ .eds-fieldset {
145
+ margin: 0;
146
+ padding: 0;
147
+ border: 0;
148
+ }
149
+ /* DO NOT CHANGE!*/
150
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
151
  .eds-form-control__field-and-feedback-text {
4
152
  display: flex;
5
153
  flex-direction: column;
@@ -279,242 +427,6 @@
279
427
  .eds-contrast .eds-feedback-text__icon--warning circle {
280
428
  fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
281
429
  }
282
- .eds-fieldset {
283
- margin: 0;
284
- padding: 0;
285
- border: 0;
286
- }
287
- /* DO NOT CHANGE!*/
288
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
289
- .eds-checkbox__container {
290
- display: flex;
291
- align-items: center;
292
- position: relative;
293
- -webkit-appearance: none;
294
- -moz-appearance: none;
295
- appearance: none;
296
- cursor: pointer;
297
- -webkit-user-select: none;
298
- -moz-user-select: none;
299
- user-select: none;
300
- width: -moz-fit-content;
301
- width: fit-content;
302
- margin: 0.5rem 0;
303
- }
304
- .eds-checkbox__container--reduced-click-area {
305
- height: -moz-fit-content;
306
- height: fit-content;
307
- }
308
- .eds-checkbox__container input {
309
- position: absolute;
310
- opacity: 0;
311
- height: 0;
312
- width: 0;
313
- }
314
- .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
315
- background-color: var(--components-form-checkbox-standard-fill-selected);
316
- }
317
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
318
- visibility: visible;
319
- }
320
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon path {
321
- stroke: var(--components-form-checkbox-standard-icon);
322
- animation: stroke ease-in-out 0.2s 0.1s forwards;
323
- }
324
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon rect {
325
- fill: var(--components-form-checkbox-standard-icon);
326
- }
327
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
328
- opacity: 0.5;
329
- }
330
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled path {
331
- opacity: 0.5;
332
- }
333
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled rect {
334
- opacity: 0.5;
335
- }
336
- .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled path {
337
- opacity: 0.5;
338
- }
339
- .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled rect {
340
- opacity: 0.5;
341
- }
342
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
343
- background-color: var(--components-form-checkbox-contrast-fill-selected);
344
- }
345
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon path, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon path {
346
- stroke: var(--components-form-checkbox-contrast-icon);
347
- }
348
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon rect, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon rect {
349
- fill: var(--components-form-checkbox-contrast-icon);
350
- }
351
- .eds-checkbox__container:hover input + .eds-checkbox__icon {
352
- border-color: var(--components-form-checkbox-standard-border);
353
- background-color: var(--components-form-checkbox-standard-fill-hover);
354
- }
355
- .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
356
- border-color: var(--components-form-checkbox-contrast-border);
357
- background-color: var(--components-form-checkbox-contrast-fill-hover);
358
- }
359
- .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
360
- .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
361
- border-color: transparent;
362
- background-color: var(--components-form-checkbox-standard-fill-selectedhover);
363
- }
364
- .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
365
- .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
366
- background-color: var(--components-form-checkbox-contrast-fill-selectedhover);
367
- }
368
- .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
369
- .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
370
- background-color: var(--components-form-checkbox-standard-fill-selected);
371
- }
372
- .eds-contrast .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
373
- .eds-contrast .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
374
- background-color: var(--components-form-checkbox-contrast-fill-selected);
375
- }
376
- .eds-checkbox__container:has(:focus-visible) .eds-checkbox__icon {
377
- outline: 2px solid #181c56;
378
- outline-color: var(--basecolors-stroke-focus-standard);
379
- outline-offset: 0.125rem;
380
- }
381
- .eds-contrast .eds-checkbox__container:has(:focus-visible) .eds-checkbox__icon {
382
- outline-color: var(--basecolors-stroke-focus-contrast);
383
- }
384
- .eds-checkbox--disabled {
385
- pointer-events: none;
386
- }
387
- .eds-checkbox--disabled .eds-checkbox__label {
388
- opacity: 0.5;
389
- }
390
- .eds-checkbox--disabled .eds-checkbox__icon {
391
- opacity: 0.5;
392
- }
393
- .eds-checkbox__icon {
394
- box-sizing: border-box;
395
- display: inline-flex;
396
- justify-content: center;
397
- align-items: center;
398
- position: relative;
399
- margin-right: 1rem;
400
- height: 1.25rem;
401
- width: 1.25rem;
402
- border: 0.125rem solid var(--components-form-checkbox-standard-border);
403
- border-radius: 0.125rem;
404
- background-color: transparent;
405
- transition: border-color 0.1s ease-in-out, background-color 0.1s ease-in-out;
406
- }
407
- .eds-checkbox__icon--reduced-click-area {
408
- margin-right: 0;
409
- }
410
- .eds-contrast .eds-checkbox__icon {
411
- border-color: var(--components-form-checkbox-contrast-border);
412
- }
413
- .eds-checkbox__icon .eds-checkbox-icon {
414
- height: 1rem;
415
- width: 1rem;
416
- visibility: hidden;
417
- }
418
- .eds-checkbox__icon .eds-checkbox-icon path {
419
- transform-origin: 50% 50%;
420
- stroke-dasharray: 48;
421
- stroke-dashoffset: 48;
422
- stroke-width: 0.375rem;
423
- }
424
-
425
- @keyframes stroke {
426
- 100% {
427
- stroke-dashoffset: 0;
428
- }
429
- }
430
- /* DO NOT CHANGE!*/
431
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
432
- .eds-input-group {
433
- color: inherit;
434
- display: block;
435
- position: relative;
436
- }
437
- .eds-input-group__label {
438
- color: var(--components-form-baseform-standard-text-label);
439
- display: flex;
440
- font-size: 1rem;
441
- position: absolute;
442
- line-height: 1rem;
443
- height: 3rem;
444
- padding-left: 0;
445
- top: 1rem;
446
- 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;
447
- -webkit-user-select: none;
448
- -moz-user-select: none;
449
- user-select: none;
450
- pointer-events: none;
451
- }
452
- .eds-form-control-wrapper--is-filled .eds-input-group__label {
453
- top: 0.375rem;
454
- font-size: 0.75rem;
455
- line-height: 0.75rem;
456
- height: 10px;
457
- padding: 0;
458
- }
459
- .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
460
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
461
- background: var(--textarea-label-background);
462
- width: calc(100% - 1rem - 1rem - 4px);
463
- }
464
- .eds-form-control-wrapper--is-filled.eds-form-control-wrapper--size-large .eds-input-group__label {
465
- top: 0.5rem;
466
- font-size: 0.875rem;
467
- line-height: 1rem;
468
- padding: 0;
469
- }
470
- .eds-form-control-wrapper--size-large .eds-input-group__label {
471
- top: 0.75rem;
472
- font-size: 1.5rem;
473
- line-height: 2.25rem;
474
- }
475
- .eds-input-group__label--filled {
476
- top: 0.375rem;
477
- font-size: 0.75rem;
478
- line-height: 0.75rem;
479
- height: 10px;
480
- padding: 0;
481
- }
482
- .eds-textarea__label .eds-input-group__label--filled {
483
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
484
- background: var(--textarea-label-background);
485
- width: calc(100% - 1rem - 1rem - 4px);
486
- }
487
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
488
- top: 0.5rem;
489
- font-size: 0.875rem;
490
- line-height: 1rem;
491
- padding: 0;
492
- }
493
-
494
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
495
- top: 0.375rem;
496
- font-size: 0.75rem;
497
- line-height: 0.75rem;
498
- height: 10px;
499
- padding: 0;
500
- }
501
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
502
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
503
- background: var(--textarea-label-background);
504
- width: calc(100% - 1rem - 1rem - 4px);
505
- }
506
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
507
- top: 0.5rem;
508
- font-size: 0.875rem;
509
- line-height: 1rem;
510
- padding: 0;
511
- }
512
- .eds-form-control-wrapper--disabled:focus-within .eds-input-group__label {
513
- top: 1rem;
514
- font-size: 1rem;
515
- height: 3rem;
516
- line-height: 1rem;
517
- }
518
430
  /* DO NOT CHANGE!*/
519
431
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
520
432
  .eds-form-component--radio__container {
@@ -718,6 +630,94 @@
718
630
  }
719
631
  /* DO NOT CHANGE!*/
720
632
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
633
+ .eds-input-group {
634
+ color: inherit;
635
+ display: block;
636
+ position: relative;
637
+ }
638
+ .eds-input-group__label {
639
+ color: var(--components-form-baseform-standard-text-label);
640
+ display: flex;
641
+ font-size: 1rem;
642
+ position: absolute;
643
+ line-height: 1rem;
644
+ height: 3rem;
645
+ padding-left: 0;
646
+ top: 1rem;
647
+ 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;
648
+ -webkit-user-select: none;
649
+ -moz-user-select: none;
650
+ user-select: none;
651
+ pointer-events: none;
652
+ }
653
+ .eds-form-control-wrapper--is-filled .eds-input-group__label {
654
+ top: 0.375rem;
655
+ font-size: 0.75rem;
656
+ line-height: 0.75rem;
657
+ height: 10px;
658
+ padding: 0;
659
+ }
660
+ .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
661
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
662
+ background: var(--textarea-label-background);
663
+ width: calc(100% - 1rem - 1rem - 4px);
664
+ }
665
+ .eds-form-control-wrapper--is-filled.eds-form-control-wrapper--size-large .eds-input-group__label {
666
+ top: 0.5rem;
667
+ font-size: 0.875rem;
668
+ line-height: 1rem;
669
+ padding: 0;
670
+ }
671
+ .eds-form-control-wrapper--size-large .eds-input-group__label {
672
+ top: 0.75rem;
673
+ font-size: 1.5rem;
674
+ line-height: 2.25rem;
675
+ }
676
+ .eds-input-group__label--filled {
677
+ top: 0.375rem;
678
+ font-size: 0.75rem;
679
+ line-height: 0.75rem;
680
+ height: 10px;
681
+ padding: 0;
682
+ }
683
+ .eds-textarea__label .eds-input-group__label--filled {
684
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
685
+ background: var(--textarea-label-background);
686
+ width: calc(100% - 1rem - 1rem - 4px);
687
+ }
688
+ .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
689
+ top: 0.5rem;
690
+ font-size: 0.875rem;
691
+ line-height: 1rem;
692
+ padding: 0;
693
+ }
694
+
695
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
696
+ top: 0.375rem;
697
+ font-size: 0.75rem;
698
+ line-height: 0.75rem;
699
+ height: 10px;
700
+ padding: 0;
701
+ }
702
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
703
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
704
+ background: var(--textarea-label-background);
705
+ width: calc(100% - 1rem - 1rem - 4px);
706
+ }
707
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
708
+ top: 0.5rem;
709
+ font-size: 0.875rem;
710
+ line-height: 1rem;
711
+ padding: 0;
712
+ }
713
+ .eds-form-control-wrapper--disabled:focus-within .eds-input-group__label {
714
+ top: 1rem;
715
+ font-size: 1rem;
716
+ height: 3rem;
717
+ line-height: 1rem;
718
+ }
719
+ /* DO NOT CHANGE!*/
720
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
721
721
  .eds-input-panel:has(:focus-visible) .eds-input-panel__container {
722
722
  outline: 2px solid #181c56;
723
723
  outline-color: var(--basecolors-stroke-focus-standard);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/form",
3
- "version": "8.2.4",
3
+ "version": "8.2.5-beta.0",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/form.esm.js",
@@ -38,5 +38,5 @@
38
38
  "devDependencies": {
39
39
  "dts-cli": "2.0.5"
40
40
  },
41
- "gitHead": "bfd8f62e4735cc13d55e50bc8747535d72aaf679"
41
+ "gitHead": "1437e501a9a5ad8c806c7c1cccc6e399765c0638"
42
42
  }