{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "skeleton-block",
  "type": "registry:item",
  "title": "Skeleton Block",
  "description": "A grey placeholder in the shape of content that's on its way, so the page doesn't jump when it arrives. `shape` is text (`lines` lines, the last one shorter), circle or rect; `width` and `height` take any CSS length. Hidden from screen readers: say \"loading\" once elsewhere (a loading-spinner, or `aria-busy` on the region being filled).",
  "dependencies": [
    "@zubra/runtime@^5.13.1"
  ],
  "categories": [
    "display"
  ],
  "registryDependencies": [
    "https://zubra-js.github.io/zubra-ui/r/theme.json"
  ],
  "files": [
    {
      "path": "components/skeleton-block.js",
      "type": "registry:file",
      "target": "~/src/components/zubra/skeleton-block.js",
      "content": "// Generated by zubra from skeleton-block.zb. Do not edit.\nimport { $define, $r, $t } from \"@zubra/runtime\";\nimport { state as __zubraState, computed as __zubraComputed } from \"@zubra/runtime\";\n\nexport const tag = \"skeleton-block\";\n\nexport default $define(tag, {\n  props: {\n    \"shape\": { attribute: \"shape\", default: \"text\", required: false },\n    \"lines\": { attribute: \"lines\", default: 3, required: false },\n    \"width\": { attribute: \"width\", default: \"\", required: false },\n    \"height\": { attribute: \"height\", default: \"\", required: false },\n  },\n  abi: 3,\n  shadow: false,\n  form: false,\n  slots: [],\n  events: [],\n  roots: [\"div\", \"span\"],\n  styled: true,\n  styles: \"@layer theme, base, components, utilities;\\n@layer components {\\n@scope (skeleton-block) to ([data-zb-slotted=\\\"skeleton-block\\\"]) {\\n  :scope { display: block; }\\n  .skeleton-bone { display: block; max-width: 100%; border-radius: calc(var(--radius, 0.625rem) - 4px); background: linear-gradient(90deg, var(--muted, #f4f4f5) 0%, color-mix(in oklab, var(--muted, #f4f4f5) 55%, var(--background, #fff)) 50%, var(--muted, #f4f4f5) 100%) 0 0 / 200% 100%; animation: shimmer 1.4s ease-in-out infinite; }\\n  .skeleton-text { display: grid; gap: 0.55rem; max-width: 100%; }\\n  .skeleton-text .skeleton-bone { height: 0.85rem; }\\n  .skeleton-text .skeleton-bone.skeleton-last { width: 65%; }\\n  .skeleton-circle { border-radius: 50%; }\\n  @keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }\\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  <!--[--><!--]-->\\n\",\n  setup($p, $emit) {\n                                                  \n  const rows = __zubraComputed(() => (Array.from({ length: Math.max(1, $p.lines) }, (_, i) => i)))\n    return [\n      { path: [0], when: () => ($p.shape === \"text\"), blocks: [{ template: \"<div class=\\\"skeleton-text\\\" aria-hidden=\\\"true\\\">\\n    <!--[--><!--]-->\\n  </div>\", parts: () => [{ path: [0], style: \"width\", value: () => ($p.width || null) }, { path: [0, 0], each: () => $r(rows), key: (row, $index) => $r(row), block: { template: \"\\n      <span class=\\\"skeleton-bone\\\"></span>\\n    \", parts: (row, $index) => [{ path: [0], toggle: \"skeleton-last\", value: () => (($r(rows).length > 1) && ($r(row) === ($r(rows).length - 1))) }] } }] }, { template: \"<span class=\\\"skeleton-bone\\\" aria-hidden=\\\"true\\\"></span>\", parts: () => [{ path: [0], toggle: \"skeleton-circle\", value: () => ($p.shape === \"circle\") }, { path: [0], style: \"width\", value: () => ($p.width || (($p.shape === \"circle\") ? \"3rem\" : \"100%\")) }, { path: [0], style: \"height\", value: () => ($p.height || (($p.shape === \"circle\") ? ($p.width || \"3rem\") : \"8rem\")) }] }] },\n    ];\n  },\n});\n"
    }
  ]
}
