@react-types/shared 3.10.1 → 3.11.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 +2 -2
- package/src/events.d.ts +9 -1
- package/src/selection.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/shared",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.11.0",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
"publishConfig": {
|
|
15
15
|
"access": "public"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "54c2366c4f31bd4bf619126131cd583c12972acc"
|
|
18
18
|
}
|
package/src/events.d.ts
CHANGED
|
@@ -110,7 +110,15 @@ export interface FocusableProps extends FocusEvents, KeyboardEvents {
|
|
|
110
110
|
|
|
111
111
|
interface BaseMoveEvent {
|
|
112
112
|
/** The pointer type that triggered the move event. */
|
|
113
|
-
pointerType: PointerType
|
|
113
|
+
pointerType: PointerType,
|
|
114
|
+
/** Whether the shift keyboard modifier was held during the move event. */
|
|
115
|
+
shiftKey: boolean,
|
|
116
|
+
/** Whether the ctrl keyboard modifier was held during the move event. */
|
|
117
|
+
ctrlKey: boolean,
|
|
118
|
+
/** Whether the meta keyboard modifier was held during the move event. */
|
|
119
|
+
metaKey: boolean,
|
|
120
|
+
/** Whether the alt keyboard modifier was held during the move event. */
|
|
121
|
+
altKey: boolean
|
|
114
122
|
}
|
|
115
123
|
|
|
116
124
|
export interface MoveStartEvent extends BaseMoveEvent {
|
package/src/selection.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export interface SingleSelection {
|
|
|
16
16
|
/** Whether the collection allows empty selection. */
|
|
17
17
|
disallowEmptySelection?: boolean,
|
|
18
18
|
/** The currently selected key in the collection (controlled). */
|
|
19
|
-
selectedKey?: Key,
|
|
19
|
+
selectedKey?: Key | null,
|
|
20
20
|
/** The initial selected key in the collection (uncontrolled). */
|
|
21
21
|
defaultSelectedKey?: Key,
|
|
22
22
|
/** Handler that is called when the selection changes. */
|