@entur/form 8.2.10 → 8.3.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
@@ -34,11 +34,11 @@
34
34
  .eds-contrast .eds-form-control-wrapper:hover {
35
35
  border-color: var(--components-form-baseform-contrast-border-interactive);
36
36
  }
37
- .eds-form-control-wrapper:focus-within {
37
+ .eds-form-control-wrapper:focus-within:not(.eds-form-control-wrapper--readonly) {
38
38
  border-color: var(--components-form-baseform-standard-border-interactive);
39
39
  outline: 2px solid var(--components-form-baseform-standard-border-interactive);
40
40
  }
41
- .eds-contrast .eds-form-control-wrapper:focus-within {
41
+ .eds-contrast .eds-form-control-wrapper:focus-within:not(.eds-form-control-wrapper--readonly) {
42
42
  border-color: var(--components-form-baseform-contrast-border-interactive);
43
43
  outline-color: var(--components-form-baseform-contrast-border-interactive);
44
44
  }
@@ -78,11 +78,13 @@
78
78
  }
79
79
  .eds-form-control-wrapper--readonly {
80
80
  border-color: transparent;
81
- pointer-events: none;
82
81
  cursor: default;
83
82
  background: var(--components-form-baseform-standard-fill-readonly);
84
83
  border: var(--components-form-baseform-standard-fill-readonly);
85
84
  }
85
+ .eds-form-control-wrapper--readonly:focus-visible {
86
+ outline: none;
87
+ }
86
88
  .eds-contrast .eds-form-control-wrapper--readonly {
87
89
  background: var(--components-form-baseform-contrast-fill-readonly);
88
90
  border: var(--components-form-baseform-contrast-fill-readonly);
@@ -208,84 +210,6 @@
208
210
  }
209
211
  /* DO NOT CHANGE!*/
210
212
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
211
- .eds-feedback-text {
212
- display: flex;
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;
231
- position: relative;
232
- top: -0.1rem;
233
- }
234
- .eds-feedback-text__icon--success {
235
- color: var(--components-form-feedbacktext-success-standard-icon-fill);
236
- }
237
- .eds-feedback-text__icon--success circle {
238
- fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
239
- }
240
- .eds-contrast .eds-feedback-text__icon--success {
241
- color: var(--components-form-feedbacktext-success-contrast-icon-fill);
242
- }
243
- .eds-contrast .eds-feedback-text__icon--success circle {
244
- fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
245
- }
246
- .eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
247
- color: var(--components-form-feedbacktext-negative-standard-icon-fill);
248
- }
249
- .eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
250
- fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
251
- }
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);
254
- }
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);
257
- }
258
- .eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
259
- color: var(--components-form-feedbacktext-information-standard-icon-fill);
260
- }
261
- .eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
262
- fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
263
- }
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);
266
- }
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);
269
- }
270
- .eds-feedback-text__icon--warning {
271
- color: var(--components-form-feedbacktext-warning-standard-icon-fill);
272
- }
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;
286
- }
287
- /* DO NOT CHANGE!*/
288
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
289
213
  .eds-checkbox__container {
290
214
  display: flex;
291
215
  align-items: center;
@@ -324,6 +248,15 @@
324
248
  .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
249
  fill: var(--components-form-checkbox-standard-icon);
326
250
  }
251
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-contrast, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-contrast {
252
+ color: var(--components-form-checkbox-contrast-fill-selected);
253
+ }
254
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-contrast path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-contrast path {
255
+ stroke: var(--components-form-checkbox-contrast-icon);
256
+ }
257
+ .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-contrast rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-contrast rect {
258
+ fill: var(--components-form-checkbox-contrast-icon);
259
+ }
327
260
  .eds-checkbox__container input:checked + .eds-checkbox__icon--disabled, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled {
328
261
  background-color: var(--components-form-checkbox-standard-icon-disabled);
329
262
  }
@@ -339,14 +272,20 @@
339
272
  .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--disabled rect {
340
273
  background-color: var(--components-form-checkbox-standard-icon-disabled);
341
274
  }
