@entur/form 8.1.7 → 8.1.8

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 +321 -321
  2. package/package.json +3 -3
package/dist/styles.css CHANGED
@@ -1,8 +1,3 @@
1
- .eds-fieldset {
2
- margin: 0;
3
- padding: 0;
4
- border: 0;
5
- }
6
1
  /* DO NOT CHANGE!*/
7
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
8
3
  .eds-feedback-text {
@@ -76,6 +71,93 @@
76
71
  .eds-contrast .eds-feedback-text__icon--warning circle {
77
72
  fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
78
73
  }
74
+ .eds-fieldset {
75
+ margin: 0;
76
+ padding: 0;
77
+ border: 0;
78
+ }
79
+ /* DO NOT CHANGE!*/
80
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
81
+ .eds-form-component--radio__container {
82
+ display: flex;
83
+ justify-content: center;
84
+ align-items: center;
85
+ position: relative;
86
+ cursor: pointer;
87
+ height: 2rem;
88
+ width: -moz-fit-content;
89
+ width: fit-content;
90
+ -webkit-user-select: none;
91
+ -moz-user-select: none;
92
+ user-select: none;
93
+ }
94
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
95
+ background-color: var(--components-form-radio-standard-fill-hover);
96
+ }
97
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
98
+ background-color: var(--components-form-radio-contrast-fill-hover);
99
+ }
100
+ .eds-form-component--radio__container input {
101
+ position: absolute;
102
+ opacity: 0;
103
+ cursor: pointer;
104
+ height: 0;
105
+ width: 0;
106
+ }
107
+ .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
108
+ height: 0.625rem;
109
+ width: 0.625rem;
110
+ }
111
+ .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
112
+ outline: 2px solid #181c56;
113
+ outline-color: var(--basecolors-stroke-focus-standard);
114
+ outline-offset: 0.125rem;
115
+ }
116
+ .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
117
+ outline-color: var(--basecolors-stroke-focus-contrast);
118
+ }
119
+ .eds-form-component--radio__container .eds-form-component--radio__radio {
120
+ position: relative;
121
+ height: 1.25rem;
122
+ width: 1.25rem;
123
+ margin-right: 1rem;
124
+ background-color: var(--components-form-radio-standard-fill-default);
125
+ border: 0.125rem solid var(--components-form-radio-standard-border);
126
+ border-radius: 50%;
127
+ display: flex;
128
+ align-items: center;
129
+ justify-content: center;
130
+ }
131
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
132
+ background-color: var(--components-form-radio-contrast-fill-default);
133
+ border-color: var(--components-form-radio-contrast-border);
134
+ }
135
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
136
+ background: var(--components-form-baseform-contrast-fill-disabled);
137
+ border-color: var(--components-form-baseform-contrast-text-disabled);
138
+ cursor: not-allowed;
139
+ }
140
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
141
+ border-color: var(--components-form-baseform-contrast-text-disabled);
142
+ }
143
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
144
+ background: var(--components-form-baseform-contrast-fill-disabled);
145
+ border-color: var(--components-form-baseform-contrast-text-disabled);
146
+ }
147
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
148
+ color: var(--components-form-baseform-contrast-text-disabled);
149
+ }
150
+ .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
151
+ display: block;
152
+ width: 0;
153
+ height: 0;
154
+ border-radius: 50%;
155
+ background-color: var(--components-form-radio-standard-fill-selected);
156
+ transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
157
+ }
158
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
159
+ background-color: var(--components-form-radio-contrast-icon);
160
+ }
79
161
  /* DO NOT CHANGE!*/
80
162
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
81
163
  .eds-checkbox__container {
@@ -233,215 +315,6 @@
233
315
  }
234
316
  /* DO NOT CHANGE!*/
