@react-aria/menu
Advanced tools
Comparing version 3.0.2 to 3.1.0
@@ -33,4 +33,4 @@ var { | ||
* Provides the behavior and accessibility implementation for a menu trigger. | ||
* @param props - props for the menu trigger | ||
* @param state - state for the menu trigger | ||
* @param props - Props for the menu trigger. | ||
* @param state - State for the menu trigger. | ||
*/ | ||
@@ -101,4 +101,4 @@ function useMenuTrigger(props, state, ref) { | ||
* A menu displays a list of actions or options that a user can choose. | ||
* @param props - props for the menu | ||
* @param state - state for the menu, as returned by `useListState` | ||
* @param props - Props for the menu. | ||
* @param state - State for the menu, as returned by `useListState`. | ||
*/ | ||
@@ -139,4 +139,4 @@ function useMenu(props, state, ref) { | ||
* See `useMenu` for more details about menus. | ||
* @param props - props for the item | ||
* @param state - state for the menu, as returned by `useTreeState` | ||
* @param props - Props for the item. | ||
* @param state - State for the menu, as returned by `useTreeState`. | ||
*/ | ||
@@ -265,3 +265,3 @@ function useMenuItem(props, state, ref) { | ||
* See `useMenu` for more details about menus. | ||
* @param props - props for the section | ||
* @param props - Props for the section. | ||
*/ | ||
@@ -268,0 +268,0 @@ function useMenuSection(props) { |
@@ -10,4 +10,4 @@ import { isFocusVisible, useHover, usePress } from "@react-aria/interactions"; | ||
* Provides the behavior and accessibility implementation for a menu trigger. | ||
* @param props - props for the menu trigger | ||
* @param state - state for the menu trigger | ||
* @param props - Props for the menu trigger. | ||
* @param state - State for the menu trigger. | ||
*/ | ||
@@ -76,4 +76,4 @@ export function useMenuTrigger(props, state, ref) { | ||
* A menu displays a list of actions or options that a user can choose. | ||
* @param props - props for the menu | ||
* @param state - state for the menu, as returned by `useListState` | ||
* @param props - Props for the menu. | ||
* @param state - State for the menu, as returned by `useListState`. | ||
*/ | ||
@@ -112,4 +112,4 @@ export function useMenu(props, state, ref) { | ||
* See `useMenu` for more details about menus. | ||
* @param props - props for the item | ||
* @param state - state for the menu, as returned by `useTreeState` | ||
* @param props - Props for the item. | ||
* @param state - State for the menu, as returned by `useTreeState`. | ||
*/ | ||
@@ -236,3 +236,3 @@ export function useMenuItem(props, state, ref) { | ||
* See `useMenu` for more details about menus. | ||
* @param props - props for the section | ||
* @param props - Props for the section. | ||
*/ | ||
@@ -239,0 +239,0 @@ export function useMenuSection(props) { |
@@ -19,8 +19,8 @@ import { AriaButtonProps } from "@react-types/button"; | ||
* Provides the behavior and accessibility implementation for a menu trigger. | ||
* @param props - props for the menu trigger | ||
* @param state - state for the menu trigger | ||
* @param props - Props for the menu trigger. | ||
* @param state - State for the menu trigger. | ||
*/ | ||
export function useMenuTrigger(props: MenuTriggerAriaProps, state: MenuTriggerState, ref: RefObject<HTMLElement>): MenuTriggerAria; | ||
interface MenuAria { | ||
/** Props for the menu element */ | ||
/** Props for the menu element. */ | ||
menuProps: HTMLAttributes<HTMLElement>; | ||
@@ -40,14 +40,14 @@ } | ||
* A menu displays a list of actions or options that a user can choose. | ||
* @param props - props for the menu | ||
* @param state - state for the menu, as returned by `useListState` | ||
* @param props - Props for the menu. | ||
* @param state - State for the menu, as returned by `useListState`. | ||
*/ | ||
export function useMenu<T>(props: AriaMenuOptions<T>, state: TreeState<T>, ref: RefObject<HTMLElement>): MenuAria; | ||
interface MenuItemAria { | ||
/** Props for the menu item element */ | ||
/** Props for the menu item element. */ | ||
menuItemProps: HTMLAttributes<HTMLElement>; | ||
/** Props for the main text element inside the menu item */ | ||
/** Props for the main text element inside the menu item. */ | ||
labelProps: HTMLAttributes<HTMLElement>; | ||
/** Props for the description text element inside the menu item, if any */ | ||
/** Props for the description text element inside the menu item, if any. */ | ||
descriptionProps: HTMLAttributes<HTMLElement>; | ||
/** Props for the keyboard shortcut text element inside the item, if any */ | ||
/** Props for the keyboard shortcut text element inside the item, if any. */ | ||
keyboardShortcutProps: HTMLAttributes<HTMLElement>; | ||
@@ -79,4 +79,4 @@ } | ||
* See `useMenu` for more details about menus. | ||
* @param props - props for the item | ||
* @param state - state for the menu, as returned by `useTreeState` | ||
* @param props - Props for the item. | ||
* @param state - State for the menu, as returned by `useTreeState`. | ||
*/ | ||
@@ -101,3 +101,3 @@ export function useMenuItem<T>(props: AriaMenuItemProps, state: TreeState<T>, ref: RefObject<HTMLElement>): MenuItemAria; | ||
* See `useMenu` for more details about menus. | ||
* @param props - props for the section | ||
* @param props - Props for the section. | ||
*/ | ||
@@ -104,0 +104,0 @@ export function useMenuSection(props: AriaMenuSectionProps): MenuSectionAria; |
{ | ||
"name": "@react-aria/menu", | ||
"version": "3.0.2", | ||
"version": "3.1.0", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,12 +21,12 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-aria/interactions": "^3.0.2", | ||
"@react-aria/overlays": "^3.0.2", | ||
"@react-aria/selection": "^3.0.2", | ||
"@react-aria/utils": "^3.0.2", | ||
"@react-stately/collections": "^3.0.2", | ||
"@react-stately/menu": "^3.0.2", | ||
"@react-stately/tree": "^3.0.2", | ||
"@react-types/button": "^3.0.2", | ||
"@react-types/menu": "^3.0.2", | ||
"@react-types/shared": "^3.0.2" | ||
"@react-aria/interactions": "^3.1.0", | ||
"@react-aria/overlays": "^3.1.0", | ||
"@react-aria/selection": "^3.1.0", | ||
"@react-aria/utils": "^3.1.0", | ||
"@react-stately/collections": "^3.1.0", | ||
"@react-stately/menu": "^3.1.0", | ||
"@react-stately/tree": "^3.1.0", | ||
"@react-types/button": "^3.1.0", | ||
"@react-types/menu": "^3.1.0", | ||
"@react-types/shared": "^3.1.0" | ||
}, | ||
@@ -39,3 +39,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "05003506f02a0ec173f3448f1801cbdf12b47bc7" | ||
"gitHead": "211099972fe75ee581892efd01a7f89dfb9cdf69" | ||
} |
@@ -21,3 +21,3 @@ /* | ||
interface MenuAria { | ||
/** Props for the menu element */ | ||
/** Props for the menu element. */ | ||
menuProps: HTMLAttributes<HTMLElement> | ||
@@ -40,4 +40,4 @@ } | ||
* A menu displays a list of actions or options that a user can choose. | ||
* @param props - props for the menu | ||
* @param state - state for the menu, as returned by `useListState` | ||
* @param props - Props for the menu. | ||
* @param state - State for the menu, as returned by `useListState`. | ||
*/ | ||
@@ -44,0 +44,0 @@ export function useMenu<T>(props: AriaMenuOptions<T>, state: TreeState<T>, ref: RefObject<HTMLElement>): MenuAria { |
@@ -21,12 +21,12 @@ /* | ||
interface MenuItemAria { | ||
/** Props for the menu item element */ | ||
/** Props for the menu item element. */ | ||
menuItemProps: HTMLAttributes<HTMLElement>, | ||
/** Props for the main text element inside the menu item */ | ||
/** Props for the main text element inside the menu item. */ | ||
labelProps: HTMLAttributes<HTMLElement>, | ||
/** Props for the description text element inside the menu item, if any */ | ||
/** Props for the description text element inside the menu item, if any. */ | ||
descriptionProps: HTMLAttributes<HTMLElement>, | ||
/** Props for the keyboard shortcut text element inside the item, if any */ | ||
/** Props for the keyboard shortcut text element inside the item, if any. */ | ||
keyboardShortcutProps: HTMLAttributes<HTMLElement> | ||
@@ -67,4 +67,4 @@ } | ||
* See `useMenu` for more details about menus. | ||
* @param props - props for the item | ||
* @param state - state for the menu, as returned by `useTreeState` | ||
* @param props - Props for the item. | ||
* @param state - State for the menu, as returned by `useTreeState`. | ||
*/ | ||
@@ -71,0 +71,0 @@ export function useMenuItem<T>(props: AriaMenuItemProps, state: TreeState<T>, ref: RefObject<HTMLElement>): MenuItemAria { |
@@ -37,3 +37,3 @@ /* | ||
* See `useMenu` for more details about menus. | ||
* @param props - props for the section | ||
* @param props - Props for the section. | ||
*/ | ||
@@ -40,0 +40,0 @@ export function useMenuSection(props: AriaMenuSectionProps): MenuSectionAria { |
@@ -34,4 +34,4 @@ /* | ||
* Provides the behavior and accessibility implementation for a menu trigger. | ||
* @param props - props for the menu trigger | ||
* @param state - state for the menu trigger | ||
* @param props - Props for the menu trigger. | ||
* @param state - State for the menu trigger. | ||
*/ | ||
@@ -38,0 +38,0 @@ export function useMenuTrigger(props: MenuTriggerAriaProps, state: MenuTriggerState, ref: RefObject<HTMLElement>): MenuTriggerAria { |
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
84094
Updated@react-aria/overlays@^3.1.0
Updated@react-aria/selection@^3.1.0
Updated@react-aria/utils@^3.1.0
Updated@react-stately/menu@^3.1.0
Updated@react-stately/tree@^3.1.0
Updated@react-types/button@^3.1.0
Updated@react-types/menu@^3.1.0
Updated@react-types/shared@^3.1.0