Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
GermainBergeron authored and renovate[bot] committed Aug 8, 2024
1 parent 6bfb10d commit cd800bc
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 40 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"underscore": "1.13.7",
"walkdir": "0.4.1"
},
"packageManager": "pnpm@9.6.0",
"packageManager": "pnpm@9.7.0",
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
Expand All @@ -93,7 +93,7 @@
"nwsapi": "2.2.12"
},
"patchedDependencies": {
"@stencil/core@4.19.2": "patches/@stencil__core@4.19.2.patch"
"@stencil/core": "patches/@stencil__core.patch"
}
}
}
2 changes: 1 addition & 1 deletion packages/mantine/src/components/table/Table.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {TableStore} from './use-table';

export type TableLayoutProps<TData = unknown> = Pick<
TableProps<TData>,
'getRowExpandedContent' | 'getRowAttributes' | 'loading'
'getRowExpandedContent' | 'getRowAttributes' | 'getRowActions' | 'loading'
> &
TableProps<TData>['layoutProps'];

Expand Down
4 changes: 1 addition & 3 deletions packages/mantine/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{
"extends": "../tsconfig-base.json",
"compilerOptions": {
"rootDir": ".",
"paths": {
"@test-utils": ["./src/__tests__/Utils.tsx"]
},
"types": ["vitest/globals"]
},
"include": ["src", "__mocks__"]
}
}
8 changes: 8 additions & 0 deletions packages/mantine/tsconfig.test.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"noEmit": true,
"declaration": false
},
"include": ["__mocks__"]
}
1 change: 1 addition & 0 deletions packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@mantine/modals": "7.12.0",
"@mantine/notifications": "7.12.0",
"@mantinex/dev-icons": "1.0.2",
"@stencil/core": "4.20.0",
"@swc/helpers": "0.5.12",
"@tabler/icons-react": "3.11.0",
"@tanstack/match-sorter-utils": "8.19.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ const TableCards = <TData,>(props: TableLayoutProps<TData>) => {
));
const cards = table.getRowModel().rows.map((row) => {
const isSelected = !!row.getIsSelected();
const actions = props.getRowActions([row.original]);
const doubleClickAction = actions.find((action) => Boolean(action.onRowDoubleClick))?.onRowDoubleClick;
return (
<Paper
key={row.id}
Expand All @@ -37,7 +35,7 @@ const TableCards = <TData,>(props: TableLayoutProps<TData>) => {
if (event.detail <= 1) {
row.toggleSelected(true);
} else {
doubleClickAction(row.original, row.index, row);
props.onRowDoubleClick?.(row.original, row.index, row);
}
}}
>
Expand Down
File renamed without changes.
72 changes: 41 additions & 31 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cd800bc

Please sign in to comment.