import { j as o } from "../../node_modules/react/jsx-runtime.js";
import * as m from "react";
import { Root as t, Item as f } from "../../node_modules/@radix-ui/react-radio-group/dist/index.js";
import { cn as s } from "../../utils/index.js";
import { Label as l } from "../Label/index.js";
const d = m.forwardRef(({ className: e, ...r }, a) => /* @__PURE__ */ o.jsx(
  t,
  {
    className: s("group grid gap-2", e),
    ...r,
    ref: a
  }
));
d.displayName = t.displayName;
function R({
  className: e,
  children: r,
  id: a,
  disabled: i,
  ...c
}) {
  return /* @__PURE__ */ o.jsxs("div", { className: s("flex items-center space-x-2", e), ...c, children: [
    /* @__PURE__ */ o.jsx(p, { value: a, id: a, disabled: i, className: "peer" }),
    /* @__PURE__ */ o.jsx(l, { htmlFor: a, className: "font-normal", children: r })
  ] });
}
const p = m.forwardRef(({ className: e, ...r }, a) => /* @__PURE__ */ o.jsx(
  f,
  {
    ref: a,
    className: s("radio", e),
    ...r
  }
));
p.displayName = f.displayName;
export {
  p as Radio,
  d as RadioGroup,
  R as RadioGroupItem
};
