| 1 |
/// <reference types="react" /> |
| 2 |
export interface LoginFormProps extends Omit<React.HTMLProps<HTMLFormElement>, 'ref'> { |
| 3 |
/** Flag to indicate if the first dropdown item should not gain initial focus */ |
| 4 |
noAutoFocus?: boolean; |
| 5 |
/** Additional classes added to the login main body's form */ |
| 6 |
className?: string; |
| 7 |
/** Flag indicating the helper text is visible * */ |
| 8 |
showHelperText?: boolean; |
| 9 |
/** Content displayed in the helper text component * */ |
| 10 |
helperText?: React.ReactNode; |
| 11 |
/** Icon displayed to the left in the helper text */ |
| 12 |
helperTextIcon?: React.ReactNode; |
| 13 |
/** Label for the username input field */ |
| 14 |
usernameLabel?: string; |
| 15 |
/** Value for the username */ |
| 16 |
usernameValue?: string; |
| 17 |
/** Function that handles the onChange event for the username */ |
| 18 |
onChangeUsername?: (event: React.FormEvent<HTMLInputElement>, value: string) => void; |
| 19 |
/** Flag indicating if the username is valid */ |
| 20 |
isValidUsername?: boolean; |
| 21 |
/** Flag indicating if password is required */ |
| 22 |
isPasswordRequired?: boolean; |
| 23 |
/** Label for the password input field */ |
| 24 |
passwordLabel?: string; |
| 25 |
/** Value for the password */ |
| 26 |
passwordValue?: string; |
| 27 |
/** Function that handles the onChange event for the password */ |
| 28 |
onChangePassword?: (event: React.FormEvent<HTMLInputElement>, value: string) => void; |
| 29 |
/** Flag indicating if the password is valid */ |
| 30 |
isValidPassword?: boolean; |
| 31 |
/** Flag indicating if the user can toggle hiding the password */ |
| 32 |
isShowPasswordEnabled?: boolean; |
| 33 |
/** Accessible label for the show password button */ |
| 34 |
showPasswordAriaLabel?: string; |
| 35 |
/** Accessible label for the hide password button */ |
| 36 |
hidePasswordAriaLabel?: string; |
| 37 |
/** Label for the log in button input */ |
| 38 |
loginButtonLabel?: string; |
| 39 |
/** Flag indicating if the login button is disabled */ |
| 40 |
isLoginButtonDisabled?: boolean; |
| 41 |
/** Function that is called when the login button is clicked */ |
| 42 |
onLoginButtonClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void; |
| 43 |
/** Label for the remember me checkbox that indicates the user should be kept logged in. If the label is not provided, the checkbox will not show. */ |
| 44 |
rememberMeLabel?: string; |
| 45 |
/** Flag indicating if the remember me checkbox is checked. */ |
| 46 |
isRememberMeChecked?: boolean; |
| 47 |
/** Function that handles the onChange event for the remember me checkbox */ |
| 48 |
onChangeRememberMe?: (event: React.FormEvent<HTMLInputElement>, checked: boolean) => void; |
| 49 |
} |
| 50 |
export declare const LoginForm: React.FunctionComponent<LoginFormProps>; |
| 51 |
//# sourceMappingURL=LoginForm.d.ts.map |