@entur/form 7.0.0 → 7.0.1

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 +190 -190
  2. package/package.json +4 -4
package/dist/styles.css CHANGED
@@ -3,55 +3,10 @@
3
3
  }
4
4
  /* DO NOT CHANGE!*/
5
5
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
6
- .eds-feedback-text {
7
- display: flex;
8
- align-items: center;
9
- margin-top: 0.25rem;
10
- }
11
- .eds-feedback-text--info {
12
- padding-left: calc(1rem + 0.125rem);
13
- }
14
- .eds-feedback-text__text {
15
- color: #181c56;
16
- }
17
- .eds-contrast .eds-feedback-text__text {
18
- color: #ffffff;
19
- }
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;
28
- }
29
- .eds-feedback-text__icon--success {
30
- color: #1a8e60;
31
- }
32
- .eds-contrast .eds-feedback-text__icon--success {
33
- color: #5ac39a;
34
- }
35
- .eds-feedback-text__icon--error {
36
- color: #d31b1b;
37
- }
38
- .eds-contrast .eds-feedback-text__icon--error {
39
- color: #ff9494;
40
- }
41
- .eds-feedback-text__icon--info {
42
- color: #0082b9;
43
- }
44
- .eds-contrast .eds-feedback-text__icon--info {
45
- color: #64b3e7;
46
- }
47
- .eds-feedback-text__icon--warning {
48
- color: #ffca28;
49
- }
50
- .eds-feedback-text__icon--warning circle {
51
- fill: #181c56;
52
- }
53
- .eds-contrast .eds-feedback-text__icon--warning {
54
- color: #ffe082;
6
+ .eds-fieldset {
7
+ margin: 0;
8
+ padding: 0;
9
+ border: 0;
55
10
  }
56
11
  /* DO NOT CHANGE!*/
57
12
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -298,147 +253,6 @@
298
253
  }
299
254
  /* DO NOT CHANGE!*/
300
255
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
301
- .eds-input-group {
302
- color: inherit;
303
- display: block;
304
- position: relative;
305
- }
306
- .eds-input-group__label {
307
- color: #656782;
308
- display: flex;
309
- font-size: 1rem;
310
- position: absolute;
311
- line-height: 1rem;
312
- height: 3rem;
313
- padding: 1rem;
314
- padding-left: 0;
315
- margin-left: 1rem;
316
- top: -0.125rem;
317
- 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;
318
- -webkit-user-select: none;
319
- -moz-user-select: none;
320
- user-select: none;
321
- pointer-events: none;
322
- }
323
- .eds-form-control-wrapper--is-filled .eds-input-group__label {
324
- top: 0.375rem;
325
- font-size: 0.75rem;
326
- line-height: 0.75rem;
327
- height: 10px;
328
- padding: 0;
329
- margin-left: 1rem;
330
- }
331
- .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
332
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
333
- background: var(--textarea-label-background);
334
- width: calc(
335
- 100% - 1rem - 1rem - 4px
336
- );
337
- }
338
- .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
339
- top: 0.5rem;
340
- font-size: 0.875rem;
341
- line-height: 1rem;
342
- padding: 0;
343
- margin-left: 1rem;
344
- }
345
- .eds-contrast .eds-input-group__label {
346
- color: #8285a8;
347
- }
348
- .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
349
- color: #aeb7e2;
350
- }
351
- .eds-form-control-wrapper--size-large .eds-input-group__label {
352
- font-size: 1.5rem;
353
- line-height: 2.25rem;
354
- height: 4rem;
355
- }
356
- .eds-input-group__label--filled {
357
- top: 0.375rem;
358
- font-size: 0.75rem;
359
- line-height: 0.75rem;
360
- height: 10px;
361
- padding: 0;
362
- margin-left: 1rem;
363
- }
364
- .eds-textarea__label .eds-input-group__label--filled {
365
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
366
- background: var(--textarea-label-background);
367
- width: calc(
368
- 100% - 1rem - 1rem - 4px
369
- );
370
- }
371
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
372
- top: 0.5rem;
373
- font-size: 0.875rem;
374
- line-height: 1rem;
375
- padding: 0;
376
- margin-left: 1rem;
377
- }
378
- .eds-input-group__label-tooltip-icon {
379
- color: #0082b9;
380
- padding-left: 0.25rem;
381
- padding-right: 0.25rem;
382
- display: flex;
383
- align-items: center;
384
- cursor: help;
385
- font-size: 1rem;
386
- }
387
-
388
- .eds-form-control-wrapper[focus-within] .eds-input-group__label {
389
- top: 0.375rem;
390
- font-size: 0.75rem;
391
- line-height: 0.75rem;
392
- height: 10px;
393
- padding: 0;
394
- margin-left: 1rem;
395
- }
396
-
397
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
398
- top: 0.375rem;
399
- font-size: 0.75rem;
400
- line-height: 0.75rem;
401
- height: 10px;
402
- padding: 0;
403
- margin-left: 1rem;
404
- }
405
- .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
406
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
407
- background: var(--textarea-label-background);
408
- width: calc(
409
- 100% - 1rem - 1rem - 4px
410
- );
411
- }
412
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
413
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
414
- background: var(--textarea-label-background);
415
- width: calc(
416
- 100% - 1rem - 1rem - 4px
417
- );
418
- }
419
- .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
420
- top: 0.5rem;
421
- font-size: 0.875rem;
422
- line-height: 1rem;
423
- padding: 0;
424
- margin-left: 1rem;
425
- }
426
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
427
- top: 0.5rem;
428
- font-size: 0.875rem;
429
- line-height: 1rem;
430
- padding: 0;
431
- margin-left: 1rem;
432
- }
433
- /* DO NOT CHANGE!*/
434
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
435
- .eds-fieldset {
436
- margin: 0;
437
- padding: 0;
438
- border: 0;
439
- }
440
- /* DO NOT CHANGE!*/
441
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
442
256
  .eds-checkbox__container {
443
257
  display: flex;
444
258
  align-items: center;
@@ -601,6 +415,58 @@
601
415
  }
