@skedulo/sked-ui 19.10.2 → 19.11.0

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,6 +12,10 @@ interface ITextArea extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
12
12
  * Maximum rows
13
13
  */
14
14
  maxRows?: number;
15
+ /**
16
+ * Toggle Content Length
17
+ */
18
+ disableContentLength?: boolean;
15
19
  }
16
20
  export declare const TextArea: React.FunctionComponent<ITextArea>;
17
21
  export {};
package/dist/index.js CHANGED
@@ -62433,8 +62433,9 @@ var TextArea = function TextArea(_ref2) {
62433
62433
  maxRows = _ref2.maxRows,
62434
62434
  _ref2$maxLength = _ref2.maxLength,
62435
62435
  maxLength = _ref2$maxLength === void 0 ? Infinity : _ref2$maxLength,
62436
+ disableContentLength = _ref2.disableContentLength,
62436
62437
  value = _ref2.value,
62437
- props = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_ref2, ["className", "minRows", "maxRows", "maxLength", "value"]);
62438
+ props = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(_ref2, ["className", "minRows", "maxRows", "maxLength", "disableContentLength", "value"]);
62438
62439
 
62439
62440
  var ref = react__WEBPACK_IMPORTED_MODULE_3___default.a.useRef();
62440
62441
 
@@ -62458,7 +62459,7 @@ var TextArea = function TextArea(_ref2) {
62458
62459
  className: classNames,
62459
62460
  ref: ref,
62460
62461
  maxLength: maxLength
62461
- })), maxLength && maxLength < Infinity && react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ContentLength, {
62462
+ })), !disableContentLength && maxLength && maxLength < Infinity && react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement(ContentLength, {
62462
62463
  content: content,
62463
62464
  maxLength: maxLength
62464
62465
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skedulo/sked-ui",
3
- "version": "19.10.2",
3
+ "version": "19.11.0",
4
4
  "license": "UNLICENSED",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",