material-react-table 1.5.9 → 1.5.10

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/README.md CHANGED
@@ -21,13 +21,21 @@
21
21
 
22
22
  ## About
23
23
 
24
- ### __Built with [Material UI <sup>V5</sup>](https://mui.com) and [TanStack Table <sup>V8</sup>](https://tanstack.com/table/v8)__
25
-
26
24
  ### _Quickly Create React Data Tables with Material Design_
27
25
 
28
- A good table library should offer you powerful features, with an easy way to customize them, or even opt out and turn them off. It should also offer a bunch of advanced features to take your tables to the next level, but without sacrificing too bundle size bloat. MRT attempts to find that happy balance.
26
+ ### __Built with [Material UI <sup>V5</sup>](https://mui.com) and [TanStack Table <sup>V8</sup>](https://tanstack.com/table/v8)__
29
27
 
30
- MRT is built on top of [TanStack Table's](https://tanstack.com/table/v8) react hooks to build upon it's high performance and flexibility.
28
+ <br />
29
+ <div style="display:flex;align-items:center;">
30
+ <img src="https://material-react-table.com/mrt_logo.svg" alt="MRT" height="40"/>
31
+ =
32
+ <img src="https://mui.com/static/logo.png" height="40">
33
+ 🤝
34
+ <img src="https://react-table-v7.tanstack.com/_next/static/images/logo-light-66d4dd9109004332c863391e6d1cb309.svg" height="40">
35
+ </div>
36
+ <br />
37
+
38
+ MRT is built with Material-UI components on top of [TanStack Table's](https://tanstack.com/table/v8) comprehensive and powerful react hooks api.
31
39
 
32
40
  ## Learn More
33
41
 
package/dist/cjs/index.js CHANGED
@@ -1635,8 +1635,8 @@ const MRT_FilterTextField = ({ header, rangeFilterIndex, table, }) => {
1635
1635
  setFilterValue('');
1636
1636
  column.setFilterValue(undefined);
1637
1637
  setColumnFilterFns((prev) => {
1638
- var _a, _b, _c;
1639
- return (Object.assign(Object.assign({}, prev), { [header.id]: (_c = (_b = (_a = columnDef.columnFilterModeOptions) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : columnFilterModeOptions === null || columnFilterModeOptions === void 0 ? void 0 : columnFilterModeOptions[0]) !== null && _c !== void 0 ? _c : 'fuzzy' }));
1638
+ var _a;
1639
+ return (Object.assign(Object.assign({}, prev), { [header.id]: (_a = allowedColumnFilterOptions === null || allowedColumnFilterOptions === void 0 ? void 0 : allowedColumnFilterOptions[0]) !== null && _a !== void 0 ? _a : 'fuzzy' }));
1640
1640
  });
1641
1641
  };
1642
1642
  const handleFilterMenuOpen = (event) => {
@@ -1896,9 +1896,8 @@ const MRT_TableHeadCellResizeHandle = ({ header, table }) => {
1896
1896
  opacity: 1,
1897
1897
  },
1898
1898
  }), style: {
1899
- transform: column.getIsResizing()
1900
- ? `translateX(${((_a = getState().columnSizingInfo.deltaOffset) !== null && _a !== void 0 ? _a : 0) /
1901
- (columnResizeMode === 'onChange' ? 16 : 1)}px)`
1899
+ transform: column.getIsResizing() && columnResizeMode === 'onEnd'
1900
+ ? `translateX(${(_a = getState().columnSizingInfo.deltaOffset) !== null && _a !== void 0 ? _a : 0}px)`
1902
1901
  : undefined,
1903
1902
  } },
1904
1903
  React__default["default"].createElement(Divider__default["default"], { flexItem: true, orientation: "vertical", sx: {
@@ -2586,7 +2585,7 @@ const MRT_TableFooterRow = ({ footerGroup, table, virtualColumns, virtualPadding
2586
2585
  const tableRowProps = muiTableFooterRowProps instanceof Function
2587
2586
  ? muiTableFooterRowProps({ footerGroup, table })
2588
2587
  : muiTableFooterRowProps;
2589
- return (React__default["default"].createElement(TableRow__default["default"], Object.assign({}, tableRowProps, { sx: (theme) => (Object.assign({ display: layoutMode === 'grid' ? 'flex' : 'table-row', width: '100%' }, ((tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx) instanceof Function
2588
+ return (React__default["default"].createElement(TableRow__default["default"], Object.assign({}, tableRowProps, { sx: (theme) => (Object.assign({ backgroundColor: styles.lighten(theme.palette.background.default, 0.04), display: layoutMode === 'grid' ? 'flex' : 'table-row', width: '100%' }, ((tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx) instanceof Function
2590
2589
  ? tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx(theme)
2591
2590
  : tableRowProps === null || tableRowProps === void 0 ? void 0 : tableRowProps.sx))) }),
2592
2591
  virtualPaddingLeft ? (React__default["default"].createElement("th", { style: { display: 'flex', width: virtualPaddingLeft } })) : null,
@@ -2606,7 +2605,7 @@ const MRT_TableFooter = ({ table, virtualColumns, virtualPaddingLeft, virtualPad
2606
2605
  ? muiTableFooterProps({ table })
2607
2606
  : muiTableFooterProps;
2608
2607
  const stickFooter = (isFullScreen || enableStickyFooter) && enableStickyFooter !== false;
2609
- return (React__default["default"].createElement(TableFooter__default["default"], Object.assign({}, tableFooterProps, { sx: (theme) => (Object.assign({ backgroundColor: styles.lighten(theme.palette.background.default, 0.06), bottom: stickFooter ? 0 : undefined, display: layoutMode === 'grid' ? 'grid' : 'table-row-group', opacity: stickFooter ? 0.97 : undefined, outline: stickFooter
2608
+ return (React__default["default"].createElement(TableFooter__default["default"], Object.assign({}, tableFooterProps, { sx: (theme) => (Object.assign({ bottom: stickFooter ? 0 : undefined, display: layoutMode === 'grid' ? 'grid' : 'table-row-group', opacity: stickFooter ? 0.97 : undefined, outline: stickFooter
2610
2609
  ? theme.palette.mode === 'light'
2611
2610
  ? `1px solid ${theme.palette.grey[300]}`
2612
2611
  : `1px solid ${theme.palette.grey[700]}`