"use client";
import { jsx } from "react/jsx-runtime";
import { cn } from "../../lib/utils.js";
import { PreviewCardRoot } from "../../node_modules/@base-ui/react/esm/preview-card/root/PreviewCardRoot.js";
import { PreviewCardTrigger } from "../../node_modules/@base-ui/react/esm/preview-card/trigger/PreviewCardTrigger.js";
import { PreviewCardPortal } from "../../node_modules/@base-ui/react/esm/preview-card/portal/PreviewCardPortal.js";
import { PreviewCardPositioner } from "../../node_modules/@base-ui/react/esm/preview-card/positioner/PreviewCardPositioner.js";
import { PreviewCardPopup } from "../../node_modules/@base-ui/react/esm/preview-card/popup/PreviewCardPopup.js";
function HoverCard({ ...props }) {
  return /* @__PURE__ */ jsx(PreviewCardRoot, { "data-slot": "hover-card", ...props });
}
function HoverCardTrigger({ ...props }) {
  return /* @__PURE__ */ jsx(PreviewCardTrigger, { "data-slot": "hover-card-trigger", ...props });
}
function HoverCardContent({
  className,
  side = "bottom",
  sideOffset = 4,
  align = "center",
  alignOffset = 4,
  ...props
}) {
  return /* @__PURE__ */ jsx(PreviewCardPortal, { "data-slot": "hover-card-portal", children: /* @__PURE__ */ jsx(
    PreviewCardPositioner,
    {
      align,
      alignOffset,
      side,
      sideOffset,
      className: "isolate z-50",
      children: /* @__PURE__ */ jsx(
        PreviewCardPopup,
        {
          "data-slot": "hover-card-content",
          className: cn(
            "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground w-64 rounded-lg p-4 text-sm shadow-md ring-1 duration-100 z-50 origin-(--transform-origin) outline-hidden",
            className
          ),
          ...props
        }
      )
    }
  ) });
}
export {
  HoverCard,
  HoverCardContent,
  HoverCardTrigger
};
//# sourceMappingURL=hover-card.js.map
