@react-types/shared 3.32.0 → 3.33.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/shared",
3
- "version": "3.32.0",
3
+ "version": "3.33.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": "2c58ed3ddd9be9100af9b1d0cfd137fcdc95ba2d"
17
+ "gitHead": "66e51757606b43a89ed02c574ca24517323a2ab9"
18
18
  }
package/src/dom.d.ts CHANGED
@@ -173,6 +173,7 @@ export interface TextInputDOMProps extends DOMProps, InputDOMProps, TextInputDOM
173
173
 
174
174
  /**
175
175
  * The type of input to render. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdeftype).
176
+ * @default 'text'
176
177
  */
177
178
  type?: 'text' | 'search' | 'url' | 'tel' | 'email' | 'password' | (string & {}),
178
179
 
package/src/events.d.ts CHANGED
@@ -51,6 +51,11 @@ export interface PressEvent {
51
51
  x: number,
52
52
  /** Y position relative to the target. */
53
53
  y: number,
54
+ /**
55
+ * The key that triggered the press event, if it was triggered by a keyboard interaction.
56
+ * This is useful for differentiating between Space and Enter key presses.
57
+ */
58
+ key?: string,
54
59
  /**
55
60
  * By default, press events stop propagation to parent elements.
56
61
  * In cases where a handler decides not to handle a specific event,