import { t as e } from "../chunks/ui.module-DHVTOqZ0.js";
import { n as t } from "../chunks/uiClasses-UkaejTdf.js";
import { t as n } from "../chunks/flex-C7njxZ74.js";
import { useId as r, useState as i } from "react";
import { cn as a } from "@ryuzaki13/react-foundation-lib/utils";
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
import { ChevronDownIcon as l, ChevronUpIcon as u } from "lucide-react";
var d = {
	disclosureHeader: "P-rCx1",
	disclosureButton: "_9yjaDf",
	disclosureActions: "izVkky",
	disclosureGroup: "KAIPfW",
	disclosure: "O-da-N"
};
//#endregion
//#region src/disclosure/Disclosure.tsx
function f({ label: f, defaultOpen: p, headerActions: m, tone: h = "primary", children: g }) {
	let [_, v] = i(p === !0), y = r(), b = r(), x = t(h);
	return /* @__PURE__ */ c("div", {
		className: a(e.uiElement, e.uiPanel, x, d.disclosure),
		children: [/* @__PURE__ */ c("div", {
			className: d.disclosureHeader,
			children: [/* @__PURE__ */ c("button", {
				id: b,
				type: "button",
				"aria-expanded": _,
				"aria-controls": y,
				className: a(d.disclosureButton, "fontBold radiusSm paddingSm gapSm"),
				"data-ui": "disclosure-toggle",
				"data-action": _ ? "collapse-disclosure" : "expand-disclosure",
				onClick: () => v((e) => !e),
				children: [s(_ ? u : l, {}), f]
			}), m ? /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(n, {}), m] }) : null]
		}), _ && /* @__PURE__ */ s("div", {
			id: y,
			role: "region",
			"aria-labelledby": b,
			children: /* @__PURE__ */ s("div", {
				className: "paddingMd",
				children: g
			})
		})]
	});
}
//#endregion
//#region src/disclosure/DisclosureGroup.tsx
function p({ className: e, children: t }) {
	return /* @__PURE__ */ s("div", {
		className: a(d.disclosureGroup, e),
		children: t
	});
}
//#endregion
export { f as Disclosure, p as DisclosureGroup };

//# sourceMappingURL=index.js.map