235
317
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
236
- .eds-form-control__field-and-feedback-text {
237
- display: flex;
238
- flex-direction: column;
239
- height: -moz-fit-content;
240
- height: fit-content;
241
- width: 100%;
242
- }
243
- .eds-form-control__field-and-feedback-text--has-tooltip {
244
- padding-right: 2rem;
245
- }
246
- .eds-form-control-wrapper {
247
- display: flex;
248
- align-items: center;
249
- position: relative;
250
- flex: 1;
251
- min-height: 3rem;
252
- padding-left: 1rem;
253
- padding-right: 1rem;
254
- background-color: var(--components-form-baseform-standard-fill-default);
255
- border-radius: 0.25rem;
256
- border: 0.125rem solid var(--components-form-baseform-standard-border-default);
257
- box-shadow: 0 0 0 transparent;
258
- color: var(--components-form-baseform-standard-text-content);
259
- transition: border-color 0.1s ease-in-out;
260
- }
261
- .eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
262
- border-color: var(--components-form-baseform-standard-border-interactive);
263
- }
264
- .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
265
- border-color: var(--components-form-baseform-standard-border-interactive);
266
- }
267
- .eds-contrast .eds-form-control-wrapper:hover {
268
- border-color: var(--components-form-baseform-contrast-border-interactive);
269
- }
270
- .eds-form-control-wrapper[focus-within] {
271
- outline: 1px solid var(--components-form-baseform-standard-border-interactive);
272
- }
273
- .eds-form-control-wrapper:focus-within {
274
- outline: 1px solid var(--components-form-baseform-standard-border-interactive);
275
- }
276
- .eds-contrast .eds-form-control-wrapper[focus-within] {
277
- outline: var(--components-form-baseform-contrast-border-interactive);
278
- }
279
- .eds-contrast .eds-form-control-wrapper:focus-within {
280
- outline: var(--components-form-baseform-contrast-border-interactive);
281
- }
282
- .eds-form-control-wrapper ::-moz-placeholder {
283
- color: var(--components-form-baseform-standard-text-label);
284
- }
285
- .eds-form-control-wrapper ::placeholder {
286
- color: var(--components-form-baseform-standard-text-label);
287
- }
288
- .eds-form-control-wrapper--disabled {
289
- border-color: transparent;
290
- background-color: var(--components-form-baseform-standard-fill-disabled);
291
- pointer-events: none;
292
- color: var(--components-form-baseform-standard-text-disabled);
293
- }
294
- .eds-form-control-wrapper--disabled .eds-input-group__label {
295
- color: var(--components-form-baseform-standard-text-disabled);
296
- }
297
- .eds-contrast .eds-form-control-wrapper--disabled {
298
- border-color: transparent;
299
- background-color: var(--components-form-baseform-contrast-fill-disabled);
300
- color: var(--components-form-baseform-contrast-text-disabled);
301
- }
302
- .eds-contrast .eds-form-control-wrapper--disabled .eds-input-group__label {
303
- color: var(--components-form-baseform-contrast-text-disabled);
304
- }
305
- .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
306
- display: none;
307
- }
308
- .eds-form-control-wrapper--readonly {
309
- border-color: transparent;
310
- pointer-events: none;
311
- cursor: default;
312
- background: var(--components-form-baseform-standard-fill-readonly);
313
- border: var(--components-form-baseform-standard-fill-readonly);
314
- }
315
- .eds-contrast .eds-form-control-wrapper--readonly {
316
- background: var(--components-form-baseform-contrast-fill-readonly);
317
- color: var(--components-form-baseform-contrast-text-description);
318
- border: var(--components-form-baseform-contrast-fill-readonly);
319
- }
320
- .eds-contrast .eds-form-control-wrapper--readonly .eds-input-group__label {
321
- color: var(--components-form-baseform-contrast-text-description);
322
- }
323
- .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
324
- display: none;
325
- }
326
- .eds-form-control-wrapper--size-medium .eds-form-control,
327
- .eds-form-control-wrapper--size-medium .eds-form-control__append,
328
- .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
329
- font-size: 1rem;
330
- line-height: 1rem;
331
- }
332
- .eds-form-control-wrapper--size-large {
333
- min-height: 4rem;
334
- }
335
- .eds-form-control-wrapper--size-large .eds-form-control,
336
- .eds-form-control-wrapper--size-large .eds-form-control__append,
337
- .eds-form-control-wrapper--size-large .eds-form-control__prepend {
338
- font-size: 1.5rem;
339
- }
340
- .eds-form-control-wrapper--success {
341
- border-color: var(--components-form-baseform-standard-border-success);
342
- }
343
- .eds-form-control-wrapper--success[focus-within] {
344
- border-color: var(--components-form-baseform-standard-border-success);
345
- }
346
- .eds-form-control-wrapper--success:focus-within {
347
- border-color: var(--components-form-baseform-standard-border-success);
348
- }
349
- .eds-contrast .eds-form-control-wrapper--success {
350
- border-color: var(--components-form-baseform-standard-border-success);
351
- }
352
- .eds-contrast .eds-form-control-wrapper--success[focus-within] {
353
- border-color: var(--components-form-baseform-contrast-border-success);
354
- }
355
- .eds-contrast .eds-form-control-wrapper--success:focus-within {
356
- border-color: var(--components-form-baseform-contrast-border-success);
357
- }
358
- .eds-form-control-wrapper--error, .eds-form-control-wrapper--negative {
359
- border-color: var(--components-form-baseform-standard-border-negative);
360
- }
361
- .eds-form-control-wrapper--error[focus-within], .eds-form-control-wrapper--negative[focus-within] {
362
- border-color: var(--components-form-baseform-standard-border-negative);
363
- }
364
- .eds-form-control-wrapper--error:focus-within, .eds-form-control-wrapper--negative:focus-within {
365
- border-color: var(--components-form-baseform-standard-border-negative);
366
- }
367
- .eds-contrast .eds-form-control-wrapper--error, .eds-contrast .eds-form-control-wrapper--negative {
368
- border-color: var(--components-form-baseform-contrast-border-negative);
369
- }
370
- .eds-contrast .eds-form-control-wrapper--error[focus-within], .eds-contrast .eds-form-control-wrapper--negative[focus-within] {
371
- border-color: var(--components-form-baseform-contrast-border-negative);
372
- }
373
- .eds-contrast .eds-form-control-wrapper--error:focus-within, .eds-contrast .eds-form-control-wrapper--negative:focus-within {
374
- border-color: var(--components-form-baseform-contrast-border-negative);
375
- }
376
- .eds-contrast .eds-form-control .eds-tooltip {
377
- background: var(--components-tooltip-tooltip-standard-fill);
378
- color: var(--components-tooltip-tooltip-standard-text);
379
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
380
- }
381
- .eds-form-control .eds-tooltip::after {
382
- background: var(--components-tooltip-tooltip-standard-fill);
383
- }
384
-
385
- .eds-form-control {
386
- display: block;
387
- -webkit-appearance: none;
388
- -moz-appearance: none;
389
- appearance: none;
390
- width: 100%;
391
- height: 100%;
392
- padding: 20px 0rem 0.25rem;
393
- font-family: inherit;
394
- font-size: 1rem;
395
- line-height: 1rem;
396
- border: 0;
397
- color: var(--components-form-baseform-standard-text-content);
398
- background-color: transparent;
399
- }
400
- .eds-form-control::-moz-placeholder {
401
- opacity: 0;
402
- -moz-transition: opacity 0.2s ease-in-out;
403
- transition: opacity 0.2s ease-in-out;
404
- }
405
- .eds-form-control::placeholder {
406
- opacity: 0;
407
- transition: opacity 0.2s ease-in-out;
408
- }
409
- .eds-form-control:focus {
410
- outline: none;
411
- }
412
- .eds-form-control:focus::-moz-placeholder {
413
- opacity: 1;
414
- }
415
- .eds-form-control:focus::placeholder {
416
- opacity: 1;
417
- }
418
- .eds-form-control__prepend, .eds-form-control__append {
419
- position: relative;
420
- line-height: inherit;
421
- }
422
- .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
423
- all: unset;
424
- position: absolute;
425
- display: flex;
426
- align-items: center;
427
- justify-content: center;
428
- height: 1.5rem;
429
- width: 1.5rem;
430
- right: -2rem;
431
- border-radius: 100%;
432
- color: var(--primary-text-color);
433
- cursor: pointer;
434
- }
435
- .eds-form-control__prepend {
436
- margin-right: 0.75rem;
437
- margin-left: 0;
438
- }
439
- .eds-form-control__append {
440
- margin-right: 0;
441
- margin-left: 0.75rem;
442
- }
443
- /* DO NOT CHANGE!*/
444
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
445
318
  .eds-input-group {
446
319
  color: inherit;
447
320
  display: block;
@@ -524,104 +397,22 @@
524
397
  background: var(--textarea-label-background);
525
398
  width: calc(100% - 1rem - 1rem - 4px);
526
399
  }
