@instructure/ui-text-input 8.26.2 → 8.26.4-snapshot-3
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 +17 -0
- package/es/TextInput/styles.js +1 -0
- package/lib/TextInput/styles.js +1 -0
- package/package.json +16 -16
- package/src/TextInput/props.ts +8 -5
- package/src/TextInput/styles.ts +2 -0
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/TextInput/index.d.ts +6 -6
- package/types/TextInput/props.d.ts +5 -5
- package/types/TextInput/props.d.ts.map +1 -1
- package/types/TextInput/styles.d.ts.map +1 -1
|
@@ -12,7 +12,7 @@ tags: form, field
|
|
|
12
12
|
declare class TextInput extends Component<TextInputProps, TextInputState> {
|
|
13
13
|
static readonly componentId = "TextInput";
|
|
14
14
|
static allowedProps: readonly (keyof {
|
|
15
|
-
renderLabel?:
|
|
15
|
+
renderLabel?: import("@instructure/shared-types").Renderable<never>;
|
|
16
16
|
type?: "text" | "email" | "url" | "tel" | "search" | "password" | undefined;
|
|
17
17
|
id?: string | undefined;
|
|
18
18
|
value?: string | undefined;
|
|
@@ -30,14 +30,14 @@ declare class TextInput extends Component<TextInputProps, TextInputState> {
|
|
|
30
30
|
elementRef?: ((element: Element | null) => void) | undefined;
|
|
31
31
|
inputRef?: ((inputElement: HTMLInputElement | null) => void) | undefined;
|
|
32
32
|
inputContainerRef?: ((element: HTMLSpanElement | null) => void) | undefined;
|
|
33
|
-
renderBeforeInput?:
|
|
34
|
-
renderAfterInput?:
|
|
33
|
+
renderBeforeInput?: import("@instructure/shared-types").Renderable<never>;
|
|
34
|
+
renderAfterInput?: import("@instructure/shared-types").Renderable<never>;
|
|
35
35
|
onChange?: ((event: React.ChangeEvent<HTMLInputElement>, value: string) => void) | undefined;
|
|
36
36
|
onBlur?: ((event: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
37
37
|
onFocus?: ((event: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
38
38
|
})[];
|
|
39
39
|
static propTypes: import("@instructure/shared-types/types/UtilityTypes").PropValidators<keyof {
|
|
40
|
-
renderLabel?:
|
|
40
|
+
renderLabel?: import("@instructure/shared-types").Renderable<never>;
|
|
41
41
|
type?: "text" | "email" | "url" | "tel" | "search" | "password" | undefined;
|
|
42
42
|
id?: string | undefined;
|
|
43
43
|
value?: string | undefined;
|
|
@@ -55,8 +55,8 @@ declare class TextInput extends Component<TextInputProps, TextInputState> {
|
|
|
55
55
|
elementRef?: ((element: Element | null) => void) | undefined;
|
|
56
56
|
inputRef?: ((inputElement: HTMLInputElement | null) => void) | undefined;
|
|
57
57
|
inputContainerRef?: ((element: HTMLSpanElement | null) => void) | undefined;
|
|
58
|
-
renderBeforeInput?:
|
|
59
|
-
renderAfterInput?:
|
|
58
|
+
renderBeforeInput?: import("@instructure/shared-types").Renderable<never>;
|
|
59
|
+
renderAfterInput?: import("@instructure/shared-types").Renderable<never>;
|
|
60
60
|
onChange?: ((event: React.ChangeEvent<HTMLInputElement>, value: string) => void) | undefined;
|
|
61
61
|
onBlur?: ((event: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
62
62
|
onFocus?: ((event: React.FocusEvent<HTMLInputElement, Element>) => void) | undefined;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React, { InputHTMLAttributes } from 'react';
|
|
2
|
-
import type { InteractionType } from '@instructure/ui-react-utils';
|
|
3
2
|
import type { FormFieldProps, FormMessage } from '@instructure/ui-form-field';
|
|
4
3
|
import type { OtherHTMLAttributes, PropValidators, TextInputTheme } from '@instructure/shared-types';
|
|
5
4
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
6
|
-
import type { WithDeterministicIdProps } from '@instructure/ui-react-utils';
|
|
5
|
+
import type { InteractionType, WithDeterministicIdProps } from '@instructure/ui-react-utils';
|
|
6
|
+
import { Renderable } from '@instructure/shared-types';
|
|
7
7
|
declare type TextInputOwnProps = {
|
|
8
8
|
/**
|
|
9
9
|
* The form field label.
|
|
10
10
|
*/
|
|
11
|
-
renderLabel?:
|
|
11
|
+
renderLabel?: Renderable;
|
|
12
12
|
/**
|
|
13
13
|
* Determines the underlying native HTML `<input>` element's `type`.
|
|
14
14
|
*
|
|
@@ -94,11 +94,11 @@ declare type TextInputOwnProps = {
|
|
|
94
94
|
/**
|
|
95
95
|
* Content to display before the input text, such as an icon
|
|
96
96
|
*/
|
|
97
|
-
renderBeforeInput?:
|
|
97
|
+
renderBeforeInput?: Renderable;
|
|
98
98
|
/**
|
|
99
99
|
* Content to display after the input text, such as an icon
|
|
100
100
|
*/
|
|
101
|
-
renderAfterInput?:
|
|
101
|
+
renderAfterInput?: Renderable;
|
|
102
102
|
/**
|
|
103
103
|
* Callback executed when the input fires a change event.
|
|
104
104
|
* @param {Object} event - the event object
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/TextInput/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAMlD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/TextInput/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAMlD,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAC7E,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,cAAc,EACf,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,KAAK,EACV,eAAe,EACf,wBAAwB,EACzB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAEtD,aAAK,iBAAiB,GAAG;IACvB;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ACnC,qBAAqB,EAAE,cAAc,CAAC,uBAAuB,CAAC,CAAA;IAC9D,oBAAoB,EAAE,cAAc,CAAC,sBAAsB,CAAC,CAAA;CAC7D,CAAA;AAED,YAAY,EACV,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,cAAc,EACf,CAAA;AACD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/TextInput/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACnB,cAAc,EACf,MAAM,SAAS,CAAA;AAEhB;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,cAAc,SACvB,cAAc,SACd,mBAAmB,KACzB,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/TextInput/styles.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACnB,cAAc,EACf,MAAM,SAAS,CAAA;AAEhB;;;;;;;;;GASG;AACH,QAAA,MAAM,aAAa,mBACD,cAAc,SACvB,cAAc,SACd,mBAAmB,KACzB,cA2LF,CAAA;AAED,eAAe,aAAa,CAAA"}
|