@instructure/ui-text-area 8.10.3-snapshot.21 → 8.10.3-snapshot.22
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/package.json +17 -17
- package/src/TextArea/props.ts +11 -2
- package/types/TextArea/props.d.ts +3 -3
- package/types/TextArea/props.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-text-area",
|
|
3
|
-
"version": "8.10.3-snapshot.
|
|
3
|
+
"version": "8.10.3-snapshot.22+f96f8c48e",
|
|
4
4
|
"description": "A styled HTML text area component",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -25,24 +25,24 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.13.10",
|
|
28
|
-
"@instructure/debounce": "8.10.3-snapshot.
|
|
29
|
-
"@instructure/emotion": "8.10.3-snapshot.
|
|
30
|
-
"@instructure/shared-types": "8.10.3-snapshot.
|
|
31
|
-
"@instructure/ui-dom-utils": "8.10.3-snapshot.
|
|
32
|
-
"@instructure/ui-form-field": "8.10.3-snapshot.
|
|
33
|
-
"@instructure/ui-prop-types": "8.10.3-snapshot.
|
|
34
|
-
"@instructure/ui-react-utils": "8.10.3-snapshot.
|
|
35
|
-
"@instructure/ui-testable": "8.10.3-snapshot.
|
|
36
|
-
"@instructure/ui-utils": "8.10.3-snapshot.
|
|
37
|
-
"@instructure/uid": "8.10.3-snapshot.
|
|
28
|
+
"@instructure/debounce": "8.10.3-snapshot.22+f96f8c48e",
|
|
29
|
+
"@instructure/emotion": "8.10.3-snapshot.22+f96f8c48e",
|
|
30
|
+
"@instructure/shared-types": "8.10.3-snapshot.22+f96f8c48e",
|
|
31
|
+
"@instructure/ui-dom-utils": "8.10.3-snapshot.22+f96f8c48e",
|
|
32
|
+
"@instructure/ui-form-field": "8.10.3-snapshot.22+f96f8c48e",
|
|
33
|
+
"@instructure/ui-prop-types": "8.10.3-snapshot.22+f96f8c48e",
|
|
34
|
+
"@instructure/ui-react-utils": "8.10.3-snapshot.22+f96f8c48e",
|
|
35
|
+
"@instructure/ui-testable": "8.10.3-snapshot.22+f96f8c48e",
|
|
36
|
+
"@instructure/ui-utils": "8.10.3-snapshot.22+f96f8c48e",
|
|
37
|
+
"@instructure/uid": "8.10.3-snapshot.22+f96f8c48e",
|
|
38
38
|
"prop-types": "^15"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@instructure/ui-babel-preset": "8.10.3-snapshot.
|
|
42
|
-
"@instructure/ui-color-utils": "8.10.3-snapshot.
|
|
43
|
-
"@instructure/ui-test-locator": "8.10.3-snapshot.
|
|
44
|
-
"@instructure/ui-test-utils": "8.10.3-snapshot.
|
|
45
|
-
"@instructure/ui-themes": "8.10.3-snapshot.
|
|
41
|
+
"@instructure/ui-babel-preset": "8.10.3-snapshot.22+f96f8c48e",
|
|
42
|
+
"@instructure/ui-color-utils": "8.10.3-snapshot.22+f96f8c48e",
|
|
43
|
+
"@instructure/ui-test-locator": "8.10.3-snapshot.22+f96f8c48e",
|
|
44
|
+
"@instructure/ui-test-utils": "8.10.3-snapshot.22+f96f8c48e",
|
|
45
|
+
"@instructure/ui-themes": "8.10.3-snapshot.22+f96f8c48e"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"react": ">=16.8 <=17"
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
53
|
"sideEffects": false,
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "f96f8c48efab7806609098e1f00a6953b2884601"
|
|
55
55
|
}
|
package/src/TextArea/props.ts
CHANGED
|
@@ -27,9 +27,14 @@ import PropTypes from 'prop-types'
|
|
|
27
27
|
import { controllable } from '@instructure/ui-prop-types'
|
|
28
28
|
import { FormPropTypes } from '@instructure/ui-form-field'
|
|
29
29
|
|
|
30
|
-
import type {
|
|
30
|
+
import type {
|
|
31
|
+
OtherHTMLAttributes,
|
|
32
|
+
PropValidators,
|
|
33
|
+
TextAreaTheme
|
|
34
|
+
} from '@instructure/shared-types'
|
|
31
35
|
import type { FormMessage } from '@instructure/ui-form-field'
|
|
32
36
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion'
|
|
37
|
+
import { TextareaHTMLAttributes } from 'react'
|
|
33
38
|
|
|
34
39
|
type TextAreaOwnProps = {
|
|
35
40
|
label: React.ReactNode
|
|
@@ -58,7 +63,11 @@ type PropKeys = keyof TextAreaOwnProps
|
|
|
58
63
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
59
64
|
|
|
60
65
|
type TextAreaProps = TextAreaOwnProps &
|
|
61
|
-
WithStyleProps<TextAreaTheme, TextAreaStyle>
|
|
66
|
+
WithStyleProps<TextAreaTheme, TextAreaStyle> &
|
|
67
|
+
OtherHTMLAttributes<
|
|
68
|
+
TextAreaOwnProps,
|
|
69
|
+
TextareaHTMLAttributes<TextAreaOwnProps>
|
|
70
|
+
>
|
|
62
71
|
|
|
63
72
|
type TextAreaStyle = ComponentStyle<
|
|
64
73
|
'textArea' | 'textAreaLayout' | 'textAreaOutline'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import type { PropValidators, TextAreaTheme } from '@instructure/shared-types';
|
|
1
|
+
import type { OtherHTMLAttributes, PropValidators, TextAreaTheme } from '@instructure/shared-types';
|
|
3
2
|
import type { FormMessage } from '@instructure/ui-form-field';
|
|
4
3
|
import type { WithStyleProps, ComponentStyle } from '@instructure/emotion';
|
|
4
|
+
import { TextareaHTMLAttributes } from 'react';
|
|
5
5
|
declare type TextAreaOwnProps = {
|
|
6
6
|
label: React.ReactNode;
|
|
7
7
|
id?: string;
|
|
@@ -25,7 +25,7 @@ declare type TextAreaOwnProps = {
|
|
|
25
25
|
};
|
|
26
26
|
declare type PropKeys = keyof TextAreaOwnProps;
|
|
27
27
|
declare type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
28
|
-
declare type TextAreaProps = TextAreaOwnProps & WithStyleProps<TextAreaTheme, TextAreaStyle
|
|
28
|
+
declare type TextAreaProps = TextAreaOwnProps & WithStyleProps<TextAreaTheme, TextAreaStyle> & OtherHTMLAttributes<TextAreaOwnProps, TextareaHTMLAttributes<TextAreaOwnProps>>;
|
|
29
29
|
declare type TextAreaStyle = ComponentStyle<'textArea' | 'textAreaLayout' | 'textAreaOutline'>;
|
|
30
30
|
declare const propTypes: PropValidators<PropKeys>;
|
|
31
31
|
declare const allowedProps: AllowedPropKeys;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/TextArea/props.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/TextArea/props.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EACV,mBAAmB,EACnB,cAAc,EACd,aAAa,EACd,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,OAAO,CAAA;AAE9C,aAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,MAAM,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAA;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,UAAU,CAAA;IACpD,KAAK,CAAC,EAAE,MAAM,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