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-114f89071-250625

{
"name": "@react-types/listbox",
"version": "3.0.0-nightly-10a43de88-241127",
"version": "3.0.0-nightly-114f89071-250625",
"description": "Spectrum UI components in React",

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

"dependencies": {
"@react-types/shared": "^3.0.0-nightly-10a43de88-241127"
"@react-types/shared": "3.0.0-nightly-114f89071-250625"
},

@@ -20,4 +20,3 @@ "peerDependencies": {

"access": "public"
},
"stableVersion": "3.5.3"
}
}

@@ -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