@entur/form 7.1.8 → 7.1.9

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 +363 -363
  2. package/package.json +5 -5
package/dist/styles.css CHANGED
@@ -1,190 +1,5 @@
1
1
  /* DO NOT CHANGE!*/
2
2
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
- .eds-form-control-wrapper {
4
- align-items: center;
5
- background-color: var(--components-form-baseform-standard-fill-default);
6
- border-radius: 0.25rem;
7
- border: 0.125rem solid var(--components-form-baseform-standard-border-default);
8
- box-shadow: 0 0 0 transparent;
9
- color: var(--components-form-baseform-standard-text-content);
10
- display: flex;
11
- position: relative;
12
- width: 100%;
13
- min-height: 3rem;
14
- transition: border-color 0.1s ease-in-out;
15
- }
16
- .eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
17
- border-color: var(--components-form-baseform-standard-border-interactive);
18
- }
19
- .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
20
- border-color: var(--components-form-baseform-standard-border-interactive);
21
- }
22
- .eds-contrast .eds-form-control-wrapper:hover {
23
- border-color: var(--components-form-baseform-contrast-border-interactive);
24
- }
25
- .eds-form-control-wrapper[focus-within] {
26
- outline: 1px solid var(--components-form-baseform-standard-border-interactive);
27
- }
28
- .eds-form-control-wrapper:focus-within {
29
- outline: 1px solid var(--components-form-baseform-standard-border-interactive);
30
- }
31
- .eds-contrast .eds-form-control-wrapper[focus-within] {
32
- outline: var(--components-form-baseform-contrast-border-interactive);
33
- }
34
- .eds-contrast .eds-form-control-wrapper:focus-within {
35
- outline: var(--components-form-baseform-contrast-border-interactive);
36
- }
37
- .eds-form-control-wrapper ::-moz-placeholder {
38
- color: var(--components-form-baseform-standard-text-label);
39
- }
40
- .eds-form-control-wrapper ::placeholder {
41
- color: var(--components-form-baseform-standard-text-label);
42
- }
43
- .eds-form-control-wrapper--disabled {
44
- border-color: transparent;
45
- background-color: var(--components-form-baseform-standard-fill-disabled);
46
- pointer-events: none;
47
- color: var(--components-form-baseform-standard-text-disabled);
48
- }
49
- .eds-form-control-wrapper--disabled .eds-input-group__label {
50
- color: var(--components-form-baseform-standard-text-disabled);
51
- }
52
- .eds-contrast .eds-form-control-wrapper--disabled {
53
- border-color: transparent;
54
- background-color: var(--components-form-baseform-contrast-fill-disabled);
55
- color: var(--components-form-baseform-contrast-text-disabled);
56
- }
57
- .eds-contrast .eds-form-control-wrapper--disabled .eds-input-group__label {
58
- color: var(--components-form-baseform-contrast-text-disabled);
59
- }
60
- .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
61
- display: none;
62
- }
63
- .eds-form-control-wrapper--readonly {
64
- border-color: transparent;
65
- pointer-events: none;
66
- cursor: default;
67
- background: var(--components-form-baseform-standard-fill-readonly);
68
- border: var(--components-form-baseform-standard-fill-readonly);
69
- }
70
- .eds-contrast .eds-form-control-wrapper--readonly {
71
- background: var(--components-form-baseform-contrast-fill-readonly);
72
- color: var(--components-form-baseform-contrast-text-description);
73
- border: var(--components-form-baseform-contrast-fill-readonly);
74
- }
75
- .eds-contrast .eds-form-control-wrapper--readonly .eds-input-group__label {
76
- color: var(--components-form-baseform-contrast-text-description);
77
- }
78
- .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
79
- display: none;
80
- }
81
- .eds-form-control-wrapper--size-medium .eds-form-control,
82
- .eds-form-control-wrapper--size-medium .eds-form-control__append,
83
- .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
84
- font-size: 1rem;
85
- line-height: 1rem;
86
- }
87
- .eds-form-control-wrapper--size-large {
88
- min-height: 4rem;
89
- padding: 0 0.5rem;
90
- }
91
- .eds-form-control-wrapper--size-large::before, .eds-form-control-wrapper--size-large::after {
92
- border-width: 0.25rem;
93
- }
94
- .eds-form-control-wrapper--size-large .eds-form-control,
95
- .eds-form-control-wrapper--size-large .eds-form-control__append,
96
- .eds-form-control-wrapper--size-large .eds-form-control__prepend {
97
- font-size: 1.5rem;
98
- line-height: 2.25rem;
99
- }
100
- .eds-form-control-wrapper--success {
101
- border-color: var(--components-form-baseform-standard-border-success);
102
- }
103
- .eds-form-control-wrapper--success[focus-within] {
104
- border-color: var(--components-form-baseform-standard-border-success);
105
- }
106
- .eds-form-control-wrapper--success:focus-within {
107
- border-color: var(--components-form-baseform-standard-border-success);
108
- }
109
- .eds-contrast .eds-form-control-wrapper--success {
110
- border-color: var(--components-form-baseform-standard-border-success);
111
- }
112
- .eds-contrast .eds-form-control-wrapper--success[focus-within] {
113
- border-color: var(--components-form-baseform-contrast-border-success);
114
- }
115
- .eds-contrast .eds-form-control-wrapper--success:focus-within {
116
- border-color: var(--components-form-baseform-contrast-border-success);
117
- }
118
- .eds-form-control-wrapper--error, .eds-form-control-wrapper--negative {
119
- border-color: var(--components-form-baseform-standard-border-negative);
120
- }
121
- .eds-form-control-wrapper--error[focus-within], .eds-form-control-wrapper--negative[focus-within] {
122
- border-color: var(--components-form-baseform-standard-border-negative);
123
- }
124
- .eds-form-control-wrapper--error:focus-within, .eds-form-control-wrapper--negative:focus-within {
125
- border-color: var(--components-form-baseform-standard-border-negative);
126
- }
127
- .eds-contrast .eds-form-control-wrapper--error, .eds-contrast .eds-form-control-wrapper--negative {
128
- border-color: var(--components-form-baseform-contrast-border-negative);
129
- }
130
- .eds-contrast .eds-form-control-wrapper--error[focus-within], .eds-contrast .eds-form-control-wrapper--negative[focus-within] {
131
- border-color: var(--components-form-baseform-contrast-border-negative);
132
- }
133
- .eds-contrast .eds-form-control-wrapper--error:focus-within, .eds-contrast .eds-form-control-wrapper--negative:focus-within {
134
- border-color: var(--components-form-baseform-contrast-border-negative);
135
- }
136
-
137
- .eds-form-control {
138
- -webkit-appearance: none;
139
- -moz-appearance: none;
140
- appearance: none;
141
- background-color: transparent;
142
- border: 0;
143
- color: var(--components-form-baseform-standard-text-content);
144
- display: block;
145
- font-family: inherit;
146
- line-height: 1rem;
147
- font-size: 1rem;
148
- padding: 20px 1rem 0.25rem;
149
- width: 100%;
150
- }
151
- .eds-form-control::-moz-placeholder {
152
- opacity: 0;
153
- -moz-transition: opacity 0.2s ease-in-out;
154
- transition: opacity 0.2s ease-in-out;
155
- }
156
- .eds-form-control::placeholder {
157
- opacity: 0;
158
- transition: opacity 0.2s ease-in-out;
159
- }
160
- .eds-form-control:focus {
161
- outline: none;
162
- }
163
- .eds-form-control:focus::-moz-placeholder {
164
- opacity: 1;
165
- }
166
- .eds-form-control:focus::placeholder {
167
- opacity: 1;
168
- }
169
- .eds-form-control__prepend, .eds-form-control__append {
170
- position: relative;
171
- margin: 0 1rem;
172
- line-height: inherit;
173
- }
174
- .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
175
- position: static;
176
- }
177
- .eds-form-control__prepend svg, .eds-form-control__append svg {
178
- top: 0.125rem;
179
- }
180
- .eds-form-control__prepend {
181
- margin-right: 0;
182
- }
183
- .eds-form-control__append {
184
- margin-left: 0;
185
- }
186
- /* DO NOT CHANGE!*/
187
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
188
3
  .eds-checkbox__container {
189
4
  display: flex;
190
5
  align-items: center;
@@ -340,93 +155,6 @@
340
155
  }
