import { t as e } from "../chunks/ui.module-DHVTOqZ0.js";
import { r as t } from "../chunks/uiClasses-UkaejTdf.js";
import { t as n } from "../chunks/CheckBox.module-C5SjPwSj.js";
import { useId as r } from "react";
import { cn as i } from "@ryuzaki13/react-foundation-lib/utils";
import { jsx as a, jsxs as o } from "react/jsx-runtime";
import { CircleIcon as s } from "lucide-react";
var c = { radioInput: "gu8UMB" }, l = ({ label: l, description: u, placeholder: d, disabled: f, size: p, className: m, onChange: h, value: g, id: _, tone: v = "neutral", ...y }) => {
	let b = r(), x = _ ?? b, S = u ? `${x}-description` : void 0, C = l ?? d, w = g ?? !1;
	return /* @__PURE__ */ o("div", {
		className: i(e.uiElement, p && e.uiSizable, p && e[p], f && e.disabled, m),
		children: [/* @__PURE__ */ o("div", {
			className: n.row,
			children: [/* @__PURE__ */ o("div", {
				className: i(n.wrapper, t(v)),
				children: [/* @__PURE__ */ a("input", {
					...y,
					id: x,
					type: "radio",
					checked: w,
					disabled: f,
					"aria-disabled": f,
					"aria-describedby": S,
					className: i(e.uiSelectionControl, n.input, c.radioInput),
					onChange: (e) => h?.(e.currentTarget.checked)
				}), /* @__PURE__ */ a("div", {
					className: i(e.uiSelectionIcon, n.icon),
					"aria-hidden": "true",
					children: /* @__PURE__ */ a(s, { fill: "currentColor" })
				})]
			}), C && /* @__PURE__ */ a("label", {
				htmlFor: x,
				className: e.uiLabel,
				children: C
			})]
		}), u && /* @__PURE__ */ a("p", {
			id: S,
			className: e.uiDescription,
			children: u
		})]
	});
};
//#endregion
export { l as RadioButton };

//# sourceMappingURL=index.js.map