dhre-ui-kit 0.0.110 → 0.0.111
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.js +64 -65
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +233 -234
- package/lib/index.mjs.map +1 -1
- package/package.json +4 -2
package/lib/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import React__default, { createContext, useContext, useState, useEffect, useRef, memo, useCallback } from 'react';
|
|
1
|
+
import React, { createContext, useContext, useState, useEffect, useRef, memo, useCallback } from 'react';
|
|
3
2
|
import { useSelector } from 'react-redux';
|
|
4
3
|
import { Dimensions, Text, StyleSheet, Pressable, View, Modal, KeyboardAvoidingView, Platform, TextInput, ScrollView, Animated, FlatList, ActivityIndicator, TouchableOpacity, Alert, Linking, PanResponder } from 'react-native';
|
|
5
4
|
import { PanGestureHandler, GestureHandlerRootView, Swipeable } from 'react-native-gesture-handler';
|
|
@@ -250,7 +249,7 @@ const ThemeProvider = ({ children }) => {
|
|
|
250
249
|
acc[key] = theme[key][mode];
|
|
251
250
|
return acc;
|
|
252
251
|
}, {});
|
|
253
|
-
return /* @__PURE__ */
|
|
252
|
+
return /* @__PURE__ */ React.createElement(ThemeContext.Provider, { value: { theme: filteredTheme } }, children);
|
|
254
253
|
};
|
|
255
254
|
const useTheme = () => {
|
|
256
255
|
const context = useContext(ThemeContext);
|
|
@@ -261,7 +260,7 @@ const useTheme = () => {
|
|
|
261
260
|
};
|
|
262
261
|
|
|
263
262
|
const withThemeProvider = (Component) => {
|
|
264
|
-
return (props) => /* @__PURE__ */
|
|
263
|
+
return (props) => /* @__PURE__ */ React.createElement(ThemeProvider, null, /* @__PURE__ */ React.createElement(Component, { ...props }));
|
|
265
264
|
};
|
|
266
265
|
|
|
267
266
|
const { width: width$1, height } = Dimensions.get("window");
|
|
@@ -325,7 +324,7 @@ const CustomTypography = ({
|
|
|
325
324
|
...props
|
|
326
325
|
}) => {
|
|
327
326
|
const textStyle = FONT_STYLES[variant];
|
|
328
|
-
return /* @__PURE__ */
|
|
327
|
+
return /* @__PURE__ */ React.createElement(Text, { testID, style: [textStyle, style], ...props }, text);
|
|
329
328
|
};
|
|
330
329
|
|
|
331
330
|
const CustomText = ({
|
|
@@ -336,7 +335,7 @@ const CustomText = ({
|
|
|
336
335
|
...props
|
|
337
336
|
}) => {
|
|
338
337
|
const { theme } = useTheme();
|
|
339
|
-
return /* @__PURE__ */
|
|
338
|
+
return /* @__PURE__ */ React.createElement(
|
|
340
339
|
CustomTypography,
|
|
341
340
|
{
|
|
342
341
|
variant,
|
|
@@ -559,15 +558,15 @@ const Badge = ({
|
|
|
559
558
|
iconStyle,
|
|
560
559
|
handleIconPress
|
|
561
560
|
}) => {
|
|
562
|
-
return /* @__PURE__ */
|
|
561
|
+
return /* @__PURE__ */ React.createElement(
|
|
563
562
|
Pressable,
|
|
564
563
|
{
|
|
565
564
|
style: [styles$C.badge, commonStyles.centerRow, style],
|
|
566
565
|
testID: "BADGE",
|
|
567
566
|
onPress: handleIconPress
|
|
568
567
|
},
|
|
569
|
-
iconName && /* @__PURE__ */
|
|
570
|
-
text && /* @__PURE__ */
|
|
568
|
+
iconName && /* @__PURE__ */ React.createElement(View, { style: [styles$C.icon, iconStyle] }, React.cloneElement(iconName)),
|
|
569
|
+
text && /* @__PURE__ */ React.createElement(
|
|
571
570
|
CustomTypography,
|
|
572
571
|
{
|
|
573
572
|
variant: "B3semiBold",
|
|
@@ -618,71 +617,71 @@ const styles$B = StyleSheet.create({
|
|
|
618
617
|
rightIconStyle: { marginLeft: 8 }
|
|
619
618
|
});
|
|
620
619
|
|
|
621
|
-
var _path$3;
|
|
622
620
|
function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
|
|
623
|
-
var
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
621
|
+
var CrossIcon = ({
|
|
622
|
+
styles = {},
|
|
623
|
+
...props
|
|
624
|
+
}) => /*#__PURE__*/React.createElement("svg", _extends$3({
|
|
625
|
+
width: "24",
|
|
626
|
+
height: "25",
|
|
627
|
+
fill: "none",
|
|
628
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
629
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
630
|
+
d: "M17.657 8.032a.686.686 0 00-.97-.97L12 11.749 7.313 7.062a.686.686 0 10-.97.97l4.687 4.687-4.687 4.687a.686.686 0 10.97.97L12 13.688l4.687 4.688a.686.686 0 10.97-.97l-4.687-4.687 4.687-4.687z",
|
|
631
|
+
fill: "#fff"
|
|
632
|
+
}));
|
|
634
633
|
|
|
635
|
-
var _path$2;
|
|
636
634
|
function _extends$2() { return _extends$2 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$2.apply(null, arguments); }
|
|
637
|
-
var
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
635
|
+
var CaretLeft = ({
|
|
636
|
+
styles = {},
|
|
637
|
+
...props
|
|
638
|
+
}) => /*#__PURE__*/React.createElement("svg", _extends$2({
|
|
639
|
+
width: "24",
|
|
640
|
+
height: "24",
|
|
641
|
+
fill: "none",
|
|
642
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
643
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
644
|
+
d: "M15 19.5L7.5 12 15 4.5",
|
|
645
|
+
stroke: "#fff",
|
|
646
|
+
strokeWidth: "1.5",
|
|
647
|
+
strokeLinecap: "round",
|
|
648
|
+
strokeLinejoin: "round"
|
|
649
|
+
}));
|
|
651
650
|
|
|
652
|
-
var _path$1, _path2;
|
|
653
651
|
function _extends$1() { return _extends$1 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$1.apply(null, arguments); }
|
|
654
|
-
var
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
652
|
+
var HeaderIcon = ({
|
|
653
|
+
styles = {},
|
|
654
|
+
...props
|
|
655
|
+
}) => /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
656
|
+
width: "24",
|
|
657
|
+
height: "24",
|
|
658
|
+
fill: "none",
|
|
659
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
660
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
661
|
+
d: "M13.438 6a1.438 1.438 0 11-2.876 0 1.438 1.438 0 012.876 0zM13.438 12a1.438 1.438 0 11-2.876 0 1.438 1.438 0 012.876 0z",
|
|
662
|
+
fill: "#fff",
|
|
663
|
+
stroke: "#fff",
|
|
664
|
+
strokeWidth: ".125"
|
|
665
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
666
|
+
d: "M12 19.5a1.5 1.5 0 100-3 1.5 1.5 0 000 3z",
|
|
667
|
+
fill: "#fff"
|
|
668
|
+
}));
|
|
670
669
|
|
|
671
|
-
var _path;
|
|
672
670
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
673
|
-
var
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
671
|
+
var ArrowLeft = ({
|
|
672
|
+
styles = {},
|
|
673
|
+
...props
|
|
674
|
+
}) => /*#__PURE__*/React.createElement("svg", _extends({
|
|
675
|
+
width: "24",
|
|
676
|
+
height: "24",
|
|
677
|
+
fill: "none",
|
|
678
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
679
|
+
}, props), /*#__PURE__*/React.createElement("path", {
|
|
680
|
+
fillRule: "evenodd",
|
|
681
|
+
clipRule: "evenodd",
|
|
682
|
+
d: "M15.6 4.186a.774.774 0 01.085 1.092L9.923 12l5.762 6.722a.774.774 0 01-1.176 1.008l-6.194-7.226a.774.774 0 010-1.008L14.51 4.27a.774.774 0 011.092-.084z",
|
|
683
|
+
fill: "#fff"
|
|
684
|
+
}));
|
|
686
685
|
|
|
687
686
|
const BottomDrawer = ({
|
|
688
687
|
isModalVisible,
|
|
@@ -697,8 +696,8 @@ const BottomDrawer = ({
|
|
|
697
696
|
showBlurView = true,
|
|
698
697
|
showLeftIcon = false,
|
|
699
698
|
showRightIcon = true,
|
|
700
|
-
leftIcon = /* @__PURE__ */
|
|
701
|
-
rightIcon = /* @__PURE__ */
|
|
699
|
+
leftIcon = /* @__PURE__ */ React.createElement(ArrowLeft, null),
|
|
700
|
+
rightIcon = /* @__PURE__ */ React.createElement(CrossIcon, null),
|
|
702
701
|
onLeftIconPress,
|
|
703
702
|
titleStyle,
|
|
704
703
|
titleVariant = "B2_REGULAR",
|
|
@@ -710,7 +709,7 @@ const BottomDrawer = ({
|
|
|
710
709
|
toggleModal();
|
|
711
710
|
}
|
|
712
711
|
};
|
|
713
|
-
return /* @__PURE__ */
|
|
712
|
+
return /* @__PURE__ */ React.createElement(
|
|
714
713
|
Modal,
|
|
715
714
|
{
|
|
716
715
|
animationType: "slide",
|
|
@@ -718,20 +717,20 @@ const BottomDrawer = ({
|
|
|
718
717
|
visible: isModalVisible,
|
|
719
718
|
onRequestClose: toggleModal
|
|
720
719
|
},
|
|
721
|
-
/* @__PURE__ */
|
|
720
|
+
/* @__PURE__ */ React.createElement(PanGestureHandler, { onGestureEvent: onSwipDown }, /* @__PURE__ */ React.createElement(
|
|
722
721
|
KeyboardAvoidingView,
|
|
723
722
|
{
|
|
724
723
|
behavior: Platform.OS === "ios" ? "padding" : "height",
|
|
725
724
|
style: { flex: 1 }
|
|
726
725
|
},
|
|
727
|
-
/* @__PURE__ */
|
|
726
|
+
/* @__PURE__ */ React.createElement(View, { style: [styles$B.mainContainer, style], testID }, showBlurView ? /* @__PURE__ */ React.createElement(
|
|
728
727
|
BlurView,
|
|
729
728
|
{
|
|
730
729
|
style: [styles$B.blurView, blurViewStyle],
|
|
731
730
|
blurType: "light",
|
|
732
731
|
blurAmount
|
|
733
732
|
}
|
|
734
|
-
) : null, /* @__PURE__ */
|
|
733
|
+
) : null, /* @__PURE__ */ React.createElement(View, { style: [styles$B.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(View, { style: styles$B.separator }), /* @__PURE__ */ React.createElement(View, { style: styles$B.headerContainer }, /* @__PURE__ */ React.createElement(
|
|
735
734
|
CustomTypography,
|
|
736
735
|
{
|
|
737
736
|
variant: titleVariant,
|
|
@@ -760,7 +759,7 @@ const CustomButton = ({
|
|
|
760
759
|
disableButtonTitleColor
|
|
761
760
|
}) => {
|
|
762
761
|
const { theme } = useTheme();
|
|
763
|
-
return /* @__PURE__ */
|
|
762
|
+
return /* @__PURE__ */ React.createElement(
|
|
764
763
|
Pressable,
|
|
765
764
|
{
|
|
766
765
|
testID,
|
|
@@ -774,8 +773,8 @@ const CustomButton = ({
|
|
|
774
773
|
onPress,
|
|
775
774
|
disabled
|
|
776
775
|
},
|
|
777
|
-
imagePosition === "left" && leftIcon && /* @__PURE__ */
|
|
778
|
-
/* @__PURE__ */
|
|
776
|
+
imagePosition === "left" && leftIcon && /* @__PURE__ */ React.createElement(View, { style: iconStyle }, React.cloneElement(leftIcon, { width: 20, height: 20 })),
|
|
777
|
+
/* @__PURE__ */ React.createElement(
|
|
779
778
|
CustomText$1,
|
|
780
779
|
{
|
|
781
780
|
text: title,
|
|
@@ -789,7 +788,7 @@ const CustomButton = ({
|
|
|
789
788
|
textColor: titleColor
|
|
790
789
|
}
|
|
791
790
|
),
|
|
792
|
-
imagePosition === "right" && rightIcon && /* @__PURE__ */
|
|
791
|
+
imagePosition === "right" && rightIcon && /* @__PURE__ */ React.createElement(View, { style: iconStyle }, React.cloneElement(rightIcon, { width: 20, height: 20 }))
|
|
793
792
|
);
|
|
794
793
|
};
|
|
795
794
|
const styles$A = StyleSheet.create({
|
|
@@ -869,42 +868,42 @@ const Cards = ({
|
|
|
869
868
|
testID,
|
|
870
869
|
onButtonPress
|
|
871
870
|
}) => {
|
|
872
|
-
return /* @__PURE__ */
|
|
871
|
+
return /* @__PURE__ */ React.createElement(View, { testID, style: styles$z.container }, topLeftTitle ? /* @__PURE__ */ React.createElement(View, { style: styles$z.topLeft }, /* @__PURE__ */ React.createElement(
|
|
873
872
|
CustomTypography,
|
|
874
873
|
{
|
|
875
874
|
variant: "P2regular",
|
|
876
875
|
style: styles$z.title,
|
|
877
876
|
text: topLeftTitle
|
|
878
877
|
}
|
|
879
|
-
)) : null, title ? /* @__PURE__ */
|
|
878
|
+
)) : null, title ? /* @__PURE__ */ React.createElement(
|
|
880
879
|
CustomTypography,
|
|
881
880
|
{
|
|
882
881
|
variant: "H6bold",
|
|
883
882
|
style: styles$z.subTitleBelow,
|
|
884
883
|
text: title
|
|
885
884
|
}
|
|
886
|
-
) : null, subtitle ? /* @__PURE__ */
|
|
885
|
+
) : null, subtitle ? /* @__PURE__ */ React.createElement(
|
|
887
886
|
CustomTypography,
|
|
888
887
|
{
|
|
889
888
|
variant: "P3regular",
|
|
890
889
|
style: styles$z.subtitle,
|
|
891
890
|
text: subtitle
|
|
892
891
|
}
|
|
893
|
-
) : null, /* @__PURE__ */
|
|
892
|
+
) : null, /* @__PURE__ */ React.createElement(View, { style: styles$z.leftBottomView }, iconSource ? iconSource : null, iconTitle ? /* @__PURE__ */ React.createElement(
|
|
894
893
|
CustomTypography,
|
|
895
894
|
{
|
|
896
895
|
variant: "P3regular",
|
|
897
896
|
style: styles$z.subTitleLeftBelow,
|
|
898
897
|
text: iconTitle
|
|
899
898
|
}
|
|
900
|
-
) : null), buttonShown ? /* @__PURE__ */
|
|
899
|
+
) : null), buttonShown ? /* @__PURE__ */ React.createElement(
|
|
901
900
|
Pressable,
|
|
902
901
|
{
|
|
903
902
|
testID: "Button-Press",
|
|
904
903
|
style: styles$z.button,
|
|
905
904
|
onPress: onButtonPress
|
|
906
905
|
},
|
|
907
|
-
/* @__PURE__ */
|
|
906
|
+
/* @__PURE__ */ React.createElement(
|
|
908
907
|
CustomTypography,
|
|
909
908
|
{
|
|
910
909
|
variant: "B2semiBold",
|
|
@@ -965,7 +964,7 @@ const Checkbox = ({
|
|
|
965
964
|
setChecked(!checked);
|
|
966
965
|
onCheck && onCheck(!checked);
|
|
967
966
|
};
|
|
968
|
-
return /* @__PURE__ */
|
|
967
|
+
return /* @__PURE__ */ React.createElement(View, { testID, style: containerStyle }, /* @__PURE__ */ React.createElement(
|
|
969
968
|
Pressable,
|
|
970
969
|
{
|
|
971
970
|
testID: "Checkbox-Press",
|
|
@@ -973,8 +972,8 @@ const Checkbox = ({
|
|
|
973
972
|
disabled: disable,
|
|
974
973
|
style: styles$y.directionStyle
|
|
975
974
|
},
|
|
976
|
-
/* @__PURE__ */
|
|
977
|
-
/* @__PURE__ */
|
|
975
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$y.checkboxContainer }, React.cloneElement(checked ? checkedIcon : uncheckedIcon)),
|
|
976
|
+
/* @__PURE__ */ React.createElement(
|
|
978
977
|
CustomTypography,
|
|
979
978
|
{
|
|
980
979
|
variant: titleVariant,
|
|
@@ -1035,26 +1034,26 @@ const CustomDropdown$1 = ({
|
|
|
1035
1034
|
downArrowIcon
|
|
1036
1035
|
}) => {
|
|
1037
1036
|
const [showOptions, setShowOptions] = useState(false);
|
|
1038
|
-
return /* @__PURE__ */
|
|
1037
|
+
return /* @__PURE__ */ React.createElement(View, { testID: testId }, /* @__PURE__ */ React.createElement(
|
|
1039
1038
|
CustomTypography,
|
|
1040
1039
|
{
|
|
1041
1040
|
variant: "P3regular",
|
|
1042
1041
|
style: styles$x.labelStyle,
|
|
1043
1042
|
text: label
|
|
1044
1043
|
}
|
|
1045
|
-
), /* @__PURE__ */
|
|
1044
|
+
), /* @__PURE__ */ React.createElement(
|
|
1046
1045
|
Pressable,
|
|
1047
1046
|
{
|
|
1048
1047
|
testID: `${testId}-BTN`,
|
|
1049
1048
|
style: styles$x.dropDownStyle,
|
|
1050
1049
|
onPress: () => setShowOptions(!showOptions)
|
|
1051
1050
|
},
|
|
1052
|
-
iconName && /* @__PURE__ */
|
|
1051
|
+
iconName && /* @__PURE__ */ React.createElement(View, { style: iconStyle }, React.cloneElement(iconName, {
|
|
1053
1052
|
width: moderateScale(24),
|
|
1054
1053
|
height: moderateScale(24),
|
|
1055
1054
|
style: styles$x.iconStyle
|
|
1056
1055
|
})),
|
|
1057
|
-
/* @__PURE__ */
|
|
1056
|
+
/* @__PURE__ */ React.createElement(
|
|
1058
1057
|
CustomTypography,
|
|
1059
1058
|
{
|
|
1060
1059
|
variant: "P3regular",
|
|
@@ -1062,14 +1061,14 @@ const CustomDropdown$1 = ({
|
|
|
1062
1061
|
text: selectedValue ? selectedValue.label : placeholder
|
|
1063
1062
|
}
|
|
1064
1063
|
),
|
|
1065
|
-
/* @__PURE__ */
|
|
1064
|
+
/* @__PURE__ */ React.createElement(View, null, showOptions ? React.cloneElement(upArrowIcon, {
|
|
1066
1065
|
width: moderateScale(24),
|
|
1067
1066
|
height: moderateScale(24)
|
|
1068
|
-
}) :
|
|
1067
|
+
}) : React.cloneElement(downArrowIcon, {
|
|
1069
1068
|
width: moderateScale(24),
|
|
1070
1069
|
height: moderateScale(24)
|
|
1071
1070
|
}))
|
|
1072
|
-
), showOptions && /* @__PURE__ */
|
|
1071
|
+
), showOptions && /* @__PURE__ */ React.createElement(View, { style: styles$x.optionContainer }, options?.map(({ id, value, label: label2 }) => /* @__PURE__ */ React.createElement(
|
|
1073
1072
|
Pressable,
|
|
1074
1073
|
{
|
|
1075
1074
|
key: id,
|
|
@@ -1085,12 +1084,12 @@ const CustomDropdown$1 = ({
|
|
|
1085
1084
|
}
|
|
1086
1085
|
]
|
|
1087
1086
|
},
|
|
1088
|
-
iconName && /* @__PURE__ */
|
|
1087
|
+
iconName && /* @__PURE__ */ React.createElement(View, { style: iconStyle }, React.cloneElement(iconName, {
|
|
1089
1088
|
width: moderateScale(24),
|
|
1090
1089
|
height: moderateScale(24),
|
|
1091
1090
|
style: styles$x.iconStyle
|
|
1092
1091
|
})),
|
|
1093
|
-
/* @__PURE__ */
|
|
1092
|
+
/* @__PURE__ */ React.createElement(
|
|
1094
1093
|
CustomTypography,
|
|
1095
1094
|
{
|
|
1096
1095
|
variant: "P3regular",
|
|
@@ -1181,14 +1180,14 @@ const CustomTextInput = ({
|
|
|
1181
1180
|
};
|
|
1182
1181
|
const handleIconPress1 = () => setValue("");
|
|
1183
1182
|
const handleIconPress2 = () => setIsSecureTextEntry(!isSecureTextEntry);
|
|
1184
|
-
return /* @__PURE__ */
|
|
1183
|
+
return /* @__PURE__ */ React.createElement(View, { testID }, /* @__PURE__ */ React.createElement(
|
|
1185
1184
|
CustomTypography,
|
|
1186
1185
|
{
|
|
1187
1186
|
variant: "P3medium",
|
|
1188
1187
|
style: [styles$w.labelStyle, disabled && styles$w.disableTextStyle],
|
|
1189
1188
|
text: label
|
|
1190
1189
|
}
|
|
1191
|
-
), /* @__PURE__ */
|
|
1190
|
+
), /* @__PURE__ */ React.createElement(
|
|
1192
1191
|
View,
|
|
1193
1192
|
{
|
|
1194
1193
|
style: [
|
|
@@ -1203,12 +1202,12 @@ const CustomTextInput = ({
|
|
|
1203
1202
|
}
|
|
1204
1203
|
]
|
|
1205
1204
|
},
|
|
1206
|
-
isSearchBar && searchIcon &&
|
|
1205
|
+
isSearchBar && searchIcon && React.cloneElement(searchIcon, {
|
|
1207
1206
|
width: moderateScale(24),
|
|
1208
1207
|
height: moderateScale(24),
|
|
1209
1208
|
style: styles$w.searchIconStyle
|
|
1210
1209
|
}),
|
|
1211
|
-
/* @__PURE__ */
|
|
1210
|
+
/* @__PURE__ */ React.createElement(
|
|
1212
1211
|
TextInput,
|
|
1213
1212
|
{
|
|
1214
1213
|
...props,
|
|
@@ -1225,15 +1224,15 @@ const CustomTextInput = ({
|
|
|
1225
1224
|
secureTextEntry: isSecureTextEntry
|
|
1226
1225
|
}
|
|
1227
1226
|
),
|
|
1228
|
-
value && !multiline && rightIcon1 &&
|
|
1227
|
+
value && !multiline && rightIcon1 && React.cloneElement(rightIcon1, {
|
|
1229
1228
|
onPress: handleIconPress1,
|
|
1230
1229
|
testID: "icon1"
|
|
1231
1230
|
}),
|
|
1232
|
-
secureTextEntry && rightIcon2 &&
|
|
1231
|
+
secureTextEntry && rightIcon2 && React.cloneElement(rightIcon2, {
|
|
1233
1232
|
onPress: handleIconPress2,
|
|
1234
1233
|
testID: "icon2"
|
|
1235
1234
|
})
|
|
1236
|
-
), (error || successMessage) && /* @__PURE__ */
|
|
1235
|
+
), (error || successMessage) && /* @__PURE__ */ React.createElement(
|
|
1237
1236
|
CustomTypography,
|
|
1238
1237
|
{
|
|
1239
1238
|
numberOfLines: 2,
|
|
@@ -1276,15 +1275,15 @@ const CustomTooltip = ({
|
|
|
1276
1275
|
iconStyle,
|
|
1277
1276
|
iconColor = DHRE_COLORS_TEXT.DH_BLACK
|
|
1278
1277
|
}) => {
|
|
1279
|
-
const defaultPopoverContent = /* @__PURE__ */
|
|
1278
|
+
const defaultPopoverContent = /* @__PURE__ */ React.createElement(View, { style: styles$v.mesageContainer, testID: testId }, /* @__PURE__ */ React.createElement(
|
|
1280
1279
|
CustomTypography,
|
|
1281
1280
|
{
|
|
1282
1281
|
variant: "P4regular",
|
|
1283
1282
|
style: styles$v.messageStyle,
|
|
1284
1283
|
text: message
|
|
1285
1284
|
}
|
|
1286
|
-
), icon && /* @__PURE__ */
|
|
1287
|
-
return /* @__PURE__ */
|
|
1285
|
+
), icon && /* @__PURE__ */ React.createElement(View, { style: iconStyle }, React.cloneElement(icon, { fill: iconColor })));
|
|
1286
|
+
return /* @__PURE__ */ React.createElement(
|
|
1288
1287
|
Tooltip,
|
|
1289
1288
|
{
|
|
1290
1289
|
containerStyle: styles$v.tooltipContainerStyle,
|
|
@@ -1343,27 +1342,27 @@ const FileUpload = ({
|
|
|
1343
1342
|
icon,
|
|
1344
1343
|
iconStyle
|
|
1345
1344
|
}) => {
|
|
1346
|
-
return /* @__PURE__ */
|
|
1345
|
+
return /* @__PURE__ */ React.createElement(
|
|
1347
1346
|
View,
|
|
1348
1347
|
{
|
|
1349
1348
|
style: [styles$u.container, containerStyle],
|
|
1350
1349
|
testID: "file-upload-container"
|
|
1351
1350
|
},
|
|
1352
|
-
/* @__PURE__ */
|
|
1351
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$u.content }, /* @__PURE__ */ React.createElement(View, { style: [uploadImageStyling], testID: "file-upload-image" }, icon && React.cloneElement(icon, { style: [iconStyle] })), /* @__PURE__ */ React.createElement(CustomTypography, { variant: "H8bold", style: styles$u.title, text: title }), /* @__PURE__ */ React.createElement(
|
|
1353
1352
|
CustomTypography,
|
|
1354
1353
|
{
|
|
1355
1354
|
variant: "P4regular",
|
|
1356
1355
|
style: styles$u.description,
|
|
1357
1356
|
text: `Drop files directly here or `
|
|
1358
1357
|
}
|
|
1359
|
-
), /* @__PURE__ */
|
|
1358
|
+
), /* @__PURE__ */ React.createElement(
|
|
1360
1359
|
CustomTypography,
|
|
1361
1360
|
{
|
|
1362
1361
|
variant: "P4regular",
|
|
1363
1362
|
style: styles$u.browse,
|
|
1364
1363
|
text: btnText
|
|
1365
1364
|
}
|
|
1366
|
-
), /* @__PURE__ */
|
|
1365
|
+
), /* @__PURE__ */ React.createElement(
|
|
1367
1366
|
CustomTypography,
|
|
1368
1367
|
{
|
|
1369
1368
|
testID: "file-upload-description",
|
|
@@ -1372,14 +1371,14 @@ const FileUpload = ({
|
|
|
1372
1371
|
text: ` from your device`
|
|
1373
1372
|
}
|
|
1374
1373
|
)),
|
|
1375
|
-
/* @__PURE__ */
|
|
1374
|
+
/* @__PURE__ */ React.createElement(
|
|
1376
1375
|
Pressable,
|
|
1377
1376
|
{
|
|
1378
1377
|
style: styles$u.button,
|
|
1379
1378
|
onPress: onUpload,
|
|
1380
1379
|
testID: "file-upload-button"
|
|
1381
1380
|
},
|
|
1382
|
-
/* @__PURE__ */
|
|
1381
|
+
/* @__PURE__ */ React.createElement(
|
|
1383
1382
|
CustomTypography,
|
|
1384
1383
|
{
|
|
1385
1384
|
variant: "B2semiBold",
|
|
@@ -1392,7 +1391,7 @@ const FileUpload = ({
|
|
|
1392
1391
|
};
|
|
1393
1392
|
|
|
1394
1393
|
const PdfView = (props) => {
|
|
1395
|
-
return /* @__PURE__ */
|
|
1394
|
+
return /* @__PURE__ */ React.createElement(Pdf, { ...props });
|
|
1396
1395
|
};
|
|
1397
1396
|
|
|
1398
1397
|
const styles$t = StyleSheet.create({
|
|
@@ -1451,28 +1450,28 @@ const PopUp = ({
|
|
|
1451
1450
|
leftButtonShown = false,
|
|
1452
1451
|
rightButtonShown = false
|
|
1453
1452
|
}) => {
|
|
1454
|
-
return /* @__PURE__ */
|
|
1453
|
+
return /* @__PURE__ */ React.createElement(View, { testID, style: styles$t.container }, title ? /* @__PURE__ */ React.createElement(
|
|
1455
1454
|
CustomTypography,
|
|
1456
1455
|
{
|
|
1457
1456
|
style: styles$t.subTitleBelow,
|
|
1458
1457
|
variant: "H6semiBold",
|
|
1459
1458
|
text: title
|
|
1460
1459
|
}
|
|
1461
|
-
) : null, subtitle ? /* @__PURE__ */
|
|
1460
|
+
) : null, subtitle ? /* @__PURE__ */ React.createElement(
|
|
1462
1461
|
CustomTypography,
|
|
1463
1462
|
{
|
|
1464
1463
|
style: styles$t.subtitle,
|
|
1465
1464
|
variant: "P3regular",
|
|
1466
1465
|
text: subtitle
|
|
1467
1466
|
}
|
|
1468
|
-
) : null, /* @__PURE__ */
|
|
1467
|
+
) : null, /* @__PURE__ */ React.createElement(View, { style: styles$t.buttonContainer }, leftButtonShown ? /* @__PURE__ */ React.createElement(
|
|
1469
1468
|
Pressable,
|
|
1470
1469
|
{
|
|
1471
1470
|
testID: "Left-Button-Press",
|
|
1472
1471
|
style: styles$t.buttonLeft,
|
|
1473
1472
|
onPress: onButtonPress
|
|
1474
1473
|
},
|
|
1475
|
-
/* @__PURE__ */
|
|
1474
|
+
/* @__PURE__ */ React.createElement(
|
|
1476
1475
|
CustomTypography,
|
|
1477
1476
|
{
|
|
1478
1477
|
style: styles$t.buttonLeftText,
|
|
@@ -1480,7 +1479,7 @@ const PopUp = ({
|
|
|
1480
1479
|
text: buttonText
|
|
1481
1480
|
}
|
|
1482
1481
|
)
|
|
1483
|
-
) : null, rightButtonShown ? /* @__PURE__ */
|
|
1482
|
+
) : null, rightButtonShown ? /* @__PURE__ */ React.createElement(Pressable, { style: styles$t.button, onPress: onButtonPress }, /* @__PURE__ */ React.createElement(
|
|
1484
1483
|
CustomTypography,
|
|
1485
1484
|
{
|
|
1486
1485
|
style: styles$t.buttonText,
|
|
@@ -1521,7 +1520,7 @@ const CustomProgressBar = ({
|
|
|
1521
1520
|
return () => clearInterval(progressInterval);
|
|
1522
1521
|
}, [progress, value, increment, interval]);
|
|
1523
1522
|
const showPercentage = () => {
|
|
1524
|
-
return /* @__PURE__ */
|
|
1523
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles$s.flexDirection }, /* @__PURE__ */ React.createElement(
|
|
1525
1524
|
CustomText$1,
|
|
1526
1525
|
{
|
|
1527
1526
|
text: `${value}%`,
|
|
@@ -1529,7 +1528,7 @@ const CustomProgressBar = ({
|
|
|
1529
1528
|
textColor: "CONTENT_PRIMARY",
|
|
1530
1529
|
style: valueTextStyle
|
|
1531
1530
|
}
|
|
1532
|
-
), percentageText ? /* @__PURE__ */
|
|
1531
|
+
), percentageText ? /* @__PURE__ */ React.createElement(
|
|
1533
1532
|
CustomText$1,
|
|
1534
1533
|
{
|
|
1535
1534
|
text: percentageText,
|
|
@@ -1541,7 +1540,7 @@ const CustomProgressBar = ({
|
|
|
1541
1540
|
const renderProgressBar = () => {
|
|
1542
1541
|
switch (type) {
|
|
1543
1542
|
case ShapeType.LINE:
|
|
1544
|
-
return /* @__PURE__ */
|
|
1543
|
+
return /* @__PURE__ */ React.createElement(
|
|
1545
1544
|
Progress.Bar,
|
|
1546
1545
|
{
|
|
1547
1546
|
progress: progress / 100,
|
|
@@ -1555,7 +1554,7 @@ const CustomProgressBar = ({
|
|
|
1555
1554
|
}
|
|
1556
1555
|
);
|
|
1557
1556
|
case ShapeType.CIRCLE:
|
|
1558
|
-
return /* @__PURE__ */
|
|
1557
|
+
return /* @__PURE__ */ React.createElement(
|
|
1559
1558
|
Progress.Circle,
|
|
1560
1559
|
{
|
|
1561
1560
|
progress: progress / 100,
|
|
@@ -1573,7 +1572,7 @@ const CustomProgressBar = ({
|
|
|
1573
1572
|
return null;
|
|
1574
1573
|
}
|
|
1575
1574
|
};
|
|
1576
|
-
return /* @__PURE__ */
|
|
1575
|
+
return /* @__PURE__ */ React.createElement(View, { testID: "custom-progress-bar" }, renderProgressBar());
|
|
1577
1576
|
};
|
|
1578
1577
|
const styles$s = StyleSheet.create({
|
|
1579
1578
|
flexDirection: {
|
|
@@ -1606,19 +1605,19 @@ const splitRating = (rating) => {
|
|
|
1606
1605
|
const drawStar = (starIndex, ratingArray, size, fullStarIcon, halfStarIcon, fullStarColor, emptyStarColor) => {
|
|
1607
1606
|
const [fullStars, decimalPart] = ratingArray;
|
|
1608
1607
|
if (starIndex <= fullStars) {
|
|
1609
|
-
return
|
|
1608
|
+
return React.cloneElement(fullStarIcon, {
|
|
1610
1609
|
style: { height: size, width: size },
|
|
1611
1610
|
fill: fullStarColor,
|
|
1612
1611
|
testID: `star-${starIndex}`
|
|
1613
1612
|
});
|
|
1614
1613
|
} else if (starIndex === fullStars + 1 && decimalPart >= 0.5) {
|
|
1615
|
-
return
|
|
1614
|
+
return React.cloneElement(halfStarIcon, {
|
|
1616
1615
|
style: { height: size, width: size },
|
|
1617
1616
|
fill: fullStarColor,
|
|
1618
1617
|
testID: `star-${starIndex}`
|
|
1619
1618
|
});
|
|
1620
1619
|
} else {
|
|
1621
|
-
return
|
|
1620
|
+
return React.cloneElement(fullStarIcon, {
|
|
1622
1621
|
style: { height: size, width: size },
|
|
1623
1622
|
fill: emptyStarColor,
|
|
1624
1623
|
testID: `star-${starIndex}`
|
|
@@ -1649,10 +1648,10 @@ const Star = ({
|
|
|
1649
1648
|
emptyStarColor
|
|
1650
1649
|
);
|
|
1651
1650
|
stars.push(
|
|
1652
|
-
/* @__PURE__ */
|
|
1651
|
+
/* @__PURE__ */ React.createElement(View, { key: i, style: [styles$r.star, starStyle] }, starType)
|
|
1653
1652
|
);
|
|
1654
1653
|
}
|
|
1655
|
-
return /* @__PURE__ */
|
|
1654
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles$r.container, testID: "star" }, stars);
|
|
1656
1655
|
};
|
|
1657
1656
|
|
|
1658
1657
|
var styles$q = StyleSheet.create({
|
|
@@ -1697,7 +1696,7 @@ const Tabs = ({
|
|
|
1697
1696
|
onSelectionChange(selectedTabs);
|
|
1698
1697
|
}
|
|
1699
1698
|
};
|
|
1700
|
-
return /* @__PURE__ */
|
|
1699
|
+
return /* @__PURE__ */ React.createElement(View, { style: [styles$q.container, style] }, data?.map(({ id, title, isSelected }) => /* @__PURE__ */ React.createElement(
|
|
1701
1700
|
Pressable,
|
|
1702
1701
|
{
|
|
1703
1702
|
key: id,
|
|
@@ -1708,7 +1707,7 @@ const Tabs = ({
|
|
|
1708
1707
|
},
|
|
1709
1708
|
onPress: () => handlePress(id)
|
|
1710
1709
|
},
|
|
1711
|
-
/* @__PURE__ */
|
|
1710
|
+
/* @__PURE__ */ React.createElement(
|
|
1712
1711
|
CustomText$1,
|
|
1713
1712
|
{
|
|
1714
1713
|
variant: FontStyle.L2_REGULAR,
|
|
@@ -1777,7 +1776,7 @@ const Tags = ({
|
|
|
1777
1776
|
);
|
|
1778
1777
|
handleTagsChange(tag);
|
|
1779
1778
|
};
|
|
1780
|
-
return /* @__PURE__ */
|
|
1779
|
+
return /* @__PURE__ */ React.createElement(
|
|
1781
1780
|
ScrollView,
|
|
1782
1781
|
{
|
|
1783
1782
|
testID,
|
|
@@ -1785,7 +1784,7 @@ const Tags = ({
|
|
|
1785
1784
|
contentContainerStyle: styles$p.contentContainer,
|
|
1786
1785
|
horizontal: false
|
|
1787
1786
|
},
|
|
1788
|
-
tags?.map((tag) => /* @__PURE__ */
|
|
1787
|
+
tags?.map((tag) => /* @__PURE__ */ React.createElement(
|
|
1789
1788
|
Pressable,
|
|
1790
1789
|
{
|
|
1791
1790
|
testID: `${testID}-${tag}-BTN`,
|
|
@@ -1797,7 +1796,7 @@ const Tags = ({
|
|
|
1797
1796
|
selectedTags.includes(tag) ? styles$p.selectedTag : styles$p.tagUnSelected
|
|
1798
1797
|
]
|
|
1799
1798
|
},
|
|
1800
|
-
/* @__PURE__ */
|
|
1799
|
+
/* @__PURE__ */ React.createElement(
|
|
1801
1800
|
CustomTypography,
|
|
1802
1801
|
{
|
|
1803
1802
|
variant: selectedTags.includes(tag) ? "H9semiBold" : "P4regular",
|
|
@@ -1805,13 +1804,13 @@ const Tags = ({
|
|
|
1805
1804
|
text: tag
|
|
1806
1805
|
}
|
|
1807
1806
|
),
|
|
1808
|
-
selectedTags.includes(tag) && icon && /* @__PURE__ */
|
|
1807
|
+
selectedTags.includes(tag) && icon && /* @__PURE__ */ React.createElement(
|
|
1809
1808
|
Pressable,
|
|
1810
1809
|
{
|
|
1811
1810
|
testID: `${testID}-${tag}-PRESS`,
|
|
1812
1811
|
onPress: () => removeTag(tag)
|
|
1813
1812
|
},
|
|
1814
|
-
|
|
1813
|
+
React.cloneElement(icon, { style: [icon.props.style, iconStyle] })
|
|
1815
1814
|
)
|
|
1816
1815
|
))
|
|
1817
1816
|
);
|
|
@@ -1878,14 +1877,14 @@ const CustomSwitch = ({
|
|
|
1878
1877
|
const animatedStyle = {
|
|
1879
1878
|
transform: [{ translateX: animatedValue }]
|
|
1880
1879
|
};
|
|
1881
|
-
return /* @__PURE__ */
|
|
1880
|
+
return /* @__PURE__ */ React.createElement(
|
|
1882
1881
|
Pressable,
|
|
1883
1882
|
{
|
|
1884
1883
|
onPress: toggleSwitch,
|
|
1885
1884
|
style: [styles$o.container, { width }],
|
|
1886
1885
|
testID: "custom-switch"
|
|
1887
1886
|
},
|
|
1888
|
-
/* @__PURE__ */
|
|
1887
|
+
/* @__PURE__ */ React.createElement(
|
|
1889
1888
|
View,
|
|
1890
1889
|
{
|
|
1891
1890
|
style: [
|
|
@@ -1895,8 +1894,8 @@ const CustomSwitch = ({
|
|
|
1895
1894
|
}
|
|
1896
1895
|
]
|
|
1897
1896
|
},
|
|
1898
|
-
/* @__PURE__ */
|
|
1899
|
-
type !== ToggleButtonType.SMALL && /* @__PURE__ */
|
|
1897
|
+
/* @__PURE__ */ React.createElement(Animated.View, { style: [styles$o.thumb, animatedStyle] }),
|
|
1898
|
+
type !== ToggleButtonType.SMALL && /* @__PURE__ */ React.createElement(
|
|
1900
1899
|
CustomTypography,
|
|
1901
1900
|
{
|
|
1902
1901
|
variant: "B3semiBold",
|
|
@@ -1966,13 +1965,13 @@ const Accordion = ({
|
|
|
1966
1965
|
inputRange: [0, 1],
|
|
1967
1966
|
outputRange: [0, contentHeight]
|
|
1968
1967
|
});
|
|
1969
|
-
return /* @__PURE__ */
|
|
1968
|
+
return /* @__PURE__ */ React.createElement(View, { style: [styles$n.container, containerStyle], testID: testId }, /* @__PURE__ */ React.createElement(
|
|
1970
1969
|
Pressable,
|
|
1971
1970
|
{
|
|
1972
1971
|
style: [styles$n.header, headerStyle, disabled && { opacity: 0.5 }],
|
|
1973
1972
|
onPress: !disabled ? onToggle : void 0
|
|
1974
1973
|
},
|
|
1975
|
-
headerComponent ? headerComponent() : /* @__PURE__ */
|
|
1974
|
+
headerComponent ? headerComponent() : /* @__PURE__ */ React.createElement(
|
|
1976
1975
|
CustomTypography,
|
|
1977
1976
|
{
|
|
1978
1977
|
variant: "B4_REGULAR",
|
|
@@ -1980,7 +1979,7 @@ const Accordion = ({
|
|
|
1980
1979
|
style: [styles$n.title, titleStyle]
|
|
1981
1980
|
}
|
|
1982
1981
|
)
|
|
1983
|
-
), optionalElement ? optionalElement() : null, isOpen && /* @__PURE__ */
|
|
1982
|
+
), optionalElement ? optionalElement() : null, isOpen && /* @__PURE__ */ React.createElement(Animated.View, { style: [styles$n.content, { height: cardHeight }] }, /* @__PURE__ */ React.createElement(
|
|
1984
1983
|
View,
|
|
1985
1984
|
{
|
|
1986
1985
|
ref: contentRef,
|
|
@@ -2024,7 +2023,7 @@ const styles$m = StyleSheet.create({
|
|
|
2024
2023
|
}
|
|
2025
2024
|
});
|
|
2026
2025
|
|
|
2027
|
-
const Toast =
|
|
2026
|
+
const Toast = React.forwardRef((_props, ref) => {
|
|
2028
2027
|
const [visible, setVisible] = useState(false);
|
|
2029
2028
|
const [message, setMessage] = useState("");
|
|
2030
2029
|
const [isSuccess, setIsSuccess] = useState(true);
|
|
@@ -2067,10 +2066,10 @@ const Toast = React__default.forwardRef((_props, ref) => {
|
|
|
2067
2066
|
return () => clearInterval(interval);
|
|
2068
2067
|
}
|
|
2069
2068
|
}, [visible]);
|
|
2070
|
-
|
|
2069
|
+
React.useImperativeHandle(ref, () => ({
|
|
2071
2070
|
showToast
|
|
2072
2071
|
}));
|
|
2073
|
-
return visible ? /* @__PURE__ */
|
|
2072
|
+
return visible ? /* @__PURE__ */ React.createElement(
|
|
2074
2073
|
Animated.View,
|
|
2075
2074
|
{
|
|
2076
2075
|
style: [
|
|
@@ -2080,21 +2079,21 @@ const Toast = React__default.forwardRef((_props, ref) => {
|
|
|
2080
2079
|
],
|
|
2081
2080
|
testID: "TOAST"
|
|
2082
2081
|
},
|
|
2083
|
-
/* @__PURE__ */
|
|
2082
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$m.toastContainer }, /* @__PURE__ */ React.createElement(View, { style: styles$m.innerContainer }, /* @__PURE__ */ React.createElement(
|
|
2084
2083
|
CustomTypography,
|
|
2085
2084
|
{
|
|
2086
2085
|
variant: "L2_REGULAR",
|
|
2087
2086
|
text: message,
|
|
2088
2087
|
style: styles$m.messageText
|
|
2089
2088
|
}
|
|
2090
|
-
), btnText && /* @__PURE__ */
|
|
2089
|
+
), btnText && /* @__PURE__ */ React.createElement(
|
|
2091
2090
|
Pressable,
|
|
2092
2091
|
{
|
|
2093
2092
|
style: styles$m.button,
|
|
2094
2093
|
onPress: onBtnPress || void 0,
|
|
2095
2094
|
testID: "TOAST-BTN"
|
|
2096
2095
|
},
|
|
2097
|
-
/* @__PURE__ */
|
|
2096
|
+
/* @__PURE__ */ React.createElement(
|
|
2098
2097
|
CustomTypography,
|
|
2099
2098
|
{
|
|
2100
2099
|
variant: "L2_BOLD",
|
|
@@ -2103,7 +2102,7 @@ const Toast = React__default.forwardRef((_props, ref) => {
|
|
|
2103
2102
|
}
|
|
2104
2103
|
)
|
|
2105
2104
|
))),
|
|
2106
|
-
/* @__PURE__ */
|
|
2105
|
+
/* @__PURE__ */ React.createElement(
|
|
2107
2106
|
Progress.Bar,
|
|
2108
2107
|
{
|
|
2109
2108
|
progress,
|
|
@@ -2148,14 +2147,14 @@ const CustomSearchBar = ({
|
|
|
2148
2147
|
onCrossIconPress,
|
|
2149
2148
|
handleOnChangeText,
|
|
2150
2149
|
setValue,
|
|
2151
|
-
rightIcon = /* @__PURE__ */
|
|
2150
|
+
rightIcon = /* @__PURE__ */ React.createElement(CrossIcon, null),
|
|
2152
2151
|
disableBorderColor = "#4F4F4F",
|
|
2153
2152
|
borderColor = "#FFFFFF",
|
|
2154
2153
|
disablePlaceHolderStyle = "#686868",
|
|
2155
2154
|
enablePlaceHolderStyle = "#A7A7A7",
|
|
2156
2155
|
...props
|
|
2157
2156
|
}) => {
|
|
2158
|
-
return /* @__PURE__ */
|
|
2157
|
+
return /* @__PURE__ */ React.createElement(
|
|
2159
2158
|
View,
|
|
2160
2159
|
{
|
|
2161
2160
|
testID,
|
|
@@ -2168,7 +2167,7 @@ const CustomSearchBar = ({
|
|
|
2168
2167
|
inputContainerStyle
|
|
2169
2168
|
]
|
|
2170
2169
|
},
|
|
2171
|
-
/* @__PURE__ */
|
|
2170
|
+
/* @__PURE__ */ React.createElement(
|
|
2172
2171
|
Pressable,
|
|
2173
2172
|
{
|
|
2174
2173
|
onPress: () => {
|
|
@@ -2178,7 +2177,7 @@ const CustomSearchBar = ({
|
|
|
2178
2177
|
style: searchIconStyle
|
|
2179
2178
|
}
|
|
2180
2179
|
),
|
|
2181
|
-
/* @__PURE__ */
|
|
2180
|
+
/* @__PURE__ */ React.createElement(
|
|
2182
2181
|
TextInput,
|
|
2183
2182
|
{
|
|
2184
2183
|
...props,
|
|
@@ -2193,7 +2192,7 @@ const CustomSearchBar = ({
|
|
|
2193
2192
|
}
|
|
2194
2193
|
}
|
|
2195
2194
|
),
|
|
2196
|
-
value && /* @__PURE__ */
|
|
2195
|
+
value && /* @__PURE__ */ React.createElement(
|
|
2197
2196
|
Pressable,
|
|
2198
2197
|
{
|
|
2199
2198
|
onPress: () => {
|
|
@@ -2202,7 +2201,7 @@ const CustomSearchBar = ({
|
|
|
2202
2201
|
},
|
|
2203
2202
|
style: crossIconStyle
|
|
2204
2203
|
},
|
|
2205
|
-
|
|
2204
|
+
React.cloneElement(rightIcon, {
|
|
2206
2205
|
// width: moderateScale(24),
|
|
2207
2206
|
// height: moderateScale(24),
|
|
2208
2207
|
style: [styles$l.crossIconStyle, crossIconStyle]
|
|
@@ -2236,21 +2235,21 @@ const styles$k = StyleSheet.create({
|
|
|
2236
2235
|
const CustomHeader = ({
|
|
2237
2236
|
title,
|
|
2238
2237
|
testId = "CUSTOM-HEADER",
|
|
2239
|
-
leftIcon = /* @__PURE__ */
|
|
2240
|
-
rightIcon = /* @__PURE__ */
|
|
2238
|
+
leftIcon = /* @__PURE__ */ React.createElement(CaretLeft, null),
|
|
2239
|
+
rightIcon = /* @__PURE__ */ React.createElement(HeaderIcon, null),
|
|
2241
2240
|
showLeftIcon = true,
|
|
2242
2241
|
showRightIcon = true,
|
|
2243
2242
|
onLeftPress,
|
|
2244
2243
|
onRightPress
|
|
2245
2244
|
}) => {
|
|
2246
|
-
return /* @__PURE__ */
|
|
2245
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles$k.container, testID: testId }, /* @__PURE__ */ React.createElement(View, { style: styles$k.headderContainer }, /* @__PURE__ */ React.createElement(
|
|
2247
2246
|
CustomTypography,
|
|
2248
2247
|
{
|
|
2249
2248
|
variant: "B2_REGULAR",
|
|
2250
2249
|
text: title,
|
|
2251
2250
|
style: styles$k.headerTitle
|
|
2252
2251
|
}
|
|
2253
|
-
)), /* @__PURE__ */
|
|
2252
|
+
)), /* @__PURE__ */ React.createElement(CaretLeft, null), ",");
|
|
2254
2253
|
};
|
|
2255
2254
|
|
|
2256
2255
|
const styles$j = StyleSheet.create({
|
|
@@ -2309,7 +2308,7 @@ const SwipableList = (props) => {
|
|
|
2309
2308
|
onPress,
|
|
2310
2309
|
style,
|
|
2311
2310
|
testID
|
|
2312
|
-
}) => /* @__PURE__ */
|
|
2311
|
+
}) => /* @__PURE__ */ React.createElement(
|
|
2313
2312
|
Pressable,
|
|
2314
2313
|
{
|
|
2315
2314
|
testID,
|
|
@@ -2317,7 +2316,7 @@ const SwipableList = (props) => {
|
|
|
2317
2316
|
style: [styles$j.actionButton, style]
|
|
2318
2317
|
},
|
|
2319
2318
|
icon,
|
|
2320
|
-
/* @__PURE__ */
|
|
2319
|
+
/* @__PURE__ */ React.createElement(
|
|
2321
2320
|
CustomTypography,
|
|
2322
2321
|
{
|
|
2323
2322
|
variant: "L1_REGULAR",
|
|
@@ -2326,7 +2325,7 @@ const SwipableList = (props) => {
|
|
|
2326
2325
|
}
|
|
2327
2326
|
)
|
|
2328
2327
|
);
|
|
2329
|
-
const leftActionHandle = (item, leftPrimaryActionIcon, leftPrimaryActionTitle, leftSecondaryActionIcon, leftSecondaryActionTitle) => /* @__PURE__ */
|
|
2328
|
+
const leftActionHandle = (item, leftPrimaryActionIcon, leftPrimaryActionTitle, leftSecondaryActionIcon, leftSecondaryActionTitle) => /* @__PURE__ */ React.createElement(View, { style: [styles$j.leftActions, leftPrimaryActionStyle] }, leftPrimaryActionIcon && /* @__PURE__ */ React.createElement(
|
|
2330
2329
|
ActionButton,
|
|
2331
2330
|
{
|
|
2332
2331
|
icon: leftPrimaryActionIcon,
|
|
@@ -2335,7 +2334,7 @@ const SwipableList = (props) => {
|
|
|
2335
2334
|
style: leftPrimaryActionStyle,
|
|
2336
2335
|
testID: `${testId}-LEFT-PRIMARY-${item.id}`
|
|
2337
2336
|
}
|
|
2338
|
-
), leftSecondaryActionIcon && /* @__PURE__ */
|
|
2337
|
+
), leftSecondaryActionIcon && /* @__PURE__ */ React.createElement(
|
|
2339
2338
|
ActionButton,
|
|
2340
2339
|
{
|
|
2341
2340
|
icon: leftSecondaryActionIcon,
|
|
@@ -2345,7 +2344,7 @@ const SwipableList = (props) => {
|
|
|
2345
2344
|
testID: `${testId}-LEFT-SECONDARY-${item.id}`
|
|
2346
2345
|
}
|
|
2347
2346
|
));
|
|
2348
|
-
const rightActionHandle = (item) => /* @__PURE__ */
|
|
2347
|
+
const rightActionHandle = (item) => /* @__PURE__ */ React.createElement(View, { style: [styles$j.rightActions, rightPrimaryActionStyle] }, rightPrimaryActionIcon && /* @__PURE__ */ React.createElement(
|
|
2349
2348
|
ActionButton,
|
|
2350
2349
|
{
|
|
2351
2350
|
icon: rightPrimaryActionIcon,
|
|
@@ -2355,7 +2354,7 @@ const SwipableList = (props) => {
|
|
|
2355
2354
|
testID: `${testId}-RIGHT-PRIMARY-${item.id}`
|
|
2356
2355
|
}
|
|
2357
2356
|
));
|
|
2358
|
-
const renderItem = ({ item }) => /* @__PURE__ */
|
|
2357
|
+
const renderItem = ({ item }) => /* @__PURE__ */ React.createElement(GestureHandlerRootView, { testID: `${testId}-LIST`, style: styles$j.container }, /* @__PURE__ */ React.createElement(
|
|
2359
2358
|
Swipeable,
|
|
2360
2359
|
{
|
|
2361
2360
|
renderLeftActions: () => leftActionHandle(
|
|
@@ -2370,13 +2369,13 @@ const SwipableList = (props) => {
|
|
|
2370
2369
|
},
|
|
2371
2370
|
props?.renderItem(item)
|
|
2372
2371
|
));
|
|
2373
|
-
return /* @__PURE__ */
|
|
2372
|
+
return /* @__PURE__ */ React.createElement(View, { testID: testId }, /* @__PURE__ */ React.createElement(
|
|
2374
2373
|
FlatList,
|
|
2375
2374
|
{
|
|
2376
2375
|
data,
|
|
2377
2376
|
renderItem,
|
|
2378
2377
|
keyExtractor: (item) => item.id,
|
|
2379
|
-
ItemSeparatorComponent: () => /* @__PURE__ */
|
|
2378
|
+
ItemSeparatorComponent: () => /* @__PURE__ */ React.createElement(View, { style: styles$j.seprator })
|
|
2380
2379
|
}
|
|
2381
2380
|
));
|
|
2382
2381
|
};
|
|
@@ -2400,7 +2399,7 @@ const CustomIcon = ({
|
|
|
2400
2399
|
containerStyle,
|
|
2401
2400
|
titleStyle
|
|
2402
2401
|
}) => {
|
|
2403
|
-
return /* @__PURE__ */
|
|
2402
|
+
return /* @__PURE__ */ React.createElement(
|
|
2404
2403
|
Pressable,
|
|
2405
2404
|
{
|
|
2406
2405
|
style: [styles$i.container, containerStyle],
|
|
@@ -2408,7 +2407,7 @@ const CustomIcon = ({
|
|
|
2408
2407
|
testID: testId
|
|
2409
2408
|
},
|
|
2410
2409
|
icon,
|
|
2411
|
-
title && /* @__PURE__ */
|
|
2410
|
+
title && /* @__PURE__ */ React.createElement(
|
|
2412
2411
|
CustomTypography,
|
|
2413
2412
|
{
|
|
2414
2413
|
variant: titleVariant,
|
|
@@ -2434,12 +2433,12 @@ const styles$h = StyleSheet.create({
|
|
|
2434
2433
|
|
|
2435
2434
|
const CustomLoader = ({ loading }) => {
|
|
2436
2435
|
if (!loading) return null;
|
|
2437
|
-
return /* @__PURE__ */
|
|
2436
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles$h.container }, /* @__PURE__ */ React.createElement(ActivityIndicator, { size: "large", color: "#686868" }));
|
|
2438
2437
|
};
|
|
2439
2438
|
|
|
2440
2439
|
const HorizontalLine = ({ style }) => {
|
|
2441
2440
|
const { theme } = useTheme();
|
|
2442
|
-
return /* @__PURE__ */
|
|
2441
|
+
return /* @__PURE__ */ React.createElement(
|
|
2443
2442
|
View,
|
|
2444
2443
|
{
|
|
2445
2444
|
style: [
|
|
@@ -2466,7 +2465,7 @@ const Topic = ({
|
|
|
2466
2465
|
containterStyle
|
|
2467
2466
|
}) => {
|
|
2468
2467
|
const { theme } = useTheme();
|
|
2469
|
-
return /* @__PURE__ */
|
|
2468
|
+
return /* @__PURE__ */ React.createElement(
|
|
2470
2469
|
TouchableOpacity,
|
|
2471
2470
|
{
|
|
2472
2471
|
style: [
|
|
@@ -2476,15 +2475,15 @@ const Topic = ({
|
|
|
2476
2475
|
],
|
|
2477
2476
|
onPress
|
|
2478
2477
|
},
|
|
2479
|
-
rightIcon && /* @__PURE__ */
|
|
2480
|
-
/* @__PURE__ */
|
|
2478
|
+
rightIcon && /* @__PURE__ */ React.createElement(View, { style: styles$f.rightIconContainer }, React.cloneElement(rightIcon)),
|
|
2479
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$f.textContainer }, subTitle && /* @__PURE__ */ React.createElement(
|
|
2481
2480
|
CustomText$1,
|
|
2482
2481
|
{
|
|
2483
2482
|
text: subTitle,
|
|
2484
2483
|
variant: "L3_REGULAR",
|
|
2485
2484
|
textColor: "CONTENT_PRIMARY"
|
|
2486
2485
|
}
|
|
2487
|
-
), /* @__PURE__ */
|
|
2486
|
+
), /* @__PURE__ */ React.createElement(
|
|
2488
2487
|
CustomText$1,
|
|
2489
2488
|
{
|
|
2490
2489
|
text: title,
|
|
@@ -2572,27 +2571,27 @@ const ContactModal = ({
|
|
|
2572
2571
|
onClose();
|
|
2573
2572
|
};
|
|
2574
2573
|
const emailOptions = ["Mail", "Gmail", "Outlook"];
|
|
2575
|
-
const renderEmailOptions = () => /* @__PURE__ */
|
|
2574
|
+
const renderEmailOptions = () => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
2576
2575
|
CustomText$1,
|
|
2577
2576
|
{
|
|
2578
2577
|
style: styles$e.title,
|
|
2579
2578
|
text: "Open email app",
|
|
2580
2579
|
variant: "L2_REGULAR"
|
|
2581
2580
|
}
|
|
2582
|
-
), /* @__PURE__ */
|
|
2581
|
+
), /* @__PURE__ */ React.createElement(
|
|
2583
2582
|
CustomText$1,
|
|
2584
2583
|
{
|
|
2585
2584
|
style: styles$e.subtitle,
|
|
2586
2585
|
text: "Which app would you like to open?",
|
|
2587
2586
|
variant: "L2_REGULAR"
|
|
2588
2587
|
}
|
|
2589
|
-
), emailOptions.map((option) => /* @__PURE__ */
|
|
2588
|
+
), emailOptions.map((option) => /* @__PURE__ */ React.createElement(React.Fragment, { key: option }, /* @__PURE__ */ React.createElement(Line, null), /* @__PURE__ */ React.createElement(
|
|
2590
2589
|
Pressable,
|
|
2591
2590
|
{
|
|
2592
2591
|
onPress: () => handleOptionPress(),
|
|
2593
2592
|
style: styles$e.optionButton
|
|
2594
2593
|
},
|
|
2595
|
-
/* @__PURE__ */
|
|
2594
|
+
/* @__PURE__ */ React.createElement(
|
|
2596
2595
|
CustomText$1,
|
|
2597
2596
|
{
|
|
2598
2597
|
style: styles$e.optionText,
|
|
@@ -2601,14 +2600,14 @@ const ContactModal = ({
|
|
|
2601
2600
|
}
|
|
2602
2601
|
)
|
|
2603
2602
|
))));
|
|
2604
|
-
const renderContent = () => /* @__PURE__ */
|
|
2603
|
+
const renderContent = () => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(View, { style: styles$e.viewContainer }, isMailOpen ? renderEmailOptions() : /* @__PURE__ */ React.createElement(Pressable, { onPress: handleCall, style: styles$e.optionButton }, /* @__PURE__ */ React.createElement(
|
|
2605
2604
|
CustomText$1,
|
|
2606
2605
|
{
|
|
2607
2606
|
style: styles$e.optionText,
|
|
2608
2607
|
text: `Call ${phoneNumber}`,
|
|
2609
2608
|
variant: "B3_BOLD"
|
|
2610
2609
|
}
|
|
2611
|
-
))), /* @__PURE__ */
|
|
2610
|
+
))), /* @__PURE__ */ React.createElement(Pressable, { onPress: onClose, style: styles$e.cancelButton }, /* @__PURE__ */ React.createElement(
|
|
2612
2611
|
CustomText$1,
|
|
2613
2612
|
{
|
|
2614
2613
|
style: styles$e.cancelText,
|
|
@@ -2616,7 +2615,7 @@ const ContactModal = ({
|
|
|
2616
2615
|
variant: "B2_REGULAR"
|
|
2617
2616
|
}
|
|
2618
2617
|
)));
|
|
2619
|
-
return /* @__PURE__ */
|
|
2618
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles$e.container }, /* @__PURE__ */ React.createElement(
|
|
2620
2619
|
Modal,
|
|
2621
2620
|
{
|
|
2622
2621
|
animationType: "slide",
|
|
@@ -2624,7 +2623,7 @@ const ContactModal = ({
|
|
|
2624
2623
|
visible,
|
|
2625
2624
|
onRequestClose: onClose
|
|
2626
2625
|
},
|
|
2627
|
-
/* @__PURE__ */
|
|
2626
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$e.modalContainer }, /* @__PURE__ */ React.createElement(View, { style: styles$e.modalContent }, renderContent()))
|
|
2628
2627
|
));
|
|
2629
2628
|
};
|
|
2630
2629
|
const styles$e = StyleSheet.create({
|
|
@@ -2747,7 +2746,7 @@ const DateRangePicker = (props) => {
|
|
|
2747
2746
|
return markedDates;
|
|
2748
2747
|
};
|
|
2749
2748
|
const isButtonDisabled = !selectedRange.startDate || !selectedRange.endDate;
|
|
2750
|
-
return /* @__PURE__ */
|
|
2749
|
+
return /* @__PURE__ */ React.createElement(View, null, /* @__PURE__ */ React.createElement(
|
|
2751
2750
|
Calendar,
|
|
2752
2751
|
{
|
|
2753
2752
|
markedDates: getMarkedDates(),
|
|
@@ -2767,7 +2766,7 @@ const DateRangePicker = (props) => {
|
|
|
2767
2766
|
onDayPress,
|
|
2768
2767
|
...props
|
|
2769
2768
|
}
|
|
2770
|
-
), /* @__PURE__ */
|
|
2769
|
+
), /* @__PURE__ */ React.createElement(
|
|
2771
2770
|
CustomButton$1,
|
|
2772
2771
|
{
|
|
2773
2772
|
title: "Apply",
|
|
@@ -2794,7 +2793,7 @@ const OurOfficesButton = ({
|
|
|
2794
2793
|
descriptionColor = "CONTENT_SECONDARY"
|
|
2795
2794
|
}) => {
|
|
2796
2795
|
const { theme } = useTheme();
|
|
2797
|
-
return /* @__PURE__ */
|
|
2796
|
+
return /* @__PURE__ */ React.createElement(
|
|
2798
2797
|
TouchableOpacity,
|
|
2799
2798
|
{
|
|
2800
2799
|
style: [
|
|
@@ -2804,8 +2803,8 @@ const OurOfficesButton = ({
|
|
|
2804
2803
|
],
|
|
2805
2804
|
onPress
|
|
2806
2805
|
},
|
|
2807
|
-
leftIcon && /* @__PURE__ */
|
|
2808
|
-
/* @__PURE__ */
|
|
2806
|
+
leftIcon && /* @__PURE__ */ React.createElement(View, { style: styles$c.iconContainer }, React.cloneElement(leftIcon)),
|
|
2807
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$c.textContainer }, /* @__PURE__ */ React.createElement(
|
|
2809
2808
|
CustomText$1,
|
|
2810
2809
|
{
|
|
2811
2810
|
text: title,
|
|
@@ -2813,7 +2812,7 @@ const OurOfficesButton = ({
|
|
|
2813
2812
|
textColor: titleColor,
|
|
2814
2813
|
style: styles$c.textView
|
|
2815
2814
|
}
|
|
2816
|
-
), /* @__PURE__ */
|
|
2815
|
+
), /* @__PURE__ */ React.createElement(
|
|
2817
2816
|
CustomText$1,
|
|
2818
2817
|
{
|
|
2819
2818
|
text: description,
|
|
@@ -2822,7 +2821,7 @@ const OurOfficesButton = ({
|
|
|
2822
2821
|
style: styles$c.flexWrap
|
|
2823
2822
|
}
|
|
2824
2823
|
)),
|
|
2825
|
-
rightIcon && /* @__PURE__ */
|
|
2824
|
+
rightIcon && /* @__PURE__ */ React.createElement(View, { style: styles$c.rightIconContainer }, React.cloneElement(rightIcon))
|
|
2826
2825
|
);
|
|
2827
2826
|
};
|
|
2828
2827
|
const styles$c = StyleSheet.create({
|
|
@@ -2877,7 +2876,7 @@ const NotificationBandge = ({
|
|
|
2877
2876
|
if (notificationCount <= 0) {
|
|
2878
2877
|
return null;
|
|
2879
2878
|
}
|
|
2880
|
-
return /* @__PURE__ */
|
|
2879
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles$b.iconContainer }, /* @__PURE__ */ React.createElement(View, { style: styles$b.badge }, /* @__PURE__ */ React.createElement(Text, { style: [styles$b.badgeText] }, notificationCount > 99 ? "99+" : notificationCount)));
|
|
2881
2880
|
};
|
|
2882
2881
|
|
|
2883
2882
|
const ScrollableList = ({
|
|
@@ -2895,7 +2894,7 @@ const ScrollableList = ({
|
|
|
2895
2894
|
data && data.length > 0 ? data[0].name : null
|
|
2896
2895
|
);
|
|
2897
2896
|
const { theme } = useTheme();
|
|
2898
|
-
return /* @__PURE__ */
|
|
2897
|
+
return /* @__PURE__ */ React.createElement(View, { style: [styles$a.container, containerStyle] }, /* @__PURE__ */ React.createElement(
|
|
2899
2898
|
ScrollView,
|
|
2900
2899
|
{
|
|
2901
2900
|
horizontal: true,
|
|
@@ -2905,7 +2904,7 @@ const ScrollableList = ({
|
|
|
2905
2904
|
scrollViewContentStyle
|
|
2906
2905
|
]
|
|
2907
2906
|
},
|
|
2908
|
-
data?.map((item) => /* @__PURE__ */
|
|
2907
|
+
data?.map((item) => /* @__PURE__ */ React.createElement(
|
|
2909
2908
|
Pressable,
|
|
2910
2909
|
{
|
|
2911
2910
|
key: item.value,
|
|
@@ -2922,7 +2921,7 @@ const ScrollableList = ({
|
|
|
2922
2921
|
handleSelectCategory(item.name, item.value);
|
|
2923
2922
|
}
|
|
2924
2923
|
},
|
|
2925
|
-
/* @__PURE__ */
|
|
2924
|
+
/* @__PURE__ */ React.createElement(
|
|
2926
2925
|
CustomText$1,
|
|
2927
2926
|
{
|
|
2928
2927
|
text: item.name,
|
|
@@ -2930,7 +2929,7 @@ const ScrollableList = ({
|
|
|
2930
2929
|
textColor: (activeTab ?? selectedItem) === item.name ? selectedItemTextColor : defaultItemTextColor
|
|
2931
2930
|
}
|
|
2932
2931
|
),
|
|
2933
|
-
item?.isError && /* @__PURE__ */
|
|
2932
|
+
item?.isError && /* @__PURE__ */ React.createElement(
|
|
2934
2933
|
View,
|
|
2935
2934
|
{
|
|
2936
2935
|
style: [
|
|
@@ -3024,7 +3023,7 @@ const FeedbackForm = ({
|
|
|
3024
3023
|
setFeedback
|
|
3025
3024
|
}) => {
|
|
3026
3025
|
const maxChars = 200;
|
|
3027
|
-
return /* @__PURE__ */
|
|
3026
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles$9.container }, /* @__PURE__ */ React.createElement(Text, { style: styles$9.headerText }, title), /* @__PURE__ */ React.createElement(
|
|
3028
3027
|
TextInput,
|
|
3029
3028
|
{
|
|
3030
3029
|
style: [styles$9.textInput, { height: Math.max(100) }],
|
|
@@ -3035,7 +3034,7 @@ const FeedbackForm = ({
|
|
|
3035
3034
|
value: feedback,
|
|
3036
3035
|
onChangeText: (text) => setFeedback(text)
|
|
3037
3036
|
}
|
|
3038
|
-
), /* @__PURE__ */
|
|
3037
|
+
), /* @__PURE__ */ React.createElement(
|
|
3039
3038
|
CustomText$1,
|
|
3040
3039
|
{
|
|
3041
3040
|
text: `${feedback.length}/${maxChars} characters`,
|
|
@@ -3043,14 +3042,14 @@ const FeedbackForm = ({
|
|
|
3043
3042
|
textColor: "CONTENT_SECONDRY",
|
|
3044
3043
|
style: styles$9.charCounter
|
|
3045
3044
|
}
|
|
3046
|
-
), /* @__PURE__ */
|
|
3045
|
+
), /* @__PURE__ */ React.createElement(View, { style: styles$9.buttonContainer }, /* @__PURE__ */ React.createElement(Pressable, { style: styles$9.feedbackButton, onPress: handleSendFeedback }, /* @__PURE__ */ React.createElement(
|
|
3047
3046
|
CustomText$1,
|
|
3048
3047
|
{
|
|
3049
3048
|
text: "Send feedback",
|
|
3050
3049
|
variant: "L1_REGULAR",
|
|
3051
3050
|
textColor: "CONTENT_PRIMARY"
|
|
3052
3051
|
}
|
|
3053
|
-
)), /* @__PURE__ */
|
|
3052
|
+
)), /* @__PURE__ */ React.createElement(Pressable, { style: styles$9.cancelButton, onPress: clearAllData }, /* @__PURE__ */ React.createElement(
|
|
3054
3053
|
CustomText$1,
|
|
3055
3054
|
{
|
|
3056
3055
|
text: "Cancel",
|
|
@@ -3087,7 +3086,7 @@ const CountryDropDown = ({
|
|
|
3087
3086
|
setCallingCode(`+${country.callingCode[0]}`);
|
|
3088
3087
|
getCountryCode(`+${country.callingCode[0]}`);
|
|
3089
3088
|
};
|
|
3090
|
-
return /* @__PURE__ */
|
|
3089
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(View, { style: [styles$8.container, containerStyle] }, /* @__PURE__ */ React.createElement(View, { style: [styles$8.countryPickerContainer, countryPickerStyle] }, /* @__PURE__ */ React.createElement(
|
|
3091
3090
|
CountryPicker,
|
|
3092
3091
|
{
|
|
3093
3092
|
withFilter: true,
|
|
@@ -3097,21 +3096,21 @@ const CountryDropDown = ({
|
|
|
3097
3096
|
onSelect: handleSelect,
|
|
3098
3097
|
visible: pickerVisible
|
|
3099
3098
|
}
|
|
3100
|
-
), /* @__PURE__ */
|
|
3099
|
+
), /* @__PURE__ */ React.createElement(
|
|
3101
3100
|
Text,
|
|
3102
3101
|
{
|
|
3103
3102
|
onPress: () => setPickerVisible(true),
|
|
3104
3103
|
style: [styles$8.callingCode, callingCodeStyle]
|
|
3105
3104
|
},
|
|
3106
3105
|
callingCode
|
|
3107
|
-
)), /* @__PURE__ */
|
|
3106
|
+
)), /* @__PURE__ */ React.createElement(View, { style: styles$8.flex }, (isFocused || value) && /* @__PURE__ */ React.createElement(
|
|
3108
3107
|
CustomTypography,
|
|
3109
3108
|
{
|
|
3110
3109
|
variant: "L2_REGULAR",
|
|
3111
3110
|
text: label ?? "",
|
|
3112
3111
|
style: styles$8.floatingLabel
|
|
3113
3112
|
}
|
|
3114
|
-
), /* @__PURE__ */
|
|
3113
|
+
), /* @__PURE__ */ React.createElement(
|
|
3115
3114
|
TextInput,
|
|
3116
3115
|
{
|
|
3117
3116
|
style: [styles$8.input, inputStyle],
|
|
@@ -3124,7 +3123,7 @@ const CountryDropDown = ({
|
|
|
3124
3123
|
maxLength,
|
|
3125
3124
|
placeholderTextColor: theme.CONTENT_SECONDRY["light"]
|
|
3126
3125
|
}
|
|
3127
|
-
))), errorMessage ? /* @__PURE__ */
|
|
3126
|
+
))), errorMessage ? /* @__PURE__ */ React.createElement(
|
|
3128
3127
|
CustomTypography,
|
|
3129
3128
|
{
|
|
3130
3129
|
variant: "L2_REGULAR",
|
|
@@ -3200,7 +3199,7 @@ const CommonTextInput = ({
|
|
|
3200
3199
|
handlePress,
|
|
3201
3200
|
pointerEvents
|
|
3202
3201
|
}) => {
|
|
3203
|
-
return /* @__PURE__ */
|
|
3202
|
+
return /* @__PURE__ */ React.createElement(Pressable, { onPress: handlePress, style: styles$7.container }, /* @__PURE__ */ React.createElement(
|
|
3204
3203
|
TextInput$1,
|
|
3205
3204
|
{
|
|
3206
3205
|
mode: "outlined",
|
|
@@ -3225,7 +3224,7 @@ const CommonTextInput = ({
|
|
|
3225
3224
|
editable,
|
|
3226
3225
|
pointerEvents
|
|
3227
3226
|
}
|
|
3228
|
-
), errorMessage ? /* @__PURE__ */
|
|
3227
|
+
), errorMessage ? /* @__PURE__ */ React.createElement(
|
|
3229
3228
|
CustomTypography,
|
|
3230
3229
|
{
|
|
3231
3230
|
variant: "L2_REGULAR",
|
|
@@ -3290,7 +3289,7 @@ const CustomDropdown = ({
|
|
|
3290
3289
|
const [isFocus, setIsFocus] = useState(false);
|
|
3291
3290
|
const renderLabel = () => {
|
|
3292
3291
|
if (value || isFocus) {
|
|
3293
|
-
return /* @__PURE__ */
|
|
3292
|
+
return /* @__PURE__ */ React.createElement(
|
|
3294
3293
|
Text,
|
|
3295
3294
|
{
|
|
3296
3295
|
style: [
|
|
@@ -3312,7 +3311,7 @@ const CustomDropdown = ({
|
|
|
3312
3311
|
onValueChange(newValue);
|
|
3313
3312
|
}
|
|
3314
3313
|
};
|
|
3315
|
-
return /* @__PURE__ */
|
|
3314
|
+
return /* @__PURE__ */ React.createElement(View, { style: [styles$6.container, containerStyle] }, label && renderLabel(), /* @__PURE__ */ React.createElement(
|
|
3316
3315
|
Dropdown,
|
|
3317
3316
|
{
|
|
3318
3317
|
style: [
|
|
@@ -3430,20 +3429,20 @@ const CustomSwitchBtn = ({
|
|
|
3430
3429
|
const toggleSwitch = () => {
|
|
3431
3430
|
onValueChange(!value);
|
|
3432
3431
|
};
|
|
3433
|
-
return /* @__PURE__ */
|
|
3432
|
+
return /* @__PURE__ */ React.createElement(
|
|
3434
3433
|
Pressable,
|
|
3435
3434
|
{
|
|
3436
3435
|
disabled,
|
|
3437
3436
|
onPress: toggleSwitch,
|
|
3438
3437
|
style: { ...styles$5.mainContainer, ...containerStyle }
|
|
3439
3438
|
},
|
|
3440
|
-
/* @__PURE__ */
|
|
3439
|
+
/* @__PURE__ */ React.createElement(
|
|
3441
3440
|
Animated.View,
|
|
3442
3441
|
{
|
|
3443
3442
|
style: [styles$5.circle, { transform: [{ translateX }], ...circleStyle }]
|
|
3444
3443
|
}
|
|
3445
3444
|
),
|
|
3446
|
-
/* @__PURE__ */
|
|
3445
|
+
/* @__PURE__ */ React.createElement(
|
|
3447
3446
|
CustomTypography,
|
|
3448
3447
|
{
|
|
3449
3448
|
style: [styles$5.activeText, value ? inActiveTextStyle : activeTextStyle],
|
|
@@ -3451,7 +3450,7 @@ const CustomSwitchBtn = ({
|
|
|
3451
3450
|
variant: activeTextVariant
|
|
3452
3451
|
}
|
|
3453
3452
|
),
|
|
3454
|
-
/* @__PURE__ */
|
|
3453
|
+
/* @__PURE__ */ React.createElement(
|
|
3455
3454
|
CustomTypography,
|
|
3456
3455
|
{
|
|
3457
3456
|
style: [
|
|
@@ -3503,7 +3502,7 @@ const TagsComponent = ({
|
|
|
3503
3502
|
}
|
|
3504
3503
|
return tagList;
|
|
3505
3504
|
};
|
|
3506
|
-
const renderTagItem = ({ item }) => /* @__PURE__ */
|
|
3505
|
+
const renderTagItem = ({ item }) => /* @__PURE__ */ React.createElement(
|
|
3507
3506
|
Pressable,
|
|
3508
3507
|
{
|
|
3509
3508
|
onPress: () => handleTagPress?.(item.name),
|
|
@@ -3512,7 +3511,7 @@ const TagsComponent = ({
|
|
|
3512
3511
|
selectedTag === item?.name ? styles$4.selectedTagButton : styles$4.unselectedTagButton
|
|
3513
3512
|
]
|
|
3514
3513
|
},
|
|
3515
|
-
/* @__PURE__ */
|
|
3514
|
+
/* @__PURE__ */ React.createElement(
|
|
3516
3515
|
Text,
|
|
3517
3516
|
{
|
|
3518
3517
|
style: [
|
|
@@ -3522,9 +3521,9 @@ const TagsComponent = ({
|
|
|
3522
3521
|
},
|
|
3523
3522
|
item?.name
|
|
3524
3523
|
),
|
|
3525
|
-
selectedTag === item?.name && /* @__PURE__ */
|
|
3524
|
+
selectedTag === item?.name && /* @__PURE__ */ React.createElement(Text, { style: styles$4.closeButton }, "\u2715")
|
|
3526
3525
|
);
|
|
3527
|
-
return /* @__PURE__ */
|
|
3526
|
+
return /* @__PURE__ */ React.createElement(View, null, /* @__PURE__ */ React.createElement(
|
|
3528
3527
|
FlatList,
|
|
3529
3528
|
{
|
|
3530
3529
|
data: reorderedTags(),
|
|
@@ -3640,7 +3639,7 @@ const CustomDocumentPicker = ({
|
|
|
3640
3639
|
useCallback(() => {
|
|
3641
3640
|
setDocDetails(void 0);
|
|
3642
3641
|
}, []);
|
|
3643
|
-
return /* @__PURE__ */
|
|
3642
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
3644
3643
|
View,
|
|
3645
3644
|
{
|
|
3646
3645
|
style: [
|
|
@@ -3650,14 +3649,14 @@ const CustomDocumentPicker = ({
|
|
|
3650
3649
|
containerStyle
|
|
3651
3650
|
]
|
|
3652
3651
|
},
|
|
3653
|
-
/* @__PURE__ */
|
|
3652
|
+
/* @__PURE__ */ React.createElement(Pressable, { style: styles$3.innerContainer, onPress: pickDocument }, /* @__PURE__ */ React.createElement(View, { style: styles$3.titleContainer }, /* @__PURE__ */ React.createElement(
|
|
3654
3653
|
CustomTypography,
|
|
3655
3654
|
{
|
|
3656
3655
|
variant: FontStyle.L2_REGULAR,
|
|
3657
3656
|
text: docDetails?.name ?? title,
|
|
3658
3657
|
style: [{ color: theme.CONTENT_PRIMARY }, titleStyle]
|
|
3659
3658
|
}
|
|
3660
|
-
), !docDetails && /* @__PURE__ */
|
|
3659
|
+
), !docDetails && /* @__PURE__ */ React.createElement(
|
|
3661
3660
|
CustomTypography,
|
|
3662
3661
|
{
|
|
3663
3662
|
variant: FontStyle.L3_REGULAR,
|
|
@@ -3665,7 +3664,7 @@ const CustomDocumentPicker = ({
|
|
|
3665
3664
|
style: [{ color: theme.CONTENT_SECONDRY }, hintStyle]
|
|
3666
3665
|
}
|
|
3667
3666
|
)))
|
|
3668
|
-
), error && /* @__PURE__ */
|
|
3667
|
+
), error && /* @__PURE__ */ React.createElement(
|
|
3669
3668
|
CustomTypography,
|
|
3670
3669
|
{
|
|
3671
3670
|
variant: FontStyle.L2_REGULAR,
|
|
@@ -3701,7 +3700,7 @@ const styles$2 = StyleSheet.create({
|
|
|
3701
3700
|
}
|
|
3702
3701
|
});
|
|
3703
3702
|
|
|
3704
|
-
const OTPInput =
|
|
3703
|
+
const OTPInput = React.forwardRef(
|
|
3705
3704
|
({
|
|
3706
3705
|
length = 4,
|
|
3707
3706
|
onComplete,
|
|
@@ -3729,7 +3728,7 @@ const OTPInput = React__default.forwardRef(
|
|
|
3729
3728
|
setIsResendOtpEnable(true);
|
|
3730
3729
|
}, 5e3);
|
|
3731
3730
|
};
|
|
3732
|
-
|
|
3731
|
+
React.useImperativeHandle(ref, () => ({
|
|
3733
3732
|
reset() {
|
|
3734
3733
|
setOTP("");
|
|
3735
3734
|
}
|
|
@@ -3760,7 +3759,7 @@ const OTPInput = React__default.forwardRef(
|
|
|
3760
3759
|
onComplete?.(otp);
|
|
3761
3760
|
}
|
|
3762
3761
|
}, [otp]);
|
|
3763
|
-
return /* @__PURE__ */
|
|
3762
|
+
return /* @__PURE__ */ React.createElement(View, { style: { ...otpContainerStyle }, testID: testId }, /* @__PURE__ */ React.createElement(
|
|
3764
3763
|
CustomTypography,
|
|
3765
3764
|
{
|
|
3766
3765
|
text: "OTP",
|
|
@@ -3770,7 +3769,7 @@ const OTPInput = React__default.forwardRef(
|
|
|
3770
3769
|
textAlign: "left"
|
|
3771
3770
|
}
|
|
3772
3771
|
}
|
|
3773
|
-
), /* @__PURE__ */
|
|
3772
|
+
), /* @__PURE__ */ React.createElement(View, { style: { ...styles$2.textInputContainer } }, Array.from({ length }).map((_, index) => /* @__PURE__ */ React.createElement(
|
|
3774
3773
|
TextInput,
|
|
3775
3774
|
{
|
|
3776
3775
|
key: index?.toString(),
|
|
@@ -3790,7 +3789,7 @@ const OTPInput = React__default.forwardRef(
|
|
|
3790
3789
|
returnKeyType: otp.length === length ? "done" : "next",
|
|
3791
3790
|
selectionColor: theme.CONTENT_PRIMARY
|
|
3792
3791
|
}
|
|
3793
|
-
))), /* @__PURE__ */
|
|
3792
|
+
))), /* @__PURE__ */ React.createElement(View, { style: styles$2.resendOtpContainer }, errorMessage ? /* @__PURE__ */ React.createElement(
|
|
3794
3793
|
CustomTypography,
|
|
3795
3794
|
{
|
|
3796
3795
|
text: errorMessage,
|
|
@@ -3799,7 +3798,7 @@ const OTPInput = React__default.forwardRef(
|
|
|
3799
3798
|
color: theme.ERROR
|
|
3800
3799
|
}
|
|
3801
3800
|
}
|
|
3802
|
-
) : /* @__PURE__ */
|
|
3801
|
+
) : /* @__PURE__ */ React.createElement(View, null), /* @__PURE__ */ React.createElement(Pressable, { onPress: onClickResendOTP, disabled: !isResendOtpEnable }, /* @__PURE__ */ React.createElement(
|
|
3803
3802
|
CustomTypography,
|
|
3804
3803
|
{
|
|
3805
3804
|
text: "Resend OTP",
|
|
@@ -3941,18 +3940,18 @@ const Stepper = ({
|
|
|
3941
3940
|
return { borderColor: theme.CONTENT_SECONDRY };
|
|
3942
3941
|
}
|
|
3943
3942
|
};
|
|
3944
|
-
return /* @__PURE__ */
|
|
3943
|
+
return /* @__PURE__ */ React.createElement(View, { style: { ...styles$1.stepperContainer, ...containerStyle } }, data?.map((item, index) => {
|
|
3945
3944
|
const stepCircleStyle = renderCircleStyle(item?.status);
|
|
3946
3945
|
const dividerStyle = renderDividerStyle(item?.status);
|
|
3947
3946
|
const labelStyle = renderLableStyle(item?.status);
|
|
3948
3947
|
const lastViewStyle = index === data?.length - 1 ? styles$1.lastStepWrapper : null;
|
|
3949
|
-
return /* @__PURE__ */
|
|
3948
|
+
return /* @__PURE__ */ React.createElement(
|
|
3950
3949
|
View,
|
|
3951
3950
|
{
|
|
3952
3951
|
key: index?.toString(),
|
|
3953
3952
|
style: { ...styles$1.stepperWrapper, ...lastViewStyle }
|
|
3954
3953
|
},
|
|
3955
|
-
/* @__PURE__ */
|
|
3954
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$1.stepperSeparatorContainer }, /* @__PURE__ */ React.createElement(View, { style: { ...stepCircleStyle } }, showStepCount && /* @__PURE__ */ React.createElement(
|
|
3956
3955
|
CustomTypography,
|
|
3957
3956
|
{
|
|
3958
3957
|
text: item?.step,
|
|
@@ -3961,8 +3960,8 @@ const Stepper = ({
|
|
|
3961
3960
|
color: theme.CONTENT_PRIMARY
|
|
3962
3961
|
}
|
|
3963
3962
|
}
|
|
3964
|
-
)), index != data?.length - 1 && /* @__PURE__ */
|
|
3965
|
-
/* @__PURE__ */
|
|
3963
|
+
)), index != data?.length - 1 && /* @__PURE__ */ React.createElement(View, { style: { ...styles$1.separator, ...dividerStyle } })),
|
|
3964
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$1.lableContainer }, /* @__PURE__ */ React.createElement(
|
|
3966
3965
|
CustomTypography,
|
|
3967
3966
|
{
|
|
3968
3967
|
text: item?.label,
|
|
@@ -4043,7 +4042,7 @@ const CustomSlideButton = ({ label, onComplete }) => {
|
|
|
4043
4042
|
})
|
|
4044
4043
|
).current;
|
|
4045
4044
|
const { theme } = useTheme();
|
|
4046
|
-
return /* @__PURE__ */
|
|
4045
|
+
return /* @__PURE__ */ React.createElement(
|
|
4047
4046
|
View,
|
|
4048
4047
|
{
|
|
4049
4048
|
style: {
|
|
@@ -4051,7 +4050,7 @@ const CustomSlideButton = ({ label, onComplete }) => {
|
|
|
4051
4050
|
backgroundColor: theme.SURFACE_INVERTED
|
|
4052
4051
|
}
|
|
4053
4052
|
},
|
|
4054
|
-
/* @__PURE__ */
|
|
4053
|
+
/* @__PURE__ */ React.createElement(View, { style: styles.buttonTextCOntainer }, /* @__PURE__ */ React.createElement(
|
|
4055
4054
|
CustomTypography,
|
|
4056
4055
|
{
|
|
4057
4056
|
text: label,
|
|
@@ -4061,13 +4060,13 @@ const CustomSlideButton = ({ label, onComplete }) => {
|
|
|
4061
4060
|
}
|
|
4062
4061
|
}
|
|
4063
4062
|
)),
|
|
4064
|
-
/* @__PURE__ */
|
|
4063
|
+
/* @__PURE__ */ React.createElement(
|
|
4065
4064
|
Animated.View,
|
|
4066
4065
|
{
|
|
4067
4066
|
style: [styles.slider, { transform: [{ translateX: pan }] }],
|
|
4068
4067
|
...panResponder.panHandlers
|
|
4069
4068
|
},
|
|
4070
|
-
/* @__PURE__ */
|
|
4069
|
+
/* @__PURE__ */ React.createElement(
|
|
4071
4070
|
View,
|
|
4072
4071
|
{
|
|
4073
4072
|
style: {
|