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