dhre-ui-kit 0.0.322 → 0.0.323

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
@@ -16,6 +16,7 @@ import { Dropdown } from 'react-native-element-dropdown';
16
16
  import DocumentPicker from 'react-native-document-picker';
17
17
  import RNFS from 'react-native-fs';
18
18
  import OTPVerify, { removeListener, startOtpListener } from 'react-native-otp-verify';
19
+ import { FontStyle as FontStyle$1 } from 'src/utils/appEnum';
19
20
 
20
21
  var ShapeType = /* @__PURE__ */ ((ShapeType2) => {
21
22
  ShapeType2["LINE"] = "line";
@@ -4963,8 +4964,17 @@ const styles = StyleSheet.create({
4963
4964
  }
4964
4965
  });
4965
4966
 
4966
- const RadioButtonGroup = ({ data, onSelect, containerStyle, labelStyle, optionContainerStyle }) => {
4967
- const [selectedOption, setSelectedOption] = useState(data[0]?.value);
4967
+ const RadioButtonGroup = ({
4968
+ data,
4969
+ onSelect,
4970
+ containerStyle,
4971
+ labelStyle,
4972
+ optionContainerStyle,
4973
+ selectedValue
4974
+ }) => {
4975
+ const [selectedOption, setSelectedOption] = useState(
4976
+ selectedValue ?? data[0]?.value
4977
+ );
4968
4978
  const handleSelect = (item) => {
4969
4979
  setSelectedOption(item.value);
4970
4980
  onSelect(item);
@@ -4988,7 +4998,7 @@ const RadioButtonGroup = ({ data, onSelect, containerStyle, labelStyle, optionCo
4988
4998
  /* @__PURE__ */ React.createElement(
4989
4999
  CustomTypography,
4990
5000
  {
4991
- variant: FontStyle.L1_REGULAR,
5001
+ variant: FontStyle$1.L1_REGULAR,
4992
5002
  text: item.label,
4993
5003
  style: [styles.label, labelStyle]
4994
5004
  }