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.d.ts CHANGED
@@ -1148,7 +1148,7 @@ interface PropertyDetailsProps {
1148
1148
  btnIcon?: React.ReactElement;
1149
1149
  containerStyle?: ViewStyle;
1150
1150
  onRightIconPress: () => void;
1151
- subTitleStye?: ViewStyle;
1151
+ subTitleStyle?: ViewStyle;
1152
1152
  propertyNumberStyle?: ViewStyle;
1153
1153
  }
1154
1154
 
@@ -1164,6 +1164,7 @@ interface RadioButtonGroupProps {
1164
1164
  containerStyle?: ViewStyle;
1165
1165
  labelStyle?: ViewStyle;
1166
1166
  optionContainerStyle?: ViewStyle;
1167
+ selectedValue?: string;
1167
1168
  }
1168
1169
 
1169
1170
  declare const RadioButtonGroup: React$1.FC<RadioButtonGroupProps>;
package/lib/index.js CHANGED
@@ -20,6 +20,7 @@ var reactNativeElementDropdown = require('react-native-element-dropdown');
20
20
  var DocumentPicker = require('react-native-document-picker');
21
21
  var RNFS = require('react-native-fs');
22
22
  var OTPVerify = require('react-native-otp-verify');
23
+ var appEnum = require('src/utils/appEnum');
23
24
 
24
25
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
25
26
 
@@ -4918,7 +4919,7 @@ const PropertyDetails = ({
4918
4919
  hintIcon,
4919
4920
  btnIcon,
4920
4921
  containerStyle,
4921
- subTitleStye,
4922
+ subTitleStyle,
4922
4923
  propertyNumberStyle,
4923
4924
  onRightIconPress
4924
4925
  }) => {
@@ -4949,7 +4950,7 @@ const PropertyDetails = ({
4949
4950
  {
4950
4951
  text: subTitle,
4951
4952
  variant: FontStyle.L1_REGULAR,
4952
- style: [{ color: theme.CONTENT_PRIMARY }, subTitleStye]
4953
+ style: [{ color: theme.CONTENT_PRIMARY }, subTitleStyle]
4953
4954
  }
4954
4955
  ), propertyNumber && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$1.propertyNumber, propertyNumberStyle] }, /* @__PURE__ */ React__default["default"].createElement(
4955
4956
  CustomTypography,
@@ -5000,8 +5001,17 @@ const styles = reactNative.StyleSheet.create({
5000
5001
  }
5001
5002
  });
5002
5003
 
5003
- const RadioButtonGroup = ({ data, onSelect, containerStyle, labelStyle, optionContainerStyle }) => {
5004
- const [selectedOption, setSelectedOption] = React.useState(data[0]?.value);
5004
+ const RadioButtonGroup = ({
5005
+ data,
5006
+ onSelect,
5007
+ containerStyle,
5008
+ labelStyle,
5009
+ optionContainerStyle,
5010
+ selectedValue
5011
+ }) => {
5012
+ const [selectedOption, setSelectedOption] = React.useState(
5013
+ selectedValue ?? data[0]?.value
5014
+ );
5005
5015
  const handleSelect = (item) => {
5006
5016
  setSelectedOption(item.value);
5007
5017
  onSelect(item);
@@ -5025,7 +5035,7 @@ const RadioButtonGroup = ({ data, onSelect, containerStyle, labelStyle, optionCo
5025
5035
  /* @__PURE__ */ React__default["default"].createElement(
5026
5036
  CustomTypography,
5027
5037
  {
5028
- variant: FontStyle.L1_REGULAR,
5038
+ variant: appEnum.FontStyle.L1_REGULAR,
5029
5039
  text: item.label,
5030
5040
  style: [styles.label, labelStyle]
5031
5041
  }