@xyo-network/react-table 2.64.0 → 2.64.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/TableCellEx.js +2 -1
- package/dist/browser/components/TableEx/TableCellEx.js.map +1 -1
- package/dist/browser/components/TableEx/TableEx.js +5 -4
- package/dist/browser/components/TableEx/TableEx.js.map +1 -1
- package/dist/browser/components/TableEx/TableFooterEx.js +4 -3
- package/dist/browser/components/TableEx/TableFooterEx.js.map +1 -1
- package/dist/browser/components/TableEx/index.js +45 -4
- package/dist/browser/components/TableEx/index.js.map +1 -1
- package/dist/browser/components/TableEx/types/index.js +0 -1
- package/dist/browser/components/TableEx/types/index.js.map +1 -1
- package/dist/browser/components/index.js +45 -1
- package/dist/browser/components/index.js.map +1 -1
- package/dist/browser/context/TableHeight/Context.js +2 -1
- package/dist/browser/context/TableHeight/Context.js.map +1 -1
- package/dist/browser/context/TableHeight/Provider.js +9 -3
- package/dist/browser/context/TableHeight/Provider.js.map +1 -1
- package/dist/browser/context/TableHeight/index.js +36 -4
- package/dist/browser/context/TableHeight/index.js.map +1 -1
- package/dist/browser/context/TableHeight/use.js +8 -2
- package/dist/browser/context/TableHeight/use.js.map +1 -1
- package/dist/browser/context/index.js +36 -1
- package/dist/browser/context/index.js.map +1 -1
- package/dist/browser/index.js +80 -2
- package/dist/browser/index.js.map +1 -1
- package/dist/docs.json +25 -25
- package/package.json +6 -6
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
// src/components/TableEx/TableCellEx.tsx
|
|
1
2
|
import { styled, TableCell } from "@mui/material";
|
|
2
|
-
|
|
3
|
+
var TableCellEx = styled(TableCell, { name: "TableCellNoBgColor", shouldForwardProp: (prop) => prop !== "noBgColor" })(
|
|
3
4
|
({ noBgColor = true }) => ({
|
|
4
5
|
...noBgColor && { backgroundColor: "transparent" }
|
|
5
6
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/TableEx/TableCellEx.tsx"],"sourcesContent":["import { styled, TableCell, TableCellProps } 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 }) => ({\n ...(noBgColor && { backgroundColor: 'transparent' }),\n }),\n)\n"],"mappings":"AAAA,SAAS,QAAQ,iBAAiC;AAM3C,
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/TableEx/TableCellEx.tsx"],"sourcesContent":["import { styled, TableCell, TableCellProps } 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 }) => ({\n ...(noBgColor && { backgroundColor: 'transparent' }),\n }),\n)\n"],"mappings":";AAAA,SAAS,QAAQ,iBAAiC;AAM3C,IAAM,cAAc,OAAO,WAAW,EAAE,MAAM,sBAAsB,mBAAmB,CAAC,SAAS,SAAS,YAAY,CAAC;AAAA,EAC5H,CAAC,EAAE,YAAY,KAAK,OAAO;AAAA,IACzB,GAAI,aAAa,EAAE,iBAAiB,cAAc;AAAA,EACpD;AACF;","names":[]}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/TableEx/TableEx.tsx
|
|
2
2
|
import { Table } from "@mui/material";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
|
-
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
var TableExInner = forwardRef(({ children, ...props }, ref) => {
|
|
5
6
|
return /* @__PURE__ */ jsx(Table, { ref, ...props, children });
|
|
6
7
|
});
|
|
7
8
|
TableExInner.displayName = "TableExInner";
|
|
8
|
-
|
|
9
|
+
var TableExWithRef = forwardRef(({ variant, children, ...props }, ref) => {
|
|
9
10
|
return /* @__PURE__ */ jsx(TableExInner, { stickyHeader: variant === "scrollable", ref, ...props, children });
|
|
10
11
|
});
|
|
11
12
|
TableExWithRef.displayName = "TableEx";
|
|
12
|
-
|
|
13
|
+
var TableEx = TableExWithRef;
|
|
13
14
|
export {
|
|
14
15
|
TableEx,
|
|
15
16
|
TableExWithRef
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/TableEx/TableEx.tsx"],"sourcesContent":["import { Table, TableProps } from '@mui/material'\nimport { forwardRef, PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nexport interface TableExProps extends PropsWithChildren, TableProps {\n variant?: TableExVariants\n}\n\nconst TableExInner: React.FC<TableExProps> = forwardRef(({ children, ...props }, ref) => {\n return (\n <Table ref={ref} {...props}>\n {children}\n </Table>\n )\n})\n\nTableExInner.displayName = 'TableExInner'\n\nexport const TableExWithRef: React.FC<TableExProps> = forwardRef(({ variant, children, ...props }, ref) => {\n return (\n <TableExInner stickyHeader={variant === 'scrollable'} ref={ref} {...props}>\n {children}\n </TableExInner>\n )\n})\n\nTableExWithRef.displayName = 'TableEx'\n\nexport const TableEx = TableExWithRef\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/TableEx/TableEx.tsx"],"sourcesContent":["import { Table, TableProps } from '@mui/material'\nimport { forwardRef, PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nexport interface TableExProps extends PropsWithChildren, TableProps {\n variant?: TableExVariants\n}\n\nconst TableExInner: React.FC<TableExProps> = forwardRef(({ children, ...props }, ref) => {\n return (\n <Table ref={ref} {...props}>\n {children}\n </Table>\n )\n})\n\nTableExInner.displayName = 'TableExInner'\n\nexport const TableExWithRef: React.FC<TableExProps> = forwardRef(({ variant, children, ...props }, ref) => {\n return (\n <TableExInner stickyHeader={variant === 'scrollable'} ref={ref} {...props}>\n {children}\n </TableExInner>\n )\n})\n\nTableExWithRef.displayName = 'TableEx'\n\nexport const TableEx = TableExWithRef\n"],"mappings":";AAAA,SAAS,aAAyB;AAClC,SAAS,kBAAqC;AAU1C;AAFJ,IAAM,eAAuC,WAAW,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ;AACvF,SACE,oBAAC,SAAM,KAAW,GAAG,OAClB,UACH;AAEJ,CAAC;AAED,aAAa,cAAc;AAEpB,IAAM,iBAAyC,WAAW,CAAC,EAAE,SAAS,UAAU,GAAG,MAAM,GAAG,QAAQ;AACzG,SACE,oBAAC,gBAAa,cAAc,YAAY,cAAc,KAAW,GAAG,OACjE,UACH;AAEJ,CAAC;AAED,eAAe,cAAc;AAEtB,IAAM,UAAU;","names":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/TableEx/TableFooterEx.tsx
|
|
2
2
|
import { styled, TableFooter } from "@mui/material";
|
|
3
|
-
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
var TableFooterExRoot = styled(TableFooter, {
|
|
4
5
|
name: "TableFooterEx",
|
|
5
6
|
shouldForwardProp: (propName) => propName !== "scrollable",
|
|
6
7
|
slot: "Root"
|
|
@@ -13,7 +14,7 @@ const TableFooterExRoot = styled(TableFooter, {
|
|
|
13
14
|
position: "sticky"
|
|
14
15
|
}
|
|
15
16
|
}));
|
|
16
|
-
|
|
17
|
+
var TableFooterEx = ({ children, ...props }) => /* @__PURE__ */ jsx(TableFooterExRoot, { ...props, children });
|
|
17
18
|
export {
|
|
18
19
|
TableFooterEx
|
|
19
20
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/TableEx/TableFooterEx.tsx"],"sourcesContent":["import { styled, TableFooter, TableFooterProps } from '@mui/material'\nimport { PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nconst TableFooterExRoot = styled(TableFooter, {\n name: 'TableFooterEx',\n shouldForwardProp: (propName) => propName !== 'scrollable',\n slot: 'Root',\n})<TableFooterExProps>(({ variant, theme }) => ({\n backgroundColor: theme.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"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/TableEx/TableFooterEx.tsx"],"sourcesContent":["import { styled, TableFooter, TableFooterProps } from '@mui/material'\nimport { PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nconst TableFooterExRoot = styled(TableFooter, {\n name: 'TableFooterEx',\n shouldForwardProp: (propName) => propName !== 'scrollable',\n slot: 'Root',\n})<TableFooterExProps>(({ variant, theme }) => ({\n backgroundColor: theme.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"],"mappings":";AAAA,SAAS,QAAQ,mBAAqC;AAuBiC;AAlBvF,IAAM,oBAAoB,OAAO,aAAa;AAAA,EAC5C,MAAM;AAAA,EACN,mBAAmB,CAAC,aAAa,aAAa;AAAA,EAC9C,MAAM;AACR,CAAC,EAAsB,CAAC,EAAE,SAAS,MAAM,OAAO;AAAA,EAC9C,iBAAiB,MAAM,QAAQ,WAAW;AAAA,EAC1C,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,GAAI,YAAY,gBAAgB;AAAA,IAC9B,QAAQ;AAAA,IACR,UAAU;AAAA,EACZ;AACF,EAAE;AAMK,IAAM,gBAA8C,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM,oBAAC,qBAAmB,GAAG,OAAQ,UAAS;","names":[]}
|
|
@@ -1,5 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
// src/components/TableEx/TableCellEx.tsx
|
|
2
|
+
import { styled, TableCell } from "@mui/material";
|
|
3
|
+
var TableCellEx = styled(TableCell, { name: "TableCellNoBgColor", shouldForwardProp: (prop) => prop !== "noBgColor" })(
|
|
4
|
+
({ noBgColor = true }) => ({
|
|
5
|
+
...noBgColor && { backgroundColor: "transparent" }
|
|
6
|
+
})
|
|
7
|
+
);
|
|
8
|
+
|
|
9
|
+
// src/components/TableEx/TableEx.tsx
|
|
10
|
+
import { Table } from "@mui/material";
|
|
11
|
+
import { forwardRef } from "react";
|
|
12
|
+
import { jsx } from "react/jsx-runtime";
|
|
13
|
+
var TableExInner = forwardRef(({ children, ...props }, ref) => {
|
|
14
|
+
return /* @__PURE__ */ jsx(Table, { ref, ...props, children });
|
|
15
|
+
});
|
|
16
|
+
TableExInner.displayName = "TableExInner";
|
|
17
|
+
var TableExWithRef = forwardRef(({ variant, children, ...props }, ref) => {
|
|
18
|
+
return /* @__PURE__ */ jsx(TableExInner, { stickyHeader: variant === "scrollable", ref, ...props, children });
|
|
19
|
+
});
|
|
20
|
+
TableExWithRef.displayName = "TableEx";
|
|
21
|
+
var TableEx = TableExWithRef;
|
|
22
|
+
|
|
23
|
+
// src/components/TableEx/TableFooterEx.tsx
|
|
24
|
+
import { styled as styled2, TableFooter } from "@mui/material";
|
|
25
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
26
|
+
var TableFooterExRoot = styled2(TableFooter, {
|
|
27
|
+
name: "TableFooterEx",
|
|
28
|
+
shouldForwardProp: (propName) => propName !== "scrollable",
|
|
29
|
+
slot: "Root"
|
|
30
|
+
})(({ variant, theme }) => ({
|
|
31
|
+
backgroundColor: theme.palette.background.default,
|
|
32
|
+
bottom: "unset",
|
|
33
|
+
position: "relative",
|
|
34
|
+
...variant === "scrollable" && {
|
|
35
|
+
bottom: 0,
|
|
36
|
+
position: "sticky"
|
|
37
|
+
}
|
|
38
|
+
}));
|
|
39
|
+
var TableFooterEx = ({ children, ...props }) => /* @__PURE__ */ jsx2(TableFooterExRoot, { ...props, children });
|
|
40
|
+
export {
|
|
41
|
+
TableCellEx,
|
|
42
|
+
TableEx,
|
|
43
|
+
TableExWithRef,
|
|
44
|
+
TableFooterEx
|
|
45
|
+
};
|
|
5
46
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/TableEx/
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/TableEx/TableCellEx.tsx","../../../../src/components/TableEx/TableEx.tsx","../../../../src/components/TableEx/TableFooterEx.tsx"],"sourcesContent":["import { styled, TableCell, TableCellProps } 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 }) => ({\n ...(noBgColor && { backgroundColor: 'transparent' }),\n }),\n)\n","import { Table, TableProps } from '@mui/material'\nimport { forwardRef, PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nexport interface TableExProps extends PropsWithChildren, TableProps {\n variant?: TableExVariants\n}\n\nconst TableExInner: React.FC<TableExProps> = forwardRef(({ children, ...props }, ref) => {\n return (\n <Table ref={ref} {...props}>\n {children}\n </Table>\n )\n})\n\nTableExInner.displayName = 'TableExInner'\n\nexport const TableExWithRef: React.FC<TableExProps> = forwardRef(({ variant, children, ...props }, ref) => {\n return (\n <TableExInner stickyHeader={variant === 'scrollable'} ref={ref} {...props}>\n {children}\n </TableExInner>\n )\n})\n\nTableExWithRef.displayName = 'TableEx'\n\nexport const TableEx = TableExWithRef\n","import { styled, TableFooter, TableFooterProps } from '@mui/material'\nimport { PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nconst TableFooterExRoot = styled(TableFooter, {\n name: 'TableFooterEx',\n shouldForwardProp: (propName) => propName !== 'scrollable',\n slot: 'Root',\n})<TableFooterExProps>(({ variant, theme }) => ({\n backgroundColor: theme.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"],"mappings":";AAAA,SAAS,QAAQ,iBAAiC;AAM3C,IAAM,cAAc,OAAO,WAAW,EAAE,MAAM,sBAAsB,mBAAmB,CAAC,SAAS,SAAS,YAAY,CAAC;AAAA,EAC5H,CAAC,EAAE,YAAY,KAAK,OAAO;AAAA,IACzB,GAAI,aAAa,EAAE,iBAAiB,cAAc;AAAA,EACpD;AACF;;;ACVA,SAAS,aAAyB;AAClC,SAAS,kBAAqC;AAU1C;AAFJ,IAAM,eAAuC,WAAW,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ;AACvF,SACE,oBAAC,SAAM,KAAW,GAAG,OAClB,UACH;AAEJ,CAAC;AAED,aAAa,cAAc;AAEpB,IAAM,iBAAyC,WAAW,CAAC,EAAE,SAAS,UAAU,GAAG,MAAM,GAAG,QAAQ;AACzG,SACE,oBAAC,gBAAa,cAAc,YAAY,cAAc,KAAW,GAAG,OACjE,UACH;AAEJ,CAAC;AAED,eAAe,cAAc;AAEtB,IAAM,UAAU;;;AC7BvB,SAAS,UAAAA,SAAQ,mBAAqC;AAuBiC,gBAAAC,YAAA;AAlBvF,IAAM,oBAAoBD,QAAO,aAAa;AAAA,EAC5C,MAAM;AAAA,EACN,mBAAmB,CAAC,aAAa,aAAa;AAAA,EAC9C,MAAM;AACR,CAAC,EAAsB,CAAC,EAAE,SAAS,MAAM,OAAO;AAAA,EAC9C,iBAAiB,MAAM,QAAQ,WAAW;AAAA,EAC1C,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,GAAI,YAAY,gBAAgB;AAAA,IAC9B,QAAQ;AAAA,IACR,UAAU;AAAA,EACZ;AACF,EAAE;AAMK,IAAM,gBAA8C,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM,gBAAAC,KAAC,qBAAmB,GAAG,OAAQ,UAAS;","names":["styled","jsx"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,2 +1,46 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/TableEx/TableCellEx.tsx
|
|
2
|
+
import { styled, TableCell } from "@mui/material";
|
|
3
|
+
var TableCellEx = styled(TableCell, { name: "TableCellNoBgColor", shouldForwardProp: (prop) => prop !== "noBgColor" })(
|
|
4
|
+
({ noBgColor = true }) => ({
|
|
5
|
+
...noBgColor && { backgroundColor: "transparent" }
|
|
6
|
+
})
|
|
7
|
+
);
|
|
8
|
+
|
|
9
|
+
// src/components/TableEx/TableEx.tsx
|
|
10
|
+
import { Table } from "@mui/material";
|
|
11
|
+
import { forwardRef } from "react";
|
|
12
|
+
import { jsx } from "react/jsx-runtime";
|
|
13
|
+
var TableExInner = forwardRef(({ children, ...props }, ref) => {
|
|
14
|
+
return /* @__PURE__ */ jsx(Table, { ref, ...props, children });
|
|
15
|
+
});
|
|
16
|
+
TableExInner.displayName = "TableExInner";
|
|
17
|
+
var TableExWithRef = forwardRef(({ variant, children, ...props }, ref) => {
|
|
18
|
+
return /* @__PURE__ */ jsx(TableExInner, { stickyHeader: variant === "scrollable", ref, ...props, children });
|
|
19
|
+
});
|
|
20
|
+
TableExWithRef.displayName = "TableEx";
|
|
21
|
+
var TableEx = TableExWithRef;
|
|
22
|
+
|
|
23
|
+
// src/components/TableEx/TableFooterEx.tsx
|
|
24
|
+
import { styled as styled2, TableFooter } from "@mui/material";
|
|
25
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
26
|
+
var TableFooterExRoot = styled2(TableFooter, {
|
|
27
|
+
name: "TableFooterEx",
|
|
28
|
+
shouldForwardProp: (propName) => propName !== "scrollable",
|
|
29
|
+
slot: "Root"
|
|
30
|
+
})(({ variant, theme }) => ({
|
|
31
|
+
backgroundColor: theme.palette.background.default,
|
|
32
|
+
bottom: "unset",
|
|
33
|
+
position: "relative",
|
|
34
|
+
...variant === "scrollable" && {
|
|
35
|
+
bottom: 0,
|
|
36
|
+
position: "sticky"
|
|
37
|
+
}
|
|
38
|
+
}));
|
|
39
|
+
var TableFooterEx = ({ children, ...props }) => /* @__PURE__ */ jsx2(TableFooterExRoot, { ...props, children });
|
|
40
|
+
export {
|
|
41
|
+
TableCellEx,
|
|
42
|
+
TableEx,
|
|
43
|
+
TableExWithRef,
|
|
44
|
+
TableFooterEx
|
|
45
|
+
};
|
|
2
46
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/
|
|
1
|
+
{"version":3,"sources":["../../../src/components/TableEx/TableCellEx.tsx","../../../src/components/TableEx/TableEx.tsx","../../../src/components/TableEx/TableFooterEx.tsx"],"sourcesContent":["import { styled, TableCell, TableCellProps } 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 }) => ({\n ...(noBgColor && { backgroundColor: 'transparent' }),\n }),\n)\n","import { Table, TableProps } from '@mui/material'\nimport { forwardRef, PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nexport interface TableExProps extends PropsWithChildren, TableProps {\n variant?: TableExVariants\n}\n\nconst TableExInner: React.FC<TableExProps> = forwardRef(({ children, ...props }, ref) => {\n return (\n <Table ref={ref} {...props}>\n {children}\n </Table>\n )\n})\n\nTableExInner.displayName = 'TableExInner'\n\nexport const TableExWithRef: React.FC<TableExProps> = forwardRef(({ variant, children, ...props }, ref) => {\n return (\n <TableExInner stickyHeader={variant === 'scrollable'} ref={ref} {...props}>\n {children}\n </TableExInner>\n )\n})\n\nTableExWithRef.displayName = 'TableEx'\n\nexport const TableEx = TableExWithRef\n","import { styled, TableFooter, TableFooterProps } from '@mui/material'\nimport { PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nconst TableFooterExRoot = styled(TableFooter, {\n name: 'TableFooterEx',\n shouldForwardProp: (propName) => propName !== 'scrollable',\n slot: 'Root',\n})<TableFooterExProps>(({ variant, theme }) => ({\n backgroundColor: theme.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"],"mappings":";AAAA,SAAS,QAAQ,iBAAiC;AAM3C,IAAM,cAAc,OAAO,WAAW,EAAE,MAAM,sBAAsB,mBAAmB,CAAC,SAAS,SAAS,YAAY,CAAC;AAAA,EAC5H,CAAC,EAAE,YAAY,KAAK,OAAO;AAAA,IACzB,GAAI,aAAa,EAAE,iBAAiB,cAAc;AAAA,EACpD;AACF;;;ACVA,SAAS,aAAyB;AAClC,SAAS,kBAAqC;AAU1C;AAFJ,IAAM,eAAuC,WAAW,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ;AACvF,SACE,oBAAC,SAAM,KAAW,GAAG,OAClB,UACH;AAEJ,CAAC;AAED,aAAa,cAAc;AAEpB,IAAM,iBAAyC,WAAW,CAAC,EAAE,SAAS,UAAU,GAAG,MAAM,GAAG,QAAQ;AACzG,SACE,oBAAC,gBAAa,cAAc,YAAY,cAAc,KAAW,GAAG,OACjE,UACH;AAEJ,CAAC;AAED,eAAe,cAAc;AAEtB,IAAM,UAAU;;;AC7BvB,SAAS,UAAAA,SAAQ,mBAAqC;AAuBiC,gBAAAC,YAAA;AAlBvF,IAAM,oBAAoBD,QAAO,aAAa;AAAA,EAC5C,MAAM;AAAA,EACN,mBAAmB,CAAC,aAAa,aAAa;AAAA,EAC9C,MAAM;AACR,CAAC,EAAsB,CAAC,EAAE,SAAS,MAAM,OAAO;AAAA,EAC9C,iBAAiB,MAAM,QAAQ,WAAW;AAAA,EAC1C,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,GAAI,YAAY,gBAAgB;AAAA,IAC9B,QAAQ;AAAA,IACR,UAAU;AAAA,EACZ;AACF,EAAE;AAMK,IAAM,gBAA8C,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM,gBAAAC,KAAC,qBAAmB,GAAG,OAAQ,UAAS;","names":["styled","jsx"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/context/TableHeight/Context.ts"],"sourcesContent":["import { createContextEx } from '@xyo-network/react-shared'\n\nimport { TableHeightState } from './State'\n\nexport const TableHeightContext = createContextEx<TableHeightState>()\n"],"mappings":"AAAA,SAAS,uBAAuB;AAIzB,
|
|
1
|
+
{"version":3,"sources":["../../../../src/context/TableHeight/Context.ts"],"sourcesContent":["import { createContextEx } from '@xyo-network/react-shared'\n\nimport { TableHeightState } from './State'\n\nexport const TableHeightContext = createContextEx<TableHeightState>()\n"],"mappings":";AAAA,SAAS,uBAAuB;AAIzB,IAAM,qBAAqB,gBAAkC;","names":[]}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
// src/context/TableHeight/Provider.tsx
|
|
2
2
|
import { useEffect, useMemo, useState } from "react";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
|
|
4
|
+
// src/context/TableHeight/Context.ts
|
|
5
|
+
import { createContextEx } from "@xyo-network/react-shared";
|
|
6
|
+
var TableHeightContext = createContextEx();
|
|
7
|
+
|
|
8
|
+
// src/context/TableHeight/Provider.tsx
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
var TableHeightProvider = ({
|
|
5
11
|
children,
|
|
6
12
|
additionalRows = 0,
|
|
7
13
|
defaultVisibleRows,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/context/TableHeight/Provider.tsx"],"sourcesContent":["import { WithChildren } from '@xylabs/react-shared'\nimport { ContextExProviderProps } from '@xyo-network/react-shared'\nimport { useEffect, useMemo, useState } from 'react'\n\nimport { TableHeightContext } from './Context'\n\nexport interface TableHeightProviderProps extends ContextExProviderProps, WithChildren {\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] = useState(defaultVisibleRows)\n const [height, setHeight] = useState<number | undefined>()\n const [rowHeight, setRowHeight] = useState<number | undefined>()\n\n const formattedHeight = useMemo(() => (height !== undefined ? `${height}${heightFormat}` : undefined), [height, heightFormat])\n\n useEffect(() => {\n setVisibleRows(defaultVisibleRows)\n }, [defaultVisibleRows])\n\n useEffect(() => {\n if (rowHeight !== undefined && visibleRows !== undefined) {\n setHeight(rowHeight * (visibleRows + additionalRows))\n }\n }, [defaultVisibleRows, rowHeight, visibleRows, additionalRows])\n\n return (\n <TableHeightContext.Provider value={{ height: formattedHeight, provided: true, rowHeight, setRowHeight, setVisibleRows, visibleRows }}>\n {children}\n </TableHeightContext.Provider>\n )\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../src/context/TableHeight/Provider.tsx","../../../../src/context/TableHeight/Context.ts"],"sourcesContent":["import { WithChildren } from '@xylabs/react-shared'\nimport { ContextExProviderProps } from '@xyo-network/react-shared'\nimport { useEffect, useMemo, useState } from 'react'\n\nimport { TableHeightContext } from './Context'\n\nexport interface TableHeightProviderProps extends ContextExProviderProps, WithChildren {\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] = useState(defaultVisibleRows)\n const [height, setHeight] = useState<number | undefined>()\n const [rowHeight, setRowHeight] = useState<number | undefined>()\n\n const formattedHeight = useMemo(() => (height !== undefined ? `${height}${heightFormat}` : undefined), [height, heightFormat])\n\n useEffect(() => {\n setVisibleRows(defaultVisibleRows)\n }, [defaultVisibleRows])\n\n useEffect(() => {\n if (rowHeight !== undefined && visibleRows !== undefined) {\n setHeight(rowHeight * (visibleRows + additionalRows))\n }\n }, [defaultVisibleRows, rowHeight, visibleRows, additionalRows])\n\n return (\n <TableHeightContext.Provider value={{ height: formattedHeight, provided: true, rowHeight, setRowHeight, setVisibleRows, visibleRows }}>\n {children}\n </TableHeightContext.Provider>\n )\n}\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { TableHeightState } from './State'\n\nexport const TableHeightContext = createContextEx<TableHeightState>()\n"],"mappings":";AAEA,SAAS,WAAW,SAAS,gBAAgB;;;ACF7C,SAAS,uBAAuB;AAIzB,IAAM,qBAAqB,gBAAkC;;;ADgChE;AAvBG,IAAM,sBAA0D,CAAC;AAAA,EACtE;AAAA,EACA,iBAAiB;AAAA,EACjB;AAAA,EACA,eAAe;AACjB,MAAM;AACJ,QAAM,CAAC,aAAa,cAAc,IAAI,SAAS,kBAAkB;AACjE,QAAM,CAAC,QAAQ,SAAS,IAAI,SAA6B;AACzD,QAAM,CAAC,WAAW,YAAY,IAAI,SAA6B;AAE/D,QAAM,kBAAkB,QAAQ,MAAO,WAAW,SAAY,GAAG,MAAM,GAAG,YAAY,KAAK,QAAY,CAAC,QAAQ,YAAY,CAAC;AAE7H,YAAU,MAAM;AACd,mBAAe,kBAAkB;AAAA,EACnC,GAAG,CAAC,kBAAkB,CAAC;AAEvB,YAAU,MAAM;AACd,QAAI,cAAc,UAAa,gBAAgB,QAAW;AACxD,gBAAU,aAAa,cAAc,eAAe;AAAA,IACtD;AAAA,EACF,GAAG,CAAC,oBAAoB,WAAW,aAAa,cAAc,CAAC;AAE/D,SACE,oBAAC,mBAAmB,UAAnB,EAA4B,OAAO,EAAE,QAAQ,iBAAiB,UAAU,MAAM,WAAW,cAAc,gBAAgB,YAAY,GACjI,UACH;AAEJ;","names":[]}
|
|
@@ -1,5 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
// src/context/TableHeight/Context.ts
|
|
2
|
+
import { createContextEx } from "@xyo-network/react-shared";
|
|
3
|
+
var TableHeightContext = createContextEx();
|
|
4
|
+
|
|
5
|
+
// src/context/TableHeight/Provider.tsx
|
|
6
|
+
import { useEffect, useMemo, useState } from "react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
var TableHeightProvider = ({
|
|
9
|
+
children,
|
|
10
|
+
additionalRows = 0,
|
|
11
|
+
defaultVisibleRows,
|
|
12
|
+
heightFormat = "px"
|
|
13
|
+
}) => {
|
|
14
|
+
const [visibleRows, setVisibleRows] = useState(defaultVisibleRows);
|
|
15
|
+
const [height, setHeight] = useState();
|
|
16
|
+
const [rowHeight, setRowHeight] = useState();
|
|
17
|
+
const formattedHeight = useMemo(() => height !== void 0 ? `${height}${heightFormat}` : void 0, [height, heightFormat]);
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
setVisibleRows(defaultVisibleRows);
|
|
20
|
+
}, [defaultVisibleRows]);
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
if (rowHeight !== void 0 && visibleRows !== void 0) {
|
|
23
|
+
setHeight(rowHeight * (visibleRows + additionalRows));
|
|
24
|
+
}
|
|
25
|
+
}, [defaultVisibleRows, rowHeight, visibleRows, additionalRows]);
|
|
26
|
+
return /* @__PURE__ */ jsx(TableHeightContext.Provider, { value: { height: formattedHeight, provided: true, rowHeight, setRowHeight, setVisibleRows, visibleRows }, children });
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
// src/context/TableHeight/use.tsx
|
|
30
|
+
import { useContextEx } from "@xyo-network/react-shared";
|
|
31
|
+
var useTableHeight = (required = false) => useContextEx(TableHeightContext, "TableHeight", required);
|
|
32
|
+
export {
|
|
33
|
+
TableHeightContext,
|
|
34
|
+
TableHeightProvider,
|
|
35
|
+
useTableHeight
|
|
36
|
+
};
|
|
5
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/context/TableHeight/
|
|
1
|
+
{"version":3,"sources":["../../../../src/context/TableHeight/Context.ts","../../../../src/context/TableHeight/Provider.tsx","../../../../src/context/TableHeight/use.tsx"],"sourcesContent":["import { createContextEx } from '@xyo-network/react-shared'\n\nimport { TableHeightState } from './State'\n\nexport const TableHeightContext = createContextEx<TableHeightState>()\n","import { WithChildren } from '@xylabs/react-shared'\nimport { ContextExProviderProps } from '@xyo-network/react-shared'\nimport { useEffect, useMemo, useState } from 'react'\n\nimport { TableHeightContext } from './Context'\n\nexport interface TableHeightProviderProps extends ContextExProviderProps, WithChildren {\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] = useState(defaultVisibleRows)\n const [height, setHeight] = useState<number | undefined>()\n const [rowHeight, setRowHeight] = useState<number | undefined>()\n\n const formattedHeight = useMemo(() => (height !== undefined ? `${height}${heightFormat}` : undefined), [height, heightFormat])\n\n useEffect(() => {\n setVisibleRows(defaultVisibleRows)\n }, [defaultVisibleRows])\n\n useEffect(() => {\n if (rowHeight !== undefined && visibleRows !== undefined) {\n setHeight(rowHeight * (visibleRows + additionalRows))\n }\n }, [defaultVisibleRows, rowHeight, visibleRows, additionalRows])\n\n return (\n <TableHeightContext.Provider value={{ height: formattedHeight, provided: true, rowHeight, setRowHeight, setVisibleRows, visibleRows }}>\n {children}\n </TableHeightContext.Provider>\n )\n}\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { TableHeightContext } from './Context'\n\nexport const useTableHeight = (required = false) => useContextEx(TableHeightContext, 'TableHeight', required)\n"],"mappings":";AAAA,SAAS,uBAAuB;AAIzB,IAAM,qBAAqB,gBAAkC;;;ACFpE,SAAS,WAAW,SAAS,gBAAgB;AAkCzC;AAvBG,IAAM,sBAA0D,CAAC;AAAA,EACtE;AAAA,EACA,iBAAiB;AAAA,EACjB;AAAA,EACA,eAAe;AACjB,MAAM;AACJ,QAAM,CAAC,aAAa,cAAc,IAAI,SAAS,kBAAkB;AACjE,QAAM,CAAC,QAAQ,SAAS,IAAI,SAA6B;AACzD,QAAM,CAAC,WAAW,YAAY,IAAI,SAA6B;AAE/D,QAAM,kBAAkB,QAAQ,MAAO,WAAW,SAAY,GAAG,MAAM,GAAG,YAAY,KAAK,QAAY,CAAC,QAAQ,YAAY,CAAC;AAE7H,YAAU,MAAM;AACd,mBAAe,kBAAkB;AAAA,EACnC,GAAG,CAAC,kBAAkB,CAAC;AAEvB,YAAU,MAAM;AACd,QAAI,cAAc,UAAa,gBAAgB,QAAW;AACxD,gBAAU,aAAa,cAAc,eAAe;AAAA,IACtD;AAAA,EACF,GAAG,CAAC,oBAAoB,WAAW,aAAa,cAAc,CAAC;AAE/D,SACE,oBAAC,mBAAmB,UAAnB,EAA4B,OAAO,EAAE,QAAQ,iBAAiB,UAAU,MAAM,WAAW,cAAc,gBAAgB,YAAY,GACjI,UACH;AAEJ;;;ACxCA,SAAS,oBAAoB;AAItB,IAAM,iBAAiB,CAAC,WAAW,UAAU,aAAa,oBAAoB,eAAe,QAAQ;","names":[]}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
// src/context/TableHeight/use.tsx
|
|
1
2
|
import { useContextEx } from "@xyo-network/react-shared";
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
// src/context/TableHeight/Context.ts
|
|
5
|
+
import { createContextEx } from "@xyo-network/react-shared";
|
|
6
|
+
var TableHeightContext = createContextEx();
|
|
7
|
+
|
|
8
|
+
// src/context/TableHeight/use.tsx
|
|
9
|
+
var useTableHeight = (required = false) => useContextEx(TableHeightContext, "TableHeight", required);
|
|
4
10
|
export {
|
|
5
11
|
useTableHeight
|
|
6
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/context/TableHeight/use.tsx"],"sourcesContent":["import { useContextEx } from '@xyo-network/react-shared'\n\nimport { TableHeightContext } from './Context'\n\nexport const useTableHeight = (required = false) => useContextEx(TableHeightContext, 'TableHeight', required)\n"],"mappings":"AAAA,SAAS,oBAAoB
|
|
1
|
+
{"version":3,"sources":["../../../../src/context/TableHeight/use.tsx","../../../../src/context/TableHeight/Context.ts"],"sourcesContent":["import { useContextEx } from '@xyo-network/react-shared'\n\nimport { TableHeightContext } from './Context'\n\nexport const useTableHeight = (required = false) => useContextEx(TableHeightContext, 'TableHeight', required)\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { TableHeightState } from './State'\n\nexport const TableHeightContext = createContextEx<TableHeightState>()\n"],"mappings":";AAAA,SAAS,oBAAoB;;;ACA7B,SAAS,uBAAuB;AAIzB,IAAM,qBAAqB,gBAAkC;;;ADA7D,IAAM,iBAAiB,CAAC,WAAW,UAAU,aAAa,oBAAoB,eAAe,QAAQ;","names":[]}
|
|
@@ -1,2 +1,37 @@
|
|
|
1
|
-
|
|
1
|
+
// src/context/TableHeight/Context.ts
|
|
2
|
+
import { createContextEx } from "@xyo-network/react-shared";
|
|
3
|
+
var TableHeightContext = createContextEx();
|
|
4
|
+
|
|
5
|
+
// src/context/TableHeight/Provider.tsx
|
|
6
|
+
import { useEffect, useMemo, useState } from "react";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
var TableHeightProvider = ({
|
|
9
|
+
children,
|
|
10
|
+
additionalRows = 0,
|
|
11
|
+
defaultVisibleRows,
|
|
12
|
+
heightFormat = "px"
|
|
13
|
+
}) => {
|
|
14
|
+
const [visibleRows, setVisibleRows] = useState(defaultVisibleRows);
|
|
15
|
+
const [height, setHeight] = useState();
|
|
16
|
+
const [rowHeight, setRowHeight] = useState();
|
|
17
|
+
const formattedHeight = useMemo(() => height !== void 0 ? `${height}${heightFormat}` : void 0, [height, heightFormat]);
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
setVisibleRows(defaultVisibleRows);
|
|
20
|
+
}, [defaultVisibleRows]);
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
if (rowHeight !== void 0 && visibleRows !== void 0) {
|
|
23
|
+
setHeight(rowHeight * (visibleRows + additionalRows));
|
|
24
|
+
}
|
|
25
|
+
}, [defaultVisibleRows, rowHeight, visibleRows, additionalRows]);
|
|
26
|
+
return /* @__PURE__ */ jsx(TableHeightContext.Provider, { value: { height: formattedHeight, provided: true, rowHeight, setRowHeight, setVisibleRows, visibleRows }, children });
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
// src/context/TableHeight/use.tsx
|
|
30
|
+
import { useContextEx } from "@xyo-network/react-shared";
|
|
31
|
+
var useTableHeight = (required = false) => useContextEx(TableHeightContext, "TableHeight", required);
|
|
32
|
+
export {
|
|
33
|
+
TableHeightContext,
|
|
34
|
+
TableHeightProvider,
|
|
35
|
+
useTableHeight
|
|
36
|
+
};
|
|
2
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/context/
|
|
1
|
+
{"version":3,"sources":["../../../src/context/TableHeight/Context.ts","../../../src/context/TableHeight/Provider.tsx","../../../src/context/TableHeight/use.tsx"],"sourcesContent":["import { createContextEx } from '@xyo-network/react-shared'\n\nimport { TableHeightState } from './State'\n\nexport const TableHeightContext = createContextEx<TableHeightState>()\n","import { WithChildren } from '@xylabs/react-shared'\nimport { ContextExProviderProps } from '@xyo-network/react-shared'\nimport { useEffect, useMemo, useState } from 'react'\n\nimport { TableHeightContext } from './Context'\n\nexport interface TableHeightProviderProps extends ContextExProviderProps, WithChildren {\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] = useState(defaultVisibleRows)\n const [height, setHeight] = useState<number | undefined>()\n const [rowHeight, setRowHeight] = useState<number | undefined>()\n\n const formattedHeight = useMemo(() => (height !== undefined ? `${height}${heightFormat}` : undefined), [height, heightFormat])\n\n useEffect(() => {\n setVisibleRows(defaultVisibleRows)\n }, [defaultVisibleRows])\n\n useEffect(() => {\n if (rowHeight !== undefined && visibleRows !== undefined) {\n setHeight(rowHeight * (visibleRows + additionalRows))\n }\n }, [defaultVisibleRows, rowHeight, visibleRows, additionalRows])\n\n return (\n <TableHeightContext.Provider value={{ height: formattedHeight, provided: true, rowHeight, setRowHeight, setVisibleRows, visibleRows }}>\n {children}\n </TableHeightContext.Provider>\n )\n}\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { TableHeightContext } from './Context'\n\nexport const useTableHeight = (required = false) => useContextEx(TableHeightContext, 'TableHeight', required)\n"],"mappings":";AAAA,SAAS,uBAAuB;AAIzB,IAAM,qBAAqB,gBAAkC;;;ACFpE,SAAS,WAAW,SAAS,gBAAgB;AAkCzC;AAvBG,IAAM,sBAA0D,CAAC;AAAA,EACtE;AAAA,EACA,iBAAiB;AAAA,EACjB;AAAA,EACA,eAAe;AACjB,MAAM;AACJ,QAAM,CAAC,aAAa,cAAc,IAAI,SAAS,kBAAkB;AACjE,QAAM,CAAC,QAAQ,SAAS,IAAI,SAA6B;AACzD,QAAM,CAAC,WAAW,YAAY,IAAI,SAA6B;AAE/D,QAAM,kBAAkB,QAAQ,MAAO,WAAW,SAAY,GAAG,MAAM,GAAG,YAAY,KAAK,QAAY,CAAC,QAAQ,YAAY,CAAC;AAE7H,YAAU,MAAM;AACd,mBAAe,kBAAkB;AAAA,EACnC,GAAG,CAAC,kBAAkB,CAAC;AAEvB,YAAU,MAAM;AACd,QAAI,cAAc,UAAa,gBAAgB,QAAW;AACxD,gBAAU,aAAa,cAAc,eAAe;AAAA,IACtD;AAAA,EACF,GAAG,CAAC,oBAAoB,WAAW,aAAa,cAAc,CAAC;AAE/D,SACE,oBAAC,mBAAmB,UAAnB,EAA4B,OAAO,EAAE,QAAQ,iBAAiB,UAAU,MAAM,WAAW,cAAc,gBAAgB,YAAY,GACjI,UACH;AAEJ;;;ACxCA,SAAS,oBAAoB;AAItB,IAAM,iBAAiB,CAAC,WAAW,UAAU,aAAa,oBAAoB,eAAe,QAAQ;","names":[]}
|
package/dist/browser/index.js
CHANGED
|
@@ -1,3 +1,81 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// src/components/TableEx/TableCellEx.tsx
|
|
2
|
+
import { styled, TableCell } from "@mui/material";
|
|
3
|
+
var TableCellEx = styled(TableCell, { name: "TableCellNoBgColor", shouldForwardProp: (prop) => prop !== "noBgColor" })(
|
|
4
|
+
({ noBgColor = true }) => ({
|
|
5
|
+
...noBgColor && { backgroundColor: "transparent" }
|
|
6
|
+
})
|
|
7
|
+
);
|
|
8
|
+
|
|
9
|
+
// src/components/TableEx/TableEx.tsx
|
|
10
|
+
import { Table } from "@mui/material";
|
|
11
|
+
import { forwardRef } from "react";
|
|
12
|
+
import { jsx } from "react/jsx-runtime";
|
|
13
|
+
var TableExInner = forwardRef(({ children, ...props }, ref) => {
|
|
14
|
+
return /* @__PURE__ */ jsx(Table, { ref, ...props, children });
|
|
15
|
+
});
|
|
16
|
+
TableExInner.displayName = "TableExInner";
|
|
17
|
+
var TableExWithRef = forwardRef(({ variant, children, ...props }, ref) => {
|
|
18
|
+
return /* @__PURE__ */ jsx(TableExInner, { stickyHeader: variant === "scrollable", ref, ...props, children });
|
|
19
|
+
});
|
|
20
|
+
TableExWithRef.displayName = "TableEx";
|
|
21
|
+
var TableEx = TableExWithRef;
|
|
22
|
+
|
|
23
|
+
// src/components/TableEx/TableFooterEx.tsx
|
|
24
|
+
import { styled as styled2, TableFooter } from "@mui/material";
|
|
25
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
26
|
+
var TableFooterExRoot = styled2(TableFooter, {
|
|
27
|
+
name: "TableFooterEx",
|
|
28
|
+
shouldForwardProp: (propName) => propName !== "scrollable",
|
|
29
|
+
slot: "Root"
|
|
30
|
+
})(({ variant, theme }) => ({
|
|
31
|
+
backgroundColor: theme.palette.background.default,
|
|
32
|
+
bottom: "unset",
|
|
33
|
+
position: "relative",
|
|
34
|
+
...variant === "scrollable" && {
|
|
35
|
+
bottom: 0,
|
|
36
|
+
position: "sticky"
|
|
37
|
+
}
|
|
38
|
+
}));
|
|
39
|
+
var TableFooterEx = ({ children, ...props }) => /* @__PURE__ */ jsx2(TableFooterExRoot, { ...props, children });
|
|
40
|
+
|
|
41
|
+
// src/context/TableHeight/Context.ts
|
|
42
|
+
import { createContextEx } from "@xyo-network/react-shared";
|
|
43
|
+
var TableHeightContext = createContextEx();
|
|
44
|
+
|
|
45
|
+
// src/context/TableHeight/Provider.tsx
|
|
46
|
+
import { useEffect, useMemo, useState } from "react";
|
|
47
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
48
|
+
var TableHeightProvider = ({
|
|
49
|
+
children,
|
|
50
|
+
additionalRows = 0,
|
|
51
|
+
defaultVisibleRows,
|
|
52
|
+
heightFormat = "px"
|
|
53
|
+
}) => {
|
|
54
|
+
const [visibleRows, setVisibleRows] = useState(defaultVisibleRows);
|
|
55
|
+
const [height, setHeight] = useState();
|
|
56
|
+
const [rowHeight, setRowHeight] = useState();
|
|
57
|
+
const formattedHeight = useMemo(() => height !== void 0 ? `${height}${heightFormat}` : void 0, [height, heightFormat]);
|
|
58
|
+
useEffect(() => {
|
|
59
|
+
setVisibleRows(defaultVisibleRows);
|
|
60
|
+
}, [defaultVisibleRows]);
|
|
61
|
+
useEffect(() => {
|
|
62
|
+
if (rowHeight !== void 0 && visibleRows !== void 0) {
|
|
63
|
+
setHeight(rowHeight * (visibleRows + additionalRows));
|
|
64
|
+
}
|
|
65
|
+
}, [defaultVisibleRows, rowHeight, visibleRows, additionalRows]);
|
|
66
|
+
return /* @__PURE__ */ jsx3(TableHeightContext.Provider, { value: { height: formattedHeight, provided: true, rowHeight, setRowHeight, setVisibleRows, visibleRows }, children });
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
// src/context/TableHeight/use.tsx
|
|
70
|
+
import { useContextEx } from "@xyo-network/react-shared";
|
|
71
|
+
var useTableHeight = (required = false) => useContextEx(TableHeightContext, "TableHeight", required);
|
|
72
|
+
export {
|
|
73
|
+
TableCellEx,
|
|
74
|
+
TableEx,
|
|
75
|
+
TableExWithRef,
|
|
76
|
+
TableFooterEx,
|
|
77
|
+
TableHeightContext,
|
|
78
|
+
TableHeightProvider,
|
|
79
|
+
useTableHeight
|
|
80
|
+
};
|
|
3
81
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/
|
|
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.tsx"],"sourcesContent":["import { styled, TableCell, TableCellProps } 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 }) => ({\n ...(noBgColor && { backgroundColor: 'transparent' }),\n }),\n)\n","import { Table, TableProps } from '@mui/material'\nimport { forwardRef, PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nexport interface TableExProps extends PropsWithChildren, TableProps {\n variant?: TableExVariants\n}\n\nconst TableExInner: React.FC<TableExProps> = forwardRef(({ children, ...props }, ref) => {\n return (\n <Table ref={ref} {...props}>\n {children}\n </Table>\n )\n})\n\nTableExInner.displayName = 'TableExInner'\n\nexport const TableExWithRef: React.FC<TableExProps> = forwardRef(({ variant, children, ...props }, ref) => {\n return (\n <TableExInner stickyHeader={variant === 'scrollable'} ref={ref} {...props}>\n {children}\n </TableExInner>\n )\n})\n\nTableExWithRef.displayName = 'TableEx'\n\nexport const TableEx = TableExWithRef\n","import { styled, TableFooter, TableFooterProps } from '@mui/material'\nimport { PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nconst TableFooterExRoot = styled(TableFooter, {\n name: 'TableFooterEx',\n shouldForwardProp: (propName) => propName !== 'scrollable',\n slot: 'Root',\n})<TableFooterExProps>(({ variant, theme }) => ({\n backgroundColor: theme.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 '@xyo-network/react-shared'\n\nimport { TableHeightState } from './State'\n\nexport const TableHeightContext = createContextEx<TableHeightState>()\n","import { WithChildren } from '@xylabs/react-shared'\nimport { ContextExProviderProps } from '@xyo-network/react-shared'\nimport { useEffect, useMemo, useState } from 'react'\n\nimport { TableHeightContext } from './Context'\n\nexport interface TableHeightProviderProps extends ContextExProviderProps, WithChildren {\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] = useState(defaultVisibleRows)\n const [height, setHeight] = useState<number | undefined>()\n const [rowHeight, setRowHeight] = useState<number | undefined>()\n\n const formattedHeight = useMemo(() => (height !== undefined ? `${height}${heightFormat}` : undefined), [height, heightFormat])\n\n useEffect(() => {\n setVisibleRows(defaultVisibleRows)\n }, [defaultVisibleRows])\n\n useEffect(() => {\n if (rowHeight !== undefined && visibleRows !== undefined) {\n setHeight(rowHeight * (visibleRows + additionalRows))\n }\n }, [defaultVisibleRows, rowHeight, visibleRows, additionalRows])\n\n return (\n <TableHeightContext.Provider value={{ height: formattedHeight, provided: true, rowHeight, setRowHeight, setVisibleRows, visibleRows }}>\n {children}\n </TableHeightContext.Provider>\n )\n}\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { TableHeightContext } from './Context'\n\nexport const useTableHeight = (required = false) => useContextEx(TableHeightContext, 'TableHeight', required)\n"],"mappings":";AAAA,SAAS,QAAQ,iBAAiC;AAM3C,IAAM,cAAc,OAAO,WAAW,EAAE,MAAM,sBAAsB,mBAAmB,CAAC,SAAS,SAAS,YAAY,CAAC;AAAA,EAC5H,CAAC,EAAE,YAAY,KAAK,OAAO;AAAA,IACzB,GAAI,aAAa,EAAE,iBAAiB,cAAc;AAAA,EACpD;AACF;;;ACVA,SAAS,aAAyB;AAClC,SAAS,kBAAqC;AAU1C;AAFJ,IAAM,eAAuC,WAAW,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ;AACvF,SACE,oBAAC,SAAM,KAAW,GAAG,OAClB,UACH;AAEJ,CAAC;AAED,aAAa,cAAc;AAEpB,IAAM,iBAAyC,WAAW,CAAC,EAAE,SAAS,UAAU,GAAG,MAAM,GAAG,QAAQ;AACzG,SACE,oBAAC,gBAAa,cAAc,YAAY,cAAc,KAAW,GAAG,OACjE,UACH;AAEJ,CAAC;AAED,eAAe,cAAc;AAEtB,IAAM,UAAU;;;AC7BvB,SAAS,UAAAA,SAAQ,mBAAqC;AAuBiC,gBAAAC,YAAA;AAlBvF,IAAM,oBAAoBD,QAAO,aAAa;AAAA,EAC5C,MAAM;AAAA,EACN,mBAAmB,CAAC,aAAa,aAAa;AAAA,EAC9C,MAAM;AACR,CAAC,EAAsB,CAAC,EAAE,SAAS,MAAM,OAAO;AAAA,EAC9C,iBAAiB,MAAM,QAAQ,WAAW;AAAA,EAC1C,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,GAAI,YAAY,gBAAgB;AAAA,IAC9B,QAAQ;AAAA,IACR,UAAU;AAAA,EACZ;AACF,EAAE;AAMK,IAAM,gBAA8C,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM,gBAAAC,KAAC,qBAAmB,GAAG,OAAQ,UAAS;;;ACvB/H,SAAS,uBAAuB;AAIzB,IAAM,qBAAqB,gBAAkC;;;ACFpE,SAAS,WAAW,SAAS,gBAAgB;AAkCzC,gBAAAC,YAAA;AAvBG,IAAM,sBAA0D,CAAC;AAAA,EACtE;AAAA,EACA,iBAAiB;AAAA,EACjB;AAAA,EACA,eAAe;AACjB,MAAM;AACJ,QAAM,CAAC,aAAa,cAAc,IAAI,SAAS,kBAAkB;AACjE,QAAM,CAAC,QAAQ,SAAS,IAAI,SAA6B;AACzD,QAAM,CAAC,WAAW,YAAY,IAAI,SAA6B;AAE/D,QAAM,kBAAkB,QAAQ,MAAO,WAAW,SAAY,GAAG,MAAM,GAAG,YAAY,KAAK,QAAY,CAAC,QAAQ,YAAY,CAAC;AAE7H,YAAU,MAAM;AACd,mBAAe,kBAAkB;AAAA,EACnC,GAAG,CAAC,kBAAkB,CAAC;AAEvB,YAAU,MAAM;AACd,QAAI,cAAc,UAAa,gBAAgB,QAAW;AACxD,gBAAU,aAAa,cAAc,eAAe;AAAA,IACtD;AAAA,EACF,GAAG,CAAC,oBAAoB,WAAW,aAAa,cAAc,CAAC;AAE/D,SACE,gBAAAA,KAAC,mBAAmB,UAAnB,EAA4B,OAAO,EAAE,QAAQ,iBAAiB,UAAU,MAAM,WAAW,cAAc,gBAAgB,YAAY,GACjI,UACH;AAEJ;;;ACxCA,SAAS,oBAAoB;AAItB,IAAM,iBAAiB,CAAC,WAAW,UAAU,aAAa,oBAAoB,eAAe,QAAQ;","names":["styled","jsx","jsx"]}
|
package/dist/docs.json
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"fileName": "packages/sdk/packages/table/src/components/TableEx/TableCellEx.tsx",
|
|
26
26
|
"line": 4,
|
|
27
27
|
"character": 2,
|
|
28
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
28
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/components/TableEx/TableCellEx.tsx#L4"
|
|
29
29
|
}
|
|
30
30
|
],
|
|
31
31
|
"type": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"fileName": "packages/sdk/packages/table/src/components/TableEx/TableCellEx.tsx",
|
|
48
48
|
"line": 3,
|
|
49
49
|
"character": 17,
|
|
50
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
50
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/components/TableEx/TableCellEx.tsx#L3"
|
|
51
51
|
}
|
|
52
52
|
],
|
|
53
53
|
"extendedTypes": [
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"fileName": "packages/sdk/packages/table/src/components/TableEx/TableEx.tsx",
|
|
83
83
|
"line": 7,
|
|
84
84
|
"character": 2,
|
|
85
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
85
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/components/TableEx/TableEx.tsx#L7"
|
|
86
86
|
}
|
|
87
87
|
],
|
|
88
88
|
"type": {
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"fileName": "packages/sdk/packages/table/src/components/TableEx/TableEx.tsx",
|
|
107
107
|
"line": 6,
|
|
108
108
|
"character": 17,
|
|
109
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
109
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/components/TableEx/TableEx.tsx#L6"
|
|
110
110
|
}
|
|
111
111
|
],
|
|
112
112
|
"extendedTypes": [
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
"fileName": "packages/sdk/packages/table/src/components/TableEx/TableFooterEx.tsx",
|
|
152
152
|
"line": 21,
|
|
153
153
|
"character": 2,
|
|
154
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
154
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/components/TableEx/TableFooterEx.tsx#L21"
|
|
155
155
|
}
|
|
156
156
|
],
|
|
157
157
|
"type": {
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
"fileName": "packages/sdk/packages/table/src/components/TableEx/TableFooterEx.tsx",
|
|
176
176
|
"line": 20,
|
|
177
177
|
"character": 17,
|
|
178
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
178
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/components/TableEx/TableFooterEx.tsx#L20"
|
|
179
179
|
}
|
|
180
180
|
],
|
|
181
181
|
"extendedTypes": [
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
"fileName": "packages/sdk/packages/table/src/context/TableHeight/Provider.tsx",
|
|
235
235
|
"line": 9,
|
|
236
236
|
"character": 2,
|
|
237
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
237
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/context/TableHeight/Provider.tsx#L9"
|
|
238
238
|
}
|
|
239
239
|
],
|
|
240
240
|
"type": {
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
"fileName": "packages/sdk/packages/table/src/context/TableHeight/Provider.tsx",
|
|
256
256
|
"line": 10,
|
|
257
257
|
"character": 2,
|
|
258
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
258
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/context/TableHeight/Provider.tsx#L10"
|
|
259
259
|
}
|
|
260
260
|
],
|
|
261
261
|
"type": {
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
"fileName": "packages/sdk/packages/table/src/context/TableHeight/Provider.tsx",
|
|
277
277
|
"line": 11,
|
|
278
278
|
"character": 2,
|
|
279
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
279
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/context/TableHeight/Provider.tsx#L11"
|
|
280
280
|
}
|
|
281
281
|
],
|
|
282
282
|
"type": {
|
|
@@ -326,7 +326,7 @@
|
|
|
326
326
|
"fileName": "packages/sdk/packages/table/src/context/TableHeight/Provider.tsx",
|
|
327
327
|
"line": 7,
|
|
328
328
|
"character": 17,
|
|
329
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
329
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/context/TableHeight/Provider.tsx#L7"
|
|
330
330
|
}
|
|
331
331
|
],
|
|
332
332
|
"extendedTypes": [
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
"fileName": "packages/sdk/packages/table/src/context/TableHeight/State.ts",
|
|
371
371
|
"line": 5,
|
|
372
372
|
"character": 2,
|
|
373
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
373
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/context/TableHeight/State.ts#L5"
|
|
374
374
|
}
|
|
375
375
|
],
|
|
376
376
|
"type": {
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
"fileName": "packages/sdk/packages/table/src/context/TableHeight/State.ts",
|
|
415
415
|
"line": 6,
|
|
416
416
|
"character": 2,
|
|
417
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
417
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/context/TableHeight/State.ts#L6"
|
|
418
418
|
}
|
|
419
419
|
],
|
|
420
420
|
"type": {
|
|
@@ -435,7 +435,7 @@
|
|
|
435
435
|
"fileName": "packages/sdk/packages/table/src/context/TableHeight/State.ts",
|
|
436
436
|
"line": 7,
|
|
437
437
|
"character": 2,
|
|
438
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
438
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/context/TableHeight/State.ts#L7"
|
|
439
439
|
}
|
|
440
440
|
],
|
|
441
441
|
"type": {
|
|
@@ -489,7 +489,7 @@
|
|
|
489
489
|
"fileName": "packages/sdk/packages/table/src/context/TableHeight/State.ts",
|
|
490
490
|
"line": 8,
|
|
491
491
|
"character": 2,
|
|
492
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
492
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/context/TableHeight/State.ts#L8"
|
|
493
493
|
}
|
|
494
494
|
],
|
|
495
495
|
"type": {
|
|
@@ -543,7 +543,7 @@
|
|
|
543
543
|
"fileName": "packages/sdk/packages/table/src/context/TableHeight/State.ts",
|
|
544
544
|
"line": 9,
|
|
545
545
|
"character": 2,
|
|
546
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
546
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/context/TableHeight/State.ts#L9"
|
|
547
547
|
}
|
|
548
548
|
],
|
|
549
549
|
"type": {
|
|
@@ -570,7 +570,7 @@
|
|
|
570
570
|
"fileName": "packages/sdk/packages/table/src/context/TableHeight/State.ts",
|
|
571
571
|
"line": 4,
|
|
572
572
|
"character": 17,
|
|
573
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
573
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/context/TableHeight/State.ts#L4"
|
|
574
574
|
}
|
|
575
575
|
],
|
|
576
576
|
"extendedTypes": [
|
|
@@ -596,7 +596,7 @@
|
|
|
596
596
|
"fileName": "packages/sdk/packages/table/src/components/TableEx/types/TableExVariants.ts",
|
|
597
597
|
"line": 1,
|
|
598
598
|
"character": 12,
|
|
599
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
599
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/components/TableEx/types/TableExVariants.ts#L1"
|
|
600
600
|
}
|
|
601
601
|
],
|
|
602
602
|
"type": {
|
|
@@ -626,7 +626,7 @@
|
|
|
626
626
|
"fileName": "packages/sdk/packages/table/src/context/TableHeight/Context.ts",
|
|
627
627
|
"line": 5,
|
|
628
628
|
"character": 13,
|
|
629
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
629
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/context/TableHeight/Context.ts#L5"
|
|
630
630
|
}
|
|
631
631
|
],
|
|
632
632
|
"type": {
|
|
@@ -674,7 +674,7 @@
|
|
|
674
674
|
"fileName": "packages/sdk/packages/table/src/components/TableEx/TableCellEx.tsx",
|
|
675
675
|
"line": 7,
|
|
676
676
|
"character": 13,
|
|
677
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
677
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/components/TableEx/TableCellEx.tsx#L7"
|
|
678
678
|
}
|
|
679
679
|
],
|
|
680
680
|
"signatures": [
|
|
@@ -796,7 +796,7 @@
|
|
|
796
796
|
"fileName": "packages/sdk/packages/table/src/components/TableEx/TableEx.tsx",
|
|
797
797
|
"line": 30,
|
|
798
798
|
"character": 13,
|
|
799
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
799
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/components/TableEx/TableEx.tsx#L30"
|
|
800
800
|
}
|
|
801
801
|
],
|
|
802
802
|
"signatures": [
|
|
@@ -884,7 +884,7 @@
|
|
|
884
884
|
"fileName": "packages/sdk/packages/table/src/components/TableEx/TableEx.tsx",
|
|
885
885
|
"line": 20,
|
|
886
886
|
"character": 13,
|
|
887
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
887
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/components/TableEx/TableEx.tsx#L20"
|
|
888
888
|
}
|
|
889
889
|
],
|
|
890
890
|
"signatures": [
|
|
@@ -972,7 +972,7 @@
|
|
|
972
972
|
"fileName": "packages/sdk/packages/table/src/components/TableEx/TableFooterEx.tsx",
|
|
973
973
|
"line": 24,
|
|
974
974
|
"character": 13,
|
|
975
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
975
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/components/TableEx/TableFooterEx.tsx#L24"
|
|
976
976
|
}
|
|
977
977
|
],
|
|
978
978
|
"signatures": [
|
|
@@ -1060,7 +1060,7 @@
|
|
|
1060
1060
|
"fileName": "packages/sdk/packages/table/src/context/TableHeight/Provider.tsx",
|
|
1061
1061
|
"line": 14,
|
|
1062
1062
|
"character": 13,
|
|
1063
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
1063
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/context/TableHeight/Provider.tsx#L14"
|
|
1064
1064
|
}
|
|
1065
1065
|
],
|
|
1066
1066
|
"signatures": [
|
|
@@ -1148,7 +1148,7 @@
|
|
|
1148
1148
|
"fileName": "packages/sdk/packages/table/src/context/TableHeight/use.tsx",
|
|
1149
1149
|
"line": 5,
|
|
1150
1150
|
"character": 13,
|
|
1151
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
1151
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/context/TableHeight/use.tsx#L5"
|
|
1152
1152
|
}
|
|
1153
1153
|
],
|
|
1154
1154
|
"signatures": [
|
|
@@ -1163,7 +1163,7 @@
|
|
|
1163
1163
|
"fileName": "packages/sdk/packages/table/src/context/TableHeight/use.tsx",
|
|
1164
1164
|
"line": 5,
|
|
1165
1165
|
"character": 30,
|
|
1166
|
-
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/
|
|
1166
|
+
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/blob/ace39d815/packages/sdk/packages/table/src/context/TableHeight/use.tsx#L5"
|
|
1167
1167
|
}
|
|
1168
1168
|
],
|
|
1169
1169
|
"parameters": [
|
package/package.json
CHANGED
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/react-shared": "^3.0.
|
|
14
|
-
"@xyo-network/react-shared": "~2.64.
|
|
13
|
+
"@xylabs/react-shared": "^3.0.6",
|
|
14
|
+
"@xyo-network/react-shared": "~2.64.1"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@storybook/react": "^7.4.5",
|
|
18
|
-
"@xylabs/ts-scripts-yarn3": "^3.0.
|
|
19
|
-
"@xylabs/tsconfig-react": "^3.0.
|
|
20
|
-
"@xyo-network/react-storybook": "~2.64.
|
|
18
|
+
"@xylabs/ts-scripts-yarn3": "^3.0.79",
|
|
19
|
+
"@xylabs/tsconfig-react": "^3.0.79",
|
|
20
|
+
"@xyo-network/react-storybook": "~2.64.1",
|
|
21
21
|
"typescript": "^5.2.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
@@ -80,6 +80,6 @@
|
|
|
80
80
|
},
|
|
81
81
|
"sideEffects": false,
|
|
82
82
|
"types": "dist/browser/index.d.ts",
|
|
83
|
-
"version": "2.64.
|
|
83
|
+
"version": "2.64.1",
|
|
84
84
|
"type": "module"
|
|
85
85
|
}
|