'use strict';

var jsxRuntime = require('../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
var index = require('../node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.0.5_@types_react-dom@18.0.11_@types_react@18.2.12_react-dom@1_e7gmnqwdc4f4ybjj7qkfdho6zy/node_modules/@radix-ui/react-dropdown-menu/dist/index.cjs');
var index$1 = require('../node_modules/.pnpm/class-variance-authority@0.6.0_typescript@5.4.3/node_modules/class-variance-authority/dist/index.cjs');
var React = require('react');
var dropdownMenu_module = require('./dropdown-menu.module.css.cjs');

function _interopNamespaceDefault(e) {
    var n = Object.create(null);
    if (e) {
        Object.keys(e).forEach(function (k) {
            if (k !== 'default') {
                var d = Object.getOwnPropertyDescriptor(e, k);
                Object.defineProperty(n, k, d.get ? d : {
                    enumerable: true,
                    get: function () { return e[k]; }
                });
            }
        });
    }
    n.default = e;
    return Object.freeze(n);
}

var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);

const content = index$1.cva(dropdownMenu_module.default.content);
const DropdownMenuContent = React__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Portal, { children: jsxRuntime.jsxRuntimeExports.jsx(index.Content, { ref: ref, sideOffset: sideOffset, className: content({ className }), ...props }) })));
DropdownMenuContent.displayName = index.Content.displayName;
const menuitem = index$1.cva(dropdownMenu_module.default.menuitem);
const DropdownMenuItem = React__namespace.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Item, { ref: ref, className: menuitem({ className }), ...props })));
DropdownMenuItem.displayName = index.Item.displayName;
const label = index$1.cva(dropdownMenu_module.default.label);
const DropdownMenuLabel = React__namespace.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Label, { ref: ref, className: label({ className }), ...props })));
DropdownMenuLabel.displayName = index.Label.displayName;
const separator = index$1.cva(dropdownMenu_module.default.separator);
const DropdownMenuSeparator = React__namespace.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Separator, { ref: ref, className: separator({ className }), ...props })));
DropdownMenuSeparator.displayName = index.Separator.displayName;
const menugroup = index$1.cva(dropdownMenu_module.default.menugroup);
const DropdownMenuGroup = React__namespace.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Group, { ref: ref, className: menugroup({ className }), ...props })));
DropdownMenuGroup.displayName = index.Group.displayName;
/**
 * @deprecated Use DropdownMenu from '@raystack/apsara/v1' instead.
 */
const DropdownMenu = Object.assign(index.Root, {
    Trigger: index.Trigger,
    Content: DropdownMenuContent,
    Item: DropdownMenuItem,
    Group: DropdownMenuGroup,
    Label: DropdownMenuLabel,
    Separator: DropdownMenuSeparator,
});

exports.DropdownMenu = DropdownMenu;
//# sourceMappingURL=dropdown-menu.cjs.map
