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