@spark-web/text-input 5.3.2 → 5.4.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @spark-web/text-input
|
|
2
2
|
|
|
3
|
+
## 5.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#723](https://github.com/brighte-labs/spark-web/pull/723)
|
|
8
|
+
[`7290110`](https://github.com/brighte-labs/spark-web/commit/72901104c893f960cdf0974b71561490c93e43e4)
|
|
9
|
+
Thanks [@ralcoriza-brighte](https://github.com/ralcoriza-brighte)! - expose
|
|
10
|
+
onInput event handler in text-input component
|
|
11
|
+
|
|
3
12
|
## 5.3.2
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -5,7 +5,7 @@ import type { InputHTMLAttributes } from 'react';
|
|
|
5
5
|
import type { AdornmentsAsChildren } from "./children-to-adornments.js";
|
|
6
6
|
declare type ValidTypes = 'text' | 'password' | 'email' | 'search' | 'number' | 'tel' | 'url';
|
|
7
7
|
declare type ValidModes = 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
|
|
8
|
-
declare type NativeInputProps = Pick<InputHTMLAttributes<HTMLInputElement>, 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'placeholder' | 'value' | 'required' | 'autoComplete'>;
|
|
8
|
+
declare type NativeInputProps = Pick<InputHTMLAttributes<HTMLInputElement>, 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onInput' | 'placeholder' | 'value' | 'required' | 'autoComplete'>;
|
|
9
9
|
export declare type TextInputProps = {
|
|
10
10
|
/** Sets data attributes for the element. */
|
|
11
11
|
data?: DataAttributeMap;
|
|
@@ -45,7 +45,7 @@ export declare const TextInput: import("react").ForwardRefExoticComponent<{
|
|
|
45
45
|
*/
|
|
46
46
|
children?: AdornmentsAsChildren;
|
|
47
47
|
/** Manage how text behaves with regard to overflow. */
|
|
48
|
-
overflowStrategy?: "
|
|
48
|
+
overflowStrategy?: "truncate" | "nowrap" | "breakword" | undefined;
|
|
49
49
|
} & NativeInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
50
50
|
export declare type UseInputStylesProps = FieldState & {
|
|
51
51
|
startAdornment?: boolean;
|