@holper/react-native-holper-storybook 0.6.7 → 0.6.10

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/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { asyncLoadFont } from './configs/loadFonts';
2
- export { Colors, MapStyle, ConstantsWS, HiringStatus, NotificationsTypes } from './configs/constants';
1
+ export {asyncLoadFont} from './configs/loadFonts';
2
+ export {Colors, MapStyle, ConstantsWS, HiringStatus, CouponStatus, NotificationsTypes} from './configs/constants';
3
3
  export * from './components';
@@ -33,7 +33,7 @@ Text.defaultProps = {
33
33
  Text.propTypes = {
34
34
  color: PropTypes.oneOf(['dark', 'light', 'lighter', 'white', 'green', 'red', 'yellow', 'violet']),
35
35
  variant: PropTypes.oneOf(['default', 'lowercase', 'uppercase']),
36
- size: PropTypes.oneOf(['tiny', 'small', 'medium', 'large', 'extra-large']),
36
+ size: PropTypes.oneOf(['tiny', 'small', 'medium', 'large', 'extra-large', 'huge']),
37
37
  weight: PropTypes.oneOf(['regular', 'bold', 'semiBold']),
38
38
  align: PropTypes.oneOf(['left', 'right', 'center', 'justify']),
39
39
  style: RNText.propTypes.style,
@@ -49,6 +49,9 @@ export default {
49
49
  'extra-large': {
50
50
  fontSize: 24
51
51
  },
52
+ huge: {
53
+ fontSize: 40
54
+ },
52
55
  // Weights
53
56
  regular: {
54
57
  fontFamily: 'poppins_regular'
@@ -66,15 +66,6 @@ const UploadDocument = ({
66
66
  setShowCamera(true);
67
67
  break;
68
68
  case 'gallery':
69
- const {status} = iOS ?
70
- await MediaLibrary.getPermissionsAsync() :
71
- await ExpoImagePicker.getMediaLibraryPermissionsAsync();
72
-
73
- if (status !== 'granted') {
74
- onPermissionDenied();
75
- return;
76
- }
77
-
78
69
  setTimeout(async () => {
79
70
  const image = await ImagePicker(isAvatarPicker);
80
71
  selectImage(image);
@@ -48,6 +48,13 @@ export const HiringStatus = Object.freeze({
48
48
  UNPAID: 'unpaid'
49
49
  });
50
50
 
51
+ export const CouponStatus = Object.freeze({
52
+ PENDING: 'pending',
53
+ IN_USE: 'inUse',
54
+ EXPIRED: 'expired',
55
+ DONE: 'DONE'
56
+ });
57
+
51
58
  export const NotificationsTypes = Object.freeze({
52
59
  /** New hiring is created */
53
60
  NEW_HIRING: 'newHiring',
package/lib/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { asyncLoadFont } from './configs/loadFonts';
2
- export { Colors, MapStyle, ConstantsWS, HiringStatus, NotificationsTypes } from './configs/constants';
1
+ export {asyncLoadFont} from './configs/loadFonts';
2
+ export {Colors, MapStyle, ConstantsWS, HiringStatus, CouponStatus, NotificationsTypes} from './configs/constants';
3
3
  export * from './components';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "main": "lib/index.js",
3
3
  "name": "@holper/react-native-holper-storybook",
4
4
  "description": "A component library for Holper projects",
5
- "version": "0.6.7",
5
+ "version": "0.6.10",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "lib",