material-react-table 0.4.8 → 0.4.9

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.4.8",
2
+ "version": "0.4.9",
3
3
  "license": "MIT",
4
4
  "name": "material-react-table",
5
5
  "description": "A fully featured Material-UI implementation of react-table, inspired by material-table and the mui DataGrid, written from the ground up in TypeScript.",
@@ -84,7 +84,11 @@ export type MRT_TableOptions<D extends {} = {}> = TableOptions<D> &
84
84
  UseResizeColumnsOptions<D> &
85
85
  UseRowSelectOptions<D> &
86
86
  UseRowStateOptions<D> &
87
- UseSortByOptions<D> & {};
87
+ UseSortByOptions<D> & {
88
+ columns: (Column<D> & MRT_ColumnInterface)[];
89
+ data: D[];
90
+ initialState?: Partial<MRT_TableState>;
91
+ };
88
92
 
89
93
  export type MRT_TableInstance<D extends {} = {}> = TableInstance<D> &
90
94
  UseTableInstanceProps<D> &
@@ -194,8 +198,7 @@ export type MRT_TableState<D extends {} = {}> = TableState<D> &
194
198
  showSearchTextField?: boolean;
195
199
  };
196
200
 
197
- export type MaterialReactTableProps<D extends {} = {}> = MRT_TableOptions<D> &
198
- UseTableOptions<D> &
201
+ export type MaterialReactTableProps<D extends {} = {}> = UseTableOptions<D> &
199
202
  UseExpandedOptions<D> &
200
203
  UseFiltersOptions<D> &
201
204
  UseGlobalFiltersOptions<D> &
@@ -204,9 +207,8 @@ export type MaterialReactTableProps<D extends {} = {}> = MRT_TableOptions<D> &
204
207
  UseResizeColumnsOptions<D> &
205
208
  UseRowSelectOptions<D> &
206
209
  UseRowStateOptions<D> &
207
- UseSortByOptions<D> & {
208
- columns: (Column<D> & MRT_ColumnInterface)[];
209
- data: D[];
210
+ UseSortByOptions<D> &
211
+ MRT_TableOptions<D> & {
210
212
  disableColumnActions?: boolean;
211
213
  disableColumnHiding?: boolean;
212
214
  disableDensePaddingToggle?: boolean;
@@ -226,7 +228,6 @@ export type MaterialReactTableProps<D extends {} = {}> = MRT_TableOptions<D> &
226
228
  hideToolbarInternalActions?: boolean;
227
229
  hideToolbarTop?: boolean;
228
230
  icons?: Partial<MRT_Icons>;
229
- initialState?: Partial<MRT_TableState>;
230
231
  isFetching?: boolean;
231
232
  isLoading?: boolean;
232
233
  localization?: Partial<MRT_Localization>;
@@ -79,7 +79,9 @@ export const MRT_TableBodyRow: FC<Props> = ({ row }) => {
79
79
  <MRT_ToggleRowActionMenuButton row={row} />
80
80
  )}
81
81
  </TableRow>
82
- {renderDetailPanel && <MRT_TableDetailPanel row={row} />}
82
+ {renderDetailPanel && !row.isGrouped && (
83
+ <MRT_TableDetailPanel row={row} />
84
+ )}
83
85
  </>
84
86
  );
85
87
  };