import { jsx as t } from "react/jsx-runtime";
import * as o from "@radix-ui/react-popover";
import { c as n } from "../../index-BtlgVD4m.js";
const c = o.Root, l = o.Trigger, f = o.Anchor, s = ({
  ref: e,
  className: a,
  align: r = "center",
  sideOffset: d = 4,
  ...i
}) => /* @__PURE__ */ t(o.Portal, { children: /* @__PURE__ */ t(
  o.Content,
  {
    ref: e,
    align: r,
    sideOffset: d,
    className: n(
      "z-50 w-72 rounded-[var(--border-radius-md)] bg-[var(--base-popover)] p-[var(--spacing-4)] text-[var(--base-popover-foreground)] shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=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",
      a
    ),
    ...i
  }
) });
s.displayName = o.Content.displayName;
export {
  c as Popover,
  f as PopoverAnchor,
  s as PopoverContent,
  l as PopoverTrigger
};
//# sourceMappingURL=PopoverPrimitive.js.map
