material-react-table 3.0.0-rc.0 → 3.0.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/index.esm.js CHANGED
@@ -3913,7 +3913,7 @@ const MRT_TablePagination = (_a) => {
3913
3913
  const theme = useTheme();
3914
3914
  const isMobile = useMediaQuery('(max-width: 720px)');
3915
3915
  const { getState, options: { enableToolbarInternalActions, icons: { ChevronLeftIcon, ChevronRightIcon, FirstPageIcon, LastPageIcon }, id, localization, muiPaginationProps, paginationDisplayMode, }, } = table;
3916
- const { pagination: { pageIndex = 0, pageSize = 10 }, showGlobalFilter, } = getState();
3916
+ const { pagination: { pageIndex = 0, pageSize = 10 }, } = getState();
3917
3917
  const paginationProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiPaginationProps, {
3918
3918
  table,
3919
3919
  })), rest);
@@ -3936,9 +3936,7 @@ const MRT_TablePagination = (_a) => {
3936
3936
  gap: '8px',
3937
3937
  justifyContent: { md: 'space-between', sm: 'center' },
3938
3938
  justifySelf: 'flex-end',
3939
- mt: position === 'top' &&
3940
- enableToolbarInternalActions &&
3941
- !showGlobalFilter
3939
+ mt: position === 'top' && enableToolbarInternalActions
3942
3940
  ? '3rem'
3943
3941
  : undefined,
3944
3942
  position: 'relative',
@@ -4316,7 +4314,7 @@ const MRT_TablePaper = (_a) => {
4316
4314
  const { isFullScreen } = getState();
4317
4315
  const paperProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTablePaperProps, { table })), rest);
4318
4316
  const theme = useTheme();
4319
- return (jsx(FocusTrap, { open: isFullScreen, children: jsxs(Paper, Object.assign({ elevation: 2, onKeyDown: (e) => e.key === 'Escape' && table.setIsFullScreen(false) }, paperProps, { ref: (ref) => {
4317
+ return (jsx(FocusTrap, { disableEnforceFocus: true, open: isFullScreen, children: jsxs(Paper, Object.assign({ elevation: 2, onKeyDown: (e) => e.key === 'Escape' && table.setIsFullScreen(false) }, paperProps, { ref: (ref) => {
4320
4318
  tablePaperRef.current = ref;
4321
4319
  if (paperProps === null || paperProps === void 0 ? void 0 : paperProps.ref) {
4322
4320
  //@ts-ignore