@holper/react-native-holper-storybook 0.6.54 → 0.6.56

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.
@@ -4,7 +4,7 @@ import { TextInput, View } from 'react-native';
4
4
  import { Colors } from '../../configs/constants';
5
5
  import style from './style';
6
6
 
7
- const Input = ({variant, disabled, leftIcon, leftIconWide, ...props}) => (
7
+ const Input = ({ variant, disabled, leftIcon, leftIconWide, ...props }) => (
8
8
  <View>
9
9
  <TextInput
10
10
  style={[
@@ -12,11 +12,11 @@ const Input = ({variant, disabled, leftIcon, leftIconWide, ...props}) => (
12
12
  style[variant],
13
13
  leftIcon ? style.leftIcon : {},
14
14
  leftIconWide ? style.leftIconWide : {},
15
- disabled ? style.disabled : {}
15
+ disabled ? style.disabled : {},
16
16
  ]}
17
17
  editable={!disabled}
18
18
  allowFontScaling={false}
19
- placeholderTextColor={Colors.lightblue}
19
+ placeholderTextColor={Colors.midblue}
20
20
  {...props}
21
21
  />
22
22
  <View
@@ -24,7 +24,7 @@ const Input = ({variant, disabled, leftIcon, leftIconWide, ...props}) => (
24
24
  style[variant],
25
25
  style.leftIconContainer,
26
26
  leftIconWide ? style.leftWideIconContainer : {},
27
- disabled ? style.disabled : {}
27
+ disabled ? style.disabled : {},
28
28
  ]}
29
29
  >
30
30
  {leftIcon}
@@ -36,14 +36,14 @@ Input.defaultProps = {
36
36
  variant: 'default',
37
37
  disabled: false,
38
38
  leftIcon: null,
39
- leftIconWide: false
39
+ leftIconWide: false,
40
40
  };
41
41
 
42
42
  Input.propTypes = {
43
43
  variant: PropTypes.oneOf(['default', 'completed', 'error']),
44
44
  disabled: PropTypes.bool,
45
45
  leftIcon: PropTypes.node,
46
- leftIconWide: PropTypes.bool
46
+ leftIconWide: PropTypes.bool,
47
47
  };
48
48
 
49
49
  export default Input;
@@ -56,7 +56,7 @@ export const includesSelect = {
56
56
  export const placeholderStyle = {
57
57
  fontSize: 16,
58
58
  ...fontStyle,
59
- color: Colors.lightblue,
59
+ color: Colors.midblue,
60
60
  };
61
61
 
62
62
  export const listItemLabelStyle = {
@@ -1,22 +1,30 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import { TextInput } from 'react-native';
4
+ import { Colors } from '../../configs/constants';
4
5
  import style from './style';
5
6
 
6
- const Textarea = ({variant, disabled, numberOfLines, fitToContainer, ...props}) => (
7
+ const Textarea = ({
8
+ variant,
9
+ disabled,
10
+ numberOfLines,
11
+ fitToContainer,
12
+ ...props
13
+ }) => (
7
14
  <TextInput
8
15
  style={[
9
16
  style.textarea,
10
17
  fitToContainer ? style.fitToContainer : style.textAreaDefaultWidth,
11
- {height: numberOfLines*25},
18
+ { height: numberOfLines * 25 },
12
19
  style[variant],
13
- disabled ? style.disabled : {}
20
+ disabled ? style.disabled : {},
14
21
  ]}
15
- {...props}
16
22
  multiline
17
23
  editable={!disabled}
18
24
  numberOfLines={numberOfLines}
19
25
  textAlignVertical='top'
26
+ placeholderTextColor={Colors.midblue}
27
+ {...props}
20
28
  />
21
29
  );
22
30
 
@@ -24,7 +32,7 @@ Textarea.defaultProps = {
24
32
  variant: 'default',
25
33
  disabled: false,
26
34
  fitToContainer: false,
27
- numberOfLines: 4
35
+ numberOfLines: 4,
28
36
  };
29
37
 
30
38
  Textarea.propTypes = {
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.54",
5
+ "version": "0.6.56",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "lib",