@govtechsg/sgds-web-component 0.0.0 → 0.0.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.
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "@govtechsg/sgds-web-component/SideNav",
3
+ "private": true,
4
+ "main": "../umd/index.js",
5
+ "module": "./index.js",
6
+ "types": "./index.d.ts"
7
+ }
@@ -0,0 +1,6 @@
1
+ import { LitElement } from "lit";
2
+ export declare class SideNavElement extends LitElement {
3
+ static styles: import("lit").CSSResultGroup;
4
+ alwaysOpen: boolean;
5
+ render(): import("lit-html").TemplateResult<1>;
6
+ }
@@ -0,0 +1,27 @@
1
+ import { LitElement } from "lit";
2
+ export declare class SideNavItem extends LitElement {
3
+ static styles: import("lit").CSSResultGroup;
4
+ private myCollapse;
5
+ private bsCollapse;
6
+ /** when true, toggles the sidenav-item to open on first load and
7
+ * set the active stylings.
8
+ */
9
+ active: boolean;
10
+ href: string;
11
+ collapseId: string;
12
+ buttonId: string;
13
+ private index;
14
+ private _onClick;
15
+ private _onClickButton;
16
+ private _onClickLink;
17
+ /**
18
+ * closeItem - closes sidenav and inactivates it
19
+ */
20
+ closeItem(): void;
21
+ /**
22
+ * openItem
23
+ */
24
+ openItem(): void;
25
+ firstUpdated(): void;
26
+ render(): import("lit-html").TemplateResult<1>;
27
+ }
@@ -0,0 +1,7 @@
1
+ import { LitElement } from "lit";
2
+ export declare class SideNavLink extends LitElement {
3
+ static styles: import("lit").CSSResultGroup;
4
+ active: boolean;
5
+ href: string;
6
+ render(): import("lit-html").TemplateResult<1>;
7
+ }
package/index.d.ts CHANGED
@@ -1,2 +1,4 @@
1
+ import './Masthead';
1
2
  import './Button';
2
3
  import './Footer';
4
+ import './SideNav';