@transkripid/flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS - Transkrip.id fork
35 lines (34 loc) • 1.19 kB
JavaScript
import { jsx as d } from "react/jsx-runtime";
import { c as h } from "react/compiler-runtime";
import { forwardRef as b } from "react";
import { twMerge as T } from "tailwind-merge";
import { mergeDeep as u } from "../../helpers/merge-deep.mjs";
import { useTableBodyContext as x } from "./TableBodyContext.mjs";
const y = b((i, a) => {
const e = h(16);
let l, o, m, t;
e[0] !== i ? ({
children: l,
className: o,
theme: t,
...m
} = i, e[0] = i, 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] !== f.cell || e[8] !== o || e[9] !== p) {
const n = u(f.cell, p);
r = T(n.base, o), e[7] = f.cell, e[8] = o, e[9] = p, e[10] = r;
} else
r = e[10];
let c;
return e[11] !== l || e[12] !== m || e[13] !== a || e[14] !== r ? (c = /* @__PURE__ */ d("td", { className: r, ref: a, ...m, children: l }), e[11] = l, e[12] = m, e[13] = a, e[14] = r, e[15] = c) : c = e[15], c;
});
y.displayName = "Table.Cell";
export {
y as TableCell
};
//# sourceMappingURL=TableCell.mjs.map