@converge-cloudops/gaia-ui 0.3.17 → 0.3.19
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/components/layouts/GaiaHeader/GaiaHeader.d.ts +1 -2
- package/dist/components/layouts/GaiaHeader/GaiaHeader.d.ts.map +1 -1
- package/dist/components/layouts/GaiaNavbar/GaiaNavbar.d.ts +5 -13
- package/dist/components/layouts/GaiaNavbar/GaiaNavbar.d.ts.map +1 -1
- package/dist/components/layouts/GaiaShellLayout/GaiaShellLayout.d.ts +4 -4
- package/dist/components/layouts/GaiaShellLayout/GaiaShellLayout.d.ts.map +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +343 -335
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,9 +3,8 @@ export interface GaiaHeaderMenuItem {
|
|
|
3
3
|
label: string;
|
|
4
4
|
path: string;
|
|
5
5
|
}
|
|
6
|
-
export type GaiaSystem = keyof GaiaRemoteConfigs | (string & {});
|
|
7
6
|
export interface GaiaHeaderMenuGroup {
|
|
8
|
-
system:
|
|
7
|
+
system: keyof GaiaRemoteConfigs;
|
|
9
8
|
label: string;
|
|
10
9
|
items: GaiaHeaderMenuItem[];
|
|
11
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GaiaHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/GaiaHeader/GaiaHeader.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,
|
|
1
|
+
{"version":3,"file":"GaiaHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/GaiaHeader/GaiaHeader.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,iBAAiB,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,kBAAkB,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,eAAe;IAC9B,uDAAuD;IACvD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4BAA4B;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kDAAkD;IAClD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8DAA8D;IAC9D,UAAU,CAAC,EAAE,mBAAmB,EAAE,CAAC;IACnC,iFAAiF;IACjF,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,kEAAkE;IAClE,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED,wBAAgB,UAAU,CAAC,EACzB,OAAmB,EACnB,OAAgB,EAChB,KAAc,EACd,UAAe,EACf,YAAY,EACZ,UAAU,GACX,EAAE,eAAe,2CAyDjB"}
|
|
@@ -12,23 +12,15 @@ export interface GaiaNavbarLink {
|
|
|
12
12
|
}[];
|
|
13
13
|
}
|
|
14
14
|
export interface GaiaNavbarSection {
|
|
15
|
-
system: keyof GaiaRemoteConfigs;
|
|
15
|
+
system: keyof GaiaRemoteConfigs | string;
|
|
16
16
|
title: string;
|
|
17
17
|
links: GaiaNavbarLink[];
|
|
18
18
|
}
|
|
19
19
|
export interface GaiaNavbarProps {
|
|
20
|
-
/** All nav sections
|
|
20
|
+
/** All nav sections */
|
|
21
21
|
sections: GaiaNavbarSection[];
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* resolveSection={(pathname) => {
|
|
27
|
-
* if (pathname.includes("/infrastructure")) return "Infrastructure";
|
|
28
|
-
* return "Dashboard";
|
|
29
|
-
* }}
|
|
30
|
-
*/
|
|
31
|
-
resolveSection: (pathname: string) => string;
|
|
22
|
+
/** Title of the section to display — pre-computed by the consumer (e.g. via getNavKeyFromPath) */
|
|
23
|
+
navKey: string;
|
|
32
24
|
}
|
|
33
|
-
export declare function GaiaNavbar({ sections,
|
|
25
|
+
export declare function GaiaNavbar({ sections, navKey }: GaiaNavbarProps): import("react/jsx-runtime").JSX.Element | null;
|
|
34
26
|
//# sourceMappingURL=GaiaNavbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GaiaNavbar.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/GaiaNavbar/GaiaNavbar.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAGhD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC3C;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"GaiaNavbar.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/GaiaNavbar/GaiaNavbar.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAGhD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC3C;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,iBAAiB,GAAG,MAAM,CAAC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,eAAe;IAC9B,uBAAuB;IACvB,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,kGAAkG;IAClG,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,eAAe,kDAkC/D"}
|
|
@@ -4,12 +4,12 @@ import { SubHeaderProps } from '../SubHeader';
|
|
|
4
4
|
export interface GaiaShellLayoutProps {
|
|
5
5
|
/** Props forwarded to GaiaHeader */
|
|
6
6
|
headerProps: Omit<GaiaHeaderProps, "burgerSlot">;
|
|
7
|
-
/** Props forwarded to GaiaNavbar */
|
|
8
|
-
navbarProps: GaiaNavbarProps
|
|
7
|
+
/** Props forwarded to GaiaNavbar (excluding navKey, which is computed internally) */
|
|
8
|
+
navbarProps: Omit<GaiaNavbarProps, "navKey">;
|
|
9
9
|
/**
|
|
10
10
|
* When provided, renders a SubHeader bar above the main content.
|
|
11
|
-
* Title is automatically resolved from
|
|
12
|
-
*
|
|
11
|
+
* Title is automatically resolved from navKey — you only need to pass
|
|
12
|
+
* `content` for extra controls on the right side, or override `title` explicitly.
|
|
13
13
|
*/
|
|
14
14
|
subHeaderProps?: Omit<SubHeaderProps, "title"> & {
|
|
15
15
|
title?: string;
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAgD9D,MAAM,WAAW,oBAAoB;IACnC,oCAAoC;IACpC,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;IACjD,qFAAqF;IACrF,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC;IAC7C;;;;OAIG;IACH,cAAc,CAAC,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,GAAG;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACpE,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,2CAgDtB"}
|