@dream-big/ghatak-core-components 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,8 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ interface ButtonProps {
4
+ label: string;
5
+ }
6
+ declare function Button({ label }: ButtonProps): react_jsx_runtime.JSX.Element;
7
+
8
+ export { Button, type ButtonProps };
@@ -0,0 +1,8 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ interface ButtonProps {
4
+ label: string;
5
+ }
6
+ declare function Button({ label }: ButtonProps): react_jsx_runtime.JSX.Element;
7
+
8
+ export { Button, type ButtonProps };
package/dist/index.js ADDED
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ Button: () => Button
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+
27
+ // src/Button.tsx
28
+ var import_jsx_runtime = require("react/jsx-runtime");
29
+ function Button({ label }) {
30
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
31
+ "button",
32
+ {
33
+ style: {
34
+ padding: "10px 16px",
35
+ borderRadius: "6px",
36
+ border: "none",
37
+ backgroundColor: "#1976d2",
38
+ color: "white",
39
+ cursor: "pointer"
40
+ },
41
+ children: label
42
+ }
43
+ );
44
+ }
45
+ // Annotate the CommonJS export names for ESM import in node:
46
+ 0 && (module.exports = {
47
+ Button
48
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,21 @@
1
+ // src/Button.tsx
2
+ import { jsx } from "react/jsx-runtime";
3
+ function Button({ label }) {
4
+ return /* @__PURE__ */ jsx(
5
+ "button",
6
+ {
7
+ style: {
8
+ padding: "10px 16px",
9
+ borderRadius: "6px",
10
+ border: "none",
11
+ backgroundColor: "#1976d2",
12
+ color: "white",
13
+ cursor: "pointer"
14
+ },
15
+ children: label
16
+ }
17
+ );
18
+ }
19
+ export {
20
+ Button
21
+ };
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@dream-big/ghatak-core-components",
3
+ "version": "1.0.0",
4
+ "description": "Reusable React UI components",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "files": ["dist"],
9
+ "scripts": {
10
+ "build": "tsup src/index.ts --dts --format esm,cjs",
11
+ "prepublishOnly": "npm run build"
12
+ },
13
+ "peerDependencies": {
14
+ "react": ">=18",
15
+ "react-dom": ">=18"
16
+ },
17
+ "devDependencies": {
18
+ "react": "^18.3.0",
19
+ "react-dom": "^18.3.0",
20
+ "@types/react": "^18.3.0",
21
+ "@types/react-dom": "^18.3.0",
22
+ "tsup": "^8.5.1",
23
+ "typescript": "^5.9.3"
24
+ },
25
+ "license": "MIT"
26
+ }