dhre-ui-kit 0.0.294 → 0.0.296
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 +71 -71
- package/lib/index.js +75 -67
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +217 -209
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React, { createContext, useContext, useState, useEffect, useRef, memo, useCallback } from 'react';
|
|
2
2
|
import { useSelector } from 'react-redux';
|
|
3
3
|
import { Dimensions, StyleSheet, Text, Pressable, View, Platform, KeyboardAvoidingView, TextInput, ScrollView, Animated, FlatList, TouchableOpacity, Modal as Modal$1, Alert, Linking, PanResponder } from 'react-native';
|
|
4
4
|
import Modal from 'react-native-modal';
|
|
@@ -272,7 +272,7 @@ const ThemeProvider = ({ children }) => {
|
|
|
272
272
|
acc[key] = theme[key][mode];
|
|
273
273
|
return acc;
|
|
274
274
|
}, {});
|
|
275
|
-
return /* @__PURE__ */ React
|
|
275
|
+
return /* @__PURE__ */ React.createElement(ThemeContext.Provider, { value: { theme: filteredTheme, mode } }, children);
|
|
276
276
|
};
|
|
277
277
|
const useTheme = () => {
|
|
278
278
|
const context = useContext(ThemeContext);
|
|
@@ -283,7 +283,7 @@ const useTheme = () => {
|
|
|
283
283
|
};
|
|
284
284
|
|
|
285
285
|
const withThemeProvider = (Component) => {
|
|
286
|
-
return (props) => /* @__PURE__ */ React
|
|
286
|
+
return (props) => /* @__PURE__ */ React.createElement(ThemeProvider, null, /* @__PURE__ */ React.createElement(Component, { ...props }));
|
|
287
287
|
};
|
|
288
288
|
|
|
289
289
|
const { width, height } = Dimensions.get("window");
|
|
@@ -347,7 +347,7 @@ const CustomTypography = ({
|
|
|
347
347
|
...props
|
|
348
348
|
}) => {
|
|
349
349
|
const textStyle = FONT_STYLES[variant];
|
|
350
|
-
return /* @__PURE__ */ React
|
|
350
|
+
return /* @__PURE__ */ React.createElement(
|
|
351
351
|
Text,
|
|
352
352
|
{
|
|
353
353
|
testID,
|
|
@@ -369,7 +369,7 @@ const CustomText = ({
|
|
|
369
369
|
...props
|
|
370
370
|
}) => {
|
|
371
371
|
const { theme } = useTheme();
|
|
372
|
-
return /* @__PURE__ */ React
|
|
372
|
+
return /* @__PURE__ */ React.createElement(
|
|
373
373
|
CustomTypography,
|
|
374
374
|
{
|
|
375
375
|
variant,
|
|
@@ -593,15 +593,15 @@ const Badge = ({
|
|
|
593
593
|
iconStyle,
|
|
594
594
|
handleIconPress
|
|
595
595
|
}) => {
|
|
596
|
-
return /* @__PURE__ */ React
|
|
596
|
+
return /* @__PURE__ */ React.createElement(
|
|
597
597
|
Pressable,
|
|
598
598
|
{
|
|
599
599
|
style: [styles$A.badge, commonStyles.centerRow, style],
|
|
600
600
|
testID: "BADGE",
|
|
601
601
|
onPress: handleIconPress
|
|
602
602
|
},
|
|
603
|
-
iconName && /* @__PURE__ */ React
|
|
604
|
-
text && /* @__PURE__ */ React
|
|
603
|
+
iconName && /* @__PURE__ */ React.createElement(View, { style: [styles$A.icon, iconStyle] }, React.cloneElement(iconName)),
|
|
604
|
+
text && /* @__PURE__ */ React.createElement(
|
|
605
605
|
CustomTypography,
|
|
606
606
|
{
|
|
607
607
|
variant: "B3semiBold",
|
|
@@ -680,7 +680,7 @@ const BottomDrawer = ({
|
|
|
680
680
|
propagateSwipe = true,
|
|
681
681
|
swipeDirection = "down"
|
|
682
682
|
}) => {
|
|
683
|
-
return /* @__PURE__ */ React
|
|
683
|
+
return /* @__PURE__ */ React.createElement(
|
|
684
684
|
Modal,
|
|
685
685
|
{
|
|
686
686
|
isVisible: isModalVisible,
|
|
@@ -692,25 +692,25 @@ const BottomDrawer = ({
|
|
|
692
692
|
propagateSwipe: true,
|
|
693
693
|
style: { margin: 0 }
|
|
694
694
|
},
|
|
695
|
-
/* @__PURE__ */ React
|
|
695
|
+
/* @__PURE__ */ React.createElement(
|
|
696
696
|
KeyboardAvoidingView,
|
|
697
697
|
{
|
|
698
698
|
behavior: isIos() ? "padding" : "height",
|
|
699
699
|
style: { flex: 1 }
|
|
700
700
|
},
|
|
701
|
-
/* @__PURE__ */ React
|
|
701
|
+
/* @__PURE__ */ React.createElement(View, { style: [styles$z.mainContainer, style], testID }, /* @__PURE__ */ React.createElement(View, { style: [styles$z.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React.createElement(Pressable, { onPress: () => swipeDirection === "" && toggleModal() }, showSeparator && /* @__PURE__ */ React.createElement(View, { style: styles$z.separator }), /* @__PURE__ */ React.createElement(View, { style: styles$z.headerContainer }, showLeftIcon && leftIcon ? React.cloneElement(leftIcon, {
|
|
702
702
|
width: moderateScale(24),
|
|
703
703
|
height: moderateScale(24),
|
|
704
704
|
style: styles$z.leftIconStyle,
|
|
705
705
|
onPress: onLeftIconPress
|
|
706
|
-
}) : null, /* @__PURE__ */ React
|
|
706
|
+
}) : null, /* @__PURE__ */ React.createElement(
|
|
707
707
|
CustomTypography,
|
|
708
708
|
{
|
|
709
709
|
variant: titleVariant,
|
|
710
710
|
text: title,
|
|
711
711
|
style: { ...styles$z.title, ...titleStyle }
|
|
712
712
|
}
|
|
713
|
-
), showRightIcon && rightIcon ? React
|
|
713
|
+
), showRightIcon && rightIcon ? React.cloneElement(rightIcon, {
|
|
714
714
|
width: moderateScale(24),
|
|
715
715
|
height: moderateScale(24),
|
|
716
716
|
style: styles$z.rightIconStyle,
|
|
@@ -770,7 +770,7 @@ const CustomLoader = ({ loading, loadingText = "Loading..." }) => {
|
|
|
770
770
|
const styles = createStyles$3(theme);
|
|
771
771
|
if (!loading) return null;
|
|
772
772
|
else {
|
|
773
|
-
return /* @__PURE__ */ React
|
|
773
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles.container }, /* @__PURE__ */ React.createElement(View, { style: styles.backdrop }, /* @__PURE__ */ React.createElement(View, { style: styles.box }, /* @__PURE__ */ React.createElement(View, { style: styles.loader }, /* @__PURE__ */ React.createElement(LottieView, { style: styles.loader, source: loaderJson, autoPlay: true, loop: true })), /* @__PURE__ */ React.createElement(
|
|
774
774
|
CustomText$1,
|
|
775
775
|
{
|
|
776
776
|
text: loadingText,
|
|
@@ -801,7 +801,7 @@ const CustomButton = ({
|
|
|
801
801
|
isLoading = false
|
|
802
802
|
}) => {
|
|
803
803
|
const { theme } = useTheme();
|
|
804
|
-
return /* @__PURE__ */ React
|
|
804
|
+
return /* @__PURE__ */ React.createElement(
|
|
805
805
|
Pressable,
|
|
806
806
|
{
|
|
807
807
|
testID,
|
|
@@ -818,8 +818,8 @@ const CustomButton = ({
|
|
|
818
818
|
onPress,
|
|
819
819
|
disabled
|
|
820
820
|
},
|
|
821
|
-
imagePosition === "left" && leftIcon && /* @__PURE__ */ React
|
|
822
|
-
isLoading ? /* @__PURE__ */ React
|
|
821
|
+
imagePosition === "left" && leftIcon && /* @__PURE__ */ React.createElement(View, { style: iconStyle }, React.cloneElement(leftIcon, { width: 20, height: 20 })),
|
|
822
|
+
isLoading ? /* @__PURE__ */ React.createElement(CustomLoader$1, { loading: isLoading }) : /* @__PURE__ */ React.createElement(
|
|
823
823
|
CustomText$1,
|
|
824
824
|
{
|
|
825
825
|
text: title,
|
|
@@ -833,7 +833,7 @@ const CustomButton = ({
|
|
|
833
833
|
textColor: titleColor
|
|
834
834
|
}
|
|
835
835
|
),
|
|
836
|
-
imagePosition === "right" && rightIcon && /* @__PURE__ */ React
|
|
836
|
+
imagePosition === "right" && rightIcon && /* @__PURE__ */ React.createElement(View, { style: iconStyle }, React.cloneElement(rightIcon, { width: 20, height: 20 }))
|
|
837
837
|
);
|
|
838
838
|
};
|
|
839
839
|
const styles$y = StyleSheet.create({
|
|
@@ -913,42 +913,42 @@ const Cards = ({
|
|
|
913
913
|
testID,
|
|
914
914
|
onButtonPress
|
|
915
915
|
}) => {
|
|
916
|
-
return /* @__PURE__ */ React
|
|
916
|
+
return /* @__PURE__ */ React.createElement(View, { testID, style: styles$x.container }, topLeftTitle ? /* @__PURE__ */ React.createElement(View, { style: styles$x.topLeft }, /* @__PURE__ */ React.createElement(
|
|
917
917
|
CustomTypography,
|
|
918
918
|
{
|
|
919
919
|
variant: "P2regular",
|
|
920
920
|
style: styles$x.title,
|
|
921
921
|
text: topLeftTitle
|
|
922
922
|
}
|
|
923
|
-
)) : null, title ? /* @__PURE__ */ React
|
|
923
|
+
)) : null, title ? /* @__PURE__ */ React.createElement(
|
|
924
924
|
CustomTypography,
|
|
925
925
|
{
|
|
926
926
|
variant: "H6bold",
|
|
927
927
|
style: styles$x.subTitleBelow,
|
|
928
928
|
text: title
|
|
929
929
|
}
|
|
930
|
-
) : null, subtitle ? /* @__PURE__ */ React
|
|
930
|
+
) : null, subtitle ? /* @__PURE__ */ React.createElement(
|
|
931
931
|
CustomTypography,
|
|
932
932
|
{
|
|
933
933
|
variant: "P3regular",
|
|
934
934
|
style: styles$x.subtitle,
|
|
935
935
|
text: subtitle
|
|
936
936
|
}
|
|
937
|
-
) : null, /* @__PURE__ */ React
|
|
937
|
+
) : null, /* @__PURE__ */ React.createElement(View, { style: styles$x.leftBottomView }, iconSource ? iconSource : null, iconTitle ? /* @__PURE__ */ React.createElement(
|
|
938
938
|
CustomTypography,
|
|
939
939
|
{
|
|
940
940
|
variant: "P3regular",
|
|
941
941
|
style: styles$x.subTitleLeftBelow,
|
|
942
942
|
text: iconTitle
|
|
943
943
|
}
|
|
944
|
-
) : null), buttonShown ? /* @__PURE__ */ React
|
|
944
|
+
) : null), buttonShown ? /* @__PURE__ */ React.createElement(
|
|
945
945
|
Pressable,
|
|
946
946
|
{
|
|
947
947
|
testID: "Button-Press",
|
|
948
948
|
style: styles$x.button,
|
|
949
949
|
onPress: onButtonPress
|
|
950
950
|
},
|
|
951
|
-
/* @__PURE__ */ React
|
|
951
|
+
/* @__PURE__ */ React.createElement(
|
|
952
952
|
CustomTypography,
|
|
953
953
|
{
|
|
954
954
|
variant: "B2semiBold",
|
|
@@ -1010,12 +1010,12 @@ const Checkbox = ({
|
|
|
1010
1010
|
setChecked(!checked);
|
|
1011
1011
|
onCheck && onCheck(!checked);
|
|
1012
1012
|
};
|
|
1013
|
-
return /* @__PURE__ */ React
|
|
1013
|
+
return /* @__PURE__ */ React.createElement(View, { testID, style: containerStyle }, /* @__PURE__ */ React.createElement(
|
|
1014
1014
|
View,
|
|
1015
1015
|
{
|
|
1016
1016
|
style: styles$w.directionStyle
|
|
1017
1017
|
},
|
|
1018
|
-
/* @__PURE__ */ React
|
|
1018
|
+
/* @__PURE__ */ React.createElement(
|
|
1019
1019
|
Pressable,
|
|
1020
1020
|
{
|
|
1021
1021
|
testID: "Checkbox-Press",
|
|
@@ -1023,9 +1023,9 @@ const Checkbox = ({
|
|
|
1023
1023
|
disabled: disable,
|
|
1024
1024
|
style: styles$w.checkboxContainer
|
|
1025
1025
|
},
|
|
1026
|
-
React
|
|
1026
|
+
React.cloneElement(checked ? checkedIcon : uncheckedIcon)
|
|
1027
1027
|
),
|
|
1028
|
-
/* @__PURE__ */ React
|
|
1028
|
+
/* @__PURE__ */ React.createElement(
|
|
1029
1029
|
CustomTypography,
|
|
1030
1030
|
{
|
|
1031
1031
|
variant: titleVariant,
|
|
@@ -1087,26 +1087,26 @@ const CustomDropdown$1 = ({
|
|
|
1087
1087
|
downArrowIcon
|
|
1088
1088
|
}) => {
|
|
1089
1089
|
const [showOptions, setShowOptions] = useState(false);
|
|
1090
|
-
return /* @__PURE__ */ React
|
|
1090
|
+
return /* @__PURE__ */ React.createElement(View, { testID: testId }, /* @__PURE__ */ React.createElement(
|
|
1091
1091
|
CustomTypography,
|
|
1092
1092
|
{
|
|
1093
1093
|
variant: "P3regular",
|
|
1094
1094
|
style: styles$v.labelStyle,
|
|
1095
1095
|
text: label
|
|
1096
1096
|
}
|
|
1097
|
-
), /* @__PURE__ */ React
|
|
1097
|
+
), /* @__PURE__ */ React.createElement(
|
|
1098
1098
|
Pressable,
|
|
1099
1099
|
{
|
|
1100
1100
|
testID: `${testId}-BTN`,
|
|
1101
1101
|
style: styles$v.dropDownStyle,
|
|
1102
1102
|
onPress: () => setShowOptions(!showOptions)
|
|
1103
1103
|
},
|
|
1104
|
-
iconName && /* @__PURE__ */ React
|
|
1104
|
+
iconName && /* @__PURE__ */ React.createElement(View, { style: iconStyle }, React.cloneElement(iconName, {
|
|
1105
1105
|
width: moderateScale(24),
|
|
1106
1106
|
height: moderateScale(24),
|
|
1107
1107
|
style: styles$v.iconStyle
|
|
1108
1108
|
})),
|
|
1109
|
-
/* @__PURE__ */ React
|
|
1109
|
+
/* @__PURE__ */ React.createElement(
|
|
1110
1110
|
CustomTypography,
|
|
1111
1111
|
{
|
|
1112
1112
|
variant: "P3regular",
|
|
@@ -1114,14 +1114,14 @@ const CustomDropdown$1 = ({
|
|
|
1114
1114
|
text: selectedValue ? selectedValue.label : placeholder
|
|
1115
1115
|
}
|
|
1116
1116
|
),
|
|
1117
|
-
/* @__PURE__ */ React
|
|
1117
|
+
/* @__PURE__ */ React.createElement(View, null, showOptions ? React.cloneElement(upArrowIcon, {
|
|
1118
1118
|
width: moderateScale(24),
|
|
1119
1119
|
height: moderateScale(24)
|
|
1120
|
-
}) : React
|
|
1120
|
+
}) : React.cloneElement(downArrowIcon, {
|
|
1121
1121
|
width: moderateScale(24),
|
|
1122
1122
|
height: moderateScale(24)
|
|
1123
1123
|
}))
|
|
1124
|
-
), showOptions && /* @__PURE__ */ React
|
|
1124
|
+
), showOptions && /* @__PURE__ */ React.createElement(View, { style: styles$v.optionContainer }, options?.map(({ id, value, label: label2 }) => /* @__PURE__ */ React.createElement(
|
|
1125
1125
|
Pressable,
|
|
1126
1126
|
{
|
|
1127
1127
|
key: id,
|
|
@@ -1137,12 +1137,12 @@ const CustomDropdown$1 = ({
|
|
|
1137
1137
|
}
|
|
1138
1138
|
]
|
|
1139
1139
|
},
|
|
1140
|
-
iconName && /* @__PURE__ */ React
|
|
1140
|
+
iconName && /* @__PURE__ */ React.createElement(View, { style: iconStyle }, React.cloneElement(iconName, {
|
|
1141
1141
|
width: moderateScale(24),
|
|
1142
1142
|
height: moderateScale(24),
|
|
1143
1143
|
style: styles$v.iconStyle
|
|
1144
1144
|
})),
|
|
1145
|
-
/* @__PURE__ */ React
|
|
1145
|
+
/* @__PURE__ */ React.createElement(
|
|
1146
1146
|
CustomTypography,
|
|
1147
1147
|
{
|
|
1148
1148
|
variant: "P3regular",
|
|
@@ -1233,14 +1233,14 @@ const CustomTextInput = ({
|
|
|
1233
1233
|
};
|
|
1234
1234
|
const handleIconPress1 = () => setValue("");
|
|
1235
1235
|
const handleIconPress2 = () => setIsSecureTextEntry(!isSecureTextEntry);
|
|
1236
|
-
return /* @__PURE__ */ React
|
|
1236
|
+
return /* @__PURE__ */ React.createElement(View, { testID }, /* @__PURE__ */ React.createElement(
|
|
1237
1237
|
CustomTypography,
|
|
1238
1238
|
{
|
|
1239
1239
|
variant: "P3medium",
|
|
1240
1240
|
style: [styles$u.labelStyle, disabled && styles$u.disableTextStyle],
|
|
1241
1241
|
text: label
|
|
1242
1242
|
}
|
|
1243
|
-
), /* @__PURE__ */ React
|
|
1243
|
+
), /* @__PURE__ */ React.createElement(
|
|
1244
1244
|
View,
|
|
1245
1245
|
{
|
|
1246
1246
|
style: [
|
|
@@ -1255,12 +1255,12 @@ const CustomTextInput = ({
|
|
|
1255
1255
|
}
|
|
1256
1256
|
]
|
|
1257
1257
|
},
|
|
1258
|
-
isSearchBar && searchIcon && React
|
|
1258
|
+
isSearchBar && searchIcon && React.cloneElement(searchIcon, {
|
|
1259
1259
|
width: moderateScale(24),
|
|
1260
1260
|
height: moderateScale(24),
|
|
1261
1261
|
style: styles$u.searchIconStyle
|
|
1262
1262
|
}),
|
|
1263
|
-
/* @__PURE__ */ React
|
|
1263
|
+
/* @__PURE__ */ React.createElement(
|
|
1264
1264
|
TextInput,
|
|
1265
1265
|
{
|
|
1266
1266
|
...props,
|
|
@@ -1277,15 +1277,15 @@ const CustomTextInput = ({
|
|
|
1277
1277
|
secureTextEntry: isSecureTextEntry
|
|
1278
1278
|
}
|
|
1279
1279
|
),
|
|
1280
|
-
value && !multiline && rightIcon1 && React
|
|
1280
|
+
value && !multiline && rightIcon1 && React.cloneElement(rightIcon1, {
|
|
1281
1281
|
onPress: handleIconPress1,
|
|
1282
1282
|
testID: "icon1"
|
|
1283
1283
|
}),
|
|
1284
|
-
secureTextEntry && rightIcon2 && React
|
|
1284
|
+
secureTextEntry && rightIcon2 && React.cloneElement(rightIcon2, {
|
|
1285
1285
|
onPress: handleIconPress2,
|
|
1286
1286
|
testID: "icon2"
|
|
1287
1287
|
})
|
|
1288
|
-
), (error || successMessage) && /* @__PURE__ */ React
|
|
1288
|
+
), (error || successMessage) && /* @__PURE__ */ React.createElement(
|
|
1289
1289
|
CustomTypography,
|
|
1290
1290
|
{
|
|
1291
1291
|
numberOfLines: 2,
|
|
@@ -1308,7 +1308,7 @@ const CustomTooltip = ({
|
|
|
1308
1308
|
backgroundColor,
|
|
1309
1309
|
triggerElement
|
|
1310
1310
|
}) => {
|
|
1311
|
-
return /* @__PURE__ */ React
|
|
1311
|
+
return /* @__PURE__ */ React.createElement(
|
|
1312
1312
|
Tooltip,
|
|
1313
1313
|
{
|
|
1314
1314
|
isVisible,
|
|
@@ -1369,27 +1369,27 @@ const FileUpload = ({
|
|
|
1369
1369
|
icon,
|
|
1370
1370
|
iconStyle
|
|
1371
1371
|
}) => {
|
|
1372
|
-
return /* @__PURE__ */ React
|
|
1372
|
+
return /* @__PURE__ */ React.createElement(
|
|
1373
1373
|
View,
|
|
1374
1374
|
{
|
|
1375
1375
|
style: [styles$t.container, containerStyle],
|
|
1376
1376
|
testID: "file-upload-container"
|
|
1377
1377
|
},
|
|
1378
|
-
/* @__PURE__ */ React
|
|
1378
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$t.content }, /* @__PURE__ */ React.createElement(View, { style: [uploadImageStyling], testID: "file-upload-image" }, icon && React.cloneElement(icon, { style: [iconStyle] })), /* @__PURE__ */ React.createElement(CustomTypography, { variant: "H8bold", style: styles$t.title, text: title }), /* @__PURE__ */ React.createElement(
|
|
1379
1379
|
CustomTypography,
|
|
1380
1380
|
{
|
|
1381
1381
|
variant: "P4regular",
|
|
1382
1382
|
style: styles$t.description,
|
|
1383
1383
|
text: `Drop files directly here or `
|
|
1384
1384
|
}
|
|
1385
|
-
), /* @__PURE__ */ React
|
|
1385
|
+
), /* @__PURE__ */ React.createElement(
|
|
1386
1386
|
CustomTypography,
|
|
1387
1387
|
{
|
|
1388
1388
|
variant: "P4regular",
|
|
1389
1389
|
style: styles$t.browse,
|
|
1390
1390
|
text: btnText
|
|
1391
1391
|
}
|
|
1392
|
-
), /* @__PURE__ */ React
|
|
1392
|
+
), /* @__PURE__ */ React.createElement(
|
|
1393
1393
|
CustomTypography,
|
|
1394
1394
|
{
|
|
1395
1395
|
testID: "file-upload-description",
|
|
@@ -1398,14 +1398,14 @@ const FileUpload = ({
|
|
|
1398
1398
|
text: ` from your device`
|
|
1399
1399
|
}
|
|
1400
1400
|
)),
|
|
1401
|
-
/* @__PURE__ */ React
|
|
1401
|
+
/* @__PURE__ */ React.createElement(
|
|
1402
1402
|
Pressable,
|
|
1403
1403
|
{
|
|
1404
1404
|
style: styles$t.button,
|
|
1405
1405
|
onPress: onUpload,
|
|
1406
1406
|
testID: "file-upload-button"
|
|
1407
1407
|
},
|
|
1408
|
-
/* @__PURE__ */ React
|
|
1408
|
+
/* @__PURE__ */ React.createElement(
|
|
1409
1409
|
CustomTypography,
|
|
1410
1410
|
{
|
|
1411
1411
|
variant: "B2semiBold",
|
|
@@ -1418,7 +1418,7 @@ const FileUpload = ({
|
|
|
1418
1418
|
};
|
|
1419
1419
|
|
|
1420
1420
|
const PdfView = (props) => {
|
|
1421
|
-
return /* @__PURE__ */ React
|
|
1421
|
+
return /* @__PURE__ */ React.createElement(Pdf, { ...props });
|
|
1422
1422
|
};
|
|
1423
1423
|
|
|
1424
1424
|
const styles$s = StyleSheet.create({
|
|
@@ -1477,28 +1477,28 @@ const PopUp = ({
|
|
|
1477
1477
|
leftButtonShown = false,
|
|
1478
1478
|
rightButtonShown = false
|
|
1479
1479
|
}) => {
|
|
1480
|
-
return /* @__PURE__ */ React
|
|
1480
|
+
return /* @__PURE__ */ React.createElement(View, { testID, style: styles$s.container }, title ? /* @__PURE__ */ React.createElement(
|
|
1481
1481
|
CustomTypography,
|
|
1482
1482
|
{
|
|
1483
1483
|
style: styles$s.subTitleBelow,
|
|
1484
1484
|
variant: "H6semiBold",
|
|
1485
1485
|
text: title
|
|
1486
1486
|
}
|
|
1487
|
-
) : null, subtitle ? /* @__PURE__ */ React
|
|
1487
|
+
) : null, subtitle ? /* @__PURE__ */ React.createElement(
|
|
1488
1488
|
CustomTypography,
|
|
1489
1489
|
{
|
|
1490
1490
|
style: styles$s.subtitle,
|
|
1491
1491
|
variant: "P3regular",
|
|
1492
1492
|
text: subtitle
|
|
1493
1493
|
}
|
|
1494
|
-
) : null, /* @__PURE__ */ React
|
|
1494
|
+
) : null, /* @__PURE__ */ React.createElement(View, { style: styles$s.buttonContainer }, leftButtonShown ? /* @__PURE__ */ React.createElement(
|
|
1495
1495
|
Pressable,
|
|
1496
1496
|
{
|
|
1497
1497
|
testID: "Left-Button-Press",
|
|
1498
1498
|
style: styles$s.buttonLeft,
|
|
1499
1499
|
onPress: onButtonPress
|
|
1500
1500
|
},
|
|
1501
|
-
/* @__PURE__ */ React
|
|
1501
|
+
/* @__PURE__ */ React.createElement(
|
|
1502
1502
|
CustomTypography,
|
|
1503
1503
|
{
|
|
1504
1504
|
style: styles$s.buttonLeftText,
|
|
@@ -1506,7 +1506,7 @@ const PopUp = ({
|
|
|
1506
1506
|
text: buttonText
|
|
1507
1507
|
}
|
|
1508
1508
|
)
|
|
1509
|
-
) : null, rightButtonShown ? /* @__PURE__ */ React
|
|
1509
|
+
) : null, rightButtonShown ? /* @__PURE__ */ React.createElement(Pressable, { style: styles$s.button, onPress: onButtonPress }, /* @__PURE__ */ React.createElement(
|
|
1510
1510
|
CustomTypography,
|
|
1511
1511
|
{
|
|
1512
1512
|
style: styles$s.buttonText,
|
|
@@ -1548,7 +1548,7 @@ const CustomProgressBar = ({
|
|
|
1548
1548
|
return () => clearInterval(progressInterval);
|
|
1549
1549
|
}, [progress, value, increment, interval]);
|
|
1550
1550
|
const showPercentage = () => {
|
|
1551
|
-
return /* @__PURE__ */ React
|
|
1551
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles$r.flexDirection }, /* @__PURE__ */ React.createElement(
|
|
1552
1552
|
CustomText$1,
|
|
1553
1553
|
{
|
|
1554
1554
|
text: `${value}%`,
|
|
@@ -1556,7 +1556,7 @@ const CustomProgressBar = ({
|
|
|
1556
1556
|
textColor: "CONTENT_PRIMARY",
|
|
1557
1557
|
style: valueTextStyle
|
|
1558
1558
|
}
|
|
1559
|
-
), percentageText ? /* @__PURE__ */ React
|
|
1559
|
+
), percentageText ? /* @__PURE__ */ React.createElement(
|
|
1560
1560
|
CustomText$1,
|
|
1561
1561
|
{
|
|
1562
1562
|
text: percentageText,
|
|
@@ -1569,7 +1569,7 @@ const CustomProgressBar = ({
|
|
|
1569
1569
|
const renderProgressBar = () => {
|
|
1570
1570
|
switch (type) {
|
|
1571
1571
|
case ShapeType.LINE:
|
|
1572
|
-
return /* @__PURE__ */ React
|
|
1572
|
+
return /* @__PURE__ */ React.createElement(
|
|
1573
1573
|
Progress.Bar,
|
|
1574
1574
|
{
|
|
1575
1575
|
progress: progress / 100,
|
|
@@ -1583,7 +1583,7 @@ const CustomProgressBar = ({
|
|
|
1583
1583
|
}
|
|
1584
1584
|
);
|
|
1585
1585
|
case ShapeType.CIRCLE:
|
|
1586
|
-
return /* @__PURE__ */ React
|
|
1586
|
+
return /* @__PURE__ */ React.createElement(
|
|
1587
1587
|
Progress.Circle,
|
|
1588
1588
|
{
|
|
1589
1589
|
progress: progress / 100,
|
|
@@ -1601,7 +1601,7 @@ const CustomProgressBar = ({
|
|
|
1601
1601
|
return null;
|
|
1602
1602
|
}
|
|
1603
1603
|
};
|
|
1604
|
-
return /* @__PURE__ */ React
|
|
1604
|
+
return /* @__PURE__ */ React.createElement(View, { testID: "custom-progress-bar" }, renderProgressBar());
|
|
1605
1605
|
};
|
|
1606
1606
|
const styles$r = StyleSheet.create({
|
|
1607
1607
|
flexDirection: {
|
|
@@ -1634,19 +1634,19 @@ const splitRating = (rating) => {
|
|
|
1634
1634
|
const drawStar = (starIndex, ratingArray, size, fullStarIcon, halfStarIcon, fullStarColor, emptyStarColor) => {
|
|
1635
1635
|
const [fullStars, decimalPart] = ratingArray;
|
|
1636
1636
|
if (starIndex <= fullStars) {
|
|
1637
|
-
return React
|
|
1637
|
+
return React.cloneElement(fullStarIcon, {
|
|
1638
1638
|
style: { height: size, width: size },
|
|
1639
1639
|
fill: fullStarColor,
|
|
1640
1640
|
testID: `star-${starIndex}`
|
|
1641
1641
|
});
|
|
1642
1642
|
} else if (starIndex === fullStars + 1 && decimalPart >= 0.5) {
|
|
1643
|
-
return React
|
|
1643
|
+
return React.cloneElement(halfStarIcon, {
|
|
1644
1644
|
style: { height: size, width: size },
|
|
1645
1645
|
fill: fullStarColor,
|
|
1646
1646
|
testID: `star-${starIndex}`
|
|
1647
1647
|
});
|
|
1648
1648
|
} else {
|
|
1649
|
-
return React
|
|
1649
|
+
return React.cloneElement(fullStarIcon, {
|
|
1650
1650
|
style: { height: size, width: size },
|
|
1651
1651
|
fill: emptyStarColor,
|
|
1652
1652
|
testID: `star-${starIndex}`
|
|
@@ -1677,10 +1677,10 @@ const Star = ({
|
|
|
1677
1677
|
emptyStarColor
|
|
1678
1678
|
);
|
|
1679
1679
|
stars.push(
|
|
1680
|
-
/* @__PURE__ */ React
|
|
1680
|
+
/* @__PURE__ */ React.createElement(View, { key: i, style: [styles$q.star, starStyle] }, starType)
|
|
1681
1681
|
);
|
|
1682
1682
|
}
|
|
1683
|
-
return /* @__PURE__ */ React
|
|
1683
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles$q.container, testID: "star" }, stars);
|
|
1684
1684
|
};
|
|
1685
1685
|
|
|
1686
1686
|
var styles$p = StyleSheet.create({
|
|
@@ -1709,6 +1709,7 @@ const Tabs = ({
|
|
|
1709
1709
|
options,
|
|
1710
1710
|
initialSelected = [],
|
|
1711
1711
|
onSelectionChange,
|
|
1712
|
+
rating,
|
|
1712
1713
|
style
|
|
1713
1714
|
}) => {
|
|
1714
1715
|
const { theme } = useTheme();
|
|
@@ -1719,6 +1720,13 @@ const Tabs = ({
|
|
|
1719
1720
|
isSelected: initialSelected?.includes(option)
|
|
1720
1721
|
}))
|
|
1721
1722
|
);
|
|
1723
|
+
useEffect(() => {
|
|
1724
|
+
setData(options.map((option) => ({
|
|
1725
|
+
title: option,
|
|
1726
|
+
id: option,
|
|
1727
|
+
isSelected: initialSelected?.includes(option)
|
|
1728
|
+
})));
|
|
1729
|
+
}, [rating]);
|
|
1722
1730
|
const handlePress = (id) => {
|
|
1723
1731
|
const updatedData = data?.map(
|
|
1724
1732
|
(item) => item?.id === id ? { ...item, isSelected: !item?.isSelected } : item
|
|
@@ -1729,7 +1737,7 @@ const Tabs = ({
|
|
|
1729
1737
|
onSelectionChange(selectedTabs);
|
|
1730
1738
|
}
|
|
1731
1739
|
};
|
|
1732
|
-
return /* @__PURE__ */ React
|
|
1740
|
+
return /* @__PURE__ */ React.createElement(View, { style: [styles$p.container, style] }, data?.map(({ id, title, isSelected }) => /* @__PURE__ */ React.createElement(
|
|
1733
1741
|
Pressable,
|
|
1734
1742
|
{
|
|
1735
1743
|
key: id,
|
|
@@ -1740,7 +1748,7 @@ const Tabs = ({
|
|
|
1740
1748
|
},
|
|
1741
1749
|
onPress: () => handlePress(id)
|
|
1742
1750
|
},
|
|
1743
|
-
/* @__PURE__ */ React
|
|
1751
|
+
/* @__PURE__ */ React.createElement(
|
|
1744
1752
|
CustomText$1,
|
|
1745
1753
|
{
|
|
1746
1754
|
variant: FontStyle.L2_REGULAR,
|
|
@@ -1810,7 +1818,7 @@ const Tags = ({
|
|
|
1810
1818
|
);
|
|
1811
1819
|
handleTagsChange(tag);
|
|
1812
1820
|
};
|
|
1813
|
-
return /* @__PURE__ */ React
|
|
1821
|
+
return /* @__PURE__ */ React.createElement(
|
|
1814
1822
|
ScrollView,
|
|
1815
1823
|
{
|
|
1816
1824
|
testID,
|
|
@@ -1818,7 +1826,7 @@ const Tags = ({
|
|
|
1818
1826
|
contentContainerStyle: styles$o.contentContainer,
|
|
1819
1827
|
horizontal: false
|
|
1820
1828
|
},
|
|
1821
|
-
tags?.map((tag) => /* @__PURE__ */ React
|
|
1829
|
+
tags?.map((tag) => /* @__PURE__ */ React.createElement(
|
|
1822
1830
|
Pressable,
|
|
1823
1831
|
{
|
|
1824
1832
|
testID: `${testID}-${tag}-BTN`,
|
|
@@ -1830,7 +1838,7 @@ const Tags = ({
|
|
|
1830
1838
|
selectedTags.includes(tag) ? styles$o.selectedTag : styles$o.tagUnSelected
|
|
1831
1839
|
]
|
|
1832
1840
|
},
|
|
1833
|
-
/* @__PURE__ */ React
|
|
1841
|
+
/* @__PURE__ */ React.createElement(
|
|
1834
1842
|
CustomTypography,
|
|
1835
1843
|
{
|
|
1836
1844
|
variant: selectedTags.includes(tag) ? "H9semiBold" : "P4regular",
|
|
@@ -1838,13 +1846,13 @@ const Tags = ({
|
|
|
1838
1846
|
text: tag
|
|
1839
1847
|
}
|
|
1840
1848
|
),
|
|
1841
|
-
selectedTags.includes(tag) && icon && /* @__PURE__ */ React
|
|
1849
|
+
selectedTags.includes(tag) && icon && /* @__PURE__ */ React.createElement(
|
|
1842
1850
|
Pressable,
|
|
1843
1851
|
{
|
|
1844
1852
|
testID: `${testID}-${tag}-PRESS`,
|
|
1845
1853
|
onPress: () => removeTag(tag)
|
|
1846
1854
|
},
|
|
1847
|
-
React
|
|
1855
|
+
React.cloneElement(icon, { style: [icon.props.style, iconStyle] })
|
|
1848
1856
|
)
|
|
1849
1857
|
))
|
|
1850
1858
|
);
|
|
@@ -1911,14 +1919,14 @@ const CustomSwitch = ({
|
|
|
1911
1919
|
const animatedStyle = {
|
|
1912
1920
|
transform: [{ translateX: animatedValue }]
|
|
1913
1921
|
};
|
|
1914
|
-
return /* @__PURE__ */ React
|
|
1922
|
+
return /* @__PURE__ */ React.createElement(
|
|
1915
1923
|
Pressable,
|
|
1916
1924
|
{
|
|
1917
1925
|
onPress: toggleSwitch,
|
|
1918
1926
|
style: [styles$n.container, { width }],
|
|
1919
1927
|
testID: "custom-switch"
|
|
1920
1928
|
},
|
|
1921
|
-
/* @__PURE__ */ React
|
|
1929
|
+
/* @__PURE__ */ React.createElement(
|
|
1922
1930
|
View,
|
|
1923
1931
|
{
|
|
1924
1932
|
style: [
|
|
@@ -1928,8 +1936,8 @@ const CustomSwitch = ({
|
|
|
1928
1936
|
}
|
|
1929
1937
|
]
|
|
1930
1938
|
},
|
|
1931
|
-
/* @__PURE__ */ React
|
|
1932
|
-
type !== ToggleButtonType.SMALL && /* @__PURE__ */ React
|
|
1939
|
+
/* @__PURE__ */ React.createElement(Animated.View, { style: [styles$n.thumb, animatedStyle] }),
|
|
1940
|
+
type !== ToggleButtonType.SMALL && /* @__PURE__ */ React.createElement(
|
|
1933
1941
|
CustomTypography,
|
|
1934
1942
|
{
|
|
1935
1943
|
variant: "B3semiBold",
|
|
@@ -2001,7 +2009,7 @@ const Accordion = ({
|
|
|
2001
2009
|
inputRange: [0, 1],
|
|
2002
2010
|
outputRange: [0, contentHeight]
|
|
2003
2011
|
});
|
|
2004
|
-
return /* @__PURE__ */ React
|
|
2012
|
+
return /* @__PURE__ */ React.createElement(
|
|
2005
2013
|
View,
|
|
2006
2014
|
{
|
|
2007
2015
|
style: {
|
|
@@ -2011,13 +2019,13 @@ const Accordion = ({
|
|
|
2011
2019
|
},
|
|
2012
2020
|
testID: testId
|
|
2013
2021
|
},
|
|
2014
|
-
/* @__PURE__ */ React
|
|
2022
|
+
/* @__PURE__ */ React.createElement(
|
|
2015
2023
|
Pressable,
|
|
2016
2024
|
{
|
|
2017
2025
|
style: [styles$m.header, headerStyle, disabled && { opacity: 0.5 }],
|
|
2018
2026
|
onPress: !disabled ? onToggle : void 0
|
|
2019
2027
|
},
|
|
2020
|
-
headerComponent ? headerComponent() : /* @__PURE__ */ React
|
|
2028
|
+
headerComponent ? headerComponent() : /* @__PURE__ */ React.createElement(
|
|
2021
2029
|
CustomTypography,
|
|
2022
2030
|
{
|
|
2023
2031
|
variant: titleVariant,
|
|
@@ -2029,14 +2037,14 @@ const Accordion = ({
|
|
|
2029
2037
|
}
|
|
2030
2038
|
}
|
|
2031
2039
|
),
|
|
2032
|
-
icon ? React
|
|
2040
|
+
icon ? React.cloneElement(icon, {
|
|
2033
2041
|
width: moderateScale(20),
|
|
2034
2042
|
height: moderateScale(20),
|
|
2035
2043
|
style: styles$m.iconStyle
|
|
2036
2044
|
}) : null
|
|
2037
2045
|
),
|
|
2038
2046
|
optionalElement ? optionalElement() : null,
|
|
2039
|
-
isOpen && /* @__PURE__ */ React
|
|
2047
|
+
isOpen && /* @__PURE__ */ React.createElement(Animated.View, { style: [styles$m.content, { height: cardHeight }] }, /* @__PURE__ */ React.createElement(
|
|
2040
2048
|
View,
|
|
2041
2049
|
{
|
|
2042
2050
|
ref: contentRef,
|
|
@@ -2083,7 +2091,7 @@ const styles$l = StyleSheet.create({
|
|
|
2083
2091
|
}
|
|
2084
2092
|
});
|
|
2085
2093
|
|
|
2086
|
-
const Toast = React
|
|
2094
|
+
const Toast = React.forwardRef(
|
|
2087
2095
|
({ sucessIcon, errorIcon }, ref) => {
|
|
2088
2096
|
const [visible, setVisible] = useState(false);
|
|
2089
2097
|
const [message, setMessage] = useState("");
|
|
@@ -2129,10 +2137,10 @@ const Toast = React$1.forwardRef(
|
|
|
2129
2137
|
return () => clearInterval(interval);
|
|
2130
2138
|
}
|
|
2131
2139
|
}, [visible]);
|
|
2132
|
-
React
|
|
2140
|
+
React.useImperativeHandle(ref, () => ({
|
|
2133
2141
|
showToast
|
|
2134
2142
|
}));
|
|
2135
|
-
return visible ? /* @__PURE__ */ React
|
|
2143
|
+
return visible ? /* @__PURE__ */ React.createElement(
|
|
2136
2144
|
Animated.View,
|
|
2137
2145
|
{
|
|
2138
2146
|
style: [
|
|
@@ -2143,21 +2151,21 @@ const Toast = React$1.forwardRef(
|
|
|
2143
2151
|
],
|
|
2144
2152
|
testID: "TOAST"
|
|
2145
2153
|
},
|
|
2146
|
-
/* @__PURE__ */ React
|
|
2154
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$l.toastContainer }, /* @__PURE__ */ React.createElement(View, { style: styles$l.innerContainer }, /* @__PURE__ */ React.createElement(Pressable, { onPress: hideToast }, isSuccess ? sucessIcon : errorIcon), /* @__PURE__ */ React.createElement(
|
|
2147
2155
|
CustomTypography,
|
|
2148
2156
|
{
|
|
2149
2157
|
variant: "L2_REGULAR",
|
|
2150
2158
|
text: message,
|
|
2151
2159
|
style: styles$l.messageText
|
|
2152
2160
|
}
|
|
2153
|
-
), btnText && /* @__PURE__ */ React
|
|
2161
|
+
), btnText && /* @__PURE__ */ React.createElement(
|
|
2154
2162
|
Pressable,
|
|
2155
2163
|
{
|
|
2156
2164
|
style: styles$l.button,
|
|
2157
2165
|
onPress: onBtnPress || void 0,
|
|
2158
2166
|
testID: "TOAST-BTN"
|
|
2159
2167
|
},
|
|
2160
|
-
/* @__PURE__ */ React
|
|
2168
|
+
/* @__PURE__ */ React.createElement(
|
|
2161
2169
|
CustomTypography,
|
|
2162
2170
|
{
|
|
2163
2171
|
variant: "L2_BOLD",
|
|
@@ -2166,7 +2174,7 @@ const Toast = React$1.forwardRef(
|
|
|
2166
2174
|
}
|
|
2167
2175
|
)
|
|
2168
2176
|
))),
|
|
2169
|
-
/* @__PURE__ */ React
|
|
2177
|
+
/* @__PURE__ */ React.createElement(
|
|
2170
2178
|
Progress.Bar,
|
|
2171
2179
|
{
|
|
2172
2180
|
progress,
|
|
@@ -2225,7 +2233,7 @@ const CustomSearchBar = ({
|
|
|
2225
2233
|
pointerEvents,
|
|
2226
2234
|
...props
|
|
2227
2235
|
}) => {
|
|
2228
|
-
return /* @__PURE__ */ React
|
|
2236
|
+
return /* @__PURE__ */ React.createElement(
|
|
2229
2237
|
Pressable,
|
|
2230
2238
|
{
|
|
2231
2239
|
testID,
|
|
@@ -2239,7 +2247,7 @@ const CustomSearchBar = ({
|
|
|
2239
2247
|
],
|
|
2240
2248
|
onPress: handlePress
|
|
2241
2249
|
},
|
|
2242
|
-
/* @__PURE__ */ React
|
|
2250
|
+
/* @__PURE__ */ React.createElement(
|
|
2243
2251
|
Pressable,
|
|
2244
2252
|
{
|
|
2245
2253
|
onPress: () => {
|
|
@@ -2248,13 +2256,13 @@ const CustomSearchBar = ({
|
|
|
2248
2256
|
},
|
|
2249
2257
|
style: searchIconStyle
|
|
2250
2258
|
},
|
|
2251
|
-
React
|
|
2259
|
+
React.cloneElement(searchIcon, {
|
|
2252
2260
|
width: moderateScale(24),
|
|
2253
2261
|
height: moderateScale(24),
|
|
2254
2262
|
style: [styles$k.searchIconStyle, searchIconStyle]
|
|
2255
2263
|
})
|
|
2256
2264
|
),
|
|
2257
|
-
/* @__PURE__ */ React
|
|
2265
|
+
/* @__PURE__ */ React.createElement(
|
|
2258
2266
|
TextInput,
|
|
2259
2267
|
{
|
|
2260
2268
|
...props,
|
|
@@ -2270,7 +2278,7 @@ const CustomSearchBar = ({
|
|
|
2270
2278
|
pointerEvents
|
|
2271
2279
|
}
|
|
2272
2280
|
),
|
|
2273
|
-
value && /* @__PURE__ */ React
|
|
2281
|
+
value && /* @__PURE__ */ React.createElement(
|
|
2274
2282
|
Pressable,
|
|
2275
2283
|
{
|
|
2276
2284
|
onPress: () => {
|
|
@@ -2279,7 +2287,7 @@ const CustomSearchBar = ({
|
|
|
2279
2287
|
},
|
|
2280
2288
|
style: crossIconStyle
|
|
2281
2289
|
},
|
|
2282
|
-
React
|
|
2290
|
+
React.cloneElement(rightIcon, {
|
|
2283
2291
|
// width: moderateScale(24),
|
|
2284
2292
|
// height: moderateScale(24),
|
|
2285
2293
|
style: [styles$k.crossIconStyle, crossIconStyle]
|
|
@@ -2316,7 +2324,7 @@ const CustomHeader = ({
|
|
|
2316
2324
|
onRightPress
|
|
2317
2325
|
}) => {
|
|
2318
2326
|
const { theme } = useTheme();
|
|
2319
|
-
return /* @__PURE__ */ React
|
|
2327
|
+
return /* @__PURE__ */ React.createElement(
|
|
2320
2328
|
View,
|
|
2321
2329
|
{
|
|
2322
2330
|
style: {
|
|
@@ -2326,12 +2334,12 @@ const CustomHeader = ({
|
|
|
2326
2334
|
},
|
|
2327
2335
|
testID: testId
|
|
2328
2336
|
},
|
|
2329
|
-
/* @__PURE__ */ React
|
|
2337
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$j.headderContainer }, showLeftIcon && leftIcon ? React.cloneElement(leftIcon, {
|
|
2330
2338
|
width: moderateScale(24),
|
|
2331
2339
|
height: moderateScale(24),
|
|
2332
2340
|
onPress: onLeftPress,
|
|
2333
2341
|
style: styles$j.leftIconStyle
|
|
2334
|
-
}) : null, /* @__PURE__ */ React
|
|
2342
|
+
}) : null, /* @__PURE__ */ React.createElement(
|
|
2335
2343
|
CustomTypography,
|
|
2336
2344
|
{
|
|
2337
2345
|
variant: "B2_REGULAR",
|
|
@@ -2339,7 +2347,7 @@ const CustomHeader = ({
|
|
|
2339
2347
|
style: { color: theme.CONTENT_PRIMARY }
|
|
2340
2348
|
}
|
|
2341
2349
|
)),
|
|
2342
|
-
showRightIcon && rightIcon ? React
|
|
2350
|
+
showRightIcon && rightIcon ? React.cloneElement(rightIcon, {
|
|
2343
2351
|
width: moderateScale(24),
|
|
2344
2352
|
height: moderateScale(24),
|
|
2345
2353
|
onPress: onRightPress,
|
|
@@ -2407,7 +2415,7 @@ const SwipableList = (props) => {
|
|
|
2407
2415
|
onPress,
|
|
2408
2416
|
style,
|
|
2409
2417
|
testID
|
|
2410
|
-
}) => /* @__PURE__ */ React
|
|
2418
|
+
}) => /* @__PURE__ */ React.createElement(
|
|
2411
2419
|
Pressable,
|
|
2412
2420
|
{
|
|
2413
2421
|
testID,
|
|
@@ -2415,7 +2423,7 @@ const SwipableList = (props) => {
|
|
|
2415
2423
|
style: [styles$i.actionButton, style]
|
|
2416
2424
|
},
|
|
2417
2425
|
icon,
|
|
2418
|
-
/* @__PURE__ */ React
|
|
2426
|
+
/* @__PURE__ */ React.createElement(
|
|
2419
2427
|
CustomTypography,
|
|
2420
2428
|
{
|
|
2421
2429
|
variant: "L1_REGULAR",
|
|
@@ -2424,7 +2432,7 @@ const SwipableList = (props) => {
|
|
|
2424
2432
|
}
|
|
2425
2433
|
)
|
|
2426
2434
|
);
|
|
2427
|
-
const leftActionHandle = (item, leftPrimaryActionIcon, leftPrimaryActionTitle, leftSecondaryActionIcon, leftSecondaryActionTitle) => /* @__PURE__ */ React
|
|
2435
|
+
const leftActionHandle = (item, leftPrimaryActionIcon, leftPrimaryActionTitle, leftSecondaryActionIcon, leftSecondaryActionTitle) => /* @__PURE__ */ React.createElement(View, { style: styles$i.actionBtn }, leftPrimaryActionIcon && /* @__PURE__ */ React.createElement(
|
|
2428
2436
|
ActionButton,
|
|
2429
2437
|
{
|
|
2430
2438
|
icon: leftPrimaryActionIcon,
|
|
@@ -2436,7 +2444,7 @@ const SwipableList = (props) => {
|
|
|
2436
2444
|
style: leftPrimaryActionStyle,
|
|
2437
2445
|
testID: `${testId}-LEFT-PRIMARY-${item.id}`
|
|
2438
2446
|
}
|
|
2439
|
-
), leftSecondaryActionIcon && /* @__PURE__ */ React
|
|
2447
|
+
), leftSecondaryActionIcon && /* @__PURE__ */ React.createElement(
|
|
2440
2448
|
ActionButton,
|
|
2441
2449
|
{
|
|
2442
2450
|
icon: leftSecondaryActionIcon,
|
|
@@ -2449,7 +2457,7 @@ const SwipableList = (props) => {
|
|
|
2449
2457
|
testID: `${testId}-LEFT-SECONDARY-${item.id}`
|
|
2450
2458
|
}
|
|
2451
2459
|
));
|
|
2452
|
-
const rightActionHandle = (item) => /* @__PURE__ */ React
|
|
2460
|
+
const rightActionHandle = (item) => /* @__PURE__ */ React.createElement(View, { style: [styles$i.actionBtn, rightPrimaryActionStyle] }, rightPrimaryActionIcon && /* @__PURE__ */ React.createElement(
|
|
2453
2461
|
ActionButton,
|
|
2454
2462
|
{
|
|
2455
2463
|
icon: rightPrimaryActionIcon,
|
|
@@ -2462,7 +2470,7 @@ const SwipableList = (props) => {
|
|
|
2462
2470
|
testID: `${testId}-RIGHT-PRIMARY-${item.id}`
|
|
2463
2471
|
}
|
|
2464
2472
|
));
|
|
2465
|
-
const renderItem = ({ item }) => /* @__PURE__ */ React
|
|
2473
|
+
const renderItem = ({ item }) => /* @__PURE__ */ React.createElement(GestureHandlerRootView, { testID: `${testId}-LIST`, style: styles$i.container }, /* @__PURE__ */ React.createElement(
|
|
2466
2474
|
Swipeable,
|
|
2467
2475
|
{
|
|
2468
2476
|
ref: (ref) => swipeableRefs.current[item.id] = ref,
|
|
@@ -2478,13 +2486,13 @@ const SwipableList = (props) => {
|
|
|
2478
2486
|
},
|
|
2479
2487
|
props?.renderItem(item)
|
|
2480
2488
|
));
|
|
2481
|
-
return /* @__PURE__ */ React
|
|
2489
|
+
return /* @__PURE__ */ React.createElement(View, { testID: testId }, /* @__PURE__ */ React.createElement(
|
|
2482
2490
|
FlatList,
|
|
2483
2491
|
{
|
|
2484
2492
|
data,
|
|
2485
2493
|
renderItem,
|
|
2486
2494
|
keyExtractor: (item) => item.id,
|
|
2487
|
-
ItemSeparatorComponent: () => /* @__PURE__ */ React
|
|
2495
|
+
ItemSeparatorComponent: () => /* @__PURE__ */ React.createElement(
|
|
2488
2496
|
View,
|
|
2489
2497
|
{
|
|
2490
2498
|
style: {
|
|
@@ -2517,7 +2525,7 @@ const CustomIcon = ({
|
|
|
2517
2525
|
containerStyle,
|
|
2518
2526
|
titleStyle
|
|
2519
2527
|
}) => {
|
|
2520
|
-
return /* @__PURE__ */ React
|
|
2528
|
+
return /* @__PURE__ */ React.createElement(
|
|
2521
2529
|
Pressable,
|
|
2522
2530
|
{
|
|
2523
2531
|
style: [styles$h.container, containerStyle],
|
|
@@ -2525,7 +2533,7 @@ const CustomIcon = ({
|
|
|
2525
2533
|
testID: testId
|
|
2526
2534
|
},
|
|
2527
2535
|
icon,
|
|
2528
|
-
title && /* @__PURE__ */ React
|
|
2536
|
+
title && /* @__PURE__ */ React.createElement(
|
|
2529
2537
|
CustomTypography,
|
|
2530
2538
|
{
|
|
2531
2539
|
variant: titleVariant,
|
|
@@ -2550,7 +2558,7 @@ function AnimationWithImperativeApi() {
|
|
|
2550
2558
|
|
|
2551
2559
|
const HorizontalLine = ({ backgroundColor = "SURFACE_SECONDARY", style }) => {
|
|
2552
2560
|
const { theme } = useTheme();
|
|
2553
|
-
return /* @__PURE__ */ React
|
|
2561
|
+
return /* @__PURE__ */ React.createElement(
|
|
2554
2562
|
View,
|
|
2555
2563
|
{
|
|
2556
2564
|
style: [
|
|
@@ -2580,7 +2588,7 @@ const Topic = ({
|
|
|
2580
2588
|
subTitleStyle
|
|
2581
2589
|
}) => {
|
|
2582
2590
|
const { theme } = useTheme();
|
|
2583
|
-
return /* @__PURE__ */ React
|
|
2591
|
+
return /* @__PURE__ */ React.createElement(
|
|
2584
2592
|
TouchableOpacity,
|
|
2585
2593
|
{
|
|
2586
2594
|
style: [
|
|
@@ -2590,9 +2598,9 @@ const Topic = ({
|
|
|
2590
2598
|
],
|
|
2591
2599
|
onPress
|
|
2592
2600
|
},
|
|
2593
|
-
rightIcon && /* @__PURE__ */ React
|
|
2594
|
-
/* @__PURE__ */ React
|
|
2595
|
-
/* @__PURE__ */ React
|
|
2601
|
+
rightIcon && /* @__PURE__ */ React.createElement(View, { style: styles$f.rightIconContainer }, React.cloneElement(rightIcon)),
|
|
2602
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$f.timeContainer }, time && /* @__PURE__ */ React.createElement(CustomText$1, { text: time, variant: FontStyle.L2_REGULAR })),
|
|
2603
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$f.textContainer }, /* @__PURE__ */ React.createElement(View, { style: styles$f.paymentView }, statusImage && /* @__PURE__ */ React.createElement(View, null, React.cloneElement(statusImage)), subTitle && /* @__PURE__ */ React.createElement(
|
|
2596
2604
|
CustomText$1,
|
|
2597
2605
|
{
|
|
2598
2606
|
style: [styles$f.subTitle, subTitleStyle],
|
|
@@ -2600,7 +2608,7 @@ const Topic = ({
|
|
|
2600
2608
|
variant: FontStyle.L2_REGULAR,
|
|
2601
2609
|
textColor: Theme.CONTENT_PRIMARY
|
|
2602
2610
|
}
|
|
2603
|
-
)), /* @__PURE__ */ React
|
|
2611
|
+
)), /* @__PURE__ */ React.createElement(
|
|
2604
2612
|
CustomText$1,
|
|
2605
2613
|
{
|
|
2606
2614
|
text: title,
|
|
@@ -2703,27 +2711,27 @@ const ContactModal = ({
|
|
|
2703
2711
|
onClose();
|
|
2704
2712
|
};
|
|
2705
2713
|
const emailOptions = ["Mail", "Gmail", "Outlook"];
|
|
2706
|
-
const renderEmailOptions = () => /* @__PURE__ */ React
|
|
2714
|
+
const renderEmailOptions = () => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
2707
2715
|
CustomText$1,
|
|
2708
2716
|
{
|
|
2709
2717
|
style: styles$e.title,
|
|
2710
2718
|
text: "Open email app",
|
|
2711
2719
|
variant: "L2_REGULAR"
|
|
2712
2720
|
}
|
|
2713
|
-
), /* @__PURE__ */ React
|
|
2721
|
+
), /* @__PURE__ */ React.createElement(
|
|
2714
2722
|
CustomText$1,
|
|
2715
2723
|
{
|
|
2716
2724
|
style: styles$e.subtitle,
|
|
2717
2725
|
text: "Which app would you like to open?",
|
|
2718
2726
|
variant: "L2_REGULAR"
|
|
2719
2727
|
}
|
|
2720
|
-
), emailOptions.map((option) => /* @__PURE__ */ React
|
|
2728
|
+
), emailOptions.map((option) => /* @__PURE__ */ React.createElement(React.Fragment, { key: option }, /* @__PURE__ */ React.createElement(Line, null), /* @__PURE__ */ React.createElement(
|
|
2721
2729
|
Pressable,
|
|
2722
2730
|
{
|
|
2723
2731
|
onPress: () => handleOptionPress(),
|
|
2724
2732
|
style: styles$e.optionButton
|
|
2725
2733
|
},
|
|
2726
|
-
/* @__PURE__ */ React
|
|
2734
|
+
/* @__PURE__ */ React.createElement(
|
|
2727
2735
|
CustomText$1,
|
|
2728
2736
|
{
|
|
2729
2737
|
style: styles$e.optionText,
|
|
@@ -2732,14 +2740,14 @@ const ContactModal = ({
|
|
|
2732
2740
|
}
|
|
2733
2741
|
)
|
|
2734
2742
|
))));
|
|
2735
|
-
const renderContent = () => /* @__PURE__ */ React
|
|
2743
|
+
const renderContent = () => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(View, { style: styles$e.viewContainer }, isMailOpen ? renderEmailOptions() : /* @__PURE__ */ React.createElement(Pressable, { onPress: handleCall, style: styles$e.optionButton }, /* @__PURE__ */ React.createElement(
|
|
2736
2744
|
CustomText$1,
|
|
2737
2745
|
{
|
|
2738
2746
|
style: styles$e.optionText,
|
|
2739
2747
|
text: `Call ${phoneNumber}`,
|
|
2740
2748
|
variant: "B3_BOLD"
|
|
2741
2749
|
}
|
|
2742
|
-
))), /* @__PURE__ */ React
|
|
2750
|
+
))), /* @__PURE__ */ React.createElement(Pressable, { onPress: onClose, style: styles$e.cancelButton }, /* @__PURE__ */ React.createElement(
|
|
2743
2751
|
CustomText$1,
|
|
2744
2752
|
{
|
|
2745
2753
|
style: styles$e.cancelText,
|
|
@@ -2747,7 +2755,7 @@ const ContactModal = ({
|
|
|
2747
2755
|
variant: "B2_REGULAR"
|
|
2748
2756
|
}
|
|
2749
2757
|
)));
|
|
2750
|
-
return /* @__PURE__ */ React
|
|
2758
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles$e.container }, /* @__PURE__ */ React.createElement(
|
|
2751
2759
|
Modal$1,
|
|
2752
2760
|
{
|
|
2753
2761
|
animationType: "slide",
|
|
@@ -2755,7 +2763,7 @@ const ContactModal = ({
|
|
|
2755
2763
|
visible,
|
|
2756
2764
|
onRequestClose: onClose
|
|
2757
2765
|
},
|
|
2758
|
-
/* @__PURE__ */ React
|
|
2766
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$e.modalContainer }, /* @__PURE__ */ React.createElement(View, { style: styles$e.modalContent }, renderContent()))
|
|
2759
2767
|
));
|
|
2760
2768
|
};
|
|
2761
2769
|
const styles$e = StyleSheet.create({
|
|
@@ -2900,7 +2908,7 @@ const DateRangePicker = (props) => {
|
|
|
2900
2908
|
return markedDates;
|
|
2901
2909
|
};
|
|
2902
2910
|
const isButtonDisabled = !selectedRange.startDate || !selectedRange.endDate;
|
|
2903
|
-
return /* @__PURE__ */ React
|
|
2911
|
+
return /* @__PURE__ */ React.createElement(View, null, /* @__PURE__ */ React.createElement(
|
|
2904
2912
|
Calendar,
|
|
2905
2913
|
{
|
|
2906
2914
|
markedDates: getMarkedDates(),
|
|
@@ -2923,7 +2931,7 @@ const DateRangePicker = (props) => {
|
|
|
2923
2931
|
firstDay: 1,
|
|
2924
2932
|
...props
|
|
2925
2933
|
}
|
|
2926
|
-
), /* @__PURE__ */ React
|
|
2934
|
+
), /* @__PURE__ */ React.createElement(
|
|
2927
2935
|
CustomButton$1,
|
|
2928
2936
|
{
|
|
2929
2937
|
title: btnTitle,
|
|
@@ -2954,7 +2962,7 @@ const OurOfficesButton = ({
|
|
|
2954
2962
|
descriptionColor = "CONTENT_SECONDARY"
|
|
2955
2963
|
}) => {
|
|
2956
2964
|
const { theme } = useTheme();
|
|
2957
|
-
return /* @__PURE__ */ React
|
|
2965
|
+
return /* @__PURE__ */ React.createElement(
|
|
2958
2966
|
TouchableOpacity,
|
|
2959
2967
|
{
|
|
2960
2968
|
style: [
|
|
@@ -2964,8 +2972,8 @@ const OurOfficesButton = ({
|
|
|
2964
2972
|
],
|
|
2965
2973
|
onPress
|
|
2966
2974
|
},
|
|
2967
|
-
leftIcon && /* @__PURE__ */ React
|
|
2968
|
-
/* @__PURE__ */ React
|
|
2975
|
+
leftIcon && /* @__PURE__ */ React.createElement(View, { style: styles$c.iconContainer }, React.cloneElement(leftIcon)),
|
|
2976
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$c.textContainer }, /* @__PURE__ */ React.createElement(
|
|
2969
2977
|
CustomText$1,
|
|
2970
2978
|
{
|
|
2971
2979
|
text: title,
|
|
@@ -2973,7 +2981,7 @@ const OurOfficesButton = ({
|
|
|
2973
2981
|
textColor: titleColor,
|
|
2974
2982
|
style: styles$c.textView
|
|
2975
2983
|
}
|
|
2976
|
-
), /* @__PURE__ */ React
|
|
2984
|
+
), /* @__PURE__ */ React.createElement(
|
|
2977
2985
|
CustomText$1,
|
|
2978
2986
|
{
|
|
2979
2987
|
text: description,
|
|
@@ -2982,7 +2990,7 @@ const OurOfficesButton = ({
|
|
|
2982
2990
|
style: styles$c.flexWrap
|
|
2983
2991
|
}
|
|
2984
2992
|
)),
|
|
2985
|
-
rightIcon && /* @__PURE__ */ React
|
|
2993
|
+
rightIcon && /* @__PURE__ */ React.createElement(View, { style: styles$c.rightIconContainer }, React.cloneElement(rightIcon))
|
|
2986
2994
|
);
|
|
2987
2995
|
};
|
|
2988
2996
|
const styles$c = StyleSheet.create({
|
|
@@ -3038,7 +3046,7 @@ const NotificationBandge = ({
|
|
|
3038
3046
|
if (notificationCount <= 0) {
|
|
3039
3047
|
return icon;
|
|
3040
3048
|
}
|
|
3041
|
-
return /* @__PURE__ */ React
|
|
3049
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles$b.iconContainer }, icon, /* @__PURE__ */ React.createElement(View, { style: styles$b.badge }, /* @__PURE__ */ React.createElement(Text, { style: [styles$b.badgeText] }, notificationCount > 99 ? "99+" : notificationCount)));
|
|
3042
3050
|
};
|
|
3043
3051
|
|
|
3044
3052
|
const ScrollableList = ({
|
|
@@ -3059,7 +3067,7 @@ const ScrollableList = ({
|
|
|
3059
3067
|
);
|
|
3060
3068
|
const { theme } = useTheme();
|
|
3061
3069
|
const styles = createStyles$2({ theme });
|
|
3062
|
-
return /* @__PURE__ */ React
|
|
3070
|
+
return /* @__PURE__ */ React.createElement(View, { style: [styles.container, containerStyle] }, /* @__PURE__ */ React.createElement(
|
|
3063
3071
|
ScrollView,
|
|
3064
3072
|
{
|
|
3065
3073
|
horizontal: true,
|
|
@@ -3069,7 +3077,7 @@ const ScrollableList = ({
|
|
|
3069
3077
|
scrollViewContentStyle
|
|
3070
3078
|
]
|
|
3071
3079
|
},
|
|
3072
|
-
data?.map((item) => /* @__PURE__ */ React
|
|
3080
|
+
data?.map((item) => /* @__PURE__ */ React.createElement(
|
|
3073
3081
|
Pressable,
|
|
3074
3082
|
{
|
|
3075
3083
|
key: item.value,
|
|
@@ -3086,7 +3094,7 @@ const ScrollableList = ({
|
|
|
3086
3094
|
handleSelectCategory(item.name, item.value);
|
|
3087
3095
|
}
|
|
3088
3096
|
},
|
|
3089
|
-
/* @__PURE__ */ React
|
|
3097
|
+
/* @__PURE__ */ React.createElement(
|
|
3090
3098
|
CustomText$1,
|
|
3091
3099
|
{
|
|
3092
3100
|
text: item.name,
|
|
@@ -3095,7 +3103,7 @@ const ScrollableList = ({
|
|
|
3095
3103
|
style: (activeTab ?? selectedItem) === item.name ? activeTextStyle ? activeTextStyle : {} : {}
|
|
3096
3104
|
}
|
|
3097
3105
|
),
|
|
3098
|
-
item?.isError ? /* @__PURE__ */ React
|
|
3106
|
+
item?.isError ? /* @__PURE__ */ React.createElement(View, { style: [styles.errorViewStyle, errorStyle] }, item?.errorText ? /* @__PURE__ */ React.createElement(
|
|
3099
3107
|
CustomText$1,
|
|
3100
3108
|
{
|
|
3101
3109
|
text: item?.errorText,
|
|
@@ -3206,7 +3214,7 @@ const FeedbackForm = ({
|
|
|
3206
3214
|
const maxChars = 200;
|
|
3207
3215
|
const { theme } = useTheme();
|
|
3208
3216
|
const styles = createStyles$1(theme);
|
|
3209
|
-
return /* @__PURE__ */ React
|
|
3217
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles.container }, /* @__PURE__ */ React.createElement(
|
|
3210
3218
|
CustomText$1,
|
|
3211
3219
|
{
|
|
3212
3220
|
text: title,
|
|
@@ -3214,7 +3222,7 @@ const FeedbackForm = ({
|
|
|
3214
3222
|
textColor: Theme.CONTENT_SECONDRY,
|
|
3215
3223
|
style: styles.headerText
|
|
3216
3224
|
}
|
|
3217
|
-
), /* @__PURE__ */ React
|
|
3225
|
+
), /* @__PURE__ */ React.createElement(
|
|
3218
3226
|
TextInput,
|
|
3219
3227
|
{
|
|
3220
3228
|
style: [styles.textInput, { height: Math.max(100) }],
|
|
@@ -3225,7 +3233,7 @@ const FeedbackForm = ({
|
|
|
3225
3233
|
value: feedback,
|
|
3226
3234
|
onChangeText: (text) => setFeedback(text)
|
|
3227
3235
|
}
|
|
3228
|
-
), /* @__PURE__ */ React
|
|
3236
|
+
), /* @__PURE__ */ React.createElement(
|
|
3229
3237
|
CustomText$1,
|
|
3230
3238
|
{
|
|
3231
3239
|
text: `${feedback.length}/${maxChars} characters`,
|
|
@@ -3233,14 +3241,14 @@ const FeedbackForm = ({
|
|
|
3233
3241
|
textColor: Theme.CONTENT_SECONDRY,
|
|
3234
3242
|
style: styles.charCounter
|
|
3235
3243
|
}
|
|
3236
|
-
), /* @__PURE__ */ React
|
|
3244
|
+
), /* @__PURE__ */ React.createElement(View, { style: styles.buttonContainer }, /* @__PURE__ */ React.createElement(Pressable, { disabled: feedback?.length < 1, style: feedback?.length < 1 ? styles.feedbackButtonDisable : styles.feedbackButton, onPress: handleSendFeedback }, /* @__PURE__ */ React.createElement(
|
|
3237
3245
|
CustomText$1,
|
|
3238
3246
|
{
|
|
3239
3247
|
text: leftBtnTxt,
|
|
3240
3248
|
variant: FontStyle.L1_REGULAR,
|
|
3241
3249
|
textColor: feedback?.length < 1 ? Theme.CONTENT_SECONDRY : Theme.CONTENT_PRIMARY
|
|
3242
3250
|
}
|
|
3243
|
-
)), /* @__PURE__ */ React
|
|
3251
|
+
)), /* @__PURE__ */ React.createElement(Pressable, { style: styles.cancelButton, onPress: clearAllData }, /* @__PURE__ */ React.createElement(
|
|
3244
3252
|
CustomText$1,
|
|
3245
3253
|
{
|
|
3246
3254
|
text: rightBtnTxt,
|
|
@@ -3278,7 +3286,7 @@ const CountryDropDown = ({
|
|
|
3278
3286
|
setCallingCode(`+${country.callingCode[0]}`);
|
|
3279
3287
|
getCountryCode(`+${country.callingCode[0]}`);
|
|
3280
3288
|
};
|
|
3281
|
-
return /* @__PURE__ */ React
|
|
3289
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(View, { style: [styles$a.container, containerStyle] }, /* @__PURE__ */ React.createElement(View, { style: [styles$a.countryPickerContainer, countryPickerStyle] }, /* @__PURE__ */ React.createElement(
|
|
3282
3290
|
CountryPicker,
|
|
3283
3291
|
{
|
|
3284
3292
|
withFilter: true,
|
|
@@ -3288,21 +3296,21 @@ const CountryDropDown = ({
|
|
|
3288
3296
|
onSelect: handleSelect,
|
|
3289
3297
|
visible: pickerVisible
|
|
3290
3298
|
}
|
|
3291
|
-
), /* @__PURE__ */ React
|
|
3299
|
+
), /* @__PURE__ */ React.createElement(
|
|
3292
3300
|
Text,
|
|
3293
3301
|
{
|
|
3294
3302
|
onPress: () => setPickerVisible(true),
|
|
3295
3303
|
style: [styles$a.callingCode, callingCodeStyle]
|
|
3296
3304
|
},
|
|
3297
3305
|
callingCode
|
|
3298
|
-
)), /* @__PURE__ */ React
|
|
3306
|
+
)), /* @__PURE__ */ React.createElement(View, { style: styles$a.flex }, (isFocused || value) && /* @__PURE__ */ React.createElement(
|
|
3299
3307
|
CustomTypography,
|
|
3300
3308
|
{
|
|
3301
3309
|
variant: "L2_REGULAR",
|
|
3302
3310
|
text: label ?? "",
|
|
3303
3311
|
style: styles$a.floatingLabel
|
|
3304
3312
|
}
|
|
3305
|
-
), /* @__PURE__ */ React
|
|
3313
|
+
), /* @__PURE__ */ React.createElement(
|
|
3306
3314
|
TextInput,
|
|
3307
3315
|
{
|
|
3308
3316
|
style: [styles$a.input, inputStyle],
|
|
@@ -3315,7 +3323,7 @@ const CountryDropDown = ({
|
|
|
3315
3323
|
maxLength,
|
|
3316
3324
|
placeholderTextColor: theme.CONTENT_SECONDRY["light"]
|
|
3317
3325
|
}
|
|
3318
|
-
))), errorMessage ? /* @__PURE__ */ React
|
|
3326
|
+
))), errorMessage ? /* @__PURE__ */ React.createElement(
|
|
3319
3327
|
CustomTypography,
|
|
3320
3328
|
{
|
|
3321
3329
|
variant: "L2_REGULAR",
|
|
@@ -3397,7 +3405,7 @@ const CommonTextInput = (props) => {
|
|
|
3397
3405
|
onRightIconPress,
|
|
3398
3406
|
onlyErrorBorderLabel
|
|
3399
3407
|
} = props;
|
|
3400
|
-
return /* @__PURE__ */ React
|
|
3408
|
+
return /* @__PURE__ */ React.createElement(Pressable, { onPress: handlePress, style: styles$9.container }, /* @__PURE__ */ React.createElement(
|
|
3401
3409
|
TextInput$1,
|
|
3402
3410
|
{
|
|
3403
3411
|
mode: "outlined",
|
|
@@ -3435,7 +3443,7 @@ const CommonTextInput = (props) => {
|
|
|
3435
3443
|
error: errorMessage?.length || onlyErrorBorderLabel ? true : false,
|
|
3436
3444
|
multiline,
|
|
3437
3445
|
numberOfLines: multiline ? 4 : 1,
|
|
3438
|
-
right: rightIcon ? /* @__PURE__ */ React
|
|
3446
|
+
right: rightIcon ? /* @__PURE__ */ React.createElement(
|
|
3439
3447
|
TextInput$1.Icon,
|
|
3440
3448
|
{
|
|
3441
3449
|
icon: rightIcon,
|
|
@@ -3447,7 +3455,7 @@ const CommonTextInput = (props) => {
|
|
|
3447
3455
|
) : null,
|
|
3448
3456
|
...props
|
|
3449
3457
|
}
|
|
3450
|
-
), errorMessage ? /* @__PURE__ */ React
|
|
3458
|
+
), errorMessage ? /* @__PURE__ */ React.createElement(
|
|
3451
3459
|
CustomTypography,
|
|
3452
3460
|
{
|
|
3453
3461
|
variant: "L2_REGULAR",
|
|
@@ -3522,7 +3530,7 @@ const CustomDropdown = (props) => {
|
|
|
3522
3530
|
const [isFocus, setIsFocus] = useState(false);
|
|
3523
3531
|
const renderLabel = () => {
|
|
3524
3532
|
if (value || isFocus) {
|
|
3525
|
-
return /* @__PURE__ */ React
|
|
3533
|
+
return /* @__PURE__ */ React.createElement(
|
|
3526
3534
|
Text,
|
|
3527
3535
|
{
|
|
3528
3536
|
style: [
|
|
@@ -3546,7 +3554,7 @@ const CustomDropdown = (props) => {
|
|
|
3546
3554
|
};
|
|
3547
3555
|
const renderItem = (item) => {
|
|
3548
3556
|
const isSelected = item[valueField] === value;
|
|
3549
|
-
return /* @__PURE__ */ React
|
|
3557
|
+
return /* @__PURE__ */ React.createElement(View, { style: [styles$8.itemContainer, itemContainerStyle] }, /* @__PURE__ */ React.createElement(
|
|
3550
3558
|
Text,
|
|
3551
3559
|
{
|
|
3552
3560
|
style: [
|
|
@@ -3560,7 +3568,7 @@ const CustomDropdown = (props) => {
|
|
|
3560
3568
|
item[labelField]
|
|
3561
3569
|
));
|
|
3562
3570
|
};
|
|
3563
|
-
return /* @__PURE__ */ React
|
|
3571
|
+
return /* @__PURE__ */ React.createElement(View, { style: [styles$8.container, containerStyle] }, label && renderLabel(), /* @__PURE__ */ React.createElement(
|
|
3564
3572
|
Dropdown,
|
|
3565
3573
|
{
|
|
3566
3574
|
...props,
|
|
@@ -3692,20 +3700,20 @@ const CustomSwitchBtn = ({
|
|
|
3692
3700
|
const toggleSwitch = () => {
|
|
3693
3701
|
onValueChange(!value);
|
|
3694
3702
|
};
|
|
3695
|
-
return /* @__PURE__ */ React
|
|
3703
|
+
return /* @__PURE__ */ React.createElement(
|
|
3696
3704
|
Pressable,
|
|
3697
3705
|
{
|
|
3698
3706
|
disabled,
|
|
3699
3707
|
onPress: toggleSwitch,
|
|
3700
3708
|
style: { ...styles$7.mainContainer, ...containerStyle }
|
|
3701
3709
|
},
|
|
3702
|
-
/* @__PURE__ */ React
|
|
3710
|
+
/* @__PURE__ */ React.createElement(
|
|
3703
3711
|
Animated.View,
|
|
3704
3712
|
{
|
|
3705
3713
|
style: [styles$7.circle, { transform: [{ translateX }], ...circleStyle }]
|
|
3706
3714
|
}
|
|
3707
3715
|
),
|
|
3708
|
-
/* @__PURE__ */ React
|
|
3716
|
+
/* @__PURE__ */ React.createElement(
|
|
3709
3717
|
CustomTypography,
|
|
3710
3718
|
{
|
|
3711
3719
|
style: [styles$7.activeText, value ? inActiveTextStyle : activeTextStyle],
|
|
@@ -3713,7 +3721,7 @@ const CustomSwitchBtn = ({
|
|
|
3713
3721
|
variant: activeTextVariant
|
|
3714
3722
|
}
|
|
3715
3723
|
),
|
|
3716
|
-
/* @__PURE__ */ React
|
|
3724
|
+
/* @__PURE__ */ React.createElement(
|
|
3717
3725
|
CustomTypography,
|
|
3718
3726
|
{
|
|
3719
3727
|
style: [
|
|
@@ -3770,7 +3778,7 @@ const TagsComponent = ({
|
|
|
3770
3778
|
}
|
|
3771
3779
|
return tagList;
|
|
3772
3780
|
};
|
|
3773
|
-
const renderTagItem = ({ item }) => /* @__PURE__ */ React
|
|
3781
|
+
const renderTagItem = ({ item }) => /* @__PURE__ */ React.createElement(
|
|
3774
3782
|
Pressable,
|
|
3775
3783
|
{
|
|
3776
3784
|
onPress: () => handleTagPress?.(item.name),
|
|
@@ -3779,7 +3787,7 @@ const TagsComponent = ({
|
|
|
3779
3787
|
selectedTag === item?.name ? [styles.selectedTagButton, selectedTagButton] : [styles.unselectedTagButton, unselectedTagButton]
|
|
3780
3788
|
]
|
|
3781
3789
|
},
|
|
3782
|
-
/* @__PURE__ */ React
|
|
3790
|
+
/* @__PURE__ */ React.createElement(View, null, /* @__PURE__ */ React.createElement(
|
|
3783
3791
|
CustomText$1,
|
|
3784
3792
|
{
|
|
3785
3793
|
textColor: selectedTag === item?.name ? Theme.CONTENT_INVERTED : Theme.CONTENT_SECONDRY,
|
|
@@ -3787,7 +3795,7 @@ const TagsComponent = ({
|
|
|
3787
3795
|
text: item?.name
|
|
3788
3796
|
}
|
|
3789
3797
|
)),
|
|
3790
|
-
/* @__PURE__ */ React
|
|
3798
|
+
/* @__PURE__ */ React.createElement(View, { style: styles.circleViewAlignment }, selectedTag === item?.name && /* @__PURE__ */ React.createElement(
|
|
3791
3799
|
CustomText$1,
|
|
3792
3800
|
{
|
|
3793
3801
|
text: "x",
|
|
@@ -3796,7 +3804,7 @@ const TagsComponent = ({
|
|
|
3796
3804
|
}
|
|
3797
3805
|
))
|
|
3798
3806
|
);
|
|
3799
|
-
return /* @__PURE__ */ React
|
|
3807
|
+
return /* @__PURE__ */ React.createElement(View, null, /* @__PURE__ */ React.createElement(
|
|
3800
3808
|
FlatList,
|
|
3801
3809
|
{
|
|
3802
3810
|
data: reorderedTags(),
|
|
@@ -3915,7 +3923,7 @@ const CustomDocumentPicker = ({
|
|
|
3915
3923
|
const removeDocument = useCallback(() => {
|
|
3916
3924
|
setDocDetails(void 0);
|
|
3917
3925
|
}, []);
|
|
3918
|
-
return /* @__PURE__ */ React
|
|
3926
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
3919
3927
|
View,
|
|
3920
3928
|
{
|
|
3921
3929
|
style: [
|
|
@@ -3925,14 +3933,14 @@ const CustomDocumentPicker = ({
|
|
|
3925
3933
|
containerStyle
|
|
3926
3934
|
]
|
|
3927
3935
|
},
|
|
3928
|
-
/* @__PURE__ */ React
|
|
3936
|
+
/* @__PURE__ */ React.createElement(Pressable, { style: styles$6.innerContainer, onPress: pickDocument }, docDetails ? fileIcon : uploadIcon, /* @__PURE__ */ React.createElement(View, { style: styles$6.titleContainer }, /* @__PURE__ */ React.createElement(
|
|
3929
3937
|
CustomTypography,
|
|
3930
3938
|
{
|
|
3931
3939
|
variant: FontStyle.L2_REGULAR,
|
|
3932
3940
|
text: docDetails?.name ?? title,
|
|
3933
3941
|
style: [{ color: theme.CONTENT_PRIMARY }, titleStyle]
|
|
3934
3942
|
}
|
|
3935
|
-
), !docDetails && /* @__PURE__ */ React
|
|
3943
|
+
), !docDetails && /* @__PURE__ */ React.createElement(
|
|
3936
3944
|
CustomTypography,
|
|
3937
3945
|
{
|
|
3938
3946
|
variant: FontStyle.L3_REGULAR,
|
|
@@ -3940,10 +3948,10 @@ const CustomDocumentPicker = ({
|
|
|
3940
3948
|
style: [{ color: theme.CONTENT_SECONDRY }, hintStyle]
|
|
3941
3949
|
}
|
|
3942
3950
|
))),
|
|
3943
|
-
docDetails && React
|
|
3951
|
+
docDetails && React.cloneElement(deleteIcon, {
|
|
3944
3952
|
onPress: removeDocument
|
|
3945
3953
|
})
|
|
3946
|
-
), error && /* @__PURE__ */ React
|
|
3954
|
+
), error && /* @__PURE__ */ React.createElement(
|
|
3947
3955
|
CustomTypography,
|
|
3948
3956
|
{
|
|
3949
3957
|
variant: FontStyle.L2_REGULAR,
|
|
@@ -3992,7 +4000,7 @@ const styles$5 = StyleSheet.create({
|
|
|
3992
4000
|
}
|
|
3993
4001
|
});
|
|
3994
4002
|
|
|
3995
|
-
const OTPInput = React
|
|
4003
|
+
const OTPInput = React.forwardRef(
|
|
3996
4004
|
({
|
|
3997
4005
|
length = 4,
|
|
3998
4006
|
onComplete,
|
|
@@ -4091,7 +4099,7 @@ const OTPInput = React$1.forwardRef(
|
|
|
4091
4099
|
}
|
|
4092
4100
|
});
|
|
4093
4101
|
};
|
|
4094
|
-
React
|
|
4102
|
+
React.useImperativeHandle(ref, () => ({
|
|
4095
4103
|
reset() {
|
|
4096
4104
|
setOTP("");
|
|
4097
4105
|
refs.current[0]?.focus();
|
|
@@ -4130,7 +4138,7 @@ const OTPInput = React$1.forwardRef(
|
|
|
4130
4138
|
onComplete?.(otp);
|
|
4131
4139
|
}
|
|
4132
4140
|
}, [otp]);
|
|
4133
|
-
return /* @__PURE__ */ React
|
|
4141
|
+
return /* @__PURE__ */ React.createElement(ThemeProvider, null, /* @__PURE__ */ React.createElement(View, { style: { ...otpContainerStyle }, "data-testid": testId }, /* @__PURE__ */ React.createElement(
|
|
4134
4142
|
CustomTypography,
|
|
4135
4143
|
{
|
|
4136
4144
|
text: label,
|
|
@@ -4141,7 +4149,7 @@ const OTPInput = React$1.forwardRef(
|
|
|
4141
4149
|
...otpHeaderTextStyle
|
|
4142
4150
|
}
|
|
4143
4151
|
}
|
|
4144
|
-
), /* @__PURE__ */ React
|
|
4152
|
+
), /* @__PURE__ */ React.createElement(View, { style: { ...styles$5.textInputContainer } }, Array.from({ length }).map((_, index) => /* @__PURE__ */ React.createElement(
|
|
4145
4153
|
TextInput,
|
|
4146
4154
|
{
|
|
4147
4155
|
key: index?.toString(),
|
|
@@ -4165,21 +4173,21 @@ const OTPInput = React$1.forwardRef(
|
|
|
4165
4173
|
autoComplete: "sms-otp",
|
|
4166
4174
|
selectionColor: theme$1.CONTENT_PRIMARY
|
|
4167
4175
|
}
|
|
4168
|
-
))), !errorMessageMaxReachCount && /* @__PURE__ */ React
|
|
4176
|
+
))), !errorMessageMaxReachCount && /* @__PURE__ */ React.createElement(View, { style: styles$5.timerContainer }, /* @__PURE__ */ React.createElement(View, { style: styles$5.timerIconContainer }, (disableResendButton() || !isResendOtpEnable) && /* @__PURE__ */ React.createElement(React.Fragment, null, timerIcon, /* @__PURE__ */ React.createElement(
|
|
4169
4177
|
CustomTypography,
|
|
4170
4178
|
{
|
|
4171
4179
|
text: `00:${timeLeft} secs`,
|
|
4172
4180
|
variant: FontStyle.L1_REGULAR,
|
|
4173
4181
|
style: { color: theme$1.INFO }
|
|
4174
4182
|
}
|
|
4175
|
-
))), /* @__PURE__ */ React
|
|
4183
|
+
))), /* @__PURE__ */ React.createElement(
|
|
4176
4184
|
Pressable,
|
|
4177
4185
|
{
|
|
4178
4186
|
onPress: onClickResendOTP,
|
|
4179
4187
|
style: styles$5.resendOTPStyle,
|
|
4180
4188
|
disabled: disableResendButton() || !isResendOtpEnable
|
|
4181
4189
|
},
|
|
4182
|
-
/* @__PURE__ */ React
|
|
4190
|
+
/* @__PURE__ */ React.createElement(
|
|
4183
4191
|
CustomTypography,
|
|
4184
4192
|
{
|
|
4185
4193
|
text: resendText,
|
|
@@ -4191,7 +4199,7 @@ const OTPInput = React$1.forwardRef(
|
|
|
4191
4199
|
}
|
|
4192
4200
|
}
|
|
4193
4201
|
)
|
|
4194
|
-
)), errorMessage ? /* @__PURE__ */ React
|
|
4202
|
+
)), errorMessage ? /* @__PURE__ */ React.createElement(View, { style: styles$5.resendOtpContainer }, /* @__PURE__ */ React.createElement(
|
|
4195
4203
|
CustomTypography,
|
|
4196
4204
|
{
|
|
4197
4205
|
text: errorMessage,
|
|
@@ -4201,7 +4209,7 @@ const OTPInput = React$1.forwardRef(
|
|
|
4201
4209
|
color: theme$1.ERROR
|
|
4202
4210
|
}
|
|
4203
4211
|
}
|
|
4204
|
-
)) : null, errorMessageMaxReachCount ? /* @__PURE__ */ React
|
|
4212
|
+
)) : null, errorMessageMaxReachCount ? /* @__PURE__ */ React.createElement(View, { style: styles$5.resendOtpContainer }, /* @__PURE__ */ React.createElement(
|
|
4205
4213
|
CustomTypography,
|
|
4206
4214
|
{
|
|
4207
4215
|
text: errorMessageMaxReachCount,
|
|
@@ -4343,18 +4351,18 @@ const Stepper = ({
|
|
|
4343
4351
|
return { borderColor: theme.CONTENT_SECONDRY };
|
|
4344
4352
|
}
|
|
4345
4353
|
};
|
|
4346
|
-
return /* @__PURE__ */ React
|
|
4354
|
+
return /* @__PURE__ */ React.createElement(View, { style: { ...styles$4.stepperContainer, ...containerStyle } }, data?.map((item, index) => {
|
|
4347
4355
|
const stepCircleStyle = renderCircleStyle(item?.status);
|
|
4348
4356
|
const dividerStyle = renderDividerStyle(item?.status);
|
|
4349
4357
|
const labelStyle = renderLableStyle(item?.status);
|
|
4350
4358
|
const lastViewStyle = index === data?.length - 1 ? styles$4.lastStepWrapper : null;
|
|
4351
|
-
return /* @__PURE__ */ React
|
|
4359
|
+
return /* @__PURE__ */ React.createElement(
|
|
4352
4360
|
View,
|
|
4353
4361
|
{
|
|
4354
4362
|
key: index?.toString(),
|
|
4355
4363
|
style: { ...styles$4.stepperWrapper, ...lastViewStyle }
|
|
4356
4364
|
},
|
|
4357
|
-
/* @__PURE__ */ React
|
|
4365
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$4.stepperSeparatorContainer }, /* @__PURE__ */ React.createElement(View, { style: { ...stepCircleStyle } }, showStepCount && /* @__PURE__ */ React.createElement(
|
|
4358
4366
|
CustomTypography,
|
|
4359
4367
|
{
|
|
4360
4368
|
text: item?.step,
|
|
@@ -4363,8 +4371,8 @@ const Stepper = ({
|
|
|
4363
4371
|
color: theme.CONTENT_PRIMARY
|
|
4364
4372
|
}
|
|
4365
4373
|
}
|
|
4366
|
-
), showStatus && item?.status === Status.Completed && completedStatusIcon), index != data?.length - 1 && /* @__PURE__ */ React
|
|
4367
|
-
/* @__PURE__ */ React
|
|
4374
|
+
), showStatus && item?.status === Status.Completed && completedStatusIcon), index != data?.length - 1 && /* @__PURE__ */ React.createElement(View, { style: { ...styles$4.separator, ...dividerStyle } })),
|
|
4375
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$4.lableContainer }, /* @__PURE__ */ React.createElement(
|
|
4368
4376
|
CustomTypography,
|
|
4369
4377
|
{
|
|
4370
4378
|
text: item?.label,
|
|
@@ -4415,7 +4423,7 @@ const styles$3 = StyleSheet.create({
|
|
|
4415
4423
|
});
|
|
4416
4424
|
|
|
4417
4425
|
const BUTTON_WIDTH = 40;
|
|
4418
|
-
const CustomSlideButton = React
|
|
4426
|
+
const CustomSlideButton = React.forwardRef(
|
|
4419
4427
|
({
|
|
4420
4428
|
label,
|
|
4421
4429
|
onComplete,
|
|
@@ -4435,7 +4443,7 @@ const CustomSlideButton = React$1.forwardRef(
|
|
|
4435
4443
|
const sliderConteinerRef = useRef(null);
|
|
4436
4444
|
const [color, setColor] = useState(new Animated.Value(0));
|
|
4437
4445
|
const [sliderBackgroundColorRef, setSliderBackgroundColorRef] = useState(new Animated.Value(0));
|
|
4438
|
-
React
|
|
4446
|
+
React.useImperativeHandle(ref, () => ({
|
|
4439
4447
|
reset() {
|
|
4440
4448
|
resetAll();
|
|
4441
4449
|
}
|
|
@@ -4524,32 +4532,32 @@ const CustomSlideButton = React$1.forwardRef(
|
|
|
4524
4532
|
outputRange: [sliderBackgroundColor, "transparent"]
|
|
4525
4533
|
});
|
|
4526
4534
|
const { theme } = useTheme();
|
|
4527
|
-
return /* @__PURE__ */ React
|
|
4535
|
+
return /* @__PURE__ */ React.createElement(View, { style: {
|
|
4528
4536
|
...styles$3.sliderContainer,
|
|
4529
4537
|
backgroundColor: theme.SURFACE_INVERTED,
|
|
4530
4538
|
...containerStyle
|
|
4531
|
-
}, onLayout: handleLayout, ref: cardRef }, /* @__PURE__ */ React
|
|
4539
|
+
}, onLayout: handleLayout, ref: cardRef }, /* @__PURE__ */ React.createElement(
|
|
4532
4540
|
Animated.View,
|
|
4533
4541
|
{
|
|
4534
4542
|
style: [styles$3.buttonTextContainer, { backgroundColor, transform: [{ translateX }] }],
|
|
4535
4543
|
ref: sliderConteinerRef
|
|
4536
4544
|
}
|
|
4537
|
-
), /* @__PURE__ */ React
|
|
4545
|
+
), /* @__PURE__ */ React.createElement(
|
|
4538
4546
|
View,
|
|
4539
4547
|
{
|
|
4540
4548
|
style: styles$3.buttonTextContainer
|
|
4541
4549
|
},
|
|
4542
|
-
/* @__PURE__ */ React
|
|
4550
|
+
/* @__PURE__ */ React.createElement(Animated.Text, { style: [{
|
|
4543
4551
|
alignSelf: "center",
|
|
4544
4552
|
...textStyle
|
|
4545
4553
|
}, { color: textColor }] }, label)
|
|
4546
|
-
), /* @__PURE__ */ React
|
|
4554
|
+
), /* @__PURE__ */ React.createElement(
|
|
4547
4555
|
Animated.View,
|
|
4548
4556
|
{
|
|
4549
4557
|
style: [styles$3.slider, { transform: [{ translateX }] }],
|
|
4550
4558
|
...panResponder.panHandlers
|
|
4551
4559
|
},
|
|
4552
|
-
/* @__PURE__ */ React
|
|
4560
|
+
/* @__PURE__ */ React.createElement(
|
|
4553
4561
|
View,
|
|
4554
4562
|
{
|
|
4555
4563
|
style: {
|
|
@@ -4666,7 +4674,7 @@ const AppointmentCard = ({
|
|
|
4666
4674
|
directionText
|
|
4667
4675
|
}) => {
|
|
4668
4676
|
const { theme } = useTheme();
|
|
4669
|
-
return /* @__PURE__ */ React
|
|
4677
|
+
return /* @__PURE__ */ React.createElement(
|
|
4670
4678
|
Accordion$1,
|
|
4671
4679
|
{
|
|
4672
4680
|
title,
|
|
@@ -4679,14 +4687,14 @@ const AppointmentCard = ({
|
|
|
4679
4687
|
borderBottomColor: theme.BORDER_SEPERATOR_HEADER
|
|
4680
4688
|
},
|
|
4681
4689
|
headerStyle: styles$2.accordionHeader,
|
|
4682
|
-
headerComponent: () => /* @__PURE__ */ React
|
|
4690
|
+
headerComponent: () => /* @__PURE__ */ React.createElement(View, { style: styles$2.accordionHeaderContent }, headerIcon, /* @__PURE__ */ React.createElement(View, { style: styles$2.accordionText }, /* @__PURE__ */ React.createElement(
|
|
4683
4691
|
CustomTypography,
|
|
4684
4692
|
{
|
|
4685
4693
|
text: headerTitle,
|
|
4686
4694
|
variant: FontStyle.L2_REGULAR,
|
|
4687
4695
|
style: { color: theme.CONTENT_SECONDRY }
|
|
4688
4696
|
}
|
|
4689
|
-
), /* @__PURE__ */ React
|
|
4697
|
+
), /* @__PURE__ */ React.createElement(
|
|
4690
4698
|
CustomTypography,
|
|
4691
4699
|
{
|
|
4692
4700
|
text: headerSubtitle,
|
|
@@ -4696,7 +4704,7 @@ const AppointmentCard = ({
|
|
|
4696
4704
|
))),
|
|
4697
4705
|
icon
|
|
4698
4706
|
},
|
|
4699
|
-
/* @__PURE__ */ React
|
|
4707
|
+
/* @__PURE__ */ React.createElement(
|
|
4700
4708
|
View,
|
|
4701
4709
|
{
|
|
4702
4710
|
style: [
|
|
@@ -4704,14 +4712,14 @@ const AppointmentCard = ({
|
|
|
4704
4712
|
{ borderTopColor: theme.BORDER_SEPERATOR_HEADER }
|
|
4705
4713
|
]
|
|
4706
4714
|
},
|
|
4707
|
-
/* @__PURE__ */ React
|
|
4715
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$2.appointmentInfo }, data.map(({ title: title2, value, isLocation, isStatus }) => /* @__PURE__ */ React.createElement(View, { style: styles$2.infoColumn, key: title2 }, /* @__PURE__ */ React.createElement(
|
|
4708
4716
|
CustomTypography,
|
|
4709
4717
|
{
|
|
4710
4718
|
text: title2,
|
|
4711
4719
|
variant: FontStyle.L3_REGULAR,
|
|
4712
4720
|
style: { color: theme.CONTENT_SECONDRY }
|
|
4713
4721
|
}
|
|
4714
|
-
), /* @__PURE__ */ React
|
|
4722
|
+
), /* @__PURE__ */ React.createElement(View, { style: styles$2.infoRow }, isStatus && statusIcon, /* @__PURE__ */ React.createElement(
|
|
4715
4723
|
CustomTypography,
|
|
4716
4724
|
{
|
|
4717
4725
|
text: value,
|
|
@@ -4720,7 +4728,7 @@ const AppointmentCard = ({
|
|
|
4720
4728
|
color: isStatus ? theme.WARNING : theme.CONTENT_PRIMARY
|
|
4721
4729
|
}
|
|
4722
4730
|
}
|
|
4723
|
-
)), isLocation && /* @__PURE__ */ React
|
|
4731
|
+
)), isLocation && /* @__PURE__ */ React.createElement(
|
|
4724
4732
|
CustomTypography,
|
|
4725
4733
|
{
|
|
4726
4734
|
text: directionText,
|
|
@@ -4732,7 +4740,7 @@ const AppointmentCard = ({
|
|
|
4732
4740
|
onPress: onDirectionPress
|
|
4733
4741
|
}
|
|
4734
4742
|
)))),
|
|
4735
|
-
/* @__PURE__ */ React
|
|
4743
|
+
/* @__PURE__ */ React.createElement(
|
|
4736
4744
|
View,
|
|
4737
4745
|
{
|
|
4738
4746
|
style: [
|
|
@@ -4743,7 +4751,7 @@ const AppointmentCard = ({
|
|
|
4743
4751
|
]
|
|
4744
4752
|
},
|
|
4745
4753
|
infoIcon,
|
|
4746
|
-
/* @__PURE__ */ React
|
|
4754
|
+
/* @__PURE__ */ React.createElement(
|
|
4747
4755
|
CustomTypography,
|
|
4748
4756
|
{
|
|
4749
4757
|
text: info,
|
|
@@ -4752,7 +4760,7 @@ const AppointmentCard = ({
|
|
|
4752
4760
|
}
|
|
4753
4761
|
)
|
|
4754
4762
|
),
|
|
4755
|
-
/* @__PURE__ */ React
|
|
4763
|
+
/* @__PURE__ */ React.createElement(
|
|
4756
4764
|
View,
|
|
4757
4765
|
{
|
|
4758
4766
|
style: [
|
|
@@ -4762,7 +4770,7 @@ const AppointmentCard = ({
|
|
|
4762
4770
|
}
|
|
4763
4771
|
]
|
|
4764
4772
|
},
|
|
4765
|
-
/* @__PURE__ */ React
|
|
4773
|
+
/* @__PURE__ */ React.createElement(
|
|
4766
4774
|
CustomTypography,
|
|
4767
4775
|
{
|
|
4768
4776
|
text: viewText,
|
|
@@ -4776,7 +4784,7 @@ const AppointmentCard = ({
|
|
|
4776
4784
|
onPress: onViewDetailsPress
|
|
4777
4785
|
}
|
|
4778
4786
|
),
|
|
4779
|
-
/* @__PURE__ */ React
|
|
4787
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$2.actionIcons }, /* @__PURE__ */ React.createElement(
|
|
4780
4788
|
CustomIcon,
|
|
4781
4789
|
{
|
|
4782
4790
|
icon: deleteIcon,
|
|
@@ -4786,7 +4794,7 @@ const AppointmentCard = ({
|
|
|
4786
4794
|
},
|
|
4787
4795
|
onPress: onDeletePress
|
|
4788
4796
|
}
|
|
4789
|
-
), /* @__PURE__ */ React
|
|
4797
|
+
), /* @__PURE__ */ React.createElement(
|
|
4790
4798
|
CustomIcon,
|
|
4791
4799
|
{
|
|
4792
4800
|
icon: editIcon,
|
|
@@ -4840,7 +4848,7 @@ const PropertyDetails = ({
|
|
|
4840
4848
|
onRightIconPress
|
|
4841
4849
|
}) => {
|
|
4842
4850
|
const { theme } = useTheme();
|
|
4843
|
-
return /* @__PURE__ */ React
|
|
4851
|
+
return /* @__PURE__ */ React.createElement(
|
|
4844
4852
|
View,
|
|
4845
4853
|
{
|
|
4846
4854
|
style: {
|
|
@@ -4850,25 +4858,25 @@ const PropertyDetails = ({
|
|
|
4850
4858
|
...containerStyle
|
|
4851
4859
|
}
|
|
4852
4860
|
},
|
|
4853
|
-
React
|
|
4861
|
+
React.cloneElement(icon, {
|
|
4854
4862
|
width: moderateScale(87),
|
|
4855
4863
|
height: moderateScale(87)
|
|
4856
4864
|
}),
|
|
4857
|
-
/* @__PURE__ */ React
|
|
4865
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$1.propertyInfo }, brandIcon, /* @__PURE__ */ React.createElement(
|
|
4858
4866
|
CustomTypography,
|
|
4859
4867
|
{
|
|
4860
4868
|
text: title,
|
|
4861
4869
|
variant: FontStyle.L2_REGULAR,
|
|
4862
4870
|
style: { color: theme.CONTENT_PRIMARY }
|
|
4863
4871
|
}
|
|
4864
|
-
), /* @__PURE__ */ React
|
|
4872
|
+
), /* @__PURE__ */ React.createElement(
|
|
4865
4873
|
CustomTypography,
|
|
4866
4874
|
{
|
|
4867
4875
|
text: subTitle,
|
|
4868
4876
|
variant: FontStyle.L1_REGULAR,
|
|
4869
4877
|
style: { color: theme.CONTENT_PRIMARY }
|
|
4870
4878
|
}
|
|
4871
|
-
), propertyNumber && /* @__PURE__ */ React
|
|
4879
|
+
), propertyNumber && /* @__PURE__ */ React.createElement(View, { style: styles$1.propertyNumber }, /* @__PURE__ */ React.createElement(
|
|
4872
4880
|
CustomTypography,
|
|
4873
4881
|
{
|
|
4874
4882
|
text: propertyNumber,
|
|
@@ -4878,7 +4886,7 @@ const PropertyDetails = ({
|
|
|
4878
4886
|
}
|
|
4879
4887
|
}
|
|
4880
4888
|
), hintIcon)),
|
|
4881
|
-
btnIcon && /* @__PURE__ */ React
|
|
4889
|
+
btnIcon && /* @__PURE__ */ React.createElement(
|
|
4882
4890
|
CustomIcon,
|
|
4883
4891
|
{
|
|
4884
4892
|
icon: btnIcon,
|
|
@@ -4923,14 +4931,14 @@ const RadioButtonGroup = ({ data, onSelect, containerStyle, labelStyle, optionCo
|
|
|
4923
4931
|
setSelectedOption(item.value);
|
|
4924
4932
|
onSelect(item);
|
|
4925
4933
|
};
|
|
4926
|
-
return /* @__PURE__ */ React
|
|
4934
|
+
return /* @__PURE__ */ React.createElement(View, { style: [styles.container, containerStyle] }, data?.map((item) => /* @__PURE__ */ React.createElement(
|
|
4927
4935
|
TouchableOpacity,
|
|
4928
4936
|
{
|
|
4929
4937
|
key: item.value,
|
|
4930
4938
|
style: [styles.optionContainer, optionContainerStyle],
|
|
4931
4939
|
onPress: () => handleSelect(item)
|
|
4932
4940
|
},
|
|
4933
|
-
/* @__PURE__ */ React
|
|
4941
|
+
/* @__PURE__ */ React.createElement(
|
|
4934
4942
|
View,
|
|
4935
4943
|
{
|
|
4936
4944
|
style: [
|
|
@@ -4939,7 +4947,7 @@ const RadioButtonGroup = ({ data, onSelect, containerStyle, labelStyle, optionCo
|
|
|
4939
4947
|
]
|
|
4940
4948
|
}
|
|
4941
4949
|
),
|
|
4942
|
-
/* @__PURE__ */ React
|
|
4950
|
+
/* @__PURE__ */ React.createElement(
|
|
4943
4951
|
CustomTypography,
|
|
4944
4952
|
{
|
|
4945
4953
|
variant: FontStyle.L1_REGULAR,
|