Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,10 @@ export interface ConfirmDialogPayload extends ConfirmOptions {
msg: React.ReactNode;
}

export interface ConfirmDialogProps
extends DialogProps<ConfirmDialogPayload, boolean> {}
export interface ConfirmDialogProps extends DialogProps<
ConfirmDialogPayload,
boolean
> {}

export function ConfirmDialog({ open, payload, onClose }: ConfirmDialogProps) {
const cancelButtonProps = useDialogLoadingButton(() => onClose(false));
Expand All @@ -239,8 +241,10 @@ export interface PromptDialogPayload extends PromptOptions {
msg: React.ReactNode;
}

export interface PromptDialogProps
extends DialogProps<PromptDialogPayload, string | null> {}
export interface PromptDialogProps extends DialogProps<
PromptDialogPayload,
string | null
> {}

export function PromptDialog({ open, payload, onClose }: PromptDialogProps) {
const [input, setInput] = React.useState('');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ function CustomLabel({ color, expandable, children, ...other }: CustomLabelProps
}

interface CustomTreeItemProps
extends Omit<UseTreeItemParameters, 'rootRef'>,
extends
Omit<UseTreeItemParameters, 'rootRef'>,
Omit<React.HTMLAttributes<HTMLLIElement>, 'onFocus'> {}

const CustomTreeItem = React.forwardRef(function CustomTreeItem(
Expand Down
3 changes: 2 additions & 1 deletion docs/src/components/productX/XTreeViewDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ const getIconFromFileType = (fileType: FileType) => {
};

interface CustomTreeItemProps
extends Omit<UseTreeItemParameters, 'rootRef'>,
extends
Omit<UseTreeItemParameters, 'rootRef'>,
Omit<React.HTMLAttributes<HTMLLIElement>, 'onFocus'> {}

const CustomTreeItem = React.forwardRef(function CustomTreeItem(
Expand Down
3 changes: 2 additions & 1 deletion docs/src/components/showcase/FolderTreeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ const isExpandable = (reactChildren: React.ReactNode): boolean => {
};

interface CustomTreeItemProps
extends Omit<UseTreeItemParameters, 'rootRef'>,
extends
Omit<UseTreeItemParameters, 'rootRef'>,
Omit<React.HTMLAttributes<HTMLLIElement>, 'onFocus'> {}

const CustomTreeItem = React.forwardRef(function CustomTreeItem(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ const styles = ({ theme }: { theme: Theme }) => ({
},
});

export interface OnePirateTextFieldProps
extends Omit<FilledTextFieldProps | StandardTextFieldProps, 'size'> {
export interface OnePirateTextFieldProps extends Omit<
FilledTextFieldProps | StandardTextFieldProps,
'size'
> {
noBorder?: boolean;
size?: 'small' | 'medium' | 'large' | 'xlarge';
}
Expand Down
3 changes: 2 additions & 1 deletion examples/material-ui-nextjs-pages-router-ts/src/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import NextLink, { LinkProps as NextLinkProps } from 'next/link';
import MuiLink, { LinkProps as MuiLinkProps } from '@mui/material/Link';

interface NextLinkComposedProps
extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>,
extends
Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>,
Omit<NextLinkProps, 'href' | 'as' | 'passHref' | 'onMouseEnter' | 'onClick' | 'onTouchStart'> {
to: NextLinkProps['href'];
linkAs?: NextLinkProps['as'];
Expand Down
3 changes: 2 additions & 1 deletion examples/material-ui-nextjs-ts-v4-v5-migration/src/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import NextLink, { LinkProps as NextLinkProps } from 'next/link';
import MuiLink, { LinkProps as MuiLinkProps } from '@mui/material/Link';

interface NextLinkComposedProps
extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>,
extends
Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href'>,
Omit<NextLinkProps, 'href' | 'as' | 'passHref' | 'onMouseEnter' | 'onClick' | 'onTouchStart'> {
to: NextLinkProps['href'];
linkAs?: NextLinkProps['as'];
Expand Down
Loading
Loading