@xyo-network/react-table 2.64.0-rc.6 → 2.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/components/TableEx/TableCellEx.cjs +32 -0
- package/dist/{node/components/TableEx/TableCellEx.mjs.map → browser/components/TableEx/TableCellEx.cjs.map} +1 -1
- package/dist/browser/components/TableEx/TableCellEx.d.cts +6 -0
- package/dist/browser/components/TableEx/TableCellEx.d.cts.map +1 -0
- package/dist/browser/components/TableEx/TableEx.cjs +39 -0
- package/dist/{node/components/TableEx/TableEx.mjs.map → browser/components/TableEx/TableEx.cjs.map} +1 -1
- package/dist/browser/components/TableEx/TableEx.d.cts +9 -0
- package/dist/browser/components/TableEx/TableEx.d.cts.map +1 -0
- package/dist/browser/components/TableEx/TableFooterEx.cjs +42 -0
- package/dist/{node/components/TableEx/TableFooterEx.mjs.map → browser/components/TableEx/TableFooterEx.cjs.map} +1 -1
- package/dist/browser/components/TableEx/TableFooterEx.d.cts +8 -0
- package/dist/browser/components/TableEx/TableFooterEx.d.cts.map +1 -0
- package/dist/browser/components/TableEx/index.cjs +69 -0
- package/dist/browser/components/TableEx/index.cjs.map +1 -0
- package/dist/browser/components/TableEx/index.d.cts +5 -0
- package/dist/browser/components/TableEx/index.d.cts.map +1 -0
- package/dist/browser/components/TableEx/types/TableExVariants.cjs +19 -0
- package/dist/browser/components/TableEx/types/TableExVariants.cjs.map +1 -0
- package/dist/browser/components/TableEx/types/TableExVariants.d.cts +2 -0
- package/dist/browser/components/TableEx/types/TableExVariants.d.cts.map +1 -0
- package/dist/browser/components/TableEx/types/index.cjs +19 -0
- package/dist/{node/components/TableEx/types/index.mjs.map → browser/components/TableEx/types/index.cjs.map} +1 -1
- package/dist/browser/components/TableEx/types/index.d.cts +2 -0
- package/dist/browser/components/TableEx/types/index.d.cts.map +1 -0
- package/dist/browser/components/index.cjs +69 -0
- package/dist/browser/components/index.cjs.map +1 -0
- package/dist/browser/components/index.d.cts +2 -0
- package/dist/browser/components/index.d.cts.map +1 -0
- package/dist/browser/context/TableHeight/Context.cjs +28 -0
- package/dist/{node/context/TableHeight/Context.mjs.map → browser/context/TableHeight/Context.cjs.map} +1 -1
- package/dist/browser/context/TableHeight/Context.d.cts +4 -0
- package/dist/browser/context/TableHeight/Context.d.cts.map +1 -0
- package/dist/browser/context/TableHeight/Provider.cjs +54 -0
- package/dist/browser/context/TableHeight/Provider.cjs.map +1 -0
- package/dist/browser/context/TableHeight/Provider.d.cts +11 -0
- package/dist/browser/context/TableHeight/Provider.d.cts.map +1 -0
- package/dist/browser/context/TableHeight/State.cjs +19 -0
- package/dist/browser/context/TableHeight/State.cjs.map +1 -0
- package/dist/browser/context/TableHeight/State.d.cts +10 -0
- package/dist/browser/context/TableHeight/State.d.cts.map +1 -0
- package/dist/browser/context/TableHeight/index.cjs +60 -0
- package/dist/browser/context/TableHeight/index.cjs.map +1 -0
- package/dist/browser/context/TableHeight/index.d.cts +5 -0
- package/dist/browser/context/TableHeight/index.d.cts.map +1 -0
- package/dist/browser/context/TableHeight/use.cjs +34 -0
- package/dist/browser/context/TableHeight/use.cjs.map +1 -0
- package/dist/browser/context/TableHeight/use.d.cts +2 -0
- package/dist/browser/context/TableHeight/use.d.cts.map +1 -0
- package/dist/browser/context/index.cjs +60 -0
- package/dist/browser/context/index.cjs.map +1 -0
- package/dist/browser/context/index.d.cts +2 -0
- package/dist/browser/context/index.d.cts.map +1 -0
- package/dist/browser/index.cjs +104 -0
- package/dist/browser/index.cjs.map +1 -0
- package/dist/browser/index.d.cts +3 -0
- package/dist/browser/index.d.cts.map +1 -0
- package/dist/docs.json +1442 -0
- package/dist/node/components/TableEx/TableCellEx.cjs +36 -0
- package/dist/node/components/TableEx/TableCellEx.cjs.map +1 -0
- package/dist/node/components/TableEx/TableCellEx.d.cts +6 -0
- package/dist/node/components/TableEx/TableCellEx.d.cts.map +1 -0
- package/dist/node/components/TableEx/TableCellEx.js +5 -28
- package/dist/node/components/TableEx/TableCellEx.js.map +1 -1
- package/dist/node/components/TableEx/TableEx.cjs +44 -0
- package/dist/node/components/TableEx/TableEx.cjs.map +1 -0
- package/dist/node/components/TableEx/TableEx.d.cts +9 -0
- package/dist/node/components/TableEx/TableEx.d.cts.map +1 -0
- package/dist/node/components/TableEx/TableEx.js +11 -35
- package/dist/node/components/TableEx/TableEx.js.map +1 -1
- package/dist/node/components/TableEx/TableFooterEx.cjs +46 -0
- package/dist/node/components/TableEx/TableFooterEx.cjs.map +1 -0
- package/dist/node/components/TableEx/TableFooterEx.d.cts +8 -0
- package/dist/node/components/TableEx/TableFooterEx.d.cts.map +1 -0
- package/dist/node/components/TableEx/TableFooterEx.js +7 -30
- package/dist/node/components/TableEx/TableFooterEx.js.map +1 -1
- package/dist/node/components/TableEx/index.cjs +76 -0
- package/dist/node/components/TableEx/index.cjs.map +1 -0
- package/dist/node/components/TableEx/index.d.cts +5 -0
- package/dist/node/components/TableEx/index.d.cts.map +1 -0
- package/dist/node/components/TableEx/index.js +43 -26
- package/dist/node/components/TableEx/index.js.map +1 -1
- package/dist/node/components/TableEx/types/TableExVariants.cjs +19 -0
- package/dist/node/components/TableEx/types/TableExVariants.cjs.map +1 -0
- package/dist/node/components/TableEx/types/TableExVariants.d.cts +2 -0
- package/dist/node/components/TableEx/types/TableExVariants.d.cts.map +1 -0
- package/dist/node/components/TableEx/types/TableExVariants.js +0 -16
- package/dist/node/components/TableEx/types/TableExVariants.js.map +1 -1
- package/dist/node/components/TableEx/types/index.cjs +19 -0
- package/dist/node/components/TableEx/types/index.cjs.map +1 -0
- package/dist/node/components/TableEx/types/index.d.cts +2 -0
- package/dist/node/components/TableEx/types/index.d.cts.map +1 -0
- package/dist/node/components/TableEx/types/index.js +0 -22
- package/dist/node/components/TableEx/types/index.js.map +1 -1
- package/dist/node/components/index.cjs +76 -0
- package/dist/node/components/index.cjs.map +1 -0
- package/dist/node/components/index.d.cts +2 -0
- package/dist/node/components/index.d.cts.map +1 -0
- package/dist/node/components/index.js +43 -20
- package/dist/node/components/index.js.map +1 -1
- package/dist/node/context/TableHeight/Context.cjs +32 -0
- package/dist/node/context/TableHeight/Context.cjs.map +1 -0
- package/dist/node/context/TableHeight/Context.d.cts +4 -0
- package/dist/node/context/TableHeight/Context.d.cts.map +1 -0
- package/dist/node/context/TableHeight/Context.js +5 -28
- package/dist/node/context/TableHeight/Context.js.map +1 -1
- package/dist/node/context/TableHeight/Provider.cjs +58 -0
- package/dist/node/context/TableHeight/Provider.cjs.map +1 -0
- package/dist/node/context/TableHeight/Provider.d.cts +11 -0
- package/dist/node/context/TableHeight/Provider.d.cts.map +1 -0
- package/dist/node/context/TableHeight/Provider.js +19 -37
- package/dist/node/context/TableHeight/Provider.js.map +1 -1
- package/dist/node/context/TableHeight/State.cjs +19 -0
- package/dist/node/context/TableHeight/State.cjs.map +1 -0
- package/dist/node/context/TableHeight/State.d.cts +10 -0
- package/dist/node/context/TableHeight/State.d.cts.map +1 -0
- package/dist/node/context/TableHeight/State.js +0 -16
- package/dist/node/context/TableHeight/State.js.map +1 -1
- package/dist/node/context/TableHeight/index.cjs +66 -0
- package/dist/node/context/TableHeight/index.cjs.map +1 -0
- package/dist/node/context/TableHeight/index.d.cts +5 -0
- package/dist/node/context/TableHeight/index.d.cts.map +1 -0
- package/dist/node/context/TableHeight/index.js +35 -27
- package/dist/node/context/TableHeight/index.js.map +1 -1
- package/dist/node/context/TableHeight/use.cjs +38 -0
- package/dist/node/context/TableHeight/use.cjs.map +1 -0
- package/dist/node/context/TableHeight/use.d.cts +2 -0
- package/dist/node/context/TableHeight/use.d.cts.map +1 -0
- package/dist/node/context/TableHeight/use.js +11 -29
- package/dist/node/context/TableHeight/use.js.map +1 -1
- package/dist/node/context/index.cjs +66 -0
- package/dist/node/context/index.cjs.map +1 -0
- package/dist/node/context/index.d.cts +2 -0
- package/dist/node/context/index.d.cts.map +1 -0
- package/dist/node/context/index.js +35 -21
- package/dist/node/context/index.js.map +1 -1
- package/dist/node/index.cjs +114 -0
- package/dist/node/index.cjs.map +1 -0
- package/dist/node/index.d.cts +3 -0
- package/dist/node/index.d.cts.map +1 -0
- package/dist/node/index.js +78 -22
- package/dist/node/index.js.map +1 -1
- package/package.json +16 -16
- package/dist/browser/components/TableEx/TableEx.stories.js +0 -72
- package/dist/browser/components/TableEx/TableEx.stories.js.map +0 -1
- package/dist/node/components/TableEx/TableCellEx.mjs +0 -10
- package/dist/node/components/TableEx/TableEx.mjs +0 -17
- package/dist/node/components/TableEx/TableEx.stories.js +0 -98
- package/dist/node/components/TableEx/TableEx.stories.js.map +0 -1
- package/dist/node/components/TableEx/TableEx.stories.mjs +0 -72
- package/dist/node/components/TableEx/TableEx.stories.mjs.map +0 -1
- package/dist/node/components/TableEx/TableFooterEx.mjs +0 -20
- package/dist/node/components/TableEx/index.mjs +0 -5
- package/dist/node/components/TableEx/index.mjs.map +0 -1
- package/dist/node/components/TableEx/types/TableExVariants.mjs +0 -1
- package/dist/node/components/TableEx/types/TableExVariants.mjs.map +0 -1
- package/dist/node/components/TableEx/types/index.mjs +0 -2
- package/dist/node/components/index.mjs +0 -2
- package/dist/node/components/index.mjs.map +0 -1
- package/dist/node/context/TableHeight/Context.mjs +0 -6
- package/dist/node/context/TableHeight/Provider.mjs +0 -27
- package/dist/node/context/TableHeight/Provider.mjs.map +0 -1
- package/dist/node/context/TableHeight/State.mjs +0 -1
- package/dist/node/context/TableHeight/State.mjs.map +0 -1
- package/dist/node/context/TableHeight/index.mjs +0 -5
- package/dist/node/context/TableHeight/index.mjs.map +0 -1
- package/dist/node/context/TableHeight/use.mjs +0 -7
- package/dist/node/context/TableHeight/use.mjs.map +0 -1
- package/dist/node/context/index.mjs +0 -2
- package/dist/node/context/index.mjs.map +0 -1
- package/dist/node/index.mjs +0 -3
- package/dist/node/index.mjs.map +0 -1
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
33
|
+
0 && (module.exports = {
|
|
34
|
+
TableCellEx
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=TableCellEx.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/TableEx/TableCellEx.tsx"],"sourcesContent":["import { styled, TableCell, TableCellProps } from '@mui/material'\n\nexport interface TableCellExProps extends TableCellProps {\n noBgColor?: boolean\n}\n\nexport const TableCellEx = styled(TableCell, { name: 'TableCellNoBgColor', shouldForwardProp: (prop) => prop !== 'noBgColor' })<TableCellExProps>(\n ({ noBgColor = true }) => ({\n ...(noBgColor && { backgroundColor: 'transparent' }),\n }),\n)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;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":[]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TableCellProps } from '@mui/material';
|
|
2
|
+
export interface TableCellExProps extends TableCellProps {
|
|
3
|
+
noBgColor?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare const TableCellEx: import("@emotion/styled").StyledComponent<TableCellProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & TableCellExProps, {}, {}>;
|
|
6
|
+
//# sourceMappingURL=TableCellEx.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCellEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableCellEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,cAAc,EAAE,MAAM,eAAe,CAAA;AAEjE,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB;AAED,eAAO,MAAM,WAAW,kKAIvB,CAAA"}
|
|
@@ -1,34 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
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 TableCellEx_exports = {};
|
|
20
|
-
__export(TableCellEx_exports, {
|
|
21
|
-
TableCellEx: () => TableCellEx
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(TableCellEx_exports);
|
|
24
|
-
var import_material = require("@mui/material");
|
|
25
|
-
const TableCellEx = (0, import_material.styled)(import_material.TableCell, { name: "TableCellNoBgColor", shouldForwardProp: (prop) => prop !== "noBgColor" })(
|
|
1
|
+
// src/components/TableEx/TableCellEx.tsx
|
|
2
|
+
import { styled, TableCell } from "@mui/material";
|
|
3
|
+
var TableCellEx = styled(TableCell, { name: "TableCellNoBgColor", shouldForwardProp: (prop) => prop !== "noBgColor" })(
|
|
26
4
|
({ noBgColor = true }) => ({
|
|
27
5
|
...noBgColor && { backgroundColor: "transparent" }
|
|
28
6
|
})
|
|
29
7
|
);
|
|
30
|
-
|
|
31
|
-
0 && (module.exports = {
|
|
8
|
+
export {
|
|
32
9
|
TableCellEx
|
|
33
|
-
}
|
|
10
|
+
};
|
|
34
11
|
//# sourceMappingURL=TableCellEx.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/TableEx/TableCellEx.tsx"],"sourcesContent":["import { styled, TableCell, TableCellProps } from '@mui/material'\n\nexport interface TableCellExProps extends TableCellProps {\n noBgColor?: boolean\n}\n\nexport const TableCellEx = styled(TableCell, { name: 'TableCellNoBgColor', shouldForwardProp: (prop) => prop !== 'noBgColor' })<TableCellExProps>(\n ({ noBgColor = true }) => ({\n ...(noBgColor && { backgroundColor: 'transparent' }),\n }),\n)\n"],"mappings":"
|
|
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":[]}
|
|
@@ -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
|
+
|
|
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
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
+
0 && (module.exports = {
|
|
41
|
+
TableEx,
|
|
42
|
+
TableExWithRef
|
|
43
|
+
});
|
|
44
|
+
//# sourceMappingURL=TableEx.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/TableEx/TableEx.tsx"],"sourcesContent":["import { Table, TableProps } from '@mui/material'\nimport { forwardRef, PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nexport interface TableExProps extends PropsWithChildren, TableProps {\n variant?: TableExVariants\n}\n\nconst TableExInner: React.FC<TableExProps> = forwardRef(({ children, ...props }, ref) => {\n return (\n <Table ref={ref} {...props}>\n {children}\n </Table>\n )\n})\n\nTableExInner.displayName = 'TableExInner'\n\nexport const TableExWithRef: React.FC<TableExProps> = forwardRef(({ variant, children, ...props }, ref) => {\n return (\n <TableExInner stickyHeader={variant === 'scrollable'} ref={ref} {...props}>\n {children}\n </TableExInner>\n )\n})\n\nTableExWithRef.displayName = 'TableEx'\n\nexport const TableEx = TableExWithRef\n"],"mappings":";;;;;;;;;;;;;;;;;;;;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":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TableProps } from '@mui/material';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
|
+
import { TableExVariants } from './types';
|
|
4
|
+
export interface TableExProps extends PropsWithChildren, TableProps {
|
|
5
|
+
variant?: TableExVariants;
|
|
6
|
+
}
|
|
7
|
+
export declare const TableExWithRef: React.FC<TableExProps>;
|
|
8
|
+
export declare const TableEx: import("react").FC<TableExProps>;
|
|
9
|
+
//# sourceMappingURL=TableEx.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAErD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEzC,MAAM,WAAW,YAAa,SAAQ,iBAAiB,EAAE,UAAU;IACjE,OAAO,CAAC,EAAE,eAAe,CAAA;CAC1B;AAYD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAMhD,CAAA;AAIF,eAAO,MAAM,OAAO,kCAAiB,CAAA"}
|
|
@@ -1,42 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
|
|
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_exports = {};
|
|
20
|
-
__export(TableEx_exports, {
|
|
21
|
-
TableEx: () => TableEx,
|
|
22
|
-
TableExWithRef: () => TableExWithRef
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(TableEx_exports);
|
|
25
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
|
-
var import_material = require("@mui/material");
|
|
27
|
-
var import_react = require("react");
|
|
28
|
-
const TableExInner = (0, import_react.forwardRef)(({ children, ...props }, ref) => {
|
|
29
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Table, { ref, ...props, children });
|
|
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 });
|
|
30
7
|
});
|
|
31
8
|
TableExInner.displayName = "TableExInner";
|
|
32
|
-
|
|
33
|
-
return /* @__PURE__ */
|
|
9
|
+
var TableExWithRef = forwardRef(({ variant, children, ...props }, ref) => {
|
|
10
|
+
return /* @__PURE__ */ jsx(TableExInner, { stickyHeader: variant === "scrollable", ref, ...props, children });
|
|
34
11
|
});
|
|
35
12
|
TableExWithRef.displayName = "TableEx";
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
0 && (module.exports = {
|
|
13
|
+
var TableEx = TableExWithRef;
|
|
14
|
+
export {
|
|
39
15
|
TableEx,
|
|
40
16
|
TableExWithRef
|
|
41
|
-
}
|
|
17
|
+
};
|
|
42
18
|
//# sourceMappingURL=TableEx.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/TableEx/TableEx.tsx"],"sourcesContent":["import { Table, TableProps } from '@mui/material'\nimport { forwardRef, PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nexport interface TableExProps extends PropsWithChildren, TableProps {\n variant?: TableExVariants\n}\n\nconst TableExInner: React.FC<TableExProps> = forwardRef(({ children, ...props }, ref) => {\n return (\n <Table ref={ref} {...props}>\n {children}\n </Table>\n )\n})\n\nTableExInner.displayName = 'TableExInner'\n\nexport const TableExWithRef: React.FC<TableExProps> = forwardRef(({ variant, children, ...props }, ref) => {\n return (\n <TableExInner stickyHeader={variant === 'scrollable'} ref={ref} {...props}>\n {children}\n </TableExInner>\n )\n})\n\nTableExWithRef.displayName = 'TableEx'\n\nexport const TableEx = TableExWithRef\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/TableEx/TableEx.tsx"],"sourcesContent":["import { Table, TableProps } from '@mui/material'\nimport { forwardRef, PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nexport interface TableExProps extends PropsWithChildren, TableProps {\n variant?: TableExVariants\n}\n\nconst TableExInner: React.FC<TableExProps> = forwardRef(({ children, ...props }, ref) => {\n return (\n <Table ref={ref} {...props}>\n {children}\n </Table>\n )\n})\n\nTableExInner.displayName = 'TableExInner'\n\nexport const TableExWithRef: React.FC<TableExProps> = forwardRef(({ variant, children, ...props }, ref) => {\n return (\n <TableExInner stickyHeader={variant === 'scrollable'} ref={ref} {...props}>\n {children}\n </TableExInner>\n )\n})\n\nTableExWithRef.displayName = 'TableEx'\n\nexport const TableEx = TableExWithRef\n"],"mappings":";AAAA,SAAS,aAAyB;AAClC,SAAS,kBAAqC;AAU1C;AAFJ,IAAM,eAAuC,WAAW,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ;AACvF,SACE,oBAAC,SAAM,KAAW,GAAG,OAClB,UACH;AAEJ,CAAC;AAED,aAAa,cAAc;AAEpB,IAAM,iBAAyC,WAAW,CAAC,EAAE,SAAS,UAAU,GAAG,MAAM,GAAG,QAAQ;AACzG,SACE,oBAAC,gBAAa,cAAc,YAAY,cAAc,KAAW,GAAG,OACjE,UACH;AAEJ,CAAC;AAED,eAAe,cAAc;AAEtB,IAAM,UAAU;","names":[]}
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
43
|
+
0 && (module.exports = {
|
|
44
|
+
TableFooterEx
|
|
45
|
+
});
|
|
46
|
+
//# sourceMappingURL=TableFooterEx.cjs.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;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":[]}
|
|
@@ -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"}
|
|
@@ -1,29 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var
|
|
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, {
|
|
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, {
|
|
27
5
|
name: "TableFooterEx",
|
|
28
6
|
shouldForwardProp: (propName) => propName !== "scrollable",
|
|
29
7
|
slot: "Root"
|
|
@@ -36,9 +14,8 @@ const TableFooterExRoot = (0, import_material.styled)(import_material.TableFoote
|
|
|
36
14
|
position: "sticky"
|
|
37
15
|
}
|
|
38
16
|
}));
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
0 && (module.exports = {
|
|
17
|
+
var TableFooterEx = ({ children, ...props }) => /* @__PURE__ */ jsx(TableFooterExRoot, { ...props, children });
|
|
18
|
+
export {
|
|
42
19
|
TableFooterEx
|
|
43
|
-
}
|
|
20
|
+
};
|
|
44
21
|
//# sourceMappingURL=TableFooterEx.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/TableEx/TableFooterEx.tsx"],"sourcesContent":["import { styled, TableFooter, TableFooterProps } from '@mui/material'\nimport { PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nconst TableFooterExRoot = styled(TableFooter, {\n name: 'TableFooterEx',\n shouldForwardProp: (propName) => propName !== 'scrollable',\n slot: 'Root',\n})<TableFooterExProps>(({ variant, theme }) => ({\n backgroundColor: theme.palette.background.default,\n bottom: 'unset',\n position: 'relative',\n ...(variant === 'scrollable' && {\n bottom: 0,\n position: 'sticky',\n }),\n}))\n\nexport interface TableFooterExProps extends PropsWithChildren, TableFooterProps {\n variant?: TableExVariants\n}\n\nexport const TableFooterEx: React.FC<TableFooterExProps> = ({ children, ...props }) => <TableFooterExRoot {...props}>{children}</TableFooterExRoot>\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/TableEx/TableFooterEx.tsx"],"sourcesContent":["import { styled, TableFooter, TableFooterProps } from '@mui/material'\nimport { PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nconst TableFooterExRoot = styled(TableFooter, {\n name: 'TableFooterEx',\n shouldForwardProp: (propName) => propName !== 'scrollable',\n slot: 'Root',\n})<TableFooterExProps>(({ variant, theme }) => ({\n backgroundColor: theme.palette.background.default,\n bottom: 'unset',\n position: 'relative',\n ...(variant === 'scrollable' && {\n bottom: 0,\n position: 'sticky',\n }),\n}))\n\nexport interface TableFooterExProps extends PropsWithChildren, TableFooterProps {\n variant?: TableExVariants\n}\n\nexport const TableFooterEx: React.FC<TableFooterExProps> = ({ children, ...props }) => <TableFooterExRoot {...props}>{children}</TableFooterExRoot>\n"],"mappings":";AAAA,SAAS,QAAQ,mBAAqC;AAuBiC;AAlBvF,IAAM,oBAAoB,OAAO,aAAa;AAAA,EAC5C,MAAM;AAAA,EACN,mBAAmB,CAAC,aAAa,aAAa;AAAA,EAC9C,MAAM;AACR,CAAC,EAAsB,CAAC,EAAE,SAAS,MAAM,OAAO;AAAA,EAC9C,iBAAiB,MAAM,QAAQ,WAAW;AAAA,EAC1C,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,GAAI,YAAY,gBAAgB;AAAA,IAC9B,QAAQ;AAAA,IACR,UAAU;AAAA,EACZ;AACF,EAAE;AAMK,IAAM,gBAA8C,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM,oBAAC,qBAAmB,GAAG,OAAQ,UAAS;","names":[]}
|
|
@@ -0,0 +1,76 @@
|
|
|
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
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
70
|
+
0 && (module.exports = {
|
|
71
|
+
TableCellEx,
|
|
72
|
+
TableEx,
|
|
73
|
+
TableExWithRef,
|
|
74
|
+
TableFooterEx
|
|
75
|
+
});
|
|
76
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
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"]}
|
|
@@ -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"}
|
|
@@ -1,29 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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"
|
|
11
37
|
}
|
|
12
|
-
|
|
38
|
+
}));
|
|
39
|
+
var TableFooterEx = ({ children, ...props }) => /* @__PURE__ */ jsx2(TableFooterExRoot, { ...props, children });
|
|
40
|
+
export {
|
|
41
|
+
TableCellEx,
|
|
42
|
+
TableEx,
|
|
43
|
+
TableExWithRef,
|
|
44
|
+
TableFooterEx
|
|
13
45
|
};
|
|
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
46
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/TableEx/
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/TableEx/TableCellEx.tsx","../../../../src/components/TableEx/TableEx.tsx","../../../../src/components/TableEx/TableFooterEx.tsx"],"sourcesContent":["import { styled, TableCell, TableCellProps } from '@mui/material'\n\nexport interface TableCellExProps extends TableCellProps {\n noBgColor?: boolean\n}\n\nexport const TableCellEx = styled(TableCell, { name: 'TableCellNoBgColor', shouldForwardProp: (prop) => prop !== 'noBgColor' })<TableCellExProps>(\n ({ noBgColor = true }) => ({\n ...(noBgColor && { backgroundColor: 'transparent' }),\n }),\n)\n","import { Table, TableProps } from '@mui/material'\nimport { forwardRef, PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nexport interface TableExProps extends PropsWithChildren, TableProps {\n variant?: TableExVariants\n}\n\nconst TableExInner: React.FC<TableExProps> = forwardRef(({ children, ...props }, ref) => {\n return (\n <Table ref={ref} {...props}>\n {children}\n </Table>\n )\n})\n\nTableExInner.displayName = 'TableExInner'\n\nexport const TableExWithRef: React.FC<TableExProps> = forwardRef(({ variant, children, ...props }, ref) => {\n return (\n <TableExInner stickyHeader={variant === 'scrollable'} ref={ref} {...props}>\n {children}\n </TableExInner>\n )\n})\n\nTableExWithRef.displayName = 'TableEx'\n\nexport const TableEx = TableExWithRef\n","import { styled, TableFooter, TableFooterProps } from '@mui/material'\nimport { PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types'\n\nconst TableFooterExRoot = styled(TableFooter, {\n name: 'TableFooterEx',\n shouldForwardProp: (propName) => propName !== 'scrollable',\n slot: 'Root',\n})<TableFooterExProps>(({ variant, theme }) => ({\n backgroundColor: theme.palette.background.default,\n bottom: 'unset',\n position: 'relative',\n ...(variant === 'scrollable' && {\n bottom: 0,\n position: 'sticky',\n }),\n}))\n\nexport interface TableFooterExProps extends PropsWithChildren, TableFooterProps {\n variant?: TableExVariants\n}\n\nexport const TableFooterEx: React.FC<TableFooterExProps> = ({ children, ...props }) => <TableFooterExRoot {...props}>{children}</TableFooterExRoot>\n"],"mappings":";AAAA,SAAS,QAAQ,iBAAiC;AAM3C,IAAM,cAAc,OAAO,WAAW,EAAE,MAAM,sBAAsB,mBAAmB,CAAC,SAAS,SAAS,YAAY,CAAC;AAAA,EAC5H,CAAC,EAAE,YAAY,KAAK,OAAO;AAAA,IACzB,GAAI,aAAa,EAAE,iBAAiB,cAAc;AAAA,EACpD;AACF;;;ACVA,SAAS,aAAyB;AAClC,SAAS,kBAAqC;AAU1C;AAFJ,IAAM,eAAuC,WAAW,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ;AACvF,SACE,oBAAC,SAAM,KAAW,GAAG,OAClB,UACH;AAEJ,CAAC;AAED,aAAa,cAAc;AAEpB,IAAM,iBAAyC,WAAW,CAAC,EAAE,SAAS,UAAU,GAAG,MAAM,GAAG,QAAQ;AACzG,SACE,oBAAC,gBAAa,cAAc,YAAY,cAAc,KAAW,GAAG,OACjE,UACH;AAEJ,CAAC;AAED,eAAe,cAAc;AAEtB,IAAM,UAAU;;;AC7BvB,SAAS,UAAAA,SAAQ,mBAAqC;AAuBiC,gBAAAC,YAAA;AAlBvF,IAAM,oBAAoBD,QAAO,aAAa;AAAA,EAC5C,MAAM;AAAA,EACN,mBAAmB,CAAC,aAAa,aAAa;AAAA,EAC9C,MAAM;AACR,CAAC,EAAsB,CAAC,EAAE,SAAS,MAAM,OAAO;AAAA,EAC9C,iBAAiB,MAAM,QAAQ,WAAW;AAAA,EAC1C,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,GAAI,YAAY,gBAAgB;AAAA,IAC9B,QAAQ;AAAA,IACR,UAAU;AAAA,EACZ;AACF,EAAE;AAMK,IAAM,gBAA8C,CAAC,EAAE,UAAU,GAAG,MAAM,MAAM,gBAAAC,KAAC,qBAAmB,GAAG,OAAQ,UAAS;","names":["styled","jsx"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
|
@@ -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
|
+
{"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"}
|
|
@@ -1,17 +1 @@
|
|
|
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
1
|
//# sourceMappingURL=TableExVariants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/components/TableEx/types/index.ts"],"sourcesContent":["export * from './TableExVariants'\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|