feat(ui): add docking, viewport controls and composed settings

Add shared dock layouts, navigation cube, range bands, progress actions and comparison surfaces. Extend toolbar menus and loading composition, and align tokens, registry entries, documentation and the living catalog.
This commit is contained in:
Codex
2026-10-29 09:38:25 +03:00
parent a6e6c8f2d9
commit cb534dbe39
51 changed files with 2273 additions and 336 deletions
+31
View File
@@ -0,0 +1,31 @@
import { useId } from "react";
import { Button, type ButtonProps } from "./Button.js";
import { ProgressBar } from "./ProgressBar.js";
import { Icon } from "./Icon.js";
import { cn } from "./cn.js";
export interface ProgressButtonProps extends Omit<ButtonProps, "children" | "loading" | "size"> {
label: string;
/** Presence means pending. Value is measured progress of the named phase, not elapsed time. */
progress?: { label: string; value?: number; valueText?: string };
}
export function ProgressButton({ label, progress, className, disabled, icon, ...props }: ProgressButtonProps) {
const statusId = useId();
return <div className={cn("nodedc-progress-button", className)} data-pending={!!progress || undefined}
data-icon={!!icon || undefined}>
<Button {...props} icon={icon} disabled={disabled || !!progress} aria-busy={!!progress}
aria-label={label} aria-describedby={progress ? statusId : undefined}>
<span className="nodedc-progress-button__label">{progress?.label ?? label}</span>
</Button>
{progress ? <>
<span id={statusId} className="nodedc-progress-button__status" role="status">{progress.label}</span>
<ProgressBar label={label} value={progress.value} valueText={progress.valueText ?? progress.label} />
</> : null}
</div>;
}
/** Decorative animation of the canonical layers glyph. The surrounding action owns live status. */
export function LayerStackIndicator() {
return <Icon name="layers" className="nodedc-layer-stack-indicator" />;
}