UNPKG

@transkripid/flowbite-react

Version:

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

44 lines (43 loc) 1.74 kB
import { jsx as w, jsxs as N, Fragment as j } from "react/jsx-runtime"; import { c as u } from "react/compiler-runtime"; import { forwardRef as v } from "react"; import { twMerge as y } from "tailwind-merge"; import { mergeDeep as b } from "../../helpers/merge-deep.mjs"; import { getTheme as D } from "../../theme-store/index.mjs"; import { HelperText as F } from "../HelperText/HelperText.mjs"; const H = v((x, d) => { const e = u(26); let r, t, l, m, p, o; e[0] !== x ? ({ className: r, color: p, helperText: t, shadow: m, theme: o, ...l } = x, e[0] = x, e[1] = r, e[2] = t, e[3] = l, e[4] = m, e[5] = p, e[6] = o) : (r = e[1], t = e[2], l = e[3], m = e[4], p = e[5], o = e[6]); const s = p === void 0 ? "gray" : p; let h; e[7] !== o ? (h = o === void 0 ? {} : o, e[7] = o, e[8] = h) : h = e[8]; const T = h; let a, i; if (e[9] !== r || e[10] !== s || e[11] !== T || e[12] !== d || e[13] !== m) { const g = b(D().textarea, T); a = d, i = y(g.base, g.colors[s], g.withShadow[m ? "on" : "off"], r), e[9] = r, e[10] = s, e[11] = T, e[12] = d, e[13] = m, e[14] = a, e[15] = i; } else a = e[14], i = e[15]; let f; e[16] !== l || e[17] !== a || e[18] !== i ? (f = /* @__PURE__ */ w("textarea", { ref: a, className: i, ...l }), e[16] = l, e[17] = a, e[18] = i, e[19] = f) : f = e[19]; let c; e[20] !== s || e[21] !== t ? (c = t && /* @__PURE__ */ w(F, { color: s, children: t }), e[20] = s, e[21] = t, e[22] = c) : c = e[22]; let n; return e[23] !== f || e[24] !== c ? (n = /* @__PURE__ */ N(j, { children: [ f, c ] }), e[23] = f, e[24] = c, e[25] = n) : n = e[25], n; }); H.displayName = "Textarea"; export { H as Textarea }; //# sourceMappingURL=Textarea.mjs.map