rc-textarea
Advanced tools
Comparing version 1.5.3 to 1.6.0
@@ -179,3 +179,3 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
var isPureTextArea = !rest.autoSize && !showCount && !allowClear; | ||
var textarea = /*#__PURE__*/React.createElement(BaseInput, { | ||
return /*#__PURE__*/React.createElement(BaseInput, { | ||
value: formatValue, | ||
@@ -186,3 +186,3 @@ allowClear: allowClear, | ||
prefixCls: prefixCls, | ||
classes: { | ||
classNames: { | ||
affixWrapper: clsx(classes === null || classes === void 0 ? void 0 : classes.affixWrapper, (_clsx = {}, _defineProperty(_clsx, "".concat(prefixCls, "-show-count"), showCount), _defineProperty(_clsx, "".concat(prefixCls, "-textarea-allow-clear"), allowClear), _clsx)) | ||
@@ -201,23 +201,21 @@ }, | ||
}, | ||
hidden: hidden, | ||
inputElement: /*#__PURE__*/React.createElement(ResizableTextArea, _extends({}, rest, { | ||
maxLength: maxLength, | ||
onKeyDown: handleKeyDown, | ||
onChange: onInternalChange, | ||
onFocus: handleFocus, | ||
onBlur: handleBlur, | ||
onCompositionStart: onInternalCompositionStart, | ||
onCompositionEnd: onInternalCompositionEnd, | ||
className: clsx(classNames === null || classNames === void 0 ? void 0 : classNames.textarea), | ||
style: _objectSpread(_objectSpread({}, styles === null || styles === void 0 ? void 0 : styles.textarea), {}, { | ||
resize: style === null || style === void 0 ? void 0 : style.resize | ||
}), | ||
disabled: disabled, | ||
prefixCls: prefixCls, | ||
onResize: handleResize, | ||
ref: resizableTextAreaRef | ||
})) | ||
}); | ||
return textarea; | ||
hidden: hidden | ||
}, /*#__PURE__*/React.createElement(ResizableTextArea, _extends({}, rest, { | ||
maxLength: maxLength, | ||
onKeyDown: handleKeyDown, | ||
onChange: onInternalChange, | ||
onFocus: handleFocus, | ||
onBlur: handleBlur, | ||
onCompositionStart: onInternalCompositionStart, | ||
onCompositionEnd: onInternalCompositionEnd, | ||
className: clsx(classNames === null || classNames === void 0 ? void 0 : classNames.textarea), | ||
style: _objectSpread(_objectSpread({}, styles === null || styles === void 0 ? void 0 : styles.textarea), {}, { | ||
resize: style === null || style === void 0 ? void 0 : style.resize | ||
}), | ||
disabled: disabled, | ||
prefixCls: prefixCls, | ||
onResize: handleResize, | ||
ref: resizableTextAreaRef | ||
}))); | ||
}); | ||
export default TextArea; |
@@ -189,3 +189,3 @@ "use strict"; | ||
var isPureTextArea = !rest.autoSize && !showCount && !allowClear; | ||
var textarea = /*#__PURE__*/_react.default.createElement(_rcInput.BaseInput, { | ||
return /*#__PURE__*/_react.default.createElement(_rcInput.BaseInput, { | ||
value: formatValue, | ||
@@ -196,3 +196,3 @@ allowClear: allowClear, | ||
prefixCls: prefixCls, | ||
classes: { | ||
classNames: { | ||
affixWrapper: (0, _classnames.default)(classes === null || classes === void 0 ? void 0 : classes.affixWrapper, (_clsx = {}, (0, _defineProperty2.default)(_clsx, "".concat(prefixCls, "-show-count"), showCount), (0, _defineProperty2.default)(_clsx, "".concat(prefixCls, "-textarea-allow-clear"), allowClear), _clsx)) | ||
@@ -211,23 +211,21 @@ }, | ||
}, | ||
hidden: hidden, | ||
inputElement: /*#__PURE__*/_react.default.createElement(_ResizableTextArea.default, (0, _extends2.default)({}, rest, { | ||
maxLength: maxLength, | ||
onKeyDown: handleKeyDown, | ||
onChange: onInternalChange, | ||
onFocus: handleFocus, | ||
onBlur: handleBlur, | ||
onCompositionStart: onInternalCompositionStart, | ||
onCompositionEnd: onInternalCompositionEnd, | ||
className: (0, _classnames.default)(classNames === null || classNames === void 0 ? void 0 : classNames.textarea), | ||
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, styles === null || styles === void 0 ? void 0 : styles.textarea), {}, { | ||
resize: style === null || style === void 0 ? void 0 : style.resize | ||
}), | ||
disabled: disabled, | ||
prefixCls: prefixCls, | ||
onResize: handleResize, | ||
ref: resizableTextAreaRef | ||
})) | ||
}); | ||
return textarea; | ||
hidden: hidden | ||
}, /*#__PURE__*/_react.default.createElement(_ResizableTextArea.default, (0, _extends2.default)({}, rest, { | ||
maxLength: maxLength, | ||
onKeyDown: handleKeyDown, | ||
onChange: onInternalChange, | ||
onFocus: handleFocus, | ||
onBlur: handleBlur, | ||
onCompositionStart: onInternalCompositionStart, | ||
onCompositionEnd: onInternalCompositionEnd, | ||
className: (0, _classnames.default)(classNames === null || classNames === void 0 ? void 0 : classNames.textarea), | ||
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, styles === null || styles === void 0 ? void 0 : styles.textarea), {}, { | ||
resize: style === null || style === void 0 ? void 0 : style.resize | ||
}), | ||
disabled: disabled, | ||
prefixCls: prefixCls, | ||
onResize: handleResize, | ||
ref: resizableTextAreaRef | ||
}))); | ||
}); | ||
var _default = exports.default = TextArea; |
{ | ||
"name": "rc-textarea", | ||
"version": "1.5.3", | ||
"version": "1.6.0", | ||
"description": "Pretty Textarea react component used in used in ant.design", | ||
@@ -48,3 +48,3 @@ "keywords": [ | ||
"classnames": "^2.2.1", | ||
"rc-input": "~1.3.5", | ||
"rc-input": "~1.4.0", | ||
"rc-resize-observer": "^1.0.0", | ||
@@ -51,0 +51,0 @@ "rc-util": "^5.27.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61494
1243
+ Addedrc-input@1.4.5(transitive)
- Removedrc-input@1.3.11(transitive)
Updatedrc-input@~1.4.0