@@ -22,7 +22,7 @@ import {
2222} from 'react-aria-components' ;
2323import { colorScheme , getAllowedOverrides , heightProperties , UnsafeStyles , widthProperties } from './style-utils' with { type : 'macro' } ;
2424import { ColorSchemeContext } from './Provider' ;
25- import { createContext , ForwardedRef , forwardRef , useCallback , useContext , useMemo } from 'react' ;
25+ import { createContext , ForwardedRef , forwardRef , ReactNode , useCallback , useContext , useMemo } from 'react' ;
2626import { DOMRef , DOMRefValue , GlobalDOMAttributes } from '@react-types/shared' ;
2727import { lightDark , style } from '../style' with { type : 'macro' } ;
2828import { mergeRefs } from '@react-aria/utils' ;
@@ -31,7 +31,20 @@ import {StyleString} from '../style/types' with {type: 'macro'};
3131import { useDOMRef } from '@react-spectrum/utils' ;
3232import { useSpectrumContextProps } from './useSpectrumContextProps' ;
3333
34- export interface PopoverProps extends UnsafeStyles , Omit < AriaPopoverProps , 'arrowSize' | 'isNonModal' | 'arrowBoundaryOffset' | 'isKeyboardDismissDisabled' | 'shouldCloseOnInteractOutside' | 'shouldUpdatePosition' | keyof GlobalDOMAttributes > {
34+ export interface PopoverProps extends UnsafeStyles , Omit < AriaPopoverProps ,
35+ 'arrowSize' |
36+ 'isNonModal' |
37+ 'arrowBoundaryOffset' |
38+ 'isKeyboardDismissDisabled' |
39+ 'shouldCloseOnInteractOutside' |
40+ 'shouldUpdatePosition' |
41+ 'style' |
42+ 'className' |
43+ keyof GlobalDOMAttributes
44+ > {
45+ /**
46+ * The styles of the popover.
47+ */
3548 styles ?: StyleString ,
3649 /**
3750 * Whether a popover's arrow should be hidden.
@@ -228,7 +241,22 @@ export const PopoverBase = forwardRef(function PopoverBase(props: PopoverProps,
228241} ) ;
229242
230243type PopoverStylesProp = StyleString < ( ( typeof widthProperties ) [ number ] | ( typeof heightProperties ) [ number ] ) > ;
231- export interface PopoverDialogProps extends Pick < PopoverProps , 'children' | 'size' | 'hideArrow' | 'placement' | 'shouldFlip' | 'containerPadding' | 'offset' | 'crossOffset' | 'triggerRef' | 'isOpen' | 'onOpenChange' > , Omit < DialogProps , 'children' | 'className' | 'style' | keyof GlobalDOMAttributes > , UnsafeStyles {
244+ export interface PopoverDialogProps extends Pick < PopoverProps ,
245+ 'size' |
246+ 'hideArrow' |
247+ 'placement' |
248+ 'shouldFlip' |
249+ 'containerPadding' |
250+ 'offset' |
251+ 'crossOffset' |
252+ 'triggerRef' |
253+ 'isOpen' |
254+ 'onOpenChange'
255+ > , Omit < DialogProps , 'children' | 'className' | 'style' | keyof GlobalDOMAttributes > , UnsafeStyles {
256+ /**
257+ * The children of the popover.
258+ */
259+ children ?: ReactNode ,
232260 /**
233261 * The amount of padding around the contents of the dialog.
234262 * @default 'default'
0 commit comments