341
156
  /* DO NOT CHANGE!*/
342
157
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
343
- .eds-form-component--radio__container {
344
- display: flex;
345
- justify-content: center;
346
- align-items: center;
347
- position: relative;
348
- cursor: pointer;
349
- height: 2rem;
350
- width: -moz-fit-content;
351
- width: fit-content;
352
- -webkit-user-select: none;
353
- -moz-user-select: none;
354
- user-select: none;
355
- }
356
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
357
- background-color: var(--components-form-radio-standard-fill-hover);
358
- }
359
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
360
- background-color: var(--components-form-radio-contrast-fill-hover);
361
- }
362
- .eds-form-component--radio__container input {
363
- position: absolute;
364
- opacity: 0;
365
- cursor: pointer;
366
- height: 0;
367
- width: 0;
368
- }
369
- .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
370
- height: 0.625rem;
371
- width: 0.625rem;
372
- }
373
- .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
374
- outline: 2px solid #181c56;
375
- outline-color: var(--basecolors-stroke-focus-standard);
376
- outline-offset: 0.125rem;
377
- }
378
- .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
379
- outline-color: var(--basecolors-stroke-focus-contrast);
380
- }
381
- .eds-form-component--radio__container .eds-form-component--radio__radio {
382
- position: relative;
383
- height: 1.25rem;
384
- width: 1.25rem;
385
- margin-right: 1rem;
386
- background-color: var(--components-form-radio-standard-fill-default);
387
- border: 0.125rem solid var(--components-form-radio-standard-border);
388
- border-radius: 50%;
389
- display: flex;
390
- align-items: center;
391
- justify-content: center;
392
- }
393
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
394
- background-color: var(--components-form-radio-contrast-fill-default);
395
- border-color: var(--components-form-radio-contrast-border);
396
- }
397
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
398
- background: var(--components-form-baseform-contrast-fill-disabled);
399
- border-color: var(--components-form-baseform-contrast-text-disabled);
400
- cursor: not-allowed;
401
- }
402
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
403
- border-color: var(--components-form-baseform-contrast-text-disabled);
404
- }
405
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
406
- background: var(--components-form-baseform-contrast-fill-disabled);
407
- border-color: var(--components-form-baseform-contrast-text-disabled);
408
- }
409
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
410
- color: var(--components-form-baseform-contrast-text-disabled);
411
- }
412
- .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
413
- display: block;
414
- width: 0;
415
- height: 0;
416
- border-radius: 50%;
417
- background-color: var(--components-form-radio-standard-fill-selected);
418
- transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
419
- }
420
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
421
- background-color: var(--components-form-radio-contrast-icon);
422
- }
423
- .eds-fieldset {
424
- margin: 0;
425
- padding: 0;
426
- border: 0;
427
- }
428
- /* DO NOT CHANGE!*/
429
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
430
158
  .eds-input-group {
431
159
  color: inherit;
432
160
  display: block;
@@ -513,119 +241,313 @@
513
241
  padding: 0;
514
242
  margin-left: 1rem;
515
243
  }
