@holper/react-native-holper-storybook 0.6.69 → 0.6.71
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,8 +1,8 @@
|
|
|
1
|
-
import PropTypes from
|
|
2
|
-
import React from
|
|
3
|
-
import { View, TextInput, Text } from
|
|
4
|
-
import style from
|
|
5
|
-
import { Colors } from
|
|
1
|
+
import PropTypes from "prop-types";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { View, TextInput, Text } from "react-native";
|
|
4
|
+
import style from "./style";
|
|
5
|
+
import { Colors } from "../../configs/constants";
|
|
6
6
|
|
|
7
7
|
const Input = ({
|
|
8
8
|
disabled,
|
|
@@ -12,6 +12,7 @@ const Input = ({
|
|
|
12
12
|
leftIconWide,
|
|
13
13
|
size,
|
|
14
14
|
variant,
|
|
15
|
+
count,
|
|
15
16
|
...props
|
|
16
17
|
}) => (
|
|
17
18
|
<View>
|
|
@@ -65,8 +66,9 @@ Input.defaultProps = {
|
|
|
65
66
|
leftIconWide: false,
|
|
66
67
|
rightIcon: null,
|
|
67
68
|
rightIconWide: false,
|
|
68
|
-
size:
|
|
69
|
-
variant:
|
|
69
|
+
size: "fixed",
|
|
70
|
+
variant: "default",
|
|
71
|
+
count: 0,
|
|
70
72
|
};
|
|
71
73
|
|
|
72
74
|
Input.propTypes = {
|
|
@@ -75,8 +77,9 @@ Input.propTypes = {
|
|
|
75
77
|
leftIconWide: PropTypes.bool,
|
|
76
78
|
rightIcon: PropTypes.node,
|
|
77
79
|
rightIconWide: PropTypes.bool,
|
|
78
|
-
size: PropTypes.oneOf([
|
|
79
|
-
variant: PropTypes.oneOf([
|
|
80
|
+
size: PropTypes.oneOf(["fixed", "fit"]),
|
|
81
|
+
variant: PropTypes.oneOf(["default", "completed", "error"]),
|
|
82
|
+
count: PropTypes.number,
|
|
80
83
|
};
|
|
81
84
|
|
|
82
85
|
export default Input;
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"main": "
|
|
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.
|
|
5
|
+
"version": "0.6.71",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"files": [
|
|
8
8
|
"lib",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# expo
|
|
2
|
-
|
|
3
|
-
The `expo` package is a single package you can install in any React Native app to begin using Expo modules.
|
|
4
|
-
|
|
5
|
-
- includes core infrastructure for Expo modules: `expo-modules-core` and `expo-modules-autolinking`.
|
|
6
|
-
- bundles a minimal set of Expo modules that are required by nearly every app, such as `expo-asset`.
|
|
7
|
-
- provides [`@expo/cli`](https://github.com/expo/expo/blob/main/packages/%40expo/cli/README.md), a small CLI that provides a clean interface around both bundlers (such as Metro and Webpack) and native build tools (Xcode, Simulator.app, Android Studio, ADB, etc.), can generate native projects with `npx expo prebuild`, and aligns compatible package versions with `npx expo install`.
|
|
8
|
-
- exposes a JavaScript module that configures an app at runtime as needed to use `expo-font` and to function in Expo Go (optional, only if applicable).
|
|
9
|
-
|
|
10
|
-
See [CONTRIBUTING](./CONTRIBUTING.md) for instructions on working on this package.
|