@entur/form 7.1.10 → 7.1.11

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 +206 -206
  2. package/package.json +6 -6
package/dist/styles.css CHANGED
@@ -185,135 +185,6 @@
185
185
  }
186
186
  /* DO NOT CHANGE!*/
187
187
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
188
- .eds-input-group {
189
- color: inherit;
190
- display: block;
191
- position: relative;
192
- }
193
- .eds-input-group__label {
194
- color: var(--components-form-baseform-standard-text-label);
195
- display: flex;
196
- font-size: 1rem;
197
- position: absolute;
198
- line-height: 1rem;
199
- height: 3rem;
200
- padding: 1rem;
201
- padding-left: 0;
202
- margin-left: 1rem;
203
- top: -0.125rem;
204
- 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;
205
- -webkit-user-select: none;
206
- -moz-user-select: none;
207
- user-select: none;
208
- pointer-events: none;
209
- }
210
- .eds-form-control-wrapper--is-filled .eds-input-group__label {
211
- top: 0.375rem;
212
- font-size: 0.75rem;
213
- line-height: 0.75rem;
214
- height: 10px;
215
- padding: 0;
216
- margin-left: 1rem;
217
- }
218
- .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
219
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
220
- background: var(--textarea-label-background);
221
- width: calc(100% - 1rem - 1rem - 4px);
222
- }
223
- .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
224
- top: 0.5rem;
225
- font-size: 0.875rem;
226
- line-height: 1rem;
227
- padding: 0;
228
- margin-left: 1rem;
229
- }
230
- .eds-form-control-wrapper--size-large .eds-input-group__label {
231
- font-size: 1.5rem;
232
- line-height: 2.25rem;
233
- height: 4rem;
234
- top: -0.25rem;
235
- }
236
- .eds-input-group__label--filled {
237
- top: 0.375rem;
238
- font-size: 0.75rem;
239
- line-height: 0.75rem;
240
- height: 10px;
241
- padding: 0;
242
- margin-left: 1rem;
243
- }
244
- .eds-textarea__label .eds-input-group__label--filled {
245
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
246
- background: var(--textarea-label-background);
247
- width: calc(100% - 1rem - 1rem - 4px);
248
- }
249
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
250
- top: 0.5rem;
251
- font-size: 0.875rem;
252
- line-height: 1rem;
253
- padding: 0;
254
- margin-left: 1rem;
255
- }
256
- .eds-input-group__label-tooltip-icon {
257
- color: var(--base-colors-shape-accent);
258
- padding-left: 0.25rem;
259
- padding-right: 0.25rem;
260
- display: flex;
261
- align-items: center;
262
- cursor: help;
263
- font-size: 1rem;
264
- }
265
-
266
- .eds-form-control-wrapper[focus-within] .eds-input-group__label {
267
- top: 0.375rem;
268
- font-size: 0.75rem;
269
- line-height: 0.75rem;
270
- height: 10px;
271
- padding: 0;
272
- margin-left: 1rem;
273
- }
274
-
275
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
276
- top: 0.375rem;
277
- font-size: 0.75rem;
278
- line-height: 0.75rem;
279
- height: 10px;
280
- padding: 0;
281
- margin-left: 1rem;
282
- }
283
- .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
284
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
285
- background: var(--textarea-label-background);
286
- width: calc(100% - 1rem - 1rem - 4px);
287
- }
288
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
289
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
290
- background: var(--textarea-label-background);
291
- width: calc(100% - 1rem - 1rem - 4px);
292
- }
293
- .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
294
- top: 0.5rem;
295
- font-size: 0.875rem;
296
- line-height: 1rem;
297
- padding: 0;
298
- margin-left: 1rem;
299
- }
300
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
301
- top: 0.5rem;
302
- font-size: 0.875rem;
303
- line-height: 1rem;
304
- padding: 0;
305
- margin-left: 1rem;
306
- }
307
- .eds-contrast .eds-form-control-wrapper .eds-tooltip {
308
- background: var(--components-tooltip-tooltip-standard-fill);
309
- color: var(--components-tooltip-tooltip-standard-text);
310
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
311
- }
312
- .eds-form-control-wrapper .eds-tooltip::after {
313
- background: var(--components-tooltip-tooltip-standard-fill);
314
- }
315
- /* DO NOT CHANGE!*/
316
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
317
188
  .eds-checkbox__container {
318
189
  display: flex;
319
190
  align-items: center;
@@ -469,6 +340,208 @@
469
340
  }
470
341
  /* DO NOT CHANGE!*/
