@xyo-network/react-table 7.4.2 → 7.5.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/browser/components/TableEx/TableCellEx.d.ts +1 -1
- package/dist/browser/components/TableEx/TableCellEx.d.ts.map +1 -1
- package/dist/browser/components/TableEx/TableEx.stories.d.ts +3 -3
- package/dist/browser/components/TableEx/TableEx.stories.d.ts.map +1 -1
- package/dist/browser/index.mjs +48 -31
- package/dist/browser/index.mjs.map +1 -1
- package/package.json +18 -18
|
@@ -2,5 +2,5 @@ import type { TableCellProps } from '@mui/material';
|
|
|
2
2
|
export interface TableCellExProps extends TableCellProps {
|
|
3
3
|
noBgColor?: boolean;
|
|
4
4
|
}
|
|
5
|
-
export declare const TableCellEx: import("@emotion/styled").StyledComponent<TableCellProps & import("
|
|
5
|
+
export declare const TableCellEx: import("@emotion/styled").StyledComponent<TableCellProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & TableCellExProps, {}, {}>;
|
|
6
6
|
//# sourceMappingURL=TableCellEx.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,9 +1,9 @@
|
|
|
1
1
|
import type { Meta } from '@storybook/react-vite';
|
|
2
2
|
import { TableEx } from './TableEx.tsx';
|
|
3
3
|
declare const StorybookEntry: Meta<typeof TableEx>;
|
|
4
|
-
declare const Default: import("
|
|
5
|
-
declare const WithRef: import("
|
|
6
|
-
declare const WithScrollable: import("
|
|
4
|
+
declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./TableEx.tsx").TableExProps>;
|
|
5
|
+
declare const WithRef: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./TableEx.tsx").TableExProps>;
|
|
6
|
+
declare const WithScrollable: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("./TableEx.tsx").TableExProps>;
|
|
7
7
|
export { Default, WithRef, WithScrollable, };
|
|
8
8
|
export default StorybookEntry;
|
|
9
9
|
//# sourceMappingURL=TableEx.stories.d.ts.map
|
|
@@ -1 +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,
|
|
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,mIAAoB,CAAA;AAGjC,QAAA,MAAM,OAAO,mIAAoB,CAAA;AAGjC,QAAA,MAAM,cAAc,mIAAoB,CAAA;AAIxC,OAAO,EACL,OAAO,EAAE,OAAO,EAAE,cAAc,GACjC,CAAA;AAED,eAAe,cAAc,CAAA"}
|
package/dist/browser/index.mjs
CHANGED
|
@@ -1,32 +1,39 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
|
|
1
4
|
// src/components/TableEx/TableCellEx.tsx
|
|
2
5
|
import { styled, TableCell } from "@mui/material";
|
|
3
|
-
var TableCellEx = styled(TableCell, {
|
|
4
|
-
|
|
5
|
-
)
|
|
6
|
+
var TableCellEx = styled(TableCell, {
|
|
7
|
+
name: "TableCellNoBgColor",
|
|
8
|
+
shouldForwardProp: /* @__PURE__ */ __name((prop) => prop !== "noBgColor", "shouldForwardProp")
|
|
9
|
+
})(({ noBgColor = true }) => ({
|
|
10
|
+
...noBgColor && {
|
|
11
|
+
backgroundColor: "transparent"
|
|
12
|
+
}
|
|
13
|
+
}));
|
|
6
14
|
|
|
7
15
|
// src/components/TableEx/TableEx.tsx
|
|
8
16
|
import { Table } from "@mui/material";
|
|
9
|
-
import
|
|
10
|
-
var TableExInner = ({ children, ...props }) => {
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
-
};
|
|
17
|
+
import React from "react";
|
|
18
|
+
var TableExInner = /* @__PURE__ */ __name(({ children, ...props }) => {
|
|
19
|
+
return /* @__PURE__ */ React.createElement(Table, props, children);
|
|
20
|
+
}, "TableExInner");
|
|
13
21
|
TableExInner.displayName = "TableExInner";
|
|
14
|
-
var TableExWithRef = ({
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
})
|
|
19
|
-
|
|
20
|
-
};
|
|
22
|
+
var TableExWithRef = /* @__PURE__ */ __name(({ variant, children, ...props }) => {
|
|
23
|
+
return /* @__PURE__ */ React.createElement(TableExInner, {
|
|
24
|
+
stickyHeader: variant === "scrollable",
|
|
25
|
+
...props
|
|
26
|
+
}, children);
|
|
27
|
+
}, "TableExWithRef");
|
|
21
28
|
TableExWithRef.displayName = "TableEx";
|
|
22
29
|
var TableEx = TableExWithRef;
|
|
23
30
|
|
|
24
31
|
// src/components/TableEx/TableFooterEx.tsx
|
|
25
32
|
import { styled as styled2, TableFooter } from "@mui/material";
|
|
26
|
-
import
|
|
33
|
+
import React2 from "react";
|
|
27
34
|
var TableFooterExRoot = styled2(TableFooter, {
|
|
28
35
|
name: "TableFooterEx",
|
|
29
|
-
shouldForwardProp: (propName) => propName !== "scrollable",
|
|
36
|
+
shouldForwardProp: /* @__PURE__ */ __name((propName) => propName !== "scrollable", "shouldForwardProp"),
|
|
30
37
|
slot: "Root"
|
|
31
38
|
})(({ variant, theme }) => ({
|
|
32
39
|
backgroundColor: theme.vars.palette.background.default,
|
|
@@ -37,7 +44,7 @@ var TableFooterExRoot = styled2(TableFooter, {
|
|
|
37
44
|
position: "sticky"
|
|
38
45
|
}
|
|
39
46
|
}));
|
|
40
|
-
var TableFooterEx = ({ children, ...props }) => /* @__PURE__ */
|
|
47
|
+
var TableFooterEx = /* @__PURE__ */ __name(({ children, ...props }) => /* @__PURE__ */ React2.createElement(TableFooterExRoot, props, children), "TableFooterEx");
|
|
41
48
|
|
|
42
49
|
// src/context/TableHeight/Context.ts
|
|
43
50
|
import { createContextEx } from "@xylabs/react-shared";
|
|
@@ -45,22 +52,24 @@ var TableHeightContext = createContextEx();
|
|
|
45
52
|
|
|
46
53
|
// src/context/TableHeight/Provider.tsx
|
|
47
54
|
import { useResetState } from "@xylabs/react-hooks";
|
|
48
|
-
import { useMemo, useState } from "react";
|
|
49
|
-
|
|
50
|
-
var TableHeightProvider = ({
|
|
51
|
-
children,
|
|
52
|
-
additionalRows = 0,
|
|
53
|
-
defaultVisibleRows,
|
|
54
|
-
heightFormat = "px"
|
|
55
|
-
}) => {
|
|
55
|
+
import React3, { useMemo, useState } from "react";
|
|
56
|
+
var TableHeightProvider = /* @__PURE__ */ __name(({ children, additionalRows = 0, defaultVisibleRows, heightFormat = "px" }) => {
|
|
56
57
|
const [visibleRows, setVisibleRows] = useResetState(defaultVisibleRows);
|
|
57
58
|
const [rowHeight, setRowHeight] = useState();
|
|
58
59
|
const height = useMemo(() => {
|
|
59
60
|
if (rowHeight !== void 0 && visibleRows !== void 0) {
|
|
60
61
|
return rowHeight * (visibleRows + additionalRows);
|
|
61
62
|
}
|
|
62
|
-
}, [
|
|
63
|
-
|
|
63
|
+
}, [
|
|
64
|
+
defaultVisibleRows,
|
|
65
|
+
rowHeight,
|
|
66
|
+
visibleRows,
|
|
67
|
+
additionalRows
|
|
68
|
+
]);
|
|
69
|
+
const formattedHeight = useMemo(() => height === void 0 ? void 0 : `${height}${heightFormat}`, [
|
|
70
|
+
height,
|
|
71
|
+
heightFormat
|
|
72
|
+
]);
|
|
64
73
|
const value = useMemo(() => ({
|
|
65
74
|
height: formattedHeight,
|
|
66
75
|
provided: true,
|
|
@@ -68,13 +77,21 @@ var TableHeightProvider = ({
|
|
|
68
77
|
setRowHeight,
|
|
69
78
|
setVisibleRows,
|
|
70
79
|
visibleRows
|
|
71
|
-
}), [
|
|
72
|
-
|
|
73
|
-
|
|
80
|
+
}), [
|
|
81
|
+
formattedHeight,
|
|
82
|
+
rowHeight,
|
|
83
|
+
setRowHeight,
|
|
84
|
+
setVisibleRows,
|
|
85
|
+
visibleRows
|
|
86
|
+
]);
|
|
87
|
+
return /* @__PURE__ */ React3.createElement(TableHeightContext, {
|
|
88
|
+
value
|
|
89
|
+
}, children);
|
|
90
|
+
}, "TableHeightProvider");
|
|
74
91
|
|
|
75
92
|
// src/context/TableHeight/use.ts
|
|
76
93
|
import { useContextEx } from "@xylabs/react-shared";
|
|
77
|
-
var useTableHeight = (required = false) => useContextEx(TableHeightContext, "TableHeight", required);
|
|
94
|
+
var useTableHeight = /* @__PURE__ */ __name((required = false) => useContextEx(TableHeightContext, "TableHeight", required), "useTableHeight");
|
|
78
95
|
export {
|
|
79
96
|
TableCellEx,
|
|
80
97
|
TableEx,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/TableEx/TableCellEx.tsx","../../src/components/TableEx/TableEx.tsx","../../src/components/TableEx/TableFooterEx.tsx","../../src/context/TableHeight/Context.ts","../../src/context/TableHeight/Provider.tsx","../../src/context/TableHeight/use.ts"],"sourcesContent":["import type { TableCellProps } from '@mui/material'\nimport { styled, TableCell } from '@mui/material'\n\nexport interface TableCellExProps extends TableCellProps {\n noBgColor?: boolean\n}\n\nexport const TableCellEx = styled(TableCell, { name: 'TableCellNoBgColor', shouldForwardProp: prop => prop !== 'noBgColor' })<TableCellExProps>(\n ({ noBgColor = true }) => ({ ...(noBgColor && { backgroundColor: 'transparent' }) }),\n)\n","import type { TableProps } from '@mui/material'\nimport { Table } from '@mui/material'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport type { TableExVariants } from './types/index.ts'\n\nexport interface TableExProps extends PropsWithChildren, TableProps {\n variant?: TableExVariants\n}\n\nconst TableExInner: React.FC<TableExProps> = ({ children, ...props }) => {\n return (\n <Table {...props}>\n {children}\n </Table>\n )\n}\n\nTableExInner.displayName = 'TableExInner'\n\nexport const TableExWithRef: React.FC<TableExProps> = ({\n variant, children, ...props\n}) => {\n return (\n <TableExInner stickyHeader={variant === 'scrollable'} {...props}>\n {children}\n </TableExInner>\n )\n}\n\nTableExWithRef.displayName = 'TableEx'\n\nexport const TableEx = TableExWithRef\n","import type { TableFooterProps } from '@mui/material'\nimport { styled, TableFooter } from '@mui/material'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport type { TableExVariants } from './types/index.ts'\n\nconst TableFooterExRoot = styled(TableFooter, {\n name: 'TableFooterEx',\n shouldForwardProp: propName => propName !== 'scrollable',\n slot: 'Root',\n})<TableFooterExProps>(({ variant, theme }) => ({\n backgroundColor: theme.vars.palette.background.default,\n bottom: 'unset',\n position: 'relative',\n ...(variant === 'scrollable' && {\n bottom: 0,\n position: 'sticky',\n }),\n}))\n\nexport interface TableFooterExProps extends PropsWithChildren, TableFooterProps {\n variant?: TableExVariants\n}\n\nexport const TableFooterEx: React.FC<TableFooterExProps> = ({ children, ...props }) => <TableFooterExRoot {...props}>{children}</TableFooterExRoot>\n","import { createContextEx } from '@xylabs/react-shared'\n\nimport type { TableHeightState } from './State.ts'\n\nexport const TableHeightContext = createContextEx<TableHeightState>()\n","import { useResetState } from '@xylabs/react-hooks'\nimport type { ContextExProviderProps } from '@xylabs/react-shared'\nimport type { PropsWithChildren } from 'react'\nimport React, { useMemo, useState } from 'react'\n\nimport { TableHeightContext } from './Context.ts'\nimport type { TableHeightState } from './State.ts'\n\nexport interface TableHeightProviderProps extends ContextExProviderProps, PropsWithChildren {\n /** @field Account for optional header and footer rows */\n additionalRows?: number\n defaultVisibleRows?: number\n heightFormat?: string\n}\n\nexport const TableHeightProvider: React.FC<TableHeightProviderProps> = ({\n children,\n additionalRows = 0,\n defaultVisibleRows,\n heightFormat = 'px',\n}) => {\n const [visibleRows, setVisibleRows] = useResetState(defaultVisibleRows)\n const [rowHeight, setRowHeight] = useState<number | undefined>()\n\n const height = useMemo(() => {\n if (rowHeight !== undefined && visibleRows !== undefined) {\n return rowHeight * (visibleRows + additionalRows)\n }\n }, [defaultVisibleRows, rowHeight, visibleRows, additionalRows])\n\n const formattedHeight = useMemo(() => (height === undefined ? undefined : `${height}${heightFormat}`), [height, heightFormat])\n\n const value: TableHeightState = useMemo(() => ({\n height: formattedHeight, provided: true, rowHeight, setRowHeight, setVisibleRows, visibleRows,\n }), [formattedHeight, rowHeight, setRowHeight, setVisibleRows, visibleRows])\n\n return (\n <TableHeightContext value={value}>\n {children}\n </TableHeightContext>\n )\n}\n","import { useContextEx } from '@xylabs/react-shared'\n\nimport { TableHeightContext } from './Context.ts'\n\nexport const useTableHeight = (required = false) => useContextEx(TableHeightContext, 'TableHeight', required)\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/components/TableEx/TableCellEx.tsx","../../src/components/TableEx/TableEx.tsx","../../src/components/TableEx/TableFooterEx.tsx","../../src/context/TableHeight/Context.ts","../../src/context/TableHeight/Provider.tsx","../../src/context/TableHeight/use.ts"],"sourcesContent":["import type { TableCellProps } from '@mui/material'\nimport { styled, TableCell } from '@mui/material'\n\nexport interface TableCellExProps extends TableCellProps {\n noBgColor?: boolean\n}\n\nexport const TableCellEx = styled(TableCell, { name: 'TableCellNoBgColor', shouldForwardProp: prop => prop !== 'noBgColor' })<TableCellExProps>(\n ({ noBgColor = true }) => ({ ...(noBgColor && { backgroundColor: 'transparent' }) }),\n)\n","import type { TableProps } from '@mui/material'\nimport { Table } from '@mui/material'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport type { TableExVariants } from './types/index.ts'\n\nexport interface TableExProps extends PropsWithChildren, TableProps {\n variant?: TableExVariants\n}\n\nconst TableExInner: React.FC<TableExProps> = ({ children, ...props }) => {\n return (\n <Table {...props}>\n {children}\n </Table>\n )\n}\n\nTableExInner.displayName = 'TableExInner'\n\nexport const TableExWithRef: React.FC<TableExProps> = ({\n variant, children, ...props\n}) => {\n return (\n <TableExInner stickyHeader={variant === 'scrollable'} {...props}>\n {children}\n </TableExInner>\n )\n}\n\nTableExWithRef.displayName = 'TableEx'\n\nexport const TableEx = TableExWithRef\n","import type { TableFooterProps } from '@mui/material'\nimport { styled, TableFooter } from '@mui/material'\nimport type { PropsWithChildren } from 'react'\nimport React from 'react'\n\nimport type { TableExVariants } from './types/index.ts'\n\nconst TableFooterExRoot = styled(TableFooter, {\n name: 'TableFooterEx',\n shouldForwardProp: propName => propName !== 'scrollable',\n slot: 'Root',\n})<TableFooterExProps>(({ variant, theme }) => ({\n backgroundColor: theme.vars.palette.background.default,\n bottom: 'unset',\n position: 'relative',\n ...(variant === 'scrollable' && {\n bottom: 0,\n position: 'sticky',\n }),\n}))\n\nexport interface TableFooterExProps extends PropsWithChildren, TableFooterProps {\n variant?: TableExVariants\n}\n\nexport const TableFooterEx: React.FC<TableFooterExProps> = ({ children, ...props }) => <TableFooterExRoot {...props}>{children}</TableFooterExRoot>\n","import { createContextEx } from '@xylabs/react-shared'\n\nimport type { TableHeightState } from './State.ts'\n\nexport const TableHeightContext = createContextEx<TableHeightState>()\n","import { useResetState } from '@xylabs/react-hooks'\nimport type { ContextExProviderProps } from '@xylabs/react-shared'\nimport type { PropsWithChildren } from 'react'\nimport React, { useMemo, useState } from 'react'\n\nimport { TableHeightContext } from './Context.ts'\nimport type { TableHeightState } from './State.ts'\n\nexport interface TableHeightProviderProps extends ContextExProviderProps, PropsWithChildren {\n /** @field Account for optional header and footer rows */\n additionalRows?: number\n defaultVisibleRows?: number\n heightFormat?: string\n}\n\nexport const TableHeightProvider: React.FC<TableHeightProviderProps> = ({\n children,\n additionalRows = 0,\n defaultVisibleRows,\n heightFormat = 'px',\n}) => {\n const [visibleRows, setVisibleRows] = useResetState(defaultVisibleRows)\n const [rowHeight, setRowHeight] = useState<number | undefined>()\n\n const height = useMemo(() => {\n if (rowHeight !== undefined && visibleRows !== undefined) {\n return rowHeight * (visibleRows + additionalRows)\n }\n }, [defaultVisibleRows, rowHeight, visibleRows, additionalRows])\n\n const formattedHeight = useMemo(() => (height === undefined ? undefined : `${height}${heightFormat}`), [height, heightFormat])\n\n const value: TableHeightState = useMemo(() => ({\n height: formattedHeight, provided: true, rowHeight, setRowHeight, setVisibleRows, visibleRows,\n }), [formattedHeight, rowHeight, setRowHeight, setVisibleRows, visibleRows])\n\n return (\n <TableHeightContext value={value}>\n {children}\n </TableHeightContext>\n )\n}\n","import { useContextEx } from '@xylabs/react-shared'\n\nimport { TableHeightContext } from './Context.ts'\n\nexport const useTableHeight = (required = false) => useContextEx(TableHeightContext, 'TableHeight', required)\n"],"mappings":";;;;AACA,SAASA,QAAQC,iBAAiB;AAM3B,IAAMC,cAAcC,OAAOC,WAAW;EAAEC,MAAM;EAAsBC,mBAAmBC,wBAAAA,SAAQA,SAAS,aAAjBA;AAA6B,CAAA,EACzH,CAAC,EAAEC,YAAY,KAAI,OAAQ;EAAE,GAAIA,aAAa;IAAEC,iBAAiB;EAAc;AAAG,EAAA;;;ACPpF,SAASC,aAAa;AAEtB,OAAOC,WAAW;AAQlB,IAAMC,eAAuC,wBAAC,EAAEC,UAAU,GAAGC,MAAAA,MAAO;AAClE,SACE,sBAAA,cAACC,OAAUD,OACRD,QAAAA;AAGP,GAN6C;AAQ7CD,aAAaI,cAAc;AAEpB,IAAMC,iBAAyC,wBAAC,EACrDC,SAASL,UAAU,GAAGC,MAAAA,MACvB;AACC,SACE,sBAAA,cAACF,cAAAA;IAAaO,cAAcD,YAAY;IAAe,GAAGJ;KACvDD,QAAAA;AAGP,GARsD;AAUtDI,eAAeD,cAAc;AAEtB,IAAMI,UAAUH;;;AChCvB,SAASI,UAAAA,SAAQC,mBAAmB;AAEpC,OAAOC,YAAW;AAIlB,IAAMC,oBAAoBC,QAAOC,aAAa;EAC5CC,MAAM;EACNC,mBAAmBC,wBAAAA,aAAYA,aAAa,cAAzBA;EACnBC,MAAM;AACR,CAAA,EAAuB,CAAC,EAAEC,SAASC,MAAK,OAAQ;EAC9CC,iBAAiBD,MAAME,KAAKC,QAAQC,WAAWC;EAC/CC,QAAQ;EACRC,UAAU;EACV,GAAIR,YAAY,gBAAgB;IAC9BO,QAAQ;IACRC,UAAU;EACZ;AACF,EAAA;AAMO,IAAMC,gBAA8C,wBAAC,EAAEC,UAAU,GAAGC,MAAAA,MAAY,gBAAAC,OAAA,cAACnB,mBAAsBkB,OAAQD,QAAAA,GAA3D;;;ACzB3D,SAASG,uBAAuB;AAIzB,IAAMC,qBAAqBD,gBAAAA;;;ACJlC,SAASE,qBAAqB;AAG9B,OAAOC,UAASC,SAASC,gBAAgB;AAYlC,IAAMC,sBAA0D,wBAAC,EACtEC,UACAC,iBAAiB,GACjBC,oBACAC,eAAe,KAAI,MACpB;AACC,QAAM,CAACC,aAAaC,cAAAA,IAAkBC,cAAcJ,kBAAAA;AACpD,QAAM,CAACK,WAAWC,YAAAA,IAAgBC,SAAAA;AAElC,QAAMC,SAASC,QAAQ,MAAA;AACrB,QAAIJ,cAAcK,UAAaR,gBAAgBQ,QAAW;AACxD,aAAOL,aAAaH,cAAcH;IACpC;EACF,GAAG;IAACC;IAAoBK;IAAWH;IAAaH;GAAe;AAE/D,QAAMY,kBAAkBF,QAAQ,MAAOD,WAAWE,SAAYA,SAAY,GAAGF,MAAAA,GAASP,YAAAA,IAAiB;IAACO;IAAQP;GAAa;AAE7H,QAAMW,QAA0BH,QAAQ,OAAO;IAC7CD,QAAQG;IAAiBE,UAAU;IAAMR;IAAWC;IAAcH;IAAgBD;EACpF,IAAI;IAACS;IAAiBN;IAAWC;IAAcH;IAAgBD;GAAY;AAE3E,SACE,gBAAAY,OAAA,cAACC,oBAAAA;IAAmBH;KACjBd,QAAAA;AAGP,GA1BuE;;;ACfvE,SAASkB,oBAAoB;AAItB,IAAMC,iBAAiB,wBAACC,WAAW,UAAUC,aAAaC,oBAAoB,eAAeF,QAAAA,GAAtE;","names":["styled","TableCell","TableCellEx","styled","TableCell","name","shouldForwardProp","prop","noBgColor","backgroundColor","Table","React","TableExInner","children","props","Table","displayName","TableExWithRef","variant","stickyHeader","TableEx","styled","TableFooter","React","TableFooterExRoot","styled","TableFooter","name","shouldForwardProp","propName","slot","variant","theme","backgroundColor","vars","palette","background","default","bottom","position","TableFooterEx","children","props","React","createContextEx","TableHeightContext","useResetState","React","useMemo","useState","TableHeightProvider","children","additionalRows","defaultVisibleRows","heightFormat","visibleRows","setVisibleRows","useResetState","rowHeight","setRowHeight","useState","height","useMemo","undefined","formattedHeight","value","provided","React","TableHeightContext","useContextEx","useTableHeight","required","useContextEx","TableHeightContext"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-table",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.5.0",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -43,25 +43,25 @@
|
|
|
43
43
|
"src"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@xylabs/react-hooks": "~7.1.
|
|
47
|
-
"@xylabs/react-shared": "~7.1.
|
|
46
|
+
"@xylabs/react-hooks": "~7.1.9",
|
|
47
|
+
"@xylabs/react-shared": "~7.1.9"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@mui/icons-material": "~7.3.
|
|
51
|
-
"@mui/material": "~7.3.
|
|
52
|
-
"@storybook/react-vite": "~10.1
|
|
53
|
-
"@types/react": "^19.2.
|
|
54
|
-
"@xylabs/ts-scripts-yarn3": "~7.2
|
|
55
|
-
"@xylabs/tsconfig": "~7.2
|
|
56
|
-
"@xylabs/tsconfig-dom": "~7.2
|
|
57
|
-
"@xylabs/tsconfig-react": "~7.2
|
|
58
|
-
"@xyo-network/react-storybook": "
|
|
59
|
-
"react": "^19.2.
|
|
60
|
-
"react-dom": "^19.2.
|
|
61
|
-
"react-router-dom": "^7.
|
|
62
|
-
"storybook": "~10.1
|
|
50
|
+
"@mui/icons-material": "~7.3.7",
|
|
51
|
+
"@mui/material": "~7.3.7",
|
|
52
|
+
"@storybook/react-vite": "~10.2.1",
|
|
53
|
+
"@types/react": "^19.2.10",
|
|
54
|
+
"@xylabs/ts-scripts-yarn3": "~7.3.2",
|
|
55
|
+
"@xylabs/tsconfig": "~7.3.2",
|
|
56
|
+
"@xylabs/tsconfig-dom": "~7.3.2",
|
|
57
|
+
"@xylabs/tsconfig-react": "~7.3.2",
|
|
58
|
+
"@xyo-network/react-storybook": "7.5.0",
|
|
59
|
+
"react": "^19.2.4",
|
|
60
|
+
"react-dom": "^19.2.4",
|
|
61
|
+
"react-router-dom": "^7.13.0",
|
|
62
|
+
"storybook": "~10.2.1",
|
|
63
63
|
"typescript": "^5.9.3",
|
|
64
|
-
"vite": "~7.
|
|
64
|
+
"vite": "~7.3.1"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@mui/icons-material": ">=6 <8",
|
|
@@ -74,4 +74,4 @@
|
|
|
74
74
|
"access": "public"
|
|
75
75
|
},
|
|
76
76
|
"docs": "dist/docs.json"
|
|
77
|
-
}
|
|
77
|
+
}
|