@xyo-network/react-table 6.0.0 → 6.1.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/dist/browser/components/TableEx/TableEx.stories.d.ts +9 -0
- package/dist/browser/components/TableEx/TableEx.stories.d.ts.map +1 -0
- package/dist/browser/index.d.ts +91 -0
- package/package.json +11 -10
- package/dist/types/index.d.ts +0 -4
- /package/dist/{types → browser}/components/TableEx/TableCellEx.d.ts +0 -0
- /package/dist/{types → browser}/components/TableEx/TableCellEx.d.ts.map +0 -0
- /package/dist/{types → browser}/components/TableEx/TableEx.d.ts +0 -0
- /package/dist/{types → browser}/components/TableEx/TableEx.d.ts.map +0 -0
- /package/dist/{types → browser}/components/TableEx/TableFooterEx.d.ts +0 -0
- /package/dist/{types → browser}/components/TableEx/TableFooterEx.d.ts.map +0 -0
- /package/dist/{types → browser}/components/TableEx/index.d.ts +0 -0
- /package/dist/{types → browser}/components/TableEx/index.d.ts.map +0 -0
- /package/dist/{types → browser}/components/TableEx/types/TableExVariants.d.ts +0 -0
- /package/dist/{types → browser}/components/TableEx/types/TableExVariants.d.ts.map +0 -0
- /package/dist/{types → browser}/components/TableEx/types/index.d.ts +0 -0
- /package/dist/{types → browser}/components/TableEx/types/index.d.ts.map +0 -0
- /package/dist/{types → browser}/components/index.d.ts +0 -0
- /package/dist/{types → browser}/components/index.d.ts.map +0 -0
- /package/dist/{types → browser}/context/TableHeight/Context.d.ts +0 -0
- /package/dist/{types → browser}/context/TableHeight/Context.d.ts.map +0 -0
- /package/dist/{types → browser}/context/TableHeight/Provider.d.ts +0 -0
- /package/dist/{types → browser}/context/TableHeight/Provider.d.ts.map +0 -0
- /package/dist/{types → browser}/context/TableHeight/State.d.ts +0 -0
- /package/dist/{types → browser}/context/TableHeight/State.d.ts.map +0 -0
- /package/dist/{types → browser}/context/TableHeight/index.d.ts +0 -0
- /package/dist/{types → browser}/context/TableHeight/index.d.ts.map +0 -0
- /package/dist/{types → browser}/context/TableHeight/use.d.ts +0 -0
- /package/dist/{types → browser}/context/TableHeight/use.d.ts.map +0 -0
- /package/dist/{types → browser}/context/index.d.ts +0 -0
- /package/dist/{types → browser}/context/index.d.ts.map +0 -0
- /package/dist/{types → browser}/index.d.ts.map +0 -0
- /package/dist/{types → browser}/types/TableHead.d.ts +0 -0
- /package/dist/{types → browser}/types/TableHead.d.ts.map +0 -0
- /package/dist/{types → browser}/types/index.d.ts +0 -0
- /package/dist/{types → browser}/types/index.d.ts.map +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta } from '@storybook/react-vite';
|
|
2
|
+
import { TableEx } from './TableEx.tsx';
|
|
3
|
+
declare const StorybookEntry: Meta<typeof TableEx>;
|
|
4
|
+
declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./TableEx.tsx").TableExProps>;
|
|
5
|
+
declare const WithRef: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./TableEx.tsx").TableExProps>;
|
|
6
|
+
declare const WithScrollable: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./TableEx.tsx").TableExProps>;
|
|
7
|
+
export { Default, WithRef, WithScrollable, };
|
|
8
|
+
export default StorybookEntry;
|
|
9
|
+
//# sourceMappingURL=TableEx.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableEx.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableEx.stories.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACC,IAAI,EAChB,MAAM,uBAAuB,CAAA;AAK9B,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAYvC,QAAA,MAAM,cAAc,EAKf,IAAI,CAAC,OAAO,OAAO,CAAC,CAAA;AAmDzB,QAAA,MAAM,OAAO,wIAAoB,CAAA;AAGjC,QAAA,MAAM,OAAO,wIAAoB,CAAA;AAGjC,QAAA,MAAM,cAAc,wIAAoB,CAAA;AAIxC,OAAO,EACL,OAAO,EAAE,OAAO,EAAE,cAAc,GACjC,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1,91 @@
|
|
|
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 _xylabs_react_shared from '@xylabs/react-shared';
|
|
8
|
+
import { ContextExProviderProps, ContextExState } from '@xylabs/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.FC<TableExProps>;
|
|
21
|
+
declare const TableEx: react__default.FC<TableExProps>;
|
|
22
|
+
|
|
23
|
+
interface TableFooterExProps extends PropsWithChildren, TableFooterProps {
|
|
24
|
+
variant?: TableExVariants;
|
|
25
|
+
}
|
|
26
|
+
declare const TableFooterEx: react__default.FC<TableFooterExProps>;
|
|
27
|
+
|
|
28
|
+
declare const TableHeightContext: react.Context<({
|
|
29
|
+
height?: string;
|
|
30
|
+
rowHeight?: number;
|
|
31
|
+
setRowHeight?: react.Dispatch<react.SetStateAction<number | undefined>>;
|
|
32
|
+
setVisibleRows?: react.Dispatch<react.SetStateAction<number | undefined>>;
|
|
33
|
+
visibleRows?: number;
|
|
34
|
+
} & {
|
|
35
|
+
provided: true;
|
|
36
|
+
}) | (_xylabs_react_shared.FixedValues<_xylabs_react_shared.ProvidedContextExState<{
|
|
37
|
+
height?: string;
|
|
38
|
+
rowHeight?: number;
|
|
39
|
+
setRowHeight?: react.Dispatch<react.SetStateAction<number | undefined>>;
|
|
40
|
+
setVisibleRows?: react.Dispatch<react.SetStateAction<number | undefined>>;
|
|
41
|
+
visibleRows?: number;
|
|
42
|
+
}>, never> & {
|
|
43
|
+
provided: false;
|
|
44
|
+
}) | (_xylabs_react_shared.FixedValues<_xylabs_react_shared.NotProvidedContextExState<{
|
|
45
|
+
height?: string;
|
|
46
|
+
rowHeight?: number;
|
|
47
|
+
setRowHeight?: react.Dispatch<react.SetStateAction<number | undefined>>;
|
|
48
|
+
setVisibleRows?: react.Dispatch<react.SetStateAction<number | undefined>>;
|
|
49
|
+
visibleRows?: number;
|
|
50
|
+
}>, never> & {
|
|
51
|
+
provided: false;
|
|
52
|
+
})>;
|
|
53
|
+
|
|
54
|
+
interface TableHeightProviderProps extends ContextExProviderProps, PropsWithChildren {
|
|
55
|
+
/** @field Account for optional header and footer rows */
|
|
56
|
+
additionalRows?: number;
|
|
57
|
+
defaultVisibleRows?: number;
|
|
58
|
+
heightFormat?: string;
|
|
59
|
+
}
|
|
60
|
+
declare const TableHeightProvider: react__default.FC<TableHeightProviderProps>;
|
|
61
|
+
|
|
62
|
+
type TableHeightState = ContextExState<{
|
|
63
|
+
height?: string;
|
|
64
|
+
rowHeight?: number;
|
|
65
|
+
setRowHeight?: Dispatch<SetStateAction<number | undefined>>;
|
|
66
|
+
setVisibleRows?: Dispatch<SetStateAction<number | undefined>>;
|
|
67
|
+
visibleRows?: number;
|
|
68
|
+
}>;
|
|
69
|
+
|
|
70
|
+
declare const useTableHeight: (required?: boolean) => Omit<{
|
|
71
|
+
height?: string;
|
|
72
|
+
rowHeight?: number;
|
|
73
|
+
setRowHeight?: react.Dispatch<react.SetStateAction<number | undefined>>;
|
|
74
|
+
setVisibleRows?: react.Dispatch<react.SetStateAction<number | undefined>>;
|
|
75
|
+
visibleRows?: number;
|
|
76
|
+
} & {
|
|
77
|
+
provided: true;
|
|
78
|
+
}, "provided"> | Omit<_xylabs_react_shared.NotProvidedContextExState<TableHeightState>, "provided">;
|
|
79
|
+
|
|
80
|
+
interface TableHeadCell {
|
|
81
|
+
align?: 'left' | 'right' | 'center';
|
|
82
|
+
disablePadding: boolean;
|
|
83
|
+
id: string;
|
|
84
|
+
label: string;
|
|
85
|
+
numeric: boolean;
|
|
86
|
+
showOnMobile: boolean;
|
|
87
|
+
width?: TableCellProps['width'];
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export { TableCellEx, TableEx, TableExWithRef, TableFooterEx, TableHeightContext, TableHeightProvider, useTableHeight };
|
|
91
|
+
export type { TableCellExProps, TableExProps, TableExVariants, TableFooterExProps, TableHeadCell, TableHeightProviderProps, TableHeightState };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-table",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -28,31 +28,32 @@
|
|
|
28
28
|
"exports": {
|
|
29
29
|
".": {
|
|
30
30
|
"browser": {
|
|
31
|
-
"types": "./dist/
|
|
31
|
+
"types": "./dist/browser/index.d.ts",
|
|
32
32
|
"default": "./dist/browser/index.mjs"
|
|
33
33
|
},
|
|
34
|
-
"types": "./dist/
|
|
34
|
+
"types": "./dist/browser/index.d.ts",
|
|
35
35
|
"default": "./dist/browser/index.mjs"
|
|
36
36
|
},
|
|
37
37
|
"./package.json": "./package.json"
|
|
38
38
|
},
|
|
39
39
|
"module": "dist/browser/index.mjs",
|
|
40
|
-
"types": "dist/
|
|
40
|
+
"types": "dist/browser/index.d.ts",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@xylabs/react-hooks": "^6.3.
|
|
43
|
-
"@xylabs/react-shared": "^6.3.
|
|
42
|
+
"@xylabs/react-hooks": "^6.3.10",
|
|
43
|
+
"@xylabs/react-shared": "^6.3.10"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@mui/icons-material": "^7.2.0",
|
|
47
47
|
"@mui/material": "^7.2.0",
|
|
48
|
+
"@storybook/react-vite": "^9.0.16",
|
|
48
49
|
"@types/react": "^19.1.8",
|
|
49
|
-
"@xylabs/ts-scripts-yarn3": "
|
|
50
|
-
"@xylabs/tsconfig-react": "
|
|
51
|
-
"@xyo-network/react-storybook": "^6.
|
|
50
|
+
"@xylabs/ts-scripts-yarn3": "next",
|
|
51
|
+
"@xylabs/tsconfig-react": "next",
|
|
52
|
+
"@xyo-network/react-storybook": "^6.1.1",
|
|
52
53
|
"react": "^19.1.0",
|
|
53
54
|
"react-dom": "^19.1.0",
|
|
54
55
|
"react-router-dom": "^7.6.3",
|
|
55
|
-
"storybook": "^9.0.
|
|
56
|
+
"storybook": "^9.0.16",
|
|
56
57
|
"typescript": "^5.8.3"
|
|
57
58
|
},
|
|
58
59
|
"peerDependencies": {
|
package/dist/types/index.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|