@entur/form 7.0.40 → 7.0.42

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 +376 -376
  2. package/package.json +6 -6
package/dist/styles.css CHANGED
@@ -1,5 +1,78 @@
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: var(--components-form-feedbacktext-information-standard-text);
13
+ }
14
+ .eds-contrast .eds-feedback-text__text {
15
+ color: var(--components-form-feedbacktext-information-contrast-text);
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: var(--components-form-feedbacktext-success-standard-icon-fill);
28
+ }
29
+ .eds-feedback-text__icon--success circle {
30
+ fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
31
+ }
32
+ .eds-contrast .eds-feedback-text__icon--success {
33
+ color: var(--components-form-feedbacktext-success-contrast-icon-fill);
34
+ }
35
+ .eds-contrast .eds-feedback-text__icon--success circle {
36
+ fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
37
+ }
38
+ .eds-feedback-text__icon--error {
39
+ color: var(--components-form-feedbacktext-negative-standard-icon-fill);
40
+ }
41
+ .eds-feedback-text__icon--error circle {
42
+ fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
43
+ }
44
+ .eds-contrast .eds-feedback-text__icon--error {
45
+ color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
46
+ }
47
+ .eds-contrast .eds-feedback-text__icon--error circle {
48
+ fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
49
+ }
50
+ .eds-feedback-text__icon--info {
51
+ color: var(--components-form-feedbacktext-information-standard-icon-fill);
52
+ }
53
+ .eds-feedback-text__icon--info circle {
54
+ fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
55
+ }
56
+ .eds-contrast .eds-feedback-text__icon--info {
57
+ color: var(--components-form-feedbacktext-information-contrast-icon-fill);
58
+ }
59
+ .eds-contrast .eds-feedback-text__icon--info circle {
60
+ fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
61
+ }
62
+ .eds-feedback-text__icon--warning {
63
+ color: var(--components-form-feedbacktext-warning-standard-icon-fill);
64
+ }
65
+ .eds-feedback-text__icon--warning circle {
66
+ fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
67
+ }
68
+ .eds-contrast .eds-feedback-text__icon--warning {
69
+ color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
70
+ }
71
+ .eds-contrast .eds-feedback-text__icon--warning circle {
72
+ fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
73
+ }
74
+ /* DO NOT CHANGE!*/
75
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
3
76
  .eds-checkbox__container {
4
77
  display: flex;
5
78
  align-items: center;
@@ -153,249 +226,151 @@
153
226
  stroke-dashoffset: 0;
154
227
  }
155
228
  }
229
+ .eds-fieldset {
230
+ margin: 0;
231
+ padding: 0;
232
+ border: 0;
233
+ }
156
234
  /* DO NOT CHANGE!*/
157
235
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
158
- .eds-form-control-wrapper {
159
- align-items: center;
160
- background-color: var(--components-form-baseform-standard-fill-default);
161
- border-radius: 0.25rem;
162
- border: 0.125rem solid var(--components-form-baseform-standard-border-default);
163
- box-shadow: 0 0 0 transparent;
164
- color: var(--components-form-baseform-standard-text-content);
236
+ .eds-form-component--radio__container {
165
237
  display: flex;
238
+ justify-content: center;
239
+ align-items: center;
166
240
  position: relative;
167
- width: 100%;
168
- min-height: 3rem;
169
- transition: border-color 0.1s ease-in-out;
241
+ cursor: pointer;
242
+ height: 2rem;
243
+ width: -moz-fit-content;
244
+ width: fit-content;
245
+ -webkit-user-select: none;
246
+ -moz-user-select: none;
247
+ user-select: none;
170
248
  }
171
- .eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
172
- border-color: var(--components-form-baseform-standard-border-interactive);
249
+ .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
250
+ background-color: var(--components-form-radio-standard-fill-hover);
173
251
  }
174
- .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
175
- border-color: var(--components-form-baseform-standard-border-interactive);
252
+ .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
253
+ background-color: var(--components-form-radio-contrast-fill-hover);
176
254
  }
