@react-types/shared 3.0.0-nightly.2946 → 3.0.0-nightly.2952
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 +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/shared",
|
|
3
|
-
"version": "3.0.0-nightly.
|
|
3
|
+
"version": "3.0.0-nightly.2952+10bac541a",
|
|
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": "10bac541a2a5c666b443fe70f313455a405a5c77"
|
|
18
18
|
}
|
package/src/events.d.ts
CHANGED
|
@@ -45,6 +45,10 @@ export interface PressEvent {
|
|
|
45
45
|
metaKey: boolean,
|
|
46
46
|
/** Whether the alt keyboard modifier was held during the press event. */
|
|
47
47
|
altKey: boolean,
|
|
48
|
+
/** X position relative to the target. */
|
|
49
|
+
x: number,
|
|
50
|
+
/** Y position relative to the target. */
|
|
51
|
+
y: number,
|
|
48
52
|
/**
|
|
49
53
|
* By default, press events stop propagation to parent elements.
|
|
50
54
|
* In cases where a handler decides not to handle a specific event,
|