{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Orders per day as bars or meters.",
  "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/chart-panel.json\n    A panel with a chart of one series: vertical bars with captions, or meter rows with a percent. Axes: chart (bars, meters), size (default, compact), tone (default, muted).\n    Props (p): id, title, text, series, empty, summary, percent, chart, size, tone, landmarkLabel. -#}\n{%- set v_id = og_def(p['id'], none) -%}\n{%- set v_title = og_def(p['title'], none) -%}\n{%- set v_text = og_def(p['text'], none) -%}\n{%- set v_series = og_def(p['series'], none) -%}\n{%- set v_empty = og_def(p['empty'], '') -%}\n{%- set v_summary = og_def(p['summary'], none) -%}\n{%- set v_percent = og_def(p['percent'], none) -%}\n{%- set v_chart = og_def(p['chart'], 'bars') -%}\n{%- set v_size = og_def(p['size'], 'default') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_4 -%}\n  {%- set c_3 -%}\n    {%- set c_2 -%}\n      {%- if og_t(og_eq(og_len(v_series), 0)) %}\n        {{ og_include('blocks/empty-state.html.j2', {'p': {'icon': 'chart-column', 'title': v_empty}}) }}\n      {%- elif og_t(og_eq(v_chart, 'bars')) %}\n        {{ og_include('blocks/bar-chart.html.j2', {'p': {'bars': v_series, 'label': v_summary, 'height': (96 if og_t(og_eq(v_size, 'compact')) else 176)}}) }}\n      {%- else %}\n        {%- set c_1 -%}\n          {%- for v_s in og_l(v_series) %}\n            {{ og_include('blocks/meter-row.html.j2', {'p': {'label': og_get(v_s, ['label']), 'value': og_get(v_s, ['value']), 'caption': og_tpl(v_percent, [og_get(v_s, ['value'])])}}) }}\n          {%- endfor %}\n        {%- endset -%}\n        {{ og_include('compose/stack.html.j2', {'p': {'Gap': og_s(('0' if og_t(og_eq(v_size, 'compact')) else '2')), 'Align': 'stretch', 'Attrs': og_attrs(['data-slot', 'items'])}, 'children': c_1}) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ og_include('blocks/panel.html.j2', {'p': {'title': v_title, 'description': v_text, 'id': v_id, 'className': og_cnv([('bg-muted' if og_t(og_eq(v_tone, 'muted')) else '')])}, 'children': og_markup(c_2)}) }}\n  {%- endset -%}\n  {{ og_include('compose/container.html.j2', {'p': {'Class': 'mx-auto w-full max-w-6xl px-4 py-8', 'Attrs': og_attrs(['data-slot', 'container'])}, 'children': c_3}) }}\n{%- endset -%}\n{{ og_include('compose/block.html.j2', {'p': {'Tag': 'section', 'Attrs': og_attrs(['aria-labelledby', (none if og_t(v_landmarkLabel) else (og_tpl('{0}-t', [v_id]) if og_t(og_and([v_title, v_id])) else none)), 'aria-label', v_landmarkLabel, 'data-slot', 'panel-section'])}, 'children': c_4}) }}\n",
      "path": "blocks/chart-panel.html.j2",
      "target": "blocks/chart-panel.html.j2"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "widgets",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "chart-panel",
  "registryDependencies": [
    "bar-chart",
    "block",
    "container",
    "empty-state",
    "meter-row",
    "panel",
    "stack",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Chart Panel",
  "type": "registry:block"
}
