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.7.0 to 1.8.0

2

es/interface.d.ts

@@ -31,3 +31,3 @@ import type { BaseInputProps, CommonInputProps, InputProps } from 'rc-input/lib/interface';

};
} & Pick<BaseInputProps, 'allowClear' | 'suffix'> & Pick<InputProps, 'showCount' | 'count'>;
} & Pick<BaseInputProps, 'allowClear' | 'suffix'> & Pick<InputProps, 'showCount' | 'count' | 'onClear'>;
export type TextAreaRef = {

@@ -34,0 +34,0 @@ resizableTextArea: ResizableTextAreaRef;

@@ -29,3 +29,3 @@ import * as React from 'react';

};
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "showCount" | "count"> & React.RefAttributes<ResizableTextAreaRef>>;
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "onClear" | "showCount" | "count"> & React.RefAttributes<ResizableTextAreaRef>>;
export default ResizableTextArea;

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

import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
var _excluded = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "onResize", "className", "style", "disabled", "onChange", "onInternalAutoSize"];
var _excluded = ["prefixCls", "defaultValue", "value", "autoSize", "onResize", "className", "style", "disabled", "onChange", "onInternalAutoSize"];
import classNames from 'classnames';

@@ -22,3 +22,2 @@ import ResizeObserver from 'rc-resize-observer';

prefixCls = _ref.prefixCls,
onPressEnter = _ref.onPressEnter,
defaultValue = _ref.defaultValue,

@@ -25,0 +24,0 @@ value = _ref.value,

@@ -29,3 +29,3 @@ import React from 'react';

};
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "showCount" | "count"> & React.RefAttributes<TextAreaRef>>;
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "onClear" | "showCount" | "count"> & React.RefAttributes<TextAreaRef>>;
export default TextArea;

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

import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
var _excluded = ["defaultValue", "value", "onFocus", "onBlur", "onChange", "allowClear", "maxLength", "onCompositionStart", "onCompositionEnd", "suffix", "prefixCls", "showCount", "count", "className", "style", "disabled", "hidden", "classNames", "styles", "onResize", "readOnly"];
var _excluded = ["defaultValue", "value", "onFocus", "onBlur", "onChange", "allowClear", "maxLength", "onCompositionStart", "onCompositionEnd", "suffix", "prefixCls", "showCount", "count", "className", "style", "disabled", "hidden", "classNames", "styles", "onResize", "onClear", "readOnly"];
import clsx from 'classnames';

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

onResize = _ref.onResize,
onClear = _ref.onClear,
readOnly = _ref.readOnly,

@@ -206,3 +207,4 @@ rest = _objectWithoutProperties(_ref, _excluded);

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

@@ -209,0 +211,0 @@ maxLength: maxLength,

@@ -31,3 +31,3 @@ import type { BaseInputProps, CommonInputProps, InputProps } from 'rc-input/lib/interface';

};
} & Pick<BaseInputProps, 'allowClear' | 'suffix'> & Pick<InputProps, 'showCount' | 'count'>;
} & Pick<BaseInputProps, 'allowClear' | 'suffix'> & Pick<InputProps, 'showCount' | 'count' | 'onClear'>;
export type TextAreaRef = {

@@ -34,0 +34,0 @@ resizableTextArea: ResizableTextAreaRef;

@@ -29,3 +29,3 @@ import * as React from 'react';

};
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "showCount" | "count"> & React.RefAttributes<ResizableTextAreaRef>>;
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "onClear" | "showCount" | "count"> & React.RefAttributes<ResizableTextAreaRef>>;
export default ResizableTextArea;

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

var _calculateNodeHeight = _interopRequireDefault(require("./calculateNodeHeight"));
var _excluded = ["prefixCls", "onPressEnter", "defaultValue", "value", "autoSize", "onResize", "className", "style", "disabled", "onChange", "onInternalAutoSize"];
var _excluded = ["prefixCls", "defaultValue", "value", "autoSize", "onResize", "className", "style", "disabled", "onChange", "onInternalAutoSize"];
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }

@@ -32,3 +32,2 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof3(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }

prefixCls = _ref.prefixCls,
onPressEnter = _ref.onPressEnter,
defaultValue = _ref.defaultValue,

@@ -35,0 +34,0 @@ value = _ref.value,

@@ -29,3 +29,3 @@ import React from 'react';

};
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "showCount" | "count"> & React.RefAttributes<TextAreaRef>>;
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "onClear" | "showCount" | "count"> & React.RefAttributes<TextAreaRef>>;
export default TextArea;

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

var _ResizableTextArea = _interopRequireDefault(require("./ResizableTextArea"));
var _excluded = ["defaultValue", "value", "onFocus", "onBlur", "onChange", "allowClear", "maxLength", "onCompositionStart", "onCompositionEnd", "suffix", "prefixCls", "showCount", "count", "className", "style", "disabled", "hidden", "classNames", "styles", "onResize", "readOnly"];
var _excluded = ["defaultValue", "value", "onFocus", "onBlur", "onChange", "allowClear", "maxLength", "onCompositionStart", "onCompositionEnd", "suffix", "prefixCls", "showCount", "count", "className", "style", "disabled", "hidden", "classNames", "styles", "onResize", "onClear", "readOnly"];
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }

@@ -49,2 +49,3 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }

onResize = _ref.onResize,
onClear = _ref.onClear,
readOnly = _ref.readOnly,

@@ -216,3 +217,4 @@ rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);

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

@@ -219,0 +221,0 @@ maxLength: maxLength,

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

@@ -48,3 +48,3 @@ "keywords": [

"classnames": "^2.2.1",
"rc-input": "~1.5.0",
"rc-input": "~1.6.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