UNPKG

@transkripid/flowbite-react

Version:

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

35 lines (34 loc) 1.2 kB
import { jsx as h } from "react/jsx-runtime"; import { c as n } from "react/compiler-runtime"; import { forwardRef as T } from "react"; import { twMerge as b } from "tailwind-merge"; import { mergeDeep as u } from "../../helpers/merge-deep.mjs"; import { useTableHeadContext as x } from "./TableHeadContext.mjs"; const C = T((c, i) => { const e = n(16); let l, o, m, t; e[0] !== c ? ({ children: l, className: o, theme: t, ...m } = c, e[0] = c, e[1] = l, e[2] = o, e[3] = m, e[4] = t) : (l = e[1], o = e[2], m = e[3], t = e[4]); let s; e[5] !== t ? (s = t === void 0 ? {} : t, e[5] = t, e[6] = s) : s = e[6]; const p = s, { theme: f } = x(); let r; if (e[7] !== o || e[8] !== p || e[9] !== f.cell) { const d = u(f.cell, p); r = b(d.base, o), e[7] = o, e[8] = p, e[9] = f.cell, e[10] = r; } else r = e[10]; let a; return e[11] !== l || e[12] !== m || e[13] !== i || e[14] !== r ? (a = /* @__PURE__ */ h("th", { className: r, ref: i, ...m, children: l }), e[11] = l, e[12] = m, e[13] = i, e[14] = r, e[15] = a) : a = e[15], a; }); C.displayName = "Table.HeadCell"; export { C as TableHeadCell }; //# sourceMappingURL=TableHeadCell.mjs.map