@lizzy-liang-bigstack/ui 0.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.css +45417 -0
- package/dist/index.d.cts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +21 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +75 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ButtonHTMLAttributes, AnchorHTMLAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement>;
|
|
5
|
+
declare function Button({ className, children, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
6
|
+
|
|
7
|
+
type HyperlinkProps = AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
8
|
+
declare function Hyperlink({ children, ...props }: HyperlinkProps): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { Button, type ButtonProps, Hyperlink, type HyperlinkProps };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ButtonHTMLAttributes, AnchorHTMLAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement>;
|
|
5
|
+
declare function Button({ className, children, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
6
|
+
|
|
7
|
+
type HyperlinkProps = AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
8
|
+
declare function Hyperlink({ children, ...props }: HyperlinkProps): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { Button, type ButtonProps, Hyperlink, type HyperlinkProps };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
|
|
5
|
+
// src/components/Button/Button.tsx
|
|
6
|
+
function Button({ className = "", children, ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8
|
+
"button",
|
|
9
|
+
{
|
|
10
|
+
type: "button",
|
|
11
|
+
className: `bg-cosmos-secondary text-white rounded-lg px-4 py-2 font-medium font-inter hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50 ${className}`,
|
|
12
|
+
...props,
|
|
13
|
+
children
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
function Hyperlink({ children, ...props }) {
|
|
18
|
+
return /* @__PURE__ */ jsxRuntime.jsx("a", { ...props, children });
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
exports.Button = Button;
|
|
22
|
+
exports.Hyperlink = Hyperlink;
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Button/Button.tsx","../src/components/Hyperlink/Hyperlink.tsx"],"names":["jsx"],"mappings":";;;;;AAIO,SAAS,OAAO,EAAE,SAAA,GAAY,IAAI,QAAA,EAAU,GAAG,OAAM,EAAgB;AAC1E,EAAA,uBACEA,cAAA;AAAA,IAAC,QAAA;AAAA,IAAA;AAAA,MACC,IAAA,EAAK,QAAA;AAAA,MACL,SAAA,EAAW,+IAA+I,SAAS,CAAA,CAAA;AAAA,MAClK,GAAG,KAAA;AAAA,MAEH;AAAA;AAAA,GACH;AAEJ;ACVO,SAAS,SAAA,CAAU,EAAE,QAAA,EAAU,GAAG,OAAM,EAAmB;AAChE,EAAA,uBAAOA,cAAAA,CAAC,GAAA,EAAA,EAAG,GAAG,OAAQ,QAAA,EAAS,CAAA;AACjC","file":"index.js","sourcesContent":["import type { ButtonHTMLAttributes } from 'react'\n\nexport type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement>\n\nexport function Button({ className = '', children, ...props }: ButtonProps) {\n return (\n <button\n type=\"button\"\n className={`bg-cosmos-secondary text-white rounded-lg px-4 py-2 font-medium font-inter hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50 ${className}`}\n {...props}\n >\n {children}\n </button>\n )\n}\n","import type { AnchorHTMLAttributes } from 'react'\n\nexport type HyperlinkProps = AnchorHTMLAttributes<HTMLAnchorElement>\n\nexport function Hyperlink({ children, ...props }: HyperlinkProps) {\n return <a {...props}>{children}</a>\n}\n"]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
// src/components/Button/Button.tsx
|
|
4
|
+
function Button({ className = "", children, ...props }) {
|
|
5
|
+
return /* @__PURE__ */ jsx(
|
|
6
|
+
"button",
|
|
7
|
+
{
|
|
8
|
+
type: "button",
|
|
9
|
+
className: `bg-cosmos-secondary text-white rounded-lg px-4 py-2 font-medium font-inter hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50 ${className}`,
|
|
10
|
+
...props,
|
|
11
|
+
children
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
function Hyperlink({ children, ...props }) {
|
|
16
|
+
return /* @__PURE__ */ jsx("a", { ...props, children });
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { Button, Hyperlink };
|
|
20
|
+
//# sourceMappingURL=index.mjs.map
|
|
21
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/Button/Button.tsx","../src/components/Hyperlink/Hyperlink.tsx"],"names":["jsx"],"mappings":";;;AAIO,SAAS,OAAO,EAAE,SAAA,GAAY,IAAI,QAAA,EAAU,GAAG,OAAM,EAAgB;AAC1E,EAAA,uBACE,GAAA;AAAA,IAAC,QAAA;AAAA,IAAA;AAAA,MACC,IAAA,EAAK,QAAA;AAAA,MACL,SAAA,EAAW,+IAA+I,SAAS,CAAA,CAAA;AAAA,MAClK,GAAG,KAAA;AAAA,MAEH;AAAA;AAAA,GACH;AAEJ;ACVO,SAAS,SAAA,CAAU,EAAE,QAAA,EAAU,GAAG,OAAM,EAAmB;AAChE,EAAA,uBAAOA,GAAAA,CAAC,GAAA,EAAA,EAAG,GAAG,OAAQ,QAAA,EAAS,CAAA;AACjC","file":"index.mjs","sourcesContent":["import type { ButtonHTMLAttributes } from 'react'\n\nexport type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement>\n\nexport function Button({ className = '', children, ...props }: ButtonProps) {\n return (\n <button\n type=\"button\"\n className={`bg-cosmos-secondary text-white rounded-lg px-4 py-2 font-medium font-inter hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-50 ${className}`}\n {...props}\n >\n {children}\n </button>\n )\n}\n","import type { AnchorHTMLAttributes } from 'react'\n\nexport type HyperlinkProps = AnchorHTMLAttributes<HTMLAnchorElement>\n\nexport function Hyperlink({ children, ...props }: HyperlinkProps) {\n return <a {...props}>{children}</a>\n}\n"]}
|
package/package.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lizzy-liang-bigstack/ui",
|
|
3
|
+
"private": false,
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"version": "0.0.1",
|
|
6
|
+
"description": "Cube UI Components Library",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"module": "./dist/index.mjs",
|
|
10
|
+
"style": "./dist/index.css",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.mjs",
|
|
16
|
+
"require": "./dist/index.js"
|
|
17
|
+
},
|
|
18
|
+
"./styles.css": "./dist/index.css"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
23
|
+
"sideEffects": [
|
|
24
|
+
"**/*.css"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "pnpm build:js && pnpm build:css",
|
|
28
|
+
"build:css": "postcss src/styles.css -o dist/index.css",
|
|
29
|
+
"build:js": "tsup",
|
|
30
|
+
"dev": "tsup --watch",
|
|
31
|
+
"storybook": "storybook dev -p 6006",
|
|
32
|
+
"build-storybook": "storybook build",
|
|
33
|
+
"typecheck": "tsc --noEmit"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@lizzy-liang-bigstack/theme": "workspace:^"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@storybook/addon-docs": "^10.3.5",
|
|
40
|
+
"@storybook/addon-links": "^10.3.5",
|
|
41
|
+
"@storybook/react": "^10.4.1",
|
|
42
|
+
"@storybook/react-vite": "^10.3.5",
|
|
43
|
+
"@types/react": "catalog:",
|
|
44
|
+
"@types/react-dom": "catalog:",
|
|
45
|
+
"autoprefixer": "catalog:",
|
|
46
|
+
"postcss": "catalog:",
|
|
47
|
+
"postcss-cli": "^11.0.1",
|
|
48
|
+
"react": "catalog:",
|
|
49
|
+
"react-dom": "catalog:",
|
|
50
|
+
"storybook": "^10.3.5",
|
|
51
|
+
"tailwindcss": "catalog:",
|
|
52
|
+
"tsup": "catalog:",
|
|
53
|
+
"vite": "catalog:"
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"react": "catalog:",
|
|
57
|
+
"react-dom": "catalog:"
|
|
58
|
+
},
|
|
59
|
+
"peerDependenciesMeta": {
|
|
60
|
+
"react": {
|
|
61
|
+
"optional": false
|
|
62
|
+
},
|
|
63
|
+
"react-dom": {
|
|
64
|
+
"optional": false
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"format": [
|
|
68
|
+
"cjs",
|
|
69
|
+
"esm"
|
|
70
|
+
],
|
|
71
|
+
"outExtension": {
|
|
72
|
+
"cjs": ".js",
|
|
73
|
+
"esm": ".mjs"
|
|
74
|
+
}
|
|
75
|
+
}
|