@uiw/react-radio
Advanced tools
Comparing version 4.3.1 to 4.4.0
@@ -6,3 +6,3 @@ import React from 'react'; | ||
} | ||
declare const _default: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<unknown>>; | ||
declare const _default: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>; | ||
export default _default; |
@@ -22,9 +22,9 @@ "use strict"; | ||
var menuRef = /*#__PURE__*/_react.default.createRef(); | ||
var inputRef = /*#__PURE__*/_react.default.createRef(); | ||
(0, _react.useImperativeHandle)(ref, function () { | ||
return menuRef.current; | ||
return inputRef.current; | ||
}); | ||
return /*#__PURE__*/_react.default.createElement(_RadioAbstract.RadioAbstract, (0, _extends2.default)({ | ||
ref: menuRef | ||
ref: inputRef | ||
}, props)); | ||
@@ -31,0 +31,0 @@ } |
@@ -13,2 +13,2 @@ import React from 'react'; | ||
} | ||
export declare const RadioAbstract: React.ForwardRefExoticComponent<RadioAbstractProps & React.RefAttributes<unknown>>; | ||
export declare const RadioAbstract: React.ForwardRefExoticComponent<RadioAbstractProps & React.RefAttributes<HTMLInputElement>>; |
@@ -6,3 +6,3 @@ import React from 'react'; | ||
} | ||
declare const _default: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<unknown>>; | ||
declare const _default: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>; | ||
export default _default; |
@@ -9,8 +9,8 @@ import _extends from "@babel/runtime/helpers/esm/extends"; | ||
var ref = arguments.length > 1 ? arguments[1] : undefined; | ||
var menuRef = /*#__PURE__*/React.createRef(); | ||
var inputRef = /*#__PURE__*/React.createRef(); | ||
useImperativeHandle(ref, function () { | ||
return menuRef.current; | ||
return inputRef.current; | ||
}); | ||
return /*#__PURE__*/React.createElement(RadioAbstract, _extends({ | ||
ref: menuRef | ||
ref: inputRef | ||
}, props)); | ||
@@ -17,0 +17,0 @@ } |
@@ -13,2 +13,2 @@ import React from 'react'; | ||
} | ||
export declare const RadioAbstract: React.ForwardRefExoticComponent<RadioAbstractProps & React.RefAttributes<unknown>>; | ||
export declare const RadioAbstract: React.ForwardRefExoticComponent<RadioAbstractProps & React.RefAttributes<HTMLInputElement>>; |
{ | ||
"name": "@uiw/react-radio", | ||
"version": "4.3.1", | ||
"version": "4.4.0", | ||
"description": "Radio component", | ||
@@ -46,3 +46,3 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
"dependencies": { | ||
"@uiw/utils": "^4.3.1", | ||
"@uiw/utils": "^4.4.0", | ||
"classnames": "2.2.6" | ||
@@ -61,3 +61,3 @@ }, | ||
}, | ||
"gitHead": "f469dd7fc4c211873d65efcc065e2d0de2c64fed" | ||
"gitHead": "efc1f4d8d93eb92af00649e92dd922b3074b0cab" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
50774
607
Updated@uiw/utils@^4.4.0