klun-ui 0.7.0 → 0.7.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/CHANGELOG.md +15 -0
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,21 @@ All notable changes to **klun-ui** are documented here. The format follows
|
|
|
5
5
|
[Semantic Versioning](https://semver.org/) (pre-1.0: minor/patch bumps may carry
|
|
6
6
|
small breaking changes).
|
|
7
7
|
|
|
8
|
+
## [0.7.1] — 2026-10-08
|
|
9
|
+
|
|
10
|
+
补齐 0.7.0 的一处 CSS 产物缺陷(**无 API 变更、无观感变更**)。
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **注释被提前闭合导致 dist CSS 出现非法选择器**(`src/components/buttons/Button.css`):
|
|
15
|
+
「按下态」注释里的 `default/hover/**pressed**/focus-visible` 含 `**/`,
|
|
16
|
+
而 CSS 注释在第一个 `*/` 处结束 —— 余下的中文说明被当作选择器编译进
|
|
17
|
+
`dist/styles.css`(表现为 `focus-visible\2026 …` 一串转义文本,0.6.0 起受影响,0.5.0 不受影响)。
|
|
18
|
+
影响面:① **下游构建失败** —— 用 lightningcss 压缩 CSS 的工具链(Vite 8 默认)直接报
|
|
19
|
+
`Invalid dangling combinator in selector`;② **浏览器丢弃规则** —— 错误恢复会整条跳过
|
|
20
|
+
紧随其后的 `.klun-button:active:not(:disabled)`,按下态(`translateY(1px)`)因此失效。
|
|
21
|
+
修复方式:去掉注释中的 `**` 强调符,不影响任何规则内容。
|
|
22
|
+
|
|
8
23
|
## [0.7.0] — 2026-10-08
|
|
9
24
|
|
|
10
25
|
尺寸标准落地(第 62 批):把「每个组件多大」从文档搬进机制,并统一**字段族的几何与配色**。
|
package/dist/styles.css
CHANGED
|
@@ -4043,7 +4043,7 @@ body {
|
|
|
4043
4043
|
.klun-button--ghost:hover {
|
|
4044
4044
|
background: var(--_accent-light);
|
|
4045
4045
|
}
|
|
4046
|
-
|
|
4046
|
+
.klun-button:active:not(:disabled) {
|
|
4047
4047
|
transform: translateY(1px);
|
|
4048
4048
|
}
|
|
4049
4049
|
.klun-icon-button:active:not(:disabled) {
|
package/package.json
CHANGED