@xyo-network/react-table 2.64.9 → 2.64.10

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.
Files changed (106) hide show
  1. package/dist/docs.json +25 -25
  2. package/package.json +6 -6
  3. package/dist/browser/components/TableEx/TableCellEx.cjs +0 -32
  4. package/dist/browser/components/TableEx/TableCellEx.cjs.map +0 -1
  5. package/dist/browser/components/TableEx/TableCellEx.js +0 -11
  6. package/dist/browser/components/TableEx/TableCellEx.js.map +0 -1
  7. package/dist/browser/components/TableEx/TableEx.cjs +0 -39
  8. package/dist/browser/components/TableEx/TableEx.cjs.map +0 -1
  9. package/dist/browser/components/TableEx/TableEx.js +0 -18
  10. package/dist/browser/components/TableEx/TableEx.js.map +0 -1
  11. package/dist/browser/components/TableEx/TableFooterEx.cjs +0 -42
  12. package/dist/browser/components/TableEx/TableFooterEx.cjs.map +0 -1
  13. package/dist/browser/components/TableEx/TableFooterEx.js +0 -21
  14. package/dist/browser/components/TableEx/TableFooterEx.js.map +0 -1
  15. package/dist/browser/components/TableEx/index.cjs +0 -69
  16. package/dist/browser/components/TableEx/index.cjs.map +0 -1
  17. package/dist/browser/components/TableEx/index.js +0 -46
  18. package/dist/browser/components/TableEx/index.js.map +0 -1
  19. package/dist/browser/components/TableEx/types/TableExVariants.cjs +0 -19
  20. package/dist/browser/components/TableEx/types/TableExVariants.cjs.map +0 -1
  21. package/dist/browser/components/TableEx/types/TableExVariants.js +0 -1
  22. package/dist/browser/components/TableEx/types/TableExVariants.js.map +0 -1
  23. package/dist/browser/components/TableEx/types/index.cjs +0 -19
  24. package/dist/browser/components/TableEx/types/index.cjs.map +0 -1
  25. package/dist/browser/components/TableEx/types/index.js +0 -1
  26. package/dist/browser/components/TableEx/types/index.js.map +0 -1
  27. package/dist/browser/components/index.cjs +0 -69
  28. package/dist/browser/components/index.cjs.map +0 -1
  29. package/dist/browser/components/index.js +0 -46
  30. package/dist/browser/components/index.js.map +0 -1
  31. package/dist/browser/context/TableHeight/Context.cjs +0 -28
  32. package/dist/browser/context/TableHeight/Context.cjs.map +0 -1
  33. package/dist/browser/context/TableHeight/Context.js +0 -7
  34. package/dist/browser/context/TableHeight/Context.js.map +0 -1
  35. package/dist/browser/context/TableHeight/Provider.cjs +0 -54
  36. package/dist/browser/context/TableHeight/Provider.cjs.map +0 -1
  37. package/dist/browser/context/TableHeight/Provider.js +0 -33
  38. package/dist/browser/context/TableHeight/Provider.js.map +0 -1
  39. package/dist/browser/context/TableHeight/State.cjs +0 -19
  40. package/dist/browser/context/TableHeight/State.cjs.map +0 -1
  41. package/dist/browser/context/TableHeight/State.js +0 -1
  42. package/dist/browser/context/TableHeight/State.js.map +0 -1
  43. package/dist/browser/context/TableHeight/index.cjs +0 -60
  44. package/dist/browser/context/TableHeight/index.cjs.map +0 -1
  45. package/dist/browser/context/TableHeight/index.js +0 -37
  46. package/dist/browser/context/TableHeight/index.js.map +0 -1
  47. package/dist/browser/context/TableHeight/use.cjs +0 -34
  48. package/dist/browser/context/TableHeight/use.cjs.map +0 -1
  49. package/dist/browser/context/TableHeight/use.js +0 -13
  50. package/dist/browser/context/TableHeight/use.js.map +0 -1
  51. package/dist/browser/context/index.cjs +0 -60
  52. package/dist/browser/context/index.cjs.map +0 -1
  53. package/dist/browser/context/index.js +0 -37
  54. package/dist/browser/context/index.js.map +0 -1
  55. package/dist/node/components/TableEx/TableCellEx.cjs +0 -36
  56. package/dist/node/components/TableEx/TableCellEx.cjs.map +0 -1
  57. package/dist/node/components/TableEx/TableCellEx.js +0 -11
  58. package/dist/node/components/TableEx/TableCellEx.js.map +0 -1
  59. package/dist/node/components/TableEx/TableEx.cjs +0 -44
  60. package/dist/node/components/TableEx/TableEx.cjs.map +0 -1
  61. package/dist/node/components/TableEx/TableEx.js +0 -18
  62. package/dist/node/components/TableEx/TableEx.js.map +0 -1
  63. package/dist/node/components/TableEx/TableFooterEx.cjs +0 -46
  64. package/dist/node/components/TableEx/TableFooterEx.cjs.map +0 -1
  65. package/dist/node/components/TableEx/TableFooterEx.js +0 -21
  66. package/dist/node/components/TableEx/TableFooterEx.js.map +0 -1
  67. package/dist/node/components/TableEx/index.cjs +0 -76
  68. package/dist/node/components/TableEx/index.cjs.map +0 -1
  69. package/dist/node/components/TableEx/index.js +0 -46
  70. package/dist/node/components/TableEx/index.js.map +0 -1
  71. package/dist/node/components/TableEx/types/TableExVariants.cjs +0 -19
  72. package/dist/node/components/TableEx/types/TableExVariants.cjs.map +0 -1
  73. package/dist/node/components/TableEx/types/TableExVariants.js +0 -1
  74. package/dist/node/components/TableEx/types/TableExVariants.js.map +0 -1
  75. package/dist/node/components/TableEx/types/index.cjs +0 -19
  76. package/dist/node/components/TableEx/types/index.cjs.map +0 -1
  77. package/dist/node/components/TableEx/types/index.js +0 -1
  78. package/dist/node/components/TableEx/types/index.js.map +0 -1
  79. package/dist/node/components/index.cjs +0 -76
  80. package/dist/node/components/index.cjs.map +0 -1
  81. package/dist/node/components/index.js +0 -46
  82. package/dist/node/components/index.js.map +0 -1
  83. package/dist/node/context/TableHeight/Context.cjs +0 -32
  84. package/dist/node/context/TableHeight/Context.cjs.map +0 -1
  85. package/dist/node/context/TableHeight/Context.js +0 -7
  86. package/dist/node/context/TableHeight/Context.js.map +0 -1
  87. package/dist/node/context/TableHeight/Provider.cjs +0 -58
  88. package/dist/node/context/TableHeight/Provider.cjs.map +0 -1
  89. package/dist/node/context/TableHeight/Provider.js +0 -33
  90. package/dist/node/context/TableHeight/Provider.js.map +0 -1
  91. package/dist/node/context/TableHeight/State.cjs +0 -19
  92. package/dist/node/context/TableHeight/State.cjs.map +0 -1
  93. package/dist/node/context/TableHeight/State.js +0 -1
  94. package/dist/node/context/TableHeight/State.js.map +0 -1
  95. package/dist/node/context/TableHeight/index.cjs +0 -66
  96. package/dist/node/context/TableHeight/index.cjs.map +0 -1
  97. package/dist/node/context/TableHeight/index.js +0 -37
  98. package/dist/node/context/TableHeight/index.js.map +0 -1
  99. package/dist/node/context/TableHeight/use.cjs +0 -38
  100. package/dist/node/context/TableHeight/use.cjs.map +0 -1
  101. package/dist/node/context/TableHeight/use.js +0 -13
  102. package/dist/node/context/TableHeight/use.js.map +0 -1
  103. package/dist/node/context/index.cjs +0 -66
  104. package/dist/node/context/index.cjs.map +0 -1
  105. package/dist/node/context/index.js +0 -37
  106. package/dist/node/context/index.js.map +0 -1
