dhre-ui-kit 0.0.294 → 0.0.295
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 +70 -71
- package/lib/index.js +67 -67
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +209 -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({
|
|
@@ -1729,7 +1729,7 @@ const Tabs = ({
|
|
|
1729
1729
|
onSelectionChange(selectedTabs);
|
|
1730
1730
|
}
|
|
1731
1731
|
};
|
|
1732
|
-
return /* @__PURE__ */ React
|
|
1732
|
+
return /* @__PURE__ */ React.createElement(View, { style: [styles$p.container, style] }, data?.map(({ id, title, isSelected }) => /* @__PURE__ */ React.createElement(
|
|
1733
1733
|
Pressable,
|
|
1734
1734
|
{
|
|
1735
1735
|
key: id,
|
|
@@ -1740,7 +1740,7 @@ const Tabs = ({
|
|
|
1740
1740
|
},
|
|
1741
1741
|
onPress: () => handlePress(id)
|
|
1742
1742
|
},
|
|
1743
|
-
/* @__PURE__ */ React
|
|
1743
|
+
/* @__PURE__ */ React.createElement(
|
|
1744
1744
|
CustomText$1,
|
|
1745
1745
|
{
|
|
1746
1746
|
variant: FontStyle.L2_REGULAR,
|
|
@@ -1810,7 +1810,7 @@ const Tags = ({
|
|
|
1810
1810
|
);
|
|
1811
1811
|
handleTagsChange(tag);
|
|
1812
1812
|
};
|
|
1813
|
-
return /* @__PURE__ */ React
|
|
1813
|
+
return /* @__PURE__ */ React.createElement(
|
|
1814
1814
|
ScrollView,
|
|
1815
1815
|
{
|
|
1816
1816
|
testID,
|
|
@@ -1818,7 +1818,7 @@ const Tags = ({
|
|
|
1818
1818
|
contentContainerStyle: styles$o.contentContainer,
|
|
1819
1819
|
horizontal: false
|
|
1820
1820
|
},
|
|
1821
|
-
tags?.map((tag) => /* @__PURE__ */ React
|
|
1821
|
+
tags?.map((tag) => /* @__PURE__ */ React.createElement(
|
|
1822
1822
|
Pressable,
|
|
1823
1823
|
{
|
|
1824
1824
|
testID: `${testID}-${tag}-BTN`,
|
|
@@ -1830,7 +1830,7 @@ const Tags = ({
|
|
|
1830
1830
|
selectedTags.includes(tag) ? styles$o.selectedTag : styles$o.tagUnSelected
|
|
1831
1831
|
]
|
|
1832
1832
|
},
|
|
1833
|
-
/* @__PURE__ */ React
|
|
1833
|
+
/* @__PURE__ */ React.createElement(
|
|
1834
1834
|
CustomTypography,
|
|
1835
1835
|
{
|
|
1836
1836
|
variant: selectedTags.includes(tag) ? "H9semiBold" : "P4regular",
|
|
@@ -1838,13 +1838,13 @@ const Tags = ({
|
|
|
1838
1838
|
text: tag
|
|
1839
1839
|
}
|
|
1840
1840
|
),
|
|
1841
|
-
selectedTags.includes(tag) && icon && /* @__PURE__ */ React
|
|
1841
|
+
selectedTags.includes(tag) && icon && /* @__PURE__ */ React.createElement(
|
|
1842
1842
|
Pressable,
|
|
1843
1843
|
{
|
|
1844
1844
|
testID: `${testID}-${tag}-PRESS`,
|
|
1845
1845
|
onPress: () => removeTag(tag)
|
|
1846
1846
|
},
|
|
1847
|
-
React
|
|
1847
|
+
React.cloneElement(icon, { style: [icon.props.style, iconStyle] })
|
|
1848
1848
|
)
|
|
1849
1849
|
))
|
|
1850
1850
|
);
|
|
@@ -1911,14 +1911,14 @@ const CustomSwitch = ({
|
|
|
1911
1911
|
const animatedStyle = {
|
|
1912
1912
|
transform: [{ translateX: animatedValue }]
|
|
1913
1913
|
};
|
|
1914
|
-
return /* @__PURE__ */ React
|
|
1914
|
+
return /* @__PURE__ */ React.createElement(
|
|
1915
1915
|
Pressable,
|
|
1916
1916
|
{
|
|
1917
1917
|
onPress: toggleSwitch,
|
|
1918
1918
|
style: [styles$n.container, { width }],
|
|
1919
1919
|
testID: "custom-switch"
|
|
1920
1920
|
},
|
|
1921
|
-
/* @__PURE__ */ React
|
|
1921
|
+
/* @__PURE__ */ React.createElement(
|
|
1922
1922
|
View,
|
|
1923
1923
|
{
|
|
1924
1924
|
style: [
|
|
@@ -1928,8 +1928,8 @@ const CustomSwitch = ({
|
|
|
1928
1928
|
}
|
|
1929
1929
|
]
|
|
1930
1930
|
},
|
|
1931
|
-
/* @__PURE__ */ React
|
|
1932
|
-
type !== ToggleButtonType.SMALL && /* @__PURE__ */ React
|
|
1931
|
+
/* @__PURE__ */ React.createElement(Animated.View, { style: [styles$n.thumb, animatedStyle] }),
|
|
1932
|
+
type !== ToggleButtonType.SMALL && /* @__PURE__ */ React.createElement(
|
|
1933
1933
|
CustomTypography,
|
|
1934
1934
|
{
|
|
1935
1935
|
variant: "B3semiBold",
|
|
@@ -2001,7 +2001,7 @@ const Accordion = ({
|
|
|
2001
2001
|
inputRange: [0, 1],
|
|
2002
2002
|
outputRange: [0, contentHeight]
|
|
2003
2003
|
});
|
|
2004
|
-
return /* @__PURE__ */ React
|
|
2004
|
+
return /* @__PURE__ */ React.createElement(
|
|
2005
2005
|
View,
|
|
2006
2006
|
{
|
|
2007
2007
|
style: {
|
|
@@ -2011,13 +2011,13 @@ const Accordion = ({
|
|
|
2011
2011
|
},
|
|
2012
2012
|
testID: testId
|
|
2013
2013
|
},
|
|
2014
|
-
/* @__PURE__ */ React
|
|
2014
|
+
/* @__PURE__ */ React.createElement(
|
|
2015
2015
|
Pressable,
|
|
2016
2016
|
{
|
|
2017
2017
|
style: [styles$m.header, headerStyle, disabled && { opacity: 0.5 }],
|
|
2018
2018
|
onPress: !disabled ? onToggle : void 0
|
|
2019
2019
|
},
|
|
2020
|
-
headerComponent ? headerComponent() : /* @__PURE__ */ React
|
|
2020
|
+
headerComponent ? headerComponent() : /* @__PURE__ */ React.createElement(
|
|
2021
2021
|
CustomTypography,
|
|
2022
2022
|
{
|
|
2023
2023
|
variant: titleVariant,
|
|
@@ -2029,14 +2029,14 @@ const Accordion = ({
|
|
|
2029
2029
|
}
|
|
2030
2030
|
}
|
|
2031
2031
|
),
|
|
2032
|
-
icon ? React
|
|
2032
|
+
icon ? React.cloneElement(icon, {
|
|
2033
2033
|
width: moderateScale(20),
|
|
2034
2034
|
height: moderateScale(20),
|
|
2035
2035
|
style: styles$m.iconStyle
|
|
2036
2036
|
}) : null
|
|
2037
2037
|
),
|
|
2038
2038
|
optionalElement ? optionalElement() : null,
|
|
2039
|
-
isOpen && /* @__PURE__ */ React
|
|
2039
|
+
isOpen && /* @__PURE__ */ React.createElement(Animated.View, { style: [styles$m.content, { height: cardHeight }] }, /* @__PURE__ */ React.createElement(
|
|
2040
2040
|
View,
|
|
2041
2041
|
{
|
|
2042
2042
|
ref: contentRef,
|
|
@@ -2083,7 +2083,7 @@ const styles$l = StyleSheet.create({
|
|
|
2083
2083
|
}
|
|
2084
2084
|
});
|
|
2085
2085
|
|
|
2086
|
-
const Toast = React
|
|
2086
|
+
const Toast = React.forwardRef(
|
|
2087
2087
|
({ sucessIcon, errorIcon }, ref) => {
|
|
2088
2088
|
const [visible, setVisible] = useState(false);
|
|
2089
2089
|
const [message, setMessage] = useState("");
|
|
@@ -2129,10 +2129,10 @@ const Toast = React$1.forwardRef(
|
|
|
2129
2129
|
return () => clearInterval(interval);
|
|
2130
2130
|
}
|
|
2131
2131
|
}, [visible]);
|
|
2132
|
-
React
|
|
2132
|
+
React.useImperativeHandle(ref, () => ({
|
|
2133
2133
|
showToast
|
|
2134
2134
|
}));
|
|
2135
|
-
return visible ? /* @__PURE__ */ React
|
|
2135
|
+
return visible ? /* @__PURE__ */ React.createElement(
|
|
2136
2136
|
Animated.View,
|
|
2137
2137
|
{
|
|
2138
2138
|
style: [
|
|
@@ -2143,21 +2143,21 @@ const Toast = React$1.forwardRef(
|
|
|
2143
2143
|
],
|
|
2144
2144
|
testID: "TOAST"
|
|
2145
2145
|
},
|
|
2146
|
-
/* @__PURE__ */ React
|
|
2146
|
+
/* @__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
2147
|
CustomTypography,
|
|
2148
2148
|
{
|
|
2149
2149
|
variant: "L2_REGULAR",
|
|
2150
2150
|
text: message,
|
|
2151
2151
|
style: styles$l.messageText
|
|
2152
2152
|
}
|
|
2153
|
-
), btnText && /* @__PURE__ */ React
|
|
2153
|
+
), btnText && /* @__PURE__ */ React.createElement(
|
|
2154
2154
|
Pressable,
|
|
2155
2155
|
{
|
|
2156
2156
|
style: styles$l.button,
|
|
2157
2157
|
onPress: onBtnPress || void 0,
|
|
2158
2158
|
testID: "TOAST-BTN"
|
|
2159
2159
|
},
|
|
2160
|
-
/* @__PURE__ */ React
|
|
2160
|
+
/* @__PURE__ */ React.createElement(
|
|
2161
2161
|
CustomTypography,
|
|
2162
2162
|
{
|
|
2163
2163
|
variant: "L2_BOLD",
|
|
@@ -2166,7 +2166,7 @@ const Toast = React$1.forwardRef(
|
|
|
2166
2166
|
}
|
|
2167
2167
|
)
|
|
2168
2168
|
))),
|
|
2169
|
-
/* @__PURE__ */ React
|
|
2169
|
+
/* @__PURE__ */ React.createElement(
|
|
2170
2170
|
Progress.Bar,
|
|
2171
2171
|
{
|
|
2172
2172
|
progress,
|
|
@@ -2225,7 +2225,7 @@ const CustomSearchBar = ({
|
|
|
2225
2225
|
pointerEvents,
|
|
2226
2226
|
...props
|
|
2227
2227
|
}) => {
|
|
2228
|
-
return /* @__PURE__ */ React
|
|
2228
|
+
return /* @__PURE__ */ React.createElement(
|
|
2229
2229
|
Pressable,
|
|
2230
2230
|
{
|
|
2231
2231
|
testID,
|
|
@@ -2239,7 +2239,7 @@ const CustomSearchBar = ({
|
|
|
2239
2239
|
],
|
|
2240
2240
|
onPress: handlePress
|
|
2241
2241
|
},
|
|
2242
|
-
/* @__PURE__ */ React
|
|
2242
|
+
/* @__PURE__ */ React.createElement(
|
|
2243
2243
|
Pressable,
|
|
2244
2244
|
{
|
|
2245
2245
|
onPress: () => {
|
|
@@ -2248,13 +2248,13 @@ const CustomSearchBar = ({
|
|
|
2248
2248
|
},
|
|
2249
2249
|
style: searchIconStyle
|
|
2250
2250
|
},
|
|
2251
|
-
React
|
|
2251
|
+
React.cloneElement(searchIcon, {
|
|
2252
2252
|
width: moderateScale(24),
|
|
2253
2253
|
height: moderateScale(24),
|
|
2254
2254
|
style: [styles$k.searchIconStyle, searchIconStyle]
|
|
2255
2255
|
})
|
|
2256
2256
|
),
|
|
2257
|
-
/* @__PURE__ */ React
|
|
2257
|
+
/* @__PURE__ */ React.createElement(
|
|
2258
2258
|
TextInput,
|
|
2259
2259
|
{
|
|
2260
2260
|
...props,
|
|
@@ -2270,7 +2270,7 @@ const CustomSearchBar = ({
|
|
|
2270
2270
|
pointerEvents
|
|
2271
2271
|
}
|
|
2272
2272
|
),
|
|
2273
|
-
value && /* @__PURE__ */ React
|
|
2273
|
+
value && /* @__PURE__ */ React.createElement(
|
|
2274
2274
|
Pressable,
|
|
2275
2275
|
{
|
|
2276
2276
|
onPress: () => {
|
|
@@ -2279,7 +2279,7 @@ const CustomSearchBar = ({
|
|
|
2279
2279
|
},
|
|
2280
2280
|
style: crossIconStyle
|
|
2281
2281
|
},
|
|
2282
|
-
React
|
|
2282
|
+
React.cloneElement(rightIcon, {
|
|
2283
2283
|
// width: moderateScale(24),
|
|
2284
2284
|
// height: moderateScale(24),
|
|
2285
2285
|
style: [styles$k.crossIconStyle, crossIconStyle]
|
|
@@ -2316,7 +2316,7 @@ const CustomHeader = ({
|
|
|
2316
2316
|
onRightPress
|
|
2317
2317
|
}) => {
|
|
2318
2318
|
const { theme } = useTheme();
|
|
2319
|
-
return /* @__PURE__ */ React
|
|
2319
|
+
return /* @__PURE__ */ React.createElement(
|
|
2320
2320
|
View,
|
|
2321
2321
|
{
|
|
2322
2322
|
style: {
|
|
@@ -2326,12 +2326,12 @@ const CustomHeader = ({
|
|
|
2326
2326
|
},
|
|
2327
2327
|
testID: testId
|
|
2328
2328
|
},
|
|
2329
|
-
/* @__PURE__ */ React
|
|
2329
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$j.headderContainer }, showLeftIcon && leftIcon ? React.cloneElement(leftIcon, {
|
|
2330
2330
|
width: moderateScale(24),
|
|
2331
2331
|
height: moderateScale(24),
|
|
2332
2332
|
onPress: onLeftPress,
|
|
2333
2333
|
style: styles$j.leftIconStyle
|
|
2334
|
-
}) : null, /* @__PURE__ */ React
|
|
2334
|
+
}) : null, /* @__PURE__ */ React.createElement(
|
|
2335
2335
|
CustomTypography,
|
|
2336
2336
|
{
|
|
2337
2337
|
variant: "B2_REGULAR",
|
|
@@ -2339,7 +2339,7 @@ const CustomHeader = ({
|
|
|
2339
2339
|
style: { color: theme.CONTENT_PRIMARY }
|
|
2340
2340
|
}
|
|
2341
2341
|
)),
|
|
2342
|
-
showRightIcon && rightIcon ? React
|
|
2342
|
+
showRightIcon && rightIcon ? React.cloneElement(rightIcon, {
|
|
2343
2343
|
width: moderateScale(24),
|
|
2344
2344
|
height: moderateScale(24),
|
|
2345
2345
|
onPress: onRightPress,
|
|
@@ -2407,7 +2407,7 @@ const SwipableList = (props) => {
|
|
|
2407
2407
|
onPress,
|
|
2408
2408
|
style,
|
|
2409
2409
|
testID
|
|
2410
|
-
}) => /* @__PURE__ */ React
|
|
2410
|
+
}) => /* @__PURE__ */ React.createElement(
|
|
2411
2411
|
Pressable,
|
|
2412
2412
|
{
|
|
2413
2413
|
testID,
|
|
@@ -2415,7 +2415,7 @@ const SwipableList = (props) => {
|
|
|
2415
2415
|
style: [styles$i.actionButton, style]
|
|
2416
2416
|
},
|
|
2417
2417
|
icon,
|
|
2418
|
-
/* @__PURE__ */ React
|
|
2418
|
+
/* @__PURE__ */ React.createElement(
|
|
2419
2419
|
CustomTypography,
|
|
2420
2420
|
{
|
|
2421
2421
|
variant: "L1_REGULAR",
|
|
@@ -2424,7 +2424,7 @@ const SwipableList = (props) => {
|
|
|
2424
2424
|
}
|
|
2425
2425
|
)
|
|
2426
2426
|
);
|
|
2427
|
-
const leftActionHandle = (item, leftPrimaryActionIcon, leftPrimaryActionTitle, leftSecondaryActionIcon, leftSecondaryActionTitle) => /* @__PURE__ */ React
|
|
2427
|
+
const leftActionHandle = (item, leftPrimaryActionIcon, leftPrimaryActionTitle, leftSecondaryActionIcon, leftSecondaryActionTitle) => /* @__PURE__ */ React.createElement(View, { style: styles$i.actionBtn }, leftPrimaryActionIcon && /* @__PURE__ */ React.createElement(
|
|
2428
2428
|
ActionButton,
|
|
2429
2429
|
{
|
|
2430
2430
|
icon: leftPrimaryActionIcon,
|
|
@@ -2436,7 +2436,7 @@ const SwipableList = (props) => {
|
|
|
2436
2436
|
style: leftPrimaryActionStyle,
|
|
2437
2437
|
testID: `${testId}-LEFT-PRIMARY-${item.id}`
|
|
2438
2438
|
}
|
|
2439
|
-
), leftSecondaryActionIcon && /* @__PURE__ */ React
|
|
2439
|
+
), leftSecondaryActionIcon && /* @__PURE__ */ React.createElement(
|
|
2440
2440
|
ActionButton,
|
|
2441
2441
|
{
|
|
2442
2442
|
icon: leftSecondaryActionIcon,
|
|
@@ -2449,7 +2449,7 @@ const SwipableList = (props) => {
|
|
|
2449
2449
|
testID: `${testId}-LEFT-SECONDARY-${item.id}`
|
|
2450
2450
|
}
|
|
2451
2451
|
));
|
|
2452
|
-
const rightActionHandle = (item) => /* @__PURE__ */ React
|
|
2452
|
+
const rightActionHandle = (item) => /* @__PURE__ */ React.createElement(View, { style: [styles$i.actionBtn, rightPrimaryActionStyle] }, rightPrimaryActionIcon && /* @__PURE__ */ React.createElement(
|
|
2453
2453
|
ActionButton,
|
|
2454
2454
|
{
|
|
2455
2455
|
icon: rightPrimaryActionIcon,
|
|
@@ -2462,7 +2462,7 @@ const SwipableList = (props) => {
|
|
|
2462
2462
|
testID: `${testId}-RIGHT-PRIMARY-${item.id}`
|
|
2463
2463
|
}
|
|
2464
2464
|
));
|
|
2465
|
-
const renderItem = ({ item }) => /* @__PURE__ */ React
|
|
2465
|
+
const renderItem = ({ item }) => /* @__PURE__ */ React.createElement(GestureHandlerRootView, { testID: `${testId}-LIST`, style: styles$i.container }, /* @__PURE__ */ React.createElement(
|
|
2466
2466
|
Swipeable,
|
|
2467
2467
|
{
|
|
2468
2468
|
ref: (ref) => swipeableRefs.current[item.id] = ref,
|
|
@@ -2478,13 +2478,13 @@ const SwipableList = (props) => {
|
|
|
2478
2478
|
},
|
|
2479
2479
|
props?.renderItem(item)
|
|
2480
2480
|
));
|
|
2481
|
-
return /* @__PURE__ */ React
|
|
2481
|
+
return /* @__PURE__ */ React.createElement(View, { testID: testId }, /* @__PURE__ */ React.createElement(
|
|
2482
2482
|
FlatList,
|
|
2483
2483
|
{
|
|
2484
2484
|
data,
|
|
2485
2485
|
renderItem,
|
|
2486
2486
|
keyExtractor: (item) => item.id,
|
|
2487
|
-
ItemSeparatorComponent: () => /* @__PURE__ */ React
|
|
2487
|
+
ItemSeparatorComponent: () => /* @__PURE__ */ React.createElement(
|
|
2488
2488
|
View,
|
|
2489
2489
|
{
|
|
2490
2490
|
style: {
|
|
@@ -2517,7 +2517,7 @@ const CustomIcon = ({
|
|
|
2517
2517
|
containerStyle,
|
|
2518
2518
|
titleStyle
|
|
2519
2519
|
}) => {
|
|
2520
|
-
return /* @__PURE__ */ React
|
|
2520
|
+
return /* @__PURE__ */ React.createElement(
|
|
2521
2521
|
Pressable,
|
|
2522
2522
|
{
|
|
2523
2523
|
style: [styles$h.container, containerStyle],
|
|
@@ -2525,7 +2525,7 @@ const CustomIcon = ({
|
|
|
2525
2525
|
testID: testId
|
|
2526
2526
|
},
|
|
2527
2527
|
icon,
|
|
2528
|
-
title && /* @__PURE__ */ React
|
|
2528
|
+
title && /* @__PURE__ */ React.createElement(
|
|
2529
2529
|
CustomTypography,
|
|
2530
2530
|
{
|
|
2531
2531
|
variant: titleVariant,
|
|
@@ -2550,7 +2550,7 @@ function AnimationWithImperativeApi() {
|
|
|
2550
2550
|
|
|
2551
2551
|
const HorizontalLine = ({ backgroundColor = "SURFACE_SECONDARY", style }) => {
|
|
2552
2552
|
const { theme } = useTheme();
|
|
2553
|
-
return /* @__PURE__ */ React
|
|
2553
|
+
return /* @__PURE__ */ React.createElement(
|
|
2554
2554
|
View,
|
|
2555
2555
|
{
|
|
2556
2556
|
style: [
|
|
@@ -2580,7 +2580,7 @@ const Topic = ({
|
|
|
2580
2580
|
subTitleStyle
|
|
2581
2581
|
}) => {
|
|
2582
2582
|
const { theme } = useTheme();
|
|
2583
|
-
return /* @__PURE__ */ React
|
|
2583
|
+
return /* @__PURE__ */ React.createElement(
|
|
2584
2584
|
TouchableOpacity,
|
|
2585
2585
|
{
|
|
2586
2586
|
style: [
|
|
@@ -2590,9 +2590,9 @@ const Topic = ({
|
|
|
2590
2590
|
],
|
|
2591
2591
|
onPress
|
|
2592
2592
|
},
|
|
2593
|
-
rightIcon && /* @__PURE__ */ React
|
|
2594
|
-
/* @__PURE__ */ React
|
|
2595
|
-
/* @__PURE__ */ React
|
|
2593
|
+
rightIcon && /* @__PURE__ */ React.createElement(View, { style: styles$f.rightIconContainer }, React.cloneElement(rightIcon)),
|
|
2594
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$f.timeContainer }, time && /* @__PURE__ */ React.createElement(CustomText$1, { text: time, variant: FontStyle.L2_REGULAR })),
|
|
2595
|
+
/* @__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
2596
|
CustomText$1,
|
|
2597
2597
|
{
|
|
2598
2598
|
style: [styles$f.subTitle, subTitleStyle],
|
|
@@ -2600,7 +2600,7 @@ const Topic = ({
|
|
|
2600
2600
|
variant: FontStyle.L2_REGULAR,
|
|
2601
2601
|
textColor: Theme.CONTENT_PRIMARY
|
|
2602
2602
|
}
|
|
2603
|
-
)), /* @__PURE__ */ React
|
|
2603
|
+
)), /* @__PURE__ */ React.createElement(
|
|
2604
2604
|
CustomText$1,
|
|
2605
2605
|
{
|
|
2606
2606
|
text: title,
|
|
@@ -2703,27 +2703,27 @@ const ContactModal = ({
|
|
|
2703
2703
|
onClose();
|
|
2704
2704
|
};
|
|
2705
2705
|
const emailOptions = ["Mail", "Gmail", "Outlook"];
|
|
2706
|
-
const renderEmailOptions = () => /* @__PURE__ */ React
|
|
2706
|
+
const renderEmailOptions = () => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
2707
2707
|
CustomText$1,
|
|
2708
2708
|
{
|
|
2709
2709
|
style: styles$e.title,
|
|
2710
2710
|
text: "Open email app",
|
|
2711
2711
|
variant: "L2_REGULAR"
|
|
2712
2712
|
}
|
|
2713
|
-
), /* @__PURE__ */ React
|
|
2713
|
+
), /* @__PURE__ */ React.createElement(
|
|
2714
2714
|
CustomText$1,
|
|
2715
2715
|
{
|
|
2716
2716
|
style: styles$e.subtitle,
|
|
2717
2717
|
text: "Which app would you like to open?",
|
|
2718
2718
|
variant: "L2_REGULAR"
|
|
2719
2719
|
}
|
|
2720
|
-
), emailOptions.map((option) => /* @__PURE__ */ React
|
|
2720
|
+
), emailOptions.map((option) => /* @__PURE__ */ React.createElement(React.Fragment, { key: option }, /* @__PURE__ */ React.createElement(Line, null), /* @__PURE__ */ React.createElement(
|
|
2721
2721
|
Pressable,
|
|
2722
2722
|
{
|
|
2723
2723
|
onPress: () => handleOptionPress(),
|
|
2724
2724
|
style: styles$e.optionButton
|
|
2725
2725
|
},
|
|
2726
|
-
/* @__PURE__ */ React
|
|
2726
|
+
/* @__PURE__ */ React.createElement(
|
|
2727
2727
|
CustomText$1,
|
|
2728
2728
|
{
|
|
2729
2729
|
style: styles$e.optionText,
|
|
@@ -2732,14 +2732,14 @@ const ContactModal = ({
|
|
|
2732
2732
|
}
|
|
2733
2733
|
)
|
|
2734
2734
|
))));
|
|
2735
|
-
const renderContent = () => /* @__PURE__ */ React
|
|
2735
|
+
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
2736
|
CustomText$1,
|
|
2737
2737
|
{
|
|
2738
2738
|
style: styles$e.optionText,
|
|
2739
2739
|
text: `Call ${phoneNumber}`,
|
|
2740
2740
|
variant: "B3_BOLD"
|
|
2741
2741
|
}
|
|
2742
|
-
))), /* @__PURE__ */ React
|
|
2742
|
+
))), /* @__PURE__ */ React.createElement(Pressable, { onPress: onClose, style: styles$e.cancelButton }, /* @__PURE__ */ React.createElement(
|
|
2743
2743
|
CustomText$1,
|
|
2744
2744
|
{
|
|
2745
2745
|
style: styles$e.cancelText,
|
|
@@ -2747,7 +2747,7 @@ const ContactModal = ({
|
|
|
2747
2747
|
variant: "B2_REGULAR"
|
|
2748
2748
|
}
|
|
2749
2749
|
)));
|
|
2750
|
-
return /* @__PURE__ */ React
|
|
2750
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles$e.container }, /* @__PURE__ */ React.createElement(
|
|
2751
2751
|
Modal$1,
|
|
2752
2752
|
{
|
|
2753
2753
|
animationType: "slide",
|
|
@@ -2755,7 +2755,7 @@ const ContactModal = ({
|
|
|
2755
2755
|
visible,
|
|
2756
2756
|
onRequestClose: onClose
|
|
2757
2757
|
},
|
|
2758
|
-
/* @__PURE__ */ React
|
|
2758
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$e.modalContainer }, /* @__PURE__ */ React.createElement(View, { style: styles$e.modalContent }, renderContent()))
|
|
2759
2759
|
));
|
|
2760
2760
|
};
|
|
2761
2761
|
const styles$e = StyleSheet.create({
|
|
@@ -2900,7 +2900,7 @@ const DateRangePicker = (props) => {
|
|
|
2900
2900
|
return markedDates;
|
|
2901
2901
|
};
|
|
2902
2902
|
const isButtonDisabled = !selectedRange.startDate || !selectedRange.endDate;
|
|
2903
|
-
return /* @__PURE__ */ React
|
|
2903
|
+
return /* @__PURE__ */ React.createElement(View, null, /* @__PURE__ */ React.createElement(
|
|
2904
2904
|
Calendar,
|
|
2905
2905
|
{
|
|
2906
2906
|
markedDates: getMarkedDates(),
|
|
@@ -2923,7 +2923,7 @@ const DateRangePicker = (props) => {
|
|
|
2923
2923
|
firstDay: 1,
|
|
2924
2924
|
...props
|
|
2925
2925
|
}
|
|
2926
|
-
), /* @__PURE__ */ React
|
|
2926
|
+
), /* @__PURE__ */ React.createElement(
|
|
2927
2927
|
CustomButton$1,
|
|
2928
2928
|
{
|
|
2929
2929
|
title: btnTitle,
|
|
@@ -2954,7 +2954,7 @@ const OurOfficesButton = ({
|
|
|
2954
2954
|
descriptionColor = "CONTENT_SECONDARY"
|
|
2955
2955
|
}) => {
|
|
2956
2956
|
const { theme } = useTheme();
|
|
2957
|
-
return /* @__PURE__ */ React
|
|
2957
|
+
return /* @__PURE__ */ React.createElement(
|
|
2958
2958
|
TouchableOpacity,
|
|
2959
2959
|
{
|
|
2960
2960
|
style: [
|
|
@@ -2964,8 +2964,8 @@ const OurOfficesButton = ({
|
|
|
2964
2964
|
],
|
|
2965
2965
|
onPress
|
|
2966
2966
|
},
|
|
2967
|
-
leftIcon && /* @__PURE__ */ React
|
|
2968
|
-
/* @__PURE__ */ React
|
|
2967
|
+
leftIcon && /* @__PURE__ */ React.createElement(View, { style: styles$c.iconContainer }, React.cloneElement(leftIcon)),
|
|
2968
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$c.textContainer }, /* @__PURE__ */ React.createElement(
|
|
2969
2969
|
CustomText$1,
|
|
2970
2970
|
{
|
|
2971
2971
|
text: title,
|
|
@@ -2973,7 +2973,7 @@ const OurOfficesButton = ({
|
|
|
2973
2973
|
textColor: titleColor,
|
|
2974
2974
|
style: styles$c.textView
|
|
2975
2975
|
}
|
|
2976
|
-
), /* @__PURE__ */ React
|
|
2976
|
+
), /* @__PURE__ */ React.createElement(
|
|
2977
2977
|
CustomText$1,
|
|
2978
2978
|
{
|
|
2979
2979
|
text: description,
|
|
@@ -2982,7 +2982,7 @@ const OurOfficesButton = ({
|
|
|
2982
2982
|
style: styles$c.flexWrap
|
|
2983
2983
|
}
|
|
2984
2984
|
)),
|
|
2985
|
-
rightIcon && /* @__PURE__ */ React
|
|
2985
|
+
rightIcon && /* @__PURE__ */ React.createElement(View, { style: styles$c.rightIconContainer }, React.cloneElement(rightIcon))
|
|
2986
2986
|
);
|
|
2987
2987
|
};
|
|
2988
2988
|
const styles$c = StyleSheet.create({
|
|
@@ -3038,7 +3038,7 @@ const NotificationBandge = ({
|
|
|
3038
3038
|
if (notificationCount <= 0) {
|
|
3039
3039
|
return icon;
|
|
3040
3040
|
}
|
|
3041
|
-
return /* @__PURE__ */ React
|
|
3041
|
+
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
3042
|
};
|
|
3043
3043
|
|
|
3044
3044
|
const ScrollableList = ({
|
|
@@ -3059,7 +3059,7 @@ const ScrollableList = ({
|
|
|
3059
3059
|
);
|
|
3060
3060
|
const { theme } = useTheme();
|
|
3061
3061
|
const styles = createStyles$2({ theme });
|
|
3062
|
-
return /* @__PURE__ */ React
|
|
3062
|
+
return /* @__PURE__ */ React.createElement(View, { style: [styles.container, containerStyle] }, /* @__PURE__ */ React.createElement(
|
|
3063
3063
|
ScrollView,
|
|
3064
3064
|
{
|
|
3065
3065
|
horizontal: true,
|
|
@@ -3069,7 +3069,7 @@ const ScrollableList = ({
|
|
|
3069
3069
|
scrollViewContentStyle
|
|
3070
3070
|
]
|
|
3071
3071
|
},
|
|
3072
|
-
data?.map((item) => /* @__PURE__ */ React
|
|
3072
|
+
data?.map((item) => /* @__PURE__ */ React.createElement(
|
|
3073
3073
|
Pressable,
|
|
3074
3074
|
{
|
|
3075
3075
|
key: item.value,
|
|
@@ -3086,7 +3086,7 @@ const ScrollableList = ({
|
|
|
3086
3086
|
handleSelectCategory(item.name, item.value);
|
|
3087
3087
|
}
|
|
3088
3088
|
},
|
|
3089
|
-
/* @__PURE__ */ React
|
|
3089
|
+
/* @__PURE__ */ React.createElement(
|
|
3090
3090
|
CustomText$1,
|
|
3091
3091
|
{
|
|
3092
3092
|
text: item.name,
|
|
@@ -3095,7 +3095,7 @@ const ScrollableList = ({
|
|
|
3095
3095
|
style: (activeTab ?? selectedItem) === item.name ? activeTextStyle ? activeTextStyle : {} : {}
|
|
3096
3096
|
}
|
|
3097
3097
|
),
|
|
3098
|
-
item?.isError ? /* @__PURE__ */ React
|
|
3098
|
+
item?.isError ? /* @__PURE__ */ React.createElement(View, { style: [styles.errorViewStyle, errorStyle] }, item?.errorText ? /* @__PURE__ */ React.createElement(
|
|
3099
3099
|
CustomText$1,
|
|
3100
3100
|
{
|
|
3101
3101
|
text: item?.errorText,
|
|
@@ -3206,7 +3206,7 @@ const FeedbackForm = ({
|
|
|
3206
3206
|
const maxChars = 200;
|
|
3207
3207
|
const { theme } = useTheme();
|
|
3208
3208
|
const styles = createStyles$1(theme);
|
|
3209
|
-
return /* @__PURE__ */ React
|
|
3209
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles.container }, /* @__PURE__ */ React.createElement(
|
|
3210
3210
|
CustomText$1,
|
|
3211
3211
|
{
|
|
3212
3212
|
text: title,
|
|
@@ -3214,7 +3214,7 @@ const FeedbackForm = ({
|
|
|
3214
3214
|
textColor: Theme.CONTENT_SECONDRY,
|
|
3215
3215
|
style: styles.headerText
|
|
3216
3216
|
}
|
|
3217
|
-
), /* @__PURE__ */ React
|
|
3217
|
+
), /* @__PURE__ */ React.createElement(
|
|
3218
3218
|
TextInput,
|
|
3219
3219
|
{
|
|
3220
3220
|
style: [styles.textInput, { height: Math.max(100) }],
|
|
@@ -3225,7 +3225,7 @@ const FeedbackForm = ({
|
|
|
3225
3225
|
value: feedback,
|
|
3226
3226
|
onChangeText: (text) => setFeedback(text)
|
|
3227
3227
|
}
|
|
3228
|
-
), /* @__PURE__ */ React
|
|
3228
|
+
), /* @__PURE__ */ React.createElement(
|
|
3229
3229
|
CustomText$1,
|
|
3230
3230
|
{
|
|
3231
3231
|
text: `${feedback.length}/${maxChars} characters`,
|
|
@@ -3233,14 +3233,14 @@ const FeedbackForm = ({
|
|
|
3233
3233
|
textColor: Theme.CONTENT_SECONDRY,
|
|
3234
3234
|
style: styles.charCounter
|
|
3235
3235
|
}
|
|
3236
|
-
), /* @__PURE__ */ React
|
|
3236
|
+
), /* @__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
3237
|
CustomText$1,
|
|
3238
3238
|
{
|
|
3239
3239
|
text: leftBtnTxt,
|
|
3240
3240
|
variant: FontStyle.L1_REGULAR,
|
|
3241
3241
|
textColor: feedback?.length < 1 ? Theme.CONTENT_SECONDRY : Theme.CONTENT_PRIMARY
|
|
3242
3242
|
}
|
|
3243
|
-
)), /* @__PURE__ */ React
|
|
3243
|
+
)), /* @__PURE__ */ React.createElement(Pressable, { style: styles.cancelButton, onPress: clearAllData }, /* @__PURE__ */ React.createElement(
|
|
3244
3244
|
CustomText$1,
|
|
3245
3245
|
{
|
|
3246
3246
|
text: rightBtnTxt,
|
|
@@ -3278,7 +3278,7 @@ const CountryDropDown = ({
|
|
|
3278
3278
|
setCallingCode(`+${country.callingCode[0]}`);
|
|
3279
3279
|
getCountryCode(`+${country.callingCode[0]}`);
|
|
3280
3280
|
};
|
|
3281
|
-
return /* @__PURE__ */ React
|
|
3281
|
+
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
3282
|
CountryPicker,
|
|
3283
3283
|
{
|
|
3284
3284
|
withFilter: true,
|
|
@@ -3288,21 +3288,21 @@ const CountryDropDown = ({
|
|
|
3288
3288
|
onSelect: handleSelect,
|
|
3289
3289
|
visible: pickerVisible
|
|
3290
3290
|
}
|
|
3291
|
-
), /* @__PURE__ */ React
|
|
3291
|
+
), /* @__PURE__ */ React.createElement(
|
|
3292
3292
|
Text,
|
|
3293
3293
|
{
|
|
3294
3294
|
onPress: () => setPickerVisible(true),
|
|
3295
3295
|
style: [styles$a.callingCode, callingCodeStyle]
|
|
3296
3296
|
},
|
|
3297
3297
|
callingCode
|
|
3298
|
-
)), /* @__PURE__ */ React
|
|
3298
|
+
)), /* @__PURE__ */ React.createElement(View, { style: styles$a.flex }, (isFocused || value) && /* @__PURE__ */ React.createElement(
|
|
3299
3299
|
CustomTypography,
|
|
3300
3300
|
{
|
|
3301
3301
|
variant: "L2_REGULAR",
|
|
3302
3302
|
text: label ?? "",
|
|
3303
3303
|
style: styles$a.floatingLabel
|
|
3304
3304
|
}
|
|
3305
|
-
), /* @__PURE__ */ React
|
|
3305
|
+
), /* @__PURE__ */ React.createElement(
|
|
3306
3306
|
TextInput,
|
|
3307
3307
|
{
|
|
3308
3308
|
style: [styles$a.input, inputStyle],
|
|
@@ -3315,7 +3315,7 @@ const CountryDropDown = ({
|
|
|
3315
3315
|
maxLength,
|
|
3316
3316
|
placeholderTextColor: theme.CONTENT_SECONDRY["light"]
|
|
3317
3317
|
}
|
|
3318
|
-
))), errorMessage ? /* @__PURE__ */ React
|
|
3318
|
+
))), errorMessage ? /* @__PURE__ */ React.createElement(
|
|
3319
3319
|
CustomTypography,
|
|
3320
3320
|
{
|
|
3321
3321
|
variant: "L2_REGULAR",
|
|
@@ -3397,7 +3397,7 @@ const CommonTextInput = (props) => {
|
|
|
3397
3397
|
onRightIconPress,
|
|
3398
3398
|
onlyErrorBorderLabel
|
|
3399
3399
|
} = props;
|
|
3400
|
-
return /* @__PURE__ */ React
|
|
3400
|
+
return /* @__PURE__ */ React.createElement(Pressable, { onPress: handlePress, style: styles$9.container }, /* @__PURE__ */ React.createElement(
|
|
3401
3401
|
TextInput$1,
|
|
3402
3402
|
{
|
|
3403
3403
|
mode: "outlined",
|
|
@@ -3435,7 +3435,7 @@ const CommonTextInput = (props) => {
|
|
|
3435
3435
|
error: errorMessage?.length || onlyErrorBorderLabel ? true : false,
|
|
3436
3436
|
multiline,
|
|
3437
3437
|
numberOfLines: multiline ? 4 : 1,
|
|
3438
|
-
right: rightIcon ? /* @__PURE__ */ React
|
|
3438
|
+
right: rightIcon ? /* @__PURE__ */ React.createElement(
|
|
3439
3439
|
TextInput$1.Icon,
|
|
3440
3440
|
{
|
|
3441
3441
|
icon: rightIcon,
|
|
@@ -3447,7 +3447,7 @@ const CommonTextInput = (props) => {
|
|
|
3447
3447
|
) : null,
|
|
3448
3448
|
...props
|
|
3449
3449
|
}
|
|
3450
|
-
), errorMessage ? /* @__PURE__ */ React
|
|
3450
|
+
), errorMessage ? /* @__PURE__ */ React.createElement(
|
|
3451
3451
|
CustomTypography,
|
|
3452
3452
|
{
|
|
3453
3453
|
variant: "L2_REGULAR",
|
|
@@ -3522,7 +3522,7 @@ const CustomDropdown = (props) => {
|
|
|
3522
3522
|
const [isFocus, setIsFocus] = useState(false);
|
|
3523
3523
|
const renderLabel = () => {
|
|
3524
3524
|
if (value || isFocus) {
|
|
3525
|
-
return /* @__PURE__ */ React
|
|
3525
|
+
return /* @__PURE__ */ React.createElement(
|
|
3526
3526
|
Text,
|
|
3527
3527
|
{
|
|
3528
3528
|
style: [
|
|
@@ -3546,7 +3546,7 @@ const CustomDropdown = (props) => {
|
|
|
3546
3546
|
};
|
|
3547
3547
|
const renderItem = (item) => {
|
|
3548
3548
|
const isSelected = item[valueField] === value;
|
|
3549
|
-
return /* @__PURE__ */ React
|
|
3549
|
+
return /* @__PURE__ */ React.createElement(View, { style: [styles$8.itemContainer, itemContainerStyle] }, /* @__PURE__ */ React.createElement(
|
|
3550
3550
|
Text,
|
|
3551
3551
|
{
|
|
3552
3552
|
style: [
|
|
@@ -3560,7 +3560,7 @@ const CustomDropdown = (props) => {
|
|
|
3560
3560
|
item[labelField]
|
|
3561
3561
|
));
|
|
3562
3562
|
};
|
|
3563
|
-
return /* @__PURE__ */ React
|
|
3563
|
+
return /* @__PURE__ */ React.createElement(View, { style: [styles$8.container, containerStyle] }, label && renderLabel(), /* @__PURE__ */ React.createElement(
|
|
3564
3564
|
Dropdown,
|
|
3565
3565
|
{
|
|
3566
3566
|
...props,
|
|
@@ -3692,20 +3692,20 @@ const CustomSwitchBtn = ({
|
|
|
3692
3692
|
const toggleSwitch = () => {
|
|
3693
3693
|
onValueChange(!value);
|
|
3694
3694
|
};
|
|
3695
|
-
return /* @__PURE__ */ React
|
|
3695
|
+
return /* @__PURE__ */ React.createElement(
|
|
3696
3696
|
Pressable,
|
|
3697
3697
|
{
|
|
3698
3698
|
disabled,
|
|
3699
3699
|
onPress: toggleSwitch,
|
|
3700
3700
|
style: { ...styles$7.mainContainer, ...containerStyle }
|
|
3701
3701
|
},
|
|
3702
|
-
/* @__PURE__ */ React
|
|
3702
|
+
/* @__PURE__ */ React.createElement(
|
|
3703
3703
|
Animated.View,
|
|
3704
3704
|
{
|
|
3705
3705
|
style: [styles$7.circle, { transform: [{ translateX }], ...circleStyle }]
|
|
3706
3706
|
}
|
|
3707
3707
|
),
|
|
3708
|
-
/* @__PURE__ */ React
|
|
3708
|
+
/* @__PURE__ */ React.createElement(
|
|
3709
3709
|
CustomTypography,
|
|
3710
3710
|
{
|
|
3711
3711
|
style: [styles$7.activeText, value ? inActiveTextStyle : activeTextStyle],
|
|
@@ -3713,7 +3713,7 @@ const CustomSwitchBtn = ({
|
|
|
3713
3713
|
variant: activeTextVariant
|
|
3714
3714
|
}
|
|
3715
3715
|
),
|
|
3716
|
-
/* @__PURE__ */ React
|
|
3716
|
+
/* @__PURE__ */ React.createElement(
|
|
3717
3717
|
CustomTypography,
|
|
3718
3718
|
{
|
|
3719
3719
|
style: [
|
|
@@ -3770,7 +3770,7 @@ const TagsComponent = ({
|
|
|
3770
3770
|
}
|
|
3771
3771
|
return tagList;
|
|
3772
3772
|
};
|
|
3773
|
-
const renderTagItem = ({ item }) => /* @__PURE__ */ React
|
|
3773
|
+
const renderTagItem = ({ item }) => /* @__PURE__ */ React.createElement(
|
|
3774
3774
|
Pressable,
|
|
3775
3775
|
{
|
|
3776
3776
|
onPress: () => handleTagPress?.(item.name),
|
|
@@ -3779,7 +3779,7 @@ const TagsComponent = ({
|
|
|
3779
3779
|
selectedTag === item?.name ? [styles.selectedTagButton, selectedTagButton] : [styles.unselectedTagButton, unselectedTagButton]
|
|
3780
3780
|
]
|
|
3781
3781
|
},
|
|
3782
|
-
/* @__PURE__ */ React
|
|
3782
|
+
/* @__PURE__ */ React.createElement(View, null, /* @__PURE__ */ React.createElement(
|
|
3783
3783
|
CustomText$1,
|
|
3784
3784
|
{
|
|
3785
3785
|
textColor: selectedTag === item?.name ? Theme.CONTENT_INVERTED : Theme.CONTENT_SECONDRY,
|
|
@@ -3787,7 +3787,7 @@ const TagsComponent = ({
|
|
|
3787
3787
|
text: item?.name
|
|
3788
3788
|
}
|
|
3789
3789
|
)),
|
|
3790
|
-
/* @__PURE__ */ React
|
|
3790
|
+
/* @__PURE__ */ React.createElement(View, { style: styles.circleViewAlignment }, selectedTag === item?.name && /* @__PURE__ */ React.createElement(
|
|
3791
3791
|
CustomText$1,
|
|
3792
3792
|
{
|
|
3793
3793
|
text: "x",
|
|
@@ -3796,7 +3796,7 @@ const TagsComponent = ({
|
|
|
3796
3796
|
}
|
|
3797
3797
|
))
|
|
3798
3798
|
);
|
|
3799
|
-
return /* @__PURE__ */ React
|
|
3799
|
+
return /* @__PURE__ */ React.createElement(View, null, /* @__PURE__ */ React.createElement(
|
|
3800
3800
|
FlatList,
|
|
3801
3801
|
{
|
|
3802
3802
|
data: reorderedTags(),
|
|
@@ -3915,7 +3915,7 @@ const CustomDocumentPicker = ({
|
|
|
3915
3915
|
const removeDocument = useCallback(() => {
|
|
3916
3916
|
setDocDetails(void 0);
|
|
3917
3917
|
}, []);
|
|
3918
|
-
return /* @__PURE__ */ React
|
|
3918
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
3919
3919
|
View,
|
|
3920
3920
|
{
|
|
3921
3921
|
style: [
|
|
@@ -3925,14 +3925,14 @@ const CustomDocumentPicker = ({
|
|
|
3925
3925
|
containerStyle
|
|
3926
3926
|
]
|
|
3927
3927
|
},
|
|
3928
|
-
/* @__PURE__ */ React
|
|
3928
|
+
/* @__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
3929
|
CustomTypography,
|
|
3930
3930
|
{
|
|
3931
3931
|
variant: FontStyle.L2_REGULAR,
|
|
3932
3932
|
text: docDetails?.name ?? title,
|
|
3933
3933
|
style: [{ color: theme.CONTENT_PRIMARY }, titleStyle]
|
|
3934
3934
|
}
|
|
3935
|
-
), !docDetails && /* @__PURE__ */ React
|
|
3935
|
+
), !docDetails && /* @__PURE__ */ React.createElement(
|
|
3936
3936
|
CustomTypography,
|
|
3937
3937
|
{
|
|
3938
3938
|
variant: FontStyle.L3_REGULAR,
|
|
@@ -3940,10 +3940,10 @@ const CustomDocumentPicker = ({
|
|
|
3940
3940
|
style: [{ color: theme.CONTENT_SECONDRY }, hintStyle]
|
|
3941
3941
|
}
|
|
3942
3942
|
))),
|
|
3943
|
-
docDetails && React
|
|
3943
|
+
docDetails && React.cloneElement(deleteIcon, {
|
|
3944
3944
|
onPress: removeDocument
|
|
3945
3945
|
})
|
|
3946
|
-
), error && /* @__PURE__ */ React
|
|
3946
|
+
), error && /* @__PURE__ */ React.createElement(
|
|
3947
3947
|
CustomTypography,
|
|
3948
3948
|
{
|
|
3949
3949
|
variant: FontStyle.L2_REGULAR,
|
|
@@ -3992,7 +3992,7 @@ const styles$5 = StyleSheet.create({
|
|
|
3992
3992
|
}
|
|
3993
3993
|
});
|
|
3994
3994
|
|
|
3995
|
-
const OTPInput = React
|
|
3995
|
+
const OTPInput = React.forwardRef(
|
|
3996
3996
|
({
|
|
3997
3997
|
length = 4,
|
|
3998
3998
|
onComplete,
|
|
@@ -4091,7 +4091,7 @@ const OTPInput = React$1.forwardRef(
|
|
|
4091
4091
|
}
|
|
4092
4092
|
});
|
|
4093
4093
|
};
|
|
4094
|
-
React
|
|
4094
|
+
React.useImperativeHandle(ref, () => ({
|
|
4095
4095
|
reset() {
|
|
4096
4096
|
setOTP("");
|
|
4097
4097
|
refs.current[0]?.focus();
|
|
@@ -4130,7 +4130,7 @@ const OTPInput = React$1.forwardRef(
|
|
|
4130
4130
|
onComplete?.(otp);
|
|
4131
4131
|
}
|
|
4132
4132
|
}, [otp]);
|
|
4133
|
-
return /* @__PURE__ */ React
|
|
4133
|
+
return /* @__PURE__ */ React.createElement(ThemeProvider, null, /* @__PURE__ */ React.createElement(View, { style: { ...otpContainerStyle }, "data-testid": testId }, /* @__PURE__ */ React.createElement(
|
|
4134
4134
|
CustomTypography,
|
|
4135
4135
|
{
|
|
4136
4136
|
text: label,
|
|
@@ -4141,7 +4141,7 @@ const OTPInput = React$1.forwardRef(
|
|
|
4141
4141
|
...otpHeaderTextStyle
|
|
4142
4142
|
}
|
|
4143
4143
|
}
|
|
4144
|
-
), /* @__PURE__ */ React
|
|
4144
|
+
), /* @__PURE__ */ React.createElement(View, { style: { ...styles$5.textInputContainer } }, Array.from({ length }).map((_, index) => /* @__PURE__ */ React.createElement(
|
|
4145
4145
|
TextInput,
|
|
4146
4146
|
{
|
|
4147
4147
|
key: index?.toString(),
|
|
@@ -4165,21 +4165,21 @@ const OTPInput = React$1.forwardRef(
|
|
|
4165
4165
|
autoComplete: "sms-otp",
|
|
4166
4166
|
selectionColor: theme$1.CONTENT_PRIMARY
|
|
4167
4167
|
}
|
|
4168
|
-
))), !errorMessageMaxReachCount && /* @__PURE__ */ React
|
|
4168
|
+
))), !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
4169
|
CustomTypography,
|
|
4170
4170
|
{
|
|
4171
4171
|
text: `00:${timeLeft} secs`,
|
|
4172
4172
|
variant: FontStyle.L1_REGULAR,
|
|
4173
4173
|
style: { color: theme$1.INFO }
|
|
4174
4174
|
}
|
|
4175
|
-
))), /* @__PURE__ */ React
|
|
4175
|
+
))), /* @__PURE__ */ React.createElement(
|
|
4176
4176
|
Pressable,
|
|
4177
4177
|
{
|
|
4178
4178
|
onPress: onClickResendOTP,
|
|
4179
4179
|
style: styles$5.resendOTPStyle,
|
|
4180
4180
|
disabled: disableResendButton() || !isResendOtpEnable
|
|
4181
4181
|
},
|
|
4182
|
-
/* @__PURE__ */ React
|
|
4182
|
+
/* @__PURE__ */ React.createElement(
|
|
4183
4183
|
CustomTypography,
|
|
4184
4184
|
{
|
|
4185
4185
|
text: resendText,
|
|
@@ -4191,7 +4191,7 @@ const OTPInput = React$1.forwardRef(
|
|
|
4191
4191
|
}
|
|
4192
4192
|
}
|
|
4193
4193
|
)
|
|
4194
|
-
)), errorMessage ? /* @__PURE__ */ React
|
|
4194
|
+
)), errorMessage ? /* @__PURE__ */ React.createElement(View, { style: styles$5.resendOtpContainer }, /* @__PURE__ */ React.createElement(
|
|
4195
4195
|
CustomTypography,
|
|
4196
4196
|
{
|
|
4197
4197
|
text: errorMessage,
|
|
@@ -4201,7 +4201,7 @@ const OTPInput = React$1.forwardRef(
|
|
|
4201
4201
|
color: theme$1.ERROR
|
|
4202
4202
|
}
|
|
4203
4203
|
}
|
|
4204
|
-
)) : null, errorMessageMaxReachCount ? /* @__PURE__ */ React
|
|
4204
|
+
)) : null, errorMessageMaxReachCount ? /* @__PURE__ */ React.createElement(View, { style: styles$5.resendOtpContainer }, /* @__PURE__ */ React.createElement(
|
|
4205
4205
|
CustomTypography,
|
|
4206
4206
|
{
|
|
4207
4207
|
text: errorMessageMaxReachCount,
|
|
@@ -4343,18 +4343,18 @@ const Stepper = ({
|
|
|
4343
4343
|
return { borderColor: theme.CONTENT_SECONDRY };
|
|
4344
4344
|
}
|
|
4345
4345
|
};
|
|
4346
|
-
return /* @__PURE__ */ React
|
|
4346
|
+
return /* @__PURE__ */ React.createElement(View, { style: { ...styles$4.stepperContainer, ...containerStyle } }, data?.map((item, index) => {
|
|
4347
4347
|
const stepCircleStyle = renderCircleStyle(item?.status);
|
|
4348
4348
|
const dividerStyle = renderDividerStyle(item?.status);
|
|
4349
4349
|
const labelStyle = renderLableStyle(item?.status);
|
|
4350
4350
|
const lastViewStyle = index === data?.length - 1 ? styles$4.lastStepWrapper : null;
|
|
4351
|
-
return /* @__PURE__ */ React
|
|
4351
|
+
return /* @__PURE__ */ React.createElement(
|
|
4352
4352
|
View,
|
|
4353
4353
|
{
|
|
4354
4354
|
key: index?.toString(),
|
|
4355
4355
|
style: { ...styles$4.stepperWrapper, ...lastViewStyle }
|
|
4356
4356
|
},
|
|
4357
|
-
/* @__PURE__ */ React
|
|
4357
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$4.stepperSeparatorContainer }, /* @__PURE__ */ React.createElement(View, { style: { ...stepCircleStyle } }, showStepCount && /* @__PURE__ */ React.createElement(
|
|
4358
4358
|
CustomTypography,
|
|
4359
4359
|
{
|
|
4360
4360
|
text: item?.step,
|
|
@@ -4363,8 +4363,8 @@ const Stepper = ({
|
|
|
4363
4363
|
color: theme.CONTENT_PRIMARY
|
|
4364
4364
|
}
|
|
4365
4365
|
}
|
|
4366
|
-
), showStatus && item?.status === Status.Completed && completedStatusIcon), index != data?.length - 1 && /* @__PURE__ */ React
|
|
4367
|
-
/* @__PURE__ */ React
|
|
4366
|
+
), showStatus && item?.status === Status.Completed && completedStatusIcon), index != data?.length - 1 && /* @__PURE__ */ React.createElement(View, { style: { ...styles$4.separator, ...dividerStyle } })),
|
|
4367
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$4.lableContainer }, /* @__PURE__ */ React.createElement(
|
|
4368
4368
|
CustomTypography,
|
|
4369
4369
|
{
|
|
4370
4370
|
text: item?.label,
|
|
@@ -4415,7 +4415,7 @@ const styles$3 = StyleSheet.create({
|
|
|
4415
4415
|
});
|
|
4416
4416
|
|
|
4417
4417
|
const BUTTON_WIDTH = 40;
|
|
4418
|
-
const CustomSlideButton = React
|
|
4418
|
+
const CustomSlideButton = React.forwardRef(
|
|
4419
4419
|
({
|
|
4420
4420
|
label,
|
|
4421
4421
|
onComplete,
|
|
@@ -4435,7 +4435,7 @@ const CustomSlideButton = React$1.forwardRef(
|
|
|
4435
4435
|
const sliderConteinerRef = useRef(null);
|
|
4436
4436
|
const [color, setColor] = useState(new Animated.Value(0));
|
|
4437
4437
|
const [sliderBackgroundColorRef, setSliderBackgroundColorRef] = useState(new Animated.Value(0));
|
|
4438
|
-
React
|
|
4438
|
+
React.useImperativeHandle(ref, () => ({
|
|
4439
4439
|
reset() {
|
|
4440
4440
|
resetAll();
|
|
4441
4441
|
}
|
|
@@ -4524,32 +4524,32 @@ const CustomSlideButton = React$1.forwardRef(
|
|
|
4524
4524
|
outputRange: [sliderBackgroundColor, "transparent"]
|
|
4525
4525
|
});
|
|
4526
4526
|
const { theme } = useTheme();
|
|
4527
|
-
return /* @__PURE__ */ React
|
|
4527
|
+
return /* @__PURE__ */ React.createElement(View, { style: {
|
|
4528
4528
|
...styles$3.sliderContainer,
|
|
4529
4529
|
backgroundColor: theme.SURFACE_INVERTED,
|
|
4530
4530
|
...containerStyle
|
|
4531
|
-
}, onLayout: handleLayout, ref: cardRef }, /* @__PURE__ */ React
|
|
4531
|
+
}, onLayout: handleLayout, ref: cardRef }, /* @__PURE__ */ React.createElement(
|
|
4532
4532
|
Animated.View,
|
|
4533
4533
|
{
|
|
4534
4534
|
style: [styles$3.buttonTextContainer, { backgroundColor, transform: [{ translateX }] }],
|
|
4535
4535
|
ref: sliderConteinerRef
|
|
4536
4536
|
}
|
|
4537
|
-
), /* @__PURE__ */ React
|
|
4537
|
+
), /* @__PURE__ */ React.createElement(
|
|
4538
4538
|
View,
|
|
4539
4539
|
{
|
|
4540
4540
|
style: styles$3.buttonTextContainer
|
|
4541
4541
|
},
|
|
4542
|
-
/* @__PURE__ */ React
|
|
4542
|
+
/* @__PURE__ */ React.createElement(Animated.Text, { style: [{
|
|
4543
4543
|
alignSelf: "center",
|
|
4544
4544
|
...textStyle
|
|
4545
4545
|
}, { color: textColor }] }, label)
|
|
4546
|
-
), /* @__PURE__ */ React
|
|
4546
|
+
), /* @__PURE__ */ React.createElement(
|
|
4547
4547
|
Animated.View,
|
|
4548
4548
|
{
|
|
4549
4549
|
style: [styles$3.slider, { transform: [{ translateX }] }],
|
|
4550
4550
|
...panResponder.panHandlers
|
|
4551
4551
|
},
|
|
4552
|
-
/* @__PURE__ */ React
|
|
4552
|
+
/* @__PURE__ */ React.createElement(
|
|
4553
4553
|
View,
|
|
4554
4554
|
{
|
|
4555
4555
|
style: {
|
|
@@ -4666,7 +4666,7 @@ const AppointmentCard = ({
|
|
|
4666
4666
|
directionText
|
|
4667
4667
|
}) => {
|
|
4668
4668
|
const { theme } = useTheme();
|
|
4669
|
-
return /* @__PURE__ */ React
|
|
4669
|
+
return /* @__PURE__ */ React.createElement(
|
|
4670
4670
|
Accordion$1,
|
|
4671
4671
|
{
|
|
4672
4672
|
title,
|
|
@@ -4679,14 +4679,14 @@ const AppointmentCard = ({
|
|
|
4679
4679
|
borderBottomColor: theme.BORDER_SEPERATOR_HEADER
|
|
4680
4680
|
},
|
|
4681
4681
|
headerStyle: styles$2.accordionHeader,
|
|
4682
|
-
headerComponent: () => /* @__PURE__ */ React
|
|
4682
|
+
headerComponent: () => /* @__PURE__ */ React.createElement(View, { style: styles$2.accordionHeaderContent }, headerIcon, /* @__PURE__ */ React.createElement(View, { style: styles$2.accordionText }, /* @__PURE__ */ React.createElement(
|
|
4683
4683
|
CustomTypography,
|
|
4684
4684
|
{
|
|
4685
4685
|
text: headerTitle,
|
|
4686
4686
|
variant: FontStyle.L2_REGULAR,
|
|
4687
4687
|
style: { color: theme.CONTENT_SECONDRY }
|
|
4688
4688
|
}
|
|
4689
|
-
), /* @__PURE__ */ React
|
|
4689
|
+
), /* @__PURE__ */ React.createElement(
|
|
4690
4690
|
CustomTypography,
|
|
4691
4691
|
{
|
|
4692
4692
|
text: headerSubtitle,
|
|
@@ -4696,7 +4696,7 @@ const AppointmentCard = ({
|
|
|
4696
4696
|
))),
|
|
4697
4697
|
icon
|
|
4698
4698
|
},
|
|
4699
|
-
/* @__PURE__ */ React
|
|
4699
|
+
/* @__PURE__ */ React.createElement(
|
|
4700
4700
|
View,
|
|
4701
4701
|
{
|
|
4702
4702
|
style: [
|
|
@@ -4704,14 +4704,14 @@ const AppointmentCard = ({
|
|
|
4704
4704
|
{ borderTopColor: theme.BORDER_SEPERATOR_HEADER }
|
|
4705
4705
|
]
|
|
4706
4706
|
},
|
|
4707
|
-
/* @__PURE__ */ React
|
|
4707
|
+
/* @__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
4708
|
CustomTypography,
|
|
4709
4709
|
{
|
|
4710
4710
|
text: title2,
|
|
4711
4711
|
variant: FontStyle.L3_REGULAR,
|
|
4712
4712
|
style: { color: theme.CONTENT_SECONDRY }
|
|
4713
4713
|
}
|
|
4714
|
-
), /* @__PURE__ */ React
|
|
4714
|
+
), /* @__PURE__ */ React.createElement(View, { style: styles$2.infoRow }, isStatus && statusIcon, /* @__PURE__ */ React.createElement(
|
|
4715
4715
|
CustomTypography,
|
|
4716
4716
|
{
|
|
4717
4717
|
text: value,
|
|
@@ -4720,7 +4720,7 @@ const AppointmentCard = ({
|
|
|
4720
4720
|
color: isStatus ? theme.WARNING : theme.CONTENT_PRIMARY
|
|
4721
4721
|
}
|
|
4722
4722
|
}
|
|
4723
|
-
)), isLocation && /* @__PURE__ */ React
|
|
4723
|
+
)), isLocation && /* @__PURE__ */ React.createElement(
|
|
4724
4724
|
CustomTypography,
|
|
4725
4725
|
{
|
|
4726
4726
|
text: directionText,
|
|
@@ -4732,7 +4732,7 @@ const AppointmentCard = ({
|
|
|
4732
4732
|
onPress: onDirectionPress
|
|
4733
4733
|
}
|
|
4734
4734
|
)))),
|
|
4735
|
-
/* @__PURE__ */ React
|
|
4735
|
+
/* @__PURE__ */ React.createElement(
|
|
4736
4736
|
View,
|
|
4737
4737
|
{
|
|
4738
4738
|
style: [
|
|
@@ -4743,7 +4743,7 @@ const AppointmentCard = ({
|
|
|
4743
4743
|
]
|
|
4744
4744
|
},
|
|
4745
4745
|
infoIcon,
|
|
4746
|
-
/* @__PURE__ */ React
|
|
4746
|
+
/* @__PURE__ */ React.createElement(
|
|
4747
4747
|
CustomTypography,
|
|
4748
4748
|
{
|
|
4749
4749
|
text: info,
|
|
@@ -4752,7 +4752,7 @@ const AppointmentCard = ({
|
|
|
4752
4752
|
}
|
|
4753
4753
|
)
|
|
4754
4754
|
),
|
|
4755
|
-
/* @__PURE__ */ React
|
|
4755
|
+
/* @__PURE__ */ React.createElement(
|
|
4756
4756
|
View,
|
|
4757
4757
|
{
|
|
4758
4758
|
style: [
|
|
@@ -4762,7 +4762,7 @@ const AppointmentCard = ({
|
|
|
4762
4762
|
}
|
|
4763
4763
|
]
|
|
4764
4764
|
},
|
|
4765
|
-
/* @__PURE__ */ React
|
|
4765
|
+
/* @__PURE__ */ React.createElement(
|
|
4766
4766
|
CustomTypography,
|
|
4767
4767
|
{
|
|
4768
4768
|
text: viewText,
|
|
@@ -4776,7 +4776,7 @@ const AppointmentCard = ({
|
|
|
4776
4776
|
onPress: onViewDetailsPress
|
|
4777
4777
|
}
|
|
4778
4778
|
),
|
|
4779
|
-
/* @__PURE__ */ React
|
|
4779
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$2.actionIcons }, /* @__PURE__ */ React.createElement(
|
|
4780
4780
|
CustomIcon,
|
|
4781
4781
|
{
|
|
4782
4782
|
icon: deleteIcon,
|
|
@@ -4786,7 +4786,7 @@ const AppointmentCard = ({
|
|
|
4786
4786
|
},
|
|
4787
4787
|
onPress: onDeletePress
|
|
4788
4788
|
}
|
|
4789
|
-
), /* @__PURE__ */ React
|
|
4789
|
+
), /* @__PURE__ */ React.createElement(
|
|
4790
4790
|
CustomIcon,
|
|
4791
4791
|
{
|
|
4792
4792
|
icon: editIcon,
|
|
@@ -4840,7 +4840,7 @@ const PropertyDetails = ({
|
|
|
4840
4840
|
onRightIconPress
|
|
4841
4841
|
}) => {
|
|
4842
4842
|
const { theme } = useTheme();
|
|
4843
|
-
return /* @__PURE__ */ React
|
|
4843
|
+
return /* @__PURE__ */ React.createElement(
|
|
4844
4844
|
View,
|
|
4845
4845
|
{
|
|
4846
4846
|
style: {
|
|
@@ -4850,25 +4850,25 @@ const PropertyDetails = ({
|
|
|
4850
4850
|
...containerStyle
|
|
4851
4851
|
}
|
|
4852
4852
|
},
|
|
4853
|
-
React
|
|
4853
|
+
React.cloneElement(icon, {
|
|
4854
4854
|
width: moderateScale(87),
|
|
4855
4855
|
height: moderateScale(87)
|
|
4856
4856
|
}),
|
|
4857
|
-
/* @__PURE__ */ React
|
|
4857
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$1.propertyInfo }, brandIcon, /* @__PURE__ */ React.createElement(
|
|
4858
4858
|
CustomTypography,
|
|
4859
4859
|
{
|
|
4860
4860
|
text: title,
|
|
4861
4861
|
variant: FontStyle.L2_REGULAR,
|
|
4862
4862
|
style: { color: theme.CONTENT_PRIMARY }
|
|
4863
4863
|
}
|
|
4864
|
-
), /* @__PURE__ */ React
|
|
4864
|
+
), /* @__PURE__ */ React.createElement(
|
|
4865
4865
|
CustomTypography,
|
|
4866
4866
|
{
|
|
4867
4867
|
text: subTitle,
|
|
4868
4868
|
variant: FontStyle.L1_REGULAR,
|
|
4869
4869
|
style: { color: theme.CONTENT_PRIMARY }
|
|
4870
4870
|
}
|
|
4871
|
-
), propertyNumber && /* @__PURE__ */ React
|
|
4871
|
+
), propertyNumber && /* @__PURE__ */ React.createElement(View, { style: styles$1.propertyNumber }, /* @__PURE__ */ React.createElement(
|
|
4872
4872
|
CustomTypography,
|
|
4873
4873
|
{
|
|
4874
4874
|
text: propertyNumber,
|
|
@@ -4878,7 +4878,7 @@ const PropertyDetails = ({
|
|
|
4878
4878
|
}
|
|
4879
4879
|
}
|
|
4880
4880
|
), hintIcon)),
|
|
4881
|
-
btnIcon && /* @__PURE__ */ React
|
|
4881
|
+
btnIcon && /* @__PURE__ */ React.createElement(
|
|
4882
4882
|
CustomIcon,
|
|
4883
4883
|
{
|
|
4884
4884
|
icon: btnIcon,
|
|
@@ -4923,14 +4923,14 @@ const RadioButtonGroup = ({ data, onSelect, containerStyle, labelStyle, optionCo
|
|
|
4923
4923
|
setSelectedOption(item.value);
|
|
4924
4924
|
onSelect(item);
|
|
4925
4925
|
};
|
|
4926
|
-
return /* @__PURE__ */ React
|
|
4926
|
+
return /* @__PURE__ */ React.createElement(View, { style: [styles.container, containerStyle] }, data?.map((item) => /* @__PURE__ */ React.createElement(
|
|
4927
4927
|
TouchableOpacity,
|
|
4928
4928
|
{
|
|
4929
4929
|
key: item.value,
|
|
4930
4930
|
style: [styles.optionContainer, optionContainerStyle],
|
|
4931
4931
|
onPress: () => handleSelect(item)
|
|
4932
4932
|
},
|
|
4933
|
-
/* @__PURE__ */ React
|
|
4933
|
+
/* @__PURE__ */ React.createElement(
|
|
4934
4934
|
View,
|
|
4935
4935
|
{
|
|
4936
4936
|
style: [
|
|
@@ -4939,7 +4939,7 @@ const RadioButtonGroup = ({ data, onSelect, containerStyle, labelStyle, optionCo
|
|
|
4939
4939
|
]
|
|
4940
4940
|
}
|
|
4941
4941
|
),
|
|
4942
|
-
/* @__PURE__ */ React
|
|
4942
|
+
/* @__PURE__ */ React.createElement(
|
|
4943
4943
|
CustomTypography,
|
|
4944
4944
|
{
|
|
4945
4945
|
variant: FontStyle.L1_REGULAR,
|