diff --git a/packages/mantine-react-table/src/components/buttons/MRT_CopyButton.tsx b/packages/mantine-react-table/src/components/buttons/MRT_CopyButton.tsx index 0361a2f51..5694c7778 100644 --- a/packages/mantine-react-table/src/components/buttons/MRT_CopyButton.tsx +++ b/packages/mantine-react-table/src/components/buttons/MRT_CopyButton.tsx @@ -19,12 +19,16 @@ interface Props extends UnstyledButtonProps { cell: MRT_Cell; children: ReactNode; + renderedColumnIndex?: number; + renderedRowIndex?: number; table: MRT_TableInstance; } export const MRT_CopyButton = ({ cell, children, + renderedColumnIndex, + renderedRowIndex, table, ...rest }: Props) => { diff --git a/packages/mantine-react-table/src/components/table/MRT_Table.tsx b/packages/mantine-react-table/src/components/table/MRT_Table.tsx index 8c716a054..84177971e 100644 --- a/packages/mantine-react-table/src/components/table/MRT_Table.tsx +++ b/packages/mantine-react-table/src/components/table/MRT_Table.tsx @@ -63,7 +63,7 @@ export const MRT_Table = ({ 'mrt-table', classes.root, layoutMode?.startsWith('grid') && classes['root-grid'], - tableProps?.className, + tableProps.className, )} highlightOnHover horizontalSpacing={density} @@ -71,7 +71,7 @@ export const MRT_Table = ({ {...tableProps} __vars={{ ...columnSizeVars, - ...tableProps?.__vars, + ...tableProps.__vars, }} > {enableTableHead && } @@ -80,7 +80,7 @@ export const MRT_Table = ({ ) : ( )} diff --git a/packages/mantine-react-table/stories/features/Virtualization.stories.tsx b/packages/mantine-react-table/stories/features/Virtualization.stories.tsx index 98021be7b..57be49a45 100644 --- a/packages/mantine-react-table/stories/features/Virtualization.stories.tsx +++ b/packages/mantine-react-table/stories/features/Virtualization.stories.tsx @@ -124,13 +124,7 @@ export const EnableRowVirtualizationSpacious = () => ( export const EnableRowVirtualizationTallContent = () => ( ( columns={columns} data={data} mantineTableBodyProps={{ - children: 'Custom Table Body', + children:
Custom Table Body
, }} /> ); diff --git a/packages/mantine-react-table/stories/styling/Theming.stories.tsx b/packages/mantine-react-table/stories/styling/Theming.stories.tsx index 80e619869..b11a8066f 100644 --- a/packages/mantine-react-table/stories/styling/Theming.stories.tsx +++ b/packages/mantine-react-table/stories/styling/Theming.stories.tsx @@ -40,40 +40,54 @@ export const DefaultTheme = () => ( ); export const CustomLightTheme = () => { - // const theme = createTheme({ - // palette: { - // primary: { - // main: '#ff9800', - // }, - // background: { - // default: '#ffffef', - // }, - // secondary: { - // main: '#00bcd4', - // }, - // }, - // }); return ( - + ); }; export const CustomDarkTheme = () => { - // const theme = createTheme({ - // palette: { - // mode: 'dark', - // primary: { - // main: '#81980f', - // }, - // secondary: { - // main: '#00bcd4', - // }, - // }, - // }); return ( - + );