shubham-ui-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.
@@ -0,0 +1,3 @@
1
+ module.exports = {
2
+ presets: ["@babel/preset-react"]
3
+ };
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+
5
+ const Button = ({
6
+ text
7
+ }) => {
8
+ return /*#__PURE__*/React.createElement("button", null, text);
9
+ };
10
+
11
+ exports.Button = Button;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+
3
+ const Button = ({
4
+ text
5
+ }) => {
6
+ return /*#__PURE__*/React.createElement("button", null, text);
7
+ };
8
+
9
+ export { Button };
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "shubham-ui-library",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "dist/index.cjs.js",
6
+ "module": "dist/index.esm.js",
7
+ "keywords": [],
8
+ "author": "",
9
+ "license": "ISC",
10
+ "dependencies": {
11
+ "react": "^19.2.4",
12
+ "react-dom": "^19.2.4"
13
+ },
14
+ "devDependencies": {
15
+ "@babel/core": "^7.28.6",
16
+ "@babel/preset-react": "^7.28.5",
17
+ "@rollup/plugin-babel": "^6.1.0",
18
+ "@rollup/plugin-commonjs": "^29.0.0",
19
+ "@rollup/plugin-node-resolve": "^16.0.3",
20
+ "rollup": "^4.57.0"
21
+ },
22
+ "scripts": {
23
+ "build": "rollup -c",
24
+ "test": "echo \"Error: no test specified\" && exit 1"
25
+ }
26
+ }
@@ -0,0 +1,26 @@
1
+ import resolve from "@rollup/plugin-node-resolve";
2
+ import commonjs from "@rollup/plugin-commonjs";
3
+ import babel from "@rollup/plugin-babel";
4
+
5
+ export default {
6
+ input: "src/index.js",
7
+ output: [
8
+ {
9
+ file: "dist/index.cjs.js",
10
+ format: "cjs"
11
+ },
12
+ {
13
+ file: "dist/index.esm.js",
14
+ format: "esm"
15
+ }
16
+ ],
17
+ plugins: [
18
+ resolve(),
19
+ commonjs(),
20
+ babel({
21
+ babelHelpers: "bundled",
22
+ exclude: "node_modules/**"
23
+ })
24
+ ],
25
+ external: ["react", "react-dom"]
26
+ };
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+
3
+ const Button = ({ text }) => {
4
+ return <button>{text}</button>;
5
+ };
6
+
7
+ export default Button;
package/src/index.js ADDED
@@ -0,0 +1 @@
1
+ export{default as Button}from"./components/Button.jsx";