UNPKG

@transkripid/flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS - Transkrip.id fork

44 lines (43 loc) 2.31 kB
import { jsx as w, jsxs as I } from "react/jsx-runtime"; import { c as L } from "react/compiler-runtime"; import { twMerge as y } from "tailwind-merge"; import { mergeDeep as A } from "../../helpers/merge-deep.mjs"; import { getTheme as D } from "../../theme-store/index.mjs"; const E = (C) => { const e = L(42); let l, n, r, i, o, m, c, f, s; e[0] !== C ? ({ active: m, children: n, className: r, href: o, icon: l, onClick: c, theme: s, disabled: i, ...f } = C, e[0] = C, e[1] = l, e[2] = n, e[3] = r, e[4] = i, e[5] = o, e[6] = m, e[7] = c, e[8] = f, e[9] = s) : (l = e[1], n = e[2], r = e[3], i = e[4], o = e[5], m = e[6], c = e[7], f = e[8], s = e[9]); let N; e[10] !== s ? (N = s === void 0 ? {} : s, e[10] = s, e[11] = N) : N = e[11]; const T = N; let a, d, p, h, u, b, k, t; if (e[12] !== r || e[13] !== T || e[14] !== i || e[15] !== o || e[16] !== m || e[17] !== c) { t = A(D().listGroup.item, T); const j = typeof o < "u", G = j ? "a" : "button"; k = y(t.base, r), a = G, d = o, p = c, h = j ? void 0 : "button", u = i, b = y(t.link.active[m ? "on" : "off"], t.link.disabled[i ? "on" : "off"], t.link.base, t.link.href[j ? "on" : "off"]), e[12] = r, e[13] = T, e[14] = i, e[15] = o, e[16] = m, e[17] = c, e[18] = a, e[19] = d, e[20] = p, e[21] = h, e[22] = u, e[23] = b, e[24] = k, e[25] = t; } else a = e[18], d = e[19], p = e[20], h = e[21], u = e[22], b = e[23], k = e[24], t = e[25]; let v; e[26] !== l || e[27] !== t ? (v = l && /* @__PURE__ */ w(l, { "aria-hidden": !0, "data-testid": "flowbite-list-group-item-icon", className: t.link.icon }), e[26] = l, e[27] = t, e[28] = v) : v = e[28]; let g; e[29] !== a || e[30] !== n || e[31] !== f || e[32] !== d || e[33] !== p || e[34] !== h || e[35] !== u || e[36] !== b || e[37] !== v ? (g = /* @__PURE__ */ I(a, { href: d, onClick: p, type: h, disabled: u, className: b, ...f, children: [ v, n ] }), e[29] = a, e[30] = n, e[31] = f, e[32] = d, e[33] = p, e[34] = h, e[35] = u, e[36] = b, e[37] = v, e[38] = g) : g = e[38]; let x; return e[39] !== g || e[40] !== k ? (x = /* @__PURE__ */ w("li", { className: k, children: g }), e[39] = g, e[40] = k, e[41] = x) : x = e[41], x; }; export { E as ListGroupItem }; //# sourceMappingURL=ListGroupItem.mjs.map