@nithish_atum/atum 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,11 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+
4
+ type Variant = "solid" | "outline" | "ghost";
5
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
6
+ variant?: Variant;
7
+ children: React.ReactNode;
8
+ }
9
+ declare const Button: ({ variant, children, ...rest }: ButtonProps) => react_jsx_runtime.JSX.Element;
10
+
11
+ export { Button };
@@ -0,0 +1,11 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import React from 'react';
3
+
4
+ type Variant = "solid" | "outline" | "ghost";
5
+ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
6
+ variant?: Variant;
7
+ children: React.ReactNode;
8
+ }
9
+ declare const Button: ({ variant, children, ...rest }: ButtonProps) => react_jsx_runtime.JSX.Element;
10
+
11
+ export { Button };
package/dist/index.js ADDED
@@ -0,0 +1,41 @@
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.tsx
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ Button: () => Button
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+
27
+ // src/components/Button.tsx
28
+ var import_jsx_runtime = require("react/jsx-runtime");
29
+ var Button = ({ variant = "solid", children, ...rest }) => {
30
+ const style = {
31
+ solid: { backgroundColor: "#000", color: "#fff" },
32
+ outline: { border: "1px solid #000", color: "#000", background: "none" },
33
+ ghost: { background: "transparent", color: "#000" }
34
+ };
35
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { style: style[variant], ...rest, children });
36
+ };
37
+ // Annotate the CommonJS export names for ESM import in node:
38
+ 0 && (module.exports = {
39
+ Button
40
+ });
41
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.tsx","../src/components/Button.tsx"],"sourcesContent":["export * from \"./components/Button\";","import React from \"react\";\r\n\r\ntype Variant = \"solid\" | \"outline\" | \"ghost\";\r\n\r\ninterface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>{\r\n variant?: Variant;\r\n children: React.ReactNode;\r\n}\r\n\r\nexport const Button = ({ variant = \"solid\", children, ...rest}: ButtonProps) => {\r\n const style = {\r\n solid: { backgroundColor: \"#000\", color: \"#fff\" },\r\n outline: { border: \"1px solid #000\", color: \"#000\", background: \"none\" },\r\n ghost: { background: \"transparent\", color: \"#000\" },\r\n }\r\n\r\n return <button style={style[variant]} {...rest}>{children}</button>\r\n}"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACgBW;AAPJ,IAAM,SAAS,CAAC,EAAE,UAAU,SAAS,UAAU,GAAG,KAAI,MAAmB;AAC5E,QAAM,QAAQ;AAAA,IACd,OAAO,EAAE,iBAAiB,QAAQ,OAAO,OAAO;AAAA,IAChD,SAAS,EAAE,QAAQ,kBAAkB,OAAO,QAAQ,YAAY,OAAO;AAAA,IACvE,OAAO,EAAE,YAAY,eAAe,OAAO,OAAO;AAAA,EAClD;AAEA,SAAO,4CAAC,YAAO,OAAO,MAAM,OAAO,GAAI,GAAG,MAAO,UAAS;AAC9D;","names":[]}
package/dist/index.mjs ADDED
@@ -0,0 +1,14 @@
1
+ // src/components/Button.tsx
2
+ import { jsx } from "react/jsx-runtime";
3
+ var Button = ({ variant = "solid", children, ...rest }) => {
4
+ const style = {
5
+ solid: { backgroundColor: "#000", color: "#fff" },
6
+ outline: { border: "1px solid #000", color: "#000", background: "none" },
7
+ ghost: { background: "transparent", color: "#000" }
8
+ };
9
+ return /* @__PURE__ */ jsx("button", { style: style[variant], ...rest, children });
10
+ };
11
+ export {
12
+ Button
13
+ };
14
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Button.tsx"],"sourcesContent":["import React from \"react\";\r\n\r\ntype Variant = \"solid\" | \"outline\" | \"ghost\";\r\n\r\ninterface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>{\r\n variant?: Variant;\r\n children: React.ReactNode;\r\n}\r\n\r\nexport const Button = ({ variant = \"solid\", children, ...rest}: ButtonProps) => {\r\n const style = {\r\n solid: { backgroundColor: \"#000\", color: \"#fff\" },\r\n outline: { border: \"1px solid #000\", color: \"#000\", background: \"none\" },\r\n ghost: { background: \"transparent\", color: \"#000\" },\r\n }\r\n\r\n return <button style={style[variant]} {...rest}>{children}</button>\r\n}"],"mappings":";AAgBW;AAPJ,IAAM,SAAS,CAAC,EAAE,UAAU,SAAS,UAAU,GAAG,KAAI,MAAmB;AAC5E,QAAM,QAAQ;AAAA,IACd,OAAO,EAAE,iBAAiB,QAAQ,OAAO,OAAO;AAAA,IAChD,SAAS,EAAE,QAAQ,kBAAkB,OAAO,QAAQ,YAAY,OAAO;AAAA,IACvE,OAAO,EAAE,YAAY,eAAe,OAAO,OAAO;AAAA,EAClD;AAEA,SAAO,oBAAC,YAAO,OAAO,MAAM,OAAO,GAAI,GAAG,MAAO,UAAS;AAC9D;","names":[]}
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@nithish_atum/atum",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "files": ["dist"],
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
12
+ "scripts": {
13
+ "test": "echo \"Error: no test specified\" && exit 1",
14
+ "dev":"tsup src/index.tsx --watch",
15
+ "build":"tsup",
16
+ "clean":"rm -rf dist",
17
+ "prepare": "pnpm build"
18
+ },
19
+ "keywords": [],
20
+ "author": "",
21
+ "license": "ISC",
22
+ "devDependencies": {
23
+ "@types/react": "^19.1.7",
24
+ "@types/react-dom": "^19.1.6",
25
+ "react": "^19.1.0",
26
+ "react-dom": "^19.1.0",
27
+ "tsup": "^8.5.0",
28
+ "typescript": "^5.8.3"
29
+ }
30
+ }