@holper/react-native-holper-storybook 0.6.73 → 0.6.75

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.
@@ -6,6 +6,7 @@ import { Colors } from "../../configs/constants";
6
6
 
7
7
  const Input = ({
8
8
  variant,
9
+ size,
9
10
  disabled,
10
11
  leftIcon,
11
12
  leftIconWide,
@@ -24,6 +25,7 @@ const Input = ({
24
25
  style={[
25
26
  style.input,
26
27
  style[variant],
28
+ style[`${size}Size`],
27
29
  leftIcon ? style.leftIcon : {},
28
30
  leftIconWide ? style.leftIconWide : {},
29
31
  disabled ? style.disabled : {},
@@ -67,10 +69,12 @@ Input.defaultProps = {
67
69
  rightIcon: null,
68
70
  value: "",
69
71
  maxLength: 100,
72
+ size: "fixed",
70
73
  };
71
74
 
72
75
  Input.propTypes = {
73
76
  variant: PropTypes.oneOf(["default", "completed", "error"]),
77
+ size: PropTypes.oneOf(["fixed", "fit"]),
74
78
  disabled: PropTypes.bool,
75
79
  leftIcon: PropTypes.node,
76
80
  leftIconWide: PropTypes.bool,
@@ -19,7 +19,6 @@ export default {
19
19
  },
20
20
  input: {
21
21
  height: 50,
22
- width: width - 80,
23
22
  borderRadius,
24
23
  borderWidth: 1,
25
24
  paddingHorizontal: 20,
@@ -28,6 +27,12 @@ export default {
28
27
  backgroundColor: Colors.white,
29
28
  marginVertical: 6,
30
29
  },
30
+ fixedSize: {
31
+ width: width - 60,
32
+ },
33
+ fitSize: {
34
+ width: "100%",
35
+ },
31
36
  default: {
32
37
  borderColor: Colors.lightblue,
33
38
  },
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.73",
5
+ "version": "0.6.75",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "lib",