@xyo-network/react-table 2.81.10 → 2.82.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/components/TableEx/TableEx.d.cts +4 -4
- package/dist/browser/components/TableEx/TableEx.d.cts.map +1 -1
- package/dist/browser/components/TableEx/TableEx.d.mts +4 -4
- package/dist/browser/components/TableEx/TableEx.d.mts.map +1 -1
- package/dist/browser/components/TableEx/TableEx.d.ts +4 -4
- package/dist/browser/components/TableEx/TableEx.d.ts.map +1 -1
- package/dist/browser/components/TableEx/TableFooterEx.d.cts +2 -2
- package/dist/browser/components/TableEx/TableFooterEx.d.cts.map +1 -1
- package/dist/browser/components/TableEx/TableFooterEx.d.mts +2 -2
- package/dist/browser/components/TableEx/TableFooterEx.d.mts.map +1 -1
- package/dist/browser/components/TableEx/TableFooterEx.d.ts +2 -2
- package/dist/browser/components/TableEx/TableFooterEx.d.ts.map +1 -1
- package/dist/browser/components/TableEx/index.d.cts +4 -4
- package/dist/browser/components/TableEx/index.d.cts.map +1 -1
- package/dist/browser/components/TableEx/index.d.mts +4 -4
- package/dist/browser/components/TableEx/index.d.mts.map +1 -1
- package/dist/browser/components/TableEx/index.d.ts +4 -4
- package/dist/browser/components/TableEx/index.d.ts.map +1 -1
- package/dist/browser/components/TableEx/types/index.d.cts +1 -1
- package/dist/browser/components/TableEx/types/index.d.mts +1 -1
- package/dist/browser/components/TableEx/types/index.d.ts +1 -1
- package/dist/browser/components/index.d.cts +1 -1
- package/dist/browser/components/index.d.mts +1 -1
- package/dist/browser/components/index.d.ts +1 -1
- package/dist/browser/context/TableHeight/Context.d.cts +1 -1
- package/dist/browser/context/TableHeight/Context.d.mts +1 -1
- package/dist/browser/context/TableHeight/Context.d.ts +1 -1
- package/dist/browser/context/TableHeight/Provider.d.cts +1 -0
- package/dist/browser/context/TableHeight/Provider.d.cts.map +1 -1
- package/dist/browser/context/TableHeight/Provider.d.mts +1 -0
- package/dist/browser/context/TableHeight/Provider.d.mts.map +1 -1
- package/dist/browser/context/TableHeight/Provider.d.ts +1 -0
- package/dist/browser/context/TableHeight/Provider.d.ts.map +1 -1
- package/dist/browser/context/TableHeight/index.d.cts +4 -4
- package/dist/browser/context/TableHeight/index.d.cts.map +1 -1
- package/dist/browser/context/TableHeight/index.d.mts +4 -4
- package/dist/browser/context/TableHeight/index.d.mts.map +1 -1
- package/dist/browser/context/TableHeight/index.d.ts +4 -4
- package/dist/browser/context/TableHeight/index.d.ts.map +1 -1
- package/dist/browser/context/TableHeight/use.d.cts +1 -1
- package/dist/browser/context/TableHeight/use.d.cts.map +1 -1
- package/dist/browser/context/TableHeight/use.d.mts +1 -1
- package/dist/browser/context/TableHeight/use.d.mts.map +1 -1
- package/dist/browser/context/TableHeight/use.d.ts +1 -1
- package/dist/browser/context/TableHeight/use.d.ts.map +1 -1
- package/dist/browser/context/index.d.cts +1 -1
- package/dist/browser/context/index.d.mts +1 -1
- package/dist/browser/context/index.d.ts +1 -1
- package/dist/browser/index.cjs +74 -34
- package/dist/browser/index.cjs.map +1 -1
- package/dist/browser/index.d.cts +3 -3
- package/dist/browser/index.d.mts +3 -3
- package/dist/browser/index.d.ts +3 -3
- package/dist/browser/index.mjs +113 -0
- package/dist/browser/index.mjs.map +1 -0
- package/dist/browser/types/index.d.cts +1 -1
- package/dist/browser/types/index.d.mts +1 -1
- package/dist/browser/types/index.d.ts +1 -1
- package/dist/neutral/components/TableEx/TableEx.d.cts +4 -4
- package/dist/neutral/components/TableEx/TableEx.d.cts.map +1 -1
- package/dist/neutral/components/TableEx/TableEx.d.mts +4 -4
- package/dist/neutral/components/TableEx/TableEx.d.mts.map +1 -1
- package/dist/neutral/components/TableEx/TableEx.d.ts +4 -4
- package/dist/neutral/components/TableEx/TableEx.d.ts.map +1 -1
- package/dist/neutral/components/TableEx/TableFooterEx.d.cts +2 -2
- package/dist/neutral/components/TableEx/TableFooterEx.d.cts.map +1 -1
- package/dist/neutral/components/TableEx/TableFooterEx.d.mts +2 -2
- package/dist/neutral/components/TableEx/TableFooterEx.d.mts.map +1 -1
- package/dist/neutral/components/TableEx/TableFooterEx.d.ts +2 -2
- package/dist/neutral/components/TableEx/TableFooterEx.d.ts.map +1 -1
- package/dist/neutral/components/TableEx/index.d.cts +4 -4
- package/dist/neutral/components/TableEx/index.d.cts.map +1 -1
- package/dist/neutral/components/TableEx/index.d.mts +4 -4
- package/dist/neutral/components/TableEx/index.d.mts.map +1 -1
- package/dist/neutral/components/TableEx/index.d.ts +4 -4
- package/dist/neutral/components/TableEx/index.d.ts.map +1 -1
- package/dist/neutral/components/TableEx/types/index.d.cts +1 -1
- package/dist/neutral/components/TableEx/types/index.d.mts +1 -1
- package/dist/neutral/components/TableEx/types/index.d.ts +1 -1
- package/dist/neutral/components/index.d.cts +1 -1
- package/dist/neutral/components/index.d.mts +1 -1
- package/dist/neutral/components/index.d.ts +1 -1
- package/dist/neutral/context/TableHeight/Context.d.cts +1 -1
- package/dist/neutral/context/TableHeight/Context.d.mts +1 -1
- package/dist/neutral/context/TableHeight/Context.d.ts +1 -1
- package/dist/neutral/context/TableHeight/Provider.d.cts +1 -0
- package/dist/neutral/context/TableHeight/Provider.d.cts.map +1 -1
- package/dist/neutral/context/TableHeight/Provider.d.mts +1 -0
- package/dist/neutral/context/TableHeight/Provider.d.mts.map +1 -1
- package/dist/neutral/context/TableHeight/Provider.d.ts +1 -0
- package/dist/neutral/context/TableHeight/Provider.d.ts.map +1 -1
- package/dist/neutral/context/TableHeight/index.d.cts +4 -4
- package/dist/neutral/context/TableHeight/index.d.cts.map +1 -1
- package/dist/neutral/context/TableHeight/index.d.mts +4 -4
- package/dist/neutral/context/TableHeight/index.d.mts.map +1 -1
- package/dist/neutral/context/TableHeight/index.d.ts +4 -4
- package/dist/neutral/context/TableHeight/index.d.ts.map +1 -1
- package/dist/neutral/context/TableHeight/use.d.cts +1 -1
- package/dist/neutral/context/TableHeight/use.d.cts.map +1 -1
- package/dist/neutral/context/TableHeight/use.d.mts +1 -1
- package/dist/neutral/context/TableHeight/use.d.mts.map +1 -1
- package/dist/neutral/context/TableHeight/use.d.ts +1 -1
- package/dist/neutral/context/TableHeight/use.d.ts.map +1 -1
- package/dist/neutral/context/index.d.cts +1 -1
- package/dist/neutral/context/index.d.mts +1 -1
- package/dist/neutral/context/index.d.ts +1 -1
- package/dist/neutral/index.cjs +74 -34
- package/dist/neutral/index.cjs.map +1 -1
- package/dist/neutral/index.d.cts +3 -3
- package/dist/neutral/index.d.mts +3 -3
- package/dist/neutral/index.d.ts +3 -3
- package/dist/neutral/index.mjs +113 -0
- package/dist/neutral/index.mjs.map +1 -0
- package/dist/neutral/types/index.d.cts +1 -1
- package/dist/neutral/types/index.d.mts +1 -1
- package/dist/neutral/types/index.d.ts +1 -1
- package/dist/node/components/TableEx/TableEx.d.cts +4 -4
- package/dist/node/components/TableEx/TableEx.d.cts.map +1 -1
- package/dist/node/components/TableEx/TableEx.d.mts +4 -4
- package/dist/node/components/TableEx/TableEx.d.mts.map +1 -1
- package/dist/node/components/TableEx/TableEx.d.ts +4 -4
- package/dist/node/components/TableEx/TableEx.d.ts.map +1 -1
- package/dist/node/components/TableEx/TableFooterEx.d.cts +2 -2
- package/dist/node/components/TableEx/TableFooterEx.d.cts.map +1 -1
- package/dist/node/components/TableEx/TableFooterEx.d.mts +2 -2
- package/dist/node/components/TableEx/TableFooterEx.d.mts.map +1 -1
- package/dist/node/components/TableEx/TableFooterEx.d.ts +2 -2
- package/dist/node/components/TableEx/TableFooterEx.d.ts.map +1 -1
- package/dist/node/components/TableEx/index.d.cts +4 -4
- package/dist/node/components/TableEx/index.d.cts.map +1 -1
- package/dist/node/components/TableEx/index.d.mts +4 -4
- package/dist/node/components/TableEx/index.d.mts.map +1 -1
- package/dist/node/components/TableEx/index.d.ts +4 -4
- package/dist/node/components/TableEx/index.d.ts.map +1 -1
- package/dist/node/components/TableEx/types/index.d.cts +1 -1
- package/dist/node/components/TableEx/types/index.d.mts +1 -1
- package/dist/node/components/TableEx/types/index.d.ts +1 -1
- package/dist/node/components/index.d.cts +1 -1
- package/dist/node/components/index.d.mts +1 -1
- package/dist/node/components/index.d.ts +1 -1
- package/dist/node/context/TableHeight/Context.d.cts +1 -1
- package/dist/node/context/TableHeight/Context.d.mts +1 -1
- package/dist/node/context/TableHeight/Context.d.ts +1 -1
- package/dist/node/context/TableHeight/Provider.d.cts +1 -0
- package/dist/node/context/TableHeight/Provider.d.cts.map +1 -1
- package/dist/node/context/TableHeight/Provider.d.mts +1 -0
- package/dist/node/context/TableHeight/Provider.d.mts.map +1 -1
- package/dist/node/context/TableHeight/Provider.d.ts +1 -0
- package/dist/node/context/TableHeight/Provider.d.ts.map +1 -1
- package/dist/node/context/TableHeight/index.d.cts +4 -4
- package/dist/node/context/TableHeight/index.d.cts.map +1 -1
- package/dist/node/context/TableHeight/index.d.mts +4 -4
- package/dist/node/context/TableHeight/index.d.mts.map +1 -1
- package/dist/node/context/TableHeight/index.d.ts +4 -4
- package/dist/node/context/TableHeight/index.d.ts.map +1 -1
- package/dist/node/context/TableHeight/use.d.cts +1 -1
- package/dist/node/context/TableHeight/use.d.cts.map +1 -1
- package/dist/node/context/TableHeight/use.d.mts +1 -1
- package/dist/node/context/TableHeight/use.d.mts.map +1 -1
- package/dist/node/context/TableHeight/use.d.ts +1 -1
- package/dist/node/context/TableHeight/use.d.ts.map +1 -1
- package/dist/node/context/index.d.cts +1 -1
- package/dist/node/context/index.d.mts +1 -1
- package/dist/node/context/index.d.ts +1 -1
- package/dist/node/index.cjs +74 -34
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +3 -3
- package/dist/node/index.d.mts +3 -3
- package/dist/node/index.d.ts +3 -3
- package/dist/node/index.mjs +113 -0
- package/dist/node/index.mjs.map +1 -0
- package/dist/node/types/index.d.cts +1 -1
- package/dist/node/types/index.d.mts +1 -1
- package/dist/node/types/index.d.ts +1 -1
- package/package.json +11 -11
- package/src/components/TableEx/TableCellEx.tsx +1 -1
- package/src/components/TableEx/TableEx.stories.tsx +9 -7
- package/src/components/TableEx/TableEx.tsx +2 -2
- package/src/components/TableEx/TableFooterEx.tsx +3 -3
- package/src/components/TableEx/index.ts +4 -4
- package/src/components/TableEx/types/index.ts +1 -1
- package/src/components/index.ts +1 -1
- package/src/context/TableHeight/Context.ts +1 -1
- package/src/context/TableHeight/Provider.tsx +5 -3
- package/src/context/TableHeight/index.ts +4 -4
- package/src/context/TableHeight/{use.tsx → use.ts} +1 -1
- package/src/context/index.ts +1 -1
- package/src/index.ts +3 -3
- package/src/types/index.ts +1 -1
- package/dist/browser/index.js +0 -81
- package/dist/browser/index.js.map +0 -1
- package/dist/neutral/index.js +0 -81
- package/dist/neutral/index.js.map +0 -1
- package/dist/node/index.js +0 -81
- package/dist/node/index.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TableProps } from '@mui/material';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { TableExVariants } from './types/index.
|
|
2
|
+
import React, { PropsWithChildren } from 'react';
|
|
3
|
+
import { TableExVariants } from './types/index.ts';
|
|
4
4
|
export interface TableExProps extends PropsWithChildren, TableProps {
|
|
5
5
|
variant?: TableExVariants;
|
|
6
6
|
}
|
|
7
|
-
export declare const TableExWithRef:
|
|
8
|
-
export declare const TableEx:
|
|
7
|
+
export declare const TableExWithRef: React.ForwardRefExoticComponent<Omit<TableExProps, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
8
|
+
export declare const TableEx: React.ForwardRefExoticComponent<Omit<TableExProps, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
9
9
|
//# sourceMappingURL=TableEx.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"TableEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,KAAK,EAAE,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,YAAa,SAAQ,iBAAiB,EAAE,UAAU;IACjE,OAAO,CAAC,EAAE,eAAe,CAAA;CAC1B;AAYD,eAAO,MAAM,cAAc,oGAMzB,CAAA;AAIF,eAAO,MAAM,OAAO,oGAAiB,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TableProps } from '@mui/material';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { TableExVariants } from './types/index.
|
|
2
|
+
import React, { PropsWithChildren } from 'react';
|
|
3
|
+
import { TableExVariants } from './types/index.ts';
|
|
4
4
|
export interface TableExProps extends PropsWithChildren, TableProps {
|
|
5
5
|
variant?: TableExVariants;
|
|
6
6
|
}
|
|
7
|
-
export declare const TableExWithRef:
|
|
8
|
-
export declare const TableEx:
|
|
7
|
+
export declare const TableExWithRef: React.ForwardRefExoticComponent<Omit<TableExProps, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
8
|
+
export declare const TableEx: React.ForwardRefExoticComponent<Omit<TableExProps, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
9
9
|
//# sourceMappingURL=TableEx.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"TableEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,KAAK,EAAE,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,YAAa,SAAQ,iBAAiB,EAAE,UAAU;IACjE,OAAO,CAAC,EAAE,eAAe,CAAA;CAC1B;AAYD,eAAO,MAAM,cAAc,oGAMzB,CAAA;AAIF,eAAO,MAAM,OAAO,oGAAiB,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TableProps } from '@mui/material';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { TableExVariants } from './types/index.
|
|
2
|
+
import React, { PropsWithChildren } from 'react';
|
|
3
|
+
import { TableExVariants } from './types/index.ts';
|
|
4
4
|
export interface TableExProps extends PropsWithChildren, TableProps {
|
|
5
5
|
variant?: TableExVariants;
|
|
6
6
|
}
|
|
7
|
-
export declare const TableExWithRef:
|
|
8
|
-
export declare const TableEx:
|
|
7
|
+
export declare const TableExWithRef: React.ForwardRefExoticComponent<Omit<TableExProps, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
8
|
+
export declare const TableEx: React.ForwardRefExoticComponent<Omit<TableExProps, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
9
9
|
//# sourceMappingURL=TableEx.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"TableEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,UAAU,EAAE,MAAM,eAAe,CAAA;AACjD,OAAO,KAAK,EAAE,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,YAAa,SAAQ,iBAAiB,EAAE,UAAU;IACjE,OAAO,CAAC,EAAE,eAAe,CAAA;CAC1B;AAYD,eAAO,MAAM,cAAc,oGAMzB,CAAA;AAIF,eAAO,MAAM,OAAO,oGAAiB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableFooterProps } from '@mui/material';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { TableExVariants } from './types/index.
|
|
2
|
+
import React, { PropsWithChildren } from 'react';
|
|
3
|
+
import { TableExVariants } from './types/index.ts';
|
|
4
4
|
export interface TableFooterExProps extends PropsWithChildren, TableFooterProps {
|
|
5
5
|
variant?: TableExVariants;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableFooterEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableFooterEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"TableFooterEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableFooterEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACrE,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAEhD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAgBlD,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB,EAAE,gBAAgB;IAC7E,OAAO,CAAC,EAAE,eAAe,CAAA;CAC1B;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAA4F,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableFooterProps } from '@mui/material';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { TableExVariants } from './types/index.
|
|
2
|
+
import React, { PropsWithChildren } from 'react';
|
|
3
|
+
import { TableExVariants } from './types/index.ts';
|
|
4
4
|
export interface TableFooterExProps extends PropsWithChildren, TableFooterProps {
|
|
5
5
|
variant?: TableExVariants;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableFooterEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableFooterEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"TableFooterEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableFooterEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACrE,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAEhD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAgBlD,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB,EAAE,gBAAgB;IAC7E,OAAO,CAAC,EAAE,eAAe,CAAA;CAC1B;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAA4F,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TableFooterProps } from '@mui/material';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { TableExVariants } from './types/index.
|
|
2
|
+
import React, { PropsWithChildren } from 'react';
|
|
3
|
+
import { TableExVariants } from './types/index.ts';
|
|
4
4
|
export interface TableFooterExProps extends PropsWithChildren, TableFooterProps {
|
|
5
5
|
variant?: TableExVariants;
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableFooterEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableFooterEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"TableFooterEx.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/TableFooterEx.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuB,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACrE,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAEhD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAgBlD,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB,EAAE,gBAAgB;IAC7E,OAAO,CAAC,EAAE,eAAe,CAAA;CAC1B;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAA4F,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './TableCellEx.
|
|
2
|
-
export * from './TableEx.
|
|
3
|
-
export * from './TableFooterEx.
|
|
4
|
-
export * from './types/index.
|
|
1
|
+
export * from './TableCellEx.tsx';
|
|
2
|
+
export * from './TableEx.tsx';
|
|
3
|
+
export * from './TableFooterEx.tsx';
|
|
4
|
+
export * from './types/index.ts';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './TableCellEx.
|
|
2
|
-
export * from './TableEx.
|
|
3
|
-
export * from './TableFooterEx.
|
|
4
|
-
export * from './types/index.
|
|
1
|
+
export * from './TableCellEx.tsx';
|
|
2
|
+
export * from './TableEx.tsx';
|
|
3
|
+
export * from './TableFooterEx.tsx';
|
|
4
|
+
export * from './types/index.ts';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './TableCellEx.
|
|
2
|
-
export * from './TableEx.
|
|
3
|
-
export * from './TableFooterEx.
|
|
4
|
-
export * from './types/index.
|
|
1
|
+
export * from './TableCellEx.tsx';
|
|
2
|
+
export * from './TableEx.tsx';
|
|
3
|
+
export * from './TableFooterEx.tsx';
|
|
4
|
+
export * from './types/index.ts';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/TableEx/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TableExVariants.
|
|
1
|
+
export * from './TableExVariants.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TableExVariants.
|
|
1
|
+
export * from './TableExVariants.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TableExVariants.
|
|
1
|
+
export * from './TableExVariants.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TableEx/index.
|
|
1
|
+
export * from './TableEx/index.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TableEx/index.
|
|
1
|
+
export * from './TableEx/index.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TableEx/index.
|
|
1
|
+
export * from './TableEx/index.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TableHeightState } from './State.
|
|
1
|
+
import { TableHeightState } from './State.ts';
|
|
2
2
|
export declare const TableHeightContext: import("react").Context<TableHeightState & import("@xyo-network/react-shared").ContextExState>;
|
|
3
3
|
//# sourceMappingURL=Context.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TableHeightState } from './State.
|
|
1
|
+
import { TableHeightState } from './State.ts';
|
|
2
2
|
export declare const TableHeightContext: import("react").Context<TableHeightState & import("@xyo-network/react-shared").ContextExState>;
|
|
3
3
|
//# sourceMappingURL=Context.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { TableHeightState } from './State.
|
|
1
|
+
import { TableHeightState } from './State.ts';
|
|
2
2
|
export declare const TableHeightContext: import("react").Context<TableHeightState & import("@xyo-network/react-shared").ContextExState>;
|
|
3
3
|
//# sourceMappingURL=Context.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { WithChildren } from '@xylabs/react-shared';
|
|
2
2
|
import { ContextExProviderProps } from '@xyo-network/react-shared';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
export interface TableHeightProviderProps extends ContextExProviderProps, WithChildren {
|
|
4
5
|
additionalRows?: number;
|
|
5
6
|
defaultVisibleRows?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAuC,MAAM,OAAO,CAAA;AAI3D,MAAM,WAAW,wBAAyB,SAAQ,sBAAsB,EAAE,YAAY;IAEpF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA6BlE,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { WithChildren } from '@xylabs/react-shared';
|
|
2
2
|
import { ContextExProviderProps } from '@xyo-network/react-shared';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
export interface TableHeightProviderProps extends ContextExProviderProps, WithChildren {
|
|
4
5
|
additionalRows?: number;
|
|
5
6
|
defaultVisibleRows?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAuC,MAAM,OAAO,CAAA;AAI3D,MAAM,WAAW,wBAAyB,SAAQ,sBAAsB,EAAE,YAAY;IAEpF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA6BlE,CAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { WithChildren } from '@xylabs/react-shared';
|
|
2
2
|
import { ContextExProviderProps } from '@xyo-network/react-shared';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
export interface TableHeightProviderProps extends ContextExProviderProps, WithChildren {
|
|
4
5
|
additionalRows?: number;
|
|
5
6
|
defaultVisibleRows?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/Provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AAClE,OAAO,KAAuC,MAAM,OAAO,CAAA;AAI3D,MAAM,WAAW,wBAAyB,SAAQ,sBAAsB,EAAE,YAAY;IAEpF,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA6BlE,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Context.
|
|
2
|
-
export * from './Provider.
|
|
3
|
-
export * from './State.
|
|
4
|
-
export * from './use.
|
|
1
|
+
export * from './Context.ts';
|
|
2
|
+
export * from './Provider.tsx';
|
|
3
|
+
export * from './State.ts';
|
|
4
|
+
export * from './use.ts';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Context.
|
|
2
|
-
export * from './Provider.
|
|
3
|
-
export * from './State.
|
|
4
|
-
export * from './use.
|
|
1
|
+
export * from './Context.ts';
|
|
2
|
+
export * from './Provider.tsx';
|
|
3
|
+
export * from './State.ts';
|
|
4
|
+
export * from './use.ts';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Context.
|
|
2
|
-
export * from './Provider.
|
|
3
|
-
export * from './State.
|
|
4
|
-
export * from './use.
|
|
1
|
+
export * from './Context.ts';
|
|
2
|
+
export * from './Provider.tsx';
|
|
3
|
+
export * from './State.ts';
|
|
4
|
+
export * from './use.ts';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useTableHeight: (required?: boolean) => Omit<import("./State.
|
|
1
|
+
export declare const useTableHeight: (required?: boolean) => Omit<import("./State.ts").TableHeightState & import("@xyo-network/react-shared").ContextExState, "provided">;
|
|
2
2
|
//# sourceMappingURL=use.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/use.
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,sIAAkF,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useTableHeight: (required?: boolean) => Omit<import("./State.
|
|
1
|
+
export declare const useTableHeight: (required?: boolean) => Omit<import("./State.ts").TableHeightState & import("@xyo-network/react-shared").ContextExState, "provided">;
|
|
2
2
|
//# sourceMappingURL=use.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/use.
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,sIAAkF,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useTableHeight: (required?: boolean) => Omit<import("./State.
|
|
1
|
+
export declare const useTableHeight: (required?: boolean) => Omit<import("./State.ts").TableHeightState & import("@xyo-network/react-shared").ContextExState, "provided">;
|
|
2
2
|
//# sourceMappingURL=use.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/use.
|
|
1
|
+
{"version":3,"file":"use.d.ts","sourceRoot":"","sources":["../../../../src/context/TableHeight/use.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,sIAAkF,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TableHeight/index.
|
|
1
|
+
export * from './TableHeight/index.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TableHeight/index.
|
|
1
|
+
export * from './TableHeight/index.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './TableHeight/index.
|
|
1
|
+
export * from './TableHeight/index.ts';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/browser/index.cjs
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
9
|
var __export = (target, all) => {
|
|
7
10
|
for (var name in all)
|
|
8
11
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -15,6 +18,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
18
|
}
|
|
16
19
|
return to;
|
|
17
20
|
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
18
29
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
30
|
|
|
20
31
|
// src/index.ts
|
|
@@ -32,32 +43,41 @@ module.exports = __toCommonJS(src_exports);
|
|
|
32
43
|
|
|
33
44
|
// src/components/TableEx/TableCellEx.tsx
|
|
34
45
|
var import_material = require("@mui/material");
|
|
35
|
-
var TableCellEx = (0, import_material.styled)(import_material.TableCell, {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
46
|
+
var TableCellEx = (0, import_material.styled)(import_material.TableCell, {
|
|
47
|
+
name: "TableCellNoBgColor",
|
|
48
|
+
shouldForwardProp: /* @__PURE__ */ __name((prop) => prop !== "noBgColor", "shouldForwardProp")
|
|
49
|
+
})(({ noBgColor = true }) => ({
|
|
50
|
+
...noBgColor && {
|
|
51
|
+
backgroundColor: "transparent"
|
|
52
|
+
}
|
|
53
|
+
}));
|
|
40
54
|
|
|
41
55
|
// src/components/TableEx/TableEx.tsx
|
|
42
56
|
var import_material2 = require("@mui/material");
|
|
43
|
-
var import_react = require("react");
|
|
44
|
-
var
|
|
45
|
-
|
|
46
|
-
|
|
57
|
+
var import_react = __toESM(require("react"), 1);
|
|
58
|
+
var TableExInner = /* @__PURE__ */ (0, import_react.forwardRef)(({ children, ...props }, ref) => {
|
|
59
|
+
return /* @__PURE__ */ import_react.default.createElement(import_material2.Table, {
|
|
60
|
+
ref,
|
|
61
|
+
...props
|
|
62
|
+
}, children);
|
|
47
63
|
});
|
|
48
64
|
TableExInner.displayName = "TableExInner";
|
|
49
|
-
var TableExWithRef = (0, import_react.forwardRef)(({ variant, children, ...props }, ref) => {
|
|
50
|
-
return /* @__PURE__ */
|
|
65
|
+
var TableExWithRef = /* @__PURE__ */ (0, import_react.forwardRef)(({ variant, children, ...props }, ref) => {
|
|
66
|
+
return /* @__PURE__ */ import_react.default.createElement(TableExInner, {
|
|
67
|
+
stickyHeader: variant === "scrollable",
|
|
68
|
+
ref,
|
|
69
|
+
...props
|
|
70
|
+
}, children);
|
|
51
71
|
});
|
|
52
72
|
TableExWithRef.displayName = "TableEx";
|
|
53
73
|
var TableEx = TableExWithRef;
|
|
54
74
|
|
|
55
75
|
// src/components/TableEx/TableFooterEx.tsx
|
|
56
76
|
var import_material3 = require("@mui/material");
|
|
57
|
-
var
|
|
77
|
+
var import_react2 = __toESM(require("react"), 1);
|
|
58
78
|
var TableFooterExRoot = (0, import_material3.styled)(import_material3.TableFooter, {
|
|
59
79
|
name: "TableFooterEx",
|
|
60
|
-
shouldForwardProp: (propName) => propName !== "scrollable",
|
|
80
|
+
shouldForwardProp: /* @__PURE__ */ __name((propName) => propName !== "scrollable", "shouldForwardProp"),
|
|
61
81
|
slot: "Root"
|
|
62
82
|
})(({ variant, theme }) => ({
|
|
63
83
|
backgroundColor: theme.palette.background.default,
|
|
@@ -68,37 +88,57 @@ var TableFooterExRoot = (0, import_material3.styled)(import_material3.TableFoote
|
|
|
68
88
|
position: "sticky"
|
|
69
89
|
}
|
|
70
90
|
}));
|
|
71
|
-
var TableFooterEx = ({ children, ...props }) => /* @__PURE__ */
|
|
91
|
+
var TableFooterEx = /* @__PURE__ */ __name(({ children, ...props }) => /* @__PURE__ */ import_react2.default.createElement(TableFooterExRoot, props, children), "TableFooterEx");
|
|
72
92
|
|
|
73
93
|
// src/context/TableHeight/Context.ts
|
|
74
94
|
var import_react_shared = require("@xyo-network/react-shared");
|
|
75
95
|
var TableHeightContext = (0, import_react_shared.createContextEx)();
|
|
76
96
|
|
|
77
97
|
// src/context/TableHeight/Provider.tsx
|
|
78
|
-
var
|
|
79
|
-
var
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
const [rowHeight, setRowHeight] = (0, import_react2.useState)();
|
|
89
|
-
const formattedHeight = (0, import_react2.useMemo)(() => height === void 0 ? void 0 : `${height}${heightFormat}`, [height, heightFormat]);
|
|
90
|
-
(0, import_react2.useEffect)(() => {
|
|
98
|
+
var import_react3 = __toESM(require("react"), 1);
|
|
99
|
+
var TableHeightProvider = /* @__PURE__ */ __name(({ children, additionalRows = 0, defaultVisibleRows, heightFormat = "px" }) => {
|
|
100
|
+
const [visibleRows, setVisibleRows] = (0, import_react3.useState)(defaultVisibleRows);
|
|
101
|
+
const [height, setHeight] = (0, import_react3.useState)();
|
|
102
|
+
const [rowHeight, setRowHeight] = (0, import_react3.useState)();
|
|
103
|
+
const formattedHeight = (0, import_react3.useMemo)(() => height === void 0 ? void 0 : `${height}${heightFormat}`, [
|
|
104
|
+
height,
|
|
105
|
+
heightFormat
|
|
106
|
+
]);
|
|
107
|
+
(0, import_react3.useEffect)(() => {
|
|
91
108
|
setVisibleRows(defaultVisibleRows);
|
|
92
|
-
}, [
|
|
93
|
-
|
|
109
|
+
}, [
|
|
110
|
+
defaultVisibleRows
|
|
111
|
+
]);
|
|
112
|
+
(0, import_react3.useEffect)(() => {
|
|
94
113
|
if (rowHeight !== void 0 && visibleRows !== void 0) {
|
|
95
114
|
setHeight(rowHeight * (visibleRows + additionalRows));
|
|
96
115
|
}
|
|
97
|
-
}, [
|
|
98
|
-
|
|
99
|
-
|
|
116
|
+
}, [
|
|
117
|
+
defaultVisibleRows,
|
|
118
|
+
rowHeight,
|
|
119
|
+
visibleRows,
|
|
120
|
+
additionalRows
|
|
121
|
+
]);
|
|
122
|
+
const value = (0, import_react3.useMemo)(() => ({
|
|
123
|
+
height: formattedHeight,
|
|
124
|
+
provided: true,
|
|
125
|
+
rowHeight,
|
|
126
|
+
setRowHeight,
|
|
127
|
+
setVisibleRows,
|
|
128
|
+
visibleRows
|
|
129
|
+
}), [
|
|
130
|
+
formattedHeight,
|
|
131
|
+
rowHeight,
|
|
132
|
+
setRowHeight,
|
|
133
|
+
setVisibleRows,
|
|
134
|
+
visibleRows
|
|
135
|
+
]);
|
|
136
|
+
return /* @__PURE__ */ import_react3.default.createElement(TableHeightContext.Provider, {
|
|
137
|
+
value
|
|
138
|
+
}, children);
|
|
139
|
+
}, "TableHeightProvider");
|
|
100
140
|
|
|
101
|
-
// src/context/TableHeight/use.
|
|
141
|
+
// src/context/TableHeight/use.ts
|
|
102
142
|
var import_react_shared2 = require("@xyo-network/react-shared");
|
|
103
|
-
var useTableHeight = (required = false) => (0, import_react_shared2.useContextEx)(TableHeightContext, "TableHeight", required);
|
|
143
|
+
var useTableHeight = /* @__PURE__ */ __name((required = false) => (0, import_react_shared2.useContextEx)(TableHeightContext, "TableHeight", required), "useTableHeight");
|
|
104
144
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts","../../src/components/TableEx/TableCellEx.tsx","../../src/components/TableEx/TableEx.tsx","../../src/components/TableEx/TableFooterEx.tsx","../../src/context/TableHeight/Context.ts","../../src/context/TableHeight/Provider.tsx","../../src/context/TableHeight/use.
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts","../../src/components/TableEx/TableCellEx.tsx","../../src/components/TableEx/TableEx.tsx","../../src/components/TableEx/TableFooterEx.tsx","../../src/context/TableHeight/Context.ts","../../src/context/TableHeight/Provider.tsx","../../src/context/TableHeight/use.ts"],"sourcesContent":["export * from './components/index.ts'\nexport * from './context/index.ts'\nexport * from './types/index.ts'\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 React, { forwardRef, PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types/index.ts'\n\nexport interface TableExProps extends PropsWithChildren, TableProps {\n variant?: TableExVariants\n}\n\nconst TableExInner = forwardRef<HTMLTableElement, TableExProps>(({ children, ...props }, ref) => {\n return (\n <Table ref={ref} {...props}>\n {children}\n </Table>\n )\n})\n\nTableExInner.displayName = 'TableExInner'\n\nexport const TableExWithRef = forwardRef<HTMLTableElement, TableExProps>(({ variant, children, ...props }, ref) => {\n return (\n <TableExInner stickyHeader={variant === 'scrollable'} ref={ref} {...props}>\n {children}\n </TableExInner>\n )\n})\n\nTableExWithRef.displayName = 'TableEx'\n\nexport const TableEx = TableExWithRef\n","import { styled, TableFooter, TableFooterProps } from '@mui/material'\nimport React, { PropsWithChildren } from 'react'\n\nimport { TableExVariants } from './types/index.ts'\n\nconst TableFooterExRoot = styled(TableFooter, {\n name: 'TableFooterEx',\n shouldForwardProp: propName => propName !== 'scrollable',\n slot: 'Root',\n})<TableFooterExProps>(({ variant, theme }) => ({\n backgroundColor: theme.palette.background.default,\n bottom: 'unset',\n position: 'relative',\n ...(variant === 'scrollable' && {\n bottom: 0,\n position: 'sticky',\n }),\n}))\n\nexport interface TableFooterExProps extends PropsWithChildren, TableFooterProps {\n variant?: TableExVariants\n}\n\nexport const TableFooterEx: React.FC<TableFooterExProps> = ({ children, ...props }) => <TableFooterExRoot {...props}>{children}</TableFooterExRoot>\n","import { createContextEx } from '@xyo-network/react-shared'\n\nimport { TableHeightState } from './State.ts'\n\nexport const TableHeightContext = createContextEx<TableHeightState>()\n","import { WithChildren } from '@xylabs/react-shared'\nimport { ContextExProviderProps } from '@xyo-network/react-shared'\nimport React, { useEffect, useMemo, useState } from 'react'\n\nimport { TableHeightContext } from './Context.ts'\n\nexport interface TableHeightProviderProps extends ContextExProviderProps, WithChildren {\n /** @field Account for optional header and footer rows */\n additionalRows?: number\n defaultVisibleRows?: number\n heightFormat?: string\n}\n\nexport const TableHeightProvider: React.FC<TableHeightProviderProps> = ({\n children,\n additionalRows = 0,\n defaultVisibleRows,\n heightFormat = 'px',\n}) => {\n const [visibleRows, setVisibleRows] = useState(defaultVisibleRows)\n const [height, setHeight] = useState<number | undefined>()\n const [rowHeight, setRowHeight] = useState<number | undefined>()\n\n const formattedHeight = useMemo(() => (height === undefined ? undefined : `${height}${heightFormat}`), [height, heightFormat])\n\n useEffect(() => {\n setVisibleRows(defaultVisibleRows)\n }, [defaultVisibleRows])\n\n useEffect(() => {\n if (rowHeight !== undefined && visibleRows !== undefined) {\n setHeight(rowHeight * (visibleRows + additionalRows))\n }\n }, [defaultVisibleRows, rowHeight, visibleRows, additionalRows])\n\n const value = useMemo(() => ({ height: formattedHeight, provided: true, rowHeight, setRowHeight, setVisibleRows, visibleRows }), [formattedHeight, rowHeight, setRowHeight, setVisibleRows, visibleRows])\n\n return (\n <TableHeightContext.Provider value={value}>\n {children}\n </TableHeightContext.Provider>\n )\n}\n","import { useContextEx } from '@xyo-network/react-shared'\n\nimport { TableHeightContext } from './Context.ts'\n\nexport const useTableHeight = (required = false) => useContextEx(TableHeightContext, 'TableHeight', required)\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;ACAA,sBAAkD;AAM3C,IAAMA,kBAAcC,wBAAOC,2BAAW;EAAEC,MAAM;EAAsBC,mBAAmBC,wBAAAA,SAAQA,SAAS,aAAjBA;AAA6B,CAAA,EACzH,CAAC,EAAEC,YAAY,KAAI,OAAQ;EACzB,GAAIA,aAAa;IAAEC,iBAAiB;EAAc;AACpD,EAAA;;;ACTF,IAAAC,mBAAkC;AAClC,mBAAqD;AAQrD,IAAMC,eAAeC,6CAA2C,CAAC,EAAEC,UAAU,GAAGC,MAAAA,GAASC,QAAAA;AACvF,SACE,6BAAAC,QAAA,cAACC,wBAAAA;IAAMF;IAAW,GAAGD;KAClBD,QAAAA;AAGP,CAAA;AAEAF,aAAaO,cAAc;AAEpB,IAAMC,iBAAiBP,6CAA2C,CAAC,EAAEQ,SAASP,UAAU,GAAGC,MAAAA,GAASC,QAAAA;AACzG,SACE,6BAAAC,QAAA,cAACL,cAAAA;IAAaU,cAAcD,YAAY;IAAcL;IAAW,GAAGD;KACjED,QAAAA;AAGP,CAAA;AAEAM,eAAeD,cAAc;AAEtB,IAAMI,UAAUH;;;AC7BvB,IAAAI,mBAAsD;AACtD,IAAAC,gBAAyC;AAIzC,IAAMC,wBAAoBC,yBAAOC,8BAAa;EAC5CC,MAAM;EACNC,mBAAmBC,wBAAAA,aAAYA,aAAa,cAAzBA;EACnBC,MAAM;AACR,CAAA,EAAuB,CAAC,EAAEC,SAASC,MAAK,OAAQ;EAC9CC,iBAAiBD,MAAME,QAAQC,WAAWC;EAC1CC,QAAQ;EACRC,UAAU;EACV,GAAIP,YAAY,gBAAgB;IAC9BM,QAAQ;IACRC,UAAU;EACZ;AACF,EAAA;AAMO,IAAMC,gBAA8C,wBAAC,EAAEC,UAAU,GAAGC,MAAAA,MAAY,8BAAAC,QAAA,cAAClB,mBAAsBiB,OAAQD,QAAAA,GAA3D;;;ACvB3D,0BAAgC;AAIzB,IAAMG,yBAAqBC,qCAAAA;;;ACFlC,IAAAC,gBAAoD;AAW7C,IAAMC,sBAA0D,wBAAC,EACtEC,UACAC,iBAAiB,GACjBC,oBACAC,eAAe,KAAI,MACpB;AACC,QAAM,CAACC,aAAaC,cAAAA,QAAkBC,wBAASJ,kBAAAA;AAC/C,QAAM,CAACK,QAAQC,SAAAA,QAAaF,wBAAAA;AAC5B,QAAM,CAACG,WAAWC,YAAAA,QAAgBJ,wBAAAA;AAElC,QAAMK,sBAAkBC,uBAAQ,MAAOL,WAAWM,SAAYA,SAAY,GAAGN,MAAAA,GAASJ,YAAAA,IAAiB;IAACI;IAAQJ;GAAa;AAE7HW,+BAAU,MAAA;AACRT,mBAAeH,kBAAAA;EACjB,GAAG;IAACA;GAAmB;AAEvBY,+BAAU,MAAA;AACR,QAAIL,cAAcI,UAAaT,gBAAgBS,QAAW;AACxDL,gBAAUC,aAAaL,cAAcH,eAAa;IACpD;EACF,GAAG;IAACC;IAAoBO;IAAWL;IAAaH;GAAe;AAE/D,QAAMc,YAAQH,uBAAQ,OAAO;IAAEL,QAAQI;IAAiBK,UAAU;IAAMP;IAAWC;IAAcL;IAAgBD;EAAY,IAAI;IAACO;IAAiBF;IAAWC;IAAcL;IAAgBD;GAAY;AAExM,SACE,8BAAAa,QAAA,cAACC,mBAAmBC,UAAQ;IAACJ;KAC1Bf,QAAAA;AAGP,GA7BuE;;;ACbvE,IAAAoB,uBAA6B;AAItB,IAAMC,iBAAiB,wBAACC,WAAW,cAAUC,mCAAaC,oBAAoB,eAAeF,QAAAA,GAAtE;","names":["TableCellEx","styled","TableCell","name","shouldForwardProp","prop","noBgColor","backgroundColor","import_material","TableExInner","forwardRef","children","props","ref","React","Table","displayName","TableExWithRef","variant","stickyHeader","TableEx","import_material","import_react","TableFooterExRoot","styled","TableFooter","name","shouldForwardProp","propName","slot","variant","theme","backgroundColor","palette","background","default","bottom","position","TableFooterEx","children","props","React","TableHeightContext","createContextEx","import_react","TableHeightProvider","children","additionalRows","defaultVisibleRows","heightFormat","visibleRows","setVisibleRows","useState","height","setHeight","rowHeight","setRowHeight","formattedHeight","useMemo","undefined","useEffect","value","provided","React","TableHeightContext","Provider","import_react_shared","useTableHeight","required","useContextEx","TableHeightContext"]}
|
package/dist/browser/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './components/index.
|
|
2
|
-
export * from './context/index.
|
|
3
|
-
export * from './types/index.
|
|
1
|
+
export * from './components/index.ts';
|
|
2
|
+
export * from './context/index.ts';
|
|
3
|
+
export * from './types/index.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/browser/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './components/index.
|
|
2
|
-
export * from './context/index.
|
|
3
|
-
export * from './types/index.
|
|
1
|
+
export * from './components/index.ts';
|
|
2
|
+
export * from './context/index.ts';
|
|
3
|
+
export * from './types/index.ts';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|