{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A terminal or code window: a title bar with three round marks, then the lines. A `command` line starts with the prompt, an `output` line is muted. Static: the typing animation belongs to the port (TypingText contract).",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "{#- Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n    Source: packages/compose-gen/specs/patterns/code-window.json\n    A terminal or code window: a title bar with three round marks, then the lines. A `command` line starts with the prompt, an `output` line is muted. Static: the typing animation belongs to the port (TypingText contract).\n    Props (p): title, prompt, lines, className. -#}\n{%- set v_title = og_def(p['title'], none) -%}\n{%- set v_prompt = og_def(p['prompt'], none) -%}\n{%- set v_lines = og_def(p['lines'], none) -%}\n{%- set c_7 -%}\n  {%- set c_2 -%}\n    {%- set c_1 -%}\n      {{ og_text(v_title) }}\n    {%- endset -%}\n    {{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_1}) }}\n  {%- endset -%}\n  {{ og_include('compose/box.html.j2', {'p': {'Class': 'flex items-center border-b border-border px-4 py-2'}, 'children': c_2}) }}\n  {%- set c_6 -%}\n    {%- for v_line in og_l(v_lines) %}\n      {%- set c_5 -%}\n        {%- if og_t(og_eq(og_get(v_line, ['kind']), 'command')) %}\n          {%- set c_3 -%}\n            {{ og_text(v_prompt) }}\n          {%- endset -%}\n          {{ og_include('compose/inline.html.j2', {'p': {'Class': 'select-none text-muted-foreground'}, 'children': c_3}) }}\n        {%- endif %}\n        {%- set c_4 -%}\n          {{ og_text(og_get(v_line, ['text'])) }}\n        {%- endset -%}\n        {{ og_include('compose/inline.html.j2', {'p': {}, 'children': c_4}) }}\n      {%- endset -%}\n      {{ og_include('compose/list-item.html.j2', {'p': {'Class': og_s(og_cnv(['flex gap-2', ('text-foreground' if og_t(og_eq(og_get(v_line, ['kind']), 'command')) else 'text-muted-foreground')])), 'Attrs': og_attrs(['data-kind', og_get(v_line, ['kind']), 'data-slot', 'code-line'])}, 'children': c_5}) }}\n    {%- endfor %}\n  {%- endset -%}\n  {{ og_include('compose/list.html.j2', {'p': {'Class': 'm-0 flex list-none flex-col gap-2 p-4 font-mono text-sm'}, 'children': c_6}) }}\n{%- endset -%}\n{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['w-full overflow-hidden rounded bg-card text-left inset-ring inset-ring-border', og_def(p['className'], '')])), 'Attrs': og_attrs(['role', 'group', 'aria-label', v_title, 'data-slot', 'code-window'])}, 'children': c_7}) }}\n",
      "path": "blocks/code-window.html.j2",
      "target": "blocks/code-window.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "code-window",
  "registryDependencies": [
    "box",
    "inline",
    "list",
    "list-item",
    "text",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Code Window",
  "type": "registry:component"
}
