dhre-ui-kit 0.0.31 → 0.0.33
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 +1 -1
- package/src/components/bottomDrawer/BottomDrawer.interface.ts +2 -1
- package/src/components/bottomDrawer/BottomDrawer.tsx +2 -1
- package/src/components/customSearchBar/CustomSearchBar.interface.ts +4 -0
- package/src/components/customSearchBar/CustomSearchBar.tsx +12 -2
- package/src/index.ts +2 -0
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {ViewStyle} from 'react-native';
|
|
1
|
+
import {TextStyle, ViewStyle} from 'react-native';
|
|
2
2
|
|
|
3
3
|
export interface BottomDrawerProps {
|
|
4
4
|
isModalVisible: boolean;
|
|
@@ -16,4 +16,5 @@ export interface BottomDrawerProps {
|
|
|
16
16
|
showLeftIcon?: boolean;
|
|
17
17
|
showRightIcon?: boolean;
|
|
18
18
|
onLeftIconPress?: () => void;
|
|
19
|
+
titleStyle?: TextStyle;
|
|
19
20
|
}
|
|
@@ -22,6 +22,7 @@ const BottomDrawer: React.FC<BottomDrawerProps> = ({
|
|
|
22
22
|
leftIcon = <ArrowLeft />,
|
|
23
23
|
rightIcon = <CrossIcon />,
|
|
24
24
|
onLeftIconPress,
|
|
25
|
+
titleStyle,
|
|
25
26
|
}) => {
|
|
26
27
|
return (
|
|
27
28
|
<Modal
|
|
@@ -48,7 +49,7 @@ const BottomDrawer: React.FC<BottomDrawerProps> = ({
|
|
|
48
49
|
<CustomTypography
|
|
49
50
|
variant="B2_REGULAR"
|
|
50
51
|
text={title}
|
|
51
|
-
style={styles.title}
|
|
52
|
+
style={[styles.title, titleStyle]}
|
|
52
53
|
/>
|
|
53
54
|
{showRightIcon &&
|
|
54
55
|
React.cloneElement(rightIcon, {
|
|
@@ -12,4 +12,8 @@ export interface CustomSearchBarProps extends TextInputProps {
|
|
|
12
12
|
onCrossIconPress?: () => void;
|
|
13
13
|
handleOnChangeText?: (text: string) => void;
|
|
14
14
|
rightIcon?: React.ReactElement;
|
|
15
|
+
disableBorderColor?: string;
|
|
16
|
+
disablePlaceHolderStyle?: string;
|
|
17
|
+
enablePlaceHolderStyle?: string;
|
|
18
|
+
borderColor?: string;
|
|
15
19
|
}
|
|
@@ -17,6 +17,10 @@ const CustomSearchBar = ({
|
|
|
17
17
|
onCrossIconPress,
|
|
18
18
|
handleOnChangeText,
|
|
19
19
|
rightIcon = <CrossIcon />,
|
|
20
|
+
disableBorderColor = '#4F4F4F',
|
|
21
|
+
borderColor = '#FFFFFF',
|
|
22
|
+
disablePlaceHolderStyle = '#686868',
|
|
23
|
+
enablePlaceHolderStyle = '#A7A7A7',
|
|
20
24
|
...props
|
|
21
25
|
}: CustomSearchBarProps) => {
|
|
22
26
|
const [value, setValue] = useState('');
|
|
@@ -28,7 +32,11 @@ const CustomSearchBar = ({
|
|
|
28
32
|
styles.inputContainer,
|
|
29
33
|
{
|
|
30
34
|
height: verticalScale(height),
|
|
31
|
-
borderColor: disabled
|
|
35
|
+
borderColor: disabled
|
|
36
|
+
? disableBorderColor
|
|
37
|
+
: value
|
|
38
|
+
? borderColor
|
|
39
|
+
: '#A7A7A7',
|
|
32
40
|
},
|
|
33
41
|
inputContainerStyle,
|
|
34
42
|
]}>
|
|
@@ -50,7 +58,9 @@ const CustomSearchBar = ({
|
|
|
50
58
|
style={[styles.input, inputStyle]} // Apply custom input styles
|
|
51
59
|
editable={!disabled}
|
|
52
60
|
value={value}
|
|
53
|
-
placeholderTextColor={
|
|
61
|
+
placeholderTextColor={
|
|
62
|
+
disabled ? disablePlaceHolderStyle : enablePlaceHolderStyle
|
|
63
|
+
}
|
|
54
64
|
onChangeText={val => {
|
|
55
65
|
setValue(val);
|
|
56
66
|
handleOnChangeText?.(val);
|
package/src/index.ts
CHANGED
|
@@ -31,6 +31,8 @@ export {default as ContactModel} from './components/ContactModel';
|
|
|
31
31
|
export {default as DateRangePicker} from './components/dateRangePicker';
|
|
32
32
|
export {default as OurOfficesButton} from './components/OutOfOffice';
|
|
33
33
|
export {default as NotificationBandge} from './components/notificationBandge';
|
|
34
|
+
export {default as category} from './components/scrollList';
|
|
35
|
+
export {default as FeedbackForm} from './components/feedback';
|
|
34
36
|
|
|
35
37
|
export {FONT_STYLES} from './theme/fonts';
|
|
36
38
|
export {DHRE_DEFAULT, DHRE_COLORS_TEXT} from './theme/colors';
|