| 1 |
/// <reference types="react" /> |
| 2 |
import { WizardStep } from './Wizard'; |
| 3 |
export interface WizardToggleProps { |
| 4 |
/** Function that returns the WizardNav component */ |
| 5 |
nav: (isWizardNavOpen: boolean) => React.ReactElement<any>; |
| 6 |
/** The wizard steps */ |
| 7 |
steps: WizardStep[]; |
| 8 |
/** The currently active WizardStep */ |
| 9 |
activeStep: WizardStep; |
| 10 |
/** The WizardFooter */ |
| 11 |
children?: React.ReactNode; |
| 12 |
/** Set to true to remove body padding */ |
| 13 |
hasNoBodyPadding: boolean; |
| 14 |
/** If the nav is open */ |
| 15 |
isNavOpen: boolean; |
| 16 |
/** Callback function for when the nav is toggled */ |
| 17 |
onNavToggle: (isOpen: boolean) => void; |
| 18 |
/** The button's aria-label */ |
| 19 |
'aria-label'?: string; |
| 20 |
/** Adds an accessible name to the wizard body by passing the the id of one or more elements. |
| 21 |
* The aria-labelledby will only be applied when the body content overflows and renders a scrollbar. |
| 22 |
*/ |
| 23 |
mainAriaLabelledBy?: string; |
| 24 |
/** Adds an accessible name to the wizard body when the body content overflows and renders |
| 25 |
* a scrollbar. |
| 26 |
*/ |
| 27 |
mainAriaLabel?: string; |
| 28 |
/** If the wizard is in-page */ |
| 29 |
isInPage?: boolean; |
| 30 |
/** Flag indicating the wizard has a drawer for at least one of the wizard steps */ |
| 31 |
hasDrawer?: boolean; |
| 32 |
/** Flag indicating the wizard drawer is expanded */ |
| 33 |
isDrawerExpanded?: boolean; |
| 34 |
/** Callback function for when the drawer is toggled */ |
| 35 |
onExpandDrawer?: () => void; |
| 36 |
} |
| 37 |
export declare const WizardToggle: React.FunctionComponent<WizardToggleProps>; |
| 38 |
//# sourceMappingURL=WizardToggle.d.ts.map |