import type React from "react"; import type { SvgIconProps } from "@mui/material"; import type { IconButtonProps } from "../IconButton.js"; import type { TextFieldProps } from "../TextField.js"; export interface PasswordTextFieldProps extends Omit { /** * Props applied to the isVisible state */ isVisible?: boolean; /** * Props applied to the initial isVisible state. */ defaultIsVisible?: boolean; /** * Callback fired when the state is changed. * * @param {React.SyntheticEvent} event The event source of the callback. */ onVisibilityChange?: (event: React.MouseEvent, isVisible: boolean) => void; slotProps?: TextFieldProps["slotProps"] & { /** * Props applied to the visibility Icon. */ visibilityIcon?: Partial; /** * Props applied to the visibility off Icon. */ visibilityOffIcon?: Partial; /** * Props applied to the IconButton. */ iconButton?: Partial; }; slots?: TextFieldProps["slots"] & { root?: React.ElementType; /** * The component to render for the "visibility on" icon. */ visibilityIcon?: React.ElementType; /** * The component to render for the "visibility off" icon. */ visibilityOffIcon?: React.ElementType; }; }