@@ -28,19 +28,23 @@ export interface WizardNextStepMapper {
2828
2929export type WizardNextStep = string | WizardNextStepMapper | WizardNextStepFunction ;
3030
31+ export interface SelectNextFunction {
32+ ( nextStep : WizardNextStep , getState : Function ) : string ;
33+ }
34+
35+ export interface HandleNextFunction {
36+ ( nextStep : string ) : void ;
37+ }
38+
3139export interface WizardButtonsProps {
32- ConditionalNext : React . ComponentType ;
33- SubmitButton : React . ComponentType ;
34- SimpleNext : React . ComponentType ;
35- formOptions : FormOptions ;
3640 disableBack ?: boolean ;
37- handlePrev : any ;
38- nextStep ?: string | number ;
39- FieldProvider ?: React . ComponentType ;
40- handleNext : any ;
41+ handlePrev : Function ;
42+ nextStep ?: WizardNextStep ;
43+ handleNext : HandleNextFunction ;
4144 buttonsClassname ?: string ;
42- buttonLabels : AnyObject ;
43- renderNextButton : any ;
45+ buttonLabels : WizardButtonLabels ;
46+ renderNextButton : Function ;
47+ selectNext : SelectNextFunction ;
4448}
4549
4650export interface WizardField {
@@ -60,14 +64,17 @@ export interface WizardProps {
6064 buttonsClassName ?: string ;
6165 title ?: ReactNode ;
6266 description ?: ReactNode ;
63- isCompactNav ?: boolean ;
6467 inModal ?: boolean ;
65- setFullWidth ?: boolean ;
66- setFullHeight ?: boolean ;
6768 isDynamic ?: boolean ;
6869 showTitles ?: boolean ;
6970 crossroads ?: string [ ] ;
7071 fields : WizardField [ ] ;
72+ hideClose ?: boolean ;
73+ titleId ?: string ;
74+ descriptionId ?: string ;
75+ closeButtonAriaLabel ?: string ;
76+ hasNoBodyPadding ?: boolean ;
77+ navAriaLabel ?: string ;
7178}
7279
7380declare const Wizard : React . ComponentType < WizardProps > ;
0 commit comments