@qw-ui/core 0.3.0-next.38 → 0.3.0-next.39

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.
@@ -71,6 +71,15 @@ export type QwGeometryRelation = {
71
71
  /** T3 token 短名,如 "size-control-height-m";运行时从 tokens.json 解析 */
72
72
  token: string;
73
73
  };
74
+ /** 真实浏览器 computed style 的精确期望。 */
75
+ export interface QwVisualStyleExpectation {
76
+ target: string;
77
+ /** 期望生效的场景状态;省略时为 default。 */
78
+ state?: QwVisualState;
79
+ /** kebab-case CSS 属性名,如 `padding-inline-start`。 */
80
+ property: string;
81
+ value: string;
82
+ }
74
83
  /** 场景级可选强契约;省略时仍享有零声明基础保障。 */
75
84
  export interface QwVisualExpect {
76
85
  /** 覆盖库级默认通道(极少用,如某状态刻意不改 fill)。 */
@@ -80,6 +89,8 @@ export interface QwVisualExpect {
80
89
  * key = "state.property"(state 可省略,默认 default),value = token 短名(如 "border-focus")。
81
90
  */
82
91
  tokens?: Record<string, string>;
92
+ /** 精确 computed style;用于无法仅以 token 绑定表达的确定性尺寸契约。 */
93
+ styles?: QwVisualStyleExpectation[];
83
94
  /** 几何关系谓词。 */
84
95
  geometry?: QwGeometryRelation[];
85
96
  /** 该场景颜色随主题不变,显式豁免主题 delta 检查。 */
@@ -88,6 +99,12 @@ export interface QwVisualExpect {
88
99
  motion?: {
89
100
  /** data-visual-target 或 data-part 选择器别名;解析为动画宿主 */
90
101
  animatedPart: string;
102
+ /** animatedPart 内部的 data-part;省略时直接检查 animatedPart。 */
103
+ part?: string;
104
+ /** 浏览器解析后的精确 animation-duration。 */
105
+ duration?: string;
106
+ /** 浏览器解析后的精确 animation-timing-function。 */
107
+ timingFunction?: string;
91
108
  respectsReducedMotion?: boolean;
92
109
  };
93
110
  /** Icon 等:双栈 SVG 结构归一化哈希一致。 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qw-ui/core",
3
- "version": "0.3.0-next.38",
3
+ "version": "0.3.0-next.39",
4
4
  "description": "L2 · Headless Core — zag.js machine 薄包装,纯 TS / SSR-safe,零样式。",
5
5
  "license": "MIT",
6
6
  "author": "qw-ui contributors",
@@ -123,7 +123,7 @@
123
123
  "@zag-js/dialog": "^1.42.0",
124
124
  "@zag-js/tabs": "^1.42.0",
125
125
  "@zag-js/utils": "1.42.0",
126
- "@qw-ui/icons": "^0.3.0-next.38"
126
+ "@qw-ui/icons": "^0.3.0-next.39"
127
127
  },
128
128
  "devDependencies": {
129
129
  "@microsoft/api-extractor": "^7.58.9",