@transkripid/flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS - Transkrip.id fork
41 lines (40 loc) • 1.59 kB
JavaScript
import { jsx as y } from "react/jsx-runtime";
import { c as N } from "react/compiler-runtime";
import { twMerge as C } from "tailwind-merge";
import { mergeDeep as I } from "../../helpers/merge-deep.mjs";
import { getTheme as T } from "../../theme-store/index.mjs";
import { ListItem as L } from "./ListItem.mjs";
const g = (h) => {
const e = N(24);
let s, r, l, m, t, i, o, n;
e[0] !== h ? ({
children: s,
className: r,
unstyled: n,
nested: m,
ordered: t,
horizontal: l,
theme: o,
...i
} = h, e[0] = h, e[1] = s, e[2] = r, e[3] = l, e[4] = m, e[5] = t, e[6] = i, e[7] = o, e[8] = n) : (s = e[1], r = e[2], l = e[3], m = e[4], t = e[5], i = e[6], o = e[7], n = e[8]);
let d;
e[9] !== o ? (d = o === void 0 ? {} : o, e[9] = o, e[10] = d) : d = e[10];
const u = d;
let p, a;
if (e[11] !== r || e[12] !== u || e[13] !== l || e[14] !== m || e[15] !== t || e[16] !== n) {
const c = I(T().list, u);
p = t ? "ol" : "ul", a = C(c.root.base, c.root.ordered[t ? "on" : "off"], n && c.root.unstyled, m && c.root.nested, l && c.root.horizontal, r), e[11] = r, e[12] = u, e[13] = l, e[14] = m, e[15] = t, e[16] = n, e[17] = p, e[18] = a;
} else
p = e[17], a = e[18];
let f;
return e[19] !== p || e[20] !== s || e[21] !== i || e[22] !== a ? (f = /* @__PURE__ */ y(p, { className: a, ...i, children: s }), e[19] = p, e[20] = s, e[21] = i, e[22] = a, e[23] = f) : f = e[23], f;
};
g.displayName = "List";
L.displayName = "List.Item";
const M = Object.assign(g, {
Item: L
});
export {
M as List
};
//# sourceMappingURL=List.mjs.map