Comparing version 1.3.2 to 1.3.3
@@ -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": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
66388
1183