import { jsx as n } from "react/jsx-runtime";
import { Children as a, isValidElement as i, cloneElement as m } from "react";
import { AccordionRoot as s } from "./components/AccordionPrimitives.js";
import { c } from "../../index-BtlgVD4m.js";
const d = ({ defaultValue: o, children: t, size: l = "default" }) => /* @__PURE__ */ n(
  s,
  {
    type: "single",
    collapsible: !0,
    defaultValue: o,
    className: c("w-full rounded-[var(--border-radius-lg)] bg-[var(--base-muted)]"),
    children: a.map(t, (r) => {
      if (i(r)) {
        const e = r;
        return m(e, {
          ...e.props,
          size: l
        });
      }
      return r;
    })
  }
);
d.displayName = "Accordion";
export {
  d as default
};
//# sourceMappingURL=Accordion.js.map
