@brightlayer-ui/react-auth-workflow
Version:
Re-usable workflow components for Authentication and Registration within Eaton applications.
34 lines (33 loc) • 1.23 kB
TypeScript
import { ErrorManagerProps } from '../../components/Error/types.js';
import { SetPasswordProps } from '../../components/SetPassword/types.js';
import { WorkflowCardProps } from '../../components/WorkflowCard/WorkflowCard.types.js';
import { SuccessScreenProps } from '../SuccessScreen/index.js';
import { JSX } from 'react';
export type ResetPasswordScreenSlots = {
SuccessScreen?: (props?: SuccessScreenProps) => JSX.Element;
};
export type ResetPasswordScreenSlotsProps = {
SuccessScreen?: SuccessScreenProps;
};
export type ResetPasswordScreenProps = Omit<WorkflowCardProps, 'currentStep | totalSteps'> & {
/**
* The props that will be passed to the SetPassword component
*/
PasswordProps?: SetPasswordProps;
/**
* Boolean that determines whether to show the success screen or not
*/
showSuccessScreen?: boolean;
/**
* Used for ResetPasswordScreen SuccessScreen props
*/
slots?: ResetPasswordScreenSlots;
/**
* The props that will be passed to the SuccessScreen component
*/
slotProps?: ResetPasswordScreenSlotsProps;
/**
* The configuration for customizing how errors are displayed
*/
errorDisplayConfig?: ErrorManagerProps;
};