@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.
@@ -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?: "search" | "text" | "email" | "url" | "tel" | "password" | undefined;
16
- id?: string | undefined;
17
- value?: string | undefined;
18
- defaultValue?: string | undefined;
19
- interaction?: import("@instructure/ui-react-utils").InteractionType | undefined;
20
- messages?: import("@instructure/ui-form-field").FormMessage[] | undefined;
21
- size?: "small" | "medium" | "large" | undefined;
22
- textAlign?: "center" | "start" | undefined;
23
- width?: string | undefined;
24
- htmlSize?: number | undefined;
25
- display?: "inline-block" | "block" | undefined;
26
- shouldNotWrap?: boolean | undefined;
27
- placeholder?: string | undefined;
28
- isRequired?: boolean | undefined;
29
- elementRef?: ((element: Element | null) => void) | undefined;
30
- inputRef?: ((inputElement: HTMLInputElement | null) => void) | undefined;
31
- inputContainerRef?: ((element: HTMLSpanElement | null) => void) | undefined;
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?: ((event: React.ChangeEvent<HTMLInputElement>, value: string) => void) | undefined;
35
- onBlur?: ((event: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
36
- onFocus?: ((event: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
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?: "search" | "text" | "email" | "url" | "tel" | "password" | undefined;
41
- id?: string | undefined;
42
- value?: string | undefined;
43
- defaultValue?: string | undefined;
44
- interaction?: import("@instructure/ui-react-utils").InteractionType | undefined;
45
- messages?: import("@instructure/ui-form-field").FormMessage[] | undefined;
46
- size?: "small" | "medium" | "large" | undefined;
47
- textAlign?: "center" | "start" | undefined;
48
- width?: string | undefined;
49
- htmlSize?: number | undefined;
50
- display?: "inline-block" | "block" | undefined;
51
- shouldNotWrap?: boolean | undefined;
52
- placeholder?: string | undefined;
53
- isRequired?: boolean | undefined;
54
- elementRef?: ((element: Element | null) => void) | undefined;
55
- inputRef?: ((inputElement: HTMLInputElement | null) => void) | undefined;
56
- inputContainerRef?: ((element: HTMLSpanElement | null) => void) | undefined;
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?: ((event: React.ChangeEvent<HTMLInputElement>, value: string) => void) | undefined;
60
- onBlur?: ((event: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
61
- onFocus?: ((event: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
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;