import{jsx as t}from"react/jsx-runtime";import e from"classnames";import{Step as r}from"./Step/Step.js";import s from"./Stepper.scss.js";var i=function(t,e){return t===e?"current":e&&t<e?"passed":"future"},o=function(o){var a=o.steps,n=o.activeStep,p=o.size,c=void 0===p?"medium":p,m=o.testId,d=o.className,u=o.onStepClick;return t("div",{className:e(s.root,d),"data-testid":m,children:a.map((function(e,s){return t(r,{prefix:e.prefix||s+1,tooltip:e.tooltip,testId:e.testId,className:e.className,onClick:u&&function(){return u(s,e)},size:c,state:i(s,n),error:"error"===e.state,disabled:"disabled"===e.state,noReturn:e.noReturn,children:e.title},s)}))})};export{o as Stepper};
//# sourceMappingURL=Stepper.js.map
