@baishuyun/ai-design 2.0.43 → 2.0.45

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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @baishuyun/ai-design
2
2
 
3
+ ## 2.0.45
4
+
5
+ ### Patch Changes
6
+
7
+ - fix mask layer
8
+ - Updated dependencies
9
+ - @baishuyun/ai-feat-utils@2.0.40
10
+ - @baishuyun/types@3.0.37
11
+
12
+ ## 2.0.44
13
+
14
+ ### Patch Changes
15
+
16
+ - fix style
17
+ - Updated dependencies
18
+ - @baishuyun/ai-feat-utils@2.0.39
19
+ - @baishuyun/types@3.0.36
20
+
3
21
  ## 2.0.43
4
22
 
5
23
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baishuyun/ai-design",
3
- "version": "2.0.43",
3
+ "version": "2.0.45",
4
4
  "description": "AI 功能 UI 组件库 - 所有 AI 功能的 UI 表现唯一真相来源",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -60,8 +60,8 @@
60
60
  "tw-animate-css": "^1.4.0",
61
61
  "vaul": "^1.1.2",
62
62
  "zod": "^4.1.13",
63
- "@baishuyun/ai-feat-utils": "2.0.38",
64
- "@baishuyun/types": "3.0.35"
63
+ "@baishuyun/ai-feat-utils": "2.0.40",
64
+ "@baishuyun/types": "3.0.37"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "react": "^19.0.0",
@@ -84,14 +84,14 @@
84
84
  "vite": "^5.1.4",
85
85
  "vite-plugin-dts": "^4.5.4",
86
86
  "@baishuyun/tailwind-config": "3.0.9",
87
- "@baishuyun/types": "3.0.35",
87
+ "@baishuyun/types": "3.0.37",
88
88
  "@baishuyun/typescript-config": "2.0.9"
89
89
  },
90
90
  "keywords": [],
91
91
  "author": "",
92
92
  "license": "ISC",
93
93
  "scripts": {
94
- "build": "vite build && tailwindcss -i src/style.css -o dist/tailwind.css && cat dist/tailwind.css dist/index.css > dist/ai-design.css && node scripts/strip-layers.cjs && cp dist/ai-design.css style.css && rm dist/tailwind.css dist/index.css",
94
+ "build": "vite build && tailwindcss -i src/style.css -o dist/tailwind.css && node scripts/post-build.cjs",
95
95
  "dev": "vite build --watch",
96
96
  "storybook": "storybook dev -p 6007",
97
97
  "build-storybook": "storybook build"
@@ -0,0 +1,32 @@
1
+ /**
2
+ * ai-design 构建后处理:跨平台替代 cat / cp / rm。
3
+ * Windows 的 cmd.exe 没有这些 Unix 命令,脚本会在 cat 处失败,
4
+ * 而且失败前 `>` 已把 dist/ai-design.css 截断成 0 字节。
5
+ *
6
+ * 步骤:合并 tailwind CLI 产物与 vite 产物 -> 去 @layer 包裹 -> 拷到包根 style.css -> 清理临时文件。
7
+ */
8
+ const fs = require('node:fs');
9
+ const path = require('node:path');
10
+
11
+ // strip-layers.cjs 内部用相对 cwd 的路径,这里统一锚定到包根
12
+ process.chdir(path.resolve(__dirname, '..'));
13
+
14
+ const DIST = 'dist';
15
+
16
+ // 1. 合并(原:cat dist/tailwind.css dist/index.css > dist/ai-design.css)
17
+ const merged =
18
+ fs.readFileSync(`${DIST}/tailwind.css`, 'utf-8') + fs.readFileSync(`${DIST}/index.css`, 'utf-8');
19
+ fs.writeFileSync(`${DIST}/ai-design.css`, merged);
20
+
21
+ // 2. 去掉 @layer 包裹(复用现有脚本,它在 require 时执行)
22
+ require('./strip-layers.cjs');
23
+
24
+ // 3. 拷到包根(原:cp dist/ai-design.css style.css)
25
+ fs.copyFileSync(`${DIST}/ai-design.css`, 'style.css');
26
+
27
+ // 4. 清理临时文件(原:rm dist/tailwind.css dist/index.css)
28
+ for (const file of ['tailwind.css', 'index.css']) {
29
+ fs.rmSync(`${DIST}/${file}`, { force: true });
30
+ }
31
+
32
+ console.log('ai-design post-build done.');
package/style.css CHANGED
@@ -2793,6 +2793,9 @@
2793
2793
  --tw-outline-style: none;
2794
2794
  outline-style: none;
2795
2795
  }
2796
+ .active\:bg-\[\#F0F6FF\]:active {
2797
+ background-color: #F0F6FF;
2798
+ }
2796
2799
  .disabled\:pointer-events-none:disabled {
2797
2800
  pointer-events: none;
2798
2801
  }