material-react-table 0.8.3 → 0.8.6

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.8.3",
2
+ "version": "0.8.6",
3
3
  "license": "MIT",
4
4
  "name": "material-react-table",
5
5
  "description": "A fully featured Material UI implementation of Tanstack react-table, inspired by material-table and the MUI X DataGrid, written from the ground up in TypeScript.",
@@ -70,7 +70,7 @@
70
70
  "@storybook/addon-links": "^6.5.5",
71
71
  "@storybook/addons": "^6.5.5",
72
72
  "@storybook/react": "^6.5.5",
73
- "@types/react": "^18.0.9",
73
+ "@types/react": "^18.0.10",
74
74
  "@types/react-dom": "^18.0.5",
75
75
  "babel-loader": "^8.2.5",
76
76
  "eslint": "^8.16.0",
@@ -80,6 +80,7 @@
80
80
  "react": "^17.0.2",
81
81
  "react-dom": "^17.0.2",
82
82
  "react-is": "^18.1.0",
83
+ "rollup-plugin-commonjs": "^10.1.0",
83
84
  "size-limit": "^7.0.8",
84
85
  "storybook-dark-mode": "^1.1.0",
85
86
  "tsdx": "^0.14.1",
@@ -13,7 +13,7 @@ export const MRT_ExpandAllButton: FC<Props> = ({ tableInstance }) => {
13
13
  getCanSomeRowsExpand,
14
14
  getState,
15
15
  options: {
16
- icons: { DoubleArrowDownIcon },
16
+ icons: { KeyboardDoubleArrowDownIcon },
17
17
  localization,
18
18
  renderDetailPanel,
19
19
  },
@@ -38,7 +38,7 @@ export const MRT_ExpandAllButton: FC<Props> = ({ tableInstance }) => {
38
38
  width: isDensePadding ? '1.75rem' : '2.25rem',
39
39
  }}
40
40
  >
