dhre-ui-kit 0.0.58 → 0.0.60

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.58",
3
+ "version": "0.0.60",
4
4
  "main": "src/index.ts",
5
5
  "files": [
6
6
  "src",
package/src/App.tsx CHANGED
@@ -1,15 +1,42 @@
1
1
  import React from 'react';
2
- import {SafeAreaView} from 'react-native';
3
- import ToastProvider from './components/toast/ToastProvider';
4
- import YourComponent from './components/toast/yourCompo';
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';
5
7
 
6
8
  const App = () => {
7
9
  return (
8
- <ToastProvider>
9
- <SafeAreaView style={{flex: 1}}>
10
- <YourComponent />
11
- </SafeAreaView>
12
- </ToastProvider>
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>
13
40
  );
14
41
  };
15
42
 
@@ -17,5 +17,5 @@ export interface CustomSearchBarProps extends TextInputProps {
17
17
  enablePlaceHolderStyle?: string;
18
18
  borderColor?: string;
19
19
  setValue: (val: string) => void;
20
- value: string;
20
+ value: string | undefined;
21
21
  }
package/src/index.ts CHANGED
@@ -49,6 +49,6 @@ export {
49
49
  } from './utils/stylehelper';
50
50
 
51
51
  export {default} from './theme/themes';
52
- export {default as useToast} from './components/toast/ToastProvider';
52
+ export {useToast} from './components/toast/ToastProvider';
53
53
  export {default as ToastProvider} from './components/toast/ToastProvider';
54
54
  export {default as CustomTextTest} from '../__mocks__/custom-text.mock';
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- import {View, Button} from 'react-native';
3
- import {useToast} from './ToastProvider'; // Adjust the path as necessary
4
-
5
- const YourComponent = () => {
6
- const {showToast} = useToast();
7
-
8
- const handleShowToast = () => {
9
- showToast('This is a toast message!', 3000, true, 'Close', () => {
10
- console.log('Button pressed!');
11
- });
12
- };
13
-
14
- return (
15
- <View>
16
- <Button title="Show Toast" onPress={handleShowToast} />
17
- </View>
18
- );
19
- };
20
-
21
- export default YourComponent;