{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Key counters of a dashboard.",
  "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/metric-row.json\n    Dashboard counters in a row or a grid: tiles with an icon, a number and a caption, or compact figures. Axes: columns (2, 4), item (tile, compact), tone (default, muted), density (default, compact).\n    Props (p): id, title, metrics, empty, cols, item, tone, density, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_metrics = (p.metrics ?? null) -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_cols = (p.cols ?? '4') -%}\n{%- set v_item = (p.item ?? 'tile') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_density = (p.density ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_8 -%}\n  {%- if og_t(og_eq(og_len(v_metrics), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'gauge', 'title': v_empty}}, with_context = false) }}\n  {%- else %}\n    {%- set c_7 -%}\n      {%- for v_m in og_l(v_metrics) %}\n        {%- if og_t(og_eq(v_item, 'tile')) %}\n          {%- set c_1 -%}\n            {{ include('blocks/stat-tile.html.twig', {'p': {'label': og_get(v_m, ['label']), 'value': og_get(v_m, ['value']), 'icon': og_get(v_m, ['icon']), 'hint': og_get(v_m, ['hint'])}}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Box.html.twig', {'attrs': og_attrs(['data-slot', 'item']), 'children': c_1}, with_context = false) }}\n        {%- else %}\n          {%- set c_6 -%}\n            {%- set c_3 -%}\n              {{ include('icons/LucideIcon.html.twig', {'name': og_s(og_get(v_m, ['icon'])), 'size': 16}, with_context = false) }}\n              {%- set c_2 -%}\n                {{ og_text(og_get(v_m, ['label'])) }}\n              {%- endset -%}\n              {{ include('compose/Text.html.twig', {'size': 'xs', 'children': c_2}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'class': 'text-muted-foreground', 'children': c_3}, with_context = false) }}\n            {%- set c_4 -%}\n              {{ og_text(og_get(v_m, ['value'])) }}\n            {%- endset -%}\n            {{ include('compose/Text.html.twig', {'size': '2xl', 'weight': 'bold', 'children': c_4}, with_context = false) }}\n            {%- set c_5 -%}\n              {{ og_text(og_get(v_m, ['hint'])) }}\n            {%- endset -%}\n            {{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'children': c_5}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Stack.html.twig', {'gap': '0', 'class': 'rounded bg-card p-4 inset-ring inset-ring-border', 'attrs': og_attrs(['data-slot', 'item']), 'children': c_6}, with_context = false) }}\n        {%- endif %}\n      {%- endfor %}\n    {%- endset -%}\n    {{ include('compose/Grid.html.twig', {'cols': og_s((og_t(og_eq(v_cols, '2')) ? '1-2' : '1-4')), 'class': 'gap-4', 'attrs': og_attrs(['data-slot', 'items']), 'children': c_7}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_8)}, with_context = false) }}\n",
      "path": "blocks/metric-row.html.twig",
      "target": "blocks/metric-row.html.twig"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "widgets",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "metric-row",
  "registryDependencies": [
    "box",
    "empty-state",
    "grid",
    "group",
    "lucide-icon",
    "section-frame",
    "stack",
    "stat-tile",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Metric Row",
  "type": "registry:block"
}
