@entur/form 7.1.0 → 7.1.2
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 +255 -255
- package/package.json +6 -6
package/dist/styles.css
CHANGED
|
@@ -183,160 +183,10 @@
|
|
|
183
183
|
.eds-form-control__append {
|
|
184
184
|
margin-left: 0;
|
|
185
185
|
}
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
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);
|
|
186
|
+
.eds-fieldset {
|
|
187
|
+
margin: 0;
|
|
188
|
+
padding: 0;
|
|
189
|
+
border: 0;
|
|
340
190
|
}
|
|
341
191
|
/* DO NOT CHANGE!*/
|
|
342
192
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -495,122 +345,76 @@
|
|
|
495
345
|
}
|
|
496
346
|
/* DO NOT CHANGE!*/
|
|
497
347
|
/* 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 {
|
|
513
|
-
display: flex;
|
|
514
|
-
flex-direction: row;
|
|
515
|
-
align-items: center;
|
|
516
|
-
}
|
|
517
|
-
.eds-switch--bottom {
|
|
348
|
+
.eds-feedback-text {
|
|
518
349
|
display: flex;
|
|
519
|
-
flex-direction: column;
|
|
520
350
|
align-items: center;
|
|
351
|
+
margin-top: 0.25rem;
|
|
521
352
|
}
|
|
522
|
-
.eds-
|
|
523
|
-
|
|
524
|
-
height: 1.25rem;
|
|
525
|
-
width: 1.25rem;
|
|
526
|
-
content: "";
|
|
527
|
-
display: flex;
|
|
528
|
-
align-items: center;
|
|
529
|
-
justify-content: center;
|
|
530
|
-
transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
|
|
531
|
-
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
532
|
-
background-color: var(--components-form-switch-standard-switch);
|
|
533
|
-
top: 0.125rem;
|
|
534
|
-
left: 0.125rem;
|
|
535
|
-
position: relative;
|
|
353
|
+
.eds-feedback-text--info, .eds-feedback-text--information {
|
|
354
|
+
padding-left: calc(1rem + 0.125rem);
|
|
536
355
|
}
|
|
537
|
-
.eds-
|
|
538
|
-
|
|
539
|
-
width: 1.75rem;
|
|
356
|
+
.eds-feedback-text__text {
|
|
357
|
+
color: var(--components-form-feedbacktext-information-standard-text);
|
|
540
358
|
}
|
|
541
|
-
.eds-contrast .eds-
|
|
542
|
-
|
|
359
|
+
.eds-contrast .eds-feedback-text__text {
|
|
360
|
+
color: var(--components-form-feedbacktext-information-contrast-text);
|
|
543
361
|
}
|
|
544
|
-
|
|
362
|
+
|
|
363
|
+
.eds-feedback-text__icon {
|
|
364
|
+
font-size: 1.5rem;
|
|
365
|
+
min-height: 1.5rem;
|
|
366
|
+
min-width: 1.5rem;
|
|
367
|
+
padding-right: 0.5rem;
|
|
545
368
|
position: relative;
|
|
546
|
-
|
|
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);
|
|
554
|
-
}
|
|
555
|
-
.eds-contrast .eds-switch__switch {
|
|
556
|
-
background-color: var(--components-form-switch-contrast-fill-false);
|
|
369
|
+
top: -0.1rem;
|
|
557
370
|
}
|
|
558
|
-
.eds-
|
|
559
|
-
|
|
371
|
+
.eds-feedback-text__icon--success {
|
|
372
|
+
color: var(--components-form-feedbacktext-success-standard-icon-fill);
|
|
560
373
|
}
|
|
561
|
-
.eds-
|
|
562
|
-
|
|
563
|
-
fill: var(--components-form-switch-standard-icon-false);
|
|
564
|
-
transition: fill ease-in-out 0.1s;
|
|
374
|
+
.eds-feedback-text__icon--success circle {
|
|
375
|
+
fill: var(--components-form-feedbacktext-success-standard-icon-symbol);
|
|
565
376
|
}
|
|
566
|
-
.eds-contrast .eds-
|
|
567
|
-
|
|
568
|
-
fill: var(--components-form-switch-contrast-icon-false);
|
|
377
|
+
.eds-contrast .eds-feedback-text__icon--success {
|
|
378
|
+
color: var(--components-form-feedbacktext-success-contrast-icon-fill);
|
|
569
379
|
}
|
|
570
|
-
|
|
571
|
-
|
|
380
|
+
.eds-contrast .eds-feedback-text__icon--success circle {
|
|
381
|
+
fill: var(--components-form-feedbacktext-success-contrast-icon-symbol);
|
|
572
382
|
}
|
|
573
|
-
|
|
574
|
-
|
|
383
|
+
.eds-feedback-text__icon--error, .eds-feedback-text__icon--negative {
|
|
384
|
+
color: var(--components-form-feedbacktext-negative-standard-icon-fill);
|
|
575
385
|
}
|
|
576
|
-
|
|
577
|
-
:
|
|
578
|
-
fill: var(--eds-switch-color);
|
|
386
|
+
.eds-feedback-text__icon--error circle, .eds-feedback-text__icon--negative circle {
|
|
387
|
+
fill: var(--components-form-feedbacktext-negative-standard-icon-symbol);
|
|
579
388
|
}
|
|
580
|
-
.eds-contrast
|
|
581
|
-
|
|
389
|
+
.eds-contrast .eds-feedback-text__icon--error, .eds-contrast .eds-feedback-text__icon--negative {
|
|
390
|
+
color: var(--components-form-feedbacktext-negative-contrast-icon-fill);
|
|
582
391
|
}
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
outline-color: var(--basecolors-stroke-focus-standard);
|
|
586
|
-
outline-offset: 0.125rem;
|
|
392
|
+
.eds-contrast .eds-feedback-text__icon--error circle, .eds-contrast .eds-feedback-text__icon--negative circle {
|
|
393
|
+
fill: var(--components-form-feedbacktext-negative-contrast-icon-symbol);
|
|
587
394
|
}
|
|
588
|
-
.eds-
|
|
589
|
-
|
|
395
|
+
.eds-feedback-text__icon--info, .eds-feedback-text__icon--information {
|
|
396
|
+
color: var(--components-form-feedbacktext-information-standard-icon-fill);
|
|
590
397
|
}
|
|
591
|
-
.eds-
|
|
592
|
-
|
|
593
|
-
height: 2rem;
|
|
594
|
-
border-radius: 3.75rem;
|
|
398
|
+
.eds-feedback-text__icon--info circle, .eds-feedback-text__icon--information circle {
|
|
399
|
+
fill: var(--components-form-feedbacktext-information-standard-icon-symbol);
|
|
595
400
|
}
|
|
596
|
-
|
|
597
|
-
|
|
401
|
+
.eds-contrast .eds-feedback-text__icon--info, .eds-contrast .eds-feedback-text__icon--information {
|
|
402
|
+
color: var(--components-form-feedbacktext-information-contrast-icon-fill);
|
|
598
403
|
}
|
|
599
|
-
.eds-
|
|
600
|
-
|
|
601
|
-
right: 0.05rem;
|
|
404
|
+
.eds-contrast .eds-feedback-text__icon--info circle, .eds-contrast .eds-feedback-text__icon--information circle {
|
|
405
|
+
fill: var(--components-form-feedbacktext-information-contrast-icon-symbol);
|
|
602
406
|
}
|
|
603
|
-
.eds-
|
|
604
|
-
|
|
407
|
+
.eds-feedback-text__icon--warning {
|
|
408
|
+
color: var(--components-form-feedbacktext-warning-standard-icon-fill);
|
|
605
409
|
}
|
|
606
|
-
.eds-
|
|
607
|
-
|
|
410
|
+
.eds-feedback-text__icon--warning .svg-exclamation {
|
|
411
|
+
fill: var(--components-form-feedbacktext-warning-standard-icon-symbol);
|
|
608
412
|
}
|
|
609
|
-
.eds-
|
|
610
|
-
|
|
413
|
+
.eds-contrast .eds-feedback-text__icon--warning {
|
|
414
|
+
color: var(--components-form-feedbacktext-warning-contrast-icon-fill);
|
|
611
415
|
}
|
|
612
|
-
.eds-
|
|
613
|
-
|
|
416
|
+
.eds-contrast .eds-feedback-text__icon--warning circle {
|
|
417
|
+
fill: var(--components-form-feedbacktext-warning-contrast-icon-symbol);
|
|
614
418
|
}
|
|
615
419
|
/* DO NOT CHANGE!*/
|
|
616
420
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
@@ -743,15 +547,204 @@
|
|
|
743
547
|
}
|
|
744
548
|
/* DO NOT CHANGE!*/
|
|
745
549
|
/* This file is automatically generated from @entur/tokens! Changes will be overwritten. */
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
550
|
+
.eds-switch {
|
|
551
|
+
cursor: pointer;
|
|
552
|
+
-webkit-user-select: none;
|
|
553
|
+
-moz-user-select: none;
|
|
554
|
+
user-select: none;
|
|
555
|
+
padding: 0.5rem 0;
|
|
556
|
+
width: -moz-fit-content;
|
|
557
|
+
width: fit-content;
|
|
750
558
|
}
|
|
751
|
-
.eds-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
559
|
+
.eds-switch input {
|
|
560
|
+
opacity: 0;
|
|
561
|
+
pointer-events: none;
|
|
562
|
+
position: absolute;
|
|
563
|
+
}
|
|
564
|
+
.eds-switch--right {
|
|
565
|
+
display: flex;
|
|
566
|
+
flex-direction: row;
|
|
567
|
+
align-items: center;
|
|
568
|
+
}
|
|
569
|
+
.eds-switch--bottom {
|
|
570
|
+
display: flex;
|
|
571
|
+
flex-direction: column;
|
|
572
|
+
align-items: center;
|
|
573
|
+
}
|
|
574
|
+
.eds-switch__circle {
|
|
575
|
+
border-radius: 50%;
|
|
576
|
+
height: 1.25rem;
|
|
577
|
+
width: 1.25rem;
|
|
578
|
+
content: "";
|
|
579
|
+
display: flex;
|
|
580
|
+
align-items: center;
|
|
581
|
+
justify-content: center;
|
|
582
|
+
transition: left 0.1s ease-in-out, background-color 0.1s ease-in-out;
|
|
583
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.25);
|
|
584
|
+
background-color: var(--components-form-switch-standard-switch);
|
|
585
|
+
top: 0.125rem;
|
|
586
|
+
left: 0.125rem;
|
|
587
|
+
position: relative;
|
|
588
|
+
}
|
|
589
|
+
.eds-switch__switch--large .eds-switch__circle {
|
|
590
|
+
height: 1.75rem;
|
|
591
|
+
width: 1.75rem;
|
|
592
|
+
}
|
|
593
|
+
.eds-contrast .eds-switch__circle {
|
|
594
|
+
box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
|
|
595
|
+
}
|
|
596
|
+
.eds-switch__switch {
|
|
597
|
+
position: relative;
|
|
598
|
+
background-color: var(--components-form-switch-standard-fill-false);
|
|
599
|
+
content: "";
|
|
600
|
+
display: block;
|
|
601
|
+
transition: background-color 0.1s ease-in-out;
|
|
602
|
+
height: 1.5rem;
|
|
603
|
+
width: 3rem;
|
|
604
|
+
border-radius: 1.5rem;
|
|
605
|
+
box-shadow: inset 0px 2px 2px -1px rgba(0, 0, 0, 0.1);
|
|
606
|
+
}
|
|
607
|
+
.eds-contrast .eds-switch__switch {
|
|
608
|
+
background-color: var(--components-form-switch-contrast-fill-false);
|
|
609
|
+
}
|
|
610
|
+
.eds-switch--right .eds-switch__switch {
|
|
611
|
+
margin-right: 0.75rem;
|
|
612
|
+
}
|
|
613
|
+
.eds-switch__switch svg g,
|
|
614
|
+
.eds-switch__switch path {
|
|
615
|
+
fill: var(--components-form-switch-standard-icon-false);
|
|
616
|
+
transition: fill ease-in-out 0.1s;
|
|
617
|
+
}
|
|
618
|
+
.eds-contrast .eds-switch__switch svg g,
|
|
619
|
+
.eds-contrast .eds-switch__switch path {
|
|
620
|
+
fill: var(--components-form-switch-contrast-icon-false);
|
|
621
|
+
}
|
|
622
|
+
:checked + .eds-switch__switch {
|
|
623
|
+
background-color: var(--eds-switch-color);
|
|
624
|
+
}
|
|
625
|
+
:checked + .eds-switch__switch .eds-switch__circle {
|
|
626
|
+
left: 1.625rem;
|
|
627
|
+
}
|
|
628
|
+
:checked + .eds-switch__switch .eds-switch__circle svg g,
|
|
629
|
+
:checked + .eds-switch__switch .eds-switch__circle path {
|
|
630
|
+
fill: var(--eds-switch-color);
|
|
631
|
+
}
|
|
632
|
+
.eds-contrast :checked + .eds-switch__switch {
|
|
633
|
+
background-color: var(--eds-switch-contrast-color);
|
|
634
|
+
}
|
|
635
|
+
:focus + .eds-switch__switch {
|
|
636
|
+
outline: 2px solid #181c56;
|
|
637
|
+
outline-color: var(--basecolors-stroke-focus-standard);
|
|
638
|
+
outline-offset: 0.125rem;
|
|
639
|
+
}
|
|
640
|
+
.eds-contrast :focus + .eds-switch__switch {
|
|
641
|
+
outline-color: var(--basecolors-stroke-focus-contrast);
|
|
642
|
+
}
|
|
643
|
+
.eds-switch__switch--large {
|
|
644
|
+
width: 3.75rem;
|
|
645
|
+
height: 2rem;
|
|
646
|
+
border-radius: 3.75rem;
|
|
647
|
+
}
|
|
648
|
+
:checked + .eds-switch__switch--large .eds-switch__circle {
|
|
649
|
+
left: 1.875rem;
|
|
650
|
+
}
|
|
651
|
+
.eds-switch__switch--large svg {
|
|
652
|
+
position: relative;
|
|
653
|
+
right: 0.05rem;
|
|
654
|
+
}
|
|
655
|
+
.eds-switch__label--large--right {
|
|
656
|
+
font-size: 1rem;
|
|
657
|
+
}
|
|
658
|
+
.eds-switch__label--large--bottom {
|
|
659
|
+
font-size: 0.875rem;
|
|
660
|
+
}
|
|
661
|
+
.eds-switch__label--medium--right {
|
|
662
|
+
font-size: 0.875rem;
|
|
663
|
+
}
|
|
664
|
+
.eds-switch__label--medium--bottom {
|
|
665
|
+
font-size: 0.75rem;
|
|
666
|
+
}
|
|
667
|
+
/* DO NOT CHANGE!*/
|
|
668
|
+
/* 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);
|
|
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.2",
|
|
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.7",
|
|
31
|
+
"@entur/tokens": "^3.13.5",
|
|
32
|
+
"@entur/tooltip": "^2.7.2",
|
|
33
|
+
"@entur/typography": "^1.8.31",
|
|
34
34
|
"@entur/utils": "^0.11.0",
|
|
35
35
|
"classnames": "^2.3.1"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "1008c4e487e114c41234cc4ce7da912519ad26a5"
|
|
38
38
|
}
|