"use client";
"use client";
import { cn as e } from "../../../lib/utils.js";
import { a as t, i as n, n as r, o as i, r as a, s as o, t as s } from "../../../DialogTrigger-BuKadcdL.js";
import { t as c } from "../../../button-BNOmhdpM.js";
import { t as l } from "../../../DialogRoot-eVsH835b.js";
import { jsx as u, jsxs as d } from "react/jsx-runtime";
import { XIcon as f } from "lucide-react";
//#region lib/components/ui/atoms/sheet.tsx
function p({ ...e }) {
	return /* @__PURE__ */ u(l, {
		"data-slot": "sheet",
		...e
	});
}
function m({ ...e }) {
	return /* @__PURE__ */ u(s, {
		"data-slot": "sheet-trigger",
		...e
	});
}
function h({ ...e }) {
	return /* @__PURE__ */ u(i, {
		"data-slot": "sheet-close",
		...e
	});
}
function g({ ...e }) {
	return /* @__PURE__ */ u(a, {
		"data-slot": "sheet-portal",
		...e
	});
}
function _({ className: t, ...n }) {
	return /* @__PURE__ */ u(o, {
		className: e("fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs", t),
		"data-slot": "sheet-overlay",
		...n
	});
}
function v({ className: t, children: r, side: a = "right", showCloseButton: o = !0, ...s }) {
	return /* @__PURE__ */ d(g, { children: [/* @__PURE__ */ u(_, {}), /* @__PURE__ */ d(n, {
		className: e("fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-popover-foreground text-sm shadow-lg transition duration-200 ease-in-out data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=bottom]:inset-x-0 data-[side=top]:inset-x-0 data-[side=left]:inset-y-0 data-[side=right]:inset-y-0 data-[side=top]:top-0 data-[side=right]:right-0 data-[side=bottom]:bottom-0 data-[side=left]:left-0 data-[side=bottom]:h-auto data-[side=left]:h-full data-[side=right]:h-full data-[side=top]:h-auto data-[side=left]:w-3/4 data-[side=right]:w-3/4 data-[side=bottom]:border-t data-[side=left]:border-r data-[side=top]:border-b data-[side=right]:border-l data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-[side=left]:lg:max-w-lg data-[side=right]:lg:max-w-lg data-[side=left]:xl:max-w-xl data-[side=right]:xl:max-w-xl", t),
		"data-side": a,
		"data-slot": "sheet-content",
		...s,
		children: [r, o && /* @__PURE__ */ d(i, {
			"data-slot": "sheet-close",
			render: /* @__PURE__ */ u(c, {
				className: "absolute top-4 right-4",
				size: "icon-sm",
				variant: "ghost"
			}),
			children: [/* @__PURE__ */ u(f, {}), /* @__PURE__ */ u("span", {
				className: "sr-only",
				children: "Close"
			})]
		})]
	})] });
}
function y({ className: t, ...n }) {
	return /* @__PURE__ */ u("div", {
		className: e("flex flex-col gap-1.5 p-4", t),
		"data-slot": "sheet-header",
		...n
	});
}
function b({ className: t, ...n }) {
	return /* @__PURE__ */ u("div", {
		className: e("mt-auto flex flex-col gap-2 p-4", t),
		"data-slot": "sheet-footer",
		...n
	});
}
function x({ className: t, ...n }) {
	return /* @__PURE__ */ u(r, {
		className: e("font-medium text-foreground", t),
		"data-slot": "sheet-title",
		...n
	});
}
function S({ className: n, ...r }) {
	return /* @__PURE__ */ u(t, {
		className: e("text-muted-foreground text-sm", n),
		"data-slot": "sheet-description",
		...r
	});
}
//#endregion
export { p as Sheet, h as SheetClose, v as SheetContent, S as SheetDescription, b as SheetFooter, y as SheetHeader, x as SheetTitle, m as SheetTrigger };
