{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "data-metrics",
  "type": "registry:item",
  "title": "Data Metrics",
  "description": "A data-metrics block.",
  "dependencies": [
    "@mui/material",
    "@mui/x-charts",
    "@emotion/react",
    "@emotion/styled"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "blocks/data-metrics/data-metrics.tsx",
      "target": "src/mui-treasury/blocks/data-metrics/data-metrics.tsx",
      "content": "'use client';\n\nimport * as React from 'react';\n\nimport Box from '@mui/material/Box';\nimport Card from '@mui/material/Card';\nimport CardContent from '@mui/material/CardContent';\nimport CircularProgress from '@mui/material/CircularProgress';\nimport LinearProgress from '@mui/material/LinearProgress';\nimport Stack from '@mui/material/Stack';\nimport Typography from '@mui/material/Typography';\nimport { SparkLineChart } from '@mui/x-charts/SparkLineChart';\n\nexport function DataMetrics() {\n  const storageUsed = 1.85;\n  const storageTotal = 10;\n  const storagePercentage = (storageUsed / storageTotal) * 100;\n\n  const revenueData = [30, 32, 28, 31, 33, 35, 32, 38, 36, 42, 40, 45];\n  const revenueValue = 45.1;\n  const revenueChange = 1.1;\n  const revenueChangePercent = 9.1;\n\n  const workspacesUsed = 1;\n  const workspacesTotal = 5;\n  const workspacesPercentage = (workspacesUsed / workspacesTotal) * 100;\n\n  return (\n    <Box sx={{ p: 3 }}>\n      <Stack spacing={2.5} direction={{ xs: 'column', md: 'row' }}>\n        {/* Storage Card */}\n        <Card\n          sx={(theme) => ({\n            flex: 1,\n            minWidth: 0,\n            borderRadius: 3,\n            boxShadow: theme.shadows[2],\n          })}\n        >\n          <CardContent sx={{ p: 2.5 }}>\n            <Typography variant=\"body2\" sx={{ color: 'text.secondary', mb: 1 }}>\n              Storage used\n            </Typography>\n            <Typography\n              variant=\"h3\"\n              component=\"div\"\n              sx={{ fontWeight: 700, mb: 1.5, fontSize: '1.75rem' }}\n            >\n              {storageUsed}GB\n            </Typography>\n            <Box sx={{ mb: 1 }}>\n              <LinearProgress\n                variant=\"determinate\"\n                value={storagePercentage}\n                sx={{\n                  height: 6,\n                  borderRadius: 1,\n                  bgcolor: 'grey.200',\n                  '& .MuiLinearProgress-bar': {\n                    borderRadius: 1,\n                  },\n                }}\n              />\n            </Box>\n            <Stack\n              direction=\"row\"\n              sx={{\n                justifyContent: 'space-between',\n                mt: 1,\n              }}\n            >\n              <Typography variant=\"caption\" sx={{ color: 'text.secondary' }}>\n                {storagePercentage.toFixed(1)}%\n              </Typography>\n              <Typography variant=\"caption\" sx={{ color: 'text.secondary' }}>\n                {storageUsed} of {storageTotal}GB\n              </Typography>\n            </Stack>\n          </CardContent>\n        </Card>\n\n        {/* Revenue Card */}\n        <Card\n          sx={(theme) => ({\n            flex: 1,\n            minWidth: 0,\n            borderRadius: 3,\n            boxShadow: theme.shadows[2],\n          })}\n        >\n          <CardContent sx={{ p: 2.5 }}>\n            <Typography variant=\"body2\" sx={{ color: 'text.secondary', mb: 1 }}>\n              Acme Holding\n            </Typography>\n            <Stack\n              direction=\"row\"\n              spacing={2}\n              sx={{\n                alignItems: 'baseline',\n                mb: 2,\n                whiteSpace: 'nowrap',\n              }}\n            >\n              <Typography\n                variant=\"h3\"\n                component=\"div\"\n                sx={{ fontWeight: 700, fontSize: '2rem' }}\n              >\n                ${revenueValue}K\n              </Typography>\n              <Typography variant=\"body2\" sx={{ color: 'success.main' }}>\n                +${revenueChange}K +{revenueChangePercent}%\n              </Typography>\n            </Stack>\n            <Box sx={{ height: 60, mt: 1 }}>\n              <SparkLineChart\n                data={revenueData}\n                height={60}\n                showTooltip\n                showHighlight\n                sx={{\n                  '& .MuiChartsAxis-root': {\n                    display: 'none',\n                  },\n                }}\n              />\n            </Box>\n          </CardContent>\n        </Card>\n\n        {/* Workspaces Card */}\n        <Card\n          sx={(theme) => ({\n            flex: 1,\n            minWidth: 0,\n            borderRadius: 3,\n            boxShadow: theme.shadows[2],\n          })}\n        >\n          <CardContent sx={{ p: 2.5 }}>\n            <Stack\n              direction=\"row\"\n              spacing={2}\n              sx={{\n                flexWrap: 'wrap',\n                justifyContent: 'space-between',\n                alignItems: 'flex-start',\n              }}\n            >\n              <Stack spacing={0.25}>\n                <Typography variant=\"body2\" sx={{ color: 'text.secondary' }}>\n                  Data Workspaces\n                </Typography>\n                <Typography variant=\"caption\" sx={{ color: 'text.secondary' }}>\n                  {workspacesUsed} of {workspacesTotal} used\n                </Typography>\n              </Stack>\n              <Box\n                sx={{\n                  position: 'relative',\n                  display: 'inline-flex',\n                }}\n              >\n                <CircularProgress\n                  variant=\"determinate\"\n                  value={100}\n                  size={100}\n                  thickness={4}\n                  sx={{\n                    color: 'grey.200',\n                    position: 'absolute',\n                  }}\n                />\n                <CircularProgress\n                  variant=\"determinate\"\n                  value={workspacesPercentage}\n                  size={100}\n                  thickness={4}\n                  sx={{\n                    color: 'primary.main',\n                    '& .MuiCircularProgress-circle': {\n                      strokeLinecap: 'round',\n                    },\n                  }}\n                />\n                <Box\n                  sx={{\n                    top: 0,\n                    left: 0,\n                    bottom: 0,\n                    right: 0,\n                    position: 'absolute',\n                    display: 'flex',\n                    alignItems: 'center',\n                    justifyContent: 'center',\n                  }}\n                >\n                  <Typography\n                    variant=\"h5\"\n                    component=\"div\"\n                    sx={{ fontWeight: 500 }}\n                  >\n                    {workspacesPercentage}%\n                  </Typography>\n                </Box>\n              </Box>\n            </Stack>\n          </CardContent>\n        </Card>\n      </Stack>\n      {/* Section Title */}\n      <Box sx={{ mt: 6 }}>\n        <Typography variant=\"h5\" component=\"h2\" sx={{ fontWeight: 600, mb: 1 }}>\n          Data Bars, Spark Charts, and Progress Circles\n        </Typography>\n        <Typography variant=\"body1\" sx={{ color: 'text.secondary' }}>\n          Micro visualizations to highlight even the smallest details better.\n        </Typography>\n      </Box>\n    </Box>\n  );\n}\n",
      "type": "registry:item"
    },
    {
      "path": "blocks/data-metrics/index.ts",
      "target": "src/mui-treasury/blocks/data-metrics/index.ts",
      "content": "export * from './data-metrics';\n",
      "type": "registry:item"
    }
  ],
  "meta": {
    "screenshot": "/og/data-metrics.png",
    "category": "block",
    "exportName": "DataMetrics",
    "subcategory": "dashboard"
  }
}