dhre-ui-kit 0.0.28 → 0.0.30

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.28",
3
+ "version": "0.0.30",
4
4
  "main": "src/index.ts",
5
5
  "files": [
6
6
  "src",
package/src/App.tsx CHANGED
@@ -1,43 +1,38 @@
1
1
  import React from 'react';
2
- import {ThemeProvider} from './theme/ThemeContext';
3
- import {Badge, Line} from './index';
4
- import {ArrowLeft, CalenderDots} from './assets';
5
- import {View} from 'react-native';
6
- import CustomButton from './components/button/Button';
2
+ import {View, StyleSheet, Text} from 'react-native';
3
+ import BottomDrawer from './components/bottomDrawer';
7
4
 
8
5
  const App = () => {
9
6
  return (
10
- <ThemeProvider>
11
- <View style={{marginTop: 50}}>
12
- <Badge
13
- handleIconPress={function (): void {}}
14
- text="gggsdfghjhgf"
15
- style={{margin: 20}}
16
- iconName={<CalenderDots width={20} height={20} />}
17
- textStyle={{color: 'black'}}
18
- iconStyle={{}}
19
- />
20
- <Line />
21
- <CustomButton
22
- title="Yes"
23
- onPress={() => console.log('Yes Button Pressed')}
24
- leftIcon={<ArrowLeft />}
25
- // titleColor={color.CONTENT_SECONDRY[currentTheme]}
26
- titleVariant="L2_REGULAR"
27
- containerStyle={[
28
- {
29
- borderWidth: 1,
30
- borderRadius: 20,
31
-
32
- height: 40,
33
- },
34
- ]}
35
- // iconStyle={styles.iconStyle}
36
- imagePosition="left"
37
- />
38
- </View>
39
- </ThemeProvider>
7
+ <View style={styles.container}>
8
+ <Text>SSS</Text>
9
+ <BottomDrawer isModalVisible={true} toggleModal={() => {}} title={''}>
10
+ <Text style={styles.text}>Hello, World!</Text>
11
+ </BottomDrawer>
12
+ </View>
40
13
  );
41
14
  };
42
15
 
16
+ const styles = StyleSheet.create({
17
+ container: {
18
+ flex: 1,
19
+ justifyContent: 'center',
20
+ alignItems: 'center',
21
+ backgroundColor:"#000"
22
+ },
23
+ image: {
24
+ flex: 1,
25
+ justifyContent: 'center',
26
+ },
27
+ absolute: {
28
+ ...StyleSheet.absoluteFillObject,
29
+ justifyContent: 'center',
30
+ alignItems: 'center',
31
+ },
32
+ text: {
33
+ color: 'red',
34
+ fontSize: 24,
35
+ },
36
+ });
37
+
43
38
  export default App;
@@ -10,7 +10,14 @@ const styles = StyleSheet.create({
10
10
  flex: 1,
11
11
  justifyContent: 'flex-end',
12
12
  },
13
- blurView: {...StyleSheet.absoluteFillObject},
13
+ blurView: {
14
+ ...StyleSheet.absoluteFillObject,
15
+ position: 'absolute',
16
+ top: 0,
17
+ left: 0,
18
+ bottom: 0,
19
+ right: 0,
20
+ },
14
21
  modalContainer: {
15
22
  flex: 0.5,
16
23
  backgroundColor: '#000',
@@ -11,5 +11,4 @@ export interface CustomSearchBarProps extends TextInputProps {
11
11
  onSearchIconPress?: () => void;
12
12
  onCrossIconPress?: () => void;
13
13
  handleOnChangeText?: (text: string) => void;
14
- rightIcon?:React.ReactElement;
15
14
  }
@@ -16,7 +16,6 @@ const CustomSearchBar = ({
16
16
  onSearchIconPress,
17
17
  onCrossIconPress,
18
18
  handleOnChangeText,
19
- rightIcon=<CrossIcon/>,
20
19
  ...props
21
20
  }: CustomSearchBarProps) => {
22
21
  const [value, setValue] = useState('');
@@ -63,7 +62,7 @@ const CustomSearchBar = ({
63
62
  onCrossIconPress?.(); // Call custom handler if provided
64
63
  }}
65
64
  style={crossIconStyle}>
66
- {React.cloneElement(rightIcon, {
65
+ {React.cloneElement(<CrossIcon />, {
67
66
  width: moderateScale(24),
68
67
  height: moderateScale(24),
69
68
  style: [styles.crossIconStyle, crossIconStyle],
@@ -14,8 +14,8 @@ interface ThemeProviderProps {
14
14
 
15
15
  export const ThemeProvider: React.FC<ThemeProviderProps> = ({children}) => {
16
16
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
17
- const mode = useSelector((state: any) => state.theme.currentTheme);
18
- // const mode = 'light'
17
+ // const mode = useSelector((state: any) => state.theme.currentTheme);
18
+ const mode = 'light'
19
19
  // Filter the theme based on the mode (light or dark)
20
20
  const filteredTheme = Object.keys(theme).reduce((acc, key) => {
21
21
  acc[key] = theme[key][mode];