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

rc-input

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-input - npm Package Compare versions

Comparing version 1.3.2 to 1.3.3

8

es/Input.js

@@ -130,4 +130,6 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";

};
// ====================== Input =======================
var outOfRangeCls = isOutOfRange && "".concat(prefixCls, "-out-of-range");
var getInputElement = function getInputElement() {
var _clsx;
// Fix https://fb.me/react-unknown-prop

@@ -145,3 +147,3 @@ var otherProps = omit(props, ['prefixCls', 'onPressEnter', 'addonBefore', 'addonAfter', 'prefix', 'suffix', 'allowClear',

onKeyDown: handleKeyDown,
className: clsx(prefixCls, (_clsx = {}, _defineProperty(_clsx, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_clsx, "".concat(prefixCls, "-out-of-range"), isOutOfRange), _clsx), classNames === null || classNames === void 0 ? void 0 : classNames.input),
className: clsx(prefixCls, _defineProperty({}, "".concat(prefixCls, "-disabled"), disabled), classNames === null || classNames === void 0 ? void 0 : classNames.input),
style: styles === null || styles === void 0 ? void 0 : styles.input,

@@ -178,3 +180,3 @@ ref: inputRef,

prefixCls: prefixCls,
className: className,
className: clsx(className, outOfRangeCls),
inputElement: getInputElement(),

@@ -181,0 +183,0 @@ handleReset: handleReset,

@@ -140,4 +140,6 @@ "use strict";

};
// ====================== Input =======================
var outOfRangeCls = isOutOfRange && "".concat(prefixCls, "-out-of-range");
var getInputElement = function getInputElement() {
var _clsx;
// Fix https://fb.me/react-unknown-prop

@@ -155,3 +157,3 @@ var otherProps = (0, _omit.default)(props, ['prefixCls', 'onPressEnter', 'addonBefore', 'addonAfter', 'prefix', 'suffix', 'allowClear',

onKeyDown: handleKeyDown,
className: (0, _classnames.default)(prefixCls, (_clsx = {}, (0, _defineProperty2.default)(_clsx, "".concat(prefixCls, "-disabled"), disabled), (0, _defineProperty2.default)(_clsx, "".concat(prefixCls, "-out-of-range"), isOutOfRange), _clsx), classNames === null || classNames === void 0 ? void 0 : classNames.input),
className: (0, _classnames.default)(prefixCls, (0, _defineProperty2.default)({}, "".concat(prefixCls, "-disabled"), disabled), classNames === null || classNames === void 0 ? void 0 : classNames.input),
style: styles === null || styles === void 0 ? void 0 : styles.input,

@@ -188,3 +190,3 @@ ref: inputRef,

prefixCls: prefixCls,
className: className,
className: (0, _classnames.default)(className, outOfRangeCls),
inputElement: getInputElement(),

@@ -191,0 +193,0 @@ handleReset: handleReset,

{
"name": "rc-input",
"version": "1.3.2",
"version": "1.3.3",
"description": "React input component",

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