@xyo-network/react-table 2.64.0-rc.3 → 2.64.0-rc.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/components/TableEx/TableCellEx.d.mts.map +1 -0
- package/dist/browser/components/TableEx/TableCellEx.d.ts.map +1 -0
- package/dist/browser/components/TableEx/TableCellEx.js +10 -0
- package/dist/browser/components/TableEx/TableCellEx.js.map +1 -0
- package/dist/browser/components/TableEx/TableEx.d.mts.map +1 -0
- package/dist/browser/components/TableEx/TableEx.d.ts.map +1 -0
- package/dist/browser/components/TableEx/TableEx.js +17 -0
- package/dist/browser/components/TableEx/TableEx.js.map +1 -0
- package/dist/browser/components/TableEx/TableEx.stories.js +72 -0
- package/dist/browser/components/TableEx/TableEx.stories.js.map +1 -0
- package/dist/browser/components/TableEx/TableFooterEx.d.mts.map +1 -0
- package/dist/browser/components/TableEx/TableFooterEx.d.ts.map +1 -0
- package/dist/browser/components/TableEx/TableFooterEx.js +20 -0
- package/dist/browser/components/TableEx/TableFooterEx.js.map +1 -0
- package/dist/browser/components/TableEx/index.d.mts.map +1 -0
- package/dist/browser/components/TableEx/index.d.ts.map +1 -0
- package/dist/browser/components/TableEx/index.js +5 -0
- package/dist/browser/components/TableEx/index.js.map +1 -0
- package/dist/browser/components/TableEx/types/TableExVariants.d.mts.map +1 -0
- package/dist/browser/components/TableEx/types/TableExVariants.d.ts.map +1 -0
- package/dist/browser/components/TableEx/types/TableExVariants.js +1 -0
- package/dist/browser/components/TableEx/types/TableExVariants.js.map +1 -0
- package/dist/browser/components/TableEx/types/index.d.mts.map +1 -0
- package/dist/browser/components/TableEx/types/index.d.ts.map +1 -0
- package/dist/browser/components/TableEx/types/index.js +2 -0
- package/dist/browser/components/TableEx/types/index.js.map +1 -0
- package/dist/browser/components/index.d.mts.map +1 -0
- package/dist/browser/components/index.d.ts.map +1 -0
- package/dist/browser/components/index.js +2 -0
- package/dist/browser/components/index.js.map +1 -0
- package/dist/browser/context/TableHeight/Context.d.mts.map +1 -0
- package/dist/browser/context/TableHeight/Context.d.ts.map +1 -0
- package/dist/browser/context/TableHeight/Context.js +6 -0
- package/dist/browser/context/TableHeight/Context.js.map +1 -0
- package/dist/browser/context/TableHeight/Provider.d.mts.map +1 -0
- package/dist/browser/context/TableHeight/Provider.d.ts.map +1 -0
- package/dist/browser/context/TableHeight/Provider.js +27 -0
- package/dist/browser/context/TableHeight/Provider.js.map +1 -0
- package/dist/browser/context/TableHeight/State.d.mts.map +1 -0
- package/dist/browser/context/TableHeight/State.d.ts.map +1 -0
- package/dist/browser/context/TableHeight/State.js +1 -0
- package/dist/browser/context/TableHeight/State.js.map +1 -0
- package/dist/browser/context/TableHeight/index.d.mts.map +1 -0
- package/dist/browser/context/TableHeight/index.d.ts.map +1 -0
- package/dist/browser/context/TableHeight/index.js +5 -0
- package/dist/browser/context/TableHeight/index.js.map +1 -0
- package/dist/browser/context/TableHeight/use.d.mts.map +1 -0
- package/dist/browser/context/TableHeight/use.d.ts.map +1 -0
- package/dist/browser/context/TableHeight/use.js +7 -0
- package/dist/browser/context/TableHeight/use.js.map +1 -0
- package/dist/browser/context/index.d.mts.map +1 -0
- package/dist/browser/context/index.d.ts.map +1 -0
- package/dist/browser/context/index.js +2 -0
- package/dist/browser/context/index.js.map +1 -0
- package/dist/browser/index.d.mts.map +1 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +3 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/node/components/TableEx/TableCellEx.d.mts +6 -0
- package/dist/node/components/TableEx/TableCellEx.d.mts.map +1 -0
- package/dist/node/components/TableEx/TableCellEx.d.ts +6 -0
- package/dist/node/components/TableEx/TableCellEx.d.ts.map +1 -0
- package/dist/node/components/TableEx/TableCellEx.js +34 -0
- package/dist/node/components/TableEx/TableCellEx.js.map +1 -0
- package/dist/node/components/TableEx/TableCellEx.mjs +10 -0
- package/dist/node/components/TableEx/TableCellEx.mjs.map +1 -0
- package/dist/node/components/TableEx/TableEx.d.mts +9 -0
- package/dist/node/components/TableEx/TableEx.d.mts.map +1 -0
- package/dist/node/components/TableEx/TableEx.d.ts +9 -0
- package/dist/node/components/TableEx/TableEx.d.ts.map +1 -0
- package/dist/node/components/TableEx/TableEx.js +42 -0
- package/dist/node/components/TableEx/TableEx.js.map +1 -0
- package/dist/node/components/TableEx/TableEx.mjs +17 -0
- package/dist/node/components/TableEx/TableEx.mjs.map +1 -0
- package/dist/node/components/TableEx/TableEx.stories.js +98 -0
- package/dist/node/components/TableEx/TableEx.stories.js.map +1 -0
- package/dist/node/components/TableEx/TableEx.stories.mjs +72 -0
- package/dist/node/components/TableEx/TableEx.stories.mjs.map +1 -0
- package/dist/node/components/TableEx/TableFooterEx.d.mts +8 -0
- package/dist/node/components/TableEx/TableFooterEx.d.mts.map +1 -0
- package/dist/node/components/TableEx/TableFooterEx.d.ts +8 -0
- package/dist/node/components/TableEx/TableFooterEx.d.ts.map +1 -0
- package/dist/node/components/TableEx/TableFooterEx.js +44 -0
- package/dist/node/components/TableEx/TableFooterEx.js.map +1 -0
- package/dist/node/components/TableEx/TableFooterEx.mjs +20 -0
- package/dist/node/components/TableEx/TableFooterEx.mjs.map +1 -0
- package/dist/node/components/TableEx/index.d.mts +5 -0
- package/dist/node/components/TableEx/index.d.mts.map +1 -0
- package/dist/node/components/TableEx/index.d.ts +5 -0
- package/dist/node/components/TableEx/index.d.ts.map +1 -0
- package/dist/node/components/TableEx/index.js +29 -0
- package/dist/node/components/TableEx/index.js.map +1 -0
- package/dist/node/components/TableEx/index.mjs +5 -0
- package/dist/node/components/TableEx/index.mjs.map +1 -0
- package/dist/node/components/TableEx/types/TableExVariants.d.mts +2 -0
- package/dist/node/components/TableEx/types/TableExVariants.d.mts.map +1 -0
- package/dist/node/components/TableEx/types/TableExVariants.d.ts +2 -0
- package/dist/node/components/TableEx/types/TableExVariants.d.ts.map +1 -0
- package/dist/node/components/TableEx/types/TableExVariants.js +17 -0
- package/dist/node/components/TableEx/types/TableExVariants.js.map +1 -0
- package/dist/node/components/TableEx/types/TableExVariants.mjs +1 -0
- package/dist/node/components/TableEx/types/TableExVariants.mjs.map +1 -0
- package/dist/node/components/TableEx/types/index.d.mts +2 -0
- package/dist/node/components/TableEx/types/index.d.mts.map +1 -0
- package/dist/node/components/TableEx/types/index.d.ts +2 -0
- package/dist/node/components/TableEx/types/index.d.ts.map +1 -0
- package/dist/node/components/TableEx/types/index.js +23 -0
- package/dist/node/components/TableEx/types/index.js.map +1 -0
- package/dist/node/components/TableEx/types/index.mjs +2 -0
- package/dist/node/components/TableEx/types/index.mjs.map +1 -0
- package/dist/node/components/index.d.mts +2 -0
- package/dist/node/components/index.d.mts.map +1 -0
- package/dist/node/components/index.d.ts +2 -0
- package/dist/node/components/index.d.ts.map +1 -0
- package/dist/node/components/index.js +23 -0
- package/dist/node/components/index.js.map +1 -0
- package/dist/node/components/index.mjs +2 -0
- package/dist/node/components/index.mjs.map +1 -0
- package/dist/node/context/TableHeight/Context.d.mts +4 -0
- package/dist/node/context/TableHeight/Context.d.mts.map +1 -0
- package/dist/node/context/TableHeight/Context.d.ts +4 -0
- package/dist/node/context/TableHeight/Context.d.ts.map +1 -0
- package/dist/node/context/TableHeight/Context.js +30 -0
- package/dist/node/context/TableHeight/Context.js.map +1 -0
- package/dist/node/context/TableHeight/Context.mjs +6 -0
- package/dist/node/context/TableHeight/Context.mjs.map +1 -0
- package/dist/node/context/TableHeight/Provider.d.mts +11 -0
- package/dist/node/context/TableHeight/Provider.d.mts.map +1 -0
- package/dist/node/context/TableHeight/Provider.d.ts +11 -0
- package/dist/node/context/TableHeight/Provider.d.ts.map +1 -0
- package/dist/node/context/TableHeight/Provider.js +51 -0
- package/dist/node/context/TableHeight/Provider.js.map +1 -0
- package/dist/node/context/TableHeight/Provider.mjs +27 -0
- package/dist/node/context/TableHeight/Provider.mjs.map +1 -0
- package/dist/node/context/TableHeight/State.d.mts +10 -0
- package/dist/node/context/TableHeight/State.d.mts.map +1 -0
- package/dist/node/context/TableHeight/State.d.ts +10 -0
- package/dist/node/context/TableHeight/State.d.ts.map +1 -0
- package/dist/node/context/TableHeight/State.js +17 -0
- package/dist/node/context/TableHeight/State.js.map +1 -0
- package/dist/node/context/TableHeight/State.mjs +1 -0
- package/dist/node/context/TableHeight/State.mjs.map +1 -0
- package/dist/node/context/TableHeight/index.d.mts +5 -0
- package/dist/node/context/TableHeight/index.d.mts.map +1 -0
- package/dist/node/context/TableHeight/index.d.ts +5 -0
- package/dist/node/context/TableHeight/index.d.ts.map +1 -0
- package/dist/node/context/TableHeight/index.js +29 -0
- package/dist/node/context/TableHeight/index.js.map +1 -0
- package/dist/node/context/TableHeight/index.mjs +5 -0
- package/dist/node/context/TableHeight/index.mjs.map +1 -0
- package/dist/node/context/TableHeight/use.d.mts +2 -0
- package/dist/node/context/TableHeight/use.d.mts.map +1 -0
- package/dist/node/context/TableHeight/use.d.ts +2 -0
- package/dist/node/context/TableHeight/use.d.ts.map +1 -0
- package/dist/node/context/TableHeight/use.js +31 -0
- package/dist/node/context/TableHeight/use.js.map +1 -0
- package/dist/node/context/TableHeight/use.mjs +7 -0
- package/dist/node/context/TableHeight/use.mjs.map +1 -0
- package/dist/node/context/index.d.mts +2 -0
- package/dist/node/context/index.d.mts.map +1 -0
- package/dist/node/context/index.d.ts +2 -0
- package/dist/node/context/index.d.ts.map +1 -0
- package/dist/node/context/index.js +23 -0
- package/dist/node/context/index.js.map +1 -0
- package/dist/node/context/index.mjs +2 -0
- package/dist/node/context/index.mjs.map +1 -0
- package/dist/node/index.d.mts +3 -0
- package/dist/node/index.d.mts.map +1 -0
- package/dist/node/index.d.ts +3 -0
- package/dist/node/index.d.ts.map +1 -0
- package/dist/node/index.js +25 -0
- package/dist/node/index.js.map +1 -0
- package/dist/node/index.mjs +3 -0
- package/dist/node/index.mjs.map +1 -0
- package/package.json +19 -19
- package/dist/components/TableEx/TableCellEx.d.mts.map +0 -1
- package/dist/components/TableEx/TableCellEx.d.ts.map +0 -1
- package/dist/components/TableEx/TableEx.d.mts.map +0 -1
- package/dist/components/TableEx/TableEx.d.ts.map +0 -1
- package/dist/components/TableEx/TableEx.stories.d.mts +0 -7
- package/dist/components/TableEx/TableEx.stories.d.mts.map +0 -1
- package/dist/components/TableEx/TableEx.stories.d.ts +0 -7
- package/dist/components/TableEx/TableEx.stories.d.ts.map +0 -1
- package/dist/components/TableEx/TableFooterEx.d.mts.map +0 -1
- package/dist/components/TableEx/TableFooterEx.d.ts.map +0 -1
- package/dist/components/TableEx/index.d.mts.map +0 -1
- package/dist/components/TableEx/index.d.ts.map +0 -1
- package/dist/components/TableEx/types/TableExVariants.d.mts.map +0 -1
- package/dist/components/TableEx/types/TableExVariants.d.ts.map +0 -1
- package/dist/components/TableEx/types/index.d.mts.map +0 -1
- package/dist/components/TableEx/types/index.d.ts.map +0 -1
- package/dist/components/index.d.mts.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/context/TableHeight/Context.d.mts.map +0 -1
- package/dist/context/TableHeight/Context.d.ts.map +0 -1
- package/dist/context/TableHeight/Provider.d.mts.map +0 -1
- package/dist/context/TableHeight/Provider.d.ts.map +0 -1
- package/dist/context/TableHeight/State.d.mts.map +0 -1
- package/dist/context/TableHeight/State.d.ts.map +0 -1
- package/dist/context/TableHeight/index.d.mts.map +0 -1
- package/dist/context/TableHeight/index.d.ts.map +0 -1
- package/dist/context/TableHeight/use.d.mts.map +0 -1
- package/dist/context/TableHeight/use.d.ts.map +0 -1
- package/dist/context/index.d.mts.map +0 -1
- package/dist/context/index.d.ts.map +0 -1
- package/dist/index.d.mts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -114
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -81
- package/dist/index.mjs.map +0 -1
- /package/dist/{components → browser/components}/TableEx/TableCellEx.d.mts +0 -0
- /package/dist/{components → browser/components}/TableEx/TableCellEx.d.ts +0 -0
- /package/dist/{components → browser/components}/TableEx/TableEx.d.mts +0 -0
- /package/dist/{components → browser/components}/TableEx/TableEx.d.ts +0 -0
- /package/dist/{components → browser/components}/TableEx/TableFooterEx.d.mts +0 -0
- /package/dist/{components → browser/components}/TableEx/TableFooterEx.d.ts +0 -0
- /package/dist/{components → browser/components}/TableEx/index.d.mts +0 -0
- /package/dist/{components → browser/components}/TableEx/index.d.ts +0 -0
- /package/dist/{components → browser/components}/TableEx/types/TableExVariants.d.mts +0 -0
- /package/dist/{components → browser/components}/TableEx/types/TableExVariants.d.ts +0 -0
- /package/dist/{components → browser/components}/TableEx/types/index.d.mts +0 -0
- /package/dist/{components → browser/components}/TableEx/types/index.d.ts +0 -0
- /package/dist/{components → browser/components}/index.d.mts +0 -0
- /package/dist/{components → browser/components}/index.d.ts +0 -0
- /package/dist/{context → browser/context}/TableHeight/Context.d.mts +0 -0
- /package/dist/{context → browser/context}/TableHeight/Context.d.ts +0 -0
- /package/dist/{context → browser/context}/TableHeight/Provider.d.mts +0 -0
- /package/dist/{context → browser/context}/TableHeight/Provider.d.ts +0 -0
- /package/dist/{context → browser/context}/TableHeight/State.d.mts +0 -0
- /package/dist/{context → browser/context}/TableHeight/State.d.ts +0 -0
- /package/dist/{context → browser/context}/TableHeight/index.d.mts +0 -0
- /package/dist/{context → browser/context}/TableHeight/index.d.ts +0 -0
- /package/dist/{context → browser/context}/TableHeight/use.d.mts +0 -0
- /package/dist/{context → browser/context}/TableHeight/use.d.ts +0 -0
- /package/dist/{context → browser/context}/index.d.mts +0 -0
- /package/dist/{context → browser/context}/index.d.ts +0 -0
- /package/dist/{index.d.mts → browser/index.d.mts} +0 -0
- /package/dist/{index.d.ts → browser/index.d.ts} +0 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var TableEx_stories_exports = {};
|
|
20
|
+
__export(TableEx_stories_exports, {
|
|
21
|
+
Default: () => Default,
|
|
22
|
+
WithRef: () => WithRef,
|
|
23
|
+
WithScrollable: () => WithScrollable,
|
|
24
|
+
default: () => TableEx_stories_default
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(TableEx_stories_exports);
|
|
27
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
28
|
+
var import_material = require("@mui/material");
|
|
29
|
+
var import_react_storybook = require("@xyo-network/react-storybook");
|
|
30
|
+
var import_TableCellEx = require("./TableCellEx");
|
|
31
|
+
var import_TableEx = require("./TableEx");
|
|
32
|
+
var import_TableFooterEx = require("./TableFooterEx");
|
|
33
|
+
const ScrollableDecorator = (Story, args) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { height: "calc(100vh - 2rem)", inset: 0, position: "absolute" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Story, { ...args }) });
|
|
34
|
+
const StorybookEntry = {
|
|
35
|
+
argTypes: {},
|
|
36
|
+
component: import_TableEx.TableEx,
|
|
37
|
+
parameters: {
|
|
38
|
+
docs: {
|
|
39
|
+
page: null
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
title: "shared/TableEx"
|
|
43
|
+
};
|
|
44
|
+
const Template = (args) => {
|
|
45
|
+
const { variant } = args;
|
|
46
|
+
const theme = (0, import_material.useTheme)();
|
|
47
|
+
const tableRows = [...Array(100).keys()];
|
|
48
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_TableEx.TableEx, { ...args, children: [
|
|
49
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.TableRow, { children: [
|
|
50
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TableCellEx.TableCellEx, { children: "Heading 1" }),
|
|
51
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TableCellEx.TableCellEx, { children: "Heading 2" })
|
|
52
|
+
] }) }),
|
|
53
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.TableBody, { children: tableRows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.TableRow, { children: [
|
|
54
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.TableCell, { children: [
|
|
55
|
+
"Row ",
|
|
56
|
+
row
|
|
57
|
+
] }),
|
|
58
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.TableCell, { children: "Cell 2" })
|
|
59
|
+
] }, row)) }),
|
|
60
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_TableFooterEx.TableFooterEx, { variant, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
61
|
+
import_material.TablePagination,
|
|
62
|
+
{
|
|
63
|
+
rowsPerPageOptions: [5, 10, 25, { label: "All", value: -1 }],
|
|
64
|
+
count: 25,
|
|
65
|
+
page: 1,
|
|
66
|
+
rowsPerPage: 5,
|
|
67
|
+
style: { borderTop: "1px solid", borderTopColor: theme.palette.divider },
|
|
68
|
+
SelectProps: {
|
|
69
|
+
inputProps: {
|
|
70
|
+
"aria-label": "rows per page"
|
|
71
|
+
},
|
|
72
|
+
native: true
|
|
73
|
+
},
|
|
74
|
+
onPageChange: () => {
|
|
75
|
+
return;
|
|
76
|
+
},
|
|
77
|
+
onRowsPerPageChange: () => {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
) }) })
|
|
82
|
+
] });
|
|
83
|
+
};
|
|
84
|
+
const Default = Template.bind({});
|
|
85
|
+
Default.args = {};
|
|
86
|
+
const WithRef = Template.bind({});
|
|
87
|
+
WithRef.decorators = [import_react_storybook.WithRefDecorator];
|
|
88
|
+
const WithScrollable = Template.bind({});
|
|
89
|
+
WithScrollable.args = { variant: "scrollable" };
|
|
90
|
+
WithScrollable.decorators = [ScrollableDecorator];
|
|
91
|
+
var TableEx_stories_default = StorybookEntry;
|
|
92
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
93
|
+
0 && (module.exports = {
|
|
94
|
+
Default,
|
|
95
|
+
WithRef,
|
|
96
|
+
WithScrollable
|
|
97
|
+
});
|
|
98
|
+
//# sourceMappingURL=TableEx.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/TableEx/TableEx.stories.tsx"],"sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport { TableBody, TableCell, TableHead, TablePagination, TableRow, useTheme } from '@mui/material'\nimport { Decorator, Meta, StoryFn } from '@storybook/react'\nimport { WithRefDecorator } from '@xyo-network/react-storybook'\n\nimport { TableCellEx } from './TableCellEx'\nimport { TableEx } from './TableEx'\nimport { TableFooterEx } from './TableFooterEx'\n\nconst ScrollableDecorator: Decorator = (Story, args) => (\n <div style={{ height: 'calc(100vh - 2rem)', inset: 0, position: 'absolute' }}>\n <Story {...args} />\n </div>\n)\n\nconst StorybookEntry = {\n argTypes: {},\n component: TableEx,\n parameters: {\n docs: {\n page: null,\n },\n },\n title: 'shared/TableEx',\n} as Meta<typeof TableEx>\n\nconst Template: StoryFn<typeof TableEx> = (args) => {\n const { variant } = args\n const theme = useTheme()\n const tableRows = [...Array(100).keys()]\n\n return (\n <TableEx {...args}>\n <TableHead>\n <TableRow>\n <TableCellEx>Heading 1</TableCellEx>\n <TableCellEx>Heading 2</TableCellEx>\n </TableRow>\n </TableHead>\n <TableBody>\n {tableRows.map((row) => (\n <TableRow key={row}>\n <TableCell>Row {row}</TableCell>\n <TableCell>Cell 2</TableCell>\n </TableRow>\n ))}\n </TableBody>\n <TableFooterEx variant={variant}>\n <TableRow>\n <TablePagination\n rowsPerPageOptions={[5, 10, 25, { label: 'All', value: -1 }]}\n count={25}\n page={1}\n rowsPerPage={5}\n style={{ borderTop: '1px solid', borderTopColor: theme.palette.divider }}\n SelectProps={{\n inputProps: {\n 'aria-label': 'rows per page',\n },\n native: true,\n }}\n onPageChange={() => {\n return\n }}\n onRowsPerPageChange={() => {\n return\n }}\n />\n </TableRow>\n </TableFooterEx>\n </TableEx>\n )\n}\n\nconst Default = Template.bind({})\nDefault.args = {}\n\nconst WithRef = Template.bind({})\nWithRef.decorators = [WithRefDecorator]\n\nconst WithScrollable = Template.bind({})\nWithScrollable.args = { variant: 'scrollable' }\nWithScrollable.decorators = [ScrollableDecorator]\n\nexport { Default, WithRef, WithScrollable }\n\n// eslint-disable-next-line import/no-default-export\nexport default StorybookEntry\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWI;AAVJ,sBAAqF;AAErF,6BAAiC;AAEjC,yBAA4B;AAC5B,qBAAwB;AACxB,2BAA8B;AAE9B,MAAM,sBAAiC,CAAC,OAAO,SAC7C,4CAAC,SAAI,OAAO,EAAE,QAAQ,sBAAsB,OAAO,GAAG,UAAU,WAAW,GACzE,sDAAC,SAAO,GAAG,MAAM,GACnB;AAGF,MAAM,iBAAiB;AAAA,EACrB,UAAU,CAAC;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,IACV,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,OAAO;AACT;AAEA,MAAM,WAAoC,CAAC,SAAS;AAClD,QAAM,EAAE,QAAQ,IAAI;AACpB,QAAM,YAAQ,0BAAS;AACvB,QAAM,YAAY,CAAC,GAAG,MAAM,GAAG,EAAE,KAAK,CAAC;AAEvC,SACE,6CAAC,0BAAS,GAAG,MACX;AAAA,gDAAC,6BACC,uDAAC,4BACC;AAAA,kDAAC,kCAAY,uBAAS;AAAA,MACtB,4CAAC,kCAAY,uBAAS;AAAA,OACxB,GACF;AAAA,IACA,4CAAC,6BACE,oBAAU,IAAI,CAAC,QACd,6CAAC,4BACC;AAAA,mDAAC,6BAAU;AAAA;AAAA,QAAK;AAAA,SAAI;AAAA,MACpB,4CAAC,6BAAU,oBAAM;AAAA,SAFJ,GAGf,CACD,GACH;AAAA,IACA,4CAAC,sCAAc,SACb,sDAAC,4BACC;AAAA,MAAC;AAAA;AAAA,QACC,oBAAoB,CAAC,GAAG,IAAI,IAAI,EAAE,OAAO,OAAO,OAAO,GAAG,CAAC;AAAA,QAC3D,OAAO;AAAA,QACP,MAAM;AAAA,QACN,aAAa;AAAA,QACb,OAAO,EAAE,WAAW,aAAa,gBAAgB,MAAM,QAAQ,QAAQ;AAAA,QACvE,aAAa;AAAA,UACX,YAAY;AAAA,YACV,cAAc;AAAA,UAChB;AAAA,UACA,QAAQ;AAAA,QACV;AAAA,QACA,cAAc,MAAM;AAClB;AAAA,QACF;AAAA,QACA,qBAAqB,MAAM;AACzB;AAAA,QACF;AAAA;AAAA,IACF,GACF,GACF;AAAA,KACF;AAEJ;AAEA,MAAM,UAAU,SAAS,KAAK,CAAC,CAAC;AAChC,QAAQ,OAAO,CAAC;AAEhB,MAAM,UAAU,SAAS,KAAK,CAAC,CAAC;AAChC,QAAQ,aAAa,CAAC,uCAAgB;AAEtC,MAAM,iBAAiB,SAAS,KAAK,CAAC,CAAC;AACvC,eAAe,OAAO,EAAE,SAAS,aAAa;AAC9C,eAAe,aAAa,CAAC,mBAAmB;AAKhD,IAAO,0BAAQ;","names":[]}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { TableBody, TableCell, TableHead, TablePagination, TableRow, useTheme } from "@mui/material";
|
|
3
|
+
import { WithRefDecorator } from "@xyo-network/react-storybook";
|
|
4
|
+
import { TableCellEx } from "./TableCellEx";
|
|
5
|
+
import { TableEx } from "./TableEx";
|
|
6
|
+
import { TableFooterEx } from "./TableFooterEx";
|
|
7
|
+
const ScrollableDecorator = (Story, args) => /* @__PURE__ */ jsx("div", { style: { height: "calc(100vh - 2rem)", inset: 0, position: "absolute" }, children: /* @__PURE__ */ jsx(Story, { ...args }) });
|
|
8
|
+
const StorybookEntry = {
|
|
9
|
+
argTypes: {},
|
|
10
|
+
component: TableEx,
|
|
11
|
+
parameters: {
|
|
12
|
+
docs: {
|
|
13
|
+
page: null
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
title: "shared/TableEx"
|
|
17
|
+
};
|
|
18
|
+
const Template = (args) => {
|
|
19
|
+
const { variant } = args;
|
|
20
|
+
const theme = useTheme();
|
|
21
|
+
const tableRows = [...Array(100).keys()];
|
|
22
|
+
return /* @__PURE__ */ jsxs(TableEx, { ...args, children: [
|
|
23
|
+
/* @__PURE__ */ jsx(TableHead, { children: /* @__PURE__ */ jsxs(TableRow, { children: [
|
|
24
|
+
/* @__PURE__ */ jsx(TableCellEx, { children: "Heading 1" }),
|
|
25
|
+
/* @__PURE__ */ jsx(TableCellEx, { children: "Heading 2" })
|
|
26
|
+
] }) }),
|
|
27
|
+
/* @__PURE__ */ jsx(TableBody, { children: tableRows.map((row) => /* @__PURE__ */ jsxs(TableRow, { children: [
|
|
28
|
+
/* @__PURE__ */ jsxs(TableCell, { children: [
|
|
29
|
+
"Row ",
|
|
30
|
+
row
|
|
31
|
+
] }),
|
|
32
|
+
/* @__PURE__ */ jsx(TableCell, { children: "Cell 2" })
|
|
33
|
+
] }, row)) }),
|
|
34
|
+
/* @__PURE__ */ jsx(TableFooterEx, { variant, children: /* @__PURE__ */ jsx(TableRow, { children: /* @__PURE__ */ jsx(
|
|
35
|
+
TablePagination,
|
|
36
|
+
{
|
|
37
|
+
rowsPerPageOptions: [5, 10, 25, { label: "All", value: -1 }],
|
|
38
|
+
count: 25,
|
|
39
|
+
page: 1,
|
|
40
|
+
rowsPerPage: 5,
|
|
41
|
+
style: { borderTop: "1px solid", borderTopColor: theme.palette.divider },
|
|
42
|
+
SelectProps: {
|
|
43
|
+
inputProps: {
|
|
44
|
+
"aria-label": "rows per page"
|
|
45
|
+
},
|
|
46
|
+
native: true
|
|
47
|
+
},
|
|
48
|
+
onPageChange: () => {
|
|
49
|
+
return;
|
|
50
|
+
},
|
|
51
|
+
onRowsPerPageChange: () => {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
) }) })
|
|
56
|
+
] });
|
|
57
|
+
};
|
|
58
|
+
const Default = Template.bind({});
|
|
59
|
+
Default.args = {};
|
|
60
|
+
const WithRef = Template.bind({});
|
|
61
|
+
WithRef.decorators = [WithRefDecorator];
|
|
62
|
+
const WithScrollable = Template.bind({});
|
|
63
|
+
WithScrollable.args = { variant: "scrollable" };
|
|
64
|
+
WithScrollable.decorators = [ScrollableDecorator];
|
|
65
|
+
var TableEx_stories_default = StorybookEntry;
|
|
66
|
+
export {
|
|
67
|
+
Default,
|
|
68
|
+
WithRef,
|
|
69
|
+
WithScrollable,
|
|
70
|
+
TableEx_stories_default as default
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=TableEx.stories.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/TableEx/TableEx.stories.tsx"],"sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport { TableBody, TableCell, TableHead, TablePagination, TableRow, useTheme } from '@mui/material'\nimport { Decorator, Meta, StoryFn } from '@storybook/react'\nimport { WithRefDecorator } from '@xyo-network/react-storybook'\n\nimport { TableCellEx } from './TableCellEx'\nimport { TableEx } from './TableEx'\nimport { TableFooterEx } from './TableFooterEx'\n\nconst ScrollableDecorator: Decorator = (Story, args) => (\n <div style={{ height: 'calc(100vh - 2rem)', inset: 0, position: 'absolute' }}>\n <Story {...args} />\n </div>\n)\n\nconst StorybookEntry = {\n argTypes: {},\n component: TableEx,\n parameters: {\n docs: {\n page: null,\n },\n },\n title: 'shared/TableEx',\n} as Meta<typeof TableEx>\n\nconst Template: StoryFn<typeof TableEx> = (args) => {\n const { variant } = args\n const theme = useTheme()\n const tableRows = [...Array(100).keys()]\n\n return (\n <TableEx {...args}>\n <TableHead>\n <TableRow>\n <TableCellEx>Heading 1</TableCellEx>\n <TableCellEx>Heading 2</TableCellEx>\n </TableRow>\n </TableHead>\n <TableBody>\n {tableRows.map((row) => (\n <TableRow key={row}>\n <TableCell>Row {row}</TableCell>\n <TableCell>Cell 2</TableCell>\n </TableRow>\n ))}\n </TableBody>\n <TableFooterEx variant={variant}>\n <TableRow>\n <TablePagination\n rowsPerPageOptions={[5, 10, 25, { label: 'All', value: -1 }]}\n count={25}\n page={1}\n rowsPerPage={5}\n style={{ borderTop: '1px solid', borderTopColor: theme.palette.divider }}\n SelectProps={{\n inputProps: {\n 'aria-label': 'rows per page',\n },\n native: true,\n }}\n onPageChange={() => {\n return\n }}\n onRowsPerPageChange={() => {\n return\n }}\n />\n </TableRow>\n </TableFooterEx>\n </TableEx>\n )\n}\n\nconst Default = Template.bind({})\nDefault.args = {}\n\nconst WithRef = Template.bind({})\nWithRef.decorators = [WithRefDecorator]\n\nconst WithScrollable = Template.bind({})\nWithScrollable.args = { variant: 'scrollable' }\nWithScrollable.decorators = [ScrollableDecorator]\n\nexport { Default, WithRef, WithScrollable }\n\n// eslint-disable-next-line import/no-default-export\nexport default StorybookEntry\n"],"mappings":"AAWI,cAuBI,YAvBJ;AAVJ,SAAS,WAAW,WAAW,WAAW,iBAAiB,UAAU,gBAAgB;AAErF,SAAS,wBAAwB;AAEjC,SAAS,mBAAmB;AAC5B,SAAS,eAAe;AACxB,SAAS,qBAAqB;AAE9B,MAAM,sBAAiC,CAAC,OAAO,SAC7C,oBAAC,SAAI,OAAO,EAAE,QAAQ,sBAAsB,OAAO,GAAG,UAAU,WAAW,GACzE,8BAAC,SAAO,GAAG,MAAM,GACnB;AAGF,MAAM,iBAAiB;AAAA,EACrB,UAAU,CAAC;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,IACV,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,OAAO;AACT;AAEA,MAAM,WAAoC,CAAC,SAAS;AAClD,QAAM,EAAE,QAAQ,IAAI;AACpB,QAAM,QAAQ,SAAS;AACvB,QAAM,YAAY,CAAC,GAAG,MAAM,GAAG,EAAE,KAAK,CAAC;AAEvC,SACE,qBAAC,WAAS,GAAG,MACX;AAAA,wBAAC,aACC,+BAAC,YACC;AAAA,0BAAC,eAAY,uBAAS;AAAA,MACtB,oBAAC,eAAY,uBAAS;AAAA,OACxB,GACF;AAAA,IACA,oBAAC,aACE,oBAAU,IAAI,CAAC,QACd,qBAAC,YACC;AAAA,2BAAC,aAAU;AAAA;AAAA,QAAK;AAAA,SAAI;AAAA,MACpB,oBAAC,aAAU,oBAAM;AAAA,SAFJ,GAGf,CACD,GACH;AAAA,IACA,oBAAC,iBAAc,SACb,8BAAC,YACC;AAAA,MAAC;AAAA;AAAA,QACC,oBAAoB,CAAC,GAAG,IAAI,IAAI,EAAE,OAAO,OAAO,OAAO,GAAG,CAAC;AAAA,QAC3D,OAAO;AAAA,QACP,MAAM;AAAA,QACN,aAAa;AAAA,QACb,OAAO,EAAE,WAAW,aAAa,gBAAgB,MAAM,QAAQ,QAAQ;AAAA,QACvE,aAAa;AAAA,UACX,YAAY;AAAA,YACV,cAAc;AAAA,UAChB;AAAA,UACA,QAAQ;AAAA,QACV;AAAA,QACA,cAAc,MAAM;AAClB;AAAA,QACF;AAAA,QACA,qBAAqB,MAAM;AACzB;AAAA,QACF;AAAA;AAAA,IACF,GACF,GACF;AAAA,KACF;AAEJ;AAEA,MAAM,UAAU,SAAS,KAAK,CAAC,CAAC;AAChC,QAAQ,OAAO,CAAC;AAEhB,MAAM,UAAU,SAAS,KAAK,CAAC,CAAC;AAChC,QAAQ,aAAa,CAAC,gBAAgB;AAEtC,MAAM,iBAAiB,SAAS,KAAK,CAAC,CAAC;AACvC,eAAe,OAAO,EAAE,SAAS,aAAa;AAC9C,eAAe,aAAa,CAAC,mBAAmB;AAKhD,IAAO,0BAAQ;","names":[]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TableFooterProps } from '@mui/material';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
import { TableExVariants } from './types';
|
|
4
|
+
export interface TableFooterExProps extends PropsWithChildren, TableFooterProps {
|
|
5
|
+
variant?: TableExVariants;
|
|
6
|
+
}
|
|
7
|
+
export declare const TableFooterEx: React.FC<TableFooterExProps>;
|
|
8
|
+
//# sourceMappingURL=TableFooterEx.d.ts.map
|
|
@@ -0,0 +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;AAEzC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAgBzC,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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TableFooterProps } from '@mui/material';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
import { TableExVariants } from './types';
|
|
4
|
+
export interface TableFooterExProps extends PropsWithChildren, TableFooterProps {
|
|
5
|
+
variant?: TableExVariants;
|
|
6
|
+
}
|
|
7
|
+
export declare const TableFooterEx: React.FC<TableFooterExProps>;
|
|
8
|
+
//# sourceMappingURL=TableFooterEx.d.ts.map
|
|
@@ -0,0 +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;AAEzC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAgBzC,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"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var TableFooterEx_exports = {};
|
|
20
|
+
__export(TableFooterEx_exports, {
|
|
21
|
+
TableFooterEx: () => TableFooterEx
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(TableFooterEx_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_material = require("@mui/material");
|
|
26
|
+
const TableFooterExRoot = (0, import_material.styled)(import_material.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
|
+
const TableFooterEx = ({ children, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableFooterExRoot, { ...props, children });
|
|
40
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
41
|
+
0 && (module.exports = {
|
|
42
|
+
TableFooterEx
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=TableFooterEx.js.map
|
|
@@ -0,0 +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":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAuBuF;AAvBvF,sBAAsD;AAKtD,MAAM,wBAAoB,wBAAO,6BAAa;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,MAAM,gBAA8C,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM,4CAAC,qBAAmB,GAAG,OAAQ,UAAS;","names":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { styled, TableFooter } from "@mui/material";
|
|
3
|
+
const TableFooterExRoot = styled(TableFooter, {
|
|
4
|
+
name: "TableFooterEx",
|
|
5
|
+
shouldForwardProp: (propName) => propName !== "scrollable",
|
|
6
|
+
slot: "Root"
|
|
7
|
+
})(({ variant, theme }) => ({
|
|
8
|
+
backgroundColor: theme.palette.background.default,
|
|
9
|
+
bottom: "unset",
|
|
10
|
+
position: "relative",
|
|
11
|
+
...variant === "scrollable" && {
|
|
12
|
+
bottom: 0,
|
|
13
|
+
position: "sticky"
|
|
14
|
+
}
|
|
15
|
+
}));
|
|
16
|
+
const TableFooterEx = ({ children, ...props }) => /* @__PURE__ */ jsx(TableFooterExRoot, { ...props, children });
|
|
17
|
+
export {
|
|
18
|
+
TableFooterEx
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=TableFooterEx.mjs.map
|
|
@@ -0,0 +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":"AAuBuF;AAvBvF,SAAS,QAAQ,mBAAqC;AAKtD,MAAM,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,MAAM,gBAA8C,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM,oBAAC,qBAAmB,GAAG,OAAQ,UAAS;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var TableEx_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(TableEx_exports);
|
|
18
|
+
__reExport(TableEx_exports, require("./TableCellEx"), module.exports);
|
|
19
|
+
__reExport(TableEx_exports, require("./TableEx"), module.exports);
|
|
20
|
+
__reExport(TableEx_exports, require("./TableFooterEx"), module.exports);
|
|
21
|
+
__reExport(TableEx_exports, require("./types"), module.exports);
|
|
22
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
23
|
+
0 && (module.exports = {
|
|
24
|
+
...require("./TableCellEx"),
|
|
25
|
+
...require("./TableEx"),
|
|
26
|
+
...require("./TableFooterEx"),
|
|
27
|
+
...require("./types")
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/TableEx/index.ts"],"sourcesContent":["export * from './TableCellEx'\nexport * from './TableEx'\nexport * from './TableFooterEx'\nexport * from './types'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,4BAAc,0BAAd;AACA,4BAAc,sBADd;AAEA,4BAAc,4BAFd;AAGA,4BAAc,oBAHd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/TableEx/index.ts"],"sourcesContent":["export * from './TableCellEx'\nexport * from './TableEx'\nexport * from './TableFooterEx'\nexport * from './types'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableExVariants.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableEx/types/TableExVariants.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,YAAY,GAAG,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableExVariants.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableEx/types/TableExVariants.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG,YAAY,GAAG,QAAQ,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var TableExVariants_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(TableExVariants_exports);
|
|
17
|
+
//# sourceMappingURL=TableExVariants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/TableEx/types/TableExVariants.ts"],"sourcesContent":["export type TableExVariants = 'scrollable' | 'normal'\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=TableExVariants.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableEx/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/TableEx/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var types_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(types_exports);
|
|
18
|
+
__reExport(types_exports, require("./TableExVariants"), module.exports);
|
|
19
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
20
|
+
0 && (module.exports = {
|
|
21
|
+
...require("./TableExVariants")
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/TableEx/types/index.ts"],"sourcesContent":["export * from './TableExVariants'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,8BAAd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/TableEx/types/index.ts"],"sourcesContent":["export * from './TableExVariants'\n"],"mappings":"AAAA,cAAc;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
+
var components_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(components_exports);
|
|
18
|
+
__reExport(components_exports, require("./TableEx"), module.exports);
|
|
19
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
20
|
+
0 && (module.exports = {
|
|
21
|
+
...require("./TableEx")
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/index.ts"],"sourcesContent":["export * from './TableEx'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,+BAAc,sBAAd;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/components/index.ts"],"sourcesContent":["export * from './TableEx'\n"],"mappings":"AAAA,cAAc;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/Context.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE1C,eAAO,MAAM,kBAAkB,gGAAsC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/Context.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE1C,eAAO,MAAM,kBAAkB,gGAAsC,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var Context_exports = {};
|
|
20
|
+
__export(Context_exports, {
|
|
21
|
+
TableHeightContext: () => TableHeightContext
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(Context_exports);
|
|
24
|
+
var import_react_shared = require("@xyo-network/react-shared");
|
|
25
|
+
const TableHeightContext = (0, import_react_shared.createContextEx)();
|
|
26
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
27
|
+
0 && (module.exports = {
|
|
28
|
+
TableHeightContext
|
|
29
|
+
});
|
|
30
|
+
//# sourceMappingURL=Context.js.map
|
|
@@ -0,0 +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;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAgC;AAIzB,MAAM,yBAAqB,qCAAkC;","names":[]}
|
|
@@ -0,0 +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,MAAM,qBAAqB,gBAAkC;","names":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WithChildren } from '@xylabs/react-shared';
|
|
3
|
+
import { ContextExProviderProps } from '@xyo-network/react-shared';
|
|
4
|
+
export interface TableHeightProviderProps extends ContextExProviderProps, WithChildren {
|
|
5
|
+
/** @field Account for optional header and footer rows */
|
|
6
|
+
additionalRows?: number;
|
|
7
|
+
defaultVisibleRows?: number;
|
|
8
|
+
heightFormat?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const TableHeightProvider: React.FC<TableHeightProviderProps>;
|
|
11
|
+
//# sourceMappingURL=Provider.d.ts.map
|
|
@@ -0,0 +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;AAKlE,MAAM,WAAW,wBAAyB,SAAQ,sBAAsB,EAAE,YAAY;IACpF,yDAAyD;IACzD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA2BlE,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WithChildren } from '@xylabs/react-shared';
|
|
3
|
+
import { ContextExProviderProps } from '@xyo-network/react-shared';
|
|
4
|
+
export interface TableHeightProviderProps extends ContextExProviderProps, WithChildren {
|
|
5
|
+
/** @field Account for optional header and footer rows */
|
|
6
|
+
additionalRows?: number;
|
|
7
|
+
defaultVisibleRows?: number;
|
|
8
|
+
heightFormat?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const TableHeightProvider: React.FC<TableHeightProviderProps>;
|
|
11
|
+
//# sourceMappingURL=Provider.d.ts.map
|
|
@@ -0,0 +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;AAKlE,MAAM,WAAW,wBAAyB,SAAQ,sBAAsB,EAAE,YAAY;IACpF,yDAAyD;IACzD,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA2BlE,CAAA"}
|