602
416
  /* DO NOT CHANGE!*/
603
417
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
418
+ .eds-feedback-text {
419
+ display: flex;
420
+ align-items: center;
421
+ margin-top: 0.25rem;
422
+ }
423
+ .eds-feedback-text--info {
424
+ padding-left: calc(1rem + 0.125rem);
425
+ }
426
+ .eds-feedback-text__text {
427
+ color: #181c56;
428
+ }
429
+ .eds-contrast .eds-feedback-text__text {
430
+ color: #ffffff;
431
+ }
432
+
433
+ .eds-feedback-text__icon {
434
+ font-size: 1.5rem;
435
+ min-height: 1.5rem;
436
+ min-width: 1.5rem;
437
+ padding-right: 0.5rem;
438
+ position: relative;
439
+ top: -0.1rem;
440
+ }
441
+ .eds-feedback-text__icon--success {
442
+ color: #1a8e60;
443
+ }
444
+ .eds-contrast .eds-feedback-text__icon--success {
445
+ color: #5ac39a;
446
+ }
447
+ .eds-feedback-text__icon--error {
448
+ color: #d31b1b;
449
+ }
450
+ .eds-contrast .eds-feedback-text__icon--error {
451
+ color: #ff9494;
452
+ }
453
+ .eds-feedback-text__icon--info {
454
+ color: #0082b9;
455
+ }
456
+ .eds-contrast .eds-feedback-text__icon--info {
457
+ color: #64b3e7;
458
+ }
459
+ .eds-feedback-text__icon--warning {
460
+ color: #ffca28;
461
+ }
462
+ .eds-feedback-text__icon--warning circle {
463
+ fill: #181c56;
464
+ }
465
+ .eds-contrast .eds-feedback-text__icon--warning {
466
+ color: #ffe082;
467
+ }
468
+ /* DO NOT CHANGE!*/
469
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
604
470
  .eds-form-component--radio__container {
605
471
  display: flex;
606
472
  justify-content: center;
@@ -689,6 +555,140 @@
689
555
  }
690
556
  /* DO NOT CHANGE!*/
