dhre-ui-kit 0.0.138 → 0.0.140

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,11 +6,7 @@ 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';
10
9
  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';
14
10
  import CountryPicker from 'react-native-country-picker-modal';
15
11
  import { TextInput as TextInput$1 } from 'react-native-paper';
16
12
  import { Dropdown } from 'react-native-element-dropdown';
@@ -221,8 +217,8 @@ const theme = {
221
217
  dark: "#404040"
222
218
  },
223
219
  [Theme.BORDER_SEPRATOR]: {
224
- light: "#F5F5F5",
225
- dark: "#282828"
220
+ light: "#0000001A",
221
+ dark: "#404040"
226
222
  },
227
223
  [Theme.BORDER_SEPERATOR_HEADER]: {
228
224
  light: "#E1E1E1",
@@ -627,7 +623,7 @@ const styles$C = StyleSheet.create({
627
623
  alignItems: "center",
628
624
  marginTop: verticalScale(24)
629
625
  },
630
- title: { flex: 1, color: "#fff" },
626
+ title: { flex: 1, color: "#fff", textAlign: "left" },
631
627
  leftIconStyle: { marginRight: 8 },
632
628
  rightIconStyle: { marginLeft: 8 }
633
629
  });
@@ -2142,7 +2138,7 @@ const CustomSearchBar = ({
2142
2138
  style: [
2143
2139
  styles$m.inputContainer,
2144
2140
  {
2145
- height: verticalScale$1(height),
2141
+ height: verticalScale(height),
2146
2142
  borderColor: disabled ? disableBorderColor : value ? borderColor : "#A7A7A7"
2147
2143
  },
2148
2144
  inputContainerStyle
@@ -2159,8 +2155,8 @@ const CustomSearchBar = ({
2159
2155
  style: searchIconStyle
2160
2156
  },
2161
2157
  React.cloneElement(searchIcon, {
2162
- width: moderateScale$1(24),
2163
- height: moderateScale$1(24),
2158
+ width: moderateScale(24),
2159
+ height: moderateScale(24),
2164
2160
  style: [styles$m.searchIconStyle, searchIconStyle]
2165
2161
  })
2166
2162
  ),
@@ -2274,9 +2270,6 @@ const styles$k = StyleSheet.create({
2274
2270
  },
2275
2271
  actionBtn: {
2276
2272
  flexDirection: "row"
2277
- },
2278
- seprator: {
2279
- height: verticalScale(16)
2280
2273
  }
2281
2274
  });
2282
2275
 
@@ -2374,8 +2367,7 @@ const SwipableList = (props) => {
2374
2367
  {
2375
2368
  data,
2376
2369
  renderItem,
2377
- keyExtractor: (item) => item.id,
2378
- ItemSeparatorComponent: () => /* @__PURE__ */ React.createElement(View, { style: styles$k.seprator })
2370
+ keyExtractor: (item) => item.id
2379
2371
  }
2380
2372
  ));
2381
2373
  };
