Skip to content

Commit

Permalink
chore(deps): update devdependencies (#9573)
Browse files Browse the repository at this point in the history
* chore(deps): update devdependencies

* fix build errors

* fix docs build  errors

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Titani <[email protected]>
  • Loading branch information
renovate[bot] and tlabaj authored Oct 9, 2023
1 parent 58ea584 commit bd71235
Show file tree
Hide file tree
Showing 7 changed files with 585 additions and 543 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"@octokit/rest": "^20.0.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "14.4.3",
"@types/jest": "29.5.3",
"@testing-library/user-event": "14.5.1",
"@types/jest": "29.5.5",
"@types/react": "^18",
"@types/react-dom": "^18",
"@typescript-eslint/eslint-plugin": "^5.59.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface DrawerPanelFocusTrapObject {
'aria-labelledby'?: string;
}

export interface DrawerPanelContentProps extends React.HTMLProps<HTMLDivElement> {
export interface DrawerPanelContentProps extends Omit<React.HTMLProps<HTMLDivElement>, 'onResize'> {
/** Additional classes added to the drawer. */
className?: string;
/** ID of the drawer panel */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export const MultipleFileUploadBasic: React.FunctionComponent = () => {
const updateCurrentFiles = (files: File[]) => {
if (fileUploadShouldFail) {
const corruptedFiles = files.map((file) => ({ ...file, lastModified: 'foo' as unknown as number }));
setCurrentFiles((prevFiles) => [...prevFiles, ...corruptedFiles]);
// eslint-disable-next-line
setCurrentFiles((prevFiles) => [...prevFiles, ...corruptedFiles as any]);
} else {
setCurrentFiles((prevFiles) => [...prevFiles, ...files]);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/react-table/src/components/Table/Tr.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import inlineStyles from '@patternfly/react-styles/css/components/InlineEdit/inl
import { css } from '@patternfly/react-styles';
import { TableContext } from './Table';

export interface TrProps extends React.HTMLProps<HTMLTableRowElement>, OUIAProps {
export interface TrProps extends Omit<React.HTMLProps<HTMLTableRowElement>, 'onResize'>, OUIAProps {
/** Content rendered inside the <tr> row */
children?: React.ReactNode;
/** Additional classes added to the <tr> row */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,13 @@ export const LegacyTableMisc: React.FunctionComponent = () => {
repo.lastCommit
]);

const customRowWrapper: TableProps['rowWrapper'] = ({ trRef, className, rowProps, row: _row, ...props }) => {
const customRowWrapper: TableProps['rowWrapper'] = ({ trRef, className, rowProps, row: _row }) => {
const isOddRow = rowProps ? !!((rowProps.rowIndex + 1) % 2) : true;
const customStyle = {
borderLeft: '3px solid var(--pf-v5-global--primary-color--100)'
};
return (
<tr
{...props}
ref={trRef as React.LegacyRef<HTMLTableRowElement>}
className={css(className, isOddRow ? 'odd-row-class' : 'even-row-class', 'custom-static-class')}
style={isOddRow ? customStyle : {}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,10 @@ export const LegacyTableStripedCustomTr: React.FunctionComponent = () => {
repo.lastCommit
]);

const customRowWrapper: TableProps['rowWrapper'] = ({ trRef, className, rowProps, row: _row, ...props }) => {
const customRowWrapper: TableProps['rowWrapper'] = ({ trRef, className, rowProps, row: _row }) => {
const isOddRow = rowProps ? !!((rowProps.rowIndex + 1) % 2) : true;
return (
<tr
{...props}
ref={trRef as React.LegacyRef<HTMLTableRowElement>}
className={css(className, isOddRow && 'pf-m-striped')}
/>
<tr ref={trRef as React.LegacyRef<HTMLTableRowElement>} className={css(className, isOddRow && 'pf-m-striped')} />
);
};

Expand Down
1,106 changes: 576 additions & 530 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit bd71235

Please sign in to comment.