import * as React from 'react'; import { ValuesOf } from '../utils/typeUtils'; import { STEPPER_DENSITY } from './Stepper.constants'; export interface StepperProps { /** Hook for testing purposes. */ dataHook?: string; /** Event triggered on step click: `onClick(stepIndex)` */ onClick?: (index: number) => void; /** Sets the index of the active step. When not set, no step is active. */ activeStep?: number; /** * An array of steps, where each step is an object with the following properties: * - `text` - step title text (required). * - `type` - step type (`completed`, `disabled`, `error` or default `normal`). */ steps: StepperStep[]; /** Style type. * @default 'circle' */ type?: StepperType; /** * Fit mode for steps. In `stretched` mode the component grows to fill the parent * container width. * @default 'compact' */ fit?: StepperFit; /** Sets the size of the items. * @default 'small' */ size?: StepperSize; /** * Controls the density of the step titles and icons. `compact` sets the titles one * size smaller, uses 18px icons and makes the active title and number bold in the * `text` type. * @default 'default' */ density?: StepperDensity; } declare class StepperComponent extends React.PureComponent {} export type Stepper = StepperComponent; export declare const Stepper: React.ForwardRefExoticComponent< StepperProps & React.RefAttributes >; export interface StepperStep { text: string; /** Style type. * @default 'circle' */ type?: StepperStepType; } export type StepperType = 'circle' | 'text'; export type StepperFit = 'compact' | 'stretched'; export type StepperStepType = 'completed' | 'disabled' | 'error' | 'normal'; export type StepperSize = 'medium' | 'small'; export type StepperDensity = ValuesOf;