516
-
517
- .eds-form-control-wrapper:focus-within .eds-input-group__label {
518
- top: 0.375rem;
519
- font-size: 0.75rem;
520
- line-height: 0.75rem;
521
- height: 10px;
522
- padding: 0;
523
- margin-left: 1rem;
244
+
245
+ .eds-form-control-wrapper:focus-within .eds-input-group__label {
246
+ top: 0.375rem;
247
+ font-size: 0.75rem;
248
+ line-height: 0.75rem;
249
+ height: 10px;
250
+ padding: 0;
251
+ margin-left: 1rem;
252
+ }
253
+ .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
254
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
255
+ background: var(--textarea-label-background);
256
+ width: calc(100% - 1rem - 1rem - 4px);
257
+ }
258
+ .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
259
+ box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
260
+ background: var(--textarea-label-background);
261
+ width: calc(100% - 1rem - 1rem - 4px);
262
+ }
263
+ .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
264
+ top: 0.5rem;
265
+ font-size: 0.875rem;
266
+ line-height: 1rem;
267
+ padding: 0;
268
+ margin-left: 1rem;
269
+ }
270
+ .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
271
+ top: 0.5rem;
272
+ font-size: 0.875rem;
273
+ line-height: 1rem;
274
+ padding: 0;
275
+ margin-left: 1rem;
276
+ }
277
+ .eds-contrast .eds-form-control-wrapper .eds-tooltip {
278
+ background: var(--components-tooltip-tooltip-standard-fill);
279
+ color: var(--components-tooltip-tooltip-standard-text);
280
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
281
+ }
282
+ .eds-form-control-wrapper .eds-tooltip::after {
283
+ background: var(--components-tooltip-tooltip-standard-fill);
284
+ }
285
+ /* DO NOT CHANGE!*/
286
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
287
+ .eds-form-control-wrapper {
288
+ align-items: center;
289
+ background-color: var(--components-form-baseform-standard-fill-default);
290
+ border-radius: 0.25rem;
291
+ border: 0.125rem solid var(--components-form-baseform-standard-border-default);
292
+ box-shadow: 0 0 0 transparent;
293
+ color: var(--components-form-baseform-standard-text-content);
294
+ display: flex;
295
+ position: relative;
296
+ width: 100%;
297
+ min-height: 3rem;
298
+ transition: border-color 0.1s ease-in-out;
299
+ }
300
+ .eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
301
+ border-color: var(--components-form-baseform-standard-border-interactive);
302
+ }
303
+ .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
304
+ border-color: var(--components-form-baseform-standard-border-interactive);
305
+ }
306
+ .eds-contrast .eds-form-control-wrapper:hover {
307
+ border-color: var(--components-form-baseform-contrast-border-interactive);
308
+ }
309
+ .eds-form-control-wrapper[focus-within] {
310
+ outline: 1px solid var(--components-form-baseform-standard-border-interactive);
311
+ }
312
+ .eds-form-control-wrapper:focus-within {
313
+ outline: 1px solid var(--components-form-baseform-standard-border-interactive);
314
+ }
315
+ .eds-contrast .eds-form-control-wrapper[focus-within] {
316
+ outline: var(--components-form-baseform-contrast-border-interactive);
317
+ }
318
+ .eds-contrast .eds-form-control-wrapper:focus-within {
319
+ outline: var(--components-form-baseform-contrast-border-interactive);
320
+ }
321
+ .eds-form-control-wrapper ::-moz-placeholder {
322
+ color: var(--components-form-baseform-standard-text-label);
323
+ }
324
+ .eds-form-control-wrapper ::placeholder {
325
+ color: var(--components-form-baseform-standard-text-label);
326
+ }
327
+ .eds-form-control-wrapper--disabled {
328
+ border-color: transparent;
329
+ background-color: var(--components-form-baseform-standard-fill-disabled);
330
+ pointer-events: none;
331
+ color: var(--components-form-baseform-standard-text-disabled);
332
+ }
333
+ .eds-form-control-wrapper--disabled .eds-input-group__label {
334
+ color: var(--components-form-baseform-standard-text-disabled);
335
+ }
336
+ .eds-contrast .eds-form-control-wrapper--disabled {
337
+ border-color: transparent;
338
+ background-color: var(--components-form-baseform-contrast-fill-disabled);
339
+ color: var(--components-form-baseform-contrast-text-disabled);
340
+ }
341
+ .eds-contrast .eds-form-control-wrapper--disabled .eds-input-group__label {
342
+ color: var(--components-form-baseform-contrast-text-disabled);
343
+ }
344
+ .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
345
+ display: none;
346
+ }
347
+ .eds-form-control-wrapper--readonly {
348
+ border-color: transparent;
349
+ pointer-events: none;
350
+ cursor: default;
351
+ background: var(--components-form-baseform-standard-fill-readonly);
352
+ border: var(--components-form-baseform-standard-fill-readonly);
353
+ }
354
+ .eds-contrast .eds-form-control-wrapper--readonly {
355
+ background: var(--components-form-baseform-contrast-fill-readonly);
356
+ color: var(--components-form-baseform-contrast-text-description);
357
+ border: var(--components-form-baseform-contrast-fill-readonly);
358
+ }
359
+ .eds-contrast .eds-form-control-wrapper--readonly .eds-input-group__label {
360
+ color: var(--components-form-baseform-contrast-text-description);
361
+ }
362
+ .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
363
+ display: none;
364
+ }
365
+ .eds-form-control-wrapper--size-medium .eds-form-control,
366
+ .eds-form-control-wrapper--size-medium .eds-form-control__append,
367
+ .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
368
+ font-size: 1rem;
369
+ line-height: 1rem;
370
+ }
371
+ .eds-form-control-wrapper--size-large {
372
+ min-height: 4rem;
373
+ padding: 0 0.5rem;
374
+ }
375
+ .eds-form-control-wrapper--size-large::before, .eds-form-control-wrapper--size-large::after {
376
+ border-width: 0.25rem;
377
+ }
378
+ .eds-form-control-wrapper--size-large .eds-form-control,
379
+ .eds-form-control-wrapper--size-large .eds-form-control__append,
380
+ .eds-form-control-wrapper--size-large .eds-form-control__prepend {
381
+ font-size: 1.5rem;
382
+ line-height: 2.25rem;
383
+ }
384
+ .eds-form-control-wrapper--success {
385
+ border-color: var(--components-form-baseform-standard-border-success);
386
+ }
387
+ .eds-form-control-wrapper--success[focus-within] {
388
+ border-color: var(--components-form-baseform-standard-border-success);
389
+ }
390
+ .eds-form-control-wrapper--success:focus-within {
391
+ border-color: var(--components-form-baseform-standard-border-success);
392
+ }
393
+ .eds-contrast .eds-form-control-wrapper--success {
394
+ border-color: var(--components-form-baseform-standard-border-success);
395
+ }
396
+ .eds-contrast .eds-form-control-wrapper--success[focus-within] {
397
+ border-color: var(--components-form-baseform-contrast-border-success);
398
+ }
399
+ .eds-contrast .eds-form-control-wrapper--success:focus-within {
400
+ border-color: var(--components-form-baseform-contrast-border-success);
401
+ }
402
+ .eds-form-control-wrapper--error, .eds-form-control-wrapper--negative {
403
+ border-color: var(--components-form-baseform-standard-border-negative);
404
+ }
405
+ .eds-form-control-wrapper--error[focus-within], .eds-form-control-wrapper--negative[focus-within] {
406
+ border-color: var(--components-form-baseform-standard-border-negative);
407
+ }
408
+ .eds-form-control-wrapper--error:focus-within, .eds-form-control-wrapper--negative:focus-within {
409
+ border-color: var(--components-form-baseform-standard-border-negative);
410
+ }
411
+ .eds-contrast .eds-form-control-wrapper--error, .eds-contrast .eds-form-control-wrapper--negative {
412
+ border-color: var(--components-form-baseform-contrast-border-negative);
413
+ }
414
+ .eds-contrast .eds-form-control-wrapper--error[focus-within], .eds-contrast .eds-form-control-wrapper--negative[focus-within] {
415
+ border-color: var(--components-form-baseform-contrast-border-negative);
416
+ }
417
+ .eds-contrast .eds-form-control-wrapper--error:focus-within, .eds-contrast .eds-form-control-wrapper--negative:focus-within {
418
+ border-color: var(--components-form-baseform-contrast-border-negative);
419
+ }
420
+
421
+ .eds-form-control {
422
+ -webkit-appearance: none;
423
+ -moz-appearance: none;
424
+ appearance: none;
425
+ background-color: transparent;
426
+ border: 0;
427
+ color: var(--components-form-baseform-standard-text-content);
428
+ display: block;
429
+ font-family: inherit;
430
+ line-height: 1rem;
431
+ font-size: 1rem;
432
+ padding: 20px 1rem 0.25rem;
433
+ width: 100%;
434
+ }
435
+ .eds-form-control::-moz-placeholder {
436
+ opacity: 0;
437
+ -moz-transition: opacity 0.2s ease-in-out;
438
+ transition: opacity 0.2s ease-in-out;
439
+ }
440
+ .eds-form-control::placeholder {
441
+ opacity: 0;
442
+ transition: opacity 0.2s ease-in-out;
443
+ }
444
+ .eds-form-control:focus {
445
+ outline: none;
524
446
  }
