sparkdesign 0.2.5 → 0.2.7
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Spark
|
|
1
|
+
# Spark Design
|
|
2
2
|
|
|
3
3
|
现代化 React 设计系统,支持双维度主题(颜色 theme + 布局 scale),5 种内置布局风格,提供 Foundation 基础组件与 Chat 对话流组件,可扩展颜色主题。
|
|
4
4
|
|
|
@@ -176,7 +176,7 @@ function App() {
|
|
|
176
176
|
}
|
|
177
177
|
```
|
|
178
178
|
|
|
179
|
-
完整变量清单见 [NPM 发布指南](https://github.com/
|
|
179
|
+
完整变量清单见 [NPM 发布指南](https://github.com/nicepkg/spark-design/blob/master/docs/NPM发布指南.md)(颜色 `--color-*`、间距 `--spacing-*`、圆角 `--radius-*`、字号 `--font-size-*` 等)。
|
|
180
180
|
|
|
181
181
|
### 5. Portal 浮层与主题一致
|
|
182
182
|
|
|
@@ -276,7 +276,7 @@ src/
|
|
|
276
276
|
### 技术栈与规范
|
|
277
277
|
|
|
278
278
|
- React 19 + TypeScript + Vite 7;Tailwind CSS 4;Radix UI、Framer Motion
|
|
279
|
-
- 项目哲学与 GEB 协议:[CLAUDE.md](https://github.com/
|
|
279
|
+
- 项目哲学与 GEB 协议:[CLAUDE.md](https://github.com/nicepkg/spark-design/blob/master/CLAUDE.md)
|
|
280
280
|
|
|
281
281
|
---
|
|
282
282
|
|
package/cli/dist/utils/tokens.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import path from 'node:path';
|
|
11
11
|
import fs from 'fs-extra';
|
|
12
|
-
const TOKEN_MARKER = '
|
|
12
|
+
const TOKEN_MARKER = 'Spark Design tokens';
|
|
13
13
|
/** 项目里是否已有 token(入口 CSS 内联了变量、或已 import qoder-tokens.css) */
|
|
14
14
|
export async function projectHasTokens(cwd) {
|
|
15
15
|
const candidates = [
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* 3. Token 使用检查:所有样式使用 Tailwind 类名(设计 token)
|
|
10
10
|
* 4. 类型导出检查:EllipsisTextProps 是否完整导出
|
|
11
11
|
*
|
|
12
|
-
* 设计规范(
|
|
12
|
+
* 设计规范(Spark Design):
|
|
13
13
|
* - lines: 1 单行省略,>1 多行 -webkit-line-clamp
|
|
14
14
|
* - placement: top | bottom | left | right,仅溢出时显示 tooltip
|
|
15
15
|
* - 仅溢出时用 foundation Tooltip 组件展示气泡,样式与行为统一
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sparkdesign",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Modern React Design System with dual-dimension theme system",
|
|
6
6
|
"keywords": [
|
|
@@ -13,17 +13,17 @@
|
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"repository": {
|
|
15
15
|
"type": "git",
|
|
16
|
-
"url": "git+https://github.com/
|
|
16
|
+
"url": "git+https://github.com/nicepkg/spark-design.git"
|
|
17
17
|
},
|
|
18
|
-
"homepage": "https://spark
|
|
18
|
+
"homepage": "https://spark.design",
|
|
19
19
|
"bin": {
|
|
20
20
|
"sparkdesign": "./cli/dist/index.js"
|
|
21
21
|
},
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
24
|
"types": "./dist/components/index.d.ts",
|
|
25
|
-
"import": "./dist/spark-
|
|
26
|
-
"require": "./dist/spark-
|
|
25
|
+
"import": "./dist/spark-design.es.js",
|
|
26
|
+
"require": "./dist/spark-design.cjs.js"
|
|
27
27
|
},
|
|
28
28
|
"./style": "./dist/qoder-design.css",
|
|
29
29
|
"./theme.css": "./dist/theme.css",
|
|
File without changes
|
|
File without changes
|