@ai-matrx/design-system 0.18.15 → 0.18.16

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.d.cts CHANGED
@@ -1229,6 +1229,8 @@ declare function ScoreRing({ pct, size, strokeWidth, label, valueClassName, clas
1229
1229
  interface SegmentOption {
1230
1230
  value: string;
1231
1231
  label: React.ReactNode;
1232
+ /** Stable accessible name when the visual label contains separate nodes. */
1233
+ ariaLabel?: string;
1232
1234
  disabled?: boolean;
1233
1235
  }
1234
1236
  interface SegmentedControlProps {
package/dist/index.d.ts CHANGED
@@ -1229,6 +1229,8 @@ declare function ScoreRing({ pct, size, strokeWidth, label, valueClassName, clas
1229
1229
  interface SegmentOption {
1230
1230
  value: string;
1231
1231
  label: React.ReactNode;
1232
+ /** Stable accessible name when the visual label contains separate nodes. */
1233
+ ariaLabel?: string;
1232
1234
  disabled?: boolean;
1233
1235
  }
1234
1236
  interface SegmentedControlProps {
package/dist/index.js CHANGED
@@ -2880,6 +2880,7 @@ function SegmentedControl({
2880
2880
  type: "button",
2881
2881
  role: "tab",
2882
2882
  "aria-selected": isActive,
2883
+ "aria-label": option.ariaLabel,
2883
2884
  disabled: option.disabled,
2884
2885
  onClick: () => onValueChange(option.value),
2885
2886
  className: cn(
@@ -2932,6 +2933,7 @@ function ArchiveFilter({
2932
2933
  return {
2933
2934
  value: state,
2934
2935
  disabled,
2936
+ ariaLabel: typeof count === "number" ? `${text} ${count}` : text,
2935
2937
  label: typeof count === "number" ? /* @__PURE__ */ jsxs17("span", { className: "inline-flex items-center gap-1.5", children: [
2936
2938
  /* @__PURE__ */ jsx31("span", { children: text }),
2937
2939
  /* @__PURE__ */ jsx31("span", { className: "text-muted-foreground tabular-nums", children: count })