@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.
@@ -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: (...args) => locator('textarea').find(...args)
27
+ findInput: function () {
28
+ return locator('textarea').find(...arguments);
29
+ }
28
30
  });
@@ -222,7 +222,10 @@ let TextArea = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 =
222
222
  }
223
223
 
224
224
  render() {
225
- var _this$props$styles, _this$props$styles2, _this$props$styles3;
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, ...args) => {
252
- this._textarea = textarea;
253
- textareaRef.apply(this, [textarea].concat(args));
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,
@@ -63,7 +63,7 @@ const propTypes = {
63
63
 
64
64
  /**
65
65
  * object with shape: `{
66
- * text: PropTypes.string,
66
+ * text: PropTypes.node,
67
67
  * type: PropTypes.oneOf(['error', 'hint', 'success', 'screenreader-only'])
68
68
  * }`
69
69
  */
@@ -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: (...args) => (0, _locator.locator)('textarea').find(...args)
36
+ findInput: function () {
37
+ return (0, _locator.locator)('textarea').find(...arguments);
38
+ }
37
39
  });
38
40
  exports.TextAreaLocator = TextAreaLocator;
@@ -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.TextArea = exports.default = void 0;
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$props$styles, _this$props$styles2, _this$props$styles3;
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, ...args) => {
255
- this._textarea = textarea;
256
- textareaRef.apply(this, [textarea].concat(args));
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,
@@ -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.allowedProps = exports.propTypes = void 0;
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.string,
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.45+9f4d9f91f",
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.45+9f4d9f91f",
29
- "@instructure/emotion": "8.12.1-snapshot.45+9f4d9f91f",
30
- "@instructure/shared-types": "8.12.1-snapshot.45+9f4d9f91f",
31
- "@instructure/ui-dom-utils": "8.12.1-snapshot.45+9f4d9f91f",
32
- "@instructure/ui-form-field": "8.12.1-snapshot.45+9f4d9f91f",
33
- "@instructure/ui-prop-types": "8.12.1-snapshot.45+9f4d9f91f",
34
- "@instructure/ui-react-utils": "8.12.1-snapshot.45+9f4d9f91f",
35
- "@instructure/ui-testable": "8.12.1-snapshot.45+9f4d9f91f",
36
- "@instructure/ui-utils": "8.12.1-snapshot.45+9f4d9f91f",
37
- "@instructure/uid": "8.12.1-snapshot.45+9f4d9f91f",
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.45+9f4d9f91f",
42
- "@instructure/ui-color-utils": "8.12.1-snapshot.45+9f4d9f91f",
43
- "@instructure/ui-test-locator": "8.12.1-snapshot.45+9f4d9f91f",
44
- "@instructure/ui-test-utils": "8.12.1-snapshot.45+9f4d9f91f",
45
- "@instructure/ui-themes": "8.12.1-snapshot.45+9f4d9f91f"
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": "9f4d9f91f603496ac87a04d953afe7fe9004874d"
54
+ "gitHead": "4d369733414715a70bae0628378e8d82214eab3e"
55
55
  }
@@ -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.string,
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;