UNPKG

@wix/design-system

Version:

@wix/design-system

13 lines 905 B
import type { FloatingArrowProps, MiddlewareData, UseFloatingReturn, UseInteractionsReturn } from '@floating-ui/react'; import type { PopoverNextProps } from '../PopoverNext.types'; export type PopoverNextContextValue = { portalRoot?: HTMLElement | null; interactions: UseInteractionsReturn; popoverStyles: React.CSSProperties; transitionStyles?: React.CSSProperties; context: UseFloatingReturn['context']; arrowProps: FloatingArrowProps; middlewareData: MiddlewareData; } & Pick<PopoverNextProps, 'dataHook' | 'flip' | 'placement' | 'open' | 'skin' | 'overlay' | 'role' | 'id' | 'style' | 'onClick' | 'showArrow' | 'customArrow' | 'moveArrowTo' | 'contentClassName'> & Required<Pick<PopoverNextProps, 'focusManagerEnabled' | 'appendTo' | 'zIndex'>>; export declare const usePopoverNextContext: () => PopoverNextContextValue; //# sourceMappingURL=usePopoverNextContext.d.ts.map