Manually merge from 'pre-kjol' into 'master'

This commit is contained in:
2026-07-15 15:11:29 -04:00
parent f2e0d22255
commit 342de9e18a
9 changed files with 365 additions and 188 deletions

View File

@@ -7,7 +7,7 @@ export type ToastPosition = "top-right" | "top-left" | "bottom-right" | "bottom-
export interface ToastConfig {
message: string;
type?: ToastType;
duration?: number | null;
duration?: number | null; // in milliseconds
dismissible?: boolean;
showProgress?: boolean;
}
@@ -90,7 +90,7 @@ interface ToastItemProps {
function ToastItem(props: ToastItemProps) {
const type = () => props.toast.type ?? "info";
const duration = () => props.toast.duration ?? DEFAULT_DURATION;
const duration = () => (props.toast.duration !== undefined ? props.toast.duration : DEFAULT_DURATION);
const dismissible = () => props.toast.dismissible !== false;
const showProgress = () => props.toast.showProgress !== false;