cos-design 3.7.1 → 3.7.2
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 +12 -0
- package/README.md +18 -17
- package/dist/index.cjs +3 -3
- package/dist/index.css +1 -1
- package/dist/index.js +1429 -802
- package/dist/src/components/index.d.ts +2 -0
- package/dist/src/components/photoClothesline/index.d.ts +5 -0
- package/dist/src/components/photoClothesline/types.d.ts +67 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [3.7.2] - 2026-07-31
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- 新增 `PhotoClothesline` 晾衣绳照片墙:每张相纸挂在独立的 verlet 吊带上,可抓住任意方向甩动并自由摆回,空白处左右拖动浏览更多
|
|
13
|
+
- 主绳按夹点联动下沉,拽下一张照片会顺着绳子牵动左右邻居
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- @cos-design/photo-clothesline: 新增 3.7.2
|
|
18
|
+
- cos-design: 聚合包更新至 3.7.2
|
|
19
|
+
|
|
8
20
|
## [3.7.1] - 2026-07-31
|
|
9
21
|
|
|
10
22
|
### Added
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# cos-design
|
|
4
4
|
|
|
5
|
-
**
|
|
5
|
+
**73 个 React 视觉特效组件 · 活动页 / 品牌页 / 创意展示开箱即用**
|
|
6
6
|
|
|
7
7
|
[](https://github.com/jiaxiantao/cos-design/actions/workflows/ci.yml)
|
|
8
8
|
[](https://www.npmjs.com/package/cos-design)
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
| 数据大屏 | 翻牌器、数字递增、仪表盘、关系网络图 |
|
|
30
30
|
| 创意作品集 | 牛顿摆、DNA 螺旋、迷宫生成、生命游戏 |
|
|
31
31
|
|
|
32
|
-
> 从背景到物理、从文字到营销,
|
|
32
|
+
> 从背景到物理、从文字到营销,73 个组件刚好组成一套完整的「视觉工具箱」。
|
|
33
33
|
|
|
34
34
|
---
|
|
35
35
|
|
|
@@ -80,7 +80,7 @@ export default function Page() {
|
|
|
80
80
|
| ---------------------------------------------------------------------- | -------------------------------------------------------- |
|
|
81
81
|
| [llms.txt](https://jiaxiantao.github.io/cos-design/llms.txt) | 供 Agent 抓取的索引(场景 → 组件 → 安装命令) |
|
|
82
82
|
| [llms-full.txt](https://jiaxiantao.github.io/cos-design/llms-full.txt) | 站点上的完整 AI 参考(与 docs/ai.md 同步) |
|
|
83
|
-
| [docs/ai.md](./docs/ai.md) |
|
|
83
|
+
| [docs/ai.md](./docs/ai.md) | 73 个组件的完整 AI 参考(安装 / import / 示例 / Props) |
|
|
84
84
|
| [AGENTS.md](./AGENTS.md) | 仓库级 Agent 规则,可复制到用户项目 |
|
|
85
85
|
| [.cursor/skills/cos-design](./.cursor/skills/cos-design/SKILL.md) | Cursor Skill,克隆本仓库或复制到你的 `~/.cursor/skills/` |
|
|
86
86
|
|
|
@@ -105,7 +105,7 @@ export default function Page() {
|
|
|
105
105
|
|
|
106
106
|
---
|
|
107
107
|
|
|
108
|
-
## 组件一览(
|
|
108
|
+
## 组件一览(73 个 · 8 大分类)
|
|
109
109
|
|
|
110
110
|
<details open>
|
|
111
111
|
<summary><strong>背景动效</strong> — 11 个 · 动态场景与粒子背景</summary>
|
|
@@ -157,20 +157,21 @@ export default function Page() {
|
|
|
157
157
|
</details>
|
|
158
158
|
|
|
159
159
|
<details>
|
|
160
|
-
<summary><strong>交互玩具</strong> —
|
|
160
|
+
<summary><strong>交互玩具</strong> — 9 个 · 鼠标驱动的趣味反馈</summary>
|
|
161
161
|
|
|
162
162
|
<br>
|
|
163
163
|
|
|
164
|
-
| 组件
|
|
165
|
-
|
|
|
166
|
-
| `WaveButton`
|
|
167
|
-
| `Spotlight`
|
|
168
|
-
| `MagneticButton`
|
|
169
|
-
| `HolographicCard`
|
|
170
|
-
| `PhotoAlbum`
|
|
171
|
-
| `
|
|
172
|
-
| `
|
|
173
|
-
| `
|
|
164
|
+
| 组件 | 说明 |
|
|
165
|
+
| ------------------ | ------------ |
|
|
166
|
+
| `WaveButton` | 水波扩散按钮 |
|
|
167
|
+
| `Spotlight` | 手电筒照亮 |
|
|
168
|
+
| `MagneticButton` | 磁吸按钮 |
|
|
169
|
+
| `HolographicCard` | 全息反光卡片 |
|
|
170
|
+
| `PhotoAlbum` | 真实翻页相册 |
|
|
171
|
+
| `PhotoClothesline` | 晾绳照片墙 |
|
|
172
|
+
| `ClickSpark` | 点击火花 |
|
|
173
|
+
| `CursorTrail` | 光标拖尾 |
|
|
174
|
+
| `LiquidGlass` | 液态毛玻璃 |
|
|
174
175
|
|
|
175
176
|
</details>
|
|
176
177
|
|
|
@@ -263,7 +264,7 @@ export default function Page() {
|
|
|
263
264
|
|
|
264
265
|
## 特性
|
|
265
266
|
|
|
266
|
-
- **
|
|
267
|
+
- **73 个组件**,覆盖背景、文字、交互、营销、数据、物理、科学、特效八大场景
|
|
267
268
|
- **React 19** + **Vite 8** + **TypeScript 5** 现代技术栈
|
|
268
269
|
- **ESM / CJS** 双格式,完整 `.d.ts` 类型
|
|
269
270
|
- **样式自动注入**,无需 `import 'cos-design/dist/index.css'`
|
|
@@ -284,7 +285,7 @@ npm run setup # 安装依赖(绕过 corepack 问题)
|
|
|
284
285
|
npx --yes pnpm@9 dev # 启动 Playground
|
|
285
286
|
```
|
|
286
287
|
|
|
287
|
-
访问 **http://localhost:4000** — 按分类浏览全部
|
|
288
|
+
访问 **http://localhost:4000** — 按分类浏览全部 73 个组件,右侧可查看与复制示例代码。
|
|
288
289
|
|
|
289
290
|
---
|
|
290
291
|
|