@xyo-network/react-table 2.64.9 → 2.65.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/package.json +6 -6
- package/dist/browser/components/TableEx/TableCellEx.cjs +0 -32
- package/dist/browser/components/TableEx/TableCellEx.cjs.map +0 -1
- package/dist/browser/components/TableEx/TableCellEx.js +0 -11
- package/dist/browser/components/TableEx/TableCellEx.js.map +0 -1
- package/dist/browser/components/TableEx/TableEx.cjs +0 -39
- package/dist/browser/components/TableEx/TableEx.cjs.map +0 -1
- package/dist/browser/components/TableEx/TableEx.js +0 -18
- package/dist/browser/components/TableEx/TableEx.js.map +0 -1
- package/dist/browser/components/TableEx/TableFooterEx.cjs +0 -42
- package/dist/browser/components/TableEx/TableFooterEx.cjs.map +0 -1
- package/dist/browser/components/TableEx/TableFooterEx.js +0 -21
- package/dist/browser/components/TableEx/TableFooterEx.js.map +0 -1
- package/dist/browser/components/TableEx/index.cjs +0 -69
- package/dist/browser/components/TableEx/index.cjs.map +0 -1
- package/dist/browser/components/TableEx/index.js +0 -46
- package/dist/browser/components/TableEx/index.js.map +0 -1
- package/dist/browser/components/TableEx/types/TableExVariants.cjs +0 -19
- package/dist/browser/components/TableEx/types/TableExVariants.cjs.map +0 -1
- package/dist/browser/components/TableEx/types/TableExVariants.js +0 -1
- package/dist/browser/components/TableEx/types/TableExVariants.js.map +0 -1
- package/dist/browser/components/TableEx/types/index.cjs +0 -19
- package/dist/browser/components/TableEx/types/index.cjs.map +0 -1
- package/dist/browser/components/TableEx/types/index.js +0 -1
- package/dist/browser/components/TableEx/types/index.js.map +0 -1
- package/dist/browser/components/index.cjs +0 -69
- package/dist/browser/components/index.cjs.map +0 -1
- package/dist/browser/components/index.js +0 -46
- package/dist/browser/components/index.js.map +0 -1
- package/dist/browser/context/TableHeight/Context.cjs +0 -28
- package/dist/browser/context/TableHeight/Context.cjs.map +0 -1
- package/dist/browser/context/TableHeight/Context.js +0 -7
- package/dist/browser/context/TableHeight/Context.js.map +0 -1
- package/dist/browser/context/TableHeight/Provider.cjs +0 -54
- package/dist/browser/context/TableHeight/Provider.cjs.map +0 -1
- package/dist/browser/context/TableHeight/Provider.js +0 -33
- package/dist/browser/context/TableHeight/Provider.js.map +0 -1
- package/dist/browser/context/TableHeight/State.cjs +0 -19
- package/dist/browser/context/TableHeight/State.cjs.map +0 -1
- package/dist/browser/context/TableHeight/State.js +0 -1
- package/dist/browser/context/TableHeight/State.js.map +0 -1
- package/dist/browser/context/TableHeight/index.cjs +0 -60
- package/dist/browser/context/TableHeight/index.cjs.map +0 -1
- package/dist/browser/context/TableHeight/index.js +0 -37
- package/dist/browser/context/TableHeight/index.js.map +0 -1
- package/dist/browser/context/TableHeight/use.cjs +0 -34
- package/dist/browser/context/TableHeight/use.cjs.map +0 -1
- package/dist/browser/context/TableHeight/use.js +0 -13
- package/dist/browser/context/TableHeight/use.js.map +0 -1
- package/dist/browser/context/index.cjs +0 -60
- package/dist/browser/context/index.cjs.map +0 -1
- package/dist/browser/context/index.js +0 -37
- package/dist/browser/context/index.js.map +0 -1
- package/dist/docs.json +0 -1442
- package/dist/node/components/TableEx/TableCellEx.cjs +0 -36
- package/dist/node/components/TableEx/TableCellEx.cjs.map +0 -1
- package/dist/node/components/TableEx/TableCellEx.js +0 -11
- package/dist/node/components/TableEx/TableCellEx.js.map +0 -1
- package/dist/node/components/TableEx/TableEx.cjs +0 -44
- package/dist/node/components/TableEx/TableEx.cjs.map +0 -1
- package/dist/node/components/TableEx/TableEx.js +0 -18
- package/dist/node/components/TableEx/TableEx.js.map +0 -1
- package/dist/node/components/TableEx/TableFooterEx.cjs +0 -46
- package/dist/node/components/TableEx/TableFooterEx.cjs.map +0 -1
- package/dist/node/components/TableEx/TableFooterEx.js +0 -21
- package/dist/node/components/TableEx/TableFooterEx.js.map +0 -1
- package/dist/node/components/TableEx/index.cjs +0 -76
- package/dist/node/components/TableEx/index.cjs.map +0 -1
- package/dist/node/components/TableEx/index.js +0 -46
- package/dist/node/components/TableEx/index.js.map +0 -1
- package/dist/node/components/TableEx/types/TableExVariants.cjs +0 -19
- package/dist/node/components/TableEx/types/TableExVariants.cjs.map +0 -1
- package/dist/node/components/TableEx/types/TableExVariants.js +0 -1
- package/dist/node/components/TableEx/types/TableExVariants.js.map +0 -1
- package/dist/node/components/TableEx/types/index.cjs +0 -19
- package/dist/node/components/TableEx/types/index.cjs.map +0 -1
- package/dist/node/components/TableEx/types/index.js +0 -1
- package/dist/node/components/TableEx/types/index.js.map +0 -1
- package/dist/node/components/index.cjs +0 -76
- package/dist/node/components/index.cjs.map +0 -1
- package/dist/node/components/index.js +0 -46
- package/dist/node/components/index.js.map +0 -1
- package/dist/node/context/TableHeight/Context.cjs +0 -32
- package/dist/node/context/TableHeight/Context.cjs.map +0 -1
- package/dist/node/context/TableHeight/Context.js +0 -7
- package/dist/node/context/TableHeight/Context.js.map +0 -1
- package/dist/node/context/TableHeight/Provider.cjs +0 -58
- package/dist/node/context/TableHeight/Provider.cjs.map +0 -1
- package/dist/node/context/TableHeight/Provider.js +0 -33
- package/dist/node/context/TableHeight/Provider.js.map +0 -1
- package/dist/node/context/TableHeight/State.cjs +0 -19
- package/dist/node/context/TableHeight/State.cjs.map +0 -1
- package/dist/node/context/TableHeight/State.js +0 -1
- package/dist/node/context/TableHeight/State.js.map +0 -1
- package/dist/node/context/TableHeight/index.cjs +0 -66
- package/dist/node/context/TableHeight/index.cjs.map +0 -1
- package/dist/node/context/TableHeight/index.js +0 -37
- package/dist/node/context/TableHeight/index.js.map +0 -1
- package/dist/node/context/TableHeight/use.cjs +0 -38
- package/dist/node/context/TableHeight/use.cjs.map +0 -1
- package/dist/node/context/TableHeight/use.js +0 -13
- package/dist/node/context/TableHeight/use.js.map +0 -1
- package/dist/node/context/index.cjs +0 -66
- package/dist/node/context/index.cjs.map +0 -1
- package/dist/node/context/index.js +0 -37
- package/dist/node/context/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
"url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@xylabs/react-shared": "^3.0.
|
|
14
|
-
"@xyo-network/react-shared": "~2.
|
|
13
|
+
"@xylabs/react-shared": "^3.0.18",
|
|
14
|
+
"@xyo-network/react-shared": "~2.65.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@storybook/react": "^7.4.6",
|
|
18
|
-
"@xylabs/ts-scripts-yarn3": "^3.
|
|
19
|
-
"@xylabs/tsconfig-react": "^3.
|
|
20
|
-
"@xyo-network/react-storybook": "~2.
|
|
18
|
+
"@xylabs/ts-scripts-yarn3": "^3.1.9",
|
|
19
|
+
"@xylabs/tsconfig-react": "^3.1.9",
|
|
20
|
+
"@xyo-network/react-storybook": "~2.65.0",
|
|
21
21
|
"typescript": "^5.2.2"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
@@ -79,6 +79,6 @@
|
|
|
79
79
|
},
|
|
80
80
|
"sideEffects": false,
|
|
81
81
|
"types": "dist/browser/index.d.ts",
|
|
82
|
-
"version": "2.
|
|
82
|
+
"version": "2.65.0",
|
|
83
83
|
"type": "module"
|
|
84
84
|
}
|
|
@@ -1,32 +0,0 @@
|
|
|
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
|
-
|
|
20
|
-
// src/components/TableEx/TableCellEx.tsx
|
|
21
|
-
var TableCellEx_exports = {};
|
|
22
|
-
__export(TableCellEx_exports, {
|
|
23
|
-
TableCellEx: () => TableCellEx
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(TableCellEx_exports);
|
|
26
|
-
var import_material = require("@mui/material");
|
|
27
|
-
var TableCellEx = (0, import_material.styled)(import_material.TableCell, { name: "TableCellNoBgColor", shouldForwardProp: (prop) => prop !== "noBgColor" })(
|
|
28
|
-
({ noBgColor = true }) => ({
|
|
29
|
-
...noBgColor && { backgroundColor: "transparent" }
|
|
30
|
-
})
|
|
31
|
-
);
|
|
32
|
-
//# sourceMappingURL=TableCellEx.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/TableEx/TableCellEx.tsx"],"sourcesContent":["import { styled, TableCell, TableCellProps } from '@mui/material'\n\nexport interface TableCellExProps extends TableCellProps {\n noBgColor?: boolean\n}\n\nexport const TableCellEx = styled(TableCell, { name: 'TableCellNoBgColor', shouldForwardProp: (prop) => prop !== 'noBgColor' })<TableCellExProps>(\n ({ noBgColor = true }) => ({\n ...(noBgColor && { backgroundColor: 'transparent' }),\n }),\n)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAkD;AAM3C,IAAM,kBAAc,wBAAO,2BAAW,EAAE,MAAM,sBAAsB,mBAAmB,CAAC,SAAS,SAAS,YAAY,CAAC;AAAA,EAC5H,CAAC,EAAE,YAAY,KAAK,OAAO;AAAA,IACzB,GAAI,aAAa,EAAE,iBAAiB,cAAc;AAAA,EACpD;AACF;","names":[]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// src/components/TableEx/TableCellEx.tsx
|
|
2
|
-
import { styled, TableCell } from "@mui/material";
|
|
3
|
-
var TableCellEx = styled(TableCell, { name: "TableCellNoBgColor", shouldForwardProp: (prop) => prop !== "noBgColor" })(
|
|
4
|
-
({ noBgColor = true }) => ({
|
|
5
|
-
...noBgColor && { backgroundColor: "transparent" }
|
|
6
|
-
})
|
|
7
|
-
);
|
|
8
|
-
export {
|
|
9
|
-
TableCellEx
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=TableCellEx.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/TableEx/TableCellEx.tsx"],"sourcesContent":["import { styled, TableCell, TableCellProps } from '@mui/material'\n\nexport interface TableCellExProps extends TableCellProps {\n noBgColor?: boolean\n}\n\nexport const TableCellEx = styled(TableCell, { name: 'TableCellNoBgColor', shouldForwardProp: (prop) => prop !== 'noBgColor' })<TableCellExProps>(\n ({ noBgColor = true }) => ({\n ...(noBgColor && { backgroundColor: 'transparent' }),\n }),\n)\n"],"mappings":";AAAA,SAAS,QAAQ,iBAAiC;AAM3C,IAAM,cAAc,OAAO,WAAW,EAAE,MAAM,sBAAsB,mBAAmB,CAAC,SAAS,SAAS,YAAY,CAAC;AAAA,EAC5H,CAAC,EAAE,YAAY,KAAK,OAAO;AAAA,IACzB,GAAI,aAAa,EAAE,iBAAiB,cAAc;AAAA,EACpD;AACF;","names":[]}
|
|
@@ -1,39 +0,0 @@
|
|
|
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
|
-
|
|
20
|
-
// src/components/TableEx/TableEx.tsx
|
|
21
|
-
var TableEx_exports = {};
|
|
22
|
-
__export(TableEx_exports, {
|
|
23
|
-
TableEx: () => TableEx,
|
|
24
|
-
TableExWithRef: () => TableExWithRef
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(TableEx_exports);
|
|
27
|
-
var import_material = require("@mui/material");
|
|
28
|
-
var import_react = require("react");
|
|
29
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
30
|
-
var TableExInner = (0, import_react.forwardRef)(({ children, ...props }, ref) => {
|
|
31
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Table, { ref, ...props, children });
|
|
32
|
-
});
|
|
33
|
-
TableExInner.displayName = "TableExInner";
|
|
34
|
-
var TableExWithRef = (0, import_react.forwardRef)(({ variant, children, ...props }, ref) => {
|
|
35
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableExInner, { stickyHeader: variant === "scrollable", ref, ...props, children });
|
|
36
|
-
});
|
|
37
|
-
TableExWithRef.displayName = "TableEx";
|
|
38
|
-
var TableEx = TableExWithRef;
|
|
39
|
-
//# sourceMappingURL=TableEx.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/TableEx/TableEx.tsx"],"sourcesContent":["import { Table, TableProps } from '@mui/material'\nimport { forwardRef, PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nexport interface TableExProps extends PropsWithChildren, TableProps {\n variant?: TableExVariants\n}\n\nconst TableExInner: React.FC<TableExProps> = forwardRef(({ children, ...props }, ref) => {\n return (\n <Table ref={ref} {...props}>\n {children}\n </Table>\n )\n})\n\nTableExInner.displayName = 'TableExInner'\n\nexport const TableExWithRef: React.FC<TableExProps> = forwardRef(({ variant, children, ...props }, ref) => {\n return (\n <TableExInner stickyHeader={variant === 'scrollable'} ref={ref} {...props}>\n {children}\n </TableExInner>\n )\n})\n\nTableExWithRef.displayName = 'TableEx'\n\nexport const TableEx = TableExWithRef\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAkC;AAClC,mBAA8C;AAU1C;AAFJ,IAAM,mBAAuC,yBAAW,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ;AACvF,SACE,4CAAC,yBAAM,KAAW,GAAG,OAClB,UACH;AAEJ,CAAC;AAED,aAAa,cAAc;AAEpB,IAAM,qBAAyC,yBAAW,CAAC,EAAE,SAAS,UAAU,GAAG,MAAM,GAAG,QAAQ;AACzG,SACE,4CAAC,gBAAa,cAAc,YAAY,cAAc,KAAW,GAAG,OACjE,UACH;AAEJ,CAAC;AAED,eAAe,cAAc;AAEtB,IAAM,UAAU;","names":[]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// src/components/TableEx/TableEx.tsx
|
|
2
|
-
import { Table } from "@mui/material";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
|
-
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
var TableExInner = forwardRef(({ children, ...props }, ref) => {
|
|
6
|
-
return /* @__PURE__ */ jsx(Table, { ref, ...props, children });
|
|
7
|
-
});
|
|
8
|
-
TableExInner.displayName = "TableExInner";
|
|
9
|
-
var TableExWithRef = forwardRef(({ variant, children, ...props }, ref) => {
|
|
10
|
-
return /* @__PURE__ */ jsx(TableExInner, { stickyHeader: variant === "scrollable", ref, ...props, children });
|
|
11
|
-
});
|
|
12
|
-
TableExWithRef.displayName = "TableEx";
|
|
13
|
-
var TableEx = TableExWithRef;
|
|
14
|
-
export {
|
|
15
|
-
TableEx,
|
|
16
|
-
TableExWithRef
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=TableEx.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/TableEx/TableEx.tsx"],"sourcesContent":["import { Table, TableProps } from '@mui/material'\nimport { forwardRef, PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nexport interface TableExProps extends PropsWithChildren, TableProps {\n variant?: TableExVariants\n}\n\nconst TableExInner: React.FC<TableExProps> = forwardRef(({ children, ...props }, ref) => {\n return (\n <Table ref={ref} {...props}>\n {children}\n </Table>\n )\n})\n\nTableExInner.displayName = 'TableExInner'\n\nexport const TableExWithRef: React.FC<TableExProps> = forwardRef(({ variant, children, ...props }, ref) => {\n return (\n <TableExInner stickyHeader={variant === 'scrollable'} ref={ref} {...props}>\n {children}\n </TableExInner>\n )\n})\n\nTableExWithRef.displayName = 'TableEx'\n\nexport const TableEx = TableExWithRef\n"],"mappings":";AAAA,SAAS,aAAyB;AAClC,SAAS,kBAAqC;AAU1C;AAFJ,IAAM,eAAuC,WAAW,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ;AACvF,SACE,oBAAC,SAAM,KAAW,GAAG,OAClB,UACH;AAEJ,CAAC;AAED,aAAa,cAAc;AAEpB,IAAM,iBAAyC,WAAW,CAAC,EAAE,SAAS,UAAU,GAAG,MAAM,GAAG,QAAQ;AACzG,SACE,oBAAC,gBAAa,cAAc,YAAY,cAAc,KAAW,GAAG,OACjE,UACH;AAEJ,CAAC;AAED,eAAe,cAAc;AAEtB,IAAM,UAAU;","names":[]}
|
|
@@ -1,42 +0,0 @@
|
|
|
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
|
-
|
|
20
|
-
// src/components/TableEx/TableFooterEx.tsx
|
|
21
|
-
var TableFooterEx_exports = {};
|
|
22
|
-
__export(TableFooterEx_exports, {
|
|
23
|
-
TableFooterEx: () => TableFooterEx
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(TableFooterEx_exports);
|
|
26
|
-
var import_material = require("@mui/material");
|
|
27
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
28
|
-
var TableFooterExRoot = (0, import_material.styled)(import_material.TableFooter, {
|
|
29
|
-
name: "TableFooterEx",
|
|
30
|
-
shouldForwardProp: (propName) => propName !== "scrollable",
|
|
31
|
-
slot: "Root"
|
|
32
|
-
})(({ variant, theme }) => ({
|
|
33
|
-
backgroundColor: theme.palette.background.default,
|
|
34
|
-
bottom: "unset",
|
|
35
|
-
position: "relative",
|
|
36
|
-
...variant === "scrollable" && {
|
|
37
|
-
bottom: 0,
|
|
38
|
-
position: "sticky"
|
|
39
|
-
}
|
|
40
|
-
}));
|
|
41
|
-
var TableFooterEx = ({ children, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableFooterExRoot, { ...props, children });
|
|
42
|
-
//# sourceMappingURL=TableFooterEx.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
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;AAAA,sBAAsD;AAuBiC;AAlBvF,IAAM,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,IAAM,gBAA8C,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM,4CAAC,qBAAmB,GAAG,OAAQ,UAAS;","names":[]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// src/components/TableEx/TableFooterEx.tsx
|
|
2
|
-
import { styled, TableFooter } from "@mui/material";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
var TableFooterExRoot = styled(TableFooter, {
|
|
5
|
-
name: "TableFooterEx",
|
|
6
|
-
shouldForwardProp: (propName) => propName !== "scrollable",
|
|
7
|
-
slot: "Root"
|
|
8
|
-
})(({ variant, theme }) => ({
|
|
9
|
-
backgroundColor: theme.palette.background.default,
|
|
10
|
-
bottom: "unset",
|
|
11
|
-
position: "relative",
|
|
12
|
-
...variant === "scrollable" && {
|
|
13
|
-
bottom: 0,
|
|
14
|
-
position: "sticky"
|
|
15
|
-
}
|
|
16
|
-
}));
|
|
17
|
-
var TableFooterEx = ({ children, ...props }) => /* @__PURE__ */ jsx(TableFooterExRoot, { ...props, children });
|
|
18
|
-
export {
|
|
19
|
-
TableFooterEx
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=TableFooterEx.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/TableEx/TableFooterEx.tsx"],"sourcesContent":["import { styled, TableFooter, TableFooterProps } from '@mui/material'\nimport { PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nconst TableFooterExRoot = styled(TableFooter, {\n name: 'TableFooterEx',\n shouldForwardProp: (propName) => propName !== 'scrollable',\n slot: 'Root',\n})<TableFooterExProps>(({ variant, theme }) => ({\n backgroundColor: theme.palette.background.default,\n bottom: 'unset',\n position: 'relative',\n ...(variant === 'scrollable' && {\n bottom: 0,\n position: 'sticky',\n }),\n}))\n\nexport interface TableFooterExProps extends PropsWithChildren, TableFooterProps {\n variant?: TableExVariants\n}\n\nexport const TableFooterEx: React.FC<TableFooterExProps> = ({ children, ...props }) => <TableFooterExRoot {...props}>{children}</TableFooterExRoot>\n"],"mappings":";AAAA,SAAS,QAAQ,mBAAqC;AAuBiC;AAlBvF,IAAM,oBAAoB,OAAO,aAAa;AAAA,EAC5C,MAAM;AAAA,EACN,mBAAmB,CAAC,aAAa,aAAa;AAAA,EAC9C,MAAM;AACR,CAAC,EAAsB,CAAC,EAAE,SAAS,MAAM,OAAO;AAAA,EAC9C,iBAAiB,MAAM,QAAQ,WAAW;AAAA,EAC1C,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,GAAI,YAAY,gBAAgB;AAAA,IAC9B,QAAQ;AAAA,IACR,UAAU;AAAA,EACZ;AACF,EAAE;AAMK,IAAM,gBAA8C,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM,oBAAC,qBAAmB,GAAG,OAAQ,UAAS;","names":[]}
|
|
@@ -1,69 +0,0 @@
|
|
|
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
|
-
|
|
20
|
-
// src/components/TableEx/index.ts
|
|
21
|
-
var TableEx_exports = {};
|
|
22
|
-
__export(TableEx_exports, {
|
|
23
|
-
TableCellEx: () => TableCellEx,
|
|
24
|
-
TableEx: () => TableEx,
|
|
25
|
-
TableExWithRef: () => TableExWithRef,
|
|
26
|
-
TableFooterEx: () => TableFooterEx
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(TableEx_exports);
|
|
29
|
-
|
|
30
|
-
// src/components/TableEx/TableCellEx.tsx
|
|
31
|
-
var import_material = require("@mui/material");
|
|
32
|
-
var TableCellEx = (0, import_material.styled)(import_material.TableCell, { name: "TableCellNoBgColor", shouldForwardProp: (prop) => prop !== "noBgColor" })(
|
|
33
|
-
({ noBgColor = true }) => ({
|
|
34
|
-
...noBgColor && { backgroundColor: "transparent" }
|
|
35
|
-
})
|
|
36
|
-
);
|
|
37
|
-
|
|
38
|
-
// src/components/TableEx/TableEx.tsx
|
|
39
|
-
var import_material2 = require("@mui/material");
|
|
40
|
-
var import_react = require("react");
|
|
41
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
|
-
var TableExInner = (0, import_react.forwardRef)(({ children, ...props }, ref) => {
|
|
43
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material2.Table, { ref, ...props, children });
|
|
44
|
-
});
|
|
45
|
-
TableExInner.displayName = "TableExInner";
|
|
46
|
-
var TableExWithRef = (0, import_react.forwardRef)(({ variant, children, ...props }, ref) => {
|
|
47
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableExInner, { stickyHeader: variant === "scrollable", ref, ...props, children });
|
|
48
|
-
});
|
|
49
|
-
TableExWithRef.displayName = "TableEx";
|
|
50
|
-
var TableEx = TableExWithRef;
|
|
51
|
-
|
|
52
|
-
// src/components/TableEx/TableFooterEx.tsx
|
|
53
|
-
var import_material3 = require("@mui/material");
|
|
54
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
55
|
-
var TableFooterExRoot = (0, import_material3.styled)(import_material3.TableFooter, {
|
|
56
|
-
name: "TableFooterEx",
|
|
57
|
-
shouldForwardProp: (propName) => propName !== "scrollable",
|
|
58
|
-
slot: "Root"
|
|
59
|
-
})(({ variant, theme }) => ({
|
|
60
|
-
backgroundColor: theme.palette.background.default,
|
|
61
|
-
bottom: "unset",
|
|
62
|
-
position: "relative",
|
|
63
|
-
...variant === "scrollable" && {
|
|
64
|
-
bottom: 0,
|
|
65
|
-
position: "sticky"
|
|
66
|
-
}
|
|
67
|
-
}));
|
|
68
|
-
var TableFooterEx = ({ children, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(TableFooterExRoot, { ...props, children });
|
|
69
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/TableEx/index.ts","../../../../src/components/TableEx/TableCellEx.tsx","../../../../src/components/TableEx/TableEx.tsx","../../../../src/components/TableEx/TableFooterEx.tsx"],"sourcesContent":["export * from './TableCellEx'\nexport * from './TableEx'\nexport * from './TableFooterEx'\nexport * from './types'\n","import { styled, TableCell, TableCellProps } from '@mui/material'\n\nexport interface TableCellExProps extends TableCellProps {\n noBgColor?: boolean\n}\n\nexport const TableCellEx = styled(TableCell, { name: 'TableCellNoBgColor', shouldForwardProp: (prop) => prop !== 'noBgColor' })<TableCellExProps>(\n ({ noBgColor = true }) => ({\n ...(noBgColor && { backgroundColor: 'transparent' }),\n }),\n)\n","import { Table, TableProps } from '@mui/material'\nimport { forwardRef, PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nexport interface TableExProps extends PropsWithChildren, TableProps {\n variant?: TableExVariants\n}\n\nconst TableExInner: React.FC<TableExProps> = forwardRef(({ children, ...props }, ref) => {\n return (\n <Table ref={ref} {...props}>\n {children}\n </Table>\n )\n})\n\nTableExInner.displayName = 'TableExInner'\n\nexport const TableExWithRef: React.FC<TableExProps> = forwardRef(({ variant, children, ...props }, ref) => {\n return (\n <TableExInner stickyHeader={variant === 'scrollable'} ref={ref} {...props}>\n {children}\n </TableExInner>\n )\n})\n\nTableExWithRef.displayName = 'TableEx'\n\nexport const TableEx = TableExWithRef\n","import { styled, TableFooter, TableFooterProps } from '@mui/material'\nimport { PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nconst TableFooterExRoot = styled(TableFooter, {\n name: 'TableFooterEx',\n shouldForwardProp: (propName) => propName !== 'scrollable',\n slot: 'Root',\n})<TableFooterExProps>(({ variant, theme }) => ({\n backgroundColor: theme.palette.background.default,\n bottom: 'unset',\n position: 'relative',\n ...(variant === 'scrollable' && {\n bottom: 0,\n position: 'sticky',\n }),\n}))\n\nexport interface TableFooterExProps extends PropsWithChildren, TableFooterProps {\n variant?: TableExVariants\n}\n\nexport const TableFooterEx: React.FC<TableFooterExProps> = ({ children, ...props }) => <TableFooterExRoot {...props}>{children}</TableFooterExRoot>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,sBAAkD;AAM3C,IAAM,kBAAc,wBAAO,2BAAW,EAAE,MAAM,sBAAsB,mBAAmB,CAAC,SAAS,SAAS,YAAY,CAAC;AAAA,EAC5H,CAAC,EAAE,YAAY,KAAK,OAAO;AAAA,IACzB,GAAI,aAAa,EAAE,iBAAiB,cAAc;AAAA,EACpD;AACF;;;ACVA,IAAAA,mBAAkC;AAClC,mBAA8C;AAU1C;AAFJ,IAAM,mBAAuC,yBAAW,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ;AACvF,SACE,4CAAC,0BAAM,KAAW,GAAG,OAClB,UACH;AAEJ,CAAC;AAED,aAAa,cAAc;AAEpB,IAAM,qBAAyC,yBAAW,CAAC,EAAE,SAAS,UAAU,GAAG,MAAM,GAAG,QAAQ;AACzG,SACE,4CAAC,gBAAa,cAAc,YAAY,cAAc,KAAW,GAAG,OACjE,UACH;AAEJ,CAAC;AAED,eAAe,cAAc;AAEtB,IAAM,UAAU;;;AC7BvB,IAAAC,mBAAsD;AAuBiC,IAAAC,sBAAA;AAlBvF,IAAM,wBAAoB,yBAAO,8BAAa;AAAA,EAC5C,MAAM;AAAA,EACN,mBAAmB,CAAC,aAAa,aAAa;AAAA,EAC9C,MAAM;AACR,CAAC,EAAsB,CAAC,EAAE,SAAS,MAAM,OAAO;AAAA,EAC9C,iBAAiB,MAAM,QAAQ,WAAW;AAAA,EAC1C,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,GAAI,YAAY,gBAAgB;AAAA,IAC9B,QAAQ;AAAA,IACR,UAAU;AAAA,EACZ;AACF,EAAE;AAMK,IAAM,gBAA8C,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM,6CAAC,qBAAmB,GAAG,OAAQ,UAAS;","names":["import_material","import_material","import_jsx_runtime"]}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// src/components/TableEx/TableCellEx.tsx
|
|
2
|
-
import { styled, TableCell } from "@mui/material";
|
|
3
|
-
var TableCellEx = styled(TableCell, { name: "TableCellNoBgColor", shouldForwardProp: (prop) => prop !== "noBgColor" })(
|
|
4
|
-
({ noBgColor = true }) => ({
|
|
5
|
-
...noBgColor && { backgroundColor: "transparent" }
|
|
6
|
-
})
|
|
7
|
-
);
|
|
8
|
-
|
|
9
|
-
// src/components/TableEx/TableEx.tsx
|
|
10
|
-
import { Table } from "@mui/material";
|
|
11
|
-
import { forwardRef } from "react";
|
|
12
|
-
import { jsx } from "react/jsx-runtime";
|
|
13
|
-
var TableExInner = forwardRef(({ children, ...props }, ref) => {
|
|
14
|
-
return /* @__PURE__ */ jsx(Table, { ref, ...props, children });
|
|
15
|
-
});
|
|
16
|
-
TableExInner.displayName = "TableExInner";
|
|
17
|
-
var TableExWithRef = forwardRef(({ variant, children, ...props }, ref) => {
|
|
18
|
-
return /* @__PURE__ */ jsx(TableExInner, { stickyHeader: variant === "scrollable", ref, ...props, children });
|
|
19
|
-
});
|
|
20
|
-
TableExWithRef.displayName = "TableEx";
|
|
21
|
-
var TableEx = TableExWithRef;
|
|
22
|
-
|
|
23
|
-
// src/components/TableEx/TableFooterEx.tsx
|
|
24
|
-
import { styled as styled2, TableFooter } from "@mui/material";
|
|
25
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
26
|
-
var TableFooterExRoot = styled2(TableFooter, {
|
|
27
|
-
name: "TableFooterEx",
|
|
28
|
-
shouldForwardProp: (propName) => propName !== "scrollable",
|
|
29
|
-
slot: "Root"
|
|
30
|
-
})(({ variant, theme }) => ({
|
|
31
|
-
backgroundColor: theme.palette.background.default,
|
|
32
|
-
bottom: "unset",
|
|
33
|
-
position: "relative",
|
|
34
|
-
...variant === "scrollable" && {
|
|
35
|
-
bottom: 0,
|
|
36
|
-
position: "sticky"
|
|
37
|
-
}
|
|
38
|
-
}));
|
|
39
|
-
var TableFooterEx = ({ children, ...props }) => /* @__PURE__ */ jsx2(TableFooterExRoot, { ...props, children });
|
|
40
|
-
export {
|
|
41
|
-
TableCellEx,
|
|
42
|
-
TableEx,
|
|
43
|
-
TableExWithRef,
|
|
44
|
-
TableFooterEx
|
|
45
|
-
};
|
|
46
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/TableEx/TableCellEx.tsx","../../../../src/components/TableEx/TableEx.tsx","../../../../src/components/TableEx/TableFooterEx.tsx"],"sourcesContent":["import { styled, TableCell, TableCellProps } from '@mui/material'\n\nexport interface TableCellExProps extends TableCellProps {\n noBgColor?: boolean\n}\n\nexport const TableCellEx = styled(TableCell, { name: 'TableCellNoBgColor', shouldForwardProp: (prop) => prop !== 'noBgColor' })<TableCellExProps>(\n ({ noBgColor = true }) => ({\n ...(noBgColor && { backgroundColor: 'transparent' }),\n }),\n)\n","import { Table, TableProps } from '@mui/material'\nimport { forwardRef, PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nexport interface TableExProps extends PropsWithChildren, TableProps {\n variant?: TableExVariants\n}\n\nconst TableExInner: React.FC<TableExProps> = forwardRef(({ children, ...props }, ref) => {\n return (\n <Table ref={ref} {...props}>\n {children}\n </Table>\n )\n})\n\nTableExInner.displayName = 'TableExInner'\n\nexport const TableExWithRef: React.FC<TableExProps> = forwardRef(({ variant, children, ...props }, ref) => {\n return (\n <TableExInner stickyHeader={variant === 'scrollable'} ref={ref} {...props}>\n {children}\n </TableExInner>\n )\n})\n\nTableExWithRef.displayName = 'TableEx'\n\nexport const TableEx = TableExWithRef\n","import { styled, TableFooter, TableFooterProps } from '@mui/material'\nimport { PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nconst TableFooterExRoot = styled(TableFooter, {\n name: 'TableFooterEx',\n shouldForwardProp: (propName) => propName !== 'scrollable',\n slot: 'Root',\n})<TableFooterExProps>(({ variant, theme }) => ({\n backgroundColor: theme.palette.background.default,\n bottom: 'unset',\n position: 'relative',\n ...(variant === 'scrollable' && {\n bottom: 0,\n position: 'sticky',\n }),\n}))\n\nexport interface TableFooterExProps extends PropsWithChildren, TableFooterProps {\n variant?: TableExVariants\n}\n\nexport const TableFooterEx: React.FC<TableFooterExProps> = ({ children, ...props }) => <TableFooterExRoot {...props}>{children}</TableFooterExRoot>\n"],"mappings":";AAAA,SAAS,QAAQ,iBAAiC;AAM3C,IAAM,cAAc,OAAO,WAAW,EAAE,MAAM,sBAAsB,mBAAmB,CAAC,SAAS,SAAS,YAAY,CAAC;AAAA,EAC5H,CAAC,EAAE,YAAY,KAAK,OAAO;AAAA,IACzB,GAAI,aAAa,EAAE,iBAAiB,cAAc;AAAA,EACpD;AACF;;;ACVA,SAAS,aAAyB;AAClC,SAAS,kBAAqC;AAU1C;AAFJ,IAAM,eAAuC,WAAW,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ;AACvF,SACE,oBAAC,SAAM,KAAW,GAAG,OAClB,UACH;AAEJ,CAAC;AAED,aAAa,cAAc;AAEpB,IAAM,iBAAyC,WAAW,CAAC,EAAE,SAAS,UAAU,GAAG,MAAM,GAAG,QAAQ;AACzG,SACE,oBAAC,gBAAa,cAAc,YAAY,cAAc,KAAW,GAAG,OACjE,UACH;AAEJ,CAAC;AAED,eAAe,cAAc;AAEtB,IAAM,UAAU;;;AC7BvB,SAAS,UAAAA,SAAQ,mBAAqC;AAuBiC,gBAAAC,YAAA;AAlBvF,IAAM,oBAAoBD,QAAO,aAAa;AAAA,EAC5C,MAAM;AAAA,EACN,mBAAmB,CAAC,aAAa,aAAa;AAAA,EAC9C,MAAM;AACR,CAAC,EAAsB,CAAC,EAAE,SAAS,MAAM,OAAO;AAAA,EAC9C,iBAAiB,MAAM,QAAQ,WAAW;AAAA,EAC1C,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,GAAI,YAAY,gBAAgB;AAAA,IAC9B,QAAQ;AAAA,IACR,UAAU;AAAA,EACZ;AACF,EAAE;AAMK,IAAM,gBAA8C,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM,gBAAAC,KAAC,qBAAmB,GAAG,OAAQ,UAAS;","names":["styled","jsx"]}
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
|
|
16
|
-
// src/components/TableEx/types/TableExVariants.ts
|
|
17
|
-
var TableExVariants_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(TableExVariants_exports);
|
|
19
|
-
//# sourceMappingURL=TableExVariants.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/components/TableEx/types/TableExVariants.ts"],"sourcesContent":["export type TableExVariants = 'scrollable' | 'normal'\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=TableExVariants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
|
|
16
|
-
// src/components/TableEx/types/index.ts
|
|
17
|
-
var types_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(types_exports);
|
|
19
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/components/TableEx/types/index.ts"],"sourcesContent":["export * from './TableExVariants'\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,69 +0,0 @@
|
|
|
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
|
-
|
|
20
|
-
// src/components/index.ts
|
|
21
|
-
var components_exports = {};
|
|
22
|
-
__export(components_exports, {
|
|
23
|
-
TableCellEx: () => TableCellEx,
|
|
24
|
-
TableEx: () => TableEx,
|
|
25
|
-
TableExWithRef: () => TableExWithRef,
|
|
26
|
-
TableFooterEx: () => TableFooterEx
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(components_exports);
|
|
29
|
-
|
|
30
|
-
// src/components/TableEx/TableCellEx.tsx
|
|
31
|
-
var import_material = require("@mui/material");
|
|
32
|
-
var TableCellEx = (0, import_material.styled)(import_material.TableCell, { name: "TableCellNoBgColor", shouldForwardProp: (prop) => prop !== "noBgColor" })(
|
|
33
|
-
({ noBgColor = true }) => ({
|
|
34
|
-
...noBgColor && { backgroundColor: "transparent" }
|
|
35
|
-
})
|
|
36
|
-
);
|
|
37
|
-
|
|
38
|
-
// src/components/TableEx/TableEx.tsx
|
|
39
|
-
var import_material2 = require("@mui/material");
|
|
40
|
-
var import_react = require("react");
|
|
41
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
|
-
var TableExInner = (0, import_react.forwardRef)(({ children, ...props }, ref) => {
|
|
43
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material2.Table, { ref, ...props, children });
|
|
44
|
-
});
|
|
45
|
-
TableExInner.displayName = "TableExInner";
|
|
46
|
-
var TableExWithRef = (0, import_react.forwardRef)(({ variant, children, ...props }, ref) => {
|
|
47
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableExInner, { stickyHeader: variant === "scrollable", ref, ...props, children });
|
|
48
|
-
});
|
|
49
|
-
TableExWithRef.displayName = "TableEx";
|
|
50
|
-
var TableEx = TableExWithRef;
|
|
51
|
-
|
|
52
|
-
// src/components/TableEx/TableFooterEx.tsx
|
|
53
|
-
var import_material3 = require("@mui/material");
|
|
54
|
-
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
55
|
-
var TableFooterExRoot = (0, import_material3.styled)(import_material3.TableFooter, {
|
|
56
|
-
name: "TableFooterEx",
|
|
57
|
-
shouldForwardProp: (propName) => propName !== "scrollable",
|
|
58
|
-
slot: "Root"
|
|
59
|
-
})(({ variant, theme }) => ({
|
|
60
|
-
backgroundColor: theme.palette.background.default,
|
|
61
|
-
bottom: "unset",
|
|
62
|
-
position: "relative",
|
|
63
|
-
...variant === "scrollable" && {
|
|
64
|
-
bottom: 0,
|
|
65
|
-
position: "sticky"
|
|
66
|
-
}
|
|
67
|
-
}));
|
|
68
|
-
var TableFooterEx = ({ children, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(TableFooterExRoot, { ...props, children });
|
|
69
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/index.ts","../../../src/components/TableEx/TableCellEx.tsx","../../../src/components/TableEx/TableEx.tsx","../../../src/components/TableEx/TableFooterEx.tsx"],"sourcesContent":["export * from './TableEx'\n","import { styled, TableCell, TableCellProps } from '@mui/material'\n\nexport interface TableCellExProps extends TableCellProps {\n noBgColor?: boolean\n}\n\nexport const TableCellEx = styled(TableCell, { name: 'TableCellNoBgColor', shouldForwardProp: (prop) => prop !== 'noBgColor' })<TableCellExProps>(\n ({ noBgColor = true }) => ({\n ...(noBgColor && { backgroundColor: 'transparent' }),\n }),\n)\n","import { Table, TableProps } from '@mui/material'\nimport { forwardRef, PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nexport interface TableExProps extends PropsWithChildren, TableProps {\n variant?: TableExVariants\n}\n\nconst TableExInner: React.FC<TableExProps> = forwardRef(({ children, ...props }, ref) => {\n return (\n <Table ref={ref} {...props}>\n {children}\n </Table>\n )\n})\n\nTableExInner.displayName = 'TableExInner'\n\nexport const TableExWithRef: React.FC<TableExProps> = forwardRef(({ variant, children, ...props }, ref) => {\n return (\n <TableExInner stickyHeader={variant === 'scrollable'} ref={ref} {...props}>\n {children}\n </TableExInner>\n )\n})\n\nTableExWithRef.displayName = 'TableEx'\n\nexport const TableEx = TableExWithRef\n","import { styled, TableFooter, TableFooterProps } from '@mui/material'\nimport { PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nconst TableFooterExRoot = styled(TableFooter, {\n name: 'TableFooterEx',\n shouldForwardProp: (propName) => propName !== 'scrollable',\n slot: 'Root',\n})<TableFooterExProps>(({ variant, theme }) => ({\n backgroundColor: theme.palette.background.default,\n bottom: 'unset',\n position: 'relative',\n ...(variant === 'scrollable' && {\n bottom: 0,\n position: 'sticky',\n }),\n}))\n\nexport interface TableFooterExProps extends PropsWithChildren, TableFooterProps {\n variant?: TableExVariants\n}\n\nexport const TableFooterEx: React.FC<TableFooterExProps> = ({ children, ...props }) => <TableFooterExRoot {...props}>{children}</TableFooterExRoot>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,sBAAkD;AAM3C,IAAM,kBAAc,wBAAO,2BAAW,EAAE,MAAM,sBAAsB,mBAAmB,CAAC,SAAS,SAAS,YAAY,CAAC;AAAA,EAC5H,CAAC,EAAE,YAAY,KAAK,OAAO;AAAA,IACzB,GAAI,aAAa,EAAE,iBAAiB,cAAc;AAAA,EACpD;AACF;;;ACVA,IAAAA,mBAAkC;AAClC,mBAA8C;AAU1C;AAFJ,IAAM,mBAAuC,yBAAW,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ;AACvF,SACE,4CAAC,0BAAM,KAAW,GAAG,OAClB,UACH;AAEJ,CAAC;AAED,aAAa,cAAc;AAEpB,IAAM,qBAAyC,yBAAW,CAAC,EAAE,SAAS,UAAU,GAAG,MAAM,GAAG,QAAQ;AACzG,SACE,4CAAC,gBAAa,cAAc,YAAY,cAAc,KAAW,GAAG,OACjE,UACH;AAEJ,CAAC;AAED,eAAe,cAAc;AAEtB,IAAM,UAAU;;;AC7BvB,IAAAC,mBAAsD;AAuBiC,IAAAC,sBAAA;AAlBvF,IAAM,wBAAoB,yBAAO,8BAAa;AAAA,EAC5C,MAAM;AAAA,EACN,mBAAmB,CAAC,aAAa,aAAa;AAAA,EAC9C,MAAM;AACR,CAAC,EAAsB,CAAC,EAAE,SAAS,MAAM,OAAO;AAAA,EAC9C,iBAAiB,MAAM,QAAQ,WAAW;AAAA,EAC1C,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,GAAI,YAAY,gBAAgB;AAAA,IAC9B,QAAQ;AAAA,IACR,UAAU;AAAA,EACZ;AACF,EAAE;AAMK,IAAM,gBAA8C,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM,6CAAC,qBAAmB,GAAG,OAAQ,UAAS;","names":["import_material","import_material","import_jsx_runtime"]}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// src/components/TableEx/TableCellEx.tsx
|
|
2
|
-
import { styled, TableCell } from "@mui/material";
|
|
3
|
-
var TableCellEx = styled(TableCell, { name: "TableCellNoBgColor", shouldForwardProp: (prop) => prop !== "noBgColor" })(
|
|
4
|
-
({ noBgColor = true }) => ({
|
|
5
|
-
...noBgColor && { backgroundColor: "transparent" }
|
|
6
|
-
})
|
|
7
|
-
);
|
|
8
|
-
|
|
9
|
-
// src/components/TableEx/TableEx.tsx
|
|
10
|
-
import { Table } from "@mui/material";
|
|
11
|
-
import { forwardRef } from "react";
|
|
12
|
-
import { jsx } from "react/jsx-runtime";
|
|
13
|
-
var TableExInner = forwardRef(({ children, ...props }, ref) => {
|
|
14
|
-
return /* @__PURE__ */ jsx(Table, { ref, ...props, children });
|
|
15
|
-
});
|
|
16
|
-
TableExInner.displayName = "TableExInner";
|
|
17
|
-
var TableExWithRef = forwardRef(({ variant, children, ...props }, ref) => {
|
|
18
|
-
return /* @__PURE__ */ jsx(TableExInner, { stickyHeader: variant === "scrollable", ref, ...props, children });
|
|
19
|
-
});
|
|
20
|
-
TableExWithRef.displayName = "TableEx";
|
|
21
|
-
var TableEx = TableExWithRef;
|
|
22
|
-
|
|
23
|
-
// src/components/TableEx/TableFooterEx.tsx
|
|
24
|
-
import { styled as styled2, TableFooter } from "@mui/material";
|
|
25
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
26
|
-
var TableFooterExRoot = styled2(TableFooter, {
|
|
27
|
-
name: "TableFooterEx",
|
|
28
|
-
shouldForwardProp: (propName) => propName !== "scrollable",
|
|
29
|
-
slot: "Root"
|
|
30
|
-
})(({ variant, theme }) => ({
|
|
31
|
-
backgroundColor: theme.palette.background.default,
|
|
32
|
-
bottom: "unset",
|
|
33
|
-
position: "relative",
|
|
34
|
-
...variant === "scrollable" && {
|
|
35
|
-
bottom: 0,
|
|
36
|
-
position: "sticky"
|
|
37
|
-
}
|
|
38
|
-
}));
|
|
39
|
-
var TableFooterEx = ({ children, ...props }) => /* @__PURE__ */ jsx2(TableFooterExRoot, { ...props, children });
|
|
40
|
-
export {
|
|
41
|
-
TableCellEx,
|
|
42
|
-
TableEx,
|
|
43
|
-
TableExWithRef,
|
|
44
|
-
TableFooterEx
|
|
45
|
-
};
|
|
46
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/TableEx/TableCellEx.tsx","../../../src/components/TableEx/TableEx.tsx","../../../src/components/TableEx/TableFooterEx.tsx"],"sourcesContent":["import { styled, TableCell, TableCellProps } from '@mui/material'\n\nexport interface TableCellExProps extends TableCellProps {\n noBgColor?: boolean\n}\n\nexport const TableCellEx = styled(TableCell, { name: 'TableCellNoBgColor', shouldForwardProp: (prop) => prop !== 'noBgColor' })<TableCellExProps>(\n ({ noBgColor = true }) => ({\n ...(noBgColor && { backgroundColor: 'transparent' }),\n }),\n)\n","import { Table, TableProps } from '@mui/material'\nimport { forwardRef, PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nexport interface TableExProps extends PropsWithChildren, TableProps {\n variant?: TableExVariants\n}\n\nconst TableExInner: React.FC<TableExProps> = forwardRef(({ children, ...props }, ref) => {\n return (\n <Table ref={ref} {...props}>\n {children}\n </Table>\n )\n})\n\nTableExInner.displayName = 'TableExInner'\n\nexport const TableExWithRef: React.FC<TableExProps> = forwardRef(({ variant, children, ...props }, ref) => {\n return (\n <TableExInner stickyHeader={variant === 'scrollable'} ref={ref} {...props}>\n {children}\n </TableExInner>\n )\n})\n\nTableExWithRef.displayName = 'TableEx'\n\nexport const TableEx = TableExWithRef\n","import { styled, TableFooter, TableFooterProps } from '@mui/material'\nimport { PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nconst TableFooterExRoot = styled(TableFooter, {\n name: 'TableFooterEx',\n shouldForwardProp: (propName) => propName !== 'scrollable',\n slot: 'Root',\n})<TableFooterExProps>(({ variant, theme }) => ({\n backgroundColor: theme.palette.background.default,\n bottom: 'unset',\n position: 'relative',\n ...(variant === 'scrollable' && {\n bottom: 0,\n position: 'sticky',\n }),\n}))\n\nexport interface TableFooterExProps extends PropsWithChildren, TableFooterProps {\n variant?: TableExVariants\n}\n\nexport const TableFooterEx: React.FC<TableFooterExProps> = ({ children, ...props }) => <TableFooterExRoot {...props}>{children}</TableFooterExRoot>\n"],"mappings":";AAAA,SAAS,QAAQ,iBAAiC;AAM3C,IAAM,cAAc,OAAO,WAAW,EAAE,MAAM,sBAAsB,mBAAmB,CAAC,SAAS,SAAS,YAAY,CAAC;AAAA,EAC5H,CAAC,EAAE,YAAY,KAAK,OAAO;AAAA,IACzB,GAAI,aAAa,EAAE,iBAAiB,cAAc;AAAA,EACpD;AACF;;;ACVA,SAAS,aAAyB;AAClC,SAAS,kBAAqC;AAU1C;AAFJ,IAAM,eAAuC,WAAW,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ;AACvF,SACE,oBAAC,SAAM,KAAW,GAAG,OAClB,UACH;AAEJ,CAAC;AAED,aAAa,cAAc;AAEpB,IAAM,iBAAyC,WAAW,CAAC,EAAE,SAAS,UAAU,GAAG,MAAM,GAAG,QAAQ;AACzG,SACE,oBAAC,gBAAa,cAAc,YAAY,cAAc,KAAW,GAAG,OACjE,UACH;AAEJ,CAAC;AAED,eAAe,cAAc;AAEtB,IAAM,UAAU;;;AC7BvB,SAAS,UAAAA,SAAQ,mBAAqC;AAuBiC,gBAAAC,YAAA;AAlBvF,IAAM,oBAAoBD,QAAO,aAAa;AAAA,EAC5C,MAAM;AAAA,EACN,mBAAmB,CAAC,aAAa,aAAa;AAAA,EAC9C,MAAM;AACR,CAAC,EAAsB,CAAC,EAAE,SAAS,MAAM,OAAO;AAAA,EAC9C,iBAAiB,MAAM,QAAQ,WAAW;AAAA,EAC1C,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,GAAI,YAAY,gBAAgB;AAAA,IAC9B,QAAQ;AAAA,IACR,UAAU;AAAA,EACZ;AACF,EAAE;AAMK,IAAM,gBAA8C,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM,gBAAAC,KAAC,qBAAmB,GAAG,OAAQ,UAAS;","names":["styled","jsx"]}
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
|
|
20
|
-
// src/context/TableHeight/Context.ts
|
|
21
|
-
var Context_exports = {};
|
|
22
|
-
__export(Context_exports, {
|
|
23
|
-
TableHeightContext: () => TableHeightContext
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(Context_exports);
|
|
26
|
-
var import_react_shared = require("@xyo-network/react-shared");
|
|
27
|
-
var TableHeightContext = (0, import_react_shared.createContextEx)();
|
|
28
|
-
//# sourceMappingURL=Context.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
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,IAAM,yBAAqB,qCAAkC;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/context/TableHeight/Context.ts"],"sourcesContent":["import { createContextEx } from '@xyo-network/react-shared'\n\nimport { TableHeightState } from './State'\n\nexport const TableHeightContext = createContextEx<TableHeightState>()\n"],"mappings":";AAAA,SAAS,uBAAuB;AAIzB,IAAM,qBAAqB,gBAAkC;","names":[]}
|