342
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-contrast, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-contrast {
343
- color: var(--components-form-checkbox-contrast-fill-selected);
275
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--readonly, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--readonly {
276
+ background-color: var(--components-form-checkbox-standard-fill-disabled);
344
277
  }
345
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-contrast path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-contrast path {
346
- stroke: var(--components-form-checkbox-contrast-icon);
278
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--readonly .eds-checkbox-icon path, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--readonly .eds-checkbox-icon path {
279
+ stroke: var(--components-form-checkbox-standard-icon-readonly);
347
280
  }
348
- .eds-checkbox__container input:checked + .eds-checkbox__icon .eds-contrast rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon .eds-contrast rect {
349
- fill: var(--components-form-checkbox-contrast-icon);
281
+ .eds-checkbox__container input:checked + .eds-checkbox__icon--readonly .eds-checkbox-icon rect, .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--readonly .eds-checkbox-icon rect {
282
+ fill: var(--components-form-checkbox-standard-icon-readonly);
283
+ }
284
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon--readonly .eds-checkbox-icon path, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--readonly .eds-checkbox-icon path {
285
+ stroke: var(--components-form-checkbox-contrast-icon-readonly);
286
+ }
287
+ .eds-contrast .eds-checkbox__container input:checked + .eds-checkbox__icon--readonly .eds-checkbox-icon rect, .eds-contrast .eds-checkbox__container input:indeterminate + .eds-checkbox__icon--readonly .eds-checkbox-icon rect {
288
+ fill: var(--components-form-checkbox-contrast-icon-readonly);
350
289
  }
351
290
  .eds-checkbox__container:hover(:not(:has(input:disabled))) input + .eds-checkbox__icon {
352
291
  border-color: var(--components-form-checkbox-standard-border);
@@ -396,6 +335,25 @@
396
335
  .eds-contrast .eds-checkbox--disabled .eds-checkbox__icon {
397
336
  border-color: var(--components-form-checkbox-contrast-icon-disabled);
398
337
  }
338
+ .eds-checkbox--readonly {
339
+ cursor: default;
340
+ pointer-events: auto;
341
+ -webkit-user-select: text;
342
+ -moz-user-select: text;
343
+ user-select: text;
344
+ }
345
+ .eds-checkbox--readonly input {
346
+ pointer-events: auto;
347
+ -webkit-user-select: text;
348
+ -moz-user-select: text;
349
+ user-select: text;
350
+ }
351
+ .eds-checkbox--readonly .eds-checkbox__icon {
352
+ border-color: var(--components-form-checkbox-standard-border-readonly);
353
+ }
354
+ .eds-contrast .eds-checkbox--readonly .eds-checkbox__icon {
355
+ border-color: var(--components-form-checkbox-contrast-border-readonly);
356
+ }
399
357
  .eds-checkbox__icon {
400
358
  box-sizing: border-box;
401
359
  display: inline-flex;
@@ -427,6 +385,15 @@
427
385
  stroke-dashoffset: 48;
428
386
  stroke-width: 0.375rem;
429
387
  }
388
+ .eds-checkbox__icon--no-animation .eds-checkbox-icon path {
389
+ animation: none !important;
390
+ transition: none !important;
391
+ stroke-dasharray: 48;
392
+ stroke-dashoffset: 0;
393
+ }
394
+ .eds-checkbox__icon--no-animation .eds-checkbox-icon rect {
395
+ transition: none !important;
396
+ }
430
397
 
431
398
  @keyframes stroke {
432
399
  100% {
@@ -435,6 +402,84 @@
435
402
  }
436
403
  /* DO NOT CHANGE!*/
437
404
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
405
+ .eds-feedback-text {
406
+ display: flex;
407
+ align-items: center;
408
+ margin-top: 0.25rem;
409
+ }
410
+ .eds-feedback-text--info, .eds-feedback-text--information {
411
+ padding-left: calc(1rem + 0.125rem);
412
+ }
413
+ .eds-feedback-text__text {
414
+ color: var(--components-form-feedbacktext-information-standard-text);
415
+ }
416
+ .eds-contrast .eds-feedback-text__text {
417
+ color: var(--components-form-feedbacktext-information-contrast-text);
418
+ }
419
+
420
+ .eds-feedback-text__icon {
421
+ font-size: 1.5rem;
422
+ min-height: 1.5rem;
423
+ min-width: 1.5rem;
424
+ padding-right: 0.5rem;
425
+ position: relative;
426
+ top: -0.1rem;
427
+ }
428
+ .eds-feedback-text__icon--success {
429
+ color: var(--components-form-feedbacktext-success-standard-icon-fill);
430
+ }
431
+ .eds-feedback-text__icon--success circle {
432
+ fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
433
+ }
434
+ .eds-contrast .eds-feedback-text__icon--success {
435
+ color: var(--components-form-feedbacktext-success-contrast-icon-fill);
436
+ }
437
+ .eds-contrast .eds-feedback-text__icon--success circle {
438
+ fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
439
+ }
440
+ .eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
441
+ color: var(--components-form-feedbacktext-negative-standard-icon-fill);
442
+ }
443
+ .eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
444
+ fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
445
+ }
446
+ .eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
447
+ color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
448
+ }
449
+ .eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
450
+ fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
451
+ }
452
+ .eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
453
+ color: var(--components-form-feedbacktext-information-standard-icon-fill);
454
+ }
455
+ .eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
456
+ fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
457
+ }
458
+ .eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
459
+ color: var(--components-form-feedbacktext-information-contrast-icon-fill);
460
+ }
461
+ .eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
462
+ fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
463
+ }
464
+ .eds-feedback-text__icon--warning {
465
+ color: var(--components-form-feedbacktext-warning-standard-icon-fill);
466
+ }
467
+ .eds-feedback-text__icon--warning .svg-exclamation {
468
+ fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
469
+ }
470
+ .eds-contrast .eds-feedback-text__icon--warning {
471
+ color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
472
+ }
473
+ .eds-contrast .eds-feedback-text__icon--warning circle {
474
+ fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
475
+ }
476
+ .eds-fieldset {
477
+ margin: 0;
478
+ padding: 0;
479
+ border: 0;
480
+ }
481
+ /* DO NOT CHANGE!*/
482
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
438
483
  .eds-input-group {
439
484
  color: inherit;
440
485
  display: block;
@@ -564,6 +609,12 @@
564
609
  .eds-form-component--radio__container:has(input:disabled) {
565
610
  cursor: not-allowed;
566
611
  }
612
+ .eds-form-component--radio__container:has(.eds-form-component--radio__radio--readonly) {
613
+ cursor: default;
614
+ -webkit-user-select: text;
615
+ -moz-user-select: text;
616
+ user-select: text;
617
+ }
567
618
  .eds-form-component--radio__container .eds-form-component--radio__radio {
568
619
  position: relative;
569
620
  height: 1.25rem;
@@ -604,6 +655,18 @@
604
655
  .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled .eds-form-component--radio__circle {
605
656
  background-color: var(--components-form-radio-contrast-icon-disabled);
606
657
  }
658
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--readonly {
659
+ background: var(--components-form-radio-standard-fill-disabled);
660
+ border-color: var(--components-form-radio-standard-border-readonly);
661
+ }
662
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--readonly {
663
+ background: var(--components-form-radio-contrast-fill-disabled);
664
+ border-color: var(--components-form-radio-contrast-border-readonly);
665
+ }
666
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--readonly:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
667
+ background-color: var(--components-form-radio-standard-icon);
668
+ border-color: var(--components-form-radio-standard-border-readonly);
669
+ }
607
670
  .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
608
671
  display: block;
609
672
  width: 0;
@@ -1092,17 +1155,6 @@ input:disabled + .eds-input-panel__container {
1092
1155
  }
1093
1156
  /* DO NOT CHANGE!*/
1094
1157
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1095
- .eds-segmented-control {
1096
- margin-top: 0.25rem;
1097
- display: flex;
1098
- background: var(--components-form-segmentedcontrol-standard-background);
1099
- border-radius: 0.5rem;
1100
- }
1101
- .eds-contrast .eds-segmented-control {
1102
- background: var(--components-form-segmentedcontrol-contrast-background);
1103
- }
1104
- /* DO NOT CHANGE!*/
1105
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1106
1158
  .eds-segmented-choice {
1107
1159
  display: block;
1108
1160
  flex: 1 1 0px;
@@ -1185,6 +1237,17 @@ input:disabled + .eds-input-panel__container {
1185
1237
  }
1186
1238
  /* DO NOT CHANGE!*/
1187
1239
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1240
+ .eds-segmented-control {
1241
+ margin-top: 0.25rem;
1242
+ display: flex;
1243
+ background: var(--components-form-segmentedcontrol-standard-background);
1244
+ border-radius: 0.5rem;
1245
+ }
1246
+ .eds-contrast .eds-segmented-control {
1247
+ background: var(--components-form-segmentedcontrol-contrast-background);
1248
+ }
1249
+ /* DO NOT CHANGE!*/
1250
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1188
1251
  /* DO NOT CHANGE!*/
1189
1252
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1190
1253
  /* DO NOT CHANGE!*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/form",
3
- "version": "8.2.10",
3
+ "version": "8.3.0",
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.10",
31
- "@entur/icons": "^7.13.0",
30
+ "@entur/button": "^3.3.12",
31
+ "@entur/icons": "^8.0.0",
32
32
  "@entur/tokens": "^3.19.1",
33
- "@entur/tooltip": "^5.2.10",
34
- "@entur/typography": "^1.9.10",
33
+ "@entur/tooltip": "^5.2.12",
34
+ "@entur/typography": "^1.9.12",
35
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": "fce8c4670732d7dd2742d18f0d7759a364ba2c3c"
41
+ "gitHead": "4833d9307ba9b2524458c08e8815674094cef97b"
42
42
  }