@tet/tet-components 1.3.31-testing → 1.3.32-testing
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/cjs/tet-compare-card_4.cjs.entry.js +11 -7
- package/dist/cjs/tet-input.cjs.entry.js +1 -1
- package/dist/cjs/tet-text-list.cjs.entry.js +1 -1
- package/dist/collection/components/advanced/cards/tet-compare-card/tet-compare-card.css +2 -2
- package/dist/collection/components/simple/inputs/tet-dropdown/test/tet-dropdown.spec.js +34 -31
- package/dist/collection/components/simple/inputs/tet-dropdown/tet-dropdown.css +330 -12
- package/dist/collection/components/simple/inputs/tet-dropdown/tet-dropdown.js +9 -5
- package/dist/collection/components/simple/inputs/tet-input/tet-input.css +2 -2
- package/dist/collection/components/simple/lists/tet-text-list/tet-text-list.css +2 -2
- package/dist/components/{p-e6a1d99b.js → p-01658bf9.js} +10 -6
- package/dist/components/{p-631d20dc.js → p-6dc67683.js} +2 -2
- package/dist/components/{p-21067598.js → p-7f461760.js} +1 -1
- package/dist/components/{p-7257d75f.js → p-94119a15.js} +2 -2
- package/dist/components/{p-cabeb1d2.js → p-bc10eeff.js} +1 -1
- package/dist/components/{p-c07f740f.js → p-c9ebd68d.js} +1 -1
- package/dist/components/{p-75d2ac26.js → p-dcdc0e43.js} +1 -1
- package/dist/components/{p-162268e0.js → p-dee88c82.js} +2 -2
- package/dist/components/{p-e7d3bead.js → p-e8152cba.js} +1 -1
- package/dist/components/tet-address-offers-view.js +6 -6
- package/dist/components/tet-address-offers.js +1 -1
- package/dist/components/tet-address-search.js +1 -1
- package/dist/components/tet-asset-addresses.js +2 -2
- package/dist/components/tet-autocomplete-dropdown.js +1 -1
- package/dist/components/tet-availability-contact-form.js +1 -1
- package/dist/components/tet-b2b-service-calculator.js +2 -2
- package/dist/components/tet-business-compare-card.js +1 -1
- package/dist/components/tet-cloud-application-form-dialog.js +1 -1
- package/dist/components/tet-compare-card.js +1 -1
- package/dist/components/tet-compare-cards-tab.js +3 -3
- package/dist/components/tet-compare-cards.js +1 -1
- package/dist/components/tet-contact-form.js +1 -1
- package/dist/components/tet-dropdown.js +1 -1
- package/dist/components/tet-expandable-input.js +1 -1
- package/dist/components/tet-input.js +1 -1
- package/dist/components/tet-range-slider.js +1 -1
- package/dist/components/tet-text-list.js +1 -1
- package/dist/esm/tet-compare-card_4.entry.js +11 -7
- package/dist/esm/tet-input.entry.js +1 -1
- package/dist/esm/tet-text-list.entry.js +1 -1
- package/dist/tet-components/{p-0ebd1a56.entry.js → p-22f176dd.entry.js} +1 -1
- package/dist/tet-components/{p-63fbba90.entry.js → p-9d2999b8.entry.js} +1 -1
- package/dist/tet-components/{p-c6a500aa.entry.js → p-e15798c9.entry.js} +1 -1
- package/dist/tet-components/tet-components.css +1 -1
- package/dist/tet-components/tet-components.esm.js +1 -1
- package/package.json +1 -1
|
@@ -4855,7 +4855,7 @@
|
|
|
4855
4855
|
box-sizing: border-box;
|
|
4856
4856
|
padding: var(--input-padding);
|
|
4857
4857
|
border-radius: var(--input-border-radius);
|
|
4858
|
-
border: 0.0625rem solid var(--
|
|
4858
|
+
border: 0.0625rem solid var(--input-border-color);
|
|
4859
4859
|
color: var(--input-text-color);
|
|
4860
4860
|
background: var(--input-background-color);
|
|
4861
4861
|
outline: 0.125rem solid transparent;
|
|
@@ -4937,7 +4937,7 @@
|
|
|
4937
4937
|
color: var(--input-label-color);
|
|
4938
4938
|
font: 500 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";
|
|
4939
4939
|
}
|
|
4940
|
-
.tet-input__label.tet-
|
|
4940
|
+
.tet-input__label.tet-input__mint-original {
|
|
4941
4941
|
margin-left: 0 !important;
|
|
4942
4942
|
font-family: var(--font-family-fallback);
|
|
4943
4943
|
}
|
|
@@ -29,11 +29,12 @@ describe('tet-dropdown', () => {
|
|
|
29
29
|
<mock:shadow-root>
|
|
30
30
|
<div class="dropdown light">
|
|
31
31
|
<div class="dropdown__wrapper">
|
|
32
|
-
<label htmlfor="dropdown-button" class="
|
|
32
|
+
<label id="dropdown-label" htmlfor="dropdown-button" class="tet-input__label">Label</label>
|
|
33
33
|
<div class="dropdown__button-wrapper">
|
|
34
34
|
<button
|
|
35
35
|
id="dropdown-button"
|
|
36
36
|
class="dropdown__button"
|
|
37
|
+
aria-labelledby="dropdown-label"
|
|
37
38
|
aria-haspopup="listbox"
|
|
38
39
|
aria-controls="dropdown-options">
|
|
39
40
|
<span class="dropdown__button__selected">
|
|
@@ -43,36 +44,38 @@ describe('tet-dropdown', () => {
|
|
|
43
44
|
</button>
|
|
44
45
|
</div>
|
|
45
46
|
</div>
|
|
46
|
-
<
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
47
|
+
<div class="dropdown__options-focus-wrapper">
|
|
48
|
+
<div class="dropdown__options-scroll-wrapper">
|
|
49
|
+
<ul
|
|
50
|
+
id="dropdown-options"
|
|
51
|
+
class="dropdown__options"
|
|
52
|
+
role="listbox"
|
|
53
|
+
tabindex="-1"
|
|
54
|
+
aria-labelledby="dropdown-button">
|
|
55
|
+
<li
|
|
56
|
+
class="dropdown__option dropdown__option--single"
|
|
57
|
+
role="option"
|
|
58
|
+
tabindex="0"
|
|
59
|
+
data-value="0">
|
|
60
|
+
Apple
|
|
61
|
+
</li>
|
|
62
|
+
<li
|
|
63
|
+
class="dropdown__option dropdown__option--single"
|
|
64
|
+
role="option"
|
|
65
|
+
tabindex="0"
|
|
66
|
+
data-value="0">
|
|
67
|
+
Banana
|
|
68
|
+
</li>
|
|
69
|
+
<li
|
|
70
|
+
class="dropdown__option dropdown__option--single"
|
|
71
|
+
role="option"
|
|
72
|
+
tabindex="0"
|
|
73
|
+
data-value="0">
|
|
74
|
+
Pineapple
|
|
75
|
+
</li>
|
|
76
|
+
</ul>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
76
79
|
</div>
|
|
77
80
|
</mock:shadow-root>
|
|
78
81
|
</tet-dropdown>
|
|
@@ -350,7 +350,320 @@
|
|
|
350
350
|
font-family: var(--font-family-content);
|
|
351
351
|
}
|
|
352
352
|
|
|
353
|
+
@font-face {
|
|
354
|
+
font-family: "Gilroy";
|
|
355
|
+
font-style: normal;
|
|
356
|
+
font-weight: 400;
|
|
357
|
+
font-display: swap;
|
|
358
|
+
src: url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff");
|
|
359
|
+
}
|
|
360
|
+
@font-face {
|
|
361
|
+
font-family: "Gilroy";
|
|
362
|
+
font-style: normal;
|
|
363
|
+
font-weight: 500;
|
|
364
|
+
font-display: swap;
|
|
365
|
+
src: url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff");
|
|
366
|
+
}
|
|
367
|
+
@font-face {
|
|
368
|
+
font-family: "Gilroy";
|
|
369
|
+
font-style: normal;
|
|
370
|
+
font-weight: 600;
|
|
371
|
+
font-display: swap;
|
|
372
|
+
src: url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff");
|
|
373
|
+
}
|
|
374
|
+
@font-face {
|
|
375
|
+
font-family: "Gilroy";
|
|
376
|
+
font-style: normal;
|
|
377
|
+
font-weight: 700;
|
|
378
|
+
font-display: swap;
|
|
379
|
+
src: url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff");
|
|
380
|
+
}
|
|
381
|
+
@font-face {
|
|
382
|
+
font-family: "Inter";
|
|
383
|
+
font-style: normal;
|
|
384
|
+
font-weight: 400;
|
|
385
|
+
font-display: swap;
|
|
386
|
+
src: url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff");
|
|
387
|
+
}
|
|
388
|
+
@font-face {
|
|
389
|
+
font-family: "Inter";
|
|
390
|
+
font-style: normal;
|
|
391
|
+
font-weight: 500;
|
|
392
|
+
font-display: swap;
|
|
393
|
+
src: url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff");
|
|
394
|
+
}
|
|
395
|
+
@font-face {
|
|
396
|
+
font-family: "Inter";
|
|
397
|
+
font-style: normal;
|
|
398
|
+
font-weight: 600;
|
|
399
|
+
font-display: swap;
|
|
400
|
+
src: url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff");
|
|
401
|
+
}
|
|
402
|
+
@font-face {
|
|
403
|
+
font-family: "Gilroy";
|
|
404
|
+
font-style: normal;
|
|
405
|
+
font-weight: 400;
|
|
406
|
+
font-display: swap;
|
|
407
|
+
src: url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff");
|
|
408
|
+
}
|
|
409
|
+
@font-face {
|
|
410
|
+
font-family: "Gilroy";
|
|
411
|
+
font-style: normal;
|
|
412
|
+
font-weight: 500;
|
|
413
|
+
font-display: swap;
|
|
414
|
+
src: url("assets/fonts/Gilroy-W05-Medium.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Medium.woff") format("woff");
|
|
415
|
+
}
|
|
416
|
+
@font-face {
|
|
417
|
+
font-family: "Gilroy";
|
|
418
|
+
font-style: normal;
|
|
419
|
+
font-weight: 600;
|
|
420
|
+
font-display: swap;
|
|
421
|
+
src: url("assets/fonts/Gilroy-W05-Semibold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Semibold.woff") format("woff");
|
|
422
|
+
}
|
|
423
|
+
@font-face {
|
|
424
|
+
font-family: "Gilroy";
|
|
425
|
+
font-style: normal;
|
|
426
|
+
font-weight: 700;
|
|
427
|
+
font-display: swap;
|
|
428
|
+
src: url("assets/fonts/Gilroy-W05-Bold.woff2") format("woff2"), url("assets/fonts/Gilroy-W05-Bold.woff") format("woff");
|
|
429
|
+
}
|
|
430
|
+
@font-face {
|
|
431
|
+
font-family: "Inter";
|
|
432
|
+
font-style: normal;
|
|
433
|
+
font-weight: 400;
|
|
434
|
+
font-display: swap;
|
|
435
|
+
src: url("assets/fonts/Inter-Regular.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Regular.woff?v=3.19") format("woff");
|
|
436
|
+
}
|
|
437
|
+
@font-face {
|
|
438
|
+
font-family: "Inter";
|
|
439
|
+
font-style: normal;
|
|
440
|
+
font-weight: 500;
|
|
441
|
+
font-display: swap;
|
|
442
|
+
src: url("assets/fonts/Inter-Medium.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-Medium.woff?v=3.19") format("woff");
|
|
443
|
+
}
|
|
444
|
+
@font-face {
|
|
445
|
+
font-family: "Inter";
|
|
446
|
+
font-style: normal;
|
|
447
|
+
font-weight: 600;
|
|
448
|
+
font-display: swap;
|
|
449
|
+
src: url("assets/fonts/Inter-SemiBold.woff2?v=3.19") format("woff2"), url("assets/fonts/Inter-SemiBold.woff?v=3.19") format("woff");
|
|
450
|
+
}
|
|
353
451
|
:host {
|
|
452
|
+
--font-family-fallback: Gilroy, Arial, sans-serif;
|
|
453
|
+
--font-family-headline: Gilroy;
|
|
454
|
+
--font-family-content: Inter, var(--font-family-fallback);
|
|
455
|
+
font-family: var(--font-family-content);
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
:root, :host {
|
|
459
|
+
--input-height: 2.75rem;
|
|
460
|
+
--input-padding: 0.5rem;
|
|
461
|
+
--input-font-size: 1rem;
|
|
462
|
+
--input-border-radius: 0.1875rem;
|
|
463
|
+
--input-color-error: rgb(233, 69, 54);
|
|
464
|
+
--input-font-family: var(--font-family-content);
|
|
465
|
+
--input-icon-size: 1.5rem;
|
|
466
|
+
--input-icon-top-position: auto;
|
|
467
|
+
--input-icon-color: rgb(10, 11, 13);
|
|
468
|
+
--input-focus-icon-color: rgb(10, 11, 13);
|
|
469
|
+
--input-label-color: rgb(10, 11, 13);
|
|
470
|
+
--input-text-color: rgb(10, 11, 13);
|
|
471
|
+
--input-background-color: rgb(255, 255, 255);
|
|
472
|
+
--input-border-color: rgb(153, 160, 174);
|
|
473
|
+
--input-placeholder-color: rgb(153, 160, 174);
|
|
474
|
+
--input-hover-background-color: rgba(88, 99, 116, 0.08);
|
|
475
|
+
--input-focus-background-color: rgb(255, 255, 255);
|
|
476
|
+
--input-focus-border-color: rgb(10, 11, 13);
|
|
477
|
+
--input-focus-outline-color: rgba(88, 99, 116, 0.12);
|
|
478
|
+
--input-disabled-label-color: rgb(88, 99, 116);
|
|
479
|
+
--input-disabled-text-color: rgb(153, 160, 174);
|
|
480
|
+
--input-border-disabled: rgb(215, 219, 224);
|
|
481
|
+
--input-disabled-background-color: rgba(88, 99, 116, 0.08);
|
|
482
|
+
--input-disabled-icon-color: var(--input-icon-color);
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.tet-input__dark {
|
|
486
|
+
--input-icon-color: var(--tc-icon-primary-dark);
|
|
487
|
+
--input-label-color: var(--tc-text-primary-dark);
|
|
488
|
+
--input-text-color: var(--tc-text-primary-dark);
|
|
489
|
+
--input-background-color: var(--tc-layer-primary-dark);
|
|
490
|
+
--input-border-color: var(--tc-border-secondary-dark);
|
|
491
|
+
--input-placeholder-color: var(--tc-button-text-inverse-disabled-dark);
|
|
492
|
+
--input-hover-background-color: var(--tc-button-primary-background-inverse-hover-dark);
|
|
493
|
+
--input-focus-icon-color: var(--tc-icon-primary-dark);
|
|
494
|
+
--input-focus-background-color: var(--tc-layer-primary-dark);
|
|
495
|
+
--input-focus-border-color: var(--tc-border-primary-dark);
|
|
496
|
+
--input-focus-outline-color: var(--tc-text-input-border-active-dark);
|
|
497
|
+
--input-disabled-label-color: var(--tc-text-secondary-dark);
|
|
498
|
+
--input-disabled-text-color: var(--tc-button-text-inverse-disabled-dark);
|
|
499
|
+
--input-border-disabled: var(--tc-border-quaternary-dark);
|
|
500
|
+
--input-disabled-background-color: var(--tc-button-primary-background-inverse-hover-dark);
|
|
501
|
+
--input-disabled-icon-color: var(--tc-button-icon-inverse-disabled-dark);
|
|
502
|
+
--input-color-error: var(--tc-alert-accent-error-dark);
|
|
503
|
+
}
|
|
504
|
+
.tet-input__dark.tet-input__dark.keyboard-focus:focus {
|
|
505
|
+
outline: 0.125rem solid var(--tc-blue-40);
|
|
506
|
+
outline: 0.125rem solid var(--tc-blue-40-dark);
|
|
507
|
+
outline-offset: 0.125rem;
|
|
508
|
+
transition: outline 0s;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.tet-input__mint {
|
|
512
|
+
--input-icon-color: rgb(247, 247, 247);
|
|
513
|
+
--input-focus-icon-color: rgb(247, 247, 247);
|
|
514
|
+
--input-label-color: rgb(247, 247, 247);
|
|
515
|
+
--input-text-color: rgb(255, 255, 255);
|
|
516
|
+
--input-background-color: transparent;
|
|
517
|
+
--input-border-color: rgb(88, 99, 116);
|
|
518
|
+
--input-placeholder-color: rgb(67, 75, 86);
|
|
519
|
+
--input-hover-background-color: rgba(26, 213, 219, 0.08);
|
|
520
|
+
--input-focus-background-color: transparent;
|
|
521
|
+
--input-focus-border-color: rgb(26, 213, 219);
|
|
522
|
+
--input-focus-outline-color: rgba(26, 213, 219, 0.24);
|
|
523
|
+
--input-disabled-label-color: rgb(153, 160, 174);
|
|
524
|
+
--input-border-disabled: rgb(67, 75, 86);
|
|
525
|
+
--input-disabled-background-color: rgba(153, 160, 174, 0.08);
|
|
526
|
+
--input-disabled-text-color: rgb(67, 75, 86);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.tet-input__light {
|
|
530
|
+
--input-icon-color: var(--tc-icon-primary);
|
|
531
|
+
--input-label-color: var(--tc-text-primary);
|
|
532
|
+
--input-text-color: var(--tc-text-primary);
|
|
533
|
+
--input-background-color: var(--tc-layer-primary);
|
|
534
|
+
--input-border-color: var(--tc-border-secondary);
|
|
535
|
+
--input-placeholder-color: var(--tc-button-text-inverse-disabled);
|
|
536
|
+
--input-hover-background-color: var(--tc-button-primary-background-inverse-hover);
|
|
537
|
+
--input-focus-icon-color: var(--tc-icon-primary);
|
|
538
|
+
--input-focus-background-color: var(--tc-layer-primary);
|
|
539
|
+
--input-focus-border-color: var(--tc-border-primary);
|
|
540
|
+
--input-focus-outline-color: var(--tc-text-input-border-active);
|
|
541
|
+
--input-disabled-label-color: var(--tc-text-secondary);
|
|
542
|
+
--input-disabled-text-color: var(--tc-button-text-inverse-disabled);
|
|
543
|
+
--input-border-disabled: var(--tc-border-quaternary);
|
|
544
|
+
--input-disabled-background-color: var(--tc-button-primary-background-inverse-hover);
|
|
545
|
+
--input-disabled-icon-color: var(--tc-button-icon-inverse-disabled);
|
|
546
|
+
--input-color-error: var(--tc-alert-accent-error);
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
.tet-input__mint-original {
|
|
550
|
+
--input-icon-color: #9ba5be;
|
|
551
|
+
--input-label-color: #f5f5f5;
|
|
552
|
+
--input-text-color: #f5f5f5;
|
|
553
|
+
--input-background-color: #1d2128;
|
|
554
|
+
--input-border-color: #2b3036;
|
|
555
|
+
--input-placeholder-color: rgba(155, 165, 190, 0.8);
|
|
556
|
+
--input-focus-icon-color: #aeb7bc;
|
|
557
|
+
--input-focus-border-color: #01cbe0;
|
|
558
|
+
--input-focus-background-color: #1d2128;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
.tet-input__base {
|
|
562
|
+
width: 100%;
|
|
563
|
+
height: var(--input-height);
|
|
564
|
+
box-sizing: border-box;
|
|
565
|
+
padding: var(--input-padding);
|
|
566
|
+
border-radius: var(--input-border-radius);
|
|
567
|
+
border: 0.0625rem solid var(--input-border-color);
|
|
568
|
+
color: var(--input-text-color);
|
|
569
|
+
background: var(--input-background-color);
|
|
570
|
+
outline: 0.125rem solid transparent;
|
|
571
|
+
font-size: inherit;
|
|
572
|
+
font-family: var(--input-font-family);
|
|
573
|
+
font-weight: 500;
|
|
574
|
+
line-height: 1.25rem;
|
|
575
|
+
letter-spacing: -0.005625rem;
|
|
576
|
+
/**
|
|
577
|
+
* Deprecated: Forms now use the default (classic) input theming.
|
|
578
|
+
* With the introduction of light and dark themes, the code below would
|
|
579
|
+
* cause input fields to appear differently depending on the theme.
|
|
580
|
+
*
|
|
581
|
+
* // The light and mint-original themes are currently used in the Forms application.
|
|
582
|
+
* &.tet-input__light,
|
|
583
|
+
* &.tet-input__mint-original {
|
|
584
|
+
* min-height: unset;
|
|
585
|
+
* height: 2.5rem;
|
|
586
|
+
* font-family: var(--font-family-fallback);
|
|
587
|
+
* font-size: 1rem;
|
|
588
|
+
* font-weight: 400;
|
|
589
|
+
* line-height: 1.5;
|
|
590
|
+
* letter-spacing: normal;
|
|
591
|
+
* }
|
|
592
|
+
*/
|
|
593
|
+
}
|
|
594
|
+
.tet-input__base::placeholder {
|
|
595
|
+
color: var(--input-placeholder-color);
|
|
596
|
+
}
|
|
597
|
+
.tet-input__base.tet-input__mint-original:not(:disabled):hover {
|
|
598
|
+
background-color: #1d2128;
|
|
599
|
+
border-color: #01cbe0;
|
|
600
|
+
box-shadow: 0 0.0625rem 0.25rem 0.125rem rgba(1, 203, 224, 0.4);
|
|
601
|
+
}
|
|
602
|
+
.tet-input__base.tet-input__mint-original:not(:disabled):hover.error, .tet-input__base.tet-input__mint-original:not(:disabled):focus.error, .tet-input__base.tet-input__mint-original:not(:disabled):active.error {
|
|
603
|
+
border-color: rgb(233, 69, 54);
|
|
604
|
+
}
|
|
605
|
+
.tet-input__base.tet-input__mint-original:not(:disabled):focus, .tet-input__base.tet-input__mint-original:not(:disabled):active {
|
|
606
|
+
outline: none;
|
|
607
|
+
}
|
|
608
|
+
.tet-input__base.tet-input__mint-original.keyboard-focus:focus {
|
|
609
|
+
outline: 0.125rem solid var(--tc-blue-40);
|
|
610
|
+
outline-offset: 0.125rem;
|
|
611
|
+
transition: outline 0s;
|
|
612
|
+
box-shadow: none;
|
|
613
|
+
}
|
|
614
|
+
.tet-input__base[disabled] {
|
|
615
|
+
cursor: not-allowed;
|
|
616
|
+
outline: none;
|
|
617
|
+
border: 0.0625rem solid var(--input-border-disabled);
|
|
618
|
+
background-color: var(--input-disabled-background-color);
|
|
619
|
+
color: var(--input-disabled-text-color);
|
|
620
|
+
}
|
|
621
|
+
.tet-input__base:not(:disabled).error {
|
|
622
|
+
border-color: var(--input-color-error);
|
|
623
|
+
}
|
|
624
|
+
.tet-input__base:not(:disabled):hover {
|
|
625
|
+
background: var(--input-hover-background-color);
|
|
626
|
+
}
|
|
627
|
+
.tet-input__base:not(:disabled):focus, .tet-input__base:not(:disabled):active {
|
|
628
|
+
background: var(--input-focus-background-color);
|
|
629
|
+
border: 0.0625rem solid var(--input-focus-border-color);
|
|
630
|
+
box-shadow: 0 0 0 0.25rem var(--input-focus-outline-color);
|
|
631
|
+
}
|
|
632
|
+
.tet-input__base.keyboard-focus:focus {
|
|
633
|
+
outline: 0.125rem solid var(--tc-blue-40);
|
|
634
|
+
outline-offset: 0.125rem;
|
|
635
|
+
transition: outline 0s;
|
|
636
|
+
box-shadow: none;
|
|
637
|
+
}
|
|
638
|
+
.tet-input__base.error {
|
|
639
|
+
border-color: var(--input-color-error);
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
.tet-input__label {
|
|
643
|
+
display: block;
|
|
644
|
+
margin-left: 0.25rem !important;
|
|
645
|
+
margin-bottom: 0.25rem !important;
|
|
646
|
+
color: var(--input-label-color);
|
|
647
|
+
font: 500 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";
|
|
648
|
+
}
|
|
649
|
+
.tet-input__label.tet-input__mint-original {
|
|
650
|
+
margin-left: 0 !important;
|
|
651
|
+
font-family: var(--font-family-fallback);
|
|
652
|
+
}
|
|
653
|
+
.tet-input__label:has(~ .input-container input[disabled]) {
|
|
654
|
+
color: var(--input-disabled-label-color);
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
.tet-input__error-message {
|
|
658
|
+
font: 500 0.75rem/1rem "Inter", "Gilroy, Arial, sans-serif";
|
|
659
|
+
color: var(--input-color-error);
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
:host {
|
|
663
|
+
/**
|
|
664
|
+
* @prop --options-max-height: The maximum height of the options panel.
|
|
665
|
+
*/
|
|
666
|
+
--options-max-height: 15.625rem;
|
|
354
667
|
--border-radius: 0.625rem;
|
|
355
668
|
--focus-border-radius: 0.875rem;
|
|
356
669
|
--option-padding: 0.5rem 0.75rem;
|
|
@@ -398,13 +711,8 @@
|
|
|
398
711
|
--focus-button-background-color: rgba(26, 213, 219, 0.32);
|
|
399
712
|
}
|
|
400
713
|
.dropdown * {
|
|
401
|
-
font: 500 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";
|
|
402
714
|
color: var(--text-color);
|
|
403
715
|
}
|
|
404
|
-
.dropdown__label {
|
|
405
|
-
margin-left: 0.375rem;
|
|
406
|
-
margin-bottom: 0.25rem;
|
|
407
|
-
}
|
|
408
716
|
.dropdown__wrapper {
|
|
409
717
|
position: relative;
|
|
410
718
|
display: flex;
|
|
@@ -432,6 +740,7 @@
|
|
|
432
740
|
--icon-color: var(--text-color);
|
|
433
741
|
}
|
|
434
742
|
.dropdown__button {
|
|
743
|
+
font: 500 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";
|
|
435
744
|
display: flex;
|
|
436
745
|
height: 2.75rem;
|
|
437
746
|
width: 100%;
|
|
@@ -486,6 +795,7 @@
|
|
|
486
795
|
margin-right: 0.5rem;
|
|
487
796
|
}
|
|
488
797
|
.dropdown__option {
|
|
798
|
+
font: 400 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";
|
|
489
799
|
display: flex;
|
|
490
800
|
align-items: center;
|
|
491
801
|
border-radius: 0.125rem;
|
|
@@ -510,6 +820,9 @@
|
|
|
510
820
|
.dropdown__option__labelright {
|
|
511
821
|
font: 400 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";
|
|
512
822
|
}
|
|
823
|
+
.dropdown__option--single {
|
|
824
|
+
position: relative;
|
|
825
|
+
}
|
|
513
826
|
.dropdown__option__flex {
|
|
514
827
|
display: flex;
|
|
515
828
|
flex-direction: column;
|
|
@@ -545,7 +858,7 @@
|
|
|
545
858
|
border-color: var(--option-accent-color);
|
|
546
859
|
background-color: var(--option-accent-color);
|
|
547
860
|
}
|
|
548
|
-
.dropdown__options {
|
|
861
|
+
.dropdown__options-focus-wrapper {
|
|
549
862
|
z-index: 99999;
|
|
550
863
|
position: absolute;
|
|
551
864
|
top: 100%;
|
|
@@ -557,16 +870,21 @@
|
|
|
557
870
|
padding: 0 0.125rem 0.125rem 0.125rem;
|
|
558
871
|
border-radius: 0 0 var(--focus-border-radius) var(--focus-border-radius);
|
|
559
872
|
}
|
|
560
|
-
.dropdown__options-wrapper {
|
|
561
|
-
display: none;
|
|
562
|
-
flex-direction: column;
|
|
563
|
-
padding: 0.625rem 0;
|
|
873
|
+
.dropdown__options-scroll-wrapper {
|
|
564
874
|
border: 0.0625rem solid var(--border-color);
|
|
565
875
|
border-top: none;
|
|
566
876
|
border-radius: 0 0 var(--border-radius) var(--border-radius);
|
|
877
|
+
overflow: hidden;
|
|
878
|
+
}
|
|
879
|
+
.dropdown__options {
|
|
880
|
+
display: none;
|
|
881
|
+
flex-direction: column;
|
|
882
|
+
padding: 0.625rem 0;
|
|
567
883
|
background-color: var(--dropdown-background-color);
|
|
884
|
+
max-height: var(--options-max-height);
|
|
885
|
+
overflow-y: auto;
|
|
568
886
|
}
|
|
569
|
-
.dropdown--open .dropdown__options-wrapper, .dropdown--open .dropdown__options {
|
|
887
|
+
.dropdown--open .dropdown__options-focus-wrapper, .dropdown--open .dropdown__options {
|
|
570
888
|
display: flex;
|
|
571
889
|
}
|
|
572
890
|
.dropdown--open .dropdown__button {
|
|
@@ -575,7 +893,7 @@
|
|
|
575
893
|
background-color: var(--hover-button-background-color);
|
|
576
894
|
outline: none;
|
|
577
895
|
}
|
|
578
|
-
.dropdown--open.focus-visible .dropdown__options {
|
|
896
|
+
.dropdown--open.focus-visible .dropdown__options-focus-wrapper {
|
|
579
897
|
border-color: var(--keyboard-focus-outline-color);
|
|
580
898
|
}
|
|
581
899
|
.dropdown--open.focus-visible .dropdown__button-wrapper {
|
|
@@ -136,7 +136,7 @@ export class TetDropdown {
|
|
|
136
136
|
*/
|
|
137
137
|
renderButton() {
|
|
138
138
|
const { label, labelLogo, labelLogoGrayscale, labelRight, currentButtonLabel, currentButtonLabelRight, currentButtonLabelRightColor, isOpen, disabled } = this;
|
|
139
|
-
return (h("div", { ref: el => (this.dropdownWrapperElement = el), class: { 'dropdown__wrapper': true, 'disabled': disabled } }, label && h("label", { htmlFor: 'dropdown-button', class: "
|
|
139
|
+
return (h("div", { ref: el => (this.dropdownWrapperElement = el), class: { 'dropdown__wrapper': true, 'disabled': disabled } }, label && h("label", { id: 'dropdown-label', htmlFor: 'dropdown-button', class: "tet-input__label" }, label), h("div", { class: "dropdown__button-wrapper" }, h("button", { id: 'dropdown-button', class: "dropdown__button", "aria-labelledby": `dropdown-label`, "aria-haspopup": "listbox", "aria-controls": 'dropdown-options', "aria-expanded": isOpen, ref: el => (this.dropdownButtonElement = el), onClick: this.handleDropdownToggle(), onKeyDown: this.handleButtonKeydown(), disabled: disabled }, !disabled && labelLogo && h("img", { src: labelLogo, alt: label }), disabled && labelLogoGrayscale && h("img", { src: labelLogoGrayscale, alt: label }), h("span", { class: { 'dropdown__button__selected': true, 'dropdown__button__selected--flex': this.flexLayout } }, currentButtonLabel), labelRight && h("span", { class: "dropdown__button__labelright", style: { 'color': currentButtonLabelRightColor } }, currentButtonLabelRight), h("tet-icon", { class: "dropdown__icon dropdown__chevron-icon", name: isOpen ? 'chevron-up' : 'chevron-down' })))));
|
|
140
140
|
}
|
|
141
141
|
/**
|
|
142
142
|
* Renders the dropdown options menu.
|
|
@@ -147,7 +147,7 @@ export class TetDropdown {
|
|
|
147
147
|
if (this.flexLayout) {
|
|
148
148
|
mappedOptions = options.map(this.renderFlexOptionItem.bind(this));
|
|
149
149
|
}
|
|
150
|
-
return (h("ul", { id: `dropdown-options`, ref: el => (this.dropdownOptionsElement = el), class: "dropdown__options", role: "listbox", tabindex: "-1", "aria-labelledby": `dropdown-button`, "aria-expanded": isOpen, "aria-multiselectable": allowMultiple },
|
|
150
|
+
return (h("div", { class: "dropdown__options-focus-wrapper" }, h("div", { class: "dropdown__options-scroll-wrapper" }, h("ul", { id: `dropdown-options`, ref: el => (this.dropdownOptionsElement = el), class: "dropdown__options", role: "listbox", tabindex: "-1", "aria-labelledby": `dropdown-button`, "aria-expanded": isOpen, "aria-multiselectable": allowMultiple }, mappedOptions))));
|
|
151
151
|
}
|
|
152
152
|
/**
|
|
153
153
|
* Renders a dropdown option item.
|
|
@@ -160,7 +160,11 @@ export class TetDropdown {
|
|
|
160
160
|
const selected = selectedOptionIndexes[0] === index;
|
|
161
161
|
const handleClick = this.handleOptionSelect(index);
|
|
162
162
|
const handleKeyDown = this.handleOptionKeydown(handleClick);
|
|
163
|
-
return (h("li", { class: {
|
|
163
|
+
return (h("li", { class: {
|
|
164
|
+
'dropdown__option': true,
|
|
165
|
+
'dropdown__option--single': true,
|
|
166
|
+
'dropdown__option--selected': selected
|
|
167
|
+
}, role: "option", tabindex: "0", "aria-selected": selected, "data-value": value, onClick: handleClick, onKeyDown: handleKeyDown }, label, selected && h("tet-icon", { class: "dropdown__icon", name: "check" })));
|
|
164
168
|
}
|
|
165
169
|
/**
|
|
166
170
|
* Renders a dropdown option item.
|
|
@@ -247,7 +251,7 @@ export class TetDropdown {
|
|
|
247
251
|
this.isOpen = true;
|
|
248
252
|
this.isKeyboardFocus = true;
|
|
249
253
|
}
|
|
250
|
-
const { children } = this.dropdownOptionsElement
|
|
254
|
+
const { children } = this.dropdownOptionsElement;
|
|
251
255
|
if (children.length == 0) {
|
|
252
256
|
return;
|
|
253
257
|
}
|
|
@@ -359,7 +363,7 @@ export class TetDropdown {
|
|
|
359
363
|
}
|
|
360
364
|
render() {
|
|
361
365
|
const { theme, isOpen, isKeyboardFocus } = this;
|
|
362
|
-
return (h(Host, { key: '
|
|
366
|
+
return (h(Host, { key: '2e363361db992d3f37ae62eb6b870ceaba68ac5c' }, h("div", { key: 'e99a4899dbb23c041ad9574b143777928b5c0d3a', class: { 'dropdown': true, 'dropdown--open': isOpen, 'focus-visible': isKeyboardFocus && isOpen, [`${theme}`]: true } }, this.renderButton(), this.renderOptions())));
|
|
363
367
|
}
|
|
364
368
|
static get is() { return "tet-dropdown"; }
|
|
365
369
|
static get encapsulation() { return "shadow"; }
|
|
@@ -564,7 +564,7 @@
|
|
|
564
564
|
box-sizing: border-box;
|
|
565
565
|
padding: var(--input-padding);
|
|
566
566
|
border-radius: var(--input-border-radius);
|
|
567
|
-
border: 0.0625rem solid var(--
|
|
567
|
+
border: 0.0625rem solid var(--input-border-color);
|
|
568
568
|
color: var(--input-text-color);
|
|
569
569
|
background: var(--input-background-color);
|
|
570
570
|
outline: 0.125rem solid transparent;
|
|
@@ -646,7 +646,7 @@
|
|
|
646
646
|
color: var(--input-label-color);
|
|
647
647
|
font: 500 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";
|
|
648
648
|
}
|
|
649
|
-
.tet-input__label.tet-
|
|
649
|
+
.tet-input__label.tet-input__mint-original {
|
|
650
650
|
margin-left: 0 !important;
|
|
651
651
|
font-family: var(--font-family-fallback);
|
|
652
652
|
}
|
|
@@ -4856,7 +4856,7 @@
|
|
|
4856
4856
|
box-sizing: border-box;
|
|
4857
4857
|
padding: var(--input-padding);
|
|
4858
4858
|
border-radius: var(--input-border-radius);
|
|
4859
|
-
border: 0.0625rem solid var(--
|
|
4859
|
+
border: 0.0625rem solid var(--input-border-color);
|
|
4860
4860
|
color: var(--input-text-color);
|
|
4861
4861
|
background: var(--input-background-color);
|
|
4862
4862
|
outline: 0.125rem solid transparent;
|
|
@@ -4938,7 +4938,7 @@
|
|
|
4938
4938
|
color: var(--input-label-color);
|
|
4939
4939
|
font: 500 0.875rem/1.25rem "Inter", "Gilroy, Arial, sans-serif";
|
|
4940
4940
|
}
|
|
4941
|
-
.tet-input__label.tet-
|
|
4941
|
+
.tet-input__label.tet-input__mint-original {
|
|
4942
4942
|
margin-left: 0 !important;
|
|
4943
4943
|
font-family: var(--font-family-fallback);
|
|
4944
4944
|
}
|