UNPKG

@transkripid/flowbite-react

Version:

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

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