Module

React.Aria.Overlays

Package
purescript-react-aria
Repository
rowtype-yoga/purescript-react-aria

#UseModal Source

newtype UseModal hooks

Constructors

#UseModalOptions Source

type UseModalOptions = { isDisabled :: Boolean }

#ModalAria Source

type ModalAria = { modalProps :: { "data-ismodal" :: Boolean } }

#UseOverlay Source

newtype UseOverlay hooks

Constructors

#UseOverlayProps Source

type UseOverlayProps :: Row Typetype UseOverlayProps = (isDismissable :: Boolean, isKeyboardDismissaDisabled :: Boolean, isOpen :: Boolean, onClose :: Effect Unit, shouldCloseOnBlur :: Boolean, shouldCloseOnInteractOutside :: HTMLElement -> Boolean)

#OverlayAria Source

type OverlayAria = { overlayProps :: { onKeyDown :: EventHandler }, underlayProps :: { onPointerDown :: EventHandler } }

#useOverlayImpl Source

useOverlayImpl :: forall useOverlayProps. EffectFn2 useOverlayProps (Ref (Nullable Node)) OverlayAria

#useOverlay Source

useOverlay :: forall props props_. Union props props_ UseOverlayProps => Record props -> Ref (Nullable Node) -> Hook UseOverlay OverlayAria

#UseOverlayPosition Source

newtype UseOverlayPosition hooks

Constructors

#UseAriaPositionPropsRequired Source

type UseAriaPositionPropsRequired :: Row Type -> Row Typetype UseAriaPositionPropsRequired r = (overlayRef :: Ref (Nullable Node), targetRef :: Ref (Nullable Node) | r)

#UseAriaPositionPropsOptional Source

type UseAriaPositionPropsOptional :: Row Typetype UseAriaPositionPropsOptional = (boundaryElement :: HTMLElement, containerPadding :: Number, crossOffset :: Number, isOpen :: Boolean, offset :: Number, onClose :: Effect Unit, placement :: String, scrollRef :: Ref (Nullable Node), shouldFlip :: Boolean, shouldUpdatePosition :: Boolean)

#PositionAria Source

type PositionAria = { arrowProps :: { style :: CSS }, overlayProps :: { style :: CSS }, placement :: String, updatePosition :: Effect Unit }

#useOverlayPositionImpl Source

#UseOverlayTrigger Source

newtype UseOverlayTrigger hooks

Constructors

#UseOverlayTriggerProps Source

type UseOverlayTriggerProps = { type :: String }

Type must be one of the following 'dialog' 'menu' 'listbox' 'tree' 'grid'

#UseOverlayTriggerState Source

type UseOverlayTriggerState = { close :: Effect Unit, isOpen :: Boolean, open :: Effect Unit, toggle :: Effect Unit }

#OverlayTriggerAriaImpl Source

type OverlayTriggerAriaImpl = { overlayProps :: { id :: String }, triggerProps :: Object Foreign }

#OverlayTriggerAria Source

type OverlayTriggerAria = { overlayProps :: { id :: String }, triggerProps :: { _aria :: Object String } }

#UsePreventScroll Source

newtype UsePreventScroll hooks

Constructors

#UsePreventScrollOptions Source

type UsePreventScrollOptions = { isDisabled :: Boolean }

#overlayProvider Source

#overlayContainer Source

#dismissButton Source

#modalProvider Source