Skip to content

Commit

Permalink
package upgrades, fix props warning
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinVandy committed Feb 18, 2024
1 parent 6d82e11 commit 98d1e13
Show file tree
Hide file tree
Showing 6 changed files with 609 additions and 621 deletions.
16 changes: 8 additions & 8 deletions apps/mantine-react-table-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
"@fortawesome/fontawesome-svg-core": "^6.5.1",
"@fortawesome/free-solid-svg-icons": "^6.5.1",
"@fortawesome/react-fontawesome": "^0.2.0",
"@mantine/code-highlight": "7.5.2",
"@mantine/core": "7.5.2",
"@mantine/dates": "7.5.2",
"@mantine/hooks": "7.5.2",
"@mantine/modals": "7.5.2",
"@mantine/code-highlight": "7.5.3",
"@mantine/core": "7.5.3",
"@mantine/dates": "7.5.3",
"@mantine/hooks": "7.5.3",
"@mantine/modals": "7.5.3",
"@mdx-js/loader": "^3.0.1",
"@mdx-js/react": "^3.0.1",
"@next/mdx": "^14.1.0",
"@tabler/icons-react": "2.47.0",
"@tanstack/react-query": "^5.20.5",
"@tanstack/react-query": "^5.21.7",
"@types/mdx": "^2.0.11",
"clsx": "^2.1.0",
"dayjs": "^1.11.10",
Expand All @@ -41,8 +41,8 @@
"react-dom": "18.2.0"
},
"devDependencies": {
"@types/node": "^20.11.17",
"@types/react": "^18.2.55",
"@types/node": "^20.11.19",
"@types/react": "^18.2.56",
"@types/react-dom": "^18.2.19",
"@typescript-eslint/eslint-plugin": "^7.0.1",
"@typescript-eslint/parser": "^7.0.1",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
},
"devDependencies": {
"prettier": "^3.2.5",
"turbo": "^1.12.3"
"turbo": "^1.12.4"
},
"engines": {
"node": ">=16.0.0"
Expand Down
34 changes: 17 additions & 17 deletions packages/mantine-react-table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,25 +82,25 @@
"@babel/core": "^7.23.9",
"@babel/preset-react": "^7.23.3",
"@faker-js/faker": "^8.4.1",
"@mantine/core": "7.5.2",
"@mantine/dates": "7.5.2",
"@mantine/hooks": "7.5.2",
"@mantine/core": "7.5.3",
"@mantine/dates": "7.5.3",
"@mantine/hooks": "7.5.3",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"@size-limit/preset-small-lib": "^11.0.2",
"@storybook/addon-a11y": "^7.6.15",
"@storybook/addon-essentials": "^7.6.15",
"@storybook/addon-interactions": "^7.6.15",
"@storybook/addon-links": "^7.6.15",
"@storybook/addon-storysource": "^7.6.15",
"@storybook/blocks": "^7.6.15",
"@storybook/react": "^7.6.15",
"@storybook/react-vite": "^7.6.15",
"@storybook/addon-a11y": "^7.6.16",
"@storybook/addon-essentials": "^7.6.16",
"@storybook/addon-interactions": "^7.6.16",
"@storybook/addon-links": "^7.6.16",
"@storybook/addon-storysource": "^7.6.16",
"@storybook/blocks": "^7.6.16",
"@storybook/react": "^7.6.16",
"@storybook/react-vite": "^7.6.16",
"@storybook/testing-library": "^0.2.2",
"@tabler/icons-react": "2.47.0",
"@types/node": "^20.11.17",
"@types/react": "^18.2.55",
"@types/node": "^20.11.19",
"@types/react": "^18.2.56",
"@types/react-dom": "^18.2.19",
"@typescript-eslint/eslint-plugin": "^7.0.1",
"@typescript-eslint/parser": "^7.0.1",
Expand All @@ -117,24 +117,24 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-is": "^18.2.0",
"rollup": "^4.10.0",
"rollup": "^4.12.0",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-delete": "^2.0.0",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-postcss": "^4.0.2",
"size-limit": "^11.0.2",
"storybook": "^7.6.15",
"storybook": "^7.6.16",
"storybook-dark-mode": "^3.0.3",
"tslib": "^2.6.2",
"typescript": "^5.3.3",
"typescript-plugin-css-modules": "^5.1.0",
"vite": "^5.1.2"
"vite": "^5.1.3"
},
"dependencies": {
"@tanstack/match-sorter-utils": "8.11.8",
"@tanstack/react-table": "8.12.0",
"@tanstack/react-virtual": "3.0.4"
"@tanstack/react-virtual": "3.1.1"
},
"peerDependencies": {
"@mantine/core": "^7.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,19 +264,16 @@ export const MRT_TableBodyCell = <TData extends MRT_RowData>({
) ||
!row.getIsGrouped()) ? (
columnDef.Cell?.({
cell,
column,
renderedCellValue: cell.renderValue() as any,
renderedColumnIndex,
renderedRowIndex,
row,
rowRef,
table,
...cellValueProps,
})
) : isCreating || isEditing ? (
<MRT_EditCellTextInput {...cellValueProps} />
<MRT_EditCellTextInput cell={cell} table={table} />
) : showClickToCopyButton && columnDef.enableClickToCopy !== false ? (
<MRT_CopyButton {...cellValueProps}>
<MRT_CopyButton cell={cell} table={table}>
<MRT_TableBodyCellValue {...cellValueProps} />
</MRT_CopyButton>
) : (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,12 @@ interface Props<TData extends MRT_RowData, TValue = MRT_CellValue>
extends UnstyledButtonProps {
cell: MRT_Cell<TData, TValue>;
children: ReactNode;
renderedColumnIndex?: number;
renderedRowIndex?: number;
table: MRT_TableInstance<TData>;
}

export const MRT_CopyButton = <TData extends MRT_RowData>({
cell,
children,
renderedColumnIndex,
renderedRowIndex,
table,
...rest
}: Props<TData>) => {
Expand Down
Loading

0 comments on commit 98d1e13

Please sign in to comment.