{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "accordion-panel",
  "type": "registry:item",
  "title": "Accordion Panel",
  "description": "A section that opens and closes, on the native <details>: the browser does the keyboard (Enter and Space on the heading), the find-in-page opening and the announcements. Panels with the same `group` form an accordion where one is open at a time (<details name>). `open` is two-way.",
  "dependencies": [
    "@zubra/runtime@^5.13.1"
  ],
  "categories": [
    "widget"
  ],
  "registryDependencies": [
    "https://zubra-js.github.io/zubra-ui/r/theme.json"
  ],
  "files": [
    {
      "path": "components/accordion-panel.js",
      "type": "registry:file",
      "target": "~/src/components/zubra/accordion-panel.js",
      "content": "// Generated by zubra from accordion-panel.zb. Do not edit.\nimport { $define, $r, $t } from \"@zubra/runtime\";\n\nexport const tag = \"accordion-panel\";\n\nexport default $define(tag, {\n  props: {\n    \"open\": { attribute: \"open\", default: false, required: false, model: true },\n    \"heading\": { attribute: \"heading\", default: \"\", required: false },\n    \"group\": { attribute: \"group\", default: \"\", required: false },\n  },\n  abi: 3,\n  shadow: false,\n  form: false,\n  slots: [\"default\", \"heading\"],\n  events: [\"openchange\"],\n  styled: true,\n  styles: \"@layer theme, base, components, utilities;\\n@layer components {\\n@scope (accordion-panel) to ([data-zb-slotted=\\\"accordion-panel\\\"]) {\\n  :scope { display: block; }\\n  details { border-bottom: 1px solid var(--border, #dde); }\\n  summary { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 0.25rem; font-weight: 600; cursor: pointer; list-style: none; }\\n  summary::-webkit-details-marker { display: none; }\\n  summary::after { content: \\\"\\\"; margin-left: auto; width: 0.5rem; height: 0.5rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform var(--duration-normal, 200ms); }\\n  details[open] > summary::after { transform: rotate(-135deg); }\\n  summary:focus-visible { outline: 2px solid var(--primary, #36c); outline-offset: 2px; border-radius: calc(var(--radius, 0.625rem) * 0.48); }\\n  .body { padding: 0 0.25rem 1rem; }\\n  /* The panel grows open and shrinks shut (browsers with ::details-content; the rest just open). */\\n  details { interpolate-size: allow-keywords; }\\n  details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size var(--duration-normal, 200ms) var(--ease-out, ease-out), opacity var(--duration-normal, 200ms) var(--ease-out, ease-out), content-visibility var(--duration-normal, 200ms) allow-discrete; }\\n  details[open]::details-content { block-size: auto; opacity: 1; }\\n  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; } }\\n}\\n}\\n\",\n  template: \"\\n  <details>\\n    <summary><!--[--><!--]--></summary>\\n    <div class=\\\"body\\\"><!--[--><!--]--></div>\\n  </details>\\n\",\n  setup($p, $emit) {\n    return [\n      { path: [0], attribute: \"name\", value: () => ($p.group || null) },\n      { path: [0], attribute: \"open\", boolean: true, value: () => $p.open },\n      { path: [0], on: \"toggle\", handler: () => ((event) => ($p.open = event.target.open)) },\n      { path: [0, 0, 0], slot: \"heading\", fallback: { template: \"<!---->\", parts: () => [{ path: [0], anchor: () => $t($p.heading) }] } },\n      { path: [0, 1, 0], slot: \"default\", fallback: null },\n    ];\n  },\n});\n"
    }
  ]
}
