{
  "$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 = (p.label ?? null) -%}\n{%- set v_value = (p.value ?? null) -%}\n{%- set v_caption = (p.caption ?? null) -%}\n{%- set v_hint = (p.hint ?? null) -%}\n{%- set v_href = (p.href ?? null) -%}\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        {{ include('compose/Text.html.twig', {'class': 'm-0 min-w-0 truncate text-sm font-bold text-foreground', 'children': c_1}, with_context = false) }}\n        {%- set c_2 -%}\n          {{ og_text(v_caption) }}\n        {%- endset -%}\n        {{ include('compose/Text.html.twig', {'class': 'm-0 shrink-0 text-xs font-semibold tabular-nums text-muted-foreground', 'children': c_2}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Box.html.twig', {'class': 'flex items-baseline justify-between gap-4', 'children': c_3}, with_context = false) }}\n      {{ include('compose/Progress.html.twig', {'value': og_s(og_str(v_value)), 'max': '100', 'attrs': og_attrs(['aria-label', v_label])}, with_context = false) }}\n      {%- if og_t(v_hint) %}\n        {%- set c_4 -%}\n          {{ og_text(v_hint) }}\n        {%- endset -%}\n        {{ include('compose/Text.html.twig', {'class': 'm-0 text-xs font-medium text-muted-foreground', 'children': c_4}, with_context = false) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ include('compose/Link.html.twig', {'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}, with_context = false) }}\n  {%- else %}\n    {%- set c_10 -%}\n      {%- set c_8 -%}\n        {%- set c_6 -%}\n          {{ og_text(v_label) }}\n        {%- endset -%}\n        {{ include('compose/Text.html.twig', {'class': 'm-0 min-w-0 truncate text-sm font-bold text-foreground', 'children': c_6}, with_context = false) }}\n        {%- set c_7 -%}\n          {{ og_text(v_caption) }}\n        {%- endset -%}\n        {{ include('compose/Text.html.twig', {'class': 'm-0 shrink-0 text-xs font-semibold tabular-nums text-muted-foreground', 'children': c_7}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Box.html.twig', {'class': 'flex items-baseline justify-between gap-4', 'children': c_8}, with_context = false) }}\n      {{ include('compose/Progress.html.twig', {'value': og_s(og_str(v_value)), 'max': '100', 'attrs': og_attrs(['aria-label', v_label])}, with_context = false) }}\n      {%- if og_t(v_hint) %}\n        {%- set c_9 -%}\n          {{ og_text(v_hint) }}\n        {%- endset -%}\n        {{ include('compose/Text.html.twig', {'class': 'm-0 text-xs font-medium text-muted-foreground', 'children': c_9}, with_context = false) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ include('compose/Box.html.twig', {'class': 'flex min-w-0 flex-col gap-2 p-2', 'children': c_10}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['min-w-0', (p.className ?? '')])), 'attrs': og_attrs(['data-slot', 'meter-row']), 'children': c_11}, with_context = false) }}\n",
      "path": "blocks/meter-row.html.twig",
      "target": "blocks/meter-row.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "meter-row",
  "registryDependencies": [
    "box",
    "link",
    "progress",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Meter Row",
  "type": "registry:component"
}