177
- .eds-contrast .eds-form-control-wrapper:hover {
178
- border-color: var(--components-form-baseform-contrast-border-interactive);
255
+ .eds-form-component--radio__container input {
256
+ position: absolute;
257
+ opacity: 0;
258
+ cursor: pointer;
259
+ height: 0;
260
+ width: 0;
179
261
  }
180
- .eds-form-control-wrapper[focus-within] {
181
- outline: 1px solid var(--components-form-baseform-standard-border-interactive);
262
+ .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
263
+ height: 0.625rem;
264
+ width: 0.625rem;
182
265
  }
183
- .eds-form-control-wrapper:focus-within {
184
- outline: 1px solid var(--components-form-baseform-standard-border-interactive);
266
+ .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
267
+ outline: 2px solid #181c56;
268
+ outline-color: var(--basecolors-stroke-focus-standard);
269
+ outline-offset: 0.125rem;
185
270
  }
186
- .eds-contrast .eds-form-control-wrapper[focus-within] {
187
- outline: var(--components-form-baseform-contrast-border-interactive);
271
+ .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
272
+ outline-color: var(--basecolors-stroke-focus-contrast);
188
273
  }
189
- .eds-contrast .eds-form-control-wrapper:focus-within {
190
- outline: var(--components-form-baseform-contrast-border-interactive);
274
+ .eds-form-component--radio__container .eds-form-component--radio__radio {
275
+ position: relative;
276
+ height: 1.25rem;
277
+ width: 1.25rem;
278
+ margin-right: 1rem;
279
+ background-color: var(--components-form-radio-standard-fill-default);
280
+ border: 0.125rem solid var(--components-form-radio-standard-border);
281
+ border-radius: 50%;
282
+ display: flex;
283
+ align-items: center;
284
+ justify-content: center;
191
285
  }
192
- .eds-form-control-wrapper ::-moz-placeholder {
193
- color: var(--components-form-baseform-standard-text-label);
286
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
287
+ background-color: var(--components-form-radio-contrast-fill-default);
288
+ border-color: var(--components-form-radio-contrast-border);
194
289
  }
195
- .eds-form-control-wrapper ::placeholder {
196
- color: var(--components-form-baseform-standard-text-label);
290
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
291
+ background: var(--components-form-baseform-contrast-fill-disabled);
292
+ border-color: var(--components-form-baseform-contrast-text-disabled);
293
+ cursor: not-allowed;
197
294
  }
198
- .eds-form-control-wrapper--disabled {
199
- border-color: transparent;
200
- background-color: var(--components-form-baseform-standard-fill-disabled);
201
- pointer-events: none;
202
- color: var(--components-form-baseform-standard-text-disabled);
295
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
296
+ border-color: var(--components-form-baseform-contrast-text-disabled);
203
297
  }
204
- .eds-form-control-wrapper--disabled .eds-input-group__label {
205
- color: var(--components-form-baseform-standard-text-disabled);
298
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
299
+ background: var(--components-form-baseform-contrast-fill-disabled);
300
+ border-color: var(--components-form-baseform-contrast-text-disabled);
206
301
  }
207
- .eds-contrast .eds-form-control-wrapper--disabled {
208
- border-color: transparent;
209
- background-color: var(--components-form-baseform-contrast-fill-disabled);
302
+ .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
210
303
  color: var(--components-form-baseform-contrast-text-disabled);
211
304
  }
212
- .eds-contrast .eds-form-control-wrapper--disabled .eds-input-group__label {
213
- color: var(--components-form-baseform-contrast-text-disabled);
305
+ .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
306
+ display: block;
307
+ width: 0;
308
+ height: 0;
309
+ border-radius: 50%;
310
+ background-color: var(--components-form-radio-standard-fill-selected);
311
+ transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
214
312
  }
215
- .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
216
- display: none;
313
+ .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
314
+ background-color: var(--components-form-radio-contrast-icon);
217
315
  }
218
- .eds-form-control-wrapper--readonly {
219
- border-color: transparent;
316
+ /* DO NOT CHANGE!*/
317
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
318
+ .eds-switch {
319
+ cursor: pointer;
320
+ -webkit-user-select: none;
321
+ -moz-user-select: none;
322
+ user-select: none;
323
+ padding: 0.5rem 0;
324
+ width: -moz-fit-content;
325
+ width: fit-content;
326
+ }
327
+ .eds-switch input {
328
+ opacity: 0;
220
329
  pointer-events: none;
221
- cursor: default;
222
- background: var(--components-form-baseform-standard-fill-readonly);
223
- border: var(--components-form-baseform-standard-fill-readonly);
330
+ position: absolute;
224
331
  }
225
- .eds-contrast .eds-form-control-wrapper--readonly {
226
- background: var(--components-form-baseform-contrast-fill-readonly);
227
- color: var(--components-form-baseform-contrast-text-description);
228
- border: var(--components-form-baseform-contrast-fill-readonly);
332
+ .eds-switch--right {
333
+ display: flex;
334
+ flex-direction: row;
335
+ align-items: center;
229
336
  }
230
- .eds-contrast .eds-form-control-wrapper--readonly .eds-input-group__label {
231
- color: var(--components-form-baseform-contrast-text-description);
337
+ .eds-switch--bottom {
338
+ display: flex;
339
+ flex-direction: column;
340
+ align-items: center;
232
341
  }
233
- .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
234
- display: none;
342
+ .eds-switch__circle {
343
+ border-radius: 50%;
344
+ height: 1.25rem;
345
+ width: 1.25rem;
346
+ content: "";
347
+ display: flex;
348
+ align-items: center;
349
+ justify-content: center;
350
+ transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
351
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
352
+ background-color: var(--components-form-switch-standard-switch);
353
+ top: 0.125rem;
354
+ left: 0.125rem;
355
+ position: relative;
235
356
  }
236
- .eds-form-control-wrapper--size-medium .eds-form-control,
237
- .eds-form-control-wrapper--size-medium .eds-form-control__append,
238
- .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
239
- font-size: 1rem;
240
- line-height: 1rem;
357
+ .eds-switch__switch--large .eds-switch__circle {
358
+ height: 1.75rem;
359
+ width: 1.75rem;
241
360
  }
242
- .eds-form-control-wrapper--size-large {
243
- min-height: 4rem;
244
- padding: 0 0.5rem;
361
+ .eds-contrast .eds-switch__circle {
362
+ box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
245
363
  }
246
- .eds-form-control-wrapper--size-large::before, .eds-form-control-wrapper--size-large::after {
247
- border-width: 0.25rem;
248
- }
249
- .eds-form-control-wrapper--size-large .eds-form-control,
250
- .eds-form-control-wrapper--size-large .eds-form-control__append,
251
- .eds-form-control-wrapper--size-large .eds-form-control__prepend {
252
- font-size: 1.5rem;
253
- line-height: 2.25rem;
254
- }
255
- .eds-form-control-wrapper--success {
256
- border-color: var(--components-form-baseform-standard-border-success);
257
- }
258
- .eds-form-control-wrapper--success[focus-within] {
259
- border-color: var(--components-form-baseform-standard-border-success);
260
- }
261
- .eds-form-control-wrapper--success:focus-within {
262
- border-color: var(--components-form-baseform-standard-border-success);
263
- }
264
- .eds-contrast .eds-form-control-wrapper--success {
265
- border-color: var(--components-form-baseform-standard-border-success);
266
- }
267
- .eds-contrast .eds-form-control-wrapper--success[focus-within] {
268
- border-color: var(--components-form-baseform-contrast-border-success);
269
- }
270
- .eds-contrast .eds-form-control-wrapper--success:focus-within {
271
- border-color: var(--components-form-baseform-contrast-border-success);
272
- }
273
- .eds-form-control-wrapper--error {
274
- border-color: var(--components-form-baseform-standard-border-negative);
275
- }
276
- .eds-form-control-wrapper--error[focus-within] {
277
- border-color: var(--components-form-baseform-standard-border-negative);
278
- }
279
- .eds-form-control-wrapper--error:focus-within {
280
- border-color: var(--components-form-baseform-standard-border-negative);
281
- }
282
- .eds-contrast .eds-form-control-wrapper--error {
283
- border-color: var(--components-form-baseform-contrast-border-negative);
284
- }
285
- .eds-contrast .eds-form-control-wrapper--error[focus-within] {
286
- border-color: var(--components-form-baseform-contrast-border-negative);
287
- }
288
- .eds-contrast .eds-form-control-wrapper--error:focus-within {
289
- border-color: var(--components-form-baseform-contrast-border-negative);
290
- }
291
-
292
- .eds-form-control {
293
- -webkit-appearance: none;
294
- -moz-appearance: none;
295
- appearance: none;
296
- background-color: transparent;
297
- border: 0;
298
- color: var(--components-form-baseform-standard-text-content);
299
- display: block;
300
- font-family: inherit;
301
- line-height: 1rem;
302
- font-size: 1rem;
303
- padding: 20px 1rem 0.25rem;
304
- width: 100%;
305
- }
306
- .eds-form-control::-moz-placeholder {
307
- opacity: 0;
308
- -moz-transition: opacity 0.2s ease-in-out;
309
- transition: opacity 0.2s ease-in-out;
310
- }
311
- .eds-form-control::placeholder {
312
- opacity: 0;
313
- transition: opacity 0.2s ease-in-out;
314
- }
315
- .eds-form-control:focus {
316
- outline: none;
317
- }
318
- .eds-form-control:focus::-moz-placeholder {
319
- opacity: 1;
320
- }
321
- .eds-form-control:focus::placeholder {
322
- opacity: 1;
323
- }
324
- .eds-form-control__prepend, .eds-form-control__append {
325
- position: relative;
326
- margin: 0 1rem;
327
- line-height: inherit;
328
- }
329
- .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
330
- position: static;
331
- }
332
- .eds-form-control__prepend svg, .eds-form-control__append svg {
333
- top: 0.125rem;
334
- }
335
- .eds-form-control__prepend {
336
- margin-right: 0;
337
- }
338
- .eds-form-control__append {
339
- margin-left: 0;
340
- }
341
- /* DO NOT CHANGE!*/
342
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
343
- .eds-switch {
344
- cursor: pointer;
345
- -webkit-user-select: none;
346
- -moz-user-select: none;
347
- user-select: none;
348
- padding: 0.5rem 0;
349
- width: -moz-fit-content;
350
- width: fit-content;
351
- }
352
- .eds-switch input {
353
- opacity: 0;
354
- pointer-events: none;
355
- position: absolute;
356
- }
357
- .eds-switch--right {
358
- display: flex;
359
- flex-direction: row;
360
- align-items: center;
361
- }
362
- .eds-switch--bottom {
363
- display: flex;
364
- flex-direction: column;
365
- align-items: center;
366
- }
367
- .eds-switch__circle {
368
- border-radius: 50%;
369
- height: 1.25rem;
370
- width: 1.25rem;
371
- content: "";
372
- display: flex;
373
- align-items: center;
374
- justify-content: center;
375
- transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
376
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
377
- background-color: var(--components-form-switch-standard-switch);
378
- top: 0.125rem;
379
- left: 0.125rem;
380
- position: relative;
381
- }
382
- .eds-switch__switch--large .eds-switch__circle {
383
- height: 1.75rem;
384
- width: 1.75rem;
385
- }
386
- .eds-contrast .eds-switch__circle {
387
- box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
388
- }
389
- .eds-switch__switch {
390
- position: relative;
391
- background-color: var(--components-form-switch-standard-fill-false);
392
- content: "";
393
- display: block;
394
- transition: background-color 0.1s ease-in-out;
395
- height: 1.5rem;
396
- width: 3rem;
397
- border-radius: 1.5rem;
398
- box-shadow: inset 0px 2px 2px -1px rgba(0, 0, 0, 0.1);
364
+ .eds-switch__switch {
365
+ position: relative;
366
+ background-color: var(--components-form-switch-standard-fill-false);
367
+ content: "";
368
+ display: block;
369
+ transition: background-color 0.1s ease-in-out;
370
+ height: 1.5rem;
371
+ width: 3rem;
372
+ border-radius: 1.5rem;
373
+ box-shadow: inset 0px 2px 2px -1px rgba(0, 0, 0, 0.1);
399
374
  }
400
375
  .eds-contrast .eds-switch__switch {
401
376
  background-color: var(--components-form-switch-contrast-fill-false);
@@ -459,84 +434,6 @@
459
434
  }
460
435
  /* DO NOT CHANGE!*/
461
436
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
462
- .eds-feedback-text {
463
- display: flex;
464
- align-items: center;
465
- margin-top: 0.25rem;
466
- }
467
- .eds-feedback-text--info {
468
- padding-left: calc(1rem + 0.125rem);
469
- }
470
- .eds-feedback-text__text {
471
- color: var(--components-form-feedbacktext-information-standard-text);
472
- }
473
- .eds-contrast .eds-feedback-text__text {
474
- color: var(--components-form-feedbacktext-information-contrast-text);
475
- }
476
-
477
- .eds-feedback-text__icon {
478
- font-size: 1.5rem;
479
- min-height: 1.5rem;
480
- min-width: 1.5rem;
481
- padding-right: 0.5rem;
482
- position: relative;
483
- top: -0.1rem;
484
- }
485
- .eds-feedback-text__icon--success {
486
- color: var(--components-form-feedbacktext-success-standard-icon-fill);
487
- }
488
- .eds-feedback-text__icon--success circle {
489
- fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
490
- }
491
- .eds-contrast .eds-feedback-text__icon--success {
492
- color: var(--components-form-feedbacktext-success-contrast-icon-fill);
493
- }
494
- .eds-contrast .eds-feedback-text__icon--success circle {
495
- fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
496
- }
497
- .eds-feedback-text__icon--error {
498
- color: var(--components-form-feedbacktext-negative-standard-icon-fill);
499
- }
500
- .eds-feedback-text__icon--error circle {
501
- fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
502
- }
503
- .eds-contrast .eds-feedback-text__icon--error {
504
- color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
505
- }
506
- .eds-contrast .eds-feedback-text__icon--error circle {
507
- fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
508
- }
509
- .eds-feedback-text__icon--info {
510
- color: var(--components-form-feedbacktext-information-standard-icon-fill);
511
- }
512
- .eds-feedback-text__icon--info circle {
513
- fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
514
- }
515
- .eds-contrast .eds-feedback-text__icon--info {
516
- color: var(--components-form-feedbacktext-information-contrast-icon-fill);
517
- }
518
- .eds-contrast .eds-feedback-text__icon--info circle {
519
- fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
520
- }
521
- .eds-feedback-text__icon--warning {
522
- color: var(--components-form-feedbacktext-warning-standard-icon-fill);
523
- }
524
- .eds-feedback-text__icon--warning circle {
525
- fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
526
- }
527
- .eds-contrast .eds-feedback-text__icon--warning {
528
- color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
529
- }
530
- .eds-contrast .eds-feedback-text__icon--warning circle {
531
- fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
532
- }
533
- .eds-fieldset {
534
- margin: 0;
535
- padding: 0;
536
- border: 0;
537
- }
538
- /* DO NOT CHANGE!*/
539
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
540
437
  .eds-input-group {
541
438
  color: inherit;
542
439
  display: block;
@@ -666,88 +563,6 @@
666
563
  }
667
564
  /* DO NOT CHANGE!*/
668
565
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
669
- .eds-form-component--radio__container {
670
- display: flex;
671
- justify-content: center;
672
- align-items: center;
673
- position: relative;
674
- cursor: pointer;
675
- height: 2rem;
676
- width: -moz-fit-content;
677
- width: fit-content;
678
- -webkit-user-select: none;
679
- -moz-user-select: none;
680
- user-select: none;
681
- }
682
- .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
683
- background-color: var(--components-form-radio-standard-fill-hover);
684
- }
685
- .eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
686
- background-color: var(--components-form-radio-contrast-fill-hover);
687
- }
688
- .eds-form-component--radio__container input {
689
- position: absolute;
690
- opacity: 0;
691
- cursor: pointer;
692
- height: 0;
693
- width: 0;
694
- }
695
- .eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
696
- height: 0.625rem;
697
- width: 0.625rem;
698
- }
699
- .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
700
- outline: 2px solid #181c56;
701
- outline-color: var(--basecolors-stroke-focus-standard);
702
- outline-offset: 0.125rem;
703
- }
704
- .eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
705
- outline-color: var(--basecolors-stroke-focus-contrast);
706
- }
707
- .eds-form-component--radio__container .eds-form-component--radio__radio {
708
- position: relative;
709
- height: 1.25rem;
710
- width: 1.25rem;
711
- margin-right: 1rem;
712
- background-color: var(--components-form-radio-standard-fill-default);
713
- border: 0.125rem solid var(--components-form-radio-standard-border);
714
- border-radius: 50%;
715
- display: flex;
716
- align-items: center;
717
- justify-content: center;
718
- }
719
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
720
- background-color: var(--components-form-radio-contrast-fill-default);
721
- border-color: var(--components-form-radio-contrast-border);
722
- }
723
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
724
- background: var(--components-form-baseform-contrast-fill-disabled);
725
- border-color: var(--components-form-baseform-contrast-text-disabled);
726
- cursor: not-allowed;
727
- }
728
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
729
- border-color: var(--components-form-baseform-contrast-text-disabled);
730
- }
731
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
732
- background: var(--components-form-baseform-contrast-fill-disabled);
733
- border-color: var(--components-form-baseform-contrast-text-disabled);
734
- }
735
- .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
736
- color: var(--components-form-baseform-contrast-text-disabled);
737
- }
738
- .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
739
- display: block;
740
- width: 0;
741
- height: 0;
742
- border-radius: 50%;
743
- background-color: var(--components-form-radio-standard-fill-selected);
744
- transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
745
- }
746
- .eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
747
- background-color: var(--components-form-radio-contrast-icon);
748
- }
749
- /* DO NOT CHANGE!*/
750
- /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
751
566
  .eds-input-panel[focus-within] .eds-input-panel__container {
752
567
  outline: 2px solid #181c56;
753
568
  outline-color: var(--basecolors-stroke-focus-standard);
@@ -904,6 +719,191 @@ input:disabled + .eds-input-panel__container {
904
719
  }
905
720
  /* DO NOT CHANGE!*/
906
721
  /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
722
+ .eds-form-control-wrapper {
723
+ align-items: center;
724
+ background-color: var(--components-form-baseform-standard-fill-default);
725
+ border-radius: 0.25rem;
726
+ border: 0.125rem solid var(--components-form-baseform-standard-border-default);
727
+ box-shadow: 0 0 0 transparent;
728
+ color: var(--components-form-baseform-standard-text-content);
729
+ display: flex;
730
+ position: relative;
731
+ width: 100%;
732
+ min-height: 3rem;
733
+ transition: border-color 0.1s ease-in-out;
734
+ }
735
+ .eds-form-control-wrapper[focus-within], .eds-form-control-wrapper:hover {
736
+ border-color: var(--components-form-baseform-standard-border-interactive);
737
+ }
738
+ .eds-form-control-wrapper:focus-within, .eds-form-control-wrapper:hover {
739
+ border-color: var(--components-form-baseform-standard-border-interactive);
740
+ }
741
+ .eds-contrast .eds-form-control-wrapper:hover {
742
+ border-color: var(--components-form-baseform-contrast-border-interactive);
743
+ }
744
+ .eds-form-control-wrapper[focus-within] {
745
+ outline: 1px solid var(--components-form-baseform-standard-border-interactive);
746
+ }
747
+ .eds-form-control-wrapper:focus-within {
748
+ outline: 1px solid var(--components-form-baseform-standard-border-interactive);
749
+ }
750
+ .eds-contrast .eds-form-control-wrapper[focus-within] {
751
+ outline: var(--components-form-baseform-contrast-border-interactive);
752
+ }
753
+ .eds-contrast .eds-form-control-wrapper:focus-within {
754
+ outline: var(--components-form-baseform-contrast-border-interactive);
755
+ }
756
+ .eds-form-control-wrapper ::-moz-placeholder {
757
+ color: var(--components-form-baseform-standard-text-label);
758
+ }
759
+ .eds-form-control-wrapper ::placeholder {
760
+ color: var(--components-form-baseform-standard-text-label);
761
+ }
762
+ .eds-form-control-wrapper--disabled {
763
+ border-color: transparent;
764
+ background-color: var(--components-form-baseform-standard-fill-disabled);
765
+ pointer-events: none;
766
+ color: var(--components-form-baseform-standard-text-disabled);
767
+ }
768
+ .eds-form-control-wrapper--disabled .eds-input-group__label {
769
+ color: var(--components-form-baseform-standard-text-disabled);
770
+ }
771
+ .eds-contrast .eds-form-control-wrapper--disabled {
772
+ border-color: transparent;
773
+ background-color: var(--components-form-baseform-contrast-fill-disabled);
774
+ color: var(--components-form-baseform-contrast-text-disabled);
775
+ }
776
+ .eds-contrast .eds-form-control-wrapper--disabled .eds-input-group__label {
777
+ color: var(--components-form-baseform-contrast-text-disabled);
778
+ }
779
+ .eds-form-control-wrapper--disabled::before, .eds-form-control-wrapper--disabled::after {
780
+ display: none;
781
+ }
782
+ .eds-form-control-wrapper--readonly {
783
+ border-color: transparent;
784
+ pointer-events: none;
785
+ cursor: default;
786
+ background: var(--components-form-baseform-standard-fill-readonly);
787
+ border: var(--components-form-baseform-standard-fill-readonly);
788
+ }
789
+ .eds-contrast .eds-form-control-wrapper--readonly {
790
+ background: var(--components-form-baseform-contrast-fill-readonly);
791
+ color: var(--components-form-baseform-contrast-text-description);
792
+ border: var(--components-form-baseform-contrast-fill-readonly);
793
+ }
794
+ .eds-contrast .eds-form-control-wrapper--readonly .eds-input-group__label {
795
+ color: var(--components-form-baseform-contrast-text-description);
796
+ }
797
+ .eds-form-control-wrapper--readonly::before, .eds-form-control-wrapper--readonly::after {
798
+ display: none;
799
+ }
800
+ .eds-form-control-wrapper--size-medium .eds-form-control,
801
+ .eds-form-control-wrapper--size-medium .eds-form-control__append,
802
+ .eds-form-control-wrapper--size-medium .eds-form-control__prepend {
803
+ font-size: 1rem;
804
+ line-height: 1rem;
805
+ }
806
+ .eds-form-control-wrapper--size-large {
807
+ min-height: 4rem;
808
+ padding: 0 0.5rem;
809
+ }
810
+ .eds-form-control-wrapper--size-large::before, .eds-form-control-wrapper--size-large::after {
811
+ border-width: 0.25rem;
812
+ }
813
+ .eds-form-control-wrapper--size-large .eds-form-control,
814
+ .eds-form-control-wrapper--size-large .eds-form-control__append,
815
+ .eds-form-control-wrapper--size-large .eds-form-control__prepend {
816
+ font-size: 1.5rem;
817
+ line-height: 2.25rem;
818
+ }
819
+ .eds-form-control-wrapper--success {
820
+ border-color: var(--components-form-baseform-standard-border-success);
821
+ }
822
+ .eds-form-control-wrapper--success[focus-within] {
823
+ border-color: var(--components-form-baseform-standard-border-success);
824
+ }
825
+ .eds-form-control-wrapper--success:focus-within {
826
+ border-color: var(--components-form-baseform-standard-border-success);
827
+ }
828
+ .eds-contrast .eds-form-control-wrapper--success {
829
+ border-color: var(--components-form-baseform-standard-border-success);
830
+ }
831
+ .eds-contrast .eds-form-control-wrapper--success[focus-within] {
832
+ border-color: var(--components-form-baseform-contrast-border-success);
833
+ }
834
+ .eds-contrast .eds-form-control-wrapper--success:focus-within {
835
+ border-color: var(--components-form-baseform-contrast-border-success);
836
+ }
837
+ .eds-form-control-wrapper--error {
838
+ border-color: var(--components-form-baseform-standard-border-negative);
839
+ }
840
+ .eds-form-control-wrapper--error[focus-within] {
841
+ border-color: var(--components-form-baseform-standard-border-negative);
842
+ }
843
+ .eds-form-control-wrapper--error:focus-within {
844
+ border-color: var(--components-form-baseform-standard-border-negative);
845
+ }
846
+ .eds-contrast .eds-form-control-wrapper--error {
847
+ border-color: var(--components-form-baseform-contrast-border-negative);
848
+ }
849
+ .eds-contrast .eds-form-control-wrapper--error[focus-within] {
850
+ border-color: var(--components-form-baseform-contrast-border-negative);
851
+ }
852
+ .eds-contrast .eds-form-control-wrapper--error:focus-within {
853
+ border-color: var(--components-form-baseform-contrast-border-negative);
854
+ }
855
+
856
+ .eds-form-control {
857
+ -webkit-appearance: none;
858
+ -moz-appearance: none;
859
+ appearance: none;
860
+ background-color: transparent;
861
+ border: 0;
862
+ color: var(--components-form-baseform-standard-text-content);
863
+ display: block;
864
+ font-family: inherit;
865
+ line-height: 1rem;
866
+ font-size: 1rem;
867
+ padding: 20px 1rem 0.25rem;
868
+ width: 100%;
869
+ }
870
+ .eds-form-control::-moz-placeholder {
871
+ opacity: 0;
872
+ -moz-transition: opacity 0.2s ease-in-out;
873
+ transition: opacity 0.2s ease-in-out;
874
+ }
875
+ .eds-form-control::placeholder {
876
+ opacity: 0;
877
+ transition: opacity 0.2s ease-in-out;
878
+ }
879
+ .eds-form-control:focus {
880
+ outline: none;
881
+ }
882
+ .eds-form-control:focus::-moz-placeholder {
883
+ opacity: 1;
884
+ }
885
+ .eds-form-control:focus::placeholder {
886
+ opacity: 1;
887
+ }
888
+ .eds-form-control__prepend, .eds-form-control__append {
889
+ position: relative;
890
+ margin: 0 1rem;
891
+ line-height: inherit;
892
+ }
893
+ .eds-form-control__prepend--tooltip, .eds-form-control__append--tooltip {
894
+ position: static;
895
+ }
896
+ .eds-form-control__prepend svg, .eds-form-control__append svg {
897
+ top: 0.125rem;
898
+ }
899
+ .eds-form-control__prepend {
900
+ margin-right: 0;
901
+ }
902
+ .eds-form-control__append {
903
+ margin-left: 0;
904
+ }
905
+ /* DO NOT CHANGE!*/
906
+ /* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
907
907
  textarea.eds-form-control.eds-textarea {
908
908
  min-height: 7.75rem;
909
909
  resize: vertical;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@entur/form",
3
- "version": "7.0.40",
3
+ "version": "7.0.42",
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.15.2",
31
- "@entur/tokens": "^3.13.1",
32
- "@entur/tooltip": "^2.6.49",
33
- "@entur/typography": "^1.8.25",
30
+ "@entur/icons": "^6.15.3",
31
+ "@entur/tokens": "^3.13.2",
32
+ "@entur/tooltip": "^2.6.51",
33
+ "@entur/typography": "^1.8.27",
34
34
  "@entur/utils": "^0.10.0",
35
35
  "classnames": "^2.3.1"
36
36
  },
37
- "gitHead": "d0a435264ccaf7ed8e6b7798c81e876176ce3d4d"
37
+ "gitHead": "427e66ba68d33b8d1839714a48517b52afd5c2db"
38
38
  }