@entur/form 7.0.4 → 7.0.6

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
@@ -3,165 +3,55 @@
3
3
  }
4
4
  /* DO NOT CHANGE!*/
5
5
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
6
- .eds-checkbox__container {
6
+ .eds-feedback-text {
7
7
  display: flex;
8
8
  align-items: center;
9
- position: relative;
10
- -webkit-appearance: none;
11
- -moz-appearance: none;
12
- appearance: none;
13
- cursor: pointer;
14
- -webkit-user-select: none;
15
- -moz-user-select: none;
16
- user-select: none;
17
- width: -moz-fit-content;
18
- width: fit-content;
19
- margin: 0.5rem 0;
20
- }
21
- .eds-checkbox__container--reduced-click-area {
22
- height: -moz-fit-content;
23
- height: fit-content;
24
- }
25
- .eds-checkbox__container input {
26
- position: absolute;
27
- opacity: 0;
28
- height: 0;
29
- width: 0;
9
+ margin-top: 0.25rem;
30
10
  }
31
- .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
32
- background-color: #181c56;
11
+ .eds-feedback-text--info {
12
+ padding-left: calc(1rem + 0.125rem);
33
13
  }
34
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
35
- visibility: visible;
14
+ .eds-feedback-text__text {
15
+ color: #181c56;
36
16
  }
37
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon path {
38
- stroke: #ffffff;
39
- animation: stroke ease-in-out 0.2s 0.1s forwards;
17
+ .eds-contrast .eds-feedback-text__text {
18
+ color: #ffffff;
40
19
  }
41
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon rect {
42
- fill: #ffffff;
20
+
21
+ .eds-feedback-text__icon {
22
+ font-size: 1.5rem;
23
+ min-height: 1.5rem;
24
+ min-width: 1.5rem;
25
+ padding-right: 0.5rem;
26
+ position: relative;
27
+ top: -0.1rem;
43
28
  }
44
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
45
- opacity: 0.5;
29
+ .eds-feedback-text__icon--success {
30
+ color: #1a8e60;
46
31
  }
47
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled path {
48
- opacity: 0.5;
32
+ .eds-contrast .eds-feedback-text__icon--success {
33
+ color: #5ac39a;
49
34
  }
50
- .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled rect {
51
- opacity: 0.5;
35
+ .eds-feedback-text__icon--error {
36
+ color: #d31b1b;
52
37
  }
53
- .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled path {
54
- opacity: 0.5;
38
+ .eds-contrast .eds-feedback-text__icon--error {
39
+ color: #ff9494;
55
40
  }
56
- .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled rect {
57
- opacity: 0.5;
41
+ .eds-feedback-text__icon--info {
42
+ color: #0082b9;
58
43
  }
59
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
60
- background-color: #aeb7e2;
44
+ .eds-contrast .eds-feedback-text__icon--info {
45
+ color: #64b3e7;
61
46
  }
62
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon path, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon path {
63
- stroke: #181c56;
47
+ .eds-feedback-text__icon--warning {
48
+ color: #ffca28;
64
49
  }
65
- .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon rect, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon rect {
50
+ .eds-feedback-text__icon--warning circle {
66
51
  fill: #181c56;
67
52
  }
68
- .eds-checkbox__container:hover input + .eds-checkbox__icon {
69
- border-color: #292b6a;
70
- background-color: #d1d4e3;
71
- }
72
- .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
73
- border-color: #b6bee5;
74
- background-color: rgba(174, 183, 226, 0.2);
75
- }
76
- .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
77
- .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
78
- border-color: transparent;
79
- background-color: #54568c;
80
- }
81
- .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
82
- .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
83
- background-color: #b6bee5;
84
- }
85
- .eds-checkbox__container:active input + .eds-checkbox__icon {
86
- border-color: #16194d;
87
- }
88
- .eds-contrast .eds-checkbox__container:active input + .eds-checkbox__icon {
89
- border-color: #9da5cb;
90
- }
91
- .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
92
- .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
93
- background-color: #16194d;
94
- }
95
- .eds-contrast .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
96
- .eds-contrast .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
97
- background-color: #9da5cb;
98
- }
99
- .eds-checkbox__container:focus + .eds-checkbox__icon,
100
- .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
101
- outline: none;
102
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
103
- outline-offset: 0.125rem;
104
- }
105
- .eds-checkbox__container:focus + .eds-checkbox__icon,
106
- .eds-checkbox__container :focus-within + .eds-checkbox__icon {
107
- outline: none;
108
- box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
109
- outline-offset: 0.125rem;
110
- }
111
- .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
112
- .eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
113
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
114
- }
115
- .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
116
- .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
117
- box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
118
- }
119
- .eds-checkbox--disabled {
120
- pointer-events: none;
121
- }
122
- .eds-checkbox--disabled .eds-checkbox__label {
123
- opacity: 0.5;
124
- }
125
- .eds-checkbox--disabled .eds-checkbox__icon {
126
- opacity: 0.5;
127
- }
128
- .eds-checkbox__icon {
129
- box-sizing: border-box;
130
- display: inline-flex;
131
- justify-content: center;
132
- align-items: center;
133
- position: relative;
134
- margin-right: 1rem;
135
- height: 1.25rem;
136
- width: 1.25rem;
137
- border: 0.125rem solid #181c56;
138
- border-radius: 0.125rem;
139
- background-color: transparent;
140
- color: #ffffff;
141
- transition: border-color 0.1s ease-in-out, background-color 0.1s ease-in-out;
142
- }
143
- .eds-checkbox__icon--reduced-click-area {
144
- margin-right: 0;
145
- }
146
- .eds-contrast .eds-checkbox__icon {
147
- border-color: #aeb7e2;
148
- }
149
- .eds-checkbox__icon .eds-checkbox-icon {
150
- height: 1rem;
151
- width: 1rem;
152
- visibility: hidden;
153
- }
154
- .eds-checkbox__icon .eds-checkbox-icon path {
155
- transform-origin: 50% 50%;
156
- stroke-dasharray: 48;
157
- stroke-dashoffset: 48;
158
- stroke-width: 0.375rem;
159
- }
160
-
161
- @keyframes stroke {
162
- 100% {
163
- stroke-dashoffset: 0;
164
- }
53
+ .eds-contrast .eds-feedback-text__icon--warning {
54
+ color: #ffe082;
165
55
  }
166
56
  /* DO NOT CHANGE!*/
167
57
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -415,6 +305,168 @@
415
305
  }
416
306
  /* DO NOT CHANGE!*/
417
307
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
308
+ .eds-checkbox__container {
309
+ display: flex;
310
+ align-items: center;
311
+ position: relative;
312
+ -webkit-appearance: none;
313
+ -moz-appearance: none;
314
+ appearance: none;
315
+ cursor: pointer;
316
+ -webkit-user-select: none;
317
+ -moz-user-select: none;
318
+ user-select: none;
319
+ width: -moz-fit-content;
320
+ width: fit-content;
321
+ margin: 0.5rem 0;
322
+ }
323
+ .eds-checkbox__container--reduced-click-area {
324
+ height: -moz-fit-content;
325
+ height: fit-content;
326
+ }
327
+ .eds-checkbox__container input {
328
+ position: absolute;
329
+ opacity: 0;
330
+ height: 0;
331
+ width: 0;
332
+ }
333
+ .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
334
+ background-color: #181c56;
335
+ }
336
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon {
337
+ visibility: visible;
338
+ }
339
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon path {
340
+ stroke: #ffffff;
341
+ animation: stroke ease-in-out 0.2s 0.1s forwards;
342
+ }
343
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-checkbox-icon rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-checkbox-icon rect {
344
+ fill: #ffffff;
345
+ }
346
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
347
+ opacity: 0.5;
348
+ }
349
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled path {
350
+ opacity: 0.5;
351
+ }
352
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled rect {
353
+ opacity: 0.5;
354
+ }
355
+ .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled path {
356
+ opacity: 0.5;
357
+ }
358
+ .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled rect {
359
+ opacity: 0.5;
360
+ }
361
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon {
362
+ background-color: #aeb7e2;
363
+ }
364
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon path, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon path {
365
+ stroke: #181c56;
366
+ }
367
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon rect, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon rect {
368
+ fill: #181c56;
369
+ }
370
+ .eds-checkbox__container:hover input + .eds-checkbox__icon {
371
+ border-color: #292b6a;
372
+ background-color: #d1d4e3;
373
+ }
374
+ .eds-contrast .eds-checkbox__container:hover input + .eds-checkbox__icon {
375
+ border-color: #b6bee5;
376
+ background-color: rgba(174, 183, 226, 0.2);
377
+ }
378
+ .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
379
+ .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
380
+ border-color: transparent;
381
+ background-color: #54568c;
382
+ }
383
+ .eds-contrast .eds-checkbox__container:hover input:checked + .eds-checkbox__icon,
384
+ .eds-contrast .eds-checkbox__container:hover input:indeterminate + .eds-checkbox__icon {
385
+ background-color: #b6bee5;
386
+ }
387
+ .eds-checkbox__container:active input + .eds-checkbox__icon {
388
+ border-color: #16194d;
389
+ }
390
+ .eds-contrast .eds-checkbox__container:active input + .eds-checkbox__icon {
391
+ border-color: #9da5cb;
392
+ }
393
+ .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
394
+ .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
395
+ background-color: #16194d;
396
+ }
397
+ .eds-contrast .eds-checkbox__container:active input:checked + .eds-checkbox__icon,
398
+ .eds-contrast .eds-checkbox__container:active input:indeterminate + .eds-checkbox__icon {
399
+ background-color: #9da5cb;
400
+ }
401
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
402
+ .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
403
+ outline: none;
404
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
405
+ outline-offset: 0.125rem;
406
+ }
407
+ .eds-checkbox__container:focus + .eds-checkbox__icon,
408
+ .eds-checkbox__container :focus-within + .eds-checkbox__icon {
409
+ outline: none;
410
+ box-shadow: 0 0 0 0.125rem #ffffff, 0 0 0 0.25rem #181c56;
411
+ outline-offset: 0.125rem;
412
+ }
413
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
414
+ .eds-contrast .eds-checkbox__container [focus-within] + .eds-checkbox__icon {
415
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
416
+ }
417
+ .eds-contrast .eds-checkbox__container:focus + .eds-checkbox__icon,
418
+ .eds-contrast .eds-checkbox__container :focus-within + .eds-checkbox__icon {
419
+ box-shadow: 0 0 0 0.125rem #181c56, 0 0 0 0.25rem #ffffff;
420
+ }
421
+ .eds-checkbox--disabled {
422
+ pointer-events: none;
423
+ }
424
+ .eds-checkbox--disabled .eds-checkbox__label {
425
+ opacity: 0.5;
426
+ }
427
+ .eds-checkbox--disabled .eds-checkbox__icon {
428
+ opacity: 0.5;
429
+ }
430
+ .eds-checkbox__icon {
431
+ box-sizing: border-box;
432
+ display: inline-flex;
433
+ justify-content: center;
434
+ align-items: center;
435
+ position: relative;
436
+ margin-right: 1rem;
437
+ height: 1.25rem;
438
+ width: 1.25rem;
439
+ border: 0.125rem solid #181c56;
440
+ border-radius: 0.125rem;
441
+ background-color: transparent;
442
+ color: #ffffff;
443
+ transition: border-color 0.1s ease-in-out, background-color 0.1s ease-in-out;
444
+ }
445
+ .eds-checkbox__icon--reduced-click-area {
446
+ margin-right: 0;
447
+ }
448
+ .eds-contrast .eds-checkbox__icon {
449
+ border-color: #aeb7e2;
450
+ }
451
+ .eds-checkbox__icon .eds-checkbox-icon {
452
+ height: 1rem;
453
+ width: 1rem;
454
+ visibility: hidden;
455
+ }
456
+ .eds-checkbox__icon .eds-checkbox-icon path {
457
+ transform-origin: 50% 50%;
458
+ stroke-dasharray: 48;
459
+ stroke-dashoffset: 48;
460
+ stroke-width: 0.375rem;
461
+ }
462
+
463
+ @keyframes stroke {
464
+ 100% {
465
+ stroke-dashoffset: 0;
466
+ }
467
+ }
468
+ /* DO NOT CHANGE!*/
469
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
418
470
  .eds-input-group {
419
471
  color: inherit;
420
472
  display: block;
@@ -549,58 +601,6 @@
549
601
  }
