Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-textarea

Package Overview
Dependencies
Maintainers
4
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-textarea - npm Package Compare versions

Comparing version 1.5.3 to 1.6.0

42

es/TextArea.js

@@ -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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc