@holper/react-native-holper-storybook 0.6.59 → 0.6.61

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.
@@ -27,6 +27,7 @@ const ConfirmationModal = ({
27
27
  alertMode,
28
28
  infoMode,
29
29
  inverted,
30
+ isPrime,
30
31
  children,
31
32
  }) => (
32
33
  <Modal
@@ -83,7 +84,7 @@ const ConfirmationModal = ({
83
84
  variant={inverted ? 'inverted' : 'primary'}
84
85
  onPress={onConfirm}
85
86
  >
86
- <Text size='large' color='white'>
87
+ <Text size='large' color={isPrime ? 'gold' : 'white'}>
87
88
  {confirmText}
88
89
  </Text>
89
90
  </Button>
@@ -93,7 +94,7 @@ const ConfirmationModal = ({
93
94
  <Button
94
95
  size='small'
95
96
  bordered
96
- variant='inverted'
97
+ variant={inverted ? 'inverted' : 'primary'}
97
98
  onPress={onCancel}
98
99
  >
99
100
  <Text size='large'>{cancelText}</Text>
@@ -104,7 +105,7 @@ const ConfirmationModal = ({
104
105
  size={onCancel ? 'small' : 'fit'}
105
106
  onPress={onConfirm}
106
107
  >
107
- <Text size='large' color='white'>
108
+ <Text size='large' color={isPrime ? 'gold' : 'white'}>
108
109
  {confirmText}
109
110
  </Text>
110
111
  </Button>
@@ -131,6 +132,7 @@ ConfirmationModal.defaultProps = {
131
132
  closeButton: false,
132
133
  infoMode: false,
133
134
  inverted: false,
135
+ isPrime: false,
134
136
  children: null,
135
137
  };
136
138
 
@@ -146,6 +148,7 @@ ConfirmationModal.propTypes = {
146
148
  closeButton: PropTypes.bool,
147
149
  infoMode: PropTypes.bool,
148
150
  inverted: PropTypes.bool,
151
+ isPrime: PropTypes.bool,
149
152
  children: PropTypes.node,
150
153
  };
151
154
 
@@ -6,7 +6,7 @@ import { Colors } from '../../configs/constants';
6
6
  import Text from '../Text';
7
7
  import style from './style';
8
8
 
9
- const Footer = ({ inverted, tabs, isPrime }) => {
9
+ const Footer = ({ inverted, tabs }) => {
10
10
  const renderTab = () =>
11
11
  tabs.map((tab, index) => (
12
12
  <TouchableOpacity
@@ -17,9 +17,9 @@ const Footer = ({ inverted, tabs, isPrime }) => {
17
17
  <Ionicons
18
18
  name={tab.icon}
19
19
  size={20}
20
- color={isPrime ? Colors.gold : Colors.white}
20
+ color={inverted ? Colors.white : Colors.darkblue}
21
21
  />
22
- <Text color={isPrime ? 'gold' : 'white'} size='small'>
22
+ <Text color={inverted ? 'white' : 'dark'} size='small'>
23
23
  {tab.text}
24
24
  </Text>
25
25
  {tab.badge && tab.badge > 0 && (
@@ -43,13 +43,11 @@ const Footer = ({ inverted, tabs, isPrime }) => {
43
43
 
44
44
  Footer.defaultProps = {
45
45
  inverted: false,
46
- isPrime: false,
47
46
  tabs: [],
48
47
  };
49
48
 
50
49
  Footer.propTypes = {
51
50
  inverted: PropTypes.bool,
52
- isPrime: PropTypes.bool,
53
51
  tabs: PropTypes.arrayOf(
54
52
  PropTypes.shape({
55
53
  onPress: PropTypes.func,
@@ -14,8 +14,8 @@ export default {
14
14
  alignItems: 'center',
15
15
  },
16
16
  default: {
17
- backgroundColor: Colors.darkgray,
18
- borderTopColor: Colors.darkblue,
17
+ backgroundColor: Colors.white,
18
+ borderTopColor: Colors.lightblue,
19
19
  borderTopWidth: 1,
20
20
  },
21
21
  inverted: {
@@ -6,7 +6,7 @@ import Ionicons from 'react-native-vector-icons/Ionicons';
6
6
  import { Colors } from '../../configs/constants';
7
7
  import style from './style';
8
8
 
9
- const Header = ({ inverted, logo, right, onMenuPress, isPrime }) => (
9
+ const Header = ({ inverted, logo, right, onMenuPress }) => (
10
10
  <View
11
11
  style={[style.headerContainer, style[inverted ? 'inverted' : 'default']]}
12
12
  >
@@ -14,7 +14,7 @@ const Header = ({ inverted, logo, right, onMenuPress, isPrime }) => (
14
14
  <Ionicons
15
15
  name='menu-outline'
16
16
  size={30}
17
- color={isPrime ? Colors.gold : Colors.white}
17
+ color={inverted ? Colors.white : Colors.darkblue}
18
18
  />
19
19
  </TouchableOpacity>
20
20
  <View style={style.imageContainer}>
@@ -31,7 +31,6 @@ const Header = ({ inverted, logo, right, onMenuPress, isPrime }) => (
31
31
 
32
32
  Header.defaultProps = {
33
33
  inverted: false,
34
- isPrime: false,
35
34
  logo: null,
36
35
  right: null,
37
36
  onMenuPress: () => {},
@@ -39,7 +38,6 @@ Header.defaultProps = {
39
38
 
40
39
  Header.propTypes = {
41
40
  inverted: PropTypes.bool,
42
- isPrime: PropTypes.bool,
43
41
  logo: ImagePropTypes.source.isRequired,
44
42
  right: PropTypes.node,
45
43
  onMenuPress: PropTypes.func,
@@ -14,8 +14,8 @@ export default {
14
14
  alignItems: 'center',
15
15
  },
16
16
  default: {
17
- backgroundColor: Colors.darkgray,
18
- borderBottomColor: Colors.darkblue,
17
+ backgroundColor: Colors.white,
18
+ borderBottomColor: Colors.lightblue,
19
19
  borderBottomWidth: 1,
20
20
  },
21
21
  inverted: {
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.59",
5
+ "version": "0.6.61",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "lib",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@react-native-async-storage/async-storage": "1.21.0",
31
- "@react-native-community/datetimepicker": "7.6.1",
31
+ "@react-native-community/datetimepicker": "8.2.0",
32
32
  "@react-native-community/slider": "4.4.2",
33
33
  "deprecated-react-native-prop-types": "^5.0.0",
34
34
  "expo": "~50.0.17",