525
- .eds-textarea__label .eds-form-control-wrapper[focus-within] .eds-input-group__label {
526
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
527
- background: var(--textarea-label-background);
528
- width: calc(100% - 1rem - 1rem - 4px);
447
+ .eds-form-control:focus::-moz-placeholder {
448
+ opacity: 1;
529
449
  }
530
- .eds-textarea__label .eds-form-control-wrapper:focus-within .eds-input-group__label {
531
- box-shadow: 0px -2px 0px 4px var(--textarea-label-background);
532
- background: var(--textarea-label-background);
533
- width: calc(100% - 1rem - 1rem - 4px);
450
+ .eds-form-control:focus::placeholder {
451
+ opacity: 1;
534
452
  }
535
- .eds-form-control-wrapper--size-large[focus-within] .eds-input-group__label {
536
- top: 0.5rem;
537
- font-size: 0.875rem;
538
- line-height: 1rem;
539
- padding: 0;
540
- margin-left: 1rem;
453
+ .eds-form-control__prepend, .eds-form-control__append {
454
+ position: relative;
455
+ margin: 0 1rem;
456
+ line-height: inherit;
541
457
  }
542
- .eds-form-control-wrapper--size-large:focus-within .eds-input-group__label {
543
- top: 0.5rem;
544
- font-size: 0.875rem;
545
- line-height: 1rem;
546
- padding: 0;
547
- margin-left: 1rem;
458
+ .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
459
+ position: static;
548
460
  }
549
- .eds-contrast .eds-form-control-wrapper .eds-tooltip {
550
- background: var(--components-tooltip-tooltip-standard-fill);
551
- color: var(--components-tooltip-tooltip-standard-text);
552
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
461
+ .eds-form-control__prepend svg, .eds-form-control__append svg {
462
+ top: 0.125rem;
553
463
  }
554
- .eds-form-control-wrapper .eds-tooltip::after {
555
- background: var(--components-tooltip-tooltip-standard-fill);
464
+ .eds-form-control__prepend {
465
+ margin-right: 0;
466
+ }
467
+ .eds-form-control__append {
468
+ margin-left: 0;
556
469
  }
557
470
  /* DO NOT CHANGE!*/
558
471
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
559
- .eds-feedback-text {
472
+ .eds-form-component--radio__container {
560
473
  display: flex;
474
+ justify-content: center;
561
475
  align-items: center;
562
- margin-top: 0.25rem;
563
- }
564
- .eds-feedback-text--info, .eds-feedback-text--information {
565
- padding-left: calc(1rem + 0.125rem);
566
- }
567
- .eds-feedback-text__text {
568
- color: var(--components-form-feedbacktext-information-standard-text);
569
- }
570
- .eds-contrast .eds-feedback-text__text {
571
- color: var(--components-form-feedbacktext-information-contrast-text);
572
- }
573
-
574
- .eds-feedback-text__icon {
575
- font-size: 1.5rem;
576
- min-height: 1.5rem;
577
- min-width: 1.5rem;
578
- padding-right: 0.5rem;
579
476
  position: relative;
580
- top: -0.1rem;
581
- }
582
- .eds-feedback-text__icon--success {
583
- color: var(--components-form-feedbacktext-success-standard-icon-fill);
584
- }
585
- .eds-feedback-text__icon--success circle {
586
- fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
477
+ cursor: pointer;
478
+ height: 2rem;
479
+ width: -moz-fit-content;
480
+ width: fit-content;
481
+ -webkit-user-select: none;
482
+ -moz-user-select: none;
483
+ user-select: none;
587
484
  }
588
- .eds-contrast .eds-feedback-text__icon--success {
589
- color: var(--components-form-feedbacktext-success-contrast-icon-fill);
485
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
486
+ background-color: var(--components-form-radio-standard-fill-hover);
590
487
  }
591
- .eds-contrast .eds-feedback-text__icon--success circle {
592
- fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
488
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
489
+ background-color: var(--components-form-radio-contrast-fill-hover);
593
490
  }
594
- .eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
595
- color: var(--components-form-feedbacktext-negative-standard-icon-fill);
491
+ .eds-form-component--radio__container input {
492
+ position: absolute;
493
+ opacity: 0;
494
+ cursor: pointer;
495
+ height: 0;
496
+ width: 0;
596
497
  }
597
- .eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
598
- fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
498
+ .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
499
+ height: 0.625rem;
500
+ width: 0.625rem;
599
501
  }
600
- .eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
601
- color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
502
+ .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
503
+ outline: 2px solid #181c56;
504
+ outline-color: var(--basecolors-stroke-focus-standard);
505
+ outline-offset: 0.125rem;
602
506
  }
603
- .eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
604
- fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
507
+ .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
508
+ outline-color: var(--basecolors-stroke-focus-contrast);
605
509
  }
606
- .eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
607
- color: var(--components-form-feedbacktext-information-standard-icon-fill);
510
+ .eds-form-component--radio__container .eds-form-component--radio__radio {
511
+ position: relative;
512
+ height: 1.25rem;
513
+ width: 1.25rem;
514
+ margin-right: 1rem;
515
+ background-color: var(--components-form-radio-standard-fill-default);
516
+ border: 0.125rem solid var(--components-form-radio-standard-border);
517
+ border-radius: 50%;
518
+ display: flex;
519
+ align-items: center;
520
+ justify-content: center;
608
521
  }
609
- .eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
610
- fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
522
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
523
+ background-color: var(--components-form-radio-contrast-fill-default);
524
+ border-color: var(--components-form-radio-contrast-border);
611
525
  }
612
- .eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
613
- color: var(--components-form-feedbacktext-information-contrast-icon-fill);
526
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
527
+ background: var(--components-form-baseform-contrast-fill-disabled);
528
+ border-color: var(--components-form-baseform-contrast-text-disabled);
529
+ cursor: not-allowed;
614
530
  }
615
- .eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
616
- fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
531
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
532
+ border-color: var(--components-form-baseform-contrast-text-disabled);
617
533
  }
