@react-aria/dialog
Advanced tools
Comparing version 3.5.14 to 3.5.15
import { AriaDialogProps } from "@react-types/dialog"; | ||
import { DOMAttributes, FocusableElement } from "@react-types/shared"; | ||
import { RefObject } from "react"; | ||
import { DOMAttributes, FocusableElement, RefObject } from "@react-types/shared"; | ||
export interface DialogAria { | ||
@@ -14,5 +13,5 @@ /** Props for the dialog container element. */ | ||
*/ | ||
export function useDialog(props: AriaDialogProps, ref: RefObject<FocusableElement>): DialogAria; | ||
export function useDialog(props: AriaDialogProps, ref: RefObject<FocusableElement | null>): DialogAria; | ||
export type { AriaDialogProps } from '@react-types/dialog'; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@react-aria/dialog", | ||
"version": "3.5.14", | ||
"version": "3.5.15", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,11 +25,11 @@ "license": "Apache-2.0", | ||
"peerDependencies": { | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0", | ||
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0" | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0", | ||
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0" | ||
}, | ||
"dependencies": { | ||
"@react-aria/focus": "^3.17.1", | ||
"@react-aria/overlays": "^3.22.1", | ||
"@react-aria/utils": "^3.24.1", | ||
"@react-types/dialog": "^3.5.10", | ||
"@react-types/shared": "^3.23.1", | ||
"@react-aria/focus": "^3.18.0", | ||
"@react-aria/overlays": "^3.23.0", | ||
"@react-aria/utils": "^3.25.0", | ||
"@react-types/dialog": "^3.5.11", | ||
"@react-types/shared": "^3.24.0", | ||
"@swc/helpers": "^0.5.0" | ||
@@ -40,3 +40,3 @@ }, | ||
}, | ||
"gitHead": "b77d7d594dff4dcfb5359bffbcfd18142b146433" | ||
"gitHead": "86d80e3216bc32e75108831cf3a5a720bc849206" | ||
} |
@@ -14,6 +14,6 @@ /* | ||
import {AriaDialogProps} from '@react-types/dialog'; | ||
import {DOMAttributes, FocusableElement} from '@react-types/shared'; | ||
import {DOMAttributes, FocusableElement, RefObject} from '@react-types/shared'; | ||
import {filterDOMProps, useSlotId} from '@react-aria/utils'; | ||
import {focusSafely} from '@react-aria/focus'; | ||
import {RefObject, useEffect, useRef} from 'react'; | ||
import {useEffect, useRef} from 'react'; | ||
import {useOverlayFocusContain} from '@react-aria/overlays'; | ||
@@ -33,3 +33,3 @@ | ||
*/ | ||
export function useDialog(props: AriaDialogProps, ref: RefObject<FocusableElement>): DialogAria { | ||
export function useDialog(props: AriaDialogProps, ref: RefObject<FocusableElement | null>): DialogAria { | ||
let {role = 'dialog'} = props; | ||
@@ -36,0 +36,0 @@ let titleId: string | undefined = useSlotId(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
42924
373
201
Updated@react-aria/focus@^3.18.0
Updated@react-aria/overlays@^3.23.0
Updated@react-aria/utils@^3.25.0
Updated@react-types/dialog@^3.5.11
Updated@react-types/shared@^3.24.0