@transkripid/flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS - Transkrip.id fork
45 lines (44 loc) • 2.04 kB
JavaScript
import { jsx as g, jsxs as w } from "react/jsx-runtime";
import { c as I } from "react/compiler-runtime";
import { forwardRef as j } from "react";
import { HiOutlineChevronRight as y } from "react-icons/hi";
import { twMerge as B } from "tailwind-merge";
import { mergeDeep as C } from "../../helpers/merge-deep.mjs";
import { getTheme as R } from "../../theme-store/index.mjs";
const T = j((p, x) => {
const e = I(29);
let r, m, s, o, l, i;
e[0] !== p ? ({
children: m,
className: s,
href: o,
icon: r,
theme: i,
...l
} = p, e[0] = p, e[1] = r, e[2] = m, e[3] = s, e[4] = o, e[5] = l, e[6] = i) : (r = e[1], m = e[2], s = e[3], o = e[4], l = e[5], i = e[6]);
let d;
e[7] !== i ? (d = i === void 0 ? {} : i, e[7] = i, e[8] = d) : d = e[8];
const b = d, v = typeof o < "u", u = v ? "a" : "span";
let a, t;
e[9] !== s || e[10] !== b ? (t = C(R().breadcrumb.item, b), a = B(t.base, s), e[9] = s, e[10] = b, e[11] = a, e[12] = t) : (a = e[11], t = e[12]);
let c;
e[13] !== t.chevron ? (c = /* @__PURE__ */ g(y, { "aria-hidden": !0, className: t.chevron, "data-testid": "flowbite-breadcrumb-separator" }), e[13] = t.chevron, e[14] = c) : c = e[14];
const N = t.href[v ? "on" : "off"];
let n;
e[15] !== r || e[16] !== t.icon ? (n = r && /* @__PURE__ */ g(r, { "aria-hidden": !0, className: t.icon }), e[15] = r, e[16] = t.icon, e[17] = n) : n = e[17];
let f;
e[18] !== u || e[19] !== m || e[20] !== o || e[21] !== N || e[22] !== n ? (f = /* @__PURE__ */ w(u, { ref: x, className: N, "data-testid": "flowbite-breadcrumb-item", href: o, children: [
n,
m
] }), e[18] = u, e[19] = m, e[20] = o, e[21] = N, e[22] = n, e[23] = f) : f = e[23];
let h;
return e[24] !== l || e[25] !== a || e[26] !== c || e[27] !== f ? (h = /* @__PURE__ */ w("li", { className: a, ...l, children: [
c,
f
] }), e[24] = l, e[25] = a, e[26] = c, e[27] = f, e[28] = h) : h = e[28], h;
});
T.displayName = "Breadcrumb.Item";
export {
T as BreadcrumbItem
};
//# sourceMappingURL=BreadcrumbItem.mjs.map