UNPKG

@harvest-profit/npk

Version:
43 lines 1.4 kB
import { useMergeRefs } from '@floating-ui/react'; import React, { CSSProperties } from 'react'; interface MenuContextType { menu?: boolean; open?: boolean; refs?: { setReference: (node: HTMLElement | null) => void; setFloating: (node: HTMLElement | null) => void; reference?: any; floating?: any; }; setOpen?: (open: boolean) => void; context?: any; floatingStyles?: CSSProperties; getFloatingProps?: (any: any) => Record<string, any>; getReferenceProps?: (any: any) => Record<string, any>; useMergeRefs?: typeof useMergeRefs; initialFocus?: any; submenu?: boolean; labelId?: string | null; descriptionId?: string | null; showArrow?: boolean; arrowRef?: any; placement?: string; variant?: string; role?: string; } declare const MenuContext: React.Context<MenuContextType>; export default MenuContext; interface MenuContentsContextType { inMenu: boolean; variant?: string; role?: 'dialog' | 'menu' | 'listbox'; placement?: string; onDismiss?: (any?: any) => void; } export declare const MenuContentsContext: React.Context<MenuContentsContextType>; export declare const useMenuContext: () => MenuContextType; export declare const Reset: React.FC<{ children: React.ReactNode; }>; export { MenuContextType, MenuContentsContextType }; //# sourceMappingURL=MenuContext.d.ts.map