material-react-table 0.3.5 → 0.4.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/MaterialReactTable.d.ts +1 -1
- package/dist/material-react-table.cjs.development.js +9 -6
- package/dist/material-react-table.cjs.development.js.map +1 -1
- package/dist/material-react-table.cjs.production.min.js +1 -1
- package/dist/material-react-table.cjs.production.min.js.map +1 -1
- package/dist/material-react-table.esm.js +9 -6
- package/dist/material-react-table.esm.js.map +1 -1
- package/package.json +4 -4
- package/src/MaterialReactTable.tsx +3 -1
- package/src/table/MRT_TableContainer.tsx +12 -5
|
@@ -2326,7 +2326,8 @@ var TableContainer = /*#__PURE__*/styled(TableContainer$1, {
|
|
|
2326
2326
|
right: fullScreen ? '0' : undefined,
|
|
2327
2327
|
top: fullScreen ? '0' : undefined,
|
|
2328
2328
|
transition: 'all 0.2s ease-in-out',
|
|
2329
|
-
width: fullScreen ? '100vw' : undefined
|
|
2329
|
+
width: fullScreen ? '100vw' : undefined,
|
|
2330
|
+
zIndex: 1200
|
|
2330
2331
|
};
|
|
2331
2332
|
});
|
|
2332
2333
|
var CircularProgressWrapper = /*#__PURE__*/styled('div')(function (_ref2) {
|
|
@@ -2344,17 +2345,19 @@ var CircularProgressWrapper = /*#__PURE__*/styled('div')(function (_ref2) {
|
|
|
2344
2345
|
});
|
|
2345
2346
|
var MRT_TableContainer = function MRT_TableContainer() {
|
|
2346
2347
|
var _useMRT = useMRT(),
|
|
2347
|
-
muiTableContainerProps = _useMRT.muiTableContainerProps,
|
|
2348
|
-
hideToolbarTop = _useMRT.hideToolbarTop,
|
|
2349
|
-
hideToolbarBottom = _useMRT.hideToolbarBottom,
|
|
2350
2348
|
fullScreen = _useMRT.fullScreen,
|
|
2349
|
+
hideToolbarBottom = _useMRT.hideToolbarBottom,
|
|
2350
|
+
hideToolbarTop = _useMRT.hideToolbarTop,
|
|
2351
|
+
isFetching = _useMRT.isFetching,
|
|
2351
2352
|
isLoading = _useMRT.isLoading,
|
|
2352
|
-
|
|
2353
|
+
muiTableContainerProps = _useMRT.muiTableContainerProps,
|
|
2354
|
+
tableInstance = _useMRT.tableInstance;
|
|
2353
2355
|
|
|
2356
|
+
var tableContainerProps = muiTableContainerProps instanceof Function ? muiTableContainerProps(tableInstance) : muiTableContainerProps;
|
|
2354
2357
|
return React.createElement(TableContainer, Object.assign({
|
|
2355
2358
|
component: Paper,
|
|
2356
2359
|
fullScreen: fullScreen
|
|
2357
|
-
},
|
|
2360
|
+
}, tableContainerProps), !hideToolbarTop && React.createElement(MRT_ToolbarTop, null), isFetching && React.createElement(LinearProgress, null), isLoading && React.createElement(CircularProgressWrapper, null, React.createElement(CircularProgress, {
|
|
2358
2361
|
"aria-busy": "true",
|
|
2359
2362
|
"aria-label": "Loading data"
|
|
2360
2363
|
})), React.createElement(MRT_Table, null), !hideToolbarBottom && React.createElement(MRT_ToolbarBottom, null));
|