@transkripid/flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS - Transkrip.id fork
40 lines (39 loc) • 1.5 kB
JavaScript
import { jsx as h } from "react/jsx-runtime";
import { c as T } from "react/compiler-runtime";
import { forwardRef as u } from "react";
import { twMerge as x } from "tailwind-merge";
import { mergeDeep as v } from "../../helpers/merge-deep.mjs";
import { TableBodyContext as B } from "./TableBodyContext.mjs";
import { useTableContext as N } from "./TableContext.mjs";
const g = u((p, c) => {
const e = T(22);
let o, l, r, t;
e[0] !== p ? ({
children: o,
className: l,
theme: t,
...r
} = p, e[0] = p, 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 d;
e[5] !== t ? (d = t === void 0 ? {} : t, e[5] = t, e[6] = d) : d = e[6];
const n = d, {
theme: b
} = N();
let m, s, i;
if (e[7] !== l || e[8] !== n || e[9] !== b.body) {
const y = v(b.body, n);
m = B.Provider, i = {
theme: y
}, s = x(y.base, l), e[7] = l, e[8] = n, e[9] = b.body, e[10] = m, e[11] = s, e[12] = i;
} else
m = e[10], s = e[11], i = e[12];
let a;
e[13] !== o || e[14] !== r || e[15] !== c || e[16] !== s ? (a = /* @__PURE__ */ h("tbody", { className: s, ref: c, ...r, children: o }), e[13] = o, e[14] = r, e[15] = c, e[16] = s, e[17] = a) : a = e[17];
let f;
return e[18] !== m || e[19] !== i || e[20] !== a ? (f = /* @__PURE__ */ h(m, { value: i, children: a }), e[18] = m, e[19] = i, e[20] = a, e[21] = f) : f = e[21], f;
});
g.displayName = "Table.Body";
export {
g as TableBody
};
//# sourceMappingURL=TableBody.mjs.map