@ai-matrx/design-system 0.86.346 → 0.86.348

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/dist/index.cjs CHANGED
@@ -16170,7 +16170,7 @@ var LoadingSpinner = ({
16170
16170
  "flex items-center justify-center bg-background",
16171
16171
  fullscreen && "h-dvh w-full",
16172
16172
  className
16173
- ), children: [
16173
+ ), "aria-busy": "true", children: [
16174
16174
  overlay && /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("div", { className: "absolute inset-0 bg-background/80 backdrop-blur-sm z-50" }),
16175
16175
  /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("div", { className: cn(
16176
16176
  "flex flex-col items-center justify-center",
@@ -16178,10 +16178,13 @@ var LoadingSpinner = ({
16178
16178
  ), children: renderWorkflow() })
16179
16179
  ] });
16180
16180
  }
16181
- return /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("div", { className: cn("flex items-center", className), children: variant === "workflow" ? renderWorkflow() : /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_jsx_runtime111.Fragment, { children: [
16182
- renderSpinner(),
16183
- showMessage && /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("span", { className: cn("ml-3 text-muted-foreground", sizeClasses2.text), children: message || getDefaultMessage() })
16184
- ] }) });
16181
+ return (
16182
+ // aria-busy: a spinner is a stand-in, and whatever measures a settled layout waits for it.
16183
+ /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("div", { className: cn("flex items-center", className), "aria-busy": "true", children: variant === "workflow" ? renderWorkflow() : /* @__PURE__ */ (0, import_jsx_runtime111.jsxs)(import_jsx_runtime111.Fragment, { children: [
16184
+ renderSpinner(),
16185
+ showMessage && /* @__PURE__ */ (0, import_jsx_runtime111.jsx)("span", { className: cn("ml-3 text-muted-foreground", sizeClasses2.text), children: message || getDefaultMessage() })
16186
+ ] }) })
16187
+ );
16185
16188
  };
16186
16189
 
16187
16190
  // src/mini-loader.tsx