| 1 |
/// <reference types="react" /> |
| 2 |
import { WizardNavItemType } from './types'; |
| 3 |
import { WizardBodyProps } from './WizardBody'; |
| 4 |
import { WizardFooterProps } from './WizardFooter'; |
| 5 |
/** |
| 6 |
* The primary child component for Wizard. Step props are used for the list of steps managed in context. |
| 7 |
*/ |
| 8 |
export interface WizardStepProps { |
| 9 |
/** Name of the step's navigation item */ |
| 10 |
name: React.ReactNode; |
| 11 |
/** Unique identifier */ |
| 12 |
id: string | number; |
| 13 |
/** Optional for when the step is used as a parent to sub-steps */ |
| 14 |
children?: React.ReactNode | undefined; |
| 15 |
/** Props for WizardBody that wraps content by default. */ |
| 16 |
body?: Omit<Omit<WizardBodyProps, 'children'>, 'children'>; |
| 17 |
/** Optional list of sub-steps */ |
| 18 |
steps?: React.ReactElement<WizardStepProps>[]; |
| 19 |
/** Flag to disable the step's navigation item */ |
| 20 |
isDisabled?: boolean; |
| 21 |
/** Flag to determine whether the step is hidden */ |
| 22 |
isHidden?: boolean; |
| 23 |
/** Replaces the step's navigation item or its properties. */ |
| 24 |
navItem?: WizardNavItemType; |
| 25 |
/** Replaces the step's footer. The step's footer takes precedence over the wizard's footer. */ |
| 26 |
footer?: React.ReactElement<any> | Partial<WizardFooterProps>; |
| 27 |
/** Used to determine icon next to the step's navigation item */ |
| 28 |
status?: 'default' | 'error' | 'success' | 'warning'; |
| 29 |
/** Flag to determine whether parent steps can expand or not. Defaults to false. */ |
| 30 |
isExpandable?: boolean; |
| 31 |
} |
| 32 |
export declare const WizardStep: { |
| 33 |
({ children, steps: _subSteps, ...props }: WizardStepProps): import("react/jsx-runtime").JSX.Element; |
| 34 |
displayName: string; |
| 35 |
}; |
| 36 |
//# sourceMappingURL=WizardStep.d.ts.map |