Merge remote-tracking branch 'origin/release/v1.42.0' into v142/pwa

This commit is contained in:
Marc-André Bombeck committed 2026-10-08 17:24:38 +02:00
commit 8a7eddaf26
67 files changed
+3473 -606

No files matched your search

+7
View File
@@ -54,6 +54,11 @@ interface ConfirmCopy {
slot?: string;
/** A control that belongs with the question, such as an opt-out checkbox. */
extra?: ReactNode;
/**
* The action deletes something: it wears the destructive style, as the
* data-list selection bar's confirm already does.
*/
destructive?: boolean;
}
function ConfirmBody({
@@ -64,6 +69,7 @@ function ConfirmBody({
pending = false,
slot,
extra,
destructive = false,
}: ConfirmCopy) {
const { t } = useTranslations();
@@ -77,6 +83,7 @@ function ConfirmBody({
<AlertDialogFooter>
<AlertDialogCancel>{t("common.cancel")}</AlertDialogCancel>
<AlertDialogAction
variant={destructive ? "destructive" : "default"}
data-slot={slot ? `${slot}-confirm` : undefined}
disabled={pending}
aria-busy={pending || undefined}