"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("classnames"),r=require("./Step/Step.js"),s=require("./Stepper.scss.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(t),n=function(e,t){return e===t?"current":t&&e<t?"passed":"future"};exports.Stepper=function(t){var i=t.steps,u=t.activeStep,o=t.size,c=void 0===o?"medium":o,d=t.testId,p=t.className,l=t.onStepClick;return e.jsx("div",{className:a.default(s.root,p),"data-testid":d,children:i.map((function(t,s){return e.jsx(r.Step,{prefix:t.prefix||s+1,tooltip:t.tooltip,testId:t.testId,className:t.className,onClick:l&&function(){return l(s,t)},size:c,state:n(s,u),error:"error"===t.state,disabled:"disabled"===t.state,noReturn:t.noReturn,children:t.title},s)}))})};
//# sourceMappingURL=Stepper.js.map
