@cutting/material-react-table 4.0.0 → 4.0.2

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.
Files changed (64) hide show
  1. package/dist/index.d.ts +103 -114
  2. package/dist/index.esm.js +35 -114
  3. package/dist/index.esm.js.map +1 -1
  4. package/dist/index.js +151 -230
  5. package/dist/index.js.map +1 -1
  6. package/package.json +7 -7
  7. package/src/components/body/MRT_TableBody.tsx +2 -2
  8. package/src/components/body/MRT_TableBodyCell.tsx +2 -2
  9. package/src/components/body/MRT_TableBodyCellValue.tsx +1 -1
  10. package/src/components/body/MRT_TableBodyRow.tsx +1 -1
  11. package/src/components/body/MRT_TableBodyRowPinButton.tsx +1 -1
  12. package/src/components/body/MRT_TableDetailPanel.tsx +3 -3
  13. package/src/components/buttons/MRT_ColumnPinningButtons.tsx +3 -3
  14. package/src/components/buttons/MRT_CopyButton.tsx +2 -2
  15. package/src/components/buttons/MRT_EditActionButtons.tsx +5 -5
  16. package/src/components/buttons/MRT_ExpandAllButton.tsx +2 -2
  17. package/src/components/buttons/MRT_ExpandButton.tsx +2 -2
  18. package/src/components/buttons/MRT_GrabHandleButton.tsx +2 -2
  19. package/src/components/buttons/MRT_RowPinButton.tsx +2 -2
  20. package/src/components/buttons/MRT_ShowHideColumnsButton.tsx +2 -2
  21. package/src/components/buttons/MRT_ToggleDensePaddingButton.tsx +2 -2
  22. package/src/components/buttons/MRT_ToggleFiltersButton.tsx +2 -2
  23. package/src/components/buttons/MRT_ToggleFullScreenButton.tsx +2 -2
  24. package/src/components/buttons/MRT_ToggleGlobalFilterButton.tsx +2 -2
  25. package/src/components/buttons/MRT_ToggleRowActionMenuButton.tsx +2 -2
  26. package/src/components/footer/MRT_TableFooter.tsx +1 -1
  27. package/src/components/footer/MRT_TableFooterCell.tsx +1 -1
  28. package/src/components/footer/MRT_TableFooterRow.tsx +1 -1
  29. package/src/components/head/MRT_TableHead.tsx +1 -1
  30. package/src/components/head/MRT_TableHeadCell.tsx +2 -2
  31. package/src/components/head/MRT_TableHeadCellColumnActionsButton.tsx +2 -2
  32. package/src/components/head/MRT_TableHeadCellFilterContainer.tsx +1 -1
  33. package/src/components/head/MRT_TableHeadCellFilterLabel.tsx +5 -5
  34. package/src/components/head/MRT_TableHeadCellResizeHandle.tsx +2 -2
  35. package/src/components/head/MRT_TableHeadCellSortLabel.tsx +3 -5
  36. package/src/components/head/MRT_TableHeadRow.tsx +1 -1
  37. package/src/components/inputs/MRT_EditCellTextField.tsx +2 -2
  38. package/src/components/inputs/MRT_FilterCheckbox.tsx +3 -3
  39. package/src/components/inputs/MRT_FilterRangeFields.tsx +1 -1
  40. package/src/components/inputs/MRT_FilterRangeSlider.tsx +3 -3
  41. package/src/components/inputs/MRT_FilterTextField.tsx +9 -12
  42. package/src/components/inputs/MRT_GlobalFilterTextField.tsx +5 -5
  43. package/src/components/inputs/MRT_SelectCheckbox.tsx +3 -3
  44. package/src/components/menus/MRT_ActionMenuItem.tsx +4 -4
  45. package/src/components/menus/MRT_CellActionMenu.tsx +1 -1
  46. package/src/components/menus/MRT_ColumnActionMenu.tsx +1 -1
  47. package/src/components/menus/MRT_FilterOptionMenu.tsx +1 -1
  48. package/src/components/menus/MRT_RowActionMenu.tsx +1 -1
  49. package/src/components/menus/MRT_ShowHideColumnsMenu.tsx +4 -4
  50. package/src/components/menus/MRT_ShowHideColumnsMenuItems.tsx +6 -6
  51. package/src/components/modals/MRT_EditRowModal.tsx +5 -5
  52. package/src/components/table/MRT_Table.tsx +1 -1
  53. package/src/components/table/MRT_TableContainer.tsx +1 -3
  54. package/src/components/table/MRT_TableLoadingOverlay.tsx +2 -4
  55. package/src/components/table/MRT_TablePaper.tsx +1 -1
  56. package/src/components/toolbar/MRT_BottomToolbar.tsx +1 -1
  57. package/src/components/toolbar/MRT_LinearProgressBar.tsx +2 -4
  58. package/src/components/toolbar/MRT_TablePagination.tsx +9 -9
  59. package/src/components/toolbar/MRT_ToolbarAlertBanner.tsx +7 -7
  60. package/src/components/toolbar/MRT_ToolbarDropZone.tsx +3 -3
  61. package/src/components/toolbar/MRT_ToolbarInternalButtons.tsx +1 -1
  62. package/src/components/toolbar/MRT_TopToolbar.tsx +1 -1
  63. package/src/hooks/display-columns/getMRT_RowExpandColumnDef.tsx +2 -2
  64. package/src/icons.ts +1 -35
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.0.0",
2
+ "version": "4.0.2",
3
3
  "license": "MIT",