471
342
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
343
+ .eds-feedback-text {
344
+ display: flex;
345
+ align-items: center;
346
+ margin-top: 0.25rem;
347
+ }
348
+ .eds-feedback-text--info, .eds-feedback-text--information {
349
+ padding-left: calc(1rem + 0.125rem);
350
+ }
351
+ .eds-feedback-text__text {
352
+ color: var(--components-form-feedbacktext-information-standard-text);
353
+ }
354
+ .eds-contrast .eds-feedback-text__text {
355
+ color: var(--components-form-feedbacktext-information-contrast-text);
356
+ }
357
+
358
+ .eds-feedback-text__icon {
359
+ font-size: 1.5rem;
360
+ min-height: 1.5rem;
361
+ min-width: 1.5rem;
362
+ padding-right: 0.5rem;
363
+ position: relative;
364
+ top: -0.1rem;
365
+ }
366
+ .eds-feedback-text__icon--success {
367
+ color: var(--components-form-feedbacktext-success-standard-icon-fill);
368
+ }
369
+ .eds-feedback-text__icon--success circle {
370
+ fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
371
+ }
372
+ .eds-contrast .eds-feedback-text__icon--success {
373
+ color: var(--components-form-feedbacktext-success-contrast-icon-fill);
374
+ }
375
+ .eds-contrast .eds-feedback-text__icon--success circle {
376
+ fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
377
+ }
378
+ .eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
379
+ color: var(--components-form-feedbacktext-negative-standard-icon-fill);
380
+ }
381
+ .eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
382
+ fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
383
+ }
384
+ .eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
385
+ color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
386
+ }
387
+ .eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
388
+ fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
389
+ }
390
+ .eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
391
+ color: var(--components-form-feedbacktext-information-standard-icon-fill);
392
+ }
393
+ .eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
394
+ fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
395
+ }
396
+ .eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
397
+ color: var(--components-form-feedbacktext-information-contrast-icon-fill);
398
+ }
399
+ .eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
400
+ fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
401
+ }
402
+ .eds-feedback-text__icon--warning {
403
+ color: var(--components-form-feedbacktext-warning-standard-icon-fill);
404
+ }
405
+ .eds-feedback-text__icon--warning .svg-exclamation {
406
+ fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
407
+ }
408
+ .eds-contrast .eds-feedback-text__icon--warning {
409
+ color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
410
+ }
411
+ .eds-contrast .eds-feedback-text__icon--warning circle {
412
+ fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
413
+ }
414
+ /* DO NOT CHANGE!*/
415
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
416
+ .eds-input-group {
417
+ color: inherit;
418
+ display: block;
419
+ position: relative;
420
+ }
421
+ .eds-input-group__label {
422
+ color: var(--components-form-baseform-standard-text-label);
423
+ display: flex;
424
+ font-size: 1rem;
425
+ position: absolute;
426
+ line-height: 1rem;
427
+ height: 3rem;
428
+ padding: 1rem;
429
+ padding-left: 0;
430
+ margin-left: 1rem;
431
+ top: -0.125rem;
432
+ 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;
433
+ -webkit-user-select: none;
434
+ -moz-user-select: none;
435
+ user-select: none;
436
+ pointer-events: none;
437
+ }
438
+ .eds-form-control-wrapper--is-filled .eds-input-group__label {
439
+ top: 0.375rem;
440
+ font-size: 0.75rem;
441
+ line-height: 0.75rem;
442
+ height: 10px;
443
+ padding: 0;
444
+ margin-left: 1rem;
445
+ }
446
+ .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
447
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
448
+ background: var(--textarea-label-background);
449
+ width: calc(100% - 1rem - 1rem - 4px);
450
+ }
451
+ .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
452
+ top: 0.5rem;
453
+ font-size: 0.875rem;
454
+ line-height: 1rem;
455
+ padding: 0;
456
+ margin-left: 1rem;
457
+ }
458
+ .eds-form-control-wrapper--size-large .eds-input-group__label {
459
+ font-size: 1.5rem;
460
+ line-height: 2.25rem;
461
+ height: 4rem;
462
+ top: -0.25rem;
463
+ }
464
+ .eds-input-group__label--filled {
465
+ top: 0.375rem;
466
+ font-size: 0.75rem;
467
+ line-height: 0.75rem;
468
+ height: 10px;
469
+ padding: 0;
470
+ margin-left: 1rem;
471
+ }
472
+ .eds-textarea__label .eds-input-group__label--filled {
473
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
474
+ background: var(--textarea-label-background);
475
+ width: calc(100% - 1rem - 1rem - 4px);
476
+ }
477
+ .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
478
+ top: 0.5rem;
479
+ font-size: 0.875rem;
480
+ line-height: 1rem;
481
+ padding: 0;
482
+ margin-left: 1rem;
483
+ }
484
+ .eds-input-group__label-tooltip-icon {
485
+ color: var(--base-colors-shape-accent);
486
+ padding-left: 0.25rem;
487
+ padding-right: 0.25rem;
488
+ display: flex;
489
+ align-items: center;
490
+ cursor: help;
491
+ font-size: 1rem;
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
+ margin-left: 1rem;
501
+ }
502
+
503
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
504
+ top: 0.375rem;
505
+ font-size: 0.75rem;
506
+ line-height: 0.75rem;
507
+ height: 10px;
508
+ padding: 0;
509
+ margin-left: 1rem;
510
+ }
511
+ .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
512
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
513
+ background: var(--textarea-label-background);
514
+ width: calc(100% - 1rem - 1rem - 4px);
515
+ }
516
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
517
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
518
+ background: var(--textarea-label-background);
519
+ width: calc(100% - 1rem - 1rem - 4px);
520
+ }
521
+ .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
522
+ top: 0.5rem;
523
+ font-size: 0.875rem;
524
+ line-height: 1rem;
525
+ padding: 0;
526
+ margin-left: 1rem;
527
+ }
528
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
529
+ top: 0.5rem;
530
+ font-size: 0.875rem;
531
+ line-height: 1rem;
532
+ padding: 0;
533
+ margin-left: 1rem;
534
+ }
535
+ .eds-contrast .eds-form-control-wrapper .eds-tooltip {
536
+ background: var(--components-tooltip-tooltip-standard-fill);
537
+ color: var(--components-tooltip-tooltip-standard-text);
538
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
539
+ }
540
+ .eds-form-control-wrapper .eds-tooltip::after {
541
+ background: var(--components-tooltip-tooltip-standard-fill);
542
+ }
543
+ /* DO NOT CHANGE!*/
544
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
472
545
  .eds-form-component--radio__container {
473
546
  display: flex;
474
547
  justify-content: center;
@@ -551,13 +624,6 @@
551
624
  }
