dhre-ui-kit 0.0.173 → 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.d.ts +6 -1
- package/lib/index.js +36 -7
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +236 -207
- 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';
|
|
@@ -108,6 +109,7 @@ var Theme = /* @__PURE__ */ ((Theme2) => {
|
|
|
108
109
|
Theme2["SUCCESS"] = "SUCCESS";
|
|
109
110
|
Theme2["INFO"] = "INFO";
|
|
110
111
|
Theme2["ERROR"] = "ERROR";
|
|
112
|
+
Theme2["TRANSPARENT_INVERTED"] = "TRANSPARENT_INVERTED";
|
|
111
113
|
return Theme2;
|
|
112
114
|
})(Theme || {});
|
|
113
115
|
|
|
@@ -239,6 +241,10 @@ const theme = {
|
|
|
239
241
|
[Theme.ERROR]: {
|
|
240
242
|
light: "#EB0542",
|
|
241
243
|
dark: "#EB0542"
|
|
244
|
+
},
|
|
245
|
+
[Theme.TRANSPARENT_INVERTED]: {
|
|
246
|
+
light: "#68686833",
|
|
247
|
+
dark: "#FFFFFF33"
|
|
242
248
|
}
|
|
243
249
|
};
|
|
244
250
|
|
|
@@ -249,7 +255,7 @@ const ThemeProvider = ({ children }) => {
|
|
|
249
255
|
acc[key] = theme[key][mode];
|
|
250
256
|
return acc;
|
|
251
257
|
}, {});
|
|
252
|
-
return /* @__PURE__ */
|
|
258
|
+
return /* @__PURE__ */ React__default.createElement(ThemeContext.Provider, { value: { theme: filteredTheme, mode } }, children);
|
|
253
259
|
};
|
|
254
260
|
const useTheme = () => {
|
|
255
261
|
const context = useContext(ThemeContext);
|
|
@@ -260,7 +266,7 @@ const useTheme = () => {
|
|
|
260
266
|
};
|
|
261
267
|
|
|
262
268
|
const withThemeProvider = (Component) => {
|
|
263
|
-
return (props) => /* @__PURE__ */
|
|
269
|
+
return (props) => /* @__PURE__ */ React__default.createElement(ThemeProvider, null, /* @__PURE__ */ React__default.createElement(Component, { ...props }));
|
|
264
270
|
};
|
|
265
271
|
|
|
266
272
|
const { width, height } = Dimensions.get("window");
|
|
@@ -324,7 +330,7 @@ const CustomTypography = ({
|
|
|
324
330
|
...props
|
|
325
331
|
}) => {
|
|
326
332
|
const textStyle = FONT_STYLES[variant];
|
|
327
|
-
return /* @__PURE__ */
|
|
333
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
328
334
|
Text,
|
|
329
335
|
{
|
|
330
336
|
testID,
|
|
@@ -346,7 +352,7 @@ const CustomText = ({
|
|
|
346
352
|
...props
|
|
347
353
|
}) => {
|
|
348
354
|
const { theme } = useTheme();
|
|
349
|
-
return /* @__PURE__ */
|
|
355
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
350
356
|
CustomTypography,
|
|
351
357
|
{
|
|
352
358
|
variant,
|
|
@@ -569,15 +575,15 @@ const Badge = ({
|
|
|
569
575
|
iconStyle,
|
|
570
576
|
handleIconPress
|
|
571
577
|
}) => {
|
|
572
|
-
return /* @__PURE__ */
|
|
578
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
573
579
|
Pressable,
|
|
574
580
|
{
|
|
575
581
|
style: [styles$A.badge, commonStyles.centerRow, style],
|
|
576
582
|
testID: "BADGE",
|
|
577
583
|
onPress: handleIconPress
|
|
578
584
|
},
|
|
579
|
-
iconName && /* @__PURE__ */
|
|
580
|
-
text && /* @__PURE__ */
|
|
585
|
+
iconName && /* @__PURE__ */ React__default.createElement(View, { style: [styles$A.icon, iconStyle] }, React__default.cloneElement(iconName)),
|
|
586
|
+
text && /* @__PURE__ */ React__default.createElement(
|
|
581
587
|
CustomTypography,
|
|
582
588
|
{
|
|
583
589
|
variant: "B3semiBold",
|
|
@@ -655,7 +661,7 @@ const BottomDrawer = ({
|
|
|
655
661
|
toggleModal();
|
|
656
662
|
}
|
|
657
663
|
};
|
|
658
|
-
return /* @__PURE__ */
|
|
664
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
659
665
|
Modal,
|
|
660
666
|
{
|
|
661
667
|
animationType: "slide",
|
|
@@ -663,32 +669,32 @@ const BottomDrawer = ({
|
|
|
663
669
|
visible: isModalVisible,
|
|
664
670
|
onRequestClose: toggleModal
|
|
665
671
|
},
|
|
666
|
-
/* @__PURE__ */
|
|
672
|
+
/* @__PURE__ */ React__default.createElement(PanGestureHandler, { onGestureEvent: onSwipDown }, /* @__PURE__ */ React__default.createElement(
|
|
667
673
|
KeyboardAvoidingView,
|
|
668
674
|
{
|
|
669
675
|
behavior: Platform.OS === "ios" ? "padding" : "height",
|
|
670
676
|
style: { flex: 1 }
|
|
671
677
|
},
|
|
672
|
-
/* @__PURE__ */
|
|
678
|
+
/* @__PURE__ */ React__default.createElement(View, { style: [styles$z.mainContainer, style], testID }, showBlurView ? /* @__PURE__ */ React__default.createElement(
|
|
673
679
|
BlurView,
|
|
674
680
|
{
|
|
675
681
|
style: [styles$z.blurView, blurViewStyle],
|
|
676
682
|
blurType,
|
|
677
683
|
blurAmount
|
|
678
684
|
}
|
|
679
|
-
) : 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, {
|
|
680
686
|
width: moderateScale(24),
|
|
681
687
|
height: moderateScale(24),
|
|
682
688
|
style: styles$z.leftIconStyle,
|
|
683
689
|
onPress: onLeftIconPress
|
|
684
|
-
}) : null, /* @__PURE__ */
|
|
690
|
+
}) : null, /* @__PURE__ */ React__default.createElement(
|
|
685
691
|
CustomTypography,
|
|
686
692
|
{
|
|
687
693
|
variant: titleVariant,
|
|
688
694
|
text: title,
|
|
689
695
|
style: { ...styles$z.title, ...titleStyle }
|
|
690
696
|
}
|
|
691
|
-
), showRightIcon && rightIcon ?
|
|
697
|
+
), showRightIcon && rightIcon ? React__default.cloneElement(rightIcon, {
|
|
692
698
|
width: moderateScale(24),
|
|
693
699
|
height: moderateScale(24),
|
|
694
700
|
style: styles$z.rightIconStyle,
|
|
@@ -713,7 +719,7 @@ const styles$y = StyleSheet.create({
|
|
|
713
719
|
|
|
714
720
|
const CustomLoader = ({ loading }) => {
|
|
715
721
|
if (!loading) return null;
|
|
716
|
-
return /* @__PURE__ */
|
|
722
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: styles$y.container }, /* @__PURE__ */ React__default.createElement(ActivityIndicator, { size: "large", color: "#686868" }));
|
|
717
723
|
};
|
|
718
724
|
|
|
719
725
|
const CustomButton = ({
|
|
@@ -734,7 +740,7 @@ const CustomButton = ({
|
|
|
734
740
|
isLoading = false
|
|
735
741
|
}) => {
|
|
736
742
|
const { theme } = useTheme();
|
|
737
|
-
return /* @__PURE__ */
|
|
743
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
738
744
|
Pressable,
|
|
739
745
|
{
|
|
740
746
|
testID,
|
|
@@ -751,8 +757,8 @@ const CustomButton = ({
|
|
|
751
757
|
onPress,
|
|
752
758
|
disabled
|
|
753
759
|
},
|
|
754
|
-
imagePosition === "left" && leftIcon && /* @__PURE__ */
|
|
755
|
-
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(
|
|
756
762
|
CustomText$1,
|
|
757
763
|
{
|
|
758
764
|
text: title,
|
|
@@ -766,7 +772,7 @@ const CustomButton = ({
|
|
|
766
772
|
textColor: titleColor
|
|
767
773
|
}
|
|
768
774
|
),
|
|
769
|
-
imagePosition === "right" && rightIcon && /* @__PURE__ */
|
|
775
|
+
imagePosition === "right" && rightIcon && /* @__PURE__ */ React__default.createElement(View, { style: iconStyle }, React__default.cloneElement(rightIcon, { width: 20, height: 20 }))
|
|
770
776
|
);
|
|
771
777
|
};
|
|
772
778
|
const styles$x = StyleSheet.create({
|
|
@@ -846,42 +852,42 @@ const Cards = ({
|
|
|
846
852
|
testID,
|
|
847
853
|
onButtonPress
|
|
848
854
|
}) => {
|
|
849
|
-
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(
|
|
850
856
|
CustomTypography,
|
|
851
857
|
{
|
|
852
858
|
variant: "P2regular",
|
|
853
859
|
style: styles$w.title,
|
|
854
860
|
text: topLeftTitle
|
|
855
861
|
}
|
|
856
|
-
)) : null, title ? /* @__PURE__ */
|
|
862
|
+
)) : null, title ? /* @__PURE__ */ React__default.createElement(
|
|
857
863
|
CustomTypography,
|
|
858
864
|
{
|
|
859
865
|
variant: "H6bold",
|
|
860
866
|
style: styles$w.subTitleBelow,
|
|
861
867
|
text: title
|
|
862
868
|
}
|
|
863
|
-
) : null, subtitle ? /* @__PURE__ */
|
|
869
|
+
) : null, subtitle ? /* @__PURE__ */ React__default.createElement(
|
|
864
870
|
CustomTypography,
|
|
865
871
|
{
|
|
866
872
|
variant: "P3regular",
|
|
867
873
|
style: styles$w.subtitle,
|
|
868
874
|
text: subtitle
|
|
869
875
|
}
|
|
870
|
-
) : null, /* @__PURE__ */
|
|
876
|
+
) : null, /* @__PURE__ */ React__default.createElement(View, { style: styles$w.leftBottomView }, iconSource ? iconSource : null, iconTitle ? /* @__PURE__ */ React__default.createElement(
|
|
871
877
|
CustomTypography,
|
|
872
878
|
{
|
|
873
879
|
variant: "P3regular",
|
|
874
880
|
style: styles$w.subTitleLeftBelow,
|
|
875
881
|
text: iconTitle
|
|
876
882
|
}
|
|
877
|
-
) : null), buttonShown ? /* @__PURE__ */
|
|
883
|
+
) : null), buttonShown ? /* @__PURE__ */ React__default.createElement(
|
|
878
884
|
Pressable,
|
|
879
885
|
{
|
|
880
886
|
testID: "Button-Press",
|
|
881
887
|
style: styles$w.button,
|
|
882
888
|
onPress: onButtonPress
|
|
883
889
|
},
|
|
884
|
-
/* @__PURE__ */
|
|
890
|
+
/* @__PURE__ */ React__default.createElement(
|
|
885
891
|
CustomTypography,
|
|
886
892
|
{
|
|
887
893
|
variant: "B2semiBold",
|
|
@@ -942,7 +948,7 @@ const Checkbox = ({
|
|
|
942
948
|
setChecked(!checked);
|
|
943
949
|
onCheck && onCheck(!checked);
|
|
944
950
|
};
|
|
945
|
-
return /* @__PURE__ */
|
|
951
|
+
return /* @__PURE__ */ React__default.createElement(View, { testID, style: containerStyle }, /* @__PURE__ */ React__default.createElement(
|
|
946
952
|
Pressable,
|
|
947
953
|
{
|
|
948
954
|
testID: "Checkbox-Press",
|
|
@@ -950,8 +956,8 @@ const Checkbox = ({
|
|
|
950
956
|
disabled: disable,
|
|
951
957
|
style: styles$v.directionStyle
|
|
952
958
|
},
|
|
953
|
-
/* @__PURE__ */
|
|
954
|
-
/* @__PURE__ */
|
|
959
|
+
/* @__PURE__ */ React__default.createElement(View, { style: styles$v.checkboxContainer }, React__default.cloneElement(checked ? checkedIcon : uncheckedIcon)),
|
|
960
|
+
/* @__PURE__ */ React__default.createElement(
|
|
955
961
|
CustomTypography,
|
|
956
962
|
{
|
|
957
963
|
variant: titleVariant,
|
|
@@ -1012,26 +1018,26 @@ const CustomDropdown$1 = ({
|
|
|
1012
1018
|
downArrowIcon
|
|
1013
1019
|
}) => {
|
|
1014
1020
|
const [showOptions, setShowOptions] = useState(false);
|
|
1015
|
-
return /* @__PURE__ */
|
|
1021
|
+
return /* @__PURE__ */ React__default.createElement(View, { testID: testId }, /* @__PURE__ */ React__default.createElement(
|
|
1016
1022
|
CustomTypography,
|
|
1017
1023
|
{
|
|
1018
1024
|
variant: "P3regular",
|
|
1019
1025
|
style: styles$u.labelStyle,
|
|
1020
1026
|
text: label
|
|
1021
1027
|
}
|
|
1022
|
-
), /* @__PURE__ */
|
|
1028
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
1023
1029
|
Pressable,
|
|
1024
1030
|
{
|
|
1025
1031
|
testID: `${testId}-BTN`,
|
|
1026
1032
|
style: styles$u.dropDownStyle,
|
|
1027
1033
|
onPress: () => setShowOptions(!showOptions)
|
|
1028
1034
|
},
|
|
1029
|
-
iconName && /* @__PURE__ */
|
|
1035
|
+
iconName && /* @__PURE__ */ React__default.createElement(View, { style: iconStyle }, React__default.cloneElement(iconName, {
|
|
1030
1036
|
width: moderateScale(24),
|
|
1031
1037
|
height: moderateScale(24),
|
|
1032
1038
|
style: styles$u.iconStyle
|
|
1033
1039
|
})),
|
|
1034
|
-
/* @__PURE__ */
|
|
1040
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1035
1041
|
CustomTypography,
|
|
1036
1042
|
{
|
|
1037
1043
|
variant: "P3regular",
|
|
@@ -1039,14 +1045,14 @@ const CustomDropdown$1 = ({
|
|
|
1039
1045
|
text: selectedValue ? selectedValue.label : placeholder
|
|
1040
1046
|
}
|
|
1041
1047
|
),
|
|
1042
|
-
/* @__PURE__ */
|
|
1048
|
+
/* @__PURE__ */ React__default.createElement(View, null, showOptions ? React__default.cloneElement(upArrowIcon, {
|
|
1043
1049
|
width: moderateScale(24),
|
|
1044
1050
|
height: moderateScale(24)
|
|
1045
|
-
}) :
|
|
1051
|
+
}) : React__default.cloneElement(downArrowIcon, {
|
|
1046
1052
|
width: moderateScale(24),
|
|
1047
1053
|
height: moderateScale(24)
|
|
1048
1054
|
}))
|
|
1049
|
-
), showOptions && /* @__PURE__ */
|
|
1055
|
+
), showOptions && /* @__PURE__ */ React__default.createElement(View, { style: styles$u.optionContainer }, options?.map(({ id, value, label: label2 }) => /* @__PURE__ */ React__default.createElement(
|
|
1050
1056
|
Pressable,
|
|
1051
1057
|
{
|
|
1052
1058
|
key: id,
|
|
@@ -1062,12 +1068,12 @@ const CustomDropdown$1 = ({
|
|
|
1062
1068
|
}
|
|
1063
1069
|
]
|
|
1064
1070
|
},
|
|
1065
|
-
iconName && /* @__PURE__ */
|
|
1071
|
+
iconName && /* @__PURE__ */ React__default.createElement(View, { style: iconStyle }, React__default.cloneElement(iconName, {
|
|
1066
1072
|
width: moderateScale(24),
|
|
1067
1073
|
height: moderateScale(24),
|
|
1068
1074
|
style: styles$u.iconStyle
|
|
1069
1075
|
})),
|
|
1070
|
-
/* @__PURE__ */
|
|
1076
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1071
1077
|
CustomTypography,
|
|
1072
1078
|
{
|
|
1073
1079
|
variant: "P3regular",
|
|
@@ -1158,14 +1164,14 @@ const CustomTextInput = ({
|
|
|
1158
1164
|
};
|
|
1159
1165
|
const handleIconPress1 = () => setValue("");
|
|
1160
1166
|
const handleIconPress2 = () => setIsSecureTextEntry(!isSecureTextEntry);
|
|
1161
|
-
return /* @__PURE__ */
|
|
1167
|
+
return /* @__PURE__ */ React__default.createElement(View, { testID }, /* @__PURE__ */ React__default.createElement(
|
|
1162
1168
|
CustomTypography,
|
|
1163
1169
|
{
|
|
1164
1170
|
variant: "P3medium",
|
|
1165
1171
|
style: [styles$t.labelStyle, disabled && styles$t.disableTextStyle],
|
|
1166
1172
|
text: label
|
|
1167
1173
|
}
|
|
1168
|
-
), /* @__PURE__ */
|
|
1174
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
1169
1175
|
View,
|
|
1170
1176
|
{
|
|
1171
1177
|
style: [
|
|
@@ -1180,12 +1186,12 @@ const CustomTextInput = ({
|
|
|
1180
1186
|
}
|
|
1181
1187
|
]
|
|
1182
1188
|
},
|
|
1183
|
-
isSearchBar && searchIcon &&
|
|
1189
|
+
isSearchBar && searchIcon && React__default.cloneElement(searchIcon, {
|
|
1184
1190
|
width: moderateScale(24),
|
|
1185
1191
|
height: moderateScale(24),
|
|
1186
1192
|
style: styles$t.searchIconStyle
|
|
1187
1193
|
}),
|
|
1188
|
-
/* @__PURE__ */
|
|
1194
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1189
1195
|
TextInput,
|
|
1190
1196
|
{
|
|
1191
1197
|
...props,
|
|
@@ -1202,15 +1208,15 @@ const CustomTextInput = ({
|
|
|
1202
1208
|
secureTextEntry: isSecureTextEntry
|
|
1203
1209
|
}
|
|
1204
1210
|
),
|
|
1205
|
-
value && !multiline && rightIcon1 &&
|
|
1211
|
+
value && !multiline && rightIcon1 && React__default.cloneElement(rightIcon1, {
|
|
1206
1212
|
onPress: handleIconPress1,
|
|
1207
1213
|
testID: "icon1"
|
|
1208
1214
|
}),
|
|
1209
|
-
secureTextEntry && rightIcon2 &&
|
|
1215
|
+
secureTextEntry && rightIcon2 && React__default.cloneElement(rightIcon2, {
|
|
1210
1216
|
onPress: handleIconPress2,
|
|
1211
1217
|
testID: "icon2"
|
|
1212
1218
|
})
|
|
1213
|
-
), (error || successMessage) && /* @__PURE__ */
|
|
1219
|
+
), (error || successMessage) && /* @__PURE__ */ React__default.createElement(
|
|
1214
1220
|
CustomTypography,
|
|
1215
1221
|
{
|
|
1216
1222
|
numberOfLines: 2,
|
|
@@ -1233,7 +1239,7 @@ const CustomTooltip = ({
|
|
|
1233
1239
|
backgroundColor,
|
|
1234
1240
|
triggerElement
|
|
1235
1241
|
}) => {
|
|
1236
|
-
return /* @__PURE__ */
|
|
1242
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
1237
1243
|
Tooltip,
|
|
1238
1244
|
{
|
|
1239
1245
|
isVisible,
|
|
@@ -1294,27 +1300,27 @@ const FileUpload = ({
|
|
|
1294
1300
|
icon,
|
|
1295
1301
|
iconStyle
|
|
1296
1302
|
}) => {
|
|
1297
|
-
return /* @__PURE__ */
|
|
1303
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
1298
1304
|
View,
|
|
1299
1305
|
{
|
|
1300
1306
|
style: [styles$s.container, containerStyle],
|
|
1301
1307
|
testID: "file-upload-container"
|
|
1302
1308
|
},
|
|
1303
|
-
/* @__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(
|
|
1304
1310
|
CustomTypography,
|
|
1305
1311
|
{
|
|
1306
1312
|
variant: "P4regular",
|
|
1307
1313
|
style: styles$s.description,
|
|
1308
1314
|
text: `Drop files directly here or `
|
|
1309
1315
|
}
|
|
1310
|
-
), /* @__PURE__ */
|
|
1316
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
1311
1317
|
CustomTypography,
|
|
1312
1318
|
{
|
|
1313
1319
|
variant: "P4regular",
|
|
1314
1320
|
style: styles$s.browse,
|
|
1315
1321
|
text: btnText
|
|
1316
1322
|
}
|
|
1317
|
-
), /* @__PURE__ */
|
|
1323
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
1318
1324
|
CustomTypography,
|
|
1319
1325
|
{
|
|
1320
1326
|
testID: "file-upload-description",
|
|
@@ -1323,14 +1329,14 @@ const FileUpload = ({
|
|
|
1323
1329
|
text: ` from your device`
|
|
1324
1330
|
}
|
|
1325
1331
|
)),
|
|
1326
|
-
/* @__PURE__ */
|
|
1332
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1327
1333
|
Pressable,
|
|
1328
1334
|
{
|
|
1329
1335
|
style: styles$s.button,
|
|
1330
1336
|
onPress: onUpload,
|
|
1331
1337
|
testID: "file-upload-button"
|
|
1332
1338
|
},
|
|
1333
|
-
/* @__PURE__ */
|
|
1339
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1334
1340
|
CustomTypography,
|
|
1335
1341
|
{
|
|
1336
1342
|
variant: "B2semiBold",
|
|
@@ -1343,7 +1349,7 @@ const FileUpload = ({
|
|
|
1343
1349
|
};
|
|
1344
1350
|
|
|
1345
1351
|
const PdfView = (props) => {
|
|
1346
|
-
return /* @__PURE__ */
|
|
1352
|
+
return /* @__PURE__ */ React__default.createElement(Pdf, { ...props });
|
|
1347
1353
|
};
|
|
1348
1354
|
|
|
1349
1355
|
const styles$r = StyleSheet.create({
|
|
@@ -1402,28 +1408,28 @@ const PopUp = ({
|
|
|
1402
1408
|
leftButtonShown = false,
|
|
1403
1409
|
rightButtonShown = false
|
|
1404
1410
|
}) => {
|
|
1405
|
-
return /* @__PURE__ */
|
|
1411
|
+
return /* @__PURE__ */ React__default.createElement(View, { testID, style: styles$r.container }, title ? /* @__PURE__ */ React__default.createElement(
|
|
1406
1412
|
CustomTypography,
|
|
1407
1413
|
{
|
|
1408
1414
|
style: styles$r.subTitleBelow,
|
|
1409
1415
|
variant: "H6semiBold",
|
|
1410
1416
|
text: title
|
|
1411
1417
|
}
|
|
1412
|
-
) : null, subtitle ? /* @__PURE__ */
|
|
1418
|
+
) : null, subtitle ? /* @__PURE__ */ React__default.createElement(
|
|
1413
1419
|
CustomTypography,
|
|
1414
1420
|
{
|
|
1415
1421
|
style: styles$r.subtitle,
|
|
1416
1422
|
variant: "P3regular",
|
|
1417
1423
|
text: subtitle
|
|
1418
1424
|
}
|
|
1419
|
-
) : null, /* @__PURE__ */
|
|
1425
|
+
) : null, /* @__PURE__ */ React__default.createElement(View, { style: styles$r.buttonContainer }, leftButtonShown ? /* @__PURE__ */ React__default.createElement(
|
|
1420
1426
|
Pressable,
|
|
1421
1427
|
{
|
|
1422
1428
|
testID: "Left-Button-Press",
|
|
1423
1429
|
style: styles$r.buttonLeft,
|
|
1424
1430
|
onPress: onButtonPress
|
|
1425
1431
|
},
|
|
1426
|
-
/* @__PURE__ */
|
|
1432
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1427
1433
|
CustomTypography,
|
|
1428
1434
|
{
|
|
1429
1435
|
style: styles$r.buttonLeftText,
|
|
@@ -1431,7 +1437,7 @@ const PopUp = ({
|
|
|
1431
1437
|
text: buttonText
|
|
1432
1438
|
}
|
|
1433
1439
|
)
|
|
1434
|
-
) : null, rightButtonShown ? /* @__PURE__ */
|
|
1440
|
+
) : null, rightButtonShown ? /* @__PURE__ */ React__default.createElement(Pressable, { style: styles$r.button, onPress: onButtonPress }, /* @__PURE__ */ React__default.createElement(
|
|
1435
1441
|
CustomTypography,
|
|
1436
1442
|
{
|
|
1437
1443
|
style: styles$r.buttonText,
|
|
@@ -1472,7 +1478,7 @@ const CustomProgressBar = ({
|
|
|
1472
1478
|
return () => clearInterval(progressInterval);
|
|
1473
1479
|
}, [progress, value, increment, interval]);
|
|
1474
1480
|
const showPercentage = () => {
|
|
1475
|
-
return /* @__PURE__ */
|
|
1481
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: styles$q.flexDirection }, /* @__PURE__ */ React__default.createElement(
|
|
1476
1482
|
CustomText$1,
|
|
1477
1483
|
{
|
|
1478
1484
|
text: `${value}%`,
|
|
@@ -1480,7 +1486,7 @@ const CustomProgressBar = ({
|
|
|
1480
1486
|
textColor: "CONTENT_PRIMARY",
|
|
1481
1487
|
style: valueTextStyle
|
|
1482
1488
|
}
|
|
1483
|
-
), percentageText ? /* @__PURE__ */
|
|
1489
|
+
), percentageText ? /* @__PURE__ */ React__default.createElement(
|
|
1484
1490
|
CustomText$1,
|
|
1485
1491
|
{
|
|
1486
1492
|
text: percentageText,
|
|
@@ -1492,7 +1498,7 @@ const CustomProgressBar = ({
|
|
|
1492
1498
|
const renderProgressBar = () => {
|
|
1493
1499
|
switch (type) {
|
|
1494
1500
|
case ShapeType.LINE:
|
|
1495
|
-
return /* @__PURE__ */
|
|
1501
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
1496
1502
|
Progress.Bar,
|
|
1497
1503
|
{
|
|
1498
1504
|
progress: progress / 100,
|
|
@@ -1506,7 +1512,7 @@ const CustomProgressBar = ({
|
|
|
1506
1512
|
}
|
|
1507
1513
|
);
|
|
1508
1514
|
case ShapeType.CIRCLE:
|
|
1509
|
-
return /* @__PURE__ */
|
|
1515
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
1510
1516
|
Progress.Circle,
|
|
1511
1517
|
{
|
|
1512
1518
|
progress: progress / 100,
|
|
@@ -1524,7 +1530,7 @@ const CustomProgressBar = ({
|
|
|
1524
1530
|
return null;
|
|
1525
1531
|
}
|
|
1526
1532
|
};
|
|
1527
|
-
return /* @__PURE__ */
|
|
1533
|
+
return /* @__PURE__ */ React__default.createElement(View, { testID: "custom-progress-bar" }, renderProgressBar());
|
|
1528
1534
|
};
|
|
1529
1535
|
const styles$q = StyleSheet.create({
|
|
1530
1536
|
flexDirection: {
|
|
@@ -1557,19 +1563,19 @@ const splitRating = (rating) => {
|
|
|
1557
1563
|
const drawStar = (starIndex, ratingArray, size, fullStarIcon, halfStarIcon, fullStarColor, emptyStarColor) => {
|
|
1558
1564
|
const [fullStars, decimalPart] = ratingArray;
|
|
1559
1565
|
if (starIndex <= fullStars) {
|
|
1560
|
-
return
|
|
1566
|
+
return React__default.cloneElement(fullStarIcon, {
|
|
1561
1567
|
style: { height: size, width: size },
|
|
1562
1568
|
fill: fullStarColor,
|
|
1563
1569
|
testID: `star-${starIndex}`
|
|
1564
1570
|
});
|
|
1565
1571
|
} else if (starIndex === fullStars + 1 && decimalPart >= 0.5) {
|
|
1566
|
-
return
|
|
1572
|
+
return React__default.cloneElement(halfStarIcon, {
|
|
1567
1573
|
style: { height: size, width: size },
|
|
1568
1574
|
fill: fullStarColor,
|
|
1569
1575
|
testID: `star-${starIndex}`
|
|
1570
1576
|
});
|
|
1571
1577
|
} else {
|
|
1572
|
-
return
|
|
1578
|
+
return React__default.cloneElement(fullStarIcon, {
|
|
1573
1579
|
style: { height: size, width: size },
|
|
1574
1580
|
fill: emptyStarColor,
|
|
1575
1581
|
testID: `star-${starIndex}`
|
|
@@ -1600,10 +1606,10 @@ const Star = ({
|
|
|
1600
1606
|
emptyStarColor
|
|
1601
1607
|
);
|
|
1602
1608
|
stars.push(
|
|
1603
|
-
/* @__PURE__ */
|
|
1609
|
+
/* @__PURE__ */ React__default.createElement(View, { key: i, style: [styles$p.star, starStyle] }, starType)
|
|
1604
1610
|
);
|
|
1605
1611
|
}
|
|
1606
|
-
return /* @__PURE__ */
|
|
1612
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: styles$p.container, testID: "star" }, stars);
|
|
1607
1613
|
};
|
|
1608
1614
|
|
|
1609
1615
|
var styles$o = StyleSheet.create({
|
|
@@ -1648,7 +1654,7 @@ const Tabs = ({
|
|
|
1648
1654
|
onSelectionChange(selectedTabs);
|
|
1649
1655
|
}
|
|
1650
1656
|
};
|
|
1651
|
-
return /* @__PURE__ */
|
|
1657
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: [styles$o.container, style] }, data?.map(({ id, title, isSelected }) => /* @__PURE__ */ React__default.createElement(
|
|
1652
1658
|
Pressable,
|
|
1653
1659
|
{
|
|
1654
1660
|
key: id,
|
|
@@ -1659,7 +1665,7 @@ const Tabs = ({
|
|
|
1659
1665
|
},
|
|
1660
1666
|
onPress: () => handlePress(id)
|
|
1661
1667
|
},
|
|
1662
|
-
/* @__PURE__ */
|
|
1668
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1663
1669
|
CustomText$1,
|
|
1664
1670
|
{
|
|
1665
1671
|
variant: FontStyle.L2_REGULAR,
|
|
@@ -1728,7 +1734,7 @@ const Tags = ({
|
|
|
1728
1734
|
);
|
|
1729
1735
|
handleTagsChange(tag);
|
|
1730
1736
|
};
|
|
1731
|
-
return /* @__PURE__ */
|
|
1737
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
1732
1738
|
ScrollView,
|
|
1733
1739
|
{
|
|
1734
1740
|
testID,
|
|
@@ -1736,7 +1742,7 @@ const Tags = ({
|
|
|
1736
1742
|
contentContainerStyle: styles$n.contentContainer,
|
|
1737
1743
|
horizontal: false
|
|
1738
1744
|
},
|
|
1739
|
-
tags?.map((tag) => /* @__PURE__ */
|
|
1745
|
+
tags?.map((tag) => /* @__PURE__ */ React__default.createElement(
|
|
1740
1746
|
Pressable,
|
|
1741
1747
|
{
|
|
1742
1748
|
testID: `${testID}-${tag}-BTN`,
|
|
@@ -1748,7 +1754,7 @@ const Tags = ({
|
|
|
1748
1754
|
selectedTags.includes(tag) ? styles$n.selectedTag : styles$n.tagUnSelected
|
|
1749
1755
|
]
|
|
1750
1756
|
},
|
|
1751
|
-
/* @__PURE__ */
|
|
1757
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1752
1758
|
CustomTypography,
|
|
1753
1759
|
{
|
|
1754
1760
|
variant: selectedTags.includes(tag) ? "H9semiBold" : "P4regular",
|
|
@@ -1756,13 +1762,13 @@ const Tags = ({
|
|
|
1756
1762
|
text: tag
|
|
1757
1763
|
}
|
|
1758
1764
|
),
|
|
1759
|
-
selectedTags.includes(tag) && icon && /* @__PURE__ */
|
|
1765
|
+
selectedTags.includes(tag) && icon && /* @__PURE__ */ React__default.createElement(
|
|
1760
1766
|
Pressable,
|
|
1761
1767
|
{
|
|
1762
1768
|
testID: `${testID}-${tag}-PRESS`,
|
|
1763
1769
|
onPress: () => removeTag(tag)
|
|
1764
1770
|
},
|
|
1765
|
-
|
|
1771
|
+
React__default.cloneElement(icon, { style: [icon.props.style, iconStyle] })
|
|
1766
1772
|
)
|
|
1767
1773
|
))
|
|
1768
1774
|
);
|
|
@@ -1829,14 +1835,14 @@ const CustomSwitch = ({
|
|
|
1829
1835
|
const animatedStyle = {
|
|
1830
1836
|
transform: [{ translateX: animatedValue }]
|
|
1831
1837
|
};
|
|
1832
|
-
return /* @__PURE__ */
|
|
1838
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
1833
1839
|
Pressable,
|
|
1834
1840
|
{
|
|
1835
1841
|
onPress: toggleSwitch,
|
|
1836
1842
|
style: [styles$m.container, { width }],
|
|
1837
1843
|
testID: "custom-switch"
|
|
1838
1844
|
},
|
|
1839
|
-
/* @__PURE__ */
|
|
1845
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1840
1846
|
View,
|
|
1841
1847
|
{
|
|
1842
1848
|
style: [
|
|
@@ -1846,8 +1852,8 @@ const CustomSwitch = ({
|
|
|
1846
1852
|
}
|
|
1847
1853
|
]
|
|
1848
1854
|
},
|
|
1849
|
-
/* @__PURE__ */
|
|
1850
|
-
type !== ToggleButtonType.SMALL && /* @__PURE__ */
|
|
1855
|
+
/* @__PURE__ */ React__default.createElement(Animated.View, { style: [styles$m.thumb, animatedStyle] }),
|
|
1856
|
+
type !== ToggleButtonType.SMALL && /* @__PURE__ */ React__default.createElement(
|
|
1851
1857
|
CustomTypography,
|
|
1852
1858
|
{
|
|
1853
1859
|
variant: "B3semiBold",
|
|
@@ -1919,7 +1925,7 @@ const Accordion = ({
|
|
|
1919
1925
|
inputRange: [0, 1],
|
|
1920
1926
|
outputRange: [0, contentHeight]
|
|
1921
1927
|
});
|
|
1922
|
-
return /* @__PURE__ */
|
|
1928
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
1923
1929
|
View,
|
|
1924
1930
|
{
|
|
1925
1931
|
style: {
|
|
@@ -1929,13 +1935,13 @@ const Accordion = ({
|
|
|
1929
1935
|
},
|
|
1930
1936
|
testID: testId
|
|
1931
1937
|
},
|
|
1932
|
-
/* @__PURE__ */
|
|
1938
|
+
/* @__PURE__ */ React__default.createElement(
|
|
1933
1939
|
Pressable,
|
|
1934
1940
|
{
|
|
1935
1941
|
style: [styles$l.header, headerStyle, disabled && { opacity: 0.5 }],
|
|
1936
1942
|
onPress: !disabled ? onToggle : void 0
|
|
1937
1943
|
},
|
|
1938
|
-
headerComponent ? headerComponent() : /* @__PURE__ */
|
|
1944
|
+
headerComponent ? headerComponent() : /* @__PURE__ */ React__default.createElement(
|
|
1939
1945
|
CustomTypography,
|
|
1940
1946
|
{
|
|
1941
1947
|
variant: titleVariant,
|
|
@@ -1947,14 +1953,14 @@ const Accordion = ({
|
|
|
1947
1953
|
}
|
|
1948
1954
|
}
|
|
1949
1955
|
),
|
|
1950
|
-
|
|
1956
|
+
React__default.cloneElement(icon, {
|
|
1951
1957
|
width: moderateScale(20),
|
|
1952
1958
|
height: moderateScale(20),
|
|
1953
1959
|
style: styles$l.iconStyle
|
|
1954
1960
|
})
|
|
1955
1961
|
),
|
|
1956
1962
|
optionalElement ? optionalElement() : null,
|
|
1957
|
-
isOpen && /* @__PURE__ */
|
|
1963
|
+
isOpen && /* @__PURE__ */ React__default.createElement(Animated.View, { style: [styles$l.content, { height: cardHeight }] }, /* @__PURE__ */ React__default.createElement(
|
|
1958
1964
|
View,
|
|
1959
1965
|
{
|
|
1960
1966
|
ref: contentRef,
|
|
@@ -2000,7 +2006,7 @@ const styles$k = StyleSheet.create({
|
|
|
2000
2006
|
}
|
|
2001
2007
|
});
|
|
2002
2008
|
|
|
2003
|
-
const Toast =
|
|
2009
|
+
const Toast = React__default.forwardRef(({ sucessIcon, errorIcon }, ref) => {
|
|
2004
2010
|
const [visible, setVisible] = useState(false);
|
|
2005
2011
|
const [message, setMessage] = useState("");
|
|
2006
2012
|
const [isSuccess, setIsSuccess] = useState(true);
|
|
@@ -2043,10 +2049,10 @@ const Toast = React.forwardRef(({ sucessIcon, errorIcon }, ref) => {
|
|
|
2043
2049
|
return () => clearInterval(interval);
|
|
2044
2050
|
}
|
|
2045
2051
|
}, [visible]);
|
|
2046
|
-
|
|
2052
|
+
React__default.useImperativeHandle(ref, () => ({
|
|
2047
2053
|
showToast
|
|
2048
2054
|
}));
|
|
2049
|
-
return visible ? /* @__PURE__ */
|
|
2055
|
+
return visible ? /* @__PURE__ */ React__default.createElement(
|
|
2050
2056
|
Animated.View,
|
|
2051
2057
|
{
|
|
2052
2058
|
style: [
|
|
@@ -2056,21 +2062,21 @@ const Toast = React.forwardRef(({ sucessIcon, errorIcon }, ref) => {
|
|
|
2056
2062
|
],
|
|
2057
2063
|
testID: "TOAST"
|
|
2058
2064
|
},
|
|
2059
|
-
/* @__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(
|
|
2060
2066
|
CustomTypography,
|
|
2061
2067
|
{
|
|
2062
2068
|
variant: "L2_REGULAR",
|
|
2063
2069
|
text: message,
|
|
2064
2070
|
style: styles$k.messageText
|
|
2065
2071
|
}
|
|
2066
|
-
), btnText && /* @__PURE__ */
|
|
2072
|
+
), btnText && /* @__PURE__ */ React__default.createElement(
|
|
2067
2073
|
Pressable,
|
|
2068
2074
|
{
|
|
2069
2075
|
style: styles$k.button,
|
|
2070
2076
|
onPress: onBtnPress || void 0,
|
|
2071
2077
|
testID: "TOAST-BTN"
|
|
2072
2078
|
},
|
|
2073
|
-
/* @__PURE__ */
|
|
2079
|
+
/* @__PURE__ */ React__default.createElement(
|
|
2074
2080
|
CustomTypography,
|
|
2075
2081
|
{
|
|
2076
2082
|
variant: "L2_BOLD",
|
|
@@ -2079,7 +2085,7 @@ const Toast = React.forwardRef(({ sucessIcon, errorIcon }, ref) => {
|
|
|
2079
2085
|
}
|
|
2080
2086
|
)
|
|
2081
2087
|
))),
|
|
2082
|
-
/* @__PURE__ */
|
|
2088
|
+
/* @__PURE__ */ React__default.createElement(
|
|
2083
2089
|
Progress.Bar,
|
|
2084
2090
|
{
|
|
2085
2091
|
progress,
|
|
@@ -2134,7 +2140,7 @@ const CustomSearchBar = ({
|
|
|
2134
2140
|
pointerEvents,
|
|
2135
2141
|
...props
|
|
2136
2142
|
}) => {
|
|
2137
|
-
return /* @__PURE__ */
|
|
2143
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
2138
2144
|
Pressable,
|
|
2139
2145
|
{
|
|
2140
2146
|
testID,
|
|
@@ -2148,7 +2154,7 @@ const CustomSearchBar = ({
|
|
|
2148
2154
|
],
|
|
2149
2155
|
onPress: handlePress
|
|
2150
2156
|
},
|
|
2151
|
-
/* @__PURE__ */
|
|
2157
|
+
/* @__PURE__ */ React__default.createElement(
|
|
2152
2158
|
Pressable,
|
|
2153
2159
|
{
|
|
2154
2160
|
onPress: () => {
|
|
@@ -2157,13 +2163,13 @@ const CustomSearchBar = ({
|
|
|
2157
2163
|
},
|
|
2158
2164
|
style: searchIconStyle
|
|
2159
2165
|
},
|
|
2160
|
-
|
|
2166
|
+
React__default.cloneElement(searchIcon, {
|
|
2161
2167
|
width: moderateScale(24),
|
|
2162
2168
|
height: moderateScale(24),
|
|
2163
2169
|
style: [styles$j.searchIconStyle, searchIconStyle]
|
|
2164
2170
|
})
|
|
2165
2171
|
),
|
|
2166
|
-
/* @__PURE__ */
|
|
2172
|
+
/* @__PURE__ */ React__default.createElement(
|
|
2167
2173
|
TextInput,
|
|
2168
2174
|
{
|
|
2169
2175
|
...props,
|
|
@@ -2179,7 +2185,7 @@ const CustomSearchBar = ({
|
|
|
2179
2185
|
pointerEvents
|
|
2180
2186
|
}
|
|
2181
2187
|
),
|
|
2182
|
-
value && /* @__PURE__ */
|
|
2188
|
+
value && /* @__PURE__ */ React__default.createElement(
|
|
2183
2189
|
Pressable,
|
|
2184
2190
|
{
|
|
2185
2191
|
onPress: () => {
|
|
@@ -2188,7 +2194,7 @@ const CustomSearchBar = ({
|
|
|
2188
2194
|
},
|
|
2189
2195
|
style: crossIconStyle
|
|
2190
2196
|
},
|
|
2191
|
-
|
|
2197
|
+
React__default.cloneElement(rightIcon, {
|
|
2192
2198
|
// width: moderateScale(24),
|
|
2193
2199
|
// height: moderateScale(24),
|
|
2194
2200
|
style: [styles$j.crossIconStyle, crossIconStyle]
|
|
@@ -2225,7 +2231,7 @@ const CustomHeader = ({
|
|
|
2225
2231
|
onRightPress
|
|
2226
2232
|
}) => {
|
|
2227
2233
|
const { theme } = useTheme();
|
|
2228
|
-
return /* @__PURE__ */
|
|
2234
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
2229
2235
|
View,
|
|
2230
2236
|
{
|
|
2231
2237
|
style: {
|
|
@@ -2235,12 +2241,12 @@ const CustomHeader = ({
|
|
|
2235
2241
|
},
|
|
2236
2242
|
testID: testId
|
|
2237
2243
|
},
|
|
2238
|
-
/* @__PURE__ */
|
|
2244
|
+
/* @__PURE__ */ React__default.createElement(View, { style: styles$i.headderContainer }, showLeftIcon && leftIcon ? React__default.cloneElement(leftIcon, {
|
|
2239
2245
|
width: moderateScale(24),
|
|
2240
2246
|
height: moderateScale(24),
|
|
2241
2247
|
onPress: onLeftPress,
|
|
2242
2248
|
style: styles$i.leftIconStyle
|
|
2243
|
-
}) : null, /* @__PURE__ */
|
|
2249
|
+
}) : null, /* @__PURE__ */ React__default.createElement(
|
|
2244
2250
|
CustomTypography,
|
|
2245
2251
|
{
|
|
2246
2252
|
variant: "B2_REGULAR",
|
|
@@ -2248,7 +2254,7 @@ const CustomHeader = ({
|
|
|
2248
2254
|
style: { color: theme.CONTENT_PRIMARY }
|
|
2249
2255
|
}
|
|
2250
2256
|
)),
|
|
2251
|
-
showRightIcon && rightIcon ?
|
|
2257
|
+
showRightIcon && rightIcon ? React__default.cloneElement(rightIcon, {
|
|
2252
2258
|
width: moderateScale(24),
|
|
2253
2259
|
height: moderateScale(24),
|
|
2254
2260
|
onPress: onRightPress,
|
|
@@ -2305,7 +2311,7 @@ const SwipableList = (props) => {
|
|
|
2305
2311
|
onPress,
|
|
2306
2312
|
style,
|
|
2307
2313
|
testID
|
|
2308
|
-
}) => /* @__PURE__ */
|
|
2314
|
+
}) => /* @__PURE__ */ React__default.createElement(
|
|
2309
2315
|
Pressable,
|
|
2310
2316
|
{
|
|
2311
2317
|
testID,
|
|
@@ -2313,7 +2319,7 @@ const SwipableList = (props) => {
|
|
|
2313
2319
|
style: [styles$h.actionButton, style]
|
|
2314
2320
|
},
|
|
2315
2321
|
icon,
|
|
2316
|
-
/* @__PURE__ */
|
|
2322
|
+
/* @__PURE__ */ React__default.createElement(
|
|
2317
2323
|
CustomTypography,
|
|
2318
2324
|
{
|
|
2319
2325
|
variant: "L1_REGULAR",
|
|
@@ -2322,7 +2328,7 @@ const SwipableList = (props) => {
|
|
|
2322
2328
|
}
|
|
2323
2329
|
)
|
|
2324
2330
|
);
|
|
2325
|
-
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(
|
|
2326
2332
|
ActionButton,
|
|
2327
2333
|
{
|
|
2328
2334
|
icon: leftPrimaryActionIcon,
|
|
@@ -2331,7 +2337,7 @@ const SwipableList = (props) => {
|
|
|
2331
2337
|
style: leftPrimaryActionStyle,
|
|
2332
2338
|
testID: `${testId}-LEFT-PRIMARY-${item.id}`
|
|
2333
2339
|
}
|
|
2334
|
-
), leftSecondaryActionIcon && /* @__PURE__ */
|
|
2340
|
+
), leftSecondaryActionIcon && /* @__PURE__ */ React__default.createElement(
|
|
2335
2341
|
ActionButton,
|
|
2336
2342
|
{
|
|
2337
2343
|
icon: leftSecondaryActionIcon,
|
|
@@ -2341,7 +2347,7 @@ const SwipableList = (props) => {
|
|
|
2341
2347
|
testID: `${testId}-LEFT-SECONDARY-${item.id}`
|
|
2342
2348
|
}
|
|
2343
2349
|
));
|
|
2344
|
-
const rightActionHandle = (item) => /* @__PURE__ */
|
|
2350
|
+
const rightActionHandle = (item) => /* @__PURE__ */ React__default.createElement(View, { style: [styles$h.actionBtn, rightPrimaryActionStyle] }, rightPrimaryActionIcon && /* @__PURE__ */ React__default.createElement(
|
|
2345
2351
|
ActionButton,
|
|
2346
2352
|
{
|
|
2347
2353
|
icon: rightPrimaryActionIcon,
|
|
@@ -2351,7 +2357,7 @@ const SwipableList = (props) => {
|
|
|
2351
2357
|
testID: `${testId}-RIGHT-PRIMARY-${item.id}`
|
|
2352
2358
|
}
|
|
2353
2359
|
));
|
|
2354
|
-
const renderItem = ({ item }) => /* @__PURE__ */
|
|
2360
|
+
const renderItem = ({ item }) => /* @__PURE__ */ React__default.createElement(GestureHandlerRootView, { testID: `${testId}-LIST`, style: styles$h.container }, /* @__PURE__ */ React__default.createElement(
|
|
2355
2361
|
Swipeable,
|
|
2356
2362
|
{
|
|
2357
2363
|
renderLeftActions: () => leftActionHandle(
|
|
@@ -2365,13 +2371,13 @@ const SwipableList = (props) => {
|
|
|
2365
2371
|
},
|
|
2366
2372
|
props?.renderItem(item)
|
|
2367
2373
|
));
|
|
2368
|
-
return /* @__PURE__ */
|
|
2374
|
+
return /* @__PURE__ */ React__default.createElement(View, { testID: testId }, /* @__PURE__ */ React__default.createElement(
|
|
2369
2375
|
FlatList,
|
|
2370
2376
|
{
|
|
2371
2377
|
data,
|
|
2372
2378
|
renderItem,
|
|
2373
2379
|
keyExtractor: (item) => item.id,
|
|
2374
|
-
ItemSeparatorComponent: () => /* @__PURE__ */
|
|
2380
|
+
ItemSeparatorComponent: () => /* @__PURE__ */ React__default.createElement(
|
|
2375
2381
|
View,
|
|
2376
2382
|
{
|
|
2377
2383
|
style: {
|
|
@@ -2404,7 +2410,7 @@ const CustomIcon = ({
|
|
|
2404
2410
|
containerStyle,
|
|
2405
2411
|
titleStyle
|
|
2406
2412
|
}) => {
|
|
2407
|
-
return /* @__PURE__ */
|
|
2413
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
2408
2414
|
Pressable,
|
|
2409
2415
|
{
|
|
2410
2416
|
style: [styles$g.container, containerStyle],
|
|
@@ -2412,7 +2418,7 @@ const CustomIcon = ({
|
|
|
2412
2418
|
testID: testId
|
|
2413
2419
|
},
|
|
2414
2420
|
icon,
|
|
2415
|
-
title && /* @__PURE__ */
|
|
2421
|
+
title && /* @__PURE__ */ React__default.createElement(
|
|
2416
2422
|
CustomTypography,
|
|
2417
2423
|
{
|
|
2418
2424
|
variant: titleVariant,
|
|
@@ -2425,7 +2431,7 @@ const CustomIcon = ({
|
|
|
2425
2431
|
|
|
2426
2432
|
const HorizontalLine = ({ backgroundColor = "SURFACE_SECONDARY", style }) => {
|
|
2427
2433
|
const { theme } = useTheme();
|
|
2428
|
-
return /* @__PURE__ */
|
|
2434
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
2429
2435
|
View,
|
|
2430
2436
|
{
|
|
2431
2437
|
style: [
|
|
@@ -2455,7 +2461,7 @@ const Topic = ({
|
|
|
2455
2461
|
subTitleStyle
|
|
2456
2462
|
}) => {
|
|
2457
2463
|
const { theme } = useTheme();
|
|
2458
|
-
return /* @__PURE__ */
|
|
2464
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
2459
2465
|
TouchableOpacity,
|
|
2460
2466
|
{
|
|
2461
2467
|
style: [
|
|
@@ -2465,9 +2471,9 @@ const Topic = ({
|
|
|
2465
2471
|
],
|
|
2466
2472
|
onPress
|
|
2467
2473
|
},
|
|
2468
|
-
rightIcon && /* @__PURE__ */
|
|
2469
|
-
/* @__PURE__ */
|
|
2470
|
-
/* @__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(
|
|
2471
2477
|
CustomText$1,
|
|
2472
2478
|
{
|
|
2473
2479
|
style: [styles$e.subTitle, subTitleStyle],
|
|
@@ -2475,7 +2481,7 @@ const Topic = ({
|
|
|
2475
2481
|
variant: FontStyle.L2_REGULAR,
|
|
2476
2482
|
textColor: Theme.CONTENT_PRIMARY
|
|
2477
2483
|
}
|
|
2478
|
-
)), /* @__PURE__ */
|
|
2484
|
+
)), /* @__PURE__ */ React__default.createElement(
|
|
2479
2485
|
CustomText$1,
|
|
2480
2486
|
{
|
|
2481
2487
|
text: title,
|
|
@@ -2576,27 +2582,27 @@ const ContactModal = ({
|
|
|
2576
2582
|
onClose();
|
|
2577
2583
|
};
|
|
2578
2584
|
const emailOptions = ["Mail", "Gmail", "Outlook"];
|
|
2579
|
-
const renderEmailOptions = () => /* @__PURE__ */
|
|
2585
|
+
const renderEmailOptions = () => /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
2580
2586
|
CustomText$1,
|
|
2581
2587
|
{
|
|
2582
2588
|
style: styles$d.title,
|
|
2583
2589
|
text: "Open email app",
|
|
2584
2590
|
variant: "L2_REGULAR"
|
|
2585
2591
|
}
|
|
2586
|
-
), /* @__PURE__ */
|
|
2592
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
2587
2593
|
CustomText$1,
|
|
2588
2594
|
{
|
|
2589
2595
|
style: styles$d.subtitle,
|
|
2590
2596
|
text: "Which app would you like to open?",
|
|
2591
2597
|
variant: "L2_REGULAR"
|
|
2592
2598
|
}
|
|
2593
|
-
), 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(
|
|
2594
2600
|
Pressable,
|
|
2595
2601
|
{
|
|
2596
2602
|
onPress: () => handleOptionPress(),
|
|
2597
2603
|
style: styles$d.optionButton
|
|
2598
2604
|
},
|
|
2599
|
-
/* @__PURE__ */
|
|
2605
|
+
/* @__PURE__ */ React__default.createElement(
|
|
2600
2606
|
CustomText$1,
|
|
2601
2607
|
{
|
|
2602
2608
|
style: styles$d.optionText,
|
|
@@ -2605,14 +2611,14 @@ const ContactModal = ({
|
|
|
2605
2611
|
}
|
|
2606
2612
|
)
|
|
2607
2613
|
))));
|
|
2608
|
-
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(
|
|
2609
2615
|
CustomText$1,
|
|
2610
2616
|
{
|
|
2611
2617
|
style: styles$d.optionText,
|
|
2612
2618
|
text: `Call ${phoneNumber}`,
|
|
2613
2619
|
variant: "B3_BOLD"
|
|
2614
2620
|
}
|
|
2615
|
-
))), /* @__PURE__ */
|
|
2621
|
+
))), /* @__PURE__ */ React__default.createElement(Pressable, { onPress: onClose, style: styles$d.cancelButton }, /* @__PURE__ */ React__default.createElement(
|
|
2616
2622
|
CustomText$1,
|
|
2617
2623
|
{
|
|
2618
2624
|
style: styles$d.cancelText,
|
|
@@ -2620,7 +2626,7 @@ const ContactModal = ({
|
|
|
2620
2626
|
variant: "B2_REGULAR"
|
|
2621
2627
|
}
|
|
2622
2628
|
)));
|
|
2623
|
-
return /* @__PURE__ */
|
|
2629
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: styles$d.container }, /* @__PURE__ */ React__default.createElement(
|
|
2624
2630
|
Modal,
|
|
2625
2631
|
{
|
|
2626
2632
|
animationType: "slide",
|
|
@@ -2628,7 +2634,7 @@ const ContactModal = ({
|
|
|
2628
2634
|
visible,
|
|
2629
2635
|
onRequestClose: onClose
|
|
2630
2636
|
},
|
|
2631
|
-
/* @__PURE__ */
|
|
2637
|
+
/* @__PURE__ */ React__default.createElement(View, { style: styles$d.modalContainer }, /* @__PURE__ */ React__default.createElement(View, { style: styles$d.modalContent }, renderContent()))
|
|
2632
2638
|
));
|
|
2633
2639
|
};
|
|
2634
2640
|
const styles$d = StyleSheet.create({
|
|
@@ -2656,25 +2662,31 @@ const styles$d = StyleSheet.create({
|
|
|
2656
2662
|
borderRadius: 10
|
|
2657
2663
|
},
|
|
2658
2664
|
cancelText: {
|
|
2659
|
-
color: "#007AFF"
|
|
2665
|
+
color: "#007AFF",
|
|
2666
|
+
alignSelf: "center"
|
|
2660
2667
|
},
|
|
2661
2668
|
title: {
|
|
2662
2669
|
textAlign: "center",
|
|
2663
|
-
marginTop: 13
|
|
2670
|
+
marginTop: 13,
|
|
2671
|
+
alignSelf: "center"
|
|
2664
2672
|
},
|
|
2665
2673
|
subtitle: {
|
|
2666
2674
|
textAlign: "center",
|
|
2667
2675
|
marginTop: 2,
|
|
2668
|
-
marginBottom: 13
|
|
2676
|
+
marginBottom: 13,
|
|
2677
|
+
alignSelf: "center"
|
|
2669
2678
|
},
|
|
2670
2679
|
optionButton: {
|
|
2671
2680
|
padding: 16,
|
|
2672
2681
|
borderRadius: 8,
|
|
2673
|
-
alignItems: "center"
|
|
2682
|
+
alignItems: "center",
|
|
2683
|
+
textAlign: "center"
|
|
2674
2684
|
},
|
|
2675
2685
|
optionText: {
|
|
2676
2686
|
fontSize: 16,
|
|
2677
|
-
color: "#007AFF"
|
|
2687
|
+
color: "#007AFF",
|
|
2688
|
+
alignSelf: "center",
|
|
2689
|
+
textAlign: "center"
|
|
2678
2690
|
},
|
|
2679
2691
|
cancelButton: {
|
|
2680
2692
|
marginTop: 10,
|
|
@@ -2759,7 +2771,7 @@ const DateRangePicker = (props) => {
|
|
|
2759
2771
|
return markedDates;
|
|
2760
2772
|
};
|
|
2761
2773
|
const isButtonDisabled = !selectedRange.startDate || !selectedRange.endDate;
|
|
2762
|
-
return /* @__PURE__ */
|
|
2774
|
+
return /* @__PURE__ */ React__default.createElement(View, null, /* @__PURE__ */ React__default.createElement(
|
|
2763
2775
|
Calendar,
|
|
2764
2776
|
{
|
|
2765
2777
|
markedDates: getMarkedDates(),
|
|
@@ -2782,7 +2794,7 @@ const DateRangePicker = (props) => {
|
|
|
2782
2794
|
firstDay: 1,
|
|
2783
2795
|
...props
|
|
2784
2796
|
}
|
|
2785
|
-
), /* @__PURE__ */
|
|
2797
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
2786
2798
|
CustomButton$1,
|
|
2787
2799
|
{
|
|
2788
2800
|
title: btnTitle,
|
|
@@ -2813,7 +2825,7 @@ const OurOfficesButton = ({
|
|
|
2813
2825
|
descriptionColor = "CONTENT_SECONDARY"
|
|
2814
2826
|
}) => {
|
|
2815
2827
|
const { theme } = useTheme();
|
|
2816
|
-
return /* @__PURE__ */
|
|
2828
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
2817
2829
|
TouchableOpacity,
|
|
2818
2830
|
{
|
|
2819
2831
|
style: [
|
|
@@ -2823,8 +2835,8 @@ const OurOfficesButton = ({
|
|
|
2823
2835
|
],
|
|
2824
2836
|
onPress
|
|
2825
2837
|
},
|
|
2826
|
-
leftIcon && /* @__PURE__ */
|
|
2827
|
-
/* @__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(
|
|
2828
2840
|
CustomText$1,
|
|
2829
2841
|
{
|
|
2830
2842
|
text: title,
|
|
@@ -2832,7 +2844,7 @@ const OurOfficesButton = ({
|
|
|
2832
2844
|
textColor: titleColor,
|
|
2833
2845
|
style: styles$b.textView
|
|
2834
2846
|
}
|
|
2835
|
-
), /* @__PURE__ */
|
|
2847
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
2836
2848
|
CustomText$1,
|
|
2837
2849
|
{
|
|
2838
2850
|
text: description,
|
|
@@ -2841,7 +2853,7 @@ const OurOfficesButton = ({
|
|
|
2841
2853
|
style: styles$b.flexWrap
|
|
2842
2854
|
}
|
|
2843
2855
|
)),
|
|
2844
|
-
rightIcon && /* @__PURE__ */
|
|
2856
|
+
rightIcon && /* @__PURE__ */ React__default.createElement(View, { style: styles$b.rightIconContainer }, React__default.cloneElement(rightIcon))
|
|
2845
2857
|
);
|
|
2846
2858
|
};
|
|
2847
2859
|
const styles$b = StyleSheet.create({
|
|
@@ -2897,7 +2909,7 @@ const NotificationBandge = ({
|
|
|
2897
2909
|
if (notificationCount <= 0) {
|
|
2898
2910
|
return icon;
|
|
2899
2911
|
}
|
|
2900
|
-
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)));
|
|
2901
2913
|
};
|
|
2902
2914
|
|
|
2903
2915
|
const ScrollableList = ({
|
|
@@ -2916,7 +2928,7 @@ const ScrollableList = ({
|
|
|
2916
2928
|
);
|
|
2917
2929
|
const { theme } = useTheme();
|
|
2918
2930
|
const styles = createStyles$2({ theme });
|
|
2919
|
-
return /* @__PURE__ */
|
|
2931
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: [styles.container, containerStyle] }, /* @__PURE__ */ React__default.createElement(
|
|
2920
2932
|
ScrollView,
|
|
2921
2933
|
{
|
|
2922
2934
|
horizontal: true,
|
|
@@ -2926,7 +2938,7 @@ const ScrollableList = ({
|
|
|
2926
2938
|
scrollViewContentStyle
|
|
2927
2939
|
]
|
|
2928
2940
|
},
|
|
2929
|
-
data?.map((item) => /* @__PURE__ */
|
|
2941
|
+
data?.map((item) => /* @__PURE__ */ React__default.createElement(
|
|
2930
2942
|
Pressable,
|
|
2931
2943
|
{
|
|
2932
2944
|
key: item.value,
|
|
@@ -2943,7 +2955,7 @@ const ScrollableList = ({
|
|
|
2943
2955
|
handleSelectCategory(item.name, item.value);
|
|
2944
2956
|
}
|
|
2945
2957
|
},
|
|
2946
|
-
/* @__PURE__ */
|
|
2958
|
+
/* @__PURE__ */ React__default.createElement(
|
|
2947
2959
|
CustomText$1,
|
|
2948
2960
|
{
|
|
2949
2961
|
text: item.name,
|
|
@@ -2951,7 +2963,7 @@ const ScrollableList = ({
|
|
|
2951
2963
|
textColor: (activeTab ?? selectedItem) === item.name ? selectedItemTextColor : defaultItemTextColor
|
|
2952
2964
|
}
|
|
2953
2965
|
),
|
|
2954
|
-
item?.isError && /* @__PURE__ */
|
|
2966
|
+
item?.isError && /* @__PURE__ */ React__default.createElement(View, { style: [styles.errorViewStyle] })
|
|
2955
2967
|
))
|
|
2956
2968
|
));
|
|
2957
2969
|
};
|
|
@@ -2973,7 +2985,7 @@ const createStyles$2 = (theme) => {
|
|
|
2973
2985
|
borderBottomColor: theme[Theme.BORDER_SEPERATOR_HEADER]
|
|
2974
2986
|
},
|
|
2975
2987
|
selectedItem: {
|
|
2976
|
-
borderBottomWidth:
|
|
2988
|
+
borderBottomWidth: 2,
|
|
2977
2989
|
borderBottomColor: theme[Theme.BORDER_INVERTED]
|
|
2978
2990
|
},
|
|
2979
2991
|
errorViewStyle: {
|
|
@@ -3045,7 +3057,7 @@ const FeedbackForm = ({
|
|
|
3045
3057
|
const maxChars = 200;
|
|
3046
3058
|
const { theme } = useTheme();
|
|
3047
3059
|
const styles = createStyles$1(theme);
|
|
3048
|
-
return /* @__PURE__ */
|
|
3060
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: styles.container }, /* @__PURE__ */ React__default.createElement(
|
|
3049
3061
|
CustomText$1,
|
|
3050
3062
|
{
|
|
3051
3063
|
text: title,
|
|
@@ -3053,7 +3065,7 @@ const FeedbackForm = ({
|
|
|
3053
3065
|
textColor: Theme.CONTENT_SECONDRY,
|
|
3054
3066
|
style: styles.headerText
|
|
3055
3067
|
}
|
|
3056
|
-
), /* @__PURE__ */
|
|
3068
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
3057
3069
|
TextInput,
|
|
3058
3070
|
{
|
|
3059
3071
|
style: [styles.textInput, { height: Math.max(100) }],
|
|
@@ -3064,7 +3076,7 @@ const FeedbackForm = ({
|
|
|
3064
3076
|
value: feedback,
|
|
3065
3077
|
onChangeText: (text) => setFeedback(text)
|
|
3066
3078
|
}
|
|
3067
|
-
), /* @__PURE__ */
|
|
3079
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
3068
3080
|
CustomText$1,
|
|
3069
3081
|
{
|
|
3070
3082
|
text: `${feedback.length}/${maxChars} characters`,
|
|
@@ -3072,14 +3084,14 @@ const FeedbackForm = ({
|
|
|
3072
3084
|
textColor: Theme.CONTENT_SECONDRY,
|
|
3073
3085
|
style: styles.charCounter
|
|
3074
3086
|
}
|
|
3075
|
-
), /* @__PURE__ */
|
|
3087
|
+
), /* @__PURE__ */ React__default.createElement(View, { style: styles.buttonContainer }, /* @__PURE__ */ React__default.createElement(Pressable, { style: styles.feedbackButton, onPress: handleSendFeedback }, /* @__PURE__ */ React__default.createElement(
|
|
3076
3088
|
CustomText$1,
|
|
3077
3089
|
{
|
|
3078
3090
|
text: leftBtnTxt,
|
|
3079
3091
|
variant: FontStyle.L1_REGULAR,
|
|
3080
3092
|
textColor: Theme.CONTENT_PRIMARY
|
|
3081
3093
|
}
|
|
3082
|
-
)), /* @__PURE__ */
|
|
3094
|
+
)), /* @__PURE__ */ React__default.createElement(Pressable, { style: styles.cancelButton, onPress: clearAllData }, /* @__PURE__ */ React__default.createElement(
|
|
3083
3095
|
CustomText$1,
|
|
3084
3096
|
{
|
|
3085
3097
|
text: rightBtnTxt,
|
|
@@ -3117,7 +3129,7 @@ const CountryDropDown = ({
|
|
|
3117
3129
|
setCallingCode(`+${country.callingCode[0]}`);
|
|
3118
3130
|
getCountryCode(`+${country.callingCode[0]}`);
|
|
3119
3131
|
};
|
|
3120
|
-
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(
|
|
3121
3133
|
CountryPicker,
|
|
3122
3134
|
{
|
|
3123
3135
|
withFilter: true,
|
|
@@ -3127,21 +3139,21 @@ const CountryDropDown = ({
|
|
|
3127
3139
|
onSelect: handleSelect,
|
|
3128
3140
|
visible: pickerVisible
|
|
3129
3141
|
}
|
|
3130
|
-
), /* @__PURE__ */
|
|
3142
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
3131
3143
|
Text,
|
|
3132
3144
|
{
|
|
3133
3145
|
onPress: () => setPickerVisible(true),
|
|
3134
3146
|
style: [styles$9.callingCode, callingCodeStyle]
|
|
3135
3147
|
},
|
|
3136
3148
|
callingCode
|
|
3137
|
-
)), /* @__PURE__ */
|
|
3149
|
+
)), /* @__PURE__ */ React__default.createElement(View, { style: styles$9.flex }, (isFocused || value) && /* @__PURE__ */ React__default.createElement(
|
|
3138
3150
|
CustomTypography,
|
|
3139
3151
|
{
|
|
3140
3152
|
variant: "L2_REGULAR",
|
|
3141
3153
|
text: label ?? "",
|
|
3142
3154
|
style: styles$9.floatingLabel
|
|
3143
3155
|
}
|
|
3144
|
-
), /* @__PURE__ */
|
|
3156
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
3145
3157
|
TextInput,
|
|
3146
3158
|
{
|
|
3147
3159
|
style: [styles$9.input, inputStyle],
|
|
@@ -3154,7 +3166,7 @@ const CountryDropDown = ({
|
|
|
3154
3166
|
maxLength,
|
|
3155
3167
|
placeholderTextColor: theme.CONTENT_SECONDRY["light"]
|
|
3156
3168
|
}
|
|
3157
|
-
))), errorMessage ? /* @__PURE__ */
|
|
3169
|
+
))), errorMessage ? /* @__PURE__ */ React__default.createElement(
|
|
3158
3170
|
CustomTypography,
|
|
3159
3171
|
{
|
|
3160
3172
|
variant: "L2_REGULAR",
|
|
@@ -3235,7 +3247,7 @@ const CommonTextInput = (props) => {
|
|
|
3235
3247
|
rightIcon,
|
|
3236
3248
|
onRightIconPress
|
|
3237
3249
|
} = props;
|
|
3238
|
-
return /* @__PURE__ */
|
|
3250
|
+
return /* @__PURE__ */ React__default.createElement(Pressable, { onPress: handlePress, style: styles$8.container }, /* @__PURE__ */ React__default.createElement(
|
|
3239
3251
|
TextInput$1,
|
|
3240
3252
|
{
|
|
3241
3253
|
mode: "outlined",
|
|
@@ -3267,7 +3279,7 @@ const CommonTextInput = (props) => {
|
|
|
3267
3279
|
error: errorMessage?.length ? true : false,
|
|
3268
3280
|
multiline,
|
|
3269
3281
|
numberOfLines: multiline ? 4 : 1,
|
|
3270
|
-
right: rightIcon ? /* @__PURE__ */
|
|
3282
|
+
right: rightIcon ? /* @__PURE__ */ React__default.createElement(
|
|
3271
3283
|
TextInput$1.Icon,
|
|
3272
3284
|
{
|
|
3273
3285
|
icon: rightIcon,
|
|
@@ -3279,7 +3291,7 @@ const CommonTextInput = (props) => {
|
|
|
3279
3291
|
) : null,
|
|
3280
3292
|
...props
|
|
3281
3293
|
}
|
|
3282
|
-
), errorMessage ? /* @__PURE__ */
|
|
3294
|
+
), errorMessage ? /* @__PURE__ */ React__default.createElement(
|
|
3283
3295
|
CustomTypography,
|
|
3284
3296
|
{
|
|
3285
3297
|
variant: "L2_REGULAR",
|
|
@@ -3324,6 +3336,22 @@ const styles$8 = StyleSheet.create({
|
|
|
3324
3336
|
}
|
|
3325
3337
|
});
|
|
3326
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
|
+
|
|
3327
3355
|
const CustomDropdown = ({
|
|
3328
3356
|
data,
|
|
3329
3357
|
labelField = "label",
|
|
@@ -3350,7 +3378,7 @@ const CustomDropdown = ({
|
|
|
3350
3378
|
const [isFocus, setIsFocus] = useState(false);
|
|
3351
3379
|
const renderLabel = () => {
|
|
3352
3380
|
if (value || isFocus) {
|
|
3353
|
-
return /* @__PURE__ */
|
|
3381
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
3354
3382
|
Text,
|
|
3355
3383
|
{
|
|
3356
3384
|
style: [
|
|
@@ -3372,7 +3400,7 @@ const CustomDropdown = ({
|
|
|
3372
3400
|
onValueChange(newValue);
|
|
3373
3401
|
}
|
|
3374
3402
|
};
|
|
3375
|
-
return /* @__PURE__ */
|
|
3403
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: [styles$7.container, containerStyle] }, label && renderLabel(), /* @__PURE__ */ React__default.createElement(
|
|
3376
3404
|
Dropdown,
|
|
3377
3405
|
{
|
|
3378
3406
|
style: [
|
|
@@ -3396,7 +3424,8 @@ const CustomDropdown = ({
|
|
|
3396
3424
|
itemTextStyle,
|
|
3397
3425
|
containerStyle: menuContainerStyle,
|
|
3398
3426
|
activeColor,
|
|
3399
|
-
itemContainerStyle: [styles$7.itemListStyle, itemContainerStyle]
|
|
3427
|
+
itemContainerStyle: [styles$7.itemListStyle, itemContainerStyle],
|
|
3428
|
+
renderRightIcon: () => /* @__PURE__ */ React__default.createElement(SvgDropDownArrow, null)
|
|
3400
3429
|
}
|
|
3401
3430
|
));
|
|
3402
3431
|
};
|
|
@@ -3492,20 +3521,20 @@ const CustomSwitchBtn = ({
|
|
|
3492
3521
|
const toggleSwitch = () => {
|
|
3493
3522
|
onValueChange(!value);
|
|
3494
3523
|
};
|
|
3495
|
-
return /* @__PURE__ */
|
|
3524
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
3496
3525
|
Pressable,
|
|
3497
3526
|
{
|
|
3498
3527
|
disabled,
|
|
3499
3528
|
onPress: toggleSwitch,
|
|
3500
3529
|
style: { ...styles$6.mainContainer, ...containerStyle }
|
|
3501
3530
|
},
|
|
3502
|
-
/* @__PURE__ */
|
|
3531
|
+
/* @__PURE__ */ React__default.createElement(
|
|
3503
3532
|
Animated.View,
|
|
3504
3533
|
{
|
|
3505
3534
|
style: [styles$6.circle, { transform: [{ translateX }], ...circleStyle }]
|
|
3506
3535
|
}
|
|
3507
3536
|
),
|
|
3508
|
-
/* @__PURE__ */
|
|
3537
|
+
/* @__PURE__ */ React__default.createElement(
|
|
3509
3538
|
CustomTypography,
|
|
3510
3539
|
{
|
|
3511
3540
|
style: [styles$6.activeText, value ? inActiveTextStyle : activeTextStyle],
|
|
@@ -3513,7 +3542,7 @@ const CustomSwitchBtn = ({
|
|
|
3513
3542
|
variant: activeTextVariant
|
|
3514
3543
|
}
|
|
3515
3544
|
),
|
|
3516
|
-
/* @__PURE__ */
|
|
3545
|
+
/* @__PURE__ */ React__default.createElement(
|
|
3517
3546
|
CustomTypography,
|
|
3518
3547
|
{
|
|
3519
3548
|
style: [
|
|
@@ -3569,7 +3598,7 @@ const TagsComponent = ({
|
|
|
3569
3598
|
}
|
|
3570
3599
|
return tagList;
|
|
3571
3600
|
};
|
|
3572
|
-
const renderTagItem = ({ item }) => /* @__PURE__ */
|
|
3601
|
+
const renderTagItem = ({ item }) => /* @__PURE__ */ React__default.createElement(
|
|
3573
3602
|
Pressable,
|
|
3574
3603
|
{
|
|
3575
3604
|
onPress: () => handleTagPress?.(item.name),
|
|
@@ -3578,7 +3607,7 @@ const TagsComponent = ({
|
|
|
3578
3607
|
selectedTag === item?.name ? [styles.selectedTagButton, selectedTagButton] : [styles.unselectedTagButton, unselectedTagButton]
|
|
3579
3608
|
]
|
|
3580
3609
|
},
|
|
3581
|
-
/* @__PURE__ */
|
|
3610
|
+
/* @__PURE__ */ React__default.createElement(
|
|
3582
3611
|
CustomText$1,
|
|
3583
3612
|
{
|
|
3584
3613
|
textColor: selectedTag === item?.name ? Theme.CONTENT_INVERTED : Theme.CONTENT_SECONDRY,
|
|
@@ -3587,9 +3616,9 @@ const TagsComponent = ({
|
|
|
3587
3616
|
},
|
|
3588
3617
|
item?.name
|
|
3589
3618
|
),
|
|
3590
|
-
selectedTag === item?.name && /* @__PURE__ */
|
|
3619
|
+
selectedTag === item?.name && /* @__PURE__ */ React__default.createElement(Text, { style: styles.closeButton }, "\u2715")
|
|
3591
3620
|
);
|
|
3592
|
-
return /* @__PURE__ */
|
|
3621
|
+
return /* @__PURE__ */ React__default.createElement(View, null, /* @__PURE__ */ React__default.createElement(
|
|
3593
3622
|
FlatList,
|
|
3594
3623
|
{
|
|
3595
3624
|
data: reorderedTags(),
|
|
@@ -3703,7 +3732,7 @@ const CustomDocumentPicker = ({
|
|
|
3703
3732
|
const removeDocument = useCallback(() => {
|
|
3704
3733
|
setDocDetails(void 0);
|
|
3705
3734
|
}, []);
|
|
3706
|
-
return /* @__PURE__ */
|
|
3735
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
3707
3736
|
View,
|
|
3708
3737
|
{
|
|
3709
3738
|
style: [
|
|
@@ -3713,14 +3742,14 @@ const CustomDocumentPicker = ({
|
|
|
3713
3742
|
containerStyle
|
|
3714
3743
|
]
|
|
3715
3744
|
},
|
|
3716
|
-
/* @__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(
|
|
3717
3746
|
CustomTypography,
|
|
3718
3747
|
{
|
|
3719
3748
|
variant: FontStyle.L2_REGULAR,
|
|
3720
3749
|
text: docDetails?.name ?? title,
|
|
3721
3750
|
style: [{ color: theme.CONTENT_PRIMARY }, titleStyle]
|
|
3722
3751
|
}
|
|
3723
|
-
), !docDetails && /* @__PURE__ */
|
|
3752
|
+
), !docDetails && /* @__PURE__ */ React__default.createElement(
|
|
3724
3753
|
CustomTypography,
|
|
3725
3754
|
{
|
|
3726
3755
|
variant: FontStyle.L3_REGULAR,
|
|
@@ -3728,10 +3757,10 @@ const CustomDocumentPicker = ({
|
|
|
3728
3757
|
style: [{ color: theme.CONTENT_SECONDRY }, hintStyle]
|
|
3729
3758
|
}
|
|
3730
3759
|
))),
|
|
3731
|
-
docDetails &&
|
|
3760
|
+
docDetails && React__default.cloneElement(deleteIcon, {
|
|
3732
3761
|
onPress: removeDocument
|
|
3733
3762
|
})
|
|
3734
|
-
), error && /* @__PURE__ */
|
|
3763
|
+
), error && /* @__PURE__ */ React__default.createElement(
|
|
3735
3764
|
CustomTypography,
|
|
3736
3765
|
{
|
|
3737
3766
|
variant: FontStyle.L2_REGULAR,
|
|
@@ -3771,7 +3800,7 @@ const styles$4 = StyleSheet.create({
|
|
|
3771
3800
|
}
|
|
3772
3801
|
});
|
|
3773
3802
|
|
|
3774
|
-
const OTPInput =
|
|
3803
|
+
const OTPInput = React__default.forwardRef(
|
|
3775
3804
|
({
|
|
3776
3805
|
length = 4,
|
|
3777
3806
|
onComplete,
|
|
@@ -3814,7 +3843,7 @@ const OTPInput = React.forwardRef(
|
|
|
3814
3843
|
setIsResendOtpEnable(true);
|
|
3815
3844
|
}, 5e3);
|
|
3816
3845
|
};
|
|
3817
|
-
|
|
3846
|
+
React__default.useImperativeHandle(ref, () => ({
|
|
3818
3847
|
reset() {
|
|
3819
3848
|
setOTP("");
|
|
3820
3849
|
}
|
|
@@ -3845,7 +3874,7 @@ const OTPInput = React.forwardRef(
|
|
|
3845
3874
|
onComplete?.(otp);
|
|
3846
3875
|
}
|
|
3847
3876
|
}, [otp]);
|
|
3848
|
-
return /* @__PURE__ */
|
|
3877
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: { ...otpContainerStyle }, "data-testid": testId }, /* @__PURE__ */ React__default.createElement(
|
|
3849
3878
|
CustomTypography,
|
|
3850
3879
|
{
|
|
3851
3880
|
text: label,
|
|
@@ -3856,7 +3885,7 @@ const OTPInput = React.forwardRef(
|
|
|
3856
3885
|
...otpHeaderTextStyle
|
|
3857
3886
|
}
|
|
3858
3887
|
}
|
|
3859
|
-
), /* @__PURE__ */
|
|
3888
|
+
), /* @__PURE__ */ React__default.createElement(View, { style: { ...styles$4.textInputContainer } }, Array.from({ length }).map((_, index) => /* @__PURE__ */ React__default.createElement(
|
|
3860
3889
|
TextInput,
|
|
3861
3890
|
{
|
|
3862
3891
|
key: index?.toString(),
|
|
@@ -3877,14 +3906,14 @@ const OTPInput = React.forwardRef(
|
|
|
3877
3906
|
returnKeyType: otp.length === length ? "done" : "next",
|
|
3878
3907
|
selectionColor: theme$1.CONTENT_PRIMARY
|
|
3879
3908
|
}
|
|
3880
|
-
))), /* @__PURE__ */
|
|
3909
|
+
))), /* @__PURE__ */ React__default.createElement(
|
|
3881
3910
|
Pressable,
|
|
3882
3911
|
{
|
|
3883
3912
|
onPress: onClickResendOTP,
|
|
3884
3913
|
style: styles$4.resendOTPStyle,
|
|
3885
3914
|
disabled: !isResendOtpEnable
|
|
3886
3915
|
},
|
|
3887
|
-
/* @__PURE__ */
|
|
3916
|
+
/* @__PURE__ */ React__default.createElement(
|
|
3888
3917
|
CustomTypography,
|
|
3889
3918
|
{
|
|
3890
3919
|
text: resendText,
|
|
@@ -3896,7 +3925,7 @@ const OTPInput = React.forwardRef(
|
|
|
3896
3925
|
}
|
|
3897
3926
|
}
|
|
3898
3927
|
)
|
|
3899
|
-
), /* @__PURE__ */
|
|
3928
|
+
), /* @__PURE__ */ React__default.createElement(View, { style: styles$4.resendOtpContainer }, errorMessage ? /* @__PURE__ */ React__default.createElement(
|
|
3900
3929
|
CustomTypography,
|
|
3901
3930
|
{
|
|
3902
3931
|
text: errorMessage,
|
|
@@ -3906,7 +3935,7 @@ const OTPInput = React.forwardRef(
|
|
|
3906
3935
|
color: theme$1.ERROR
|
|
3907
3936
|
}
|
|
3908
3937
|
}
|
|
3909
|
-
) : /* @__PURE__ */
|
|
3938
|
+
) : /* @__PURE__ */ React__default.createElement(View, null)));
|
|
3910
3939
|
}
|
|
3911
3940
|
);
|
|
3912
3941
|
var index$4 = withThemeProvider(OTPInput);
|
|
@@ -4039,18 +4068,18 @@ const Stepper = ({
|
|
|
4039
4068
|
return { borderColor: theme.CONTENT_SECONDRY };
|
|
4040
4069
|
}
|
|
4041
4070
|
};
|
|
4042
|
-
return /* @__PURE__ */
|
|
4071
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: { ...styles$3.stepperContainer, ...containerStyle } }, data?.map((item, index) => {
|
|
4043
4072
|
const stepCircleStyle = renderCircleStyle(item?.status);
|
|
4044
4073
|
const dividerStyle = renderDividerStyle(item?.status);
|
|
4045
4074
|
const labelStyle = renderLableStyle(item?.status);
|
|
4046
4075
|
const lastViewStyle = index === data?.length - 1 ? styles$3.lastStepWrapper : null;
|
|
4047
|
-
return /* @__PURE__ */
|
|
4076
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
4048
4077
|
View,
|
|
4049
4078
|
{
|
|
4050
4079
|
key: index?.toString(),
|
|
4051
4080
|
style: { ...styles$3.stepperWrapper, ...lastViewStyle }
|
|
4052
4081
|
},
|
|
4053
|
-
/* @__PURE__ */
|
|
4082
|
+
/* @__PURE__ */ React__default.createElement(View, { style: styles$3.stepperSeparatorContainer }, /* @__PURE__ */ React__default.createElement(View, { style: { ...stepCircleStyle } }, showStepCount && /* @__PURE__ */ React__default.createElement(
|
|
4054
4083
|
CustomTypography,
|
|
4055
4084
|
{
|
|
4056
4085
|
text: item?.step,
|
|
@@ -4059,8 +4088,8 @@ const Stepper = ({
|
|
|
4059
4088
|
color: theme.CONTENT_PRIMARY
|
|
4060
4089
|
}
|
|
4061
4090
|
}
|
|
4062
|
-
), showStatus && item?.status === Status.Completed && completedStatusIcon), index != data?.length - 1 && /* @__PURE__ */
|
|
4063
|
-
/* @__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(
|
|
4064
4093
|
CustomTypography,
|
|
4065
4094
|
{
|
|
4066
4095
|
text: item?.label,
|
|
@@ -4161,11 +4190,11 @@ const CustomSlideButton = ({
|
|
|
4161
4190
|
})
|
|
4162
4191
|
).current;
|
|
4163
4192
|
const { theme } = useTheme();
|
|
4164
|
-
return /* @__PURE__ */
|
|
4193
|
+
return /* @__PURE__ */ React__default.createElement(View, { style: {
|
|
4165
4194
|
...styles$2.sliderContainer,
|
|
4166
4195
|
backgroundColor: theme.SURFACE_INVERTED,
|
|
4167
4196
|
...containerStyle
|
|
4168
|
-
}, onLayout: handleLayout, ref: cardRef }, /* @__PURE__ */
|
|
4197
|
+
}, onLayout: handleLayout, ref: cardRef }, /* @__PURE__ */ React__default.createElement(View, { style: styles$2.buttonTextContainer }, /* @__PURE__ */ React__default.createElement(
|
|
4169
4198
|
CustomTypography,
|
|
4170
4199
|
{
|
|
4171
4200
|
text: label,
|
|
@@ -4176,13 +4205,13 @@ const CustomSlideButton = ({
|
|
|
4176
4205
|
...textStyle
|
|
4177
4206
|
}
|
|
4178
4207
|
}
|
|
4179
|
-
)), /* @__PURE__ */
|
|
4208
|
+
)), /* @__PURE__ */ React__default.createElement(
|
|
4180
4209
|
Animated.View,
|
|
4181
4210
|
{
|
|
4182
4211
|
style: [styles$2.slider, { transform: [{ translateX: pan }] }],
|
|
4183
4212
|
...panResponder.panHandlers
|
|
4184
4213
|
},
|
|
4185
|
-
/* @__PURE__ */
|
|
4214
|
+
/* @__PURE__ */ React__default.createElement(
|
|
4186
4215
|
View,
|
|
4187
4216
|
{
|
|
4188
4217
|
style: {
|
|
@@ -4302,7 +4331,7 @@ const AppointmentCard = ({
|
|
|
4302
4331
|
directionText
|
|
4303
4332
|
}) => {
|
|
4304
4333
|
const { theme } = useTheme();
|
|
4305
|
-
return /* @__PURE__ */
|
|
4334
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
4306
4335
|
Accordion$1,
|
|
4307
4336
|
{
|
|
4308
4337
|
title,
|
|
@@ -4315,14 +4344,14 @@ const AppointmentCard = ({
|
|
|
4315
4344
|
borderBottomColor: theme.BORDER_SEPERATOR_HEADER
|
|
4316
4345
|
},
|
|
4317
4346
|
headerStyle: styles$1.accordionHeader,
|
|
4318
|
-
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(
|
|
4319
4348
|
CustomTypography,
|
|
4320
4349
|
{
|
|
4321
4350
|
text: headerTitle,
|
|
4322
4351
|
variant: FontStyle.L2_REGULAR,
|
|
4323
4352
|
style: { color: theme.CONTENT_SECONDRY }
|
|
4324
4353
|
}
|
|
4325
|
-
), /* @__PURE__ */
|
|
4354
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
4326
4355
|
CustomTypography,
|
|
4327
4356
|
{
|
|
4328
4357
|
text: headerSubtitle,
|
|
@@ -4332,7 +4361,7 @@ const AppointmentCard = ({
|
|
|
4332
4361
|
))),
|
|
4333
4362
|
icon
|
|
4334
4363
|
},
|
|
4335
|
-
/* @__PURE__ */
|
|
4364
|
+
/* @__PURE__ */ React__default.createElement(
|
|
4336
4365
|
View,
|
|
4337
4366
|
{
|
|
4338
4367
|
style: [
|
|
@@ -4340,14 +4369,14 @@ const AppointmentCard = ({
|
|
|
4340
4369
|
{ borderTopColor: theme.BORDER_SEPERATOR_HEADER }
|
|
4341
4370
|
]
|
|
4342
4371
|
},
|
|
4343
|
-
/* @__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(
|
|
4344
4373
|
CustomTypography,
|
|
4345
4374
|
{
|
|
4346
4375
|
text: title2,
|
|
4347
4376
|
variant: FontStyle.L3_REGULAR,
|
|
4348
4377
|
style: { color: theme.CONTENT_SECONDRY }
|
|
4349
4378
|
}
|
|
4350
|
-
), /* @__PURE__ */
|
|
4379
|
+
), /* @__PURE__ */ React__default.createElement(View, { style: styles$1.infoRow }, isStatus && statusIcon, /* @__PURE__ */ React__default.createElement(
|
|
4351
4380
|
CustomTypography,
|
|
4352
4381
|
{
|
|
4353
4382
|
text: value,
|
|
@@ -4356,7 +4385,7 @@ const AppointmentCard = ({
|
|
|
4356
4385
|
color: isStatus ? theme.WARNING : theme.CONTENT_PRIMARY
|
|
4357
4386
|
}
|
|
4358
4387
|
}
|
|
4359
|
-
)), isLocation && /* @__PURE__ */
|
|
4388
|
+
)), isLocation && /* @__PURE__ */ React__default.createElement(
|
|
4360
4389
|
CustomTypography,
|
|
4361
4390
|
{
|
|
4362
4391
|
text: directionText,
|
|
@@ -4368,7 +4397,7 @@ const AppointmentCard = ({
|
|
|
4368
4397
|
onPress: onDirectionPress
|
|
4369
4398
|
}
|
|
4370
4399
|
)))),
|
|
4371
|
-
/* @__PURE__ */
|
|
4400
|
+
/* @__PURE__ */ React__default.createElement(
|
|
4372
4401
|
View,
|
|
4373
4402
|
{
|
|
4374
4403
|
style: [
|
|
@@ -4379,7 +4408,7 @@ const AppointmentCard = ({
|
|
|
4379
4408
|
]
|
|
4380
4409
|
},
|
|
4381
4410
|
infoIcon,
|
|
4382
|
-
/* @__PURE__ */
|
|
4411
|
+
/* @__PURE__ */ React__default.createElement(
|
|
4383
4412
|
CustomTypography,
|
|
4384
4413
|
{
|
|
4385
4414
|
text: info,
|
|
@@ -4388,7 +4417,7 @@ const AppointmentCard = ({
|
|
|
4388
4417
|
}
|
|
4389
4418
|
)
|
|
4390
4419
|
),
|
|
4391
|
-
/* @__PURE__ */
|
|
4420
|
+
/* @__PURE__ */ React__default.createElement(
|
|
4392
4421
|
View,
|
|
4393
4422
|
{
|
|
4394
4423
|
style: [
|
|
@@ -4398,7 +4427,7 @@ const AppointmentCard = ({
|
|
|
4398
4427
|
}
|
|
4399
4428
|
]
|
|
4400
4429
|
},
|
|
4401
|
-
/* @__PURE__ */
|
|
4430
|
+
/* @__PURE__ */ React__default.createElement(
|
|
4402
4431
|
CustomTypography,
|
|
4403
4432
|
{
|
|
4404
4433
|
text: viewText,
|
|
@@ -4412,7 +4441,7 @@ const AppointmentCard = ({
|
|
|
4412
4441
|
onPress: onViewDetailsPress
|
|
4413
4442
|
}
|
|
4414
4443
|
),
|
|
4415
|
-
/* @__PURE__ */
|
|
4444
|
+
/* @__PURE__ */ React__default.createElement(View, { style: styles$1.actionIcons }, /* @__PURE__ */ React__default.createElement(
|
|
4416
4445
|
CustomIcon,
|
|
4417
4446
|
{
|
|
4418
4447
|
icon: deleteIcon,
|
|
@@ -4422,7 +4451,7 @@ const AppointmentCard = ({
|
|
|
4422
4451
|
},
|
|
4423
4452
|
onPress: onDeletePress
|
|
4424
4453
|
}
|
|
4425
|
-
), /* @__PURE__ */
|
|
4454
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
4426
4455
|
CustomIcon,
|
|
4427
4456
|
{
|
|
4428
4457
|
icon: editIcon,
|
|
@@ -4475,7 +4504,7 @@ const PropertyDetails = ({
|
|
|
4475
4504
|
onRightIconPress
|
|
4476
4505
|
}) => {
|
|
4477
4506
|
const { theme } = useTheme();
|
|
4478
|
-
return /* @__PURE__ */
|
|
4507
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
4479
4508
|
View,
|
|
4480
4509
|
{
|
|
4481
4510
|
style: {
|
|
@@ -4484,25 +4513,25 @@ const PropertyDetails = ({
|
|
|
4484
4513
|
borderColor: theme.BORDER_SEPERATOR_HEADER
|
|
4485
4514
|
}
|
|
4486
4515
|
},
|
|
4487
|
-
|
|
4516
|
+
React__default.cloneElement(icon, {
|
|
4488
4517
|
width: moderateScale(87),
|
|
4489
4518
|
height: moderateScale(87)
|
|
4490
4519
|
}),
|
|
4491
|
-
/* @__PURE__ */
|
|
4520
|
+
/* @__PURE__ */ React__default.createElement(View, { style: styles.propertyInfo }, brandIcon, /* @__PURE__ */ React__default.createElement(
|
|
4492
4521
|
CustomTypography,
|
|
4493
4522
|
{
|
|
4494
4523
|
text: title,
|
|
4495
4524
|
variant: FontStyle.L2_REGULAR,
|
|
4496
4525
|
style: { color: theme.CONTENT_PRIMARY }
|
|
4497
4526
|
}
|
|
4498
|
-
), /* @__PURE__ */
|
|
4527
|
+
), /* @__PURE__ */ React__default.createElement(
|
|
4499
4528
|
CustomTypography,
|
|
4500
4529
|
{
|
|
4501
4530
|
text: subTitle,
|
|
4502
4531
|
variant: FontStyle.L1_REGULAR,
|
|
4503
4532
|
style: { color: theme.CONTENT_PRIMARY }
|
|
4504
4533
|
}
|
|
4505
|
-
), /* @__PURE__ */
|
|
4534
|
+
), /* @__PURE__ */ React__default.createElement(View, { style: styles.propertyNumber }, /* @__PURE__ */ React__default.createElement(
|
|
4506
4535
|
CustomTypography,
|
|
4507
4536
|
{
|
|
4508
4537
|
text: propertyNumber,
|
|
@@ -4512,7 +4541,7 @@ const PropertyDetails = ({
|
|
|
4512
4541
|
}
|
|
4513
4542
|
}
|
|
4514
4543
|
), hintIcon)),
|
|
4515
|
-
/* @__PURE__ */
|
|
4544
|
+
/* @__PURE__ */ React__default.createElement(
|
|
4516
4545
|
CustomIcon,
|
|
4517
4546
|
{
|
|
4518
4547
|
icon: btnIcon,
|