@entur/form 8.2.3 → 8.2.4
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/README.md +2 -2
- package/dist/styles.css +270 -266
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This package contains all the common form-components
|
|
4
4
|
|
|
5
|
-
> 💡 Looking for the [documentation](https://
|
|
5
|
+
> 💡 Looking for the [documentation](https://linje.entur.no/komponenter/skjemaelementer/textfield)?
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -14,4 +14,4 @@ yarn add @entur/form
|
|
|
14
14
|
|
|
15
15
|
## Usage
|
|
16
16
|
|
|
17
|
-
Please refer to the [documentation](https://
|
|
17
|
+
Please refer to the [documentation](https://linje.entur.no/komponenter/skjemaelementer/textfield) for further usage information.
|
package/dist/styles.css
CHANGED
|
@@ -1,83 +1,5 @@
|
|
|
1
1
|
/* DO NOT CHANGE!*/
|
|
2
2
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
3
|
-
.eds-feedback-text {
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
margin-top: 0.25rem;
|
|
7
|
-
}
|
|
8
|
-
.eds-feedback-text--info, .eds-feedback-text--information {
|
|
9
|
-
padding-left: calc(1rem + 0.125rem);
|
|
10
|
-
}
|
|
11
|
-
.eds-feedback-text__text {
|
|
12
|
-
color: var(--components-form-feedbacktext-information-standard-text);
|
|
13
|
-
}
|
|
14
|
-
.eds-contrast .eds-feedback-text__text {
|
|
15
|
-
color: var(--components-form-feedbacktext-information-contrast-text);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.eds-feedback-text__icon {
|
|
19
|
-
font-size: 1.5rem;
|
|
20
|
-
min-height: 1.5rem;
|
|
21
|
-
min-width: 1.5rem;
|
|
22
|
-
padding-right: 0.5rem;
|
|
23
|
-
position: relative;
|
|
24
|
-
top: -0.1rem;
|
|
25
|
-
}
|
|
26
|
-
.eds-feedback-text__icon--success {
|
|
27
|
-
color: var(--components-form-feedbacktext-success-standard-icon-fill);
|
|
28
|
-
}
|
|
29
|
-
.eds-feedback-text__icon--success circle {
|
|
30
|
-
fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
|
|
31
|
-
}
|
|
32
|
-
.eds-contrast .eds-feedback-text__icon--success {
|
|
33
|
-
color: var(--components-form-feedbacktext-success-contrast-icon-fill);
|
|
34
|
-
}
|
|
35
|
-
.eds-contrast .eds-feedback-text__icon--success circle {
|
|
36
|
-
fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
|
|
37
|
-
}
|
|
38
|
-
.eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
|
|
39
|
-
color: var(--components-form-feedbacktext-negative-standard-icon-fill);
|
|
40
|
-
}
|
|
41
|
-
.eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
|
|
42
|
-
fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
|
|
43
|
-
}
|
|
44
|
-
.eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
|
|
45
|
-
color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
|
|
46
|
-
}
|
|
47
|
-
.eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
|
|
48
|
-
fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
|
|
49
|
-
}
|
|
50
|
-
.eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
|
|
51
|
-
color: var(--components-form-feedbacktext-information-standard-icon-fill);
|
|
52
|
-
}
|
|
53
|
-
.eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
|
|
54
|
-
fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
|
|
55
|
-
}
|
|
56
|
-
.eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
|
|
57
|
-
color: var(--components-form-feedbacktext-information-contrast-icon-fill);
|
|
58
|
-
}
|
|
59
|
-
.eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
|
|
60
|
-
fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
|
|
61
|
-
}
|
|
62
|
-
.eds-feedback-text__icon--warning {
|
|
63
|
-
color: var(--components-form-feedbacktext-warning-standard-icon-fill);
|
|
64
|
-
}
|
|
65
|
-
.eds-feedback-text__icon--warning .svg-exclamation {
|
|
66
|
-
fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
|
|
67
|
-
}
|
|
68
|
-
.eds-contrast .eds-feedback-text__icon--warning {
|
|
69
|
-
color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
|
|
70
|
-
}
|
|
71
|
-
.eds-contrast .eds-feedback-text__icon--warning circle {
|
|
72
|
-
fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
|
|
73
|
-
}
|
|
74
|
-
.eds-fieldset {
|
|
75
|
-
margin: 0;
|
|
76
|
-
padding: 0;
|
|
77
|
-
border: 0;
|
|
78
|
-
}
|
|
79
|
-
/* DO NOT CHANGE!*/
|
|
80
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
81
3
|
.eds-form-control__field-and-feedback-text {
|
|
82
4
|
display: flex;
|
|
83
5
|
flex-direction: column;
|
|
@@ -286,85 +208,81 @@
|
|
|
286
208
|
}
|
|
287
209
|
/* DO NOT CHANGE!*/
|
|
288
210
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
289
|
-
.eds-
|
|
211
|
+
.eds-feedback-text {
|
|
290
212
|
display: flex;
|
|
291
|
-
justify-content: center;
|
|
292
213
|
align-items: center;
|
|
214
|
+
margin-top: 0.25rem;
|
|
215
|
+
}
|
|
216
|
+
.eds-feedback-text--info, .eds-feedback-text--information {
|
|
217
|
+
padding-left: calc(1rem + 0.125rem);
|
|
218
|
+
}
|
|
219
|
+
.eds-feedback-text__text {
|
|
220
|
+
color: var(--components-form-feedbacktext-information-standard-text);
|
|
221
|
+
}
|
|
222
|
+
.eds-contrast .eds-feedback-text__text {
|
|
223
|
+
color: var(--components-form-feedbacktext-information-contrast-text);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.eds-feedback-text__icon {
|
|
227
|
+
font-size: 1.5rem;
|
|
228
|
+
min-height: 1.5rem;
|
|
229
|
+
min-width: 1.5rem;
|
|
230
|
+
padding-right: 0.5rem;
|
|
293
231
|
position: relative;
|
|
294
|
-
|
|
295
|
-
height: 2rem;
|
|
296
|
-
width: -moz-fit-content;
|
|
297
|
-
width: fit-content;
|
|
298
|
-
-webkit-user-select: none;
|
|
299
|
-
-moz-user-select: none;
|
|
300
|
-
user-select: none;
|
|
232
|
+
top: -0.1rem;
|
|
301
233
|
}
|
|
302
|
-
.eds-
|
|
303
|
-
|
|
234
|
+
.eds-feedback-text__icon--success {
|
|
235
|
+
color: var(--components-form-feedbacktext-success-standard-icon-fill);
|
|
304
236
|
}
|
|
305
|
-
.eds-
|
|
306
|
-
|
|
237
|
+
.eds-feedback-text__icon--success circle {
|
|
238
|
+
fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
|
|
307
239
|
}
|
|
308
|
-
.eds-
|
|
309
|
-
|
|
310
|
-
opacity: 0;
|
|
311
|
-
cursor: pointer;
|
|
312
|
-
height: 0;
|
|
313
|
-
width: 0;
|
|
240
|
+
.eds-contrast .eds-feedback-text__icon--success {
|
|
241
|
+
color: var(--components-form-feedbacktext-success-contrast-icon-fill);
|
|
314
242
|
}
|
|
315
|
-
.eds-
|
|
316
|
-
|
|
317
|
-
width: 0.625rem;
|
|
243
|
+
.eds-contrast .eds-feedback-text__icon--success circle {
|
|
244
|
+
fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
|
|
318
245
|
}
|
|
319
|
-
.eds-
|
|
320
|
-
|
|
321
|
-
outline-color: var(--basecolors-stroke-focus-standard);
|
|
322
|
-
outline-offset: 0.125rem;
|
|
246
|
+
.eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
|
|
247
|
+
color: var(--components-form-feedbacktext-negative-standard-icon-fill);
|
|
323
248
|
}
|
|
324
|
-
.eds-
|
|
325
|
-
|
|
249
|
+
.eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
|
|
250
|
+
fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
|
|
326
251
|
}
|
|
327
|
-
.eds-
|
|
328
|
-
|
|
329
|
-
height: 1.25rem;
|
|
330
|
-
width: 1.25rem;
|
|
331
|
-
margin-right: 1rem;
|
|
332
|
-
background-color: var(--components-form-radio-standard-fill-default);
|
|
333
|
-
border: 0.125rem solid var(--components-form-radio-standard-border);
|
|
334
|
-
border-radius: 50%;
|
|
335
|
-
display: flex;
|
|
336
|
-
align-items: center;
|
|
337
|
-
justify-content: center;
|
|
252
|
+
.eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
|
|
253
|
+
color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
|
|
338
254
|
}
|
|
339
|
-
.eds-contrast .eds-
|
|
340
|
-
|
|
341
|
-
border-color: var(--components-form-radio-contrast-border);
|
|
255
|
+
.eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
|
|
256
|
+
fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
|
|
342
257
|
}
|
|
343
|
-
.eds-
|
|
344
|
-
|
|
345
|
-
border-color: var(--components-form-baseform-contrast-text-disabled);
|
|
346
|
-
cursor: not-allowed;
|
|
258
|
+
.eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
|
|
259
|
+
color: var(--components-form-feedbacktext-information-standard-icon-fill);
|
|
347
260
|
}
|
|
348
|
-
.eds-
|
|
349
|
-
|
|
261
|
+
.eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
|
|
262
|
+
fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
|
|
350
263
|
}
|
|
351
|
-
.eds-contrast .eds-
|
|
352
|
-
|
|
353
|
-
border-color: var(--components-form-baseform-contrast-text-disabled);
|
|
264
|
+
.eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
|
|
265
|
+
color: var(--components-form-feedbacktext-information-contrast-icon-fill);
|
|
354
266
|
}
|
|
355
|
-
.eds-
|
|
356
|
-
|
|
267
|
+
.eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
|
|
268
|
+
fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
|
|
357
269
|
}
|
|
358
|
-
.eds-
|
|
359
|
-
|
|
360
|
-
width: 0;
|
|
361
|
-
height: 0;
|
|
362
|
-
border-radius: 50%;
|
|
363
|
-
background-color: var(--components-form-radio-standard-fill-selected);
|
|
364
|
-
transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
|
|
270
|
+
.eds-feedback-text__icon--warning {
|
|
271
|
+
color: var(--components-form-feedbacktext-warning-standard-icon-fill);
|
|
365
272
|
}
|
|
366
|
-
.eds-
|
|
367
|
-
|
|
273
|
+
.eds-feedback-text__icon--warning .svg-exclamation {
|
|
274
|
+
fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
|
|
275
|
+
}
|
|
276
|
+
.eds-contrast .eds-feedback-text__icon--warning {
|
|
277
|
+
color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
|
|
278
|
+
}
|
|
279
|
+
.eds-contrast .eds-feedback-text__icon--warning circle {
|
|
280
|
+
fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
|
|
281
|
+
}
|
|
282
|
+
.eds-fieldset {
|
|
283
|
+
margin: 0;
|
|
284
|
+
padding: 0;
|
|
285
|
+
border: 0;
|
|
368
286
|
}
|
|
369
287
|
/* DO NOT CHANGE!*/
|
|
370
288
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -599,151 +517,85 @@
|
|
|
599
517
|
}
|
|
600
518
|
/* DO NOT CHANGE!*/
|
|
601
519
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
602
|
-
.eds-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
520
|
+
.eds-form-component--radio__container {
|
|
521
|
+
display: flex;
|
|
522
|
+
justify-content: center;
|
|
523
|
+
align-items: center;
|
|
524
|
+
position: relative;
|
|
525
|
+
cursor: pointer;
|
|
526
|
+
height: 2rem;
|
|
527
|
+
width: -moz-fit-content;
|
|
528
|
+
width: fit-content;
|
|
529
|
+
-webkit-user-select: none;
|
|
530
|
+
-moz-user-select: none;
|
|
531
|
+
user-select: none;
|
|
606
532
|
}
|
|
607
|
-
.eds-
|
|
608
|
-
|
|
533
|
+
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
534
|
+
background-color: var(--components-form-radio-standard-fill-hover);
|
|
609
535
|
}
|
|
610
|
-
.eds-
|
|
536
|
+
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
537
|
+
background-color: var(--components-form-radio-contrast-fill-hover);
|
|
538
|
+
}
|
|
539
|
+
.eds-form-component--radio__container input {
|
|
611
540
|
position: absolute;
|
|
612
541
|
opacity: 0;
|
|
613
542
|
cursor: pointer;
|
|
614
543
|
height: 0;
|
|
615
544
|
width: 0;
|
|
616
545
|
}
|
|
617
|
-
.eds-
|
|
618
|
-
|
|
619
|
-
|
|
546
|
+
.eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
547
|
+
height: 0.625rem;
|
|
548
|
+
width: 0.625rem;
|
|
620
549
|
}
|
|
621
|
-
.eds-
|
|
622
|
-
|
|
623
|
-
|
|
550
|
+
.eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
|
|
551
|
+
outline: 2px solid #181c56;
|
|
552
|
+
outline-color: var(--basecolors-stroke-focus-standard);
|
|
553
|
+
outline-offset: 0.125rem;
|
|
624
554
|
}
|
|
625
|
-
.eds-
|
|
626
|
-
|
|
627
|
-
height: 0.75rem;
|
|
555
|
+
.eds-contrast .eds-form-component--radio__container input:focus-visible ~ .eds-form-component--radio__radio {
|
|
556
|
+
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
628
557
|
}
|
|
629
|
-
.eds-
|
|
630
|
-
|
|
558
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
559
|
+
position: relative;
|
|
560
|
+
height: 1.25rem;
|
|
561
|
+
width: 1.25rem;
|
|
562
|
+
margin-right: 1rem;
|
|
563
|
+
background-color: var(--components-form-radio-standard-fill-default);
|
|
564
|
+
border: 0.125rem solid var(--components-form-radio-standard-border);
|
|
565
|
+
border-radius: 50%;
|
|
566
|
+
display: flex;
|
|
567
|
+
align-items: center;
|
|
568
|
+
justify-content: center;
|
|
631
569
|
}
|
|
632
|
-
.eds-
|
|
633
|
-
background-color: var(--components-form-
|
|
634
|
-
|
|
635
|
-
hover state styling with the inputPanel container */
|
|
636
|
-
}
|
|
637
|
-
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover {
|
|
638
|
-
background-color: var(--components-form-basepanel-contrast-fill-hover);
|
|
639
|
-
}
|
|
640
|
-
.eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
|
|
641
|
-
background-color: var(--components-form-basepanel-standard-fill-hover);
|
|
642
|
-
border-color: var(--components-form-basepanel-standard-border-selected);
|
|
643
|
-
}
|
|
644
|
-
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
|
|
645
|
-
background-color: var(--components-form-basepanel-contrast-fill-hover);
|
|
646
|
-
border-color: var(--components-form-basepanel-contrast-border-selected);
|
|
647
|
-
}
|
|
648
|
-
.eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
|
|
649
|
-
border-color: transparent;
|
|
650
|
-
}
|
|
651
|
-
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
|
|
652
|
-
background-color: var(--components-form-checkbox-contrast-fill-selectedhover);
|
|
653
|
-
}
|
|
654
|
-
.eds-input-panel__container {
|
|
655
|
-
background: var(--components-form-basepanel-standard-fill-default);
|
|
656
|
-
border: 0.125rem solid var(--components-form-basepanel-standard-border-default);
|
|
657
|
-
color: var(--components-form-basepanel-standard-text-accent);
|
|
658
|
-
border-radius: 0.25rem;
|
|
659
|
-
display: flex;
|
|
660
|
-
flex-direction: column;
|
|
661
|
-
justify-content: flex-start;
|
|
662
|
-
min-width: 20rem;
|
|
663
|
-
position: relative;
|
|
664
|
-
padding: 1rem;
|
|
665
|
-
-webkit-user-select: none;
|
|
666
|
-
-moz-user-select: none;
|
|
667
|
-
user-select: none;
|
|
668
|
-
width: -moz-fit-content;
|
|
669
|
-
width: fit-content;
|
|
670
|
-
transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
|
|
671
|
-
}
|
|
672
|
-
.eds-contrast .eds-input-panel__container {
|
|
673
|
-
background-color: var(--components-form-basepanel-contrast-fill-default);
|
|
674
|
-
border-color: var(--components-form-basepanel-contrast-border-default);
|
|
675
|
-
color: var(--components-form-basepanel-contrast-text-accent);
|
|
676
|
-
}
|
|
677
|
-
.eds-input-panel__container:hover {
|
|
678
|
-
background-color: var(--components-form-basepanel-standard-fill-hover);
|
|
679
|
-
/* The following styling is needed to sync the inner checkbox/radiobutton's
|
|
680
|
-
hover state styling with the inputPanel container */
|
|
681
|
-
}
|
|
682
|
-
.eds-contrast .eds-input-panel__container:hover {
|
|
683
|
-
background-color: var(--components-form-basepanel-contrast-fill-hover);
|
|
684
|
-
}
|
|
685
|
-
.eds-input-panel__container:hover .eds-checkbox__icon,
|
|
686
|
-
.eds-input-panel__container:hover .eds-form-component--radio__radio {
|
|
687
|
-
background-color: var(--components-form-basepanel-standard-fill-hover);
|
|
688
|
-
border-color: var(--components-form-basepanel-standard-border-selected);
|
|
689
|
-
}
|
|
690
|
-
.eds-contrast .eds-input-panel__container:hover .eds-checkbox__icon,
|
|
691
|
-
.eds-contrast .eds-input-panel__container:hover .eds-form-component--radio__radio {
|
|
692
|
-
background-color: var(--components-form-basepanel-contrast-fill-hover);
|
|
693
|
-
border-color: var(--components-form-basepanel-contrast-border-selected);
|
|
570
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
571
|
+
background-color: var(--components-form-radio-contrast-fill-default);
|
|
572
|
+
border-color: var(--components-form-radio-contrast-border);
|
|
694
573
|
}
|
|
695
|
-
|
|
696
|
-
background: var(--components-form-
|
|
697
|
-
border-color: var(--components-form-
|
|
698
|
-
color: var(--components-form-basepanel-standard-text-disabled);
|
|
574
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
575
|
+
background: var(--components-form-baseform-contrast-fill-disabled);
|
|
576
|
+
border-color: var(--components-form-baseform-contrast-text-disabled);
|
|
699
577
|
cursor: not-allowed;
|
|
700
578
|
}
|
|
701
|
-
.eds-
|
|
702
|
-
|
|
703
|
-
border-style: dashed;
|
|
704
|
-
border-color: var(--components-form-basepanel-contrast-border-disabled);
|
|
705
|
-
color: var(--components-form-basepanel-contrast-text-disabled);
|
|
706
|
-
}
|
|
707
|
-
.eds-input-panel__container .eds-checkbox__icon,
|
|
708
|
-
.eds-input-panel__container .eds-checkbox__icon .eds-checkbox__icon,
|
|
709
|
-
.eds-input-panel__container .eds-form-component--radio__radio {
|
|
710
|
-
width: 1.5rem;
|
|
711
|
-
height: 1.5rem;
|
|
712
|
-
margin-right: 0;
|
|
713
|
-
}
|
|
714
|
-
.eds-input-panel--medium .eds-input-panel__title {
|
|
715
|
-
font-size: 1rem;
|
|
716
|
-
font-weight: 500;
|
|
717
|
-
}
|
|
718
|
-
.eds-input-panel--medium.eds-input-panel__container {
|
|
719
|
-
padding-bottom: 1rem;
|
|
720
|
-
min-height: 3.75rem;
|
|
721
|
-
}
|
|
722
|
-
.eds-input-panel--large.eds-input-panel__container {
|
|
723
|
-
min-height: 6rem;
|
|
724
|
-
}
|
|
725
|
-
.eds-input-panel--large .eds-input-panel__title {
|
|
726
|
-
font-size: 1.25rem;
|
|
727
|
-
font-weight: 500;
|
|
728
|
-
line-height: 1.875rem;
|
|
579
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
|
|
580
|
+
border-color: var(--components-form-baseform-contrast-text-disabled);
|
|
729
581
|
}
|
|
730
|
-
.eds-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
align-items: center;
|
|
582
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
583
|
+
background: var(--components-form-baseform-contrast-fill-disabled);
|
|
584
|
+
border-color: var(--components-form-baseform-contrast-text-disabled);
|
|
734
585
|
}
|
|
735
|
-
.eds-
|
|
736
|
-
|
|
737
|
-
justify-content: center;
|
|
738
|
-
align-items: center;
|
|
739
|
-
gap: 0.75rem;
|
|
586
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
|
|
587
|
+
color: var(--components-form-baseform-contrast-text-disabled);
|
|
740
588
|
}
|
|
741
|
-
.eds-
|
|
742
|
-
|
|
589
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
590
|
+
display: block;
|
|
591
|
+
width: 0;
|
|
592
|
+
height: 0;
|
|
593
|
+
border-radius: 50%;
|
|
594
|
+
background-color: var(--components-form-radio-standard-fill-selected);
|
|
595
|
+
transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
|
|
743
596
|
}
|
|
744
|
-
.eds-
|
|
745
|
-
|
|
746
|
-
word-wrap: break-word;
|
|
597
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
598
|
+
background-color: var(--components-form-radio-contrast-icon);
|
|
747
599
|
}
|
|
748
600
|
/* DO NOT CHANGE!*/
|
|
749
601
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -866,6 +718,154 @@ input:disabled + .eds-input-panel__container {
|
|
|
866
718
|
}
|
|
867
719
|
/* DO NOT CHANGE!*/
|
|
868
720
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
721
|
+
.eds-input-panel:has(:focus-visible) .eds-input-panel__container {
|
|
722
|
+
outline: 2px solid #181c56;
|
|
723
|
+
outline-color: var(--basecolors-stroke-focus-standard);
|
|
724
|
+
outline-offset: 0.125rem;
|
|
725
|
+
}
|
|
726
|
+
.eds-contrast .eds-input-panel:has(:focus-visible) .eds-input-panel__container {
|
|
727
|
+
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
728
|
+
}
|
|
729
|
+
.eds-input-panel > input {
|
|
730
|
+
position: absolute;
|
|
731
|
+
opacity: 0;
|
|
732
|
+
cursor: pointer;
|
|
733
|
+
height: 0;
|
|
734
|
+
width: 0;
|
|
735
|
+
}
|
|
736
|
+
.eds-input-panel > input:checked + .eds-input-panel__container {
|
|
737
|
+
border-color: var(--components-form-basepanel-standard-border-selected);
|
|
738
|
+
background: var(--components-form-basepanel-standard-fill-selected);
|
|
739
|
+
}
|
|
740
|
+
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container {
|
|
741
|
+
border-color: var(--components-form-basepanel-contrast-border-selected);
|
|
742
|
+
background: var(--components-form-basepanel-contrast-fill-selected);
|
|
743
|
+
}
|
|
744
|
+
.eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
|
|
745
|
+
width: 0.75rem;
|
|
746
|
+
height: 0.75rem;
|
|
747
|
+
}
|
|
748
|
+
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container .eds-form-component--radio__circle {
|
|
749
|
+
background-color: var(--components-form-radio-contrast-icon);
|
|
750
|
+
}
|
|
751
|
+
.eds-input-panel > input:checked + .eds-input-panel__container:hover {
|
|
752
|
+
background-color: var(--components-form-basepanel-standard-fill-hover);
|
|
753
|
+
/* The following styling is needed to sync the inner checkbox/radiobutton's
|
|
754
|
+
hover state styling with the inputPanel container */
|
|
755
|
+
}
|
|
756
|
+
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover {
|
|
757
|
+
background-color: var(--components-form-basepanel-contrast-fill-hover);
|
|
758
|
+
}
|
|
759
|
+
.eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
|
|
760
|
+
background-color: var(--components-form-basepanel-standard-fill-hover);
|
|
761
|
+
border-color: var(--components-form-basepanel-standard-border-selected);
|
|
762
|
+
}
|
|
763
|
+
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-form-component--radio__radio {
|
|
764
|
+
background-color: var(--components-form-basepanel-contrast-fill-hover);
|
|
765
|
+
border-color: var(--components-form-basepanel-contrast-border-selected);
|
|
766
|
+
}
|
|
767
|
+
.eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
|
|
768
|
+
border-color: transparent;
|
|
769
|
+
}
|
|
770
|
+
.eds-contrast .eds-input-panel > input:checked + .eds-input-panel__container:hover .eds-checkbox__icon {
|
|
771
|
+
background-color: var(--components-form-checkbox-contrast-fill-selectedhover);
|
|
772
|
+
}
|
|
773
|
+
.eds-input-panel__container {
|
|
774
|
+
background: var(--components-form-basepanel-standard-fill-default);
|
|
775
|
+
border: 0.125rem solid var(--components-form-basepanel-standard-border-default);
|
|
776
|
+
color: var(--components-form-basepanel-standard-text-accent);
|
|
777
|
+
border-radius: 0.25rem;
|
|
778
|
+
display: flex;
|
|
779
|
+
flex-direction: column;
|
|
780
|
+
justify-content: flex-start;
|
|
781
|
+
min-width: 20rem;
|
|
782
|
+
position: relative;
|
|
783
|
+
padding: 1rem;
|
|
784
|
+
-webkit-user-select: none;
|
|
785
|
+
-moz-user-select: none;
|
|
786
|
+
user-select: none;
|
|
787
|
+
width: -moz-fit-content;
|
|
788
|
+
width: fit-content;
|
|
789
|
+
transition: background ease-in-out 0.1s, border-color ease-in-out 0.1s;
|
|
790
|
+
}
|
|
791
|
+
.eds-contrast .eds-input-panel__container {
|
|
792
|
+
background-color: var(--components-form-basepanel-contrast-fill-default);
|
|
793
|
+
border-color: var(--components-form-basepanel-contrast-border-default);
|
|
794
|
+
color: var(--components-form-basepanel-contrast-text-accent);
|
|
795
|
+
}
|
|
796
|
+
.eds-input-panel__container:hover {
|
|
797
|
+
background-color: var(--components-form-basepanel-standard-fill-hover);
|
|
798
|
+
/* The following styling is needed to sync the inner checkbox/radiobutton's
|
|
799
|
+
hover state styling with the inputPanel container */
|
|
800
|
+
}
|
|
801
|
+
.eds-contrast .eds-input-panel__container:hover {
|
|
802
|
+
background-color: var(--components-form-basepanel-contrast-fill-hover);
|
|
803
|
+
}
|
|
804
|
+
.eds-input-panel__container:hover .eds-checkbox__icon,
|
|
805
|
+
.eds-input-panel__container:hover .eds-form-component--radio__radio {
|
|
806
|
+
background-color: var(--components-form-basepanel-standard-fill-hover);
|
|
807
|
+
border-color: var(--components-form-basepanel-standard-border-selected);
|
|
808
|
+
}
|
|
809
|
+
.eds-contrast .eds-input-panel__container:hover .eds-checkbox__icon,
|
|
810
|
+
.eds-contrast .eds-input-panel__container:hover .eds-form-component--radio__radio {
|
|
811
|
+
background-color: var(--components-form-basepanel-contrast-fill-hover);
|
|
812
|
+
border-color: var(--components-form-basepanel-contrast-border-selected);
|
|
813
|
+
}
|
|
814
|
+
input:disabled + .eds-input-panel__container {
|
|
815
|
+
background: var(--components-form-basepanel-standard-fill-disabled);
|
|
816
|
+
border-color: var(--components-form-basepanel-standard-border-disabled);
|
|
817
|
+
color: var(--components-form-basepanel-standard-text-disabled);
|
|
818
|
+
cursor: not-allowed;
|
|
819
|
+
}
|
|
820
|
+
.eds-contrast input:disabled + .eds-input-panel__container {
|
|
821
|
+
background: var(--components-form-basepanel-contrast-fill-disabled);
|
|
822
|
+
border-style: dashed;
|
|
823
|
+
border-color: var(--components-form-basepanel-contrast-border-disabled);
|
|
824
|
+
color: var(--components-form-basepanel-contrast-text-disabled);
|
|
825
|
+
}
|
|
826
|
+
.eds-input-panel__container .eds-checkbox__icon,
|
|
827
|
+
.eds-input-panel__container .eds-checkbox__icon .eds-checkbox__icon,
|
|
828
|
+
.eds-input-panel__container .eds-form-component--radio__radio {
|
|
829
|
+
width: 1.5rem;
|
|
830
|
+
height: 1.5rem;
|
|
831
|
+
margin-right: 0;
|
|
832
|
+
}
|
|
833
|
+
.eds-input-panel--medium .eds-input-panel__title {
|
|
834
|
+
font-size: 1rem;
|
|
835
|
+
font-weight: 500;
|
|
836
|
+
}
|
|
837
|
+
.eds-input-panel--medium.eds-input-panel__container {
|
|
838
|
+
padding-bottom: 1rem;
|
|
839
|
+
min-height: 3.75rem;
|
|
840
|
+
}
|
|
841
|
+
.eds-input-panel--large.eds-input-panel__container {
|
|
842
|
+
min-height: 6rem;
|
|
843
|
+
}
|
|
844
|
+
.eds-input-panel--large .eds-input-panel__title {
|
|
845
|
+
font-size: 1.25rem;
|
|
846
|
+
font-weight: 500;
|
|
847
|
+
line-height: 1.875rem;
|
|
848
|
+
}
|
|
849
|
+
.eds-input-panel__title-wrapper {
|
|
850
|
+
display: flex;
|
|
851
|
+
justify-content: space-between;
|
|
852
|
+
align-items: center;
|
|
853
|
+
}
|
|
854
|
+
.eds-input-panel__secondary-label-and-icon-wrapper {
|
|
855
|
+
display: flex;
|
|
856
|
+
justify-content: center;
|
|
857
|
+
align-items: center;
|
|
858
|
+
gap: 0.75rem;
|
|
859
|
+
}
|
|
860
|
+
.eds-input-panel__secondary-label-and-icon-wrapper .eds-checkbox__container {
|
|
861
|
+
margin: 0;
|
|
862
|
+
}
|
|
863
|
+
.eds-input-panel__additional-content {
|
|
864
|
+
margin-top: 0.25rem;
|
|
865
|
+
word-wrap: break-word;
|
|
866
|
+
}
|
|
867
|
+
/* DO NOT CHANGE!*/
|
|
868
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
869
869
|
/* DO NOT CHANGE!*/
|
|
870
870
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
871
871
|
/* DO NOT CHANGE!*/
|
|
@@ -878,6 +878,7 @@ input:disabled + .eds-input-panel__container {
|
|
|
878
878
|
:root {
|
|
879
879
|
--basecolors-frame-contrast: #181c56;
|
|
880
880
|
--basecolors-frame-contrastalt: #393d79;
|
|
881
|
+
--basecolors-frame-contrastalt-2: #292b6a;
|
|
881
882
|
--basecolors-frame-default: #ffffff;
|
|
882
883
|
--basecolors-frame-elevated: #ffffff;
|
|
883
884
|
--basecolors-frame-elevatedalt: #f6f6f9;
|
|
@@ -943,6 +944,7 @@ input:disabled + .eds-input-panel__container {
|
|
|
943
944
|
[data-color-mode=dark] {
|
|
944
945
|
--basecolors-frame-contrast: #212233;
|
|
945
946
|
--basecolors-frame-contrastalt: #141527;
|
|
947
|
+
--basecolors-frame-contrastalt-2: #08091c;
|
|
946
948
|
--basecolors-frame-default: #08091c;
|
|
947
949
|
--basecolors-frame-elevated: rgba(229, 229, 233, 0.1490196078);
|
|
948
950
|
--basecolors-frame-elevatedalt: #464755;
|
|
@@ -1484,6 +1486,7 @@ input:disabled + .eds-input-panel__container {
|
|
|
1484
1486
|
:root {
|
|
1485
1487
|
--basecolors-frame-contrast: #181c56;
|
|
1486
1488
|
--basecolors-frame-contrastalt: #393d79;
|
|
1489
|
+
--basecolors-frame-contrastalt-2: #292b6a;
|
|
1487
1490
|
--basecolors-frame-default: #ffffff;
|
|
1488
1491
|
--basecolors-frame-elevated: #ffffff;
|
|
1489
1492
|
--basecolors-frame-elevatedalt: #f6f6f9;
|
|
@@ -1549,6 +1552,7 @@ input:disabled + .eds-input-panel__container {
|
|
|
1549
1552
|
[data-color-mode=dark] {
|
|
1550
1553
|
--basecolors-frame-contrast: #212233;
|
|
1551
1554
|
--basecolors-frame-contrastalt: #141527;
|
|
1555
|
+
--basecolors-frame-contrastalt-2: #08091c;
|
|
1552
1556
|
--basecolors-frame-default: #08091c;
|
|
1553
1557
|
--basecolors-frame-elevated: rgba(229, 229, 233, 0.1490196078);
|
|
1554
1558
|
--basecolors-frame-elevatedalt: #464755;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/form",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.4",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/form.esm.js",
|
|
@@ -27,16 +27,16 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/button": "^3.3.
|
|
31
|
-
"@entur/icons": "^7.
|
|
32
|
-
"@entur/tokens": "^3.
|
|
33
|
-
"@entur/tooltip": "^5.2.
|
|
34
|
-
"@entur/typography": "^1.9.
|
|
35
|
-
"@entur/utils": "^0.12.
|
|
30
|
+
"@entur/button": "^3.3.4",
|
|
31
|
+
"@entur/icons": "^7.8.0",
|
|
32
|
+
"@entur/tokens": "^3.19.0",
|
|
33
|
+
"@entur/tooltip": "^5.2.4",
|
|
34
|
+
"@entur/typography": "^1.9.4",
|
|
35
|
+
"@entur/utils": "^0.12.3",
|
|
36
36
|
"classnames": "^2.3.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"dts-cli": "2.0.5"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "bfd8f62e4735cc13d55e50bc8747535d72aaf679"
|
|
42
42
|
}
|