@instructure/ui-text-input 9.2.1-snapshot-11 → 9.2.1-snapshot-14
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 +1 -1
- package/package.json +15 -15
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/TextInput/index.d.ts +40 -40
|
@@ -12,53 +12,53 @@ declare class TextInput extends Component<TextInputProps, TextInputState> {
|
|
|
12
12
|
static readonly componentId = "TextInput";
|
|
13
13
|
static allowedProps: readonly (keyof {
|
|
14
14
|
renderLabel?: import("@instructure/shared-types").Renderable;
|
|
15
|
-
type?: "
|
|
16
|
-
id?: string
|
|
17
|
-
value?: string
|
|
18
|
-
defaultValue?: string
|
|
19
|
-
interaction?: import("@instructure/ui-react-utils").InteractionType
|
|
20
|
-
messages?: import("@instructure/ui-form-field").FormMessage[]
|
|
21
|
-
size?: "small" | "medium" | "large"
|
|
22
|
-
textAlign?: "
|
|
23
|
-
width?: string
|
|
24
|
-
htmlSize?: number
|
|
25
|
-
display?: "inline-block" | "block"
|
|
26
|
-
shouldNotWrap?: boolean
|
|
27
|
-
placeholder?: string
|
|
28
|
-
isRequired?: boolean
|
|
29
|
-
elementRef?: (
|
|
30
|
-
inputRef?: (
|
|
31
|
-
inputContainerRef?: (
|
|
15
|
+
type?: "text" | "email" | "url" | "tel" | "search" | "password";
|
|
16
|
+
id?: string;
|
|
17
|
+
value?: string;
|
|
18
|
+
defaultValue?: string;
|
|
19
|
+
interaction?: import("@instructure/ui-react-utils").InteractionType;
|
|
20
|
+
messages?: import("@instructure/ui-form-field").FormMessage[];
|
|
21
|
+
size?: "small" | "medium" | "large";
|
|
22
|
+
textAlign?: "start" | "center";
|
|
23
|
+
width?: string;
|
|
24
|
+
htmlSize?: number;
|
|
25
|
+
display?: "inline-block" | "block";
|
|
26
|
+
shouldNotWrap?: boolean;
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
isRequired?: boolean;
|
|
29
|
+
elementRef?: (element: Element | null) => void;
|
|
30
|
+
inputRef?: (inputElement: HTMLInputElement | null) => void;
|
|
31
|
+
inputContainerRef?: (element: HTMLSpanElement | null) => void;
|
|
32
32
|
renderBeforeInput?: import("@instructure/shared-types").Renderable;
|
|
33
33
|
renderAfterInput?: import("@instructure/shared-types").Renderable;
|
|
34
|
-
onChange?: (
|
|
35
|
-
onBlur?: (
|
|
36
|
-
onFocus?: (
|
|
34
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
35
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
36
|
+
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
37
37
|
})[];
|
|
38
38
|
static propTypes: import("@instructure/shared-types").PropValidators<keyof {
|
|
39
39
|
renderLabel?: import("@instructure/shared-types").Renderable;
|
|
40
|
-
type?: "
|
|
41
|
-
id?: string
|
|
42
|
-
value?: string
|
|
43
|
-
defaultValue?: string
|
|
44
|
-
interaction?: import("@instructure/ui-react-utils").InteractionType
|
|
45
|
-
messages?: import("@instructure/ui-form-field").FormMessage[]
|
|
46
|
-
size?: "small" | "medium" | "large"
|
|
47
|
-
textAlign?: "
|
|
48
|
-
width?: string
|
|
49
|
-
htmlSize?: number
|
|
50
|
-
display?: "inline-block" | "block"
|
|
51
|
-
shouldNotWrap?: boolean
|
|
52
|
-
placeholder?: string
|
|
53
|
-
isRequired?: boolean
|
|
54
|
-
elementRef?: (
|
|
55
|
-
inputRef?: (
|
|
56
|
-
inputContainerRef?: (
|
|
40
|
+
type?: "text" | "email" | "url" | "tel" | "search" | "password";
|
|
41
|
+
id?: string;
|
|
42
|
+
value?: string;
|
|
43
|
+
defaultValue?: string;
|
|
44
|
+
interaction?: import("@instructure/ui-react-utils").InteractionType;
|
|
45
|
+
messages?: import("@instructure/ui-form-field").FormMessage[];
|
|
46
|
+
size?: "small" | "medium" | "large";
|
|
47
|
+
textAlign?: "start" | "center";
|
|
48
|
+
width?: string;
|
|
49
|
+
htmlSize?: number;
|
|
50
|
+
display?: "inline-block" | "block";
|
|
51
|
+
shouldNotWrap?: boolean;
|
|
52
|
+
placeholder?: string;
|
|
53
|
+
isRequired?: boolean;
|
|
54
|
+
elementRef?: (element: Element | null) => void;
|
|
55
|
+
inputRef?: (inputElement: HTMLInputElement | null) => void;
|
|
56
|
+
inputContainerRef?: (element: HTMLSpanElement | null) => void;
|
|
57
57
|
renderBeforeInput?: import("@instructure/shared-types").Renderable;
|
|
58
58
|
renderAfterInput?: import("@instructure/shared-types").Renderable;
|
|
59
|
-
onChange?: (
|
|
60
|
-
onBlur?: (
|
|
61
|
-
onFocus?: (
|
|
59
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>, value: string) => void;
|
|
60
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
61
|
+
onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
62
62
|
}>;
|
|
63
63
|
static defaultProps: {
|
|
64
64
|
type: string;
|