@paprika/radio
Advanced tools
Comparing version 1.0.22 to 1.0.23-next.0
# Changelog | ||
## 1.0.23-next.0 | ||
### Patch Changes | ||
- b7b291a: Added hook so user can update checkIndex via ref | ||
## 1.0.22 | ||
@@ -4,0 +10,0 @@ |
@@ -51,3 +51,3 @@ "use strict"; | ||
function Group(props) { | ||
var Group = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) { | ||
var canDeselect = props.canDeselect, | ||
@@ -92,2 +92,10 @@ children = props.children, | ||
_react["default"].useImperativeHandle(ref, function () { | ||
return { | ||
updateCheckedIndex: function updateCheckedIndex(index) { | ||
setCheckedIndex(index); | ||
} | ||
}; | ||
}); | ||
return /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({ | ||
@@ -112,3 +120,3 @@ "data-pka-anchor": "radio.group" | ||
})); | ||
} | ||
}); | ||
@@ -115,0 +123,0 @@ Group.displayName = "Radio.Group"; |
{ | ||
"name": "@paprika/radio", | ||
"version": "1.0.22", | ||
"version": "1.0.23-next.0", | ||
"description": "Radio component displays a radio input and label text beside it. When clicked it selects the input and deselects any other radio input in its group", | ||
@@ -5,0 +5,0 @@ "author": "@paprika", |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
62000
488
2