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/dist/icons.d.ts +2 -2
- package/dist/material-react-table.cjs.development.js +34 -62
- package/dist/material-react-table.cjs.development.js.map +1 -1
- package/dist/material-react-table.cjs.production.min.js +1 -1
- package/dist/material-react-table.cjs.production.min.js.map +1 -1
- package/dist/material-react-table.esm.js +34 -62
- package/dist/material-react-table.esm.js.map +1 -1
- package/package.json +3 -2
- package/src/buttons/MRT_ExpandAllButton.tsx +2 -2
- package/src/head/MRT_TableHeadCellFilterLabel.tsx +2 -2
- package/src/icons.ts +62 -60
package/dist/icons.d.ts
CHANGED
|
@@ -6,14 +6,14 @@ export interface MRT_Icons {
|
|
|
6
6
|
CloseIcon: any;
|
|
7
7
|
DensityMediumIcon: any;
|
|
8
8
|
DensitySmallIcon: any;
|
|
9
|
-
|
|
9
|
+
KeyboardDoubleArrowDownIcon: any;
|
|
10
10
|
DragHandleIcon: any;
|
|
11
11
|
DynamicFeedIcon: any;
|
|
12
12
|
EditIcon: any;
|
|
13
13
|
ExpandLessIcon: any;
|
|
14
14
|
ExpandMoreIcon: any;
|
|
15
15
|
FilterAltIcon: any;
|
|
16
|
-
|
|
16
|
+
FilterAltOffIcon: any;
|
|
17
17
|
FilterListIcon: any;
|
|
18
18
|
FilterListOffIcon: any;
|
|
19
19
|
FullscreenExitIcon: any;
|
|
@@ -6,35 +6,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
6
6
|
|
|
7
7
|
var React = require('react');
|
|
8
8
|
var React__default = _interopDefault(React);
|
|
9
|
-
var
|
|
10
|
-
var CancelIcon = _interopDefault(require('@mui/icons-material/Cancel'));
|
|
11
|
-
var CheckBoxIcon = _interopDefault(require('@mui/icons-material/CheckBox'));
|
|
12
|
-
var ClearAllIcon = _interopDefault(require('@mui/icons-material/ClearAll'));
|
|
13
|
-
var CloseIcon = _interopDefault(require('@mui/icons-material/Close'));
|
|
14
|
-
var DensityMediumIcon = _interopDefault(require('@mui/icons-material/DensityMedium'));
|
|
15
|
-
var DensitySmallIcon = _interopDefault(require('@mui/icons-material/DensitySmall'));
|
|
16
|
-
var DoubleArrowDownIcon = _interopDefault(require('@mui/icons-material/KeyboardDoubleArrowDown'));
|
|
17
|
-
var DragHandleIcon = _interopDefault(require('@mui/icons-material/DragHandle'));
|
|
18
|
-
var DynamicFeedIcon = _interopDefault(require('@mui/icons-material/DynamicFeed'));
|
|
19
|
-
var EditIcon = _interopDefault(require('@mui/icons-material/Edit'));
|
|
20
|
-
var ExpandLessIcon = _interopDefault(require('@mui/icons-material/ExpandLess'));
|
|
21
|
-
var ExpandMoreIcon = _interopDefault(require('@mui/icons-material/ExpandMore'));
|
|
22
|
-
var FilterAltIcon = _interopDefault(require('@mui/icons-material/FilterAlt'));
|
|
23
|
-
var FilterAltOff = _interopDefault(require('@mui/icons-material/FilterAltOff'));
|
|
24
|
-
var FilterListIcon = _interopDefault(require('@mui/icons-material/FilterList'));
|
|
25
|
-
var FilterListOffIcon = _interopDefault(require('@mui/icons-material/FilterListOff'));
|
|
26
|
-
var FullscreenExitIcon = _interopDefault(require('@mui/icons-material/FullscreenExit'));
|
|
27
|
-
var FullscreenIcon = _interopDefault(require('@mui/icons-material/Fullscreen'));
|
|
28
|
-
var MoreHorizIcon = _interopDefault(require('@mui/icons-material/MoreHoriz'));
|
|
29
|
-
var MoreVertIcon = _interopDefault(require('@mui/icons-material/MoreVert'));
|
|
30
|
-
var PushPinIcon = _interopDefault(require('@mui/icons-material/PushPin'));
|
|
31
|
-
var RestartAltIcon = _interopDefault(require('@mui/icons-material/RestartAlt'));
|
|
32
|
-
var SaveIcon = _interopDefault(require('@mui/icons-material/Save'));
|
|
33
|
-
var SearchIcon = _interopDefault(require('@mui/icons-material/Search'));
|
|
34
|
-
var SearchOffIcon = _interopDefault(require('@mui/icons-material/SearchOff'));
|
|
35
|
-
var SortIcon = _interopDefault(require('@mui/icons-material/Sort'));
|
|
36
|
-
var ViewColumnIcon = _interopDefault(require('@mui/icons-material/ViewColumn'));
|
|
37
|
-
var VisibilityOffIcon = _interopDefault(require('@mui/icons-material/VisibilityOff'));
|
|
9
|
+
var iconsMaterial = require('@mui/icons-material');
|
|
38
10
|
var reactTable = require('@tanstack/react-table');
|
|
39
11
|
var material = require('@mui/material');
|
|
40
12
|
var matchSorterUtils = require('@tanstack/match-sorter-utils');
|
|
@@ -145,35 +117,35 @@ var MRT_DefaultLocalization_EN = {
|
|
|
145
117
|
};
|
|
146
118
|
|
|
147
119
|
var MRT_Default_Icons = {
|
|
148
|
-
ArrowRightIcon:
|
|
149
|
-
CancelIcon:
|
|
150
|
-
CheckBoxIcon:
|
|
151
|
-
ClearAllIcon:
|
|
152
|
-
CloseIcon:
|
|
153
|
-
DensityMediumIcon:
|
|
154
|
-
DensitySmallIcon:
|
|
155
|
-
|
|
156
|
-
DragHandleIcon:
|
|
157
|
-
DynamicFeedIcon:
|
|
158
|
-
EditIcon:
|
|
159
|
-
ExpandLessIcon:
|
|
160
|
-
ExpandMoreIcon:
|
|
161
|
-
FilterAltIcon:
|
|
162
|
-
|
|
163
|
-
FilterListIcon:
|
|
164
|
-
FilterListOffIcon:
|
|
165
|
-
FullscreenExitIcon:
|
|
166
|
-
FullscreenIcon:
|
|
167
|
-
MoreHorizIcon:
|
|
168
|
-
MoreVertIcon:
|
|
169
|
-
PushPinIcon:
|
|
170
|
-
RestartAltIcon:
|
|
171
|
-
SaveIcon:
|
|
172
|
-
SearchIcon:
|
|
173
|
-
SearchOffIcon:
|
|
174
|
-
SortIcon:
|
|
175
|
-
ViewColumnIcon:
|
|
176
|
-
VisibilityOffIcon:
|
|
120
|
+
ArrowRightIcon: iconsMaterial.ArrowRight,
|
|
121
|
+
CancelIcon: iconsMaterial.Cancel,
|
|
122
|
+
CheckBoxIcon: iconsMaterial.CheckBox,
|
|
123
|
+
ClearAllIcon: iconsMaterial.ClearAll,
|
|
124
|
+
CloseIcon: iconsMaterial.Close,
|
|
125
|
+
DensityMediumIcon: iconsMaterial.DensityMedium,
|
|
126
|
+
DensitySmallIcon: iconsMaterial.DensitySmall,
|
|
127
|
+
KeyboardDoubleArrowDownIcon: iconsMaterial.KeyboardDoubleArrowDown,
|
|
128
|
+
DragHandleIcon: iconsMaterial.DragHandle,
|
|
129
|
+
DynamicFeedIcon: iconsMaterial.DynamicFeed,
|
|
130
|
+
EditIcon: iconsMaterial.Edit,
|
|
131
|
+
ExpandLessIcon: iconsMaterial.ExpandLess,
|
|
132
|
+
ExpandMoreIcon: iconsMaterial.ExpandMore,
|
|
133
|
+
FilterAltIcon: iconsMaterial.FilterAlt,
|
|
134
|
+
FilterAltOffIcon: iconsMaterial.FilterAltOff,
|
|
135
|
+
FilterListIcon: iconsMaterial.FilterList,
|
|
136
|
+
FilterListOffIcon: iconsMaterial.FilterListOff,
|
|
137
|
+
FullscreenExitIcon: iconsMaterial.FullscreenExit,
|
|
138
|
+
FullscreenIcon: iconsMaterial.Fullscreen,
|
|
139
|
+
MoreHorizIcon: iconsMaterial.MoreHoriz,
|
|
140
|
+
MoreVertIcon: iconsMaterial.MoreVert,
|
|
141
|
+
PushPinIcon: iconsMaterial.PushPin,
|
|
142
|
+
RestartAltIcon: iconsMaterial.RestartAlt,
|
|
143
|
+
SaveIcon: iconsMaterial.Save,
|
|
144
|
+
SearchIcon: iconsMaterial.Search,
|
|
145
|
+
SearchOffIcon: iconsMaterial.SearchOff,
|
|
146
|
+
SortIcon: iconsMaterial.Sort,
|
|
147
|
+
ViewColumnIcon: iconsMaterial.ViewColumn,
|
|
148
|
+
VisibilityOffIcon: iconsMaterial.VisibilityOff
|
|
177
149
|
};
|
|
178
150
|
|
|
179
151
|
var MRT_ExpandAllButton = function MRT_ExpandAllButton(_ref) {
|
|
@@ -183,7 +155,7 @@ var MRT_ExpandAllButton = function MRT_ExpandAllButton(_ref) {
|
|
|
183
155
|
getCanSomeRowsExpand = tableInstance.getCanSomeRowsExpand,
|
|
184
156
|
getState = tableInstance.getState,
|
|
185
157
|
_tableInstance$option = tableInstance.options,
|
|
186
|
-
|
|
158
|
+
KeyboardDoubleArrowDownIcon = _tableInstance$option.icons.KeyboardDoubleArrowDownIcon,
|
|
187
159
|
localization = _tableInstance$option.localization,
|
|
188
160
|
renderDetailPanel = _tableInstance$option.renderDetailPanel,
|
|
189
161
|
toggleAllRowsExpanded = tableInstance.toggleAllRowsExpanded;
|
|
@@ -206,7 +178,7 @@ var MRT_ExpandAllButton = function MRT_ExpandAllButton(_ref) {
|
|
|
206
178
|
height: isDensePadding ? '1.75rem' : '2.25rem',
|
|
207
179
|
width: isDensePadding ? '1.75rem' : '2.25rem'
|
|
208
180
|
}
|
|
209
|
-
}, React__default.createElement(
|
|
181
|
+
}, React__default.createElement(KeyboardDoubleArrowDownIcon, {
|
|
210
182
|
style: {
|
|
211
183
|
transform: "rotate(" + (getIsAllRowsExpanded() ? -180 : getIsSomeRowsExpanded() ? -90 : 0) + "deg)",
|
|
212
184
|
transition: 'transform 0.2s'
|
|
@@ -2063,7 +2035,7 @@ var MRT_TableHeadCellFilterLabel = function MRT_TableHeadCellFilterLabel(_ref) {
|
|
|
2063
2035
|
_tableInstance$option = tableInstance.options,
|
|
2064
2036
|
_tableInstance$option2 = _tableInstance$option.icons,
|
|
2065
2037
|
FilterAltIcon = _tableInstance$option2.FilterAltIcon,
|
|
2066
|
-
|
|
2038
|
+
FilterAltOffIcon = _tableInstance$option2.FilterAltOffIcon,
|
|
2067
2039
|
localization = _tableInstance$option.localization,
|
|
2068
2040
|
setShowFilters = tableInstance.setShowFilters;
|
|
2069
2041
|
|
|
@@ -2095,7 +2067,7 @@ var MRT_TableHeadCellFilterLabel = function MRT_TableHeadCellFilterLabel(_ref) {
|
|
|
2095
2067
|
opacity: 0.8
|
|
2096
2068
|
}
|
|
2097
2069
|
}
|
|
2098
|
-
}, showFilters && !column.getFilterValue() ? React__default.createElement(
|
|
2070
|
+
}, showFilters && !column.getFilterValue() ? React__default.createElement(FilterAltOffIcon, null) : React__default.createElement(FilterAltIcon, null)));
|
|
2099
2071
|
};
|
|
2100
2072
|
|
|
2101
2073
|
var MRT_TableHeadCellGrabHandle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|