/* * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved. * This file is licensed to you under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. You may obtain a copy * of the License at https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ import { IconProps } from "../icon/types.js"; import { ReactElement, RefAttributes } from "react"; import { MenuItemProps as MenuItemProps$1, MenuProps as MenuProps$1, MenuSectionProps as MenuSectionProps$1, PopoverProps, TextProps } from "react-aria-components/Menu"; //#region src/components/menu/types.d.ts /** * Props for the Menu component. */ type MenuProps = Omit, 'className'> & RefAttributes & { /** CSS class names for menu elements. */ classNames?: { /** Class name for the menu container. */ menu?: MenuProps$1['className']; /** Class name for the popover wrapper. */ popover?: PopoverProps['className']; }; /** Props passed to the internal Popover component. */ popoverProps?: Omit; /** Visual density variant for the menu. */ variant?: 'compact' | 'cozy'; }; /** * Props for the MenuItem component. */ type MenuItemProps = Omit & { /** CSS class names for menu item elements. */ classNames?: { /** Class name for the menu item container. */ item?: MenuItemProps$1['className']; /** Class name for the text label. */ text?: TextProps['className']; /** Class name for the submenu indicator icon. */ more?: IconProps['className']; /** Class name for the item icon. */ icon?: IconProps['className']; /** Class name for the hotkey display. */ hotkey?: string; }; /** Color variant for the menu item. */ color?: 'info' | 'serious' | 'critical'; }; /** * Props for the MenuSection component. */ type MenuSectionProps = Omit, 'className'> & { /** CSS class names for section elements. */ classNames?: { /** Class name for the section container. */ section?: MenuSectionProps$1['className']; /** Class name for the section header. */ header?: string; }; /** Title displayed in the section header. */ title?: string | ReactElement; }; //#endregion export { MenuItemProps, MenuProps, MenuSectionProps }; //# sourceMappingURL=types.d.ts.map