@entur/form 7.0.24 → 7.0.26

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 +170 -170
  2. package/package.json +6 -6
package/dist/styles.css CHANGED
@@ -1,5 +1,57 @@
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 {
9
+ padding-left: calc(1rem + 0.125rem);
10
+ }
11
+ .eds-feedback-text__text {
12
+ color: #181c56;
13
+ }
14
+ .eds-contrast .eds-feedback-text__text {
15
+ color: #ffffff;
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: #1a8e60;
28
+ }
29
+ .eds-contrast .eds-feedback-text__icon--success {
30
+ color: #5ac39a;
31
+ }
32
+ .eds-feedback-text__icon--error {
33
+ color: #d31b1b;
34
+ }
35
+ .eds-contrast .eds-feedback-text__icon--error {
36
+ color: #ff9494;
37
+ }
38
+ .eds-feedback-text__icon--info {
39
+ color: #0082b9;
40
+ }
41
+ .eds-contrast .eds-feedback-text__icon--info {
42
+ color: #64b3e7;
43
+ }
44
+ .eds-feedback-text__icon--warning {
45
+ color: #ffca28;
46
+ }
47
+ .eds-feedback-text__icon--warning circle {
48
+ fill: #181c56;
49
+ }
50
+ .eds-contrast .eds-feedback-text__icon--warning {
51
+ color: #ffe082;
52
+ }
53
+ /* DO NOT CHANGE!*/
54
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
55
  .eds-form-control-wrapper {
4
56
  --border-color: #7C7F9F;
5
57
  --border-color-hover: #aeb7e2;
@@ -240,57 +292,141 @@
240
292
  .eds-form-control__append {
241
293
  margin-left: 0;
242
294
  }
295
+ .eds-fieldset {
296
+ margin: 0;
297
+ padding: 0;
298
+ border: 0;
299
+ }
243
300
  /* DO NOT CHANGE!*/
244
301
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
245
- .eds-feedback-text {
302
+ .eds-input-group {
303
+ color: inherit;
304
+ display: block;
305
+ position: relative;
306
+ }
307
+ .eds-input-group__label {
308
+ color: #656782;
246
309
  display: flex;
247
- align-items: center;
248
- margin-top: 0.25rem;
310
+ font-size: 1rem;
311
+ position: absolute;
312
+ line-height: 1rem;
313
+ height: 3rem;
314
+ padding: 1rem;
315
+ padding-left: 0;
316
+ margin-left: 1rem;
317
+ top: -0.125rem;
318
+ 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;
319
+ -webkit-user-select: none;
320
+ -moz-user-select: none;
321
+ user-select: none;
322
+ pointer-events: none;
249
323
  }
250
- .eds-feedback-text--info {
251
- padding-left: calc(1rem + 0.125rem);
324
+ .eds-form-control-wrapper--is-filled .eds-input-group__label {
325
+ top: 0.375rem;
326
+ font-size: 0.75rem;
327
+ line-height: 0.75rem;
328
+ height: 10px;
329
+ padding: 0;
330
+ margin-left: 1rem;
252
331
  }
253
- .eds-feedback-text__text {
254
- color: #181c56;
332
+ .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
333
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
334
+ background: var(--textarea-label-background);
335
+ width: calc(
336
+ 100% - 1rem - 1rem - 4px
337
+ );
255
338
  }
256
- .eds-contrast .eds-feedback-text__text {
257
- color: #ffffff;
339
+ .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
340
+ top: 0.5rem;
341
+ font-size: 0.875rem;
342
+ line-height: 1rem;
343
+ padding: 0;
344
+ margin-left: 1rem;
258
345
  }
259
-
260
- .eds-feedback-text__icon {
261
- font-size: 1.5rem;
262
- min-height: 1.5rem;
263
- min-width: 1.5rem;
264
- padding-right: 0.5rem;
265
- position: relative;
266
- top: -0.1rem;
346
+ .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
347
+ color: #aeb7e2;
267
348
  }
268
- .eds-feedback-text__icon--success {
269
- color: #1a8e60;
349
+ .eds-form-control-wrapper--size-large .eds-input-group__label {
350
+ font-size: 1.5rem;
351
+ line-height: 2.25rem;
352
+ height: 4rem;
270
353
  }
271
- .eds-contrast .eds-feedback-text__icon--success {
272
- color: #5ac39a;
354
+ .eds-input-group__label--filled {
355
+ top: 0.375rem;
356
+ font-size: 0.75rem;
357
+ line-height: 0.75rem;
358
+ height: 10px;
359
+ padding: 0;
360
+ margin-left: 1rem;
273
361
  }
274
- .eds-feedback-text__icon--error {
275
- color: #d31b1b;
362
+ .eds-textarea__label .eds-input-group__label--filled {
363
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
364
+ background: var(--textarea-label-background);
365
+ width: calc(
366
+ 100% - 1rem - 1rem - 4px
367
+ );
276
368
  }
277
- .eds-contrast .eds-feedback-text__icon--error {
278
- color: #ff9494;
369
+ .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
370
+ top: 0.5rem;
371
+ font-size: 0.875rem;
372
+ line-height: 1rem;
373
+ padding: 0;
374
+ margin-left: 1rem;
279
375
  }
280
- .eds-feedback-text__icon--info {
376
+ .eds-input-group__label-tooltip-icon {
281
377
  color: #0082b9;
378
+ padding-left: 0.25rem;
379
+ padding-right: 0.25rem;
380
+ display: flex;
381
+ align-items: center;
382
+ cursor: help;
383
+ font-size: 1rem;
282
384
  }
283
- .eds-contrast .eds-feedback-text__icon--info {
284
- color: #64b3e7;
385
+
386
+ .eds-form-control-wrapper[focus-within] .eds-input-group__label {
387
+ top: 0.375rem;
388
+ font-size: 0.75rem;
389
+ line-height: 0.75rem;
390
+ height: 10px;
391
+ padding: 0;
392
+ margin-left: 1rem;
285
393
  }
286
- .eds-feedback-text__icon--warning {
287
- color: #ffca28;
394
+
395
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
396
+ top: 0.375rem;
397
+ font-size: 0.75rem;
398
+ line-height: 0.75rem;
399
+ height: 10px;
400
+ padding: 0;
401
+ margin-left: 1rem;
288
402
  }
289
- .eds-feedback-text__icon--warning circle {
290
- fill: #181c56;
403
+ .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
404
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
405
+ background: var(--textarea-label-background);
406
+ width: calc(
407
+ 100% - 1rem - 1rem - 4px
408
+ );
291
409
  }
292
- .eds-contrast .eds-feedback-text__icon--warning {
293
- color: #ffe082;
410
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
411
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
412
+ background: var(--textarea-label-background);
413
+ width: calc(
414
+ 100% - 1rem - 1rem - 4px
415
+ );
416
+ }
417
+ .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
418
+ top: 0.5rem;
419
+ font-size: 0.875rem;
420
+ line-height: 1rem;
421
+ padding: 0;
422
+ margin-left: 1rem;
423
+ }
424
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
425
+ top: 0.5rem;
426
+ font-size: 0.875rem;
427
+ line-height: 1rem;
428
+ padding: 0;
429
+ margin-left: 1rem;
294
430
  }
295
431
  /* DO NOT CHANGE!*/
296
432
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -454,142 +590,6 @@
454
590
  stroke-dashoffset: 0;
455
591
  }
456
592
  }
457
- .eds-fieldset {
458
- margin: 0;
459
- padding: 0;
460
- border: 0;
461
- }
462
- /* DO NOT CHANGE!*/
463
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
464
- .eds-input-group {
465
- color: inherit;
466
- display: block;
467
- position: relative;
468
- }
469
- .eds-input-group__label {
470
- color: #656782;
471
- display: flex;
472
- font-size: 1rem;
473
- position: absolute;
474
- line-height: 1rem;
475
- height: 3rem;
476
- padding: 1rem;
477
- padding-left: 0;
478
- margin-left: 1rem;
479
- top: -0.125rem;
480
- 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;
481
- -webkit-user-select: none;
482
- -moz-user-select: none;
483
- user-select: none;
484
- pointer-events: none;
485
- }
486
- .eds-form-control-wrapper--is-filled .eds-input-group__label {
487
- top: 0.375rem;
488
- font-size: 0.75rem;
489
- line-height: 0.75rem;
490
- height: 10px;
491
- padding: 0;
492
- margin-left: 1rem;
493
- }
494
- .eds-textarea__label .eds-form-control-wrapper--is-filled .eds-input-group__label {
495
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
496
- background: var(--textarea-label-background);
497
- width: calc(
498
- 100% - 1rem - 1rem - 4px
499
- );
500
- }
501
- .eds-form-control-wrapper--size-large .eds-form-control-wrapper--is-filled .eds-input-group__label {
502
- top: 0.5rem;
503
- font-size: 0.875rem;
504
- line-height: 1rem;
505
- padding: 0;
506
- margin-left: 1rem;
507
- }
508
- .eds-contrast .eds-form-control-wrapper--dark .eds-input-group__label {
509
- color: #aeb7e2;
510
- }
511
- .eds-form-control-wrapper--size-large .eds-input-group__label {
512
- font-size: 1.5rem;
513
- line-height: 2.25rem;
514
- height: 4rem;
515
- }
516
- .eds-input-group__label--filled {
517
- top: 0.375rem;
518
- font-size: 0.75rem;
519
- line-height: 0.75rem;
520
- height: 10px;
521
- padding: 0;
522
- margin-left: 1rem;
523
- }
524
- .eds-textarea__label .eds-input-group__label--filled {
525
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
526
- background: var(--textarea-label-background);
527
- width: calc(
528
- 100% - 1rem - 1rem - 4px
529
- );
530
- }
531
- .eds-form-control-wrapper--size-large .eds-input-group__label--filled {
532
- top: 0.5rem;
533
- font-size: 0.875rem;
534
- line-height: 1rem;
535
- padding: 0;
536
- margin-left: 1rem;
537
- }
538
- .eds-input-group__label-tooltip-icon {
539
- color: #0082b9;
540
- padding-left: 0.25rem;
541
- padding-right: 0.25rem;
542
- display: flex;
543
- align-items: center;
544
- cursor: help;
545
- font-size: 1rem;
546
- }
547
-
548
- .eds-form-control-wrapper[focus-within] .eds-input-group__label {
549
- top: 0.375rem;
550
- font-size: 0.75rem;
551
- line-height: 0.75rem;
552
- height: 10px;
553
- padding: 0;
554
- margin-left: 1rem;
555
- }
556
-
557
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
558
- top: 0.375rem;
559
- font-size: 0.75rem;
560
- line-height: 0.75rem;
561
- height: 10px;
562
- padding: 0;
563
- margin-left: 1rem;
564
- }
565
- .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
566
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
567
- background: var(--textarea-label-background);
568
- width: calc(
569
- 100% - 1rem - 1rem - 4px
570
- );
571
- }
572
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
573
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
574
- background: var(--textarea-label-background);
575
- width: calc(
576
- 100% - 1rem - 1rem - 4px
577
- );
578
- }
579
- .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
580
- top: 0.5rem;
581
- font-size: 0.875rem;
582
- line-height: 1rem;
583
- padding: 0;
584
- margin-left: 1rem;
585
- }
586
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
587
- top: 0.5rem;
588
- font-size: 0.875rem;
589
- line-height: 1rem;
590
- padding: 0;
591
- margin-left: 1rem;
592
- }
593
593
  /* DO NOT CHANGE!*/
594
594
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
595
595
  .eds-form-component--radio__container {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/form",
3
- "version": "7.0.24",
3
+ "version": "7.0.26",
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.11.1",
31
- "@entur/tokens": "^3.10.0",
32
- "@entur/tooltip": "^2.6.33",
33
- "@entur/typography": "^1.8.14",
30
+ "@entur/icons": "^6.12.0",
31
+ "@entur/tokens": "^3.11.0",
32
+ "@entur/tooltip": "^2.6.35",
33
+ "@entur/typography": "^1.8.16",
34
34
  "@entur/utils": "^0.9.5",
35
35
  "classnames": "^2.3.1"
36
36
  },
37
- "gitHead": "bfcfe0c1a78ad15d2e1a3fffe235ec21f02bae17"
37
+ "gitHead": "6e557eb43d533d387713194d8b302ccc101bad20"
38
38
  }