The Open Standard for Generative UI
Small Chages
i-subham82b464b51e70
diff --git a/frontend-sdk/packages/react-ui/src/components/Charts/RaderChart/RaderChart.tsx b/frontend-sdk/packages/react-ui/src/components/Charts/RadarChart/RadarChart.tsxsimilarity index 92%rename from frontend-sdk/packages/react-ui/src/components/Charts/RaderChart/RaderChart.tsxrename to frontend-sdk/packages/react-ui/src/components/Charts/RadarChart/RadarChart.tsxindex ee41ebc93..949955db4 100644--- a/frontend-sdk/packages/react-ui/src/components/Charts/RaderChart/RaderChart.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Charts/RadarChart/RadarChart.tsx@@ -10,9 +10,9 @@ import {} from "../Charts";import { getDistributedColors, getPalette } from "../utils/PalletUtils";-type RaderChartData = Array<Record<string, string | number>>;+type RadarChartData = Array<Record<string, string | number>>;-interface RaderChartProps<T extends RaderChartData> {+interface RadarChartProps<T extends RadarChartData> {data: T;categoryKey: keyof T[number];theme?: "ocean" | "orchid" | "emerald" | "sunset" | "spectrum" | "vivid";@@ -26,7 +26,7 @@ interface RaderChartProps<T extends RaderChartData> {icons?: Partial<Record<keyof T[number], React.ComponentType>>;}-export const RaderChart = <T extends RaderChartData>({+export const RadarChart = <T extends RadarChartData>({data,categoryKey,theme = "ocean",@@ -38,7 +38,7 @@ export const RaderChart = <T extends RaderChartData>({strokeWidth = 2,areaOpacity = 0.5,icons = {},-}: RaderChartProps<T>) => {+}: RadarChartProps<T>) => {// excluding the categoryKeyconst dataKeys = Object.keys(data[0] || {}).filter((key) => key !== categoryKey);diff --git a/frontend-sdk/packages/react-ui/src/components/Charts/RadarChart/index.ts b/frontend-sdk/packages/react-ui/src/components/Charts/RadarChart/index.tsnew file mode 100644index 000000000..536521034--- /dev/null+++ b/frontend-sdk/packages/react-ui/src/components/Charts/RadarChart/index.ts@@ -0,0 +1 @@+export * from "./RadarChart";diff --git a/frontend-sdk/packages/react-ui/src/components/Charts/RaderChart/index.ts b/frontend-sdk/packages/react-ui/src/components/Charts/RaderChart/index.tsdeleted file mode 100644index 55779ccf4..000000000--- a/frontend-sdk/packages/react-ui/src/components/Charts/RaderChart/index.ts+++ /dev/null@@ -1 +0,0 @@-export * from "./RaderChart";diff --git a/frontend-sdk/packages/react-ui/src/components/Charts/stories/charts.stories.tsx b/frontend-sdk/packages/react-ui/src/components/Charts/stories/charts.stories.tsxindex 4d9d27bd3..b7f65fabf 100644--- a/frontend-sdk/packages/react-ui/src/components/Charts/stories/charts.stories.tsx+++ b/frontend-sdk/packages/react-ui/src/components/Charts/stories/charts.stories.tsx@@ -10,7 +10,7 @@ import { IconButton } from "../../IconButton";import { AreaChart } from "../AreaChart";import { BarChart } from "../BarChart";import { LineChart } from "../LineChart";-import { RaderChart } from "../RaderChart";+import { RadarChart } from "../RadarChart";const chartData = [{ month: "January", desktop: 186, mobile: 80 },{ month: "February", desktop: 305, mobile: 200 },@@ -130,7 +130,7 @@ const LineChartComponent = () => {);};-const RaderChartComponent = () => {+const RadarChartComponent = () => {return (<Card style={{ width: "500px" }}><Header@@ -140,7 +140,7 @@ const RaderChartComponent = () => {title="Rader Chart - Multiple"subtitle="January - June 2024"/>- <RaderChart+ <RadarChartdata={radarChartData}categoryKey="month"theme="vivid"@@ -184,7 +184,7 @@ export const LineChartStory: Story = {render: () => <LineChartComponent />,};-export const RaderChartStory: Story = {- name: "Rader Chart",- render: () => <RaderChartComponent />,+export const RadarChartStory: Story = {+ name: "Radar Chart",+ render: () => <RadarChartComponent />,};