@react-types/overlays 3.6.6-nightly.3633 → 3.6.6-nightly.3654

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/index.d.ts +6 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/overlays",
3
- "version": "3.6.6-nightly.3633+080488a85",
3
+ "version": "3.6.6-nightly.3654+ff3e690ff",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  "url": "https://github.com/adobe/react-spectrum"
10
10
  },
11
11
  "dependencies": {
12
- "@react-types/shared": "3.0.0-nightly.1933+080488a85"
12
+ "@react-types/shared": "3.0.0-nightly.1954+ff3e690ff"
13
13
  },
14
14
  "peerDependencies": {
15
15
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
@@ -17,5 +17,5 @@
17
17
  "publishConfig": {
18
18
  "access": "public"
19
19
  },
20
- "gitHead": "080488a859be32a1ee30f4f9fdcc4d5e8331a144"
20
+ "gitHead": "ff3e690fffc6c54367b8057e28a0e5b9211f37b5"
21
21
  }
package/src/index.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import {HTMLAttributes, ReactElement, ReactNode} from 'react';
13
+ import {HTMLAttributes, MutableRefObject, ReactElement, ReactNode} from 'react';
14
14
  import {StyleProps} from '@react-types/shared';
15
15
 
16
16
  export type Placement = 'bottom' | 'bottom left' | 'bottom right' | 'bottom start' | 'bottom end' |
@@ -71,10 +71,11 @@ export interface OverlayProps {
71
71
  onEntered?: () => void,
72
72
  onExit?: () => void,
73
73
  onExiting?: () => void,
74
- onExited?: () => void
74
+ onExited?: () => void,
75
+ nodeRef: MutableRefObject<HTMLElement>
75
76
  }
76
77
 
77
- export interface ModalProps extends StyleProps, OverlayProps {
78
+ export interface ModalProps extends StyleProps, Omit<OverlayProps, 'nodeRef'> {
78
79
  children: ReactElement,
79
80
  isOpen?: boolean,
80
81
  onClose?: () => void,
@@ -82,7 +83,7 @@ export interface ModalProps extends StyleProps, OverlayProps {
82
83
  isDismissable?: boolean
83
84
  }
84
85
 
85
- export interface PopoverProps extends StyleProps, OverlayProps {
86
+ export interface PopoverProps extends StyleProps, Omit<OverlayProps, 'nodeRef'> {
86
87
  children: ReactNode,
87
88
  placement?: PlacementAxis,
88
89
  arrowProps?: HTMLAttributes<HTMLElement>,
@@ -94,7 +95,7 @@ export interface PopoverProps extends StyleProps, OverlayProps {
94
95
  isDismissable?: boolean
95
96
  }
96
97
 
97
- export interface TrayProps extends StyleProps, OverlayProps {
98
+ export interface TrayProps extends StyleProps, Omit<OverlayProps, 'nodeRef'> {
98
99
  children: ReactElement,
99
100
  isOpen?: boolean,
100
101
  onClose?: () => void,