UNPKG

@transkripid/flowbite-react

Version:

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

41 lines (40 loc) 1.55 kB
import { jsx as u } from "react/jsx-runtime"; import { c as h } from "react/compiler-runtime"; import { twMerge as G } from "tailwind-merge"; import { mergeDeep as S } from "../../helpers/merge-deep.mjs"; import { useSidebarContext as x } from "./SidebarContext.mjs"; import { SidebarItemContext as I } from "./SidebarItemContext.mjs"; const g = (c) => { const e = h(20); let o, r, m, t; e[0] !== c ? ({ children: o, className: r, theme: t, ...m } = c, e[0] = c, e[1] = o, e[2] = r, e[3] = m, e[4] = t) : (o = e[1], r = e[2], m = e[3], t = e[4]); let a; e[5] !== t ? (a = t === void 0 ? {} : t, e[5] = t, e[6] = a) : a = e[6]; const d = a, { theme: n } = x(); let i, l; if (e[7] !== r || e[8] !== d || e[9] !== n.itemGroup) { const b = S(n.itemGroup, d); i = "flowbite-sidebar-item-group", l = G(b.base, r), e[7] = r, e[8] = d, e[9] = n.itemGroup, e[10] = i, e[11] = l; } else i = e[10], l = e[11]; let p; e[12] === Symbol.for("react.memo_cache_sentinel") ? (p = { isInsideCollapse: !1 }, e[12] = p) : p = e[12]; let s; e[13] !== o ? (s = /* @__PURE__ */ u(I.Provider, { value: p, children: o }), e[13] = o, e[14] = s) : s = e[14]; let f; return e[15] !== m || e[16] !== i || e[17] !== l || e[18] !== s ? (f = /* @__PURE__ */ u("ul", { "data-testid": i, className: l, ...m, children: s }), e[15] = m, e[16] = i, e[17] = l, e[18] = s, e[19] = f) : f = e[19], f; }; g.displayName = "Sidebar.ItemGroup"; export { g as SidebarItemGroup }; //# sourceMappingURL=SidebarItemGroup.mjs.map