nestiq-component-library 1.0.0

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/README.md ADDED
@@ -0,0 +1 @@
1
+ # nestiq-component-library
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface ButtonProps {
3
+ label: string;
4
+ }
5
+ declare const Button: React.FC<ButtonProps>;
6
+ export default Button;
@@ -0,0 +1 @@
1
+ export { default as Button } from './components/Button/Button';
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+
3
+ var Button = function (_a) {
4
+ var label = _a.label;
5
+ return React.createElement("button", null, label);
6
+ };
7
+
8
+ export { Button };
9
+ //# sourceMappingURL=index.es.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
package/dist/index.js ADDED
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+
5
+ var Button = function (_a) {
6
+ var label = _a.label;
7
+ return React.createElement("button", null, label);
8
+ };
9
+
10
+ exports.Button = Button;
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "nestiq-component-library",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "description": "",
6
+ "main": "dist/index.js",
7
+ "module": "dist/index.es.js",
8
+ "scripts": {
9
+ "test": "echo \"Error: no test specified\" && exit 1",
10
+ "build": "rollup -c"
11
+ },
12
+ "keywords": [],
13
+ "author": "",
14
+ "license": "ISC",
15
+ "dependencies": {
16
+ "react": "^18.3.1",
17
+ "react-dom": "^18.3.1"
18
+ },
19
+ "devDependencies": {
20
+ "@rollup/plugin-commonjs": "^26.0.1",
21
+ "@rollup/plugin-node-resolve": "^15.2.3",
22
+ "@types/react": "^18.3.3",
23
+ "@types/react-dom": "^18.3.0",
24
+ "rollup": "^4.18.0",
25
+ "rollup-plugin-typescript2": "^0.36.0",
26
+ "typescript": "^5.4.5"
27
+ },
28
+ "peerDependencies": {
29
+ "react": "^18.3.1",
30
+ "react-dom": "^18.3.1"
31
+ }
32
+ }
@@ -0,0 +1,20 @@
1
+ import typescript from 'rollup-plugin-typescript2';
2
+ import pkg from './package.json' assert { type: 'json' };
3
+
4
+ export default {
5
+ input: 'src/index.tsx',
6
+ output: [
7
+ {
8
+ file: pkg.main,
9
+ format: 'cjs',
10
+ sourcemap: true,
11
+ },
12
+ {
13
+ file: pkg.module,
14
+ format: 'es',
15
+ sourcemap: true,
16
+ },
17
+ ],
18
+ external: ['react', 'react-dom'],
19
+ plugins: [typescript()],
20
+ };
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+
3
+ interface ButtonProps {
4
+ label: string;
5
+ }
6
+
7
+ const Button: React.FC<ButtonProps> = ({ label }) => {
8
+ return <button>{label}</button>;
9
+ };
10
+
11
+ export default Button;
package/src/index.tsx ADDED
@@ -0,0 +1 @@
1
+ export { default as Button } from './components/Button/Button';
package/tsconfig.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES5",
4
+ "module": "ES6",
5
+ "declaration": true,
6
+ "outDir": "dist",
7
+ "jsx": "react",
8
+ "strict": true,
9
+ "esModuleInterop": true,
10
+ "skipLibCheck": true,
11
+ "forceConsistentCasingInFileNames": true
12
+ },
13
+ "include": ["src"]
14
+ }