@converge-cloudops/gaia-ui 0.5.1 → 0.5.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.
- package/README.md +1 -0
- package/dist/components/layouts/GaiaHeader/GaiaHeader.d.ts +2 -0
- package/dist/components/layouts/GaiaHeader/GaiaHeader.d.ts.map +1 -1
- package/dist/components/layouts/GaiaNavbar/GaiaNavbar.d.ts +1 -0
- package/dist/components/layouts/GaiaNavbar/GaiaNavbar.d.ts.map +1 -1
- package/dist/components/layouts/GaiaShellLayout/GaiaShellLayout.d.ts +3 -10
- package/dist/components/layouts/GaiaShellLayout/GaiaShellLayout.d.ts.map +1 -1
- package/dist/components/links/NavbarLinksGroup/NavbarLinksGroup.d.ts +2 -1
- package/dist/components/links/NavbarLinksGroup/NavbarLinksGroup.d.ts.map +1 -1
- package/dist/context/GaiaShellLayoutContext.d.ts +7 -0
- package/dist/context/GaiaShellLayoutContext.d.ts.map +1 -0
- package/dist/context/GaiaShellLayoutProvider.d.ts +8 -0
- package/dist/context/GaiaShellLayoutProvider.d.ts.map +1 -0
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1080 -1061
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -116,6 +116,7 @@ Full documentation is in the [`documentation/`](./documentation/) folder:
|
|
|
116
116
|
- [NavbarLinksGroup](https://github.com/cict-cloud/gaia-ui/blob/main/documentation/components/NavbarLinksGroup.md) — nav link primitive
|
|
117
117
|
- [GaiaShellProvider](https://github.com/cict-cloud/gaia-ui/blob/main/documentation/context/GaiaShellProvider.md) — context provider for user and remote configs
|
|
118
118
|
- [GaiaShellContext](https://github.com/cict-cloud/gaia-ui/blob/main/documentation/context/GaiaShellContext.md) — context types and hooks (`useGaiaShellContext`, `useGaiaRemoteConfig`)
|
|
119
|
+
- [GaiaShellLayoutContext](https://github.com/cict-cloud/gaia-ui/blob/main/documentation/context/GaiaShellLayoutContext.md) — layout context and hooks (`useSetPageActions`) for injecting page actions into the shell header
|
|
119
120
|
- [createRemoteBaseQuery](https://github.com/cict-cloud/gaia-ui/blob/main/documentation/api/createRemoteBaseQuery.md) — RTK Query base query with a mutable base URL
|
|
120
121
|
- [createRemoteConfigProvider](https://github.com/cict-cloud/gaia-ui/blob/main/documentation/api/createRemoteConfigProvider.md) — wires remote URL from context into an RTK Query API
|
|
121
122
|
- [API Reference](https://github.com/cict-cloud/gaia-ui/blob/main/documentation/api-reference.md) — all exported TypeScript types
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Icon } from '@tabler/icons-react';
|
|
1
2
|
import { GaiaRemoteConfigs } from '../../../context/GaiaShellContext';
|
|
2
3
|
export interface GaiaHeaderMenuItem {
|
|
3
4
|
label: string;
|
|
@@ -6,6 +7,7 @@ export interface GaiaHeaderMenuItem {
|
|
|
6
7
|
export interface GaiaHeaderMenuGroup {
|
|
7
8
|
system: keyof GaiaRemoteConfigs;
|
|
8
9
|
label: string;
|
|
10
|
+
icon?: Icon;
|
|
9
11
|
items: GaiaHeaderMenuItem[];
|
|
10
12
|
}
|
|
11
13
|
export interface GaiaHeaderProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GaiaHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/GaiaHeader/GaiaHeader.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GaiaHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/GaiaHeader/GaiaHeader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,IAAI,EAAmB,MAAM,qBAAqB,CAAC;AAEjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;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
|
1
1
|
import { GaiaHeaderProps } from '../GaiaHeader';
|
|
2
2
|
import { GaiaNavbarProps } from '../GaiaNavbar';
|
|
3
|
-
import { SubHeaderProps } from '../SubHeader';
|
|
4
3
|
export interface GaiaShellLayoutProps {
|
|
5
4
|
/** Props forwarded to GaiaHeader */
|
|
6
5
|
headerProps: Omit<GaiaHeaderProps, "burgerSlot">;
|
|
7
6
|
/** Props forwarded to GaiaNavbar (excluding navKey, which is computed internally) */
|
|
8
7
|
navbarProps: Omit<GaiaNavbarProps, "navKey">;
|
|
9
|
-
/**
|
|
10
|
-
|
|
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
|
-
*/
|
|
14
|
-
subHeaderProps?: Omit<SubHeaderProps, "title"> & {
|
|
15
|
-
title?: string;
|
|
16
|
-
};
|
|
8
|
+
/** Override the SubHeader title. Defaults to the resolved nav label. */
|
|
9
|
+
subHeaderTitle?: string;
|
|
17
10
|
/** Header height in px. Defaults to 50 */
|
|
18
11
|
headerHeight?: number;
|
|
19
12
|
/** Navbar width in px. Defaults to 240 */
|
|
@@ -23,5 +16,5 @@ export interface GaiaShellLayoutProps {
|
|
|
23
16
|
/** Main content */
|
|
24
17
|
children: React.ReactNode;
|
|
25
18
|
}
|
|
26
|
-
export declare function GaiaShellLayout({ headerProps, navbarProps,
|
|
19
|
+
export declare function GaiaShellLayout({ headerProps, navbarProps, subHeaderTitle: subHeaderTitleProp, headerHeight, navbarWidth, navbarBreakpoint, children, }: GaiaShellLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
27
20
|
//# sourceMappingURL=GaiaShellLayout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GaiaShellLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/GaiaShellLayout/GaiaShellLayout.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GaiaShellLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/layouts/GaiaShellLayout/GaiaShellLayout.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAEL,KAAK,eAAe,EAErB,MAAM,eAAe,CAAC;AA8DvB,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,wEAAwE;IACxE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,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,EAAE,kBAAkB,EAClC,YAAiB,EACjB,WAAiB,EACjB,gBAAuB,EACvB,QAAQ,GACT,EAAE,oBAAoB,2CAiDtB"}
|
|
@@ -10,6 +10,7 @@ export interface NavbarLinksGroupProps {
|
|
|
10
10
|
initiallyOpened?: boolean;
|
|
11
11
|
links?: NavbarLinksGroupItem[];
|
|
12
12
|
currentPath: string;
|
|
13
|
+
activeLink?: string;
|
|
13
14
|
}
|
|
14
|
-
export declare function NavbarLinksGroup({ icon: Icon, label, link, initiallyOpened, links, currentPath, }: NavbarLinksGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function NavbarLinksGroup({ icon: Icon, label, link, initiallyOpened, links, currentPath, activeLink, }: NavbarLinksGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
//# sourceMappingURL=NavbarLinksGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavbarLinksGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/links/NavbarLinksGroup/NavbarLinksGroup.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAoB,KAAK,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAIlE,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EAAE,IAAI,EACV,KAAK,EACL,IAAI,EACJ,eAAe,EACf,KAAK,EACL,WAAW,
|
|
1
|
+
{"version":3,"file":"NavbarLinksGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/links/NavbarLinksGroup/NavbarLinksGroup.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAoB,KAAK,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAIlE,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EAAE,IAAI,EACV,KAAK,EACL,IAAI,EACJ,eAAe,EACf,KAAK,EACL,WAAW,EACX,UAAU,GACX,EAAE,qBAAqB,2CAiEvB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface GaiaShellLayoutContextValue {
|
|
2
|
+
setPageActions: (actions: React.ReactNode) => void;
|
|
3
|
+
}
|
|
4
|
+
declare const GaiaShellLayoutContext: import('react').Context<GaiaShellLayoutContextValue>;
|
|
5
|
+
export declare const useSetPageActions: () => (actions: React.ReactNode) => void;
|
|
6
|
+
export { GaiaShellLayoutContext };
|
|
7
|
+
//# sourceMappingURL=GaiaShellLayoutContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GaiaShellLayoutContext.d.ts","sourceRoot":"","sources":["../../src/context/GaiaShellLayoutContext.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,2BAA2B;IAC1C,cAAc,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,KAAK,IAAI,CAAC;CACpD;AAED,QAAA,MAAM,sBAAsB,sDAE1B,CAAC;AAEH,eAAO,MAAM,iBAAiB,kBAPF,KAAK,CAAC,SAAS,KAAK,IAQG,CAAC;AAEpD,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GaiaShellLayoutContextValue } from './GaiaShellLayoutContext';
|
|
2
|
+
interface Props {
|
|
3
|
+
value: GaiaShellLayoutContextValue;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare function GaiaShellLayoutProvider({ value, children }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=GaiaShellLayoutProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GaiaShellLayoutProvider.d.ts","sourceRoot":"","sources":["../../src/context/GaiaShellLayoutProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA0B,KAAK,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAEpG,UAAU,KAAK;IACb,KAAK,EAAE,2BAA2B,CAAC;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,uBAAuB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,KAAK,2CAMjE"}
|