{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hud-frame",
  "type": "registry:component",
  "title": "HUD Frame",
  "description": "A panel with corner brackets, a monospace header with a status chip and an optional scanning line over its content.",
  "author": "Hyperblur <hello@hyperblur.dev>",
  "dependencies": [],
  "registryDependencies": [],
  "categories": [
    "hud",
    "hud",
    "panel",
    "frame",
    "brackets",
    "sci-fi",
    "card"
  ],
  "docs": "https://hyperblur.dev/effects/hud-frame",
  "files": [
    {
      "path": "registry/hyperblur/hud-frame.tsx",
      "type": "registry:component",
      "target": "components/hyperblur/hud-frame.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\n\nexport type HudFrameTone = \"live\" | \"idle\" | \"warn\";\n\nexport interface HudFrameProps extends Omit<React.HTMLAttributes<HTMLDivElement>, \"title\"> {\n  label?: string;\n  code?: string;\n  status?: string;\n  tone?: HudFrameTone;\n  scan?: boolean;\n  accent?: string;\n  children?: React.ReactNode;\n}\n\nconst css = `\n.hb-ua2 {\n  --hb-ua2-accent: #ff4d4d;\n  position: relative;\n  box-sizing: border-box;\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n  overflow: hidden;\n  border: 1px solid rgba(255,255,255,.12);\n  background:\n    linear-gradient(rgba(255,255,255,.025), rgba(255,255,255,.025)),\n    radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1.2px) 0 0 / 12px 12px,\n    #0a0a0a;\n  color: #ededed;\n  font-family: inherit;\n}\n.hb-ua2 *, .hb-ua2 *::before, .hb-ua2 *::after { box-sizing: border-box; }\n.hb-ua2-k {\n  position: absolute;\n  width: 10px;\n  height: 10px;\n  border: 0 solid var(--hb-ua2-accent);\n  pointer-events: none;\n  z-index: 3;\n}\n.hb-ua2-k-tl { left: -1px; top: -1px; border-left-width: 1px; border-top-width: 1px; }\n.hb-ua2-k-tr { right: -1px; top: -1px; border-right-width: 1px; border-top-width: 1px; }\n.hb-ua2-k-bl { left: -1px; bottom: -1px; border-left-width: 1px; border-bottom-width: 1px; }\n.hb-ua2-k-br { right: -1px; bottom: -1px; border-right-width: 1px; border-bottom-width: 1px; }\n.hb-ua2-head {\n  position: relative;\n  z-index: 2;\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n  gap: 10px;\n  min-height: 30px;\n  padding: 0 12px;\n  border-bottom: 1px solid rgba(255,255,255,.08);\n  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;\n  font-size: 10px;\n  letter-spacing: .14em;\n  text-transform: uppercase;\n}\n.hb-ua2-label {\n  display: flex;\n  align-items: center;\n  gap: 8px;\n  min-width: 0;\n  color: #a1a1a1;\n}\n.hb-ua2-label span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.hb-ua2-code { color: #5f5f5f; white-space: nowrap; }\n.hb-ua2-chip {\n  display: inline-flex;\n  align-items: center;\n  gap: 6px;\n  flex: 0 0 auto;\n  padding: 3px 7px;\n  border: 1px solid rgba(255,255,255,.14);\n  color: #ededed;\n  white-space: nowrap;\n}\n.hb-ua2-dot {\n  width: 5px;\n  height: 5px;\n  border-radius: 50%;\n  background: #8f8f8f;\n}\n.hb-ua2-chip[data-tone=\"live\"] { border-color: color-mix(in srgb, var(--hb-ua2-accent) 55%, transparent); }\n.hb-ua2-chip[data-tone=\"live\"] .hb-ua2-dot { background: var(--hb-ua2-accent); box-shadow: 0 0 8px var(--hb-ua2-accent); animation: hb-ua2-blink 1.6s steps(2, jump-none) infinite; }\n.hb-ua2-chip[data-tone=\"warn\"] { border-color: rgba(255, 196, 77, .5); }\n.hb-ua2-chip[data-tone=\"warn\"] .hb-ua2-dot { background: #ffc44d; }\n.hb-ua2-body {\n  position: relative;\n  z-index: 2;\n  flex: 1 1 auto;\n  min-height: 0;\n  padding: 12px;\n}\n.hb-ua2-scan {\n  position: absolute;\n  left: 0;\n  right: 0;\n  top: 0;\n  height: 38%;\n  z-index: 1;\n  pointer-events: none;\n  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--hb-ua2-accent) 9%, transparent) 85%, color-mix(in srgb, var(--hb-ua2-accent) 55%, transparent) 100%);\n  border-bottom: 1px solid color-mix(in srgb, var(--hb-ua2-accent) 40%, transparent);\n  transform: translateY(-100%);\n  animation: hb-ua2-scan 4.2s cubic-bezier(.45, 0, .55, 1) infinite;\n}\n@keyframes hb-ua2-scan {\n  0% { transform: translateY(-100%); opacity: 0; }\n  10% { opacity: 1; }\n  80% { opacity: 1; }\n  100% { transform: translateY(270%); opacity: 0; }\n}\n@keyframes hb-ua2-blink { 50% { opacity: .35; } }\n@media (prefers-reduced-motion: reduce) {\n  .hb-ua2-scan { display: none; }\n  .hb-ua2-chip[data-tone=\"live\"] .hb-ua2-dot { animation: none; }\n}\n`;\n\nexport function HudFrame({\n  label = \"Telemetry\",\n  code = \"SYS-04\",\n  status = \"Live\",\n  tone = \"live\",\n  scan = true,\n  accent = \"#ff4d4d\",\n  children,\n  className,\n  style,\n  ...rest\n}: HudFrameProps) {\n  return (\n    <div\n      className={[\"hb-ua2\", className].filter(Boolean).join(\" \")}\n      style={{ [\"--hb-ua2-accent\" as string]: accent, ...style }}\n      {...rest}\n    >\n      <style href=\"hb-hud-frame\" precedence=\"default\">{css}</style>\n      <span className=\"hb-ua2-k hb-ua2-k-tl\" aria-hidden=\"true\" />\n      <span className=\"hb-ua2-k hb-ua2-k-tr\" aria-hidden=\"true\" />\n      <span className=\"hb-ua2-k hb-ua2-k-bl\" aria-hidden=\"true\" />\n      <span className=\"hb-ua2-k hb-ua2-k-br\" aria-hidden=\"true\" />\n      {scan ? <span className=\"hb-ua2-scan\" aria-hidden=\"true\" /> : null}\n      <div className=\"hb-ua2-head\">\n        <span className=\"hb-ua2-label\">\n          <span>{label}</span>\n          {code ? <span className=\"hb-ua2-code\">{code}</span> : null}\n        </span>\n        {status ? (\n          <span className=\"hb-ua2-chip\" data-tone={tone}>\n            <span className=\"hb-ua2-dot\" aria-hidden=\"true\" />\n            {status}\n          </span>\n        ) : null}\n      </div>\n      <div className=\"hb-ua2-body\">{children}</div>\n    </div>\n  );\n}\n\nexport default HudFrame;\n"
    }
  ]
}