@legion-ui-kit/react-core
Version:
To install the package into your project:
3 lines (2 loc) • 405 B
JavaScript
;var t=require("./Stepper.constant.cjs");exports.getStepProps=(s,P,e)=>{let S=t.STEPPER_POSITION.middle,T=t.STEP_DEFAULT_PROPS.status;const E=0===e,i=e===P-1;return s===e?T=t.STEPPER_STATUS.active:s>e&&(T=t.STEPPER_STATUS.complete),E?S=t.STEPPER_POSITION.start:i&&(S=t.STEPPER_POSITION.end),{isActive:s===e,isFirst:E,isLast:i,position:S,status:T}};
//# sourceMappingURL=Stepper.helper.cjs.map