{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "status-vue",
  "title": "Status (Vue)",
  "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/vue@0.1.0-beta.17"
  ],
  "registryDependencies": [
    "@kind-ui/agent-ui-setup"
  ],
  "files": [
    {
      "path": "packages/agent-ui/src/vue/status.ts",
      "content": "import { statusPrimitive } from \"@kind-ui/agent-ui/core\";\nimport { createParts } from \"@ui-sdk/vue/primitive\";\nimport { defineComponent, h } from \"vue\";\n\nconst parts = createParts(statusPrimitive, { root: \"span\", icon: \"span\", label: \"span\", stalled: \"span\" });\n\nexport const StatusIcon = parts.Icon;\n\n/** The status's text: its `label`, unless you fill the default slot. */\nexport const StatusLabel = defineComponent({\n  name: \"StatusLabel\",\n  inheritAttrs: false,\n  setup(_, { attrs, slots }) {\n    return () =>\n      h(parts.Label, attrs, {\n        ...slots,\n        default: slots.default ?? (({ state }: { state: { label: string } }) => state.label),\n      });\n  },\n}) as unknown as typeof parts.Label;\n\n/** \"No update for 5 min\", while a running status has had no update for `stalledAfter`. */\nexport const StatusStalled = defineComponent({\n  name: \"StatusStalled\",\n  inheritAttrs: false,\n  setup(_, { attrs, slots }) {\n    return () =>\n      h(parts.Stalled, attrs, { ...slots, default: ({ state }: { state: { text: string } }) => state.text });\n  },\n}) as unknown as typeof parts.Stalled;\n\n/**\n * A run status badge: its mark, label and, while stalled, \"No update for 5 min\". A default slot, `StatusIcon`,\n * `StatusLabel` and `StatusStalled` among it, replaces these.\n */\nexport const Status = defineComponent({\n  name: \"Status\",\n  inheritAttrs: false,\n  setup(_, { attrs, slots }) {\n    return () =>\n      h(parts.Root, attrs, {\n        ...slots,\n        default: slots.default ?? (() => [h(StatusIcon), h(StatusLabel), h(StatusStalled)]),\n      });\n  },\n}) as unknown as typeof parts.Root;\n",
      "type": "registry:ui",
      "target": "@ui/vue/status.ts"
    }
  ],
  "meta": {
    "layer": "vue"
  },
  "type": "registry:ui"
}
