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.2.0 to 1.2.1

7

es/TextArea.js

@@ -7,3 +7,3 @@ import _extends from "@babel/runtime/helpers/esm/extends";

import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
var _excluded = ["defaultValue", "value", "onFocus", "onBlur", "onChange", "allowClear", "maxLength", "onCompositionStart", "onCompositionEnd", "suffix", "prefixCls", "classes", "showCount", "className", "style", "disabled"];
var _excluded = ["defaultValue", "value", "onFocus", "onBlur", "onChange", "allowClear", "maxLength", "onCompositionStart", "onCompositionEnd", "suffix", "prefixCls", "classes", "showCount", "className", "style", "disabled", "hidden"];
import classNames from 'classnames';

@@ -48,2 +48,3 @@ import { BaseInput } from 'rc-input';

disabled = _ref.disabled,
hidden = _ref.hidden,
rest = _objectWithoutProperties(_ref, _excluded);

@@ -178,2 +179,3 @@ var _useMergedState = useMergedState(defaultValue, {

focused: focused,
className: className,
style: style,

@@ -188,2 +190,3 @@ inputStyle: {

},
hidden: hidden,
inputElement: /*#__PURE__*/React.createElement(ResizableTextArea, _extends({}, rest, {

@@ -196,3 +199,3 @@ onKeyDown: handleKeyDown,

onCompositionEnd: onInternalCompositionEnd,
className: classNames(showCount ? '' : className, classes === null || classes === void 0 ? void 0 : classes.textarea),
className: classes === null || classes === void 0 ? void 0 : classes.textarea,
style: !showCount && style,

@@ -199,0 +202,0 @@ disabled: disabled,

@@ -21,3 +21,3 @@ "use strict";

var _ResizableTextArea = _interopRequireDefault(require("./ResizableTextArea"));
var _excluded = ["defaultValue", "value", "onFocus", "onBlur", "onChange", "allowClear", "maxLength", "onCompositionStart", "onCompositionEnd", "suffix", "prefixCls", "classes", "showCount", "className", "style", "disabled"];
var _excluded = ["defaultValue", "value", "onFocus", "onBlur", "onChange", "allowClear", "maxLength", "onCompositionStart", "onCompositionEnd", "suffix", "prefixCls", "classes", "showCount", "className", "style", "disabled", "hidden"];
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

@@ -58,2 +58,3 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof3(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

disabled = _ref.disabled,
hidden = _ref.hidden,
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);

@@ -188,2 +189,3 @@ var _useMergedState = (0, _useMergedState3.default)(defaultValue, {

focused: focused,
className: className,
style: style,

@@ -198,2 +200,3 @@ inputStyle: {

},
hidden: hidden,
inputElement: /*#__PURE__*/_react.default.createElement(_ResizableTextArea.default, (0, _extends2.default)({}, rest, {

@@ -206,3 +209,3 @@ onKeyDown: handleKeyDown,

onCompositionEnd: onInternalCompositionEnd,
className: (0, _classnames.default)(showCount ? '' : className, classes === null || classes === void 0 ? void 0 : classes.textarea),
className: classes === null || classes === void 0 ? void 0 : classes.textarea,
style: !showCount && style,

@@ -209,0 +212,0 @@ disabled: disabled,

{
"name": "rc-textarea",
"version": "1.2.0",
"version": "1.2.1",
"description": "Pretty Textarea react component used in used in ant.design",

@@ -5,0 +5,0 @@ "keywords": [

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