UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

65 lines 1.43 kB
import { c as _c } from "react-compiler-runtime"; import { forwardRef } from "react"; import classNames from "classnames"; import { jsx as _jsx } from "react/jsx-runtime"; const StepBar = /*#__PURE__*/forwardRef((t0, ref) => { const $ = _c(14); let className; let disableCollapse; let props; let t1; if ($[0] !== t0) { ({ className, variant: t1, disableCollapse, ...props } = t0); $[0] = t0; $[1] = className; $[2] = disableCollapse; $[3] = props; $[4] = t1; } else { className = $[1]; disableCollapse = $[2]; props = $[3]; t1 = $[4]; } const variant = t1 === undefined ? "basic" : t1; const t2 = variant !== "circle"; const t3 = variant === "circle"; const t4 = !disableCollapse; let t5; if ($[5] !== className || $[6] !== t2 || $[7] !== t3 || $[8] !== t4) { t5 = classNames(className, { "bf-stepbar": t2, "bf-stepbar-circle": t3, "bf-stepbar-responsive": t4 }); $[5] = className; $[6] = t2; $[7] = t3; $[8] = t4; $[9] = t5; } else { t5 = $[9]; } let t6; if ($[10] !== props || $[11] !== ref || $[12] !== t5) { t6 = /*#__PURE__*/_jsx("div", { ref: ref, className: t5, ...props }); $[10] = props; $[11] = ref; $[12] = t5; $[13] = t6; } else { t6 = $[13]; } return t6; }); StepBar.displayName = "StepBar"; export default StepBar;