@holper/react-native-holper-storybook 0.6.97 → 0.6.99

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.
@@ -1,12 +1,27 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { SafeAreaView } from 'react-native-safe-area-context';
4
- import { TouchableWithoutFeedback, Keyboard, ScrollView, View } from 'react-native';
5
- import {ViewPropTypes} from 'deprecated-react-native-prop-types';
4
+ import {
5
+ TouchableWithoutFeedback,
6
+ Keyboard,
7
+ ScrollView,
8
+ View,
9
+ } from 'react-native';
10
+ import { ViewPropTypes } from 'deprecated-react-native-prop-types';
6
11
  import style from './style';
7
12
 
8
- const Container = ({ fullScreen, enableScroll, style: customStyle, scrollStyle, children, ...props }) => (
9
- <SafeAreaView {...props} style={[fullScreen ? style.fullScreen : {}, customStyle]}>
13
+ const Container = ({
14
+ fullScreen = true,
15
+ enableScroll,
16
+ style: customStyle,
17
+ scrollStyle,
18
+ children,
19
+ ...props
20
+ }) => (
21
+ <SafeAreaView
22
+ {...props}
23
+ style={[fullScreen ? style.fullScreen : {}, customStyle]}
24
+ >
10
25
  {enableScroll ? (
11
26
  <ScrollView
12
27
  contentContainerStyle={scrollStyle}
@@ -16,13 +31,8 @@ const Container = ({ fullScreen, enableScroll, style: customStyle, scrollStyle,
16
31
  {children}
17
32
  </ScrollView>
18
33
  ) : (
19
- <TouchableWithoutFeedback
20
- onPress={Keyboard.dismiss}
21
- accessible={false}
22
- >
23
- <View style={customStyle}>
24
- {children}
25
- </View>
34
+ <TouchableWithoutFeedback onPress={Keyboard.dismiss} accessible={false}>
35
+ <View style={customStyle}>{children}</View>
26
36
  </TouchableWithoutFeedback>
27
37
  )}
28
38
  </SafeAreaView>
@@ -32,14 +42,14 @@ Container.defaultProps = {
32
42
  fullScreen: true,
33
43
  enableScroll: false,
34
44
  style: {},
35
- scrollStyle: {}
45
+ scrollStyle: {},
36
46
  };
37
47
 
38
48
  Container.propTypes = {
39
49
  fullScreen: PropTypes.bool,
40
50
  enableScroll: PropTypes.bool,
41
51
  style: ViewPropTypes.style,
42
- scrollStyle: ViewPropTypes.style
52
+ scrollStyle: ViewPropTypes.style,
43
53
  };
44
54
 
45
55
  export default Container;
@@ -1,7 +1,7 @@
1
- import { Dimensions } from "react-native";
2
- import { Colors, borderRadius } from "../../configs/constants";
1
+ import { Dimensions } from 'react-native';
2
+ import { Colors, borderRadius } from '../../configs/constants';
3
3
 
4
- const { width } = Dimensions.get("window");
4
+ const { width } = Dimensions.get('window');
5
5
 
6
6
  export default {
7
7
  container: {
@@ -10,12 +10,12 @@ export default {
10
10
  label: {
11
11
  marginBottom: 4,
12
12
  fontSize: 14,
13
- fontFamily: "poppins_regular",
13
+ fontFamily: 'poppins_regular',
14
14
  color: Colors.darkblue,
15
- fontWeight: "bold",
15
+ fontWeight: 'bold',
16
16
  },
17
17
  inputWrapper: {
18
- position: "relative",
18
+ position: 'relative',
19
19
  },
20
20
  input: {
21
21
  height: 50,
@@ -23,7 +23,7 @@ export default {
23
23
  borderWidth: 1,
24
24
  paddingHorizontal: 20,
25
25
  color: Colors.darkblue,
26
- fontFamily: "poppins_regular",
26
+ fontFamily: 'poppins_regular',
27
27
  backgroundColor: Colors.white,
28
28
  marginVertical: 6,
29
29
  },
@@ -31,10 +31,10 @@ export default {
31
31
  width: width - 60,
32
32
  },
33
33
  fitSize: {
34
- width: "100%",
34
+ width: '100%',
35
35
  },
36
36
  default: {
37
- borderColor: Colors.lightblue,
37
+ borderColor: Colors.midblue,
38
38
  },
39
39
  completed: {
40
40
  borderColor: Colors.green,
@@ -59,18 +59,18 @@ export default {
59
59
  paddingRight: 70,
60
60
  },
61
61
  rightIconContainer: {
62
- position: "absolute",
62
+ position: 'absolute',
63
63
  right: 10,
64
64
  top: 10,
65
65
  height: 42,
66
- justifyContent: "center",
66
+ justifyContent: 'center',
67
67
  },
68
68
  leftIconContainer: {
69
- position: "absolute",
69
+ position: 'absolute',
70
70
  left: 10,
71
71
  top: 10,
72
72
  height: 42,
73
- justifyContent: "center",
73
+ justifyContent: 'center',
74
74
  },
75
75
  rightWideIconContainer: {
76
76
  paddingLeft: 2,
@@ -81,22 +81,22 @@ export default {
81
81
  borderRightWidth: 1,
82
82
  },
83
83
  rightIconContainer: {
84
- position: "absolute",
84
+ position: 'absolute',
85
85
  right: 10,
86
86
  top: 10,
87
87
  height: 42,
88
- justifyContent: "center",
88
+ justifyContent: 'center',
89
89
  },
90
90
  count: {
91
- textAlign: "right",
91
+ textAlign: 'right',
92
92
  fontSize: 12,
93
93
  color: Colors.gray,
94
- fontFamily: "poppins_regular",
94
+ fontFamily: 'poppins_regular',
95
95
  fixedSize: {
96
96
  width: width - 80,
97
97
  },
98
98
  fitSize: {
99
- width: "100%",
99
+ width: '100%',
100
100
  },
101
101
  },
102
102
  };
@@ -40,7 +40,7 @@ const basicStyle = {
40
40
  export const includesSelect = {
41
41
  default: {
42
42
  ...basicStyle,
43
- borderColor: Colors.lightblue,
43
+ borderColor: Colors.midblue,
44
44
  },
45
45
  completed: {
46
46
  ...basicStyle,
@@ -68,7 +68,7 @@ export const listItemLabelStyle = {
68
68
  export const listItemContainerStyle = {
69
69
  height: 55,
70
70
  borderBottomWidth: 1,
71
- borderBottomColor: Colors.lightblue,
71
+ borderBottomColor: Colors.gray,
72
72
  };
73
73
 
74
74
  export const selectedItemLabelStyle = {
@@ -22,7 +22,7 @@ export default {
22
22
  width: '100%',
23
23
  },
24
24
  default: {
25
- borderColor: Colors.lightblue,
25
+ borderColor: Colors.midblue,
26
26
  },
27
27
  completed: {
28
28
  borderColor: Colors.green,
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.97",
5
+ "version": "0.6.99",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "lib",