@react-types/menu 3.6.2-nightly.3352 → 3.6.2-nightly.3355

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 +4 -4
  2. package/src/index.d.ts +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/menu",
3
- "version": "3.6.2-nightly.3352+373244834",
3
+ "version": "3.6.2-nightly.3355+263db8300",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -9,8 +9,8 @@
9
9
  "url": "https://github.com/adobe/react-spectrum"
10
10
  },
11
11
  "dependencies": {
12
- "@react-types/overlays": "3.6.2-nightly.3352+373244834",
13
- "@react-types/shared": "3.0.0-nightly.1652+373244834"
12
+ "@react-types/overlays": "3.6.2-nightly.3355+263db8300",
13
+ "@react-types/shared": "3.0.0-nightly.1655+263db8300"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
@@ -18,5 +18,5 @@
18
18
  "publishConfig": {
19
19
  "access": "public"
20
20
  },
21
- "gitHead": "373244834584954dd407853c12e2bc4d68d96162"
21
+ "gitHead": "263db83002000d6deed33b6eb1341e76f6609f42"
22
22
  }
package/src/index.d.ts CHANGED
@@ -57,7 +57,9 @@ export interface MenuProps<T> extends CollectionBase<T>, MultipleSelection {
57
57
  /** Whether keyboard navigation is circular. */
58
58
  shouldFocusWrap?: boolean,
59
59
  /** Handler that is called when an item is selected. */
60
- onAction?: (key: Key) => void
60
+ onAction?: (key: Key) => void,
61
+ /** Handler that is called when the menu should close after selecting an item. */
62
+ onClose?: () => void
61
63
  }
62
64
 
63
65
  export interface AriaMenuProps<T> extends MenuProps<T>, DOMProps, AriaLabelingProps {}