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 +0 -1
- package/lib/index.js +15 -10
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +15 -10
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
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.
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
4697
|
+
const [selectedOption, setSelectedOption] = React.useState(data[0]?.value);
|
|
4693
4698
|
const handleSelect = (item) => {
|
|
4694
4699
|
setSelectedOption(item.value);
|
|
4695
4700
|
onSelect(item);
|