"use client";
import { jsx } from "react/jsx-runtime";
import * as React from "react";
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
import { cn } from "@open-mercato/shared/lib/utils";
const RadioGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
  RadioGroupPrimitive.Root,
  {
    ref,
    className: cn("flex flex-col gap-2", className),
    ...props
  }
));
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName;
const Radio = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
  RadioGroupPrimitive.Item,
  {
    ref,
    className: cn(
      "aspect-square size-5 shrink-0 rounded-full border border-input bg-background",
      "flex items-center justify-center transition-colors",
      "hover:border-muted-foreground/40",
      "data-[state=checked]:border-accent-indigo data-[state=checked]:bg-accent-indigo",
      "focus-visible:outline-none focus-visible:shadow-focus",
      "disabled:cursor-not-allowed disabled:opacity-60",
      className
    ),
    ...props,
    children: /* @__PURE__ */ jsx(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "block size-2 rounded-full bg-white" }) })
  }
));
Radio.displayName = RadioGroupPrimitive.Item.displayName;
export {
  Radio,
  RadioGroup
};
//# sourceMappingURL=radio.js.map
