import { j as jsxRuntimeExports } from '../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
import { Portal as $5d3850c4d0b4e6c7$export$602eac185826482c, Content as $5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2, Overlay as $5d3850c4d0b4e6c7$export$c6fdb837b070b4ff, Close as $5d3850c4d0b4e6c7$export$f39c2d165cd861fe, Trigger as $5d3850c4d0b4e6c7$export$41fb9f06171c75f4, Title as $5d3850c4d0b4e6c7$export$f99233281efd08a0, Description as $5d3850c4d0b4e6c7$export$393edc798c47379d, Root as $5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9 } from '../node_modules/.pnpm/@radix-ui_react-dialog@1.0.4_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@18.3.1_react@18.2.0__react@18.2.0/node_modules/@radix-ui/react-dialog/dist/index.js';
import { Cross1Icon } from '../node_modules/.pnpm/@radix-ui_react-icons@1.3.0_react@18.2.0/node_modules/@radix-ui/react-icons/dist/react-icons.esm.js';
import { cva } from '../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
import { forwardRef } from 'react';
import styles from './sheet.module.css.js';

const sheetContent = cva(styles.sheetContent, {
    variants: {
        side: {
            top: styles["sheetContent-top"],
            bottom: styles["sheetContent-bottom"],
            left: styles["sheetContent-left"],
            right: styles["sheetContent-right"],
        },
    },
    defaultVariants: {
        side: "right",
    },
});
const SheetContent = forwardRef(({ className, children, close, side, ...props }, forwardedRef) => {
    return (jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$602eac185826482c, { children: jsxRuntimeExports.jsx(Overlay, { children: jsxRuntimeExports.jsxs($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2, { ...props, ref: forwardedRef, className: sheetContent({ side, className }), children: [children, close && (jsxRuntimeExports.jsx(CloseButton, { children: jsxRuntimeExports.jsx(Cross1Icon, {}) }))] }) }) }));
});
const overlay = cva(styles.overlay);
const Overlay = forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff, { ref: ref, className: overlay({ className }), ...props })));
Overlay.displayName = $5d3850c4d0b4e6c7$export$c6fdb837b070b4ff.displayName;
const close = cva(styles.close);
/**
 * @deprecated Use Sheet component from @raystack/apsara/v1 instead.
 */
function CloseButton({ children, className, ...props }) {
    return (jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$f39c2d165cd861fe, { className: close({ className }), ...props, children: children }));
}
/**
 * @deprecated Use Sheet from @raystack/apsara/v1 instead.
 */
function RootSheet({ children, ...props }) {
    return jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9, { ...props, children: children });
}
/**
 * @deprecated Use Sheet from @raystack/apsara/v1 instead.
 */
const Sheet = Object.assign(RootSheet, {
    Trigger: $5d3850c4d0b4e6c7$export$41fb9f06171c75f4,
    Content: SheetContent,
    Close: $5d3850c4d0b4e6c7$export$f39c2d165cd861fe,
    Title: $5d3850c4d0b4e6c7$export$f99233281efd08a0,
    Description: $5d3850c4d0b4e6c7$export$393edc798c47379d,
});

export { CloseButton, RootSheet, Sheet, SheetContent };
//# sourceMappingURL=sheet.js.map
