@govtechsg/sgds-web-component 0.0.3 → 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.
@@ -0,0 +1,27 @@
1
+ import { LitElement } from "lit";
2
+ import { ResizeController } from "@lit-labs/observers/resize_controller.js";
3
+ declare type Size = "sm" | "md" | "lg" | "xl" | "xxl" | "always" | "never";
4
+ export declare const SM_BREAKPOINT = 576;
5
+ export declare const MD_BREAKPOINT = 768;
6
+ export declare const LG_BREAKPOINT = 992;
7
+ export declare const XL_BREAKPOINT = 1200;
8
+ export declare const XXL_BREAKPOINT = 1400;
9
+ export declare class MainNavElement extends LitElement {
10
+ static styles: import("lit").CSSResultGroup;
11
+ constructor();
12
+ private myCollapse;
13
+ private bsCollapse;
14
+ private myOffcanvas;
15
+ private bsOffcanvas;
16
+ private _onClickButton;
17
+ brandHref: string;
18
+ collapseId: string;
19
+ expand: Size;
20
+ expanded: Boolean;
21
+ mode: "offcanvas" | "default";
22
+ firstUpdated(): void;
23
+ _resizeController: ResizeController;
24
+ render(): import("lit-html").TemplateResult<1>;
25
+ _expandClass(): string;
26
+ }
27
+ export default MainNavElement;
@@ -0,0 +1,7 @@
1
+ import { LitElement } from "lit";
2
+ export declare class MainNavItem extends LitElement {
3
+ static styles: import("lit").CSSResultGroup;
4
+ active: boolean;
5
+ href: string;
6
+ render(): import("lit-html").TemplateResult<1>;
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "@govtechsg/sgds-web-component/MainNav",
3
+ "private": true,
4
+ "main": "../umd/index.js",
5
+ "module": "./index.js",
6
+ "types": "./index.d.ts"
7
+ }
package/index.d.ts CHANGED
@@ -2,3 +2,4 @@ import './Masthead';
2
2
  import './Button';
3
3
  import './Footer';
4
4
  import './SideNav';
5
+ import './MainNav';