{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "sales-overview-chart",
  "type": "registry:component",
  "description": "A Chart component with optional code display for UI blocks.",
  "dependencies": [
    "react-icons"
  ],
  "registryDependencies": [
    "card"
  ],
  "files": [
    {
      "path": "src/app/components/ui-blocks/charts/code/SalesOverviewCode.tsx",
      "content": "\"use client\";\r\nimport React from \"react\";\r\nimport { Card } from '@/components/ui/card'\r\nimport dynamic from \"next/dynamic\";\r\nconst Chart = dynamic(() => import(\"react-apexcharts\"), { ssr: false });\r\nimport { TbGridDots } from \"react-icons/tb\";\r\n\r\n\r\nconst SalesOverview = () => {\r\n  const ChartData: any = {\r\n    color: \"#adb5bd\",\r\n    series: [38, 40, 25],\r\n    labels: [\"Expance\", \"Revenue\", \"Profit\"],\r\n    chart: {\r\n      type: \"donut\",\r\n      fontFamily: \"inherit\",\r\n      foreColor: \"#adb0bb\",\r\n      height: 280,\r\n    },\r\n    plotOptions: {\r\n      pie: {\r\n        donut: {\r\n          size: \"89%\",\r\n          background: \"transparent\",\r\n          labels: {\r\n            show: true,\r\n            name: {\r\n              show: true,\r\n              offsetY: 7,\r\n            },\r\n            value: {\r\n              show: false,\r\n            },\r\n            total: {\r\n              show: true,\r\n              color: \"#5A6A85\",\r\n              fontSize: \"20px\",\r\n              fontWeight: \"600\",\r\n              label: \"$500,458\",\r\n            },\r\n          },\r\n        },\r\n      },\r\n    },\r\n\r\n    dataLabels: {\r\n      enabled: false,\r\n    },\r\n    stroke: {\r\n      show: false,\r\n    },\r\n    legend: {\r\n      show: false,\r\n    },\r\n    colors: [\"var(--color-secondary)\", \"#EAEFF4\", \"var(--color-primary)\"],\r\n\r\n    tooltip: {\r\n      theme: \"dark\",\r\n      fillSeriesColor: false,\r\n    },\r\n  };\r\n  return (\r\n    <>\r\n      <Card className=\"mt-[30px]\">\r\n        <div>\r\n          <h5 className=\"text-lg font-semibold text-dark dark:text-white\">Sales Overview</h5>\r\n          <p className=\"text-sm\">Every Month</p>\r\n        </div>\r\n        <Chart\r\n          options={ChartData}\r\n          series={ChartData.series}\r\n          type=\"donut\"\r\n          height='280px'\r\n          width='100%'\r\n        />\r\n\r\n        <div className=\"flex items-center justify-between mt-3\">\r\n          <div className=\"flex gap-3 items-center\">\r\n            <div className=\"bg-lightprimary dark:bg-lightprimary h-10 w-10 flex justify-center items-center rounded-md\">\r\n              <TbGridDots size={20} className=\"text-primary\" />\r\n            </div>\r\n            <div>\r\n              <h6 className=\"text-base\">$23,450</h6>\r\n              <p className=\" text-sm\">Salary</p>\r\n            </div>\r\n          </div>\r\n          <div className=\"flex gap-3 items-center\">\r\n            <div className=\"bg-lightsecondary dark:bg-lightsecondary h-10 w-10 flex justify-center items-center rounded-md\">\r\n              <TbGridDots size={20} className=\"text-secondary\" />\r\n            </div>\r\n            <div>\r\n              <h6 className=\"text-base\">$23,450</h6>\r\n              <p className=\" text-sm\">Expance</p>\r\n            </div>\r\n          </div>\r\n        </div>\r\n      </Card>\r\n    </>\r\n  );\r\n};\r\n\r\nexport default SalesOverview;\r\n",
      "type": "registry:component",
      "target": "components/tailwind-admin/charts/sales-overview-chart/SalesOverviewCode.tsx"
    }
  ]
}