import { t as n } from "./vendor/react.js";
import { t } from "./utils.js";
import { a as d, i as l, n as m, o as u, r as v, s as f, t as c } from "./PopoverDescription.js";
var e = n();
function P({ ...o }) {
  return /* @__PURE__ */ (0, e.jsx)(f, {
    "data-slot": "popover",
    ...o
  });
}
function g({ ...o }) {
  return /* @__PURE__ */ (0, e.jsx)(u, {
    "data-slot": "popover-trigger",
    ...o
  });
}
function x({ className: o, align: r = "center", alignOffset: a = 0, side: i = "bottom", sideOffset: p = 4, ...s }) {
  return /* @__PURE__ */ (0, e.jsx)(d, { children: /* @__PURE__ */ (0, e.jsx)(l, {
    align: r,
    alignOffset: a,
    side: i,
    sideOffset: p,
    className: "isolate z-50",
    children: /* @__PURE__ */ (0, e.jsx)(v, {
      "data-slot": "popover-popup",
      className: t("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", o),
      ...s
    })
  }) });
}
function N({ className: o, ...r }) {
  return /* @__PURE__ */ (0, e.jsx)("div", {
    "data-slot": "popover-header",
    className: t("flex flex-col gap-1 text-sm", o),
    ...r
  });
}
function j({ className: o, ...r }) {
  return /* @__PURE__ */ (0, e.jsx)(m, {
    "data-slot": "popover-title",
    className: t("font-medium", o),
    ...r
  });
}
function h({ className: o, ...r }) {
  return /* @__PURE__ */ (0, e.jsx)(c, {
    "data-slot": "popover-description",
    className: t("text-muted-foreground", o),
    ...r
  });
}
P.displayName = "Popover";
g.displayName = "Popover.Trigger";
x.displayName = "Popover.Popup";
N.displayName = "Popover.Header";
j.displayName = "Popover.Title";
h.displayName = "Popover.Description";
export {
  x as n,
  g as r,
  P as t
};

//# sourceMappingURL=popover2.js.map