dhre-ui-kit 0.0.11 → 0.0.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dhre-ui-kit",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "main": "src/index.ts",
5
5
  "files": [
6
6
  "src",
@@ -1,5 +1,5 @@
1
1
  import React, {useState} from 'react';
2
- import {TextInput, View} from 'react-native';
2
+ import {Pressable, TextInput, View} from 'react-native';
3
3
  import {CrossIcon, SearchIcon} from '../../assets';
4
4
  import {moderateScale, verticalScale} from '../../utils/stylehelper';
5
5
  import {CustomSearchBarProps} from './CustomSearchBar.interface';
@@ -42,12 +42,15 @@ const CustomSearchBar = ({
42
42
  handleOnChangeText?.(val);
43
43
  }}
44
44
  />
45
- {value &&
46
- React.cloneElement(<CrossIcon onPress={() => setValue('')} />, {
47
- width: moderateScale(24),
48
- height: moderateScale(24),
49
- style: styles.crossIconStyle,
50
- })}
45
+ {value && (
46
+ <Pressable onPress={() => setValue('')}>
47
+ {React.cloneElement(<CrossIcon />, {
48
+ width: moderateScale(24),
49
+ height: moderateScale(24),
50
+ style: styles.crossIconStyle,
51
+ })}
52
+ </Pressable>
53
+ )}
51
54
  </View>
52
55
  );
53
56
  };
@@ -153,7 +153,7 @@ export const DHRE_DEFAULT = {
153
153
  DH_LINE_GREY_600: '#B4B2B2',
154
154
  DH_LINE_GREY_700: '#959494',
155
155
  DH_LINE_GREY_800: '#727171',
156
- DH_LINE_GREY_900: '#4D4C4C',
156
+ DH_NETURAL_GRAY_800: '#373737',
157
157
  DH_BLUE: '#007AFF',
158
158
 
159
159
  DH_BG_GREY_0: '#F5F7FF',