@@ -2703,7 +2695,8 @@ var ContactModel = withThemeProvider(ContactModal);
2703
2695
  const styles$e = StyleSheet.create({
2704
2696
  applyButton: {
2705
2697
  marginTop: verticalScale(24),
2706
- height: verticalScale(48),
2698
+ paddingVertical: verticalScale(24),
2699
+ justifyContent: "center",
2707
2700
  alignItems: "center",
2708
2701
  borderRadius: moderateScale(25)
2709
2702
  },
@@ -2998,32 +2991,32 @@ const createStyles = (theme) => {
2998
2991
  flex: 1,
2999
2992
  padding: 20,
3000
2993
  justifyContent: "center",
3001
- backgroundColor: theme[Theme$1.SURFACE_PRIMARY]
2994
+ backgroundColor: theme[Theme.SURFACE_PRIMARY]
3002
2995
  },
3003
2996
  headerText: {
3004
- color: theme[Theme$1.CONTENT_PRIMARY],
2997
+ color: theme[Theme.CONTENT_PRIMARY],
3005
2998
  marginBottom: 20
3006
2999
  },
3007
3000
  textInput: {
3008
3001
  borderRadius: 10,
3009
3002
  padding: 15,
3010
- color: theme[Theme$1.CONTENT_SECONDRY],
3003
+ color: theme[Theme.CONTENT_SECONDRY],
3011
3004
  textAlignVertical: "top",
3012
3005
  minHeight: 100,
3013
- borderColor: theme[Theme$1.BORDER_PRIMARY]
3006
+ borderColor: theme[Theme.BORDER_PRIMARY]
3014
3007
  },
3015
3008
  charCounter: {
3016
3009
  textAlign: "left",
3017
3010
  marginTop: 10,
3018
- color: theme[Theme$1.CONTENT_SECONDRY]
3011
+ color: theme[Theme.CONTENT_SECONDRY]
3019
3012
  },
3020
3013
  buttonContainer: {
3021
3014
  flexDirection: "row",
3022
3015
  marginTop: 20
3023
3016
  },
3024
3017
  feedbackButton: {
3025
- backgroundColor: theme[Theme$1.SURFACE_PRIMARY],
3026
- borderColor: theme[Theme$1.BORDER_INVERTED],
3018
+ backgroundColor: theme[Theme.SURFACE_PRIMARY],
3019
+ borderColor: theme[Theme.BORDER_INVERTED],
3027
3020
  borderWidth: 1,
3028
3021
  paddingVertical: 10,
3029
3022
  paddingHorizontal: 20,
@@ -3047,14 +3040,14 @@ const FeedbackForm = ({
3047
3040
  setFeedback
3048
3041
  }) => {
3049
3042
  const maxChars = 200;
3050
- const { theme } = useTheme$1();
3043
+ const { theme } = useTheme();
3051
3044
  const styles = createStyles({ theme });
3052
3045
  return /* @__PURE__ */ React.createElement(View, { style: styles.container }, /* @__PURE__ */ React.createElement(
3053
3046
  CustomText$1,
3054
3047
  {
3055
3048
  text: title,
3056
- variant: FontStyle$1.L1_REGULAR,
3057
- textColor: Theme$1.CONTENT_SECONDRY,
3049
+ variant: FontStyle.L1_REGULAR,
3050
+ textColor: Theme.CONTENT_SECONDRY,
3058
3051
  style: styles.headerText
3059
3052
  }
3060
3053
  ), /* @__PURE__ */ React.createElement(
@@ -3072,27 +3065,27 @@ const FeedbackForm = ({
3072
3065
  CustomText$1,
3073
3066
  {
3074
3067
  text: `${feedback.length}/${maxChars} characters`,
3075
- variant: FontStyle$1.L2_REGULAR,
3076
- textColor: Theme$1.CONTENT_SECONDRY,
3068
+ variant: FontStyle.L2_REGULAR,
3069
+ textColor: Theme.CONTENT_SECONDRY,
3077
3070
  style: styles.charCounter
3078
3071
  }
3079
3072
  ), /* @__PURE__ */ React.createElement(View, { style: styles.buttonContainer }, /* @__PURE__ */ React.createElement(Pressable, { style: styles.feedbackButton, onPress: handleSendFeedback }, /* @__PURE__ */ React.createElement(
3080
3073
  CustomText$1,
3081
3074
  {
3082
3075
  text: leftBtnTxt,
3083
- variant: FontStyle$1.L1_REGULAR,
3084
- textColor: Theme$1.CONTENT_PRIMARY
3076
+ variant: FontStyle.L1_REGULAR,
3077
+ textColor: Theme.CONTENT_PRIMARY
3085
3078
  }
3086
3079
  )), /* @__PURE__ */ React.createElement(Pressable, { style: styles.cancelButton, onPress: clearAllData }, /* @__PURE__ */ React.createElement(
3087
3080
  CustomText$1,
3088
3081
  {
3089
3082
  text: rightBtnTxt,
3090
- variant: FontStyle$1.L1_REGULAR,
3091
- textColor: Theme$1.CONTENT_PRIMARY
3083
+ variant: FontStyle.L1_REGULAR,
3084
+ textColor: Theme.CONTENT_PRIMARY
3092
3085
  }
3093
3086
  ))));
3094
3087
  };
3095
- var feedback = withThemeProvider$1(FeedbackForm);
3088
+ var feedback = withThemeProvider(FeedbackForm);
3096
3089
 
3097
3090
  const DEFAULT_COUNTRY_CODE = "AE";
3098
3091
  const DEFAULT_CALLING_CODE = "+971";