import { n as Scope } from "./create-context-CKMcRGBM.js"; import { t as IDirection } from "./direction.types-Cxja_joX.js"; import { t as Primitive } from "./primitive-elements-fih1b6xg.js"; import { t as DismissableLayer } from "./dismissable-layer-DkA49cNy.js"; import { t as FocusScope } from "./focus-scope-fAfYoUL1.js"; import { t as Portal } from "./portal-BUyCz8Ac.js"; import { t as PopperAnchor } from "./anchor-Bgns_m94.js"; import { t as PopperArrow } from "./arrow-DbUP9OBD.js"; import { t as PopperContent } from "./content-D_-CBs0c.js"; import { n as RovingFocusGroup } from "./roving-focus-COML8883.js"; import { t as CheckedState } from "./menu.libs-rtmfpuW4.js"; import * as React$1 from "react"; //#region src/menu/menu.types.d.ts declare namespace IMenu { export type IScoped = TProps & { __scopeMenu?: Scope; }; export type MenuContentElement = React$1.ComponentRef; export type MenuItemElement = React$1.ComponentRef; export type MenuSubTriggerElement = React$1.ComponentRef; export interface IItemData { disabled: boolean; textValue: string; } export interface IContext { open: boolean; onOpenChange(open: boolean): void; content: MenuContentElement | null; onContentChange(content: MenuContentElement | null): void; } export interface IRootContext { onClose(): void; isUsingKeyboardRef: React$1.RefObject; dir: IDirection.Kind; modal: boolean; } export interface IPortalContext { forceMount?: true | undefined; } export interface ISubContext { contentId: string; triggerId: string; trigger: MenuSubTriggerElement | null; onTriggerChange(trigger: MenuSubTriggerElement | null): void; } export interface IProps { children?: React$1.ReactNode; open?: boolean; onOpenChange?(open: boolean): void; dir?: IDirection.Kind; modal?: boolean; } export interface ISubProps { children?: React$1.ReactNode; open?: boolean; onOpenChange?(open: boolean): void; } type PrimitiveDivProps = React$1.ComponentPropsWithoutRef; type PrimitiveSpanProps = React$1.ComponentPropsWithoutRef; type PopperAnchorProps = React$1.ComponentPropsWithoutRef; type PopperArrowProps = React$1.ComponentPropsWithoutRef; type PopperContentProps = React$1.ComponentPropsWithoutRef; type FocusScopeProps = React$1.ComponentPropsWithoutRef; type DismissableLayerProps = React$1.ComponentPropsWithoutRef; type RovingFocusGroupProps = React$1.ComponentPropsWithoutRef; type PortalProps = React$1.ComponentPropsWithoutRef; export interface IAnchorProps extends PopperAnchorProps {} export interface IArrowProps extends PopperArrowProps {} export interface IGroupProps extends PrimitiveDivProps {} export interface ILabelProps extends PrimitiveDivProps {} export interface ISeparatorProps extends PrimitiveDivProps {} export interface IPortalProps { children?: React$1.ReactNode | undefined; container?: PortalProps['container'] | undefined; forceMount?: true | undefined; } export interface IItemImplProps extends PrimitiveDivProps { disabled?: boolean; textValue?: string; } export interface IItemProps extends Omit { onSelect?: (event: Event) => void; } export interface ICheckboxItemProps extends IItemProps { checked?: CheckedState; onCheckedChange?: (checked: boolean) => void; } export interface ICheckboxContext { checked: CheckedState; } export interface IItemIndicatorProps extends PrimitiveSpanProps { forceMount?: true; } export interface IRadioGroupProps extends IGroupProps { value?: string | undefined; onValueChange?: ((value: string) => void) | undefined; } export interface IRadioItemProps extends IItemProps { value: string; } export interface IContentImplPrivateProps { onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus']; onDismiss?: DismissableLayerProps['onDismiss']; disableOutsidePointerEvents?: DismissableLayerProps['disableOutsidePointerEvents']; disableOutsideScroll?: boolean; trapFocus?: FocusScopeProps['trapped']; } export interface IContentImplProps extends IContentImplPrivateProps, Omit { onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus']; loop?: RovingFocusGroupProps['loop']; onEntryFocus?: RovingFocusGroupProps['onEntryFocus']; onEscapeKeyDown?: DismissableLayerProps['onEscapeKeyDown']; onPointerDownOutside?: DismissableLayerProps['onPointerDownOutside']; onFocusOutside?: DismissableLayerProps['onFocusOutside']; onInteractOutside?: DismissableLayerProps['onInteractOutside']; } export interface IRootContentTypeProps extends Omit { trapFocus?: FocusScopeProps['trapped']; disableOutsidePointerEvents?: DismissableLayerProps['disableOutsidePointerEvents']; disableOutsideScroll?: boolean; } export interface IContentProps extends IRootContentTypeProps { forceMount?: true; } export interface ISubContentProps extends Omit { forceMount?: true; } export interface ISubTriggerProps extends IItemImplProps {} export {}; } //#endregion export { IMenu as t };