dhre-ui-kit 0.0.321 → 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";
@@ -4881,7 +4882,7 @@ const PropertyDetails = ({
4881
4882
  hintIcon,
4882
4883
  btnIcon,
4883
4884
  containerStyle,
4884
- subTitleStye,
4885
+ subTitleStyle,
4885
4886
  propertyNumberStyle,
4886
4887
  onRightIconPress
4887
4888
  }) => {
@@ -4912,7 +4913,7 @@ const PropertyDetails = ({
4912
4913
  {
4913
4914
  text: subTitle,
4914
4915
  variant: FontStyle.L1_REGULAR,
4915
- style: [{ color: theme.CONTENT_PRIMARY }, subTitleStye]
4916
+ style: [{ color: theme.CONTENT_PRIMARY }, subTitleStyle]
4916
4917
  }
4917
4918
  ), propertyNumber && /* @__PURE__ */ React.createElement(View, { style: [styles$1.propertyNumber, propertyNumberStyle] }, /* @__PURE__ */ React.createElement(
4918
4919
  CustomTypography,
@@ -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
  }