dhre-ui-kit 0.0.21 → 0.0.23

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.21",
3
+ "version": "0.0.23",
4
4
  "main": "src/index.ts",
5
5
  "files": [
6
6
  "src",
package/src/App.tsx CHANGED
@@ -1,14 +1,42 @@
1
1
  import React from 'react';
2
2
  import {ThemeProvider} from './theme/ThemeContext';
3
- import {Badge, DateRangePicker, Line} from './index';
3
+ import {Badge, Line} from './index';
4
4
  import {ArrowLeft, CalenderDots} from './assets';
5
5
  import {View} from 'react-native';
6
6
  import CustomButton from './components/button/Button';
7
7
 
8
8
  const App = () => {
9
9
  return (
10
- <DateRangePicker onPress={() => {}} />
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,
11
31
 
32
+ height: 40,
33
+ },
34
+ ]}
35
+ // iconStyle={styles.iconStyle}
36
+ imagePosition="left"
37
+ />
38
+ </View>
39
+ </ThemeProvider>
12
40
  );
13
41
  };
14
42
 
package/src/index.ts CHANGED
@@ -32,4 +32,12 @@ 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
34
 
35
- export * from './utils/stylehelper';
35
+ export {FONT_STYLES} from './theme/fonts';
36
+ export {DHRE_DEFAULT, DHRE_COLORS_TEXT} from './theme/colors';
37
+ export {
38
+ verticalScale,
39
+ horizontalScale,
40
+ moderateScale,
41
+ } from './utils/stylehelper';
42
+
43
+ export {default} from './theme/themes';
@@ -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];
@@ -167,6 +167,10 @@ export const DHRE_DEFAULT = {
167
167
  DH_BG_GREY_800: '#878BA0',
168
168
  DH_BG_GREY_900: '#6F7387',
169
169
  DH_BG_GREY: '#F2F3F8',
170
+ DH_SUCESS: '#2DE3A6',
171
+ DH_ERROR: '#EB382D',
172
+ DH_INFO: '#339ECF',
173
+ DH_SEMENTIC_ERROR: '#EB0542',
170
174
  };
171
175
 
172
176
  export const DHRE_COLORS_TEXT = {