@instructure/ui-text-area 8.12.1-snapshot.45 → 8.12.1-snapshot.51
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/es/TextArea/TextAreaLocator.js +3 -1
- package/es/TextArea/index.js +12 -4
- package/es/TextArea/props.js +1 -1
- package/lib/TextArea/TextAreaLocator.js +3 -1
- package/lib/TextArea/index.js +13 -5
- package/lib/TextArea/props.js +2 -2
- package/package.json +17 -17
- package/src/TextArea/props.ts +1 -1
- package/types/TextArea/index.d.ts +2 -2
|
@@ -24,5 +24,7 @@
|
|
|
24
24
|
import { locator } from '@instructure/ui-test-locator';
|
|
25
25
|
import { TextArea } from './index';
|
|
26
26
|
export const TextAreaLocator = locator(TextArea.selector, {
|
|
27
|
-
findInput: (
|
|
27
|
+
findInput: function () {
|
|
28
|
+
return locator('textarea').find(...arguments);
|
|
29
|
+
}
|
|
28
30
|
});
|
package/es/TextArea/index.js
CHANGED
|
@@ -222,7 +222,10 @@ let TextArea = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 =
|
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
render() {
|
|
225
|
-
var _this
|
|
225
|
+
var _this = this,
|
|
226
|
+
_this$props$styles,
|
|
227
|
+
_this$props$styles2,
|
|
228
|
+
_this$props$styles3;
|
|
226
229
|
|
|
227
230
|
const _this$props4 = this.props,
|
|
228
231
|
autoGrow = _this$props4.autoGrow,
|
|
@@ -248,9 +251,14 @@ let TextArea = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 =
|
|
|
248
251
|
value: value,
|
|
249
252
|
defaultValue: defaultValue,
|
|
250
253
|
placeholder: placeholder,
|
|
251
|
-
ref: (textarea
|
|
252
|
-
|
|
253
|
-
|
|
254
|
+
ref: function (textarea) {
|
|
255
|
+
_this._textarea = textarea;
|
|
256
|
+
|
|
257
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
258
|
+
args[_key - 1] = arguments[_key];
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
textareaRef.apply(_this, [textarea].concat(args));
|
|
254
262
|
},
|
|
255
263
|
style: style,
|
|
256
264
|
id: this.id,
|
package/es/TextArea/props.js
CHANGED
|
@@ -33,6 +33,8 @@ var _index = require("./index");
|
|
|
33
33
|
* SOFTWARE.
|
|
34
34
|
*/
|
|
35
35
|
const TextAreaLocator = (0, _locator.locator)(_index.TextArea.selector, {
|
|
36
|
-
findInput: (
|
|
36
|
+
findInput: function () {
|
|
37
|
+
return (0, _locator.locator)('textarea').find(...arguments);
|
|
38
|
+
}
|
|
37
39
|
});
|
|
38
40
|
exports.TextAreaLocator = TextAreaLocator;
|
package/lib/TextArea/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.default = exports.TextArea = void 0;
|
|
9
9
|
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
|
|
@@ -225,7 +225,10 @@ let TextArea = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
render() {
|
|
228
|
-
var _this
|
|
228
|
+
var _this = this,
|
|
229
|
+
_this$props$styles,
|
|
230
|
+
_this$props$styles2,
|
|
231
|
+
_this$props$styles3;
|
|
229
232
|
|
|
230
233
|
const _this$props4 = this.props,
|
|
231
234
|
autoGrow = _this$props4.autoGrow,
|
|
@@ -251,9 +254,14 @@ let TextArea = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default),
|
|
|
251
254
|
value: value,
|
|
252
255
|
defaultValue: defaultValue,
|
|
253
256
|
placeholder: placeholder,
|
|
254
|
-
ref: (textarea
|
|
255
|
-
|
|
256
|
-
|
|
257
|
+
ref: function (textarea) {
|
|
258
|
+
_this._textarea = textarea;
|
|
259
|
+
|
|
260
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
261
|
+
args[_key - 1] = arguments[_key];
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
textareaRef.apply(_this, [textarea].concat(args));
|
|
257
265
|
},
|
|
258
266
|
style: style,
|
|
259
267
|
id: this.id,
|
package/lib/TextArea/props.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.propTypes = exports.allowedProps = void 0;
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
|
@@ -75,7 +75,7 @@ const propTypes = {
|
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* object with shape: `{
|
|
78
|
-
* text: PropTypes.
|
|
78
|
+
* text: PropTypes.node,
|
|
79
79
|
* type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])
|
|
80
80
|
* }`
|
|
81
81
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-text-area",
|
|
3
|
-
"version": "8.12.1-snapshot.
|
|
3
|
+
"version": "8.12.1-snapshot.51+4d3697334",
|
|
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.12.1-snapshot.
|
|
29
|
-
"@instructure/emotion": "8.12.1-snapshot.
|
|
30
|
-
"@instructure/shared-types": "8.12.1-snapshot.
|
|
31
|
-
"@instructure/ui-dom-utils": "8.12.1-snapshot.
|
|
32
|
-
"@instructure/ui-form-field": "8.12.1-snapshot.
|
|
33
|
-
"@instructure/ui-prop-types": "8.12.1-snapshot.
|
|
34
|
-
"@instructure/ui-react-utils": "8.12.1-snapshot.
|
|
35
|
-
"@instructure/ui-testable": "8.12.1-snapshot.
|
|
36
|
-
"@instructure/ui-utils": "8.12.1-snapshot.
|
|
37
|
-
"@instructure/uid": "8.12.1-snapshot.
|
|
28
|
+
"@instructure/debounce": "8.12.1-snapshot.51+4d3697334",
|
|
29
|
+
"@instructure/emotion": "8.12.1-snapshot.51+4d3697334",
|
|
30
|
+
"@instructure/shared-types": "8.12.1-snapshot.51+4d3697334",
|
|
31
|
+
"@instructure/ui-dom-utils": "8.12.1-snapshot.51+4d3697334",
|
|
32
|
+
"@instructure/ui-form-field": "8.12.1-snapshot.51+4d3697334",
|
|
33
|
+
"@instructure/ui-prop-types": "8.12.1-snapshot.51+4d3697334",
|
|
34
|
+
"@instructure/ui-react-utils": "8.12.1-snapshot.51+4d3697334",
|
|
35
|
+
"@instructure/ui-testable": "8.12.1-snapshot.51+4d3697334",
|
|
36
|
+
"@instructure/ui-utils": "8.12.1-snapshot.51+4d3697334",
|
|
37
|
+
"@instructure/uid": "8.12.1-snapshot.51+4d3697334",
|
|
38
38
|
"prop-types": "^15"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@instructure/ui-babel-preset": "8.12.1-snapshot.
|
|
42
|
-
"@instructure/ui-color-utils": "8.12.1-snapshot.
|
|
43
|
-
"@instructure/ui-test-locator": "8.12.1-snapshot.
|
|
44
|
-
"@instructure/ui-test-utils": "8.12.1-snapshot.
|
|
45
|
-
"@instructure/ui-themes": "8.12.1-snapshot.
|
|
41
|
+
"@instructure/ui-babel-preset": "8.12.1-snapshot.51+4d3697334",
|
|
42
|
+
"@instructure/ui-color-utils": "8.12.1-snapshot.51+4d3697334",
|
|
43
|
+
"@instructure/ui-test-locator": "8.12.1-snapshot.51+4d3697334",
|
|
44
|
+
"@instructure/ui-test-utils": "8.12.1-snapshot.51+4d3697334",
|
|
45
|
+
"@instructure/ui-themes": "8.12.1-snapshot.51+4d3697334"
|
|
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": "4d369733414715a70bae0628378e8d82214eab3e"
|
|
55
55
|
}
|
package/src/TextArea/props.ts
CHANGED
|
@@ -105,7 +105,7 @@ const propTypes: PropValidators<PropKeys> = {
|
|
|
105
105
|
maxHeight: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
106
106
|
/**
|
|
107
107
|
* object with shape: `{
|
|
108
|
-
* text: PropTypes.
|
|
108
|
+
* text: PropTypes.node,
|
|
109
109
|
* type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])
|
|
110
110
|
* }`
|
|
111
111
|
*/
|
|
@@ -20,7 +20,7 @@ declare class TextArea extends Component<TextAreaProps> {
|
|
|
20
20
|
width?: string | undefined;
|
|
21
21
|
height?: string | undefined;
|
|
22
22
|
maxHeight?: string | number | undefined;
|
|
23
|
-
messages?: import("@instructure/ui-form-field").FormMessage[] | undefined;
|
|
23
|
+
messages?: import("@instructure/ui-form-field/types/FormPropTypes").FormMessage[] | undefined;
|
|
24
24
|
inline?: boolean | undefined;
|
|
25
25
|
placeholder?: string | undefined;
|
|
26
26
|
disabled?: boolean | undefined;
|
|
@@ -41,7 +41,7 @@ declare class TextArea extends Component<TextAreaProps> {
|
|
|
41
41
|
width?: string | undefined;
|
|
42
42
|
height?: string | undefined;
|
|
43
43
|
maxHeight?: string | number | undefined;
|
|
44
|
-
messages?: import("@instructure/ui-form-field").FormMessage[] | undefined;
|
|
44
|
+
messages?: import("@instructure/ui-form-field/types/FormPropTypes").FormMessage[] | undefined;
|
|
45
45
|
inline?: boolean | undefined;
|
|
46
46
|
placeholder?: string | undefined;
|
|
47
47
|
disabled?: boolean | undefined;
|