import { jsx } from "react/jsx-runtime";
import { cn } from "../../lib/utils.js";
import { RadioGroup as RadioGroup$1 } from "../../node_modules/@base-ui/react/esm/radio-group/RadioGroup.js";
import Circle from "../../node_modules/lucide-react/dist/esm/icons/circle.js";
import { RadioRoot } from "../../node_modules/@base-ui/react/esm/radio/root/RadioRoot.js";
import { RadioIndicator } from "../../node_modules/@base-ui/react/esm/radio/indicator/RadioIndicator.js";
function RadioGroup({ className, ...props }) {
  return /* @__PURE__ */ jsx(
    RadioGroup$1,
    {
      "data-slot": "radio-group",
      className: cn("grid gap-3 w-full", className),
      ...props
    }
  );
}
function RadioGroupItem({ className, ...props }) {
  return /* @__PURE__ */ jsx(
    RadioRoot,
    {
      "data-slot": "radio-group-item",
      className: cn(
        "border-input text-primary dark:bg-input/30 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 flex size-4 rounded-full shadow-xs focus-visible:ring-[3px] aria-invalid:ring-[3px] group/radio-group-item peer relative aspect-square shrink-0 border outline-none after:absolute after:-inset-x-3 after:-inset-y-2 disabled:cursor-not-allowed disabled:opacity-50",
        className
      ),
      ...props,
      children: /* @__PURE__ */ jsx(
        RadioIndicator,
        {
          "data-slot": "radio-group-indicator",
          className: "group-aria-invalid/radio-group-item:text-destructive text-primary flex size-4 items-center justify-center",
          children: /* @__PURE__ */ jsx(Circle, { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-current" })
        }
      )
    }
  );
}
export {
  RadioGroup,
  RadioGroupItem
};
//# sourceMappingURL=radio-group.js.map
