import { jsx as o, jsxs as c } from "react/jsx-runtime";
import * as a from "@radix-ui/react-accordion";
import { c as i } from "../../../index-DwQpclly.js";
import { ChevronDown as d } from "lucide-react";
import { c as s } from "../../../index-BtlgVD4m.js";
const b = a.Root, l = i("flex flex-col ", {
  variants: {
    size: {
      default: "gap-[var(--spacing-4)] px-[var(--spacing-4)] py-[var(--spacing-4)]",
      sm: "gap-[var(--spacing-3)] px-[var(--spacing-4)] py-[var(--spacing-3)]"
    }
  },
  defaultVariants: {
    size: "default"
  }
}), p = ({ className: e, size: t = "default", ...r }) => /* @__PURE__ */ o(
  a.Item,
  {
    className: s(
      l({ size: t }),
      "data-[state=open]:border data-[state=open]:border-[var(--base-border)] data-[state=open]:rounded-[var(--border-radius-lg)] data-[state=open]:bg-[var(--base-background)]",
      e
    ),
    ...r
  }
);
p.displayName = "AccordionItemPrimitive";
const m = i(
  "flex flex-1 items-center justify-between h-[var(--height-h-6)] font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180 cursor-pointer",
  {
    variants: {
      size: {
        default: "text-[length:var(--typography-base-sizes-base-font-size)]",
        sm: "text-[length:var(--typography-base-sizes-base-font-size)]"
      }
    },
    defaultVariants: {
      size: "default"
    }
  }
), g = ({
  className: e,
  children: t,
  size: r = "default",
  ...n
}) => /* @__PURE__ */ o(a.Header, { className: "flex", children: /* @__PURE__ */ c(a.Trigger, { className: s(m({ size: r }), e), ...n, children: [
  t,
  /* @__PURE__ */ o(d, { className: "h-4 w-4 shrink-0 transition-transform duration-200" })
] }) });
g.displayName = a.Trigger.displayName;
const f = ({ className: e, children: t, ...r }) => /* @__PURE__ */ o(
  a.Content,
  {
    className: s("overflow-hidden transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down", e),
    ...r,
    children: /* @__PURE__ */ o("div", { className: "flex flex-col gap-[var(--spacing-3)] ", children: t })
  }
);
f.displayName = a.Content.displayName;
export {
  f as AccordionContent,
  p as AccordionItemPrimitive,
  b as AccordionRoot,
  g as AccordionTrigger
};
//# sourceMappingURL=AccordionPrimitives.js.map
