"use client";
import { t as e } from "../../chunks/clsx.js";
import { getButtonClasses as t } from "./Button.type.js";
import { ButtonContent as n } from "./ButtonContent.js";
import { jsx as r } from "react/jsx-runtime";
//#region lib/ui/buttons/Button.tsx
function i({ component: e, disabled: t, ...n }) {
	return e === "a" || "href" in n || typeof e == "object" ? {
		attrs: {
			"data-name": "ButtonAnchor",
			"aria-disabled": t ? "true" : void 0,
			...n
		},
		Cmp: "a"
	} : e === "span" || e === "div" ? {
		attrs: {
			"data-name": "FakeButton",
			"aria-disabled": t ? "true" : void 0,
			...n
		},
		Cmp: "span"
	} : {
		attrs: {
			"data-name": "Button",
			type: "button",
			disabled: t,
			...n
		},
		Cmp: "button"
	};
}
var a = ({ className: a, children: o, color: s = "saffron", icon: c, iconWidth: l, size: u = "medium", theme: d = "solid", variant: f = "pill", ...p }) => {
	let { Cmp: m, attrs: h } = i(p);
	return /* @__PURE__ */ r(m, {
		...h,
		className: e(t({
			color: s,
			size: u,
			theme: d,
			variant: f
		}), a),
		children: /* @__PURE__ */ r(n, {
			icon: c,
			iconWidth: l,
			children: o
		})
	});
};
a.displayName = "Button";
//#endregion
export { a as Button, i as useButton };

//# sourceMappingURL=Button.js.map