@keyvaluesystems/react-stepper
Version:
A fully customizable stepper component
25 lines (24 loc) • 946 B
TypeScript
import { Elements } from "../constants";
import { IStep, IStyleFunction } from "../stepper/types";
/**
* To get the Style of element from the style object provided
* @function
* @param {{[key in Elements]?: IStyleFunction}} styles
* @param {Elements} element
* @param {IStep} step
* @param {number} index
* @returns {object}
*/
declare const getStyles: (styles: {
LabelDescription?: IStyleFunction | undefined;
LabelTitle?: IStyleFunction | undefined;
ActiveLabelTitle?: IStyleFunction | undefined;
ActiveLabelDescription?: IStyleFunction | undefined;
LineSeparator?: IStyleFunction | undefined;
InactiveLineSeparator?: IStyleFunction | undefined;
Node?: IStyleFunction | undefined;
ActiveNode?: IStyleFunction | undefined;
InActiveNode?: IStyleFunction | undefined;
CompletedNode?: IStyleFunction | undefined;
}, element: Elements, step: IStep, index: number) => object;
export default getStyles;