@ug666/ui-react 0.1.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,9 @@
1
+ /**
2
+ * @description: @ug666/ui-react 的 tokens 入口 — 重新导出 @ug666/ui-utils 的 design tokens,让 React 用户只需装 react 包即可
3
+ * @author: UG - 一个斗码大陆苦逼的三段码之气的少年,并没有神秘戒指中码老的帮助,但总有一天,我会成为斗码大陆中码帝一样的存在。三十年河东,三十年河西,莫欺少年穷。
4
+ * @date: 2026-04-17
5
+ *
6
+ * 使用方式:
7
+ * import '@ug666/ui-react/tokens.css'
8
+ */
9
+ @import "@ug666/ui-utils/tokens.css";
package/package.json ADDED
@@ -0,0 +1,53 @@
1
+ {
2
+ "name": "@ug666/ui-react",
3
+ "version": "0.1.0",
4
+ "description": "UG React UI 组件库 + Hooks",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/index.cjs",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "files": [
11
+ "dist"
12
+ ],
13
+ "publishConfig": {
14
+ "access": "public"
15
+ },
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "import": "./dist/index.js",
20
+ "require": "./dist/index.cjs"
21
+ },
22
+ "./hooks": {
23
+ "types": "./dist/hooks/index.d.ts",
24
+ "import": "./dist/hooks/index.js",
25
+ "require": "./dist/hooks/index.cjs"
26
+ },
27
+ "./tokens.css": "./dist/tokens.css"
28
+ },
29
+ "scripts": {
30
+ "build": "bunx tsup",
31
+ "typecheck": "tsc --noEmit",
32
+ "prepublishOnly": "bun run build"
33
+ },
34
+ "dependencies": {
35
+ "@ug666/ui-utils": "^0.1.0",
36
+ "lucide-react": "^0.468.0",
37
+ "class-variance-authority": "^0.7.0"
38
+ },
39
+ "peerDependencies": {
40
+ "react": "^18.0.0 || ^19.0.0",
41
+ "react-dom": "^18.0.0 || ^19.0.0",
42
+ "tailwindcss": "^4.0.0"
43
+ },
44
+ "devDependencies": {
45
+ "@types/react": "^19.0.0",
46
+ "@types/react-dom": "^19.0.0",
47
+ "@ug666/ui-tsconfig": "^0.1.0",
48
+ "react": "^19.0.0",
49
+ "react-dom": "^19.0.0",
50
+ "tsup": "^8.5.1",
51
+ "typescript": "^5.7.0"
52
+ }
53
+ }