@q1travel/design-system 0.12.0 → 0.13.0
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 +1 -1
- package/bin/q1-design.mjs +1 -1
- package/dist-pkg/design-system.d.ts +2 -1
- package/dist-pkg/design-system.js +2701 -2607
- package/dist-pkg/style.css +67 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ q1travel 产品家族的设计权威上游仓,三件事集于一处:`@q1trav
|
|
|
15
15
|
|
|
16
16
|
## Getting Started
|
|
17
17
|
|
|
18
|
-
前置要求:Node.js 22+(CI 基线 22)与 npm(依赖锁定在 `package-lock.json`);运行 `check:browser` 需要本机 Chrome(可用 `CHROME_PATH`
|
|
18
|
+
前置要求:Node.js 22+(CI 基线 22)与 npm(依赖锁定在 `package-lock.json`);运行 `check:browser` 需要本机 Chrome(可用 `CHROME_PATH` 指定)。`check:browser` 在本地与 CI 都默认使用 `--headless=new`,不探测 TTY 或 `DISPLAY`;只有显式设置 `Q1_DESIGN_BROWSER_HEADLESS=false` 才切换到 headed 模式。
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
21
|
npm install
|
package/bin/q1-design.mjs
CHANGED
|
@@ -180,7 +180,7 @@ export function findsRawMotionLiteral(lineContent, commentState) {
|
|
|
180
180
|
// 「用户动作到界面回应完毕」有多久;无限循环按定义不是对输入的响应,它的周期是该组件
|
|
181
181
|
// 自己的节奏(spinner 1.2s、skeleton 1.6s),塞进 120–300ms 只会压坏它,或逼出假 token。
|
|
182
182
|
if (/\binfinite\b/.test(segment)) return false;
|
|
183
|
-
//
|
|
183
|
+
// 值整体来自 var() 时不判——例如 `transition: var(--q1-duration-base)`,静态规则不能展开变量内容。
|
|
184
184
|
const withoutVars = segment.replace(VAR_CALL_PATTERN, '');
|
|
185
185
|
return BARE_DURATION_PATTERN.test(withoutVars) || BARE_EASING_PATTERN.test(withoutVars);
|
|
186
186
|
});
|
|
@@ -1396,7 +1396,7 @@ export declare const Sidebar: typeof SidebarRoot & {
|
|
|
1396
1396
|
|
|
1397
1397
|
declare function SidebarContent({ className, ...props }: SidebarSlotProps): JSX.Element;
|
|
1398
1398
|
|
|
1399
|
-
export declare function SidebarDrawer({ 'aria-label': ariaLabel, open, onOpenChange, trigger, header, footer, children, collapseBelow, drawerWidth, variant, }: SidebarDrawerProps): JSX.Element;
|
|
1399
|
+
export declare function SidebarDrawer({ 'aria-label': ariaLabel, open, onOpenChange, trigger, header, footer, children, collapseBelow, drawerWidth, variant, dismissOnBackdrop, }: SidebarDrawerProps): JSX.Element;
|
|
1400
1400
|
|
|
1401
1401
|
export declare type SidebarDrawerProps = {
|
|
1402
1402
|
'aria-label': string;
|
|
@@ -1409,6 +1409,7 @@ export declare type SidebarDrawerProps = {
|
|
|
1409
1409
|
collapseBelow?: number;
|
|
1410
1410
|
drawerWidth?: SidebarDrawerWidth;
|
|
1411
1411
|
variant?: SidebarVariant;
|
|
1412
|
+
dismissOnBackdrop?: boolean;
|
|
1412
1413
|
};
|
|
1413
1414
|
|
|
1414
1415
|
export declare type SidebarDrawerTriggerProps = {
|