"use client";
'use strict';

var jsxRuntime = require('react/jsx-runtime');
var reactIcons_esm = require('../../node_modules/.pnpm/@radix-ui_react-icons@1.3.2_react@19.1.1/node_modules/@radix-ui/react-icons/dist/react-icons.esm.cjs');
var index$1 = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
var React = require('react');
var sheet_module = require('./sheet.module.css.cjs');
var index = require('../../node_modules/.pnpm/@radix-ui_react-dialog@1.1.14_@types_react-dom@19.1.7_@types_react@19.1.9__@types_react@19.1._i7gyttlqowrnok6rwi63tbbmni/node_modules/@radix-ui/react-dialog/dist/index.cjs');

const sheetContent = index$1.cva(sheet_module.default.sheetContent, {
    variants: {
        side: {
            top: sheet_module.default['sheetContent-top'],
            bottom: sheet_module.default['sheetContent-bottom'],
            left: sheet_module.default['sheetContent-left'],
            right: sheet_module.default['sheetContent-right']
        }
    },
    defaultVariants: {
        side: 'right'
    }
});
const SheetContent = React.forwardRef(({ className, children, close, side, ariaLabel, ariaDescription, ...props }, forwardedRef) => {
    return (jsxRuntime.jsx(index.Portal, { children: jsxRuntime.jsx(Overlay, { children: jsxRuntime.jsxs(index.Content, { ...props, ref: forwardedRef, className: sheetContent({ side, className }), "aria-label": ariaLabel || 'Sheet with overlay', "aria-describedby": ariaDescription ? 'sheet with overlay' : undefined, role: 'dialog', tabIndex: -1, children: [children, close && (jsxRuntime.jsx(CloseButton, { "aria-label": 'Close sheet', children: jsxRuntime.jsx(reactIcons_esm.Cross1Icon, { "aria-hidden": 'true' }) })), ariaDescription && (jsxRuntime.jsx("div", { id: 'sheet-description', className: 'sr-only', children: ariaDescription }))] }) }) }));
});
const overlay = index$1.cva(sheet_module.default.overlay);
const Overlay = React.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsx(index.Overlay, { ref: ref, className: overlay({ className }), "aria-hidden": 'true', role: 'presentation', ...props })));
Overlay.displayName = index.Overlay.displayName;
const close = index$1.cva(sheet_module.default.close);
function CloseButton({ children, className, ...props }) {
    return (jsxRuntime.jsx(index.Close, { className: close({ className }), ...props, "aria-label": 'Close', children: children }));
}
function RootSheet({ children, ariaLabel, ...props }) {
    return jsxRuntime.jsx(index.Root, { ...props, children: children });
}
const Sheet = Object.assign(RootSheet, {
    Trigger: index.Trigger,
    Content: SheetContent,
    Close: index.Close,
    Title: index.Title,
    Description: index.Description
});

exports.CloseButton = CloseButton;
exports.RootSheet = RootSheet;
exports.Sheet = Sheet;
exports.SheetContent = SheetContent;
//# sourceMappingURL=sheet.cjs.map
