import { cn } from "./index3.js";
import { ChevronDown } from "lucide-react";
import { jsx, jsxs } from "react/jsx-runtime";
import { Accordion } from "@base-ui/react/accordion";
//#region src/components/ui/accordion.tsx
function Accordion$1({ className, ...props }) {
	return /* @__PURE__ */ jsx(Accordion.Root, {
		"data-slot": "accordion",
		className: cn("flex w-full flex-col", className),
		...props
	});
}
function AccordionItem({ className, ...props }) {
	return /* @__PURE__ */ jsx(Accordion.Item, {
		"data-slot": "accordion-item",
		className: cn("not-last:border-b", className),
		...props
	});
}
function AccordionTrigger({ className, children, ...props }) {
	return /* @__PURE__ */ jsx(Accordion.Header, {
		className: "flex",
		children: /* @__PURE__ */ jsxs(Accordion.Trigger, {
			"data-slot": "accordion-trigger",
			className: cn("focus-visible:ring-ring/50 focus-visible:border-ring focus-visible:after:border-ring **:data-[slot=accordion-trigger-icon]:text-muted-foreground rounded-md py-4 text-left text-sm font-medium focus-visible:ring-[3px] **:data-[slot=accordion-trigger-icon]:ms-auto **:data-[slot=accordion-trigger-icon]:size-5 group/accordion-trigger relative flex flex-1 items-center gap-3 justify-between border border-transparent transition-[color,border-color,box-shadow] duration-200 ease-smooth motion-reduce:transition-none outline-none disabled:pointer-events-none disabled:opacity-50", className),
			...props,
			children: [children, /* @__PURE__ */ jsx(ChevronDown, {
				"data-slot": "accordion-trigger-icon",
				className: "pointer-events-none shrink-0 transition-transform duration-200 ease-smooth group-aria-expanded/accordion-trigger:rotate-180 motion-reduce:transition-none"
			})]
		})
	});
}
function AccordionContent({ className, children, ...props }) {
	return /* @__PURE__ */ jsx(Accordion.Panel, {
		"data-slot": "accordion-content",
		className: "grid overflow-hidden text-sm transition-[grid-template-rows] duration-300 ease-decelerate motion-reduce:transition-none data-closed:grid-rows-[0fr] data-open:grid-rows-[1fr]",
		...props,
		children: /* @__PURE__ */ jsx("div", {
			className: "min-h-0",
			children: /* @__PURE__ */ jsx("div", {
				className: cn("pt-0 pb-4 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4", className),
				children
			})
		})
	});
}
Accordion$1.displayName = "Accordion";
AccordionItem.displayName = "Accordion.Item";
AccordionTrigger.displayName = "Accordion.Trigger";
AccordionContent.displayName = "Accordion.Content";
var AccordionNamespace = Object.assign(Accordion$1, {
	Item: AccordionItem,
	Trigger: AccordionTrigger,
	Content: AccordionContent
});
//#endregion
export { AccordionContent, AccordionItem, AccordionNamespace, AccordionTrigger };

//# sourceMappingURL=index398.js.map