527
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
528
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
529
- background: var(--textarea-label-background);
530
- width: calc(100% - 1rem - 1rem - 4px);
531
- }
532
- .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
533
- top: 0.5rem;
534
- font-size: 0.875rem;
535
- line-height: 1rem;
536
- padding: 0;
537
- }
538
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
539
- top: 0.5rem;
540
- font-size: 0.875rem;
541
- line-height: 1rem;
542
- padding: 0;
543
- }
544
- /* DO NOT CHANGE!*/
545
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
546
- .eds-form-component--radio__container {
547
- display: flex;
548
- justify-content: center;
549
- align-items: center;
550
- position: relative;
551
- cursor: pointer;
552
- height: 2rem;
553
- width: -moz-fit-content;
554
- width: fit-content;
555
- -webkit-user-select: none;
556
- -moz-user-select: none;
557
- user-select: none;
558
- }
559
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
560
- background-color: var(--components-form-radio-standard-fill-hover);
561
- }
562
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
563
- background-color: var(--components-form-radio-contrast-fill-hover);
564
- }
565
- .eds-form-component--radio__container input {
566
- position: absolute;
567
- opacity: 0;
568
- cursor: pointer;
569
- height: 0;
570
- width: 0;
571
- }
572
- .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
573
- height: 0.625rem;
574
- width: 0.625rem;
575
- }
576
- .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
577
- outline: 2px solid #181c56;
578
- outline-color: var(--basecolors-stroke-focus-standard);
579
- outline-offset: 0.125rem;
580
- }
581
- .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
582
- outline-color: var(--basecolors-stroke-focus-contrast);
583
- }
584
- .eds-form-component--radio__container .eds-form-component--radio__radio {
585
- position: relative;
586
- height: 1.25rem;
587
- width: 1.25rem;
588
- margin-right: 1rem;
589
- background-color: var(--components-form-radio-standard-fill-default);
590
- border: 0.125rem solid var(--components-form-radio-standard-border);
591
- border-radius: 50%;
592
- display: flex;
593
- align-items: center;
594
- justify-content: center;
595
- }
596
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
597
- background-color: var(--components-form-radio-contrast-fill-default);
598
- border-color: var(--components-form-radio-contrast-border);
599
- }
600
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
601
- background: var(--components-form-baseform-contrast-fill-disabled);
602
- border-color: var(--components-form-baseform-contrast-text-disabled);
603
- cursor: not-allowed;
604
- }
605
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
606
- border-color: var(--components-form-baseform-contrast-text-disabled);
607
- }
608
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
609
- background: var(--components-form-baseform-contrast-fill-disabled);
610
- border-color: var(--components-form-baseform-contrast-text-disabled);
611
- }
612
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
613
- color: var(--components-form-baseform-contrast-text-disabled);
400
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
401
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
402
+ background: var(--textarea-label-background);
403
+ width: calc(100% - 1rem - 1rem - 4px);
614
404
  }