41
- <DoubleArrowDownIcon
41
+ <KeyboardDoubleArrowDownIcon
42
42
  style={{
43
43
  transform: `rotate(${
44
44
  getIsAllRowsExpanded() ? -180 : getIsSomeRowsExpanded() ? -90 : 0
@@ -14,7 +14,7 @@ export const MRT_TableHeadCellFilterLabel: FC<Props> = ({
14
14
  const {
15
15
  getState,
16
16
  options: {
17
- icons: { FilterAltIcon, FilterAltOff },
17
+ icons: { FilterAltIcon, FilterAltOffIcon },
18
18
  localization,
19
19
  },
20
20
  setShowFilters,
@@ -72,7 +72,7 @@ export const MRT_TableHeadCellFilterLabel: FC<Props> = ({
72
72
  }}
73
73
  >
74
74
  {showFilters && !column.getFilterValue() ? (
75
- <FilterAltOff />
75
+ <FilterAltOffIcon />
76
76
  ) : (
77
77
  <FilterAltIcon />
78
78
  )}
package/src/icons.ts CHANGED
@@ -1,32 +1,34 @@
1
- import ArrowRightIcon from '@mui/icons-material/ArrowRight';
2
- import CancelIcon from '@mui/icons-material/Cancel';
3
- import CheckBoxIcon from '@mui/icons-material/CheckBox';
4
- import ClearAllIcon from '@mui/icons-material/ClearAll';
5
- import CloseIcon from '@mui/icons-material/Close';
6
- import DensityMediumIcon from '@mui/icons-material/DensityMedium';
7
- import DensitySmallIcon from '@mui/icons-material/DensitySmall';
8
- import DoubleArrowDownIcon from '@mui/icons-material/KeyboardDoubleArrowDown';
9
- import DragHandleIcon from '@mui/icons-material/DragHandle';
10
- import DynamicFeedIcon from '@mui/icons-material/DynamicFeed';
11
- import EditIcon from '@mui/icons-material/Edit';
12
- import ExpandLessIcon from '@mui/icons-material/ExpandLess';
13
- import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
14
- import FilterAltIcon from '@mui/icons-material/FilterAlt';
15
- import FilterAltOff from '@mui/icons-material/FilterAltOff';
16
- import FilterListIcon from '@mui/icons-material/FilterList';
17
- import FilterListOffIcon from '@mui/icons-material/FilterListOff';
18
- import FullscreenExitIcon from '@mui/icons-material/FullscreenExit';
19
- import FullscreenIcon from '@mui/icons-material/Fullscreen';
20
- import MoreHorizIcon from '@mui/icons-material/MoreHoriz';
21
- import MoreVertIcon from '@mui/icons-material/MoreVert';
22
- import PushPinIcon from '@mui/icons-material/PushPin';
23
- import RestartAltIcon from '@mui/icons-material/RestartAlt';
24
- import SaveIcon from '@mui/icons-material/Save';
25
- import SearchIcon from '@mui/icons-material/Search';
26
- import SearchOffIcon from '@mui/icons-material/SearchOff';
27
- import SortIcon from '@mui/icons-material/Sort';
28
- import ViewColumnIcon from '@mui/icons-material/ViewColumn';
29
- import VisibilityOffIcon from '@mui/icons-material/VisibilityOff';
1
+ import {
2
+ ArrowRight,
3
+ Cancel,
4
+ CheckBox,
5
+ ClearAll,
6
+ Close,
7
+ DensityMedium,
8
+ DensitySmall,
9
+ KeyboardDoubleArrowDown,
10
+ DragHandle,
11
+ DynamicFeed,
12
+ Edit,
13
+ ExpandLess,
14
+ ExpandMore,
15
+ FilterAlt,
16
+ FilterAltOff,
17
+ FilterList,
18
+ FilterListOff,
19
+ FullscreenExit,
20
+ Fullscreen,
21
+ MoreHoriz,
22
+ MoreVert,
23
+ PushPin,
24
+ RestartAlt,
25
+ Save,
26
+ Search,
27
+ SearchOff,
28
+ Sort,
29
+ ViewColumn,
30
+ VisibilityOff,
31
+ } from '@mui/icons-material';
30
32
 
31
33
  export interface MRT_Icons {
32
34
  ArrowRightIcon: any;
@@ -36,14 +38,14 @@ export interface MRT_Icons {
36
38
  CloseIcon: any;
37
39
  DensityMediumIcon: any;
38
40
  DensitySmallIcon: any;
39
- DoubleArrowDownIcon: any;
41
+ KeyboardDoubleArrowDownIcon: any;
40
42
  DragHandleIcon: any;
41
43
  DynamicFeedIcon: any;
42
44
  EditIcon: any;
43
45
  ExpandLessIcon: any;
44
46
  ExpandMoreIcon: any;
45
47
  FilterAltIcon: any;
46
- FilterAltOff: any;
48
+ FilterAltOffIcon: any;
47
49
  FilterListIcon: any;
48
50
  FilterListOffIcon: any;
49
51
  FullscreenExitIcon: any;
@@ -61,33 +63,33 @@ export interface MRT_Icons {
61
63
  }
62
64
 
63
65
  export const MRT_Default_Icons: MRT_Icons = {
64
- ArrowRightIcon,
65
- CancelIcon,
66
- CheckBoxIcon,
67
- ClearAllIcon,
68
- CloseIcon,
69
- DensityMediumIcon,
70
- DensitySmallIcon,
71
- DoubleArrowDownIcon,
72
- DragHandleIcon,
73
- DynamicFeedIcon,
74
- EditIcon,
75
- ExpandLessIcon,
76
- ExpandMoreIcon,
77
- FilterAltIcon,
78
- FilterAltOff,
79
- FilterListIcon,
80
- FilterListOffIcon,
81
- FullscreenExitIcon,
82
- FullscreenIcon,
83
- MoreHorizIcon,
84
- MoreVertIcon,
85
- PushPinIcon,
86
- RestartAltIcon,
87
- SaveIcon,
88
- SearchIcon,
89
- SearchOffIcon,
90
- SortIcon,
91
- ViewColumnIcon,
92
- VisibilityOffIcon,
66
+ ArrowRightIcon: ArrowRight,
67
+ CancelIcon: Cancel,
68
+ CheckBoxIcon: CheckBox,
69
+ ClearAllIcon: ClearAll,
70
+ CloseIcon: Close,
71
+ DensityMediumIcon: DensityMedium,
72
+ DensitySmallIcon: DensitySmall,
73
+ KeyboardDoubleArrowDownIcon: KeyboardDoubleArrowDown,
74
+ DragHandleIcon: DragHandle,
75
+ DynamicFeedIcon: DynamicFeed,
76
+ EditIcon: Edit,
77
+ ExpandLessIcon: ExpandLess,
78
+ ExpandMoreIcon: ExpandMore,
79
+ FilterAltIcon: FilterAlt,
80
+ FilterAltOffIcon: FilterAltOff,
81
+ FilterListIcon: FilterList,
82
+ FilterListOffIcon: FilterListOff,
83
+ FullscreenExitIcon: FullscreenExit,
84
+ FullscreenIcon: Fullscreen,
85
+ MoreHorizIcon: MoreHoriz,
86
+ MoreVertIcon: MoreVert,
87
+ PushPinIcon: PushPin,
88
+ RestartAltIcon: RestartAlt,
89
+ SaveIcon: Save,
90
+ SearchIcon: Search,
91
+ SearchOffIcon: SearchOff,
92
+ SortIcon: Sort,
93
+ ViewColumnIcon: ViewColumn,
94
+ VisibilityOffIcon: VisibilityOff,
93
95
  };