550
602
  /* DO NOT CHANGE!*/
551
603
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
552
- .eds-feedback-text {
553
- display: flex;
554
- align-items: center;
555
- margin-top: 0.25rem;
556
- }
557
- .eds-feedback-text--info {
558
- padding-left: calc(1rem + 0.125rem);
559
- }
560
- .eds-feedback-text__text {
561
- color: #181c56;
562
- }
563
- .eds-contrast .eds-feedback-text__text {
564
- color: #ffffff;
565
- }
566
-
567
- .eds-feedback-text__icon {
568
- font-size: 1.5rem;
569
- min-height: 1.5rem;
570
- min-width: 1.5rem;
571
- padding-right: 0.5rem;
572
- position: relative;
573
- top: -0.1rem;
574
- }
575
- .eds-feedback-text__icon--success {
576
- color: #1a8e60;
577
- }
578
- .eds-contrast .eds-feedback-text__icon--success {
579
- color: #5ac39a;
580
- }
581
- .eds-feedback-text__icon--error {
582
- color: #d31b1b;
583
- }
584
- .eds-contrast .eds-feedback-text__icon--error {
585
- color: #ff9494;
586
- }
587
- .eds-feedback-text__icon--info {
588
- color: #0082b9;
589
- }
590
- .eds-contrast .eds-feedback-text__icon--info {
591
- color: #64b3e7;
592
- }
593
- .eds-feedback-text__icon--warning {
594
- color: #ffca28;
595
- }
596
- .eds-feedback-text__icon--warning circle {
597
- fill: #181c56;
598
- }
599
- .eds-contrast .eds-feedback-text__icon--warning {
600
- color: #ffe082;
601
- }
602
- /* DO NOT CHANGE!*/
603
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
604
604
  .eds-form-component--radio__container {
605
605
  display: flex;
606
606
  justify-content: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/form",
3
- "version": "7.0.4",
3
+ "version": "7.0.6",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/form.esm.js",
@@ -29,10 +29,10 @@
29
29
  "dependencies": {
30
30
  "@entur/icons": "^6.2.0",
31
31
  "@entur/tokens": "^3.8.1",
32
- "@entur/tooltip": "^2.6.14",
33
- "@entur/typography": "^1.7.15",
34
- "@entur/utils": "^0.8.0",
32
+ "@entur/tooltip": "^2.6.16",
33
+ "@entur/typography": "^1.7.16",
34
+ "@entur/utils": "^0.9.0",
35
35
  "classnames": "^2.3.1"
36
36
  },
37
- "gitHead": "c80112ae71ce3654107c8983a1a9fd91204aa667"
37
+ "gitHead": "02c9d76ac36b3357b91ee60ac3e0f66eb111c9c2"
38
38
  }