@kwantis-id3/frontend-library 0.23.0 → 0.25.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { ThemeColorsExtended } from "../ThemeContext/ThemeContext";
|
|
3
3
|
export type TInputType = "text" | "number" | "password" | "email" | "image" | "search" | "tel" | "url" | "date" | "datetime-local" | "month" | "week" | "time" | "color";
|
|
4
4
|
interface TextFieldProps {
|
|
@@ -7,7 +7,7 @@ interface TextFieldProps {
|
|
|
7
7
|
/** The name of the input */
|
|
8
8
|
name?: string;
|
|
9
9
|
/** The onChange handler of the input */
|
|
10
|
-
onChange?: (
|
|
10
|
+
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
11
11
|
/** The placeholder of the input */
|
|
12
12
|
placeholder?: string;
|
|
13
13
|
/** The HTML id of the input */
|
|
@@ -28,5 +28,5 @@ interface TextFieldProps {
|
|
|
28
28
|
/** The type of the input (only string or number based inputs are currently supported) */
|
|
29
29
|
type?: TInputType;
|
|
30
30
|
}
|
|
31
|
-
export declare const InputField:
|
|
31
|
+
export declare const InputField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement>>;
|
|
32
32
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -97,7 +97,7 @@ interface TextFieldProps {
|
|
|
97
97
|
/** The name of the input */
|
|
98
98
|
name?: string;
|
|
99
99
|
/** The onChange handler of the input */
|
|
100
|
-
onChange?: (
|
|
100
|
+
onChange?: (e: React__default.ChangeEvent<HTMLInputElement>) => void;
|
|
101
101
|
/** The placeholder of the input */
|
|
102
102
|
placeholder?: string;
|
|
103
103
|
/** The HTML id of the input */
|
|
@@ -118,7 +118,7 @@ interface TextFieldProps {
|
|
|
118
118
|
/** The type of the input (only string or number based inputs are currently supported) */
|
|
119
119
|
type?: TInputType;
|
|
120
120
|
}
|
|
121
|
-
declare const InputField:
|
|
121
|
+
declare const InputField: React__default.ForwardRefExoticComponent<TextFieldProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
122
122
|
|
|
123
123
|
interface SingleSelectProps<Option = {
|
|
124
124
|
label: string;
|