@moontra/moonui 6.12.0 → 6.13.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.mjs CHANGED
@@ -4886,6 +4886,7 @@ var Progress = React12.forwardRef(({
4886
4886
  const normalizedValue = Math.max(0, Math.min(value, max));
4887
4887
  const percentage = max > 0 ? normalizedValue / max * 100 : 0;
4888
4888
  const label = valueLabel || `${Math.round(percentage)}%`;
4889
+ const hasExplicitName = props["aria-label"] != null || props["aria-labelledby"] != null;
4889
4890
  return /* @__PURE__ */ jsxs(Fragment, { children: [
4890
4891
  showValueLabel && /* @__PURE__ */ jsx("div", { className: "flex justify-between items-center mb-1", children: /* @__PURE__ */ jsx(
4891
4892
  "span",
@@ -4906,6 +4907,8 @@ var Progress = React12.forwardRef(({
4906
4907
  "aria-valuemin": 0,
4907
4908
  "aria-valuemax": max,
4908
4909
  "aria-valuenow": indeterminate ? void 0 : normalizedValue,
4910
+ "aria-label": hasExplicitName ? void 0 : "Progress",
4911
+ "aria-valuetext": valueLabel,
4909
4912
  ...props,
4910
4913
  children: /* @__PURE__ */ jsx(
4911
4914
  "div",