4
4
  "name": "@cutting/material-react-table",
5
5
  "description": "Maintenance fork of material-react-table updated for Material UI v9. A fully featured Material UI implementation of TanStack React Table V8.",
@@ -40,11 +40,11 @@
40
40
  "size-limit": [
41
41
  {
42
42
  "path": "dist/index.js",
43
- "limit": "55 KB"
43
+ "limit": "56 KB"
44
44
  },
45
45
  {
46
46
  "path": "dist/index.esm.js",
47
- "limit": "52 KB"
47
+ "limit": "53 KB"
48
48
  }
49
49
  ],
50
50
  "engines": {
@@ -58,7 +58,7 @@
58
58
  "@faker-js/faker": "^10.4.0",
59
59
  "@mui/icons-material": "^9.0.1",
60
60
  "@mui/material": "^9.0.1",
61
- "@mui/x-date-pickers": "^9.2.0",
61
+ "@mui/x-date-pickers": "^9.3.0",
62
62
  "@rollup/plugin-typescript": "^12.3.0",
63
63
  "@size-limit/preset-small-lib": "^12.1.0",
64
64
  "@storybook/addon-a11y": "^10.4.0",
@@ -94,8 +94,8 @@
94
94
  "storybook-dark-mode": "^5.0.0",
95
95
  "tslib": "^2.8.1",
96
96
  "typescript": "6.0.3",
97
- "vite": "^8.0.13",
98
- "vitest": "^4.1.6"
97
+ "vite": "^8.0.14",
98
+ "vitest": "^4.1.7"
99
99
  },
