{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "status-solid",
  "title": "Status (Solid)",
  "description": "A run status badge with a mark and a label.",
  "dependencies": [
    "@kind-ui/agent-ui@0.9.0",
    "@ui-sdk/core@0.1.0-beta.17",
    "@ui-sdk/solid@0.1.0-beta.17"
  ],
  "registryDependencies": [
    "@kind-ui/agent-ui-setup"
  ],
  "files": [
    {
      "path": "packages/agent-ui/src/solid/status.tsx",
      "content": "import { statusPrimitive } from \"@kind-ui/agent-ui/core\";\nimport type { ComponentProps } from \"@solidjs/web\";\nimport { createParts } from \"@ui-sdk/solid/primitive\";\nimport { omit } from \"solid-js\";\n\nconst parts = createParts(statusPrimitive, { root: \"span\", icon: \"span\", label: \"span\", stalled: \"span\" });\n\nexport type StatusProps = ComponentProps<typeof parts.Root>;\n\n/**\n * A run status badge: its mark, label and, while stalled, \"No update for 5 min\". Any `children`, `StatusIcon`,\n * `StatusLabel` and `StatusStalled` among them, replace these.\n */\nexport function Status(props: StatusProps) {\n  const rest = omit(props, \"children\");\n  return (\n    <parts.Root {...rest}>\n      {(() => {\n        const children = props.children;\n        return children !== undefined ? (\n          children\n        ) : (\n          <>\n            <parts.Icon />\n            <StatusLabel />\n            <StatusStalled />\n          </>\n        );\n      })()}\n    </parts.Root>\n  );\n}\n\nexport const StatusIcon = parts.Icon;\n\nexport type StatusLabelProps = ComponentProps<typeof parts.Label>;\n\n/** The status's text: its `label`, unless you pass children. */\nexport function StatusLabel(props: StatusLabelProps) {\n  return <parts.Label {...props}>{props.children ?? ((state) => state.label)}</parts.Label>;\n}\n\nexport type StatusStalledProps = Omit<ComponentProps<typeof parts.Stalled>, \"children\">;\n\n/** \"No update for 5 min\", while a running status has had no update for `stalledAfter`. */\nexport function StatusStalled(props: StatusStalledProps) {\n  return <parts.Stalled {...props}>{(state) => state.text}</parts.Stalled>;\n}\n",
      "type": "registry:ui",
      "target": "@ui/solid/status.tsx"
    }
  ],
  "meta": {
    "layer": "solid"
  },
  "type": "registry:ui"
}
