dhre-ui-kit 0.0.166 → 0.0.167

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
@@ -1,6 +1,6 @@
1
1
  import React, { createContext, useContext, useState, useEffect, useRef, memo, useCallback } from 'react';
2
2
  import { useSelector } from 'react-redux';
3
- import { Dimensions, StyleSheet, Text, Pressable, View, Modal, KeyboardAvoidingView, Platform, TextInput, ScrollView, Animated, FlatList, ActivityIndicator, TouchableOpacity, Alert, Linking, PanResponder } from 'react-native';
3
+ import { Dimensions, StyleSheet, Text, Pressable, View, Modal, KeyboardAvoidingView, Platform, ActivityIndicator, TextInput, ScrollView, Animated, FlatList, 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 'react-native-walkthrough-tooltip';
@@ -698,6 +698,24 @@ const BottomDrawer = ({
698
698
  );
699
699
  };
700
700
 
701
+ const styles$y = StyleSheet.create({
702
+ container: {
703
+ flex: 1,
704
+ justifyContent: "center",
705
+ alignItems: "center",
706
+ backgroundColor: "transparent",
707
+ position: "absolute",
708
+ width: "100%",
709
+ height: "100%",
710
+ zIndex: 1e3
711
+ }
712
+ });
713
+
714
+ const CustomLoader = ({ loading }) => {
715
+ if (!loading) return null;
716
+ return /* @__PURE__ */ React.createElement(View, { style: styles$y.container }, /* @__PURE__ */ React.createElement(ActivityIndicator, { size: "large", color: "#686868" }));
717
+ };
718
+
701
719
  const CustomButton = ({
702
720
  title,
703
721
  testID,
@@ -712,7 +730,8 @@ const CustomButton = ({
712
730
  imagePosition = "right",
713
731
  disabled = false,
714
732
  disabledColor,
715
- disableButtonTitleColor
733
+ disableButtonTitleColor,
734
+ isLoading = false
716
735
  }) => {
717
736
  const { theme } = useTheme();
718
737
  return /* @__PURE__ */ React.createElement(
@@ -720,8 +739,11 @@ const CustomButton = ({
720
739
  {
721
740
  testID,
722
741
  style: [
723
- styles$y.buttonContainer,
742
+ styles$x.buttonContainer,
724
743
  containerStyle,
744
+ {
745
+ paddingVertical: isLoading ? verticalScale(22) : verticalScale(14)
746
+ },
725
747
  disabled ? {
726
748
  backgroundColor: disabledColor ? disabledColor : theme.SURFACE_DISABLE
727
749
  } : {}
@@ -730,7 +752,7 @@ const CustomButton = ({
730
752
  disabled
731
753
  },
732
754
  imagePosition === "left" && leftIcon && /* @__PURE__ */ React.createElement(View, { style: iconStyle }, React.cloneElement(leftIcon, { width: 20, height: 20 })),
733
- /* @__PURE__ */ React.createElement(
755
+ isLoading ? /* @__PURE__ */ React.createElement(CustomLoader, { loading: isLoading }) : /* @__PURE__ */ React.createElement(
734
756
  CustomText$1,
735
757
  {
736
758
  text: title,
@@ -738,7 +760,7 @@ const CustomButton = ({
738
760
  style: [
739
761
  textStyle,
740
762
  disabled ? {
741
- color: disableButtonTitleColor ? disableButtonTitleColor : theme.CONTENT_DISABLE
763
+ color: disableButtonTitleColor ? disableButtonTitleColor : "white"
742
764
  } : {}
743
765
  ],
744
766
  textColor: titleColor
@@ -747,7 +769,7 @@ const CustomButton = ({
747
769
  imagePosition === "right" && rightIcon && /* @__PURE__ */ React.createElement(View, { style: iconStyle }, React.cloneElement(rightIcon, { width: 20, height: 20 }))
748
770
  );
749
771
  };
750
- const styles$y = StyleSheet.create({
772
+ const styles$x = StyleSheet.create({
751
773
  buttonContainer: {
752
774
  flexDirection: "row",
753
775
  alignItems: "center",
@@ -759,7 +781,7 @@ const styles$y = StyleSheet.create({
759
781
  });
760
782
  var CustomButton$1 = withThemeProvider(CustomButton);
761
783
 
762
- const styles$x = StyleSheet.create({
784
+ const styles$w = StyleSheet.create({
763
785
  container: {
764
786
  padding: horizontalScale(20),
765
787
  marginHorizontal: horizontalScale(16),
@@ -824,53 +846,53 @@ const Cards = ({
824
846
  testID,
825
847
  onButtonPress
826
848
  }) => {
827
- return /* @__PURE__ */ React.createElement(View, { testID, style: styles$x.container }, topLeftTitle ? /* @__PURE__ */ React.createElement(View, { style: styles$x.topLeft }, /* @__PURE__ */ React.createElement(
849
+ return /* @__PURE__ */ React.createElement(View, { testID, style: styles$w.container }, topLeftTitle ? /* @__PURE__ */ React.createElement(View, { style: styles$w.topLeft }, /* @__PURE__ */ React.createElement(
828
850
  CustomTypography,
829
851
  {
830
852
  variant: "P2regular",
831
- style: styles$x.title,
853
+ style: styles$w.title,
832
854
  text: topLeftTitle
833
855
  }
834
856
  )) : null, title ? /* @__PURE__ */ React.createElement(
835
857
  CustomTypography,
836
858
  {
837
859
  variant: "H6bold",
838
- style: styles$x.subTitleBelow,
860
+ style: styles$w.subTitleBelow,
839
861
  text: title
840
862
  }
841
863
  ) : null, subtitle ? /* @__PURE__ */ React.createElement(
842
864
  CustomTypography,
843
865
  {
844
866
  variant: "P3regular",
845
- style: styles$x.subtitle,
867
+ style: styles$w.subtitle,
846
868
  text: subtitle
847
869
  }
848
- ) : null, /* @__PURE__ */ React.createElement(View, { style: styles$x.leftBottomView }, iconSource ? iconSource : null, iconTitle ? /* @__PURE__ */ React.createElement(
870
+ ) : null, /* @__PURE__ */ React.createElement(View, { style: styles$w.leftBottomView }, iconSource ? iconSource : null, iconTitle ? /* @__PURE__ */ React.createElement(
849
871
  CustomTypography,
850
872
  {
851
873
  variant: "P3regular",
852
- style: styles$x.subTitleLeftBelow,
874
+ style: styles$w.subTitleLeftBelow,
853
875
  text: iconTitle
854
876
  }
855
877
  ) : null), buttonShown ? /* @__PURE__ */ React.createElement(
856
878
  Pressable,
857
879
  {
858
880
  testID: "Button-Press",
859
- style: styles$x.button,
881
+ style: styles$w.button,
860
882
  onPress: onButtonPress
861
883
  },
862
884
  /* @__PURE__ */ React.createElement(
863
885
  CustomTypography,
864
886
  {
865
887
  variant: "B2semiBold",
866
- style: styles$x.buttonText,
888
+ style: styles$w.buttonText,
867
889
  text: buttonText
868
890
  }
869
891
  )
870
892
  ) : null);
871
893
  };
872
894
 
873
- const styles$w = StyleSheet.create({
895
+ const styles$v = StyleSheet.create({
874
896
  checkboxContainer: {
875
897
  alignItems: "center",
876
898
  justifyContent: "center"
@@ -926,9 +948,9 @@ const Checkbox = ({
926
948
  testID: "Checkbox-Press",
927
949
  onPress: handlePress,
928
950
  disabled: disable,
929
- style: styles$w.directionStyle
951
+ style: styles$v.directionStyle
930
952
  },
931
- /* @__PURE__ */ React.createElement(View, { style: styles$w.checkboxContainer }, React.cloneElement(checked ? checkedIcon : uncheckedIcon)),
953
+ /* @__PURE__ */ React.createElement(View, { style: styles$v.checkboxContainer }, React.cloneElement(checked ? checkedIcon : uncheckedIcon)),
932
954
  /* @__PURE__ */ React.createElement(
933
955
  CustomTypography,
934
956
  {
@@ -940,7 +962,7 @@ const Checkbox = ({
940
962
  ));
941
963
  };
942
964
 
943
- const styles$v = StyleSheet.create({
965
+ const styles$u = StyleSheet.create({
944
966
  labelStyle: {
945
967
  color: DHRE_COLORS_TEXT.DH_TEXTLIGHT
946
968
  },
@@ -994,26 +1016,26 @@ const CustomDropdown$1 = ({
994
1016
  CustomTypography,
995
1017
  {
996
1018
  variant: "P3regular",
997
- style: styles$v.labelStyle,
1019
+ style: styles$u.labelStyle,
998
1020
  text: label
999
1021
  }
1000
1022
  ), /* @__PURE__ */ React.createElement(
1001
1023
  Pressable,
1002
1024
  {
1003
1025
  testID: `${testId}-BTN`,
1004
- style: styles$v.dropDownStyle,
1026
+ style: styles$u.dropDownStyle,
1005
1027
  onPress: () => setShowOptions(!showOptions)
1006
1028
  },
1007
1029
  iconName && /* @__PURE__ */ React.createElement(View, { style: iconStyle }, React.cloneElement(iconName, {
1008
1030
  width: moderateScale(24),
1009
1031
  height: moderateScale(24),
1010
- style: styles$v.iconStyle
1032
+ style: styles$u.iconStyle
1011
1033
  })),
1012
1034
  /* @__PURE__ */ React.createElement(
1013
1035
  CustomTypography,
1014
1036
  {
1015
1037
  variant: "P3regular",
1016
- style: styles$v.selectedValueStyle,
1038
+ style: styles$u.selectedValueStyle,
1017
1039
  text: selectedValue ? selectedValue.label : placeholder
1018
1040
  }
1019
1041
  ),
@@ -1024,7 +1046,7 @@ const CustomDropdown$1 = ({
1024
1046
  width: moderateScale(24),
1025
1047
  height: moderateScale(24)
1026
1048
  }))
1027
- ), showOptions && /* @__PURE__ */ React.createElement(View, { style: styles$v.optionContainer }, options?.map(({ id, value, label: label2 }) => /* @__PURE__ */ React.createElement(
1049
+ ), showOptions && /* @__PURE__ */ React.createElement(View, { style: styles$u.optionContainer }, options?.map(({ id, value, label: label2 }) => /* @__PURE__ */ React.createElement(
1028
1050
  Pressable,
1029
1051
  {
1030
1052
  key: id,
@@ -1034,7 +1056,7 @@ const CustomDropdown$1 = ({
1034
1056
  oneSelect({ id, value, label: label2 });
1035
1057
  },
1036
1058
  style: [
1037
- styles$v.item,
1059
+ styles$u.item,
1038
1060
  {
1039
1061
  backgroundColor: id === selectedValue?.id ? DHRE_COLORS_BG.DH_GREY1 : DHRE_COLORS_TEXT.DH_WHITE
1040
1062
  }
@@ -1043,7 +1065,7 @@ const CustomDropdown$1 = ({
1043
1065
  iconName && /* @__PURE__ */ React.createElement(View, { style: iconStyle }, React.cloneElement(iconName, {
1044
1066
  width: moderateScale(24),
1045
1067
  height: moderateScale(24),
1046
- style: styles$v.iconStyle
1068
+ style: styles$u.iconStyle
1047
1069
  })),
1048
1070
  /* @__PURE__ */ React.createElement(
1049
1071
  CustomTypography,
@@ -1058,7 +1080,7 @@ const CustomDropdown$1 = ({
1058
1080
  ))));
1059
1081
  };
1060
1082
 
1061
- const styles$u = StyleSheet.create({
1083
+ const styles$t = StyleSheet.create({
1062
1084
  labelStyle: {
1063
1085
  color: DHRE_COLORS_TEXT.DH_TEXTDARK
1064
1086
  },
@@ -1140,18 +1162,18 @@ const CustomTextInput = ({
1140
1162
  CustomTypography,
1141
1163
  {
1142
1164
  variant: "P3medium",
1143
- style: [styles$u.labelStyle, disabled && styles$u.disableTextStyle],
1165
+ style: [styles$t.labelStyle, disabled && styles$t.disableTextStyle],
1144
1166
  text: label
1145
1167
  }
1146
1168
  ), /* @__PURE__ */ React.createElement(
1147
1169
  View,
1148
1170
  {
1149
1171
  style: [
1150
- styles$u.inputContainer,
1151
- isFocused && styles$u.inputFocused,
1152
- error && styles$u.inputError,
1153
- disabled && styles$u.disableInputStyle,
1154
- successMessage ? styles$u.inputSucess : {},
1172
+ styles$t.inputContainer,
1173
+ isFocused && styles$t.inputFocused,
1174
+ error && styles$t.inputError,
1175
+ disabled && styles$t.disableInputStyle,
1176
+ successMessage ? styles$t.inputSucess : {},
1155
1177
  {
1156
1178
  height: multiline ? 120 : 48,
1157
1179
  alignItems: multiline ? "flex-start" : "center"
@@ -1161,7 +1183,7 @@ const CustomTextInput = ({
1161
1183
  isSearchBar && searchIcon && React.cloneElement(searchIcon, {
1162
1184
  width: moderateScale(24),
1163
1185
  height: moderateScale(24),
1164
- style: styles$u.searchIconStyle
1186
+ style: styles$t.searchIconStyle
1165
1187
  }),
1166
1188
  /* @__PURE__ */ React.createElement(
1167
1189
  TextInput,
@@ -1169,7 +1191,7 @@ const CustomTextInput = ({
1169
1191
  ...props,
1170
1192
  onFocus,
1171
1193
  onBlur,
1172
- style: styles$u.input,
1194
+ style: styles$t.input,
1173
1195
  placeholderTextColor: DHRE_COLORS_TEXT.DH_TEXTLIGHTEST,
1174
1196
  editable: !disabled,
1175
1197
  value,
@@ -1225,7 +1247,7 @@ const CustomTooltip = ({
1225
1247
  );
1226
1248
  };
1227
1249
 
1228
- const styles$t = StyleSheet.create({
1250
+ const styles$s = StyleSheet.create({
1229
1251
  container: {
1230
1252
  backgroundColor: DHRE_COLORS_TEXT.DH_BLACK,
1231
1253
  paddingHorizontal: horizontalScale(16),
@@ -1275,21 +1297,21 @@ const FileUpload = ({
1275
1297
  return /* @__PURE__ */ React.createElement(
1276
1298
  View,
1277
1299
  {
1278
- style: [styles$t.container, containerStyle],
1300
+ style: [styles$s.container, containerStyle],
1279
1301
  testID: "file-upload-container"
1280
1302
  },
1281
- /* @__PURE__ */ React.createElement(View, { style: styles$t.content }, /* @__PURE__ */ React.createElement(View, { style: [uploadImageStyling], testID: "file-upload-image" }, icon && React.cloneElement(icon, { style: [iconStyle] })), /* @__PURE__ */ React.createElement(CustomTypography, { variant: "H8bold", style: styles$t.title, text: title }), /* @__PURE__ */ React.createElement(
1303
+ /* @__PURE__ */ React.createElement(View, { style: styles$s.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$s.title, text: title }), /* @__PURE__ */ React.createElement(
1282
1304
  CustomTypography,
1283
1305
  {
1284
1306
  variant: "P4regular",
1285
- style: styles$t.description,
1307
+ style: styles$s.description,
1286
1308
  text: `Drop files directly here or `
1287
1309
  }
1288
1310
  ), /* @__PURE__ */ React.createElement(
1289
1311
  CustomTypography,
1290
1312
  {
1291
1313
  variant: "P4regular",
1292
- style: styles$t.browse,
1314
+ style: styles$s.browse,
1293
1315
  text: btnText
1294
1316
  }
1295
1317
  ), /* @__PURE__ */ React.createElement(
@@ -1297,14 +1319,14 @@ const FileUpload = ({
1297
1319
  {
1298
1320
  testID: "file-upload-description",
1299
1321
  variant: "P4regular",
1300
- style: styles$t.description,
1322
+ style: styles$s.description,
1301
1323
  text: ` from your device`
1302
1324
  }
1303
1325
  )),
1304
1326
  /* @__PURE__ */ React.createElement(
1305
1327
  Pressable,
1306
1328
  {
1307
- style: styles$t.button,
1329
+ style: styles$s.button,
1308
1330
  onPress: onUpload,
1309
1331
  testID: "file-upload-button"
1310
1332
  },
@@ -1312,7 +1334,7 @@ const FileUpload = ({
1312
1334
  CustomTypography,
1313
1335
  {
1314
1336
  variant: "B2semiBold",
1315
- style: styles$t.buttonText,
1337
+ style: styles$s.buttonText,
1316
1338
  text: btnText
1317
1339
  }
1318
1340
  )
@@ -1324,7 +1346,7 @@ const PdfView = (props) => {
1324
1346
  return /* @__PURE__ */ React.createElement(Pdf, { ...props });
1325
1347
  };
1326
1348
 
1327
- const styles$s = StyleSheet.create({
1349
+ const styles$r = StyleSheet.create({
1328
1350
  container: {
1329
1351
  padding: horizontalScale(20),
1330
1352
  marginHorizontal: horizontalScale(16),
@@ -1380,39 +1402,39 @@ const PopUp = ({
1380
1402
  leftButtonShown = false,
1381
1403
  rightButtonShown = false
1382
1404
  }) => {
1383
- return /* @__PURE__ */ React.createElement(View, { testID, style: styles$s.container }, title ? /* @__PURE__ */ React.createElement(
1405
+ return /* @__PURE__ */ React.createElement(View, { testID, style: styles$r.container }, title ? /* @__PURE__ */ React.createElement(
1384
1406
  CustomTypography,
1385
1407
  {
1386
- style: styles$s.subTitleBelow,
1408
+ style: styles$r.subTitleBelow,
1387
1409
  variant: "H6semiBold",
1388
1410
  text: title
1389
1411
  }
1390
1412
  ) : null, subtitle ? /* @__PURE__ */ React.createElement(
1391
1413
  CustomTypography,
1392
1414
  {
1393
- style: styles$s.subtitle,
1415
+ style: styles$r.subtitle,
1394
1416
  variant: "P3regular",
1395
1417
  text: subtitle
1396
1418
  }
1397
- ) : null, /* @__PURE__ */ React.createElement(View, { style: styles$s.buttonContainer }, leftButtonShown ? /* @__PURE__ */ React.createElement(
1419
+ ) : null, /* @__PURE__ */ React.createElement(View, { style: styles$r.buttonContainer }, leftButtonShown ? /* @__PURE__ */ React.createElement(
1398
1420
  Pressable,
1399
1421
  {
1400
1422
  testID: "Left-Button-Press",
1401
- style: styles$s.buttonLeft,
1423
+ style: styles$r.buttonLeft,
1402
1424
  onPress: onButtonPress
1403
1425
  },
1404
1426
  /* @__PURE__ */ React.createElement(
1405
1427
  CustomTypography,
1406
1428
  {
1407
- style: styles$s.buttonLeftText,
1429
+ style: styles$r.buttonLeftText,
1408
1430
  variant: "B2semiBold",
1409
1431
  text: buttonText
1410
1432
  }
1411
1433
  )
1412
- ) : null, rightButtonShown ? /* @__PURE__ */ React.createElement(Pressable, { style: styles$s.button, onPress: onButtonPress }, /* @__PURE__ */ React.createElement(
1434
+ ) : null, rightButtonShown ? /* @__PURE__ */ React.createElement(Pressable, { style: styles$r.button, onPress: onButtonPress }, /* @__PURE__ */ React.createElement(
1413
1435
  CustomTypography,
1414
1436
  {
1415
- style: styles$s.buttonText,
1437
+ style: styles$r.buttonText,
1416
1438
  variant: "B2semiBold",
1417
1439
  text: buttonText
1418
1440
  }
@@ -1450,7 +1472,7 @@ const CustomProgressBar = ({
1450
1472
  return () => clearInterval(progressInterval);
1451
1473
  }, [progress, value, increment, interval]);
1452
1474
  const showPercentage = () => {
1453
- return /* @__PURE__ */ React.createElement(View, { style: styles$r.flexDirection }, /* @__PURE__ */ React.createElement(
1475
+ return /* @__PURE__ */ React.createElement(View, { style: styles$q.flexDirection }, /* @__PURE__ */ React.createElement(
1454
1476
  CustomText$1,
1455
1477
  {
1456
1478
  text: `${value}%`,
@@ -1504,7 +1526,7 @@ const CustomProgressBar = ({
1504
1526
  };
1505
1527
  return /* @__PURE__ */ React.createElement(View, { testID: "custom-progress-bar" }, renderProgressBar());
1506
1528
  };
1507
- const styles$r = StyleSheet.create({
1529
+ const styles$q = StyleSheet.create({
1508
1530
  flexDirection: {
1509
1531
  flexDirection: "column",
1510
1532
  justifyContent: "center",
@@ -1512,7 +1534,7 @@ const styles$r = StyleSheet.create({
1512
1534
  }
1513
1535
  });
1514
1536
 
1515
- const styles$q = StyleSheet.create({
1537
+ const styles$p = StyleSheet.create({
1516
1538
  container: {
1517
1539
  flexDirection: "row",
1518
1540
  alignItems: "center"
@@ -1578,13 +1600,13 @@ const Star = ({
1578
1600
  emptyStarColor
1579
1601
  );
1580
1602
  stars.push(
1581
- /* @__PURE__ */ React.createElement(View, { key: i, style: [styles$q.star, starStyle] }, starType)
1603
+ /* @__PURE__ */ React.createElement(View, { key: i, style: [styles$p.star, starStyle] }, starType)
1582
1604
  );
1583
1605
  }
1584
- return /* @__PURE__ */ React.createElement(View, { style: styles$q.container, testID: "star" }, stars);
1606
+ return /* @__PURE__ */ React.createElement(View, { style: styles$p.container, testID: "star" }, stars);
1585
1607
  };
1586
1608
 
1587
- var styles$p = StyleSheet.create({
1609
+ var styles$o = StyleSheet.create({
1588
1610
  container: {
1589
1611
  flexDirection: "row",
1590
1612
  gap: horizontalScale(5),
@@ -1626,12 +1648,12 @@ const Tabs = ({
1626
1648
  onSelectionChange(selectedTabs);
1627
1649
  }
1628
1650
  };
1629
- return /* @__PURE__ */ React.createElement(View, { style: [styles$p.container, style] }, data?.map(({ id, title, isSelected }) => /* @__PURE__ */ React.createElement(
1651
+ return /* @__PURE__ */ React.createElement(View, { style: [styles$o.container, style] }, data?.map(({ id, title, isSelected }) => /* @__PURE__ */ React.createElement(
1630
1652
  Pressable,
1631
1653
  {
1632
1654
  key: id,
1633
1655
  style: {
1634
- ...styles$p.button,
1656
+ ...styles$o.button,
1635
1657
  backgroundColor: isSelected ? theme.CONTENT_PRIMARY : theme.CONTENT_INVERTED,
1636
1658
  borderColor: isSelected ? theme.CONTENT_INVERTED : theme.CONTENT_SECONDRY
1637
1659
  },
@@ -1651,7 +1673,7 @@ const Tabs = ({
1651
1673
  };
1652
1674
  var Tabs$1 = withThemeProvider(Tabs);
1653
1675
 
1654
- const styles$o = StyleSheet.create({
1676
+ const styles$n = StyleSheet.create({
1655
1677
  container: {
1656
1678
  width: "100%"
1657
1679
  },
@@ -1710,8 +1732,8 @@ const Tags = ({
1710
1732
  ScrollView,
1711
1733
  {
1712
1734
  testID,
1713
- style: styles$o.container,
1714
- contentContainerStyle: styles$o.contentContainer,
1735
+ style: styles$n.container,
1736
+ contentContainerStyle: styles$n.contentContainer,
1715
1737
  horizontal: false
1716
1738
  },
1717
1739
  tags?.map((tag) => /* @__PURE__ */ React.createElement(
@@ -1721,16 +1743,16 @@ const Tags = ({
1721
1743
  key: tag,
1722
1744
  onPress: () => toggleTag(tag),
1723
1745
  style: [
1724
- styles$o.tag,
1746
+ styles$n.tag,
1725
1747
  tagStyles,
1726
- selectedTags.includes(tag) ? styles$o.selectedTag : styles$o.tagUnSelected
1748
+ selectedTags.includes(tag) ? styles$n.selectedTag : styles$n.tagUnSelected
1727
1749
  ]
1728
1750
  },
1729
1751
  /* @__PURE__ */ React.createElement(
1730
1752
  CustomTypography,
1731
1753
  {
1732
1754
  variant: selectedTags.includes(tag) ? "H9semiBold" : "P4regular",
1733
- style: selectedTags.includes(tag) ? styles$o.tagText : styles$o.tagUnselectedText,
1755
+ style: selectedTags.includes(tag) ? styles$n.tagText : styles$n.tagUnselectedText,
1734
1756
  text: tag
1735
1757
  }
1736
1758
  ),
@@ -1746,7 +1768,7 @@ const Tags = ({
1746
1768
  );
1747
1769
  };
1748
1770
 
1749
- const styles$n = StyleSheet.create({
1771
+ const styles$m = StyleSheet.create({
1750
1772
  container: {
1751
1773
  width: horizontalScale(70),
1752
1774
  height: verticalScale(25),
@@ -1811,26 +1833,26 @@ const CustomSwitch = ({
1811
1833
  Pressable,
1812
1834
  {
1813
1835
  onPress: toggleSwitch,
1814
- style: [styles$n.container, { width }],
1836
+ style: [styles$m.container, { width }],
1815
1837
  testID: "custom-switch"
1816
1838
  },
1817
1839
  /* @__PURE__ */ React.createElement(
1818
1840
  View,
1819
1841
  {
1820
1842
  style: [
1821
- styles$n.track,
1843
+ styles$m.track,
1822
1844
  {
1823
1845
  backgroundColor: isOn ? DHRE_COLORS_ALERT.DH_SUCCESS_GREEN_ACCENT : DHRE_COLORS_TEXT.DH_TEXTDISABLED
1824
1846
  }
1825
1847
  ]
1826
1848
  },
1827
- /* @__PURE__ */ React.createElement(Animated.View, { style: [styles$n.thumb, animatedStyle] }),
1849
+ /* @__PURE__ */ React.createElement(Animated.View, { style: [styles$m.thumb, animatedStyle] }),
1828
1850
  type !== ToggleButtonType.SMALL && /* @__PURE__ */ React.createElement(
1829
1851
  CustomTypography,
1830
1852
  {
1831
1853
  variant: "B3semiBold",
1832
1854
  style: [
1833
- styles$n.text,
1855
+ styles$m.text,
1834
1856
  { textAlign: isOn ? TextDirectType.left : TextDirectType.right }
1835
1857
  ],
1836
1858
  text: isOn ? ToggleTextType.ON : ToggleTextType.OFF
@@ -1840,7 +1862,7 @@ const CustomSwitch = ({
1840
1862
  );
1841
1863
  };
1842
1864
 
1843
- const styles$m = StyleSheet.create({
1865
+ const styles$l = StyleSheet.create({
1844
1866
  container: {
1845
1867
  paddingVertical: verticalScale(24),
1846
1868
  borderBottomWidth: moderateScale(1)
@@ -1901,7 +1923,7 @@ const Accordion = ({
1901
1923
  View,
1902
1924
  {
1903
1925
  style: {
1904
- ...styles$m.container,
1926
+ ...styles$l.container,
1905
1927
  borderBottomColor: theme.BORDER_SEPRATOR,
1906
1928
  ...containerStyle
1907
1929
  },
@@ -1910,7 +1932,7 @@ const Accordion = ({
1910
1932
  /* @__PURE__ */ React.createElement(
1911
1933
  Pressable,
1912
1934
  {
1913
- style: [styles$m.header, headerStyle, disabled && { opacity: 0.5 }],
1935
+ style: [styles$l.header, headerStyle, disabled && { opacity: 0.5 }],
1914
1936
  onPress: !disabled ? onToggle : void 0
1915
1937
  },
1916
1938
  headerComponent ? headerComponent() : /* @__PURE__ */ React.createElement(
@@ -1919,7 +1941,7 @@ const Accordion = ({
1919
1941
  variant: titleVariant,
1920
1942
  text: title,
1921
1943
  style: {
1922
- ...styles$m.title,
1944
+ ...styles$l.title,
1923
1945
  color: theme.CONTENT_PRIMARY,
1924
1946
  ...titleStyle
1925
1947
  }
@@ -1928,11 +1950,11 @@ const Accordion = ({
1928
1950
  React.cloneElement(icon, {
1929
1951
  width: moderateScale(20),
1930
1952
  height: moderateScale(20),
1931
- style: styles$m.iconStyle
1953
+ style: styles$l.iconStyle
1932
1954
  })
1933
1955
  ),
1934
1956
  optionalElement ? optionalElement() : null,
1935
- isOpen && /* @__PURE__ */ React.createElement(Animated.View, { style: [styles$m.content, { height: cardHeight }] }, /* @__PURE__ */ React.createElement(
1957
+ isOpen && /* @__PURE__ */ React.createElement(Animated.View, { style: [styles$l.content, { height: cardHeight }] }, /* @__PURE__ */ React.createElement(
1936
1958
  View,
1937
1959
  {
1938
1960
  ref: contentRef,
@@ -1946,7 +1968,7 @@ const Accordion = ({
1946
1968
  };
1947
1969
  var Accordion$1 = withThemeProvider(Accordion);
1948
1970
 
1949
- const styles$l = StyleSheet.create({
1971
+ const styles$k = StyleSheet.create({
1950
1972
  container: {
1951
1973
  position: "absolute",
1952
1974
  alignSelf: "center",
@@ -2028,23 +2050,23 @@ const Toast = React.forwardRef(({ sucessIcon, errorIcon }, ref) => {
2028
2050
  Animated.View,
2029
2051
  {
2030
2052
  style: [
2031
- styles$l.container,
2053
+ styles$k.container,
2032
2054
  { bottom },
2033
2055
  { backgroundColor: isSuccess ? "#04743F" : "#DB3056" }
2034
2056
  ],
2035
2057
  testID: "TOAST"
2036
2058
  },
2037
- /* @__PURE__ */ React.createElement(View, { style: styles$l.toastContainer }, /* @__PURE__ */ React.createElement(View, { style: styles$l.innerContainer }, isSuccess ? sucessIcon : errorIcon, /* @__PURE__ */ React.createElement(
2059
+ /* @__PURE__ */ React.createElement(View, { style: styles$k.toastContainer }, /* @__PURE__ */ React.createElement(View, { style: styles$k.innerContainer }, isSuccess ? sucessIcon : errorIcon, /* @__PURE__ */ React.createElement(
2038
2060
  CustomTypography,
2039
2061
  {
2040
2062
  variant: "L2_REGULAR",
2041
2063
  text: message,
2042
- style: styles$l.messageText
2064
+ style: styles$k.messageText
2043
2065
  }
2044
2066
  ), btnText && /* @__PURE__ */ React.createElement(
2045
2067
  Pressable,
2046
2068
  {
2047
- style: styles$l.button,
2069
+ style: styles$k.button,
2048
2070
  onPress: onBtnPress || void 0,
2049
2071
  testID: "TOAST-BTN"
2050
2072
  },
@@ -2053,7 +2075,7 @@ const Toast = React.forwardRef(({ sucessIcon, errorIcon }, ref) => {
2053
2075
  {
2054
2076
  variant: "L2_BOLD",
2055
2077
  text: btnText,
2056
- style: styles$l.buttonText
2078
+ style: styles$k.buttonText
2057
2079
  }
2058
2080
  )
2059
2081
  ))),
@@ -2071,7 +2093,7 @@ const Toast = React.forwardRef(({ sucessIcon, errorIcon }, ref) => {
2071
2093
  });
2072
2094
  Toast.displayName = "Toast";
2073
2095
 
2074
- const styles$k = StyleSheet.create({
2096
+ const styles$j = StyleSheet.create({
2075
2097
  inputContainer: {
2076
2098
  flexDirection: "row",
2077
2099
  justifyContent: "center",
@@ -2117,7 +2139,7 @@ const CustomSearchBar = ({
2117
2139
  {
2118
2140
  testID,
2119
2141
  style: [
2120
- styles$k.inputContainer,
2142
+ styles$j.inputContainer,
2121
2143
  {
2122
2144
  height: verticalScale(height),
2123
2145
  borderColor: disabled ? disableBorderColor : value ? borderColor : "#A7A7A7"
@@ -2138,7 +2160,7 @@ const CustomSearchBar = ({
2138
2160
  React.cloneElement(searchIcon, {
2139
2161
  width: moderateScale(24),
2140
2162
  height: moderateScale(24),
2141
- style: [styles$k.searchIconStyle, searchIconStyle]
2163
+ style: [styles$j.searchIconStyle, searchIconStyle]
2142
2164
  })
2143
2165
  ),
2144
2166
  /* @__PURE__ */ React.createElement(
@@ -2146,7 +2168,7 @@ const CustomSearchBar = ({
2146
2168
  {
2147
2169
  ...props,
2148
2170
  testID: `${testID}-INPUT`,
2149
- style: [styles$k.input, inputStyle],
2171
+ style: [styles$j.input, inputStyle],
2150
2172
  editable: !disabled,
2151
2173
  value,
2152
2174
  placeholderTextColor: disabled ? disablePlaceHolderStyle : enablePlaceHolderStyle,
@@ -2169,13 +2191,13 @@ const CustomSearchBar = ({
2169
2191
  React.cloneElement(rightIcon, {
2170
2192
  // width: moderateScale(24),
2171
2193
  // height: moderateScale(24),
2172
- style: [styles$k.crossIconStyle, crossIconStyle]
2194
+ style: [styles$j.crossIconStyle, crossIconStyle]
2173
2195
  })
2174
2196
  )
2175
2197
  );
2176
2198
  };
2177
2199
 
2178
- const styles$j = StyleSheet.create({
2200
+ const styles$i = StyleSheet.create({
2179
2201
  container: {
2180
2202
  flexDirection: "row",
2181
2203
  justifyContent: "space-between",
@@ -2207,17 +2229,17 @@ const CustomHeader = ({
2207
2229
  View,
2208
2230
  {
2209
2231
  style: {
2210
- ...styles$j.container,
2232
+ ...styles$i.container,
2211
2233
  backgroundColor: theme.SURFACE_SECONDARY,
2212
2234
  borderBottomColor: theme.BORDER_SEPERATOR_HEADER
2213
2235
  },
2214
2236
  testID: testId
2215
2237
  },
2216
- /* @__PURE__ */ React.createElement(View, { style: styles$j.headderContainer }, showLeftIcon && leftIcon ? React.cloneElement(leftIcon, {
2238
+ /* @__PURE__ */ React.createElement(View, { style: styles$i.headderContainer }, showLeftIcon && leftIcon ? React.cloneElement(leftIcon, {
2217
2239
  width: moderateScale(24),
2218
2240
  height: moderateScale(24),
2219
2241
  onPress: onLeftPress,
2220
- style: styles$j.leftIconStyle
2242
+ style: styles$i.leftIconStyle
2221
2243
  }) : null, /* @__PURE__ */ React.createElement(
2222
2244
  CustomTypography,
2223
2245
  {
@@ -2230,13 +2252,13 @@ const CustomHeader = ({
2230
2252
  width: moderateScale(24),
2231
2253
  height: moderateScale(24),
2232
2254
  onPress: onRightPress,
2233
- style: styles$j.rightIconStyle
2255
+ style: styles$i.rightIconStyle
2234
2256
  }) : null
2235
2257
  );
2236
2258
  };
2237
2259
  var CustomHeader$1 = withThemeProvider(CustomHeader);
2238
2260
 
2239
- const styles$i = StyleSheet.create({
2261
+ const styles$h = StyleSheet.create({
2240
2262
  container: {
2241
2263
  flex: 1
2242
2264
  },
@@ -2288,19 +2310,19 @@ const SwipableList = (props) => {
2288
2310
  {
2289
2311
  testID,
2290
2312
  onPress,
2291
- style: [styles$i.actionButton, style]
2313
+ style: [styles$h.actionButton, style]
2292
2314
  },
2293
2315
  icon,
2294
2316
  /* @__PURE__ */ React.createElement(
2295
2317
  CustomTypography,
2296
2318
  {
2297
2319
  variant: "L1_REGULAR",
2298
- style: [styles$i.titleStyle, titleStyle],
2320
+ style: [styles$h.titleStyle, titleStyle],
2299
2321
  text: title
2300
2322
  }
2301
2323
  )
2302
2324
  );
2303
- const leftActionHandle = (item, leftPrimaryActionIcon, leftPrimaryActionTitle, leftSecondaryActionIcon, leftSecondaryActionTitle) => /* @__PURE__ */ React.createElement(View, { style: styles$i.actionBtn }, leftPrimaryActionIcon && /* @__PURE__ */ React.createElement(
2325
+ const leftActionHandle = (item, leftPrimaryActionIcon, leftPrimaryActionTitle, leftSecondaryActionIcon, leftSecondaryActionTitle) => /* @__PURE__ */ React.createElement(View, { style: styles$h.actionBtn }, leftPrimaryActionIcon && /* @__PURE__ */ React.createElement(
2304
2326
  ActionButton,
2305
2327
  {
2306
2328
  icon: leftPrimaryActionIcon,
@@ -2319,7 +2341,7 @@ const SwipableList = (props) => {
2319
2341
  testID: `${testId}-LEFT-SECONDARY-${item.id}`
2320
2342
  }
2321
2343
  ));
2322
- const rightActionHandle = (item) => /* @__PURE__ */ React.createElement(View, { style: [styles$i.actionBtn, rightPrimaryActionStyle] }, rightPrimaryActionIcon && /* @__PURE__ */ React.createElement(
2344
+ const rightActionHandle = (item) => /* @__PURE__ */ React.createElement(View, { style: [styles$h.actionBtn, rightPrimaryActionStyle] }, rightPrimaryActionIcon && /* @__PURE__ */ React.createElement(
2323
2345
  ActionButton,
2324
2346
  {
2325
2347
  icon: rightPrimaryActionIcon,
@@ -2329,7 +2351,7 @@ const SwipableList = (props) => {
2329
2351
  testID: `${testId}-RIGHT-PRIMARY-${item.id}`
2330
2352
  }
2331
2353
  ));
2332
- const renderItem = ({ item }) => /* @__PURE__ */ React.createElement(GestureHandlerRootView, { testID: `${testId}-LIST`, style: styles$i.container }, /* @__PURE__ */ React.createElement(
2354
+ const renderItem = ({ item }) => /* @__PURE__ */ React.createElement(GestureHandlerRootView, { testID: `${testId}-LIST`, style: styles$h.container }, /* @__PURE__ */ React.createElement(
2333
2355
  Swipeable,
2334
2356
  {
2335
2357
  renderLeftActions: () => leftActionHandle(
@@ -2353,7 +2375,7 @@ const SwipableList = (props) => {
2353
2375
  View,
2354
2376
  {
2355
2377
  style: {
2356
- ...styles$i.seperator,
2378
+ ...styles$h.seperator,
2357
2379
  backgroundColor: theme.BORDER_SEPRATOR
2358
2380
  }
2359
2381
  }
@@ -2363,7 +2385,7 @@ const SwipableList = (props) => {
2363
2385
  };
2364
2386
  var SwipableList$1 = withThemeProvider(SwipableList);
2365
2387
 
2366
- const styles$h = StyleSheet.create({
2388
+ const styles$g = StyleSheet.create({
2367
2389
  container: {
2368
2390
  justifyContent: "center",
2369
2391
  alignItems: "center"
@@ -2385,7 +2407,7 @@ const CustomIcon = ({
2385
2407
  return /* @__PURE__ */ React.createElement(
2386
2408
  Pressable,
2387
2409
  {
2388
- style: [styles$h.container, containerStyle],
2410
+ style: [styles$g.container, containerStyle],
2389
2411
  onPress,
2390
2412
  testID: testId
2391
2413
  },
@@ -2395,30 +2417,12 @@ const CustomIcon = ({
2395
2417
  {
2396
2418
  variant: titleVariant,
2397
2419
  text: title,
2398
- style: [styles$h.title, titleStyle]
2420
+ style: [styles$g.title, titleStyle]
2399
2421
  }
2400
2422
  )
2401
2423
  );
2402
2424
  };
2403
2425
 
2404
- const styles$g = StyleSheet.create({
2405
- container: {
2406
- flex: 1,
2407
- justifyContent: "center",
2408
- alignItems: "center",
2409
- backgroundColor: "transparent",
2410
- position: "absolute",
2411
- width: "100%",
2412
- height: "100%",
2413
- zIndex: 1e3
2414
- }
2415
- });
2416
-
2417
- const CustomLoader = ({ loading }) => {
2418
- if (!loading) return null;
2419
- return /* @__PURE__ */ React.createElement(View, { style: styles$g.container }, /* @__PURE__ */ React.createElement(ActivityIndicator, { size: "large", color: "#686868" }));
2420
- };
2421
-
2422
2426
  const HorizontalLine = ({ backgroundColor = "SURFACE_SECONDARY", style }) => {
2423
2427
  const { theme } = useTheme();
2424
2428
  return /* @__PURE__ */ React.createElement(