UNPKG

@patternfly/react-core

Version:

This library provides a set of common React components for use with the PatternFly reference implementation.

14 lines • 936 B
import React from 'react'; import { WizardControlStep, WizardNavStepData } from './types'; import { WizardStepProps } from './WizardStep'; /** * Accumulate list of step & sub-step props pulled from child components * @param children * @returns WizardControlStep[] */ export declare const buildSteps: (children: React.ReactElement<WizardStepProps> | React.ReactElement<WizardStepProps>[]) => WizardControlStep[]; export declare function isWizardStep(child: any | React.ReactElement<WizardStepProps>): child is React.ReactElement<WizardStepProps>; export declare const normalizeStep: ({ children, steps, body, ...controlStep }: WizardStepProps) => WizardControlStep; export declare const normalizeNavStep: (navStep: WizardControlStep, steps: WizardControlStep[]) => WizardNavStepData; export declare const getCurrentStep: (steps: WizardControlStep[], currentStepIndex: number) => WizardControlStep; //# sourceMappingURL=utils.d.ts.map