@converge-cloudops/gaia-ui 0.5.1 → 0.6.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.
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":"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"}
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;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,iBAAiB,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,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"}
@@ -13,6 +13,7 @@ export interface GaiaNavbarLink {
13
13
  }
14
14
  export interface GaiaNavbarSection {
15
15
  system: keyof GaiaRemoteConfigs | string;
16
+ icon?: Icon;
16
17
  title: string;
17
18
  links: GaiaNavbarLink[];
18
19
  }
@@ -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,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"}
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,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,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;AAuBD,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,eAAe,kDAqC/D"}
@@ -1,19 +1,12 @@
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
- * When provided, renders a SubHeader bar above the main content.
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, subHeaderProps, headerHeight, navbarWidth, navbarBreakpoint, children, }: GaiaShellLayoutProps): import("react/jsx-runtime").JSX.Element;
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":"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;AAoD9D,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"}
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,2CAkDtB"}
@@ -1,6 +1,7 @@
1
1
  export interface SubHeaderProps {
2
2
  title: string;
3
+ titleExtra?: React.ReactNode;
3
4
  content?: React.ReactNode;
4
5
  }
5
- export declare function SubHeader({ title, content }: SubHeaderProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function SubHeader({ title, titleExtra, content }: SubHeaderProps): import("react/jsx-runtime").JSX.Element;
6
7
  //# sourceMappingURL=SubHeader.d.ts.map
@@ -1 +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"}
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,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,cAAc,2CAUvE"}
@@ -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,GACZ,EAAE,qBAAqB,2CAoEvB"}
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"}
@@ -1,5 +1,6 @@
1
+ import { ModalProps } from '@mantine/core';
1
2
  import { Icon } from '@tabler/icons-react';
2
- export type ConfirmModalProps = {
3
+ export type ConfirmModalProps = Omit<ModalProps, "title"> & {
3
4
  opened: boolean;
4
5
  onClose: () => void;
5
6
  onConfirm: () => void;
@@ -9,5 +10,5 @@ export type ConfirmModalProps = {
9
10
  isLoading?: boolean;
10
11
  icon?: Icon;
11
12
  };
12
- export declare function ConfirmModal({ opened, onClose, onConfirm, title, description, confirmLabel, isLoading, icon: Icon, }: ConfirmModalProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function ConfirmModal({ opened, onClose, onConfirm, title, description, confirmLabel, isLoading, icon: Icon, transitionProps, }: ConfirmModalProps): import("react/jsx-runtime").JSX.Element;
13
14
  //# sourceMappingURL=ConfirmModal.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ConfirmModal.d.ts","sourceRoot":"","sources":["../../../src/components/modals/ConfirmModal.tsx"],"names":[],"mappings":"AASA,OAAO,EAAqB,KAAK,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAEnE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAC3B,MAAM,EACN,OAAO,EACP,SAAS,EACT,KAAK,EACL,WAAW,EACX,YAAuB,EACvB,SAAiB,EACjB,IAAI,EAAE,IAAwB,GAC/B,EAAE,iBAAiB,2CAiCnB"}
1
+ {"version":3,"file":"ConfirmModal.d.ts","sourceRoot":"","sources":["../../../src/components/modals/ConfirmModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAQL,KAAK,UAAU,EAChB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAqB,KAAK,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAEnE,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG;IAC1D,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAC3B,MAAM,EACN,OAAO,EACP,SAAS,EACT,KAAK,EACL,WAAW,EACX,YAAuB,EACvB,SAAiB,EACjB,IAAI,EAAE,IAAwB,EAC9B,eAAe,GAChB,EAAE,iBAAiB,2CAkCnB"}
@@ -3,7 +3,8 @@ export type TableAction = "view" | "update" | "delete";
3
3
  export type TableActionsProps = {
4
4
  include?: TableAction[];
5
5
  justify?: GroupProps["justify"];
6
+ loading?: boolean | Partial<Record<TableAction, boolean>>;
6
7
  onClick: (action: TableAction) => void;
7
8
  };
8
- export declare function TableActions({ include, justify, onClick, }: TableActionsProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function TableActions({ include, justify, loading, onClick, }: TableActionsProps): import("react/jsx-runtime").JSX.Element;
9
10
  //# sourceMappingURL=TableActions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableActions.d.ts","sourceRoot":"","sources":["../../../../src/components/tables/actions/TableActions.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAQnE,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAC3B,OAAsC,EACtC,OAAsB,EACtB,OAAO,GACR,EAAE,iBAAiB,2CA2BnB"}
1
+ {"version":3,"file":"TableActions.d.ts","sourceRoot":"","sources":["../../../../src/components/tables/actions/TableActions.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAQnE,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEvD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1D,OAAO,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,wBAAgB,YAAY,CAAC,EAC3B,OAAsC,EACtC,OAAsB,EACtB,OAAO,EACP,OAAO,GACR,EAAE,iBAAiB,2CA8BnB"}
@@ -0,0 +1,9 @@
1
+ export interface GaiaShellLayoutContextValue {
2
+ setPageActions: (actions: React.ReactNode) => void;
3
+ setTitleExtra: (extra: React.ReactNode) => void;
4
+ }
5
+ declare const GaiaShellLayoutContext: import('react').Context<GaiaShellLayoutContextValue>;
6
+ export declare const useSetPageActions: () => (actions: React.ReactNode) => void;
7
+ export declare const useSetTitleExtra: () => (extra: React.ReactNode) => void;
8
+ export { GaiaShellLayoutContext };
9
+ //# 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;IACnD,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,KAAK,IAAI,CAAC;CACjD;AAED,QAAA,MAAM,sBAAsB,sDAG1B,CAAC;AAEH,eAAO,MAAM,iBAAiB,kBATF,KAAK,CAAC,SAAS,KAAK,IAUG,CAAC;AAEpD,eAAO,MAAM,gBAAgB,gBAXJ,KAAK,CAAC,SAAS,KAAK,IAYK,CAAC;AAEnD,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"}