@triptease/tt-navbar 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/TtNavbar.js +106 -64
- package/dist/src/TtNavbar.js.map +1 -1
- package/dist/src/styles.js +253 -6
- package/dist/src/styles.js.map +1 -1
- package/dist/web/TtNavbar.js +734 -337
- package/dist/web/TtNavbar.js.map +4 -4
- package/dist/web/index.js +734 -337
- package/dist/web/index.js.map +4 -4
- package/dist/web/styles.js +254 -7
- package/dist/web/styles.js.map +2 -2
- package/dist/web/tt-navbar.js +734 -337
- package/dist/web/tt-navbar.js.map +4 -4
- package/package.json +2 -1
- package/src/TtNavbar.ts +106 -64
- package/src/styles.ts +253 -6
package/dist/web/styles.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @triptease/tt-navbar v0.0.
|
|
2
|
+
* @triptease/tt-navbar v0.0.9
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
// ../../node_modules/@lit/reactive-element/css-tag.js
|
|
@@ -553,27 +553,274 @@ o4?.({ LitElement: i4 });
|
|
|
553
553
|
// src/styles.ts
|
|
554
554
|
var styles = i`
|
|
555
555
|
:host {
|
|
556
|
+
--nav-bar-width: 260px;
|
|
557
|
+
|
|
556
558
|
display: block;
|
|
557
559
|
height: 100vh;
|
|
558
|
-
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
* {
|
|
563
|
+
box-sizing: border-box;
|
|
559
564
|
}
|
|
560
565
|
|
|
561
566
|
nav {
|
|
567
|
+
max-width: var(--nav-bar-width);
|
|
568
|
+
width: var(--nav-bar-width);
|
|
569
|
+
min-height: 100vh;
|
|
570
|
+
height: max-content;
|
|
562
571
|
display: flex;
|
|
572
|
+
align-items: start;
|
|
573
|
+
gap: var(--space-scale-3-5);
|
|
563
574
|
flex-direction: column;
|
|
575
|
+
background-color: var(--color-surface-inverted-100);
|
|
576
|
+
color: var(--color-text-inverted-400);
|
|
577
|
+
padding-top: var(--space-scale-2);
|
|
578
|
+
padding-bottom: var(--space-scale-2);
|
|
579
|
+
z-index: 1;
|
|
580
|
+
|
|
581
|
+
.nav-items {
|
|
582
|
+
display: flex;
|
|
583
|
+
flex-direction: column;
|
|
584
|
+
padding: 0 var(--space-scale-1);
|
|
585
|
+
width: 100%;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
hr {
|
|
589
|
+
width: 100%;
|
|
590
|
+
height: 1px;
|
|
591
|
+
background-color: var(--color-surface-inverted-200);
|
|
592
|
+
border: none;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
#tertiary-nav {
|
|
596
|
+
display: flex;
|
|
597
|
+
flex-direction: column;
|
|
598
|
+
margin-top: auto;
|
|
599
|
+
gap: var(--space-scale-2);
|
|
600
|
+
width: 100%;
|
|
601
|
+
|
|
602
|
+
.external-link {
|
|
603
|
+
font-size: var(--font-size-100);
|
|
604
|
+
line-height: var(--font-line-height-100);
|
|
605
|
+
|
|
606
|
+
.icon {
|
|
607
|
+
width: var(--space-scale-2);
|
|
608
|
+
height: var(--space-scale-2);
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.icon {
|
|
614
|
+
display: flex;
|
|
615
|
+
align-items: center;
|
|
616
|
+
width: var(--space-scale-3);
|
|
617
|
+
height: var(--space-scale-3);
|
|
618
|
+
color: var(--nav-item-color);
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.nav-item {
|
|
622
|
+
display: flex;
|
|
623
|
+
font-size: var(--font-size-100);
|
|
624
|
+
line-height: var(--font-line-height-100);
|
|
625
|
+
gap: var(--space-scale-1-5);
|
|
626
|
+
border-radius: var(--border-radius-100);
|
|
627
|
+
color: var(--nav-item-color);
|
|
628
|
+
align-items: center;
|
|
629
|
+
padding: var(--space-scale-1);
|
|
630
|
+
width: 100%;
|
|
631
|
+
text-decoration: none;
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
details {
|
|
636
|
+
border-radius: var(--border-radius-100);
|
|
637
|
+
|
|
638
|
+
summary {
|
|
639
|
+
font-size: var(--font-size-100);
|
|
640
|
+
line-height: var(--font-line-height-100);
|
|
641
|
+
position: relative;
|
|
642
|
+
display: flex;
|
|
643
|
+
align-items: baseline;
|
|
644
|
+
|
|
645
|
+
&::marker {
|
|
646
|
+
content: '';
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
.chevron > svg {
|
|
651
|
+
margin-left: auto;
|
|
652
|
+
margin-right: var(--space-scale-1);
|
|
653
|
+
width: var(--space-scale-2);
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
&[open] .chevron > svg {
|
|
657
|
+
transform: rotate(180deg);
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
.dropdown-items {
|
|
661
|
+
display: flex;
|
|
662
|
+
flex-direction: column;
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
details > summary {
|
|
667
|
+
display: flex;
|
|
668
|
+
gap: var(--space-scale-1-5);
|
|
669
|
+
padding: var(--space-scale-1);
|
|
670
|
+
border-radius: var(--border-radius-100);
|
|
671
|
+
color: var(--nav-item-color);
|
|
672
|
+
align-items: center;
|
|
673
|
+
|
|
674
|
+
a {
|
|
675
|
+
color: var(--nav-item-color);
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
&:hover,
|
|
679
|
+
&:focus-visible {
|
|
680
|
+
background-color: var(--color-surface-inverted-200);
|
|
681
|
+
border-radius: var(--border-radius-100);
|
|
682
|
+
text-decoration: none;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
.sub-nav-item {
|
|
687
|
+
padding-left: 44px;
|
|
688
|
+
padding-top: 10px;
|
|
689
|
+
padding-bottom: 10px;
|
|
690
|
+
color: var(--color-text-inverted-400);
|
|
691
|
+
font-size: var(--font-size-100);
|
|
692
|
+
line-height: var(--font-line-height-100);
|
|
693
|
+
text-decoration: none;
|
|
694
|
+
|
|
695
|
+
button {
|
|
696
|
+
color: var(--color-text-inverted-400);
|
|
697
|
+
padding: 0;
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
.sub-nav-item:hover,
|
|
702
|
+
.sub-nav-item:focus-visible,
|
|
703
|
+
.nav-item:hover,
|
|
704
|
+
.nav-item:focus-visible {
|
|
705
|
+
background-color: var(--color-surface-inverted-200);
|
|
706
|
+
border-radius: var(--border-radius-100);
|
|
707
|
+
text-decoration: none;
|
|
708
|
+
color: var(--color-text-inverted-400);
|
|
709
|
+
|
|
710
|
+
.icon {
|
|
711
|
+
color: var(--color-text-inverted-400);
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
.current-page {
|
|
716
|
+
--nav-item-color: var(--color-primary-400);
|
|
717
|
+
border-radius: var(--border-radius-100);
|
|
718
|
+
background-color: var(--color-primary-100);
|
|
719
|
+
color: var(--nav-item-color);
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
.link-page {
|
|
723
|
+
display: flex;
|
|
724
|
+
position: absolute;
|
|
725
|
+
overflow: auto;
|
|
726
|
+
flex-direction: column;
|
|
727
|
+
gap: var(--space-scale-4);
|
|
728
|
+
padding: var(--space-scale-5);
|
|
729
|
+
left: var(--nav-bar-width);
|
|
730
|
+
background-color: var(--color-surface-200);
|
|
731
|
+
width: calc(100% - var(--nav-bar-width));
|
|
564
732
|
height: 100%;
|
|
733
|
+
transition-property: left, visibility;
|
|
734
|
+
transition-duration: 700ms, 400ms;
|
|
735
|
+
transition-timing-function: ease-out, ease-in;
|
|
736
|
+
|
|
737
|
+
&.hidden {
|
|
738
|
+
left: -100%;
|
|
739
|
+
visibility: hidden;
|
|
740
|
+
}
|
|
565
741
|
}
|
|
566
742
|
|
|
567
|
-
|
|
743
|
+
.link-page > .section {
|
|
568
744
|
display: flex;
|
|
569
745
|
flex-direction: column;
|
|
746
|
+
gap: var(--space-scale-2);
|
|
570
747
|
}
|
|
571
748
|
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
749
|
+
.section > .links-container {
|
|
750
|
+
display: grid;
|
|
751
|
+
grid-template-columns: repeat(3, 1fr);
|
|
752
|
+
gap: var(--space-scale-3);
|
|
753
|
+
overflow-y: auto;
|
|
754
|
+
height: 100%;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
.visually-hidden {
|
|
758
|
+
position: absolute;
|
|
759
|
+
width: 1px;
|
|
575
760
|
height: 1px;
|
|
576
|
-
|
|
761
|
+
margin: -1px;
|
|
762
|
+
padding: 0;
|
|
763
|
+
border: 0;
|
|
764
|
+
overflow: hidden;
|
|
765
|
+
clip: rect(0 0 0 0);
|
|
766
|
+
clip-path: inset(50%);
|
|
767
|
+
white-space: nowrap;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
.tooltip {
|
|
771
|
+
position: absolute;
|
|
772
|
+
display: flex;
|
|
773
|
+
white-space: nowrap;
|
|
774
|
+
align-items: center;
|
|
775
|
+
gap: var(--space-scale-1);
|
|
776
|
+
color: black;
|
|
777
|
+
background-color: var(--color-surface-600);
|
|
778
|
+
padding: var(--space-scale-1);
|
|
779
|
+
z-index: 1000;
|
|
780
|
+
border-radius: var(--border-radius-50);
|
|
781
|
+
font-weight: var(--font-weight-medium);
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
.auth-container {
|
|
785
|
+
display: flex;
|
|
786
|
+
align-items: center;
|
|
787
|
+
justify-content: center;
|
|
788
|
+
min-height: 100vh;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
.error-container {
|
|
792
|
+
padding: 4rem 1rem 1rem;
|
|
793
|
+
max-width: 1280px;
|
|
794
|
+
margin-left: auto;
|
|
795
|
+
margin-right: auto;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.error-stack {
|
|
799
|
+
width: 100%;
|
|
800
|
+
padding: 1rem;
|
|
801
|
+
overflow-x: auto;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
.fullscreen-iframe {
|
|
805
|
+
width: 100%;
|
|
806
|
+
height: 100vh;
|
|
807
|
+
border: 0;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
.nav-toggle-button {
|
|
811
|
+
position: relative;
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
.nav-toggle-tooltip {
|
|
815
|
+
left: 100%;
|
|
816
|
+
top: 100%;
|
|
817
|
+
visibility: hidden;
|
|
818
|
+
opacity: 0;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
.nav-toggle-button:hover .nav-toggle-tooltip {
|
|
822
|
+
visibility: visible;
|
|
823
|
+
opacity: 1;
|
|
577
824
|
}
|
|
578
825
|
`;
|
|
579
826
|
export {
|