552
625
  /* DO NOT CHANGE!*/
553
626
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
554
- textarea.eds-form-control.eds-textarea {
555
- min-height: 7.75rem;
556
- resize: vertical;
557
- line-height: 1.5rem;
558
- }
559
- /* DO NOT CHANGE!*/
560
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
561
627
  .eds-switch {
562
628
  cursor: pointer;
563
629
  -webkit-user-select: none;
@@ -838,76 +904,10 @@ input:disabled + .eds-input-panel__container {
838
904
  }
839
905
  /* DO NOT CHANGE!*/
840
906
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
841
- .eds-feedback-text {
842
- display: flex;
843
- align-items: center;
844
- margin-top: 0.25rem;
845
- }
846
- .eds-feedback-text--info, .eds-feedback-text--information {
847
- padding-left: calc(1rem + 0.125rem);
848
- }
849
- .eds-feedback-text__text {
850
- color: var(--components-form-feedbacktext-information-standard-text);
851
- }
852
- .eds-contrast .eds-feedback-text__text {
853
- color: var(--components-form-feedbacktext-information-contrast-text);
854
- }
855
-
856
- .eds-feedback-text__icon {
857
- font-size: 1.5rem;
858
- min-height: 1.5rem;
859
- min-width: 1.5rem;
860
- padding-right: 0.5rem;
861
- position: relative;
862
- top: -0.1rem;
863
- }
864
- .eds-feedback-text__icon--success {
865
- color: var(--components-form-feedbacktext-success-standard-icon-fill);
866
- }
867
- .eds-feedback-text__icon--success circle {
868
- fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
869
- }
870
- .eds-contrast .eds-feedback-text__icon--success {
871
- color: var(--components-form-feedbacktext-success-contrast-icon-fill);
872
- }
873
- .eds-contrast .eds-feedback-text__icon--success circle {
874
- fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
875
- }
876
- .eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
877
- color: var(--components-form-feedbacktext-negative-standard-icon-fill);
878
- }
879
- .eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
880
- fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
881
- }
882
- .eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
883
- color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
884
- }
885
- .eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
886
- fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
887
- }
888
- .eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
889
- color: var(--components-form-feedbacktext-information-standard-icon-fill);
890
- }
891
- .eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
892
- fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
893
- }
894
- .eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
895
- color: var(--components-form-feedbacktext-information-contrast-icon-fill);
896
- }
897
- .eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
898
- fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
899
- }
900
- .eds-feedback-text__icon--warning {
901
- color: var(--components-form-feedbacktext-warning-standard-icon-fill);
902
- }
903
- .eds-feedback-text__icon--warning .svg-exclamation {
904
- fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
905
- }
906
- .eds-contrast .eds-feedback-text__icon--warning {
907
- color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
908
- }
909
- .eds-contrast .eds-feedback-text__icon--warning circle {
910
- fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
907
+ textarea.eds-form-control.eds-textarea {
908
+ min-height: 7.75rem;
909
+ resize: vertical;
910
+ line-height: 1.5rem;
911
911
  }
912
912
  /* DO NOT CHANGE!*/
913
913
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/form",
3
- "version": "7.1.10",
3
+ "version": "7.1.11",
4
4
  "license": "EUPL-1.2",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/form.esm.js",
@@ -27,12 +27,12 @@
27
27
  "react-dom": ">=16.8.0"
28
28
  },
29
29
  "dependencies": {
30
- "@entur/icons": "^6.17.1",
31
- "@entur/tokens": "^3.15.0",
32
- "@entur/tooltip": "^2.7.9",
33
- "@entur/typography": "^1.8.38",
30
+ "@entur/icons": "^6.18.0",
31
+ "@entur/tokens": "^3.15.1",
32
+ "@entur/tooltip": "^2.7.10",
33
+ "@entur/typography": "^1.8.39",
34
34
  "@entur/utils": "^0.11.1",
35
35
  "classnames": "^2.3.1"
36
36
  },
37
- "gitHead": "8f5dd2a35e3794050cdc8664efeb078254404632"
37
+ "gitHead": "59263b656c7de882e8ecf50bdb49f7ddfd283026"
38
38
  }