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.d.ts CHANGED
@@ -511,7 +511,6 @@ interface ContactModalProps {
511
511
  onClose: () => void;
512
512
  isMailOpen: boolean;
513
513
  data: string;
514
- emailSubject: string;
515
514
  }
516
515
  declare const _default$b: (props: ContactModalProps) => React$1.JSX.Element;
517
516
 
package/lib/index.js CHANGED
@@ -981,14 +981,20 @@ const Checkbox = ({
981
981
  onCheck && onCheck(!checked);
982
982
  };
983
983
  return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { testID, style: containerStyle }, /* @__PURE__ */ React__default["default"].createElement(
984
- reactNative.Pressable,
984
+ reactNative.View,
985
985
  {
986
- testID: "Checkbox-Press",
987
- onPress: handlePress,
988
- disabled: disable,
989
986
  style: styles$w.directionStyle
990
987
  },
991
- /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$w.checkboxContainer }, React__default["default"].cloneElement(checked ? checkedIcon : uncheckedIcon)),
988
+ /* @__PURE__ */ React__default["default"].createElement(
989
+ reactNative.Pressable,
990
+ {
991
+ testID: "Checkbox-Press",
992
+ onPress: handlePress,
993
+ disabled: disable,
994
+ style: styles$w.checkboxContainer
995
+ },
996
+ React__default["default"].cloneElement(checked ? checkedIcon : uncheckedIcon)
997
+ ),
992
998
  /* @__PURE__ */ React__default["default"].createElement(
993
999
  CustomTypography,
994
1000
  {
@@ -2600,8 +2606,7 @@ const ContactModal = ({
2600
2606
  visible,
2601
2607
  onClose,
2602
2608
  isMailOpen,
2603
- data,
2604
- emailSubject
2609
+ data
2605
2610
  }) => {
2606
2611
  const handleCall = () => {
2607
2612
  if (reactNative.Platform.OS === "ios") {
@@ -2613,11 +2618,11 @@ const ContactModal = ({
2613
2618
  };
2614
2619
  const openEmail = (recipient) => {
2615
2620
  const mailtoUrl = `mailto:${recipient}?subject=${encodeURIComponent(
2616
- emailSubject
2621
+ ""
2617
2622
  )}&body=${encodeURIComponent("")}`;
2618
2623
  if (reactNative.Platform.OS === "android") {
2619
2624
  const gmailUrl = `intent://#Intent;scheme=mailto;package=com.google.android.gm;S.to=${recipient};S.subject=${encodeURIComponent(
2620
- emailSubject
2625
+ ""
2621
2626
  )};S.body=${encodeURIComponent("")};end`;
2622
2627
  reactNative.Linking.canOpenURL(gmailUrl).then((supported) => {
2623
2628
  if (supported) {
@@ -4689,7 +4694,7 @@ const styles = reactNative.StyleSheet.create({
4689
4694
  });
4690
4695
 
4691
4696
  const RadioButtonGroup = ({ data, onSelect, containerStyle, labelStyle }) => {
4692
- const [selectedOption, setSelectedOption] = React.useState(null);
4697
+ const [selectedOption, setSelectedOption] = React.useState(data[0]?.value);
4693
4698
  const handleSelect = (item) => {
4694
4699
  setSelectedOption(item.value);
4695
4700
  onSelect(item);