feat: migrate Toast and Table with reviewed state focus and SSR contracts
This commit is contained in:
@@ -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"];
|
||||
Reference in New Issue
Block a user