| 1 |
/// <reference types="react" /> |
| 2 |
import { WizardFooterButtonProps, WizardStepType } from './types'; |
| 3 |
/** |
| 4 |
* Hosts the standard structure of a footer with ties to the active step so that text for buttons can vary from step to step. |
| 5 |
*/ |
| 6 |
export interface WizardFooterProps extends React.HTMLProps<HTMLElement> { |
| 7 |
/** The active step */ |
| 8 |
activeStep: WizardStepType; |
| 9 |
/** Next button callback */ |
| 10 |
onNext: (event: React.MouseEvent<HTMLButtonElement>) => void | Promise<void>; |
| 11 |
/** Back button callback */ |
| 12 |
onBack: (event: React.MouseEvent<HTMLButtonElement>) => void | Promise<void>; |
| 13 |
/** Cancel link callback */ |
| 14 |
onClose: (event: React.MouseEvent<HTMLButtonElement>) => void; |
| 15 |
/** Custom text for the Next button. The current step's nextButtonText takes precedence. */ |
| 16 |
nextButtonText?: React.ReactNode; |
| 17 |
/** Custom text for the Back button */ |
| 18 |
backButtonText?: React.ReactNode; |
| 19 |
/** Custom text for the Cancel link */ |
| 20 |
cancelButtonText?: React.ReactNode; |
| 21 |
/** Flag to disable the next button */ |
| 22 |
isNextDisabled?: boolean; |
| 23 |
/** Flag to disable the back button */ |
| 24 |
isBackDisabled?: boolean; |
| 25 |
/** Flag to hide the back button */ |
| 26 |
isBackHidden?: boolean; |
| 27 |
/** Flag to hide the cancel button */ |
| 28 |
isCancelHidden?: boolean; |
| 29 |
/** Additional props for the Next button. */ |
| 30 |
nextButtonProps?: Omit<WizardFooterButtonProps, 'isDisabled' | 'type'>; |
| 31 |
/** Additional props for the Back button. */ |
| 32 |
backButtonProps?: Omit<WizardFooterButtonProps, 'isDisabled'>; |
| 33 |
/** Additional props for the Cancel button. */ |
| 34 |
cancelButtonProps?: WizardFooterButtonProps; |
| 35 |
/** Additional classes spread to the wizard footer */ |
| 36 |
className?: string; |
| 37 |
} |
| 38 |
/** |
| 39 |
* Applies default wizard footer styling any number of child elements. |
| 40 |
*/ |
| 41 |
interface WizardFooterWrapperProps extends React.HTMLProps<HTMLElement> { |
| 42 |
children: React.ReactNode; |
| 43 |
className?: string; |
| 44 |
} |
| 45 |
export declare const WizardFooterWrapper: { |
| 46 |
({ children, className, ...props }: WizardFooterWrapperProps): import("react/jsx-runtime").JSX.Element; |
| 47 |
displayName: string; |
| 48 |
}; |
| 49 |
export declare const WizardFooter: { |
| 50 |
({ activeStep, ...internalProps }: WizardFooterProps): import("react/jsx-runtime").JSX.Element; |
| 51 |
displayName: string; |
| 52 |
}; |
| 53 |
export {}; |
| 54 |
//# sourceMappingURL=WizardFooter.d.ts.map |