618
- .eds-feedback-text__icon--warning {
619
- color: var(--components-form-feedbacktext-warning-standard-icon-fill);
534
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
535
+ background: var(--components-form-baseform-contrast-fill-disabled);
536
+ border-color: var(--components-form-baseform-contrast-text-disabled);
620
537
  }
621
- .eds-feedback-text__icon--warning .svg-exclamation {
622
- fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
538
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
539
+ color: var(--components-form-baseform-contrast-text-disabled);
623
540
  }
624
- .eds-contrast .eds-feedback-text__icon--warning {
625
- color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
541
+ .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
542
+ display: block;
543
+ width: 0;
544
+ height: 0;
545
+ border-radius: 50%;
546
+ background-color: var(--components-form-radio-standard-fill-selected);
547
+ transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
626
548
  }
627
- .eds-contrast .eds-feedback-text__icon--warning circle {
628
- fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
549
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
550
+ background-color: var(--components-form-radio-contrast-icon);
629
551
  }
630
552
  /* DO NOT CHANGE!*/
631
553
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
@@ -748,6 +670,13 @@
748
670
  }
749
671
  /* DO NOT CHANGE!*/
750
672
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
673
+ textarea.eds-form-control.eds-textarea {
674
+ min-height: 7.75rem;
675
+ resize: vertical;
676
+ line-height: 1.5rem;
677
+ }
678
+ /* DO NOT CHANGE!*/
679
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
751
680
  .eds-input-panel[focus-within] .eds-input-panel__container {
752
681
  outline: 2px solid #181c56;
753
682
  outline-color: var(--basecolors-stroke-focus-standard);
@@ -904,10 +833,81 @@ input:disabled + .eds-input-panel__container {
904
833
  }
905
834
  /* DO NOT CHANGE!*/
906
835
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
907
- textarea.eds-form-control.eds-textarea {
908
- min-height: 7.75rem;
909
- resize: vertical;
910
- line-height: 1.5rem;
836
+ .eds-feedback-text {
837
+ display: flex;
838
+ align-items: center;
839
+ margin-top: 0.25rem;
840
+ }
841
+ .eds-feedback-text--info, .eds-feedback-text--information {
842
+ padding-left: calc(1rem + 0.125rem);
843
+ }
844
+ .eds-feedback-text__text {
845
+ color: var(--components-form-feedbacktext-information-standard-text);
846
+ }
847
+ .eds-contrast .eds-feedback-text__text {
848
+ color: var(--components-form-feedbacktext-information-contrast-text);
849
+ }
850
+
851
+ .eds-feedback-text__icon {
852
+ font-size: 1.5rem;
853
+ min-height: 1.5rem;
854
+ min-width: 1.5rem;
855
+ padding-right: 0.5rem;
856
+ position: relative;
857
+ top: -0.1rem;
858
+ }
859
+ .eds-feedback-text__icon--success {
860
+ color: var(--components-form-feedbacktext-success-standard-icon-fill);
861
+ }
862
+ .eds-feedback-text__icon--success circle {
863
+ fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
864
+ }
865
+ .eds-contrast .eds-feedback-text__icon--success {
866
+ color: var(--components-form-feedbacktext-success-contrast-icon-fill);
867
+ }
868
+ .eds-contrast .eds-feedback-text__icon--success circle {
869
+ fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
870
+ }
871
+ .eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
872
+ color: var(--components-form-feedbacktext-negative-standard-icon-fill);
873
+ }
874
+ .eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
875
+ fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
876
+ }
877
+ .eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
878
+ color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
879
+ }
880
+ .eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
881
+ fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
882
+ }
883
+ .eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
884
+ color: var(--components-form-feedbacktext-information-standard-icon-fill);
885
+ }
886
+ .eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
887
+ fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
888
+ }
889
+ .eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
890
+ color: var(--components-form-feedbacktext-information-contrast-icon-fill);
891
+ }
892
+ .eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
893
+ fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
894
+ }
895
+ .eds-feedback-text__icon--warning {
896
+ color: var(--components-form-feedbacktext-warning-standard-icon-fill);
897
+ }
898
+ .eds-feedback-text__icon--warning .svg-exclamation {
899
+ fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
900
+ }
901
+ .eds-contrast .eds-feedback-text__icon--warning {
902
+ color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
903
+ }
904
+ .eds-contrast .eds-feedback-text__icon--warning circle {
905
+ fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
906
+ }
907
+ .eds-fieldset {
908
+ margin: 0;
909
+ padding: 0;
910
+ border: 0;
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.8",
3
+ "version": "7.1.9",
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.16.2",
30
+ "@entur/icons": "^6.17.0",
31
31
  "@entur/tokens": "^3.15.0",
32
- "@entur/tooltip": "^2.7.7",
33
- "@entur/typography": "^1.8.36",
32
+ "@entur/tooltip": "^2.7.8",
33
+ "@entur/typography": "^1.8.37",
34
34
  "@entur/utils": "^0.11.1",
35
35
  "classnames": "^2.3.1"
36
36
  },
37
- "gitHead": "93e3d6a7a2abd4dd20e09b6b631591a4f1bd10d2"
37
+ "gitHead": "74491efb25596a135f38b50d15305803afe963ae"
38
38
  }