dhre-ui-kit 0.0.75 → 0.0.76

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.75",
3
+ "version": "0.0.76",
4
4
  "main": "src/index.ts",
5
5
  "files": [
6
6
  "src",
@@ -1,3 +1,4 @@
1
+ import {TextStyle, ViewStyle} from 'react-native';
1
2
  import {DocumentPickerResponse} from 'react-native-document-picker';
2
3
 
3
4
  export interface CustomDocumentPickerProps {
@@ -6,4 +7,7 @@ export interface CustomDocumentPickerProps {
6
7
  hint?: string;
7
8
  maxFileSize?: number;
8
9
  fileTypes?: string[];
10
+ containerStyle?: ViewStyle;
11
+ titleStyle?: TextStyle;
12
+ hintStyle?: TextStyle;
9
13
  }
@@ -15,6 +15,9 @@ const CustomDocumentPicker = ({
15
15
  hint = 'PNG, JPEG (max size. 4MB)',
16
16
  maxFileSize = 4,
17
17
  fileTypes = [DocumentPicker.types.images, DocumentPicker.types.pdf],
18
+ containerStyle,
19
+ titleStyle,
20
+ hintStyle,
18
21
  }: CustomDocumentPickerProps) => {
19
22
  const [error, setError] = useState('');
20
23
 
@@ -49,6 +52,7 @@ const CustomDocumentPicker = ({
49
52
  style={[
50
53
  styles.container,
51
54
  {borderColor: error ? theme.ERROR : theme.BORDER_SECONDRY},
55
+ containerStyle,
52
56
  ]}
53
57
  onPress={pickDocument}>
54
58
  <UploadFile />
@@ -56,12 +60,12 @@ const CustomDocumentPicker = ({
56
60
  <CustomTypography
57
61
  variant={FontStyle.L2_REGULAR}
58
62
  text={title}
59
- style={{color: theme.CONTENT_PRIMARY}}
63
+ style={[{color: theme.CONTENT_PRIMARY}, titleStyle]}
60
64
  />
61
65
  <CustomTypography
62
66
  variant={FontStyle.L3_REGULAR}
63
67
  text={hint}
64
- style={{color: theme.CONTENT_SECONDRY}}
68
+ style={[{color: theme.CONTENT_SECONDRY}, hintStyle]}
65
69
  />
66
70
  </View>
67
71
  </Pressable>