UNPKG

@transkripid/flowbite-react

Version:

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

36 lines (35 loc) 1.66 kB
import { jsx as N } from "react/jsx-runtime"; import { c as j } from "react/compiler-runtime"; import { mergeDeep as k } from "../../helpers/merge-deep.mjs"; import { getTheme as D } from "../../theme-store/index.mjs"; import { Floating as F } from "../Floating/Floating.mjs"; const $ = (g) => { const t = j(26); let o, i, l, r, m, n, s, c, e, p; t[0] !== g ? ({ animation: m, arrow: n, children: o, className: i, content: l, placement: s, style: c, theme: e, trigger: p, ...r } = g, t[0] = g, t[1] = o, t[2] = i, t[3] = l, t[4] = r, t[5] = m, t[6] = n, t[7] = s, t[8] = c, t[9] = e, t[10] = p) : (o = t[1], i = t[2], l = t[3], r = t[4], m = t[5], n = t[6], s = t[7], c = t[8], e = t[9], p = t[10]); const v = m === void 0 ? "duration-300" : m, h = n === void 0 ? !0 : n, u = s === void 0 ? "top" : s, T = c === void 0 ? "dark" : c; let a; t[11] !== e ? (a = e === void 0 ? {} : e, t[11] = e, t[12] = a) : a = t[12]; const y = a, w = p === void 0 ? "hover" : p; let d; t[13] !== y ? (d = k(D().tooltip, y), t[13] = y, t[14] = d) : d = t[14]; const x = d; let f; return t[15] !== v || t[16] !== h || t[17] !== o || t[18] !== i || t[19] !== l || t[20] !== u || t[21] !== r || t[22] !== T || t[23] !== x || t[24] !== w ? (f = /* @__PURE__ */ N(F, { animation: v, arrow: h, content: l, placement: u, style: T, theme: x, trigger: w, className: i, ...r, children: o }), t[15] = v, t[16] = h, t[17] = o, t[18] = i, t[19] = l, t[20] = u, t[21] = r, t[22] = T, t[23] = x, t[24] = w, t[25] = f) : f = t[25], f; }; $.displayName = "Tooltip"; export { $ as Tooltip }; //# sourceMappingURL=Tooltip.mjs.map