@transkripid/flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS - Transkrip.id fork
35 lines (34 loc) • 1.23 kB
JavaScript
import { jsx as a } from "react/jsx-runtime";
import { c as h } from "react/compiler-runtime";
import { twMerge as g } from "tailwind-merge";
import { mergeDeep as u } from "../../helpers/merge-deep.mjs";
import { getTheme as x } from "../../theme-store/index.mjs";
import { useAccordionContext as b } from "./AccordionPanelContext.mjs";
const j = (m) => {
const e = h(15);
let o, r, c, t;
e[0] !== m ? ({
children: o,
className: r,
theme: t,
...c
} = m, e[0] = m, e[1] = o, e[2] = r, e[3] = c, e[4] = t) : (o = e[1], r = e[2], c = e[3], t = e[4]);
let n;
e[5] !== t ? (n = t === void 0 ? {} : t, e[5] = t, e[6] = n) : n = e[6];
const l = n, {
isOpen: f
} = b();
let i;
if (e[7] !== r || e[8] !== l) {
const p = u(x().accordion.content, l);
i = g(p.base, r), e[7] = r, e[8] = l, e[9] = i;
} else
i = e[9];
const d = !f;
let s;
return e[10] !== o || e[11] !== c || e[12] !== i || e[13] !== d ? (s = /* @__PURE__ */ a("div", { className: i, "data-testid": "flowbite-accordion-content", hidden: d, ...c, children: o }), e[10] = o, e[11] = c, e[12] = i, e[13] = d, e[14] = s) : s = e[14], s;
};
export {
j as AccordionContent
};
//# sourceMappingURL=AccordionContent.mjs.map