@converge-cloudops/gaia-ui 0.3.18 → 0.4.0
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/GaiaNavbar/GaiaNavbar.d.ts +4 -12
- 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/components/links/NavbarLinksGroup/NavbarLinksGroup.d.ts.map +1 -1
- package/dist/components/tables/BaseTable.d.ts +25 -0
- package/dist/components/tables/BaseTable.d.ts.map +1 -0
- package/dist/components/tables/actions/TableActions.d.ts +9 -0
- package/dist/components/tables/actions/TableActions.d.ts.map +1 -0
- package/dist/gaia-ui.css +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2909 -2261
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
|
@@ -17,18 +17,10 @@ export interface GaiaNavbarSection {
|
|
|
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,GAAG,MAAM,CAAC;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,eAAe;IAC9B
|
|
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;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 +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,
|
|
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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DataTableColumn } from 'mantine-datatable';
|
|
2
|
+
export interface PaginationMeta {
|
|
3
|
+
page: number;
|
|
4
|
+
totalRecords: number;
|
|
5
|
+
recordsPerPage: number;
|
|
6
|
+
recordsPerPageOptions: number[];
|
|
7
|
+
onRecordsPerPageChange: (numPage: number) => void;
|
|
8
|
+
onPageChange: (page: number) => void;
|
|
9
|
+
}
|
|
10
|
+
export interface TableMetaTypes<T> {
|
|
11
|
+
records: T[];
|
|
12
|
+
columns: DataTableColumn<T>[];
|
|
13
|
+
fetching: boolean;
|
|
14
|
+
idAccessor?: string | undefined;
|
|
15
|
+
pagination?: PaginationMeta;
|
|
16
|
+
selectable?: boolean;
|
|
17
|
+
pinLastColumn?: boolean;
|
|
18
|
+
onRowClick?: (record: T) => void;
|
|
19
|
+
}
|
|
20
|
+
export type { DataTableColumn };
|
|
21
|
+
interface DefaultTableProps<T> {
|
|
22
|
+
tableMeta: TableMetaTypes<T>;
|
|
23
|
+
}
|
|
24
|
+
export declare function BaseTable<T>({ tableMeta: { records, columns, fetching, idAccessor, pagination, selectable, pinLastColumn, onRowClick, }, }: DefaultTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
//# sourceMappingURL=BaseTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseTable.d.ts","sourceRoot":"","sources":["../../../src/components/tables/BaseTable.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpE,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAChC,sBAAsB,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAED,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC;CAClC;AAED,YAAY,EAAE,eAAe,EAAE,CAAC;AAWhC,UAAU,iBAAiB,CAAC,CAAC;IAC3B,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;CAE9B;AAMD,wBAAgB,SAAS,CAAC,CAAC,EAAE,EAC3B,SAAS,EAAE,EACT,OAAO,EACP,OAAO,EACP,QAAQ,EACR,UAAsB,EACtB,UAAU,EACV,UAAkB,EAClB,aAAqB,EACrB,UAAU,GACX,GACF,EAAE,iBAAiB,CAAC,CAAC,CAAC,2CAmCtB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GroupProps } from '@mantine/core';
|
|
2
|
+
export type TableAction = "view" | "update" | "delete";
|
|
3
|
+
export type TableActionsProps = {
|
|
4
|
+
include?: TableAction[];
|
|
5
|
+
justify?: GroupProps["justify"];
|
|
6
|
+
onClick: (action: TableAction) => void;
|
|
7
|
+
};
|
|
8
|
+
export declare function TableActions({ include, justify, onClick, }: TableActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=TableActions.d.ts.map
|
|
@@ -0,0 +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"}
|
package/dist/gaia-ui.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._control_15f2c_1{font-weight:500;display:block;width:100%;padding:0 var(--mantine-spacing-md);color:var(--mantine-color-white);font-size:var(--mantine-font-size-sm)}@media(hover:hover){._control_15f2c_1:hover{background-color:var(--mantine-color-convergeTeal-light);color:var(--mantine-color-convergeTeal-light-color)}}@media(hover:none){._control_15f2c_1:active{background-color:var(--mantine-color-convergeTeal-light);color:var(--mantine-color-convergeTeal-light-color)}}._simple-link_15f2c_29{display:block;text-decoration:none;padding:3px var(--mantine-spacing-md);font-size:var(--mantine-font-size-sm);font-weight:500;color:var(--mantine-color-white)}@media(hover:hover){._simple-link_15f2c_29:hover{background-color:var(--mantine-color-convergeTeal-light);color:var(--mantine-color-convergeTeal-light-color)}}@media(hover:none){._simple-link_15f2c_29:active{background-color:var(--mantine-color-convergeTeal-light);color:var(--mantine-color-convergeTeal-light-color)}}._simple-link_15f2c_29[data-active],._simple-link_15f2c_29[data-active]:hover{background-color:var(--mantine-color-convergeTeal-light);color:var(--mantine-color-convergeTeal-light-color)}._collapsible-link_15f2c_73{height:30px;font-weight:500;display:block;text-decoration:none;padding:3px var(--mantine-spacing-md);padding-left:var(--mantine-spacing-md);margin-left:var(--mantine-spacing-xl);font-size:var(--mantine-font-size-sm);color:var(--mantine-color-dark-0);border-left:1px solid var(--mantine-color-dark-4)}@media(hover:hover){._collapsible-link_15f2c_73:hover{background-color:var(--mantine-color-convergeTeal-light);color:var(--mantine-color-convergeTeal-light-color)}}@media(hover:none){._collapsible-link_15f2c_73:active{background-color:var(--mantine-color-convergeTeal-light);color:var(--mantine-color-convergeTeal-light-color)}}._collapsible-link_15f2c_73[data-active],._collapsible-link_15f2c_73[data-active]:hover{background-color:var(--mantine-color-convergeTeal-light);color:var(--mantine-color-convergeTeal-light-color)}._chevron_15f2c_125{transition:transform .2s ease}
|
|
1
|
+
._control_15f2c_1{font-weight:500;display:block;width:100%;padding:0 var(--mantine-spacing-md);color:var(--mantine-color-white);font-size:var(--mantine-font-size-sm)}@media(hover:hover){._control_15f2c_1:hover{background-color:var(--mantine-color-convergeTeal-light);color:var(--mantine-color-convergeTeal-light-color)}}@media(hover:none){._control_15f2c_1:active{background-color:var(--mantine-color-convergeTeal-light);color:var(--mantine-color-convergeTeal-light-color)}}._simple-link_15f2c_29{display:block;text-decoration:none;padding:3px var(--mantine-spacing-md);font-size:var(--mantine-font-size-sm);font-weight:500;color:var(--mantine-color-white)}@media(hover:hover){._simple-link_15f2c_29:hover{background-color:var(--mantine-color-convergeTeal-light);color:var(--mantine-color-convergeTeal-light-color)}}@media(hover:none){._simple-link_15f2c_29:active{background-color:var(--mantine-color-convergeTeal-light);color:var(--mantine-color-convergeTeal-light-color)}}._simple-link_15f2c_29[data-active],._simple-link_15f2c_29[data-active]:hover{background-color:var(--mantine-color-convergeTeal-light);color:var(--mantine-color-convergeTeal-light-color)}._collapsible-link_15f2c_73{height:30px;font-weight:500;display:block;text-decoration:none;padding:3px var(--mantine-spacing-md);padding-left:var(--mantine-spacing-md);margin-left:var(--mantine-spacing-xl);font-size:var(--mantine-font-size-sm);color:var(--mantine-color-dark-0);border-left:1px solid var(--mantine-color-dark-4)}@media(hover:hover){._collapsible-link_15f2c_73:hover{background-color:var(--mantine-color-convergeTeal-light);color:var(--mantine-color-convergeTeal-light-color)}}@media(hover:none){._collapsible-link_15f2c_73:active{background-color:var(--mantine-color-convergeTeal-light);color:var(--mantine-color-convergeTeal-light-color)}}._collapsible-link_15f2c_73[data-active],._collapsible-link_15f2c_73[data-active]:hover{background-color:var(--mantine-color-convergeTeal-light);color:var(--mantine-color-convergeTeal-light-color)}._chevron_15f2c_125{transition:transform .2s ease}._root_vkpmz_1{border-radius:var(--mantine-radius-sm)}._header_vkpmz_9{font-size:var(--mantine-font-size-xs);background-color:#f6f8fa}@media(hover:hover){._table_vkpmz_19 tbody tr:hover{background-color:var(--mantine-color-gray-0);color:var(--mantine-color-convergeTeal-7)}}@media(hover:none){._table_vkpmz_19 tbody tr:active{background-color:var(--mantine-color-gray-0);color:var(--mantine-color-convergeTeal-7)}}._table_vkpmz_19 td{height:55px;font-size:var(--mantine-font-size-xs)}
|