@xyo-network/react-table 2.81.10 → 2.82.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/TableEx.d.cts +4 -4
- package/dist/browser/components/TableEx/TableEx.d.cts.map +1 -1
- package/dist/browser/components/TableEx/TableEx.d.mts +4 -4
- package/dist/browser/components/TableEx/TableEx.d.mts.map +1 -1
- package/dist/browser/components/TableEx/TableEx.d.ts +4 -4
- package/dist/browser/components/TableEx/TableEx.d.ts.map +1 -1
- package/dist/browser/components/TableEx/TableFooterEx.d.cts +2 -2
- package/dist/browser/components/TableEx/TableFooterEx.d.cts.map +1 -1
- package/dist/browser/components/TableEx/TableFooterEx.d.mts +2 -2
- package/dist/browser/components/TableEx/TableFooterEx.d.mts.map +1 -1
- package/dist/browser/components/TableEx/TableFooterEx.d.ts +2 -2
- package/dist/browser/components/TableEx/TableFooterEx.d.ts.map +1 -1
- package/dist/browser/components/TableEx/index.d.cts +4 -4
- package/dist/browser/components/TableEx/index.d.cts.map +1 -1
- package/dist/browser/components/TableEx/index.d.mts +4 -4
- package/dist/browser/components/TableEx/index.d.mts.map +1 -1
- package/dist/browser/components/TableEx/index.d.ts +4 -4
- package/dist/browser/components/TableEx/index.d.ts.map +1 -1
- package/dist/browser/components/TableEx/types/index.d.cts +1 -1
- package/dist/browser/components/TableEx/types/index.d.mts +1 -1
- package/dist/browser/components/TableEx/types/index.d.ts +1 -1
- package/dist/browser/components/index.d.cts +1 -1
- package/dist/browser/components/index.d.mts +1 -1
- package/dist/browser/components/index.d.ts +1 -1
- package/dist/browser/context/TableHeight/Context.d.cts +1 -1
- package/dist/browser/context/TableHeight/Context.d.mts +1 -1
- package/dist/browser/context/TableHeight/Context.d.ts +1 -1
- package/dist/browser/context/TableHeight/Provider.d.cts +1 -0
- package/dist/browser/context/TableHeight/Provider.d.cts.map +1 -1
- package/dist/browser/context/TableHeight/Provider.d.mts +1 -0
- package/dist/browser/context/TableHeight/Provider.d.mts.map +1 -1
- package/dist/browser/context/TableHeight/Provider.d.ts +1 -0
- package/dist/browser/context/TableHeight/Provider.d.ts.map +1 -1
- package/dist/browser/context/TableHeight/index.d.cts +4 -4
- package/dist/browser/context/TableHeight/index.d.cts.map +1 -1
- package/dist/browser/context/TableHeight/index.d.mts +4 -4
- package/dist/browser/context/TableHeight/index.d.mts.map +1 -1
- package/dist/browser/context/TableHeight/index.d.ts +4 -4
- package/dist/browser/context/TableHeight/index.d.ts.map +1 -1
- package/dist/browser/context/TableHeight/use.d.cts +1 -1
- package/dist/browser/context/TableHeight/use.d.cts.map +1 -1
- package/dist/browser/context/TableHeight/use.d.mts +1 -1
- package/dist/browser/context/TableHeight/use.d.mts.map +1 -1
- package/dist/browser/context/TableHeight/use.d.ts +1 -1
- package/dist/browser/context/TableHeight/use.d.ts.map +1 -1
- package/dist/browser/context/index.d.cts +1 -1
- package/dist/browser/context/index.d.mts +1 -1
- package/dist/browser/context/index.d.ts +1 -1
- package/dist/browser/index.cjs +74 -34
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.d.cts +3 -3
- package/dist/browser/index.d.mts +3 -3
- package/dist/browser/index.d.ts +3 -3
- package/dist/browser/index.mjs +113 -0
- package/dist/browser/index.mjs.map +1 -0
- package/dist/browser/types/index.d.cts +1 -1
- package/dist/browser/types/index.d.mts +1 -1
- package/dist/browser/types/index.d.ts +1 -1
- package/dist/neutral/components/TableEx/TableEx.d.cts +4 -4
- package/dist/neutral/components/TableEx/TableEx.d.cts.map +1 -1
- package/dist/neutral/components/TableEx/TableEx.d.mts +4 -4
- package/dist/neutral/components/TableEx/TableEx.d.mts.map +1 -1
- package/dist/neutral/components/TableEx/TableEx.d.ts +4 -4
- package/dist/neutral/components/TableEx/TableEx.d.ts.map +1 -1
- package/dist/neutral/components/TableEx/TableFooterEx.d.cts +2 -2
- package/dist/neutral/components/TableEx/TableFooterEx.d.cts.map +1 -1
- package/dist/neutral/components/TableEx/TableFooterEx.d.mts +2 -2
- package/dist/neutral/components/TableEx/TableFooterEx.d.mts.map +1 -1
- package/dist/neutral/components/TableEx/TableFooterEx.d.ts +2 -2
- package/dist/neutral/components/TableEx/TableFooterEx.d.ts.map +1 -1
- package/dist/neutral/components/TableEx/index.d.cts +4 -4
- package/dist/neutral/components/TableEx/index.d.cts.map +1 -1
- package/dist/neutral/components/TableEx/index.d.mts +4 -4
- package/dist/neutral/components/TableEx/index.d.mts.map +1 -1
- package/dist/neutral/components/TableEx/index.d.ts +4 -4
- package/dist/neutral/components/TableEx/index.d.ts.map +1 -1
- package/dist/neutral/components/TableEx/types/index.d.cts +1 -1
- package/dist/neutral/components/TableEx/types/index.d.mts +1 -1
- package/dist/neutral/components/TableEx/types/index.d.ts +1 -1
- package/dist/neutral/components/index.d.cts +1 -1
- package/dist/neutral/components/index.d.mts +1 -1
- package/dist/neutral/components/index.d.ts +1 -1
- package/dist/neutral/context/TableHeight/Context.d.cts +1 -1
- package/dist/neutral/context/TableHeight/Context.d.mts +1 -1
- package/dist/neutral/context/TableHeight/Context.d.ts +1 -1
- package/dist/neutral/context/TableHeight/Provider.d.cts +1 -0
- package/dist/neutral/context/TableHeight/Provider.d.cts.map +1 -1
- package/dist/neutral/context/TableHeight/Provider.d.mts +1 -0
- package/dist/neutral/context/TableHeight/Provider.d.mts.map +1 -1
- package/dist/neutral/context/TableHeight/Provider.d.ts +1 -0
- package/dist/neutral/context/TableHeight/Provider.d.ts.map +1 -1
- package/dist/neutral/context/TableHeight/index.d.cts +4 -4
- package/dist/neutral/context/TableHeight/index.d.cts.map +1 -1
- package/dist/neutral/context/TableHeight/index.d.mts +4 -4
- package/dist/neutral/context/TableHeight/index.d.mts.map +1 -1
- package/dist/neutral/context/TableHeight/index.d.ts +4 -4
- package/dist/neutral/context/TableHeight/index.d.ts.map +1 -1
- package/dist/neutral/context/TableHeight/use.d.cts +1 -1
- package/dist/neutral/context/TableHeight/use.d.cts.map +1 -1
- package/dist/neutral/context/TableHeight/use.d.mts +1 -1
- package/dist/neutral/context/TableHeight/use.d.mts.map +1 -1
- package/dist/neutral/context/TableHeight/use.d.ts +1 -1
- package/dist/neutral/context/TableHeight/use.d.ts.map +1 -1
- package/dist/neutral/context/index.d.cts +1 -1
- package/dist/neutral/context/index.d.mts +1 -1
- package/dist/neutral/context/index.d.ts +1 -1
- package/dist/neutral/index.cjs +74 -34
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.d.cts +3 -3
- package/dist/neutral/index.d.mts +3 -3
- package/dist/neutral/index.d.ts +3 -3
- package/dist/neutral/index.mjs +113 -0
- package/dist/neutral/index.mjs.map +1 -0
- package/dist/neutral/types/index.d.cts +1 -1
- package/dist/neutral/types/index.d.mts +1 -1
- package/dist/neutral/types/index.d.ts +1 -1
- package/dist/node/components/TableEx/TableEx.d.cts +4 -4
- package/dist/node/components/TableEx/TableEx.d.cts.map +1 -1
- package/dist/node/components/TableEx/TableEx.d.mts +4 -4
- package/dist/node/components/TableEx/TableEx.d.mts.map +1 -1
- package/dist/node/components/TableEx/TableEx.d.ts +4 -4
- package/dist/node/components/TableEx/TableEx.d.ts.map +1 -1
- package/dist/node/components/TableEx/TableFooterEx.d.cts +2 -2
- package/dist/node/components/TableEx/TableFooterEx.d.cts.map +1 -1
- package/dist/node/components/TableEx/TableFooterEx.d.mts +2 -2
- package/dist/node/components/TableEx/TableFooterEx.d.mts.map +1 -1
- package/dist/node/components/TableEx/TableFooterEx.d.ts +2 -2
- package/dist/node/components/TableEx/TableFooterEx.d.ts.map +1 -1
- package/dist/node/components/TableEx/index.d.cts +4 -4
- package/dist/node/components/TableEx/index.d.cts.map +1 -1
- package/dist/node/components/TableEx/index.d.mts +4 -4
- package/dist/node/components/TableEx/index.d.mts.map +1 -1
- package/dist/node/components/TableEx/index.d.ts +4 -4
- package/dist/node/components/TableEx/index.d.ts.map +1 -1
- package/dist/node/components/TableEx/types/index.d.cts +1 -1
- package/dist/node/components/TableEx/types/index.d.mts +1 -1
- package/dist/node/components/TableEx/types/index.d.ts +1 -1
- package/dist/node/components/index.d.cts +1 -1
- package/dist/node/components/index.d.mts +1 -1
- package/dist/node/components/index.d.ts +1 -1
- package/dist/node/context/TableHeight/Context.d.cts +1 -1
- package/dist/node/context/TableHeight/Context.d.mts +1 -1
- package/dist/node/context/TableHeight/Context.d.ts +1 -1
- package/dist/node/context/TableHeight/Provider.d.cts +1 -0
- package/dist/node/context/TableHeight/Provider.d.cts.map +1 -1
- package/dist/node/context/TableHeight/Provider.d.mts +1 -0
- package/dist/node/context/TableHeight/Provider.d.mts.map +1 -1
- package/dist/node/context/TableHeight/Provider.d.ts +1 -0
- package/dist/node/context/TableHeight/Provider.d.ts.map +1 -1
- package/dist/node/context/TableHeight/index.d.cts +4 -4
- package/dist/node/context/TableHeight/index.d.cts.map +1 -1
- package/dist/node/context/TableHeight/index.d.mts +4 -4
- package/dist/node/context/TableHeight/index.d.mts.map +1 -1
- package/dist/node/context/TableHeight/index.d.ts +4 -4
- package/dist/node/context/TableHeight/index.d.ts.map +1 -1
- package/dist/node/context/TableHeight/use.d.cts +1 -1
- package/dist/node/context/TableHeight/use.d.cts.map +1 -1
- package/dist/node/context/TableHeight/use.d.mts +1 -1
- package/dist/node/context/TableHeight/use.d.mts.map +1 -1
- package/dist/node/context/TableHeight/use.d.ts +1 -1
- package/dist/node/context/TableHeight/use.d.ts.map +1 -1
- package/dist/node/context/index.d.cts +1 -1
- package/dist/node/context/index.d.mts +1 -1
- package/dist/node/context/index.d.ts +1 -1
- package/dist/node/index.cjs +74 -34
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +3 -3
- package/dist/node/index.d.mts +3 -3
- package/dist/node/index.d.ts +3 -3
- package/dist/node/index.mjs +113 -0
- package/dist/node/index.mjs.map +1 -0
- package/dist/node/types/index.d.cts +1 -1
- package/dist/node/types/index.d.mts +1 -1
- package/dist/node/types/index.d.ts +1 -1
- package/package.json +11 -11
- package/src/components/TableEx/TableCellEx.tsx +1 -1
- package/src/components/TableEx/TableEx.stories.tsx +9 -7
- package/src/components/TableEx/TableEx.tsx +2 -2
- package/src/components/TableEx/TableFooterEx.tsx +3 -3
- package/src/components/TableEx/index.ts +4 -4
- package/src/components/TableEx/types/index.ts +1 -1
- package/src/components/index.ts +1 -1
- package/src/context/TableHeight/Context.ts +1 -1
- package/src/context/TableHeight/Provider.tsx +5 -3
- package/src/context/TableHeight/index.ts +4 -4
- package/src/context/TableHeight/{use.tsx → use.ts} +1 -1
- package/src/context/index.ts +1 -1
- package/src/index.ts +3 -3
- package/src/types/index.ts +1 -1
- package/dist/browser/index.js +0 -81
- package/dist/browser/index.js.map +0 -1
- package/dist/neutral/index.js +0 -81
- package/dist/neutral/index.js.map +0 -1
- package/dist/node/index.js +0 -81
- package/dist/node/index.js.map +0 -1
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './components/index.
|
|
2
|
-
export * from './context/index.
|
|
3
|
-
export * from './types/index.
|
|
1
|
+
export * from './components/index.ts';
|
|
2
|
+
export * from './context/index.ts';
|
|
3
|
+
export * from './types/index.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
|
|
4
|
+
// src/components/TableEx/TableCellEx.tsx
|
|
5
|
+
import { styled, TableCell } from "@mui/material";
|
|
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
|
+
}));
|
|
14
|
+
|
|
15
|
+
// src/components/TableEx/TableEx.tsx
|
|
16
|
+
import { Table } from "@mui/material";
|
|
17
|
+
import React, { forwardRef } from "react";
|
|
18
|
+
var TableExInner = /* @__PURE__ */ forwardRef(({ children, ...props }, ref) => {
|
|
19
|
+
return /* @__PURE__ */ React.createElement(Table, {
|
|
20
|
+
ref,
|
|
21
|
+
...props
|
|
22
|
+
}, children);
|
|
23
|
+
});
|
|
24
|
+
TableExInner.displayName = "TableExInner";
|
|
25
|
+
var TableExWithRef = /* @__PURE__ */ forwardRef(({ variant, children, ...props }, ref) => {
|
|
26
|
+
return /* @__PURE__ */ React.createElement(TableExInner, {
|
|
27
|
+
stickyHeader: variant === "scrollable",
|
|
28
|
+
ref,
|
|
29
|
+
...props
|
|
30
|
+
}, children);
|
|
31
|
+
});
|
|
32
|
+
TableExWithRef.displayName = "TableEx";
|
|
33
|
+
var TableEx = TableExWithRef;
|
|
34
|
+
|
|
35
|
+
// src/components/TableEx/TableFooterEx.tsx
|
|
36
|
+
import { styled as styled2, TableFooter } from "@mui/material";
|
|
37
|
+
import React2 from "react";
|
|
38
|
+
var TableFooterExRoot = styled2(TableFooter, {
|
|
39
|
+
name: "TableFooterEx",
|
|
40
|
+
shouldForwardProp: /* @__PURE__ */ __name((propName) => propName !== "scrollable", "shouldForwardProp"),
|
|
41
|
+
slot: "Root"
|
|
42
|
+
})(({ variant, theme }) => ({
|
|
43
|
+
backgroundColor: theme.palette.background.default,
|
|
44
|
+
bottom: "unset",
|
|
45
|
+
position: "relative",
|
|
46
|
+
...variant === "scrollable" && {
|
|
47
|
+
bottom: 0,
|
|
48
|
+
position: "sticky"
|
|
49
|
+
}
|
|
50
|
+
}));
|
|
51
|
+
var TableFooterEx = /* @__PURE__ */ __name(({ children, ...props }) => /* @__PURE__ */ React2.createElement(TableFooterExRoot, props, children), "TableFooterEx");
|
|
52
|
+
|
|
53
|
+
// src/context/TableHeight/Context.ts
|
|
54
|
+
import { createContextEx } from "@xyo-network/react-shared";
|
|
55
|
+
var TableHeightContext = createContextEx();
|
|
56
|
+
|
|
57
|
+
// src/context/TableHeight/Provider.tsx
|
|
58
|
+
import React3, { useEffect, useMemo, useState } from "react";
|
|
59
|
+
var TableHeightProvider = /* @__PURE__ */ __name(({ children, additionalRows = 0, defaultVisibleRows, heightFormat = "px" }) => {
|
|
60
|
+
const [visibleRows, setVisibleRows] = useState(defaultVisibleRows);
|
|
61
|
+
const [height, setHeight] = useState();
|
|
62
|
+
const [rowHeight, setRowHeight] = useState();
|
|
63
|
+
const formattedHeight = useMemo(() => height === void 0 ? void 0 : `${height}${heightFormat}`, [
|
|
64
|
+
height,
|
|
65
|
+
heightFormat
|
|
66
|
+
]);
|
|
67
|
+
useEffect(() => {
|
|
68
|
+
setVisibleRows(defaultVisibleRows);
|
|
69
|
+
}, [
|
|
70
|
+
defaultVisibleRows
|
|
71
|
+
]);
|
|
72
|
+
useEffect(() => {
|
|
73
|
+
if (rowHeight !== void 0 && visibleRows !== void 0) {
|
|
74
|
+
setHeight(rowHeight * (visibleRows + additionalRows));
|
|
75
|
+
}
|
|
76
|
+
}, [
|
|
77
|
+
defaultVisibleRows,
|
|
78
|
+
rowHeight,
|
|
79
|
+
visibleRows,
|
|
80
|
+
additionalRows
|
|
81
|
+
]);
|
|
82
|
+
const value = useMemo(() => ({
|
|
83
|
+
height: formattedHeight,
|
|
84
|
+
provided: true,
|
|
85
|
+
rowHeight,
|
|
86
|
+
setRowHeight,
|
|
87
|
+
setVisibleRows,
|
|
88
|
+
visibleRows
|
|
89
|
+
}), [
|
|
90
|
+
formattedHeight,
|
|
91
|
+
rowHeight,
|
|
92
|
+
setRowHeight,
|
|
93
|
+
setVisibleRows,
|
|
94
|
+
visibleRows
|
|
95
|
+
]);
|
|
96
|
+
return /* @__PURE__ */ React3.createElement(TableHeightContext.Provider, {
|
|
97
|
+
value
|
|
98
|
+
}, children);
|
|
99
|
+
}, "TableHeightProvider");
|
|
100
|
+
|
|
101
|
+
// src/context/TableHeight/use.ts
|
|
102
|
+
import { useContextEx } from "@xyo-network/react-shared";
|
|
103
|
+
var useTableHeight = /* @__PURE__ */ __name((required = false) => useContextEx(TableHeightContext, "TableHeight", required), "useTableHeight");
|
|
104
|
+
export {
|
|
105
|
+
TableCellEx,
|
|
106
|
+
TableEx,
|
|
107
|
+
TableExWithRef,
|
|
108
|
+
TableFooterEx,
|
|
109
|
+
TableHeightContext,
|
|
110
|
+
TableHeightProvider,
|
|
111
|
+
useTableHeight
|
|
112
|
+
};
|
|
113
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +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 { 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 React, { forwardRef, PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types/index.ts'\n\nexport interface TableExProps extends PropsWithChildren, TableProps {\n variant?: TableExVariants\n}\n\nconst TableExInner = forwardRef<HTMLTableElement, TableExProps>(({ children, ...props }, ref) => {\n return (\n <Table ref={ref} {...props}>\n {children}\n </Table>\n )\n})\n\nTableExInner.displayName = 'TableExInner'\n\nexport const TableExWithRef = forwardRef<HTMLTableElement, TableExProps>(({ 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 React, { PropsWithChildren } from 'react'\n\nimport { 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.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.ts'\n\nexport const TableHeightContext = createContextEx<TableHeightState>()\n","import { WithChildren } from '@xylabs/react-shared'\nimport { ContextExProviderProps } from '@xyo-network/react-shared'\nimport React, { useEffect, useMemo, useState } from 'react'\n\nimport { TableHeightContext } from './Context.ts'\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 ? undefined : `${height}${heightFormat}`), [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 const value = useMemo(() => ({ height: formattedHeight, provided: true, rowHeight, setRowHeight, setVisibleRows, visibleRows }), [formattedHeight, rowHeight, setRowHeight, setVisibleRows, visibleRows])\n\n return (\n <TableHeightContext.Provider value={value}>\n {children}\n </TableHeightContext.Provider>\n )\n}\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { TableHeightContext } from './Context.ts'\n\nexport const useTableHeight = (required = false) => useContextEx(TableHeightContext, 'TableHeight', required)\n"],"mappings":";;;;AAAA,SAASA,QAAQC,iBAAiC;AAM3C,IAAMC,cAAcC,OAAOC,WAAW;EAAEC,MAAM;EAAsBC,mBAAmBC,wBAAAA,SAAQA,SAAS,aAAjBA;AAA6B,CAAA,EACzH,CAAC,EAAEC,YAAY,KAAI,OAAQ;EACzB,GAAIA,aAAa;IAAEC,iBAAiB;EAAc;AACpD,EAAA;;;ACTF,SAASC,aAAyB;AAClC,OAAOC,SAASC,kBAAqC;AAQrD,IAAMC,eAAeD,2BAA2C,CAAC,EAAEE,UAAU,GAAGC,MAAAA,GAASC,QAAAA;AACvF,SACE,sBAAA,cAACN,OAAAA;IAAMM;IAAW,GAAGD;KAClBD,QAAAA;AAGP,CAAA;AAEAD,aAAaI,cAAc;AAEpB,IAAMC,iBAAiBN,2BAA2C,CAAC,EAAEO,SAASL,UAAU,GAAGC,MAAAA,GAASC,QAAAA;AACzG,SACE,sBAAA,cAACH,cAAAA;IAAaO,cAAcD,YAAY;IAAcH;IAAW,GAAGD;KACjED,QAAAA;AAGP,CAAA;AAEAI,eAAeD,cAAc;AAEtB,IAAMI,UAAUH;;;AC7BvB,SAASI,UAAAA,SAAQC,mBAAqC;AACtD,OAAOC,YAAkC;AAIzC,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,QAAQC,WAAWC;EAC1CC,QAAQ;EACRC,UAAU;EACV,GAAIP,YAAY,gBAAgB;IAC9BM,QAAQ;IACRC,UAAU;EACZ;AACF,EAAA;AAMO,IAAMC,gBAA8C,wBAAC,EAAEC,UAAU,GAAGC,MAAAA,MAAY,gBAAAC,OAAA,cAAClB,mBAAsBiB,OAAQD,QAAAA,GAA3D;;;ACvB3D,SAASG,uBAAuB;AAIzB,IAAMC,qBAAqBD,gBAAAA;;;ACFlC,OAAOE,UAASC,WAAWC,SAASC,gBAAgB;AAW7C,IAAMC,sBAA0D,wBAAC,EACtEC,UACAC,iBAAiB,GACjBC,oBACAC,eAAe,KAAI,MACpB;AACC,QAAM,CAACC,aAAaC,cAAAA,IAAkBC,SAASJ,kBAAAA;AAC/C,QAAM,CAACK,QAAQC,SAAAA,IAAaF,SAAAA;AAC5B,QAAM,CAACG,WAAWC,YAAAA,IAAgBJ,SAAAA;AAElC,QAAMK,kBAAkBC,QAAQ,MAAOL,WAAWM,SAAYA,SAAY,GAAGN,MAAAA,GAASJ,YAAAA,IAAiB;IAACI;IAAQJ;GAAa;AAE7HW,YAAU,MAAA;AACRT,mBAAeH,kBAAAA;EACjB,GAAG;IAACA;GAAmB;AAEvBY,YAAU,MAAA;AACR,QAAIL,cAAcI,UAAaT,gBAAgBS,QAAW;AACxDL,gBAAUC,aAAaL,cAAcH,eAAa;IACpD;EACF,GAAG;IAACC;IAAoBO;IAAWL;IAAaH;GAAe;AAE/D,QAAMc,QAAQH,QAAQ,OAAO;IAAEL,QAAQI;IAAiBK,UAAU;IAAMP;IAAWC;IAAcL;IAAgBD;EAAY,IAAI;IAACO;IAAiBF;IAAWC;IAAcL;IAAgBD;GAAY;AAExM,SACE,gBAAAa,OAAA,cAACC,mBAAmBC,UAAQ;IAACJ;KAC1Bf,QAAAA;AAGP,GA7BuE;;;ACbvE,SAASoB,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","forwardRef","TableExInner","children","props","ref","displayName","TableExWithRef","variant","stickyHeader","TableEx","styled","TableFooter","React","TableFooterExRoot","styled","TableFooter","name","shouldForwardProp","propName","slot","variant","theme","backgroundColor","palette","background","default","bottom","position","TableFooterEx","children","props","React","createContextEx","TableHeightContext","React","useEffect","useMemo","useState","TableHeightProvider","children","additionalRows","defaultVisibleRows","heightFormat","visibleRows","setVisibleRows","useState","height","setHeight","rowHeight","setRowHeight","formattedHeight","useMemo","undefined","useEffect","value","provided","React","TableHeightContext","Provider","useContextEx","useTableHeight","required","useContextEx","TableHeightContext"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TableHead.
|
|
1
|
+
export * from './TableHead.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TableHead.
|
|
1
|
+
export * from './TableHead.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TableHead.
|
|
1
|
+
export * from './TableHead.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TableProps } from '@mui/material';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { TableExVariants } from './types/index.
|
|
2
|
+
import React, { PropsWithChildren } from 'react';
|
|
3
|
+
import { TableExVariants } from './types/index.ts';
|
|
4
4
|
export interface TableExProps extends PropsWithChildren, TableProps {
|
|
5
5
|
variant?: TableExVariants;
|
|
6
6
|
}
|
|
7
|
-
export declare const TableExWithRef:
|
|
8
|
-
export declare const TableEx:
|
|
7
|
+
export declare const TableExWithRef: React.ForwardRefExoticComponent<Omit<TableExProps, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
8
|
+
export declare const TableEx: React.ForwardRefExoticComponent<Omit<TableExProps, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
9
9
|
//# sourceMappingURL=TableEx.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"TableEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,KAAK,EAAE,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,YAAa,SAAQ,iBAAiB,EAAE,UAAU;IACjE,OAAO,CAAC,EAAE,eAAe,CAAA;CAC1B;AAYD,eAAO,MAAM,cAAc,oGAMzB,CAAA;AAIF,eAAO,MAAM,OAAO,oGAAiB,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TableProps } from '@mui/material';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { TableExVariants } from './types/index.
|
|
2
|
+
import React, { PropsWithChildren } from 'react';
|
|
3
|
+
import { TableExVariants } from './types/index.ts';
|
|
4
4
|
export interface TableExProps extends PropsWithChildren, TableProps {
|
|
5
5
|
variant?: TableExVariants;
|
|
6
6
|
}
|
|
7
|
-
export declare const TableExWithRef:
|
|
8
|
-
export declare const TableEx:
|
|
7
|
+
export declare const TableExWithRef: React.ForwardRefExoticComponent<Omit<TableExProps, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
8
|
+
export declare const TableEx: React.ForwardRefExoticComponent<Omit<TableExProps, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
9
9
|
//# sourceMappingURL=TableEx.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"TableEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,KAAK,EAAE,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,YAAa,SAAQ,iBAAiB,EAAE,UAAU;IACjE,OAAO,CAAC,EAAE,eAAe,CAAA;CAC1B;AAYD,eAAO,MAAM,cAAc,oGAMzB,CAAA;AAIF,eAAO,MAAM,OAAO,oGAAiB,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TableProps } from '@mui/material';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { TableExVariants } from './types/index.
|
|
2
|
+
import React, { PropsWithChildren } from 'react';
|
|
3
|
+
import { TableExVariants } from './types/index.ts';
|
|
4
4
|
export interface TableExProps extends PropsWithChildren, TableProps {
|
|
5
5
|
variant?: TableExVariants;
|
|
6
6
|
}
|
|
7
|
-
export declare const TableExWithRef:
|
|
8
|
-
export declare const TableEx:
|
|
7
|
+
export declare const TableExWithRef: React.ForwardRefExoticComponent<Omit<TableExProps, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
8
|
+
export declare const TableEx: React.ForwardRefExoticComponent<Omit<TableExProps, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
9
9
|
//# sourceMappingURL=TableEx.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"TableEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,KAAK,EAAE,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,YAAa,SAAQ,iBAAiB,EAAE,UAAU;IACjE,OAAO,CAAC,EAAE,eAAe,CAAA;CAC1B;AAYD,eAAO,MAAM,cAAc,oGAMzB,CAAA;AAIF,eAAO,MAAM,OAAO,oGAAiB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableFooterProps } from '@mui/material';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { TableExVariants } from './types/index.
|
|
2
|
+
import React, { PropsWithChildren } from 'react';
|
|
3
|
+
import { TableExVariants } from './types/index.ts';
|
|
4
4
|
export interface TableFooterExProps extends PropsWithChildren, TableFooterProps {
|
|
5
5
|
variant?: TableExVariants;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableFooterEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableFooterEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"TableFooterEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableFooterEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACrE,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAEhD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAgBlD,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB,EAAE,gBAAgB;IAC7E,OAAO,CAAC,EAAE,eAAe,CAAA;CAC1B;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAA4F,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableFooterProps } from '@mui/material';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { TableExVariants } from './types/index.
|
|
2
|
+
import React, { PropsWithChildren } from 'react';
|
|
3
|
+
import { TableExVariants } from './types/index.ts';
|
|
4
4
|
export interface TableFooterExProps extends PropsWithChildren, TableFooterProps {
|
|
5
5
|
variant?: TableExVariants;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableFooterEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableFooterEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"TableFooterEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableFooterEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACrE,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAEhD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAgBlD,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB,EAAE,gBAAgB;IAC7E,OAAO,CAAC,EAAE,eAAe,CAAA;CAC1B;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAA4F,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableFooterProps } from '@mui/material';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { TableExVariants } from './types/index.
|
|
2
|
+
import React, { PropsWithChildren } from 'react';
|
|
3
|
+
import { TableExVariants } from './types/index.ts';
|
|
4
4
|
export interface TableFooterExProps extends PropsWithChildren, TableFooterProps {
|
|
5
5
|
variant?: TableExVariants;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableFooterEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableFooterEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"TableFooterEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableFooterEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACrE,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAEhD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAgBlD,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB,EAAE,gBAAgB;IAC7E,OAAO,CAAC,EAAE,eAAe,CAAA;CAC1B;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAA4F,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './TableCellEx.
|
|
2
|
-
export * from './TableEx.
|
|
3
|
-
export * from './TableFooterEx.
|
|
4
|
-
export * from './types/index.
|
|
1
|
+
export * from './TableCellEx.tsx';
|
|
2
|
+
export * from './TableEx.tsx';
|
|
3
|
+
export * from './TableFooterEx.tsx';
|
|
4
|
+
export * from './types/index.ts';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './TableCellEx.
|
|
2
|
-
export * from './TableEx.
|
|
3
|
-
export * from './TableFooterEx.
|
|
4
|
-
export * from './types/index.
|
|
1
|
+
export * from './TableCellEx.tsx';
|
|
2
|
+
export * from './TableEx.tsx';
|
|
3
|
+
export * from './TableFooterEx.tsx';
|
|
4
|
+
export * from './types/index.ts';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './TableCellEx.
|
|
2
|
-
export * from './TableEx.
|
|
3
|
-
export * from './TableFooterEx.
|
|
4
|
-
export * from './types/index.
|
|
1
|
+
export * from './TableCellEx.tsx';
|
|
2
|
+
export * from './TableEx.tsx';
|
|
3
|
+
export * from './TableFooterEx.tsx';
|
|
4
|
+
export * from './types/index.ts';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TableExVariants.
|
|
1
|
+
export * from './TableExVariants.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TableExVariants.
|
|
1
|
+
export * from './TableExVariants.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TableExVariants.
|
|
1
|
+
export * from './TableExVariants.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TableEx/index.
|
|
1
|
+
export * from './TableEx/index.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TableEx/index.
|
|
1
|
+
export * from './TableEx/index.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TableEx/index.
|
|
1
|
+
export * from './TableEx/index.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TableHeightState } from './State.
|
|
1
|
+
import { TableHeightState } from './State.ts';
|
|
2
2
|
export declare const TableHeightContext: import("react").Context<TableHeightState & import("@xyo-network/react-shared").ContextExState>;
|
|
3
3
|
//# sourceMappingURL=Context.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TableHeightState } from './State.
|
|
1
|
+
import { TableHeightState } from './State.ts';
|
|
2
2
|
export declare const TableHeightContext: import("react").Context<TableHeightState & import("@xyo-network/react-shared").ContextExState>;
|
|
3
3
|
//# sourceMappingURL=Context.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TableHeightState } from './State.
|
|
1
|
+
import { TableHeightState } from './State.ts';
|
|
2
2
|
export declare const TableHeightContext: import("react").Context<TableHeightState & import("@xyo-network/react-shared").ContextExState>;
|
|
3
3
|
//# sourceMappingURL=Context.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { WithChildren } from '@xylabs/react-shared';
|
|
2
2
|
import { ContextExProviderProps } from '@xyo-network/react-shared';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
export interface TableHeightProviderProps extends ContextExProviderProps, WithChildren {
|
|
4
5
|
additionalRows?: number;
|
|
5
6
|
defaultVisibleRows?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAuC,MAAM,OAAO,CAAA;AAI3D,MAAM,WAAW,wBAAyB,SAAQ,sBAAsB,EAAE,YAAY;IAEpF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA6BlE,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { WithChildren } from '@xylabs/react-shared';
|
|
2
2
|
import { ContextExProviderProps } from '@xyo-network/react-shared';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
export interface TableHeightProviderProps extends ContextExProviderProps, WithChildren {
|
|
4
5
|
additionalRows?: number;
|
|
5
6
|
defaultVisibleRows?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAuC,MAAM,OAAO,CAAA;AAI3D,MAAM,WAAW,wBAAyB,SAAQ,sBAAsB,EAAE,YAAY;IAEpF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA6BlE,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { WithChildren } from '@xylabs/react-shared';
|
|
2
2
|
import { ContextExProviderProps } from '@xyo-network/react-shared';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
export interface TableHeightProviderProps extends ContextExProviderProps, WithChildren {
|
|
4
5
|
additionalRows?: number;
|
|
5
6
|
defaultVisibleRows?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAuC,MAAM,OAAO,CAAA;AAI3D,MAAM,WAAW,wBAAyB,SAAQ,sBAAsB,EAAE,YAAY;IAEpF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA6BlE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Context.
|
|
2
|
-
export * from './Provider.
|
|
3
|
-
export * from './State.
|
|
4
|
-
export * from './use.
|
|
1
|
+
export * from './Context.ts';
|
|
2
|
+
export * from './Provider.tsx';
|
|
3
|
+
export * from './State.ts';
|
|
4
|
+
export * from './use.ts';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Context.
|
|
2
|
-
export * from './Provider.
|
|
3
|
-
export * from './State.
|
|
4
|
-
export * from './use.
|
|
1
|
+
export * from './Context.ts';
|
|
2
|
+
export * from './Provider.tsx';
|
|
3
|
+
export * from './State.ts';
|
|
4
|
+
export * from './use.ts';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Context.
|
|
2
|
-
export * from './Provider.
|
|
3
|
-
export * from './State.
|
|
4
|
-
export * from './use.
|
|
1
|
+
export * from './Context.ts';
|
|
2
|
+
export * from './Provider.tsx';
|
|
3
|
+
export * from './State.ts';
|
|
4
|
+
export * from './use.ts';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useTableHeight: (required?: boolean) => Omit<import("./State.
|
|
1
|
+
export declare const useTableHeight: (required?: boolean) => Omit<import("./State.ts").TableHeightState & import("@xyo-network/react-shared").ContextExState, "provided">;
|
|
2
2
|
//# sourceMappingURL=use.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/use.
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,sIAAkF,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useTableHeight: (required?: boolean) => Omit<import("./State.
|
|
1
|
+
export declare const useTableHeight: (required?: boolean) => Omit<import("./State.ts").TableHeightState & import("@xyo-network/react-shared").ContextExState, "provided">;
|
|
2
2
|
//# sourceMappingURL=use.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/use.
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,sIAAkF,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useTableHeight: (required?: boolean) => Omit<import("./State.
|
|
1
|
+
export declare const useTableHeight: (required?: boolean) => Omit<import("./State.ts").TableHeightState & import("@xyo-network/react-shared").ContextExState, "provided">;
|
|
2
2
|
//# sourceMappingURL=use.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/use.
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,sIAAkF,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TableHeight/index.
|
|
1
|
+
export * from './TableHeight/index.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TableHeight/index.
|
|
1
|
+
export * from './TableHeight/index.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TableHeight/index.
|
|
1
|
+
export * from './TableHeight/index.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|