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