@nithish_atum/atum 1.0.0 → 1.0.1
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/dist/index.d.mts +1 -10
- package/dist/index.d.ts +1 -10
- package/dist/index.js +52 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +42 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -30
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React from 'react';
|
|
3
1
|
|
|
4
|
-
|
|
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 };
|
|
2
|
+
export { }
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import React from 'react';
|
|
3
1
|
|
|
4
|
-
|
|
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 };
|
|
2
|
+
export { }
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
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
8
|
var __copyProps = (to, from, except, desc) => {
|
|
11
9
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
10
|
for (let key of __getOwnPropNames(from))
|
|
@@ -15,27 +13,63 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
13
|
}
|
|
16
14
|
return to;
|
|
17
15
|
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
18
24
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
25
|
|
|
20
26
|
// src/index.tsx
|
|
21
27
|
var index_exports = {};
|
|
22
|
-
__export(index_exports, {
|
|
23
|
-
Button: () => Button
|
|
24
|
-
});
|
|
25
28
|
module.exports = __toCommonJS(index_exports);
|
|
26
29
|
|
|
27
30
|
// src/components/Button.tsx
|
|
31
|
+
var import_styled_components = __toESM(require("styled-components"));
|
|
28
32
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
29
|
-
var
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
var baseStyle = import_styled_components.css`
|
|
34
|
+
padding: 1em;
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
font-weight: 600;
|
|
37
|
+
transistion: all 900ms;
|
|
38
|
+
`;
|
|
39
|
+
var variantStyles = {
|
|
40
|
+
primary_solid: import_styled_components.css`
|
|
41
|
+
background-color: #2d8eff;
|
|
42
|
+
color: white;
|
|
43
|
+
border: 1px solid #2d8eff;
|
|
44
|
+
transition: all 0.6s ease;
|
|
45
|
+
// &:hover {
|
|
46
|
+
// color: #fff;
|
|
47
|
+
// border-right: none;
|
|
48
|
+
// border-left: none;
|
|
49
|
+
// border-top: 2px solid #fff;
|
|
50
|
+
// border-bottom: 2px solid #fff;
|
|
51
|
+
// background-color:rgba(144, 167, 194, 0);
|
|
52
|
+
// letter-spacing: 4px;
|
|
53
|
+
//}
|
|
54
|
+
`,
|
|
55
|
+
primary_outline: import_styled_components.css`
|
|
56
|
+
background-color: transparent;
|
|
57
|
+
color: #2d8eff;
|
|
58
|
+
border: 1px solid #2d8eff;
|
|
59
|
+
`,
|
|
60
|
+
primary_text: import_styled_components.css`
|
|
61
|
+
background-color: transparent;
|
|
62
|
+
color: #2d8eff;
|
|
63
|
+
border: none;
|
|
64
|
+
transition: all 0.9s ease;
|
|
65
|
+
// &:hover{
|
|
66
|
+
// background-color: #2d8eff;
|
|
67
|
+
// color: #fff;
|
|
68
|
+
// }
|
|
69
|
+
`
|
|
36
70
|
};
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
71
|
+
var StyledButton = import_styled_components.default.button`
|
|
72
|
+
${baseStyle}
|
|
73
|
+
${({ $variant }) => variantStyles[$variant]}
|
|
74
|
+
`;
|
|
41
75
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +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 = \"
|
|
1
|
+
{"version":3,"sources":["../src/index.tsx","../src/components/Button.tsx"],"sourcesContent":["export * from \"./components/Button\";","import React from \"react\";\r\nimport styled, { css } from \"styled-components\";\r\n\r\ntype Variant = \"primary_solid\" | \"primary_outline\" | \"primary_text\";\r\n\r\ninterface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\r\n variant?: Variant;\r\n children: React.ReactNode;\r\n}\r\n\r\nconst baseStyle = css`\r\n padding: 1em;\r\n cursor: pointer;\r\n font-weight: 600;\r\n transistion: all 900ms;\r\n`;\r\n\r\nconst variantStyles = {\r\n primary_solid: css`\r\n background-color: #2d8eff;\r\n color: white;\r\n border: 1px solid #2d8eff;\r\n transition: all 0.6s ease;\r\n // &:hover {\r\n // color: #fff;\r\n // border-right: none;\r\n // border-left: none;\r\n // border-top: 2px solid #fff;\r\n // border-bottom: 2px solid #fff;\r\n // background-color:rgba(144, 167, 194, 0);\r\n // letter-spacing: 4px;\r\n//}\r\n `,\r\n primary_outline: css`\r\n background-color: transparent;\r\n color: #2d8eff;\r\n border: 1px solid #2d8eff;\r\n `,\r\n primary_text: css`\r\n background-color: transparent;\r\n color: #2d8eff;\r\n border: none;\r\n transition: all 0.9s ease;\r\n // &:hover{\r\n // background-color: #2d8eff;\r\n // color: #fff;\r\n // }\r\n `,\r\n};\r\n\r\nconst StyledButton = styled.button<{ $variant: Variant }>`\r\n ${baseStyle}\r\n ${({ $variant }) => variantStyles[$variant]}\r\n`;\r\n\r\nconst Button = ({\r\n variant = \"primary_solid\",\r\n children,\r\n ...rest\r\n}: ButtonProps) => {\r\n return (\r\n <StyledButton $variant={variant} {...rest}>\r\n {children}\r\n </StyledButton>\r\n );\r\n};\r\n\r\nexport default Button;\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;;;ACCA,+BAA4B;AA4DxB;AAnDJ,IAAM,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAOlB,IAAM,gBAAgB;AAAA,EACpB,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAef,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA,EAKjB,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUhB;AAEA,IAAM,eAAe,yBAAAA,QAAO;AAAA,IACxB,SAAS;AAAA,IACT,CAAC,EAAE,SAAS,MAAM,cAAc,QAAQ,CAAC;AAAA;","names":["styled"]}
|
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,46 @@
|
|
|
1
1
|
// src/components/Button.tsx
|
|
2
|
+
import styled, { css } from "styled-components";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
var baseStyle = css`
|
|
5
|
+
padding: 1em;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
font-weight: 600;
|
|
8
|
+
transistion: all 900ms;
|
|
9
|
+
`;
|
|
10
|
+
var variantStyles = {
|
|
11
|
+
primary_solid: css`
|
|
12
|
+
background-color: #2d8eff;
|
|
13
|
+
color: white;
|
|
14
|
+
border: 1px solid #2d8eff;
|
|
15
|
+
transition: all 0.6s ease;
|
|
16
|
+
// &:hover {
|
|
17
|
+
// color: #fff;
|
|
18
|
+
// border-right: none;
|
|
19
|
+
// border-left: none;
|
|
20
|
+
// border-top: 2px solid #fff;
|
|
21
|
+
// border-bottom: 2px solid #fff;
|
|
22
|
+
// background-color:rgba(144, 167, 194, 0);
|
|
23
|
+
// letter-spacing: 4px;
|
|
24
|
+
//}
|
|
25
|
+
`,
|
|
26
|
+
primary_outline: css`
|
|
27
|
+
background-color: transparent;
|
|
28
|
+
color: #2d8eff;
|
|
29
|
+
border: 1px solid #2d8eff;
|
|
30
|
+
`,
|
|
31
|
+
primary_text: css`
|
|
32
|
+
background-color: transparent;
|
|
33
|
+
color: #2d8eff;
|
|
34
|
+
border: none;
|
|
35
|
+
transition: all 0.9s ease;
|
|
36
|
+
// &:hover{
|
|
37
|
+
// background-color: #2d8eff;
|
|
38
|
+
// color: #fff;
|
|
39
|
+
// }
|
|
40
|
+
`
|
|
13
41
|
};
|
|
42
|
+
var StyledButton = styled.button`
|
|
43
|
+
${baseStyle}
|
|
44
|
+
${({ $variant }) => variantStyles[$variant]}
|
|
45
|
+
`;
|
|
14
46
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/Button.tsx"],"sourcesContent":["import React from \"react\";\r\n\r\ntype Variant = \"
|
|
1
|
+
{"version":3,"sources":["../src/components/Button.tsx"],"sourcesContent":["import React from \"react\";\r\nimport styled, { css } from \"styled-components\";\r\n\r\ntype Variant = \"primary_solid\" | \"primary_outline\" | \"primary_text\";\r\n\r\ninterface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {\r\n variant?: Variant;\r\n children: React.ReactNode;\r\n}\r\n\r\nconst baseStyle = css`\r\n padding: 1em;\r\n cursor: pointer;\r\n font-weight: 600;\r\n transistion: all 900ms;\r\n`;\r\n\r\nconst variantStyles = {\r\n primary_solid: css`\r\n background-color: #2d8eff;\r\n color: white;\r\n border: 1px solid #2d8eff;\r\n transition: all 0.6s ease;\r\n // &:hover {\r\n // color: #fff;\r\n // border-right: none;\r\n // border-left: none;\r\n // border-top: 2px solid #fff;\r\n // border-bottom: 2px solid #fff;\r\n // background-color:rgba(144, 167, 194, 0);\r\n // letter-spacing: 4px;\r\n//}\r\n `,\r\n primary_outline: css`\r\n background-color: transparent;\r\n color: #2d8eff;\r\n border: 1px solid #2d8eff;\r\n `,\r\n primary_text: css`\r\n background-color: transparent;\r\n color: #2d8eff;\r\n border: none;\r\n transition: all 0.9s ease;\r\n // &:hover{\r\n // background-color: #2d8eff;\r\n // color: #fff;\r\n // }\r\n `,\r\n};\r\n\r\nconst StyledButton = styled.button<{ $variant: Variant }>`\r\n ${baseStyle}\r\n ${({ $variant }) => variantStyles[$variant]}\r\n`;\r\n\r\nconst Button = ({\r\n variant = \"primary_solid\",\r\n children,\r\n ...rest\r\n}: ButtonProps) => {\r\n return (\r\n <StyledButton $variant={variant} {...rest}>\r\n {children}\r\n </StyledButton>\r\n );\r\n};\r\n\r\nexport default Button;\r\n"],"mappings":";AACA,OAAO,UAAU,WAAW;AA4DxB;AAnDJ,IAAM,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAOlB,IAAM,gBAAgB;AAAA,EACpB,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAef,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA,EAKjB,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUhB;AAEA,IAAM,eAAe,OAAO;AAAA,IACxB,SAAS;AAAA,IACT,CAAC,EAAE,SAAS,MAAM,cAAc,QAAQ,CAAC;AAAA;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,30 +1 @@
|
|
|
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
|
-
}
|
|
1
|
+
{"name":"@nithish_atum/atum","version":"1.0.1","description":"","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","files":["dist"],"publishConfig":{"access":"public"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1","dev":"tsup src/index.tsx --watch","build":"tsup","clean":"rm -rf dist","prepare":"pnpm build"},"keywords":[],"author":"","license":"ISC","devDependencies":{"@types/react":"^19.1.7","@types/react-dom":"^19.1.6","react":"^19.1.0","react-dom":"^19.1.0","tsup":"^8.5.0","typescript":"^5.8.3"},"dependencies":{"styled-components":"^6.1.19"}}
|