691
557
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
558
+ .eds-input-group {
559
+ color: inherit;
560
+ display: block;
561
+ position: relative;
562
+ }
563
+ .eds-input-group__label {
564
+ color: #656782;
565
+ display: flex;
566
+ font-size: 1rem;
567
+ position: absolute;
568
+ line-height: 1rem;
569
+ height: 3rem;
570
+ padding: 1rem;
571
+ padding-left: 0;
572
+ margin-left: 1rem;
573
+ top: -0.125rem;
574
+ 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;
575
+ -webkit-user-select: none;
576
+ -moz-user-select: none;
577
+ user-select: none;
578
+ pointer-events: none;
579
+ }
580
+ .eds-form-control-wrapper--is-filled .eds-input-group__label {
581
+ top: 0.375rem;
582
+ font-size: 0.75rem;
583
+ line-height: 0.75rem;
584
+ height: 10px;
585
+ padding: 0;
586
+ margin-left: 1rem;
587
+ }
588
+ .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
589
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
590
+ background: var(--textarea-label-background);
591
+ width: calc(
592
+ 100% - 1rem - 1rem - 4px
593
+ );
594
+ }
595
+ .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
596
+ top: 0.5rem;
597
+ font-size: 0.875rem;
598
+ line-height: 1rem;
599
+ padding: 0;
600
+ margin-left: 1rem;
601
+ }
602
+ .eds-contrast .eds-input-group__label {
603
+ color: #8285a8;
604
+ }
605
+ .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
606
+ color: #aeb7e2;
607
+ }
608
+ .eds-form-control-wrapper--size-large .eds-input-group__label {
609
+ font-size: 1.5rem;
610
+ line-height: 2.25rem;
611
+ height: 4rem;
612
+ }
613
+ .eds-input-group__label--filled {
614
+ top: 0.375rem;
615
+ font-size: 0.75rem;
616
+ line-height: 0.75rem;
617
+ height: 10px;
618
+ padding: 0;
619
+ margin-left: 1rem;
620
+ }
621
+ .eds-textarea__label .eds-input-group__label--filled {
622
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
623
+ background: var(--textarea-label-background);
624
+ width: calc(
625
+ 100% - 1rem - 1rem - 4px
626
+ );
627
+ }
628
+ .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
629
+ top: 0.5rem;
630
+ font-size: 0.875rem;
631
+ line-height: 1rem;
632
+ padding: 0;
633
+ margin-left: 1rem;
634
+ }
635
+ .eds-input-group__label-tooltip-icon {
636
+ color: #0082b9;
637
+ padding-left: 0.25rem;
638
+ padding-right: 0.25rem;
639
+ display: flex;
640
+ align-items: center;
641
+ cursor: help;
642
+ font-size: 1rem;
643
+ }
644
+
645
+ .eds-form-control-wrapper[focus-within] .eds-input-group__label {
646
+ top: 0.375rem;
647
+ font-size: 0.75rem;
648
+ line-height: 0.75rem;
649
+ height: 10px;
650
+ padding: 0;
651
+ margin-left: 1rem;
652
+ }
653
+
654
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
655
+ top: 0.375rem;
656
+ font-size: 0.75rem;
657
+ line-height: 0.75rem;
658
+ height: 10px;
659
+ padding: 0;
660
+ margin-left: 1rem;
661
+ }
662
+ .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
663
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
664
+ background: var(--textarea-label-background);
665
+ width: calc(
666
+ 100% - 1rem - 1rem - 4px
667
+ );
668
+ }
669
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
670
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
671
+ background: var(--textarea-label-background);
672
+ width: calc(
673
+ 100% - 1rem - 1rem - 4px
674
+ );
675
+ }
676
+ .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
677
+ top: 0.5rem;
678
+ font-size: 0.875rem;
679
+ line-height: 1rem;
680
+ padding: 0;
681
+ margin-left: 1rem;
682
+ }
683
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
684
+ top: 0.5rem;
685
+ font-size: 0.875rem;
686
+ line-height: 1rem;
687
+ padding: 0;
688
+ margin-left: 1rem;
689
+ }
690
+ /* DO NOT CHANGE!*/
691
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
692
692
  .eds-switch {
693
693
  cursor: pointer;
694
694
  -webkit-user-select: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/form",
3
- "version": "7.0.0",
3
+ "version": "7.0.1",
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.0.1",
30
+ "@entur/icons": "^6.1.0",
31
31
  "@entur/tokens": "^3.8.1",
32
- "@entur/tooltip": "^2.6.10",
32
+ "@entur/tooltip": "^2.6.11",
33
33
  "@entur/typography": "^1.7.13",
34
34
  "@entur/utils": "^0.6.0",
35
35
  "classnames": "^2.3.1"
36
36
  },
37
- "gitHead": "34cd9b50251daa4fed6ec367451c5403162145bc"
37
+ "gitHead": "a3edbb9069b9bd125919df8984b23628a1040cf4"
38
38
  }