{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Grey blocks in the shape of what is coming: cards, a list or an article.",
  "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/organisms/skeleton-layout.json\n    The loading state of a page: grey blocks in the shape of the content that is coming (cards, a list of rows or an article). Axes: shape (cards, list, article), tone. The label tells assistive technology that the content is loading. The shimmer itself belongs to the Skeleton part.\n    Props (p): id, title, label, lines, shape, tone, landmarkLabel. -#}\n{%- set v_id = og_def(p['id'], none) -%}\n{%- set v_title = og_def(p['title'], none) -%}\n{%- set v_label = og_def(p['label'], none) -%}\n{%- set v_lines = og_def(p['lines'], none) -%}\n{%- set v_shape = og_def(p['shape'], 'cards') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_9 -%}\n  {%- set c_8 -%}\n    {%- if og_t(og_eq(v_shape, 'cards')) %}\n      {%- set c_2 -%}\n        {%- for v_l in og_l(v_lines) %}\n          {%- set c_1 -%}\n            {{ og_include('compose/skeleton.html.j2', {'p': {'Class': 'aspect-video w-full'}}) }}\n            {{ og_include('compose/skeleton.html.j2', {'p': {'Class': 'h-4 w-2/3'}}) }}\n            {{ og_include('compose/skeleton.html.j2', {'p': {'Class': 'h-4 w-full'}}) }}\n          {%- endset -%}\n          {{ og_include('compose/stack.html.j2', {'p': {'Gap': '4', 'Class': 'rounded bg-card inset-ring inset-ring-border p-4', 'Attrs': og_attrs(['data-slot', 'item'])}, 'children': c_1}) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ og_include('compose/grid.html.j2', {'p': {'Cols': '1-3', 'Class': 'gap-4'}, 'children': c_2}) }}\n    {%- elif og_t(og_eq(v_shape, 'list')) %}\n      {%- set c_5 -%}\n        {%- for v_l in og_l(v_lines) %}\n          {%- set c_4 -%}\n            {{ og_include('compose/skeleton.html.j2', {'p': {'Class': 'size-10 shrink-0 rounded-full'}}) }}\n            {%- set c_3 -%}\n              {{ og_include('compose/skeleton.html.j2', {'p': {'Class': 'h-4 w-1/3'}}) }}\n              {{ og_include('compose/skeleton.html.j2', {'p': {'Class': 'h-4 w-full'}}) }}\n            {%- endset -%}\n            {{ og_include('compose/stack.html.j2', {'p': {'Gap': '2', 'Class': 'flex-1'}, 'children': c_3}) }}\n          {%- endset -%}\n          {{ og_include('compose/group.html.j2', {'p': {'Gap': '4', 'Align': 'center', 'Attrs': og_attrs(['data-slot', 'item'])}, 'children': c_4}) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ og_include('compose/stack.html.j2', {'p': {'Gap': '4', 'Align': 'stretch'}, 'children': c_5}) }}\n    {%- else %}\n      {%- set c_7 -%}\n        {{ og_include('compose/skeleton.html.j2', {'p': {'Class': 'h-8 w-3/4'}}) }}\n        {%- for v_l in og_l(v_lines) %}\n          {%- set c_6 -%}\n            {{ og_include('compose/skeleton.html.j2', {'p': {'Class': 'h-4 w-full'}}) }}\n            {{ og_include('compose/skeleton.html.j2', {'p': {'Class': 'h-4 w-5/6'}}) }}\n          {%- endset -%}\n          {{ og_include('compose/stack.html.j2', {'p': {'Gap': '2', 'Attrs': og_attrs(['data-slot', 'item'])}, 'children': c_6}) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ og_include('compose/stack.html.j2', {'p': {'Gap': '4', 'Align': 'stretch', 'Class': 'mx-auto max-w-2xl'}, 'children': c_7}) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ og_include('compose/block.html.j2', {'p': {'Tag': 'div', 'Class': 'w-full', 'Attrs': og_attrs(['role', 'status', 'aria-label', v_label, 'data-shape', v_shape, 'data-slot', 'skeleton'])}, 'children': c_8}) }}\n{%- endset -%}\n{{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_9)}) }}\n",
      "path": "blocks/skeleton-layout.html.j2",
      "target": "blocks/skeleton-layout.html.j2"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "states",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "skeleton-layout",
  "registryDependencies": [
    "block",
    "grid",
    "group",
    "section-frame",
    "skeleton",
    "stack",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Skeleton Layout",
  "type": "registry:block"
}
