UNPKG

@rocket.chat/onboarding-ui

Version:

Set of components and functions for the onboarding experience on Rocket.Chat

19 lines 939 B
import type { ReactElement } from 'react'; import type { FieldPathValue, SubmitHandler, Validate } from 'react-hook-form'; export type NewAccountPayload = { name: string; email: string; password: string; confirmPassword: string; agreement?: boolean; }; type NewAccountFormProps = { initialValues?: Omit<NewAccountPayload, 'password'>; validateEmail: Validate<FieldPathValue<NewAccountPayload, 'email'>, NewAccountPayload>; validatePassword: Validate<FieldPathValue<NewAccountPayload, 'password'>, NewAccountPayload>; validateConfirmationPassword: Validate<FieldPathValue<NewAccountPayload, 'confirmPassword'>, NewAccountPayload>; onSubmit: SubmitHandler<NewAccountPayload>; }; declare const NewAccountForm: ({ validateEmail, validatePassword, validateConfirmationPassword, onSubmit, }: NewAccountFormProps) => ReactElement; export default NewAccountForm; //# sourceMappingURL=NewAccountForm.d.ts.map