dhre-ui-kit 0.0.196 → 0.0.198
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 +2 -0
- package/lib/index.js +17 -6
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +17 -6
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
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) {
|
|
@@ -3069,6 +3072,14 @@ const createStyles$1 = (theme) => {
|
|
|
3069
3072
|
paddingHorizontal: 20,
|
|
3070
3073
|
borderRadius: 30
|
|
3071
3074
|
},
|
|
3075
|
+
feedbackButtonDisable: {
|
|
3076
|
+
backgroundColor: theme.SURFACE_PRIMARY,
|
|
3077
|
+
borderColor: theme.SURFACE_DISABLE,
|
|
3078
|
+
borderWidth: 1,
|
|
3079
|
+
paddingVertical: 10,
|
|
3080
|
+
paddingHorizontal: 20,
|
|
3081
|
+
borderRadius: 30
|
|
3082
|
+
},
|
|
3072
3083
|
cancelButton: {
|
|
3073
3084
|
paddingVertical: 10,
|
|
3074
3085
|
paddingHorizontal: 40
|
|
@@ -3116,7 +3127,7 @@ const FeedbackForm = ({
|
|
|
3116
3127
|
textColor: Theme.CONTENT_SECONDRY,
|
|
3117
3128
|
style: styles.charCounter
|
|
3118
3129
|
}
|
|
3119
|
-
), /* @__PURE__ */ React.createElement(View, { style: styles.buttonContainer }, /* @__PURE__ */ React.createElement(Pressable, { style: styles.feedbackButton, onPress: handleSendFeedback }, /* @__PURE__ */ React.createElement(
|
|
3130
|
+
), /* @__PURE__ */ React.createElement(View, { style: styles.buttonContainer }, /* @__PURE__ */ React.createElement(Pressable, { disabled: feedback?.length < 1, style: feedback?.length < 1 ? styles.feedbackButtonDisable : styles.feedbackButton, onPress: handleSendFeedback }, /* @__PURE__ */ React.createElement(
|
|
3120
3131
|
CustomText$1,
|
|
3121
3132
|
{
|
|
3122
3133
|
text: leftBtnTxt,
|