@transkripid/flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS - Transkrip.id fork
39 lines (38 loc) • 1.58 kB
JavaScript
import { jsx as v } from "react/jsx-runtime";
import { c as x } from "react/compiler-runtime";
import { twMerge as g } from "tailwind-merge";
import { mergeDeep as z } from "../../helpers/merge-deep.mjs";
import { useTimelineContext as C } from "./TimelineContext.mjs";
import { TimelineItemContext as I } from "./TimelineItemContext.mjs";
const $ = (h) => {
const e = x(24);
let o, i, m, t;
e[0] !== h ? ({
children: o,
className: i,
theme: t,
...m
} = h, e[0] = h, e[1] = o, e[2] = i, e[3] = m, e[4] = t) : (o = e[1], i = e[2], m = e[3], t = e[4]);
let f;
e[5] !== t ? (f = t === void 0 ? {} : t, e[5] = t, e[6] = f) : f = e[6];
const d = f, {
theme: T,
horizontal: a
} = C();
let l, r, s, n;
if (e[7] !== i || e[8] !== d || e[9] !== a || e[10] !== T.item) {
const u = z(T.item, d);
l = I.Provider, n = {
theme: u
}, r = "timeline-item", s = g(a && u.root.horizontal, !a && u.root.vertical, i), e[7] = i, e[8] = d, e[9] = a, e[10] = T.item, e[11] = l, e[12] = r, e[13] = s, e[14] = n;
} else
l = e[11], r = e[12], s = e[13], n = e[14];
let c;
e[15] !== o || e[16] !== m || e[17] !== r || e[18] !== s ? (c = /* @__PURE__ */ v("li", { "data-testid": r, className: s, ...m, children: o }), e[15] = o, e[16] = m, e[17] = r, e[18] = s, e[19] = c) : c = e[19];
let p;
return e[20] !== l || e[21] !== n || e[22] !== c ? (p = /* @__PURE__ */ v(l, { value: n, children: c }), e[20] = l, e[21] = n, e[22] = c, e[23] = p) : p = e[23], p;
};
export {
$ as TimelineItem
};
//# sourceMappingURL=TimelineItem.mjs.map