@stargazers-stella/cosmic-ui 0.1.4
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/README.md +96 -0
- package/dist/index.cjs +2864 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +178 -0
- package/dist/index.d.ts +178 -0
- package/dist/index.js +2770 -0
- package/dist/index.js.map +1 -0
- package/package.json +44 -0
- package/theme.css +71 -0
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stargazers-stella/cosmic-ui",
|
|
3
|
+
"version": "0.1.4",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.cjs",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"style": "theme.css",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"theme.css",
|
|
13
|
+
"README.md"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsup src/index.ts --format esm,cjs --dts --sourcemap",
|
|
17
|
+
"clean": "rimraf dist"
|
|
18
|
+
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"react": "^18 || ^19",
|
|
21
|
+
"react-dom": "^18 || ^19"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"class-variance-authority": "^0.7.0",
|
|
25
|
+
"clsx": "^2.1.1",
|
|
26
|
+
"cmdk": "^1.0.0",
|
|
27
|
+
"lucide-react": "^0.469.0",
|
|
28
|
+
"@radix-ui/react-dropdown-menu": "^2.1.2",
|
|
29
|
+
"@radix-ui/react-select": "^2.1.2",
|
|
30
|
+
"sonner": "^1.5.0",
|
|
31
|
+
"tailwind-merge": "^2.5.3"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@types/react": "^19.0.0",
|
|
35
|
+
"@types/react-dom": "^19.0.0",
|
|
36
|
+
"rimraf": "^6.0.1",
|
|
37
|
+
"tsup": "^8.3.0",
|
|
38
|
+
"typescript": "^5.0.0"
|
|
39
|
+
},
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public",
|
|
42
|
+
"registry": "https://registry.npmjs.org/"
|
|
43
|
+
}
|
|
44
|
+
}
|
package/theme.css
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* Light theme */
|
|
3
|
+
--background: #f7f7fb;
|
|
4
|
+
--foreground: #0c1224;
|
|
5
|
+
--card: rgba(255, 255, 255, 0.9);
|
|
6
|
+
--card-foreground: #111827;
|
|
7
|
+
--popover: #ffffff;
|
|
8
|
+
--popover-foreground: #0c1224;
|
|
9
|
+
--primary: #4f46e5;
|
|
10
|
+
--primary-foreground: #f5f3ff;
|
|
11
|
+
--secondary: #e5e7ff;
|
|
12
|
+
--secondary-foreground: #111827;
|
|
13
|
+
--muted: #e7e8f5;
|
|
14
|
+
--muted-foreground: #4b5563;
|
|
15
|
+
--accent: #c7d2fe;
|
|
16
|
+
--accent-foreground: #111827;
|
|
17
|
+
--destructive: #ef4444;
|
|
18
|
+
--destructive-foreground: #fef2f2;
|
|
19
|
+
--border: rgba(17, 24, 39, 0.08);
|
|
20
|
+
--input: rgba(17, 24, 39, 0.08);
|
|
21
|
+
--ring: rgba(79, 70, 229, 0.35);
|
|
22
|
+
--surface: rgba(255, 255, 255, 0.9);
|
|
23
|
+
--surface-strong: rgba(255, 255, 255, 0.95);
|
|
24
|
+
--surface-muted: rgba(12, 18, 36, 0.06);
|
|
25
|
+
--surface-inset: rgba(12, 18, 36, 0.1);
|
|
26
|
+
--radius: 1rem;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.dark {
|
|
30
|
+
/* Dark theme */
|
|
31
|
+
--background: #08080c;
|
|
32
|
+
--foreground: #f4f4ff;
|
|
33
|
+
--card: rgba(19, 20, 26, 0.85);
|
|
34
|
+
--card-foreground: #e2e8f0;
|
|
35
|
+
--popover: #0f1018;
|
|
36
|
+
--popover-foreground: #f8fafc;
|
|
37
|
+
--primary: #7c3aed;
|
|
38
|
+
--primary-foreground: #f5f3ff;
|
|
39
|
+
--secondary: #1e1f2a;
|
|
40
|
+
--secondary-foreground: #e5e7eb;
|
|
41
|
+
--muted: #161722;
|
|
42
|
+
--muted-foreground: #9ca3af;
|
|
43
|
+
--accent: #312e81;
|
|
44
|
+
--accent-foreground: #f8fafc;
|
|
45
|
+
--destructive: #ef4444;
|
|
46
|
+
--destructive-foreground: #fef2f2;
|
|
47
|
+
--border: rgba(255, 255, 255, 0.08);
|
|
48
|
+
--input: rgba(255, 255, 255, 0.1);
|
|
49
|
+
--ring: rgba(124, 58, 237, 0.4);
|
|
50
|
+
--surface: rgba(8, 8, 15, 0.65);
|
|
51
|
+
--surface-strong: rgba(5, 6, 12, 0.78);
|
|
52
|
+
--surface-muted: rgba(255, 255, 255, 0.05);
|
|
53
|
+
--surface-inset: rgba(255, 255, 255, 0.08);
|
|
54
|
+
--radius: 1rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.surface {
|
|
58
|
+
background: var(--surface);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.surface-strong {
|
|
62
|
+
background: var(--surface-strong);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.surface-muted {
|
|
66
|
+
background: var(--surface-muted);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.surface-inset {
|
|
70
|
+
background: var(--surface-inset);
|
|
71
|
+
}
|