UNPKG

@tiller-ds/patterns

Version:

Patterns module of Tiller Design System

25 lines (24 loc) 933 B
import * as React from "react"; import { ObjectSchema } from "yup"; import { ComponentTokens } from "@tiller-ds/theme"; declare type InitialValues = { email?: string; newPassword?: string; repeatPassword?: string; }; declare type ForgottenPasswordProps = { validationSchema: ObjectSchema<any>; initialValues: InitialValues; handleSubmit: (values: any) => void; children?: React.ReactNode; passwordValidationRegex?: RegExp; } & LoginTokensProps; declare type LoginTokensProps = { tokens?: ComponentTokens<"Login">; }; export declare const PasswordValidationSchema: (passwordValidationRegex?: RegExp | undefined) => ObjectSchema<{ newPassword: string; repeatPassword: string; }>; export default function ForgottenPassword({ validationSchema, initialValues, handleSubmit, children, passwordValidationRegex, ...props }: ForgottenPasswordProps): JSX.Element; export {};