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 +3 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/locales/no/index.esm.js +1 -1
- package/locales/no/index.js +1 -1
- package/package.json +1 -1
- package/src/components/table/MRT_TablePaper.tsx +1 -1
- package/src/components/toolbar/MRT_TablePagination.tsx +1 -4
- package/src/locales/no.ts +2 -1
package/dist/index.js
CHANGED
@@ -4004,7 +4004,7 @@ const MRT_TablePagination = (_a) => {
|
|
4004
4004
|
const theme = styles.useTheme();
|
4005
4005
|
const isMobile = useMediaQuery__default["default"]('(max-width: 720px)');
|
4006
4006
|
const { getState, options: { enableToolbarInternalActions, icons: { ChevronLeftIcon, ChevronRightIcon, FirstPageIcon, LastPageIcon }, id, localization, muiPaginationProps, paginationDisplayMode, }, } = table;
|
4007
|
-
const { pagination: { pageIndex = 0, pageSize = 10 },
|
4007
|
+
const { pagination: { pageIndex = 0, pageSize = 10 }, } = getState();
|
4008
4008
|
const paginationProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiPaginationProps, {
|
4009
4009
|
table,
|
4010
4010
|
})), rest);
|
@@ -4027,9 +4027,7 @@ const MRT_TablePagination = (_a) => {
|
|
4027
4027
|
gap: '8px',
|
4028
4028
|
justifyContent: { md: 'space-between', sm: 'center' },
|
4029
4029
|
justifySelf: 'flex-end',
|
4030
|
-
mt: position === 'top' &&
|
4031
|
-
enableToolbarInternalActions &&
|
4032
|
-
!showGlobalFilter
|
4030
|
+
mt: position === 'top' && enableToolbarInternalActions
|
4033
4031
|
? '3rem'
|
4034
4032
|
: undefined,
|
4035
4033
|
position: 'relative',
|
@@ -4407,7 +4405,7 @@ const MRT_TablePaper = (_a) => {
|
|
4407
4405
|
const { isFullScreen } = getState();
|
4408
4406
|
const paperProps = Object.assign(Object.assign({}, parseFromValuesOrFunc(muiTablePaperProps, { table })), rest);
|
4409
4407
|
const theme = styles.useTheme();
|
4410
|
-
return (jsxRuntime.jsx(FocusTrap__default["default"], { open: isFullScreen, children: jsxRuntime.jsxs(Paper__default["default"], Object.assign({ elevation: 2, onKeyDown: (e) => e.key === 'Escape' && table.setIsFullScreen(false) }, paperProps, { ref: (ref) => {
|
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) => {
|
4411
4409
|
tablePaperRef.current = ref;
|
4412
4410
|
if (paperProps === null || paperProps === void 0 ? void 0 : paperProps.ref) {
|
4413
4411
|
//@ts-ignore
|