{
  "_copyright": "Copyright (c) 2026, Salesforce, Inc., All rights reserved. For full license text, see the LICENSE.txt file",
  "$schema": "https://slds.lightningdesignsystem.com/schemas/uif-foundation.v1.json",
  "apiVersion": "1.0.0",
  "name": "ProgressRing",
  "description": "Progress Ring component",
  "structure": {
    "name": "root",
    "restrict": [
      "div"
    ],
    "description": "Progress ring container",
    "children": [
      {
        "name": "progress",
        "restrict": [
          "div"
        ],
        "description": "Ring progress visual that carries the progressbar role and aria values",
        "attributes": {
          "static": {
            "role": "progressbar"
          },
          "bound": {
            "aria-valuemin": {
              "prop": "min"
            },
            "aria-valuemax": {
              "prop": "max"
            },
            "aria-valuenow": {
              "prop": "value"
            },
            "aria-label": {
              "prop": "label"
            }
          }
        },
        "children": [
          {
            "name": "progressSvg",
            "restrict": [
              "svg"
            ],
            "description": "SVG canvas for the progress arc"
          },
          {
            "name": "progressPath",
            "restrict": [
              "circle",
              "path"
            ],
            "description": "Filled arc representing current progress (circle when full, path otherwise)"
          }
        ]
      },
      {
        "name": "content",
        "restrict": [
          "div"
        ],
        "description": "Center content area; can hold a status icon or other rendered content",
        "slot": {
          "name": "default"
        },
        "children": [
          {
            "name": "statusIcon",
            "restrict": [
              "span"
            ],
            "description": "Optional status icon container shown for complete/warning/expired states",
            "children": [
              {
                "name": "statusIconSvg",
                "restrict": [
                  "svg"
                ],
                "description": "Icon SVG canvas",
                "attributes": {
                  "static": {
                    "aria-hidden": "true"
                  }
                }
              },
              {
                "name": "statusIconUse",
                "restrict": [
                  "use"
                ],
                "description": "SVG sprite reference for the status icon symbol"
              },
              {
                "name": "statusIconLabel",
                "restrict": [
                  "span"
                ],
                "description": "Visually hidden text describing the status icon meaning"
              }
            ]
          }
        ]
      },
      {
        "name": "progressHead",
        "restrict": [
          "div"
        ],
        "description": "Animated marker positioned at the leading edge of the ring",
        "children": [
          {
            "name": "progressHeadSvg",
            "restrict": [
              "svg"
            ],
            "description": "SVG canvas for the progress head marker"
          },
          {
            "name": "progressHeadDot",
            "restrict": [
              "circle"
            ],
            "description": "The dot at the leading edge of the ring"
          }
        ]
      }
    ]
  },
  "states": [
    {
      "name": "status",
      "type": "enum",
      "options": [
        "active",
        "complete",
        "warning",
        "expired",
        "error"
      ],
      "description": "Current status of the progress ring"
    }
  ],
  "accessibility": {
    "requirements": [
      {
        "id": "progressbar-role",
        "description": "The progress node must have role='progressbar' with aria-valuemin, aria-valuemax, and aria-valuenow set."
      },
      {
        "id": "progressbar-label",
        "description": "The progress node must carry an accessible name via aria-label (or aria-labelledby) describing what the ring is tracking."
      },
      {
        "id": "status-icon-text-alternative",
        "description": "When a status icon is rendered inside content, the decorative SVG must be aria-hidden='true' and an accessible name must be provided via slds-assistive-text."
      }
    ]
  }
}
