Comparing version 1.7.1 to 1.7.2
@@ -9,3 +9,3 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; | ||
var BaseInput = /*#__PURE__*/React.forwardRef(function (props, ref) { | ||
var _element$props, _element$props2; | ||
var _props, _props2, _props3; | ||
var inputEl = props.inputElement, | ||
@@ -49,3 +49,3 @@ children = props.children, | ||
value: value, | ||
className: clsx(inputElement.props.className, !hasAffix && (classNames === null || classNames === void 0 ? void 0 : classNames.variant)) || null | ||
className: clsx((_props = inputElement.props) === null || _props === void 0 ? void 0 : _props.className, !hasAffix && (classNames === null || classNames === void 0 ? void 0 : classNames.variant)) || null | ||
}); | ||
@@ -126,4 +126,4 @@ | ||
return /*#__PURE__*/React.cloneElement(element, { | ||
className: clsx((_element$props = element.props) === null || _element$props === void 0 ? void 0 : _element$props.className, className) || null, | ||
style: _objectSpread(_objectSpread({}, (_element$props2 = element.props) === null || _element$props2 === void 0 ? void 0 : _element$props2.style), style), | ||
className: clsx((_props2 = element.props) === null || _props2 === void 0 ? void 0 : _props2.className, className) || null, | ||
style: _objectSpread(_objectSpread({}, (_props3 = element.props) === null || _props3 === void 0 ? void 0 : _props3.style), style), | ||
hidden: hidden | ||
@@ -130,0 +130,0 @@ }); |
@@ -19,3 +19,3 @@ "use strict"; | ||
var BaseInput = /*#__PURE__*/_react.default.forwardRef(function (props, ref) { | ||
var _element$props, _element$props2; | ||
var _props, _props2, _props3; | ||
var inputEl = props.inputElement, | ||
@@ -59,3 +59,3 @@ children = props.children, | ||
value: value, | ||
className: (0, _classnames.default)(inputElement.props.className, !hasAffix && (classNames === null || classNames === void 0 ? void 0 : classNames.variant)) || null | ||
className: (0, _classnames.default)((_props = inputElement.props) === null || _props === void 0 ? void 0 : _props.className, !hasAffix && (classNames === null || classNames === void 0 ? void 0 : classNames.variant)) || null | ||
}); | ||
@@ -136,4 +136,4 @@ | ||
return /*#__PURE__*/_react.default.cloneElement(element, { | ||
className: (0, _classnames.default)((_element$props = element.props) === null || _element$props === void 0 ? void 0 : _element$props.className, className) || null, | ||
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (_element$props2 = element.props) === null || _element$props2 === void 0 ? void 0 : _element$props2.style), style), | ||
className: (0, _classnames.default)((_props2 = element.props) === null || _props2 === void 0 ? void 0 : _props2.className, className) || null, | ||
style: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (_props3 = element.props) === null || _props3 === void 0 ? void 0 : _props3.style), style), | ||
hidden: hidden | ||
@@ -140,0 +140,0 @@ }); |
{ | ||
"name": "rc-input", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"description": "React input component", | ||
@@ -52,26 +52,26 @@ "keywords": [ | ||
"devDependencies": { | ||
"@testing-library/jest-dom": "^5.16.2", | ||
"@testing-library/react": "^13.0.0", | ||
"@testing-library/jest-dom": "^6.6.3", | ||
"@testing-library/react": "^16.0.1", | ||
"@testing-library/user-event": "^14.0.0-beta", | ||
"@types/classnames": "^2.2.9", | ||
"@types/jest": "^26.0.24", | ||
"@types/react": "^17.0.39", | ||
"@types/react-dom": "^17.0.11", | ||
"@umijs/fabric": "^2.0.8", | ||
"@types/jest": "^29.5.14", | ||
"@types/react": "^19.0.0", | ||
"@types/react-dom": "^19.0.1", | ||
"@umijs/fabric": "^4.0.0", | ||
"coveralls": "^3.0.6", | ||
"cross-env": "^7.0.2", | ||
"dumi": "^2.1.14", | ||
"eslint": "^7.0.0", | ||
"eslint": "^8.0.0", | ||
"father": "^4.3.7", | ||
"gh-pages": "^3.1.0", | ||
"husky": "^8.0.1", | ||
"less": "^3.10.3", | ||
"lint-staged": "^13.0.3", | ||
"np": "^7.0.0", | ||
"prettier": "^2.0.5", | ||
"pretty-quick": "^3.0.0", | ||
"gh-pages": "^6.2.0", | ||
"husky": "^9.1.7", | ||
"less": "^4.2.1", | ||
"lint-staged": "^15.2.11", | ||
"np": "^10.1.0", | ||
"prettier": "^3.4.2", | ||
"pretty-quick": "^4.0.0", | ||
"rc-test": "^7.0.15", | ||
"react": "^18.0.0", | ||
"react-dom": "^18.0.0", | ||
"typescript": "^4.0.5" | ||
"typescript": "^5.7.2" | ||
}, | ||
@@ -89,4 +89,3 @@ "peerDependencies": { | ||
"**/*.{js,jsx,tsx,ts,md,json}": [ | ||
"prettier --write", | ||
"git add" | ||
"prettier --write" | ||
] | ||
@@ -93,0 +92,0 @@ }, |
73760