@converge-cloudops/gaia-ui 0.1.2 → 0.2.1

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.
@@ -1,10 +1,17 @@
1
1
  import { GaiaHeaderProps } from '../GaiaHeader';
2
2
  import { GaiaNavbarProps } from '../GaiaNavbar';
3
+ import { SubHeaderProps } from '../SubHeader';
3
4
  export interface GaiaShellLayoutProps {
4
5
  /** Props forwarded to GaiaHeader */
5
6
  headerProps: Omit<GaiaHeaderProps, "burgerSlot">;
6
7
  /** Props forwarded to GaiaNavbar */
7
8
  navbarProps: GaiaNavbarProps;
9
+ /**
10
+ * When provided, renders a SubHeader bar above the main content.
11
+ * Title is automatically resolved from the current pathname — you
12
+ * only need to pass `content` for extra controls on the right side.
13
+ */
14
+ subHeaderProps?: SubHeaderProps;
8
15
  /** Header height in px. Defaults to 50 */
9
16
  headerHeight?: number;
10
17
  /** Navbar width in px. Defaults to 240 */
@@ -14,5 +21,5 @@ export interface GaiaShellLayoutProps {
14
21
  /** Main content */
15
22
  children: React.ReactNode;
16
23
  }
17
- export declare function GaiaShellLayout({ headerProps, navbarProps, headerHeight, navbarWidth, navbarBreakpoint, children, }: GaiaShellLayoutProps): import("react/jsx-runtime").JSX.Element;
24
+ export declare function GaiaShellLayout({ headerProps, navbarProps, subHeaderProps, headerHeight, navbarWidth, navbarBreakpoint, children, }: GaiaShellLayoutProps): import("react/jsx-runtime").JSX.Element;
18
25
  //# sourceMappingURL=GaiaShellLayout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GaiaShellLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/GaiaShellLayout/GaiaShellLayout.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAE5D,MAAM,WAAW,oBAAoB;IACnC,oCAAoC;IACpC,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;IACjD,oCAAoC;IACpC,WAAW,EAAE,eAAe,CAAC;IAC7B,0CAA0C;IAC1C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0CAA0C;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iEAAiE;IACjE,gBAAgB,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACpD,mBAAmB;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,eAAe,CAAC,EAC9B,WAAW,EACX,WAAW,EACX,YAAiB,EACjB,WAAiB,EACjB,gBAAuB,EACvB,QAAQ,GACT,EAAE,oBAAoB,2CAmCtB"}
1
+ {"version":3,"file":"GaiaShellLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/GaiaShellLayout/GaiaShellLayout.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAEL,KAAK,eAAe,EAErB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAuB9D,MAAM,WAAW,oBAAoB;IACnC,oCAAoC;IACpC,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;IACjD,oCAAoC;IACpC,WAAW,EAAE,eAAe,CAAC;IAC7B;;;;OAIG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,0CAA0C;IAC1C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,0CAA0C;IAC1C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iEAAiE;IACjE,gBAAgB,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACpD,mBAAmB;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,eAAe,CAAC,EAC9B,WAAW,EACX,WAAW,EACX,cAAc,EACd,YAAiB,EACjB,WAAiB,EACjB,gBAAuB,EACvB,QAAQ,GACT,EAAE,oBAAoB,2CAmDtB"}
@@ -0,0 +1,6 @@
1
+ export interface SubHeaderProps {
2
+ title: string;
3
+ content?: React.ReactNode;
4
+ }
5
+ export declare function SubHeader({ title, content }: SubHeaderProps): import("react/jsx-runtime").JSX.Element;
6
+ //# sourceMappingURL=SubHeader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SubHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/SubHeader/SubHeader.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,cAAc,2CAO3D"}
@@ -0,0 +1,3 @@
1
+ export { SubHeader } from './SubHeader';
2
+ export type { SubHeaderProps } from './SubHeader';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/SubHeader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}