dhre-ui-kit 0.0.137 → 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.mjs CHANGED
@@ -6,7 +6,11 @@ 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';
@@ -328,13 +332,13 @@ const CustomTypography = ({
328
332
  Text,
329
333
  {
330
334
  testID,
331
- style: [textStyle, styles$F.container, style],
335
+ style: [textStyle, styles$E.container, style],
332
336
  ...props
333
337
  },
334
338
  text
335
339
  );
336
340
  };
337
- const styles$F = StyleSheet.create({
341
+ const styles$E = StyleSheet.create({
338
342
  container: { writingDirection: "auto", alignSelf: "flex-start" }
339
343
  });
340
344
 
@@ -545,7 +549,7 @@ const DHRE_COLORS_TEXT = {
545
549
  DH_LIGHTGREEN: "#00B578"
546
550
  };
547
551
 
548
- const styles$E = StyleSheet.create({
552
+ const styles$D = StyleSheet.create({
549
553
  badge: {
550
554
  backgroundColor: DHRE_COLORS_ALERT.DH_SUCCESS_GREEN,
551
555
  borderRadius: 15,
@@ -572,16 +576,16 @@ const Badge = ({
572
576
  return /* @__PURE__ */ React.createElement(
573
577
  Pressable,
574
578
  {
575
- style: [styles$E.badge, commonStyles.centerRow, style],
579
+ style: [styles$D.badge, commonStyles.centerRow, style],
576
580
  testID: "BADGE",
577
581
  onPress: handleIconPress
578
582
  },
579
- iconName && /* @__PURE__ */ React.createElement(View, { style: [styles$E.icon, iconStyle] }, React.cloneElement(iconName)),
583
+ iconName && /* @__PURE__ */ React.createElement(View, { style: [styles$D.icon, iconStyle] }, React.cloneElement(iconName)),
580
584
  text && /* @__PURE__ */ React.createElement(
581
585
  CustomTypography,
582
586
  {
583
587
  variant: "B3semiBold",
584
- style: [styles$E.text, textStyle],
588
+ style: [styles$D.text, textStyle],
585
589
  text
586
590
  }
587
591
  )
@@ -589,7 +593,7 @@ const Badge = ({
589
593
  };
590
594
  var Badge$1 = withThemeProvider(Badge);
591
595
 
592
- const styles$D = StyleSheet.create({
596
+ const styles$C = StyleSheet.create({
593
597
  mainContainer: {
594
598
  flex: 1,
595
599
  justifyContent: "flex-end"
@@ -669,29 +673,29 @@ const BottomDrawer = ({
669
673
  behavior: Platform.OS === "ios" ? "padding" : "height",
670
674
  style: { flex: 1 }
671
675
  },
672
- /* @__PURE__ */ React.createElement(View, { style: [styles$D.mainContainer, style], testID }, showBlurView ? /* @__PURE__ */ React.createElement(
676
+ /* @__PURE__ */ React.createElement(View, { style: [styles$C.mainContainer, style], testID }, showBlurView ? /* @__PURE__ */ React.createElement(
673
677
  BlurView,
674
678
  {
675
- style: [styles$D.blurView, blurViewStyle],
679
+ style: [styles$C.blurView, blurViewStyle],
676
680
  blurType,
677
681
  blurAmount
678
682
  }
679
- ) : null, /* @__PURE__ */ React.createElement(View, { style: [styles$D.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(View, { style: styles$D.separator }), /* @__PURE__ */ React.createElement(View, { style: styles$D.headerContainer }, showLeftIcon && leftIcon ? React.cloneElement(leftIcon, {
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, {
680
684
  width: moderateScale(24),
681
685
  height: moderateScale(24),
682
- style: styles$D.leftIconStyle,
686
+ style: styles$C.leftIconStyle,
683
687
  onPress: onLeftIconPress
684
688
  }) : null, /* @__PURE__ */ React.createElement(
685
689
  CustomTypography,
686
690
  {
687
691
  variant: titleVariant,
688
692
  text: title,
689
- style: { ...styles$D.title, ...titleStyle }
693
+ style: { ...styles$C.title, ...titleStyle }
690
694
  }
691
695
  ), showRightIcon && rightIcon ? React.cloneElement(rightIcon, {
692
696
  width: moderateScale(24),
693
697
  height: moderateScale(24),
694
- style: styles$D.rightIconStyle,
698
+ style: styles$C.rightIconStyle,
695
699
  onPress: toggleModal
696
700
  }) : null)), children))
697
701
  ))
@@ -720,7 +724,7 @@ const CustomButton = ({
720
724
  {
721
725
  testID,
722
726
  style: [
723
- styles$C.buttonContainer,
727
+ styles$B.buttonContainer,
724
728
  containerStyle,
725
729
  disabled ? {
726
730
  backgroundColor: disabledColor ? disabledColor : theme.SURFACE_DISABLE
@@ -747,7 +751,7 @@ const CustomButton = ({
747
751
  imagePosition === "right" && rightIcon && /* @__PURE__ */ React.createElement(View, { style: iconStyle }, React.cloneElement(rightIcon, { width: 20, height: 20 }))
748
752
  );
749
753
  };
750
- const styles$C = StyleSheet.create({
754
+ const styles$B = StyleSheet.create({
751
755
  buttonContainer: {
752
756
  flexDirection: "row",
753
757
  alignItems: "center",
@@ -759,7 +763,7 @@ const styles$C = StyleSheet.create({
759
763
  });
760
764
  var CustomButton$1 = withThemeProvider(CustomButton);
761
765
 
762
- const styles$B = StyleSheet.create({
766
+ const styles$A = StyleSheet.create({
763
767
  container: {
764
768
  padding: horizontalScale(20),
765
769
  marginHorizontal: horizontalScale(16),
@@ -824,53 +828,53 @@ const Cards = ({
824
828
  testID,
825
829
  onButtonPress
826
830
  }) => {
827
- return /* @__PURE__ */ React.createElement(View, { testID, style: styles$B.container }, topLeftTitle ? /* @__PURE__ */ React.createElement(View, { style: styles$B.topLeft }, /* @__PURE__ */ React.createElement(
831
+ return /* @__PURE__ */ React.createElement(View, { testID, style: styles$A.container }, topLeftTitle ? /* @__PURE__ */ React.createElement(View, { style: styles$A.topLeft }, /* @__PURE__ */ React.createElement(
828
832
  CustomTypography,
829
833
  {
830
834
  variant: "P2regular",
831
- style: styles$B.title,
835
+ style: styles$A.title,
832
836
  text: topLeftTitle
833
837
  }
834
838
  )) : null, title ? /* @__PURE__ */ React.createElement(
835
839
  CustomTypography,
836
840
  {
837
841
  variant: "H6bold",
838
- style: styles$B.subTitleBelow,
842
+ style: styles$A.subTitleBelow,
839
843
  text: title
840
844
  }
841
845
  ) : null, subtitle ? /* @__PURE__ */ React.createElement(
842
846
  CustomTypography,
843
847
  {
844
848
  variant: "P3regular",
845
- style: styles$B.subtitle,
849
+ style: styles$A.subtitle,
846
850
  text: subtitle
847
851
  }
848
- ) : null, /* @__PURE__ */ React.createElement(View, { style: styles$B.leftBottomView }, iconSource ? iconSource : null, iconTitle ? /* @__PURE__ */ React.createElement(
852
+ ) : null, /* @__PURE__ */ React.createElement(View, { style: styles$A.leftBottomView }, iconSource ? iconSource : null, iconTitle ? /* @__PURE__ */ React.createElement(
849
853
  CustomTypography,
850
854
  {
851
855
  variant: "P3regular",
852
- style: styles$B.subTitleLeftBelow,
856
+ style: styles$A.subTitleLeftBelow,
853
857
  text: iconTitle
854
858
  }
855
859
  ) : null), buttonShown ? /* @__PURE__ */ React.createElement(
856
860
  Pressable,
857
861
  {
858
862
  testID: "Button-Press",
859
- style: styles$B.button,
863
+ style: styles$A.button,
860
864
  onPress: onButtonPress
861
865
  },
862
866
  /* @__PURE__ */ React.createElement(
863
867
  CustomTypography,
864
868
  {
865
869
  variant: "B2semiBold",
866
- style: styles$B.buttonText,
870
+ style: styles$A.buttonText,
867
871
  text: buttonText
868
872
  }
869
873
  )
870
874
  ) : null);
871
875
  };
872
876
 
873
- const styles$A = StyleSheet.create({
877
+ const styles$z = StyleSheet.create({
874
878
  checkboxContainer: {
875
879
  alignItems: "center",
876
880
  justifyContent: "center"
@@ -926,9 +930,9 @@ const Checkbox = ({
926
930
  testID: "Checkbox-Press",
927
931
  onPress: handlePress,
928
932
  disabled: disable,
929
- style: styles$A.directionStyle
933
+ style: styles$z.directionStyle
930
934
  },
931
- /* @__PURE__ */ React.createElement(View, { style: styles$A.checkboxContainer }, React.cloneElement(checked ? checkedIcon : uncheckedIcon)),
935
+ /* @__PURE__ */ React.createElement(View, { style: styles$z.checkboxContainer }, React.cloneElement(checked ? checkedIcon : uncheckedIcon)),
932
936
  /* @__PURE__ */ React.createElement(
933
937
  CustomTypography,
934
938
  {
@@ -940,7 +944,7 @@ const Checkbox = ({
940
944
  ));
941
945
  };
942
946
 
943
- const styles$z = StyleSheet.create({
947
+ const styles$y = StyleSheet.create({
944
948
  labelStyle: {
945
949
  color: DHRE_COLORS_TEXT.DH_TEXTLIGHT
946
950
  },
@@ -994,26 +998,26 @@ const CustomDropdown$1 = ({
994
998
  CustomTypography,
995
999
  {
996
1000
  variant: "P3regular",
997
- style: styles$z.labelStyle,
1001
+ style: styles$y.labelStyle,
998
1002
  text: label
999
1003
  }
1000
1004
  ), /* @__PURE__ */ React.createElement(
1001
1005
  Pressable,
1002
1006
  {
1003
1007
  testID: `${testId}-BTN`,
1004
- style: styles$z.dropDownStyle,
1008
+ style: styles$y.dropDownStyle,
1005
1009
  onPress: () => setShowOptions(!showOptions)
1006
1010
  },
1007
1011
  iconName && /* @__PURE__ */ React.createElement(View, { style: iconStyle }, React.cloneElement(iconName, {
1008
1012
  width: moderateScale(24),
1009
1013
  height: moderateScale(24),
1010
- style: styles$z.iconStyle
1014
+ style: styles$y.iconStyle
1011
1015
  })),
1012
1016
  /* @__PURE__ */ React.createElement(
1013
1017
  CustomTypography,
1014
1018
  {
1015
1019
  variant: "P3regular",
1016
- style: styles$z.selectedValueStyle,
1020
+ style: styles$y.selectedValueStyle,
1017
1021
  text: selectedValue ? selectedValue.label : placeholder
1018
1022
  }
1019
1023
  ),
@@ -1024,7 +1028,7 @@ const CustomDropdown$1 = ({
1024
1028
  width: moderateScale(24),
1025
1029
  height: moderateScale(24)
1026
1030
  }))
1027
- ), showOptions && /* @__PURE__ */ React.createElement(View, { style: styles$z.optionContainer }, options?.map(({ id, value, label: label2 }) => /* @__PURE__ */ React.createElement(
1031
+ ), showOptions && /* @__PURE__ */ React.createElement(View, { style: styles$y.optionContainer }, options?.map(({ id, value, label: label2 }) => /* @__PURE__ */ React.createElement(
1028
1032
  Pressable,
1029
1033
  {
1030
1034
  key: id,
@@ -1034,7 +1038,7 @@ const CustomDropdown$1 = ({
1034
1038
  oneSelect({ id, value, label: label2 });
1035
1039
  },
1036
1040
  style: [
1037
- styles$z.item,
1041
+ styles$y.item,
1038
1042
  {
1039
1043
  backgroundColor: id === selectedValue?.id ? DHRE_COLORS_BG.DH_GREY1 : DHRE_COLORS_TEXT.DH_WHITE
1040
1044
  }
@@ -1043,7 +1047,7 @@ const CustomDropdown$1 = ({
1043
1047
  iconName && /* @__PURE__ */ React.createElement(View, { style: iconStyle }, React.cloneElement(iconName, {
1044
1048
  width: moderateScale(24),
1045
1049
  height: moderateScale(24),
1046
- style: styles$z.iconStyle
1050
+ style: styles$y.iconStyle
1047
1051
  })),
1048
1052
  /* @__PURE__ */ React.createElement(
1049
1053
  CustomTypography,
@@ -1058,7 +1062,7 @@ const CustomDropdown$1 = ({
1058
1062
  ))));
1059
1063
  };
1060
1064
 
1061
- const styles$y = StyleSheet.create({
1065
+ const styles$x = StyleSheet.create({
1062
1066
  labelStyle: {
1063
1067
  color: DHRE_COLORS_TEXT.DH_TEXTDARK
1064
1068
  },
@@ -1140,18 +1144,18 @@ const CustomTextInput = ({
1140
1144
  CustomTypography,
1141
1145
  {
1142
1146
  variant: "P3medium",
1143
- style: [styles$y.labelStyle, disabled && styles$y.disableTextStyle],
1147
+ style: [styles$x.labelStyle, disabled && styles$x.disableTextStyle],
1144
1148
  text: label
1145
1149
  }
1146
1150
  ), /* @__PURE__ */ React.createElement(
1147
1151
  View,
1148
1152
  {
1149
1153
  style: [
1150
- styles$y.inputContainer,
1151
- isFocused && styles$y.inputFocused,
1152
- error && styles$y.inputError,
1153
- disabled && styles$y.disableInputStyle,
1154
- successMessage ? styles$y.inputSucess : {},
1154
+ styles$x.inputContainer,
1155
+ isFocused && styles$x.inputFocused,
1156
+ error && styles$x.inputError,
1157
+ disabled && styles$x.disableInputStyle,
1158
+ successMessage ? styles$x.inputSucess : {},
1155
1159
  {
1156
1160
  height: multiline ? 120 : 48,
1157
1161
  alignItems: multiline ? "flex-start" : "center"
@@ -1161,7 +1165,7 @@ const CustomTextInput = ({
1161
1165
  isSearchBar && searchIcon && React.cloneElement(searchIcon, {
1162
1166
  width: moderateScale(24),
1163
1167
  height: moderateScale(24),
1164
- style: styles$y.searchIconStyle
1168
+ style: styles$x.searchIconStyle
1165
1169
  }),
1166
1170
  /* @__PURE__ */ React.createElement(
1167
1171
  TextInput,
@@ -1169,7 +1173,7 @@ const CustomTextInput = ({
1169
1173
  ...props,
1170
1174
  onFocus,
1171
1175
  onBlur,
1172
- style: styles$y.input,
1176
+ style: styles$x.input,
1173
1177
  placeholderTextColor: DHRE_COLORS_TEXT.DH_TEXTLIGHTEST,
1174
1178
  editable: !disabled,
1175
1179
  value,
@@ -1202,7 +1206,7 @@ const CustomTextInput = ({
1202
1206
  ));
1203
1207
  };
1204
1208
 
1205
- const styles$x = StyleSheet.create({
1209
+ const styles$w = StyleSheet.create({
1206
1210
  tooltipContainerStyle: {
1207
1211
  flex: 1,
1208
1212
  borderRadius: moderateScale(16),
@@ -1231,18 +1235,18 @@ const CustomTooltip = ({
1231
1235
  iconStyle,
1232
1236
  iconColor = DHRE_COLORS_TEXT.DH_BLACK
1233
1237
  }) => {
1234
- const defaultPopoverContent = /* @__PURE__ */ React.createElement(View, { style: styles$x.mesageContainer, testID: testId }, /* @__PURE__ */ React.createElement(
1238
+ const defaultPopoverContent = /* @__PURE__ */ React.createElement(View, { style: styles$w.mesageContainer, testID: testId }, /* @__PURE__ */ React.createElement(
1235
1239
  CustomTypography,
1236
1240
  {
1237
1241
  variant: "P4regular",
1238
- style: styles$x.messageStyle,
1242
+ style: styles$w.messageStyle,
1239
1243
  text: message
1240
1244
  }
1241
1245
  ), icon && /* @__PURE__ */ React.createElement(View, { style: iconStyle }, React.cloneElement(icon, { fill: iconColor })));
1242
1246
  return /* @__PURE__ */ React.createElement(
1243
1247
  Tooltip,
1244
1248
  {
1245
- containerStyle: styles$x.tooltipContainerStyle,
1249
+ containerStyle: styles$w.tooltipContainerStyle,
1246
1250
  backgroundColor,
1247
1251
  popover: popoverContent || defaultPopoverContent,
1248
1252
  actionType
@@ -1251,7 +1255,7 @@ const CustomTooltip = ({
1251
1255
  );
1252
1256
  };
1253
1257
 
1254
- const styles$w = StyleSheet.create({
1258
+ const styles$v = StyleSheet.create({
1255
1259
  container: {
1256
1260
  backgroundColor: DHRE_COLORS_TEXT.DH_BLACK,
1257
1261
  paddingHorizontal: horizontalScale(16),
@@ -1301,21 +1305,21 @@ const FileUpload = ({
1301
1305
  return /* @__PURE__ */ React.createElement(
1302
1306
  View,
1303
1307
  {
1304
- style: [styles$w.container, containerStyle],
1308
+ style: [styles$v.container, containerStyle],
1305
1309
  testID: "file-upload-container"
1306
1310
  },
1307
- /* @__PURE__ */ React.createElement(View, { style: styles$w.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$w.title, text: title }), /* @__PURE__ */ React.createElement(
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(
1308
1312
  CustomTypography,
1309
1313
  {
1310
1314
  variant: "P4regular",
1311
- style: styles$w.description,
1315
+ style: styles$v.description,
1312
1316
  text: `Drop files directly here or `
1313
1317
  }
1314
1318
  ), /* @__PURE__ */ React.createElement(
1315
1319
  CustomTypography,
1316
1320
  {
1317
1321
  variant: "P4regular",
1318
- style: styles$w.browse,
1322
+ style: styles$v.browse,
1319
1323
  text: btnText
1320
1324
  }
1321
1325
  ), /* @__PURE__ */ React.createElement(
@@ -1323,14 +1327,14 @@ const FileUpload = ({
1323
1327
  {
1324
1328
  testID: "file-upload-description",
1325
1329
  variant: "P4regular",
1326
- style: styles$w.description,
1330
+ style: styles$v.description,
1327
1331
  text: ` from your device`
1328
1332
  }
1329
1333
  )),
1330
1334
  /* @__PURE__ */ React.createElement(
1331
1335
  Pressable,
1332
1336
  {
1333
- style: styles$w.button,
1337
+ style: styles$v.button,
1334
1338
  onPress: onUpload,
1335
1339
  testID: "file-upload-button"
1336
1340
  },
@@ -1338,7 +1342,7 @@ const FileUpload = ({
1338
1342
  CustomTypography,
1339
1343
  {
1340
1344
  variant: "B2semiBold",
1341
- style: styles$w.buttonText,
1345
+ style: styles$v.buttonText,
1342
1346
  text: btnText
1343
1347
  }
1344
1348
  )
@@ -1350,7 +1354,7 @@ const PdfView = (props) => {
1350
1354
  return /* @__PURE__ */ React.createElement(Pdf, { ...props });
1351
1355
  };
1352
1356
 
1353
- const styles$v = StyleSheet.create({
1357
+ const styles$u = StyleSheet.create({
1354
1358
  container: {
1355
1359
  padding: horizontalScale(20),
1356
1360
  marginHorizontal: horizontalScale(16),
@@ -1406,39 +1410,39 @@ const PopUp = ({
1406
1410
  leftButtonShown = false,
1407
1411
  rightButtonShown = false
1408
1412
  }) => {
1409
- return /* @__PURE__ */ React.createElement(View, { testID, style: styles$v.container }, title ? /* @__PURE__ */ React.createElement(
1413
+ return /* @__PURE__ */ React.createElement(View, { testID, style: styles$u.container }, title ? /* @__PURE__ */ React.createElement(
1410
1414
  CustomTypography,
1411
1415
  {
1412
- style: styles$v.subTitleBelow,
1416
+ style: styles$u.subTitleBelow,
1413
1417
  variant: "H6semiBold",
1414
1418
  text: title
1415
1419
  }
1416
1420
  ) : null, subtitle ? /* @__PURE__ */ React.createElement(
1417
1421
  CustomTypography,
1418
1422
  {
1419
- style: styles$v.subtitle,
1423
+ style: styles$u.subtitle,
1420
1424
  variant: "P3regular",
1421
1425
  text: subtitle
1422
1426
  }
1423
- ) : null, /* @__PURE__ */ React.createElement(View, { style: styles$v.buttonContainer }, leftButtonShown ? /* @__PURE__ */ React.createElement(
1427
+ ) : null, /* @__PURE__ */ React.createElement(View, { style: styles$u.buttonContainer }, leftButtonShown ? /* @__PURE__ */ React.createElement(
1424
1428
  Pressable,
1425
1429
  {
1426
1430
  testID: "Left-Button-Press",
1427
- style: styles$v.buttonLeft,
1431
+ style: styles$u.buttonLeft,
1428
1432
  onPress: onButtonPress
1429
1433
  },
1430
1434
  /* @__PURE__ */ React.createElement(
1431
1435
  CustomTypography,
1432
1436
  {
1433
- style: styles$v.buttonLeftText,
1437
+ style: styles$u.buttonLeftText,
1434
1438
  variant: "B2semiBold",
1435
1439
  text: buttonText
1436
1440
  }
1437
1441
  )
1438
- ) : null, rightButtonShown ? /* @__PURE__ */ React.createElement(Pressable, { style: styles$v.button, onPress: onButtonPress }, /* @__PURE__ */ React.createElement(
1442
+ ) : null, rightButtonShown ? /* @__PURE__ */ React.createElement(Pressable, { style: styles$u.button, onPress: onButtonPress }, /* @__PURE__ */ React.createElement(
1439
1443
  CustomTypography,
1440
1444
  {
1441
- style: styles$v.buttonText,
1445
+ style: styles$u.buttonText,
1442
1446
  variant: "B2semiBold",
1443
1447
  text: buttonText
1444
1448
  }
@@ -1476,7 +1480,7 @@ const CustomProgressBar = ({
1476
1480
  return () => clearInterval(progressInterval);
1477
1481
  }, [progress, value, increment, interval]);
1478
1482
  const showPercentage = () => {
1479
- return /* @__PURE__ */ React.createElement(View, { style: styles$u.flexDirection }, /* @__PURE__ */ React.createElement(
1483
+ return /* @__PURE__ */ React.createElement(View, { style: styles$t.flexDirection }, /* @__PURE__ */ React.createElement(
1480
1484
  CustomText$1,
1481
1485
  {
1482
1486
  text: `${value}%`,
@@ -1530,7 +1534,7 @@ const CustomProgressBar = ({
1530
1534
  };
1531
1535
  return /* @__PURE__ */ React.createElement(View, { testID: "custom-progress-bar" }, renderProgressBar());
1532
1536
  };
1533
- const styles$u = StyleSheet.create({
1537
+ const styles$t = StyleSheet.create({
1534
1538
  flexDirection: {
1535
1539
  flexDirection: "column",
1536
1540
  justifyContent: "center",
@@ -1538,7 +1542,7 @@ const styles$u = StyleSheet.create({
1538
1542
  }
1539
1543
  });
1540
1544
 
1541
- const styles$t = StyleSheet.create({
1545
+ const styles$s = StyleSheet.create({
1542
1546
  container: {
1543
1547
  flexDirection: "row",
1544
1548
  alignItems: "center"
@@ -1604,13 +1608,13 @@ const Star = ({
1604
1608
  emptyStarColor
1605
1609
  );
1606
1610
  stars.push(
1607
- /* @__PURE__ */ React.createElement(View, { key: i, style: [styles$t.star, starStyle] }, starType)
1611
+ /* @__PURE__ */ React.createElement(View, { key: i, style: [styles$s.star, starStyle] }, starType)
1608
1612
  );
1609
1613
  }
1610
- return /* @__PURE__ */ React.createElement(View, { style: styles$t.container, testID: "star" }, stars);
1614
+ return /* @__PURE__ */ React.createElement(View, { style: styles$s.container, testID: "star" }, stars);
1611
1615
  };
1612
1616
 
1613
- var styles$s = StyleSheet.create({
1617
+ var styles$r = StyleSheet.create({
1614
1618
  container: {
1615
1619
  flexDirection: "row",
1616
1620
  gap: horizontalScale(5),
@@ -1652,12 +1656,12 @@ const Tabs = ({
1652
1656
  onSelectionChange(selectedTabs);
1653
1657
  }
1654
1658
  };
1655
- return /* @__PURE__ */ React.createElement(View, { style: [styles$s.container, style] }, data?.map(({ id, title, isSelected }) => /* @__PURE__ */ React.createElement(
1659
+ return /* @__PURE__ */ React.createElement(View, { style: [styles$r.container, style] }, data?.map(({ id, title, isSelected }) => /* @__PURE__ */ React.createElement(
1656
1660
  Pressable,
1657
1661
  {
1658
1662
  key: id,
1659
1663
  style: {
1660
- ...styles$s.button,
1664
+ ...styles$r.button,
1661
1665
  backgroundColor: isSelected ? theme.CONTENT_PRIMARY : theme.CONTENT_INVERTED,
1662
1666
  borderColor: isSelected ? theme.CONTENT_INVERTED : theme.CONTENT_SECONDRY
1663
1667
  },
@@ -1677,7 +1681,7 @@ const Tabs = ({
1677
1681
  };
1678
1682
  var Tabs$1 = withThemeProvider(Tabs);
1679
1683
 
1680
- const styles$r = StyleSheet.create({
1684
+ const styles$q = StyleSheet.create({
1681
1685
  container: {
1682
1686
  width: "100%"
1683
1687
  },
@@ -1736,8 +1740,8 @@ const Tags = ({
1736
1740
  ScrollView,
1737
1741
  {
1738
1742
  testID,
1739
- style: styles$r.container,
1740
- contentContainerStyle: styles$r.contentContainer,
1743
+ style: styles$q.container,
1744
+ contentContainerStyle: styles$q.contentContainer,
1741
1745
  horizontal: false
1742
1746
  },
1743
1747
  tags?.map((tag) => /* @__PURE__ */ React.createElement(
@@ -1747,16 +1751,16 @@ const Tags = ({
1747
1751
  key: tag,
1748
1752
  onPress: () => toggleTag(tag),
1749
1753
  style: [
1750
- styles$r.tag,
1754
+ styles$q.tag,
1751
1755
  tagStyles,
1752
- selectedTags.includes(tag) ? styles$r.selectedTag : styles$r.tagUnSelected
1756
+ selectedTags.includes(tag) ? styles$q.selectedTag : styles$q.tagUnSelected
1753
1757
  ]
1754
1758
  },
1755
1759
  /* @__PURE__ */ React.createElement(
1756
1760
  CustomTypography,
1757
1761
  {
1758
1762
  variant: selectedTags.includes(tag) ? "H9semiBold" : "P4regular",
1759
- style: selectedTags.includes(tag) ? styles$r.tagText : styles$r.tagUnselectedText,
1763
+ style: selectedTags.includes(tag) ? styles$q.tagText : styles$q.tagUnselectedText,
1760
1764
  text: tag
1761
1765
  }
1762
1766
  ),
@@ -1772,7 +1776,7 @@ const Tags = ({
1772
1776
  );
1773
1777
  };
1774
1778
 
1775
- const styles$q = StyleSheet.create({
1779
+ const styles$p = StyleSheet.create({
1776
1780
  container: {
1777
1781
  width: horizontalScale(70),
1778
1782
  height: verticalScale(25),
@@ -1837,26 +1841,26 @@ const CustomSwitch = ({
1837
1841
  Pressable,
1838
1842
  {
1839
1843
  onPress: toggleSwitch,
1840
- style: [styles$q.container, { width }],
1844
+ style: [styles$p.container, { width }],
1841
1845
  testID: "custom-switch"
1842
1846
  },
1843
1847
  /* @__PURE__ */ React.createElement(
1844
1848
  View,
1845
1849
  {
1846
1850
  style: [
1847
- styles$q.track,
1851
+ styles$p.track,
1848
1852
  {
1849
1853
  backgroundColor: isOn ? DHRE_COLORS_ALERT.DH_SUCCESS_GREEN_ACCENT : DHRE_COLORS_TEXT.DH_TEXTDISABLED
1850
1854
  }
1851
1855
  ]
1852
1856
  },
1853
- /* @__PURE__ */ React.createElement(Animated.View, { style: [styles$q.thumb, animatedStyle] }),
1857
+ /* @__PURE__ */ React.createElement(Animated.View, { style: [styles$p.thumb, animatedStyle] }),
1854
1858
  type !== ToggleButtonType.SMALL && /* @__PURE__ */ React.createElement(
1855
1859
  CustomTypography,
1856
1860
  {
1857
1861
  variant: "B3semiBold",
1858
1862
  style: [
1859
- styles$q.text,
1863
+ styles$p.text,
1860
1864
  { textAlign: isOn ? TextDirectType.left : TextDirectType.right }
1861
1865
  ],
1862
1866
  text: isOn ? ToggleTextType.ON : ToggleTextType.OFF
@@ -1866,7 +1870,7 @@ const CustomSwitch = ({
1866
1870
  );
1867
1871
  };
1868
1872
 
1869
- const styles$p = StyleSheet.create({
1873
+ const styles$o = StyleSheet.create({
1870
1874
  container: {
1871
1875
  paddingVertical: verticalScale(24),
1872
1876
  borderBottomWidth: moderateScale(1)
@@ -1928,19 +1932,19 @@ const Accordion = ({
1928
1932
  View,
1929
1933
  {
1930
1934
  style: {
1931
- ...styles$p.container,
1935
+ ...styles$o.container,
1932
1936
  borderBottomColor: theme.BORDER_SEPRATOR,
1933
1937
  ...containerStyle
1934
1938
  },
1935
1939
  testID: testId
1936
1940
  },
1937
- /* @__PURE__ */ React.createElement(View, { style: [styles$p.header, headerStyle, disabled && { opacity: 0.5 }] }, headerComponent ? headerComponent() : /* @__PURE__ */ React.createElement(Pressable, { onPress: onHeaderPress }, /* @__PURE__ */ React.createElement(
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(
1938
1942
  CustomTypography,
1939
1943
  {
1940
1944
  variant: titleVariant,
1941
1945
  text: title,
1942
1946
  style: {
1943
- ...styles$p.title,
1947
+ ...styles$o.title,
1944
1948
  color: theme.CONTENT_PRIMARY,
1945
1949
  ...titleStyle
1946
1950
  }
@@ -1948,10 +1952,10 @@ const Accordion = ({
1948
1952
  )), /* @__PURE__ */ React.createElement(Pressable, { onPress: !disabled ? onToggle : void 0 }, React.cloneElement(icon, {
1949
1953
  width: moderateScale(20),
1950
1954
  height: moderateScale(20),
1951
- style: styles$p.iconStyle
1955
+ style: styles$o.iconStyle
1952
1956
  }))),
1953
1957
  optionalElement ? optionalElement() : null,
1954
- isOpen && /* @__PURE__ */ React.createElement(Animated.View, { style: [styles$p.content, { height: cardHeight }] }, /* @__PURE__ */ React.createElement(
1958
+ isOpen && /* @__PURE__ */ React.createElement(Animated.View, { style: [styles$o.content, { height: cardHeight }] }, /* @__PURE__ */ React.createElement(
1955
1959
  View,
1956
1960
  {
1957
1961
  ref: contentRef,
@@ -1965,7 +1969,7 @@ const Accordion = ({
1965
1969
  };
1966
1970
  var Accordion$1 = withThemeProvider(Accordion);
1967
1971
 
1968
- const styles$o = StyleSheet.create({
1972
+ const styles$n = StyleSheet.create({
1969
1973
  container: {
1970
1974
  position: "absolute",
1971
1975
  alignSelf: "center",
@@ -2047,23 +2051,23 @@ const Toast = React.forwardRef(({ sucessIcon, errorIcon }, ref) => {
2047
2051
  Animated.View,
2048
2052
  {
2049
2053
  style: [
2050
- styles$o.container,
2054
+ styles$n.container,
2051
2055
  { bottom },
2052
2056
  { backgroundColor: isSuccess ? "#04743F" : "#DB3056" }
2053
2057
  ],
2054
2058
  testID: "TOAST"
2055
2059
  },
2056
- /* @__PURE__ */ React.createElement(View, { style: styles$o.toastContainer }, /* @__PURE__ */ React.createElement(View, { style: styles$o.innerContainer }, isSuccess ? sucessIcon : errorIcon, /* @__PURE__ */ React.createElement(
2060
+ /* @__PURE__ */ React.createElement(View, { style: styles$n.toastContainer }, /* @__PURE__ */ React.createElement(View, { style: styles$n.innerContainer }, isSuccess ? sucessIcon : errorIcon, /* @__PURE__ */ React.createElement(
2057
2061
  CustomTypography,
2058
2062
  {
2059
2063
  variant: "L2_REGULAR",
2060
2064
  text: message,
2061
- style: styles$o.messageText
2065
+ style: styles$n.messageText
2062
2066
  }
2063
2067
  ), btnText && /* @__PURE__ */ React.createElement(
2064
2068
  Pressable,
2065
2069
  {
2066
- style: styles$o.button,
2070
+ style: styles$n.button,
2067
2071
  onPress: onBtnPress || void 0,
2068
2072
  testID: "TOAST-BTN"
2069
2073
  },
@@ -2072,7 +2076,7 @@ const Toast = React.forwardRef(({ sucessIcon, errorIcon }, ref) => {
2072
2076
  {
2073
2077
  variant: "L2_BOLD",
2074
2078
  text: btnText,
2075
- style: styles$o.buttonText
2079
+ style: styles$n.buttonText
2076
2080
  }
2077
2081
  )
2078
2082
  ))),
@@ -2090,7 +2094,7 @@ const Toast = React.forwardRef(({ sucessIcon, errorIcon }, ref) => {
2090
2094
  });
2091
2095
  Toast.displayName = "Toast";
2092
2096
 
2093
- const styles$n = StyleSheet.create({
2097
+ const styles$m = StyleSheet.create({
2094
2098
  inputContainer: {
2095
2099
  flexDirection: "row",
2096
2100
  justifyContent: "center",
@@ -2127,20 +2131,23 @@ const CustomSearchBar = ({
2127
2131
  borderColor = "#FFFFFF",
2128
2132
  disablePlaceHolderStyle = "#686868",
2129
2133
  enablePlaceHolderStyle = "#A7A7A7",
2134
+ handlePress,
2135
+ pointerEvents,
2130
2136
  ...props
2131
2137
  }) => {
2132
2138
  return /* @__PURE__ */ React.createElement(
2133
- View,
2139
+ Pressable,
2134
2140
  {
2135
2141
  testID,
2136
2142
  style: [
2137
- styles$n.inputContainer,
2143
+ styles$m.inputContainer,
2138
2144
  {
2139
- height: verticalScale(height),
2145
+ height: verticalScale$1(height),
2140
2146
  borderColor: disabled ? disableBorderColor : value ? borderColor : "#A7A7A7"
2141
2147
  },
2142
2148
  inputContainerStyle
2143
- ]
2149
+ ],
2150
+ onPress: handlePress
2144
2151
  },
2145
2152
  /* @__PURE__ */ React.createElement(
2146
2153
  Pressable,
@@ -2152,9 +2159,9 @@ const CustomSearchBar = ({
2152
2159
  style: searchIconStyle
2153
2160
  },
2154
2161
  React.cloneElement(searchIcon, {
2155
- width: moderateScale(24),
2156
- height: moderateScale(24),
2157
- style: [styles$n.searchIconStyle, searchIconStyle]
2162
+ width: moderateScale$1(24),
2163
+ height: moderateScale$1(24),
2164
+ style: [styles$m.searchIconStyle, searchIconStyle]
2158
2165
  })
2159
2166
  ),
2160
2167
  /* @__PURE__ */ React.createElement(
@@ -2162,14 +2169,15 @@ const CustomSearchBar = ({
2162
2169
  {
2163
2170
  ...props,
2164
2171
  testID: `${testID}-INPUT`,
2165
- style: [styles$n.input, inputStyle],
2172
+ style: [styles$m.input, inputStyle],
2166
2173
  editable: !disabled,
2167
2174
  value,
2168
2175
  placeholderTextColor: disabled ? disablePlaceHolderStyle : enablePlaceHolderStyle,
2169
2176
  onChangeText: (val) => {
2170
2177
  setValue(val);
2171
2178
  handleOnChangeText?.(val);
2172
- }
2179
+ },
2180
+ pointerEvents
2173
2181
  }
2174
2182
  ),
2175
2183
  value && /* @__PURE__ */ React.createElement(
@@ -2184,13 +2192,13 @@ const CustomSearchBar = ({
2184
2192
  React.cloneElement(rightIcon, {
2185
2193
  // width: moderateScale(24),
2186
2194
  // height: moderateScale(24),
2187
- style: [styles$n.crossIconStyle, crossIconStyle]
2195
+ style: [styles$m.crossIconStyle, crossIconStyle]
2188
2196
  })
2189
2197
  )
2190
2198
  );
2191
2199
  };
2192
2200
 
2193
- const styles$m = StyleSheet.create({
2201
+ const styles$l = StyleSheet.create({
2194
2202
  container: {
2195
2203
  flexDirection: "row",
2196
2204
  justifyContent: "space-between",
@@ -2222,17 +2230,17 @@ const CustomHeader = ({
2222
2230
  View,
2223
2231
  {
2224
2232
  style: {
2225
- ...styles$m.container,
2233
+ ...styles$l.container,
2226
2234
  backgroundColor: theme.SURFACE_SECONDARY,
2227
2235
  borderBottomColor: theme.BORDER_SEPERATOR_HEADER
2228
2236
  },
2229
2237
  testID: testId
2230
2238
  },
2231
- /* @__PURE__ */ React.createElement(View, { style: styles$m.headderContainer }, showLeftIcon && leftIcon ? React.cloneElement(leftIcon, {
2239
+ /* @__PURE__ */ React.createElement(View, { style: styles$l.headderContainer }, showLeftIcon && leftIcon ? React.cloneElement(leftIcon, {
2232
2240
  width: moderateScale(24),
2233
2241
  height: moderateScale(24),
2234
2242
  onPress: onLeftPress,
2235
- style: styles$m.leftIconStyle
2243
+ style: styles$l.leftIconStyle
2236
2244
  }) : null, /* @__PURE__ */ React.createElement(
2237
2245
  CustomTypography,
2238
2246
  {
@@ -2245,13 +2253,13 @@ const CustomHeader = ({
2245
2253
  width: moderateScale(24),
2246
2254
  height: moderateScale(24),
2247
2255
  onPress: onRightPress,
2248
- style: styles$m.rightIconStyle
2256
+ style: styles$l.rightIconStyle
2249
2257
  }) : null
2250
2258
  );
2251
2259
  };
2252
2260
  var CustomHeader$1 = withThemeProvider(CustomHeader);
2253
2261
 
2254
- const styles$l = StyleSheet.create({
2262
+ const styles$k = StyleSheet.create({
2255
2263
  container: {
2256
2264
  flex: 1
2257
2265
  },
@@ -2305,19 +2313,19 @@ const SwipableList = (props) => {
2305
2313
  {
2306
2314
  testID,
2307
2315
  onPress,
2308
- style: [styles$l.actionButton, style]
2316
+ style: [styles$k.actionButton, style]
2309
2317
  },
2310
2318
  icon,
2311
2319
  /* @__PURE__ */ React.createElement(
2312
2320
  CustomTypography,
2313
2321
  {
2314
2322
  variant: "L1_REGULAR",
2315
- style: [styles$l.titleStyle, titleStyle],
2323
+ style: [styles$k.titleStyle, titleStyle],
2316
2324
  text: title
2317
2325
  }
2318
2326
  )
2319
2327
  );
2320
- const leftActionHandle = (item, leftPrimaryActionIcon, leftPrimaryActionTitle, leftSecondaryActionIcon, leftSecondaryActionTitle) => /* @__PURE__ */ React.createElement(View, { style: styles$l.actionBtn }, leftPrimaryActionIcon && /* @__PURE__ */ React.createElement(
2328
+ const leftActionHandle = (item, leftPrimaryActionIcon, leftPrimaryActionTitle, leftSecondaryActionIcon, leftSecondaryActionTitle) => /* @__PURE__ */ React.createElement(View, { style: styles$k.actionBtn }, leftPrimaryActionIcon && /* @__PURE__ */ React.createElement(
2321
2329
  ActionButton,
2322
2330
  {
2323
2331
  icon: leftPrimaryActionIcon,
@@ -2336,7 +2344,7 @@ const SwipableList = (props) => {
2336
2344
  testID: `${testId}-LEFT-SECONDARY-${item.id}`
2337
2345
  }
2338
2346
  ));
2339
- const rightActionHandle = (item) => /* @__PURE__ */ React.createElement(View, { style: [styles$l.actionBtn, rightPrimaryActionStyle] }, rightPrimaryActionIcon && /* @__PURE__ */ React.createElement(
2347
+ const rightActionHandle = (item) => /* @__PURE__ */ React.createElement(View, { style: [styles$k.actionBtn, rightPrimaryActionStyle] }, rightPrimaryActionIcon && /* @__PURE__ */ React.createElement(
2340
2348
  ActionButton,
2341
2349
  {
2342
2350
  icon: rightPrimaryActionIcon,
@@ -2346,7 +2354,7 @@ const SwipableList = (props) => {
2346
2354
  testID: `${testId}-RIGHT-PRIMARY-${item.id}`
2347
2355
  }
2348
2356
  ));
2349
- const renderItem = ({ item }) => /* @__PURE__ */ React.createElement(GestureHandlerRootView, { testID: `${testId}-LIST`, style: styles$l.container }, /* @__PURE__ */ React.createElement(
2357
+ const renderItem = ({ item }) => /* @__PURE__ */ React.createElement(GestureHandlerRootView, { testID: `${testId}-LIST`, style: styles$k.container }, /* @__PURE__ */ React.createElement(
2350
2358
  Swipeable,
2351
2359
  {
2352
2360
  renderLeftActions: () => leftActionHandle(
@@ -2357,7 +2365,7 @@ const SwipableList = (props) => {
2357
2365
  item.isRead ? leftSecondaryActionInActiveTitle : leftSecondaryActionActiveTitle
2358
2366
  ),
2359
2367
  renderRightActions: () => rightActionHandle(item),
2360
- containerStyle: styles$l.swippableContainer
2368
+ containerStyle: styles$k.swippableContainer
2361
2369
  },
2362
2370
  props?.renderItem(item)
2363
2371
  ));
@@ -2367,12 +2375,12 @@ const SwipableList = (props) => {
2367
2375
  data,
2368
2376
  renderItem,
2369
2377
  keyExtractor: (item) => item.id,
2370
- ItemSeparatorComponent: () => /* @__PURE__ */ React.createElement(View, { style: styles$l.seprator })
2378
+ ItemSeparatorComponent: () => /* @__PURE__ */ React.createElement(View, { style: styles$k.seprator })
2371
2379
  }
2372
2380
  ));
2373
2381
  };
2374
2382
 
2375
- const styles$k = StyleSheet.create({
2383
+ const styles$j = StyleSheet.create({
2376
2384
  container: {
2377
2385
  justifyContent: "center",
2378
2386
  alignItems: "center"
@@ -2394,7 +2402,7 @@ const CustomIcon = ({
2394
2402
  return /* @__PURE__ */ React.createElement(
2395
2403
  Pressable,
2396
2404
  {
2397
- style: [styles$k.container, containerStyle],
2405
+ style: [styles$j.container, containerStyle],
2398
2406
  onPress,
2399
2407
  testID: testId
2400
2408
  },
@@ -2404,13 +2412,13 @@ const CustomIcon = ({
2404
2412
  {
2405
2413
  variant: titleVariant,
2406
2414
  text: title,
2407
- style: [styles$k.title, titleStyle]
2415
+ style: [styles$j.title, titleStyle]
2408
2416
  }
2409
2417
  )
2410
2418
  );
2411
2419
  };
2412
2420
 
2413
- const styles$j = StyleSheet.create({
2421
+ const styles$i = StyleSheet.create({
2414
2422
  container: {
2415
2423
  flex: 1,
2416
2424
  justifyContent: "center",
@@ -2425,23 +2433,23 @@ const styles$j = StyleSheet.create({
2425
2433
 
2426
2434
  const CustomLoader = ({ loading }) => {
2427
2435
  if (!loading) return null;
2428
- return /* @__PURE__ */ React.createElement(View, { style: styles$j.container }, /* @__PURE__ */ React.createElement(ActivityIndicator, { size: "large", color: "#686868" }));
2436
+ return /* @__PURE__ */ React.createElement(View, { style: styles$i.container }, /* @__PURE__ */ React.createElement(ActivityIndicator, { size: "large", color: "#686868" }));
2429
2437
  };
2430
2438
 
2431
- const HorizontalLine = ({ style }) => {
2439
+ const HorizontalLine = ({ backgroundColor = "SURFACE_SECONDARY", style }) => {
2432
2440
  const { theme } = useTheme();
2433
2441
  return /* @__PURE__ */ React.createElement(
2434
2442
  View,
2435
2443
  {
2436
2444
  style: [
2437
- styles$i.line,
2438
- { backgroundColor: theme["SURFACE_SECONDARY"] },
2445
+ styles$h.line,
2446
+ { backgroundColor: theme[backgroundColor] },
2439
2447
  style
2440
2448
  ]
2441
2449
  }
2442
2450
  );
2443
2451
  };
2444
- const styles$i = StyleSheet.create({
2452
+ const styles$h = StyleSheet.create({
2445
2453
  line: {
2446
2454
  height: 1,
2447
2455
  width: "100%"
@@ -2464,18 +2472,18 @@ const Topic = ({
2464
2472
  TouchableOpacity,
2465
2473
  {
2466
2474
  style: [
2467
- styles$h.button,
2475
+ styles$g.button,
2468
2476
  { backgroundColor: theme[Theme.SURFACE_SECONDARY] },
2469
2477
  containterStyle
2470
2478
  ],
2471
2479
  onPress
2472
2480
  },
2473
- rightIcon && /* @__PURE__ */ React.createElement(View, { style: styles$h.rightIconContainer }, React.cloneElement(rightIcon)),
2474
- /* @__PURE__ */ React.createElement(View, { style: styles$h.timeContainer }, time && /* @__PURE__ */ React.createElement(CustomText$1, { text: time, variant: FontStyle.L2_REGULAR })),
2475
- /* @__PURE__ */ React.createElement(View, { style: styles$h.textContainer }, /* @__PURE__ */ React.createElement(View, { style: styles$h.paymentView }, statusImage && /* @__PURE__ */ React.createElement(View, null, React.cloneElement(statusImage)), subTitle && /* @__PURE__ */ React.createElement(
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(
2476
2484
  CustomText$1,
2477
2485
  {
2478
- style: [styles$h.subTitle, subTitleStyle],
2486
+ style: [styles$g.subTitle, subTitleStyle],
2479
2487
  text: subTitle,
2480
2488
  variant: FontStyle.L2_REGULAR,
2481
2489
  textColor: Theme.CONTENT_PRIMARY
@@ -2490,7 +2498,7 @@ const Topic = ({
2490
2498
  ))
2491
2499
  );
2492
2500
  };
2493
- const styles$h = StyleSheet.create({
2501
+ const styles$g = StyleSheet.create({
2494
2502
  button: {
2495
2503
  flexDirection: "row",
2496
2504
  alignItems: "center",
@@ -2584,14 +2592,14 @@ const ContactModal = ({
2584
2592
  const renderEmailOptions = () => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
2585
2593
  CustomText$1,
2586
2594
  {
2587
- style: styles$g.title,
2595
+ style: styles$f.title,
2588
2596
  text: "Open email app",
2589
2597
  variant: "L2_REGULAR"
2590
2598
  }
2591
2599
  ), /* @__PURE__ */ React.createElement(
2592
2600
  CustomText$1,
2593
2601
  {
2594
- style: styles$g.subtitle,
2602
+ style: styles$f.subtitle,
2595
2603
  text: "Which app would you like to open?",
2596
2604
  variant: "L2_REGULAR"
2597
2605
  }
@@ -2599,33 +2607,33 @@ const ContactModal = ({
2599
2607
  Pressable,
2600
2608
  {
2601
2609
  onPress: () => handleOptionPress(),
2602
- style: styles$g.optionButton
2610
+ style: styles$f.optionButton
2603
2611
  },
2604
2612
  /* @__PURE__ */ React.createElement(
2605
2613
  CustomText$1,
2606
2614
  {
2607
- style: styles$g.optionText,
2615
+ style: styles$f.optionText,
2608
2616
  text: option,
2609
2617
  variant: "B3_BOLD"
2610
2618
  }
2611
2619
  )
2612
2620
  ))));
2613
- const renderContent = () => /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(View, { style: styles$g.viewContainer }, isMailOpen ? renderEmailOptions() : /* @__PURE__ */ React.createElement(Pressable, { onPress: handleCall, style: styles$g.optionButton }, /* @__PURE__ */ React.createElement(
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(
2614
2622
  CustomText$1,
2615
2623
  {
2616
- style: styles$g.optionText,
2624
+ style: styles$f.optionText,
2617
2625
  text: `Call ${phoneNumber}`,
2618
2626
  variant: "B3_BOLD"
2619
2627
  }
2620
- ))), /* @__PURE__ */ React.createElement(Pressable, { onPress: onClose, style: styles$g.cancelButton }, /* @__PURE__ */ React.createElement(
2628
+ ))), /* @__PURE__ */ React.createElement(Pressable, { onPress: onClose, style: styles$f.cancelButton }, /* @__PURE__ */ React.createElement(
2621
2629
  CustomText$1,
2622
2630
  {
2623
- style: styles$g.cancelText,
2631
+ style: styles$f.cancelText,
2624
2632
  text: "Cancel",
2625
2633
  variant: "B2_REGULAR"
2626
2634
  }
2627
2635
  )));
2628
- return /* @__PURE__ */ React.createElement(View, { style: styles$g.container }, /* @__PURE__ */ React.createElement(
2636
+ return /* @__PURE__ */ React.createElement(View, { style: styles$f.container }, /* @__PURE__ */ React.createElement(
2629
2637
  Modal,
2630
2638
  {
2631
2639
  animationType: "slide",
@@ -2633,10 +2641,10 @@ const ContactModal = ({
2633
2641
  visible,
2634
2642
  onRequestClose: onClose
2635
2643
  },
2636
- /* @__PURE__ */ React.createElement(View, { style: styles$g.modalContainer }, /* @__PURE__ */ React.createElement(View, { style: styles$g.modalContent }, renderContent()))
2644
+ /* @__PURE__ */ React.createElement(View, { style: styles$f.modalContainer }, /* @__PURE__ */ React.createElement(View, { style: styles$f.modalContent }, renderContent()))
2637
2645
  ));
2638
2646
  };
2639
- const styles$g = StyleSheet.create({
2647
+ const styles$f = StyleSheet.create({
2640
2648
  container: {
2641
2649
  flex: 1,
2642
2650
  justifyContent: "center",
@@ -2692,7 +2700,7 @@ const styles$g = StyleSheet.create({
2692
2700
  });
2693
2701
  var ContactModel = withThemeProvider(ContactModal);
2694
2702
 
2695
- const styles$f = StyleSheet.create({
2703
+ const styles$e = StyleSheet.create({
2696
2704
  applyButton: {
2697
2705
  marginTop: verticalScale(24),
2698
2706
  height: verticalScale(48),
@@ -2783,7 +2791,7 @@ const DateRangePicker = (props) => {
2783
2791
  onButtonPress(selectedRange?.startDate, selectedRange?.endDate);
2784
2792
  },
2785
2793
  containerStyle: {
2786
- ...styles$f.applyButton,
2794
+ ...styles$e.applyButton,
2787
2795
  backgroundColor: theme.SURFACE_INVERTED
2788
2796
  },
2789
2797
  textStyle: { color: theme.CONTENT_INVERTED },
@@ -2810,20 +2818,20 @@ const OurOfficesButton = ({
2810
2818
  TouchableOpacity,
2811
2819
  {
2812
2820
  style: [
2813
- styles$e.button,
2821
+ styles$d.button,
2814
2822
  { backgroundColor: theme["SURFACE_SECONDARY"] },
2815
2823
  containerStyle
2816
2824
  ],
2817
2825
  onPress
2818
2826
  },
2819
- leftIcon && /* @__PURE__ */ React.createElement(View, { style: styles$e.iconContainer }, React.cloneElement(leftIcon)),
2820
- /* @__PURE__ */ React.createElement(View, { style: styles$e.textContainer }, /* @__PURE__ */ React.createElement(
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(
2821
2829
  CustomText$1,
2822
2830
  {
2823
2831
  text: title,
2824
2832
  variant: titleVariant,
2825
2833
  textColor: titleColor,
2826
- style: styles$e.textView
2834
+ style: styles$d.textView
2827
2835
  }
2828
2836
  ), /* @__PURE__ */ React.createElement(
2829
2837
  CustomText$1,
@@ -2831,13 +2839,13 @@ const OurOfficesButton = ({
2831
2839
  text: description,
2832
2840
  variant: descriptionVariant,
2833
2841
  textColor: descriptionColor,
2834
- style: styles$e.flexWrap
2842
+ style: styles$d.flexWrap
2835
2843
  }
2836
2844
  )),
2837
- rightIcon && /* @__PURE__ */ React.createElement(View, { style: styles$e.rightIconContainer }, React.cloneElement(rightIcon))
2845
+ rightIcon && /* @__PURE__ */ React.createElement(View, { style: styles$d.rightIconContainer }, React.cloneElement(rightIcon))
2838
2846
  );
2839
2847
  };
2840
- const styles$e = StyleSheet.create({
2848
+ const styles$d = StyleSheet.create({
2841
2849
  button: {
2842
2850
  flexDirection: "row",
2843
2851
  alignItems: "center",
@@ -2861,7 +2869,7 @@ const styles$e = StyleSheet.create({
2861
2869
  });
2862
2870
  var OurOffices = withThemeProvider(OurOfficesButton);
2863
2871
 
2864
- const styles$d = StyleSheet.create({
2872
+ const styles$c = StyleSheet.create({
2865
2873
  iconContainer: {
2866
2874
  position: "relative",
2867
2875
  alignItems: "center"
@@ -2890,7 +2898,7 @@ const NotificationBandge = ({
2890
2898
  if (notificationCount <= 0) {
2891
2899
  return icon;
2892
2900
  }
2893
- return /* @__PURE__ */ React.createElement(View, { style: styles$d.iconContainer }, icon, /* @__PURE__ */ React.createElement(View, { style: styles$d.badge }, /* @__PURE__ */ React.createElement(Text, { style: [styles$d.badgeText] }, notificationCount > 99 ? "99+" : notificationCount)));
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)));
2894
2902
  };
2895
2903
 
2896
2904
  const ScrollableList = ({
@@ -2908,13 +2916,13 @@ const ScrollableList = ({
2908
2916
  data && data.length > 0 ? data[0].name : null
2909
2917
  );
2910
2918
  const { theme } = useTheme();
2911
- return /* @__PURE__ */ React.createElement(View, { style: [styles$c.container, containerStyle] }, /* @__PURE__ */ React.createElement(
2919
+ return /* @__PURE__ */ React.createElement(View, { style: [styles$b.container, containerStyle] }, /* @__PURE__ */ React.createElement(
2912
2920
  ScrollView,
2913
2921
  {
2914
2922
  horizontal: true,
2915
2923
  showsHorizontalScrollIndicator: false,
2916
2924
  contentContainerStyle: [
2917
- styles$c.scrollViewContent,
2925
+ styles$b.scrollViewContent,
2918
2926
  scrollViewContentStyle
2919
2927
  ]
2920
2928
  },
@@ -2923,10 +2931,10 @@ const ScrollableList = ({
2923
2931
  {
2924
2932
  key: item.value,
2925
2933
  style: [
2926
- styles$c.item,
2934
+ styles$b.item,
2927
2935
  itemStyle,
2928
2936
  (activeTab ?? selectedItem) === item.name && [
2929
- styles$c.selectedItem,
2937
+ styles$b.selectedItem,
2930
2938
  selectedItemStyle
2931
2939
  ]
2932
2940
  ],
@@ -2947,7 +2955,7 @@ const ScrollableList = ({
2947
2955
  View,
2948
2956
  {
2949
2957
  style: [
2950
- styles$c.errorViewStyle,
2958
+ styles$b.errorViewStyle,
2951
2959
  {
2952
2960
  backgroundColor: theme.SURFACE_BRAND_STATIC
2953
2961
  }
@@ -2957,7 +2965,7 @@ const ScrollableList = ({
2957
2965
  ))
2958
2966
  ));
2959
2967
  };
2960
- const styles$c = StyleSheet.create({
2968
+ const styles$b = StyleSheet.create({
2961
2969
  container: {
2962
2970
  paddingVertical: 10
2963
2971
  },
@@ -2984,64 +2992,76 @@ const styles$c = StyleSheet.create({
2984
2992
  });
2985
2993
  var category = withThemeProvider(ScrollableList);
2986
2994
 
2987
- const styles$b = StyleSheet.create({
2988
- container: {
2989
- flex: 1,
2990
- backgroundColor: "black",
2991
- padding: 20,
2992
- justifyContent: "center"
2993
- },
2994
- headerText: {
2995
- color: "white",
2996
- fontSize: 18,
2997
- fontWeight: "bold",
2998
- marginBottom: 20
2999
- },
3000
- textInput: {
3001
- backgroundColor: "white",
3002
- borderRadius: 10,
3003
- padding: 15,
3004
- color: "black",
3005
- fontSize: 16,
3006
- textAlignVertical: "top",
3007
- minHeight: 100
3008
- },
3009
- charCounter: {
3010
- textAlign: "left",
3011
- marginTop: 10
3012
- },
3013
- buttonContainer: {
3014
- flexDirection: "row",
3015
- //justifyContent: "space-between",
3016
- marginTop: 20
3017
- },
3018
- feedbackButton: {
3019
- backgroundColor: "transparent",
3020
- borderColor: "white",
3021
- borderWidth: 1,
3022
- paddingVertical: 10,
3023
- paddingHorizontal: 20,
3024
- borderRadius: 30
3025
- },
3026
- cancelButton: {
3027
- paddingVertical: 10,
3028
- paddingHorizontal: 40
3029
- }
3030
- });
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
+ };
3031
3038
 
3032
3039
  const FeedbackForm = ({
3033
3040
  title,
3034
3041
  clearAllData,
3035
3042
  handleSendFeedback,
3036
3043
  feedback,
3044
+ inputText,
3045
+ rightBtnTxt,
3046
+ leftBtnTxt,
3037
3047
  setFeedback
3038
3048
  }) => {
3039
3049
  const maxChars = 200;
3040
- return /* @__PURE__ */ React.createElement(View, { style: styles$b.container }, /* @__PURE__ */ React.createElement(Text, { style: styles$b.headerText }, title), /* @__PURE__ */ React.createElement(
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(
3041
3061
  TextInput,
3042
3062
  {
3043
- style: [styles$b.textInput, { height: Math.max(100) }],
3044
- placeholder: "Would you like to tell us more...",
3063
+ style: [styles.textInput, { height: Math.max(100) }],
3064
+ placeholder: inputText,
3045
3065
  placeholderTextColor: "gray",
3046
3066
  multiline: true,
3047
3067
  maxLength: maxChars,
@@ -3052,26 +3072,27 @@ const FeedbackForm = ({
3052
3072
  CustomText$1,
3053
3073
  {
3054
3074
  text: `${feedback.length}/${maxChars} characters`,
3055
- variant: "L2_REGULAR",
3056
- textColor: "CONTENT_SECONDRY",
3057
- style: styles$b.charCounter
3075
+ variant: FontStyle$1.L2_REGULAR,
3076
+ textColor: Theme$1.CONTENT_SECONDRY,
3077
+ style: styles.charCounter
3058
3078
  }
3059
- ), /* @__PURE__ */ React.createElement(View, { style: styles$b.buttonContainer }, /* @__PURE__ */ React.createElement(Pressable, { style: styles$b.feedbackButton, onPress: handleSendFeedback }, /* @__PURE__ */ React.createElement(
3079
+ ), /* @__PURE__ */ React.createElement(View, { style: styles.buttonContainer }, /* @__PURE__ */ React.createElement(Pressable, { style: styles.feedbackButton, onPress: handleSendFeedback }, /* @__PURE__ */ React.createElement(
3060
3080
  CustomText$1,
3061
3081
  {
3062
- text: "Send feedback",
3063
- variant: "L1_REGULAR",
3064
- textColor: "CONTENT_PRIMARY"
3082
+ text: leftBtnTxt,
3083
+ variant: FontStyle$1.L1_REGULAR,
3084
+ textColor: Theme$1.CONTENT_PRIMARY
3065
3085
  }
3066
- )), /* @__PURE__ */ React.createElement(Pressable, { style: styles$b.cancelButton, onPress: clearAllData }, /* @__PURE__ */ React.createElement(
3086
+ )), /* @__PURE__ */ React.createElement(Pressable, { style: styles.cancelButton, onPress: clearAllData }, /* @__PURE__ */ React.createElement(
3067
3087
  CustomText$1,
3068
3088
  {
3069
- text: "Cancel",
3070
- variant: "L1_REGULAR",
3071
- textColor: "CONTENT_PRIMARY"
3089
+ text: rightBtnTxt,
3090
+ variant: FontStyle$1.L1_REGULAR,
3091
+ textColor: Theme$1.CONTENT_PRIMARY
3072
3092
  }
3073
3093
  ))));
3074
3094
  };
3095
+ var feedback = withThemeProvider$1(FeedbackForm);
3075
3096
 
3076
3097
  const DEFAULT_COUNTRY_CODE = "AE";
3077
3098
  const DEFAULT_CALLING_CODE = "+971";
@@ -4386,5 +4407,5 @@ const PropertyDetails = ({
4386
4407
  };
4387
4408
  var index = withThemeProvider(PropertyDetails);
4388
4409
 
4389
- 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 };
4390
4411
  //# sourceMappingURL=index.mjs.map