Skip to content

Commit

Permalink
release v2.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinVandy committed Dec 15, 2023
1 parent d69c69d commit eeb26bc
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
16 changes: 10 additions & 6 deletions apps/material-react-table-docs/pages/changelog.mdx
Expand Up @@ -12,33 +12,37 @@ import Head from 'next/head';

### Version 2

#### Version 2.0.5 - 12-05-2023
#### Version 2.0.6 - 2023-12-15

- Fixed horizontal scrollbar showing up in layoutMode grid with column resizing enabled

#### Version 2.0.5 - 2023-12-05

- Upgraded to TanStack Virtual `v3.0.1` stable release
- Added `MuiTablePagination-root` class to mrt pagination root element for easier styling
- Fixed potential duplicate key warning while rendering skeleton rows when `getRowId` table option is provided and doesn't properly return `undefined`
- Fixed `muiSearchTextFieldProps.InputProps` now able to partially overridden

#### Version 2.0.4 - 11-09-2023
#### Version 2.0.4 - 2023-11-09

- Add support for `'all'` rows pagination option
- Added `muiPaginationProps.SelectProps` support back to allow for native select

#### Version 2.0.3 - 11-06-2023
#### Version 2.0.3 - 2023-11-06

- Locale updates

#### Version 2.0.2 - 11-01-2023
#### Version 2.0.2 - 2023-11-01

- Fixed bug with popover filters null ref focus

#### Version 2.0.1 - 10-31-2023
#### Version 2.0.1 - 2023-10-31

- Fixed bug where edit row action menu was created for all editDisplayModes
- Fixed rest spread on table head row
- Changed pagination text to a span instead of with hardcoded 0 margin and padding

#### Version 2.0.0 - 10-27-2023
#### Version 2.0.0 - 2023-10-27

- Made `MaterialReactTable` a named export instead of a default export.
- Made `@mui/x-date-pickers` a required peer dependency.
Expand Down
2 changes: 1 addition & 1 deletion packages/material-react-table/package.json
@@ -1,5 +1,5 @@
{
"version": "2.0.5",
"version": "2.0.6",
"license": "MIT",
"name": "material-react-table",
"description": "A fully featured Material UI V5 implementation of TanStack React Table V8, written from the ground up in TypeScript.",
Expand Down
22 changes: 11 additions & 11 deletions packages/material-react-table/src/hooks/useMRT_DisplayColumns.tsx
Expand Up @@ -37,7 +37,7 @@ export const useMRT_DisplayColumns = <TData extends MRT_RowData>(
makeRowDragColumn,
makeRowActionsColumn,
makeRowExpandColumn,
makeSelectColumn,
makeRowSelectColumn,
makeRowNumbersColumn,
makeSpacerColumn,
]
Expand Down Expand Up @@ -73,7 +73,7 @@ export const useMRT_DisplayColumns = <TData extends MRT_RowData>(
);
};

function defaultDisplayColumnProps<TData extends Record<string, any> = {}>(
function defaultDisplayColumnProps<TData extends MRT_RowData>(
{
defaultDisplayColumn,
displayColumnDefOptions,
Expand All @@ -84,15 +84,15 @@ function defaultDisplayColumnProps<TData extends Record<string, any> = {}>(
size = 60,
) {
return {
header: header ? localization[header]! : '',
...defaultDisplayColumn,
header: header ? localization[header]! : '',
size,
...displayColumnDefOptions?.[id],
id,
size,
} as const;
}

function makeRowPinColumn<TData extends Record<string, any> = {}>(
function makeRowPinColumn<TData extends MRT_RowData>(
{ tableOptions }: Params<TData>,
order: MRT_ColumnOrderState,
): MRT_ColumnDef<TData> | null {
Expand All @@ -108,7 +108,7 @@ function makeRowPinColumn<TData extends Record<string, any> = {}>(
return null;
}

function makeRowDragColumn<TData extends Record<string, any> = {}>(
function makeRowDragColumn<TData extends MRT_RowData>(
{ tableOptions }: Params<TData>,
order: MRT_ColumnOrderState,
): MRT_ColumnDef<TData> | null {
Expand All @@ -128,7 +128,7 @@ function makeRowDragColumn<TData extends Record<string, any> = {}>(
return null;
}

function makeRowActionsColumn<TData extends Record<string, any> = {}>(
function makeRowActionsColumn<TData extends MRT_RowData>(
{ creatingRow, tableOptions }: Params<TData>,
order: MRT_ColumnOrderState,
): MRT_ColumnDef<TData> | null {
Expand All @@ -147,7 +147,7 @@ function makeRowActionsColumn<TData extends Record<string, any> = {}>(
return null;
}

function makeRowExpandColumn<TData extends Record<string, any> = {}>(
function makeRowExpandColumn<TData extends MRT_RowData>(
{ grouping, tableOptions }: Params<TData>,
order: MRT_ColumnOrderState,
): MRT_ColumnDef<TData> | null {
Expand All @@ -167,7 +167,7 @@ function makeRowExpandColumn<TData extends Record<string, any> = {}>(
return null;
}

function makeSelectColumn<TData extends Record<string, any> = {}>(
function makeRowSelectColumn<TData extends MRT_RowData>(
{ tableOptions }: Params<TData>,
order: MRT_ColumnOrderState,
): MRT_ColumnDef<TData> | null {
Expand All @@ -185,7 +185,7 @@ function makeSelectColumn<TData extends Record<string, any> = {}>(
return null;
}

function makeRowNumbersColumn<TData extends Record<string, any> = {}>(
function makeRowNumbersColumn<TData extends MRT_RowData>(
{ tableOptions }: Params<TData>,
order: MRT_ColumnOrderState,
): MRT_ColumnDef<TData> | null {
Expand All @@ -209,7 +209,7 @@ const blankColProps = {
},
};

function makeSpacerColumn<TData extends Record<string, any> = {}>(
function makeSpacerColumn<TData extends MRT_RowData>(
{ tableOptions }: Params<TData>,
order: MRT_ColumnOrderState,
): MRT_ColumnDef<TData> | null {
Expand Down

2 comments on commit eeb26bc

@vercel
Copy link

@vercel vercel bot commented on eeb26bc Dec 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on eeb26bc Dec 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.