@downcity/ui 0.1.0 → 0.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@downcity/ui",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Downcity UI SDK for React and Tailwind CSS applications.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -8,7 +8,7 @@
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+https://github.com/wangenius/downcity.git",
11
- "directory": "packages/downcity-ui"
11
+ "directory": "packages/ui"
12
12
  },
13
13
  "bugs": {
14
14
  "url": "https://github.com/wangenius/downcity/issues"
@@ -28,23 +28,26 @@
28
28
  "import": "./dist/index.js",
29
29
  "require": "./dist/index.cjs"
30
30
  },
31
+ "./source.css": "./src/source.css",
31
32
  "./styles.css": "./src/styles.css"
32
33
  },
33
34
  "files": [
34
35
  "dist",
36
+ "src/source.css",
35
37
  "src/styles.css"
36
38
  ],
37
- "scripts": {
38
- "build": "tsup src/index.ts --format esm,cjs --dts --clean",
39
- "typecheck": "tsc --noEmit",
40
- "prepublishOnly": "npm run build"
41
- },
42
39
  "peerDependencies": {
43
- "react": "^19.0.0",
44
- "react-dom": "^19.0.0"
40
+ "react": "^19.2.0",
41
+ "react-dom": "^19.2.0"
45
42
  },
46
43
  "dependencies": {
47
44
  "@base-ui/react": "^1.3.0",
45
+ "@pxlkit/core": "^1.2.2",
46
+ "@pxlkit/effects": "^1.2.2",
47
+ "@pxlkit/feedback": "^1.2.2",
48
+ "@pxlkit/gamification": "^1.2.2",
49
+ "@pxlkit/parallax": "^1.2.2",
50
+ "@pxlkit/ui": "^1.2.2",
48
51
  "class-variance-authority": "^0.7.1",
49
52
  "clsx": "^2.1.1",
50
53
  "lucide-react": "^0.577.0",
@@ -52,10 +55,8 @@
52
55
  "tailwind-merge": "^3.5.0"
53
56
  },
54
57
  "devDependencies": {
55
- "react": "^19.0.0",
56
- "react-dom": "^19.0.0",
57
- "@types/react": "^19.0.0",
58
- "@types/react-dom": "^19.0.0",
58
+ "@types/react": "^19.2.2",
59
+ "@types/react-dom": "^19.2.2",
59
60
  "tsup": "^8.5.0",
60
61
  "typescript": "^5.9.2"
61
62
  },
@@ -65,5 +66,10 @@
65
66
  "react",
66
67
  "tailwind",
67
68
  "agent"
68
- ]
69
- }
69
+ ],
70
+ "scripts": {
71
+ "build": "tsup src/index.ts --format esm,cjs --dts --clean",
72
+ "dev": "tsup src/index.ts --format esm,cjs --dts --watch",
73
+ "typecheck": "tsc --noEmit"
74
+ }
75
+ }
package/src/source.css ADDED
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Downcity UI SDK Tailwind 扫描入口。
3
+ *
4
+ * 关键说明(中文)
5
+ * - 该文件只负责为宿主应用声明 Downcity UI 包产物的 Tailwind 扫描来源。
6
+ * - 设计上与主题样式入口分离,避免把 source 声明隐式塞进 `styles.css`。
7
+ * - 宿主应用应在 `@import "tailwindcss";` 之后显式引入本文件。
8
+ */
9
+
10
+ @source "../dist";