Debian Codegraph @

node/@patternfly/react-core/dist/js/components/Wizard/Wizard.d.ts

raw
1 /// <reference types="react" />
2 import { WizardStepType, WizardFooterType, WizardNavType, WizardStepChangeScope } from './types';
3 /**
4 * Wrapper for all steps and hosts state, including navigation helpers, within context.
5 * The WizardContext provided by default gives any child of wizard access to those resources.
6 */
7 export interface WizardProps extends React.HTMLProps<HTMLDivElement> {
8 /** Step components */
9 children: React.ReactNode;
10 /** Wizard header */
11 header?: React.ReactNode;
12 /** Wizard footer */
13 footer?: WizardFooterType;
14 /** Wizard navigation */
15 nav?: WizardNavType;
16 /** Aria-label for the Nav */
17 navAriaLabel?: string;
18 /** The initial index the wizard is to start on (1 or higher). Defaults to 1. */
19 startIndex?: number;
20 /** Additional classes spread to the wizard */
21 className?: string;
22 /** Custom width of the wizard */
23 width?: number | string;
24 /** Custom height of the wizard */
25 height?: number | string;
26 /** Disables steps that haven't been visited. Defaults to false. */
27 isVisitRequired?: boolean;
28 /** Progressively shows steps, where all steps following the active step are hidden. Defaults to false. */
29 isProgressive?: boolean;
30 /** Callback function when navigating between steps */
31 onStepChange?: (event: React.MouseEvent<HTMLButtonElement>, currentStep: WizardStepType, prevStep: WizardStepType, scope: WizardStepChangeScope) => void | Promise<void>;
32 /** Callback function to save at the end of the wizard, if not specified uses onClose */
33 onSave?: (event: React.MouseEvent<HTMLButtonElement>) => void | Promise<void>;
34 /** Callback function to close the wizard */
35 onClose?: (event: React.MouseEvent<HTMLButtonElement>) => void;
36 /** Flag indicating whether the wizard content should be focused after the onNext or onBack callbacks
37 * are called.
38 */
39 shouldFocusContent?: boolean;
40 /** Adds plain styling to the wizard. */
41 isPlain?: boolean;
42 /** @beta Prevents the wizard from automatically applying plain styling when glass theme is enabled. */
43 isNoPlainOnGlass?: boolean;
44 }
45 export declare const Wizard: {
46 ({ children, footer, height, width, className, header, nav, navAriaLabel, startIndex, isVisitRequired, isProgressive, onStepChange, onSave, onClose, shouldFocusContent, isPlain, isNoPlainOnGlass, ...wrapperProps }: WizardProps): import("react/jsx-runtime").JSX.Element;
47 displayName: string;
48 };
49 //# sourceMappingURL=Wizard.d.ts.map