UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
fix: rename gauge circle
Dillion Verma1d237fac4940
diff --git a/content/docs/components/gauge-circle.mdx b/content/docs/components/gauge-circle.mdxindex b36fdfff..201f3659 100644--- a/content/docs/components/gauge-circle.mdx+++ b/content/docs/components/gauge-circle.mdx@@ -1,12 +1,12 @@----title: Gauge Circle+title: Animated Circular Progress Bardate: 2024-05-28-description: Gauge Circle is a component that displays a circular gauge with a percentage value.+description: Animated Circular Progress Bar is a component that displays a circular gauge with a percentage value.author: luis-codexpublished: true----<ComponentPreview name="gauge-circle-demo" />+<ComponentPreview name="animated-circular-progress-bar-demo" />## Installation@@ -19,7 +19,7 @@ published: true<TabsContent value="cli">```bash-npx magicui-cli add gauge-circle+npx magicui-cli add animated-circular-progress-bar```</TabsContent>@@ -30,7 +30,7 @@ npx magicui-cli add gauge-circle<Step>Copy and paste the following code into your project.</Step>-<ComponentSource name="gauge-circle" />+<ComponentSource name="animated-circular-progress-bar" /><Step>Update the import paths to match your project setup.</Step>diff --git a/registry/components/example/gauge-circle-demo.tsx b/registry/components/example/animated-circular-progress-bar-demo.tsxsimilarity index 74%rename from registry/components/example/gauge-circle-demo.tsxrename to registry/components/example/animated-circular-progress-bar-demo.tsxindex edf5021f..07ace251 100644--- a/registry/components/example/gauge-circle-demo.tsx+++ b/registry/components/example/animated-circular-progress-bar-demo.tsx@@ -2,9 +2,9 @@import { useEffect, useState } from "react";-import GaugeCircle from "@/components/magicui/gauge-circle";+import AnimatedCircularProgressBar from "@/registry/components/magicui/animated-circular-progress-bar";-export default function GaugeCircleDemo() {+export default function AnimatedCircularProgressBarDemo() {const [value, setValue] = useState(0);useEffect(() => {@@ -20,7 +20,7 @@ export default function GaugeCircleDemo() {}, []);return (- <GaugeCircle+ <AnimatedCircularProgressBarmax={100}min={0}value={value}diff --git a/registry/components/magicui/gauge-circle.tsx b/registry/components/magicui/animated-circular-progress-bar.tsxsimilarity index 93%rename from registry/components/magicui/gauge-circle.tsxrename to registry/components/magicui/animated-circular-progress-bar.tsxindex cf4d195a..fcf964a9 100644--- a/registry/components/magicui/gauge-circle.tsx+++ b/registry/components/magicui/animated-circular-progress-bar.tsx@@ -9,7 +9,7 @@ interface Props {className?: string;}-export default function GaugeCircle({+export default function AnimatedCircularProgressBar({max = 100,min = 0,value = 0,@@ -23,7 +23,7 @@ export default function GaugeCircle({return (<div- className={cn("relative h-40 w-40 text-2xl font-semibold", className)}+ className={cn("relative size-40 text-2xl font-semibold", className)}style={{"--circle-size": "100px",@@ -41,7 +41,7 @@ export default function GaugeCircle({><svgfill="none"- className="h-full w-full"+ className="size-full"strokeWidth="2"viewBox="0 0 100 100">@@ -99,7 +99,7 @@ export default function GaugeCircle({</svg><spandata-current-value={currentPercent}- className="duration-[var(--transition-length)] delay-[var(--delay)] absolute inset-0 m-auto h-fit w-fit ease-linear animate-in fade-in"+ className="duration-[var(--transition-length)] delay-[var(--delay)] absolute inset-0 m-auto size-fit ease-linear animate-in fade-in">{currentPercent}</span>diff --git a/registry/index.tsx b/registry/index.tsxindex 7c60a346..61f7e32c 100644--- a/registry/index.tsx+++ b/registry/index.tsx@@ -239,10 +239,10 @@ const ui: Registry = {type: "components:magicui",files: ["registry/components/magicui/shine-border.tsx"],},- "gauge-circle": {- name: "gauge-circle",+ "animated-circular-progress-bar": {+ name: "animated-circular-progress-bar",type: "components:magicui",- files: ["registry/components/magicui/gauge-circle.tsx"],+ files: ["registry/components/magicui/animated-circular-progress-bar.tsx"],},confetti: {name: "confetti",@@ -815,12 +815,17 @@ const example: Registry = {() => import("@/registry/components/example/box-reveal-demo"),),},- "gauge-circle-demo": {- name: "gauge-circle-demo",+ "animated-circular-progress-bar-demo": {+ name: "animated-circular-progress-bar-demo",type: "components:example",- files: ["registry/components/example/gauge-circle-demo.tsx"],+ files: [+ "registry/components/example/animated-circular-progress-bar-demo.tsx",+ ],component: React.lazy(- () => import("@/registry/components/example/gauge-circle-demo"),+ () =>+ import(+ "@/registry/components/example/animated-circular-progress-bar-demo"+ ),),},"shine-border-demo": {