import type { InputHTMLAttributes } from "react";
import React from "react";
import type { FormFieldProps } from "../FormField/FormField";
export type PasswordInputProps = {
/**
* Props for sub-components.
*
* - `toggleVisibility.ariaLabelShow` — Label for screen readers when the icon can be toggled to show the password
*
* - `toggleVisibility.ariaLabelHide` — Label for screen readers when the icon can be toggled to hide the password
*/
slotProps: {
toggleVisibility: {
/** Label for screen readers when icon can be toggled to show password */
ariaLabelShow: string;
/** Label for screen readers when icon can be toggled to hide password */
ariaLabelHide: string;
};
};
} & InputProps;
type InputProps = {
/**
* Set to true to toggle error state
*/
hasError?: boolean;
/**
* Function for on icon click behavior
*/
onIconClick?: (e: React.MouseEvent) => void;
} & FormFieldProps & Omit, "type">;
export declare const PasswordInputRaw: React.ForwardRefExoticComponent<{
/**
* Props for sub-components.
*
* - `toggleVisibility.ariaLabelShow` — Label for screen readers when the icon can be toggled to show the password
*
* - `toggleVisibility.ariaLabelHide` — Label for screen readers when the icon can be toggled to hide the password
*/
slotProps: {
toggleVisibility: {
/** Label for screen readers when icon can be toggled to show password */
ariaLabelShow: string;
/** Label for screen readers when icon can be toggled to hide password */
ariaLabelHide: string;
};
};
} & {
/**
* Set to true to toggle error state
*/
hasError?: boolean;
/**
* Function for on icon click behavior
*/
onIconClick?: (e: React.MouseEvent) => void;
} & FormFieldProps & Omit, "type"> & React.RefAttributes>;
export declare const PasswordInput: React.ForwardRefExoticComponent<{
/**
* Props for sub-components.
*
* - `toggleVisibility.ariaLabelShow` — Label for screen readers when the icon can be toggled to show the password
*
* - `toggleVisibility.ariaLabelHide` — Label for screen readers when the icon can be toggled to hide the password
*/
slotProps: {
toggleVisibility: {
/** Label for screen readers when icon can be toggled to show password */
ariaLabelShow: string;
/** Label for screen readers when icon can be toggled to hide password */
ariaLabelHide: string;
};
};
} & {
/**
* Set to true to toggle error state
*/
hasError?: boolean;
/**
* Function for on icon click behavior
*/
onIconClick?: (e: React.MouseEvent) => void;
} & FormFieldProps & Omit, "type"> & React.RefAttributes>;
export {};