gox-design-system 0.0.1 → 0.0.2

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/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "gox-design-system",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "private": false,
5
+ "main": "./index.js",
6
+ "module": "./index.js",
7
+ "types": "./index.d.ts",
5
8
  "dependencies": {
6
9
  "@testing-library/dom": "^10.4.0",
7
10
  "@testing-library/jest-dom": "^6.6.3",
@@ -13,7 +16,8 @@
13
16
  "@types/react-dom": "^19.0.4",
14
17
  "react": "^19.0.0",
15
18
  "react-dom": "^19.0.0",
16
- "react-scripts": "5.0.1",
19
+ "react-scripts": "^5.0.1",
20
+ "tsc": "^2.0.4",
17
21
  "typescript": "^4.9.5",
18
22
  "web-vitals": "^2.1.4"
19
23
  },
@@ -21,7 +25,8 @@
21
25
  "start": "react-scripts start",
22
26
  "build": "react-scripts build",
23
27
  "test": "react-scripts test",
24
- "eject": "react-scripts eject"
28
+ "eject": "react-scripts eject",
29
+ "compile": "npx tsc"
25
30
  },
26
31
  "eslintConfig": {
27
32
  "extends": [
@@ -0,0 +1 @@
1
+ export declare type InputProps = {}
@@ -1,3 +1,4 @@
1
+
1
2
  export default function Input() {
2
- return(<input type="text"/>)
3
+ return(<input type="text" placeholder="Omkar"/>)
3
4
  }
package/src/index.tsx CHANGED
@@ -3,13 +3,14 @@ import ReactDOM from 'react-dom/client';
3
3
  import './index.css';
4
4
  import App from './App';
5
5
  import reportWebVitals from './reportWebVitals';
6
+ import Input from './components/input';
6
7
 
7
8
  const root = ReactDOM.createRoot(
8
9
  document.getElementById('root') as HTMLElement
9
10
  );
10
11
  root.render(
11
12
  <React.StrictMode>
12
- <input />
13
+ <Input />
13
14
  </React.StrictMode>
14
15
  );
15
16
 
package/tsconfig.json CHANGED
@@ -21,6 +21,6 @@
21
21
  "jsx": "react-jsx"
22
22
  },
23
23
  "include": [
24
- "src"
24
+ "src/components/**/*.tsx",
25
25
  ]
26
26
  }