@react-types/menu
Advanced tools
Comparing version
{ | ||
"name": "@react-types/menu", | ||
"version": "3.0.0-nightly-90b6fd4f7-250221", | ||
"version": "3.0.0-nightly-9349d12e3-250813", | ||
"description": "Spectrum UI components in React", | ||
@@ -12,4 +12,4 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-types/overlays": "3.0.0-nightly-90b6fd4f7-250221", | ||
"@react-types/shared": "3.0.0-nightly-90b6fd4f7-250221" | ||
"@react-types/overlays": "3.0.0-nightly-9349d12e3-250813", | ||
"@react-types/shared": "3.0.0-nightly-9349d12e3-250813" | ||
}, | ||
@@ -16,0 +16,0 @@ "peerDependencies": { |
@@ -65,3 +65,13 @@ /* | ||
export interface AriaMenuProps<T> extends MenuProps<T>, DOMProps, AriaLabelingProps {} | ||
export interface AriaMenuProps<T> extends MenuProps<T>, DOMProps, AriaLabelingProps { | ||
/** | ||
* Whether pressing the escape key should clear selection in the menu or not. | ||
* | ||
* Most experiences should not modify this option as it eliminates a keyboard user's ability to | ||
* easily clear selection. Only use if the escape key is being handled externally or should not | ||
* trigger selection clearing contextually. | ||
* @default 'clearSelection' | ||
*/ | ||
escapeKeyBehavior?: 'clearSelection' | 'none' | ||
} | ||
export interface SpectrumMenuProps<T> extends AriaMenuProps<T>, StyleProps {} | ||
@@ -68,0 +78,0 @@ |
4031
11.6%80
14.29%+ Added
+ Added
- Removed
- Removed