@ai-matrx/design-system 0.14.1 → 0.14.3

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,30 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.14.3 — 2026-09-11
4
+
5
+ `ConfirmDialog` now renders its accessible description through Radix's
6
+ `asChild` slot on a semantic `<div>`. Callers can pass block-level consequence
7
+ content without nesting it inside the default paragraph element, while the
8
+ dialog keeps its `aria-describedby` relationship intact.
9
+
10
+ ### Consumer action
11
+
12
+ Update the package. Existing `description` callers need no changes.
13
+
14
+ ## 0.14.2 — 2026-09-11
15
+
16
+ `DialogContent` now centres its desktop card with `inset-0 m-auto h-fit`,
17
+ not a non-zero `translate`. A nested Radix portal that explicitly targets
18
+ `useDialogContainer()` therefore remains a fixed, viewport-relative surface
19
+ and can paint beyond the card's required scroll/overflow boundary, while
20
+ staying inside the dialog's focus and scroll shard. The mobile override uses
21
+ `translate-none` for the same reason.
22
+
23
+ ### Consumer action
24
+
25
+ Update the package and keep explicit `container={useDialogContainer()}` on
26
+ nested floating surfaces. No call-site change is required.
27
+
3
28
  ## 0.14.1
4
29
 
5
30
  Automatic changed-only republish (docs/metadata drift since the last tag — see
package/dist/index.cjs CHANGED
@@ -1614,7 +1614,7 @@ function ConfirmDialog({
1614
1614
  children: [
1615
1615
  /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(AlertDialogHeader, { children: [
1616
1616
  /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(AlertDialogTitle, { children: title }),
1617
- description ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(AlertDialogDescription, { children: description }) : null
1617
+ description ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(AlertDialogDescription, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { children: description }) }) : null
1618
1618
  ] }),
1619
1619
  content ?? null,
1620
1620
  /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(AlertDialogFooter, { children: [
@@ -2167,9 +2167,9 @@ var DialogContentPrimitive = React17.forwardRef((props, ref) => {
2167
2167
  );
2168
2168
  });
2169
2169
  DialogContentPrimitive.displayName = "DialogContentPrimitive";
2170
- var DIALOG_DESKTOP_CLASSES2 = `matrx-dialog-card fixed left-[50%] top-[50%] z-[10000] grid min-w-0 w-full max-w-lg ${CENTERED_DIALOG} gap-4 max-h-[85dvh] overflow-y-auto overscroll-contain [--dialog-pad:1.5rem] overflow-x-clip border bg-background p-6 shadow-lg [overflow-wrap:anywhere] [&>*]:min-w-0 [&>*]:max-w-full sm:rounded-lg`;
2171
- var DIALOG_MOBILE_SHEET_CLASSES2 = "matrx-mobile-sheet matrx-dialog-card fixed inset-x-0 bottom-0 left-0 right-0 top-auto z-[10000] flex min-w-0 flex-col w-full max-w-full max-h-[90dvh] translate-x-0 translate-y-0 gap-4 [--dialog-pad:1rem] overflow-x-clip border-t bg-background p-4 pb-safe shadow-lg [overflow-wrap:anywhere] [&>*]:min-w-0 [&>*]:max-w-full rounded-t-2xl rounded-b-none overflow-y-auto overscroll-contain";
2172
- var DIALOG_MOBILE_SHEET_OVERRIDE2 = "inset-x-0 bottom-0 left-0 right-0 top-auto translate-x-0 translate-y-0 w-full max-w-full max-h-[90dvh] rounded-b-none rounded-t-2xl overflow-y-auto";
2170
+ var DIALOG_DESKTOP_CLASSES2 = "matrx-dialog-card fixed inset-0 z-[10000] m-auto grid h-fit min-w-0 w-full max-w-lg gap-4 max-h-[85dvh] overflow-y-auto overscroll-contain [--dialog-pad:1.5rem] overflow-x-clip border bg-background p-6 shadow-lg [overflow-wrap:anywhere] [&>*]:min-w-0 [&>*]:max-w-full sm:rounded-lg";
2171
+ var DIALOG_MOBILE_SHEET_CLASSES2 = "matrx-mobile-sheet matrx-dialog-card fixed inset-x-0 bottom-0 left-0 right-0 top-auto z-[10000] flex min-w-0 flex-col w-full max-w-full max-h-[90dvh] gap-4 [--dialog-pad:1rem] overflow-x-clip border-t bg-background p-4 pb-safe shadow-lg [overflow-wrap:anywhere] [&>*]:min-w-0 [&>*]:max-w-full rounded-t-2xl rounded-b-none overflow-y-auto overscroll-contain";
2172
+ var DIALOG_MOBILE_SHEET_OVERRIDE2 = "inset-x-0 bottom-0 left-0 right-0 top-auto translate-none w-full max-w-full max-h-[90dvh] rounded-b-none rounded-t-2xl overflow-y-auto";
2173
2173
  var DialogContent = React17.forwardRef(
2174
2174
  ({
2175
2175
  className,