{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A name, a value caption and a progress bar (completeness by section, issues by rule, stock by warehouse). With `href` the whole row is a link.",
  "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/parts/meter-row.json\n    A name, a value caption and a progress bar (completeness by section, issues by rule, stock by warehouse). With `href` the whole row is a link.\n    Props (p): label, value, caption, hint, href, className. -#}\n{%- set v_label = og_def(p['label'], none) -%}\n{%- set v_value = og_def(p['value'], none) -%}\n{%- set v_caption = og_def(p['caption'], none) -%}\n{%- set v_hint = og_def(p['hint'], none) -%}\n{%- set v_href = og_def(p['href'], none) -%}\n{%- set c_11 -%}\n  {%- if og_t(v_href) %}\n    {%- set c_5 -%}\n      {%- set c_3 -%}\n        {%- set c_1 -%}\n          {{ og_text(v_label) }}\n        {%- endset -%}\n        {{ og_include('compose/text.html.j2', {'p': {'Class': 'm-0 min-w-0 truncate text-sm font-bold text-foreground'}, 'children': c_1}) }}\n        {%- set c_2 -%}\n          {{ og_text(v_caption) }}\n        {%- endset -%}\n        {{ og_include('compose/text.html.j2', {'p': {'Class': 'm-0 shrink-0 text-xs font-semibold tabular-nums text-muted-foreground'}, 'children': c_2}) }}\n      {%- endset -%}\n      {{ og_include('compose/box.html.j2', {'p': {'Class': 'flex items-baseline justify-between gap-4'}, 'children': c_3}) }}\n      {{ og_include('compose/progress.html.j2', {'p': {'Value': og_s(og_str(v_value)), 'Max': '100', 'Attrs': og_attrs(['aria-label', v_label])}}) }}\n      {%- if og_t(v_hint) %}\n        {%- set c_4 -%}\n          {{ og_text(v_hint) }}\n        {%- endset -%}\n        {{ og_include('compose/text.html.j2', {'p': {'Class': 'm-0 text-xs font-medium text-muted-foreground'}, 'children': c_4}) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ og_include('compose/link.html.j2', {'p': {'Href': og_url(og_s(v_href)), 'Variant': 'block', 'Class': 'flex min-w-0 flex-col gap-2 rounded p-2 text-foreground no-underline hover:bg-muted'}, 'children': c_5}) }}\n  {%- else %}\n    {%- set c_10 -%}\n      {%- set c_8 -%}\n        {%- set c_6 -%}\n          {{ og_text(v_label) }}\n        {%- endset -%}\n        {{ og_include('compose/text.html.j2', {'p': {'Class': 'm-0 min-w-0 truncate text-sm font-bold text-foreground'}, 'children': c_6}) }}\n        {%- set c_7 -%}\n          {{ og_text(v_caption) }}\n        {%- endset -%}\n        {{ og_include('compose/text.html.j2', {'p': {'Class': 'm-0 shrink-0 text-xs font-semibold tabular-nums text-muted-foreground'}, 'children': c_7}) }}\n      {%- endset -%}\n      {{ og_include('compose/box.html.j2', {'p': {'Class': 'flex items-baseline justify-between gap-4'}, 'children': c_8}) }}\n      {{ og_include('compose/progress.html.j2', {'p': {'Value': og_s(og_str(v_value)), 'Max': '100', 'Attrs': og_attrs(['aria-label', v_label])}}) }}\n      {%- if og_t(v_hint) %}\n        {%- set c_9 -%}\n          {{ og_text(v_hint) }}\n        {%- endset -%}\n        {{ og_include('compose/text.html.j2', {'p': {'Class': 'm-0 text-xs font-medium text-muted-foreground'}, 'children': c_9}) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ og_include('compose/box.html.j2', {'p': {'Class': 'flex min-w-0 flex-col gap-2 p-2'}, 'children': c_10}) }}\n  {%- endif %}\n{%- endset -%}\n{{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['min-w-0', og_def(p['className'], '')])), 'Attrs': og_attrs(['data-slot', 'meter-row'])}, 'children': c_11}) }}\n",
      "path": "blocks/meter-row.html.j2",
      "target": "blocks/meter-row.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "meter-row",
  "registryDependencies": [
    "box",
    "link",
    "progress",
    "text",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Meter Row",
  "type": "registry:component"
}
