@transkripid/flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS - Transkrip.id fork
42 lines (41 loc) • 1.61 kB
JavaScript
import { jsx as b } from "react/jsx-runtime";
import { c as x } from "react/compiler-runtime";
import { forwardRef as v } from "react";
import { twMerge as H } from "tailwind-merge";
import { mergeDeep as N } from "../../helpers/merge-deep.mjs";
import { useTableContext as g } from "./TableContext.mjs";
import { TableHeadContext as w } from "./TableHeadContext.mjs";
const C = v((h, p) => {
const e = x(24);
let o, l, r, t;
e[0] !== h ? ({
children: o,
className: l,
theme: t,
...r
} = h, e[0] = h, e[1] = o, e[2] = l, e[3] = r, e[4] = t) : (o = e[1], l = e[2], r = e[3], t = e[4]);
let f;
e[5] !== t ? (f = t === void 0 ? {} : t, e[5] = t, e[6] = f) : f = e[6];
const n = f, {
theme: T
} = g();
let m, s, a;
if (e[7] !== l || e[8] !== n || e[9] !== T.head) {
const u = N(T.head, n);
m = w.Provider, a = {
theme: u
}, s = H(u.base, l), e[7] = l, e[8] = n, e[9] = T.head, e[10] = m, e[11] = s, e[12] = a;
} else
m = e[10], s = e[11], a = e[12];
let i;
e[13] !== o ? (i = /* @__PURE__ */ b("tr", { children: o }), e[13] = o, e[14] = i) : i = e[14];
let d;
e[15] !== r || e[16] !== p || e[17] !== s || e[18] !== i ? (d = /* @__PURE__ */ b("thead", { className: s, ref: p, ...r, children: i }), e[15] = r, e[16] = p, e[17] = s, e[18] = i, e[19] = d) : d = e[19];
let c;
return e[20] !== m || e[21] !== a || e[22] !== d ? (c = /* @__PURE__ */ b(m, { value: a, children: d }), e[20] = m, e[21] = a, e[22] = d, e[23] = c) : c = e[23], c;
});
C.displayName = "Table.Head";
export {
C as TableHead
};
//# sourceMappingURL=TableHead.mjs.map