material-react-table 3.0.0 → 3.0.1

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/index.js CHANGED
@@ -54,7 +54,6 @@ var ViewColumnIcon = require('@mui/icons-material/ViewColumn');
54
54
  var VisibilityOffIcon = require('@mui/icons-material/VisibilityOff');
55
55
  var reactVirtual = require('@tanstack/react-virtual');
56
56
  var Paper = require('@mui/material/Paper');
57
- var FocusTrap = require('@mui/material/Unstable_TrapFocus/FocusTrap');
58
57
  var TableContainer = require('@mui/material/TableContainer');
59
58
  var Table = require('@mui/material/Table');
60
59
  var TableBody = require('@mui/material/TableBody');
@@ -145,7 +144,6 @@ var SyncAltIcon__default = /*#__PURE__*/_interopDefaultLegacy(SyncAltIcon);
145
144
  var ViewColumnIcon__default = /*#__PURE__*/_interopDefaultLegacy(ViewColumnIcon);
146
145
  var VisibilityOffIcon__default = /*#__PURE__*/_interopDefaultLegacy(VisibilityOffIcon);
147
146
  var Paper__default = /*#__PURE__*/_interopDefaultLegacy(Paper);
148
- var FocusTrap__default = /*#__PURE__*/_interopDefaultLegacy(FocusTrap);
149
147
  var TableContainer__default = /*#__PURE__*/_interopDefaultLegacy(TableContainer);
150
148
  var Table__default = /*#__PURE__*/_interopDefaultLegacy(Table);
151
149
  var TableBody__default = /*#__PURE__*/_interopDefaultLegacy(TableBody);
@@ -4405,30 +4403,30 @@ const MRT_TablePaper = (_a) => {
4405
4403
  const { isFullScreen } = getState();
4406
4404
  const paperProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTablePaperProps, { table })), rest);
4407
4405
  const theme = styles.useTheme();
4408
- return (jsxRuntime.jsx(FocusTrap__default["default"], { disableEnforceFocus: true, open: isFullScreen, children: jsxRuntime.jsxs(Paper__default["default"], Object.assign({ elevation: 2, onKeyDown: (e) => e.key === 'Escape' && table.setIsFullScreen(false) }, paperProps, { ref: (ref) => {
4409
- tablePaperRef.current = ref;
4410
- if (paperProps === null || paperProps === void 0 ? void 0 : paperProps.ref) {
4411
- //@ts-ignore
4412
- paperProps.ref.current = ref;
4413
- }
4414
- }, style: Object.assign(Object.assign({}, (isFullScreen
4415
- ? {
4416
- bottom: 0,
4417
- height: '100dvh',
4418
- left: 0,
4419
- margin: 0,
4420
- maxHeight: '100dvh',
4421
- maxWidth: '100dvw',
4422
- padding: 0,
4423
- position: 'fixed',
4424
- right: 0,
4425
- top: 0,
4426
- width: '100dvw',
4427
- zIndex: theme.zIndex.modal,
4428
- }
4429
- : {})), paperProps === null || paperProps === void 0 ? void 0 : paperProps.style), sx: (theme) => (Object.assign({ backgroundColor: baseBackgroundColor, backgroundImage: 'unset', overflow: 'hidden', transition: 'all 100ms ease-in-out' }, parseFromValuesOrFunc(paperProps === null || paperProps === void 0 ? void 0 : paperProps.sx, theme))), children: [enableTopToolbar &&
4430
- ((_b = parseFromValuesOrFunc(renderTopToolbar, { table })) !== null && _b !== void 0 ? _b : (jsxRuntime.jsx(MRT_TopToolbar, { table: table }))), jsxRuntime.jsx(MRT_TableContainer, { table: table }), enableBottomToolbar &&
4431
- ((_c = parseFromValuesOrFunc(renderBottomToolbar, { table })) !== null && _c !== void 0 ? _c : (jsxRuntime.jsx(MRT_BottomToolbar, { table: table })))] })) }));
4406
+ return (jsxRuntime.jsxs(Paper__default["default"], Object.assign({ elevation: 2, onKeyDown: (e) => e.key === 'Escape' && table.setIsFullScreen(false) }, paperProps, { ref: (ref) => {
4407
+ tablePaperRef.current = ref;
4408
+ if (paperProps === null || paperProps === void 0 ? void 0 : paperProps.ref) {
4409
+ //@ts-ignore
4410
+ paperProps.ref.current = ref;
4411
+ }
4412
+ }, style: Object.assign(Object.assign({}, (isFullScreen
4413
+ ? {
4414
+ bottom: 0,
4415
+ height: '100dvh',
4416
+ left: 0,
4417
+ margin: 0,
4418
+ maxHeight: '100dvh',
4419
+ maxWidth: '100dvw',
4420
+ padding: 0,
4421
+ position: 'fixed',
4422
+ right: 0,
4423
+ top: 0,
4424
+ width: '100dvw',
4425
+ zIndex: theme.zIndex.modal,
4426
+ }
4427
+ : {})), paperProps === null || paperProps === void 0 ? void 0 : paperProps.style), sx: (theme) => (Object.assign({ backgroundColor: baseBackgroundColor, backgroundImage: 'unset', overflow: 'hidden', transition: 'all 100ms ease-in-out' }, parseFromValuesOrFunc(paperProps === null || paperProps === void 0 ? void 0 : paperProps.sx, theme))), children: [enableTopToolbar &&
4428
+ ((_b = parseFromValuesOrFunc(renderTopToolbar, { table })) !== null && _b !== void 0 ? _b : (jsxRuntime.jsx(MRT_TopToolbar, { table: table }))), jsxRuntime.jsx(MRT_TableContainer, { table: table }), enableBottomToolbar &&
4429
+ ((_c = parseFromValuesOrFunc(renderBottomToolbar, { table })) !== null && _c !== void 0 ? _c : (jsxRuntime.jsx(MRT_BottomToolbar, { table: table })))] })));
4432
4430
  };
4433
4431
 
4434
4432
  const isTableInstanceProp = (props) => props.table !== undefined;