@react-types/shared 3.0.0-nightly-6cd19f019-250220 → 3.0.0-nightly-90b6fd4f7-250221
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 +1 -1
- package/src/collections.d.ts +4 -1
- package/src/dom.d.ts +6 -1
package/package.json
CHANGED
package/src/collections.d.ts
CHANGED
|
@@ -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
|
+
filter?(filterFn: (nodeValue: string) => boolean): Collection<T>
|
|
184
187
|
}
|
|
185
188
|
|
|
186
189
|
export interface Node<T> {
|
package/src/dom.d.ts
CHANGED
|
@@ -176,7 +176,12 @@ export interface TextInputDOMProps extends DOMProps, InputDOMProps, TextInputDOM
|
|
|
176
176
|
/**
|
|
177
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
178
|
*/
|
|
179
|
-
spellCheck?: string
|
|
179
|
+
spellCheck?: string,
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* An enumerated attribute that defines what action label or icon to preset for the enter key on virtual keyboards. See [https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/enterkeyhint].
|
|
183
|
+
*/
|
|
184
|
+
enterKeyHint?: string
|
|
180
185
|
}
|
|
181
186
|
|
|
182
187
|
/**
|