dhre-ui-kit 0.0.174 → 0.0.175
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 +18 -2
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +218 -202
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
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, StyleSheet, Text, Pressable, View, Modal, KeyboardAvoidingView, Platform, ActivityIndicator, TextInput, ScrollView, Animated, FlatList, TouchableOpacity, Alert, Linking, PanResponder } from 'react-native';
|
|
4
5
|
import { PanGestureHandler, GestureHandlerRootView, Swipeable } from 'react-native-gesture-handler';
|
|
@@ -10,7 +11,6 @@ import { Calendar } from 'react-native-calendars';
|
|
|
10
11
|
import CountryPicker from 'react-native-country-picker-modal';
|
|
11
12
|
import { TextInput as TextInput$1 } from 'react-native-paper';
|
|
12
13
|
import { Dropdown } from 'react-native-element-dropdown';
|
|
13
|
-
import { DropDownArrow } from 'src/assets';
|
|
14
14
|
import DocumentPicker from 'react-native-document-picker';
|
|
15
15
|
import RNFS from 'react-native-fs';
|
|
16
16
|
import Clipboard from '@react-native-clipboard/clipboard';
|
|
@@ -255,7 +255,7 @@ const ThemeProvider = ({ children }) => {
|
|
|
255
255
|
acc[key] = theme[key][mode];
|
|
256
256
|
return acc;
|
|
257
257
|
}, {});
|
|
258
|
-
return /* @__PURE__ */
|
|
258
|
+
return /* @__PURE__ */ React__default.createElement(ThemeContext.Provider, { value: { theme: filteredTheme, mode } }, children);
|
|
259
259
|
};
|
|
260
260
|
const useTheme = () => {
|
|
261
261
|
const context = useContext(ThemeContext);
|
|
@@ -266,7 +266,7 @@ const useTheme = () => {
|
|
|
266
266
|
};
|
|
267
267
|
|
|
268
268
|
const withThemeProvider = (Component) => {
|
|
269
|
-
return (props) => /* @__PURE__ */
|
|
269
|
+
return (props) => /* @__PURE__ */ React__default.createElement(ThemeProvider, null, /* @__PURE__ */ React__default.createElement(Component, { ...props }));
|
|
270
270
|
};
|
|
271
271
|
|
|
272
272
|
const { width, height } = Dimensions.get("window");
|
|
@@ -330,7 +330,7 @@ const CustomTypography = ({
|
|
|
330
330
|
...props
|
|
331
331
|
}) => {
|
|
332
332
|
const textStyle = FONT_STYLES[variant];
|
|
333
|
-
return /* @__PURE__ */
|
|
333
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
334
334
|
Text,
|
|
335
335
|
{
|
|
336
336
|
testID,
|
|
@@ -352,7 +352,7 @@ const CustomText = ({
|
|
|
352
352
|
...props
|
|
353
353
|
}) => {
|
|
354
354
|
const { theme } = useTheme();
|
|
355
|
-
return /* @__PURE__ */
|
|
355
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
356
356
|
CustomTypography,
|
|
357
357
|
{
|
|
358
358
|
variant,
|
|
@@ -575,15 +575,15 @@ const Badge = ({
|
|
|
575
575
|
iconStyle,
|
|
576
576
|
handleIconPress
|
|
577
577
|
}) => {
|
|
578
|
-
return /* @__PURE__ */
|
|
578
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
579
579
|
Pressable,
|
|
580
580
|
{
|
|
581
581
|
style: [styles$A.badge, commonStyles.centerRow, style],
|
|
582
582
|
testID: "BADGE",
|
|
583
583
|
onPress: handleIconPress
|
|
584
584
|
},
|
|
585
|
-
iconName && /* @__PURE__ */
|
|
586
|
-
text && /* @__PURE__ */
|
|
585
|
+
iconName && /* @__PURE__ */ React__default.createElement(View, { style: [styles$A.icon, iconStyle] }, React__default.cloneElement(iconName)),
|
|
586
|
+
text && /* @__PURE__ */ React__default.createElement(
|
|
587
587
|
CustomTypography,
|
|
588
588
|
{
|
|
589
589
|
variant: "B3semiBold",
|
|
@@ -661,7 +661,7 @@ const BottomDrawer = ({
|
|
|
661
661
|
toggleModal();
|
|
662
662
|
}
|
|
663
663
|
};
|
|
664
|
-
return /* @__PURE__ */
|
|
664
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
665
665
|
Modal,
|
|
666
666
|
{
|
|
667
667
|
animationType: "slide",
|
|
@@ -669,32 +669,32 @@ const BottomDrawer = ({
|
|
|
669
669
|
visible: isModalVisible,
|
|
670
670
|
onRequestClose: toggleModal
|
|
671
671
|
},
|
|
672
|
-
/* @__PURE__ */
|
|
672
|
+
/* @__PURE__ */ React__default.createElement(PanGestureHandler, { onGestureEvent: onSwipDown }, /* @__PURE__ */ React__default.createElement(
|
|
673
673
|
KeyboardAvoidingView,
|
|
674
674
|
{
|
|
675
675
|
behavior: Platform.OS === "ios" ? "padding" : "height",
|
|
676
676
|
style: { flex: 1 }
|
|
677
677
|
},
|
|
678
|
-
/* @__PURE__ */
|
|
678
|
+
/* @__PURE__ */ React__default.createElement(View, { style: [styles$z.mainContainer, style], testID }, showBlurView ? /* @__PURE__ */ React__default.createElement(
|
|
679
679
|
BlurView,
|
|
680
680
|
{
|
|
681
681
|
style: [styles$z.blurView, blurViewStyle],
|
|
682
682
|
blurType,
|
|
683
683
|
blurAmount
|
|
684
684
|
}
|
|
685
|
-
) : null, /* @__PURE__ */
|
|
685
|
+
) : null, /* @__PURE__ */ React__default.createElement(View, { style: [styles$z.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(View, { style: styles$z.separator }), /* @__PURE__ */ React__default.createElement(View, { style: styles$z.headerContainer }, showLeftIcon && leftIcon ? React__default.cloneElement(leftIcon, {
|
|
686
686
|
width: moderateScale(24),
|
|
687
687
|
height: moderateScale(24),
|
|
688
688
|
style: styles$z.leftIconStyle,
|
|
689
689
|
onPress: onLeftIconPress
|
|
690
|
-
}) : null, /* @__PURE__ */
|
|
690
|
+
}) : null, /* @__PURE__ */ React__default.createElement(
|
|
691
691
|
CustomTypography,
|
|
692
692
|
{
|
|
693
693
|
variant: titleVariant,
|
|
694
694
|
text: title,
|
|
695
695
|
style: { ...styles$z.title, ...titleStyle }
|
|
696
696
|
}
|
|
697
|
-
), showRightIcon && rightIcon ?
|
|
697
|
+
), showRightIcon && rightIcon ? React__default.cloneElement(rightIcon, {
|
|
698
698
|
width: moderateScale(24),
|
|
699
699
|
height: moderateScale(24),
|
|
700
700
|
style: styles$z.rightIconStyle,
|
|
@@ -719,7 +719,7 @@ const styles$y = StyleSheet.create({
|
|
|
719
719
|
|
|
720
720
|
const CustomLoader = ({ loading }) => {
|
|
721
721
|
if (!loading) return null;
|
|
722
|
-
return /* @__PURE__ */
|
|
722
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: styles$y.container }, /* @__PURE__ */ React__default.createElement(ActivityIndicator, { size: "large", color: "#686868" }));
|
|
723
723
|
};
|
|
724
724
|
|
|
725
725
|
const CustomButton = ({
|
|
@@ -740,7 +740,7 @@ const CustomButton = ({
|
|
|
740
740
|
isLoading = false
|
|
741
741
|
}) => {
|
|
742
742
|
const { theme } = useTheme();
|
|
743
|
-
return /* @__PURE__ */
|
|
743
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
744
744
|
Pressable,
|
|
745
745
|
{
|
|
746
746
|
testID,
|
|
@@ -757,8 +757,8 @@ const CustomButton = ({
|
|
|
757
757
|
onPress,
|
|
758
758
|
disabled
|
|
759
759
|
},
|
|
760
|
-
imagePosition === "left" && leftIcon && /* @__PURE__ */
|
|
761
|
-
isLoading ? /* @__PURE__ */
|
|
760
|
+
imagePosition === "left" && leftIcon && /* @__PURE__ */ React__default.createElement(View, { style: iconStyle }, React__default.cloneElement(leftIcon, { width: 20, height: 20 })),
|
|
761
|
+
isLoading ? /* @__PURE__ */ React__default.createElement(CustomLoader, { loading: isLoading }) : /* @__PURE__ */ React__default.createElement(
|
|
762
762
|
CustomText$1,
|
|
763
763
|
{
|
|
764
764
|
text: title,
|
|
@@ -772,7 +772,7 @@ const CustomButton = ({
|
|
|
772
772
|
textColor: titleColor
|
|
773
773
|
}
|
|
774
774
|
),
|
|
775
|
-
imagePosition === "right" && rightIcon && /* @__PURE__ */
|
|
775
|
+
imagePosition === "right" && rightIcon && /* @__PURE__ */ React__default.createElement(View, { style: iconStyle }, React__default.cloneElement(rightIcon, { width: 20, height: 20 }))
|
|
776
776
|
);
|
|
777
777
|
};
|
|
778
778
|
const styles$x = StyleSheet.create({
|
|
@@ -852,42 +852,42 @@ const Cards = ({
|
|
|
852
852
|
testID,
|
|
853
853
|
onButtonPress
|
|
854
854
|
}) => {
|
|
855
|
-
return /* @__PURE__ */
|
|
855
|
+
return /* @__PURE__ */ React__default.createElement(View, { testID, style: styles$w.container }, topLeftTitle ? /* @__PURE__ */ React__default.createElement(View, { style: styles$w.topLeft }, /* @__PURE__ */ React__default.createElement(
|
|
856
856
|
CustomTypography,
|
|
857
857
|
{
|
|
858
858
|
variant: "P2regular",
|
|
859
859
|
style: styles$w.title,
|
|
860
860
|
text: topLeftTitle
|
|
861
861
|
}
|
|
862
|
-
)) : null, title ? /* @__PURE__ */
|
|
862
|
+
)) : null, title ? /* @__PURE__ */ React__default.createElement(
|
|
863
863
|
CustomTypography,
|
|
864
864
|
{
|
|
865
865
|
variant: "H6bold",
|
|
866
866
|
style: styles$w.subTitleBelow,
|
|
867
867
|
text: title
|
|
868
868
|
}
|
|
869
|
-
) : null, subtitle ? /* @__PURE__ */
|
|
869
|
+
) : null, subtitle ? /* @__PURE__ */ React__default.createElement(
|
|
870
870
|
CustomTypography,
|
|
871
871
|
{
|
|
872
872
|
variant: "P3regular",
|
|
873
873
|
style: styles$w.subtitle,
|
|
874
874
|
text: subtitle
|
|
875
875
|
}
|
|
876
|
-
) : null, /* @__PURE__ */
|
|
876
|
+
) : null, /* @__PURE__ */ React__default.createElement(View, { style: styles$w.leftBottomView }, iconSource ? iconSource : null, iconTitle ? /* @__PURE__ */ React__default.createElement(
|
|
877
877
|
CustomTypography,
|
|
878
878
|
{
|
|
879
879
|
variant: "P3regular",
|
|
880
880
|
style: styles$w.subTitleLeftBelow,
|
|
881
881
|
text: iconTitle
|
|
882
882
|
}
|
|
883
|
-
) : null), buttonShown ? /* @__PURE__ */
|
|
883
|
+
) : null), buttonShown ? /* @__PURE__ */ React__default.createElement(
|
|
884
884
|
Pressable,
|
|
885
885
|
{
|
|
886
886
|
testID: "Button-Press",
|
|
887
887
|
style: styles$w.button,
|
|
888
888
|
onPress: onButtonPress
|
|
889
889
|
},
|
|
890
|
-
/* @__PURE__ */
|
|
890
|
+
/* @__PURE__ */ React__default.createElement(
|
|
891
891
|
CustomTypography,
|
|
892
892
|
{
|
|
893
893
|
variant: "B2semiBold",
|
|
@@ -948,7 +948,7 @@ const Checkbox = ({
|
|
|
948
948
|
setChecked(!checked);
|
|
949
949
|
onCheck && onCheck(!checked);
|
|
950
950
|
};
|
|
951
|
-
return /* @__PURE__ */
|
|
951
|
+
return /* @__PURE__ */ React__default.createElement(View, { testID, style: containerStyle }, /* @__PURE__ */ React__default.createElement(
|
|
952
952
|
Pressable,
|
|
953
953
|
{
|
|
954
954
|
testID: "Checkbox-Press",
|
|
@@ -956,8 +956,8 @@ const Checkbox = ({
|
|
|
956
956
|
disabled: disable,
|
|
957
957
|
style: styles$v.directionStyle
|
|
958
958
|
},
|
|
959
|
-
/* @__PURE__ */
|
|
960
|
-
/* @__PURE__ */
|
|
959
|
+
/* @__PURE__ */ React__default.createElement(View, { style: styles$v.checkboxContainer }, React__default.cloneElement(checked ? checkedIcon : uncheckedIcon)),
|
|
960
|
+
/* @__PURE__ */ React__default.createElement(
|
|
961
961
|
CustomTypography,
|
|
962
962
|
{
|
|
963
963
|
variant: titleVariant,
|
|
@@ -1018,26 +1018,26 @@ const CustomDropdown$1 = ({
|
|
|
1018
1018
|
downArrowIcon
|
|
1019
1019
|
}) => {
|
|
1020
1020
|
const [showOptions, setShowOptions] = useState(false);
|
|
1021
|
-
return /* @__PURE__ */
|
|
1021
|
+
return /* @__PURE__ */ React__default.createElement(View, { testID: testId }, /* @__PURE__ */ React__default.createElement(
|
|
1022
1022
|
CustomTypography,
|
|
1023
1023
|
{
|
|
1024
1024
|
variant: "P3regular",
|
|
1025
1025
|
style: styles$u.labelStyle,
|
|
1026
1026
|
text: label
|
|
1027
1027
|
}
|
|
1028
|
-
), /* @__PURE__ */
|
|
1028
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
1029
1029
|
Pressable,
|
|
1030
1030
|
{
|
|
1031
1031
|
testID: `${testId}-BTN`,
|
|
1032
1032
|
style: styles$u.dropDownStyle,
|
|
1033
1033
|
onPress: () => setShowOptions(!showOptions)
|
|
1034
1034
|
},
|
|
1035
|
-
iconName && /* @__PURE__ */
|
|
1035
|
+
iconName && /* @__PURE__ */ React__default.createElement(View, { style: iconStyle }, React__default.cloneElement(iconName, {
|
|
1036
1036
|
width: moderateScale(24),
|
|
1037
1037
|
height: moderateScale(24),
|
|
1038
1038
|
style: styles$u.iconStyle
|
|
1039
1039
|
})),
|
|
1040
|
-
/* @__PURE__ */
|
|
1040
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1041
1041
|
CustomTypography,
|
|
1042
1042
|
{
|
|
1043
1043
|
variant: "P3regular",
|
|
@@ -1045,14 +1045,14 @@ const CustomDropdown$1 = ({
|
|
|
1045
1045
|
text: selectedValue ? selectedValue.label : placeholder
|
|
1046
1046
|
}
|
|
1047
1047
|
),
|
|
1048
|
-
/* @__PURE__ */
|
|
1048
|
+
/* @__PURE__ */ React__default.createElement(View, null, showOptions ? React__default.cloneElement(upArrowIcon, {
|
|
1049
1049
|
width: moderateScale(24),
|
|
1050
1050
|
height: moderateScale(24)
|
|
1051
|
-
}) :
|
|
1051
|
+
}) : React__default.cloneElement(downArrowIcon, {
|
|
1052
1052
|
width: moderateScale(24),
|
|
1053
1053
|
height: moderateScale(24)
|
|
1054
1054
|
}))
|
|
1055
|
-
), showOptions && /* @__PURE__ */
|
|
1055
|
+
), showOptions && /* @__PURE__ */ React__default.createElement(View, { style: styles$u.optionContainer }, options?.map(({ id, value, label: label2 }) => /* @__PURE__ */ React__default.createElement(
|
|
1056
1056
|
Pressable,
|
|
1057
1057
|
{
|
|
1058
1058
|
key: id,
|
|
@@ -1068,12 +1068,12 @@ const CustomDropdown$1 = ({
|
|
|
1068
1068
|
}
|
|
1069
1069
|
]
|
|
1070
1070
|
},
|
|
1071
|
-
iconName && /* @__PURE__ */
|
|
1071
|
+
iconName && /* @__PURE__ */ React__default.createElement(View, { style: iconStyle }, React__default.cloneElement(iconName, {
|
|
1072
1072
|
width: moderateScale(24),
|
|
1073
1073
|
height: moderateScale(24),
|
|
1074
1074
|
style: styles$u.iconStyle
|
|
1075
1075
|
})),
|
|
1076
|
-
/* @__PURE__ */
|
|
1076
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1077
1077
|
CustomTypography,
|
|
1078
1078
|
{
|
|
1079
1079
|
variant: "P3regular",
|
|
@@ -1164,14 +1164,14 @@ const CustomTextInput = ({
|
|
|
1164
1164
|
};
|
|
1165
1165
|
const handleIconPress1 = () => setValue("");
|
|
1166
1166
|
const handleIconPress2 = () => setIsSecureTextEntry(!isSecureTextEntry);
|
|
1167
|
-
return /* @__PURE__ */
|
|
1167
|
+
return /* @__PURE__ */ React__default.createElement(View, { testID }, /* @__PURE__ */ React__default.createElement(
|
|
1168
1168
|
CustomTypography,
|
|
1169
1169
|
{
|
|
1170
1170
|
variant: "P3medium",
|
|
1171
1171
|
style: [styles$t.labelStyle, disabled && styles$t.disableTextStyle],
|
|
1172
1172
|
text: label
|
|
1173
1173
|
}
|
|
1174
|
-
), /* @__PURE__ */
|
|
1174
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
1175
1175
|
View,
|
|
1176
1176
|
{
|
|
1177
1177
|
style: [
|
|
@@ -1186,12 +1186,12 @@ const CustomTextInput = ({
|
|
|
1186
1186
|
}
|
|
1187
1187
|
]
|
|
1188
1188
|
},
|
|
1189
|
-
isSearchBar && searchIcon &&
|
|
1189
|
+
isSearchBar && searchIcon && React__default.cloneElement(searchIcon, {
|
|
1190
1190
|
width: moderateScale(24),
|
|
1191
1191
|
height: moderateScale(24),
|
|
1192
1192
|
style: styles$t.searchIconStyle
|
|
1193
1193
|
}),
|
|
1194
|
-
/* @__PURE__ */
|
|
1194
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1195
1195
|
TextInput,
|
|
1196
1196
|
{
|
|
1197
1197
|
...props,
|
|
@@ -1208,15 +1208,15 @@ const CustomTextInput = ({
|
|
|
1208
1208
|
secureTextEntry: isSecureTextEntry
|
|
1209
1209
|
}
|
|
1210
1210
|
),
|
|
1211
|
-
value && !multiline && rightIcon1 &&
|
|
1211
|
+
value && !multiline && rightIcon1 && React__default.cloneElement(rightIcon1, {
|
|
1212
1212
|
onPress: handleIconPress1,
|
|
1213
1213
|
testID: "icon1"
|
|
1214
1214
|
}),
|
|
1215
|
-
secureTextEntry && rightIcon2 &&
|
|
1215
|
+
secureTextEntry && rightIcon2 && React__default.cloneElement(rightIcon2, {
|
|
1216
1216
|
onPress: handleIconPress2,
|
|
1217
1217
|
testID: "icon2"
|
|
1218
1218
|
})
|
|
1219
|
-
), (error || successMessage) && /* @__PURE__ */
|
|
1219
|
+
), (error || successMessage) && /* @__PURE__ */ React__default.createElement(
|
|
1220
1220
|
CustomTypography,
|
|
1221
1221
|
{
|
|
1222
1222
|
numberOfLines: 2,
|
|
@@ -1239,7 +1239,7 @@ const CustomTooltip = ({
|
|
|
1239
1239
|
backgroundColor,
|
|
1240
1240
|
triggerElement
|
|
1241
1241
|
}) => {
|
|
1242
|
-
return /* @__PURE__ */
|
|
1242
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
1243
1243
|
Tooltip,
|
|
1244
1244
|
{
|
|
1245
1245
|
isVisible,
|
|
@@ -1300,27 +1300,27 @@ const FileUpload = ({
|
|
|
1300
1300
|
icon,
|
|
1301
1301
|
iconStyle
|
|
1302
1302
|
}) => {
|
|
1303
|
-
return /* @__PURE__ */
|
|
1303
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
1304
1304
|
View,
|
|
1305
1305
|
{
|
|
1306
1306
|
style: [styles$s.container, containerStyle],
|
|
1307
1307
|
testID: "file-upload-container"
|
|
1308
1308
|
},
|
|
1309
|
-
/* @__PURE__ */
|
|
1309
|
+
/* @__PURE__ */ React__default.createElement(View, { style: styles$s.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$s.title, text: title }), /* @__PURE__ */ React__default.createElement(
|
|
1310
1310
|
CustomTypography,
|
|
1311
1311
|
{
|
|
1312
1312
|
variant: "P4regular",
|
|
1313
1313
|
style: styles$s.description,
|
|
1314
1314
|
text: `Drop files directly here or `
|
|
1315
1315
|
}
|
|
1316
|
-
), /* @__PURE__ */
|
|
1316
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
1317
1317
|
CustomTypography,
|
|
1318
1318
|
{
|
|
1319
1319
|
variant: "P4regular",
|
|
1320
1320
|
style: styles$s.browse,
|
|
1321
1321
|
text: btnText
|
|
1322
1322
|
}
|
|
1323
|
-
), /* @__PURE__ */
|
|
1323
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
1324
1324
|
CustomTypography,
|
|
1325
1325
|
{
|
|
1326
1326
|
testID: "file-upload-description",
|
|
@@ -1329,14 +1329,14 @@ const FileUpload = ({
|
|
|
1329
1329
|
text: ` from your device`
|
|
1330
1330
|
}
|
|
1331
1331
|
)),
|
|
1332
|
-
/* @__PURE__ */
|
|
1332
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1333
1333
|
Pressable,
|
|
1334
1334
|
{
|
|
1335
1335
|
style: styles$s.button,
|
|
1336
1336
|
onPress: onUpload,
|
|
1337
1337
|
testID: "file-upload-button"
|
|
1338
1338
|
},
|
|
1339
|
-
/* @__PURE__ */
|
|
1339
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1340
1340
|
CustomTypography,
|
|
1341
1341
|
{
|
|
1342
1342
|
variant: "B2semiBold",
|
|
@@ -1349,7 +1349,7 @@ const FileUpload = ({
|
|
|
1349
1349
|
};
|
|
1350
1350
|
|
|
1351
1351
|
const PdfView = (props) => {
|
|
1352
|
-
return /* @__PURE__ */
|
|
1352
|
+
return /* @__PURE__ */ React__default.createElement(Pdf, { ...props });
|
|
1353
1353
|
};
|
|
1354
1354
|
|
|
1355
1355
|
const styles$r = StyleSheet.create({
|
|
@@ -1408,28 +1408,28 @@ const PopUp = ({
|
|
|
1408
1408
|
leftButtonShown = false,
|
|
1409
1409
|
rightButtonShown = false
|
|
1410
1410
|
}) => {
|
|
1411
|
-
return /* @__PURE__ */
|
|
1411
|
+
return /* @__PURE__ */ React__default.createElement(View, { testID, style: styles$r.container }, title ? /* @__PURE__ */ React__default.createElement(
|
|
1412
1412
|
CustomTypography,
|
|
1413
1413
|
{
|
|
1414
1414
|
style: styles$r.subTitleBelow,
|
|
1415
1415
|
variant: "H6semiBold",
|
|
1416
1416
|
text: title
|
|
1417
1417
|
}
|
|
1418
|
-
) : null, subtitle ? /* @__PURE__ */
|
|
1418
|
+
) : null, subtitle ? /* @__PURE__ */ React__default.createElement(
|
|
1419
1419
|
CustomTypography,
|
|
1420
1420
|
{
|
|
1421
1421
|
style: styles$r.subtitle,
|
|
1422
1422
|
variant: "P3regular",
|
|
1423
1423
|
text: subtitle
|
|
1424
1424
|
}
|
|
1425
|
-
) : null, /* @__PURE__ */
|
|
1425
|
+
) : null, /* @__PURE__ */ React__default.createElement(View, { style: styles$r.buttonContainer }, leftButtonShown ? /* @__PURE__ */ React__default.createElement(
|
|
1426
1426
|
Pressable,
|
|
1427
1427
|
{
|
|
1428
1428
|
testID: "Left-Button-Press",
|
|
1429
1429
|
style: styles$r.buttonLeft,
|
|
1430
1430
|
onPress: onButtonPress
|
|
1431
1431
|
},
|
|
1432
|
-
/* @__PURE__ */
|
|
1432
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1433
1433
|
CustomTypography,
|
|
1434
1434
|
{
|
|
1435
1435
|
style: styles$r.buttonLeftText,
|
|
@@ -1437,7 +1437,7 @@ const PopUp = ({
|
|
|
1437
1437
|
text: buttonText
|
|
1438
1438
|
}
|
|
1439
1439
|
)
|
|
1440
|
-
) : null, rightButtonShown ? /* @__PURE__ */
|
|
1440
|
+
) : null, rightButtonShown ? /* @__PURE__ */ React__default.createElement(Pressable, { style: styles$r.button, onPress: onButtonPress }, /* @__PURE__ */ React__default.createElement(
|
|
1441
1441
|
CustomTypography,
|
|
1442
1442
|
{
|
|
1443
1443
|
style: styles$r.buttonText,
|
|
@@ -1478,7 +1478,7 @@ const CustomProgressBar = ({
|
|
|
1478
1478
|
return () => clearInterval(progressInterval);
|
|
1479
1479
|
}, [progress, value, increment, interval]);
|
|
1480
1480
|
const showPercentage = () => {
|
|
1481
|
-
return /* @__PURE__ */
|
|
1481
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: styles$q.flexDirection }, /* @__PURE__ */ React__default.createElement(
|
|
1482
1482
|
CustomText$1,
|
|
1483
1483
|
{
|
|
1484
1484
|
text: `${value}%`,
|
|
@@ -1486,7 +1486,7 @@ const CustomProgressBar = ({
|
|
|
1486
1486
|
textColor: "CONTENT_PRIMARY",
|
|
1487
1487
|
style: valueTextStyle
|
|
1488
1488
|
}
|
|
1489
|
-
), percentageText ? /* @__PURE__ */
|
|
1489
|
+
), percentageText ? /* @__PURE__ */ React__default.createElement(
|
|
1490
1490
|
CustomText$1,
|
|
1491
1491
|
{
|
|
1492
1492
|
text: percentageText,
|
|
@@ -1498,7 +1498,7 @@ const CustomProgressBar = ({
|
|
|
1498
1498
|
const renderProgressBar = () => {
|
|
1499
1499
|
switch (type) {
|
|
1500
1500
|
case ShapeType.LINE:
|
|
1501
|
-
return /* @__PURE__ */
|
|
1501
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
1502
1502
|
Progress.Bar,
|
|
1503
1503
|
{
|
|
1504
1504
|
progress: progress / 100,
|
|
@@ -1512,7 +1512,7 @@ const CustomProgressBar = ({
|
|
|
1512
1512
|
}
|
|
1513
1513
|
);
|
|
1514
1514
|
case ShapeType.CIRCLE:
|
|
1515
|
-
return /* @__PURE__ */
|
|
1515
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
1516
1516
|
Progress.Circle,
|
|
1517
1517
|
{
|
|
1518
1518
|
progress: progress / 100,
|
|
@@ -1530,7 +1530,7 @@ const CustomProgressBar = ({
|
|
|
1530
1530
|
return null;
|
|
1531
1531
|
}
|
|
1532
1532
|
};
|
|
1533
|
-
return /* @__PURE__ */
|
|
1533
|
+
return /* @__PURE__ */ React__default.createElement(View, { testID: "custom-progress-bar" }, renderProgressBar());
|
|
1534
1534
|
};
|
|
1535
1535
|
const styles$q = StyleSheet.create({
|
|
1536
1536
|
flexDirection: {
|
|
@@ -1563,19 +1563,19 @@ const splitRating = (rating) => {
|
|
|
1563
1563
|
const drawStar = (starIndex, ratingArray, size, fullStarIcon, halfStarIcon, fullStarColor, emptyStarColor) => {
|
|
1564
1564
|
const [fullStars, decimalPart] = ratingArray;
|
|
1565
1565
|
if (starIndex <= fullStars) {
|
|
1566
|
-
return
|
|
1566
|
+
return React__default.cloneElement(fullStarIcon, {
|
|
1567
1567
|
style: { height: size, width: size },
|
|
1568
1568
|
fill: fullStarColor,
|
|
1569
1569
|
testID: `star-${starIndex}`
|
|
1570
1570
|
});
|
|
1571
1571
|
} else if (starIndex === fullStars + 1 && decimalPart >= 0.5) {
|
|
1572
|
-
return
|
|
1572
|
+
return React__default.cloneElement(halfStarIcon, {
|
|
1573
1573
|
style: { height: size, width: size },
|
|
1574
1574
|
fill: fullStarColor,
|
|
1575
1575
|
testID: `star-${starIndex}`
|
|
1576
1576
|
});
|
|
1577
1577
|
} else {
|
|
1578
|
-
return
|
|
1578
|
+
return React__default.cloneElement(fullStarIcon, {
|
|
1579
1579
|
style: { height: size, width: size },
|
|
1580
1580
|
fill: emptyStarColor,
|
|
1581
1581
|
testID: `star-${starIndex}`
|
|
@@ -1606,10 +1606,10 @@ const Star = ({
|
|
|
1606
1606
|
emptyStarColor
|
|
1607
1607
|
);
|
|
1608
1608
|
stars.push(
|
|
1609
|
-
/* @__PURE__ */
|
|
1609
|
+
/* @__PURE__ */ React__default.createElement(View, { key: i, style: [styles$p.star, starStyle] }, starType)
|
|
1610
1610
|
);
|
|
1611
1611
|
}
|
|
1612
|
-
return /* @__PURE__ */
|
|
1612
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: styles$p.container, testID: "star" }, stars);
|
|
1613
1613
|
};
|
|
1614
1614
|
|
|
1615
1615
|
var styles$o = StyleSheet.create({
|
|
@@ -1654,7 +1654,7 @@ const Tabs = ({
|
|
|
1654
1654
|
onSelectionChange(selectedTabs);
|
|
1655
1655
|
}
|
|
1656
1656
|
};
|
|
1657
|
-
return /* @__PURE__ */
|
|
1657
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: [styles$o.container, style] }, data?.map(({ id, title, isSelected }) => /* @__PURE__ */ React__default.createElement(
|
|
1658
1658
|
Pressable,
|
|
1659
1659
|
{
|
|
1660
1660
|
key: id,
|
|
@@ -1665,7 +1665,7 @@ const Tabs = ({
|
|
|
1665
1665
|
},
|
|
1666
1666
|
onPress: () => handlePress(id)
|
|
1667
1667
|
},
|
|
1668
|
-
/* @__PURE__ */
|
|
1668
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1669
1669
|
CustomText$1,
|
|
1670
1670
|
{
|
|
1671
1671
|
variant: FontStyle.L2_REGULAR,
|
|
@@ -1734,7 +1734,7 @@ const Tags = ({
|
|
|
1734
1734
|
);
|
|
1735
1735
|
handleTagsChange(tag);
|
|
1736
1736
|
};
|
|
1737
|
-
return /* @__PURE__ */
|
|
1737
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
1738
1738
|
ScrollView,
|
|
1739
1739
|
{
|
|
1740
1740
|
testID,
|
|
@@ -1742,7 +1742,7 @@ const Tags = ({
|
|
|
1742
1742
|
contentContainerStyle: styles$n.contentContainer,
|
|
1743
1743
|
horizontal: false
|
|
1744
1744
|
},
|
|
1745
|
-
tags?.map((tag) => /* @__PURE__ */
|
|
1745
|
+
tags?.map((tag) => /* @__PURE__ */ React__default.createElement(
|
|
1746
1746
|
Pressable,
|
|
1747
1747
|
{
|
|
1748
1748
|
testID: `${testID}-${tag}-BTN`,
|
|
@@ -1754,7 +1754,7 @@ const Tags = ({
|
|
|
1754
1754
|
selectedTags.includes(tag) ? styles$n.selectedTag : styles$n.tagUnSelected
|
|
1755
1755
|
]
|
|
1756
1756
|
},
|
|
1757
|
-
/* @__PURE__ */
|
|
1757
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1758
1758
|
CustomTypography,
|
|
1759
1759
|
{
|
|
1760
1760
|
variant: selectedTags.includes(tag) ? "H9semiBold" : "P4regular",
|
|
@@ -1762,13 +1762,13 @@ const Tags = ({
|
|
|
1762
1762
|
text: tag
|
|
1763
1763
|
}
|
|
1764
1764
|
),
|
|
1765
|
-
selectedTags.includes(tag) && icon && /* @__PURE__ */
|
|
1765
|
+
selectedTags.includes(tag) && icon && /* @__PURE__ */ React__default.createElement(
|
|
1766
1766
|
Pressable,
|
|
1767
1767
|
{
|
|
1768
1768
|
testID: `${testID}-${tag}-PRESS`,
|
|
1769
1769
|
onPress: () => removeTag(tag)
|
|
1770
1770
|
},
|
|
1771
|
-
|
|
1771
|
+
React__default.cloneElement(icon, { style: [icon.props.style, iconStyle] })
|
|
1772
1772
|
)
|
|
1773
1773
|
))
|
|
1774
1774
|
);
|
|
@@ -1835,14 +1835,14 @@ const CustomSwitch = ({
|
|
|
1835
1835
|
const animatedStyle = {
|
|
1836
1836
|
transform: [{ translateX: animatedValue }]
|
|
1837
1837
|
};
|
|
1838
|
-
return /* @__PURE__ */
|
|
1838
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
1839
1839
|
Pressable,
|
|
1840
1840
|
{
|
|
1841
1841
|
onPress: toggleSwitch,
|
|
1842
1842
|
style: [styles$m.container, { width }],
|
|
1843
1843
|
testID: "custom-switch"
|
|
1844
1844
|
},
|
|
1845
|
-
/* @__PURE__ */
|
|
1845
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1846
1846
|
View,
|
|
1847
1847
|
{
|
|
1848
1848
|
style: [
|
|
@@ -1852,8 +1852,8 @@ const CustomSwitch = ({
|
|
|
1852
1852
|
}
|
|
1853
1853
|
]
|
|
1854
1854
|
},
|
|
1855
|
-
/* @__PURE__ */
|
|
1856
|
-
type !== ToggleButtonType.SMALL && /* @__PURE__ */
|
|
1855
|
+
/* @__PURE__ */ React__default.createElement(Animated.View, { style: [styles$m.thumb, animatedStyle] }),
|
|
1856
|
+
type !== ToggleButtonType.SMALL && /* @__PURE__ */ React__default.createElement(
|
|
1857
1857
|
CustomTypography,
|
|
1858
1858
|
{
|
|
1859
1859
|
variant: "B3semiBold",
|
|
@@ -1925,7 +1925,7 @@ const Accordion = ({
|
|
|
1925
1925
|
inputRange: [0, 1],
|
|
1926
1926
|
outputRange: [0, contentHeight]
|
|
1927
1927
|
});
|
|
1928
|
-
return /* @__PURE__ */
|
|
1928
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
1929
1929
|
View,
|
|
1930
1930
|
{
|
|
1931
1931
|
style: {
|
|
@@ -1935,13 +1935,13 @@ const Accordion = ({
|
|
|
1935
1935
|
},
|
|
1936
1936
|
testID: testId
|
|
1937
1937
|
},
|
|
1938
|
-
/* @__PURE__ */
|
|
1938
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1939
1939
|
Pressable,
|
|
1940
1940
|
{
|
|
1941
1941
|
style: [styles$l.header, headerStyle, disabled && { opacity: 0.5 }],
|
|
1942
1942
|
onPress: !disabled ? onToggle : void 0
|
|
1943
1943
|
},
|
|
1944
|
-
headerComponent ? headerComponent() : /* @__PURE__ */
|
|
1944
|
+
headerComponent ? headerComponent() : /* @__PURE__ */ React__default.createElement(
|
|
1945
1945
|
CustomTypography,
|
|
1946
1946
|
{
|
|
1947
1947
|
variant: titleVariant,
|
|
@@ -1953,14 +1953,14 @@ const Accordion = ({
|
|
|
1953
1953
|
}
|
|
1954
1954
|
}
|
|
1955
1955
|
),
|
|
1956
|
-
|
|
1956
|
+
React__default.cloneElement(icon, {
|
|
1957
1957
|
width: moderateScale(20),
|
|
1958
1958
|
height: moderateScale(20),
|
|
1959
1959
|
style: styles$l.iconStyle
|
|
1960
1960
|
})
|
|
1961
1961
|
),
|
|
1962
1962
|
optionalElement ? optionalElement() : null,
|
|
1963
|
-
isOpen && /* @__PURE__ */
|
|
1963
|
+
isOpen && /* @__PURE__ */ React__default.createElement(Animated.View, { style: [styles$l.content, { height: cardHeight }] }, /* @__PURE__ */ React__default.createElement(
|
|
1964
1964
|
View,
|
|
1965
1965
|
{
|
|
1966
1966
|
ref: contentRef,
|
|
@@ -2006,7 +2006,7 @@ const styles$k = StyleSheet.create({
|
|
|
2006
2006
|
}
|
|
2007
2007
|
});
|
|
2008
2008
|
|
|
2009
|
-
const Toast =
|
|
2009
|
+
const Toast = React__default.forwardRef(({ sucessIcon, errorIcon }, ref) => {
|
|
2010
2010
|
const [visible, setVisible] = useState(false);
|
|
2011
2011
|
const [message, setMessage] = useState("");
|
|
2012
2012
|
const [isSuccess, setIsSuccess] = useState(true);
|
|
@@ -2049,10 +2049,10 @@ const Toast = React.forwardRef(({ sucessIcon, errorIcon }, ref) => {
|
|
|
2049
2049
|
return () => clearInterval(interval);
|
|
2050
2050
|
}
|
|
2051
2051
|
}, [visible]);
|
|
2052
|
-
|
|
2052
|
+
React__default.useImperativeHandle(ref, () => ({
|
|
2053
2053
|
showToast
|
|
2054
2054
|
}));
|
|
2055
|
-
return visible ? /* @__PURE__ */
|
|
2055
|
+
return visible ? /* @__PURE__ */ React__default.createElement(
|
|
2056
2056
|
Animated.View,
|
|
2057
2057
|
{
|
|
2058
2058
|
style: [
|
|
@@ -2062,21 +2062,21 @@ const Toast = React.forwardRef(({ sucessIcon, errorIcon }, ref) => {
|
|
|
2062
2062
|
],
|
|
2063
2063
|
testID: "TOAST"
|
|
2064
2064
|
},
|
|
2065
|
-
/* @__PURE__ */
|
|
2065
|
+
/* @__PURE__ */ React__default.createElement(View, { style: styles$k.toastContainer }, /* @__PURE__ */ React__default.createElement(View, { style: styles$k.innerContainer }, isSuccess ? sucessIcon : errorIcon, /* @__PURE__ */ React__default.createElement(
|
|
2066
2066
|
CustomTypography,
|
|
2067
2067
|
{
|
|
2068
2068
|
variant: "L2_REGULAR",
|
|
2069
2069
|
text: message,
|
|
2070
2070
|
style: styles$k.messageText
|
|
2071
2071
|
}
|
|
2072
|
-
), btnText && /* @__PURE__ */
|
|
2072
|
+
), btnText && /* @__PURE__ */ React__default.createElement(
|
|
2073
2073
|
Pressable,
|
|
2074
2074
|
{
|
|
2075
2075
|
style: styles$k.button,
|
|
2076
2076
|
onPress: onBtnPress || void 0,
|
|
2077
2077
|
testID: "TOAST-BTN"
|
|
2078
2078
|
},
|
|
2079
|
-
/* @__PURE__ */
|
|
2079
|
+
/* @__PURE__ */ React__default.createElement(
|
|
2080
2080
|
CustomTypography,
|
|
2081
2081
|
{
|
|
2082
2082
|
variant: "L2_BOLD",
|
|
@@ -2085,7 +2085,7 @@ const Toast = React.forwardRef(({ sucessIcon, errorIcon }, ref) => {
|
|
|
2085
2085
|
}
|
|
2086
2086
|
)
|
|
2087
2087
|
))),
|
|
2088
|
-
/* @__PURE__ */
|
|
2088
|
+
/* @__PURE__ */ React__default.createElement(
|
|
2089
2089
|
Progress.Bar,
|
|
2090
2090
|
{
|
|
2091
2091
|
progress,
|
|
@@ -2140,7 +2140,7 @@ const CustomSearchBar = ({
|
|
|
2140
2140
|
pointerEvents,
|
|
2141
2141
|
...props
|
|
2142
2142
|
}) => {
|
|
2143
|
-
return /* @__PURE__ */
|
|
2143
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
2144
2144
|
Pressable,
|
|
2145
2145
|
{
|
|
2146
2146
|
testID,
|
|
@@ -2154,7 +2154,7 @@ const CustomSearchBar = ({
|
|
|
2154
2154
|
],
|
|
2155
2155
|
onPress: handlePress
|
|
2156
2156
|
},
|
|
2157
|
-
/* @__PURE__ */
|
|
2157
|
+
/* @__PURE__ */ React__default.createElement(
|
|
2158
2158
|
Pressable,
|
|
2159
2159
|
{
|
|
2160
2160
|
onPress: () => {
|
|
@@ -2163,13 +2163,13 @@ const CustomSearchBar = ({
|
|
|
2163
2163
|
},
|
|
2164
2164
|
style: searchIconStyle
|
|
2165
2165
|
},
|
|
2166
|
-
|
|
2166
|
+
React__default.cloneElement(searchIcon, {
|
|
2167
2167
|
width: moderateScale(24),
|
|
2168
2168
|
height: moderateScale(24),
|
|
2169
2169
|
style: [styles$j.searchIconStyle, searchIconStyle]
|
|
2170
2170
|
})
|
|
2171
2171
|
),
|
|
2172
|
-
/* @__PURE__ */
|
|
2172
|
+
/* @__PURE__ */ React__default.createElement(
|
|
2173
2173
|
TextInput,
|
|
2174
2174
|
{
|
|
2175
2175
|
...props,
|
|
@@ -2185,7 +2185,7 @@ const CustomSearchBar = ({
|
|
|
2185
2185
|
pointerEvents
|
|
2186
2186
|
}
|
|
2187
2187
|
),
|
|
2188
|
-
value && /* @__PURE__ */
|
|
2188
|
+
value && /* @__PURE__ */ React__default.createElement(
|
|
2189
2189
|
Pressable,
|
|
2190
2190
|
{
|
|
2191
2191
|
onPress: () => {
|
|
@@ -2194,7 +2194,7 @@ const CustomSearchBar = ({
|
|
|
2194
2194
|
},
|
|
2195
2195
|
style: crossIconStyle
|
|
2196
2196
|
},
|
|
2197
|
-
|
|
2197
|
+
React__default.cloneElement(rightIcon, {
|
|
2198
2198
|
// width: moderateScale(24),
|
|
2199
2199
|
// height: moderateScale(24),
|
|
2200
2200
|
style: [styles$j.crossIconStyle, crossIconStyle]
|
|
@@ -2231,7 +2231,7 @@ const CustomHeader = ({
|
|
|
2231
2231
|
onRightPress
|
|
2232
2232
|
}) => {
|
|
2233
2233
|
const { theme } = useTheme();
|
|
2234
|
-
return /* @__PURE__ */
|
|
2234
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
2235
2235
|
View,
|
|
2236
2236
|
{
|
|
2237
2237
|
style: {
|
|
@@ -2241,12 +2241,12 @@ const CustomHeader = ({
|
|
|
2241
2241
|
},
|
|
2242
2242
|
testID: testId
|
|
2243
2243
|
},
|
|
2244
|
-
/* @__PURE__ */
|
|
2244
|
+
/* @__PURE__ */ React__default.createElement(View, { style: styles$i.headderContainer }, showLeftIcon && leftIcon ? React__default.cloneElement(leftIcon, {
|
|
2245
2245
|
width: moderateScale(24),
|
|
2246
2246
|
height: moderateScale(24),
|
|
2247
2247
|
onPress: onLeftPress,
|
|
2248
2248
|
style: styles$i.leftIconStyle
|
|
2249
|
-
}) : null, /* @__PURE__ */
|
|
2249
|
+
}) : null, /* @__PURE__ */ React__default.createElement(
|
|
2250
2250
|
CustomTypography,
|
|
2251
2251
|
{
|
|
2252
2252
|
variant: "B2_REGULAR",
|
|
@@ -2254,7 +2254,7 @@ const CustomHeader = ({
|
|
|
2254
2254
|
style: { color: theme.CONTENT_PRIMARY }
|
|
2255
2255
|
}
|
|
2256
2256
|
)),
|
|
2257
|
-
showRightIcon && rightIcon ?
|
|
2257
|
+
showRightIcon && rightIcon ? React__default.cloneElement(rightIcon, {
|
|
2258
2258
|
width: moderateScale(24),
|
|
2259
2259
|
height: moderateScale(24),
|
|
2260
2260
|
onPress: onRightPress,
|
|
@@ -2311,7 +2311,7 @@ const SwipableList = (props) => {
|
|
|
2311
2311
|
onPress,
|
|
2312
2312
|
style,
|
|
2313
2313
|
testID
|
|
2314
|
-
}) => /* @__PURE__ */
|
|
2314
|
+
}) => /* @__PURE__ */ React__default.createElement(
|
|
2315
2315
|
Pressable,
|
|
2316
2316
|
{
|
|
2317
2317
|
testID,
|
|
@@ -2319,7 +2319,7 @@ const SwipableList = (props) => {
|
|
|
2319
2319
|
style: [styles$h.actionButton, style]
|
|
2320
2320
|
},
|
|
2321
2321
|
icon,
|
|
2322
|
-
/* @__PURE__ */
|
|
2322
|
+
/* @__PURE__ */ React__default.createElement(
|
|
2323
2323
|
CustomTypography,
|
|
2324
2324
|
{
|
|
2325
2325
|
variant: "L1_REGULAR",
|
|
@@ -2328,7 +2328,7 @@ const SwipableList = (props) => {
|
|
|
2328
2328
|
}
|
|
2329
2329
|
)
|
|
2330
2330
|
);
|
|
2331
|
-
const leftActionHandle = (item, leftPrimaryActionIcon, leftPrimaryActionTitle, leftSecondaryActionIcon, leftSecondaryActionTitle) => /* @__PURE__ */
|
|
2331
|
+
const leftActionHandle = (item, leftPrimaryActionIcon, leftPrimaryActionTitle, leftSecondaryActionIcon, leftSecondaryActionTitle) => /* @__PURE__ */ React__default.createElement(View, { style: styles$h.actionBtn }, leftPrimaryActionIcon && /* @__PURE__ */ React__default.createElement(
|
|
2332
2332
|
ActionButton,
|
|
2333
2333
|
{
|
|
2334
2334
|
icon: leftPrimaryActionIcon,
|
|
@@ -2337,7 +2337,7 @@ const SwipableList = (props) => {
|
|
|
2337
2337
|
style: leftPrimaryActionStyle,
|
|
2338
2338
|
testID: `${testId}-LEFT-PRIMARY-${item.id}`
|
|
2339
2339
|
}
|
|
2340
|
-
), leftSecondaryActionIcon && /* @__PURE__ */
|
|
2340
|
+
), leftSecondaryActionIcon && /* @__PURE__ */ React__default.createElement(
|
|
2341
2341
|
ActionButton,
|
|
2342
2342
|
{
|
|
2343
2343
|
icon: leftSecondaryActionIcon,
|
|
@@ -2347,7 +2347,7 @@ const SwipableList = (props) => {
|
|
|
2347
2347
|
testID: `${testId}-LEFT-SECONDARY-${item.id}`
|
|
2348
2348
|
}
|
|
2349
2349
|
));
|
|
2350
|
-
const rightActionHandle = (item) => /* @__PURE__ */
|
|
2350
|
+
const rightActionHandle = (item) => /* @__PURE__ */ React__default.createElement(View, { style: [styles$h.actionBtn, rightPrimaryActionStyle] }, rightPrimaryActionIcon && /* @__PURE__ */ React__default.createElement(
|
|
2351
2351
|
ActionButton,
|
|
2352
2352
|
{
|
|
2353
2353
|
icon: rightPrimaryActionIcon,
|
|
@@ -2357,7 +2357,7 @@ const SwipableList = (props) => {
|
|
|
2357
2357
|
testID: `${testId}-RIGHT-PRIMARY-${item.id}`
|
|
2358
2358
|
}
|
|
2359
2359
|
));
|
|
2360
|
-
const renderItem = ({ item }) => /* @__PURE__ */
|
|
2360
|
+
const renderItem = ({ item }) => /* @__PURE__ */ React__default.createElement(GestureHandlerRootView, { testID: `${testId}-LIST`, style: styles$h.container }, /* @__PURE__ */ React__default.createElement(
|
|
2361
2361
|
Swipeable,
|
|
2362
2362
|
{
|
|
2363
2363
|
renderLeftActions: () => leftActionHandle(
|
|
@@ -2371,13 +2371,13 @@ const SwipableList = (props) => {
|
|
|
2371
2371
|
},
|
|
2372
2372
|
props?.renderItem(item)
|
|
2373
2373
|
));
|
|
2374
|
-
return /* @__PURE__ */
|
|
2374
|
+
return /* @__PURE__ */ React__default.createElement(View, { testID: testId }, /* @__PURE__ */ React__default.createElement(
|
|
2375
2375
|
FlatList,
|
|
2376
2376
|
{
|
|
2377
2377
|
data,
|
|
2378
2378
|
renderItem,
|
|
2379
2379
|
keyExtractor: (item) => item.id,
|
|
2380
|
-
ItemSeparatorComponent: () => /* @__PURE__ */
|
|
2380
|
+
ItemSeparatorComponent: () => /* @__PURE__ */ React__default.createElement(
|
|
2381
2381
|
View,
|
|
2382
2382
|
{
|
|
2383
2383
|
style: {
|
|
@@ -2410,7 +2410,7 @@ const CustomIcon = ({
|
|
|
2410
2410
|
containerStyle,
|
|
2411
2411
|
titleStyle
|
|
2412
2412
|
}) => {
|
|
2413
|
-
return /* @__PURE__ */
|
|
2413
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
2414
2414
|
Pressable,
|
|
2415
2415
|
{
|
|
2416
2416
|
style: [styles$g.container, containerStyle],
|
|
@@ -2418,7 +2418,7 @@ const CustomIcon = ({
|
|
|
2418
2418
|
testID: testId
|
|
2419
2419
|
},
|
|
2420
2420
|
icon,
|
|
2421
|
-
title && /* @__PURE__ */
|
|
2421
|
+
title && /* @__PURE__ */ React__default.createElement(
|
|
2422
2422
|
CustomTypography,
|
|
2423
2423
|
{
|
|
2424
2424
|
variant: titleVariant,
|
|
@@ -2431,7 +2431,7 @@ const CustomIcon = ({
|
|
|
2431
2431
|
|
|
2432
2432
|
const HorizontalLine = ({ backgroundColor = "SURFACE_SECONDARY", style }) => {
|
|
2433
2433
|
const { theme } = useTheme();
|
|
2434
|
-
return /* @__PURE__ */
|
|
2434
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
2435
2435
|
View,
|
|
2436
2436
|
{
|
|
2437
2437
|
style: [
|
|
@@ -2461,7 +2461,7 @@ const Topic = ({
|
|
|
2461
2461
|
subTitleStyle
|
|
2462
2462
|
}) => {
|
|
2463
2463
|
const { theme } = useTheme();
|
|
2464
|
-
return /* @__PURE__ */
|
|
2464
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
2465
2465
|
TouchableOpacity,
|
|
2466
2466
|
{
|
|
2467
2467
|
style: [
|
|
@@ -2471,9 +2471,9 @@ const Topic = ({
|
|
|
2471
2471
|
],
|
|
2472
2472
|
onPress
|
|
2473
2473
|
},
|
|
2474
|
-
rightIcon && /* @__PURE__ */
|
|
2475
|
-
/* @__PURE__ */
|
|
2476
|
-
/* @__PURE__ */
|
|
2474
|
+
rightIcon && /* @__PURE__ */ React__default.createElement(View, { style: styles$e.rightIconContainer }, React__default.cloneElement(rightIcon)),
|
|
2475
|
+
/* @__PURE__ */ React__default.createElement(View, { style: styles$e.timeContainer }, time && /* @__PURE__ */ React__default.createElement(CustomText$1, { text: time, variant: FontStyle.L2_REGULAR })),
|
|
2476
|
+
/* @__PURE__ */ React__default.createElement(View, { style: styles$e.textContainer }, /* @__PURE__ */ React__default.createElement(View, { style: styles$e.paymentView }, statusImage && /* @__PURE__ */ React__default.createElement(View, null, React__default.cloneElement(statusImage)), subTitle && /* @__PURE__ */ React__default.createElement(
|
|
2477
2477
|
CustomText$1,
|
|
2478
2478
|
{
|
|
2479
2479
|
style: [styles$e.subTitle, subTitleStyle],
|
|
@@ -2481,7 +2481,7 @@ const Topic = ({
|
|
|
2481
2481
|
variant: FontStyle.L2_REGULAR,
|
|
2482
2482
|
textColor: Theme.CONTENT_PRIMARY
|
|
2483
2483
|
}
|
|
2484
|
-
)), /* @__PURE__ */
|
|
2484
|
+
)), /* @__PURE__ */ React__default.createElement(
|
|
2485
2485
|
CustomText$1,
|
|
2486
2486
|
{
|
|
2487
2487
|
text: title,
|
|
@@ -2582,27 +2582,27 @@ const ContactModal = ({
|
|
|
2582
2582
|
onClose();
|
|
2583
2583
|
};
|
|
2584
2584
|
const emailOptions = ["Mail", "Gmail", "Outlook"];
|
|
2585
|
-
const renderEmailOptions = () => /* @__PURE__ */
|
|
2585
|
+
const renderEmailOptions = () => /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2586
2586
|
CustomText$1,
|
|
2587
2587
|
{
|
|
2588
2588
|
style: styles$d.title,
|
|
2589
2589
|
text: "Open email app",
|
|
2590
2590
|
variant: "L2_REGULAR"
|
|
2591
2591
|
}
|
|
2592
|
-
), /* @__PURE__ */
|
|
2592
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
2593
2593
|
CustomText$1,
|
|
2594
2594
|
{
|
|
2595
2595
|
style: styles$d.subtitle,
|
|
2596
2596
|
text: "Which app would you like to open?",
|
|
2597
2597
|
variant: "L2_REGULAR"
|
|
2598
2598
|
}
|
|
2599
|
-
), 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(
|
|
2600
2600
|
Pressable,
|
|
2601
2601
|
{
|
|
2602
2602
|
onPress: () => handleOptionPress(),
|
|
2603
2603
|
style: styles$d.optionButton
|
|
2604
2604
|
},
|
|
2605
|
-
/* @__PURE__ */
|
|
2605
|
+
/* @__PURE__ */ React__default.createElement(
|
|
2606
2606
|
CustomText$1,
|
|
2607
2607
|
{
|
|
2608
2608
|
style: styles$d.optionText,
|
|
@@ -2611,14 +2611,14 @@ const ContactModal = ({
|
|
|
2611
2611
|
}
|
|
2612
2612
|
)
|
|
2613
2613
|
))));
|
|
2614
|
-
const renderContent = () => /* @__PURE__ */
|
|
2614
|
+
const renderContent = () => /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(View, { style: styles$d.viewContainer }, isMailOpen ? renderEmailOptions() : /* @__PURE__ */ React__default.createElement(Pressable, { onPress: handleCall, style: styles$d.optionButton }, /* @__PURE__ */ React__default.createElement(
|
|
2615
2615
|
CustomText$1,
|
|
2616
2616
|
{
|
|
2617
2617
|
style: styles$d.optionText,
|
|
2618
2618
|
text: `Call ${phoneNumber}`,
|
|
2619
2619
|
variant: "B3_BOLD"
|
|
2620
2620
|
}
|
|
2621
|
-
))), /* @__PURE__ */
|
|
2621
|
+
))), /* @__PURE__ */ React__default.createElement(Pressable, { onPress: onClose, style: styles$d.cancelButton }, /* @__PURE__ */ React__default.createElement(
|
|
2622
2622
|
CustomText$1,
|
|
2623
2623
|
{
|
|
2624
2624
|
style: styles$d.cancelText,
|
|
@@ -2626,7 +2626,7 @@ const ContactModal = ({
|
|
|
2626
2626
|
variant: "B2_REGULAR"
|
|
2627
2627
|
}
|
|
2628
2628
|
)));
|
|
2629
|
-
return /* @__PURE__ */
|
|
2629
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: styles$d.container }, /* @__PURE__ */ React__default.createElement(
|
|
2630
2630
|
Modal,
|
|
2631
2631
|
{
|
|
2632
2632
|
animationType: "slide",
|
|
@@ -2634,7 +2634,7 @@ const ContactModal = ({
|
|
|
2634
2634
|
visible,
|
|
2635
2635
|
onRequestClose: onClose
|
|
2636
2636
|
},
|
|
2637
|
-
/* @__PURE__ */
|
|
2637
|
+
/* @__PURE__ */ React__default.createElement(View, { style: styles$d.modalContainer }, /* @__PURE__ */ React__default.createElement(View, { style: styles$d.modalContent }, renderContent()))
|
|
2638
2638
|
));
|
|
2639
2639
|
};
|
|
2640
2640
|
const styles$d = StyleSheet.create({
|
|
@@ -2771,7 +2771,7 @@ const DateRangePicker = (props) => {
|
|
|
2771
2771
|
return markedDates;
|
|
2772
2772
|
};
|
|
2773
2773
|
const isButtonDisabled = !selectedRange.startDate || !selectedRange.endDate;
|
|
2774
|
-
return /* @__PURE__ */
|
|
2774
|
+
return /* @__PURE__ */ React__default.createElement(View, null, /* @__PURE__ */ React__default.createElement(
|
|
2775
2775
|
Calendar,
|
|
2776
2776
|
{
|
|
2777
2777
|
markedDates: getMarkedDates(),
|
|
@@ -2794,7 +2794,7 @@ const DateRangePicker = (props) => {
|
|
|
2794
2794
|
firstDay: 1,
|
|
2795
2795
|
...props
|
|
2796
2796
|
}
|
|
2797
|
-
), /* @__PURE__ */
|
|
2797
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
2798
2798
|
CustomButton$1,
|
|
2799
2799
|
{
|
|
2800
2800
|
title: btnTitle,
|
|
@@ -2825,7 +2825,7 @@ const OurOfficesButton = ({
|
|
|
2825
2825
|
descriptionColor = "CONTENT_SECONDARY"
|
|
2826
2826
|
}) => {
|
|
2827
2827
|
const { theme } = useTheme();
|
|
2828
|
-
return /* @__PURE__ */
|
|
2828
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
2829
2829
|
TouchableOpacity,
|
|
2830
2830
|
{
|
|
2831
2831
|
style: [
|
|
@@ -2835,8 +2835,8 @@ const OurOfficesButton = ({
|
|
|
2835
2835
|
],
|
|
2836
2836
|
onPress
|
|
2837
2837
|
},
|
|
2838
|
-
leftIcon && /* @__PURE__ */
|
|
2839
|
-
/* @__PURE__ */
|
|
2838
|
+
leftIcon && /* @__PURE__ */ React__default.createElement(View, { style: styles$b.iconContainer }, React__default.cloneElement(leftIcon)),
|
|
2839
|
+
/* @__PURE__ */ React__default.createElement(View, { style: styles$b.textContainer }, /* @__PURE__ */ React__default.createElement(
|
|
2840
2840
|
CustomText$1,
|
|
2841
2841
|
{
|
|
2842
2842
|
text: title,
|
|
@@ -2844,7 +2844,7 @@ const OurOfficesButton = ({
|
|
|
2844
2844
|
textColor: titleColor,
|
|
2845
2845
|
style: styles$b.textView
|
|
2846
2846
|
}
|
|
2847
|
-
), /* @__PURE__ */
|
|
2847
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
2848
2848
|
CustomText$1,
|
|
2849
2849
|
{
|
|
2850
2850
|
text: description,
|
|
@@ -2853,7 +2853,7 @@ const OurOfficesButton = ({
|
|
|
2853
2853
|
style: styles$b.flexWrap
|
|
2854
2854
|
}
|
|
2855
2855
|
)),
|
|
2856
|
-
rightIcon && /* @__PURE__ */
|
|
2856
|
+
rightIcon && /* @__PURE__ */ React__default.createElement(View, { style: styles$b.rightIconContainer }, React__default.cloneElement(rightIcon))
|
|
2857
2857
|
);
|
|
2858
2858
|
};
|
|
2859
2859
|
const styles$b = StyleSheet.create({
|
|
@@ -2909,7 +2909,7 @@ const NotificationBandge = ({
|
|
|
2909
2909
|
if (notificationCount <= 0) {
|
|
2910
2910
|
return icon;
|
|
2911
2911
|
}
|
|
2912
|
-
return /* @__PURE__ */
|
|
2912
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: styles$a.iconContainer }, icon, /* @__PURE__ */ React__default.createElement(View, { style: styles$a.badge }, /* @__PURE__ */ React__default.createElement(Text, { style: [styles$a.badgeText] }, notificationCount > 99 ? "99+" : notificationCount)));
|
|
2913
2913
|
};
|
|
2914
2914
|
|
|
2915
2915
|
const ScrollableList = ({
|
|
@@ -2928,7 +2928,7 @@ const ScrollableList = ({
|
|
|
2928
2928
|
);
|
|
2929
2929
|
const { theme } = useTheme();
|
|
2930
2930
|
const styles = createStyles$2({ theme });
|
|
2931
|
-
return /* @__PURE__ */
|
|
2931
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: [styles.container, containerStyle] }, /* @__PURE__ */ React__default.createElement(
|
|
2932
2932
|
ScrollView,
|
|
2933
2933
|
{
|
|
2934
2934
|
horizontal: true,
|
|
@@ -2938,7 +2938,7 @@ const ScrollableList = ({
|
|
|
2938
2938
|
scrollViewContentStyle
|
|
2939
2939
|
]
|
|
2940
2940
|
},
|
|
2941
|
-
data?.map((item) => /* @__PURE__ */
|
|
2941
|
+
data?.map((item) => /* @__PURE__ */ React__default.createElement(
|
|
2942
2942
|
Pressable,
|
|
2943
2943
|
{
|
|
2944
2944
|
key: item.value,
|
|
@@ -2955,7 +2955,7 @@ const ScrollableList = ({
|
|
|
2955
2955
|
handleSelectCategory(item.name, item.value);
|
|
2956
2956
|
}
|
|
2957
2957
|
},
|
|
2958
|
-
/* @__PURE__ */
|
|
2958
|
+
/* @__PURE__ */ React__default.createElement(
|
|
2959
2959
|
CustomText$1,
|
|
2960
2960
|
{
|
|
2961
2961
|
text: item.name,
|
|
@@ -2963,7 +2963,7 @@ const ScrollableList = ({
|
|
|
2963
2963
|
textColor: (activeTab ?? selectedItem) === item.name ? selectedItemTextColor : defaultItemTextColor
|
|
2964
2964
|
}
|
|
2965
2965
|
),
|
|
2966
|
-
item?.isError && /* @__PURE__ */
|
|
2966
|
+
item?.isError && /* @__PURE__ */ React__default.createElement(View, { style: [styles.errorViewStyle] })
|
|
2967
2967
|
))
|
|
2968
2968
|
));
|
|
2969
2969
|
};
|
|
@@ -3057,7 +3057,7 @@ const FeedbackForm = ({
|
|
|
3057
3057
|
const maxChars = 200;
|
|
3058
3058
|
const { theme } = useTheme();
|
|
3059
3059
|
const styles = createStyles$1(theme);
|
|
3060
|
-
return /* @__PURE__ */
|
|
3060
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: styles.container }, /* @__PURE__ */ React__default.createElement(
|
|
3061
3061
|
CustomText$1,
|
|
3062
3062
|
{
|
|
3063
3063
|
text: title,
|
|
@@ -3065,7 +3065,7 @@ const FeedbackForm = ({
|
|
|
3065
3065
|
textColor: Theme.CONTENT_SECONDRY,
|
|
3066
3066
|
style: styles.headerText
|
|
3067
3067
|
}
|
|
3068
|
-
), /* @__PURE__ */
|
|
3068
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
3069
3069
|
TextInput,
|
|
3070
3070
|
{
|
|
3071
3071
|
style: [styles.textInput, { height: Math.max(100) }],
|
|
@@ -3076,7 +3076,7 @@ const FeedbackForm = ({
|
|
|
3076
3076
|
value: feedback,
|
|
3077
3077
|
onChangeText: (text) => setFeedback(text)
|
|
3078
3078
|
}
|
|
3079
|
-
), /* @__PURE__ */
|
|
3079
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
3080
3080
|
CustomText$1,
|
|
3081
3081
|
{
|
|
3082
3082
|
text: `${feedback.length}/${maxChars} characters`,
|
|
@@ -3084,14 +3084,14 @@ const FeedbackForm = ({
|
|
|
3084
3084
|
textColor: Theme.CONTENT_SECONDRY,
|
|
3085
3085
|
style: styles.charCounter
|
|
3086
3086
|
}
|
|
3087
|
-
), /* @__PURE__ */
|
|
3087
|
+
), /* @__PURE__ */ React__default.createElement(View, { style: styles.buttonContainer }, /* @__PURE__ */ React__default.createElement(Pressable, { style: styles.feedbackButton, onPress: handleSendFeedback }, /* @__PURE__ */ React__default.createElement(
|
|
3088
3088
|
CustomText$1,
|
|
3089
3089
|
{
|
|
3090
3090
|
text: leftBtnTxt,
|
|
3091
3091
|
variant: FontStyle.L1_REGULAR,
|
|
3092
3092
|
textColor: Theme.CONTENT_PRIMARY
|
|
3093
3093
|
}
|
|
3094
|
-
)), /* @__PURE__ */
|
|
3094
|
+
)), /* @__PURE__ */ React__default.createElement(Pressable, { style: styles.cancelButton, onPress: clearAllData }, /* @__PURE__ */ React__default.createElement(
|
|
3095
3095
|
CustomText$1,
|
|
3096
3096
|
{
|
|
3097
3097
|
text: rightBtnTxt,
|
|
@@ -3129,7 +3129,7 @@ const CountryDropDown = ({
|
|
|
3129
3129
|
setCallingCode(`+${country.callingCode[0]}`);
|
|
3130
3130
|
getCountryCode(`+${country.callingCode[0]}`);
|
|
3131
3131
|
};
|
|
3132
|
-
return /* @__PURE__ */
|
|
3132
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(View, { style: [styles$9.container, containerStyle] }, /* @__PURE__ */ React__default.createElement(View, { style: [styles$9.countryPickerContainer, countryPickerStyle] }, /* @__PURE__ */ React__default.createElement(
|
|
3133
3133
|
CountryPicker,
|
|
3134
3134
|
{
|
|
3135
3135
|
withFilter: true,
|
|
@@ -3139,21 +3139,21 @@ const CountryDropDown = ({
|
|
|
3139
3139
|
onSelect: handleSelect,
|
|
3140
3140
|
visible: pickerVisible
|
|
3141
3141
|
}
|
|
3142
|
-
), /* @__PURE__ */
|
|
3142
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
3143
3143
|
Text,
|
|
3144
3144
|
{
|
|
3145
3145
|
onPress: () => setPickerVisible(true),
|
|
3146
3146
|
style: [styles$9.callingCode, callingCodeStyle]
|
|
3147
3147
|
},
|
|
3148
3148
|
callingCode
|
|
3149
|
-
)), /* @__PURE__ */
|
|
3149
|
+
)), /* @__PURE__ */ React__default.createElement(View, { style: styles$9.flex }, (isFocused || value) && /* @__PURE__ */ React__default.createElement(
|
|
3150
3150
|
CustomTypography,
|
|
3151
3151
|
{
|
|
3152
3152
|
variant: "L2_REGULAR",
|
|
3153
3153
|
text: label ?? "",
|
|
3154
3154
|
style: styles$9.floatingLabel
|
|
3155
3155
|
}
|
|
3156
|
-
), /* @__PURE__ */
|
|
3156
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
3157
3157
|
TextInput,
|
|
3158
3158
|
{
|
|
3159
3159
|
style: [styles$9.input, inputStyle],
|
|
@@ -3166,7 +3166,7 @@ const CountryDropDown = ({
|
|
|
3166
3166
|
maxLength,
|
|
3167
3167
|
placeholderTextColor: theme.CONTENT_SECONDRY["light"]
|
|
3168
3168
|
}
|
|
3169
|
-
))), errorMessage ? /* @__PURE__ */
|
|
3169
|
+
))), errorMessage ? /* @__PURE__ */ React__default.createElement(
|
|
3170
3170
|
CustomTypography,
|
|
3171
3171
|
{
|
|
3172
3172
|
variant: "L2_REGULAR",
|
|
@@ -3247,7 +3247,7 @@ const CommonTextInput = (props) => {
|
|
|
3247
3247
|
rightIcon,
|
|
3248
3248
|
onRightIconPress
|
|
3249
3249
|
} = props;
|
|
3250
|
-
return /* @__PURE__ */
|
|
3250
|
+
return /* @__PURE__ */ React__default.createElement(Pressable, { onPress: handlePress, style: styles$8.container }, /* @__PURE__ */ React__default.createElement(
|
|
3251
3251
|
TextInput$1,
|
|
3252
3252
|
{
|
|
3253
3253
|
mode: "outlined",
|
|
@@ -3279,7 +3279,7 @@ const CommonTextInput = (props) => {
|
|
|
3279
3279
|
error: errorMessage?.length ? true : false,
|
|
3280
3280
|
multiline,
|
|
3281
3281
|
numberOfLines: multiline ? 4 : 1,
|
|
3282
|
-
right: rightIcon ? /* @__PURE__ */
|
|
3282
|
+
right: rightIcon ? /* @__PURE__ */ React__default.createElement(
|
|
3283
3283
|
TextInput$1.Icon,
|
|
3284
3284
|
{
|
|
3285
3285
|
icon: rightIcon,
|
|
@@ -3291,7 +3291,7 @@ const CommonTextInput = (props) => {
|
|
|
3291
3291
|
) : null,
|
|
3292
3292
|
...props
|
|
3293
3293
|
}
|
|
3294
|
-
), errorMessage ? /* @__PURE__ */
|
|
3294
|
+
), errorMessage ? /* @__PURE__ */ React__default.createElement(
|
|
3295
3295
|
CustomTypography,
|
|
3296
3296
|
{
|
|
3297
3297
|
variant: "L2_REGULAR",
|
|
@@ -3336,6 +3336,22 @@ const styles$8 = StyleSheet.create({
|
|
|
3336
3336
|
}
|
|
3337
3337
|
});
|
|
3338
3338
|
|
|
3339
|
+
var _path;
|
|
3340
|
+
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); }
|
|
3341
|
+
var SvgDropDownArrow = function SvgDropDownArrow(props) {
|
|
3342
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
3343
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3344
|
+
width: 24,
|
|
3345
|
+
height: 24,
|
|
3346
|
+
fill: "none"
|
|
3347
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
3348
|
+
stroke: "#000",
|
|
3349
|
+
strokeLinecap: "round",
|
|
3350
|
+
strokeLinejoin: "round",
|
|
3351
|
+
d: "M19.5 9 12 16.5 4.5 9"
|
|
3352
|
+
})));
|
|
3353
|
+
};
|
|
3354
|
+
|
|
3339
3355
|
const CustomDropdown = ({
|
|
3340
3356
|
data,
|
|
3341
3357
|
labelField = "label",
|
|
@@ -3362,7 +3378,7 @@ const CustomDropdown = ({
|
|
|
3362
3378
|
const [isFocus, setIsFocus] = useState(false);
|
|
3363
3379
|
const renderLabel = () => {
|
|
3364
3380
|
if (value || isFocus) {
|
|
3365
|
-
return /* @__PURE__ */
|
|
3381
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
3366
3382
|
Text,
|
|
3367
3383
|
{
|
|
3368
3384
|
style: [
|
|
@@ -3384,7 +3400,7 @@ const CustomDropdown = ({
|
|
|
3384
3400
|
onValueChange(newValue);
|
|
3385
3401
|
}
|
|
3386
3402
|
};
|
|
3387
|
-
return /* @__PURE__ */
|
|
3403
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: [styles$7.container, containerStyle] }, label && renderLabel(), /* @__PURE__ */ React__default.createElement(
|
|
3388
3404
|
Dropdown,
|
|
3389
3405
|
{
|
|
3390
3406
|
style: [
|
|
@@ -3409,7 +3425,7 @@ const CustomDropdown = ({
|
|
|
3409
3425
|
containerStyle: menuContainerStyle,
|
|
3410
3426
|
activeColor,
|
|
3411
3427
|
itemContainerStyle: [styles$7.itemListStyle, itemContainerStyle],
|
|
3412
|
-
renderRightIcon: () => /* @__PURE__ */
|
|
3428
|
+
renderRightIcon: () => /* @__PURE__ */ React__default.createElement(SvgDropDownArrow, null)
|
|
3413
3429
|
}
|
|
3414
3430
|
));
|
|
3415
3431
|
};
|
|
@@ -3505,20 +3521,20 @@ const CustomSwitchBtn = ({
|
|
|
3505
3521
|
const toggleSwitch = () => {
|
|
3506
3522
|
onValueChange(!value);
|
|
3507
3523
|
};
|
|
3508
|
-
return /* @__PURE__ */
|
|
3524
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
3509
3525
|
Pressable,
|
|
3510
3526
|
{
|
|
3511
3527
|
disabled,
|
|
3512
3528
|
onPress: toggleSwitch,
|
|
3513
3529
|
style: { ...styles$6.mainContainer, ...containerStyle }
|
|
3514
3530
|
},
|
|
3515
|
-
/* @__PURE__ */
|
|
3531
|
+
/* @__PURE__ */ React__default.createElement(
|
|
3516
3532
|
Animated.View,
|
|
3517
3533
|
{
|
|
3518
3534
|
style: [styles$6.circle, { transform: [{ translateX }], ...circleStyle }]
|
|
3519
3535
|
}
|
|
3520
3536
|
),
|
|
3521
|
-
/* @__PURE__ */
|
|
3537
|
+
/* @__PURE__ */ React__default.createElement(
|
|
3522
3538
|
CustomTypography,
|
|
3523
3539
|
{
|
|
3524
3540
|
style: [styles$6.activeText, value ? inActiveTextStyle : activeTextStyle],
|
|
@@ -3526,7 +3542,7 @@ const CustomSwitchBtn = ({
|
|
|
3526
3542
|
variant: activeTextVariant
|
|
3527
3543
|
}
|
|
3528
3544
|
),
|
|
3529
|
-
/* @__PURE__ */
|
|
3545
|
+
/* @__PURE__ */ React__default.createElement(
|
|
3530
3546
|
CustomTypography,
|
|
3531
3547
|
{
|
|
3532
3548
|
style: [
|
|
@@ -3582,7 +3598,7 @@ const TagsComponent = ({
|
|
|
3582
3598
|
}
|
|
3583
3599
|
return tagList;
|
|
3584
3600
|
};
|
|
3585
|
-
const renderTagItem = ({ item }) => /* @__PURE__ */
|
|
3601
|
+
const renderTagItem = ({ item }) => /* @__PURE__ */ React__default.createElement(
|
|
3586
3602
|
Pressable,
|
|
3587
3603
|
{
|
|
3588
3604
|
onPress: () => handleTagPress?.(item.name),
|
|
@@ -3591,7 +3607,7 @@ const TagsComponent = ({
|
|
|
3591
3607
|
selectedTag === item?.name ? [styles.selectedTagButton, selectedTagButton] : [styles.unselectedTagButton, unselectedTagButton]
|
|
3592
3608
|
]
|
|
3593
3609
|
},
|
|
3594
|
-
/* @__PURE__ */
|
|
3610
|
+
/* @__PURE__ */ React__default.createElement(
|
|
3595
3611
|
CustomText$1,
|
|
3596
3612
|
{
|
|
3597
3613
|
textColor: selectedTag === item?.name ? Theme.CONTENT_INVERTED : Theme.CONTENT_SECONDRY,
|
|
@@ -3600,9 +3616,9 @@ const TagsComponent = ({
|
|
|
3600
3616
|
},
|
|
3601
3617
|
item?.name
|
|
3602
3618
|
),
|
|
3603
|
-
selectedTag === item?.name && /* @__PURE__ */
|
|
3619
|
+
selectedTag === item?.name && /* @__PURE__ */ React__default.createElement(Text, { style: styles.closeButton }, "\u2715")
|
|
3604
3620
|
);
|
|
3605
|
-
return /* @__PURE__ */
|
|
3621
|
+
return /* @__PURE__ */ React__default.createElement(View, null, /* @__PURE__ */ React__default.createElement(
|
|
3606
3622
|
FlatList,
|
|
3607
3623
|
{
|
|
3608
3624
|
data: reorderedTags(),
|
|
@@ -3716,7 +3732,7 @@ const CustomDocumentPicker = ({
|
|
|
3716
3732
|
const removeDocument = useCallback(() => {
|
|
3717
3733
|
setDocDetails(void 0);
|
|
3718
3734
|
}, []);
|
|
3719
|
-
return /* @__PURE__ */
|
|
3735
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
3720
3736
|
View,
|
|
3721
3737
|
{
|
|
3722
3738
|
style: [
|
|
@@ -3726,14 +3742,14 @@ const CustomDocumentPicker = ({
|
|
|
3726
3742
|
containerStyle
|
|
3727
3743
|
]
|
|
3728
3744
|
},
|
|
3729
|
-
/* @__PURE__ */
|
|
3745
|
+
/* @__PURE__ */ React__default.createElement(Pressable, { style: styles$5.innerContainer, onPress: pickDocument }, docDetails ? fileIcon : uploadIcon, /* @__PURE__ */ React__default.createElement(View, { style: styles$5.titleContainer }, /* @__PURE__ */ React__default.createElement(
|
|
3730
3746
|
CustomTypography,
|
|
3731
3747
|
{
|
|
3732
3748
|
variant: FontStyle.L2_REGULAR,
|
|
3733
3749
|
text: docDetails?.name ?? title,
|
|
3734
3750
|
style: [{ color: theme.CONTENT_PRIMARY }, titleStyle]
|
|
3735
3751
|
}
|
|
3736
|
-
), !docDetails && /* @__PURE__ */
|
|
3752
|
+
), !docDetails && /* @__PURE__ */ React__default.createElement(
|
|
3737
3753
|
CustomTypography,
|
|
3738
3754
|
{
|
|
3739
3755
|
variant: FontStyle.L3_REGULAR,
|
|
@@ -3741,10 +3757,10 @@ const CustomDocumentPicker = ({
|
|
|
3741
3757
|
style: [{ color: theme.CONTENT_SECONDRY }, hintStyle]
|
|
3742
3758
|
}
|
|
3743
3759
|
))),
|
|
3744
|
-
docDetails &&
|
|
3760
|
+
docDetails && React__default.cloneElement(deleteIcon, {
|
|
3745
3761
|
onPress: removeDocument
|
|
3746
3762
|
})
|
|
3747
|
-
), error && /* @__PURE__ */
|
|
3763
|
+
), error && /* @__PURE__ */ React__default.createElement(
|
|
3748
3764
|
CustomTypography,
|
|
3749
3765
|
{
|
|
3750
3766
|
variant: FontStyle.L2_REGULAR,
|
|
@@ -3784,7 +3800,7 @@ const styles$4 = StyleSheet.create({
|
|
|
3784
3800
|
}
|
|
3785
3801
|
});
|
|
3786
3802
|
|
|
3787
|
-
const OTPInput =
|
|
3803
|
+
const OTPInput = React__default.forwardRef(
|
|
3788
3804
|
({
|
|
3789
3805
|
length = 4,
|
|
3790
3806
|
onComplete,
|
|
@@ -3827,7 +3843,7 @@ const OTPInput = React.forwardRef(
|
|
|
3827
3843
|
setIsResendOtpEnable(true);
|
|
3828
3844
|
}, 5e3);
|
|
3829
3845
|
};
|
|
3830
|
-
|
|
3846
|
+
React__default.useImperativeHandle(ref, () => ({
|
|
3831
3847
|
reset() {
|
|
3832
3848
|
setOTP("");
|
|
3833
3849
|
}
|
|
@@ -3858,7 +3874,7 @@ const OTPInput = React.forwardRef(
|
|
|
3858
3874
|
onComplete?.(otp);
|
|
3859
3875
|
}
|
|
3860
3876
|
}, [otp]);
|
|
3861
|
-
return /* @__PURE__ */
|
|
3877
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: { ...otpContainerStyle }, "data-testid": testId }, /* @__PURE__ */ React__default.createElement(
|
|
3862
3878
|
CustomTypography,
|
|
3863
3879
|
{
|
|
3864
3880
|
text: label,
|
|
@@ -3869,7 +3885,7 @@ const OTPInput = React.forwardRef(
|
|
|
3869
3885
|
...otpHeaderTextStyle
|
|
3870
3886
|
}
|
|
3871
3887
|
}
|
|
3872
|
-
), /* @__PURE__ */
|
|
3888
|
+
), /* @__PURE__ */ React__default.createElement(View, { style: { ...styles$4.textInputContainer } }, Array.from({ length }).map((_, index) => /* @__PURE__ */ React__default.createElement(
|
|
3873
3889
|
TextInput,
|
|
3874
3890
|
{
|
|
3875
3891
|
key: index?.toString(),
|
|
@@ -3890,14 +3906,14 @@ const OTPInput = React.forwardRef(
|
|
|
3890
3906
|
returnKeyType: otp.length === length ? "done" : "next",
|
|
3891
3907
|
selectionColor: theme$1.CONTENT_PRIMARY
|
|
3892
3908
|
}
|
|
3893
|
-
))), /* @__PURE__ */
|
|
3909
|
+
))), /* @__PURE__ */ React__default.createElement(
|
|
3894
3910
|
Pressable,
|
|
3895
3911
|
{
|
|
3896
3912
|
onPress: onClickResendOTP,
|
|
3897
3913
|
style: styles$4.resendOTPStyle,
|
|
3898
3914
|
disabled: !isResendOtpEnable
|
|
3899
3915
|
},
|
|
3900
|
-
/* @__PURE__ */
|
|
3916
|
+
/* @__PURE__ */ React__default.createElement(
|
|
3901
3917
|
CustomTypography,
|
|
3902
3918
|
{
|
|
3903
3919
|
text: resendText,
|
|
@@ -3909,7 +3925,7 @@ const OTPInput = React.forwardRef(
|
|
|
3909
3925
|
}
|
|
3910
3926
|
}
|
|
3911
3927
|
)
|
|
3912
|
-
), /* @__PURE__ */
|
|
3928
|
+
), /* @__PURE__ */ React__default.createElement(View, { style: styles$4.resendOtpContainer }, errorMessage ? /* @__PURE__ */ React__default.createElement(
|
|
3913
3929
|
CustomTypography,
|
|
3914
3930
|
{
|
|
3915
3931
|
text: errorMessage,
|
|
@@ -3919,7 +3935,7 @@ const OTPInput = React.forwardRef(
|
|
|
3919
3935
|
color: theme$1.ERROR
|
|
3920
3936
|
}
|
|
3921
3937
|
}
|
|
3922
|
-
) : /* @__PURE__ */
|
|
3938
|
+
) : /* @__PURE__ */ React__default.createElement(View, null)));
|
|
3923
3939
|
}
|
|
3924
3940
|
);
|
|
3925
3941
|
var index$4 = withThemeProvider(OTPInput);
|
|
@@ -4052,18 +4068,18 @@ const Stepper = ({
|
|
|
4052
4068
|
return { borderColor: theme.CONTENT_SECONDRY };
|
|
4053
4069
|
}
|
|
4054
4070
|
};
|
|
4055
|
-
return /* @__PURE__ */
|
|
4071
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: { ...styles$3.stepperContainer, ...containerStyle } }, data?.map((item, index) => {
|
|
4056
4072
|
const stepCircleStyle = renderCircleStyle(item?.status);
|
|
4057
4073
|
const dividerStyle = renderDividerStyle(item?.status);
|
|
4058
4074
|
const labelStyle = renderLableStyle(item?.status);
|
|
4059
4075
|
const lastViewStyle = index === data?.length - 1 ? styles$3.lastStepWrapper : null;
|
|
4060
|
-
return /* @__PURE__ */
|
|
4076
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
4061
4077
|
View,
|
|
4062
4078
|
{
|
|
4063
4079
|
key: index?.toString(),
|
|
4064
4080
|
style: { ...styles$3.stepperWrapper, ...lastViewStyle }
|
|
4065
4081
|
},
|
|
4066
|
-
/* @__PURE__ */
|
|
4082
|
+
/* @__PURE__ */ React__default.createElement(View, { style: styles$3.stepperSeparatorContainer }, /* @__PURE__ */ React__default.createElement(View, { style: { ...stepCircleStyle } }, showStepCount && /* @__PURE__ */ React__default.createElement(
|
|
4067
4083
|
CustomTypography,
|
|
4068
4084
|
{
|
|
4069
4085
|
text: item?.step,
|
|
@@ -4072,8 +4088,8 @@ const Stepper = ({
|
|
|
4072
4088
|
color: theme.CONTENT_PRIMARY
|
|
4073
4089
|
}
|
|
4074
4090
|
}
|
|
4075
|
-
), showStatus && item?.status === Status.Completed && completedStatusIcon), index != data?.length - 1 && /* @__PURE__ */
|
|
4076
|
-
/* @__PURE__ */
|
|
4091
|
+
), showStatus && item?.status === Status.Completed && completedStatusIcon), index != data?.length - 1 && /* @__PURE__ */ React__default.createElement(View, { style: { ...styles$3.separator, ...dividerStyle } })),
|
|
4092
|
+
/* @__PURE__ */ React__default.createElement(View, { style: styles$3.lableContainer }, /* @__PURE__ */ React__default.createElement(
|
|
4077
4093
|
CustomTypography,
|
|
4078
4094
|
{
|
|
4079
4095
|
text: item?.label,
|
|
@@ -4174,11 +4190,11 @@ const CustomSlideButton = ({
|
|
|
4174
4190
|
})
|
|
4175
4191
|
).current;
|
|
4176
4192
|
const { theme } = useTheme();
|
|
4177
|
-
return /* @__PURE__ */
|
|
4193
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: {
|
|
4178
4194
|
...styles$2.sliderContainer,
|
|
4179
4195
|
backgroundColor: theme.SURFACE_INVERTED,
|
|
4180
4196
|
...containerStyle
|
|
4181
|
-
}, onLayout: handleLayout, ref: cardRef }, /* @__PURE__ */
|
|
4197
|
+
}, onLayout: handleLayout, ref: cardRef }, /* @__PURE__ */ React__default.createElement(View, { style: styles$2.buttonTextContainer }, /* @__PURE__ */ React__default.createElement(
|
|
4182
4198
|
CustomTypography,
|
|
4183
4199
|
{
|
|
4184
4200
|
text: label,
|
|
@@ -4189,13 +4205,13 @@ const CustomSlideButton = ({
|
|
|
4189
4205
|
...textStyle
|
|
4190
4206
|
}
|
|
4191
4207
|
}
|
|
4192
|
-
)), /* @__PURE__ */
|
|
4208
|
+
)), /* @__PURE__ */ React__default.createElement(
|
|
4193
4209
|
Animated.View,
|
|
4194
4210
|
{
|
|
4195
4211
|
style: [styles$2.slider, { transform: [{ translateX: pan }] }],
|
|
4196
4212
|
...panResponder.panHandlers
|
|
4197
4213
|
},
|
|
4198
|
-
/* @__PURE__ */
|
|
4214
|
+
/* @__PURE__ */ React__default.createElement(
|
|
4199
4215
|
View,
|
|
4200
4216
|
{
|
|
4201
4217
|
style: {
|
|
@@ -4315,7 +4331,7 @@ const AppointmentCard = ({
|
|
|
4315
4331
|
directionText
|
|
4316
4332
|
}) => {
|
|
4317
4333
|
const { theme } = useTheme();
|
|
4318
|
-
return /* @__PURE__ */
|
|
4334
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
4319
4335
|
Accordion$1,
|
|
4320
4336
|
{
|
|
4321
4337
|
title,
|
|
@@ -4328,14 +4344,14 @@ const AppointmentCard = ({
|
|
|
4328
4344
|
borderBottomColor: theme.BORDER_SEPERATOR_HEADER
|
|
4329
4345
|
},
|
|
4330
4346
|
headerStyle: styles$1.accordionHeader,
|
|
4331
|
-
headerComponent: () => /* @__PURE__ */
|
|
4347
|
+
headerComponent: () => /* @__PURE__ */ React__default.createElement(View, { style: styles$1.accordionHeaderContent }, headerIcon, /* @__PURE__ */ React__default.createElement(View, { style: styles$1.accordionText }, /* @__PURE__ */ React__default.createElement(
|
|
4332
4348
|
CustomTypography,
|
|
4333
4349
|
{
|
|
4334
4350
|
text: headerTitle,
|
|
4335
4351
|
variant: FontStyle.L2_REGULAR,
|
|
4336
4352
|
style: { color: theme.CONTENT_SECONDRY }
|
|
4337
4353
|
}
|
|
4338
|
-
), /* @__PURE__ */
|
|
4354
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
4339
4355
|
CustomTypography,
|
|
4340
4356
|
{
|
|
4341
4357
|
text: headerSubtitle,
|
|
@@ -4345,7 +4361,7 @@ const AppointmentCard = ({
|
|
|
4345
4361
|
))),
|
|
4346
4362
|
icon
|
|
4347
4363
|
},
|
|
4348
|
-
/* @__PURE__ */
|
|
4364
|
+
/* @__PURE__ */ React__default.createElement(
|
|
4349
4365
|
View,
|
|
4350
4366
|
{
|
|
4351
4367
|
style: [
|
|
@@ -4353,14 +4369,14 @@ const AppointmentCard = ({
|
|
|
4353
4369
|
{ borderTopColor: theme.BORDER_SEPERATOR_HEADER }
|
|
4354
4370
|
]
|
|
4355
4371
|
},
|
|
4356
|
-
/* @__PURE__ */
|
|
4372
|
+
/* @__PURE__ */ React__default.createElement(View, { style: styles$1.appointmentInfo }, data.map(({ title: title2, value, isLocation, isStatus }) => /* @__PURE__ */ React__default.createElement(View, { style: styles$1.infoColumn, key: title2 }, /* @__PURE__ */ React__default.createElement(
|
|
4357
4373
|
CustomTypography,
|
|
4358
4374
|
{
|
|
4359
4375
|
text: title2,
|
|
4360
4376
|
variant: FontStyle.L3_REGULAR,
|
|
4361
4377
|
style: { color: theme.CONTENT_SECONDRY }
|
|
4362
4378
|
}
|
|
4363
|
-
), /* @__PURE__ */
|
|
4379
|
+
), /* @__PURE__ */ React__default.createElement(View, { style: styles$1.infoRow }, isStatus && statusIcon, /* @__PURE__ */ React__default.createElement(
|
|
4364
4380
|
CustomTypography,
|
|
4365
4381
|
{
|
|
4366
4382
|
text: value,
|
|
@@ -4369,7 +4385,7 @@ const AppointmentCard = ({
|
|
|
4369
4385
|
color: isStatus ? theme.WARNING : theme.CONTENT_PRIMARY
|
|
4370
4386
|
}
|
|
4371
4387
|
}
|
|
4372
|
-
)), isLocation && /* @__PURE__ */
|
|
4388
|
+
)), isLocation && /* @__PURE__ */ React__default.createElement(
|
|
4373
4389
|
CustomTypography,
|
|
4374
4390
|
{
|
|
4375
4391
|
text: directionText,
|
|
@@ -4381,7 +4397,7 @@ const AppointmentCard = ({
|
|
|
4381
4397
|
onPress: onDirectionPress
|
|
4382
4398
|
}
|
|
4383
4399
|
)))),
|
|
4384
|
-
/* @__PURE__ */
|
|
4400
|
+
/* @__PURE__ */ React__default.createElement(
|
|
4385
4401
|
View,
|
|
4386
4402
|
{
|
|
4387
4403
|
style: [
|
|
@@ -4392,7 +4408,7 @@ const AppointmentCard = ({
|
|
|
4392
4408
|
]
|
|
4393
4409
|
},
|
|
4394
4410
|
infoIcon,
|
|
4395
|
-
/* @__PURE__ */
|
|
4411
|
+
/* @__PURE__ */ React__default.createElement(
|
|
4396
4412
|
CustomTypography,
|
|
4397
4413
|
{
|
|
4398
4414
|
text: info,
|
|
@@ -4401,7 +4417,7 @@ const AppointmentCard = ({
|
|
|
4401
4417
|
}
|
|
4402
4418
|
)
|
|
4403
4419
|
),
|
|
4404
|
-
/* @__PURE__ */
|
|
4420
|
+
/* @__PURE__ */ React__default.createElement(
|
|
4405
4421
|
View,
|
|
4406
4422
|
{
|
|
4407
4423
|
style: [
|
|
@@ -4411,7 +4427,7 @@ const AppointmentCard = ({
|
|
|
4411
4427
|
}
|
|
4412
4428
|
]
|
|
4413
4429
|
},
|
|
4414
|
-
/* @__PURE__ */
|
|
4430
|
+
/* @__PURE__ */ React__default.createElement(
|
|
4415
4431
|
CustomTypography,
|
|
4416
4432
|
{
|
|
4417
4433
|
text: viewText,
|
|
@@ -4425,7 +4441,7 @@ const AppointmentCard = ({
|
|
|
4425
4441
|
onPress: onViewDetailsPress
|
|
4426
4442
|
}
|
|
4427
4443
|
),
|
|
4428
|
-
/* @__PURE__ */
|
|
4444
|
+
/* @__PURE__ */ React__default.createElement(View, { style: styles$1.actionIcons }, /* @__PURE__ */ React__default.createElement(
|
|
4429
4445
|
CustomIcon,
|
|
4430
4446
|
{
|
|
4431
4447
|
icon: deleteIcon,
|
|
@@ -4435,7 +4451,7 @@ const AppointmentCard = ({
|
|
|
4435
4451
|
},
|
|
4436
4452
|
onPress: onDeletePress
|
|
4437
4453
|
}
|
|
4438
|
-
), /* @__PURE__ */
|
|
4454
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
4439
4455
|
CustomIcon,
|
|
4440
4456
|
{
|
|
4441
4457
|
icon: editIcon,
|
|
@@ -4488,7 +4504,7 @@ const PropertyDetails = ({
|
|
|
4488
4504
|
onRightIconPress
|
|
4489
4505
|
}) => {
|
|
4490
4506
|
const { theme } = useTheme();
|
|
4491
|
-
return /* @__PURE__ */
|
|
4507
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
4492
4508
|
View,
|
|
4493
4509
|
{
|
|
4494
4510
|
style: {
|
|
@@ -4497,25 +4513,25 @@ const PropertyDetails = ({
|
|
|
4497
4513
|
borderColor: theme.BORDER_SEPERATOR_HEADER
|
|
4498
4514
|
}
|
|
4499
4515
|
},
|
|
4500
|
-
|
|
4516
|
+
React__default.cloneElement(icon, {
|
|
4501
4517
|
width: moderateScale(87),
|
|
4502
4518
|
height: moderateScale(87)
|
|
4503
4519
|
}),
|
|
4504
|
-
/* @__PURE__ */
|
|
4520
|
+
/* @__PURE__ */ React__default.createElement(View, { style: styles.propertyInfo }, brandIcon, /* @__PURE__ */ React__default.createElement(
|
|
4505
4521
|
CustomTypography,
|
|
4506
4522
|
{
|
|
4507
4523
|
text: title,
|
|
4508
4524
|
variant: FontStyle.L2_REGULAR,
|
|
4509
4525
|
style: { color: theme.CONTENT_PRIMARY }
|
|
4510
4526
|
}
|
|
4511
|
-
), /* @__PURE__ */
|
|
4527
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
4512
4528
|
CustomTypography,
|
|
4513
4529
|
{
|
|
4514
4530
|
text: subTitle,
|
|
4515
4531
|
variant: FontStyle.L1_REGULAR,
|
|
4516
4532
|
style: { color: theme.CONTENT_PRIMARY }
|
|
4517
4533
|
}
|
|
4518
|
-
), /* @__PURE__ */
|
|
4534
|
+
), /* @__PURE__ */ React__default.createElement(View, { style: styles.propertyNumber }, /* @__PURE__ */ React__default.createElement(
|
|
4519
4535
|
CustomTypography,
|
|
4520
4536
|
{
|
|
4521
4537
|
text: propertyNumber,
|
|
@@ -4525,7 +4541,7 @@ const PropertyDetails = ({
|
|
|
4525
4541
|
}
|
|
4526
4542
|
}
|
|
4527
4543
|
), hintIcon)),
|
|
4528
|
-
/* @__PURE__ */
|
|
4544
|
+
/* @__PURE__ */ React__default.createElement(
|
|
4529
4545
|
CustomIcon,
|
|
4530
4546
|
{
|
|
4531
4547
|
icon: btnIcon,
|