@react-types/shared 3.26.0 → 3.28.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.26.0",
3
+ "version": "3.28.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": "71f0ef23053f9e03ee7e97df736e8b083e006849"
17
+ "gitHead": "4d3c72c94eea2d72eb3a0e7d56000c6ef7e39726"
18
18
  }
@@ -180,7 +180,10 @@ export interface Collection<T> extends Iterable<T> {
180
180
  getChildren?(key: Key): Iterable<T>,
181
181
 
182
182
  /** Returns a string representation of the item's contents. */
183
- getTextValue?(key: Key): string
183
+ getTextValue?(key: Key): string,
184
+
185
+ /** Filters the collection using the given function. */
186
+ UNSTABLE_filter?(filterFn: (nodeValue: string) => boolean): Collection<T>
184
187
  }
185
188
 
186
189
  export interface Node<T> {
package/src/dom.d.ts CHANGED
@@ -166,7 +166,17 @@ export interface TextInputDOMProps extends DOMProps, InputDOMProps, TextInputDOM
166
166
  /**
167
167
  * Hints at the type of data that might be entered by the user while editing the element or its contents. See [MDN](https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute).
168
168
  */
169
- inputMode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search'
169
+ inputMode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search',
170
+
171
+ /**
172
+ * An attribute that takes as its value a space-separated string that describes what, if any, type of autocomplete functionality the input should provide. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#autocomplete).
173
+ */
174
+ autoCorrect?: string,
175
+
176
+ /**
177
+ * An enumerated attribute that defines whether the element may be checked for spelling errors. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck).
178
+ */
179
+ spellCheck?: string
170
180
  }
171
181
 
172
182
  /**