@dndbuilder.com/react
Version:
Drag and drop builder for React
34 lines (33 loc) • 1.6 kB
JavaScript
"use client";
import { jsx as t, jsxs as c } from "react/jsx-runtime";
import { classNames as y } from "../../../../../utils.js";
import { Trigger as o, Portal as i, Content as n, Arrow as f, Provider as N, Root as s } from "../../../../../node_modules/.pnpm/@radix-ui_react-tooltip@1.1.8_@types_react-dom@19.0.4_@types_react@19.0.10__@types_react@19.0_pl67xn6fl322p75p6sn3vj73rq/node_modules/@radix-ui/react-tooltip/dist/index.js";
import { forwardRef as l } from "react";
const d = ({ children: e, ...a }) => /* @__PURE__ */ t(N, { delayDuration: 0, children: /* @__PURE__ */ t(s, { ...a, children: e }) });
d.displayName = s.displayName;
const m = l(({ children: e, ...a }, r) => /* @__PURE__ */ t(o, { ref: r, ...a, children: e }));
m.displayName = o.displayName;
const p = l(({ children: e, className: a, ...r }, g) => /* @__PURE__ */ t(i, { children: /* @__PURE__ */ c(
n,
{
className: y(
"data-[state=delayed-open]:data-[side=top]:animate-slideDownAndFade data-[state=delayed-open]:data-[side=right]:animate-slideLeftAndFade data-[state=delayed-open]:data-[side=left]:animate-slideRightAndFade data-[state=delayed-open]:data-[side=bottom]:animate-slideUpAndFade z-[10000] select-none rounded-[4px] bg-black px-2 py-1.5 text-[10px] leading-none text-gray-50 will-change-[transform,opacity]",
a
),
sideOffset: 5,
ref: g,
...r,
children: [
e,
/* @__PURE__ */ t(f, { className: "fill-black" })
]
}
) }));
p.displayName = n.displayName;
d.Trigger = m;
d.Content = p;
d.Portal = i;
export {
d as Tooltip
};
//# sourceMappingURL=tooltip.js.map