@q1travel/design-system 0.28.0 → 0.28.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/contracts/button-api-compatibility.md +2 -0
- package/dist-pkg/design-system.d.ts +3 -1
- package/dist-pkg/design-system.js +4288 -4285
- package/dist-pkg/style.css +0 -19
- package/package.json +1 -1
|
@@ -28,6 +28,8 @@ Button and IconButton accept native button props, ARIA attributes, `data-*` attr
|
|
|
28
28
|
|
|
29
29
|
Package-owned semantics are applied after native props. `type`, `className`, `disabled`, busy/loading `aria-disabled`/`aria-busy`/`tabIndex`, the resolved accessible name, `ref`, and the busy/loading click guards therefore keep their documented behavior. Outside busy/loading, a consumer-provided `tabIndex` or `aria-disabled` remains intact. The canonical native `aria-keyshortcuts` value wins over the compatibility `ariaKeyshortcuts` field by nullish precedence.
|
|
30
30
|
|
|
31
|
+
Button preserves an explicitly supplied native `aria-busy` when `busy` is false, including during `loading`; `loading` alone still does not add it. This lets consumers announce an external task immediately while controlling visual loading separately. `busy=true` always sets `aria-busy="true"`, even when a consumer passes false. ButtonLink keeps its existing package-owned busy semantics.
|
|
32
|
+
|
|
31
33
|
## Loading and Busy States
|
|
32
34
|
|
|
33
35
|
`loading` and `busy` are intentionally different public states:
|
|
@@ -2536,10 +2536,12 @@ export declare type ToolbarProps = {
|
|
|
2536
2536
|
className?: string;
|
|
2537
2537
|
};
|
|
2538
2538
|
|
|
2539
|
-
export declare function Tooltip({ content, placement, delay, triggerLabel, children, align, tip, center, }: {
|
|
2539
|
+
export declare function Tooltip({ content, placement, delay, disabled, triggerLabel, children, align, tip, center, }: {
|
|
2540
2540
|
content: ReactNode;
|
|
2541
2541
|
placement?: TooltipPlacement;
|
|
2542
2542
|
delay?: number;
|
|
2543
|
+
/** 禁用提示而保留触发器;关闭已显示或待显示的提示,不影响按钮自身的可操作性。 */
|
|
2544
|
+
disabled?: boolean;
|
|
2543
2545
|
/** 内部默认触发器的文案;传 children 时不使用。 */
|
|
2544
2546
|
triggerLabel?: string;
|
|
2545
2547
|
/** 自定义触发器:包裹任意单个元素/组件(Button、原生 a/span 等)代替内部默认按钮。 */
|