UNPKG

@konstructio/ui

Version:

A set of reusable and customizable React components built for konstruct.io

31 lines (30 loc) 999 B
import { t as d } from "./utils-COaoD3PI.js"; import { ExclamationIcon as m } from "./assets/icons/components/Exclamation.js"; import { t as p } from "./createLucideIcon-CL4htJAF.js"; import { CHECK_ICON_SIZE_MAP as a, ICON_SIZE_MAP as c } from "./components/Stepper/constants/index.js"; import { memo as f } from "react"; import { jsx as e } from "react/jsx-runtime"; var h = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], I = p("check", h), u = ({ className: r, icons: t, index: i, size: o, status: n }) => n === "completed" ? t?.completed ? /* @__PURE__ */ e("span", { className: r, children: t.completed }) : /* @__PURE__ */ e(I, { className: d(a[o], r), strokeWidth: 2.5, "aria-hidden": "true" }) : n === "error" ? t?.error ? /* @__PURE__ */ e("span", { className: r, children: t.error }) : /* @__PURE__ */ e(m, { size: c[o], className: r }) : /* @__PURE__ */ e("span", { className: r, "aria-hidden": "true", children: i + 1 }), S = f(u); export { S as t };