@@ -1,37 +0,0 @@
1
- // src/context/TableHeight/Context.ts
2
- import { createContextEx } from "@xyo-network/react-shared";
3
- var TableHeightContext = createContextEx();
4
-
5
- // src/context/TableHeight/Provider.tsx
6
- import { useEffect, useMemo, useState } from "react";
7
- import { jsx } from "react/jsx-runtime";
8
- var TableHeightProvider = ({
9
- children,
10
- additionalRows = 0,
11
- defaultVisibleRows,
12
- heightFormat = "px"
13
- }) => {
14
- const [visibleRows, setVisibleRows] = useState(defaultVisibleRows);
15
- const [height, setHeight] = useState();
16
- const [rowHeight, setRowHeight] = useState();
17
- const formattedHeight = useMemo(() => height !== void 0 ? `${height}${heightFormat}` : void 0, [height, heightFormat]);
18
- useEffect(() => {
19
- setVisibleRows(defaultVisibleRows);
20
- }, [defaultVisibleRows]);
21
- useEffect(() => {
22
- if (rowHeight !== void 0 && visibleRows !== void 0) {
23
- setHeight(rowHeight * (visibleRows + additionalRows));
24
- }
25
- }, [defaultVisibleRows, rowHeight, visibleRows, additionalRows]);
26
- return /* @__PURE__ */ jsx(TableHeightContext.Provider, { value: { height: formattedHeight, provided: true, rowHeight, setRowHeight, setVisibleRows, visibleRows }, children });
27
- };
28
-
29
- // src/context/TableHeight/use.tsx
30
- import { useContextEx } from "@xyo-network/react-shared";
31
- var useTableHeight = (required = false) => useContextEx(TableHeightContext, "TableHeight", required);
32
- export {
33
- TableHeightContext,
34
- TableHeightProvider,
35
- useTableHeight
36
- };
37
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/context/TableHeight/Context.ts","../../../src/context/TableHeight/Provider.tsx","../../../src/context/TableHeight/use.tsx"],"sourcesContent":["import { createContextEx } from '@xyo-network/react-shared'\n\nimport { TableHeightState } from './State'\n\nexport const TableHeightContext = createContextEx<TableHeightState>()\n","import { WithChildren } from '@xylabs/react-shared'\nimport { ContextExProviderProps } from '@xyo-network/react-shared'\nimport { useEffect, useMemo, useState } from 'react'\n\nimport { TableHeightContext } from './Context'\n\nexport interface TableHeightProviderProps extends ContextExProviderProps, WithChildren {\n /** @field Account for optional header and footer rows */\n additionalRows?: number\n defaultVisibleRows?: number\n heightFormat?: string\n}\n\nexport const TableHeightProvider: React.FC<TableHeightProviderProps> = ({\n children,\n additionalRows = 0,\n defaultVisibleRows,\n heightFormat = 'px',\n}) => {\n const [visibleRows, setVisibleRows] = useState(defaultVisibleRows)\n const [height, setHeight] = useState<number | undefined>()\n const [rowHeight, setRowHeight] = useState<number | undefined>()\n\n const formattedHeight = useMemo(() => (height !== undefined ? `${height}${heightFormat}` : undefined), [height, heightFormat])\n\n useEffect(() => {\n setVisibleRows(defaultVisibleRows)\n }, [defaultVisibleRows])\n\n useEffect(() => {\n if (rowHeight !== undefined && visibleRows !== undefined) {\n setHeight(rowHeight * (visibleRows + additionalRows))\n }\n }, [defaultVisibleRows, rowHeight, visibleRows, additionalRows])\n\n return (\n <TableHeightContext.Provider value={{ height: formattedHeight, provided: true, rowHeight, setRowHeight, setVisibleRows, visibleRows }}>\n {children}\n </TableHeightContext.Provider>\n )\n}\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { TableHeightContext } from './Context'\n\nexport const useTableHeight = (required = false) => useContextEx(TableHeightContext, 'TableHeight', required)\n"],"mappings":";AAAA,SAAS,uBAAuB;AAIzB,IAAM,qBAAqB,gBAAkC;;;ACFpE,SAAS,WAAW,SAAS,gBAAgB;AAkCzC;AAvBG,IAAM,sBAA0D,CAAC;AAAA,EACtE;AAAA,EACA,iBAAiB;AAAA,EACjB;AAAA,EACA,eAAe;AACjB,MAAM;AACJ,QAAM,CAAC,aAAa,cAAc,IAAI,SAAS,kBAAkB;AACjE,QAAM,CAAC,QAAQ,SAAS,IAAI,SAA6B;AACzD,QAAM,CAAC,WAAW,YAAY,IAAI,SAA6B;AAE/D,QAAM,kBAAkB,QAAQ,MAAO,WAAW,SAAY,GAAG,MAAM,GAAG,YAAY,KAAK,QAAY,CAAC,QAAQ,YAAY,CAAC;AAE7H,YAAU,MAAM;AACd,mBAAe,kBAAkB;AAAA,EACnC,GAAG,CAAC,kBAAkB,CAAC;AAEvB,YAAU,MAAM;AACd,QAAI,cAAc,UAAa,gBAAgB,QAAW;AACxD,gBAAU,aAAa,cAAc,eAAe;AAAA,IACtD;AAAA,EACF,GAAG,CAAC,oBAAoB,WAAW,aAAa,cAAc,CAAC;AAE/D,SACE,oBAAC,mBAAmB,UAAnB,EAA4B,OAAO,EAAE,QAAQ,iBAAiB,UAAU,MAAM,WAAW,cAAc,gBAAgB,YAAY,GACjI,UACH;AAEJ;;;ACxCA,SAAS,oBAAoB;AAItB,IAAM,iBAAiB,CAAC,WAAW,UAAU,aAAa,oBAAoB,eAAe,QAAQ;","names":[]}
@@ -1,36 +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
- // Annotate the CommonJS export names for ESM import in node:
33
- 0 && (module.exports = {
34
- TableCellEx
35
- });
36
- //# 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,44 +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
- // Annotate the CommonJS export names for ESM import in node:
40
- 0 && (module.exports = {
41
- TableEx,
42
- TableExWithRef
43
- });
44
- //# 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,46 +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
- // Annotate the CommonJS export names for ESM import in node:
43
- 0 && (module.exports = {
44
- TableFooterEx
45
- });
46
- //# 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,76 +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
- // 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
@@ -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,76 +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
- // 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
@@ -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"]}