dhre-ui-kit 0.0.196 → 0.0.197

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
@@ -937,7 +937,8 @@ const Checkbox = ({
937
937
  uncheckedIcon,
938
938
  titleVariant = "L1_REGULAR",
939
939
  titleStyle,
940
- containerStyle
940
+ containerStyle,
941
+ onPress
941
942
  }) => {
942
943
  const [checked, setChecked] = useState(isChecked || false);
943
944
  useEffect(() => {
@@ -967,7 +968,8 @@ const Checkbox = ({
967
968
  {
968
969
  variant: titleVariant,
969
970
  text: labelName,
970
- style: titleStyle
971
+ style: titleStyle,
972
+ onPress
971
973
  }
972
974
  )
973
975
  ));
@@ -2573,7 +2575,8 @@ const ContactModal = ({
2573
2575
  visible,
2574
2576
  onClose,
2575
2577
  isMailOpen,
2576
- data
2578
+ data,
2579
+ emailSubject
2577
2580
  }) => {
2578
2581
  const handleCall = () => {
2579
2582
  if (Platform.OS === "ios") {
@@ -2585,11 +2588,11 @@ const ContactModal = ({
2585
2588
  };
2586
2589
  const openEmail = (recipient) => {
2587
2590
  const mailtoUrl = `mailto:${recipient}?subject=${encodeURIComponent(
2588
- ""
2591
+ emailSubject
2589
2592
  )}&body=${encodeURIComponent("")}`;
2590
2593
  if (Platform.OS === "android") {
2591
2594
  const gmailUrl = `intent://#Intent;scheme=mailto;package=com.google.android.gm;S.to=${recipient};S.subject=${encodeURIComponent(
2592
- ""
2595
+ emailSubject
2593
2596
  )};S.body=${encodeURIComponent("")};end`;
2594
2597
  Linking.canOpenURL(gmailUrl).then((supported) => {
2595
2598
  if (supported) {