@react-stately/menu
Advanced tools
Comparing version 3.1.0 to 3.2.0
@@ -25,2 +25,11 @@ var { | ||
}, overlayTriggerState, { | ||
open(focusStrategy) { | ||
if (focusStrategy === void 0) { | ||
focusStrategy = null; | ||
} | ||
setFocusStrategy(focusStrategy); | ||
overlayTriggerState.open(); | ||
}, | ||
toggle(focusStrategy) { | ||
@@ -27,0 +36,0 @@ if (focusStrategy === void 0) { |
@@ -15,2 +15,11 @@ import { useState } from "react"; | ||
}, overlayTriggerState, { | ||
open(focusStrategy) { | ||
if (focusStrategy === void 0) { | ||
focusStrategy = null; | ||
} | ||
setFocusStrategy(focusStrategy); | ||
overlayTriggerState.open(); | ||
}, | ||
toggle(focusStrategy) { | ||
@@ -17,0 +26,0 @@ if (focusStrategy === void 0) { |
@@ -7,2 +7,4 @@ import { FocusStrategy } from "@react-types/shared"; | ||
readonly focusStrategy: FocusStrategy; | ||
/** Opens the menu. */ | ||
open(focusStrategy?: FocusStrategy | null): void; | ||
/** Toggles the menu. */ | ||
@@ -9,0 +11,0 @@ toggle(focusStrategy?: FocusStrategy | null): void; |
{ | ||
"name": "@react-stately/menu", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "Spectrum UI components in React", | ||
@@ -24,3 +24,3 @@ "license": "Apache-2.0", | ||
"@react-types/menu": "^3.1.0", | ||
"@react-types/shared": "^3.1.0" | ||
"@react-types/shared": "^3.2.0" | ||
}, | ||
@@ -33,3 +33,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "211099972fe75ee581892efd01a7f89dfb9cdf69" | ||
"gitHead": "661f0f2e3b8648a75aae83043267954700059fe0" | ||
} |
@@ -22,2 +22,5 @@ /* | ||
/** Opens the menu. */ | ||
open(focusStrategy?: FocusStrategy | null): void, | ||
/** Toggles the menu. */ | ||
@@ -38,2 +41,6 @@ toggle(focusStrategy?: FocusStrategy | null): void | ||
...overlayTriggerState, | ||
open(focusStrategy: FocusStrategy = null) { | ||
setFocusStrategy(focusStrategy); | ||
overlayTriggerState.open(); | ||
}, | ||
toggle(focusStrategy: FocusStrategy = null) { | ||
@@ -40,0 +47,0 @@ setFocusStrategy(focusStrategy); |
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
24934
140
Updated@react-types/shared@^3.2.0