@react-types/listbox 3.5.5 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/index.d.ts +11 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/listbox",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"url": "https://github.com/adobe/react-spectrum"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@react-types/shared": "^3.
|
|
12
|
+
"@react-types/shared": "^3.29.0"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "9b66d270572f482948afee95622a85cdf68ed408"
|
|
21
21
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -20,7 +20,17 @@ export interface ListBoxProps<T> extends CollectionBase<T>, MultipleSelection, F
|
|
|
20
20
|
shouldFocusWrap?: boolean
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
interface AriaListBoxPropsBase<T> extends ListBoxProps<T>, DOMProps, AriaLabelingProps {
|
|
23
|
+
interface AriaListBoxPropsBase<T> extends ListBoxProps<T>, DOMProps, AriaLabelingProps {
|
|
24
|
+
/**
|
|
25
|
+
* Whether pressing the escape key should clear selection in the listbox or not.
|
|
26
|
+
*
|
|
27
|
+
* Most experiences should not modify this option as it eliminates a keyboard user's ability to
|
|
28
|
+
* easily clear selection. Only use if the escape key is being handled externally or should not
|
|
29
|
+
* trigger selection clearing contextually.
|
|
30
|
+
* @default 'clearSelection'
|
|
31
|
+
*/
|
|
32
|
+
escapeKeyBehavior?: 'clearSelection' | 'none'
|
|
33
|
+
}
|
|
24
34
|
export interface AriaListBoxProps<T> extends AriaListBoxPropsBase<T> {
|
|
25
35
|
/**
|
|
26
36
|
* An optional visual label for the listbox.
|