gox-design-system 0.0.3 → 0.0.4

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.
package/index.d.ts CHANGED
@@ -1,3 +1 @@
1
- import * as Input from "./src/components/input";
2
-
3
- export declare type InputEl = Input
1
+ export * from "./src/components/input/index";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gox-design-system",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "private": false,
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
@@ -1 +1,3 @@
1
- export declare type InputProps = {}
1
+ export declare type InputProps = {
2
+ type: string
3
+ }
@@ -1,4 +1,12 @@
1
1
 
2
- export default function Input() {
3
- return(<input type="text" placeholder="Omkar"/>)
2
+ interface InputProps {
3
+ type?: string;
4
+ placeholder?: string;
5
+ }
6
+
7
+ export default function Input({
8
+ placeholder = "Omkar",
9
+ type
10
+ }: InputProps) {
11
+ return(<input type={type} placeholder={placeholder}/>)
4
12
  }