{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "stat-warehouse",
  "title": "Stat: warehouse space",
  "description": "An example of Stat: warehouse space.",
  "dependencies": [],
  "registryDependencies": [
    "@keyline-ui/button",
    "@keyline-ui/keyline",
    "@keyline-ui/stat"
  ],
  "files": [
    {
      "path": "src/registry/keyline/examples/stat-warehouse.tsx",
      "content": "\"use client\";\n\nimport { useState } from \"react\";\nimport { Button } from \"../ui/button\";\nimport { Meter } from \"../ui/stat\";\n\nconst MAX = 120;\nconst HIGH = 100;\n\nexport function WarehouseSpace() {\n  const [pallets, setPallets] = useState(88);\n\n  return (\n    <div className=\"grid max-w-[420px] gap-4\">\n      <Meter label=\"Warehouse floor, pallets\" value={pallets} max={MAX} high={HIGH} />\n      <div className=\"flex flex-wrap gap-3\">\n        <Button disabled={pallets + 8 > MAX} onClick={() => setPallets(pallets + 8)}>\n          Receive 8 pallets\n        </Button>\n        <Button disabled={pallets === 0} onClick={() => setPallets(Math.max(0, pallets - 8))}>\n          Ship 8 pallets\n        </Button>\n      </div>\n      <p role=\"status\" className=\"m-0 text-[14px] text-kl-ink-2\">\n        {pallets > HIGH\n          ? `Over ${HIGH}. The fire marshal wants the aisles clear, so tell Darryl before the next delivery.`\n          : pallets + 8 > MAX\n            ? \"Full.\"\n            : `Room for ${MAX - pallets} more.`}\n      </p>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/keyline/examples/stat-warehouse.tsx"
    }
  ],
  "categories": [
    "stat"
  ],
  "type": "registry:block"
}