{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "status-badge",
  "type": "registry:item",
  "title": "Status Badge",
  "description": "A small label for a status, a count or a category. `variant` is neutral, primary, success, warning, danger or outline; `dot` adds a coloured dot before the text. The colour is never the only signal: the text says it.",
  "dependencies": [
    "@zubra/runtime@^5.13.1"
  ],
  "categories": [
    "display"
  ],
  "registryDependencies": [
    "https://zubra-js.github.io/zubra-ui/r/theme.json"
  ],
  "files": [
    {
      "path": "components/status-badge.js",
      "type": "registry:file",
      "target": "~/src/components/zubra/status-badge.js",
      "content": "// Generated by zubra from status-badge.zb. Do not edit.\nimport { $define, $r, $t } from \"@zubra/runtime\";\n\nexport const tag = \"status-badge\";\n\nexport default $define(tag, {\n  props: {\n    \"variant\": { attribute: \"variant\", default: \"neutral\", required: false },\n    \"dot\": { attribute: \"dot\", default: false, required: false },\n  },\n  abi: 3,\n  shadow: false,\n  form: false,\n  slots: [\"default\"],\n  events: [],\n  styled: true,\n  styles: \"@layer theme, base, components, utilities;\\n@layer components {\\n@scope (status-badge) to ([data-zb-slotted=\\\"status-badge\\\"]) {\\n  :scope { display: inline-block; vertical-align: middle; }\\n  span { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.15rem 0.55rem; border: 1px solid transparent; border-radius: 999px; background: var(--secondary, #f4f4f5); color: var(--secondary-foreground, #18181b); font-size: 0.775rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }\\n  .badge-primary { background: var(--primary, #18181b); color: var(--primary-foreground, #fafafa); }\\n  /* Each tone's text is mixed toward the foreground, so it reads on light and dark themes alike. */\\n  .badge-success, .badge-warning, .badge-danger { background: color-mix(in oklab, var(--tone) 16%, var(--background, #fff)); color: color-mix(in oklab, var(--tone) 50%, var(--foreground, #18181b)); }\\n  .badge-success { --tone: oklch(0.6 0.15 150); }\\n  .badge-warning { --tone: oklch(0.68 0.15 70); }\\n  .badge-danger { --tone: var(--destructive, #dc2626); }\\n  .badge-outline { border-color: var(--border, #e4e4e7); background: none; color: var(--foreground, #18181b); }\\n  .badge-dot::before { content: \\\"\\\"; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }\\n}\\n}\\n\",\n  template: \"\\n  <span><!--[--><!--]--></span>\\n\",\n  setup($p, $emit) {\n    return [\n      { path: [0], classes: () => \"badge-\" + $t($p.variant) },\n      { path: [0], toggle: \"badge-dot\", value: () => $p.dot },\n      { path: [0, 0], slot: \"default\", fallback: null },\n    ];\n  },\n});\n"
    }
  ]
}
