UNPKG

@transkripid/flowbite-react

Version:

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

37 lines (36 loc) 1.37 kB
import { jsx as v } from "react/jsx-runtime"; import { c as g } from "react/compiler-runtime"; import { twMerge as N } from "tailwind-merge"; import { mergeDeep as w } from "../../helpers/merge-deep.mjs"; import { getTheme as x } from "../../theme-store/index.mjs"; const L = (f) => { const e = g(19); let i, l, o, r, a, t, m; e[0] !== f ? ({ children: i, className: l, color: r, disabled: a, theme: t, value: m, ...o } = f, e[0] = f, e[1] = i, e[2] = l, e[3] = o, e[4] = r, e[5] = a, e[6] = t, e[7] = m) : (i = e[1], l = e[2], o = e[3], r = e[4], a = e[5], t = e[6], m = e[7]); const b = r === void 0 ? "default" : r, n = a === void 0 ? !1 : a; let c; e[8] !== t ? (c = t === void 0 ? {} : t, e[8] = t, e[9] = c) : c = e[9]; const p = c; let s; if (e[10] !== l || e[11] !== b || e[12] !== p || e[13] !== n) { const u = w(x().label, p); s = N(u.root.base, u.root.colors[b], n && u.root.disabled, l), e[10] = l, e[11] = b, e[12] = p, e[13] = n, e[14] = s; } else s = e[14]; const h = m ?? i ?? ""; let d; return e[15] !== o || e[16] !== s || e[17] !== h ? (d = /* @__PURE__ */ v("label", { className: s, "data-testid": "flowbite-label", ...o, children: h }), e[15] = o, e[16] = s, e[17] = h, e[18] = d) : d = e[18], d; }; L.displayName = "Label"; export { L as Label }; //# sourceMappingURL=Label.mjs.map