615
- .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
616
- display: block;
617
- width: 0;
618
- height: 0;
619
- border-radius: 50%;
620
- background-color: var(--components-form-radio-standard-fill-selected);
621
- transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
405
+ .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
406
+ top: 0.5rem;
407
+ font-size: 0.875rem;
408
+ line-height: 1rem;
409
+ padding: 0;
622
410
  }
623
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
624
- background-color: var(--components-form-radio-contrast-icon);
411
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
412
+ top: 0.5rem;
413
+ font-size: 0.875rem;
414
+ line-height: 1rem;
415
+ padding: 0;
625
416
  }
626
417
  /* DO NOT CHANGE!*/
627
418
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -1062,6 +853,215 @@ input:disabled + .eds-input-panel__container {
1062
853
  }
1063
854
  /* DO NOT CHANGE!*/
1064
855
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
856
+ .eds-form-control__field-and-feedback-text {
857
+ display: flex;
858
+ flex-direction: column;
859
+ height: -moz-fit-content;
860
+ height: fit-content;
861
+ width: 100%;
862
+ }
863
+ .eds-form-control__field-and-feedback-text--has-tooltip {
864
+ padding-right: 2rem;
865
+ }
866
+ .eds-form-control-wrapper {
867
+ display: flex;
868
+ align-items: center;
869
+ position: relative;
870
+ flex: 1;
871
+ min-height: 3rem;
872
+ padding-left: 1rem;
873
+ padding-right: 1rem;
874
+ background-color: var(--components-form-baseform-standard-fill-default);
875
+ border-radius: 0.25rem;
876
+ border: 0.125rem solid var(--components-form-baseform-standard-border-default);
877
+ box-shadow: 0 0 0 transparent;
878
+ color: var(--components-form-baseform-standard-text-content);
879
+ transition: border-color 0.1s ease-in-out;
880
+ }
881
+ .eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
882
+ border-color: var(--components-form-baseform-standard-border-interactive);
883
+ }
884
+ .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
885
+ border-color: var(--components-form-baseform-standard-border-interactive);
886
+ }
887
+ .eds-contrast .eds-form-control-wrapper:hover {
888
+ border-color: var(--components-form-baseform-contrast-border-interactive);
889
+ }
890
+ .eds-form-control-wrapper[focus-within] {
891
+ outline: 1px solid var(--components-form-baseform-standard-border-interactive);
892
+ }
893
+ .eds-form-control-wrapper:focus-within {
894
+ outline: 1px solid var(--components-form-baseform-standard-border-interactive);
895
+ }
896
+ .eds-contrast .eds-form-control-wrapper[focus-within] {
897
+ outline: var(--components-form-baseform-contrast-border-interactive);
898
+ }
899
+ .eds-contrast .eds-form-control-wrapper:focus-within {
900
+ outline: var(--components-form-baseform-contrast-border-interactive);
901
+ }
902
+ .eds-form-control-wrapper ::-moz-placeholder {
903
+ color: var(--components-form-baseform-standard-text-label);
904
+ }
905
+ .eds-form-control-wrapper ::placeholder {
906
+ color: var(--components-form-baseform-standard-text-label);
907
+ }
908
+ .eds-form-control-wrapper--disabled {
909
+ border-color: transparent;
910
+ background-color: var(--components-form-baseform-standard-fill-disabled);
911
+ pointer-events: none;
912
+ color: var(--components-form-baseform-standard-text-disabled);
913
+ }
914
+ .eds-form-control-wrapper--disabled .eds-input-group__label {
915
+ color: var(--components-form-baseform-standard-text-disabled);
916
+ }
917
+ .eds-contrast .eds-form-control-wrapper--disabled {
918
+ border-color: transparent;
919
+ background-color: var(--components-form-baseform-contrast-fill-disabled);
920
+ color: var(--components-form-baseform-contrast-text-disabled);
921
+ }
922
+ .eds-contrast .eds-form-control-wrapper--disabled .eds-input-group__label {
923
+ color: var(--components-form-baseform-contrast-text-disabled);
924
+ }
925
+ .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
926
+ display: none;
927
+ }
928
+ .eds-form-control-wrapper--readonly {
929
+ border-color: transparent;
930
+ pointer-events: none;
931
+ cursor: default;
932
+ background: var(--components-form-baseform-standard-fill-readonly);
933
+ border: var(--components-form-baseform-standard-fill-readonly);
934
+ }
935
+ .eds-contrast .eds-form-control-wrapper--readonly {
936
+ background: var(--components-form-baseform-contrast-fill-readonly);
937
+ color: var(--components-form-baseform-contrast-text-description);
938
+ border: var(--components-form-baseform-contrast-fill-readonly);
939
+ }
940
+ .eds-contrast .eds-form-control-wrapper--readonly .eds-input-group__label {
941
+ color: var(--components-form-baseform-contrast-text-description);
942
+ }
943
+ .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
944
+ display: none;
945
+ }
946
+ .eds-form-control-wrapper--size-medium .eds-form-control,
947
+ .eds-form-control-wrapper--size-medium .eds-form-control__append,
948
+ .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
949
+ font-size: 1rem;
950
+ line-height: 1rem;
951
+ }
952
+ .eds-form-control-wrapper--size-large {
953
+ min-height: 4rem;
954
+ }
955
+ .eds-form-control-wrapper--size-large .eds-form-control,
956
+ .eds-form-control-wrapper--size-large .eds-form-control__append,
957
+ .eds-form-control-wrapper--size-large .eds-form-control__prepend {
958
+ font-size: 1.5rem;
959
+ }
960
+ .eds-form-control-wrapper--success {
961
+ border-color: var(--components-form-baseform-standard-border-success);
962
+ }
963
+ .eds-form-control-wrapper--success[focus-within] {
964
+ border-color: var(--components-form-baseform-standard-border-success);
965
+ }
966
+ .eds-form-control-wrapper--success:focus-within {
967
+ border-color: var(--components-form-baseform-standard-border-success);
968
+ }
969
+ .eds-contrast .eds-form-control-wrapper--success {
970
+ border-color: var(--components-form-baseform-standard-border-success);
971
+ }
972
+ .eds-contrast .eds-form-control-wrapper--success[focus-within] {
973
+ border-color: var(--components-form-baseform-contrast-border-success);
974
+ }
975
+ .eds-contrast .eds-form-control-wrapper--success:focus-within {
976
+ border-color: var(--components-form-baseform-contrast-border-success);
977
+ }
978
+ .eds-form-control-wrapper--error, .eds-form-control-wrapper--negative {
979
+ border-color: var(--components-form-baseform-standard-border-negative);
980
+ }
981
+ .eds-form-control-wrapper--error[focus-within], .eds-form-control-wrapper--negative[focus-within] {
982
+ border-color: var(--components-form-baseform-standard-border-negative);
983
+ }
984
+ .eds-form-control-wrapper--error:focus-within, .eds-form-control-wrapper--negative:focus-within {
985
+ border-color: var(--components-form-baseform-standard-border-negative);
986
+ }
987
+ .eds-contrast .eds-form-control-wrapper--error, .eds-contrast .eds-form-control-wrapper--negative {
988
+ border-color: var(--components-form-baseform-contrast-border-negative);
989
+ }
990
+ .eds-contrast .eds-form-control-wrapper--error[focus-within], .eds-contrast .eds-form-control-wrapper--negative[focus-within] {
991
+ border-color: var(--components-form-baseform-contrast-border-negative);
992
+ }
993
+ .eds-contrast .eds-form-control-wrapper--error:focus-within, .eds-contrast .eds-form-control-wrapper--negative:focus-within {
994
+ border-color: var(--components-form-baseform-contrast-border-negative);
995
+ }
996
+ .eds-contrast .eds-form-control .eds-tooltip {
997
+ background: var(--components-tooltip-tooltip-standard-fill);
998
+ color: var(--components-tooltip-tooltip-standard-text);
999
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
1000
+ }
1001
+ .eds-form-control .eds-tooltip::after {
1002
+ background: var(--components-tooltip-tooltip-standard-fill);
1003
+ }
1004
+
1005
+ .eds-form-control {
1006
+ display: block;
1007
+ -webkit-appearance: none;
1008
+ -moz-appearance: none;
1009
+ appearance: none;
1010
+ width: 100%;
1011
+ height: 100%;
1012
+ padding: 20px 0rem 0.25rem;
1013
+ font-family: inherit;
1014
+ font-size: 1rem;
1015
+ line-height: 1rem;
1016
+ border: 0;
1017
+ color: var(--components-form-baseform-standard-text-content);
1018
+ background-color: transparent;
1019
+ }
1020
+ .eds-form-control::-moz-placeholder {
1021
+ opacity: 0;
1022
+ -moz-transition: opacity 0.2s ease-in-out;
1023
+ transition: opacity 0.2s ease-in-out;
1024
+ }
1025
+ .eds-form-control::placeholder {
1026
+ opacity: 0;
1027
+ transition: opacity 0.2s ease-in-out;
1028
+ }
1029
+ .eds-form-control:focus {
1030
+ outline: none;
1031
+ }
1032
+ .eds-form-control:focus::-moz-placeholder {
1033
+ opacity: 1;
1034
+ }
1035
+ .eds-form-control:focus::placeholder {
1036
+ opacity: 1;
1037
+ }
1038
+ .eds-form-control__prepend, .eds-form-control__append {
1039
+ position: relative;
1040
+ line-height: inherit;
1041
+ }
1042
+ .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
1043
+ all: unset;
1044
+ position: absolute;
1045
+ display: flex;
1046
+ align-items: center;
1047
+ justify-content: center;
1048
+ height: 1.5rem;
1049
+ width: 1.5rem;
1050
+ right: -2rem;
1051
+ border-radius: 100%;
1052
+ color: var(--primary-text-color);
1053
+ cursor: pointer;
1054
+ }
1055
+ .eds-form-control__prepend {
1056
+ margin-right: 0.75rem;
1057
+ margin-left: 0;
1058
+ }
1059
+ .eds-form-control__append {
1060
+ margin-right: 0;
1061
+ margin-left: 0.75rem;
1062
+ }
1063
+ /* DO NOT CHANGE!*/
1064
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1065
1065
  .eds-textfield__clear-button {
1066
1066
  background: none;
1067
1067
  border: none;
@@ -1104,17 +1104,6 @@ input:disabled + .eds-input-panel__container {
1104
1104
  }
1105
1105
  /* DO NOT CHANGE!*/
1106
1106
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1107
- .eds-segmented-control {
1108
- margin-top: 0.25rem;
1109
- display: flex;
1110
- background: var(--components-form-segmentedcontrol-standard-background);
1111
- border-radius: 0.5rem;
1112
- }
1113
- .eds-contrast .eds-segmented-control {
1114
- background: var(--components-form-segmentedcontrol-contrast-background);
1115
- }
1116
- /* DO NOT CHANGE!*/
1117
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1118
1107
  .eds-segmented-choice {
1119
1108
  display: block;
1120
1109
  flex: 1 1 0px;
@@ -1197,6 +1186,17 @@ input:disabled + .eds-input-panel__container {
1197
1186
  }
1198
1187
  /* DO NOT CHANGE!*/
1199
1188
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1189
+ .eds-segmented-control {
1190
+ margin-top: 0.25rem;
1191
+ display: flex;
1192
+ background: var(--components-form-segmentedcontrol-standard-background);
1193
+ border-radius: 0.5rem;
1194
+ }
1195
+ .eds-contrast .eds-segmented-control {
1196
+ background: var(--components-form-segmentedcontrol-contrast-background);
1197
+ }
1198
+ /* DO NOT CHANGE!*/
1199
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1200
1200
  /* DO NOT CHANGE!*/
1201
1201
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
1202
1202
  /* DO NOT CHANGE!*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/form",
3
- "version": "8.1.7",
3
+ "version": "8.1.8",
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": "^7.5.0",
31
31
  "@entur/tokens": "^3.17.3",
32
- "@entur/tooltip": "^5.1.3",
32
+ "@entur/tooltip": "^5.1.4",
33
33
  "@entur/typography": "^1.8.49",
34
34
  "@entur/utils": "^0.12.1",
35
35
  "classnames": "^2.3.1"
36
36
  },
37
- "gitHead": "7b67c7eded2ea9495ba4e21a9bef33c1a82d4a43"
37
+ "gitHead": "5c9836f2bcab799e31cc52b6fe72c6e198947a71"
38
38
  }