dhre-ui-kit 0.0.195 → 0.0.196

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
@@ -948,14 +948,20 @@ const Checkbox = ({
948
948
  onCheck && onCheck(!checked);
949
949
  };
950
950
  return /* @__PURE__ */ React.createElement(View, { testID, style: containerStyle }, /* @__PURE__ */ React.createElement(
951
- Pressable,
951
+ View,
952
952
  {
953
- testID: "Checkbox-Press",
954
- onPress: handlePress,
955
- disabled: disable,
956
953
  style: styles$w.directionStyle
957
954
  },
958
- /* @__PURE__ */ React.createElement(View, { style: styles$w.checkboxContainer }, React.cloneElement(checked ? checkedIcon : uncheckedIcon)),
955
+ /* @__PURE__ */ React.createElement(
956
+ Pressable,
957
+ {
958
+ testID: "Checkbox-Press",
959
+ onPress: handlePress,
960
+ disabled: disable,
961
+ style: styles$w.checkboxContainer
962
+ },
963
+ React.cloneElement(checked ? checkedIcon : uncheckedIcon)
964
+ ),
959
965
  /* @__PURE__ */ React.createElement(
960
966
  CustomTypography,
961
967
  {
@@ -2567,8 +2573,7 @@ const ContactModal = ({
2567
2573
  visible,
2568
2574
  onClose,
2569
2575
  isMailOpen,
2570
- data,
2571
- emailSubject
2576
+ data
2572
2577
  }) => {
2573
2578
  const handleCall = () => {
2574
2579
  if (Platform.OS === "ios") {
@@ -2580,11 +2585,11 @@ const ContactModal = ({
2580
2585
  };
2581
2586
  const openEmail = (recipient) => {
2582
2587
  const mailtoUrl = `mailto:${recipient}?subject=${encodeURIComponent(
2583
- emailSubject
2588
+ ""
2584
2589
  )}&body=${encodeURIComponent("")}`;
2585
2590
  if (Platform.OS === "android") {
2586
2591
  const gmailUrl = `intent://#Intent;scheme=mailto;package=com.google.android.gm;S.to=${recipient};S.subject=${encodeURIComponent(
2587
- emailSubject
2592
+ ""
2588
2593
  )};S.body=${encodeURIComponent("")};end`;
2589
2594
  Linking.canOpenURL(gmailUrl).then((supported) => {
2590
2595
  if (supported) {
@@ -4656,7 +4661,7 @@ const styles = StyleSheet.create({
4656
4661
  });
4657
4662
 
4658
4663
  const RadioButtonGroup = ({ data, onSelect, containerStyle, labelStyle }) => {
4659
- const [selectedOption, setSelectedOption] = useState(null);
4664
+ const [selectedOption, setSelectedOption] = useState(data[0]?.value);
4660
4665
  const handleSelect = (item) => {
4661
4666
  setSelectedOption(item.value);
4662
4667
  onSelect(item);