'use strict';

var jsxRuntime = require('../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
var React = require('react');
var index$1 = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.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 dropdownMenu_module = require('./dropdown-menu.module.css.cjs');
var dropdownMenuRoot = require('./dropdown-menu-root.cjs');

const DropdownMenuLabel = React.forwardRef(({ className, ...props }, ref) => {
    const { autocomplete, searchValue } = dropdownMenuRoot.useDropdownContext();
    const menuLevel = dropdownMenuRoot.useMenuLevel();
    if (autocomplete && menuLevel === 1 && searchValue?.length)
        return null;
    return (jsxRuntime.jsxRuntimeExports.jsx(index.Label, { ref: ref, className: index$1.cx(dropdownMenu_module.default.label, className), ...props }));
});
DropdownMenuLabel.displayName = index.Label.displayName;
const DropdownMenuSeparator = React.forwardRef(({ className, ...props }, ref) => {
    const { autocomplete, searchValue } = dropdownMenuRoot.useDropdownContext();
    const menuLevel = dropdownMenuRoot.useMenuLevel();
    if (autocomplete && menuLevel === 1 && searchValue?.length)
        return null;
    return (jsxRuntime.jsxRuntimeExports.jsx(index.Separator, { ref: ref, className: index$1.cx(dropdownMenu_module.default.separator, className), ...props }));
});
DropdownMenuSeparator.displayName = index.Separator.displayName;
const DropdownMenuGroup = React.forwardRef(({ className, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx(index.Group, { ref: ref, className: index$1.cx(dropdownMenu_module.default.menugroup, className), ...props })));
DropdownMenuGroup.displayName = index.Group.displayName;
const DropdownMenuEmptyState = React.forwardRef(({ className, children, ...props }, ref) => (jsxRuntime.jsxRuntimeExports.jsx("div", { ref: ref, className: index$1.cx(dropdownMenu_module.default.empty, className), ...props, children: children })));
DropdownMenuEmptyState.displayName = "DropdownMenuEmptyState";

exports.DropdownMenuEmptyState = DropdownMenuEmptyState;
exports.DropdownMenuGroup = DropdownMenuGroup;
exports.DropdownMenuLabel = DropdownMenuLabel;
exports.DropdownMenuSeparator = DropdownMenuSeparator;
//# sourceMappingURL=dropdown-menu-misc.cjs.map
