You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP

@react-types/listbox

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-types/listbox - npm Package Compare versions

Comparing version

to
3.0.0-nightly-c7285d5d1-250618

{
"name": "@react-types/listbox",
"version": "3.0.0-nightly-c53ab48ec-250115",
"version": "3.0.0-nightly-c7285d5d1-250618",
"description": "Spectrum UI components in React",

@@ -12,3 +12,3 @@ "license": "Apache-2.0",

"dependencies": {
"@react-types/shared": "3.0.0-nightly-c53ab48ec-250115"
"@react-types/shared": "3.0.0-nightly-c7285d5d1-250618"
},

@@ -15,0 +15,0 @@ "peerDependencies": {

@@ -23,3 +23,13 @@ /*

interface AriaListBoxPropsBase<T> extends ListBoxProps<T>, DOMProps, AriaLabelingProps {}
interface AriaListBoxPropsBase<T> extends ListBoxProps<T>, DOMProps, AriaLabelingProps {
/**
* Whether pressing the escape key should clear selection in the listbox 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 AriaListBoxProps<T> extends AriaListBoxPropsBase<T> {

@@ -32,2 +42,6 @@ /**

selectionBehavior?: SelectionBehavior,
/** Whether selection should occur on press up instead of press down. */
shouldSelectOnPressUp?: boolean,
/** Whether options should be focused when the user hovers over them. */
shouldFocusOnHover?: boolean,
/**

@@ -34,0 +48,0 @@ * Handler that is called when a user performs an action on an item. The exact user event depends on