@xyo-network/react-table 4.4.2 → 4.4.4
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/browser/index.d.ts +57 -4
- package/package.json +12 -12
- package/dist/browser/components/TableEx/TableCellEx.d.ts +0 -6
- package/dist/browser/components/TableEx/TableCellEx.d.ts.map +0 -1
- package/dist/browser/components/TableEx/TableEx.d.ts +0 -10
- package/dist/browser/components/TableEx/TableEx.d.ts.map +0 -1
- package/dist/browser/components/TableEx/TableFooterEx.d.ts +0 -9
- package/dist/browser/components/TableEx/TableFooterEx.d.ts.map +0 -1
- package/dist/browser/components/TableEx/index.d.ts +0 -5
- package/dist/browser/components/TableEx/index.d.ts.map +0 -1
- package/dist/browser/components/TableEx/types/TableExVariants.d.ts +0 -2
- package/dist/browser/components/TableEx/types/TableExVariants.d.ts.map +0 -1
- package/dist/browser/components/TableEx/types/index.d.ts +0 -2
- package/dist/browser/components/TableEx/types/index.d.ts.map +0 -1
- package/dist/browser/components/index.d.ts +0 -2
- package/dist/browser/components/index.d.ts.map +0 -1
- package/dist/browser/context/TableHeight/Context.d.ts +0 -3
- package/dist/browser/context/TableHeight/Context.d.ts.map +0 -1
- package/dist/browser/context/TableHeight/Provider.d.ts +0 -11
- package/dist/browser/context/TableHeight/Provider.d.ts.map +0 -1
- package/dist/browser/context/TableHeight/State.d.ts +0 -10
- package/dist/browser/context/TableHeight/State.d.ts.map +0 -1
- package/dist/browser/context/TableHeight/index.d.ts +0 -5
- package/dist/browser/context/TableHeight/index.d.ts.map +0 -1
- package/dist/browser/context/TableHeight/use.d.ts +0 -2
- package/dist/browser/context/TableHeight/use.d.ts.map +0 -1
- package/dist/browser/context/index.d.ts +0 -2
- package/dist/browser/context/index.d.ts.map +0 -1
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/types/TableHead.d.ts +0 -11
- package/dist/browser/types/TableHead.d.ts.map +0 -1
- package/dist/browser/types/index.d.ts +0 -2
- package/dist/browser/types/index.d.ts.map +0 -1
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,4 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import * as _emotion_styled from '@emotion/styled';
|
|
2
|
+
import * as _mui_system from '@mui/system';
|
|
3
|
+
import * as _mui_material from '@mui/material';
|
|
4
|
+
import { TableCellProps, TableProps, TableFooterProps } from '@mui/material';
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import React__default, { PropsWithChildren, Dispatch, SetStateAction } from 'react';
|
|
7
|
+
import * as _xyo_network_react_shared from '@xyo-network/react-shared';
|
|
8
|
+
import { ContextExState, ContextExProviderProps } from '@xyo-network/react-shared';
|
|
9
|
+
|
|
10
|
+
interface TableCellExProps extends TableCellProps {
|
|
11
|
+
noBgColor?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const TableCellEx: _emotion_styled.StyledComponent<TableCellProps & _mui_system.MUIStyledCommonProps<_mui_material.Theme> & TableCellExProps, {}, {}>;
|
|
14
|
+
|
|
15
|
+
type TableExVariants = 'scrollable' | 'normal';
|
|
16
|
+
|
|
17
|
+
interface TableExProps extends PropsWithChildren, TableProps {
|
|
18
|
+
variant?: TableExVariants;
|
|
19
|
+
}
|
|
20
|
+
declare const TableExWithRef: React__default.ForwardRefExoticComponent<Omit<TableExProps, "ref"> & React__default.RefAttributes<HTMLTableElement>>;
|
|
21
|
+
declare const TableEx: React__default.ForwardRefExoticComponent<Omit<TableExProps, "ref"> & React__default.RefAttributes<HTMLTableElement>>;
|
|
22
|
+
|
|
23
|
+
interface TableFooterExProps extends PropsWithChildren, TableFooterProps {
|
|
24
|
+
variant?: TableExVariants;
|
|
25
|
+
}
|
|
26
|
+
declare const TableFooterEx: React__default.FC<TableFooterExProps>;
|
|
27
|
+
|
|
28
|
+
interface TableHeightState extends ContextExState {
|
|
29
|
+
height?: string;
|
|
30
|
+
rowHeight?: number;
|
|
31
|
+
setRowHeight?: Dispatch<SetStateAction<number | undefined>>;
|
|
32
|
+
setVisibleRows?: Dispatch<SetStateAction<number | undefined>>;
|
|
33
|
+
visibleRows?: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
declare const TableHeightContext: React.Context<TableHeightState & _xyo_network_react_shared.ContextExState>;
|
|
37
|
+
|
|
38
|
+
interface TableHeightProviderProps extends ContextExProviderProps, PropsWithChildren {
|
|
39
|
+
additionalRows?: number;
|
|
40
|
+
defaultVisibleRows?: number;
|
|
41
|
+
heightFormat?: string;
|
|
42
|
+
}
|
|
43
|
+
declare const TableHeightProvider: React__default.FC<TableHeightProviderProps>;
|
|
44
|
+
|
|
45
|
+
declare const useTableHeight: (required?: boolean) => Omit<TableHeightState & _xyo_network_react_shared.ContextExState, "provided">;
|
|
46
|
+
|
|
47
|
+
interface TableHeadCell {
|
|
48
|
+
align?: 'left' | 'right' | 'center';
|
|
49
|
+
disablePadding: boolean;
|
|
50
|
+
id: string;
|
|
51
|
+
label: string;
|
|
52
|
+
numeric: boolean;
|
|
53
|
+
showOnMobile: boolean;
|
|
54
|
+
width?: TableCellProps['width'];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { TableCellEx, type TableCellExProps, TableEx, type TableExProps, type TableExVariants, TableExWithRef, TableFooterEx, type TableFooterExProps, type TableHeadCell, TableHeightContext, TableHeightProvider, type TableHeightProviderProps, type TableHeightState, useTableHeight };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-table",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.4",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -43,21 +43,21 @@
|
|
|
43
43
|
"lint-pkg": "npmPkgJsonLint ."
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@xylabs/react-hooks": "^5.3.
|
|
47
|
-
"@xyo-network/react-shared": "^4.4.
|
|
46
|
+
"@xylabs/react-hooks": "^5.3.23",
|
|
47
|
+
"@xyo-network/react-shared": "^4.4.4"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@mui/icons-material": "^6.4.
|
|
51
|
-
"@mui/material": "^6.4.
|
|
52
|
-
"@mui/styles": "^6.4.
|
|
53
|
-
"@storybook/react": "^8.5.
|
|
54
|
-
"@xylabs/ts-scripts-yarn3": "^
|
|
55
|
-
"@xylabs/tsconfig-react": "^
|
|
56
|
-
"@xyo-network/react-storybook": "^4.4.
|
|
50
|
+
"@mui/icons-material": "^6.4.4",
|
|
51
|
+
"@mui/material": "^6.4.4",
|
|
52
|
+
"@mui/styles": "^6.4.4",
|
|
53
|
+
"@storybook/react": "^8.5.5",
|
|
54
|
+
"@xylabs/ts-scripts-yarn3": "^5.0.24",
|
|
55
|
+
"@xylabs/tsconfig-react": "^5.0.24",
|
|
56
|
+
"@xyo-network/react-storybook": "^4.4.4",
|
|
57
57
|
"react": "^18.3.1",
|
|
58
58
|
"react-dom": "^18.3.1",
|
|
59
|
-
"react-router-dom": "^7.1.
|
|
60
|
-
"storybook": "^8.5.
|
|
59
|
+
"react-router-dom": "^7.1.5",
|
|
60
|
+
"storybook": "^8.5.5",
|
|
61
61
|
"typescript": "^5.7.3"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { TableCellProps } from '@mui/material';
|
|
2
|
-
export interface TableCellExProps extends TableCellProps {
|
|
3
|
-
noBgColor?: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const TableCellEx: import("@emotion/styled").StyledComponent<TableCellProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & TableCellExProps, {}, {}>;
|
|
6
|
-
//# sourceMappingURL=TableCellEx.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableCellEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableCellEx.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAGnD,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,eAAO,MAAM,WAAW,kKAEvB,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { TableProps } from '@mui/material';
|
|
2
|
-
import type { PropsWithChildren } from 'react';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import type { TableExVariants } from './types/index.ts';
|
|
5
|
-
export interface TableExProps extends PropsWithChildren, TableProps {
|
|
6
|
-
variant?: TableExVariants;
|
|
7
|
-
}
|
|
8
|
-
export declare const TableExWithRef: React.ForwardRefExoticComponent<Omit<TableExProps, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
9
|
-
export declare const TableEx: React.ForwardRefExoticComponent<Omit<TableExProps, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
10
|
-
//# sourceMappingURL=TableEx.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableEx.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAEvD,MAAM,WAAW,YAAa,SAAQ,iBAAiB,EAAE,UAAU;IACjE,OAAO,CAAC,EAAE,eAAe,CAAA;CAC1B;AAYD,eAAO,MAAM,cAAc,oGAQzB,CAAA;AAIF,eAAO,MAAM,OAAO,oGAAiB,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { TableFooterProps } from '@mui/material';
|
|
2
|
-
import type { PropsWithChildren } from 'react';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import type { TableExVariants } from './types/index.ts';
|
|
5
|
-
export interface TableFooterExProps extends PropsWithChildren, TableFooterProps {
|
|
6
|
-
variant?: TableExVariants;
|
|
7
|
-
}
|
|
8
|
-
export declare const TableFooterEx: React.FC<TableFooterExProps>;
|
|
9
|
-
//# sourceMappingURL=TableFooterEx.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableFooterEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableFooterEx.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAgBvD,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB,EAAE,gBAAgB;IAC7E,OAAO,CAAC,EAAE,eAAe,CAAA;CAC1B;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAA4F,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableExVariants.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableEx/types/TableExVariants.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,YAAY,GAAG,QAAQ,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableEx/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/Context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,eAAO,MAAM,kBAAkB,gGAAsC,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ContextExProviderProps } from '@xyo-network/react-shared';
|
|
2
|
-
import type { PropsWithChildren } from 'react';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
export interface TableHeightProviderProps extends ContextExProviderProps, PropsWithChildren {
|
|
5
|
-
/** @field Account for optional header and footer rows */
|
|
6
|
-
additionalRows?: number;
|
|
7
|
-
defaultVisibleRows?: number;
|
|
8
|
-
heightFormat?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const TableHeightProvider: React.FC<TableHeightProviderProps>;
|
|
11
|
-
//# sourceMappingURL=Provider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/Provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AACvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAC9C,OAAO,KAA4B,MAAM,OAAO,CAAA;AAIhD,MAAM,WAAW,wBAAyB,SAAQ,sBAAsB,EAAE,iBAAiB;IACzF,yDAAyD;IACzD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA0BlE,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ContextExState } from '@xyo-network/react-shared';
|
|
2
|
-
import type { Dispatch, SetStateAction } from 'react';
|
|
3
|
-
export interface TableHeightState extends ContextExState {
|
|
4
|
-
height?: string;
|
|
5
|
-
rowHeight?: number;
|
|
6
|
-
setRowHeight?: Dispatch<SetStateAction<number | undefined>>;
|
|
7
|
-
setVisibleRows?: Dispatch<SetStateAction<number | undefined>>;
|
|
8
|
-
visibleRows?: number;
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=State.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"State.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/State.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAErD,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,CAAA;IAC3D,cAAc,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,CAAA;IAC7D,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,sIAAkF,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/context/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { TableCellProps } from '@mui/material';
|
|
2
|
-
export interface TableHeadCell {
|
|
3
|
-
align?: 'left' | 'right' | 'center';
|
|
4
|
-
disablePadding: boolean;
|
|
5
|
-
id: string;
|
|
6
|
-
label: string;
|
|
7
|
-
numeric: boolean;
|
|
8
|
-
showOnMobile: boolean;
|
|
9
|
-
width?: TableCellProps['width'];
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=TableHead.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableHead.d.ts","sourceRoot":"","sources":["../../../src/types/TableHead.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAA;AAEnD,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAA;IACnC,cAAc,EAAE,OAAO,CAAA;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,OAAO,CAAA;IAChB,YAAY,EAAE,OAAO,CAAA;IACrB,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;CAChC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
|