UNPKG

@transkripid/flowbite-react

Version:

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

59 lines (58 loc) 2.26 kB
import { jsx as N } from "react/jsx-runtime"; import { c as B } from "react/compiler-runtime"; import { twMerge as I } from "tailwind-merge"; import { mergeDeep as j } from "../../helpers/merge-deep.mjs"; import { getTheme as z } from "../../theme-store/index.mjs"; import { TimelineBody as h } from "./TimelineBody.mjs"; import { TimelineContent as C } from "./TimelineContent.mjs"; import { TimelineContext as b } from "./TimelineContext.mjs"; import { TimelineItem as g } from "./TimelineItem.mjs"; import { TimelinePoint as v } from "./TimelinePoint.mjs"; import { TimelineTime as P } from "./TimelineTime.mjs"; import { TimelineTitle as u } from "./TimelineTitle.mjs"; const x = (f) => { const e = B(24); let m, o, i, l, t; e[0] !== f ? ({ children: m, className: o, horizontal: i, theme: t, ...l } = f, e[0] = f, e[1] = m, e[2] = o, e[3] = i, e[4] = l, e[5] = t) : (m = e[1], o = e[2], i = e[3], l = e[4], t = e[5]); let T; e[6] !== t ? (T = t === void 0 ? {} : t, e[6] = t, e[7] = T) : T = e[7]; const c = T; let n, r, s, a; if (e[8] !== o || e[9] !== c || e[10] !== i) { const y = j(z().timeline, c); n = b.Provider, a = { theme: y, horizontal: i }, r = "timeline-component", s = I(i && y.root.direction.horizontal, !i && y.root.direction.vertical, o), e[8] = o, e[9] = c, e[10] = i, e[11] = n, e[12] = r, e[13] = s, e[14] = a; } else n = e[11], r = e[12], s = e[13], a = e[14]; let p; e[15] !== m || e[16] !== l || e[17] !== r || e[18] !== s ? (p = /* @__PURE__ */ N("ol", { "data-testid": r, className: s, ...l, children: m }), e[15] = m, e[16] = l, e[17] = r, e[18] = s, e[19] = p) : p = e[19]; let d; return e[20] !== n || e[21] !== a || e[22] !== p ? (d = /* @__PURE__ */ N(n, { value: a, children: p }), e[20] = n, e[21] = a, e[22] = p, e[23] = d) : d = e[23], d; }; x.displayName = "Timeline"; g.displayName = "Timeline.Item"; v.displayName = "Timeline.Point"; C.displayName = "Timeline.Content"; P.displayName = "Timeline.Time"; u.displayName = "Timeline.Title"; h.displayName = "Timeline.Body"; const J = Object.assign(x, { Item: g, Point: v, Content: C, Time: P, Title: u, Body: h }); export { J as Timeline }; //# sourceMappingURL=Timeline.mjs.map