dhre-ui-kit 0.0.136 → 0.0.138
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 +23 -16
- package/lib/index.js +256 -224
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +257 -225
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import React, { createContext, useContext, useState, useEffect, useRef, memo, useCallback } from 'react';
|
|
2
2
|
import { useSelector } from 'react-redux';
|
|
3
|
-
import { Dimensions,
|
|
3
|
+
import { Dimensions, StyleSheet, Text, Pressable, View, Modal, KeyboardAvoidingView, Platform, TextInput, ScrollView, Animated, FlatList, ActivityIndicator, TouchableOpacity, Alert, Linking, PanResponder } from 'react-native';
|
|
4
4
|
import { PanGestureHandler, GestureHandlerRootView, Swipeable } from 'react-native-gesture-handler';
|
|
5
5
|
import { BlurView } from '@react-native-community/blur';
|
|
6
6
|
import Tooltip from 'rn-tooltip';
|
|
7
7
|
import Pdf from 'react-native-pdf';
|
|
8
8
|
import * as Progress from 'react-native-progress';
|
|
9
|
+
import { verticalScale as verticalScale$1, moderateScale as moderateScale$1 } from 'src/utils/stylehelper';
|
|
9
10
|
import { Calendar } from 'react-native-calendars';
|
|
11
|
+
import { Theme as Theme$1, FontStyle as FontStyle$1 } from 'src/utils/appEnum';
|
|
12
|
+
import { withThemeProvider as withThemeProvider$1 } from 'src/theme/withThemeProvider';
|
|
13
|
+
import { useTheme as useTheme$1 } from 'src/theme/ThemeContext';
|
|
10
14
|
import CountryPicker from 'react-native-country-picker-modal';
|
|
11
15
|
import { TextInput as TextInput$1 } from 'react-native-paper';
|
|
12
16
|
import { Dropdown } from 'react-native-element-dropdown';
|
|
@@ -324,8 +328,19 @@ const CustomTypography = ({
|
|
|
324
328
|
...props
|
|
325
329
|
}) => {
|
|
326
330
|
const textStyle = FONT_STYLES[variant];
|
|
327
|
-
return /* @__PURE__ */ React.createElement(
|
|
331
|
+
return /* @__PURE__ */ React.createElement(
|
|
332
|
+
Text,
|
|
333
|
+
{
|
|
334
|
+
testID,
|
|
335
|
+
style: [textStyle, styles$E.container, style],
|
|
336
|
+
...props
|
|
337
|
+
},
|
|
338
|
+
text
|
|
339
|
+
);
|
|
328
340
|
};
|
|
341
|
+
const styles$E = StyleSheet.create({
|
|
342
|
+
container: { writingDirection: "auto", alignSelf: "flex-start" }
|
|
343
|
+
});
|
|
329
344
|
|
|
330
345
|
const CustomText = ({
|
|
331
346
|
text,
|
|
@@ -534,7 +549,7 @@ const DHRE_COLORS_TEXT = {
|
|
|
534
549
|
DH_LIGHTGREEN: "#00B578"
|
|
535
550
|
};
|
|
536
551
|
|
|
537
|
-
const styles$
|
|
552
|
+
const styles$D = StyleSheet.create({
|
|
538
553
|
badge: {
|
|
539
554
|
backgroundColor: DHRE_COLORS_ALERT.DH_SUCCESS_GREEN,
|
|
540
555
|
borderRadius: 15,
|
|
@@ -561,16 +576,16 @@ const Badge = ({
|
|
|
561
576
|
return /* @__PURE__ */ React.createElement(
|
|
562
577
|
Pressable,
|
|
563
578
|
{
|
|
564
|
-
style: [styles$
|
|
579
|
+
style: [styles$D.badge, commonStyles.centerRow, style],
|
|
565
580
|
testID: "BADGE",
|
|
566
581
|
onPress: handleIconPress
|
|
567
582
|
},
|
|
568
|
-
iconName && /* @__PURE__ */ React.createElement(View, { style: [styles$
|
|
583
|
+
iconName && /* @__PURE__ */ React.createElement(View, { style: [styles$D.icon, iconStyle] }, React.cloneElement(iconName)),
|
|
569
584
|
text && /* @__PURE__ */ React.createElement(
|
|
570
585
|
CustomTypography,
|
|
571
586
|
{
|
|
572
587
|
variant: "B3semiBold",
|
|
573
|
-
style: [styles$
|
|
588
|
+
style: [styles$D.text, textStyle],
|
|
574
589
|
text
|
|
575
590
|
}
|
|
576
591
|
)
|
|
@@ -578,7 +593,7 @@ const Badge = ({
|
|
|
578
593
|
};
|
|
579
594
|
var Badge$1 = withThemeProvider(Badge);
|
|
580
595
|
|
|
581
|
-
const styles$
|
|
596
|
+
const styles$C = StyleSheet.create({
|
|
582
597
|
mainContainer: {
|
|
583
598
|
flex: 1,
|
|
584
599
|
justifyContent: "flex-end"
|
|
@@ -658,29 +673,29 @@ const BottomDrawer = ({
|
|
|
658
673
|
behavior: Platform.OS === "ios" ? "padding" : "height",
|
|
659
674
|
style: { flex: 1 }
|
|
660
675
|
},
|
|
661
|
-
/* @__PURE__ */ React.createElement(View, { style: [styles$
|
|
676
|
+
/* @__PURE__ */ React.createElement(View, { style: [styles$C.mainContainer, style], testID }, showBlurView ? /* @__PURE__ */ React.createElement(
|
|
662
677
|
BlurView,
|
|
663
678
|
{
|
|
664
|
-
style: [styles$
|
|
679
|
+
style: [styles$C.blurView, blurViewStyle],
|
|
665
680
|
blurType,
|
|
666
681
|
blurAmount
|
|
667
682
|
}
|
|
668
|
-
) : null, /* @__PURE__ */ React.createElement(View, { style: [styles$
|
|
683
|
+
) : null, /* @__PURE__ */ React.createElement(View, { style: [styles$C.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(View, { style: styles$C.separator }), /* @__PURE__ */ React.createElement(View, { style: styles$C.headerContainer }, showLeftIcon && leftIcon ? React.cloneElement(leftIcon, {
|
|
669
684
|
width: moderateScale(24),
|
|
670
685
|
height: moderateScale(24),
|
|
671
|
-
style: styles$
|
|
686
|
+
style: styles$C.leftIconStyle,
|
|
672
687
|
onPress: onLeftIconPress
|
|
673
688
|
}) : null, /* @__PURE__ */ React.createElement(
|
|
674
689
|
CustomTypography,
|
|
675
690
|
{
|
|
676
691
|
variant: titleVariant,
|
|
677
692
|
text: title,
|
|
678
|
-
style: { ...styles$
|
|
693
|
+
style: { ...styles$C.title, ...titleStyle }
|
|
679
694
|
}
|
|
680
695
|
), showRightIcon && rightIcon ? React.cloneElement(rightIcon, {
|
|
681
696
|
width: moderateScale(24),
|
|
682
697
|
height: moderateScale(24),
|
|
683
|
-
style: styles$
|
|
698
|
+
style: styles$C.rightIconStyle,
|
|
684
699
|
onPress: toggleModal
|
|
685
700
|
}) : null)), children))
|
|
686
701
|
))
|
|
@@ -709,7 +724,7 @@ const CustomButton = ({
|
|
|
709
724
|
{
|
|
710
725
|
testID,
|
|
711
726
|
style: [
|
|
712
|
-
styles$
|
|
727
|
+
styles$B.buttonContainer,
|
|
713
728
|
containerStyle,
|
|
714
729
|
disabled ? {
|
|
715
730
|
backgroundColor: disabledColor ? disabledColor : theme.SURFACE_DISABLE
|
|
@@ -736,7 +751,7 @@ const CustomButton = ({
|
|
|
736
751
|
imagePosition === "right" && rightIcon && /* @__PURE__ */ React.createElement(View, { style: iconStyle }, React.cloneElement(rightIcon, { width: 20, height: 20 }))
|
|
737
752
|
);
|
|
738
753
|
};
|
|
739
|
-
const styles$
|
|
754
|
+
const styles$B = StyleSheet.create({
|
|
740
755
|
buttonContainer: {
|
|
741
756
|
flexDirection: "row",
|
|
742
757
|
alignItems: "center",
|
|
@@ -748,7 +763,7 @@ const styles$C = StyleSheet.create({
|
|
|
748
763
|
});
|
|
749
764
|
var CustomButton$1 = withThemeProvider(CustomButton);
|
|
750
765
|
|
|
751
|
-
const styles$
|
|
766
|
+
const styles$A = StyleSheet.create({
|
|
752
767
|
container: {
|
|
753
768
|
padding: horizontalScale(20),
|
|
754
769
|
marginHorizontal: horizontalScale(16),
|
|
@@ -813,53 +828,53 @@ const Cards = ({
|
|
|
813
828
|
testID,
|
|
814
829
|
onButtonPress
|
|
815
830
|
}) => {
|
|
816
|
-
return /* @__PURE__ */ React.createElement(View, { testID, style: styles$
|
|
831
|
+
return /* @__PURE__ */ React.createElement(View, { testID, style: styles$A.container }, topLeftTitle ? /* @__PURE__ */ React.createElement(View, { style: styles$A.topLeft }, /* @__PURE__ */ React.createElement(
|
|
817
832
|
CustomTypography,
|
|
818
833
|
{
|
|
819
834
|
variant: "P2regular",
|
|
820
|
-
style: styles$
|
|
835
|
+
style: styles$A.title,
|
|
821
836
|
text: topLeftTitle
|
|
822
837
|
}
|
|
823
838
|
)) : null, title ? /* @__PURE__ */ React.createElement(
|
|
824
839
|
CustomTypography,
|
|
825
840
|
{
|
|
826
841
|
variant: "H6bold",
|
|
827
|
-
style: styles$
|
|
842
|
+
style: styles$A.subTitleBelow,
|
|
828
843
|
text: title
|
|
829
844
|
}
|
|
830
845
|
) : null, subtitle ? /* @__PURE__ */ React.createElement(
|
|
831
846
|
CustomTypography,
|
|
832
847
|
{
|
|
833
848
|
variant: "P3regular",
|
|
834
|
-
style: styles$
|
|
849
|
+
style: styles$A.subtitle,
|
|
835
850
|
text: subtitle
|
|
836
851
|
}
|
|
837
|
-
) : null, /* @__PURE__ */ React.createElement(View, { style: styles$
|
|
852
|
+
) : null, /* @__PURE__ */ React.createElement(View, { style: styles$A.leftBottomView }, iconSource ? iconSource : null, iconTitle ? /* @__PURE__ */ React.createElement(
|
|
838
853
|
CustomTypography,
|
|
839
854
|
{
|
|
840
855
|
variant: "P3regular",
|
|
841
|
-
style: styles$
|
|
856
|
+
style: styles$A.subTitleLeftBelow,
|
|
842
857
|
text: iconTitle
|
|
843
858
|
}
|
|
844
859
|
) : null), buttonShown ? /* @__PURE__ */ React.createElement(
|
|
845
860
|
Pressable,
|
|
846
861
|
{
|
|
847
862
|
testID: "Button-Press",
|
|
848
|
-
style: styles$
|
|
863
|
+
style: styles$A.button,
|
|
849
864
|
onPress: onButtonPress
|
|
850
865
|
},
|
|
851
866
|
/* @__PURE__ */ React.createElement(
|
|
852
867
|
CustomTypography,
|
|
853
868
|
{
|
|
854
869
|
variant: "B2semiBold",
|
|
855
|
-
style: styles$
|
|
870
|
+
style: styles$A.buttonText,
|
|
856
871
|
text: buttonText
|
|
857
872
|
}
|
|
858
873
|
)
|
|
859
874
|
) : null);
|
|
860
875
|
};
|
|
861
876
|
|
|
862
|
-
const styles$
|
|
877
|
+
const styles$z = StyleSheet.create({
|
|
863
878
|
checkboxContainer: {
|
|
864
879
|
alignItems: "center",
|
|
865
880
|
justifyContent: "center"
|
|
@@ -915,9 +930,9 @@ const Checkbox = ({
|
|
|
915
930
|
testID: "Checkbox-Press",
|
|
916
931
|
onPress: handlePress,
|
|
917
932
|
disabled: disable,
|
|
918
|
-
style: styles$
|
|
933
|
+
style: styles$z.directionStyle
|
|
919
934
|
},
|
|
920
|
-
/* @__PURE__ */ React.createElement(View, { style: styles$
|
|
935
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$z.checkboxContainer }, React.cloneElement(checked ? checkedIcon : uncheckedIcon)),
|
|
921
936
|
/* @__PURE__ */ React.createElement(
|
|
922
937
|
CustomTypography,
|
|
923
938
|
{
|
|
@@ -929,7 +944,7 @@ const Checkbox = ({
|
|
|
929
944
|
));
|
|
930
945
|
};
|
|
931
946
|
|
|
932
|
-
const styles$
|
|
947
|
+
const styles$y = StyleSheet.create({
|
|
933
948
|
labelStyle: {
|
|
934
949
|
color: DHRE_COLORS_TEXT.DH_TEXTLIGHT
|
|
935
950
|
},
|
|
@@ -983,26 +998,26 @@ const CustomDropdown$1 = ({
|
|
|
983
998
|
CustomTypography,
|
|
984
999
|
{
|
|
985
1000
|
variant: "P3regular",
|
|
986
|
-
style: styles$
|
|
1001
|
+
style: styles$y.labelStyle,
|
|
987
1002
|
text: label
|
|
988
1003
|
}
|
|
989
1004
|
), /* @__PURE__ */ React.createElement(
|
|
990
1005
|
Pressable,
|
|
991
1006
|
{
|
|
992
1007
|
testID: `${testId}-BTN`,
|
|
993
|
-
style: styles$
|
|
1008
|
+
style: styles$y.dropDownStyle,
|
|
994
1009
|
onPress: () => setShowOptions(!showOptions)
|
|
995
1010
|
},
|
|
996
1011
|
iconName && /* @__PURE__ */ React.createElement(View, { style: iconStyle }, React.cloneElement(iconName, {
|
|
997
1012
|
width: moderateScale(24),
|
|
998
1013
|
height: moderateScale(24),
|
|
999
|
-
style: styles$
|
|
1014
|
+
style: styles$y.iconStyle
|
|
1000
1015
|
})),
|
|
1001
1016
|
/* @__PURE__ */ React.createElement(
|
|
1002
1017
|
CustomTypography,
|
|
1003
1018
|
{
|
|
1004
1019
|
variant: "P3regular",
|
|
1005
|
-
style: styles$
|
|
1020
|
+
style: styles$y.selectedValueStyle,
|
|
1006
1021
|
text: selectedValue ? selectedValue.label : placeholder
|
|
1007
1022
|
}
|
|
1008
1023
|
),
|
|
@@ -1013,7 +1028,7 @@ const CustomDropdown$1 = ({
|
|
|
1013
1028
|
width: moderateScale(24),
|
|
1014
1029
|
height: moderateScale(24)
|
|
1015
1030
|
}))
|
|
1016
|
-
), showOptions && /* @__PURE__ */ React.createElement(View, { style: styles$
|
|
1031
|
+
), showOptions && /* @__PURE__ */ React.createElement(View, { style: styles$y.optionContainer }, options?.map(({ id, value, label: label2 }) => /* @__PURE__ */ React.createElement(
|
|
1017
1032
|
Pressable,
|
|
1018
1033
|
{
|
|
1019
1034
|
key: id,
|
|
@@ -1023,7 +1038,7 @@ const CustomDropdown$1 = ({
|
|
|
1023
1038
|
oneSelect({ id, value, label: label2 });
|
|
1024
1039
|
},
|
|
1025
1040
|
style: [
|
|
1026
|
-
styles$
|
|
1041
|
+
styles$y.item,
|
|
1027
1042
|
{
|
|
1028
1043
|
backgroundColor: id === selectedValue?.id ? DHRE_COLORS_BG.DH_GREY1 : DHRE_COLORS_TEXT.DH_WHITE
|
|
1029
1044
|
}
|
|
@@ -1032,7 +1047,7 @@ const CustomDropdown$1 = ({
|
|
|
1032
1047
|
iconName && /* @__PURE__ */ React.createElement(View, { style: iconStyle }, React.cloneElement(iconName, {
|
|
1033
1048
|
width: moderateScale(24),
|
|
1034
1049
|
height: moderateScale(24),
|
|
1035
|
-
style: styles$
|
|
1050
|
+
style: styles$y.iconStyle
|
|
1036
1051
|
})),
|
|
1037
1052
|
/* @__PURE__ */ React.createElement(
|
|
1038
1053
|
CustomTypography,
|
|
@@ -1047,7 +1062,7 @@ const CustomDropdown$1 = ({
|
|
|
1047
1062
|
))));
|
|
1048
1063
|
};
|
|
1049
1064
|
|
|
1050
|
-
const styles$
|
|
1065
|
+
const styles$x = StyleSheet.create({
|
|
1051
1066
|
labelStyle: {
|
|
1052
1067
|
color: DHRE_COLORS_TEXT.DH_TEXTDARK
|
|
1053
1068
|
},
|
|
@@ -1129,18 +1144,18 @@ const CustomTextInput = ({
|
|
|
1129
1144
|
CustomTypography,
|
|
1130
1145
|
{
|
|
1131
1146
|
variant: "P3medium",
|
|
1132
|
-
style: [styles$
|
|
1147
|
+
style: [styles$x.labelStyle, disabled && styles$x.disableTextStyle],
|
|
1133
1148
|
text: label
|
|
1134
1149
|
}
|
|
1135
1150
|
), /* @__PURE__ */ React.createElement(
|
|
1136
1151
|
View,
|
|
1137
1152
|
{
|
|
1138
1153
|
style: [
|
|
1139
|
-
styles$
|
|
1140
|
-
isFocused && styles$
|
|
1141
|
-
error && styles$
|
|
1142
|
-
disabled && styles$
|
|
1143
|
-
successMessage ? styles$
|
|
1154
|
+
styles$x.inputContainer,
|
|
1155
|
+
isFocused && styles$x.inputFocused,
|
|
1156
|
+
error && styles$x.inputError,
|
|
1157
|
+
disabled && styles$x.disableInputStyle,
|
|
1158
|
+
successMessage ? styles$x.inputSucess : {},
|
|
1144
1159
|
{
|
|
1145
1160
|
height: multiline ? 120 : 48,
|
|
1146
1161
|
alignItems: multiline ? "flex-start" : "center"
|
|
@@ -1150,7 +1165,7 @@ const CustomTextInput = ({
|
|
|
1150
1165
|
isSearchBar && searchIcon && React.cloneElement(searchIcon, {
|
|
1151
1166
|
width: moderateScale(24),
|
|
1152
1167
|
height: moderateScale(24),
|
|
1153
|
-
style: styles$
|
|
1168
|
+
style: styles$x.searchIconStyle
|
|
1154
1169
|
}),
|
|
1155
1170
|
/* @__PURE__ */ React.createElement(
|
|
1156
1171
|
TextInput,
|
|
@@ -1158,7 +1173,7 @@ const CustomTextInput = ({
|
|
|
1158
1173
|
...props,
|
|
1159
1174
|
onFocus,
|
|
1160
1175
|
onBlur,
|
|
1161
|
-
style: styles$
|
|
1176
|
+
style: styles$x.input,
|
|
1162
1177
|
placeholderTextColor: DHRE_COLORS_TEXT.DH_TEXTLIGHTEST,
|
|
1163
1178
|
editable: !disabled,
|
|
1164
1179
|
value,
|
|
@@ -1191,7 +1206,7 @@ const CustomTextInput = ({
|
|
|
1191
1206
|
));
|
|
1192
1207
|
};
|
|
1193
1208
|
|
|
1194
|
-
const styles$
|
|
1209
|
+
const styles$w = StyleSheet.create({
|
|
1195
1210
|
tooltipContainerStyle: {
|
|
1196
1211
|
flex: 1,
|
|
1197
1212
|
borderRadius: moderateScale(16),
|
|
@@ -1220,18 +1235,18 @@ const CustomTooltip = ({
|
|
|
1220
1235
|
iconStyle,
|
|
1221
1236
|
iconColor = DHRE_COLORS_TEXT.DH_BLACK
|
|
1222
1237
|
}) => {
|
|
1223
|
-
const defaultPopoverContent = /* @__PURE__ */ React.createElement(View, { style: styles$
|
|
1238
|
+
const defaultPopoverContent = /* @__PURE__ */ React.createElement(View, { style: styles$w.mesageContainer, testID: testId }, /* @__PURE__ */ React.createElement(
|
|
1224
1239
|
CustomTypography,
|
|
1225
1240
|
{
|
|
1226
1241
|
variant: "P4regular",
|
|
1227
|
-
style: styles$
|
|
1242
|
+
style: styles$w.messageStyle,
|
|
1228
1243
|
text: message
|
|
1229
1244
|
}
|
|
1230
1245
|
), icon && /* @__PURE__ */ React.createElement(View, { style: iconStyle }, React.cloneElement(icon, { fill: iconColor })));
|
|
1231
1246
|
return /* @__PURE__ */ React.createElement(
|
|
1232
1247
|
Tooltip,
|
|
1233
1248
|
{
|
|
1234
|
-
containerStyle: styles$
|
|
1249
|
+
containerStyle: styles$w.tooltipContainerStyle,
|
|
1235
1250
|
backgroundColor,
|
|
1236
1251
|
popover: popoverContent || defaultPopoverContent,
|
|
1237
1252
|
actionType
|
|
@@ -1240,7 +1255,7 @@ const CustomTooltip = ({
|
|
|
1240
1255
|
);
|
|
1241
1256
|
};
|
|
1242
1257
|
|
|
1243
|
-
const styles$
|
|
1258
|
+
const styles$v = StyleSheet.create({
|
|
1244
1259
|
container: {
|
|
1245
1260
|
backgroundColor: DHRE_COLORS_TEXT.DH_BLACK,
|
|
1246
1261
|
paddingHorizontal: horizontalScale(16),
|
|
@@ -1290,21 +1305,21 @@ const FileUpload = ({
|
|
|
1290
1305
|
return /* @__PURE__ */ React.createElement(
|
|
1291
1306
|
View,
|
|
1292
1307
|
{
|
|
1293
|
-
style: [styles$
|
|
1308
|
+
style: [styles$v.container, containerStyle],
|
|
1294
1309
|
testID: "file-upload-container"
|
|
1295
1310
|
},
|
|
1296
|
-
/* @__PURE__ */ React.createElement(View, { style: styles$
|
|
1311
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$v.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$v.title, text: title }), /* @__PURE__ */ React.createElement(
|
|
1297
1312
|
CustomTypography,
|
|
1298
1313
|
{
|
|
1299
1314
|
variant: "P4regular",
|
|
1300
|
-
style: styles$
|
|
1315
|
+
style: styles$v.description,
|
|
1301
1316
|
text: `Drop files directly here or `
|
|
1302
1317
|
}
|
|
1303
1318
|
), /* @__PURE__ */ React.createElement(
|
|
1304
1319
|
CustomTypography,
|
|
1305
1320
|
{
|
|
1306
1321
|
variant: "P4regular",
|
|
1307
|
-
style: styles$
|
|
1322
|
+
style: styles$v.browse,
|
|
1308
1323
|
text: btnText
|
|
1309
1324
|
}
|
|
1310
1325
|
), /* @__PURE__ */ React.createElement(
|
|
@@ -1312,14 +1327,14 @@ const FileUpload = ({
|
|
|
1312
1327
|
{
|
|
1313
1328
|
testID: "file-upload-description",
|
|
1314
1329
|
variant: "P4regular",
|
|
1315
|
-
style: styles$
|
|
1330
|
+
style: styles$v.description,
|
|
1316
1331
|
text: ` from your device`
|
|
1317
1332
|
}
|
|
1318
1333
|
)),
|
|
1319
1334
|
/* @__PURE__ */ React.createElement(
|
|
1320
1335
|
Pressable,
|
|
1321
1336
|
{
|
|
1322
|
-
style: styles$
|
|
1337
|
+
style: styles$v.button,
|
|
1323
1338
|
onPress: onUpload,
|
|
1324
1339
|
testID: "file-upload-button"
|
|
1325
1340
|
},
|
|
@@ -1327,7 +1342,7 @@ const FileUpload = ({
|
|
|
1327
1342
|
CustomTypography,
|
|
1328
1343
|
{
|
|
1329
1344
|
variant: "B2semiBold",
|
|
1330
|
-
style: styles$
|
|
1345
|
+
style: styles$v.buttonText,
|
|
1331
1346
|
text: btnText
|
|
1332
1347
|
}
|
|
1333
1348
|
)
|
|
@@ -1339,7 +1354,7 @@ const PdfView = (props) => {
|
|
|
1339
1354
|
return /* @__PURE__ */ React.createElement(Pdf, { ...props });
|
|
1340
1355
|
};
|
|
1341
1356
|
|
|
1342
|
-
const styles$
|
|
1357
|
+
const styles$u = StyleSheet.create({
|
|
1343
1358
|
container: {
|
|
1344
1359
|
padding: horizontalScale(20),
|
|
1345
1360
|
marginHorizontal: horizontalScale(16),
|
|
@@ -1395,39 +1410,39 @@ const PopUp = ({
|
|
|
1395
1410
|
leftButtonShown = false,
|
|
1396
1411
|
rightButtonShown = false
|
|
1397
1412
|
}) => {
|
|
1398
|
-
return /* @__PURE__ */ React.createElement(View, { testID, style: styles$
|
|
1413
|
+
return /* @__PURE__ */ React.createElement(View, { testID, style: styles$u.container }, title ? /* @__PURE__ */ React.createElement(
|
|
1399
1414
|
CustomTypography,
|
|
1400
1415
|
{
|
|
1401
|
-
style: styles$
|
|
1416
|
+
style: styles$u.subTitleBelow,
|
|
1402
1417
|
variant: "H6semiBold",
|
|
1403
1418
|
text: title
|
|
1404
1419
|
}
|
|
1405
1420
|
) : null, subtitle ? /* @__PURE__ */ React.createElement(
|
|
1406
1421
|
CustomTypography,
|
|
1407
1422
|
{
|
|
1408
|
-
style: styles$
|
|
1423
|
+
style: styles$u.subtitle,
|
|
1409
1424
|
variant: "P3regular",
|
|
1410
1425
|
text: subtitle
|
|
1411
1426
|
}
|
|
1412
|
-
) : null, /* @__PURE__ */ React.createElement(View, { style: styles$
|
|
1427
|
+
) : null, /* @__PURE__ */ React.createElement(View, { style: styles$u.buttonContainer }, leftButtonShown ? /* @__PURE__ */ React.createElement(
|
|
1413
1428
|
Pressable,
|
|
1414
1429
|
{
|
|
1415
1430
|
testID: "Left-Button-Press",
|
|
1416
|
-
style: styles$
|
|
1431
|
+
style: styles$u.buttonLeft,
|
|
1417
1432
|
onPress: onButtonPress
|
|
1418
1433
|
},
|
|
1419
1434
|
/* @__PURE__ */ React.createElement(
|
|
1420
1435
|
CustomTypography,
|
|
1421
1436
|
{
|
|
1422
|
-
style: styles$
|
|
1437
|
+
style: styles$u.buttonLeftText,
|
|
1423
1438
|
variant: "B2semiBold",
|
|
1424
1439
|
text: buttonText
|
|
1425
1440
|
}
|
|
1426
1441
|
)
|
|
1427
|
-
) : null, rightButtonShown ? /* @__PURE__ */ React.createElement(Pressable, { style: styles$
|
|
1442
|
+
) : null, rightButtonShown ? /* @__PURE__ */ React.createElement(Pressable, { style: styles$u.button, onPress: onButtonPress }, /* @__PURE__ */ React.createElement(
|
|
1428
1443
|
CustomTypography,
|
|
1429
1444
|
{
|
|
1430
|
-
style: styles$
|
|
1445
|
+
style: styles$u.buttonText,
|
|
1431
1446
|
variant: "B2semiBold",
|
|
1432
1447
|
text: buttonText
|
|
1433
1448
|
}
|
|
@@ -1465,7 +1480,7 @@ const CustomProgressBar = ({
|
|
|
1465
1480
|
return () => clearInterval(progressInterval);
|
|
1466
1481
|
}, [progress, value, increment, interval]);
|
|
1467
1482
|
const showPercentage = () => {
|
|
1468
|
-
return /* @__PURE__ */ React.createElement(View, { style: styles$
|
|
1483
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles$t.flexDirection }, /* @__PURE__ */ React.createElement(
|
|
1469
1484
|
CustomText$1,
|
|
1470
1485
|
{
|
|
1471
1486
|
text: `${value}%`,
|
|
@@ -1519,7 +1534,7 @@ const CustomProgressBar = ({
|
|
|
1519
1534
|
};
|
|
1520
1535
|
return /* @__PURE__ */ React.createElement(View, { testID: "custom-progress-bar" }, renderProgressBar());
|
|
1521
1536
|
};
|
|
1522
|
-
const styles$
|
|
1537
|
+
const styles$t = StyleSheet.create({
|
|
1523
1538
|
flexDirection: {
|
|
1524
1539
|
flexDirection: "column",
|
|
1525
1540
|
justifyContent: "center",
|
|
@@ -1527,7 +1542,7 @@ const styles$u = StyleSheet.create({
|
|
|
1527
1542
|
}
|
|
1528
1543
|
});
|
|
1529
1544
|
|
|
1530
|
-
const styles$
|
|
1545
|
+
const styles$s = StyleSheet.create({
|
|
1531
1546
|
container: {
|
|
1532
1547
|
flexDirection: "row",
|
|
1533
1548
|
alignItems: "center"
|
|
@@ -1593,13 +1608,13 @@ const Star = ({
|
|
|
1593
1608
|
emptyStarColor
|
|
1594
1609
|
);
|
|
1595
1610
|
stars.push(
|
|
1596
|
-
/* @__PURE__ */ React.createElement(View, { key: i, style: [styles$
|
|
1611
|
+
/* @__PURE__ */ React.createElement(View, { key: i, style: [styles$s.star, starStyle] }, starType)
|
|
1597
1612
|
);
|
|
1598
1613
|
}
|
|
1599
|
-
return /* @__PURE__ */ React.createElement(View, { style: styles$
|
|
1614
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles$s.container, testID: "star" }, stars);
|
|
1600
1615
|
};
|
|
1601
1616
|
|
|
1602
|
-
var styles$
|
|
1617
|
+
var styles$r = StyleSheet.create({
|
|
1603
1618
|
container: {
|
|
1604
1619
|
flexDirection: "row",
|
|
1605
1620
|
gap: horizontalScale(5),
|
|
@@ -1641,12 +1656,12 @@ const Tabs = ({
|
|
|
1641
1656
|
onSelectionChange(selectedTabs);
|
|
1642
1657
|
}
|
|
1643
1658
|
};
|
|
1644
|
-
return /* @__PURE__ */ React.createElement(View, { style: [styles$
|
|
1659
|
+
return /* @__PURE__ */ React.createElement(View, { style: [styles$r.container, style] }, data?.map(({ id, title, isSelected }) => /* @__PURE__ */ React.createElement(
|
|
1645
1660
|
Pressable,
|
|
1646
1661
|
{
|
|
1647
1662
|
key: id,
|
|
1648
1663
|
style: {
|
|
1649
|
-
...styles$
|
|
1664
|
+
...styles$r.button,
|
|
1650
1665
|
backgroundColor: isSelected ? theme.CONTENT_PRIMARY : theme.CONTENT_INVERTED,
|
|
1651
1666
|
borderColor: isSelected ? theme.CONTENT_INVERTED : theme.CONTENT_SECONDRY
|
|
1652
1667
|
},
|
|
@@ -1666,7 +1681,7 @@ const Tabs = ({
|
|
|
1666
1681
|
};
|
|
1667
1682
|
var Tabs$1 = withThemeProvider(Tabs);
|
|
1668
1683
|
|
|
1669
|
-
const styles$
|
|
1684
|
+
const styles$q = StyleSheet.create({
|
|
1670
1685
|
container: {
|
|
1671
1686
|
width: "100%"
|
|
1672
1687
|
},
|
|
@@ -1725,8 +1740,8 @@ const Tags = ({
|
|
|
1725
1740
|
ScrollView,
|
|
1726
1741
|
{
|
|
1727
1742
|
testID,
|
|
1728
|
-
style: styles$
|
|
1729
|
-
contentContainerStyle: styles$
|
|
1743
|
+
style: styles$q.container,
|
|
1744
|
+
contentContainerStyle: styles$q.contentContainer,
|
|
1730
1745
|
horizontal: false
|
|
1731
1746
|
},
|
|
1732
1747
|
tags?.map((tag) => /* @__PURE__ */ React.createElement(
|
|
@@ -1736,16 +1751,16 @@ const Tags = ({
|
|
|
1736
1751
|
key: tag,
|
|
1737
1752
|
onPress: () => toggleTag(tag),
|
|
1738
1753
|
style: [
|
|
1739
|
-
styles$
|
|
1754
|
+
styles$q.tag,
|
|
1740
1755
|
tagStyles,
|
|
1741
|
-
selectedTags.includes(tag) ? styles$
|
|
1756
|
+
selectedTags.includes(tag) ? styles$q.selectedTag : styles$q.tagUnSelected
|
|
1742
1757
|
]
|
|
1743
1758
|
},
|
|
1744
1759
|
/* @__PURE__ */ React.createElement(
|
|
1745
1760
|
CustomTypography,
|
|
1746
1761
|
{
|
|
1747
1762
|
variant: selectedTags.includes(tag) ? "H9semiBold" : "P4regular",
|
|
1748
|
-
style: selectedTags.includes(tag) ? styles$
|
|
1763
|
+
style: selectedTags.includes(tag) ? styles$q.tagText : styles$q.tagUnselectedText,
|
|
1749
1764
|
text: tag
|
|
1750
1765
|
}
|
|
1751
1766
|
),
|
|
@@ -1761,7 +1776,7 @@ const Tags = ({
|
|
|
1761
1776
|
);
|
|
1762
1777
|
};
|
|
1763
1778
|
|
|
1764
|
-
const styles$
|
|
1779
|
+
const styles$p = StyleSheet.create({
|
|
1765
1780
|
container: {
|
|
1766
1781
|
width: horizontalScale(70),
|
|
1767
1782
|
height: verticalScale(25),
|
|
@@ -1826,26 +1841,26 @@ const CustomSwitch = ({
|
|
|
1826
1841
|
Pressable,
|
|
1827
1842
|
{
|
|
1828
1843
|
onPress: toggleSwitch,
|
|
1829
|
-
style: [styles$
|
|
1844
|
+
style: [styles$p.container, { width }],
|
|
1830
1845
|
testID: "custom-switch"
|
|
1831
1846
|
},
|
|
1832
1847
|
/* @__PURE__ */ React.createElement(
|
|
1833
1848
|
View,
|
|
1834
1849
|
{
|
|
1835
1850
|
style: [
|
|
1836
|
-
styles$
|
|
1851
|
+
styles$p.track,
|
|
1837
1852
|
{
|
|
1838
1853
|
backgroundColor: isOn ? DHRE_COLORS_ALERT.DH_SUCCESS_GREEN_ACCENT : DHRE_COLORS_TEXT.DH_TEXTDISABLED
|
|
1839
1854
|
}
|
|
1840
1855
|
]
|
|
1841
1856
|
},
|
|
1842
|
-
/* @__PURE__ */ React.createElement(Animated.View, { style: [styles$
|
|
1857
|
+
/* @__PURE__ */ React.createElement(Animated.View, { style: [styles$p.thumb, animatedStyle] }),
|
|
1843
1858
|
type !== ToggleButtonType.SMALL && /* @__PURE__ */ React.createElement(
|
|
1844
1859
|
CustomTypography,
|
|
1845
1860
|
{
|
|
1846
1861
|
variant: "B3semiBold",
|
|
1847
1862
|
style: [
|
|
1848
|
-
styles$
|
|
1863
|
+
styles$p.text,
|
|
1849
1864
|
{ textAlign: isOn ? TextDirectType.left : TextDirectType.right }
|
|
1850
1865
|
],
|
|
1851
1866
|
text: isOn ? ToggleTextType.ON : ToggleTextType.OFF
|
|
@@ -1855,7 +1870,7 @@ const CustomSwitch = ({
|
|
|
1855
1870
|
);
|
|
1856
1871
|
};
|
|
1857
1872
|
|
|
1858
|
-
const styles$
|
|
1873
|
+
const styles$o = StyleSheet.create({
|
|
1859
1874
|
container: {
|
|
1860
1875
|
paddingVertical: verticalScale(24),
|
|
1861
1876
|
borderBottomWidth: moderateScale(1)
|
|
@@ -1917,19 +1932,19 @@ const Accordion = ({
|
|
|
1917
1932
|
View,
|
|
1918
1933
|
{
|
|
1919
1934
|
style: {
|
|
1920
|
-
...styles$
|
|
1935
|
+
...styles$o.container,
|
|
1921
1936
|
borderBottomColor: theme.BORDER_SEPRATOR,
|
|
1922
1937
|
...containerStyle
|
|
1923
1938
|
},
|
|
1924
1939
|
testID: testId
|
|
1925
1940
|
},
|
|
1926
|
-
/* @__PURE__ */ React.createElement(View, { style: [styles$
|
|
1941
|
+
/* @__PURE__ */ React.createElement(View, { style: [styles$o.header, headerStyle, disabled && { opacity: 0.5 }] }, headerComponent ? headerComponent() : /* @__PURE__ */ React.createElement(Pressable, { onPress: onHeaderPress }, /* @__PURE__ */ React.createElement(
|
|
1927
1942
|
CustomTypography,
|
|
1928
1943
|
{
|
|
1929
1944
|
variant: titleVariant,
|
|
1930
1945
|
text: title,
|
|
1931
1946
|
style: {
|
|
1932
|
-
...styles$
|
|
1947
|
+
...styles$o.title,
|
|
1933
1948
|
color: theme.CONTENT_PRIMARY,
|
|
1934
1949
|
...titleStyle
|
|
1935
1950
|
}
|
|
@@ -1937,10 +1952,10 @@ const Accordion = ({
|
|
|
1937
1952
|
)), /* @__PURE__ */ React.createElement(Pressable, { onPress: !disabled ? onToggle : void 0 }, React.cloneElement(icon, {
|
|
1938
1953
|
width: moderateScale(20),
|
|
1939
1954
|
height: moderateScale(20),
|
|
1940
|
-
style: styles$
|
|
1955
|
+
style: styles$o.iconStyle
|
|
1941
1956
|
}))),
|
|
1942
1957
|
optionalElement ? optionalElement() : null,
|
|
1943
|
-
isOpen && /* @__PURE__ */ React.createElement(Animated.View, { style: [styles$
|
|
1958
|
+
isOpen && /* @__PURE__ */ React.createElement(Animated.View, { style: [styles$o.content, { height: cardHeight }] }, /* @__PURE__ */ React.createElement(
|
|
1944
1959
|
View,
|
|
1945
1960
|
{
|
|
1946
1961
|
ref: contentRef,
|
|
@@ -1954,7 +1969,7 @@ const Accordion = ({
|
|
|
1954
1969
|
};
|
|
1955
1970
|
var Accordion$1 = withThemeProvider(Accordion);
|
|
1956
1971
|
|
|
1957
|
-
const styles$
|
|
1972
|
+
const styles$n = StyleSheet.create({
|
|
1958
1973
|
container: {
|
|
1959
1974
|
position: "absolute",
|
|
1960
1975
|
alignSelf: "center",
|
|
@@ -2036,23 +2051,23 @@ const Toast = React.forwardRef(({ sucessIcon, errorIcon }, ref) => {
|
|
|
2036
2051
|
Animated.View,
|
|
2037
2052
|
{
|
|
2038
2053
|
style: [
|
|
2039
|
-
styles$
|
|
2054
|
+
styles$n.container,
|
|
2040
2055
|
{ bottom },
|
|
2041
2056
|
{ backgroundColor: isSuccess ? "#04743F" : "#DB3056" }
|
|
2042
2057
|
],
|
|
2043
2058
|
testID: "TOAST"
|
|
2044
2059
|
},
|
|
2045
|
-
/* @__PURE__ */ React.createElement(View, { style: styles$
|
|
2060
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$n.toastContainer }, /* @__PURE__ */ React.createElement(View, { style: styles$n.innerContainer }, isSuccess ? sucessIcon : errorIcon, /* @__PURE__ */ React.createElement(
|
|
2046
2061
|
CustomTypography,
|
|
2047
2062
|
{
|
|
2048
2063
|
variant: "L2_REGULAR",
|
|
2049
2064
|
text: message,
|
|
2050
|
-
style: styles$
|
|
2065
|
+
style: styles$n.messageText
|
|
2051
2066
|
}
|
|
2052
2067
|
), btnText && /* @__PURE__ */ React.createElement(
|
|
2053
2068
|
Pressable,
|
|
2054
2069
|
{
|
|
2055
|
-
style: styles$
|
|
2070
|
+
style: styles$n.button,
|
|
2056
2071
|
onPress: onBtnPress || void 0,
|
|
2057
2072
|
testID: "TOAST-BTN"
|
|
2058
2073
|
},
|
|
@@ -2061,7 +2076,7 @@ const Toast = React.forwardRef(({ sucessIcon, errorIcon }, ref) => {
|
|
|
2061
2076
|
{
|
|
2062
2077
|
variant: "L2_BOLD",
|
|
2063
2078
|
text: btnText,
|
|
2064
|
-
style: styles$
|
|
2079
|
+
style: styles$n.buttonText
|
|
2065
2080
|
}
|
|
2066
2081
|
)
|
|
2067
2082
|
))),
|
|
@@ -2079,7 +2094,7 @@ const Toast = React.forwardRef(({ sucessIcon, errorIcon }, ref) => {
|
|
|
2079
2094
|
});
|
|
2080
2095
|
Toast.displayName = "Toast";
|
|
2081
2096
|
|
|
2082
|
-
const styles$
|
|
2097
|
+
const styles$m = StyleSheet.create({
|
|
2083
2098
|
inputContainer: {
|
|
2084
2099
|
flexDirection: "row",
|
|
2085
2100
|
justifyContent: "center",
|
|
@@ -2116,20 +2131,23 @@ const CustomSearchBar = ({
|
|
|
2116
2131
|
borderColor = "#FFFFFF",
|
|
2117
2132
|
disablePlaceHolderStyle = "#686868",
|
|
2118
2133
|
enablePlaceHolderStyle = "#A7A7A7",
|
|
2134
|
+
handlePress,
|
|
2135
|
+
pointerEvents,
|
|
2119
2136
|
...props
|
|
2120
2137
|
}) => {
|
|
2121
2138
|
return /* @__PURE__ */ React.createElement(
|
|
2122
|
-
|
|
2139
|
+
Pressable,
|
|
2123
2140
|
{
|
|
2124
2141
|
testID,
|
|
2125
2142
|
style: [
|
|
2126
|
-
styles$
|
|
2143
|
+
styles$m.inputContainer,
|
|
2127
2144
|
{
|
|
2128
|
-
height: verticalScale(height),
|
|
2145
|
+
height: verticalScale$1(height),
|
|
2129
2146
|
borderColor: disabled ? disableBorderColor : value ? borderColor : "#A7A7A7"
|
|
2130
2147
|
},
|
|
2131
2148
|
inputContainerStyle
|
|
2132
|
-
]
|
|
2149
|
+
],
|
|
2150
|
+
onPress: handlePress
|
|
2133
2151
|
},
|
|
2134
2152
|
/* @__PURE__ */ React.createElement(
|
|
2135
2153
|
Pressable,
|
|
@@ -2141,9 +2159,9 @@ const CustomSearchBar = ({
|
|
|
2141
2159
|
style: searchIconStyle
|
|
2142
2160
|
},
|
|
2143
2161
|
React.cloneElement(searchIcon, {
|
|
2144
|
-
width: moderateScale(24),
|
|
2145
|
-
height: moderateScale(24),
|
|
2146
|
-
style: [styles$
|
|
2162
|
+
width: moderateScale$1(24),
|
|
2163
|
+
height: moderateScale$1(24),
|
|
2164
|
+
style: [styles$m.searchIconStyle, searchIconStyle]
|
|
2147
2165
|
})
|
|
2148
2166
|
),
|
|
2149
2167
|
/* @__PURE__ */ React.createElement(
|
|
@@ -2151,14 +2169,15 @@ const CustomSearchBar = ({
|
|
|
2151
2169
|
{
|
|
2152
2170
|
...props,
|
|
2153
2171
|
testID: `${testID}-INPUT`,
|
|
2154
|
-
style: [styles$
|
|
2172
|
+
style: [styles$m.input, inputStyle],
|
|
2155
2173
|
editable: !disabled,
|
|
2156
2174
|
value,
|
|
2157
2175
|
placeholderTextColor: disabled ? disablePlaceHolderStyle : enablePlaceHolderStyle,
|
|
2158
2176
|
onChangeText: (val) => {
|
|
2159
2177
|
setValue(val);
|
|
2160
2178
|
handleOnChangeText?.(val);
|
|
2161
|
-
}
|
|
2179
|
+
},
|
|
2180
|
+
pointerEvents
|
|
2162
2181
|
}
|
|
2163
2182
|
),
|
|
2164
2183
|
value && /* @__PURE__ */ React.createElement(
|
|
@@ -2173,13 +2192,13 @@ const CustomSearchBar = ({
|
|
|
2173
2192
|
React.cloneElement(rightIcon, {
|
|
2174
2193
|
// width: moderateScale(24),
|
|
2175
2194
|
// height: moderateScale(24),
|
|
2176
|
-
style: [styles$
|
|
2195
|
+
style: [styles$m.crossIconStyle, crossIconStyle]
|
|
2177
2196
|
})
|
|
2178
2197
|
)
|
|
2179
2198
|
);
|
|
2180
2199
|
};
|
|
2181
2200
|
|
|
2182
|
-
const styles$
|
|
2201
|
+
const styles$l = StyleSheet.create({
|
|
2183
2202
|
container: {
|
|
2184
2203
|
flexDirection: "row",
|
|
2185
2204
|
justifyContent: "space-between",
|
|
@@ -2211,17 +2230,17 @@ const CustomHeader = ({
|
|
|
2211
2230
|
View,
|
|
2212
2231
|
{
|
|
2213
2232
|
style: {
|
|
2214
|
-
...styles$
|
|
2233
|
+
...styles$l.container,
|
|
2215
2234
|
backgroundColor: theme.SURFACE_SECONDARY,
|
|
2216
2235
|
borderBottomColor: theme.BORDER_SEPERATOR_HEADER
|
|
2217
2236
|
},
|
|
2218
2237
|
testID: testId
|
|
2219
2238
|
},
|
|
2220
|
-
/* @__PURE__ */ React.createElement(View, { style: styles$
|
|
2239
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$l.headderContainer }, showLeftIcon && leftIcon ? React.cloneElement(leftIcon, {
|
|
2221
2240
|
width: moderateScale(24),
|
|
2222
2241
|
height: moderateScale(24),
|
|
2223
2242
|
onPress: onLeftPress,
|
|
2224
|
-
style: styles$
|
|
2243
|
+
style: styles$l.leftIconStyle
|
|
2225
2244
|
}) : null, /* @__PURE__ */ React.createElement(
|
|
2226
2245
|
CustomTypography,
|
|
2227
2246
|
{
|
|
@@ -2234,13 +2253,13 @@ const CustomHeader = ({
|
|
|
2234
2253
|
width: moderateScale(24),
|
|
2235
2254
|
height: moderateScale(24),
|
|
2236
2255
|
onPress: onRightPress,
|
|
2237
|
-
style: styles$
|
|
2256
|
+
style: styles$l.rightIconStyle
|
|
2238
2257
|
}) : null
|
|
2239
2258
|
);
|
|
2240
2259
|
};
|
|
2241
2260
|
var CustomHeader$1 = withThemeProvider(CustomHeader);
|
|
2242
2261
|
|
|
2243
|
-
const styles$
|
|
2262
|
+
const styles$k = StyleSheet.create({
|
|
2244
2263
|
container: {
|
|
2245
2264
|
flex: 1
|
|
2246
2265
|
},
|
|
@@ -2294,19 +2313,19 @@ const SwipableList = (props) => {
|
|
|
2294
2313
|
{
|
|
2295
2314
|
testID,
|
|
2296
2315
|
onPress,
|
|
2297
|
-
style: [styles$
|
|
2316
|
+
style: [styles$k.actionButton, style]
|
|
2298
2317
|
},
|
|
2299
2318
|
icon,
|
|
2300
2319
|
/* @__PURE__ */ React.createElement(
|
|
2301
2320
|
CustomTypography,
|
|
2302
2321
|
{
|
|
2303
2322
|
variant: "L1_REGULAR",
|
|
2304
|
-
style: [styles$
|
|
2323
|
+
style: [styles$k.titleStyle, titleStyle],
|
|
2305
2324
|
text: title
|
|
2306
2325
|
}
|
|
2307
2326
|
)
|
|
2308
2327
|
);
|
|
2309
|
-
const leftActionHandle = (item, leftPrimaryActionIcon, leftPrimaryActionTitle, leftSecondaryActionIcon, leftSecondaryActionTitle) => /* @__PURE__ */ React.createElement(View, { style: styles$
|
|
2328
|
+
const leftActionHandle = (item, leftPrimaryActionIcon, leftPrimaryActionTitle, leftSecondaryActionIcon, leftSecondaryActionTitle) => /* @__PURE__ */ React.createElement(View, { style: styles$k.actionBtn }, leftPrimaryActionIcon && /* @__PURE__ */ React.createElement(
|
|
2310
2329
|
ActionButton,
|
|
2311
2330
|
{
|
|
2312
2331
|
icon: leftPrimaryActionIcon,
|
|
@@ -2325,7 +2344,7 @@ const SwipableList = (props) => {
|
|
|
2325
2344
|
testID: `${testId}-LEFT-SECONDARY-${item.id}`
|
|
2326
2345
|
}
|
|
2327
2346
|
));
|
|
2328
|
-
const rightActionHandle = (item) => /* @__PURE__ */ React.createElement(View, { style: [styles$
|
|
2347
|
+
const rightActionHandle = (item) => /* @__PURE__ */ React.createElement(View, { style: [styles$k.actionBtn, rightPrimaryActionStyle] }, rightPrimaryActionIcon && /* @__PURE__ */ React.createElement(
|
|
2329
2348
|
ActionButton,
|
|
2330
2349
|
{
|
|
2331
2350
|
icon: rightPrimaryActionIcon,
|
|
@@ -2335,7 +2354,7 @@ const SwipableList = (props) => {
|
|
|
2335
2354
|
testID: `${testId}-RIGHT-PRIMARY-${item.id}`
|
|
2336
2355
|
}
|
|
2337
2356
|
));
|
|
2338
|
-
const renderItem = ({ item }) => /* @__PURE__ */ React.createElement(GestureHandlerRootView, { testID: `${testId}-LIST`, style: styles$
|
|
2357
|
+
const renderItem = ({ item }) => /* @__PURE__ */ React.createElement(GestureHandlerRootView, { testID: `${testId}-LIST`, style: styles$k.container }, /* @__PURE__ */ React.createElement(
|
|
2339
2358
|
Swipeable,
|
|
2340
2359
|
{
|
|
2341
2360
|
renderLeftActions: () => leftActionHandle(
|
|
@@ -2346,7 +2365,7 @@ const SwipableList = (props) => {
|
|
|
2346
2365
|
item.isRead ? leftSecondaryActionInActiveTitle : leftSecondaryActionActiveTitle
|
|
2347
2366
|
),
|
|
2348
2367
|
renderRightActions: () => rightActionHandle(item),
|
|
2349
|
-
containerStyle: styles$
|
|
2368
|
+
containerStyle: styles$k.swippableContainer
|
|
2350
2369
|
},
|
|
2351
2370
|
props?.renderItem(item)
|
|
2352
2371
|
));
|
|
@@ -2356,12 +2375,12 @@ const SwipableList = (props) => {
|
|
|
2356
2375
|
data,
|
|
2357
2376
|
renderItem,
|
|
2358
2377
|
keyExtractor: (item) => item.id,
|
|
2359
|
-
ItemSeparatorComponent: () => /* @__PURE__ */ React.createElement(View, { style: styles$
|
|
2378
|
+
ItemSeparatorComponent: () => /* @__PURE__ */ React.createElement(View, { style: styles$k.seprator })
|
|
2360
2379
|
}
|
|
2361
2380
|
));
|
|
2362
2381
|
};
|
|
2363
2382
|
|
|
2364
|
-
const styles$
|
|
2383
|
+
const styles$j = StyleSheet.create({
|
|
2365
2384
|
container: {
|
|
2366
2385
|
justifyContent: "center",
|
|
2367
2386
|
alignItems: "center"
|
|
@@ -2383,7 +2402,7 @@ const CustomIcon = ({
|
|
|
2383
2402
|
return /* @__PURE__ */ React.createElement(
|
|
2384
2403
|
Pressable,
|
|
2385
2404
|
{
|
|
2386
|
-
style: [styles$
|
|
2405
|
+
style: [styles$j.container, containerStyle],
|
|
2387
2406
|
onPress,
|
|
2388
2407
|
testID: testId
|
|
2389
2408
|
},
|
|
@@ -2393,13 +2412,13 @@ const CustomIcon = ({
|
|
|
2393
2412
|
{
|
|
2394
2413
|
variant: titleVariant,
|
|
2395
2414
|
text: title,
|
|
2396
|
-
style: [styles$
|
|
2415
|
+
style: [styles$j.title, titleStyle]
|
|
2397
2416
|
}
|
|
2398
2417
|
)
|
|
2399
2418
|
);
|
|
2400
2419
|
};
|
|
2401
2420
|
|
|
2402
|
-
const styles$
|
|
2421
|
+
const styles$i = StyleSheet.create({
|
|
2403
2422
|
container: {
|
|
2404
2423
|
flex: 1,
|
|
2405
2424
|
justifyContent: "center",
|
|
@@ -2414,23 +2433,23 @@ const styles$j = StyleSheet.create({
|
|
|
2414
2433
|
|
|
2415
2434
|
const CustomLoader = ({ loading }) => {
|
|
2416
2435
|
if (!loading) return null;
|
|
2417
|
-
return /* @__PURE__ */ React.createElement(View, { style: styles$
|
|
2436
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles$i.container }, /* @__PURE__ */ React.createElement(ActivityIndicator, { size: "large", color: "#686868" }));
|
|
2418
2437
|
};
|
|
2419
2438
|
|
|
2420
|
-
const HorizontalLine = ({ style }) => {
|
|
2439
|
+
const HorizontalLine = ({ backgroundColor = "SURFACE_SECONDARY", style }) => {
|
|
2421
2440
|
const { theme } = useTheme();
|
|
2422
2441
|
return /* @__PURE__ */ React.createElement(
|
|
2423
2442
|
View,
|
|
2424
2443
|
{
|
|
2425
2444
|
style: [
|
|
2426
|
-
styles$
|
|
2427
|
-
{ backgroundColor: theme[
|
|
2445
|
+
styles$h.line,
|
|
2446
|
+
{ backgroundColor: theme[backgroundColor] },
|
|
2428
2447
|
style
|
|
2429
2448
|
]
|
|
2430
2449
|
}
|
|
2431
2450
|
);
|
|
2432
2451
|
};
|
|
2433
|
-
const styles$
|
|
2452
|
+
const styles$h = StyleSheet.create({
|
|
2434
2453
|
line: {
|
|
2435
2454
|
height: 1,
|
|
2436
2455
|
width: "100%"
|
|
@@ -2453,18 +2472,18 @@ const Topic = ({
|
|
|
2453
2472
|
TouchableOpacity,
|
|
2454
2473
|
{
|
|
2455
2474
|
style: [
|
|
2456
|
-
styles$
|
|
2475
|
+
styles$g.button,
|
|
2457
2476
|
{ backgroundColor: theme[Theme.SURFACE_SECONDARY] },
|
|
2458
2477
|
containterStyle
|
|
2459
2478
|
],
|
|
2460
2479
|
onPress
|
|
2461
2480
|
},
|
|
2462
|
-
rightIcon && /* @__PURE__ */ React.createElement(View, { style: styles$
|
|
2463
|
-
/* @__PURE__ */ React.createElement(View, { style: styles$
|
|
2464
|
-
/* @__PURE__ */ React.createElement(View, { style: styles$
|
|
2481
|
+
rightIcon && /* @__PURE__ */ React.createElement(View, { style: styles$g.rightIconContainer }, React.cloneElement(rightIcon)),
|
|
2482
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$g.timeContainer }, time && /* @__PURE__ */ React.createElement(CustomText$1, { text: time, variant: FontStyle.L2_REGULAR })),
|
|
2483
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$g.textContainer }, /* @__PURE__ */ React.createElement(View, { style: styles$g.paymentView }, statusImage && /* @__PURE__ */ React.createElement(View, null, React.cloneElement(statusImage)), subTitle && /* @__PURE__ */ React.createElement(
|
|
2465
2484
|
CustomText$1,
|
|
2466
2485
|
{
|
|
2467
|
-
style: [styles$
|
|
2486
|
+
style: [styles$g.subTitle, subTitleStyle],
|
|
2468
2487
|
text: subTitle,
|
|
2469
2488
|
variant: FontStyle.L2_REGULAR,
|
|
2470
2489
|
textColor: Theme.CONTENT_PRIMARY
|
|
@@ -2479,7 +2498,7 @@ const Topic = ({
|
|
|
2479
2498
|
))
|
|
2480
2499
|
);
|
|
2481
2500
|
};
|
|
2482
|
-
const styles$
|
|
2501
|
+
const styles$g = StyleSheet.create({
|
|
2483
2502
|
button: {
|
|
2484
2503
|
flexDirection: "row",
|
|
2485
2504
|
alignItems: "center",
|
|
@@ -2573,14 +2592,14 @@ const ContactModal = ({
|
|
|
2573
2592
|
const renderEmailOptions = () => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
2574
2593
|
CustomText$1,
|
|
2575
2594
|
{
|
|
2576
|
-
style: styles$
|
|
2595
|
+
style: styles$f.title,
|
|
2577
2596
|
text: "Open email app",
|
|
2578
2597
|
variant: "L2_REGULAR"
|
|
2579
2598
|
}
|
|
2580
2599
|
), /* @__PURE__ */ React.createElement(
|
|
2581
2600
|
CustomText$1,
|
|
2582
2601
|
{
|
|
2583
|
-
style: styles$
|
|
2602
|
+
style: styles$f.subtitle,
|
|
2584
2603
|
text: "Which app would you like to open?",
|
|
2585
2604
|
variant: "L2_REGULAR"
|
|
2586
2605
|
}
|
|
@@ -2588,33 +2607,33 @@ const ContactModal = ({
|
|
|
2588
2607
|
Pressable,
|
|
2589
2608
|
{
|
|
2590
2609
|
onPress: () => handleOptionPress(),
|
|
2591
|
-
style: styles$
|
|
2610
|
+
style: styles$f.optionButton
|
|
2592
2611
|
},
|
|
2593
2612
|
/* @__PURE__ */ React.createElement(
|
|
2594
2613
|
CustomText$1,
|
|
2595
2614
|
{
|
|
2596
|
-
style: styles$
|
|
2615
|
+
style: styles$f.optionText,
|
|
2597
2616
|
text: option,
|
|
2598
2617
|
variant: "B3_BOLD"
|
|
2599
2618
|
}
|
|
2600
2619
|
)
|
|
2601
2620
|
))));
|
|
2602
|
-
const renderContent = () => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(View, { style: styles$
|
|
2621
|
+
const renderContent = () => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(View, { style: styles$f.viewContainer }, isMailOpen ? renderEmailOptions() : /* @__PURE__ */ React.createElement(Pressable, { onPress: handleCall, style: styles$f.optionButton }, /* @__PURE__ */ React.createElement(
|
|
2603
2622
|
CustomText$1,
|
|
2604
2623
|
{
|
|
2605
|
-
style: styles$
|
|
2624
|
+
style: styles$f.optionText,
|
|
2606
2625
|
text: `Call ${phoneNumber}`,
|
|
2607
2626
|
variant: "B3_BOLD"
|
|
2608
2627
|
}
|
|
2609
|
-
))), /* @__PURE__ */ React.createElement(Pressable, { onPress: onClose, style: styles$
|
|
2628
|
+
))), /* @__PURE__ */ React.createElement(Pressable, { onPress: onClose, style: styles$f.cancelButton }, /* @__PURE__ */ React.createElement(
|
|
2610
2629
|
CustomText$1,
|
|
2611
2630
|
{
|
|
2612
|
-
style: styles$
|
|
2631
|
+
style: styles$f.cancelText,
|
|
2613
2632
|
text: "Cancel",
|
|
2614
2633
|
variant: "B2_REGULAR"
|
|
2615
2634
|
}
|
|
2616
2635
|
)));
|
|
2617
|
-
return /* @__PURE__ */ React.createElement(View, { style: styles$
|
|
2636
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles$f.container }, /* @__PURE__ */ React.createElement(
|
|
2618
2637
|
Modal,
|
|
2619
2638
|
{
|
|
2620
2639
|
animationType: "slide",
|
|
@@ -2622,10 +2641,10 @@ const ContactModal = ({
|
|
|
2622
2641
|
visible,
|
|
2623
2642
|
onRequestClose: onClose
|
|
2624
2643
|
},
|
|
2625
|
-
/* @__PURE__ */ React.createElement(View, { style: styles$
|
|
2644
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$f.modalContainer }, /* @__PURE__ */ React.createElement(View, { style: styles$f.modalContent }, renderContent()))
|
|
2626
2645
|
));
|
|
2627
2646
|
};
|
|
2628
|
-
const styles$
|
|
2647
|
+
const styles$f = StyleSheet.create({
|
|
2629
2648
|
container: {
|
|
2630
2649
|
flex: 1,
|
|
2631
2650
|
justifyContent: "center",
|
|
@@ -2681,7 +2700,7 @@ const styles$g = StyleSheet.create({
|
|
|
2681
2700
|
});
|
|
2682
2701
|
var ContactModel = withThemeProvider(ContactModal);
|
|
2683
2702
|
|
|
2684
|
-
const styles$
|
|
2703
|
+
const styles$e = StyleSheet.create({
|
|
2685
2704
|
applyButton: {
|
|
2686
2705
|
marginTop: verticalScale(24),
|
|
2687
2706
|
height: verticalScale(48),
|
|
@@ -2694,7 +2713,7 @@ const styles$f = StyleSheet.create({
|
|
|
2694
2713
|
});
|
|
2695
2714
|
|
|
2696
2715
|
const DateRangePicker = (props) => {
|
|
2697
|
-
const { onButtonPress } = props;
|
|
2716
|
+
const { onButtonPress, btnTitle = "Apply" } = props;
|
|
2698
2717
|
const [selectedRange, setSelectedRange] = useState({
|
|
2699
2718
|
startDate: "",
|
|
2700
2719
|
endDate: ""
|
|
@@ -2767,15 +2786,15 @@ const DateRangePicker = (props) => {
|
|
|
2767
2786
|
), /* @__PURE__ */ React.createElement(
|
|
2768
2787
|
CustomButton$1,
|
|
2769
2788
|
{
|
|
2770
|
-
title:
|
|
2789
|
+
title: btnTitle,
|
|
2771
2790
|
onPress: () => {
|
|
2772
2791
|
onButtonPress(selectedRange?.startDate, selectedRange?.endDate);
|
|
2773
2792
|
},
|
|
2774
2793
|
containerStyle: {
|
|
2775
|
-
...styles$
|
|
2794
|
+
...styles$e.applyButton,
|
|
2776
2795
|
backgroundColor: theme.SURFACE_INVERTED
|
|
2777
2796
|
},
|
|
2778
|
-
textStyle: { color: theme.
|
|
2797
|
+
textStyle: { color: theme.CONTENT_INVERTED },
|
|
2779
2798
|
disabled: isButtonDisabled
|
|
2780
2799
|
}
|
|
2781
2800
|
));
|
|
@@ -2799,20 +2818,20 @@ const OurOfficesButton = ({
|
|
|
2799
2818
|
TouchableOpacity,
|
|
2800
2819
|
{
|
|
2801
2820
|
style: [
|
|
2802
|
-
styles$
|
|
2821
|
+
styles$d.button,
|
|
2803
2822
|
{ backgroundColor: theme["SURFACE_SECONDARY"] },
|
|
2804
2823
|
containerStyle
|
|
2805
2824
|
],
|
|
2806
2825
|
onPress
|
|
2807
2826
|
},
|
|
2808
|
-
leftIcon && /* @__PURE__ */ React.createElement(View, { style: styles$
|
|
2809
|
-
/* @__PURE__ */ React.createElement(View, { style: styles$
|
|
2827
|
+
leftIcon && /* @__PURE__ */ React.createElement(View, { style: styles$d.iconContainer }, React.cloneElement(leftIcon)),
|
|
2828
|
+
/* @__PURE__ */ React.createElement(View, { style: styles$d.textContainer }, /* @__PURE__ */ React.createElement(
|
|
2810
2829
|
CustomText$1,
|
|
2811
2830
|
{
|
|
2812
2831
|
text: title,
|
|
2813
2832
|
variant: titleVariant,
|
|
2814
2833
|
textColor: titleColor,
|
|
2815
|
-
style: styles$
|
|
2834
|
+
style: styles$d.textView
|
|
2816
2835
|
}
|
|
2817
2836
|
), /* @__PURE__ */ React.createElement(
|
|
2818
2837
|
CustomText$1,
|
|
@@ -2820,13 +2839,13 @@ const OurOfficesButton = ({
|
|
|
2820
2839
|
text: description,
|
|
2821
2840
|
variant: descriptionVariant,
|
|
2822
2841
|
textColor: descriptionColor,
|
|
2823
|
-
style: styles$
|
|
2842
|
+
style: styles$d.flexWrap
|
|
2824
2843
|
}
|
|
2825
2844
|
)),
|
|
2826
|
-
rightIcon && /* @__PURE__ */ React.createElement(View, { style: styles$
|
|
2845
|
+
rightIcon && /* @__PURE__ */ React.createElement(View, { style: styles$d.rightIconContainer }, React.cloneElement(rightIcon))
|
|
2827
2846
|
);
|
|
2828
2847
|
};
|
|
2829
|
-
const styles$
|
|
2848
|
+
const styles$d = StyleSheet.create({
|
|
2830
2849
|
button: {
|
|
2831
2850
|
flexDirection: "row",
|
|
2832
2851
|
alignItems: "center",
|
|
@@ -2850,7 +2869,7 @@ const styles$e = StyleSheet.create({
|
|
|
2850
2869
|
});
|
|
2851
2870
|
var OurOffices = withThemeProvider(OurOfficesButton);
|
|
2852
2871
|
|
|
2853
|
-
const styles$
|
|
2872
|
+
const styles$c = StyleSheet.create({
|
|
2854
2873
|
iconContainer: {
|
|
2855
2874
|
position: "relative",
|
|
2856
2875
|
alignItems: "center"
|
|
@@ -2879,7 +2898,7 @@ const NotificationBandge = ({
|
|
|
2879
2898
|
if (notificationCount <= 0) {
|
|
2880
2899
|
return icon;
|
|
2881
2900
|
}
|
|
2882
|
-
return /* @__PURE__ */ React.createElement(View, { style: styles$
|
|
2901
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles$c.iconContainer }, icon, /* @__PURE__ */ React.createElement(View, { style: styles$c.badge }, /* @__PURE__ */ React.createElement(Text, { style: [styles$c.badgeText] }, notificationCount > 99 ? "99+" : notificationCount)));
|
|
2883
2902
|
};
|
|
2884
2903
|
|
|
2885
2904
|
const ScrollableList = ({
|
|
@@ -2897,13 +2916,13 @@ const ScrollableList = ({
|
|
|
2897
2916
|
data && data.length > 0 ? data[0].name : null
|
|
2898
2917
|
);
|
|
2899
2918
|
const { theme } = useTheme();
|
|
2900
|
-
return /* @__PURE__ */ React.createElement(View, { style: [styles$
|
|
2919
|
+
return /* @__PURE__ */ React.createElement(View, { style: [styles$b.container, containerStyle] }, /* @__PURE__ */ React.createElement(
|
|
2901
2920
|
ScrollView,
|
|
2902
2921
|
{
|
|
2903
2922
|
horizontal: true,
|
|
2904
2923
|
showsHorizontalScrollIndicator: false,
|
|
2905
2924
|
contentContainerStyle: [
|
|
2906
|
-
styles$
|
|
2925
|
+
styles$b.scrollViewContent,
|
|
2907
2926
|
scrollViewContentStyle
|
|
2908
2927
|
]
|
|
2909
2928
|
},
|
|
@@ -2912,10 +2931,10 @@ const ScrollableList = ({
|
|
|
2912
2931
|
{
|
|
2913
2932
|
key: item.value,
|
|
2914
2933
|
style: [
|
|
2915
|
-
styles$
|
|
2934
|
+
styles$b.item,
|
|
2916
2935
|
itemStyle,
|
|
2917
2936
|
(activeTab ?? selectedItem) === item.name && [
|
|
2918
|
-
styles$
|
|
2937
|
+
styles$b.selectedItem,
|
|
2919
2938
|
selectedItemStyle
|
|
2920
2939
|
]
|
|
2921
2940
|
],
|
|
@@ -2936,7 +2955,7 @@ const ScrollableList = ({
|
|
|
2936
2955
|
View,
|
|
2937
2956
|
{
|
|
2938
2957
|
style: [
|
|
2939
|
-
styles$
|
|
2958
|
+
styles$b.errorViewStyle,
|
|
2940
2959
|
{
|
|
2941
2960
|
backgroundColor: theme.SURFACE_BRAND_STATIC
|
|
2942
2961
|
}
|
|
@@ -2946,7 +2965,7 @@ const ScrollableList = ({
|
|
|
2946
2965
|
))
|
|
2947
2966
|
));
|
|
2948
2967
|
};
|
|
2949
|
-
const styles$
|
|
2968
|
+
const styles$b = StyleSheet.create({
|
|
2950
2969
|
container: {
|
|
2951
2970
|
paddingVertical: 10
|
|
2952
2971
|
},
|
|
@@ -2973,64 +2992,76 @@ const styles$c = StyleSheet.create({
|
|
|
2973
2992
|
});
|
|
2974
2993
|
var category = withThemeProvider(ScrollableList);
|
|
2975
2994
|
|
|
2976
|
-
const
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
});
|
|
2995
|
+
const createStyles = (theme) => {
|
|
2996
|
+
return StyleSheet.create({
|
|
2997
|
+
container: {
|
|
2998
|
+
flex: 1,
|
|
2999
|
+
padding: 20,
|
|
3000
|
+
justifyContent: "center",
|
|
3001
|
+
backgroundColor: theme[Theme$1.SURFACE_PRIMARY]
|
|
3002
|
+
},
|
|
3003
|
+
headerText: {
|
|
3004
|
+
color: theme[Theme$1.CONTENT_PRIMARY],
|
|
3005
|
+
marginBottom: 20
|
|
3006
|
+
},
|
|
3007
|
+
textInput: {
|
|
3008
|
+
borderRadius: 10,
|
|
3009
|
+
padding: 15,
|
|
3010
|
+
color: theme[Theme$1.CONTENT_SECONDRY],
|
|
3011
|
+
textAlignVertical: "top",
|
|
3012
|
+
minHeight: 100,
|
|
3013
|
+
borderColor: theme[Theme$1.BORDER_PRIMARY]
|
|
3014
|
+
},
|
|
3015
|
+
charCounter: {
|
|
3016
|
+
textAlign: "left",
|
|
3017
|
+
marginTop: 10,
|
|
3018
|
+
color: theme[Theme$1.CONTENT_SECONDRY]
|
|
3019
|
+
},
|
|
3020
|
+
buttonContainer: {
|
|
3021
|
+
flexDirection: "row",
|
|
3022
|
+
marginTop: 20
|
|
3023
|
+
},
|
|
3024
|
+
feedbackButton: {
|
|
3025
|
+
backgroundColor: theme[Theme$1.SURFACE_PRIMARY],
|
|
3026
|
+
borderColor: theme[Theme$1.BORDER_INVERTED],
|
|
3027
|
+
borderWidth: 1,
|
|
3028
|
+
paddingVertical: 10,
|
|
3029
|
+
paddingHorizontal: 20,
|
|
3030
|
+
borderRadius: 30
|
|
3031
|
+
},
|
|
3032
|
+
cancelButton: {
|
|
3033
|
+
paddingVertical: 10,
|
|
3034
|
+
paddingHorizontal: 40
|
|
3035
|
+
}
|
|
3036
|
+
});
|
|
3037
|
+
};
|
|
3020
3038
|
|
|
3021
3039
|
const FeedbackForm = ({
|
|
3022
3040
|
title,
|
|
3023
3041
|
clearAllData,
|
|
3024
3042
|
handleSendFeedback,
|
|
3025
3043
|
feedback,
|
|
3044
|
+
inputText,
|
|
3045
|
+
rightBtnTxt,
|
|
3046
|
+
leftBtnTxt,
|
|
3026
3047
|
setFeedback
|
|
3027
3048
|
}) => {
|
|
3028
3049
|
const maxChars = 200;
|
|
3029
|
-
|
|
3050
|
+
const { theme } = useTheme$1();
|
|
3051
|
+
const styles = createStyles({ theme });
|
|
3052
|
+
return /* @__PURE__ */ React.createElement(View, { style: styles.container }, /* @__PURE__ */ React.createElement(
|
|
3053
|
+
CustomText$1,
|
|
3054
|
+
{
|
|
3055
|
+
text: title,
|
|
3056
|
+
variant: FontStyle$1.L1_REGULAR,
|
|
3057
|
+
textColor: Theme$1.CONTENT_SECONDRY,
|
|
3058
|
+
style: styles.headerText
|
|
3059
|
+
}
|
|
3060
|
+
), /* @__PURE__ */ React.createElement(
|
|
3030
3061
|
TextInput,
|
|
3031
3062
|
{
|
|
3032
|
-
style: [styles
|
|
3033
|
-
placeholder:
|
|
3063
|
+
style: [styles.textInput, { height: Math.max(100) }],
|
|
3064
|
+
placeholder: inputText,
|
|
3034
3065
|
placeholderTextColor: "gray",
|
|
3035
3066
|
multiline: true,
|
|
3036
3067
|
maxLength: maxChars,
|
|
@@ -3041,26 +3072,27 @@ const FeedbackForm = ({
|
|
|
3041
3072
|
CustomText$1,
|
|
3042
3073
|
{
|
|
3043
3074
|
text: `${feedback.length}/${maxChars} characters`,
|
|
3044
|
-
variant:
|
|
3045
|
-
textColor:
|
|
3046
|
-
style: styles
|
|
3075
|
+
variant: FontStyle$1.L2_REGULAR,
|
|
3076
|
+
textColor: Theme$1.CONTENT_SECONDRY,
|
|
3077
|
+
style: styles.charCounter
|
|
3047
3078
|
}
|
|
3048
|
-
), /* @__PURE__ */ React.createElement(View, { style: styles
|
|
3079
|
+
), /* @__PURE__ */ React.createElement(View, { style: styles.buttonContainer }, /* @__PURE__ */ React.createElement(Pressable, { style: styles.feedbackButton, onPress: handleSendFeedback }, /* @__PURE__ */ React.createElement(
|
|
3049
3080
|
CustomText$1,
|
|
3050
3081
|
{
|
|
3051
|
-
text:
|
|
3052
|
-
variant:
|
|
3053
|
-
textColor:
|
|
3082
|
+
text: leftBtnTxt,
|
|
3083
|
+
variant: FontStyle$1.L1_REGULAR,
|
|
3084
|
+
textColor: Theme$1.CONTENT_PRIMARY
|
|
3054
3085
|
}
|
|
3055
|
-
)), /* @__PURE__ */ React.createElement(Pressable, { style: styles
|
|
3086
|
+
)), /* @__PURE__ */ React.createElement(Pressable, { style: styles.cancelButton, onPress: clearAllData }, /* @__PURE__ */ React.createElement(
|
|
3056
3087
|
CustomText$1,
|
|
3057
3088
|
{
|
|
3058
|
-
text:
|
|
3059
|
-
variant:
|
|
3060
|
-
textColor:
|
|
3089
|
+
text: rightBtnTxt,
|
|
3090
|
+
variant: FontStyle$1.L1_REGULAR,
|
|
3091
|
+
textColor: Theme$1.CONTENT_PRIMARY
|
|
3061
3092
|
}
|
|
3062
3093
|
))));
|
|
3063
3094
|
};
|
|
3095
|
+
var feedback = withThemeProvider$1(FeedbackForm);
|
|
3064
3096
|
|
|
3065
3097
|
const DEFAULT_COUNTRY_CODE = "AE";
|
|
3066
3098
|
const DEFAULT_CALLING_CODE = "+971";
|
|
@@ -4375,5 +4407,5 @@ const PropertyDetails = ({
|
|
|
4375
4407
|
};
|
|
4376
4408
|
var index = withThemeProvider(PropertyDetails);
|
|
4377
4409
|
|
|
4378
|
-
export { Accordion$1 as Accordion, index$1 as AppointmentCard, Badge$1 as Badge, BottomDrawer, CustomButton$1 as Button, Cards, category as Category, Checkbox as CheckBox, ContactModel, CountryDropDown as CountryPicker, CustomDocumentPicker$1 as CustomDocumentPicker, CustomDropdown$1 as CustomDropdown, CustomHeader$1 as CustomHeader, CustomIcon, CustomLoader, CustomProgressBar, CustomSearchBar, index$2 as CustomSlideButton, CustomSwitchBtn, CustomText$1 as CustomText, CustomTextInput, CustomTooltip, CustomTypography, DHRE_COLORS_ALERT, DHRE_COLORS_BG, DHRE_COLORS_PRIMARY, DHRE_COLORS_SECONDARY, DHRE_COLORS_TEXT, DHRE_DEFAULT, DateRangePicker$1 as DateRangePicker, CustomDropdown as DropDown, FONT_STYLES, FeedbackForm, FileUpload, FontStyle, Line, NotificationBandge, index$4 as OTPInput, OurOffices as OurOfficesButton, PdfView, PopUp, index as PropertyDetails, ShapeType, TagsComponent as SingleSelectionTags, Star as StarRating, index$3 as Stepper, SwipableList, Tabs$1 as Tabs, Tags, TextDirectType, CommonTextInput as TextInput, Theme, Toast, CustomSwitch as ToggleButton, ToggleButtonType, ToggleTextType, Topic$1 as Topic, copyToClipboard, theme as default, height, horizontalScale, moderateScale, toastService, verticalScale, width };
|
|
4410
|
+
export { Accordion$1 as Accordion, index$1 as AppointmentCard, Badge$1 as Badge, BottomDrawer, CustomButton$1 as Button, Cards, category as Category, Checkbox as CheckBox, ContactModel, CountryDropDown as CountryPicker, CustomDocumentPicker$1 as CustomDocumentPicker, CustomDropdown$1 as CustomDropdown, CustomHeader$1 as CustomHeader, CustomIcon, CustomLoader, CustomProgressBar, CustomSearchBar, index$2 as CustomSlideButton, CustomSwitchBtn, CustomText$1 as CustomText, CustomTextInput, CustomTooltip, CustomTypography, DHRE_COLORS_ALERT, DHRE_COLORS_BG, DHRE_COLORS_PRIMARY, DHRE_COLORS_SECONDARY, DHRE_COLORS_TEXT, DHRE_DEFAULT, DateRangePicker$1 as DateRangePicker, CustomDropdown as DropDown, FONT_STYLES, feedback as FeedbackForm, FileUpload, FontStyle, Line, NotificationBandge, index$4 as OTPInput, OurOffices as OurOfficesButton, PdfView, PopUp, index as PropertyDetails, ShapeType, TagsComponent as SingleSelectionTags, Star as StarRating, index$3 as Stepper, SwipableList, Tabs$1 as Tabs, Tags, TextDirectType, CommonTextInput as TextInput, Theme, Toast, CustomSwitch as ToggleButton, ToggleButtonType, ToggleTextType, Topic$1 as Topic, copyToClipboard, theme as default, height, horizontalScale, moderateScale, toastService, verticalScale, width };
|
|
4379
4411
|
//# sourceMappingURL=index.mjs.map
|