dhre-ui-kit 0.0.322 → 0.0.324

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.mjs CHANGED
@@ -4963,8 +4963,17 @@ const styles = StyleSheet.create({
4963
4963
  }
4964
4964
  });
4965
4965
 
4966
- const RadioButtonGroup = ({ data, onSelect, containerStyle, labelStyle, optionContainerStyle }) => {
4967
- const [selectedOption, setSelectedOption] = useState(data[0]?.value);
4966
+ const RadioButtonGroup = ({
4967
+ data,
4968
+ onSelect,
4969
+ containerStyle,
4970
+ labelStyle,
4971
+ optionContainerStyle,
4972
+ selectedValue
4973
+ }) => {
4974
+ const [selectedOption, setSelectedOption] = useState(
4975
+ selectedValue ?? data[0]?.value
4976
+ );
4968
4977
  const handleSelect = (item) => {
4969
4978
  setSelectedOption(item.value);
4970
4979
  onSelect(item);