import { jsx } from "react/jsx-runtime";
import "react";
import { cn } from "../../lib/utils.js";
import { PopoverRoot } from "../../node_modules/@base-ui/react/esm/popover/root/PopoverRoot.js";
import { PopoverPortal } from "../../node_modules/@base-ui/react/esm/popover/portal/PopoverPortal.js";
import { PopoverPositioner } from "../../node_modules/@base-ui/react/esm/popover/positioner/PopoverPositioner.js";
import { PopoverPopup } from "../../node_modules/@base-ui/react/esm/popover/popup/PopoverPopup.js";
import { PopoverDescription as PopoverDescription$1 } from "../../node_modules/@base-ui/react/esm/popover/description/PopoverDescription.js";
import { PopoverTitle as PopoverTitle$1 } from "../../node_modules/@base-ui/react/esm/popover/title/PopoverTitle.js";
import { PopoverTrigger as PopoverTrigger$1 } from "../../node_modules/@base-ui/react/esm/popover/trigger/PopoverTrigger.js";
function Popover({ ...props }) {
  return /* @__PURE__ */ jsx(PopoverRoot, { "data-slot": "popover", ...props });
}
function PopoverTrigger({ ...props }) {
  return /* @__PURE__ */ jsx(PopoverTrigger$1, { "data-slot": "popover-trigger", ...props });
}
function PopoverContent({
  className,
  align = "center",
  alignOffset = 0,
  side = "bottom",
  sideOffset = 4,
  ...props
}) {
  return /* @__PURE__ */ jsx(PopoverPortal, { children: /* @__PURE__ */ jsx(
    PopoverPositioner,
    {
      align,
      alignOffset,
      side,
      sideOffset,
      className: "isolate z-50",
      children: /* @__PURE__ */ jsx(
        PopoverPopup,
        {
          "data-slot": "popover-content",
          className: cn(
            "bg-popover text-popover-foreground 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 flex flex-col gap-4 rounded-md p-4 text-sm shadow-md ring-1 duration-100 z-50 w-72 origin-(--transform-origin) outline-hidden",
            className
          ),
          ...props
        }
      )
    }
  ) });
}
function PopoverHeader({ className, ...props }) {
  return /* @__PURE__ */ jsx(
    "div",
    {
      "data-slot": "popover-header",
      className: cn("flex flex-col gap-1 text-sm", className),
      ...props
    }
  );
}
function PopoverTitle({ className, ...props }) {
  return /* @__PURE__ */ jsx(
    PopoverTitle$1,
    {
      "data-slot": "popover-title",
      className: cn("font-medium", className),
      ...props
    }
  );
}
function PopoverDescription({ className, ...props }) {
  return /* @__PURE__ */ jsx(
    PopoverDescription$1,
    {
      "data-slot": "popover-description",
      className: cn("text-muted-foreground", className),
      ...props
    }
  );
}
export {
  Popover,
  PopoverContent,
  PopoverDescription,
  PopoverHeader,
  PopoverTitle,
  PopoverTrigger
};
//# sourceMappingURL=popover.js.map
