@moontra/moonui 6.12.0 → 6.14.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/dist/index.js CHANGED
@@ -347,10 +347,11 @@ var Avatar = React12__namespace.forwardRef(({ className, size, radius, variant,
347
347
  }
348
348
  ));
349
349
  Avatar.displayName = AvatarPrimitive__namespace.Root.displayName;
350
- var AvatarImage = React12__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
350
+ var AvatarImage = React12__namespace.forwardRef(({ className, alt = "", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
351
351
  AvatarPrimitive__namespace.Image,
352
352
  {
353
353
  ref,
354
+ alt,
354
355
  className: cn("moonui-theme", "aspect-square h-full w-full", className),
355
356
  ...props
356
357
  }
@@ -4924,6 +4925,7 @@ var Progress = React12__namespace.forwardRef(({
4924
4925
  const normalizedValue = Math.max(0, Math.min(value, max));
4925
4926
  const percentage = max > 0 ? normalizedValue / max * 100 : 0;
4926
4927
  const label = valueLabel || `${Math.round(percentage)}%`;
4928
+ const hasExplicitName = props["aria-label"] != null || props["aria-labelledby"] != null;
4927
4929
  return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
4928
4930
  showValueLabel && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-between items-center mb-1", children: /* @__PURE__ */ jsxRuntime.jsx(
4929
4931
  "span",
@@ -4944,6 +4946,8 @@ var Progress = React12__namespace.forwardRef(({
4944
4946
  "aria-valuemin": 0,
4945
4947
  "aria-valuemax": max,
4946
4948
  "aria-valuenow": indeterminate ? void 0 : normalizedValue,
4949
+ "aria-label": hasExplicitName ? void 0 : "Progress",
4950
+ "aria-valuetext": valueLabel,
4947
4951
  ...props,
4948
4952
  children: /* @__PURE__ */ jsxRuntime.jsx(
4949
4953
  "div",