@ai-matrx/design-system 0.53.4 → 0.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.54.0
4
+
5
+ - **`ConfirmDialogHost` holds Confirm while the question is not ready.** A `confirm({ ready })` (kit ≥ 0.22.0) opens at once and offers Confirm only when `ready` settles — resolved or rejected, so a failed read never traps the person. Cancel is always offered. `ConfirmDialog` gains `confirmHeld` (Confirm absent, never a disabled dead button). Guard: `src/confirm-host-ready.test.tsx` (2 red before).
6
+
7
+ ### Consumer action
8
+
9
+ - None. Needs `@ai-matrx/kit` ≥ 0.22.0 for the `ready` option's type.
10
+
3
11
  ## 0.53.4
4
12
 
5
13
  Automatic changed-only republish (docs/metadata drift since the last tag — see
@@ -35015,6 +35015,7 @@ function ConfirmDialog({
35015
35015
  variant = "default",
35016
35016
  busy = false,
35017
35017
  confirmDisabled = false,
35018
+ confirmHeld = false,
35018
35019
  portalContainer,
35019
35020
  onConfirm
35020
35021
  }) {
@@ -35031,7 +35032,7 @@ function ConfirmDialog({
35031
35032
  content ?? null,
35032
35033
  /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(AlertDialogFooter, { children: [
35033
35034
  cancelLabel === null ? null : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(AlertDialogCancel, { className: "max-lg:min-h-11", disabled: busy, children: cancelLabel }),
35034
- /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
35035
+ confirmHeld ? null : /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
35035
35036
  AlertDialogAction,
35036
35037
  {
35037
35038
  disabled: busy || confirmDisabled,