100
100
  "peerDependencies": {
101
101
  "@emotion/react": ">=11.13",
@@ -109,7 +109,7 @@
109
109
  "dependencies": {
110
110
  "@tanstack/match-sorter-utils": "8.19.4",
111
111
  "@tanstack/react-table": "8.21.3",
112
- "@tanstack/react-virtual": "3.13.24",
112
+ "@tanstack/react-virtual": "3.13.25",
113
113
  "highlight-words": "2.0.0"
114
114
  },
115
115
  "scripts": {
@@ -1,5 +1,5 @@
1
- import TableBody, { type TableBodyProps } from '@mui/material/TableBody';
2
- import Typography from '@mui/material/Typography';
1
+ import { TableBody, type TableBodyProps } from '@mui/material';
2
+ import { Typography } from '@mui/material';
3
3
  import { type VirtualItem } from '@tanstack/react-virtual';
4
4
  import { memo, useMemo } from 'react';
5
5
 
@@ -1,6 +1,6 @@
1
- import Skeleton from '@mui/material/Skeleton';
1
+ import { Skeleton } from '@mui/material';
2
+ import { TableCell, type TableCellProps } from '@mui/material';
2
3
  import { useTheme } from '@mui/material/styles';
3
- import TableCell, { type TableCellProps } from '@mui/material/TableCell';
4
4
  import {
5
5
  type DragEvent,
6
6
  memo,
@@ -1,4 +1,4 @@
1
- import Box from '@mui/material/Box';
1
+ import { Box } from '@mui/material';
2
2
  import highlightWords from 'highlight-words';
3
3
  import { type ReactNode, type RefObject } from 'react';
4
4
 
@@ -1,5 +1,5 @@
1
+ import { TableRow, type TableRowProps } from '@mui/material';
1
2
  import { alpha, darken, lighten, type Theme, useTheme } from '@mui/material/styles';
2
- import TableRow, { type TableRowProps } from '@mui/material/TableRow';
3
3
  import { type VirtualItem } from '@tanstack/react-virtual';
4
4
  import { type DragEvent, memo, useMemo, useRef } from 'react';
5
5
 
@@ -1,4 +1,4 @@
1
- import Box from '@mui/material/Box';
1
+ import { Box } from '@mui/material';
2
2
  import { type IconButtonProps } from '@mui/material/IconButton';
3
3
 
4
4
  import {
@@ -1,6 +1,6 @@
1
- import Collapse from '@mui/material/Collapse';
2
- import TableCell, { type TableCellProps } from '@mui/material/TableCell';
3
- import TableRow from '@mui/material/TableRow';
1
+ import { Collapse } from '@mui/material';
2
+ import { TableCell, type TableCellProps } from '@mui/material';
3
+ import { TableRow } from '@mui/material';
4
4
  import { type RefObject } from 'react';
5
5
 
6
6
  import {
@@ -1,6 +1,6 @@
1
- import Box, { type BoxProps } from '@mui/material/Box';
2
- import IconButton from '@mui/material/IconButton';
3
- import Tooltip from '@mui/material/Tooltip';
1
+ import { Box, type BoxProps } from '@mui/material';
2
+ import { IconButton } from '@mui/material';
3
+ import { Tooltip } from '@mui/material';
4
4
 
5
5
  import {
6
6
  type MRT_Column,
@@ -1,5 +1,5 @@
1
- import Button, { type ButtonProps } from '@mui/material/Button';
2
- import Tooltip from '@mui/material/Tooltip';
1
+ import { Button, type ButtonProps } from '@mui/material';
2
+ import { Tooltip } from '@mui/material';
3
3
  import { type MouseEvent, useState } from 'react';
4
4
 
5
5
  import {
@@ -1,8 +1,8 @@
1
- import Box, { type BoxProps } from '@mui/material/Box';
2
- import Button from '@mui/material/Button';
3
- import CircularProgress from '@mui/material/CircularProgress';
4
- import IconButton from '@mui/material/IconButton';
5
- import Tooltip from '@mui/material/Tooltip';
1
+ import { Box, type BoxProps } from '@mui/material';
2
+ import { Button } from '@mui/material';
3
+ import { CircularProgress } from '@mui/material';
4
+ import { IconButton } from '@mui/material';
5
+ import { Tooltip } from '@mui/material';
6
6
 
7
7
  import {
8
8
  type MRT_Row,
@@ -1,5 +1,5 @@
1
- import IconButton, { type IconButtonProps } from '@mui/material/IconButton';
2
- import Tooltip from '@mui/material/Tooltip';
1
+ import { IconButton, type IconButtonProps } from '@mui/material';
2
+ import { Tooltip } from '@mui/material';
3
3
 
4
4
  import { type MRT_RowData, type MRT_TableInstance } from '../../types';
5
5
  import { getCommonTooltipProps } from '../../utils/style.utils';
@@ -1,6 +1,6 @@
1
- import IconButton, { type IconButtonProps } from '@mui/material/IconButton';
1
+ import { IconButton, type IconButtonProps } from '@mui/material';
2
+ import { Tooltip } from '@mui/material';
2
3
  import { useTheme } from '@mui/material/styles';
3
- import Tooltip from '@mui/material/Tooltip';
4
4
  import { type MouseEvent } from 'react';
5
5
 
6
6
  import {
@@ -1,5 +1,5 @@
1
- import IconButton, { type IconButtonProps } from '@mui/material/IconButton';
2
- import Tooltip from '@mui/material/Tooltip';
1
+ import { IconButton, type IconButtonProps } from '@mui/material';
2
+ import { Tooltip } from '@mui/material';
3
3
  import { type DragEventHandler } from 'react';
4
4
 
5
5
  import { type MRT_RowData, type MRT_TableInstance } from '../../types';
@@ -1,5 +1,5 @@
1
- import IconButton, { type IconButtonProps } from '@mui/material/IconButton';
2
- import Tooltip from '@mui/material/Tooltip';
1
+ import { IconButton, type IconButtonProps } from '@mui/material';
2
+ import { Tooltip } from '@mui/material';
3
3
  import { type RowPinningPosition } from '@tanstack/react-table';
4
4
  import { type MouseEvent, useState } from 'react';
5
5
 
@@ -1,5 +1,5 @@
1
- import IconButton, { type IconButtonProps } from '@mui/material/IconButton';
2
- import Tooltip from '@mui/material/Tooltip';
1
+ import { IconButton, type IconButtonProps } from '@mui/material';
2
+ import { Tooltip } from '@mui/material';
3
3
  import { type MouseEvent, useState } from 'react';
4
4
 
5
5
  import { type MRT_RowData, type MRT_TableInstance } from '../../types';
@@ -1,5 +1,5 @@
1
- import IconButton, { type IconButtonProps } from '@mui/material/IconButton';
2
- import Tooltip from '@mui/material/Tooltip';
1
+ import { IconButton, type IconButtonProps } from '@mui/material';
2
+ import { Tooltip } from '@mui/material';
3
3
 
4
4
  import { type MRT_RowData, type MRT_TableInstance } from '../../types';
5
5
 
@@ -1,5 +1,5 @@
1
- import IconButton, { type IconButtonProps } from '@mui/material/IconButton';
2
- import Tooltip from '@mui/material/Tooltip';
1
+ import { IconButton, type IconButtonProps } from '@mui/material';
2
+ import { Tooltip } from '@mui/material';
3
3
 
4
4
  import { type MRT_RowData, type MRT_TableInstance } from '../../types';
5
5
 
@@ -1,5 +1,5 @@
1
- import IconButton, { type IconButtonProps } from '@mui/material/IconButton';
2
- import Tooltip from '@mui/material/Tooltip';
1
+ import { IconButton, type IconButtonProps } from '@mui/material';
2
+ import { Tooltip } from '@mui/material';
3
3
  import { useState } from 'react';
4
4
 
5
5
  import { type MRT_RowData, type MRT_TableInstance } from '../../types';
@@ -1,5 +1,5 @@
1
- import IconButton, { type IconButtonProps } from '@mui/material/IconButton';
2
- import Tooltip from '@mui/material/Tooltip';
1
+ import { IconButton, type IconButtonProps } from '@mui/material';
2
+ import { Tooltip } from '@mui/material';
3
3
 
4
4
  import { type MRT_RowData, type MRT_TableInstance } from '../../types';
5
5
 
@@ -1,5 +1,5 @@
1
- import IconButton, { type IconButtonProps } from '@mui/material/IconButton';
2
- import Tooltip from '@mui/material/Tooltip';
1
+ import { IconButton, type IconButtonProps } from '@mui/material';
2
+ import { Tooltip } from '@mui/material';
3
3
  import { type MouseEvent, useState } from 'react';
4
4
 
5
5
  import {
@@ -1,4 +1,4 @@
1
- import TableFooter, { type TableFooterProps } from '@mui/material/TableFooter';
1
+ import { TableFooter, type TableFooterProps } from '@mui/material';
2
2
 
3
3
  import {
4
4
  type MRT_ColumnVirtualizer,
@@ -1,5 +1,5 @@
1
+ import { TableCell, type TableCellProps } from '@mui/material';
1
2
  import { useTheme } from '@mui/material/styles';
2
- import TableCell, { type TableCellProps } from '@mui/material/TableCell';
3
3
 
4
4
  import {
5
5
  type MRT_Header,
@@ -1,4 +1,4 @@
1
- import TableRow, { type TableRowProps } from '@mui/material/TableRow';
1
+ import { TableRow, type TableRowProps } from '@mui/material';
2
2
 
3
3
  import {
4
4
  type MRT_ColumnVirtualizer,
@@ -1,4 +1,4 @@
1
- import TableHead, { type TableHeadProps } from '@mui/material/TableHead';
1
+ import { TableHead, type TableHeadProps } from '@mui/material';
2
2
 
3
3
  import {
4
4
  type MRT_ColumnVirtualizer,
@@ -1,7 +1,7 @@
1
- import Box from '@mui/material/Box';
1
+ import { Box } from '@mui/material';
2
+ import { TableCell, type TableCellProps } from '@mui/material';
2
3
  import { useTheme } from '@mui/material/styles';
3
4
  import { type Theme } from '@mui/material/styles';
4
- import TableCell, { type TableCellProps } from '@mui/material/TableCell';
5
5
  import { type DragEvent, useCallback, useMemo } from 'react';
6
6
 
7
7
  import {
@@ -1,5 +1,5 @@
1
- import IconButton, { type IconButtonProps } from '@mui/material/IconButton';
2
- import Tooltip from '@mui/material/Tooltip';
1
+ import { IconButton, type IconButtonProps } from '@mui/material';
2
+ import { Tooltip } from '@mui/material';
3
3
  import { type MouseEvent, useState } from 'react';
4
4
 
5
5
  import {
@@ -1,4 +1,4 @@
1
- import Collapse, { type CollapseProps } from '@mui/material/Collapse';
1
+ import { Collapse, type CollapseProps } from '@mui/material';
2
2
 
3
3
  import {
4
4
  type MRT_Header,
@@ -1,8 +1,8 @@
1
- import Box from '@mui/material/Box';
2
- import Grow from '@mui/material/Grow';
3
- import IconButton, { type IconButtonProps } from '@mui/material/IconButton';
4
- import Popover from '@mui/material/Popover';
5
- import Tooltip from '@mui/material/Tooltip';
1
+ import { Box } from '@mui/material';
2
+ import { Grow } from '@mui/material';
3
+ import { IconButton, type IconButtonProps } from '@mui/material';
4
+ import { Popover } from '@mui/material';
5
+ import { Tooltip } from '@mui/material';
6
6
  import { type MouseEvent, useState } from 'react';
7
7
 
8
8
  import {
@@ -1,5 +1,5 @@
1
- import Box from '@mui/material/Box';
2
- import Divider, { type DividerProps } from '@mui/material/Divider';
1
+ import { Box } from '@mui/material';
2
+ import { Divider, type DividerProps } from '@mui/material';
3
3
 
4
4
  import {
5
5
  type MRT_Header,
@@ -1,8 +1,6 @@
1
- import Badge from '@mui/material/Badge';
2
- import TableSortLabel, {
3
- type TableSortLabelProps,
4
- } from '@mui/material/TableSortLabel';
5
- import Tooltip from '@mui/material/Tooltip';
1
+ import { Badge } from '@mui/material';
2
+ import { TableSortLabel, type TableSortLabelProps } from '@mui/material';
3
+ import { Tooltip } from '@mui/material';
6
4
 
7
5
  import {
8
6
  type MRT_Header,
@@ -1,5 +1,5 @@
1
+ import { TableRow, type TableRowProps } from '@mui/material';
1
2
  import { alpha } from '@mui/material/styles';
2
- import TableRow, { type TableRowProps } from '@mui/material/TableRow';
3
3
 
4
4
  import {
5
5
  type MRT_ColumnVirtualizer,
@@ -1,5 +1,5 @@
1
- import MenuItem from '@mui/material/MenuItem';
2
- import TextField from '@mui/material/TextField';
1
+ import { MenuItem } from '@mui/material';
2
+ import { TextField } from '@mui/material';
3
3
  import { type TextFieldProps } from '@mui/material/TextField';
4
4
  import {
5
5
  type ChangeEvent,
@@ -1,6 +1,6 @@
1
- import Checkbox, { type CheckboxProps } from '@mui/material/Checkbox';
2
- import FormControlLabel from '@mui/material/FormControlLabel';
3
- import Tooltip from '@mui/material/Tooltip';
1
+ import { Checkbox, type CheckboxProps } from '@mui/material';
2
+ import { FormControlLabel } from '@mui/material';
3
+ import { Tooltip } from '@mui/material';
4
4
 
5
5
  import {
6
6
  type MRT_Column,
@@ -1,4 +1,4 @@
1
- import Box, { type BoxProps } from '@mui/material/Box';
1
+ import { Box, type BoxProps } from '@mui/material';
2
2
 
3
3
  import {
4
4
  type MRT_Header,
@@ -1,6 +1,6 @@
1
- import FormHelperText from '@mui/material/FormHelperText';
2
- import Slider, { type SliderProps } from '@mui/material/Slider';
3
- import Stack from '@mui/material/Stack';
1
+ import { FormHelperText } from '@mui/material';
2
+ import { Slider, type SliderProps } from '@mui/material';
3
+ import { Stack } from '@mui/material';
4
4
  import { useEffect, useRef, useState } from 'react';
5
5
 
6
6
  import {
@@ -1,15 +1,12 @@
1
- import Autocomplete, {
2
- type AutocompleteInputChangeReason,
3
- type AutocompleteRenderInputParams,
4
- } from '@mui/material/Autocomplete';
5
- import Box from '@mui/material/Box';
6
- import Checkbox from '@mui/material/Checkbox';
7
- import Chip from '@mui/material/Chip';
8
- import IconButton from '@mui/material/IconButton';
9
- import InputAdornment from '@mui/material/InputAdornment';
10
- import MenuItem from '@mui/material/MenuItem';
11
- import TextField, { type TextFieldProps } from '@mui/material/TextField';
12
- import Tooltip from '@mui/material/Tooltip';
1
+ import { Autocomplete, type AutocompleteInputChangeReason, type AutocompleteRenderInputParams } from '@mui/material';
2
+ import { Box } from '@mui/material';
3
+ import { Checkbox } from '@mui/material';
4
+ import { Chip } from '@mui/material';
5
+ import { IconButton } from '@mui/material';
6
+ import { InputAdornment } from '@mui/material';
7
+ import { MenuItem } from '@mui/material';
8
+ import { TextField, type TextFieldProps } from '@mui/material';
9
+ import { Tooltip } from '@mui/material';
13
10
  import { debounce } from '@mui/material/utils';
14
11
  import { DatePicker } from '@mui/x-date-pickers/DatePicker';
15
12
  import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker';
@@ -1,8 +1,8 @@
1
- import Collapse from '@mui/material/Collapse';
2
- import IconButton from '@mui/material/IconButton';
3
- import InputAdornment from '@mui/material/InputAdornment';
4
- import TextField, { type TextFieldProps } from '@mui/material/TextField';
5
- import Tooltip from '@mui/material/Tooltip';
1
+ import { Collapse } from '@mui/material';
2
+ import { IconButton } from '@mui/material';
3
+ import { InputAdornment } from '@mui/material';
4
+ import { TextField, type TextFieldProps } from '@mui/material';
5
+ import { Tooltip } from '@mui/material';
6
6
  import { debounce } from '@mui/material/utils';
7
7
  import {
8
8
  type ChangeEvent,
@@ -1,7 +1,7 @@
1
- import Checkbox, { type CheckboxProps } from '@mui/material/Checkbox';
2
- import Radio, { type RadioProps } from '@mui/material/Radio';
1
+ import { Checkbox, type CheckboxProps } from '@mui/material';
2
+ import { Radio, type RadioProps } from '@mui/material';
3
+ import { Tooltip } from '@mui/material';
3
4
  import { type Theme } from '@mui/material/styles';
4
- import Tooltip from '@mui/material/Tooltip';
5
5
  import { type MouseEvent } from 'react';
6
6
 
7
7
  import {
@@ -1,7 +1,7 @@
1
- import Box from '@mui/material/Box';
2
- import IconButton from '@mui/material/IconButton';
3
- import ListItemIcon from '@mui/material/ListItemIcon';
4
- import MenuItem, { type MenuItemProps } from '@mui/material/MenuItem';
1
+ import { Box } from '@mui/material';
2
+ import { IconButton } from '@mui/material';
3
+ import { ListItemIcon } from '@mui/material';
4
+ import { MenuItem, type MenuItemProps } from '@mui/material';
5
5
  import { type ReactNode } from 'react';
6
6
 
7
7
  import { type MRT_RowData, type MRT_TableInstance } from '../../types';
@@ -1,4 +1,4 @@
1
- import Menu, { type MenuProps } from '@mui/material/Menu';
1
+ import { Menu, type MenuProps } from '@mui/material';
2
2
 
3
3
  import { type MRT_RowData, type MRT_TableInstance } from '../../types';
4
4
  import { openEditingCell } from '../../utils/cell.utils';
@@ -1,4 +1,4 @@
1
- import Menu, { type MenuProps } from '@mui/material/Menu';
1
+ import { Menu, type MenuProps } from '@mui/material';
2
2
  import { type MouseEvent, useState } from 'react';
3
3
 
4
4
  import {
@@ -1,4 +1,4 @@
1
- import Menu, { type MenuProps } from '@mui/material/Menu';
1
+ import { Menu, type MenuProps } from '@mui/material';
2
2
  import { useMemo } from 'react';
3
3
 
4
4
  import {
@@ -1,4 +1,4 @@
1
- import Menu, { type MenuProps } from '@mui/material/Menu';
1
+ import { Menu, type MenuProps } from '@mui/material';
2
2
  import { type MouseEvent, type ReactNode, useMemo } from 'react';
3
3
 
4
4
  import {
@@ -1,7 +1,7 @@
1
- import Box from '@mui/material/Box';
2
- import Button from '@mui/material/Button';
3
- import Divider from '@mui/material/Divider';
4
- import Menu, { type MenuProps } from '@mui/material/Menu';
1
+ import { Box } from '@mui/material';
2
+ import { Button } from '@mui/material';
3
+ import { Divider } from '@mui/material';
4
+ import { Menu, type MenuProps } from '@mui/material';
5
5
  import { useMemo, useState } from 'react';
6
6
 
7
7
  import {
@@ -1,9 +1,9 @@
1
- import Box from '@mui/material/Box';
2
- import FormControlLabel from '@mui/material/FormControlLabel';
3
- import MenuItem, { type MenuItemProps } from '@mui/material/MenuItem';
4
- import Switch from '@mui/material/Switch';
5
- import Tooltip from '@mui/material/Tooltip';
6
- import Typography from '@mui/material/Typography';
1
+ import { Box } from '@mui/material';
2
+ import { FormControlLabel } from '@mui/material';
3
+ import { MenuItem, type MenuItemProps } from '@mui/material';
4
+ import { Switch } from '@mui/material';
5
+ import { Tooltip } from '@mui/material';
6
+ import { Typography } from '@mui/material';
7
7
  import {
8
8
  type Dispatch,
9
9
  type DragEvent,
@@ -1,8 +1,8 @@
1
- import Dialog, { type DialogProps } from '@mui/material/Dialog';
2
- import DialogActions from '@mui/material/DialogActions';
3
- import DialogContent from '@mui/material/DialogContent';
4
- import DialogTitle from '@mui/material/DialogTitle';
5
- import Stack from '@mui/material/Stack';
1
+ import { Dialog, type DialogProps } from '@mui/material';
2
+ import { DialogActions } from '@mui/material';
3
+ import { DialogContent } from '@mui/material';
4
+ import { DialogTitle } from '@mui/material';
5
+ import { Stack } from '@mui/material';
6
6
 
7
7
  import {
8
8
  type MRT_Row,
@@ -1,4 +1,4 @@
1
- import Table, { type TableProps } from '@mui/material/Table';
1
+ import { Table, type TableProps } from '@mui/material';
2
2
  import { useMemo } from 'react';
3
3
 
4
4
  import { useMRT_ColumnVirtualizer } from '../../hooks/useMRT_ColumnVirtualizer';
@@ -1,6 +1,4 @@
1
- import TableContainer, {
2
- type TableContainerProps,
3
- } from '@mui/material/TableContainer';
1
+ import { TableContainer, type TableContainerProps } from '@mui/material';
4
2
  import { useEffect, useLayoutEffect, useState } from 'react';
5
3
 
6
4
  import { type MRT_RowData, type MRT_TableInstance } from '../../types';
@@ -1,7 +1,5 @@
1
- import Box from '@mui/material/Box';
2
- import CircularProgress, {
3
- type CircularProgressProps,
4
- } from '@mui/material/CircularProgress';
1
+ import { Box } from '@mui/material';
2
+ import { CircularProgress, type CircularProgressProps } from '@mui/material';
5
3
  import { alpha } from '@mui/material/styles';
6
4
 
7
5
  import { type MRT_RowData, type MRT_TableInstance } from '../../types';
@@ -1,4 +1,4 @@
1
- import Paper, { type PaperProps } from '@mui/material/Paper';
1
+ import { Paper, type PaperProps } from '@mui/material';
2
2
  import { useTheme } from '@mui/material/styles';
3
3
 
4
4
  import { type MRT_RowData, type MRT_TableInstance } from '../../types';
@@ -1,4 +1,4 @@
1
- import Box, { type BoxProps } from '@mui/material/Box';
1
+ import { Box, type BoxProps } from '@mui/material';
2
2
  import { alpha } from '@mui/material/styles';
3
3
  import useMediaQuery from '@mui/material/useMediaQuery';
4
4
 
@@ -1,7 +1,5 @@
1
- import Collapse from '@mui/material/Collapse';
2
- import LinearProgress, {
3
- type LinearProgressProps,
4
- } from '@mui/material/LinearProgress';
1
+ import { Collapse } from '@mui/material';
2
+ import { LinearProgress, type LinearProgressProps } from '@mui/material';
5
3
 
6
4
  import { type MRT_RowData, type MRT_TableInstance } from '../../types';
7
5
  import { parseFromValuesOrFunc } from '../../utils/utils';
@@ -1,13 +1,13 @@
1
- import Box from '@mui/material/Box';
2
- import IconButton from '@mui/material/IconButton';
3
- import InputLabel from '@mui/material/InputLabel';
4
- import MenuItem from '@mui/material/MenuItem';
5
- import Pagination, { type PaginationProps } from '@mui/material/Pagination';
6
- import PaginationItem from '@mui/material/PaginationItem';
7
- import Select, { type SelectProps } from '@mui/material/Select';
1
+ import { Box } from '@mui/material';
2
+ import { IconButton } from '@mui/material';
3
+ import { InputLabel } from '@mui/material';
4
+ import { MenuItem } from '@mui/material';
5
+ import { Pagination, type PaginationProps } from '@mui/material';
6
+ import { PaginationItem } from '@mui/material';
7
+ import { Select, type SelectProps } from '@mui/material';
8
+ import { Tooltip } from '@mui/material';
9
+ import { Typography } from '@mui/material';
8
10
  import { useTheme } from '@mui/material/styles';
9
- import Tooltip from '@mui/material/Tooltip';
10
- import Typography from '@mui/material/Typography';
11
11
  import useMediaQuery from '@mui/material/useMediaQuery';
12
12
 
13
13
  import { type MRT_RowData, type MRT_TableInstance } from '../../types';
@@ -1,10 +1,10 @@
1
- import Alert, { type AlertProps } from '@mui/material/Alert';
2
- import AlertTitle from '@mui/material/AlertTitle';
3
- import Box from '@mui/material/Box';
4
- import Button from '@mui/material/Button';
5
- import Chip from '@mui/material/Chip';
6
- import Collapse from '@mui/material/Collapse';
7
- import Stack from '@mui/material/Stack';
1
+ import { Alert, type AlertProps } from '@mui/material';
2
+ import { AlertTitle } from '@mui/material';
3
+ import { Box } from '@mui/material';
4
+ import { Button } from '@mui/material';
5
+ import { Chip } from '@mui/material';
6
+ import { Collapse } from '@mui/material';
7
+ import { Stack } from '@mui/material';
8
8
  import { Fragment, useMemo } from 'react';
9
9
 
10
10
  import { type MRT_RowData, type MRT_TableInstance } from '../../types';