@entur/form 7.1.0 → 7.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/styles.css +250 -250
- package/package.json +6 -6
package/dist/styles.css
CHANGED
|
@@ -185,161 +185,6 @@
|
|
|
185
185
|
}
|
|
186
186
|
/* DO NOT CHANGE!*/
|
|
187
187
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
188
|
-
.eds-feedback-text {
|
|
189
|
-
display: flex;
|
|
190
|
-
align-items: center;
|
|
191
|
-
margin-top: 0.25rem;
|
|
192
|
-
}
|
|
193
|
-
.eds-feedback-text--info, .eds-feedback-text--information {
|
|
194
|
-
padding-left: calc(1rem + 0.125rem);
|
|
195
|
-
}
|
|
196
|
-
.eds-feedback-text__text {
|
|
197
|
-
color: var(--components-form-feedbacktext-information-standard-text);
|
|
198
|
-
}
|
|
199
|
-
.eds-contrast .eds-feedback-text__text {
|
|
200
|
-
color: var(--components-form-feedbacktext-information-contrast-text);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.eds-feedback-text__icon {
|
|
204
|
-
font-size: 1.5rem;
|
|
205
|
-
min-height: 1.5rem;
|
|
206
|
-
min-width: 1.5rem;
|
|
207
|
-
padding-right: 0.5rem;
|
|
208
|
-
position: relative;
|
|
209
|
-
top: -0.1rem;
|
|
210
|
-
}
|
|
211
|
-
.eds-feedback-text__icon--success {
|
|
212
|
-
color: var(--components-form-feedbacktext-success-standard-icon-fill);
|
|
213
|
-
}
|
|
214
|
-
.eds-feedback-text__icon--success circle {
|
|
215
|
-
fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
|
|
216
|
-
}
|
|
217
|
-
.eds-contrast .eds-feedback-text__icon--success {
|
|
218
|
-
color: var(--components-form-feedbacktext-success-contrast-icon-fill);
|
|
219
|
-
}
|
|
220
|
-
.eds-contrast .eds-feedback-text__icon--success circle {
|
|
221
|
-
fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
|
|
222
|
-
}
|
|
223
|
-
.eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
|
|
224
|
-
color: var(--components-form-feedbacktext-negative-standard-icon-fill);
|
|
225
|
-
}
|
|
226
|
-
.eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
|
|
227
|
-
fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
|
|
228
|
-
}
|
|
229
|
-
.eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
|
|
230
|
-
color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
|
|
231
|
-
}
|
|
232
|
-
.eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
|
|
233
|
-
fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
|
|
234
|
-
}
|
|
235
|
-
.eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
|
|
236
|
-
color: var(--components-form-feedbacktext-information-standard-icon-fill);
|
|
237
|
-
}
|
|
238
|
-
.eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
|
|
239
|
-
fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
|
|
240
|
-
}
|
|
241
|
-
.eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
|
|
242
|
-
color: var(--components-form-feedbacktext-information-contrast-icon-fill);
|
|
243
|
-
}
|
|
244
|
-
.eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
|
|
245
|
-
fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
|
|
246
|
-
}
|
|
247
|
-
.eds-feedback-text__icon--warning {
|
|
248
|
-
color: var(--components-form-feedbacktext-warning-standard-icon-fill);
|
|
249
|
-
}
|
|
250
|
-
.eds-feedback-text__icon--warning .svg-exclamation {
|
|
251
|
-
fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
|
|
252
|
-
}
|
|
253
|
-
.eds-contrast .eds-feedback-text__icon--warning {
|
|
254
|
-
color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
|
|
255
|
-
}
|
|
256
|
-
.eds-contrast .eds-feedback-text__icon--warning circle {
|
|
257
|
-
fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
|
|
258
|
-
}
|
|
259
|
-
/* DO NOT CHANGE!*/
|
|
260
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
261
|
-
.eds-form-component--radio__container {
|
|
262
|
-
display: flex;
|
|
263
|
-
justify-content: center;
|
|
264
|
-
align-items: center;
|
|
265
|
-
position: relative;
|
|
266
|
-
cursor: pointer;
|
|
267
|
-
height: 2rem;
|
|
268
|
-
width: -moz-fit-content;
|
|
269
|
-
width: fit-content;
|
|
270
|
-
-webkit-user-select: none;
|
|
271
|
-
-moz-user-select: none;
|
|
272
|
-
user-select: none;
|
|
273
|
-
}
|
|
274
|
-
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
275
|
-
background-color: var(--components-form-radio-standard-fill-hover);
|
|
276
|
-
}
|
|
277
|
-
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
278
|
-
background-color: var(--components-form-radio-contrast-fill-hover);
|
|
279
|
-
}
|
|
280
|
-
.eds-form-component--radio__container input {
|
|
281
|
-
position: absolute;
|
|
282
|
-
opacity: 0;
|
|
283
|
-
cursor: pointer;
|
|
284
|
-
height: 0;
|
|
285
|
-
width: 0;
|
|
286
|
-
}
|
|
287
|
-
.eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
288
|
-
height: 0.625rem;
|
|
289
|
-
width: 0.625rem;
|
|
290
|
-
}
|
|
291
|
-
.eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
292
|
-
outline: 2px solid #181c56;
|
|
293
|
-
outline-color: var(--basecolors-stroke-focus-standard);
|
|
294
|
-
outline-offset: 0.125rem;
|
|
295
|
-
}
|
|
296
|
-
.eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
297
|
-
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
298
|
-
}
|
|
299
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
300
|
-
position: relative;
|
|
301
|
-
height: 1.25rem;
|
|
302
|
-
width: 1.25rem;
|
|
303
|
-
margin-right: 1rem;
|
|
304
|
-
background-color: var(--components-form-radio-standard-fill-default);
|
|
305
|
-
border: 0.125rem solid var(--components-form-radio-standard-border);
|
|
306
|
-
border-radius: 50%;
|
|
307
|
-
display: flex;
|
|
308
|
-
align-items: center;
|
|
309
|
-
justify-content: center;
|
|
310
|
-
}
|
|
311
|
-
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
312
|
-
background-color: var(--components-form-radio-contrast-fill-default);
|
|
313
|
-
border-color: var(--components-form-radio-contrast-border);
|
|
314
|
-
}
|
|
315
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
316
|
-
background: var(--components-form-baseform-contrast-fill-disabled);
|
|
317
|
-
border-color: var(--components-form-baseform-contrast-text-disabled);
|
|
318
|
-
cursor: not-allowed;
|
|
319
|
-
}
|
|
320
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
|
|
321
|
-
border-color: var(--components-form-baseform-contrast-text-disabled);
|
|
322
|
-
}
|
|
323
|
-
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
324
|
-
background: var(--components-form-baseform-contrast-fill-disabled);
|
|
325
|
-
border-color: var(--components-form-baseform-contrast-text-disabled);
|
|
326
|
-
}
|
|
327
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
|
|
328
|
-
color: var(--components-form-baseform-contrast-text-disabled);
|
|
329
|
-
}
|
|
330
|
-
.eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
331
|
-
display: block;
|
|
332
|
-
width: 0;
|
|
333
|
-
height: 0;
|
|
334
|
-
border-radius: 50%;
|
|
335
|
-
background-color: var(--components-form-radio-standard-fill-selected);
|
|
336
|
-
transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
|
|
337
|
-
}
|
|
338
|
-
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
339
|
-
background-color: var(--components-form-radio-contrast-icon);
|
|
340
|
-
}
|
|
341
|
-
/* DO NOT CHANGE!*/
|
|
342
|
-
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
343
188
|
.eds-checkbox__container {
|
|
344
189
|
display: flex;
|
|
345
190
|
align-items: center;
|
|
@@ -495,122 +340,163 @@
|
|
|
495
340
|
}
|
|
496
341
|
/* DO NOT CHANGE!*/
|
|
497
342
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
498
|
-
.eds-
|
|
499
|
-
cursor: pointer;
|
|
500
|
-
-webkit-user-select: none;
|
|
501
|
-
-moz-user-select: none;
|
|
502
|
-
user-select: none;
|
|
503
|
-
padding: 0.5rem 0;
|
|
504
|
-
width: -moz-fit-content;
|
|
505
|
-
width: fit-content;
|
|
506
|
-
}
|
|
507
|
-
.eds-switch input {
|
|
508
|
-
opacity: 0;
|
|
509
|
-
pointer-events: none;
|
|
510
|
-
position: absolute;
|
|
511
|
-
}
|
|
512
|
-
.eds-switch--right {
|
|
343
|
+
.eds-feedback-text {
|
|
513
344
|
display: flex;
|
|
514
|
-
flex-direction: row;
|
|
515
345
|
align-items: center;
|
|
346
|
+
margin-top: 0.25rem;
|
|
516
347
|
}
|
|
517
|
-
.eds-
|
|
518
|
-
|
|
519
|
-
flex-direction: column;
|
|
520
|
-
align-items: center;
|
|
348
|
+
.eds-feedback-text--info, .eds-feedback-text--information {
|
|
349
|
+
padding-left: calc(1rem + 0.125rem);
|
|
521
350
|
}
|
|
522
|
-
.eds-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
left: 0.125rem;
|
|
351
|
+
.eds-feedback-text__text {
|
|
352
|
+
color: var(--components-form-feedbacktext-information-standard-text);
|
|
353
|
+
}
|
|
354
|
+
.eds-contrast .eds-feedback-text__text {
|
|
355
|
+
color: var(--components-form-feedbacktext-information-contrast-text);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.eds-feedback-text__icon {
|
|
359
|
+
font-size: 1.5rem;
|
|
360
|
+
min-height: 1.5rem;
|
|
361
|
+
min-width: 1.5rem;
|
|
362
|
+
padding-right: 0.5rem;
|
|
535
363
|
position: relative;
|
|
364
|
+
top: -0.1rem;
|
|
536
365
|
}
|
|
537
|
-
.eds-
|
|
538
|
-
|
|
539
|
-
width: 1.75rem;
|
|
366
|
+
.eds-feedback-text__icon--success {
|
|
367
|
+
color: var(--components-form-feedbacktext-success-standard-icon-fill);
|
|
540
368
|
}
|
|
541
|
-
.eds-
|
|
542
|
-
|
|
369
|
+
.eds-feedback-text__icon--success circle {
|
|
370
|
+
fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
|
|
543
371
|
}
|
|
544
|
-
.eds-
|
|
545
|
-
|
|
546
|
-
background-color: var(--components-form-switch-standard-fill-false);
|
|
547
|
-
content: "";
|
|
548
|
-
display: block;
|
|
549
|
-
transition: background-color 0.1s ease-in-out;
|
|
550
|
-
height: 1.5rem;
|
|
551
|
-
width: 3rem;
|
|
552
|
-
border-radius: 1.5rem;
|
|
553
|
-
box-shadow: inset 0px 2px 2px -1px rgba(0, 0, 0, 0.1);
|
|
372
|
+
.eds-contrast .eds-feedback-text__icon--success {
|
|
373
|
+
color: var(--components-form-feedbacktext-success-contrast-icon-fill);
|
|
554
374
|
}
|
|
555
|
-
.eds-contrast .eds-
|
|
556
|
-
|
|
375
|
+
.eds-contrast .eds-feedback-text__icon--success circle {
|
|
376
|
+
fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
|
|
557
377
|
}
|
|
558
|
-
.eds-
|
|
559
|
-
|
|
378
|
+
.eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
|
|
379
|
+
color: var(--components-form-feedbacktext-negative-standard-icon-fill);
|
|
560
380
|
}
|
|
561
|
-
.eds-
|
|
562
|
-
|
|
563
|
-
fill: var(--components-form-switch-standard-icon-false);
|
|
564
|
-
transition: fill ease-in-out 0.1s;
|
|
381
|
+
.eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
|
|
382
|
+
fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
|
|
565
383
|
}
|
|
566
|
-
.eds-contrast .eds-
|
|
567
|
-
|
|
568
|
-
fill: var(--components-form-switch-contrast-icon-false);
|
|
384
|
+
.eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
|
|
385
|
+
color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
|
|
569
386
|
}
|
|
570
|
-
|
|
571
|
-
|
|
387
|
+
.eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
|
|
388
|
+
fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
|
|
572
389
|
}
|
|
573
|
-
|
|
574
|
-
|
|
390
|
+
.eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
|
|
391
|
+
color: var(--components-form-feedbacktext-information-standard-icon-fill);
|
|
575
392
|
}
|
|
576
|
-
|
|
577
|
-
:
|
|
578
|
-
fill: var(--eds-switch-color);
|
|
393
|
+
.eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
|
|
394
|
+
fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
|
|
579
395
|
}
|
|
580
|
-
.eds-contrast
|
|
581
|
-
|
|
396
|
+
.eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
|
|
397
|
+
color: var(--components-form-feedbacktext-information-contrast-icon-fill);
|
|
582
398
|
}
|
|
583
|
-
|
|
399
|
+
.eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
|
|
400
|
+
fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
|
|
401
|
+
}
|
|
402
|
+
.eds-feedback-text__icon--warning {
|
|
403
|
+
color: var(--components-form-feedbacktext-warning-standard-icon-fill);
|
|
404
|
+
}
|
|
405
|
+
.eds-feedback-text__icon--warning .svg-exclamation {
|
|
406
|
+
fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
|
|
407
|
+
}
|
|
408
|
+
.eds-contrast .eds-feedback-text__icon--warning {
|
|
409
|
+
color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
|
|
410
|
+
}
|
|
411
|
+
.eds-contrast .eds-feedback-text__icon--warning circle {
|
|
412
|
+
fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
|
|
413
|
+
}
|
|
414
|
+
.eds-fieldset {
|
|
415
|
+
margin: 0;
|
|
416
|
+
padding: 0;
|
|
417
|
+
border: 0;
|
|
418
|
+
}
|
|
419
|
+
/* DO NOT CHANGE!*/
|
|
420
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
421
|
+
.eds-form-component--radio__container {
|
|
422
|
+
display: flex;
|
|
423
|
+
justify-content: center;
|
|
424
|
+
align-items: center;
|
|
425
|
+
position: relative;
|
|
426
|
+
cursor: pointer;
|
|
427
|
+
height: 2rem;
|
|
428
|
+
width: -moz-fit-content;
|
|
429
|
+
width: fit-content;
|
|
430
|
+
-webkit-user-select: none;
|
|
431
|
+
-moz-user-select: none;
|
|
432
|
+
user-select: none;
|
|
433
|
+
}
|
|
434
|
+
.eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
435
|
+
background-color: var(--components-form-radio-standard-fill-hover);
|
|
436
|
+
}
|
|
437
|
+
.eds-contrast .eds-form-component--radio__container :hover ~ .eds-form-component--radio__radio {
|
|
438
|
+
background-color: var(--components-form-radio-contrast-fill-hover);
|
|
439
|
+
}
|
|
440
|
+
.eds-form-component--radio__container input {
|
|
441
|
+
position: absolute;
|
|
442
|
+
opacity: 0;
|
|
443
|
+
cursor: pointer;
|
|
444
|
+
height: 0;
|
|
445
|
+
width: 0;
|
|
446
|
+
}
|
|
447
|
+
.eds-form-component--radio__container input:checked ~ .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
448
|
+
height: 0.625rem;
|
|
449
|
+
width: 0.625rem;
|
|
450
|
+
}
|
|
451
|
+
.eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
584
452
|
outline: 2px solid #181c56;
|
|
585
453
|
outline-color: var(--basecolors-stroke-focus-standard);
|
|
586
454
|
outline-offset: 0.125rem;
|
|
587
455
|
}
|
|
588
|
-
.eds-contrast :focus
|
|
456
|
+
.eds-contrast .eds-form-component--radio__container input:focus ~ .eds-form-component--radio__radio {
|
|
589
457
|
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
590
458
|
}
|
|
591
|
-
.eds-
|
|
592
|
-
|
|
593
|
-
height:
|
|
594
|
-
|
|
459
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
460
|
+
position: relative;
|
|
461
|
+
height: 1.25rem;
|
|
462
|
+
width: 1.25rem;
|
|
463
|
+
margin-right: 1rem;
|
|
464
|
+
background-color: var(--components-form-radio-standard-fill-default);
|
|
465
|
+
border: 0.125rem solid var(--components-form-radio-standard-border);
|
|
466
|
+
border-radius: 50%;
|
|
467
|
+
display: flex;
|
|
468
|
+
align-items: center;
|
|
469
|
+
justify-content: center;
|
|
595
470
|
}
|
|
596
|
-
|
|
597
|
-
|
|
471
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio {
|
|
472
|
+
background-color: var(--components-form-radio-contrast-fill-default);
|
|
473
|
+
border-color: var(--components-form-radio-contrast-border);
|
|
598
474
|
}
|
|
599
|
-
.eds-
|
|
600
|
-
|
|
601
|
-
|
|
475
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
476
|
+
background: var(--components-form-baseform-contrast-fill-disabled);
|
|
477
|
+
border-color: var(--components-form-baseform-contrast-text-disabled);
|
|
478
|
+
cursor: not-allowed;
|
|
602
479
|
}
|
|
603
|
-
.eds-
|
|
604
|
-
|
|
480
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled:hover {
|
|
481
|
+
border-color: var(--components-form-baseform-contrast-text-disabled);
|
|
605
482
|
}
|
|
606
|
-
.eds-
|
|
607
|
-
|
|
483
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled {
|
|
484
|
+
background: var(--components-form-baseform-contrast-fill-disabled);
|
|
485
|
+
border-color: var(--components-form-baseform-contrast-text-disabled);
|
|
608
486
|
}
|
|
609
|
-
.eds-
|
|
610
|
-
|
|
487
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio.eds-form-component--radio__radio--disabled ~ .eds-form-component--radio__label {
|
|
488
|
+
color: var(--components-form-baseform-contrast-text-disabled);
|
|
611
489
|
}
|
|
612
|
-
.eds-
|
|
613
|
-
|
|
490
|
+
.eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
491
|
+
display: block;
|
|
492
|
+
width: 0;
|
|
493
|
+
height: 0;
|
|
494
|
+
border-radius: 50%;
|
|
495
|
+
background-color: var(--components-form-radio-standard-fill-selected);
|
|
496
|
+
transition: width 0.1s ease-in-out, height 0.1s ease-in-out;
|
|
497
|
+
}
|
|
498
|
+
.eds-contrast .eds-form-component--radio__container .eds-form-component--radio__radio .eds-form-component--radio__circle {
|
|
499
|
+
background-color: var(--components-form-radio-contrast-icon);
|
|
614
500
|
}
|
|
615
501
|
/* DO NOT CHANGE!*/
|
|
616
502
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -743,15 +629,122 @@
|
|
|
743
629
|
}
|
|
744
630
|
/* DO NOT CHANGE!*/
|
|
745
631
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
632
|
+
.eds-switch {
|
|
633
|
+
cursor: pointer;
|
|
634
|
+
-webkit-user-select: none;
|
|
635
|
+
-moz-user-select: none;
|
|
636
|
+
user-select: none;
|
|
637
|
+
padding: 0.5rem 0;
|
|
638
|
+
width: -moz-fit-content;
|
|
639
|
+
width: fit-content;
|
|
750
640
|
}
|
|
751
|
-
.eds-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
641
|
+
.eds-switch input {
|
|
642
|
+
opacity: 0;
|
|
643
|
+
pointer-events: none;
|
|
644
|
+
position: absolute;
|
|
645
|
+
}
|
|
646
|
+
.eds-switch--right {
|
|
647
|
+
display: flex;
|
|
648
|
+
flex-direction: row;
|
|
649
|
+
align-items: center;
|
|
650
|
+
}
|
|
651
|
+
.eds-switch--bottom {
|
|
652
|
+
display: flex;
|
|
653
|
+
flex-direction: column;
|
|
654
|
+
align-items: center;
|
|
655
|
+
}
|
|
656
|
+
.eds-switch__circle {
|
|
657
|
+
border-radius: 50%;
|
|
658
|
+
height: 1.25rem;
|
|
659
|
+
width: 1.25rem;
|
|
660
|
+
content: "";
|
|
661
|
+
display: flex;
|
|
662
|
+
align-items: center;
|
|
663
|
+
justify-content: center;
|
|
664
|
+
transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
|
|
665
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
666
|
+
background-color: var(--components-form-switch-standard-switch);
|
|
667
|
+
top: 0.125rem;
|
|
668
|
+
left: 0.125rem;
|
|
669
|
+
position: relative;
|
|
670
|
+
}
|
|
671
|
+
.eds-switch__switch--large .eds-switch__circle {
|
|
672
|
+
height: 1.75rem;
|
|
673
|
+
width: 1.75rem;
|
|
674
|
+
}
|
|
675
|
+
.eds-contrast .eds-switch__circle {
|
|
676
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
|
|
677
|
+
}
|
|
678
|
+
.eds-switch__switch {
|
|
679
|
+
position: relative;
|
|
680
|
+
background-color: var(--components-form-switch-standard-fill-false);
|
|
681
|
+
content: "";
|
|
682
|
+
display: block;
|
|
683
|
+
transition: background-color 0.1s ease-in-out;
|
|
684
|
+
height: 1.5rem;
|
|
685
|
+
width: 3rem;
|
|
686
|
+
border-radius: 1.5rem;
|
|
687
|
+
box-shadow: inset 0px 2px 2px -1px rgba(0, 0, 0, 0.1);
|
|
688
|
+
}
|
|
689
|
+
.eds-contrast .eds-switch__switch {
|
|
690
|
+
background-color: var(--components-form-switch-contrast-fill-false);
|
|
691
|
+
}
|
|
692
|
+
.eds-switch--right .eds-switch__switch {
|
|
693
|
+
margin-right: 0.75rem;
|
|
694
|
+
}
|
|
695
|
+
.eds-switch__switch svg g,
|
|
696
|
+
.eds-switch__switch path {
|
|
697
|
+
fill: var(--components-form-switch-standard-icon-false);
|
|
698
|
+
transition: fill ease-in-out 0.1s;
|
|
699
|
+
}
|
|
700
|
+
.eds-contrast .eds-switch__switch svg g,
|
|
701
|
+
.eds-contrast .eds-switch__switch path {
|
|
702
|
+
fill: var(--components-form-switch-contrast-icon-false);
|
|
703
|
+
}
|
|
704
|
+
:checked + .eds-switch__switch {
|
|
705
|
+
background-color: var(--eds-switch-color);
|
|
706
|
+
}
|
|
707
|
+
:checked + .eds-switch__switch .eds-switch__circle {
|
|
708
|
+
left: 1.625rem;
|
|
709
|
+
}
|
|
710
|
+
:checked + .eds-switch__switch .eds-switch__circle svg g,
|
|
711
|
+
:checked + .eds-switch__switch .eds-switch__circle path {
|
|
712
|
+
fill: var(--eds-switch-color);
|
|
713
|
+
}
|
|
714
|
+
.eds-contrast :checked + .eds-switch__switch {
|
|
715
|
+
background-color: var(--eds-switch-contrast-color);
|
|
716
|
+
}
|
|
717
|
+
:focus + .eds-switch__switch {
|
|
718
|
+
outline: 2px solid #181c56;
|
|
719
|
+
outline-color: var(--basecolors-stroke-focus-standard);
|
|
720
|
+
outline-offset: 0.125rem;
|
|
721
|
+
}
|
|
722
|
+
.eds-contrast :focus + .eds-switch__switch {
|
|
723
|
+
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
724
|
+
}
|
|
725
|
+
.eds-switch__switch--large {
|
|
726
|
+
width: 3.75rem;
|
|
727
|
+
height: 2rem;
|
|
728
|
+
border-radius: 3.75rem;
|
|
729
|
+
}
|
|
730
|
+
:checked + .eds-switch__switch--large .eds-switch__circle {
|
|
731
|
+
left: 1.875rem;
|
|
732
|
+
}
|
|
733
|
+
.eds-switch__switch--large svg {
|
|
734
|
+
position: relative;
|
|
735
|
+
right: 0.05rem;
|
|
736
|
+
}
|
|
737
|
+
.eds-switch__label--large--right {
|
|
738
|
+
font-size: 1rem;
|
|
739
|
+
}
|
|
740
|
+
.eds-switch__label--large--bottom {
|
|
741
|
+
font-size: 0.875rem;
|
|
742
|
+
}
|
|
743
|
+
.eds-switch__label--medium--right {
|
|
744
|
+
font-size: 0.875rem;
|
|
745
|
+
}
|
|
746
|
+
.eds-switch__label--medium--bottom {
|
|
747
|
+
font-size: 0.75rem;
|
|
755
748
|
}
|
|
756
749
|
/* DO NOT CHANGE!*/
|
|
757
750
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -911,6 +904,13 @@ input:disabled + .eds-input-panel__container {
|
|
|
911
904
|
}
|
|
912
905
|
/* DO NOT CHANGE!*/
|
|
913
906
|
/* 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;
|
|
911
|
+
}
|
|
912
|
+
/* DO NOT CHANGE!*/
|
|
913
|
+
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
914
914
|
.eds-textfield__clear-button {
|
|
915
915
|
background: none;
|
|
916
916
|
border: none;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entur/form",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.1",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/form.esm.js",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"react-dom": ">=16.8.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@entur/icons": "^6.15.
|
|
31
|
-
"@entur/tokens": "^3.13.
|
|
32
|
-
"@entur/tooltip": "^2.7.
|
|
33
|
-
"@entur/typography": "^1.8.
|
|
30
|
+
"@entur/icons": "^6.15.6",
|
|
31
|
+
"@entur/tokens": "^3.13.4",
|
|
32
|
+
"@entur/tooltip": "^2.7.1",
|
|
33
|
+
"@entur/typography": "^1.8.30",
|
|
34
34
|
"@entur/utils": "^0.11.0",
|
|
35
35
|
"classnames": "^2.3.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "af2884729bb414d54d6cf9e9a28b2b6f7c74af74"
|
|
38
38
|
}
|