feat: migrate Toast and Table with reviewed state focus and SSR contracts

This commit is contained in:
maoyingjie
2026-10-24 07:19:26 +08:00
parent 0cfe7b6195
commit ed41af5294
95 changed files with 9358 additions and 8 deletions
@@ -0,0 +1,20 @@
// Gap between toasts in pixels.
export const DEFAULT_GAP = 12;
// Visual cap on rendered toasts; older ones fade out but keep running.
export const DEFAULT_MAX_VISIBLE_TOAST = 3;
// How much each toast behind the front one scales down.
export const DEFAULT_SCALE_FACTOR = 0.05;
// Toast width in pixels.
export const DEFAULT_TOAST_WIDTH = 460;
// Auto-dismiss timeout in milliseconds.
export const DEFAULT_TOAST_TIMEOUT = 4000;
// How long a closing toast stays mounted for its exit animation, in milliseconds.
export const DEFAULT_EXIT_DURATION = 300;
// Modifiers match KeyboardEvent boolean props; other keys match event.code.
export const DEFAULT_HOTKEY: string[] = ["altKey", "KeyT"];