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.8.0 to 1.8.1

4

es/ResizableTextArea.d.ts
import * as React from 'react';
import type { ResizableTextAreaRef } from './interface';
declare const ResizableTextArea: React.ForwardRefExoticComponent<Omit<import("./interface").HTMLTextareaProps, "value" | "onResize"> & {
declare const ResizableTextArea: React.ForwardRefExoticComponent<Omit<import("./interface").HTMLTextareaProps, "onResize" | "value"> & {
value?: string | number | bigint | readonly string[];

@@ -29,3 +29,3 @@ prefixCls?: string;

};
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "onClear" | "showCount" | "count"> & React.RefAttributes<ResizableTextAreaRef>>;
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "showCount" | "count" | "onClear"> & React.RefAttributes<ResizableTextAreaRef>>;
export default ResizableTextArea;
import React from 'react';
import type { TextAreaRef } from './interface';
declare const TextArea: React.ForwardRefExoticComponent<Omit<import("./interface").HTMLTextareaProps, "value" | "onResize"> & {
declare const TextArea: React.ForwardRefExoticComponent<Omit<import("./interface").HTMLTextareaProps, "onResize" | "value"> & {
value?: string | number | bigint | readonly string[];

@@ -29,3 +29,3 @@ prefixCls?: string;

};
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "onClear" | "showCount" | "count"> & React.RefAttributes<TextAreaRef>>;
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "showCount" | "count" | "onClear"> & 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", "onClear", "readOnly"];
var _excluded = ["defaultValue", "value", "onFocus", "onBlur", "onChange", "allowClear", "maxLength", "onCompositionStart", "onCompositionEnd", "suffix", "prefixCls", "showCount", "count", "className", "style", "disabled", "hidden", "classNames", "styles", "onResize", "onClear", "onPressEnter", "readOnly", "autoSize", "onKeyDown"];
import clsx from 'classnames';

@@ -40,3 +40,6 @@ import { BaseInput } from 'rc-input';

onClear = _ref.onClear,
onPressEnter = _ref.onPressEnter,
readOnly = _ref.readOnly,
autoSize = _ref.autoSize,
onKeyDown = _ref.onKeyDown,
rest = _objectWithoutProperties(_ref, _excluded);

@@ -138,4 +141,2 @@ var _useMergedState = useMergedState(defaultValue, {

var handleKeyDown = function handleKeyDown(e) {
var onPressEnter = rest.onPressEnter,
onKeyDown = rest.onKeyDown;
if (e.key === 'Enter' && onPressEnter) {

@@ -185,3 +186,3 @@ onPressEnter(e);

};
var isPureTextArea = !rest.autoSize && !showCount && !allowClear;
var isPureTextArea = !autoSize && !showCount && !allowClear;
return /*#__PURE__*/React.createElement(BaseInput, {

@@ -212,2 +213,3 @@ ref: holderRef,

}, /*#__PURE__*/React.createElement(ResizableTextArea, _extends({}, rest, {
autoSize: autoSize,
maxLength: maxLength,

@@ -214,0 +216,0 @@ onKeyDown: handleKeyDown,

import * as React from 'react';
import type { ResizableTextAreaRef } from './interface';
declare const ResizableTextArea: React.ForwardRefExoticComponent<Omit<import("./interface").HTMLTextareaProps, "value" | "onResize"> & {
declare const ResizableTextArea: React.ForwardRefExoticComponent<Omit<import("./interface").HTMLTextareaProps, "onResize" | "value"> & {
value?: string | number | bigint | readonly string[];

@@ -29,3 +29,3 @@ prefixCls?: string;

};
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "onClear" | "showCount" | "count"> & React.RefAttributes<ResizableTextAreaRef>>;
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "showCount" | "count" | "onClear"> & React.RefAttributes<ResizableTextAreaRef>>;
export default ResizableTextArea;
import React from 'react';
import type { TextAreaRef } from './interface';
declare const TextArea: React.ForwardRefExoticComponent<Omit<import("./interface").HTMLTextareaProps, "value" | "onResize"> & {
declare const TextArea: React.ForwardRefExoticComponent<Omit<import("./interface").HTMLTextareaProps, "onResize" | "value"> & {
value?: string | number | bigint | readonly string[];

@@ -29,3 +29,3 @@ prefixCls?: string;

};
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "onClear" | "showCount" | "count"> & React.RefAttributes<TextAreaRef>>;
} & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "showCount" | "count" | "onClear"> & 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", "onClear", "readOnly"];
var _excluded = ["defaultValue", "value", "onFocus", "onBlur", "onChange", "allowClear", "maxLength", "onCompositionStart", "onCompositionEnd", "suffix", "prefixCls", "showCount", "count", "className", "style", "disabled", "hidden", "classNames", "styles", "onResize", "onClear", "onPressEnter", "readOnly", "autoSize", "onKeyDown"];
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); }

@@ -50,3 +50,6 @@ 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; }

onClear = _ref.onClear,
onPressEnter = _ref.onPressEnter,
readOnly = _ref.readOnly,
autoSize = _ref.autoSize,
onKeyDown = _ref.onKeyDown,
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);

@@ -148,4 +151,2 @@ var _useMergedState = (0, _useMergedState3.default)(defaultValue, {

var handleKeyDown = function handleKeyDown(e) {
var onPressEnter = rest.onPressEnter,
onKeyDown = rest.onKeyDown;
if (e.key === 'Enter' && onPressEnter) {

@@ -195,3 +196,3 @@ onPressEnter(e);

};
var isPureTextArea = !rest.autoSize && !showCount && !allowClear;
var isPureTextArea = !autoSize && !showCount && !allowClear;
return /*#__PURE__*/_react.default.createElement(_rcInput.BaseInput, {

@@ -222,2 +223,3 @@ ref: holderRef,

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

@@ -224,0 +226,0 @@ onKeyDown: handleKeyDown,

{
"name": "rc-textarea",
"version": "1.8.0",
"version": "1.8.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