@triptease/tt-navbar 0.0.2 → 0.0.4
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.d.ts +1 -3
- package/dist/src/TtNavbar.js +14 -20
- package/dist/src/TtNavbar.js.map +1 -1
- package/dist/src/styles.d.ts +1 -0
- package/dist/src/styles.js +3 -0
- package/dist/src/styles.js.map +1 -0
- package/dist/test/tt-navbar.test.js +0 -20
- package/dist/test/tt-navbar.test.js.map +1 -1
- package/dist/web/TtNavbar.js +15 -20
- package/dist/web/TtNavbar.js.map +3 -3
- package/dist/web/index.js +15 -20
- package/dist/web/index.js.map +3 -3
- package/dist/web/styles.js +595 -0
- package/dist/web/styles.js.map +7 -0
- package/dist/web/tt-navbar.js +15 -20
- package/dist/web/tt-navbar.js.map +3 -3
- package/package.json +1 -1
- package/src/TtNavbar.ts +13 -17
- package/src/styles.ts +3 -0
- package/test/tt-navbar.test.ts +0 -27
package/dist/web/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @triptease/tt-navbar v0.0.
|
|
2
|
+
* @triptease/tt-navbar v0.0.4
|
|
3
3
|
*/
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -590,36 +590,31 @@ function n4(t3) {
|
|
|
590
590
|
})(t3, e5, o6);
|
|
591
591
|
}
|
|
592
592
|
|
|
593
|
+
// src/styles.ts
|
|
594
|
+
var styles = i``;
|
|
595
|
+
|
|
593
596
|
// src/TtNavbar.ts
|
|
594
597
|
var TtNavbar = class extends i4 {
|
|
595
598
|
constructor() {
|
|
596
599
|
super(...arguments);
|
|
597
|
-
this.
|
|
598
|
-
|
|
599
|
-
}
|
|
600
|
-
__increment() {
|
|
601
|
-
this.counter += 1;
|
|
600
|
+
this.onNavigate = () => {
|
|
601
|
+
};
|
|
602
602
|
}
|
|
603
603
|
render() {
|
|
604
604
|
return x`
|
|
605
|
-
<
|
|
606
|
-
|
|
605
|
+
<nav id=${this.id}>
|
|
606
|
+
<a href="/">Dashboard</a>
|
|
607
|
+
<a href="/campaigns">Campaigns</a>
|
|
608
|
+
<a href="/channels">Channels</a>
|
|
609
|
+
<a href="/guest-insights/zxd47KQGAP">Guest insights</a>
|
|
610
|
+
</nav>
|
|
607
611
|
`;
|
|
608
612
|
}
|
|
609
613
|
};
|
|
610
|
-
TtNavbar.styles =
|
|
611
|
-
:host {
|
|
612
|
-
display: block;
|
|
613
|
-
padding: 25px;
|
|
614
|
-
color: var(--tt-navbar-text-color, #000);
|
|
615
|
-
}
|
|
616
|
-
`;
|
|
617
|
-
__decorateClass([
|
|
618
|
-
n4({ type: String })
|
|
619
|
-
], TtNavbar.prototype, "header", 2);
|
|
614
|
+
TtNavbar.styles = styles;
|
|
620
615
|
__decorateClass([
|
|
621
|
-
n4(
|
|
622
|
-
], TtNavbar.prototype, "
|
|
616
|
+
n4()
|
|
617
|
+
], TtNavbar.prototype, "onNavigate", 2);
|
|
623
618
|
export {
|
|
624
619
|
TtNavbar
|
|
625
620
|
};
|